Skip to content

Commit 6ebc9eb

Browse files
feat(datamigration): update the api
#### datamigration:v1 The following keys were added: - schemas.MachineConfig.properties.machineType.type (Total Keys: 1) - schemas.MigrationJob.properties.sqlserverToPostgresConfig.$ref (Total Keys: 1) - schemas.SqlServerConnectionProfile.properties.database.type (Total Keys: 1) - schemas.SqlServerSourceConfig (Total Keys: 8) - schemas.SqlServerToPostgresConfig (Total Keys: 4)
1 parent 51dd9cf commit 6ebc9eb

File tree

3 files changed

+121
-1
lines changed

3 files changed

+121
-1
lines changed

docs/dyn/datamigration_v1.projects.locations.connectionProfiles.html

+8
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,7 @@ <h3>Method Details</h3>
154154
},
155155
&quot;machineConfig&quot;: { # MachineConfig describes the configuration of a machine. # Configuration for the machines that host the underlying database engine.
156156
&quot;cpuCount&quot;: 42, # The number of CPU&#x27;s in the VM instance.
157+
&quot;machineType&quot;: &quot;A String&quot;, # Optional. Machine type of the VM instance. E.g. &quot;n2-highmem-4&quot;, &quot;n2-highmem-8&quot;, &quot;c4a-highmem-4-lssd&quot;. cpu_count must match the number of vCPUs in the machine type.
157158
},
158159
&quot;outboundPublicIpAddresses&quot;: [ # Output only. All outbound public IP addresses configured for the instance.
159160
&quot;A String&quot;,
@@ -314,6 +315,7 @@ <h3>Method Details</h3>
314315
&quot;gcsPrefix&quot;: &quot;A String&quot;, # Optional. Cloud Storage path inside the bucket that stores backups.
315316
},
316317
&quot;cloudSqlId&quot;: &quot;A String&quot;, # If the source is a Cloud SQL database, use this field to provide the Cloud SQL instance ID of the source.
318+
&quot;database&quot;: &quot;A String&quot;, # Required. The name of the specific database within the host.
317319
&quot;forwardSshConnectivity&quot;: { # Forward SSH Tunnel connectivity. # Forward SSH tunnel connectivity.
318320
&quot;hostname&quot;: &quot;A String&quot;, # Required. Hostname for the SSH tunnel.
319321
&quot;password&quot;: &quot;A String&quot;, # Input only. SSH password.
@@ -464,6 +466,7 @@ <h3>Method Details</h3>
464466
},
465467
&quot;machineConfig&quot;: { # MachineConfig describes the configuration of a machine. # Configuration for the machines that host the underlying database engine.
466468
&quot;cpuCount&quot;: 42, # The number of CPU&#x27;s in the VM instance.
469+
&quot;machineType&quot;: &quot;A String&quot;, # Optional. Machine type of the VM instance. E.g. &quot;n2-highmem-4&quot;, &quot;n2-highmem-8&quot;, &quot;c4a-highmem-4-lssd&quot;. cpu_count must match the number of vCPUs in the machine type.
467470
},
468471
&quot;outboundPublicIpAddresses&quot;: [ # Output only. All outbound public IP addresses configured for the instance.
469472
&quot;A String&quot;,
@@ -624,6 +627,7 @@ <h3>Method Details</h3>
624627
&quot;gcsPrefix&quot;: &quot;A String&quot;, # Optional. Cloud Storage path inside the bucket that stores backups.
625628
},
626629
&quot;cloudSqlId&quot;: &quot;A String&quot;, # If the source is a Cloud SQL database, use this field to provide the Cloud SQL instance ID of the source.
630+
&quot;database&quot;: &quot;A String&quot;, # Required. The name of the specific database within the host.
627631
&quot;forwardSshConnectivity&quot;: { # Forward SSH Tunnel connectivity. # Forward SSH tunnel connectivity.
628632
&quot;hostname&quot;: &quot;A String&quot;, # Required. Hostname for the SSH tunnel.
629633
&quot;password&quot;: &quot;A String&quot;, # Input only. SSH password.
@@ -759,6 +763,7 @@ <h3>Method Details</h3>
759763
},
760764
&quot;machineConfig&quot;: { # MachineConfig describes the configuration of a machine. # Configuration for the machines that host the underlying database engine.
761765
&quot;cpuCount&quot;: 42, # The number of CPU&#x27;s in the VM instance.
766+
&quot;machineType&quot;: &quot;A String&quot;, # Optional. Machine type of the VM instance. E.g. &quot;n2-highmem-4&quot;, &quot;n2-highmem-8&quot;, &quot;c4a-highmem-4-lssd&quot;. cpu_count must match the number of vCPUs in the machine type.
762767
},
763768
&quot;outboundPublicIpAddresses&quot;: [ # Output only. All outbound public IP addresses configured for the instance.
764769
&quot;A String&quot;,
@@ -919,6 +924,7 @@ <h3>Method Details</h3>
919924
&quot;gcsPrefix&quot;: &quot;A String&quot;, # Optional. Cloud Storage path inside the bucket that stores backups.
920925
},
921926
&quot;cloudSqlId&quot;: &quot;A String&quot;, # If the source is a Cloud SQL database, use this field to provide the Cloud SQL instance ID of the source.
927+
&quot;database&quot;: &quot;A String&quot;, # Required. The name of the specific database within the host.
922928
&quot;forwardSshConnectivity&quot;: { # Forward SSH Tunnel connectivity. # Forward SSH tunnel connectivity.
923929
&quot;hostname&quot;: &quot;A String&quot;, # Required. Hostname for the SSH tunnel.
924930
&quot;password&quot;: &quot;A String&quot;, # Input only. SSH password.
@@ -1015,6 +1021,7 @@ <h3>Method Details</h3>
10151021
},
10161022
&quot;machineConfig&quot;: { # MachineConfig describes the configuration of a machine. # Configuration for the machines that host the underlying database engine.
10171023
&quot;cpuCount&quot;: 42, # The number of CPU&#x27;s in the VM instance.
1024+
&quot;machineType&quot;: &quot;A String&quot;, # Optional. Machine type of the VM instance. E.g. &quot;n2-highmem-4&quot;, &quot;n2-highmem-8&quot;, &quot;c4a-highmem-4-lssd&quot;. cpu_count must match the number of vCPUs in the machine type.
10181025
},
10191026
&quot;outboundPublicIpAddresses&quot;: [ # Output only. All outbound public IP addresses configured for the instance.
10201027
&quot;A String&quot;,
@@ -1175,6 +1182,7 @@ <h3>Method Details</h3>
11751182
&quot;gcsPrefix&quot;: &quot;A String&quot;, # Optional. Cloud Storage path inside the bucket that stores backups.
11761183
},
11771184
&quot;cloudSqlId&quot;: &quot;A String&quot;, # If the source is a Cloud SQL database, use this field to provide the Cloud SQL instance ID of the source.
1185+
&quot;database&quot;: &quot;A String&quot;, # Required. The name of the specific database within the host.
11781186
&quot;forwardSshConnectivity&quot;: { # Forward SSH Tunnel connectivity. # Forward SSH tunnel connectivity.
11791187
&quot;hostname&quot;: &quot;A String&quot;, # Required. Hostname for the SSH tunnel.
11801188
&quot;password&quot;: &quot;A String&quot;, # Input only. SSH password.

docs/dyn/datamigration_v1.projects.locations.migrationJobs.html

+60
Original file line numberDiff line numberDiff line change
@@ -260,6 +260,18 @@ <h3>Method Details</h3>
260260
&quot;promoteWhenReady&quot;: True or False, # Optional. Promote databases when ready.
261261
&quot;useDiffBackup&quot;: True or False, # Optional. Enable differential backups.
262262
},
263+
&quot;sqlserverToPostgresConfig&quot;: { # Configuration for heterogeneous **SQL Server to Cloud SQL for PostgreSQL** migrations. # Configuration for heterogeneous **SQL Server to Cloud SQL for PostgreSQL** migrations.
264+
&quot;postgresDestinationConfig&quot;: { # Configuration for Postgres as a destination in a migration. # Optional. Configuration for Postgres destination.
265+
&quot;maxConcurrentConnections&quot;: 42, # Optional. Maximum number of connections Database Migration Service will open to the destination for data migration.
266+
&quot;transactionTimeout&quot;: &quot;A String&quot;, # Optional. Timeout for data migration transactions.
267+
},
268+
&quot;sqlserverSourceConfig&quot;: { # Configuration for SQL Server as a source in a migration. # Optional. Configuration for SQL Server source.
269+
&quot;cdcStartPosition&quot;: &quot;A String&quot;, # Optional. The log sequence number (LSN) to start CDC data migration from.
270+
&quot;maxConcurrentCdcConnections&quot;: 42, # Optional. Maximum number of connections Database Migration Service will open to the source for CDC phase.
271+
&quot;maxConcurrentFullDumpConnections&quot;: 42, # Optional. Maximum number of connections Database Migration Service will open to the source for full dump phase.
272+
&quot;skipFullDump&quot;: True or False, # Optional. Whether to skip full dump or not.
273+
},
274+
},
263275
&quot;state&quot;: &quot;A String&quot;, # The current migration job state.
264276
&quot;staticIpConnectivity&quot;: { # The source database will allow incoming connections from the public IP of the destination database. You can retrieve the public IP of the Cloud SQL instance from the Cloud SQL console or using Cloud SQL APIs. No additional configuration is required. # static ip connectivity data (default, no additional details needed).
265277
},
@@ -598,6 +610,18 @@ <h3>Method Details</h3>
598610
&quot;promoteWhenReady&quot;: True or False, # Optional. Promote databases when ready.
599611
&quot;useDiffBackup&quot;: True or False, # Optional. Enable differential backups.
600612
},
613+
&quot;sqlserverToPostgresConfig&quot;: { # Configuration for heterogeneous **SQL Server to Cloud SQL for PostgreSQL** migrations. # Configuration for heterogeneous **SQL Server to Cloud SQL for PostgreSQL** migrations.
614+
&quot;postgresDestinationConfig&quot;: { # Configuration for Postgres as a destination in a migration. # Optional. Configuration for Postgres destination.
615+
&quot;maxConcurrentConnections&quot;: 42, # Optional. Maximum number of connections Database Migration Service will open to the destination for data migration.
616+
&quot;transactionTimeout&quot;: &quot;A String&quot;, # Optional. Timeout for data migration transactions.
617+
},
618+
&quot;sqlserverSourceConfig&quot;: { # Configuration for SQL Server as a source in a migration. # Optional. Configuration for SQL Server source.
619+
&quot;cdcStartPosition&quot;: &quot;A String&quot;, # Optional. The log sequence number (LSN) to start CDC data migration from.
620+
&quot;maxConcurrentCdcConnections&quot;: 42, # Optional. Maximum number of connections Database Migration Service will open to the source for CDC phase.
621+
&quot;maxConcurrentFullDumpConnections&quot;: 42, # Optional. Maximum number of connections Database Migration Service will open to the source for full dump phase.
622+
&quot;skipFullDump&quot;: True or False, # Optional. Whether to skip full dump or not.
623+
},
624+
},
601625
&quot;state&quot;: &quot;A String&quot;, # The current migration job state.
602626
&quot;staticIpConnectivity&quot;: { # The source database will allow incoming connections from the public IP of the destination database. You can retrieve the public IP of the Cloud SQL instance from the Cloud SQL console or using Cloud SQL APIs. No additional configuration is required. # static ip connectivity data (default, no additional details needed).
603627
},
@@ -783,6 +807,18 @@ <h3>Method Details</h3>
783807
&quot;promoteWhenReady&quot;: True or False, # Optional. Promote databases when ready.
784808
&quot;useDiffBackup&quot;: True or False, # Optional. Enable differential backups.
785809
},
810+
&quot;sqlserverToPostgresConfig&quot;: { # Configuration for heterogeneous **SQL Server to Cloud SQL for PostgreSQL** migrations. # Configuration for heterogeneous **SQL Server to Cloud SQL for PostgreSQL** migrations.
811+
&quot;postgresDestinationConfig&quot;: { # Configuration for Postgres as a destination in a migration. # Optional. Configuration for Postgres destination.
812+
&quot;maxConcurrentConnections&quot;: 42, # Optional. Maximum number of connections Database Migration Service will open to the destination for data migration.
813+
&quot;transactionTimeout&quot;: &quot;A String&quot;, # Optional. Timeout for data migration transactions.
814+
},
815+
&quot;sqlserverSourceConfig&quot;: { # Configuration for SQL Server as a source in a migration. # Optional. Configuration for SQL Server source.
816+
&quot;cdcStartPosition&quot;: &quot;A String&quot;, # Optional. The log sequence number (LSN) to start CDC data migration from.
817+
&quot;maxConcurrentCdcConnections&quot;: 42, # Optional. Maximum number of connections Database Migration Service will open to the source for CDC phase.
818+
&quot;maxConcurrentFullDumpConnections&quot;: 42, # Optional. Maximum number of connections Database Migration Service will open to the source for full dump phase.
819+
&quot;skipFullDump&quot;: True or False, # Optional. Whether to skip full dump or not.
820+
},
821+
},
786822
&quot;state&quot;: &quot;A String&quot;, # The current migration job state.
787823
&quot;staticIpConnectivity&quot;: { # The source database will allow incoming connections from the public IP of the destination database. You can retrieve the public IP of the Cloud SQL instance from the Cloud SQL console or using Cloud SQL APIs. No additional configuration is required. # static ip connectivity data (default, no additional details needed).
788824
},
@@ -929,6 +965,18 @@ <h3>Method Details</h3>
929965
&quot;promoteWhenReady&quot;: True or False, # Optional. Promote databases when ready.
930966
&quot;useDiffBackup&quot;: True or False, # Optional. Enable differential backups.
931967
},
968+
&quot;sqlserverToPostgresConfig&quot;: { # Configuration for heterogeneous **SQL Server to Cloud SQL for PostgreSQL** migrations. # Configuration for heterogeneous **SQL Server to Cloud SQL for PostgreSQL** migrations.
969+
&quot;postgresDestinationConfig&quot;: { # Configuration for Postgres as a destination in a migration. # Optional. Configuration for Postgres destination.
970+
&quot;maxConcurrentConnections&quot;: 42, # Optional. Maximum number of connections Database Migration Service will open to the destination for data migration.
971+
&quot;transactionTimeout&quot;: &quot;A String&quot;, # Optional. Timeout for data migration transactions.
972+
},
973+
&quot;sqlserverSourceConfig&quot;: { # Configuration for SQL Server as a source in a migration. # Optional. Configuration for SQL Server source.
974+
&quot;cdcStartPosition&quot;: &quot;A String&quot;, # Optional. The log sequence number (LSN) to start CDC data migration from.
975+
&quot;maxConcurrentCdcConnections&quot;: 42, # Optional. Maximum number of connections Database Migration Service will open to the source for CDC phase.
976+
&quot;maxConcurrentFullDumpConnections&quot;: 42, # Optional. Maximum number of connections Database Migration Service will open to the source for full dump phase.
977+
&quot;skipFullDump&quot;: True or False, # Optional. Whether to skip full dump or not.
978+
},
979+
},
932980
&quot;state&quot;: &quot;A String&quot;, # The current migration job state.
933981
&quot;staticIpConnectivity&quot;: { # The source database will allow incoming connections from the public IP of the destination database. You can retrieve the public IP of the Cloud SQL instance from the Cloud SQL console or using Cloud SQL APIs. No additional configuration is required. # static ip connectivity data (default, no additional details needed).
934982
},
@@ -1436,6 +1484,18 @@ <h3>Method Details</h3>
14361484
&quot;promoteWhenReady&quot;: True or False, # Optional. Promote databases when ready.
14371485
&quot;useDiffBackup&quot;: True or False, # Optional. Enable differential backups.
14381486
},
1487+
&quot;sqlserverToPostgresConfig&quot;: { # Configuration for heterogeneous **SQL Server to Cloud SQL for PostgreSQL** migrations. # Configuration for heterogeneous **SQL Server to Cloud SQL for PostgreSQL** migrations.
1488+
&quot;postgresDestinationConfig&quot;: { # Configuration for Postgres as a destination in a migration. # Optional. Configuration for Postgres destination.
1489+
&quot;maxConcurrentConnections&quot;: 42, # Optional. Maximum number of connections Database Migration Service will open to the destination for data migration.
1490+
&quot;transactionTimeout&quot;: &quot;A String&quot;, # Optional. Timeout for data migration transactions.
1491+
},
1492+
&quot;sqlserverSourceConfig&quot;: { # Configuration for SQL Server as a source in a migration. # Optional. Configuration for SQL Server source.
1493+
&quot;cdcStartPosition&quot;: &quot;A String&quot;, # Optional. The log sequence number (LSN) to start CDC data migration from.
1494+
&quot;maxConcurrentCdcConnections&quot;: 42, # Optional. Maximum number of connections Database Migration Service will open to the source for CDC phase.
1495+
&quot;maxConcurrentFullDumpConnections&quot;: 42, # Optional. Maximum number of connections Database Migration Service will open to the source for full dump phase.
1496+
&quot;skipFullDump&quot;: True or False, # Optional. Whether to skip full dump or not.
1497+
},
1498+
},
14391499
&quot;state&quot;: &quot;A String&quot;, # The current migration job state.
14401500
&quot;staticIpConnectivity&quot;: { # The source database will allow incoming connections from the public IP of the destination database. You can retrieve the public IP of the Cloud SQL instance from the Cloud SQL console or using Cloud SQL APIs. No additional configuration is required. # static ip connectivity data (default, no additional details needed).
14411501
},

googleapiclient/discovery_cache/documents/datamigration.v1.json

+53-1
Original file line numberDiff line numberDiff line change
@@ -2334,7 +2334,7 @@
23342334
}
23352335
}
23362336
},
2337-
"revision": "20250226",
2337+
"revision": "20250319",
23382338
"rootUrl": "https://datamigration.googleapis.com/",
23392339
"schemas": {
23402340
"AlloyDbConnectionProfile": {
@@ -4591,6 +4591,10 @@
45914591
"description": "The number of CPU's in the VM instance.",
45924592
"format": "int32",
45934593
"type": "integer"
4594+
},
4595+
"machineType": {
4596+
"description": "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.",
4597+
"type": "string"
45944598
}
45954599
},
45964600
"type": "object"
@@ -4931,6 +4935,10 @@
49314935
"$ref": "SqlServerHomogeneousMigrationJobConfig",
49324936
"description": "Optional. Configuration for SQL Server homogeneous migration."
49334937
},
4938+
"sqlserverToPostgresConfig": {
4939+
"$ref": "SqlServerToPostgresConfig",
4940+
"description": "Configuration for heterogeneous **SQL Server to Cloud SQL for PostgreSQL** migrations."
4941+
},
49344942
"state": {
49354943
"description": "The current migration job state.",
49364944
"enum": [
@@ -6368,6 +6376,10 @@
63686376
"description": "If the source is a Cloud SQL database, use this field to provide the Cloud SQL instance ID of the source.",
63696377
"type": "string"
63706378
},
6379+
"database": {
6380+
"description": "Required. The name of the specific database within the host.",
6381+
"type": "string"
6382+
},
63716383
"forwardSshConnectivity": {
63726384
"$ref": "ForwardSshTunnelConnectivity",
63736385
"description": "Forward SSH tunnel connectivity."
@@ -6473,6 +6485,46 @@
64736485
},
64746486
"type": "object"
64756487
},
6488+
"SqlServerSourceConfig": {
6489+
"description": "Configuration for SQL Server as a source in a migration.",
6490+
"id": "SqlServerSourceConfig",
6491+
"properties": {
6492+
"cdcStartPosition": {
6493+
"description": "Optional. The log sequence number (LSN) to start CDC data migration from.",
6494+
"type": "string"
6495+
},
6496+
"maxConcurrentCdcConnections": {
6497+
"description": "Optional. Maximum number of connections Database Migration Service will open to the source for CDC phase.",
6498+
"format": "int32",
6499+
"type": "integer"
6500+
},
6501+
"maxConcurrentFullDumpConnections": {
6502+
"description": "Optional. Maximum number of connections Database Migration Service will open to the source for full dump phase.",
6503+
"format": "int32",
6504+
"type": "integer"
6505+
},
6506+
"skipFullDump": {
6507+
"description": "Optional. Whether to skip full dump or not.",
6508+
"type": "boolean"
6509+
}
6510+
},
6511+
"type": "object"
6512+
},
6513+
"SqlServerToPostgresConfig": {
6514+
"description": "Configuration for heterogeneous **SQL Server to Cloud SQL for PostgreSQL** migrations.",
6515+
"id": "SqlServerToPostgresConfig",
6516+
"properties": {
6517+
"postgresDestinationConfig": {
6518+
"$ref": "PostgresDestinationConfig",
6519+
"description": "Optional. Configuration for Postgres destination."
6520+
},
6521+
"sqlserverSourceConfig": {
6522+
"$ref": "SqlServerSourceConfig",
6523+
"description": "Optional. Configuration for SQL Server source."
6524+
}
6525+
},
6526+
"type": "object"
6527+
},
64766528
"SshScript": {
64776529
"description": "Response message for 'GenerateSshScript' request.",
64786530
"id": "SshScript",

0 commit comments

Comments
 (0)