Skip to content

Commit da9505d

Browse files
feat(datamigration): update the API
#### datamigration:v1beta1 The following keys were added: - resources.projects.resources.locations.methods.list.parameters.extraLocationTypes.description - resources.projects.resources.locations.methods.list.parameters.extraLocationTypes.location - resources.projects.resources.locations.methods.list.parameters.extraLocationTypes.repeated - resources.projects.resources.locations.methods.list.parameters.extraLocationTypes.type #### datamigration:v1 The following keys were added: - resources.projects.resources.locations.methods.list.parameters.extraLocationTypes.description - resources.projects.resources.locations.methods.list.parameters.extraLocationTypes.location - resources.projects.resources.locations.methods.list.parameters.extraLocationTypes.repeated - resources.projects.resources.locations.methods.list.parameters.extraLocationTypes.type - schemas.MachineConfig.properties.machineType.description - schemas.MachineConfig.properties.machineType.type - schemas.MigrationJob.properties.sqlserverToPostgresConfig.$ref - schemas.MigrationJob.properties.sqlserverToPostgresConfig.description - schemas.SourceObjectIdentifier.properties.schema.description - schemas.SourceObjectIdentifier.properties.schema.type - schemas.SourceObjectIdentifier.properties.table.description - schemas.SourceObjectIdentifier.properties.table.type - schemas.SqlServerConnectionProfile.properties.database.description - schemas.SqlServerConnectionProfile.properties.database.type - schemas.SqlServerSourceConfig.description - schemas.SqlServerSourceConfig.id - schemas.SqlServerSourceConfig.properties.cdcStartPosition.description - schemas.SqlServerSourceConfig.properties.cdcStartPosition.type - schemas.SqlServerSourceConfig.properties.maxConcurrentCdcConnections.description - schemas.SqlServerSourceConfig.properties.maxConcurrentCdcConnections.format - schemas.SqlServerSourceConfig.properties.maxConcurrentCdcConnections.type - schemas.SqlServerSourceConfig.properties.maxConcurrentFullDumpConnections.description - schemas.SqlServerSourceConfig.properties.maxConcurrentFullDumpConnections.format - schemas.SqlServerSourceConfig.properties.maxConcurrentFullDumpConnections.type - schemas.SqlServerSourceConfig.properties.skipFullDump.description - schemas.SqlServerSourceConfig.properties.skipFullDump.type - schemas.SqlServerSourceConfig.type - schemas.SqlServerToPostgresConfig.description - schemas.SqlServerToPostgresConfig.id - schemas.SqlServerToPostgresConfig.properties.postgresDestinationConfig.$ref - schemas.SqlServerToPostgresConfig.properties.postgresDestinationConfig.description - schemas.SqlServerToPostgresConfig.properties.sqlserverSourceConfig.$ref - schemas.SqlServerToPostgresConfig.properties.sqlserverSourceConfig.description - schemas.SqlServerToPostgresConfig.type The following keys were changed: - schemas.SourceObjectIdentifier.properties.type.enum - schemas.SourceObjectIdentifier.properties.type.enumDescriptions
1 parent aa5f7d4 commit da9505d

File tree

4 files changed

+142
-4
lines changed

4 files changed

+142
-4
lines changed

‎discovery/datamigration-v1.json

Lines changed: 73 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,12 @@
179179
"name"
180180
],
181181
"parameters": {
182+
"extraLocationTypes": {
183+
"description": "Optional. A list of extra location types that should be used as conditions for controlling the visibility of the locations.",
184+
"location": "query",
185+
"repeated": true,
186+
"type": "string"
187+
},
182188
"filter": {
183189
"description": "A filter to narrow down results to a preferred subset. The filtering language accepts strings like `\"displayName=tokyo\"`, and is documented in more detail in [AIP-160](https://google.aip.dev/160).",
184190
"location": "query",
@@ -2334,7 +2340,7 @@
23342340
}
23352341
}
23362342
},
2337-
"revision": "20250226",
2343+
"revision": "20250416",
23382344
"rootUrl": "https://datamigration.googleapis.com/",
23392345
"schemas": {
23402346
"AlloyDbConnectionProfile": {
@@ -4591,6 +4597,10 @@
45914597
"description": "The number of CPU's in the VM instance.",
45924598
"format": "int32",
45934599
"type": "integer"
4600+
},
4601+
"machineType": {
4602+
"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.",
4603+
"type": "string"
45944604
}
45954605
},
45964606
"type": "object"
@@ -4931,6 +4941,10 @@
49314941
"$ref": "SqlServerHomogeneousMigrationJobConfig",
49324942
"description": "Optional. Configuration for SQL Server homogeneous migration."
49334943
},
4944+
"sqlserverToPostgresConfig": {
4945+
"$ref": "SqlServerToPostgresConfig",
4946+
"description": "Configuration for heterogeneous **SQL Server to Cloud SQL for PostgreSQL** migrations."
4947+
},
49344948
"state": {
49354949
"description": "The current migration job state.",
49364950
"enum": [
@@ -6215,15 +6229,27 @@
62156229
"description": "Optional. The database name. This will be required only if the object uses a database name as part of its unique identifier.",
62166230
"type": "string"
62176231
},
6232+
"schema": {
6233+
"description": "Optional. The schema name. This will be required only if the object uses a schema name as part of its unique identifier.",
6234+
"type": "string"
6235+
},
6236+
"table": {
6237+
"description": "Optional. The table name. This will be required only if the object is a level below database or schema.",
6238+
"type": "string"
6239+
},
62186240
"type": {
62196241
"description": "Required. The type of the migration job object.",
62206242
"enum": [
62216243
"MIGRATION_JOB_OBJECT_TYPE_UNSPECIFIED",
6222-
"DATABASE"
6244+
"DATABASE",
6245+
"SCHEMA",
6246+
"TABLE"
62236247
],
62246248
"enumDescriptions": [
62256249
"The type of the migration job object is unknown.",
6226-
"The migration job object is a database."
6250+
"The migration job object is a database.",
6251+
"The migration job object is a schema.",
6252+
"The migration job object is a table."
62276253
],
62286254
"type": "string"
62296255
}
@@ -6368,6 +6394,10 @@
63686394
"description": "If the source is a Cloud SQL database, use this field to provide the Cloud SQL instance ID of the source.",
63696395
"type": "string"
63706396
},
6397+
"database": {
6398+
"description": "Required. The name of the specific database within the host.",
6399+
"type": "string"
6400+
},
63716401
"forwardSshConnectivity": {
63726402
"$ref": "ForwardSshTunnelConnectivity",
63736403
"description": "Forward SSH tunnel connectivity."
@@ -6473,6 +6503,46 @@
64736503
},
64746504
"type": "object"
64756505
},
6506+
"SqlServerSourceConfig": {
6507+
"description": "Configuration for SQL Server as a source in a migration.",
6508+
"id": "SqlServerSourceConfig",
6509+
"properties": {
6510+
"cdcStartPosition": {
6511+
"description": "Optional. The log sequence number (LSN) to start CDC data migration from.",
6512+
"type": "string"
6513+
},
6514+
"maxConcurrentCdcConnections": {
6515+
"description": "Optional. Maximum number of connections Database Migration Service will open to the source for CDC phase.",
6516+
"format": "int32",
6517+
"type": "integer"
6518+
},
6519+
"maxConcurrentFullDumpConnections": {
6520+
"description": "Optional. Maximum number of connections Database Migration Service will open to the source for full dump phase.",
6521+
"format": "int32",
6522+
"type": "integer"
6523+
},
6524+
"skipFullDump": {
6525+
"description": "Optional. Whether to skip full dump or not.",
6526+
"type": "boolean"
6527+
}
6528+
},
6529+
"type": "object"
6530+
},
6531+
"SqlServerToPostgresConfig": {
6532+
"description": "Configuration for heterogeneous **SQL Server to Cloud SQL for PostgreSQL** migrations.",
6533+
"id": "SqlServerToPostgresConfig",
6534+
"properties": {
6535+
"postgresDestinationConfig": {
6536+
"$ref": "PostgresDestinationConfig",
6537+
"description": "Optional. Configuration for Postgres destination."
6538+
},
6539+
"sqlserverSourceConfig": {
6540+
"$ref": "SqlServerSourceConfig",
6541+
"description": "Optional. Configuration for SQL Server source."
6542+
}
6543+
},
6544+
"type": "object"
6545+
},
64766546
"SshScript": {
64776547
"description": "Response message for 'GenerateSshScript' request.",
64786548
"id": "SshScript",

‎discovery/datamigration-v1beta1.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,12 @@
143143
"name"
144144
],
145145
"parameters": {
146+
"extraLocationTypes": {
147+
"description": "Optional. A list of extra location types that should be used as conditions for controlling the visibility of the locations.",
148+
"location": "query",
149+
"repeated": true,
150+
"type": "string"
151+
},
146152
"filter": {
147153
"description": "A filter to narrow down results to a preferred subset. The filtering language accepts strings like `\"displayName=tokyo\"`, and is documented in more detail in [AIP-160](https://google.aip.dev/160).",
148154
"location": "query",
@@ -1049,7 +1055,7 @@
10491055
}
10501056
}
10511057
},
1052-
"revision": "20241202",
1058+
"revision": "20250409",
10531059
"rootUrl": "https://datamigration.googleapis.com/",
10541060
"schemas": {
10551061
"AuditConfig": {

‎src/apis/datamigration/v1.ts

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1509,6 +1509,10 @@ export namespace datamigration_v1 {
15091509
* The number of CPU's in the VM instance.
15101510
*/
15111511
cpuCount?: number | null;
1512+
/**
1513+
* 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.
1514+
*/
1515+
machineType?: string | null;
15121516
}
15131517
/**
15141518
* Definition of a transformation that is to be applied to a group of entities in the source schema. Several such transformations can be applied to an entity sequentially to define the corresponding entity in the target schema.
@@ -1737,6 +1741,10 @@ export namespace datamigration_v1 {
17371741
* Optional. Configuration for SQL Server homogeneous migration.
17381742
*/
17391743
sqlserverHomogeneousMigrationJobConfig?: Schema$SqlServerHomogeneousMigrationJobConfig;
1744+
/**
1745+
* Configuration for heterogeneous **SQL Server to Cloud SQL for PostgreSQL** migrations.
1746+
*/
1747+
sqlserverToPostgresConfig?: Schema$SqlServerToPostgresConfig;
17401748
/**
17411749
* The current migration job state.
17421750
*/
@@ -2601,6 +2609,14 @@ export namespace datamigration_v1 {
26012609
* Optional. The database name. This will be required only if the object uses a database name as part of its unique identifier.
26022610
*/
26032611
database?: string | null;
2612+
/**
2613+
* Optional. The schema name. This will be required only if the object uses a schema name as part of its unique identifier.
2614+
*/
2615+
schema?: string | null;
2616+
/**
2617+
* Optional. The table name. This will be required only if the object is a level below database or schema.
2618+
*/
2619+
table?: string | null;
26042620
/**
26052621
* Required. The type of the migration job object.
26062622
*/
@@ -2712,6 +2728,10 @@ export namespace datamigration_v1 {
27122728
* If the source is a Cloud SQL database, use this field to provide the Cloud SQL instance ID of the source.
27132729
*/
27142730
cloudSqlId?: string | null;
2731+
/**
2732+
* Required. The name of the specific database within the host.
2733+
*/
2734+
database?: string | null;
27152735
/**
27162736
* Forward SSH tunnel connectivity.
27172737
*/
@@ -2804,6 +2824,40 @@ export namespace datamigration_v1 {
28042824
*/
28052825
useDiffBackup?: boolean | null;
28062826
}
2827+
/**
2828+
* Configuration for SQL Server as a source in a migration.
2829+
*/
2830+
export interface Schema$SqlServerSourceConfig {
2831+
/**
2832+
* Optional. The log sequence number (LSN) to start CDC data migration from.
2833+
*/
2834+
cdcStartPosition?: string | null;
2835+
/**
2836+
* Optional. Maximum number of connections Database Migration Service will open to the source for CDC phase.
2837+
*/
2838+
maxConcurrentCdcConnections?: number | null;
2839+
/**
2840+
* Optional. Maximum number of connections Database Migration Service will open to the source for full dump phase.
2841+
*/
2842+
maxConcurrentFullDumpConnections?: number | null;
2843+
/**
2844+
* Optional. Whether to skip full dump or not.
2845+
*/
2846+
skipFullDump?: boolean | null;
2847+
}
2848+
/**
2849+
* Configuration for heterogeneous **SQL Server to Cloud SQL for PostgreSQL** migrations.
2850+
*/
2851+
export interface Schema$SqlServerToPostgresConfig {
2852+
/**
2853+
* Optional. Configuration for Postgres destination.
2854+
*/
2855+
postgresDestinationConfig?: Schema$PostgresDestinationConfig;
2856+
/**
2857+
* Optional. Configuration for SQL Server source.
2858+
*/
2859+
sqlserverSourceConfig?: Schema$SqlServerSourceConfig;
2860+
}
28072861
/**
28082862
* Response message for 'GenerateSshScript' request.
28092863
*/
@@ -3491,6 +3545,10 @@ export namespace datamigration_v1 {
34913545
}
34923546
export interface Params$Resource$Projects$Locations$List
34933547
extends StandardParameters {
3548+
/**
3549+
* Optional. A list of extra location types that should be used as conditions for controlling the visibility of the locations.
3550+
*/
3551+
extraLocationTypes?: string[];
34943552
/**
34953553
* A filter to narrow down results to a preferred subset. The filtering language accepts strings like `"displayName=tokyo"`, and is documented in more detail in [AIP-160](https://google.aip.dev/160).
34963554
*/

‎src/apis/datamigration/v1beta1.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1073,6 +1073,10 @@ export namespace datamigration_v1beta1 {
10731073
}
10741074
export interface Params$Resource$Projects$Locations$List
10751075
extends StandardParameters {
1076+
/**
1077+
* Optional. A list of extra location types that should be used as conditions for controlling the visibility of the locations.
1078+
*/
1079+
extraLocationTypes?: string[];
10761080
/**
10771081
* A filter to narrow down results to a preferred subset. The filtering language accepts strings like `"displayName=tokyo"`, and is documented in more detail in [AIP-160](https://google.aip.dev/160).
10781082
*/

0 commit comments

Comments
 (0)