Skip to content

Commit 0de9193

Browse files
feat: Automated regeneration of DataMigration client (googleapis#13229)
Auto-created at 2025-03-27 13:15:10 +0000 using the toys pull request generator.
1 parent 3c06efb commit 0de9193

File tree

6 files changed

+120
-2
lines changed

6 files changed

+120
-2
lines changed

clients/data_migration/lib/google_api/data_migration/v1/metadata.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ defmodule GoogleApi.DataMigration.V1 do
2020
API client metadata for GoogleApi.DataMigration.V1.
2121
"""
2222

23-
@discovery_revision "20250226"
23+
@discovery_revision "20250319"
2424

2525
def discovery_revision(), do: @discovery_revision
2626
end

clients/data_migration/lib/google_api/data_migration/v1/model/machine_config.ex

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,18 @@ defmodule GoogleApi.DataMigration.V1.Model.MachineConfig do
2222
## Attributes
2323
2424
* `cpuCount` (*type:* `integer()`, *default:* `nil`) - The number of CPU's in the VM instance.
25+
* `machineType` (*type:* `String.t`, *default:* `nil`) - Optional. Machine type of the VM instance. E.g. "n2-highmem-4", "n2-highmem-8", "c4a-highmem-4-lssd". cpu_count must match the number of vCPUs in the machine type.
2526
"""
2627

2728
use GoogleApi.Gax.ModelBase
2829

2930
@type t :: %__MODULE__{
30-
:cpuCount => integer() | nil
31+
:cpuCount => integer() | nil,
32+
:machineType => String.t() | nil
3133
}
3234

3335
field(:cpuCount)
36+
field(:machineType)
3437
end
3538

3639
defimpl Poison.Decoder, for: GoogleApi.DataMigration.V1.Model.MachineConfig do

clients/data_migration/lib/google_api/data_migration/v1/model/migration_job.ex

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ defmodule GoogleApi.DataMigration.V1.Model.MigrationJob do
4646
* `source` (*type:* `String.t`, *default:* `nil`) - Required. The resource name (URI) of the source connection profile.
4747
* `sourceDatabase` (*type:* `GoogleApi.DataMigration.V1.Model.DatabaseType.t`, *default:* `nil`) - The database engine type and provider of the source.
4848
* `sqlserverHomogeneousMigrationJobConfig` (*type:* `GoogleApi.DataMigration.V1.Model.SqlServerHomogeneousMigrationJobConfig.t`, *default:* `nil`) - Optional. Configuration for SQL Server homogeneous migration.
49+
* `sqlserverToPostgresConfig` (*type:* `GoogleApi.DataMigration.V1.Model.SqlServerToPostgresConfig.t`, *default:* `nil`) - Configuration for heterogeneous **SQL Server to Cloud SQL for PostgreSQL** migrations.
4950
* `state` (*type:* `String.t`, *default:* `nil`) - The current migration job state.
5051
* `staticIpConnectivity` (*type:* `GoogleApi.DataMigration.V1.Model.StaticIpConnectivity.t`, *default:* `nil`) - static ip connectivity data (default, no additional details needed).
5152
* `type` (*type:* `String.t`, *default:* `nil`) - Required. The migration job type.
@@ -85,6 +86,8 @@ defmodule GoogleApi.DataMigration.V1.Model.MigrationJob do
8586
:sourceDatabase => GoogleApi.DataMigration.V1.Model.DatabaseType.t() | nil,
8687
:sqlserverHomogeneousMigrationJobConfig =>
8788
GoogleApi.DataMigration.V1.Model.SqlServerHomogeneousMigrationJobConfig.t() | nil,
89+
:sqlserverToPostgresConfig =>
90+
GoogleApi.DataMigration.V1.Model.SqlServerToPostgresConfig.t() | nil,
8891
:state => String.t() | nil,
8992
:staticIpConnectivity =>
9093
GoogleApi.DataMigration.V1.Model.StaticIpConnectivity.t() | nil,
@@ -123,6 +126,8 @@ defmodule GoogleApi.DataMigration.V1.Model.MigrationJob do
123126
as: GoogleApi.DataMigration.V1.Model.SqlServerHomogeneousMigrationJobConfig
124127
)
125128

129+
field(:sqlserverToPostgresConfig, as: GoogleApi.DataMigration.V1.Model.SqlServerToPostgresConfig)
130+
126131
field(:state)
127132
field(:staticIpConnectivity, as: GoogleApi.DataMigration.V1.Model.StaticIpConnectivity)
128133
field(:type)

clients/data_migration/lib/google_api/data_migration/v1/model/sql_server_connection_profile.ex

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ defmodule GoogleApi.DataMigration.V1.Model.SqlServerConnectionProfile do
2323
2424
* `backups` (*type:* `GoogleApi.DataMigration.V1.Model.SqlServerBackups.t`, *default:* `nil`) - The backup details in Cloud Storage for homogeneous migration to Cloud SQL for SQL Server.
2525
* `cloudSqlId` (*type:* `String.t`, *default:* `nil`) - If the source is a Cloud SQL database, use this field to provide the Cloud SQL instance ID of the source.
26+
* `database` (*type:* `String.t`, *default:* `nil`) - Required. The name of the specific database within the host.
2627
* `forwardSshConnectivity` (*type:* `GoogleApi.DataMigration.V1.Model.ForwardSshTunnelConnectivity.t`, *default:* `nil`) - Forward SSH tunnel connectivity.
2728
* `host` (*type:* `String.t`, *default:* `nil`) - Required. The IP or hostname of the source SQL Server database.
2829
* `password` (*type:* `String.t`, *default:* `nil`) - Required. Input only. The password for the user that Database Migration Service will be using to connect to the database. This field is not returned on request, and the value is encrypted when stored in Database Migration Service.
@@ -40,6 +41,7 @@ defmodule GoogleApi.DataMigration.V1.Model.SqlServerConnectionProfile do
4041
@type t :: %__MODULE__{
4142
:backups => GoogleApi.DataMigration.V1.Model.SqlServerBackups.t() | nil,
4243
:cloudSqlId => String.t() | nil,
44+
:database => String.t() | nil,
4345
:forwardSshConnectivity =>
4446
GoogleApi.DataMigration.V1.Model.ForwardSshTunnelConnectivity.t() | nil,
4547
:host => String.t() | nil,
@@ -57,6 +59,7 @@ defmodule GoogleApi.DataMigration.V1.Model.SqlServerConnectionProfile do
5759

5860
field(:backups, as: GoogleApi.DataMigration.V1.Model.SqlServerBackups)
5961
field(:cloudSqlId)
62+
field(:database)
6063

6164
field(:forwardSshConnectivity, as: GoogleApi.DataMigration.V1.Model.ForwardSshTunnelConnectivity)
6265

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
# Copyright 2019 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
# NOTE: This file is auto generated by the elixir code generator program.
16+
# Do not edit this file manually.
17+
18+
defmodule GoogleApi.DataMigration.V1.Model.SqlServerSourceConfig do
19+
@moduledoc """
20+
Configuration for SQL Server as a source in a migration.
21+
22+
## Attributes
23+
24+
* `cdcStartPosition` (*type:* `String.t`, *default:* `nil`) - Optional. The log sequence number (LSN) to start CDC data migration from.
25+
* `maxConcurrentCdcConnections` (*type:* `integer()`, *default:* `nil`) - Optional. Maximum number of connections Database Migration Service will open to the source for CDC phase.
26+
* `maxConcurrentFullDumpConnections` (*type:* `integer()`, *default:* `nil`) - Optional. Maximum number of connections Database Migration Service will open to the source for full dump phase.
27+
* `skipFullDump` (*type:* `boolean()`, *default:* `nil`) - Optional. Whether to skip full dump or not.
28+
"""
29+
30+
use GoogleApi.Gax.ModelBase
31+
32+
@type t :: %__MODULE__{
33+
:cdcStartPosition => String.t() | nil,
34+
:maxConcurrentCdcConnections => integer() | nil,
35+
:maxConcurrentFullDumpConnections => integer() | nil,
36+
:skipFullDump => boolean() | nil
37+
}
38+
39+
field(:cdcStartPosition)
40+
field(:maxConcurrentCdcConnections)
41+
field(:maxConcurrentFullDumpConnections)
42+
field(:skipFullDump)
43+
end
44+
45+
defimpl Poison.Decoder, for: GoogleApi.DataMigration.V1.Model.SqlServerSourceConfig do
46+
def decode(value, options) do
47+
GoogleApi.DataMigration.V1.Model.SqlServerSourceConfig.decode(value, options)
48+
end
49+
end
50+
51+
defimpl Poison.Encoder, for: GoogleApi.DataMigration.V1.Model.SqlServerSourceConfig do
52+
def encode(value, options) do
53+
GoogleApi.Gax.ModelBase.encode(value, options)
54+
end
55+
end
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
# Copyright 2019 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
# NOTE: This file is auto generated by the elixir code generator program.
16+
# Do not edit this file manually.
17+
18+
defmodule GoogleApi.DataMigration.V1.Model.SqlServerToPostgresConfig do
19+
@moduledoc """
20+
Configuration for heterogeneous **SQL Server to Cloud SQL for PostgreSQL** migrations.
21+
22+
## Attributes
23+
24+
* `postgresDestinationConfig` (*type:* `GoogleApi.DataMigration.V1.Model.PostgresDestinationConfig.t`, *default:* `nil`) - Optional. Configuration for Postgres destination.
25+
* `sqlserverSourceConfig` (*type:* `GoogleApi.DataMigration.V1.Model.SqlServerSourceConfig.t`, *default:* `nil`) - Optional. Configuration for SQL Server source.
26+
"""
27+
28+
use GoogleApi.Gax.ModelBase
29+
30+
@type t :: %__MODULE__{
31+
:postgresDestinationConfig =>
32+
GoogleApi.DataMigration.V1.Model.PostgresDestinationConfig.t() | nil,
33+
:sqlserverSourceConfig =>
34+
GoogleApi.DataMigration.V1.Model.SqlServerSourceConfig.t() | nil
35+
}
36+
37+
field(:postgresDestinationConfig, as: GoogleApi.DataMigration.V1.Model.PostgresDestinationConfig)
38+
39+
field(:sqlserverSourceConfig, as: GoogleApi.DataMigration.V1.Model.SqlServerSourceConfig)
40+
end
41+
42+
defimpl Poison.Decoder, for: GoogleApi.DataMigration.V1.Model.SqlServerToPostgresConfig do
43+
def decode(value, options) do
44+
GoogleApi.DataMigration.V1.Model.SqlServerToPostgresConfig.decode(value, options)
45+
end
46+
end
47+
48+
defimpl Poison.Encoder, for: GoogleApi.DataMigration.V1.Model.SqlServerToPostgresConfig do
49+
def encode(value, options) do
50+
GoogleApi.Gax.ModelBase.encode(value, options)
51+
end
52+
end

0 commit comments

Comments
 (0)