Skip to content

Commit f59dfc0

Browse files
yoshi-automationsofisl
authored andcommitted
feat(sqladmin)!: update the API
BREAKING CHANGE: This release has breaking changes. #### sqladmin:v1beta4 The following keys were deleted: - schemas.CloneContext.properties.preferredSecondaryZone.description - schemas.CloneContext.properties.preferredSecondaryZone.type The following keys were added: - schemas.Settings.properties.enableDataplexIntegration.description - schemas.Settings.properties.enableDataplexIntegration.type The following keys were changed: - schemas.MaintenanceWindow.properties.day.description - schemas.MaintenanceWindow.properties.hour.description - schemas.MaintenanceWindow.properties.updateTrack.description - schemas.MaintenanceWindow.properties.updateTrack.enumDescriptions - schemas.SqlExternalSyncSettingError.properties.type.enum - schemas.SqlExternalSyncSettingError.properties.type.enumDescriptions #### sqladmin:v1 The following keys were added: - schemas.Settings.properties.enableDataplexIntegration.description - schemas.Settings.properties.enableDataplexIntegration.type The following keys were changed: - schemas.MaintenanceWindow.properties.day.description - schemas.MaintenanceWindow.properties.hour.description - schemas.MaintenanceWindow.properties.updateTrack.description - schemas.MaintenanceWindow.properties.updateTrack.enumDescriptions - schemas.SqlExternalSyncSettingError.properties.type.enum - schemas.SqlExternalSyncSettingError.properties.type.enumDescriptions
1 parent e8db575 commit f59dfc0

File tree

4 files changed

+56
-32
lines changed

4 files changed

+56
-32
lines changed

discovery/sqladmin-v1.json

Lines changed: 21 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2267,7 +2267,7 @@
22672267
}
22682268
}
22692269
},
2270-
"revision": "20240521",
2270+
"revision": "20240618",
22712271
"rootUrl": "https://sqladmin.googleapis.com/",
22722272
"schemas": {
22732273
"AclEntry": {
@@ -4544,12 +4544,12 @@
45444544
"id": "MaintenanceWindow",
45454545
"properties": {
45464546
"day": {
4547-
"description": "day of week (1-7), starting on Monday.",
4547+
"description": "Day of week - `MONDAY`, `TUESDAY`, `WEDNESDAY`, `THURSDAY`, `FRIDAY`, `SATURDAY`, or `SUNDAY`. Specify in the UTC time zone. Returned in output as an integer, 1 to 7, where `1` equals Monday.",
45484548
"format": "int32",
45494549
"type": "integer"
45504550
},
45514551
"hour": {
4552-
"description": "hour of day - 0 to 23.",
4552+
"description": "Hour of day - 0 to 23. Specify in the UTC time zone.",
45534553
"format": "int32",
45544554
"type": "integer"
45554555
},
@@ -4558,7 +4558,7 @@
45584558
"type": "string"
45594559
},
45604560
"updateTrack": {
4561-
"description": "Maintenance timing setting: `canary` (Earlier) or `stable` (Later). [Learn more](https://cloud.google.com/sql/docs/mysql/instance-settings#maintenance-timing-2ndgen).",
4561+
"description": "Maintenance timing settings: `canary`, `stable`, or `week5`. For more information, see [About maintenance on Cloud SQL instances](https://cloud.google.com/sql/docs/mysql/maintenance).",
45624562
"enum": [
45634563
"SQL_UPDATE_TRACK_UNSPECIFIED",
45644564
"canary",
@@ -4567,9 +4567,9 @@
45674567
],
45684568
"enumDescriptions": [
45694569
"This is an unknown maintenance timing preference.",
4570-
"For instance update that requires a restart, this update track indicates your instance prefer to restart for new version early in maintenance window.",
4571-
"For instance update that requires a restart, this update track indicates your instance prefer to let Cloud SQL choose the timing of restart (within its Maintenance window, if applicable).",
4572-
"For instance update that requires a restart, this update track indicates your instance prefer to let Cloud SQL choose the timing of restart (within its Maintenance window, if applicable) to be at least 5 weeks after the notification."
4570+
"For an instance with a scheduled maintenance window, this maintenance timing indicates that the maintenance update is scheduled 7 to 14 days after the notification is sent out. Also referred to as `Week 1` (Console) and `preview` (gcloud CLI).",
4571+
"For an instance with a scheduled maintenance window, this maintenance timing indicates that the maintenance update is scheduled 15 to 21 days after the notification is sent out. Also referred to as `Week 2` (Console) and `production` (gcloud CLI).",
4572+
"For instance with a scheduled maintenance window, this maintenance timing indicates that the maintenance update is scheduled 35 to 42 days after the notification is sent out."
45734573
],
45744574
"type": "string"
45754575
}
@@ -5376,6 +5376,10 @@
53765376
],
53775377
"type": "string"
53785378
},
5379+
"enableDataplexIntegration": {
5380+
"description": "Optional. By default, Cloud SQL instances have schema extraction disabled for Dataplex. When this parameter is set to true, schema extraction for Dataplex on Cloud SQL instances is activated.",
5381+
"type": "boolean"
5382+
},
53795383
"enableGoogleMlIntegration": {
53805384
"description": "Optional. When this parameter is set to true, Cloud SQL instances can connect to Vertex AI to pass requests for real-time predictions and insights to the AI. The default value is false. This applies only to Cloud SQL for PostgreSQL instances.",
53815385
"type": "boolean"
@@ -5543,7 +5547,11 @@
55435547
"PG_SUBSCRIPTION_COUNT",
55445548
"PG_SYNC_PARALLEL_LEVEL",
55455549
"INSUFFICIENT_DISK_SIZE",
5546-
"INSUFFICIENT_MACHINE_TIER"
5550+
"INSUFFICIENT_MACHINE_TIER",
5551+
"UNSUPPORTED_EXTENSIONS_NOT_MIGRATED",
5552+
"EXTENSIONS_NOT_MIGRATED",
5553+
"PG_CRON_FLAG_ENABLED_IN_REPLICA",
5554+
"EXTENSIONS_NOT_ENABLED_IN_REPLICA"
55475555
],
55485556
"enumDescriptions": [
55495557
"",
@@ -5590,7 +5598,11 @@
55905598
"Count of subscriptions needed to sync source data for PostgreSQL database.",
55915599
"Final parallel level that is used to do migration.",
55925600
"The disk size of the replica instance is smaller than the data size of the source instance.",
5593-
"The data size of the source instance is greater than 1 TB, the number of cores of the replica instance is less than 8, and the memory of the replica is less than 32 GB."
5601+
"The data size of the source instance is greater than 1 TB, the number of cores of the replica instance is less than 8, and the memory of the replica is less than 32 GB.",
5602+
"The warning message indicates the unsupported extensions will not be migrated to the destination.",
5603+
"The warning message indicates the pg_cron extension and settings will not be migrated to the destination.",
5604+
"The error message indicates that pg_cron flags are enabled on the destination which is not supported during the migration.",
5605+
"This error message indicates that the specified extensions are not enabled on destination instance. For example, before you can migrate data to the destination instance, you must enable the PGAudit extension on the instance."
55945606
],
55955607
"type": "string"
55965608
}

discovery/sqladmin-v1beta4.json

Lines changed: 21 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2267,7 +2267,7 @@
22672267
}
22682268
}
22692269
},
2270-
"revision": "20240521",
2270+
"revision": "20240618",
22712271
"rootUrl": "https://sqladmin.googleapis.com/",
22722272
"schemas": {
22732273
"AclEntry": {
@@ -2714,10 +2714,6 @@
27142714
"format": "google-datetime",
27152715
"type": "string"
27162716
},
2717-
"preferredSecondaryZone": {
2718-
"description": "Optional. Copy clone and point-in-time recovery clone of a regional instance in the specified zones. If not specified, clone to the same secondary zone as the source instance. This value cannot be the same as the preferred_zone field.",
2719-
"type": "string"
2720-
},
27212717
"preferredZone": {
27222718
"description": "Optional. Copy clone and point-in-time recovery clone of an instance to the specified zone. If no zone is specified, clone to the same primary zone as the source instance.",
27232719
"type": "string"
@@ -4549,12 +4545,12 @@
45494545
"id": "MaintenanceWindow",
45504546
"properties": {
45514547
"day": {
4552-
"description": "day of week (1-7), starting on Monday.",
4548+
"description": "Day of week - `MONDAY`, `TUESDAY`, `WEDNESDAY`, `THURSDAY`, `FRIDAY`, `SATURDAY`, or `SUNDAY`. Specify in the UTC time zone. Returned in output as an integer, 1 to 7, where `1` equals Monday.",
45534549
"format": "int32",
45544550
"type": "integer"
45554551
},
45564552
"hour": {
4557-
"description": "hour of day - 0 to 23.",
4553+
"description": "Hour of day - 0 to 23. Specify in the UTC time zone.",
45584554
"format": "int32",
45594555
"type": "integer"
45604556
},
@@ -4563,7 +4559,7 @@
45634559
"type": "string"
45644560
},
45654561
"updateTrack": {
4566-
"description": "Maintenance timing setting: `canary` (Earlier) or `stable` (Later). [Learn more](https://cloud.google.com/sql/docs/mysql/instance-settings#maintenance-timing-2ndgen).",
4562+
"description": "Maintenance timing settings: `canary`, `stable`, or `week5`. For more information, see [About maintenance on Cloud SQL instances](https://cloud.google.com/sql/docs/mysql/maintenance).",
45674563
"enum": [
45684564
"SQL_UPDATE_TRACK_UNSPECIFIED",
45694565
"canary",
@@ -4572,9 +4568,9 @@
45724568
],
45734569
"enumDescriptions": [
45744570
"This is an unknown maintenance timing preference.",
4575-
"For instance update that requires a restart, this update track indicates your instance prefer to restart for new version early in maintenance window.",
4576-
"For instance update that requires a restart, this update track indicates your instance prefer to let Cloud SQL choose the timing of restart (within its Maintenance window, if applicable).",
4577-
"For instance update that requires a restart, this update track indicates your instance prefer to let Cloud SQL choose the timing of restart (within its Maintenance window, if applicable) to be at least 5 weeks after the notification."
4571+
"For an instance with a scheduled maintenance window, this maintenance timing indicates that the maintenance update is scheduled 7 to 14 days after the notification is sent out. Also referred to as `Week 1` (Console) and `preview` (gcloud CLI).",
4572+
"For an instance with a scheduled maintenance window, this maintenance timing indicates that the maintenance update is scheduled 15 to 21 days after the notification is sent out. Also referred to as `Week 2` (Console) and `production` (gcloud CLI).",
4573+
"For instance with a scheduled maintenance window, this maintenance timing indicates that the maintenance update is scheduled 35 to 42 days after the notification is sent out."
45784574
],
45794575
"type": "string"
45804576
}
@@ -5381,6 +5377,10 @@
53815377
],
53825378
"type": "string"
53835379
},
5380+
"enableDataplexIntegration": {
5381+
"description": "Optional. By default, Cloud SQL instances have schema extraction disabled for Dataplex. When this parameter is set to true, schema extraction for Dataplex on Cloud SQL instances is activated.",
5382+
"type": "boolean"
5383+
},
53845384
"enableGoogleMlIntegration": {
53855385
"description": "Optional. When this parameter is set to true, Cloud SQL instances can connect to Vertex AI to pass requests for real-time predictions and insights to the AI. The default value is false. This applies only to Cloud SQL for PostgreSQL instances.",
53865386
"type": "boolean"
@@ -5548,7 +5548,11 @@
55485548
"PG_SUBSCRIPTION_COUNT",
55495549
"PG_SYNC_PARALLEL_LEVEL",
55505550
"INSUFFICIENT_DISK_SIZE",
5551-
"INSUFFICIENT_MACHINE_TIER"
5551+
"INSUFFICIENT_MACHINE_TIER",
5552+
"UNSUPPORTED_EXTENSIONS_NOT_MIGRATED",
5553+
"EXTENSIONS_NOT_MIGRATED",
5554+
"PG_CRON_FLAG_ENABLED_IN_REPLICA",
5555+
"EXTENSIONS_NOT_ENABLED_IN_REPLICA"
55525556
],
55535557
"enumDescriptions": [
55545558
"",
@@ -5595,7 +5599,11 @@
55955599
"Count of subscriptions needed to sync source data for PostgreSQL database.",
55965600
"Final parallel level that is used to do migration.",
55975601
"The disk size of the replica instance is smaller than the data size of the source instance.",
5598-
"The data size of the source instance is greater than 1 TB, the number of cores of the replica instance is less than 8, and the memory of the replica is less than 32 GB."
5602+
"The data size of the source instance is greater than 1 TB, the number of cores of the replica instance is less than 8, and the memory of the replica is less than 32 GB.",
5603+
"The warning message indicates the unsupported extensions will not be migrated to the destination.",
5604+
"The warning message indicates the pg_cron extension and settings will not be migrated to the destination.",
5605+
"The error message indicates that pg_cron flags are enabled on the destination which is not supported during the migration.",
5606+
"This error message indicates that the specified extensions are not enabled on destination instance. For example, before you can migrate data to the destination instance, you must enable the PGAudit extension on the instance."
55995607
],
56005608
"type": "string"
56015609
}

src/apis/sqladmin/v1.ts

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1367,19 +1367,19 @@ export namespace sqladmin_v1 {
13671367
*/
13681368
export interface Schema$MaintenanceWindow {
13691369
/**
1370-
* day of week (1-7), starting on Monday.
1370+
* Day of week - `MONDAY`, `TUESDAY`, `WEDNESDAY`, `THURSDAY`, `FRIDAY`, `SATURDAY`, or `SUNDAY`. Specify in the UTC time zone. Returned in output as an integer, 1 to 7, where `1` equals Monday.
13711371
*/
13721372
day?: number | null;
13731373
/**
1374-
* hour of day - 0 to 23.
1374+
* Hour of day - 0 to 23. Specify in the UTC time zone.
13751375
*/
13761376
hour?: number | null;
13771377
/**
13781378
* This is always `sql#maintenanceWindow`.
13791379
*/
13801380
kind?: string | null;
13811381
/**
1382-
* Maintenance timing setting: `canary` (Earlier) or `stable` (Later). [Learn more](https://cloud.google.com/sql/docs/mysql/instance-settings#maintenance-timing-2ndgen).
1382+
* Maintenance timing settings: `canary`, `stable`, or `week5`. For more information, see [About maintenance on Cloud SQL instances](https://cloud.google.com/sql/docs/mysql/maintenance).
13831383
*/
13841384
updateTrack?: string | null;
13851385
}
@@ -1858,6 +1858,10 @@ export namespace sqladmin_v1 {
18581858
* Optional. The edition of the instance.
18591859
*/
18601860
edition?: string | null;
1861+
/**
1862+
* Optional. By default, Cloud SQL instances have schema extraction disabled for Dataplex. When this parameter is set to true, schema extraction for Dataplex on Cloud SQL instances is activated.
1863+
*/
1864+
enableDataplexIntegration?: boolean | null;
18611865
/**
18621866
* Optional. When this parameter is set to true, Cloud SQL instances can connect to Vertex AI to pass requests for real-time predictions and insights to the AI. The default value is false. This applies only to Cloud SQL for PostgreSQL instances.
18631867
*/

src/apis/sqladmin/v1beta4.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -450,10 +450,6 @@ export namespace sqladmin_v1beta4 {
450450
* Timestamp, if specified, identifies the time to which the source instance is cloned.
451451
*/
452452
pointInTime?: string | null;
453-
/**
454-
* Optional. Copy clone and point-in-time recovery clone of a regional instance in the specified zones. If not specified, clone to the same secondary zone as the source instance. This value cannot be the same as the preferred_zone field.
455-
*/
456-
preferredSecondaryZone?: string | null;
457453
/**
458454
* Optional. Copy clone and point-in-time recovery clone of an instance to the specified zone. If no zone is specified, clone to the same primary zone as the source instance.
459455
*/
@@ -1374,19 +1370,19 @@ export namespace sqladmin_v1beta4 {
13741370
*/
13751371
export interface Schema$MaintenanceWindow {
13761372
/**
1377-
* day of week (1-7), starting on Monday.
1373+
* Day of week - `MONDAY`, `TUESDAY`, `WEDNESDAY`, `THURSDAY`, `FRIDAY`, `SATURDAY`, or `SUNDAY`. Specify in the UTC time zone. Returned in output as an integer, 1 to 7, where `1` equals Monday.
13781374
*/
13791375
day?: number | null;
13801376
/**
1381-
* hour of day - 0 to 23.
1377+
* Hour of day - 0 to 23. Specify in the UTC time zone.
13821378
*/
13831379
hour?: number | null;
13841380
/**
13851381
* This is always `sql#maintenanceWindow`.
13861382
*/
13871383
kind?: string | null;
13881384
/**
1389-
* Maintenance timing setting: `canary` (Earlier) or `stable` (Later). [Learn more](https://cloud.google.com/sql/docs/mysql/instance-settings#maintenance-timing-2ndgen).
1385+
* Maintenance timing settings: `canary`, `stable`, or `week5`. For more information, see [About maintenance on Cloud SQL instances](https://cloud.google.com/sql/docs/mysql/maintenance).
13901386
*/
13911387
updateTrack?: string | null;
13921388
}
@@ -1865,6 +1861,10 @@ export namespace sqladmin_v1beta4 {
18651861
* Optional. The edition of the instance.
18661862
*/
18671863
edition?: string | null;
1864+
/**
1865+
* Optional. By default, Cloud SQL instances have schema extraction disabled for Dataplex. When this parameter is set to true, schema extraction for Dataplex on Cloud SQL instances is activated.
1866+
*/
1867+
enableDataplexIntegration?: boolean | null;
18681868
/**
18691869
* Optional. When this parameter is set to true, Cloud SQL instances can connect to Vertex AI to pass requests for real-time predictions and insights to the AI. The default value is false. This applies only to Cloud SQL for PostgreSQL instances.
18701870
*/

0 commit comments

Comments
 (0)