Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Automated regeneration of MigrationCenter client #12584

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion clients/migration_center/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Install this package from [Hex](https://hex.pm) by adding

```elixir
def deps do
[{:google_api_migration_center, "~> 0.6"}]
[{:google_api_migration_center, "~> 0.7"}]
end
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ defmodule GoogleApi.MigrationCenter.V1 do
API client metadata for GoogleApi.MigrationCenter.V1.
"""

@discovery_revision "20241001"
@discovery_revision "20241114"

def discovery_revision(), do: @discovery_revision
end
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,15 @@ defmodule GoogleApi.MigrationCenter.V1.Model.Asset do
* `assignedGroups` (*type:* `list(String.t)`, *default:* `nil`) - Output only. The list of groups that the asset is assigned to.
* `attributes` (*type:* `map()`, *default:* `nil`) - Generic asset attributes.
* `createTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. The timestamp when the asset was created.
* `databaseDeploymentDetails` (*type:* `GoogleApi.MigrationCenter.V1.Model.DatabaseDeploymentDetails.t`, *default:* `nil`) - Output only. Asset information specific for database deployments.
* `databaseDetails` (*type:* `GoogleApi.MigrationCenter.V1.Model.DatabaseDetails.t`, *default:* `nil`) - Output only. Asset information specific for logical databases.
* `insightList` (*type:* `GoogleApi.MigrationCenter.V1.Model.InsightList.t`, *default:* `nil`) - Output only. The list of insights associated with the asset.
* `labels` (*type:* `map()`, *default:* `nil`) - Labels as key value pairs.
* `machineDetails` (*type:* `GoogleApi.MigrationCenter.V1.Model.MachineDetails.t`, *default:* `nil`) - Output only. Asset information specific for virtual and physical machines.
* `name` (*type:* `String.t`, *default:* `nil`) - Output only. The full name of the asset.
* `performanceData` (*type:* `GoogleApi.MigrationCenter.V1.Model.AssetPerformanceData.t`, *default:* `nil`) - Output only. Performance data for the asset.
* `sources` (*type:* `list(String.t)`, *default:* `nil`) - Output only. The list of sources contributing to the asset.
* `title` (*type:* `String.t`, *default:* `nil`) - Output only. Server generated human readable name of the asset.
* `updateTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. The timestamp when the asset was last updated.
"""

Expand All @@ -39,24 +42,35 @@ defmodule GoogleApi.MigrationCenter.V1.Model.Asset do
:assignedGroups => list(String.t()) | nil,
:attributes => map() | nil,
:createTime => DateTime.t() | nil,
:databaseDeploymentDetails =>
GoogleApi.MigrationCenter.V1.Model.DatabaseDeploymentDetails.t() | nil,
:databaseDetails => GoogleApi.MigrationCenter.V1.Model.DatabaseDetails.t() | nil,
:insightList => GoogleApi.MigrationCenter.V1.Model.InsightList.t() | nil,
:labels => map() | nil,
:machineDetails => GoogleApi.MigrationCenter.V1.Model.MachineDetails.t() | nil,
:name => String.t() | nil,
:performanceData => GoogleApi.MigrationCenter.V1.Model.AssetPerformanceData.t() | nil,
:sources => list(String.t()) | nil,
:title => String.t() | nil,
:updateTime => DateTime.t() | nil
}

field(:assignedGroups, type: :list)
field(:attributes, type: :map)
field(:createTime, as: DateTime)

field(:databaseDeploymentDetails,
as: GoogleApi.MigrationCenter.V1.Model.DatabaseDeploymentDetails
)

field(:databaseDetails, as: GoogleApi.MigrationCenter.V1.Model.DatabaseDetails)
field(:insightList, as: GoogleApi.MigrationCenter.V1.Model.InsightList)
field(:labels, type: :map)
field(:machineDetails, as: GoogleApi.MigrationCenter.V1.Model.MachineDetails)
field(:name)
field(:performanceData, as: GoogleApi.MigrationCenter.V1.Model.AssetPerformanceData)
field(:sources, type: :list)
field(:title)
field(:updateTime, as: DateTime)
end

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ defmodule GoogleApi.MigrationCenter.V1.Model.AssetFrame do

* `attributes` (*type:* `map()`, *default:* `nil`) - Generic asset attributes.
* `collectionType` (*type:* `String.t`, *default:* `nil`) - Optional. Frame collection type, if not specified the collection type will be based on the source type of the source the frame was reported on.
* `databaseDeploymentDetails` (*type:* `GoogleApi.MigrationCenter.V1.Model.DatabaseDeploymentDetails.t`, *default:* `nil`) - Asset information specific for database deployments.
* `databaseDetails` (*type:* `GoogleApi.MigrationCenter.V1.Model.DatabaseDetails.t`, *default:* `nil`) - Asset information specific for logical databases.
* `labels` (*type:* `map()`, *default:* `nil`) - Labels as key value pairs.
* `machineDetails` (*type:* `GoogleApi.MigrationCenter.V1.Model.MachineDetails.t`, *default:* `nil`) - Asset information specific for virtual machines.
* `performanceSamples` (*type:* `list(GoogleApi.MigrationCenter.V1.Model.PerformanceSample.t)`, *default:* `nil`) - Asset performance data samples. Samples that are from more than 40 days ago or after tomorrow are ignored.
Expand All @@ -35,6 +37,9 @@ defmodule GoogleApi.MigrationCenter.V1.Model.AssetFrame do
@type t :: %__MODULE__{
:attributes => map() | nil,
:collectionType => String.t() | nil,
:databaseDeploymentDetails =>
GoogleApi.MigrationCenter.V1.Model.DatabaseDeploymentDetails.t() | nil,
:databaseDetails => GoogleApi.MigrationCenter.V1.Model.DatabaseDetails.t() | nil,
:labels => map() | nil,
:machineDetails => GoogleApi.MigrationCenter.V1.Model.MachineDetails.t() | nil,
:performanceSamples =>
Expand All @@ -45,6 +50,12 @@ defmodule GoogleApi.MigrationCenter.V1.Model.AssetFrame do

field(:attributes, type: :map)
field(:collectionType)

field(:databaseDeploymentDetails,
as: GoogleApi.MigrationCenter.V1.Model.DatabaseDeploymentDetails
)

field(:databaseDetails, as: GoogleApi.MigrationCenter.V1.Model.DatabaseDetails)
field(:labels, type: :map)
field(:machineDetails, as: GoogleApi.MigrationCenter.V1.Model.MachineDetails)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,25 @@ defmodule GoogleApi.MigrationCenter.V1.Model.DailyResourceUsageAggregationDisk d

## Attributes

* `iops` (*type:* `GoogleApi.MigrationCenter.V1.Model.DailyResourceUsageAggregationStats.t`, *default:* `nil`) - Disk I/O operations per second.
* `iops` (*type:* `GoogleApi.MigrationCenter.V1.Model.DailyResourceUsageAggregationStats.t`, *default:* `nil`) - Optional. Disk I/O operations per second.
* `readIops` (*type:* `GoogleApi.MigrationCenter.V1.Model.DailyResourceUsageAggregationStats.t`, *default:* `nil`) - Optional. Disk read I/O operations per second.
* `writeIops` (*type:* `GoogleApi.MigrationCenter.V1.Model.DailyResourceUsageAggregationStats.t`, *default:* `nil`) - Optional. Disk write I/O operations per second.
"""

use GoogleApi.Gax.ModelBase

@type t :: %__MODULE__{
:iops => GoogleApi.MigrationCenter.V1.Model.DailyResourceUsageAggregationStats.t() | nil
:iops =>
GoogleApi.MigrationCenter.V1.Model.DailyResourceUsageAggregationStats.t() | nil,
:readIops =>
GoogleApi.MigrationCenter.V1.Model.DailyResourceUsageAggregationStats.t() | nil,
:writeIops =>
GoogleApi.MigrationCenter.V1.Model.DailyResourceUsageAggregationStats.t() | nil
}

field(:iops, as: GoogleApi.MigrationCenter.V1.Model.DailyResourceUsageAggregationStats)
field(:readIops, as: GoogleApi.MigrationCenter.V1.Model.DailyResourceUsageAggregationStats)
field(:writeIops, as: GoogleApi.MigrationCenter.V1.Model.DailyResourceUsageAggregationStats)
end

defimpl Poison.Decoder, for: GoogleApi.MigrationCenter.V1.Model.DailyResourceUsageAggregationDisk do
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
# Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# NOTE: This file is auto generated by the elixir code generator program.
# Do not edit this file manually.

defmodule GoogleApi.MigrationCenter.V1.Model.DatabaseDeploymentDetails do
@moduledoc """
The details of a database deployment asset.

## Attributes

* `aggregatedStats` (*type:* `GoogleApi.MigrationCenter.V1.Model.DatabaseDeploymentDetailsAggregatedStats.t`, *default:* `nil`) - Output only. Aggregated stats for the database deployment.
* `edition` (*type:* `String.t`, *default:* `nil`) - Optional. The database deployment edition.
* `generatedId` (*type:* `String.t`, *default:* `nil`) - Optional. The database deployment generated ID.
* `manualUniqueId` (*type:* `String.t`, *default:* `nil`) - Optional. A manual unique ID set by the user.
* `mysql` (*type:* `GoogleApi.MigrationCenter.V1.Model.MysqlDatabaseDeployment.t`, *default:* `nil`) - Optional. Details of a MYSQL database deployment.
* `postgresql` (*type:* `GoogleApi.MigrationCenter.V1.Model.PostgreSqlDatabaseDeployment.t`, *default:* `nil`) - Optional. Details of a PostgreSQL database deployment.
* `sqlServer` (*type:* `GoogleApi.MigrationCenter.V1.Model.SqlServerDatabaseDeployment.t`, *default:* `nil`) - Optional. Details of a Microsoft SQL Server database deployment.
* `topology` (*type:* `GoogleApi.MigrationCenter.V1.Model.DatabaseDeploymentTopology.t`, *default:* `nil`) - Optional. Details of the database deployment topology.
* `version` (*type:* `String.t`, *default:* `nil`) - Optional. The database deployment version.
"""

use GoogleApi.Gax.ModelBase

@type t :: %__MODULE__{
:aggregatedStats =>
GoogleApi.MigrationCenter.V1.Model.DatabaseDeploymentDetailsAggregatedStats.t() | nil,
:edition => String.t() | nil,
:generatedId => String.t() | nil,
:manualUniqueId => String.t() | nil,
:mysql => GoogleApi.MigrationCenter.V1.Model.MysqlDatabaseDeployment.t() | nil,
:postgresql =>
GoogleApi.MigrationCenter.V1.Model.PostgreSqlDatabaseDeployment.t() | nil,
:sqlServer => GoogleApi.MigrationCenter.V1.Model.SqlServerDatabaseDeployment.t() | nil,
:topology => GoogleApi.MigrationCenter.V1.Model.DatabaseDeploymentTopology.t() | nil,
:version => String.t() | nil
}

field(:aggregatedStats,
as: GoogleApi.MigrationCenter.V1.Model.DatabaseDeploymentDetailsAggregatedStats
)

field(:edition)
field(:generatedId)
field(:manualUniqueId)
field(:mysql, as: GoogleApi.MigrationCenter.V1.Model.MysqlDatabaseDeployment)
field(:postgresql, as: GoogleApi.MigrationCenter.V1.Model.PostgreSqlDatabaseDeployment)
field(:sqlServer, as: GoogleApi.MigrationCenter.V1.Model.SqlServerDatabaseDeployment)
field(:topology, as: GoogleApi.MigrationCenter.V1.Model.DatabaseDeploymentTopology)
field(:version)
end

defimpl Poison.Decoder, for: GoogleApi.MigrationCenter.V1.Model.DatabaseDeploymentDetails do
def decode(value, options) do
GoogleApi.MigrationCenter.V1.Model.DatabaseDeploymentDetails.decode(value, options)
end
end

defimpl Poison.Encoder, for: GoogleApi.MigrationCenter.V1.Model.DatabaseDeploymentDetails do
def encode(value, options) do
GoogleApi.Gax.ModelBase.encode(value, options)
end
end
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
# Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# NOTE: This file is auto generated by the elixir code generator program.
# Do not edit this file manually.

defmodule GoogleApi.MigrationCenter.V1.Model.DatabaseDeploymentDetailsAggregatedStats do
@moduledoc """
Aggregated stats for the database deployment.

## Attributes

* `databaseCount` (*type:* `integer()`, *default:* `nil`) - Output only. The number of databases in the deployment.
"""

use GoogleApi.Gax.ModelBase

@type t :: %__MODULE__{
:databaseCount => integer() | nil
}

field(:databaseCount)
end

defimpl Poison.Decoder,
for: GoogleApi.MigrationCenter.V1.Model.DatabaseDeploymentDetailsAggregatedStats do
def decode(value, options) do
GoogleApi.MigrationCenter.V1.Model.DatabaseDeploymentDetailsAggregatedStats.decode(
value,
options
)
end
end

defimpl Poison.Encoder,
for: GoogleApi.MigrationCenter.V1.Model.DatabaseDeploymentDetailsAggregatedStats do
def encode(value, options) do
GoogleApi.Gax.ModelBase.encode(value, options)
end
end
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
# Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# NOTE: This file is auto generated by the elixir code generator program.
# Do not edit this file manually.

defmodule GoogleApi.MigrationCenter.V1.Model.DatabaseDeploymentTopology do
@moduledoc """
Details of database deployment's topology.

## Attributes

* `coreCount` (*type:* `integer()`, *default:* `nil`) - Optional. Number of total logical cores.
* `coreLimit` (*type:* `integer()`, *default:* `nil`) - Optional. Number of total logical cores limited by db deployment.
* `diskAllocatedBytes` (*type:* `String.t`, *default:* `nil`) - Optional. Disk allocated in bytes.
* `diskUsedBytes` (*type:* `String.t`, *default:* `nil`) - Optional. Disk used in bytes.
* `instances` (*type:* `list(GoogleApi.MigrationCenter.V1.Model.DatabaseInstance.t)`, *default:* `nil`) - Optional. List of database instances.
* `memoryBytes` (*type:* `String.t`, *default:* `nil`) - Optional. Total memory in bytes.
* `memoryLimitBytes` (*type:* `String.t`, *default:* `nil`) - Optional. Total memory in bytes limited by db deployment.
* `physicalCoreCount` (*type:* `integer()`, *default:* `nil`) - Optional. Number of total physical cores.
* `physicalCoreLimit` (*type:* `integer()`, *default:* `nil`) - Optional. Number of total physical cores limited by db deployment.
"""

use GoogleApi.Gax.ModelBase

@type t :: %__MODULE__{
:coreCount => integer() | nil,
:coreLimit => integer() | nil,
:diskAllocatedBytes => String.t() | nil,
:diskUsedBytes => String.t() | nil,
:instances => list(GoogleApi.MigrationCenter.V1.Model.DatabaseInstance.t()) | nil,
:memoryBytes => String.t() | nil,
:memoryLimitBytes => String.t() | nil,
:physicalCoreCount => integer() | nil,
:physicalCoreLimit => integer() | nil
}

field(:coreCount)
field(:coreLimit)
field(:diskAllocatedBytes)
field(:diskUsedBytes)
field(:instances, as: GoogleApi.MigrationCenter.V1.Model.DatabaseInstance, type: :list)
field(:memoryBytes)
field(:memoryLimitBytes)
field(:physicalCoreCount)
field(:physicalCoreLimit)
end

defimpl Poison.Decoder, for: GoogleApi.MigrationCenter.V1.Model.DatabaseDeploymentTopology do
def decode(value, options) do
GoogleApi.MigrationCenter.V1.Model.DatabaseDeploymentTopology.decode(value, options)
end
end

defimpl Poison.Encoder, for: GoogleApi.MigrationCenter.V1.Model.DatabaseDeploymentTopology do
def encode(value, options) do
GoogleApi.Gax.ModelBase.encode(value, options)
end
end
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
# Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# NOTE: This file is auto generated by the elixir code generator program.
# Do not edit this file manually.

defmodule GoogleApi.MigrationCenter.V1.Model.DatabaseDetails do
@moduledoc """
Details of a logical database.

## Attributes

* `allocatedStorageBytes` (*type:* `String.t`, *default:* `nil`) - Optional. The allocated storage for the database in bytes.
* `databaseName` (*type:* `String.t`, *default:* `nil`) - Required. The name of the database.
* `parentDatabaseDeployment` (*type:* `GoogleApi.MigrationCenter.V1.Model.DatabaseDetailsParentDatabaseDeployment.t`, *default:* `nil`) - Required. The parent database deployment that contains the logical database.
* `schemas` (*type:* `list(GoogleApi.MigrationCenter.V1.Model.DatabaseSchema.t)`, *default:* `nil`) - Optional. The database schemas.
"""

use GoogleApi.Gax.ModelBase

@type t :: %__MODULE__{
:allocatedStorageBytes => String.t() | nil,
:databaseName => String.t() | nil,
:parentDatabaseDeployment =>
GoogleApi.MigrationCenter.V1.Model.DatabaseDetailsParentDatabaseDeployment.t() | nil,
:schemas => list(GoogleApi.MigrationCenter.V1.Model.DatabaseSchema.t()) | nil
}

field(:allocatedStorageBytes)
field(:databaseName)

field(:parentDatabaseDeployment,
as: GoogleApi.MigrationCenter.V1.Model.DatabaseDetailsParentDatabaseDeployment
)

field(:schemas, as: GoogleApi.MigrationCenter.V1.Model.DatabaseSchema, type: :list)
end

defimpl Poison.Decoder, for: GoogleApi.MigrationCenter.V1.Model.DatabaseDetails do
def decode(value, options) do
GoogleApi.MigrationCenter.V1.Model.DatabaseDetails.decode(value, options)
end
end

defimpl Poison.Encoder, for: GoogleApi.MigrationCenter.V1.Model.DatabaseDetails do
def encode(value, options) do
GoogleApi.Gax.ModelBase.encode(value, options)
end
end
Loading
Loading