diff --git a/clients/migration_center/README.md b/clients/migration_center/README.md index e0c7d986e2..44e86a986b 100644 --- a/clients/migration_center/README.md +++ b/clients/migration_center/README.md @@ -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 ``` diff --git a/clients/migration_center/lib/google_api/migration_center/v1/metadata.ex b/clients/migration_center/lib/google_api/migration_center/v1/metadata.ex index a226e48e53..b9225560c7 100644 --- a/clients/migration_center/lib/google_api/migration_center/v1/metadata.ex +++ b/clients/migration_center/lib/google_api/migration_center/v1/metadata.ex @@ -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 diff --git a/clients/migration_center/lib/google_api/migration_center/v1/model/asset.ex b/clients/migration_center/lib/google_api/migration_center/v1/model/asset.ex index ecc8772ef9..116f56e1f5 100644 --- a/clients/migration_center/lib/google_api/migration_center/v1/model/asset.ex +++ b/clients/migration_center/lib/google_api/migration_center/v1/model/asset.ex @@ -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. """ @@ -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 diff --git a/clients/migration_center/lib/google_api/migration_center/v1/model/asset_frame.ex b/clients/migration_center/lib/google_api/migration_center/v1/model/asset_frame.ex index 4e7057ccb7..bf9a235dad 100644 --- a/clients/migration_center/lib/google_api/migration_center/v1/model/asset_frame.ex +++ b/clients/migration_center/lib/google_api/migration_center/v1/model/asset_frame.ex @@ -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. @@ -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 => @@ -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) diff --git a/clients/migration_center/lib/google_api/migration_center/v1/model/daily_resource_usage_aggregation_disk.ex b/clients/migration_center/lib/google_api/migration_center/v1/model/daily_resource_usage_aggregation_disk.ex index cb05145815..8112a3c1c1 100644 --- a/clients/migration_center/lib/google_api/migration_center/v1/model/daily_resource_usage_aggregation_disk.ex +++ b/clients/migration_center/lib/google_api/migration_center/v1/model/daily_resource_usage_aggregation_disk.ex @@ -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 diff --git a/clients/migration_center/lib/google_api/migration_center/v1/model/database_deployment_details.ex b/clients/migration_center/lib/google_api/migration_center/v1/model/database_deployment_details.ex new file mode 100644 index 0000000000..d9ef2ce00e --- /dev/null +++ b/clients/migration_center/lib/google_api/migration_center/v1/model/database_deployment_details.ex @@ -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 diff --git a/clients/migration_center/lib/google_api/migration_center/v1/model/database_deployment_details_aggregated_stats.ex b/clients/migration_center/lib/google_api/migration_center/v1/model/database_deployment_details_aggregated_stats.ex new file mode 100644 index 0000000000..56349ad1e0 --- /dev/null +++ b/clients/migration_center/lib/google_api/migration_center/v1/model/database_deployment_details_aggregated_stats.ex @@ -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 diff --git a/clients/migration_center/lib/google_api/migration_center/v1/model/database_deployment_topology.ex b/clients/migration_center/lib/google_api/migration_center/v1/model/database_deployment_topology.ex new file mode 100644 index 0000000000..0788128d44 --- /dev/null +++ b/clients/migration_center/lib/google_api/migration_center/v1/model/database_deployment_topology.ex @@ -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 diff --git a/clients/migration_center/lib/google_api/migration_center/v1/model/database_details.ex b/clients/migration_center/lib/google_api/migration_center/v1/model/database_details.ex new file mode 100644 index 0000000000..a10eb69b0e --- /dev/null +++ b/clients/migration_center/lib/google_api/migration_center/v1/model/database_details.ex @@ -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 diff --git a/clients/migration_center/lib/google_api/migration_center/v1/model/database_details_parent_database_deployment.ex b/clients/migration_center/lib/google_api/migration_center/v1/model/database_details_parent_database_deployment.ex new file mode 100644 index 0000000000..014a62e36d --- /dev/null +++ b/clients/migration_center/lib/google_api/migration_center/v1/model/database_details_parent_database_deployment.ex @@ -0,0 +1,54 @@ +# 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.DatabaseDetailsParentDatabaseDeployment do + @moduledoc """ + The identifiers of the parent database deployment. + + ## Attributes + + * `generatedId` (*type:* `String.t`, *default:* `nil`) - Optional. The parent database deployment generated ID. + * `manualUniqueId` (*type:* `String.t`, *default:* `nil`) - Optional. The parent database deployment optional manual unique ID set by the user. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :generatedId => String.t() | nil, + :manualUniqueId => String.t() | nil + } + + field(:generatedId) + field(:manualUniqueId) +end + +defimpl Poison.Decoder, + for: GoogleApi.MigrationCenter.V1.Model.DatabaseDetailsParentDatabaseDeployment do + def decode(value, options) do + GoogleApi.MigrationCenter.V1.Model.DatabaseDetailsParentDatabaseDeployment.decode( + value, + options + ) + end +end + +defimpl Poison.Encoder, + for: GoogleApi.MigrationCenter.V1.Model.DatabaseDetailsParentDatabaseDeployment do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/migration_center/lib/google_api/migration_center/v1/model/database_instance.ex b/clients/migration_center/lib/google_api/migration_center/v1/model/database_instance.ex new file mode 100644 index 0000000000..e4526aafd7 --- /dev/null +++ b/clients/migration_center/lib/google_api/migration_center/v1/model/database_instance.ex @@ -0,0 +1,52 @@ +# 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.DatabaseInstance do + @moduledoc """ + Details of a database instance. + + ## Attributes + + * `instanceName` (*type:* `String.t`, *default:* `nil`) - Optional. The instance's name. + * `network` (*type:* `GoogleApi.MigrationCenter.V1.Model.DatabaseInstanceNetwork.t`, *default:* `nil`) - Optional. Networking details. + * `role` (*type:* `String.t`, *default:* `nil`) - Optional. The instance role in the database engine. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :instanceName => String.t() | nil, + :network => GoogleApi.MigrationCenter.V1.Model.DatabaseInstanceNetwork.t() | nil, + :role => String.t() | nil + } + + field(:instanceName) + field(:network, as: GoogleApi.MigrationCenter.V1.Model.DatabaseInstanceNetwork) + field(:role) +end + +defimpl Poison.Decoder, for: GoogleApi.MigrationCenter.V1.Model.DatabaseInstance do + def decode(value, options) do + GoogleApi.MigrationCenter.V1.Model.DatabaseInstance.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.MigrationCenter.V1.Model.DatabaseInstance do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/migration_center/lib/google_api/migration_center/v1/model/database_instance_network.ex b/clients/migration_center/lib/google_api/migration_center/v1/model/database_instance_network.ex new file mode 100644 index 0000000000..736b3147c5 --- /dev/null +++ b/clients/migration_center/lib/google_api/migration_center/v1/model/database_instance_network.ex @@ -0,0 +1,52 @@ +# 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.DatabaseInstanceNetwork do + @moduledoc """ + Network details of a database instance. + + ## Attributes + + * `hostNames` (*type:* `list(String.t)`, *default:* `nil`) - Optional. The instance's host names. + * `ipAddresses` (*type:* `list(String.t)`, *default:* `nil`) - Optional. The instance's IP addresses. + * `primaryMacAddress` (*type:* `String.t`, *default:* `nil`) - Optional. The instance's primary MAC address. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :hostNames => list(String.t()) | nil, + :ipAddresses => list(String.t()) | nil, + :primaryMacAddress => String.t() | nil + } + + field(:hostNames, type: :list) + field(:ipAddresses, type: :list) + field(:primaryMacAddress) +end + +defimpl Poison.Decoder, for: GoogleApi.MigrationCenter.V1.Model.DatabaseInstanceNetwork do + def decode(value, options) do + GoogleApi.MigrationCenter.V1.Model.DatabaseInstanceNetwork.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.MigrationCenter.V1.Model.DatabaseInstanceNetwork do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/migration_center/lib/google_api/migration_center/v1/model/database_objects.ex b/clients/migration_center/lib/google_api/migration_center/v1/model/database_objects.ex new file mode 100644 index 0000000000..fb215bfeb9 --- /dev/null +++ b/clients/migration_center/lib/google_api/migration_center/v1/model/database_objects.ex @@ -0,0 +1,49 @@ +# 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.DatabaseObjects do + @moduledoc """ + Details of a group of database objects. + + ## Attributes + + * `category` (*type:* `String.t`, *default:* `nil`) - Optional. The category of the objects. + * `count` (*type:* `String.t`, *default:* `nil`) - Optional. The number of objects. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :category => String.t() | nil, + :count => String.t() | nil + } + + field(:category) + field(:count) +end + +defimpl Poison.Decoder, for: GoogleApi.MigrationCenter.V1.Model.DatabaseObjects do + def decode(value, options) do + GoogleApi.MigrationCenter.V1.Model.DatabaseObjects.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.MigrationCenter.V1.Model.DatabaseObjects do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/migration_center/lib/google_api/migration_center/v1/model/database_schema.ex b/clients/migration_center/lib/google_api/migration_center/v1/model/database_schema.ex new file mode 100644 index 0000000000..43765671f6 --- /dev/null +++ b/clients/migration_center/lib/google_api/migration_center/v1/model/database_schema.ex @@ -0,0 +1,61 @@ +# 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.DatabaseSchema do + @moduledoc """ + Details of a database schema. + + ## Attributes + + * `mysql` (*type:* `GoogleApi.MigrationCenter.V1.Model.MySqlSchemaDetails.t`, *default:* `nil`) - Optional. Details of a Mysql schema. + * `objects` (*type:* `list(GoogleApi.MigrationCenter.V1.Model.DatabaseObjects.t)`, *default:* `nil`) - Optional. List of details of objects by category. + * `postgresql` (*type:* `GoogleApi.MigrationCenter.V1.Model.PostgreSqlSchemaDetails.t`, *default:* `nil`) - Optional. Details of a PostgreSql schema. + * `schemaName` (*type:* `String.t`, *default:* `nil`) - Required. The name of the schema. + * `sqlServer` (*type:* `GoogleApi.MigrationCenter.V1.Model.SqlServerSchemaDetails.t`, *default:* `nil`) - Optional. Details of a SqlServer schema. + * `tablesSizeBytes` (*type:* `String.t`, *default:* `nil`) - Optional. The total size of tables in bytes. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :mysql => GoogleApi.MigrationCenter.V1.Model.MySqlSchemaDetails.t() | nil, + :objects => list(GoogleApi.MigrationCenter.V1.Model.DatabaseObjects.t()) | nil, + :postgresql => GoogleApi.MigrationCenter.V1.Model.PostgreSqlSchemaDetails.t() | nil, + :schemaName => String.t() | nil, + :sqlServer => GoogleApi.MigrationCenter.V1.Model.SqlServerSchemaDetails.t() | nil, + :tablesSizeBytes => String.t() | nil + } + + field(:mysql, as: GoogleApi.MigrationCenter.V1.Model.MySqlSchemaDetails) + field(:objects, as: GoogleApi.MigrationCenter.V1.Model.DatabaseObjects, type: :list) + field(:postgresql, as: GoogleApi.MigrationCenter.V1.Model.PostgreSqlSchemaDetails) + field(:schemaName) + field(:sqlServer, as: GoogleApi.MigrationCenter.V1.Model.SqlServerSchemaDetails) + field(:tablesSizeBytes) +end + +defimpl Poison.Decoder, for: GoogleApi.MigrationCenter.V1.Model.DatabaseSchema do + def decode(value, options) do + GoogleApi.MigrationCenter.V1.Model.DatabaseSchema.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.MigrationCenter.V1.Model.DatabaseSchema do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/migration_center/lib/google_api/migration_center/v1/model/disk_usage_sample.ex b/clients/migration_center/lib/google_api/migration_center/v1/model/disk_usage_sample.ex index 8d2fca360b..4f144b754d 100644 --- a/clients/migration_center/lib/google_api/migration_center/v1/model/disk_usage_sample.ex +++ b/clients/migration_center/lib/google_api/migration_center/v1/model/disk_usage_sample.ex @@ -21,16 +21,22 @@ defmodule GoogleApi.MigrationCenter.V1.Model.DiskUsageSample do ## Attributes - * `averageIops` (*type:* `number()`, *default:* `nil`) - Average IOPS sampled over a short window. Must be non-negative. + * `averageIops` (*type:* `number()`, *default:* `nil`) - Optional. Average IOPS sampled over a short window. Must be non-negative. Must be equal to the sum of read and write if one of them is positive. if both read and write are zero they are ignored. + * `averageReadIops` (*type:* `number()`, *default:* `nil`) - Optional. Average read IOPS sampled over a short window. Must be non-negative. + * `averageWriteIops` (*type:* `number()`, *default:* `nil`) - Optional. Average write IOPS sampled over a short window. Must be non-negative. """ use GoogleApi.Gax.ModelBase @type t :: %__MODULE__{ - :averageIops => number() | nil + :averageIops => number() | nil, + :averageReadIops => number() | nil, + :averageWriteIops => number() | nil } field(:averageIops) + field(:averageReadIops) + field(:averageWriteIops) end defimpl Poison.Decoder, for: GoogleApi.MigrationCenter.V1.Model.DiskUsageSample do diff --git a/clients/migration_center/lib/google_api/migration_center/v1/model/import_row_error.ex b/clients/migration_center/lib/google_api/migration_center/v1/model/import_row_error.ex index 84368e0dc0..dde94aa148 100644 --- a/clients/migration_center/lib/google_api/migration_center/v1/model/import_row_error.ex +++ b/clients/migration_center/lib/google_api/migration_center/v1/model/import_row_error.ex @@ -21,6 +21,8 @@ defmodule GoogleApi.MigrationCenter.V1.Model.ImportRowError do ## Attributes + * `archiveError` (*type:* `GoogleApi.MigrationCenter.V1.Model.ImportRowErrorArchiveErrorDetails.t`, *default:* `nil`) - Error details for an archive file. + * `assetTitle` (*type:* `String.t`, *default:* `nil`) - Output only. The asset title. * `csvError` (*type:* `GoogleApi.MigrationCenter.V1.Model.ImportRowErrorCsvErrorDetails.t`, *default:* `nil`) - Error details for a CSV file. * `errors` (*type:* `list(GoogleApi.MigrationCenter.V1.Model.ImportError.t)`, *default:* `nil`) - The list of errors detected in the row. * `rowNumber` (*type:* `integer()`, *default:* `nil`) - The row number where the error was detected. @@ -32,6 +34,9 @@ defmodule GoogleApi.MigrationCenter.V1.Model.ImportRowError do use GoogleApi.Gax.ModelBase @type t :: %__MODULE__{ + :archiveError => + GoogleApi.MigrationCenter.V1.Model.ImportRowErrorArchiveErrorDetails.t() | nil, + :assetTitle => String.t() | nil, :csvError => GoogleApi.MigrationCenter.V1.Model.ImportRowErrorCsvErrorDetails.t() | nil, :errors => list(GoogleApi.MigrationCenter.V1.Model.ImportError.t()) | nil, :rowNumber => integer() | nil, @@ -41,6 +46,8 @@ defmodule GoogleApi.MigrationCenter.V1.Model.ImportRowError do GoogleApi.MigrationCenter.V1.Model.ImportRowErrorXlsxErrorDetails.t() | nil } + field(:archiveError, as: GoogleApi.MigrationCenter.V1.Model.ImportRowErrorArchiveErrorDetails) + field(:assetTitle) field(:csvError, as: GoogleApi.MigrationCenter.V1.Model.ImportRowErrorCsvErrorDetails) field(:errors, as: GoogleApi.MigrationCenter.V1.Model.ImportError, type: :list) field(:rowNumber) diff --git a/clients/migration_center/lib/google_api/migration_center/v1/model/import_row_error_archive_error_details.ex b/clients/migration_center/lib/google_api/migration_center/v1/model/import_row_error_archive_error_details.ex new file mode 100644 index 0000000000..d3be6d13ac --- /dev/null +++ b/clients/migration_center/lib/google_api/migration_center/v1/model/import_row_error_archive_error_details.ex @@ -0,0 +1,49 @@ +# 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.ImportRowErrorArchiveErrorDetails do + @moduledoc """ + Error details for an archive file. + + ## Attributes + + * `csvError` (*type:* `GoogleApi.MigrationCenter.V1.Model.ImportRowErrorCsvErrorDetails.t`, *default:* `nil`) - Error details for a CSV file. + * `filePath` (*type:* `String.t`, *default:* `nil`) - Output only. The file path inside the archive where the error was detected. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :csvError => GoogleApi.MigrationCenter.V1.Model.ImportRowErrorCsvErrorDetails.t() | nil, + :filePath => String.t() | nil + } + + field(:csvError, as: GoogleApi.MigrationCenter.V1.Model.ImportRowErrorCsvErrorDetails) + field(:filePath) +end + +defimpl Poison.Decoder, for: GoogleApi.MigrationCenter.V1.Model.ImportRowErrorArchiveErrorDetails do + def decode(value, options) do + GoogleApi.MigrationCenter.V1.Model.ImportRowErrorArchiveErrorDetails.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.MigrationCenter.V1.Model.ImportRowErrorArchiveErrorDetails do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/migration_center/lib/google_api/migration_center/v1/model/insight.ex b/clients/migration_center/lib/google_api/migration_center/v1/model/insight.ex index 5376b50530..c862d10431 100644 --- a/clients/migration_center/lib/google_api/migration_center/v1/model/insight.ex +++ b/clients/migration_center/lib/google_api/migration_center/v1/model/insight.ex @@ -21,7 +21,7 @@ defmodule GoogleApi.MigrationCenter.V1.Model.Insight do ## Attributes - * `genericInsight` (*type:* `GoogleApi.MigrationCenter.V1.Model.GenericInsight.t`, *default:* `nil`) - Output only. A generic insight about an asset + * `genericInsight` (*type:* `GoogleApi.MigrationCenter.V1.Model.GenericInsight.t`, *default:* `nil`) - Output only. A generic insight about an asset. * `migrationInsight` (*type:* `GoogleApi.MigrationCenter.V1.Model.MigrationInsight.t`, *default:* `nil`) - Output only. An insight about potential migrations for an asset. """ diff --git a/clients/migration_center/lib/google_api/migration_center/v1/model/my_sql_plugin.ex b/clients/migration_center/lib/google_api/migration_center/v1/model/my_sql_plugin.ex new file mode 100644 index 0000000000..4853b0e4d7 --- /dev/null +++ b/clients/migration_center/lib/google_api/migration_center/v1/model/my_sql_plugin.ex @@ -0,0 +1,52 @@ +# 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.MySqlPlugin do + @moduledoc """ + MySql plugin. + + ## Attributes + + * `enabled` (*type:* `boolean()`, *default:* `nil`) - Required. The plugin is active. + * `plugin` (*type:* `String.t`, *default:* `nil`) - Required. The plugin name. + * `version` (*type:* `String.t`, *default:* `nil`) - Required. The plugin version. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :enabled => boolean() | nil, + :plugin => String.t() | nil, + :version => String.t() | nil + } + + field(:enabled) + field(:plugin) + field(:version) +end + +defimpl Poison.Decoder, for: GoogleApi.MigrationCenter.V1.Model.MySqlPlugin do + def decode(value, options) do + GoogleApi.MigrationCenter.V1.Model.MySqlPlugin.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.MigrationCenter.V1.Model.MySqlPlugin do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/migration_center/lib/google_api/migration_center/v1/model/my_sql_property.ex b/clients/migration_center/lib/google_api/migration_center/v1/model/my_sql_property.ex new file mode 100644 index 0000000000..c354221d86 --- /dev/null +++ b/clients/migration_center/lib/google_api/migration_center/v1/model/my_sql_property.ex @@ -0,0 +1,52 @@ +# 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.MySqlProperty do + @moduledoc """ + MySql property. + + ## Attributes + + * `enabled` (*type:* `boolean()`, *default:* `nil`) - Required. The property is enabled. + * `numericValue` (*type:* `String.t`, *default:* `nil`) - Required. The property numeric value. + * `property` (*type:* `String.t`, *default:* `nil`) - Required. The property name. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :enabled => boolean() | nil, + :numericValue => String.t() | nil, + :property => String.t() | nil + } + + field(:enabled) + field(:numericValue) + field(:property) +end + +defimpl Poison.Decoder, for: GoogleApi.MigrationCenter.V1.Model.MySqlProperty do + def decode(value, options) do + GoogleApi.MigrationCenter.V1.Model.MySqlProperty.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.MigrationCenter.V1.Model.MySqlProperty do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/migration_center/lib/google_api/migration_center/v1/model/my_sql_schema_details.ex b/clients/migration_center/lib/google_api/migration_center/v1/model/my_sql_schema_details.ex new file mode 100644 index 0000000000..7dd1e10db1 --- /dev/null +++ b/clients/migration_center/lib/google_api/migration_center/v1/model/my_sql_schema_details.ex @@ -0,0 +1,50 @@ +# 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.MySqlSchemaDetails do + @moduledoc """ + Specific details for a Mysql database. + + ## Attributes + + * `storageEngines` (*type:* `list(GoogleApi.MigrationCenter.V1.Model.MySqlStorageEngineDetails.t)`, *default:* `nil`) - Optional. Mysql storage engine tables. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :storageEngines => + list(GoogleApi.MigrationCenter.V1.Model.MySqlStorageEngineDetails.t()) | nil + } + + field(:storageEngines, + as: GoogleApi.MigrationCenter.V1.Model.MySqlStorageEngineDetails, + type: :list + ) +end + +defimpl Poison.Decoder, for: GoogleApi.MigrationCenter.V1.Model.MySqlSchemaDetails do + def decode(value, options) do + GoogleApi.MigrationCenter.V1.Model.MySqlSchemaDetails.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.MigrationCenter.V1.Model.MySqlSchemaDetails do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/migration_center/lib/google_api/migration_center/v1/model/my_sql_storage_engine_details.ex b/clients/migration_center/lib/google_api/migration_center/v1/model/my_sql_storage_engine_details.ex new file mode 100644 index 0000000000..8cec098692 --- /dev/null +++ b/clients/migration_center/lib/google_api/migration_center/v1/model/my_sql_storage_engine_details.ex @@ -0,0 +1,52 @@ +# 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.MySqlStorageEngineDetails do + @moduledoc """ + Mysql storage engine tables. + + ## Attributes + + * `encryptedTableCount` (*type:* `integer()`, *default:* `nil`) - Optional. The number of encrypted tables. + * `engine` (*type:* `String.t`, *default:* `nil`) - Required. The storage engine. + * `tableCount` (*type:* `integer()`, *default:* `nil`) - Optional. The number of tables. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :encryptedTableCount => integer() | nil, + :engine => String.t() | nil, + :tableCount => integer() | nil + } + + field(:encryptedTableCount) + field(:engine) + field(:tableCount) +end + +defimpl Poison.Decoder, for: GoogleApi.MigrationCenter.V1.Model.MySqlStorageEngineDetails do + def decode(value, options) do + GoogleApi.MigrationCenter.V1.Model.MySqlStorageEngineDetails.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.MigrationCenter.V1.Model.MySqlStorageEngineDetails do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/migration_center/lib/google_api/migration_center/v1/model/my_sql_variable.ex b/clients/migration_center/lib/google_api/migration_center/v1/model/my_sql_variable.ex new file mode 100644 index 0000000000..566c1cbba0 --- /dev/null +++ b/clients/migration_center/lib/google_api/migration_center/v1/model/my_sql_variable.ex @@ -0,0 +1,52 @@ +# 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.MySqlVariable do + @moduledoc """ + MySql variable. + + ## Attributes + + * `category` (*type:* `String.t`, *default:* `nil`) - Required. The variable category. + * `value` (*type:* `String.t`, *default:* `nil`) - Required. The variable value. + * `variable` (*type:* `String.t`, *default:* `nil`) - Required. The variable name. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :category => String.t() | nil, + :value => String.t() | nil, + :variable => String.t() | nil + } + + field(:category) + field(:value) + field(:variable) +end + +defimpl Poison.Decoder, for: GoogleApi.MigrationCenter.V1.Model.MySqlVariable do + def decode(value, options) do + GoogleApi.MigrationCenter.V1.Model.MySqlVariable.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.MigrationCenter.V1.Model.MySqlVariable do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/migration_center/lib/google_api/migration_center/v1/model/mysql_database_deployment.ex b/clients/migration_center/lib/google_api/migration_center/v1/model/mysql_database_deployment.ex new file mode 100644 index 0000000000..318583c550 --- /dev/null +++ b/clients/migration_center/lib/google_api/migration_center/v1/model/mysql_database_deployment.ex @@ -0,0 +1,55 @@ +# 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.MysqlDatabaseDeployment do + @moduledoc """ + Specific details for a Mysql database deployment. + + ## Attributes + + * `plugins` (*type:* `list(GoogleApi.MigrationCenter.V1.Model.MySqlPlugin.t)`, *default:* `nil`) - Optional. List of MySql plugins. + * `properties` (*type:* `list(GoogleApi.MigrationCenter.V1.Model.MySqlProperty.t)`, *default:* `nil`) - Optional. List of MySql properties. + * `resourceGroupsCount` (*type:* `integer()`, *default:* `nil`) - Optional. Number of resource groups. + * `variables` (*type:* `list(GoogleApi.MigrationCenter.V1.Model.MySqlVariable.t)`, *default:* `nil`) - Optional. List of MySql variables. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :plugins => list(GoogleApi.MigrationCenter.V1.Model.MySqlPlugin.t()) | nil, + :properties => list(GoogleApi.MigrationCenter.V1.Model.MySqlProperty.t()) | nil, + :resourceGroupsCount => integer() | nil, + :variables => list(GoogleApi.MigrationCenter.V1.Model.MySqlVariable.t()) | nil + } + + field(:plugins, as: GoogleApi.MigrationCenter.V1.Model.MySqlPlugin, type: :list) + field(:properties, as: GoogleApi.MigrationCenter.V1.Model.MySqlProperty, type: :list) + field(:resourceGroupsCount) + field(:variables, as: GoogleApi.MigrationCenter.V1.Model.MySqlVariable, type: :list) +end + +defimpl Poison.Decoder, for: GoogleApi.MigrationCenter.V1.Model.MysqlDatabaseDeployment do + def decode(value, options) do + GoogleApi.MigrationCenter.V1.Model.MysqlDatabaseDeployment.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.MigrationCenter.V1.Model.MysqlDatabaseDeployment do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/migration_center/lib/google_api/migration_center/v1/model/postgre_sql_database_deployment.ex b/clients/migration_center/lib/google_api/migration_center/v1/model/postgre_sql_database_deployment.ex new file mode 100644 index 0000000000..09b2dc24f6 --- /dev/null +++ b/clients/migration_center/lib/google_api/migration_center/v1/model/postgre_sql_database_deployment.ex @@ -0,0 +1,49 @@ +# 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.PostgreSqlDatabaseDeployment do + @moduledoc """ + Specific details for a PostgreSQL database deployment. + + ## Attributes + + * `properties` (*type:* `list(GoogleApi.MigrationCenter.V1.Model.PostgreSqlProperty.t)`, *default:* `nil`) - Optional. List of PostgreSql properties. + * `settings` (*type:* `list(GoogleApi.MigrationCenter.V1.Model.PostgreSqlSetting.t)`, *default:* `nil`) - Optional. List of PostgreSql settings. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :properties => list(GoogleApi.MigrationCenter.V1.Model.PostgreSqlProperty.t()) | nil, + :settings => list(GoogleApi.MigrationCenter.V1.Model.PostgreSqlSetting.t()) | nil + } + + field(:properties, as: GoogleApi.MigrationCenter.V1.Model.PostgreSqlProperty, type: :list) + field(:settings, as: GoogleApi.MigrationCenter.V1.Model.PostgreSqlSetting, type: :list) +end + +defimpl Poison.Decoder, for: GoogleApi.MigrationCenter.V1.Model.PostgreSqlDatabaseDeployment do + def decode(value, options) do + GoogleApi.MigrationCenter.V1.Model.PostgreSqlDatabaseDeployment.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.MigrationCenter.V1.Model.PostgreSqlDatabaseDeployment do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/migration_center/lib/google_api/migration_center/v1/model/postgre_sql_extension.ex b/clients/migration_center/lib/google_api/migration_center/v1/model/postgre_sql_extension.ex new file mode 100644 index 0000000000..b734245a71 --- /dev/null +++ b/clients/migration_center/lib/google_api/migration_center/v1/model/postgre_sql_extension.ex @@ -0,0 +1,49 @@ +# 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.PostgreSqlExtension do + @moduledoc """ + PostgreSql extension. + + ## Attributes + + * `extension` (*type:* `String.t`, *default:* `nil`) - Required. The extension name. + * `version` (*type:* `String.t`, *default:* `nil`) - Required. The extension version. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :extension => String.t() | nil, + :version => String.t() | nil + } + + field(:extension) + field(:version) +end + +defimpl Poison.Decoder, for: GoogleApi.MigrationCenter.V1.Model.PostgreSqlExtension do + def decode(value, options) do + GoogleApi.MigrationCenter.V1.Model.PostgreSqlExtension.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.MigrationCenter.V1.Model.PostgreSqlExtension do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/migration_center/lib/google_api/migration_center/v1/model/postgre_sql_property.ex b/clients/migration_center/lib/google_api/migration_center/v1/model/postgre_sql_property.ex new file mode 100644 index 0000000000..0ed4491cdc --- /dev/null +++ b/clients/migration_center/lib/google_api/migration_center/v1/model/postgre_sql_property.ex @@ -0,0 +1,52 @@ +# 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.PostgreSqlProperty do + @moduledoc """ + PostgreSql property. + + ## Attributes + + * `enabled` (*type:* `boolean()`, *default:* `nil`) - Required. The property is enabled. + * `numericValue` (*type:* `String.t`, *default:* `nil`) - Required. The property numeric value. + * `property` (*type:* `String.t`, *default:* `nil`) - Required. The property name. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :enabled => boolean() | nil, + :numericValue => String.t() | nil, + :property => String.t() | nil + } + + field(:enabled) + field(:numericValue) + field(:property) +end + +defimpl Poison.Decoder, for: GoogleApi.MigrationCenter.V1.Model.PostgreSqlProperty do + def decode(value, options) do + GoogleApi.MigrationCenter.V1.Model.PostgreSqlProperty.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.MigrationCenter.V1.Model.PostgreSqlProperty do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/migration_center/lib/google_api/migration_center/v1/model/postgre_sql_schema_details.ex b/clients/migration_center/lib/google_api/migration_center/v1/model/postgre_sql_schema_details.ex new file mode 100644 index 0000000000..3229ea7f54 --- /dev/null +++ b/clients/migration_center/lib/google_api/migration_center/v1/model/postgre_sql_schema_details.ex @@ -0,0 +1,54 @@ +# 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.PostgreSqlSchemaDetails do + @moduledoc """ + Specific details for a PostgreSql schema. + + ## Attributes + + * `foreignTablesCount` (*type:* `integer()`, *default:* `nil`) - Optional. PostgreSql foreign tables. + * `postgresqlExtensions` (*type:* `list(GoogleApi.MigrationCenter.V1.Model.PostgreSqlExtension.t)`, *default:* `nil`) - Optional. PostgreSql extensions. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :foreignTablesCount => integer() | nil, + :postgresqlExtensions => + list(GoogleApi.MigrationCenter.V1.Model.PostgreSqlExtension.t()) | nil + } + + field(:foreignTablesCount) + + field(:postgresqlExtensions, + as: GoogleApi.MigrationCenter.V1.Model.PostgreSqlExtension, + type: :list + ) +end + +defimpl Poison.Decoder, for: GoogleApi.MigrationCenter.V1.Model.PostgreSqlSchemaDetails do + def decode(value, options) do + GoogleApi.MigrationCenter.V1.Model.PostgreSqlSchemaDetails.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.MigrationCenter.V1.Model.PostgreSqlSchemaDetails do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/migration_center/lib/google_api/migration_center/v1/model/postgre_sql_setting.ex b/clients/migration_center/lib/google_api/migration_center/v1/model/postgre_sql_setting.ex new file mode 100644 index 0000000000..a4e79e138b --- /dev/null +++ b/clients/migration_center/lib/google_api/migration_center/v1/model/postgre_sql_setting.ex @@ -0,0 +1,64 @@ +# 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.PostgreSqlSetting do + @moduledoc """ + PostgreSql setting. + + ## Attributes + + * `boolValue` (*type:* `boolean()`, *default:* `nil`) - Required. The setting boolean value. + * `intValue` (*type:* `String.t`, *default:* `nil`) - Required. The setting int value. + * `realValue` (*type:* `number()`, *default:* `nil`) - Required. The setting real value. + * `setting` (*type:* `String.t`, *default:* `nil`) - Required. The setting name. + * `source` (*type:* `String.t`, *default:* `nil`) - Required. The setting source. + * `stringValue` (*type:* `String.t`, *default:* `nil`) - Required. The setting string value. Notice that enum values are stored as strings. + * `unit` (*type:* `String.t`, *default:* `nil`) - Optional. The setting unit. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :boolValue => boolean() | nil, + :intValue => String.t() | nil, + :realValue => number() | nil, + :setting => String.t() | nil, + :source => String.t() | nil, + :stringValue => String.t() | nil, + :unit => String.t() | nil + } + + field(:boolValue) + field(:intValue) + field(:realValue) + field(:setting) + field(:source) + field(:stringValue) + field(:unit) +end + +defimpl Poison.Decoder, for: GoogleApi.MigrationCenter.V1.Model.PostgreSqlSetting do + def decode(value, options) do + GoogleApi.MigrationCenter.V1.Model.PostgreSqlSetting.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.MigrationCenter.V1.Model.PostgreSqlSetting do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/migration_center/lib/google_api/migration_center/v1/model/sql_server_database_deployment.ex b/clients/migration_center/lib/google_api/migration_center/v1/model/sql_server_database_deployment.ex new file mode 100644 index 0000000000..0badbfeaaa --- /dev/null +++ b/clients/migration_center/lib/google_api/migration_center/v1/model/sql_server_database_deployment.ex @@ -0,0 +1,52 @@ +# 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.SqlServerDatabaseDeployment do + @moduledoc """ + Specific details for a Microsoft SQL Server database deployment. + + ## Attributes + + * `features` (*type:* `list(GoogleApi.MigrationCenter.V1.Model.SqlServerFeature.t)`, *default:* `nil`) - Optional. List of SQL Server features. + * `serverFlags` (*type:* `list(GoogleApi.MigrationCenter.V1.Model.SqlServerServerFlag.t)`, *default:* `nil`) - Optional. List of SQL Server server flags. + * `traceFlags` (*type:* `list(GoogleApi.MigrationCenter.V1.Model.SqlServerTraceFlag.t)`, *default:* `nil`) - Optional. List of SQL Server trace flags. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :features => list(GoogleApi.MigrationCenter.V1.Model.SqlServerFeature.t()) | nil, + :serverFlags => list(GoogleApi.MigrationCenter.V1.Model.SqlServerServerFlag.t()) | nil, + :traceFlags => list(GoogleApi.MigrationCenter.V1.Model.SqlServerTraceFlag.t()) | nil + } + + field(:features, as: GoogleApi.MigrationCenter.V1.Model.SqlServerFeature, type: :list) + field(:serverFlags, as: GoogleApi.MigrationCenter.V1.Model.SqlServerServerFlag, type: :list) + field(:traceFlags, as: GoogleApi.MigrationCenter.V1.Model.SqlServerTraceFlag, type: :list) +end + +defimpl Poison.Decoder, for: GoogleApi.MigrationCenter.V1.Model.SqlServerDatabaseDeployment do + def decode(value, options) do + GoogleApi.MigrationCenter.V1.Model.SqlServerDatabaseDeployment.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.MigrationCenter.V1.Model.SqlServerDatabaseDeployment do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/migration_center/lib/google_api/migration_center/v1/model/sql_server_feature.ex b/clients/migration_center/lib/google_api/migration_center/v1/model/sql_server_feature.ex new file mode 100644 index 0000000000..e459918644 --- /dev/null +++ b/clients/migration_center/lib/google_api/migration_center/v1/model/sql_server_feature.ex @@ -0,0 +1,49 @@ +# 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.SqlServerFeature do + @moduledoc """ + SQL Server feature details. + + ## Attributes + + * `enabled` (*type:* `boolean()`, *default:* `nil`) - Required. Field enabled is set when a feature is used on the source deployment. + * `featureName` (*type:* `String.t`, *default:* `nil`) - Required. The feature name. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :enabled => boolean() | nil, + :featureName => String.t() | nil + } + + field(:enabled) + field(:featureName) +end + +defimpl Poison.Decoder, for: GoogleApi.MigrationCenter.V1.Model.SqlServerFeature do + def decode(value, options) do + GoogleApi.MigrationCenter.V1.Model.SqlServerFeature.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.MigrationCenter.V1.Model.SqlServerFeature do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/migration_center/lib/google_api/migration_center/v1/model/sql_server_schema_details.ex b/clients/migration_center/lib/google_api/migration_center/v1/model/sql_server_schema_details.ex new file mode 100644 index 0000000000..9dd44d9a6a --- /dev/null +++ b/clients/migration_center/lib/google_api/migration_center/v1/model/sql_server_schema_details.ex @@ -0,0 +1,46 @@ +# 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.SqlServerSchemaDetails do + @moduledoc """ + Specific details for a SqlServer database. + + ## Attributes + + * `clrObjectCount` (*type:* `integer()`, *default:* `nil`) - Optional. SqlServer number of CLR objects. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :clrObjectCount => integer() | nil + } + + field(:clrObjectCount) +end + +defimpl Poison.Decoder, for: GoogleApi.MigrationCenter.V1.Model.SqlServerSchemaDetails do + def decode(value, options) do + GoogleApi.MigrationCenter.V1.Model.SqlServerSchemaDetails.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.MigrationCenter.V1.Model.SqlServerSchemaDetails do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/migration_center/lib/google_api/migration_center/v1/model/sql_server_server_flag.ex b/clients/migration_center/lib/google_api/migration_center/v1/model/sql_server_server_flag.ex new file mode 100644 index 0000000000..282a4c8512 --- /dev/null +++ b/clients/migration_center/lib/google_api/migration_center/v1/model/sql_server_server_flag.ex @@ -0,0 +1,52 @@ +# 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.SqlServerServerFlag do + @moduledoc """ + SQL Server server flag details. + + ## Attributes + + * `serverFlagName` (*type:* `String.t`, *default:* `nil`) - Required. The server flag name. + * `value` (*type:* `String.t`, *default:* `nil`) - Required. The server flag value set by the user. + * `valueInUse` (*type:* `String.t`, *default:* `nil`) - Required. The server flag actual value. If `value_in_use` is different from `value` it means that either the configuration change was not applied or it is an expected behavior. See SQL Server documentation for more details. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :serverFlagName => String.t() | nil, + :value => String.t() | nil, + :valueInUse => String.t() | nil + } + + field(:serverFlagName) + field(:value) + field(:valueInUse) +end + +defimpl Poison.Decoder, for: GoogleApi.MigrationCenter.V1.Model.SqlServerServerFlag do + def decode(value, options) do + GoogleApi.MigrationCenter.V1.Model.SqlServerServerFlag.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.MigrationCenter.V1.Model.SqlServerServerFlag do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/migration_center/lib/google_api/migration_center/v1/model/sql_server_trace_flag.ex b/clients/migration_center/lib/google_api/migration_center/v1/model/sql_server_trace_flag.ex new file mode 100644 index 0000000000..7cbd57d0a1 --- /dev/null +++ b/clients/migration_center/lib/google_api/migration_center/v1/model/sql_server_trace_flag.ex @@ -0,0 +1,49 @@ +# 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.SqlServerTraceFlag do + @moduledoc """ + SQL Server trace flag details. + + ## Attributes + + * `scope` (*type:* `String.t`, *default:* `nil`) - Required. The trace flag scope. + * `traceFlagName` (*type:* `String.t`, *default:* `nil`) - Required. The trace flag name. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :scope => String.t() | nil, + :traceFlagName => String.t() | nil + } + + field(:scope) + field(:traceFlagName) +end + +defimpl Poison.Decoder, for: GoogleApi.MigrationCenter.V1.Model.SqlServerTraceFlag do + def decode(value, options) do + GoogleApi.MigrationCenter.V1.Model.SqlServerTraceFlag.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.MigrationCenter.V1.Model.SqlServerTraceFlag do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/migration_center/mix.exs b/clients/migration_center/mix.exs index c046e4f549..ece4616061 100644 --- a/clients/migration_center/mix.exs +++ b/clients/migration_center/mix.exs @@ -18,7 +18,7 @@ defmodule GoogleApi.MigrationCenter.Mixfile do use Mix.Project - @version "0.6.0" + @version "0.7.0" def project() do [