@googleapis/sqladmin 38.1.1 → 39.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/v1.ts CHANGED
@@ -114,6 +114,7 @@ export namespace sqladmin_v1 {
114
114
  context: APIRequestContext;
115
115
  backupRuns: Resource$Backupruns;
116
116
  Backups: Resource$Backups;
117
+ blueGreenDeployments: Resource$Bluegreendeployments;
117
118
  connect: Resource$Connect;
118
119
  databases: Resource$Databases;
119
120
  flags: Resource$Flags;
@@ -132,6 +133,9 @@ export namespace sqladmin_v1 {
132
133
 
133
134
  this.backupRuns = new Resource$Backupruns(this.context);
134
135
  this.Backups = new Resource$Backups(this.context);
136
+ this.blueGreenDeployments = new Resource$Bluegreendeployments(
137
+ this.context
138
+ );
135
139
  this.connect = new Resource$Connect(this.context);
136
140
  this.databases = new Resource$Databases(this.context);
137
141
  this.flags = new Resource$Flags(this.context);
@@ -533,6 +537,72 @@ export namespace sqladmin_v1 {
533
537
  */
534
538
  kind?: string | null;
535
539
  }
540
+ /**
541
+ * A `BlueGreenDeployment` resource represents a Cloud SQL blue-green deployment setup.
542
+ */
543
+ export interface Schema$BlueGreenDeployment {
544
+ /**
545
+ * Output only. The time when the deployment was created. Example: `2024-01-01T00:00:00Z`
546
+ */
547
+ createTime?: string | null;
548
+ /**
549
+ * Output only. A list representing the pairs of source and target instances in the deployment.
550
+ */
551
+ deploymentMappings?: Schema$SourceTargetPairedNode[];
552
+ /**
553
+ * Output only. Combined list of tasks for all paired nodes.
554
+ */
555
+ deploymentTasks?: Schema$DeploymentTasks;
556
+ /**
557
+ * Optional. User-provided description for the deployment. The description can be up to 255 characters long.
558
+ */
559
+ description?: string | null;
560
+ /**
561
+ * Output only. Provides details on why switchover is not possible. This field is empty unless a switchover attempt failed or the state is `SWITCHOVER_NOT_READY`. Example: "The target database version does not match the source instance database version."
562
+ */
563
+ errorDetail?: string | null;
564
+ /**
565
+ * Output only. Identifier. The full resource name of the deployment. Format: projects/{project\}/locations/{location\}/blueGreenDeployments/{deployment_id\}
566
+ */
567
+ name?: string | null;
568
+ /**
569
+ * Optional. Immutable. Optional on create, and immutable. The configuration intended for the target instance(s) when the deployment was created.
570
+ */
571
+ requestedConfig?: Schema$RequestedConfig;
572
+ /**
573
+ * Required. Immutable. Required on create, and immutable. The full resource name of the source instance (the "blue" instance). Format: projects/{project\}/instances/{instance\}
574
+ */
575
+ sourceInstance?: string | null;
576
+ /**
577
+ * Output only. The current state of the blue-green deployment.
578
+ */
579
+ state?: string | null;
580
+ /**
581
+ * Output only. The full resource name of the primary target instance (the "green" instance) that will be promoted during switchover. This field is always populated once the deployment is created. Format: projects/{project\}/instances/{instance\}
582
+ */
583
+ switchoverTargetInstance?: string | null;
584
+ }
585
+ /**
586
+ * Blue-green deployment metadata for a database instance. In a blue-green deployment, we maintain two environments, one of which is live. This message contains details about the blue-green deployment.
587
+ */
588
+ export interface Schema$BlueGreenDeploymentInfo {
589
+ /**
590
+ * Output only. The resource ID of the blue-green deployment.
591
+ */
592
+ deploymentId?: string | null;
593
+ /**
594
+ * Output only. The source instance for the Blue-Green deployment.
595
+ */
596
+ source?: Schema$SourceRole;
597
+ /**
598
+ * Output only. The current state of blue-green-deployment for UI tags
599
+ */
600
+ state?: string | null;
601
+ /**
602
+ * Output only. The target instance for the Blue-Green deployment.
603
+ */
604
+ target?: Schema$TargetRole;
605
+ }
536
606
  /**
537
607
  * Database instance clone context.
538
608
  */
@@ -599,6 +669,23 @@ export namespace sqladmin_v1 {
599
669
  */
600
670
  type?: string | null;
601
671
  }
672
+ /**
673
+ * Represents a specific configuration difference between blue and green instances.
674
+ */
675
+ export interface Schema$ConfigDiff {
676
+ /**
677
+ * Output only. The name of the field that differs in the blue and green instances, fully-qualified. Example: `settings.tier`
678
+ */
679
+ field?: string | null;
680
+ /**
681
+ * Output only. The value on the source instance.
682
+ */
683
+ sourceValue?: string | null;
684
+ /**
685
+ * Output only. The value on the target instance.
686
+ */
687
+ targetValue?: string | null;
688
+ }
602
689
  /**
603
690
  * The managed connection pooling configuration.
604
691
  */
@@ -802,6 +889,10 @@ export namespace sqladmin_v1 {
802
889
  * The database engine type and version. The `databaseVersion` field cannot be changed after instance creation.
803
890
  */
804
891
  databaseVersion?: string | null;
892
+ /**
893
+ * Output only. Deployment info for the instance. This is set if the instance is currently part of any blue-green setup.
894
+ */
895
+ deploymentInfo?: Schema$BlueGreenDeploymentInfo;
805
896
  /**
806
897
  * Disk encryption configuration specific to an instance.
807
898
  */
@@ -1095,10 +1186,48 @@ export namespace sqladmin_v1 {
1095
1186
  */
1096
1187
  time?: string | null;
1097
1188
  }
1189
+ /**
1190
+ * Represents a task executed as part of the deployment on a target instance.
1191
+ */
1192
+ export interface Schema$DeploymentTask {
1193
+ /**
1194
+ * Output only. Task end time (if completed).
1195
+ */
1196
+ endTime?: string | null;
1197
+ /**
1198
+ * Output only. Optional error details if the task state is `FAILED`.
1199
+ */
1200
+ errorMessage?: string | null;
1201
+ /**
1202
+ * Output only. Task start time.
1203
+ */
1204
+ startTime?: string | null;
1205
+ /**
1206
+ * Output only. The current state of the task.
1207
+ */
1208
+ state?: string | null;
1209
+ /**
1210
+ * Output only. The type of the task.
1211
+ */
1212
+ type?: string | null;
1213
+ }
1214
+ /**
1215
+ * Combined list of tasks for all paired nodes in the deployment.
1216
+ */
1217
+ export interface Schema$DeploymentTasks {
1218
+ /**
1219
+ * Output only. Tasks performed or being performed on the paired nodes of the deployment at a consolidated level.
1220
+ */
1221
+ task?: Schema$DeploymentTask[];
1222
+ }
1098
1223
  /**
1099
1224
  * Disk encryption configuration for an instance.
1100
1225
  */
1101
1226
  export interface Schema$DiskEncryptionConfiguration {
1227
+ /**
1228
+ * Optional. If true, enables Confidential Mode for the instance's Hyperdisk Balanced volumes. Only supported for zonal C4A instances currently.
1229
+ */
1230
+ confidentialMode?: boolean | null;
1102
1231
  /**
1103
1232
  * This is always `sql#diskEncryptionConfiguration`.
1104
1233
  */
@@ -1696,6 +1825,10 @@ export namespace sqladmin_v1 {
1696
1825
  * The name of the backup that's used to restore a Cloud SQL instance: Format: "projects/{project-id\}/locations/{location\}/backupVaults/{backupvault\}/dataSources/{datasource\}/backups/{backup-uid\}". Only one of restore_backup_context, backup, backupdr_backup can be passed to the input.
1697
1826
  */
1698
1827
  backupdrBackup?: string | null;
1828
+ /**
1829
+ * Optional. If true, the restore operation proceeds even if the target instance's maintenance version is older than the source instance's maintenance version.
1830
+ */
1831
+ ignoreMaintenanceVersion?: boolean | null;
1699
1832
  /**
1700
1833
  * Parameters required to perform the restore backup operation.
1701
1834
  */
@@ -1845,6 +1978,19 @@ export namespace sqladmin_v1 {
1845
1978
  */
1846
1979
  warnings?: Schema$ApiWarning[];
1847
1980
  }
1981
+ /**
1982
+ * The response message for listing blue-green deployment resources.
1983
+ */
1984
+ export interface Schema$ListBlueGreenDeploymentsResponse {
1985
+ /**
1986
+ * The list of blue-green deployment resources.
1987
+ */
1988
+ blueGreenDeployments?: Schema$BlueGreenDeployment[];
1989
+ /**
1990
+ * A token to retrieve the next page of results, or empty if there are no more results.
1991
+ */
1992
+ nextPageToken?: string | null;
1993
+ }
1848
1994
  /**
1849
1995
  * Preferred location. This specifies where a Cloud SQL instance is located. Note that if the preferred location is not available, the instance will be located as close as possible within the region. Only one location may be specified.
1850
1996
  */
@@ -1967,6 +2113,27 @@ export namespace sqladmin_v1 {
1967
2113
  */
1968
2114
  initialSyncFlags?: Schema$SyncFlags[];
1969
2115
  }
2116
+ /**
2117
+ * Details about an instance within the deployment.
2118
+ */
2119
+ export interface Schema$NodeInfo {
2120
+ /**
2121
+ * Output only. The instance connection name.
2122
+ */
2123
+ connection?: string | null;
2124
+ /**
2125
+ * Output only. The unique DNS name for this instance.
2126
+ */
2127
+ dns?: string | null;
2128
+ /**
2129
+ * Output only. The full resource name of the instance. Format: projects/{project\}/instances/{instance\}
2130
+ */
2131
+ instance?: string | null;
2132
+ /**
2133
+ * Output only. The list of IP addresses for this instance.
2134
+ */
2135
+ ipMappings?: Schema$IpMapping[];
2136
+ }
1970
2137
  /**
1971
2138
  * On-premises instance configuration.
1972
2139
  */
@@ -2464,7 +2631,7 @@ export namespace sqladmin_v1 {
2464
2631
  */
2465
2632
  allowedConsumerProjects?: string[] | null;
2466
2633
  /**
2467
- * Optional. The network attachment of the consumer network that the Private Service Connect enabled Cloud SQL instance is authorized to connect via PSC interface. format: projects/PROJECT/regions/REGION/networkAttachments/ID
2634
+ * Optional. The network attachment of the consumer network that the Private Service Connect enabled Cloud SQL instance is authorized to connect using the PSC interface. format: projects/PROJECT/regions/REGION/networkAttachments/ID
2468
2635
  */
2469
2636
  networkAttachmentUri?: string | null;
2470
2637
  /**
@@ -2584,6 +2751,15 @@ export namespace sqladmin_v1 {
2584
2751
  */
2585
2752
  psaWriteEndpoint?: string | null;
2586
2753
  }
2754
+ /**
2755
+ * Configuration specified by the user at creation time for the target (green) instance.
2756
+ */
2757
+ export interface Schema$RequestedConfig {
2758
+ /**
2759
+ * Optional. The target database major version for the upgrade. For example, `MYSQL_8_0` or `POSTGRES_15`.
2760
+ */
2761
+ databaseVersion?: string | null;
2762
+ }
2587
2763
  export interface Schema$Reschedule {
2588
2764
  /**
2589
2765
  * Required. The type of the reschedule.
@@ -2805,7 +2981,7 @@ export namespace sqladmin_v1 {
2805
2981
  */
2806
2982
  maintenanceWindow?: Schema$MaintenanceWindow;
2807
2983
  /**
2808
- * The local user password validation policy of the instance.
2984
+ * The local user password validation policy of the instance for PostgreSQL and MySQL.
2809
2985
  */
2810
2986
  passwordValidationPolicy?: Schema$PasswordValidationPolicy;
2811
2987
  /**
@@ -2861,6 +3037,36 @@ export namespace sqladmin_v1 {
2861
3037
  */
2862
3038
  userLabels?: {[key: string]: string} | null;
2863
3039
  }
3040
+ /**
3041
+ * The source instance for the Blue-Green deployment.
3042
+ */
3043
+ export interface Schema$SourceRole {
3044
+ /**
3045
+ * Output only. The target instance paired with this source instance in a blue-green deployment.
3046
+ */
3047
+ targetId?: Schema$InstanceReference;
3048
+ }
3049
+ /**
3050
+ * Represents a pairing of a source instance node and a target instance node.
3051
+ */
3052
+ export interface Schema$SourceTargetPairedNode {
3053
+ /**
3054
+ * Output only. Describes the list of differences for the `SourceTargetPairedNode`.
3055
+ */
3056
+ diffs?: Schema$ConfigDiff[];
3057
+ /**
3058
+ * Output only. Specifies the resource name of the source instance in this pair.
3059
+ */
3060
+ source?: Schema$NodeInfo;
3061
+ /**
3062
+ * Output only. Specifies the current state of this specific source-target pair.
3063
+ */
3064
+ state?: string | null;
3065
+ /**
3066
+ * Output only. Specifies details of the corresponding target instance in this pair.
3067
+ */
3068
+ target?: Schema$NodeInfo;
3069
+ }
2864
3070
  /**
2865
3071
  * Active Directory configuration, relevant only for Cloud SQL for SQL Server.
2866
3072
  */
@@ -2992,11 +3198,20 @@ export namespace sqladmin_v1 {
2992
3198
  /**
2993
3199
  * Instance reset replica size request.
2994
3200
  */
2995
- export interface Schema$SqlInstancesResetReplicaSizeRequest {}
3201
+ export interface Schema$SqlInstancesResetReplicaSizeRequest {
3202
+ /**
3203
+ * Optional. Region of the Cloud SQL instance.
3204
+ */
3205
+ location?: string | null;
3206
+ }
2996
3207
  /**
2997
3208
  * Instance start external sync request.
2998
3209
  */
2999
3210
  export interface Schema$SqlInstancesStartExternalSyncRequest {
3211
+ /**
3212
+ * Optional. Region of the Cloud SQL instance.
3213
+ */
3214
+ location?: string | null;
3000
3215
  /**
3001
3216
  * Optional. MigrationType configures the migration to use physical files or logical dump files. If not set, then the logical dump file configuration is used. Valid values are `LOGICAL` or `PHYSICAL`. Only applicable to MySQL.
3002
3217
  */
@@ -3026,6 +3241,10 @@ export namespace sqladmin_v1 {
3026
3241
  * Instance verify external sync settings request.
3027
3242
  */
3028
3243
  export interface Schema$SqlInstancesVerifyExternalSyncSettingsRequest {
3244
+ /**
3245
+ * Optional. Region of the Cloud SQL instance.
3246
+ */
3247
+ location?: string | null;
3029
3248
  /**
3030
3249
  * Optional. MigrationType configures the migration to use physical files or logical dump files. If not set, then the logical dump file configuration is used. Valid values are `LOGICAL` or `PHYSICAL`. Only applicable to MySQL.
3031
3250
  */
@@ -3159,11 +3378,11 @@ export namespace sqladmin_v1 {
3159
3378
  */
3160
3379
  export interface Schema$SqlServerUserDetails {
3161
3380
  /**
3162
- * If the user has been disabled
3381
+ * Indicates if the user has been disabled.
3163
3382
  */
3164
3383
  disabled?: boolean | null;
3165
3384
  /**
3166
- * The server roles for this user
3385
+ * Indicates the server roles for this user.
3167
3386
  */
3168
3387
  serverRoles?: string[] | null;
3169
3388
  }
@@ -3303,6 +3522,10 @@ export namespace sqladmin_v1 {
3303
3522
  */
3304
3523
  message?: string | null;
3305
3524
  }
3525
+ /**
3526
+ * Request message for switching over a `BlueGreenDeployment` resource.
3527
+ */
3528
+ export interface Schema$SwitchoverBlueGreenDeploymentRequest {}
3306
3529
  /**
3307
3530
  * Initial sync flags for certain Cloud SQL APIs. Currently used for the MySQL external server initial dump.
3308
3531
  */
@@ -3329,6 +3552,15 @@ export namespace sqladmin_v1 {
3329
3552
  */
3330
3553
  targetValue?: number | null;
3331
3554
  }
3555
+ /**
3556
+ * The target instance for the Blue-Green deployment.
3557
+ */
3558
+ export interface Schema$TargetRole {
3559
+ /**
3560
+ * Output only. The source instance paired with this target instance in a blue-green deployment.
3561
+ */
3562
+ sourceId?: Schema$InstanceReference;
3563
+ }
3332
3564
  /**
3333
3565
  * A Google Cloud SQL service tier resource.
3334
3566
  */
@@ -5123,14 +5355,14 @@ export namespace sqladmin_v1 {
5123
5355
  requestBody?: Schema$Backup;
5124
5356
  }
5125
5357
 
5126
- export class Resource$Connect {
5358
+ export class Resource$Bluegreendeployments {
5127
5359
  context: APIRequestContext;
5128
5360
  constructor(context: APIRequestContext) {
5129
5361
  this.context = context;
5130
5362
  }
5131
5363
 
5132
5364
  /**
5133
- * Generates a short-lived X509 certificate containing the provided public key and signed by a private key specific to the target instance. Users may use the certificate to authenticate as themselves when connecting to the database.
5365
+ * Creates a blue-green deployment under a given project and location.
5134
5366
  * @example
5135
5367
  * ```js
5136
5368
  * // Before running the sample:
@@ -5162,20 +5394,26 @@ export namespace sqladmin_v1 {
5162
5394
  * google.options({auth: authClient});
5163
5395
  *
5164
5396
  * // Do the magic
5165
- * const res = await sql.connect.generateEphemeral({
5166
- * // Cloud SQL instance ID. This does not include the project ID.
5167
- * instance: 'placeholder-value',
5168
- * // Project ID of the project that contains the instance.
5169
- * project: 'placeholder-value',
5397
+ * const res = await sql.blueGreenDeployments.create({
5398
+ * // Required. The ID to use for the blue-green deployment, which will become the final component of the deployment's resource name. The ID must be unique within the given project and location and between 2-63 characters.
5399
+ * blueGreenDeploymentId: 'placeholder-value',
5400
+ * // Required. The parent resource where this blue-green deployment will be created. Format: projects/{project\}/locations/{location\}
5401
+ * parent: 'projects/my-project/locations/my-location',
5170
5402
  *
5171
5403
  * // Request body metadata
5172
5404
  * requestBody: {
5173
5405
  * // request body parameters
5174
5406
  * // {
5175
- * // "access_token": "my_access_token",
5176
- * // "public_key": "my_public_key",
5177
- * // "readTime": "my_readTime",
5178
- * // "validDuration": "my_validDuration"
5407
+ * // "createTime": "my_createTime",
5408
+ * // "deploymentMappings": [],
5409
+ * // "deploymentTasks": {},
5410
+ * // "description": "my_description",
5411
+ * // "errorDetail": "my_errorDetail",
5412
+ * // "name": "my_name",
5413
+ * // "requestedConfig": {},
5414
+ * // "sourceInstance": "my_sourceInstance",
5415
+ * // "state": "my_state",
5416
+ * // "switchoverTargetInstance": "my_switchoverTargetInstance"
5179
5417
  * // }
5180
5418
  * },
5181
5419
  * });
@@ -5183,7 +5421,26 @@ export namespace sqladmin_v1 {
5183
5421
  *
5184
5422
  * // Example response
5185
5423
  * // {
5186
- * // "ephemeralCert": {}
5424
+ * // "acquireSsrsLeaseContext": {},
5425
+ * // "apiWarning": {},
5426
+ * // "backupContext": {},
5427
+ * // "endTime": "my_endTime",
5428
+ * // "error": {},
5429
+ * // "exportContext": {},
5430
+ * // "importContext": {},
5431
+ * // "insertTime": "my_insertTime",
5432
+ * // "kind": "my_kind",
5433
+ * // "name": "my_name",
5434
+ * // "operationType": "my_operationType",
5435
+ * // "preCheckMajorVersionUpgradeContext": {},
5436
+ * // "selfLink": "my_selfLink",
5437
+ * // "startTime": "my_startTime",
5438
+ * // "status": "my_status",
5439
+ * // "subOperationType": {},
5440
+ * // "targetId": "my_targetId",
5441
+ * // "targetLink": "my_targetLink",
5442
+ * // "targetProject": "my_targetProject",
5443
+ * // "user": "my_user"
5187
5444
  * // }
5188
5445
  * }
5189
5446
  *
@@ -5199,57 +5456,52 @@ export namespace sqladmin_v1 {
5199
5456
  * @param callback - Optional callback that handles the response.
5200
5457
  * @returns A promise if used with async/await, or void if used with a callback.
5201
5458
  */
5202
- generateEphemeralCert(
5203
- params: Params$Resource$Connect$Generateephemeralcert,
5459
+ create(
5460
+ params: Params$Resource$Bluegreendeployments$Create,
5204
5461
  options: StreamMethodOptions
5205
5462
  ): Promise<GaxiosResponseWithHTTP2<Readable>>;
5206
- generateEphemeralCert(
5207
- params?: Params$Resource$Connect$Generateephemeralcert,
5463
+ create(
5464
+ params?: Params$Resource$Bluegreendeployments$Create,
5208
5465
  options?: MethodOptions
5209
- ): Promise<GaxiosResponseWithHTTP2<Schema$GenerateEphemeralCertResponse>>;
5210
- generateEphemeralCert(
5211
- params: Params$Resource$Connect$Generateephemeralcert,
5466
+ ): Promise<GaxiosResponseWithHTTP2<Schema$Operation>>;
5467
+ create(
5468
+ params: Params$Resource$Bluegreendeployments$Create,
5212
5469
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
5213
5470
  callback: BodyResponseCallback<Readable>
5214
5471
  ): void;
5215
- generateEphemeralCert(
5216
- params: Params$Resource$Connect$Generateephemeralcert,
5217
- options:
5218
- | MethodOptions
5219
- | BodyResponseCallback<Schema$GenerateEphemeralCertResponse>,
5220
- callback: BodyResponseCallback<Schema$GenerateEphemeralCertResponse>
5221
- ): void;
5222
- generateEphemeralCert(
5223
- params: Params$Resource$Connect$Generateephemeralcert,
5224
- callback: BodyResponseCallback<Schema$GenerateEphemeralCertResponse>
5472
+ create(
5473
+ params: Params$Resource$Bluegreendeployments$Create,
5474
+ options: MethodOptions | BodyResponseCallback<Schema$Operation>,
5475
+ callback: BodyResponseCallback<Schema$Operation>
5225
5476
  ): void;
5226
- generateEphemeralCert(
5227
- callback: BodyResponseCallback<Schema$GenerateEphemeralCertResponse>
5477
+ create(
5478
+ params: Params$Resource$Bluegreendeployments$Create,
5479
+ callback: BodyResponseCallback<Schema$Operation>
5228
5480
  ): void;
5229
- generateEphemeralCert(
5481
+ create(callback: BodyResponseCallback<Schema$Operation>): void;
5482
+ create(
5230
5483
  paramsOrCallback?:
5231
- | Params$Resource$Connect$Generateephemeralcert
5232
- | BodyResponseCallback<Schema$GenerateEphemeralCertResponse>
5484
+ | Params$Resource$Bluegreendeployments$Create
5485
+ | BodyResponseCallback<Schema$Operation>
5233
5486
  | BodyResponseCallback<Readable>,
5234
5487
  optionsOrCallback?:
5235
5488
  | MethodOptions
5236
5489
  | StreamMethodOptions
5237
- | BodyResponseCallback<Schema$GenerateEphemeralCertResponse>
5490
+ | BodyResponseCallback<Schema$Operation>
5238
5491
  | BodyResponseCallback<Readable>,
5239
5492
  callback?:
5240
- | BodyResponseCallback<Schema$GenerateEphemeralCertResponse>
5241
- | BodyResponseCallback<Readable>
5493
+ BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
5242
5494
  ):
5243
5495
  | void
5244
- | Promise<GaxiosResponseWithHTTP2<Schema$GenerateEphemeralCertResponse>>
5496
+ | Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
5245
5497
  | Promise<GaxiosResponseWithHTTP2<Readable>> {
5246
5498
  let params = (paramsOrCallback ||
5247
- {}) as Params$Resource$Connect$Generateephemeralcert;
5499
+ {}) as Params$Resource$Bluegreendeployments$Create;
5248
5500
  let options = (optionsOrCallback || {}) as MethodOptions;
5249
5501
 
5250
5502
  if (typeof paramsOrCallback === 'function') {
5251
5503
  callback = paramsOrCallback;
5252
- params = {} as Params$Resource$Connect$Generateephemeralcert;
5504
+ params = {} as Params$Resource$Bluegreendeployments$Create;
5253
5505
  options = {};
5254
5506
  }
5255
5507
 
@@ -5262,34 +5514,32 @@ export namespace sqladmin_v1 {
5262
5514
  const parameters = {
5263
5515
  options: Object.assign(
5264
5516
  {
5265
- url: (
5266
- rootUrl +
5267
- '/v1/projects/{project}/instances/{instance}:generateEphemeralCert'
5268
- ).replace(/([^:]\/)\/+/g, '$1'),
5517
+ url: (rootUrl + '/v1/{+parent}/blueGreenDeployments').replace(
5518
+ /([^:]\/)\/+/g,
5519
+ '$1'
5520
+ ),
5269
5521
  method: 'POST',
5270
5522
  apiVersion: '',
5271
5523
  },
5272
5524
  options
5273
5525
  ),
5274
5526
  params,
5275
- requiredParams: ['project', 'instance'],
5276
- pathParams: ['instance', 'project'],
5527
+ requiredParams: ['parent'],
5528
+ pathParams: ['parent'],
5277
5529
  context: this.context,
5278
5530
  };
5279
5531
  if (callback) {
5280
- createAPIRequest<Schema$GenerateEphemeralCertResponse>(
5532
+ createAPIRequest<Schema$Operation>(
5281
5533
  parameters,
5282
5534
  callback as BodyResponseCallback<unknown>
5283
5535
  );
5284
5536
  } else {
5285
- return createAPIRequest<Schema$GenerateEphemeralCertResponse>(
5286
- parameters
5287
- );
5537
+ return createAPIRequest<Schema$Operation>(parameters);
5288
5538
  }
5289
5539
  }
5290
5540
 
5291
5541
  /**
5292
- * Retrieves connect settings about a Cloud SQL instance.
5542
+ * Deletes a blue-green deployment.
5293
5543
  * @example
5294
5544
  * ```js
5295
5545
  * // Before running the sample:
@@ -5321,31 +5571,894 @@ export namespace sqladmin_v1 {
5321
5571
  * google.options({auth: authClient});
5322
5572
  *
5323
5573
  * // Do the magic
5324
- * const res = await sql.connect.get({
5325
- * // Cloud SQL instance ID. This does not include the project ID.
5326
- * instance: 'placeholder-value',
5327
- * // Project ID of the project that contains the instance.
5328
- * project: 'placeholder-value',
5329
- * // Optional. Optional snapshot read timestamp to trade freshness for performance.
5330
- * readTime: 'placeholder-value',
5574
+ * const res = await sql.blueGreenDeployments.delete({
5575
+ * // Optional. If set to true, and the switchover is complete, this deletes the old source instance along with the deployment.
5576
+ * deleteOldSource: 'placeholder-value',
5577
+ * // Required. The name of the blue-green deployment to delete. Format: projects/{project\}/locations/{location\}/blueGreenDeployments/{blue_green_deployment\}
5578
+ * name: 'projects/my-project/locations/my-location/blueGreenDeployments/my-blueGreenDeployment',
5331
5579
  * });
5332
5580
  * console.log(res.data);
5333
5581
  *
5334
5582
  * // Example response
5335
5583
  * // {
5336
- * // "backendType": "my_backendType",
5337
- * // "connectionName": "my_connectionName",
5338
- * // "customSubjectAlternativeNames": [],
5339
- * // "databaseVersion": "my_databaseVersion",
5340
- * // "dnsName": "my_dnsName",
5341
- * // "dnsNames": [],
5342
- * // "ipAddresses": [],
5584
+ * // "acquireSsrsLeaseContext": {},
5585
+ * // "apiWarning": {},
5586
+ * // "backupContext": {},
5587
+ * // "endTime": "my_endTime",
5588
+ * // "error": {},
5589
+ * // "exportContext": {},
5590
+ * // "importContext": {},
5591
+ * // "insertTime": "my_insertTime",
5343
5592
  * // "kind": "my_kind",
5344
- * // "mdxProtocolSupport": [],
5345
- * // "nodeCount": 0,
5346
- * // "nodes": [],
5347
- * // "pscEnabled": false,
5348
- * // "region": "my_region",
5593
+ * // "name": "my_name",
5594
+ * // "operationType": "my_operationType",
5595
+ * // "preCheckMajorVersionUpgradeContext": {},
5596
+ * // "selfLink": "my_selfLink",
5597
+ * // "startTime": "my_startTime",
5598
+ * // "status": "my_status",
5599
+ * // "subOperationType": {},
5600
+ * // "targetId": "my_targetId",
5601
+ * // "targetLink": "my_targetLink",
5602
+ * // "targetProject": "my_targetProject",
5603
+ * // "user": "my_user"
5604
+ * // }
5605
+ * }
5606
+ *
5607
+ * main().catch(e => {
5608
+ * console.error(e);
5609
+ * throw e;
5610
+ * });
5611
+ *
5612
+ * ```
5613
+ *
5614
+ * @param params - Parameters for request
5615
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
5616
+ * @param callback - Optional callback that handles the response.
5617
+ * @returns A promise if used with async/await, or void if used with a callback.
5618
+ */
5619
+ delete(
5620
+ params: Params$Resource$Bluegreendeployments$Delete,
5621
+ options: StreamMethodOptions
5622
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
5623
+ delete(
5624
+ params?: Params$Resource$Bluegreendeployments$Delete,
5625
+ options?: MethodOptions
5626
+ ): Promise<GaxiosResponseWithHTTP2<Schema$Operation>>;
5627
+ delete(
5628
+ params: Params$Resource$Bluegreendeployments$Delete,
5629
+ options: StreamMethodOptions | BodyResponseCallback<Readable>,
5630
+ callback: BodyResponseCallback<Readable>
5631
+ ): void;
5632
+ delete(
5633
+ params: Params$Resource$Bluegreendeployments$Delete,
5634
+ options: MethodOptions | BodyResponseCallback<Schema$Operation>,
5635
+ callback: BodyResponseCallback<Schema$Operation>
5636
+ ): void;
5637
+ delete(
5638
+ params: Params$Resource$Bluegreendeployments$Delete,
5639
+ callback: BodyResponseCallback<Schema$Operation>
5640
+ ): void;
5641
+ delete(callback: BodyResponseCallback<Schema$Operation>): void;
5642
+ delete(
5643
+ paramsOrCallback?:
5644
+ | Params$Resource$Bluegreendeployments$Delete
5645
+ | BodyResponseCallback<Schema$Operation>
5646
+ | BodyResponseCallback<Readable>,
5647
+ optionsOrCallback?:
5648
+ | MethodOptions
5649
+ | StreamMethodOptions
5650
+ | BodyResponseCallback<Schema$Operation>
5651
+ | BodyResponseCallback<Readable>,
5652
+ callback?:
5653
+ BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
5654
+ ):
5655
+ | void
5656
+ | Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
5657
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
5658
+ let params = (paramsOrCallback ||
5659
+ {}) as Params$Resource$Bluegreendeployments$Delete;
5660
+ let options = (optionsOrCallback || {}) as MethodOptions;
5661
+
5662
+ if (typeof paramsOrCallback === 'function') {
5663
+ callback = paramsOrCallback;
5664
+ params = {} as Params$Resource$Bluegreendeployments$Delete;
5665
+ options = {};
5666
+ }
5667
+
5668
+ if (typeof optionsOrCallback === 'function') {
5669
+ callback = optionsOrCallback;
5670
+ options = {};
5671
+ }
5672
+
5673
+ const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/';
5674
+ const parameters = {
5675
+ options: Object.assign(
5676
+ {
5677
+ url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'),
5678
+ method: 'DELETE',
5679
+ apiVersion: '',
5680
+ },
5681
+ options
5682
+ ),
5683
+ params,
5684
+ requiredParams: ['name'],
5685
+ pathParams: ['name'],
5686
+ context: this.context,
5687
+ };
5688
+ if (callback) {
5689
+ createAPIRequest<Schema$Operation>(
5690
+ parameters,
5691
+ callback as BodyResponseCallback<unknown>
5692
+ );
5693
+ } else {
5694
+ return createAPIRequest<Schema$Operation>(parameters);
5695
+ }
5696
+ }
5697
+
5698
+ /**
5699
+ * Retrieves a blue-green deployment resource under a given project and location.
5700
+ * @example
5701
+ * ```js
5702
+ * // Before running the sample:
5703
+ * // - Enable the API at:
5704
+ * // https://console.developers.google.com/apis/api/sqladmin.googleapis.com
5705
+ * // - Login into gcloud by running:
5706
+ * // ```sh
5707
+ * // $ gcloud auth application-default login
5708
+ * // ```
5709
+ * // - Install the npm module by running:
5710
+ * // ```sh
5711
+ * // $ npm install googleapis
5712
+ * // ```
5713
+ *
5714
+ * const {google} = require('googleapis');
5715
+ * const sqladmin = google.sqladmin('v1');
5716
+ *
5717
+ * async function main() {
5718
+ * const auth = new google.auth.GoogleAuth({
5719
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
5720
+ * scopes: [
5721
+ * 'https://www.googleapis.com/auth/cloud-platform',
5722
+ * 'https://www.googleapis.com/auth/sqlservice.admin',
5723
+ * ],
5724
+ * });
5725
+ *
5726
+ * // Acquire an auth client, and bind it to all future calls
5727
+ * const authClient = await auth.getClient();
5728
+ * google.options({auth: authClient});
5729
+ *
5730
+ * // Do the magic
5731
+ * const res = await sql.blueGreenDeployments.get({
5732
+ * // Required. The name of the blue-green deployment to retrieve. Format: projects/{project\}/locations/{location\}/blueGreenDeployments/{blue_green_deployment\}
5733
+ * name: 'projects/my-project/locations/my-location/blueGreenDeployments/my-blueGreenDeployment',
5734
+ * // Optional. Specifies whether to return the basic or detailed view of the resource in the response.
5735
+ * view: 'placeholder-value',
5736
+ * });
5737
+ * console.log(res.data);
5738
+ *
5739
+ * // Example response
5740
+ * // {
5741
+ * // "createTime": "my_createTime",
5742
+ * // "deploymentMappings": [],
5743
+ * // "deploymentTasks": {},
5744
+ * // "description": "my_description",
5745
+ * // "errorDetail": "my_errorDetail",
5746
+ * // "name": "my_name",
5747
+ * // "requestedConfig": {},
5748
+ * // "sourceInstance": "my_sourceInstance",
5749
+ * // "state": "my_state",
5750
+ * // "switchoverTargetInstance": "my_switchoverTargetInstance"
5751
+ * // }
5752
+ * }
5753
+ *
5754
+ * main().catch(e => {
5755
+ * console.error(e);
5756
+ * throw e;
5757
+ * });
5758
+ *
5759
+ * ```
5760
+ *
5761
+ * @param params - Parameters for request
5762
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
5763
+ * @param callback - Optional callback that handles the response.
5764
+ * @returns A promise if used with async/await, or void if used with a callback.
5765
+ */
5766
+ get(
5767
+ params: Params$Resource$Bluegreendeployments$Get,
5768
+ options: StreamMethodOptions
5769
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
5770
+ get(
5771
+ params?: Params$Resource$Bluegreendeployments$Get,
5772
+ options?: MethodOptions
5773
+ ): Promise<GaxiosResponseWithHTTP2<Schema$BlueGreenDeployment>>;
5774
+ get(
5775
+ params: Params$Resource$Bluegreendeployments$Get,
5776
+ options: StreamMethodOptions | BodyResponseCallback<Readable>,
5777
+ callback: BodyResponseCallback<Readable>
5778
+ ): void;
5779
+ get(
5780
+ params: Params$Resource$Bluegreendeployments$Get,
5781
+ options: MethodOptions | BodyResponseCallback<Schema$BlueGreenDeployment>,
5782
+ callback: BodyResponseCallback<Schema$BlueGreenDeployment>
5783
+ ): void;
5784
+ get(
5785
+ params: Params$Resource$Bluegreendeployments$Get,
5786
+ callback: BodyResponseCallback<Schema$BlueGreenDeployment>
5787
+ ): void;
5788
+ get(callback: BodyResponseCallback<Schema$BlueGreenDeployment>): void;
5789
+ get(
5790
+ paramsOrCallback?:
5791
+ | Params$Resource$Bluegreendeployments$Get
5792
+ | BodyResponseCallback<Schema$BlueGreenDeployment>
5793
+ | BodyResponseCallback<Readable>,
5794
+ optionsOrCallback?:
5795
+ | MethodOptions
5796
+ | StreamMethodOptions
5797
+ | BodyResponseCallback<Schema$BlueGreenDeployment>
5798
+ | BodyResponseCallback<Readable>,
5799
+ callback?:
5800
+ | BodyResponseCallback<Schema$BlueGreenDeployment>
5801
+ | BodyResponseCallback<Readable>
5802
+ ):
5803
+ | void
5804
+ | Promise<GaxiosResponseWithHTTP2<Schema$BlueGreenDeployment>>
5805
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
5806
+ let params = (paramsOrCallback ||
5807
+ {}) as Params$Resource$Bluegreendeployments$Get;
5808
+ let options = (optionsOrCallback || {}) as MethodOptions;
5809
+
5810
+ if (typeof paramsOrCallback === 'function') {
5811
+ callback = paramsOrCallback;
5812
+ params = {} as Params$Resource$Bluegreendeployments$Get;
5813
+ options = {};
5814
+ }
5815
+
5816
+ if (typeof optionsOrCallback === 'function') {
5817
+ callback = optionsOrCallback;
5818
+ options = {};
5819
+ }
5820
+
5821
+ const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/';
5822
+ const parameters = {
5823
+ options: Object.assign(
5824
+ {
5825
+ url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'),
5826
+ method: 'GET',
5827
+ apiVersion: '',
5828
+ },
5829
+ options
5830
+ ),
5831
+ params,
5832
+ requiredParams: ['name'],
5833
+ pathParams: ['name'],
5834
+ context: this.context,
5835
+ };
5836
+ if (callback) {
5837
+ createAPIRequest<Schema$BlueGreenDeployment>(
5838
+ parameters,
5839
+ callback as BodyResponseCallback<unknown>
5840
+ );
5841
+ } else {
5842
+ return createAPIRequest<Schema$BlueGreenDeployment>(parameters);
5843
+ }
5844
+ }
5845
+
5846
+ /**
5847
+ * Lists blue-green deployments under a given project.
5848
+ * @example
5849
+ * ```js
5850
+ * // Before running the sample:
5851
+ * // - Enable the API at:
5852
+ * // https://console.developers.google.com/apis/api/sqladmin.googleapis.com
5853
+ * // - Login into gcloud by running:
5854
+ * // ```sh
5855
+ * // $ gcloud auth application-default login
5856
+ * // ```
5857
+ * // - Install the npm module by running:
5858
+ * // ```sh
5859
+ * // $ npm install googleapis
5860
+ * // ```
5861
+ *
5862
+ * const {google} = require('googleapis');
5863
+ * const sqladmin = google.sqladmin('v1');
5864
+ *
5865
+ * async function main() {
5866
+ * const auth = new google.auth.GoogleAuth({
5867
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
5868
+ * scopes: [
5869
+ * 'https://www.googleapis.com/auth/cloud-platform',
5870
+ * 'https://www.googleapis.com/auth/sqlservice.admin',
5871
+ * ],
5872
+ * });
5873
+ *
5874
+ * // Acquire an auth client, and bind it to all future calls
5875
+ * const authClient = await auth.getClient();
5876
+ * google.options({auth: authClient});
5877
+ *
5878
+ * // Do the magic
5879
+ * const res = await sql.blueGreenDeployments.list({
5880
+ * // Optional. A filter expression that filters the results.
5881
+ * filter: 'placeholder-value',
5882
+ * // Optional. A comma-separated list of fields to order the results by.
5883
+ * orderBy: 'placeholder-value',
5884
+ * // Optional. The maximum number of deployments to return. The service may return fewer deployments than this value. If unspecified, at most 500 deployments are returned. The maximum value is 1000; values above 1000 are treated as 1000.
5885
+ * pageSize: 'placeholder-value',
5886
+ * // Optional. A page token, received from a previous `ListBlueGreenDeployments` call. Provide this to retrieve the subsequent page.
5887
+ * pageToken: 'placeholder-value',
5888
+ * // Required. The parent resource whose blue-green deployments are to be listed. Format: projects/{project\}/locations/{location\}
5889
+ * parent: 'projects/my-project/locations/my-location',
5890
+ * });
5891
+ * console.log(res.data);
5892
+ *
5893
+ * // Example response
5894
+ * // {
5895
+ * // "blueGreenDeployments": [],
5896
+ * // "nextPageToken": "my_nextPageToken"
5897
+ * // }
5898
+ * }
5899
+ *
5900
+ * main().catch(e => {
5901
+ * console.error(e);
5902
+ * throw e;
5903
+ * });
5904
+ *
5905
+ * ```
5906
+ *
5907
+ * @param params - Parameters for request
5908
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
5909
+ * @param callback - Optional callback that handles the response.
5910
+ * @returns A promise if used with async/await, or void if used with a callback.
5911
+ */
5912
+ list(
5913
+ params: Params$Resource$Bluegreendeployments$List,
5914
+ options: StreamMethodOptions
5915
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
5916
+ list(
5917
+ params?: Params$Resource$Bluegreendeployments$List,
5918
+ options?: MethodOptions
5919
+ ): Promise<
5920
+ GaxiosResponseWithHTTP2<Schema$ListBlueGreenDeploymentsResponse>
5921
+ >;
5922
+ list(
5923
+ params: Params$Resource$Bluegreendeployments$List,
5924
+ options: StreamMethodOptions | BodyResponseCallback<Readable>,
5925
+ callback: BodyResponseCallback<Readable>
5926
+ ): void;
5927
+ list(
5928
+ params: Params$Resource$Bluegreendeployments$List,
5929
+ options:
5930
+ | MethodOptions
5931
+ | BodyResponseCallback<Schema$ListBlueGreenDeploymentsResponse>,
5932
+ callback: BodyResponseCallback<Schema$ListBlueGreenDeploymentsResponse>
5933
+ ): void;
5934
+ list(
5935
+ params: Params$Resource$Bluegreendeployments$List,
5936
+ callback: BodyResponseCallback<Schema$ListBlueGreenDeploymentsResponse>
5937
+ ): void;
5938
+ list(
5939
+ callback: BodyResponseCallback<Schema$ListBlueGreenDeploymentsResponse>
5940
+ ): void;
5941
+ list(
5942
+ paramsOrCallback?:
5943
+ | Params$Resource$Bluegreendeployments$List
5944
+ | BodyResponseCallback<Schema$ListBlueGreenDeploymentsResponse>
5945
+ | BodyResponseCallback<Readable>,
5946
+ optionsOrCallback?:
5947
+ | MethodOptions
5948
+ | StreamMethodOptions
5949
+ | BodyResponseCallback<Schema$ListBlueGreenDeploymentsResponse>
5950
+ | BodyResponseCallback<Readable>,
5951
+ callback?:
5952
+ | BodyResponseCallback<Schema$ListBlueGreenDeploymentsResponse>
5953
+ | BodyResponseCallback<Readable>
5954
+ ):
5955
+ | void
5956
+ | Promise<
5957
+ GaxiosResponseWithHTTP2<Schema$ListBlueGreenDeploymentsResponse>
5958
+ >
5959
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
5960
+ let params = (paramsOrCallback ||
5961
+ {}) as Params$Resource$Bluegreendeployments$List;
5962
+ let options = (optionsOrCallback || {}) as MethodOptions;
5963
+
5964
+ if (typeof paramsOrCallback === 'function') {
5965
+ callback = paramsOrCallback;
5966
+ params = {} as Params$Resource$Bluegreendeployments$List;
5967
+ options = {};
5968
+ }
5969
+
5970
+ if (typeof optionsOrCallback === 'function') {
5971
+ callback = optionsOrCallback;
5972
+ options = {};
5973
+ }
5974
+
5975
+ const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/';
5976
+ const parameters = {
5977
+ options: Object.assign(
5978
+ {
5979
+ url: (rootUrl + '/v1/{+parent}/blueGreenDeployments').replace(
5980
+ /([^:]\/)\/+/g,
5981
+ '$1'
5982
+ ),
5983
+ method: 'GET',
5984
+ apiVersion: '',
5985
+ },
5986
+ options
5987
+ ),
5988
+ params,
5989
+ requiredParams: ['parent'],
5990
+ pathParams: ['parent'],
5991
+ context: this.context,
5992
+ };
5993
+ if (callback) {
5994
+ createAPIRequest<Schema$ListBlueGreenDeploymentsResponse>(
5995
+ parameters,
5996
+ callback as BodyResponseCallback<unknown>
5997
+ );
5998
+ } else {
5999
+ return createAPIRequest<Schema$ListBlueGreenDeploymentsResponse>(
6000
+ parameters
6001
+ );
6002
+ }
6003
+ }
6004
+
6005
+ /**
6006
+ * Switches over to green instance for a blue-green deployment.
6007
+ * @example
6008
+ * ```js
6009
+ * // Before running the sample:
6010
+ * // - Enable the API at:
6011
+ * // https://console.developers.google.com/apis/api/sqladmin.googleapis.com
6012
+ * // - Login into gcloud by running:
6013
+ * // ```sh
6014
+ * // $ gcloud auth application-default login
6015
+ * // ```
6016
+ * // - Install the npm module by running:
6017
+ * // ```sh
6018
+ * // $ npm install googleapis
6019
+ * // ```
6020
+ *
6021
+ * const {google} = require('googleapis');
6022
+ * const sqladmin = google.sqladmin('v1');
6023
+ *
6024
+ * async function main() {
6025
+ * const auth = new google.auth.GoogleAuth({
6026
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
6027
+ * scopes: [
6028
+ * 'https://www.googleapis.com/auth/cloud-platform',
6029
+ * 'https://www.googleapis.com/auth/sqlservice.admin',
6030
+ * ],
6031
+ * });
6032
+ *
6033
+ * // Acquire an auth client, and bind it to all future calls
6034
+ * const authClient = await auth.getClient();
6035
+ * google.options({auth: authClient});
6036
+ *
6037
+ * // Do the magic
6038
+ * const res = await sql.blueGreenDeployments.switchover({
6039
+ * // Required. The name of the blue-green deployment to switch over. Format: projects/{project\}/locations/{location\}/blueGreenDeployments/{blue_green_deployment\}
6040
+ * name: 'projects/my-project/locations/my-location/blueGreenDeployments/my-blueGreenDeployment',
6041
+ *
6042
+ * // Request body metadata
6043
+ * requestBody: {
6044
+ * // request body parameters
6045
+ * // {}
6046
+ * },
6047
+ * });
6048
+ * console.log(res.data);
6049
+ *
6050
+ * // Example response
6051
+ * // {
6052
+ * // "acquireSsrsLeaseContext": {},
6053
+ * // "apiWarning": {},
6054
+ * // "backupContext": {},
6055
+ * // "endTime": "my_endTime",
6056
+ * // "error": {},
6057
+ * // "exportContext": {},
6058
+ * // "importContext": {},
6059
+ * // "insertTime": "my_insertTime",
6060
+ * // "kind": "my_kind",
6061
+ * // "name": "my_name",
6062
+ * // "operationType": "my_operationType",
6063
+ * // "preCheckMajorVersionUpgradeContext": {},
6064
+ * // "selfLink": "my_selfLink",
6065
+ * // "startTime": "my_startTime",
6066
+ * // "status": "my_status",
6067
+ * // "subOperationType": {},
6068
+ * // "targetId": "my_targetId",
6069
+ * // "targetLink": "my_targetLink",
6070
+ * // "targetProject": "my_targetProject",
6071
+ * // "user": "my_user"
6072
+ * // }
6073
+ * }
6074
+ *
6075
+ * main().catch(e => {
6076
+ * console.error(e);
6077
+ * throw e;
6078
+ * });
6079
+ *
6080
+ * ```
6081
+ *
6082
+ * @param params - Parameters for request
6083
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
6084
+ * @param callback - Optional callback that handles the response.
6085
+ * @returns A promise if used with async/await, or void if used with a callback.
6086
+ */
6087
+ switchover(
6088
+ params: Params$Resource$Bluegreendeployments$Switchover,
6089
+ options: StreamMethodOptions
6090
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
6091
+ switchover(
6092
+ params?: Params$Resource$Bluegreendeployments$Switchover,
6093
+ options?: MethodOptions
6094
+ ): Promise<GaxiosResponseWithHTTP2<Schema$Operation>>;
6095
+ switchover(
6096
+ params: Params$Resource$Bluegreendeployments$Switchover,
6097
+ options: StreamMethodOptions | BodyResponseCallback<Readable>,
6098
+ callback: BodyResponseCallback<Readable>
6099
+ ): void;
6100
+ switchover(
6101
+ params: Params$Resource$Bluegreendeployments$Switchover,
6102
+ options: MethodOptions | BodyResponseCallback<Schema$Operation>,
6103
+ callback: BodyResponseCallback<Schema$Operation>
6104
+ ): void;
6105
+ switchover(
6106
+ params: Params$Resource$Bluegreendeployments$Switchover,
6107
+ callback: BodyResponseCallback<Schema$Operation>
6108
+ ): void;
6109
+ switchover(callback: BodyResponseCallback<Schema$Operation>): void;
6110
+ switchover(
6111
+ paramsOrCallback?:
6112
+ | Params$Resource$Bluegreendeployments$Switchover
6113
+ | BodyResponseCallback<Schema$Operation>
6114
+ | BodyResponseCallback<Readable>,
6115
+ optionsOrCallback?:
6116
+ | MethodOptions
6117
+ | StreamMethodOptions
6118
+ | BodyResponseCallback<Schema$Operation>
6119
+ | BodyResponseCallback<Readable>,
6120
+ callback?:
6121
+ BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
6122
+ ):
6123
+ | void
6124
+ | Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
6125
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
6126
+ let params = (paramsOrCallback ||
6127
+ {}) as Params$Resource$Bluegreendeployments$Switchover;
6128
+ let options = (optionsOrCallback || {}) as MethodOptions;
6129
+
6130
+ if (typeof paramsOrCallback === 'function') {
6131
+ callback = paramsOrCallback;
6132
+ params = {} as Params$Resource$Bluegreendeployments$Switchover;
6133
+ options = {};
6134
+ }
6135
+
6136
+ if (typeof optionsOrCallback === 'function') {
6137
+ callback = optionsOrCallback;
6138
+ options = {};
6139
+ }
6140
+
6141
+ const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/';
6142
+ const parameters = {
6143
+ options: Object.assign(
6144
+ {
6145
+ url: (rootUrl + '/v1/{+name}:switchover').replace(
6146
+ /([^:]\/)\/+/g,
6147
+ '$1'
6148
+ ),
6149
+ method: 'POST',
6150
+ apiVersion: '',
6151
+ },
6152
+ options
6153
+ ),
6154
+ params,
6155
+ requiredParams: ['name'],
6156
+ pathParams: ['name'],
6157
+ context: this.context,
6158
+ };
6159
+ if (callback) {
6160
+ createAPIRequest<Schema$Operation>(
6161
+ parameters,
6162
+ callback as BodyResponseCallback<unknown>
6163
+ );
6164
+ } else {
6165
+ return createAPIRequest<Schema$Operation>(parameters);
6166
+ }
6167
+ }
6168
+ }
6169
+
6170
+ export interface Params$Resource$Bluegreendeployments$Create extends StandardParameters {
6171
+ /**
6172
+ * Required. The ID to use for the blue-green deployment, which will become the final component of the deployment's resource name. The ID must be unique within the given project and location and between 2-63 characters.
6173
+ */
6174
+ blueGreenDeploymentId?: string;
6175
+ /**
6176
+ * Required. The parent resource where this blue-green deployment will be created. Format: projects/{project\}/locations/{location\}
6177
+ */
6178
+ parent?: string;
6179
+
6180
+ /**
6181
+ * Request body metadata
6182
+ */
6183
+ requestBody?: Schema$BlueGreenDeployment;
6184
+ }
6185
+ export interface Params$Resource$Bluegreendeployments$Delete extends StandardParameters {
6186
+ /**
6187
+ * Optional. If set to true, and the switchover is complete, this deletes the old source instance along with the deployment.
6188
+ */
6189
+ deleteOldSource?: boolean;
6190
+ /**
6191
+ * Required. The name of the blue-green deployment to delete. Format: projects/{project\}/locations/{location\}/blueGreenDeployments/{blue_green_deployment\}
6192
+ */
6193
+ name?: string;
6194
+ }
6195
+ export interface Params$Resource$Bluegreendeployments$Get extends StandardParameters {
6196
+ /**
6197
+ * Required. The name of the blue-green deployment to retrieve. Format: projects/{project\}/locations/{location\}/blueGreenDeployments/{blue_green_deployment\}
6198
+ */
6199
+ name?: string;
6200
+ /**
6201
+ * Optional. Specifies whether to return the basic or detailed view of the resource in the response.
6202
+ */
6203
+ view?: string;
6204
+ }
6205
+ export interface Params$Resource$Bluegreendeployments$List extends StandardParameters {
6206
+ /**
6207
+ * Optional. A filter expression that filters the results.
6208
+ */
6209
+ filter?: string;
6210
+ /**
6211
+ * Optional. A comma-separated list of fields to order the results by.
6212
+ */
6213
+ orderBy?: string;
6214
+ /**
6215
+ * Optional. The maximum number of deployments to return. The service may return fewer deployments than this value. If unspecified, at most 500 deployments are returned. The maximum value is 1000; values above 1000 are treated as 1000.
6216
+ */
6217
+ pageSize?: number;
6218
+ /**
6219
+ * Optional. A page token, received from a previous `ListBlueGreenDeployments` call. Provide this to retrieve the subsequent page.
6220
+ */
6221
+ pageToken?: string;
6222
+ /**
6223
+ * Required. The parent resource whose blue-green deployments are to be listed. Format: projects/{project\}/locations/{location\}
6224
+ */
6225
+ parent?: string;
6226
+ }
6227
+ export interface Params$Resource$Bluegreendeployments$Switchover extends StandardParameters {
6228
+ /**
6229
+ * Required. The name of the blue-green deployment to switch over. Format: projects/{project\}/locations/{location\}/blueGreenDeployments/{blue_green_deployment\}
6230
+ */
6231
+ name?: string;
6232
+
6233
+ /**
6234
+ * Request body metadata
6235
+ */
6236
+ requestBody?: Schema$SwitchoverBlueGreenDeploymentRequest;
6237
+ }
6238
+
6239
+ export class Resource$Connect {
6240
+ context: APIRequestContext;
6241
+ constructor(context: APIRequestContext) {
6242
+ this.context = context;
6243
+ }
6244
+
6245
+ /**
6246
+ * Generates a short-lived X509 certificate containing the provided public key and signed by a private key specific to the target instance. Users may use the certificate to authenticate as themselves when connecting to the database.
6247
+ * @example
6248
+ * ```js
6249
+ * // Before running the sample:
6250
+ * // - Enable the API at:
6251
+ * // https://console.developers.google.com/apis/api/sqladmin.googleapis.com
6252
+ * // - Login into gcloud by running:
6253
+ * // ```sh
6254
+ * // $ gcloud auth application-default login
6255
+ * // ```
6256
+ * // - Install the npm module by running:
6257
+ * // ```sh
6258
+ * // $ npm install googleapis
6259
+ * // ```
6260
+ *
6261
+ * const {google} = require('googleapis');
6262
+ * const sqladmin = google.sqladmin('v1');
6263
+ *
6264
+ * async function main() {
6265
+ * const auth = new google.auth.GoogleAuth({
6266
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
6267
+ * scopes: [
6268
+ * 'https://www.googleapis.com/auth/cloud-platform',
6269
+ * 'https://www.googleapis.com/auth/sqlservice.admin',
6270
+ * ],
6271
+ * });
6272
+ *
6273
+ * // Acquire an auth client, and bind it to all future calls
6274
+ * const authClient = await auth.getClient();
6275
+ * google.options({auth: authClient});
6276
+ *
6277
+ * // Do the magic
6278
+ * const res = await sql.connect.generateEphemeral({
6279
+ * // Cloud SQL instance ID. This does not include the project ID.
6280
+ * instance: 'placeholder-value',
6281
+ * // Project ID of the project that contains the instance.
6282
+ * project: 'placeholder-value',
6283
+ *
6284
+ * // Request body metadata
6285
+ * requestBody: {
6286
+ * // request body parameters
6287
+ * // {
6288
+ * // "access_token": "my_access_token",
6289
+ * // "public_key": "my_public_key",
6290
+ * // "readTime": "my_readTime",
6291
+ * // "validDuration": "my_validDuration"
6292
+ * // }
6293
+ * },
6294
+ * });
6295
+ * console.log(res.data);
6296
+ *
6297
+ * // Example response
6298
+ * // {
6299
+ * // "ephemeralCert": {}
6300
+ * // }
6301
+ * }
6302
+ *
6303
+ * main().catch(e => {
6304
+ * console.error(e);
6305
+ * throw e;
6306
+ * });
6307
+ *
6308
+ * ```
6309
+ *
6310
+ * @param params - Parameters for request
6311
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
6312
+ * @param callback - Optional callback that handles the response.
6313
+ * @returns A promise if used with async/await, or void if used with a callback.
6314
+ */
6315
+ generateEphemeralCert(
6316
+ params: Params$Resource$Connect$Generateephemeralcert,
6317
+ options: StreamMethodOptions
6318
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
6319
+ generateEphemeralCert(
6320
+ params?: Params$Resource$Connect$Generateephemeralcert,
6321
+ options?: MethodOptions
6322
+ ): Promise<GaxiosResponseWithHTTP2<Schema$GenerateEphemeralCertResponse>>;
6323
+ generateEphemeralCert(
6324
+ params: Params$Resource$Connect$Generateephemeralcert,
6325
+ options: StreamMethodOptions | BodyResponseCallback<Readable>,
6326
+ callback: BodyResponseCallback<Readable>
6327
+ ): void;
6328
+ generateEphemeralCert(
6329
+ params: Params$Resource$Connect$Generateephemeralcert,
6330
+ options:
6331
+ | MethodOptions
6332
+ | BodyResponseCallback<Schema$GenerateEphemeralCertResponse>,
6333
+ callback: BodyResponseCallback<Schema$GenerateEphemeralCertResponse>
6334
+ ): void;
6335
+ generateEphemeralCert(
6336
+ params: Params$Resource$Connect$Generateephemeralcert,
6337
+ callback: BodyResponseCallback<Schema$GenerateEphemeralCertResponse>
6338
+ ): void;
6339
+ generateEphemeralCert(
6340
+ callback: BodyResponseCallback<Schema$GenerateEphemeralCertResponse>
6341
+ ): void;
6342
+ generateEphemeralCert(
6343
+ paramsOrCallback?:
6344
+ | Params$Resource$Connect$Generateephemeralcert
6345
+ | BodyResponseCallback<Schema$GenerateEphemeralCertResponse>
6346
+ | BodyResponseCallback<Readable>,
6347
+ optionsOrCallback?:
6348
+ | MethodOptions
6349
+ | StreamMethodOptions
6350
+ | BodyResponseCallback<Schema$GenerateEphemeralCertResponse>
6351
+ | BodyResponseCallback<Readable>,
6352
+ callback?:
6353
+ | BodyResponseCallback<Schema$GenerateEphemeralCertResponse>
6354
+ | BodyResponseCallback<Readable>
6355
+ ):
6356
+ | void
6357
+ | Promise<GaxiosResponseWithHTTP2<Schema$GenerateEphemeralCertResponse>>
6358
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
6359
+ let params = (paramsOrCallback ||
6360
+ {}) as Params$Resource$Connect$Generateephemeralcert;
6361
+ let options = (optionsOrCallback || {}) as MethodOptions;
6362
+
6363
+ if (typeof paramsOrCallback === 'function') {
6364
+ callback = paramsOrCallback;
6365
+ params = {} as Params$Resource$Connect$Generateephemeralcert;
6366
+ options = {};
6367
+ }
6368
+
6369
+ if (typeof optionsOrCallback === 'function') {
6370
+ callback = optionsOrCallback;
6371
+ options = {};
6372
+ }
6373
+
6374
+ const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/';
6375
+ const parameters = {
6376
+ options: Object.assign(
6377
+ {
6378
+ url: (
6379
+ rootUrl +
6380
+ '/v1/projects/{project}/instances/{instance}:generateEphemeralCert'
6381
+ ).replace(/([^:]\/)\/+/g, '$1'),
6382
+ method: 'POST',
6383
+ apiVersion: '',
6384
+ },
6385
+ options
6386
+ ),
6387
+ params,
6388
+ requiredParams: ['project', 'instance'],
6389
+ pathParams: ['instance', 'project'],
6390
+ context: this.context,
6391
+ };
6392
+ if (callback) {
6393
+ createAPIRequest<Schema$GenerateEphemeralCertResponse>(
6394
+ parameters,
6395
+ callback as BodyResponseCallback<unknown>
6396
+ );
6397
+ } else {
6398
+ return createAPIRequest<Schema$GenerateEphemeralCertResponse>(
6399
+ parameters
6400
+ );
6401
+ }
6402
+ }
6403
+
6404
+ /**
6405
+ * Retrieves connect settings about a Cloud SQL instance.
6406
+ * @example
6407
+ * ```js
6408
+ * // Before running the sample:
6409
+ * // - Enable the API at:
6410
+ * // https://console.developers.google.com/apis/api/sqladmin.googleapis.com
6411
+ * // - Login into gcloud by running:
6412
+ * // ```sh
6413
+ * // $ gcloud auth application-default login
6414
+ * // ```
6415
+ * // - Install the npm module by running:
6416
+ * // ```sh
6417
+ * // $ npm install googleapis
6418
+ * // ```
6419
+ *
6420
+ * const {google} = require('googleapis');
6421
+ * const sqladmin = google.sqladmin('v1');
6422
+ *
6423
+ * async function main() {
6424
+ * const auth = new google.auth.GoogleAuth({
6425
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
6426
+ * scopes: [
6427
+ * 'https://www.googleapis.com/auth/cloud-platform',
6428
+ * 'https://www.googleapis.com/auth/sqlservice.admin',
6429
+ * ],
6430
+ * });
6431
+ *
6432
+ * // Acquire an auth client, and bind it to all future calls
6433
+ * const authClient = await auth.getClient();
6434
+ * google.options({auth: authClient});
6435
+ *
6436
+ * // Do the magic
6437
+ * const res = await sql.connect.get({
6438
+ * // Cloud SQL instance ID. This does not include the project ID.
6439
+ * instance: 'placeholder-value',
6440
+ * // Project ID of the project that contains the instance.
6441
+ * project: 'placeholder-value',
6442
+ * // Optional. Optional snapshot read timestamp to trade freshness for performance.
6443
+ * readTime: 'placeholder-value',
6444
+ * });
6445
+ * console.log(res.data);
6446
+ *
6447
+ * // Example response
6448
+ * // {
6449
+ * // "backendType": "my_backendType",
6450
+ * // "connectionName": "my_connectionName",
6451
+ * // "customSubjectAlternativeNames": [],
6452
+ * // "databaseVersion": "my_databaseVersion",
6453
+ * // "dnsName": "my_dnsName",
6454
+ * // "dnsNames": [],
6455
+ * // "ipAddresses": [],
6456
+ * // "kind": "my_kind",
6457
+ * // "mdxProtocolSupport": [],
6458
+ * // "nodeCount": 0,
6459
+ * // "nodes": [],
6460
+ * // "pscEnabled": false,
6461
+ * // "region": "my_region",
5349
6462
  * // "serverCaCert": {},
5350
6463
  * // "serverCaMode": "my_serverCaMode"
5351
6464
  * // }
@@ -5685,6 +6798,8 @@ export namespace sqladmin_v1 {
5685
6798
  * database: 'placeholder-value',
5686
6799
  * // Database instance ID. This does not include the project ID.
5687
6800
  * instance: 'placeholder-value',
6801
+ * // Optional. Region of the Cloud SQL instance.
6802
+ * location: 'placeholder-value',
5688
6803
  * // Project ID of the project that contains the instance.
5689
6804
  * project: 'placeholder-value',
5690
6805
  * });
@@ -5846,6 +6961,8 @@ export namespace sqladmin_v1 {
5846
6961
  * database: 'placeholder-value',
5847
6962
  * // Database instance ID. This does not include the project ID.
5848
6963
  * instance: 'placeholder-value',
6964
+ * // Optional. Region of the Cloud SQL instance.
6965
+ * location: 'placeholder-value',
5849
6966
  * // Project ID of the project that contains the instance.
5850
6967
  * project: 'placeholder-value',
5851
6968
  * });
@@ -5994,6 +7111,8 @@ export namespace sqladmin_v1 {
5994
7111
  * const res = await sql.databases.insert({
5995
7112
  * // Database instance ID. This does not include the project ID.
5996
7113
  * instance: 'placeholder-value',
7114
+ * // Optional. Region of the Cloud SQL instance.
7115
+ * location: 'placeholder-value',
5997
7116
  * // Project ID of the project that contains the instance.
5998
7117
  * project: 'placeholder-value',
5999
7118
  *
@@ -6168,6 +7287,8 @@ export namespace sqladmin_v1 {
6168
7287
  * const res = await sql.databases.list({
6169
7288
  * // Cloud SQL instance ID. This does not include the project ID.
6170
7289
  * instance: 'placeholder-value',
7290
+ * // Optional. Region of the Cloud SQL instance.
7291
+ * location: 'placeholder-value',
6171
7292
  * // Project ID of the project that contains the instance.
6172
7293
  * project: 'placeholder-value',
6173
7294
  * });
@@ -6312,6 +7433,8 @@ export namespace sqladmin_v1 {
6312
7433
  * database: 'placeholder-value',
6313
7434
  * // Database instance ID. This does not include the project ID.
6314
7435
  * instance: 'placeholder-value',
7436
+ * // Optional. Region of the Cloud SQL instance.
7437
+ * location: 'placeholder-value',
6315
7438
  * // Project ID of the project that contains the instance.
6316
7439
  * project: 'placeholder-value',
6317
7440
  *
@@ -6489,6 +7612,8 @@ export namespace sqladmin_v1 {
6489
7612
  * database: 'placeholder-value',
6490
7613
  * // Database instance ID. This does not include the project ID.
6491
7614
  * instance: 'placeholder-value',
7615
+ * // Optional. Region of the Cloud SQL instance.
7616
+ * location: 'placeholder-value',
6492
7617
  * // Project ID of the project that contains the instance.
6493
7618
  * project: 'placeholder-value',
6494
7619
  *
@@ -6638,6 +7763,10 @@ export namespace sqladmin_v1 {
6638
7763
  * Database instance ID. This does not include the project ID.
6639
7764
  */
6640
7765
  instance?: string;
7766
+ /**
7767
+ * Optional. Region of the Cloud SQL instance.
7768
+ */
7769
+ location?: string;
6641
7770
  /**
6642
7771
  * Project ID of the project that contains the instance.
6643
7772
  */
@@ -6652,6 +7781,10 @@ export namespace sqladmin_v1 {
6652
7781
  * Database instance ID. This does not include the project ID.
6653
7782
  */
6654
7783
  instance?: string;
7784
+ /**
7785
+ * Optional. Region of the Cloud SQL instance.
7786
+ */
7787
+ location?: string;
6655
7788
  /**
6656
7789
  * Project ID of the project that contains the instance.
6657
7790
  */
@@ -6662,6 +7795,10 @@ export namespace sqladmin_v1 {
6662
7795
  * Database instance ID. This does not include the project ID.
6663
7796
  */
6664
7797
  instance?: string;
7798
+ /**
7799
+ * Optional. Region of the Cloud SQL instance.
7800
+ */
7801
+ location?: string;
6665
7802
  /**
6666
7803
  * Project ID of the project that contains the instance.
6667
7804
  */
@@ -6677,6 +7814,10 @@ export namespace sqladmin_v1 {
6677
7814
  * Cloud SQL instance ID. This does not include the project ID.
6678
7815
  */
6679
7816
  instance?: string;
7817
+ /**
7818
+ * Optional. Region of the Cloud SQL instance.
7819
+ */
7820
+ location?: string;
6680
7821
  /**
6681
7822
  * Project ID of the project that contains the instance.
6682
7823
  */
@@ -6691,6 +7832,10 @@ export namespace sqladmin_v1 {
6691
7832
  * Database instance ID. This does not include the project ID.
6692
7833
  */
6693
7834
  instance?: string;
7835
+ /**
7836
+ * Optional. Region of the Cloud SQL instance.
7837
+ */
7838
+ location?: string;
6694
7839
  /**
6695
7840
  * Project ID of the project that contains the instance.
6696
7841
  */
@@ -6710,6 +7855,10 @@ export namespace sqladmin_v1 {
6710
7855
  * Database instance ID. This does not include the project ID.
6711
7856
  */
6712
7857
  instance?: string;
7858
+ /**
7859
+ * Optional. Region of the Cloud SQL instance.
7860
+ */
7861
+ location?: string;
6713
7862
  /**
6714
7863
  * Project ID of the project that contains the instance.
6715
7864
  */
@@ -6920,6 +8069,8 @@ export namespace sqladmin_v1 {
6920
8069
  * const res = await sql.instances.acquireSsrsLease({
6921
8070
  * // Required. Cloud SQL instance ID. This doesn't include the project ID. It's composed of lowercase letters, numbers, and hyphens, and it must start with a letter. The total length must be 98 characters or less (Example: instance-id).
6922
8071
  * instance: 'placeholder-value',
8072
+ * // Optional. Region of the Cloud SQL instance.
8073
+ * location: 'placeholder-value',
6923
8074
  * // Required. Project ID of the project that contains the instance (Example: project-id).
6924
8075
  * project: 'placeholder-value',
6925
8076
  *
@@ -7080,6 +8231,8 @@ export namespace sqladmin_v1 {
7080
8231
  * const res = await sql.instances.addEntraIdCertificate({
7081
8232
  * // Required. Cloud SQL instance ID. This does not include the project ID.
7082
8233
  * instance: 'placeholder-value',
8234
+ * // Optional. Region of the Cloud SQL instance.
8235
+ * location: 'placeholder-value',
7083
8236
  * // Required. Project ID of the project that contains the instance.
7084
8237
  * project: 'placeholder-value',
7085
8238
  * });
@@ -7242,6 +8395,8 @@ export namespace sqladmin_v1 {
7242
8395
  * const res = await sql.instances.addServerCa({
7243
8396
  * // Cloud SQL instance ID. This does not include the project ID.
7244
8397
  * instance: 'placeholder-value',
8398
+ * // Optional. Region of the Cloud SQL instance.
8399
+ * location: 'placeholder-value',
7245
8400
  * // Project ID of the project that contains the instance.
7246
8401
  * project: 'placeholder-value',
7247
8402
  * });
@@ -7402,6 +8557,8 @@ export namespace sqladmin_v1 {
7402
8557
  * const res = await sql.instances.addServerCertificate({
7403
8558
  * // Cloud SQL instance ID. This does not include the project ID.
7404
8559
  * instance: 'placeholder-value',
8560
+ * // Optional. Region of the Cloud SQL instance.
8561
+ * location: 'placeholder-value',
7405
8562
  * // Project ID of the project that contains the instance.
7406
8563
  * project: 'placeholder-value',
7407
8564
  * });
@@ -7564,6 +8721,8 @@ export namespace sqladmin_v1 {
7564
8721
  * const res = await sql.instances.clone({
7565
8722
  * // Required. The ID of the Cloud SQL instance to be cloned (source). This does not include the project ID.
7566
8723
  * instance: 'placeholder-value',
8724
+ * // Optional. Region of the Cloud SQL instance.
8725
+ * location: 'placeholder-value',
7567
8726
  * // Required. Project ID of the source Cloud SQL instance.
7568
8727
  * project: 'placeholder-value',
7569
8728
  *
@@ -7738,6 +8897,8 @@ export namespace sqladmin_v1 {
7738
8897
  * finalBackupTtlDays: 'placeholder-value',
7739
8898
  * // Cloud SQL instance ID. This does not include the project ID.
7740
8899
  * instance: 'placeholder-value',
8900
+ * // Optional. Region of the Cloud SQL instance.
8901
+ * location: 'placeholder-value',
7741
8902
  * // Project ID of the project that contains the instance to be deleted.
7742
8903
  * project: 'placeholder-value',
7743
8904
  * });
@@ -7896,6 +9057,8 @@ export namespace sqladmin_v1 {
7896
9057
  * const res = await sql.instances.demote({
7897
9058
  * // Required. Cloud SQL instance name.
7898
9059
  * instance: 'placeholder-value',
9060
+ * // Optional. Region of the Cloud SQL instance.
9061
+ * location: 'placeholder-value',
7899
9062
  * // Required. ID of the project that contains the instance.
7900
9063
  * project: 'placeholder-value',
7901
9064
  *
@@ -8062,6 +9225,8 @@ export namespace sqladmin_v1 {
8062
9225
  * const res = await sql.instances.demoteMaster({
8063
9226
  * // Cloud SQL instance name.
8064
9227
  * instance: 'placeholder-value',
9228
+ * // Optional. Region of the Cloud SQL instance.
9229
+ * location: 'placeholder-value',
8065
9230
  * // ID of the project that contains the instance.
8066
9231
  * project: 'placeholder-value',
8067
9232
  *
@@ -8230,6 +9395,8 @@ export namespace sqladmin_v1 {
8230
9395
  * const res = await sql.instances.executeSql({
8231
9396
  * // Required. Database instance ID. This does not include the project ID.
8232
9397
  * instance: 'placeholder-value',
9398
+ * // Optional. Region of the Cloud SQL instance.
9399
+ * location: 'placeholder-value',
8233
9400
  * // Required. Project ID of the project that contains the instance.
8234
9401
  * project: 'placeholder-value',
8235
9402
  *
@@ -8392,6 +9559,8 @@ export namespace sqladmin_v1 {
8392
9559
  * const res = await sql.instances.export({
8393
9560
  * // Cloud SQL instance ID. This does not include the project ID.
8394
9561
  * instance: 'placeholder-value',
9562
+ * // Optional. Region of the Cloud SQL instance.
9563
+ * location: 'placeholder-value',
8395
9564
  * // Project ID of the project that contains the instance to be exported.
8396
9565
  * project: 'placeholder-value',
8397
9566
  *
@@ -8558,6 +9727,8 @@ export namespace sqladmin_v1 {
8558
9727
  * const res = await sql.instances.failover({
8559
9728
  * // Cloud SQL instance ID. This does not include the project ID.
8560
9729
  * instance: 'placeholder-value',
9730
+ * // Optional. Region of the Cloud SQL instance.
9731
+ * location: 'placeholder-value',
8561
9732
  * // ID of the project that contains the read replica.
8562
9733
  * project: 'placeholder-value',
8563
9734
  *
@@ -8725,6 +9896,8 @@ export namespace sqladmin_v1 {
8725
9896
  * const res = await sql.instances.get({
8726
9897
  * // Required. Database instance ID. This does not include the project ID.
8727
9898
  * instance: 'placeholder-value',
9899
+ * // Optional. Region of the Cloud SQL instance.
9900
+ * location: 'placeholder-value',
8728
9901
  * // Required. Project ID of the project that contains the instance.
8729
9902
  * project: 'placeholder-value',
8730
9903
  * });
@@ -8740,6 +9913,7 @@ export namespace sqladmin_v1 {
8740
9913
  * // "databaseCenterIntegrationEnabled": false,
8741
9914
  * // "databaseInstalledVersion": "my_databaseInstalledVersion",
8742
9915
  * // "databaseVersion": "my_databaseVersion",
9916
+ * // "deploymentInfo": {},
8743
9917
  * // "diskEncryptionConfiguration": {},
8744
9918
  * // "diskEncryptionStatus": {},
8745
9919
  * // "dnsName": "my_dnsName",
@@ -8913,6 +10087,8 @@ export namespace sqladmin_v1 {
8913
10087
  * const res = await sql.instances.import({
8914
10088
  * // Cloud SQL instance ID. This does not include the project ID.
8915
10089
  * instance: 'placeholder-value',
10090
+ * // Optional. Region of the Cloud SQL instance.
10091
+ * location: 'placeholder-value',
8916
10092
  * // Project ID of the project that contains the instance.
8917
10093
  * project: 'placeholder-value',
8918
10094
  *
@@ -9077,6 +10253,8 @@ export namespace sqladmin_v1 {
9077
10253
  *
9078
10254
  * // Do the magic
9079
10255
  * const res = await sql.instances.insert({
10256
+ * // Optional. Region of the Cloud SQL instance.
10257
+ * location: 'placeholder-value',
9080
10258
  * // Project ID of the project to which the newly created Cloud SQL instances should belong.
9081
10259
  * project: 'placeholder-value',
9082
10260
  *
@@ -9092,6 +10270,7 @@ export namespace sqladmin_v1 {
9092
10270
  * // "databaseCenterIntegrationEnabled": false,
9093
10271
  * // "databaseInstalledVersion": "my_databaseInstalledVersion",
9094
10272
  * // "databaseVersion": "my_databaseVersion",
10273
+ * // "deploymentInfo": {},
9095
10274
  * // "diskEncryptionConfiguration": {},
9096
10275
  * // "diskEncryptionStatus": {},
9097
10276
  * // "dnsName": "my_dnsName",
@@ -9295,6 +10474,8 @@ export namespace sqladmin_v1 {
9295
10474
  * const res = await sql.instances.list({
9296
10475
  * // A filter expression that filters resources listed in the response. The expression is in the form of field:value. For example, 'instanceType:CLOUD_SQL_INSTANCE'. Fields can be nested as needed as per their JSON representation, such as 'settings.userLabels.auto_start:true'. Multiple filter queries are space-separated. For example. 'state:RUNNABLE instanceType:CLOUD_SQL_INSTANCE'. By default, each expression is an AND expression. However, you can include AND and OR expressions explicitly.
9297
10476
  * filter: 'placeholder-value',
10477
+ * // Optional. Region of the Cloud SQL instance.
10478
+ * location: 'placeholder-value',
9298
10479
  * // The maximum number of instances to return. The service may return fewer than this value. If unspecified, at most 500 instances are returned. The maximum value is 1000; values above 1000 are coerced to 1000.
9299
10480
  * maxResults: 'placeholder-value',
9300
10481
  * // A previously-returned page token representing part of the larger set of results to view.
@@ -9444,6 +10625,8 @@ export namespace sqladmin_v1 {
9444
10625
  * const res = await sql.instances.ListEntraIdCertificates({
9445
10626
  * // Required. Cloud SQL instance ID. This does not include the project ID.
9446
10627
  * instance: 'placeholder-value',
10628
+ * // Optional. Region of the Cloud SQL instance.
10629
+ * location: 'placeholder-value',
9447
10630
  * // Required. Project ID of the project that contains the instance.
9448
10631
  * project: 'placeholder-value',
9449
10632
  * });
@@ -9598,6 +10781,8 @@ export namespace sqladmin_v1 {
9598
10781
  * const res = await sql.instances.listServerCas({
9599
10782
  * // Cloud SQL instance ID. This does not include the project ID.
9600
10783
  * instance: 'placeholder-value',
10784
+ * // Optional. Region of the Cloud SQL instance.
10785
+ * location: 'placeholder-value',
9601
10786
  * // Project ID of the project that contains the instance.
9602
10787
  * project: 'placeholder-value',
9603
10788
  * });
@@ -9748,6 +10933,8 @@ export namespace sqladmin_v1 {
9748
10933
  * const res = await sql.instances.ListServerCertificates({
9749
10934
  * // Required. Cloud SQL instance ID. This does not include the project ID.
9750
10935
  * instance: 'placeholder-value',
10936
+ * // Optional. Region of the Cloud SQL instance.
10937
+ * location: 'placeholder-value',
9751
10938
  * // Required. Project ID of the project that contains the instance.
9752
10939
  * project: 'placeholder-value',
9753
10940
  * });
@@ -9903,6 +11090,8 @@ export namespace sqladmin_v1 {
9903
11090
  * const res = await sql.instances.patch({
9904
11091
  * // Cloud SQL instance ID. This does not include the project ID.
9905
11092
  * instance: 'placeholder-value',
11093
+ * // Optional. Region of the Cloud SQL instance.
11094
+ * location: 'placeholder-value',
9906
11095
  * // Project ID of the project that contains the instance.
9907
11096
  * project: 'placeholder-value',
9908
11097
  * // Optional. Set PSC config to the same value as the existing config to reconcile the PSC networking.
@@ -9922,6 +11111,7 @@ export namespace sqladmin_v1 {
9922
11111
  * // "databaseCenterIntegrationEnabled": false,
9923
11112
  * // "databaseInstalledVersion": "my_databaseInstalledVersion",
9924
11113
  * // "databaseVersion": "my_databaseVersion",
11114
+ * // "deploymentInfo": {},
9925
11115
  * // "diskEncryptionConfiguration": {},
9926
11116
  * // "diskEncryptionStatus": {},
9927
11117
  * // "dnsName": "my_dnsName",
@@ -10299,6 +11489,8 @@ export namespace sqladmin_v1 {
10299
11489
  * const res = await sql.instances.preCheckMajorVersionUpgrade({
10300
11490
  * // Required. Cloud SQL instance ID. This does not include the project ID.
10301
11491
  * instance: 'placeholder-value',
11492
+ * // Optional. Region of the Cloud SQL instance.
11493
+ * location: 'placeholder-value',
10302
11494
  * // Required. Project ID of the project that contains the instance.
10303
11495
  * project: 'placeholder-value',
10304
11496
  *
@@ -10471,6 +11663,8 @@ export namespace sqladmin_v1 {
10471
11663
  * failover: 'placeholder-value',
10472
11664
  * // Cloud SQL read replica instance name.
10473
11665
  * instance: 'placeholder-value',
11666
+ * // Optional. Region of the Cloud SQL instance.
11667
+ * location: 'placeholder-value',
10474
11668
  * // ID of the project that contains the read replica.
10475
11669
  * project: 'placeholder-value',
10476
11670
  * });
@@ -10631,6 +11825,8 @@ export namespace sqladmin_v1 {
10631
11825
  * const res = await sql.instances.reencrypt({
10632
11826
  * // Cloud SQL instance ID. This does not include the project ID.
10633
11827
  * instance: 'placeholder-value',
11828
+ * // Optional. Region of the Cloud SQL instance.
11829
+ * location: 'placeholder-value',
10634
11830
  * // ID of the project that contains the instance.
10635
11831
  * project: 'placeholder-value',
10636
11832
  *
@@ -10798,6 +11994,8 @@ export namespace sqladmin_v1 {
10798
11994
  * const res = await sql.instances.releaseSsrsLease({
10799
11995
  * // Required. The Cloud SQL instance ID. This doesn't include the project ID. The instance ID contains lowercase letters, numbers, and hyphens, and it must start with a letter. This ID can have a maximum length of 98 characters.
10800
11996
  * instance: 'placeholder-value',
11997
+ * // Optional. Region of the Cloud SQL instance.
11998
+ * location: 'placeholder-value',
10801
11999
  * // Required. The project ID that contains the instance.
10802
12000
  * project: 'placeholder-value',
10803
12001
  * });
@@ -10950,6 +12148,8 @@ export namespace sqladmin_v1 {
10950
12148
  * const res = await sql.instances.resetSslConfig({
10951
12149
  * // Cloud SQL instance ID. This does not include the project ID.
10952
12150
  * instance: 'placeholder-value',
12151
+ * // Optional. Region of the Cloud SQL instance.
12152
+ * location: 'placeholder-value',
10953
12153
  * // Optional. Reset SSL mode to use.
10954
12154
  * mode: 'placeholder-value',
10955
12155
  * // Project ID of the project that contains the instance.
@@ -11112,6 +12312,8 @@ export namespace sqladmin_v1 {
11112
12312
  * const res = await sql.instances.restart({
11113
12313
  * // Cloud SQL instance ID. This does not include the project ID.
11114
12314
  * instance: 'placeholder-value',
12315
+ * // Optional. Region of the Cloud SQL instance.
12316
+ * location: 'placeholder-value',
11115
12317
  * // Project ID of the project that contains the instance to be restarted.
11116
12318
  * project: 'placeholder-value',
11117
12319
  * });
@@ -11271,6 +12473,8 @@ export namespace sqladmin_v1 {
11271
12473
  * const res = await sql.instances.restoreBackup({
11272
12474
  * // Cloud SQL instance ID. This does not include the project ID.
11273
12475
  * instance: 'placeholder-value',
12476
+ * // Optional. Region of the Cloud SQL instance.
12477
+ * location: 'placeholder-value',
11274
12478
  * // Project ID of the project that contains the instance.
11275
12479
  * project: 'placeholder-value',
11276
12480
  *
@@ -11280,6 +12484,7 @@ export namespace sqladmin_v1 {
11280
12484
  * // {
11281
12485
  * // "backup": "my_backup",
11282
12486
  * // "backupdrBackup": "my_backupdrBackup",
12487
+ * // "ignoreMaintenanceVersion": false,
11283
12488
  * // "restoreBackupContext": {},
11284
12489
  * // "restoreInstanceClearOverridesFieldNames": [],
11285
12490
  * // "restoreInstanceSettings": {}
@@ -11443,6 +12648,8 @@ export namespace sqladmin_v1 {
11443
12648
  * const res = await sql.instances.RotateEntraIdCertificate({
11444
12649
  * // Required. Cloud SQL instance ID. This does not include the project ID.
11445
12650
  * instance: 'placeholder-value',
12651
+ * // Optional. Region of the Cloud SQL instance.
12652
+ * location: 'placeholder-value',
11446
12653
  * // Required. Project ID of the project that contains the instance.
11447
12654
  * project: 'placeholder-value',
11448
12655
  *
@@ -11613,6 +12820,8 @@ export namespace sqladmin_v1 {
11613
12820
  * const res = await sql.instances.rotateServerCa({
11614
12821
  * // Cloud SQL instance ID. This does not include the project ID.
11615
12822
  * instance: 'placeholder-value',
12823
+ * // Optional. Region of the Cloud SQL instance.
12824
+ * location: 'placeholder-value',
11616
12825
  * // Project ID of the project that contains the instance.
11617
12826
  * project: 'placeholder-value',
11618
12827
  *
@@ -11781,6 +12990,8 @@ export namespace sqladmin_v1 {
11781
12990
  * const res = await sql.instances.RotateServerCertificate({
11782
12991
  * // Required. Cloud SQL instance ID. This does not include the project ID.
11783
12992
  * instance: 'placeholder-value',
12993
+ * // Optional. Region of the Cloud SQL instance.
12994
+ * location: 'placeholder-value',
11784
12995
  * // Required. Project ID of the project that contains the instance.
11785
12996
  * project: 'placeholder-value',
11786
12997
  *
@@ -11951,6 +13162,8 @@ export namespace sqladmin_v1 {
11951
13162
  * const res = await sql.instances.startReplica({
11952
13163
  * // Cloud SQL read replica instance name.
11953
13164
  * instance: 'placeholder-value',
13165
+ * // Optional. Region of the Cloud SQL instance.
13166
+ * location: 'placeholder-value',
11954
13167
  * // ID of the project that contains the read replica.
11955
13168
  * project: 'placeholder-value',
11956
13169
  * });
@@ -12111,6 +13324,8 @@ export namespace sqladmin_v1 {
12111
13324
  * const res = await sql.instances.stopReplica({
12112
13325
  * // Cloud SQL read replica instance name.
12113
13326
  * instance: 'placeholder-value',
13327
+ * // Optional. Region of the Cloud SQL instance.
13328
+ * location: 'placeholder-value',
12114
13329
  * // ID of the project that contains the read replica.
12115
13330
  * project: 'placeholder-value',
12116
13331
  * });
@@ -12273,6 +13488,8 @@ export namespace sqladmin_v1 {
12273
13488
  * dbTimeout: 'placeholder-value',
12274
13489
  * // Cloud SQL read replica instance name.
12275
13490
  * instance: 'placeholder-value',
13491
+ * // Optional. Region of the Cloud SQL instance.
13492
+ * location: 'placeholder-value',
12276
13493
  * // ID of the project that contains the replica.
12277
13494
  * project: 'placeholder-value',
12278
13495
  * });
@@ -12432,6 +13649,8 @@ export namespace sqladmin_v1 {
12432
13649
  * const res = await sql.instances.truncateLog({
12433
13650
  * // Cloud SQL instance ID. This does not include the project ID.
12434
13651
  * instance: 'placeholder-value',
13652
+ * // Optional. Region of the Cloud SQL instance.
13653
+ * location: 'placeholder-value',
12435
13654
  * // Project ID of the Cloud SQL project.
12436
13655
  * project: 'placeholder-value',
12437
13656
  *
@@ -12600,6 +13819,8 @@ export namespace sqladmin_v1 {
12600
13819
  * const res = await sql.instances.update({
12601
13820
  * // Cloud SQL instance ID. This does not include the project ID.
12602
13821
  * instance: 'placeholder-value',
13822
+ * // Optional. Region of the Cloud SQL instance.
13823
+ * location: 'placeholder-value',
12603
13824
  * // Project ID of the project that contains the instance.
12604
13825
  * project: 'placeholder-value',
12605
13826
  *
@@ -12615,6 +13836,7 @@ export namespace sqladmin_v1 {
12615
13836
  * // "databaseCenterIntegrationEnabled": false,
12616
13837
  * // "databaseInstalledVersion": "my_databaseInstalledVersion",
12617
13838
  * // "databaseVersion": "my_databaseVersion",
13839
+ * // "deploymentInfo": {},
12618
13840
  * // "diskEncryptionConfiguration": {},
12619
13841
  * // "diskEncryptionStatus": {},
12620
13842
  * // "dnsName": "my_dnsName",
@@ -12787,6 +14009,10 @@ export namespace sqladmin_v1 {
12787
14009
  * Required. Cloud SQL instance ID. This doesn't include the project ID. It's composed of lowercase letters, numbers, and hyphens, and it must start with a letter. The total length must be 98 characters or less (Example: instance-id).
12788
14010
  */
12789
14011
  instance?: string;
14012
+ /**
14013
+ * Optional. Region of the Cloud SQL instance.
14014
+ */
14015
+ location?: string;
12790
14016
  /**
12791
14017
  * Required. Project ID of the project that contains the instance (Example: project-id).
12792
14018
  */
@@ -12802,6 +14028,10 @@ export namespace sqladmin_v1 {
12802
14028
  * Required. Cloud SQL instance ID. This does not include the project ID.
12803
14029
  */
12804
14030
  instance?: string;
14031
+ /**
14032
+ * Optional. Region of the Cloud SQL instance.
14033
+ */
14034
+ location?: string;
12805
14035
  /**
12806
14036
  * Required. Project ID of the project that contains the instance.
12807
14037
  */
@@ -12812,6 +14042,10 @@ export namespace sqladmin_v1 {
12812
14042
  * Cloud SQL instance ID. This does not include the project ID.
12813
14043
  */
12814
14044
  instance?: string;
14045
+ /**
14046
+ * Optional. Region of the Cloud SQL instance.
14047
+ */
14048
+ location?: string;
12815
14049
  /**
12816
14050
  * Project ID of the project that contains the instance.
12817
14051
  */
@@ -12822,6 +14056,10 @@ export namespace sqladmin_v1 {
12822
14056
  * Cloud SQL instance ID. This does not include the project ID.
12823
14057
  */
12824
14058
  instance?: string;
14059
+ /**
14060
+ * Optional. Region of the Cloud SQL instance.
14061
+ */
14062
+ location?: string;
12825
14063
  /**
12826
14064
  * Project ID of the project that contains the instance.
12827
14065
  */
@@ -12832,6 +14070,10 @@ export namespace sqladmin_v1 {
12832
14070
  * Required. The ID of the Cloud SQL instance to be cloned (source). This does not include the project ID.
12833
14071
  */
12834
14072
  instance?: string;
14073
+ /**
14074
+ * Optional. Region of the Cloud SQL instance.
14075
+ */
14076
+ location?: string;
12835
14077
  /**
12836
14078
  * Required. Project ID of the source Cloud SQL instance.
12837
14079
  */
@@ -12863,6 +14105,10 @@ export namespace sqladmin_v1 {
12863
14105
  * Cloud SQL instance ID. This does not include the project ID.
12864
14106
  */
12865
14107
  instance?: string;
14108
+ /**
14109
+ * Optional. Region of the Cloud SQL instance.
14110
+ */
14111
+ location?: string;
12866
14112
  /**
12867
14113
  * Project ID of the project that contains the instance to be deleted.
12868
14114
  */
@@ -12873,6 +14119,10 @@ export namespace sqladmin_v1 {
12873
14119
  * Required. Cloud SQL instance name.
12874
14120
  */
12875
14121
  instance?: string;
14122
+ /**
14123
+ * Optional. Region of the Cloud SQL instance.
14124
+ */
14125
+ location?: string;
12876
14126
  /**
12877
14127
  * Required. ID of the project that contains the instance.
12878
14128
  */
@@ -12888,6 +14138,10 @@ export namespace sqladmin_v1 {
12888
14138
  * Cloud SQL instance name.
12889
14139
  */
12890
14140
  instance?: string;
14141
+ /**
14142
+ * Optional. Region of the Cloud SQL instance.
14143
+ */
14144
+ location?: string;
12891
14145
  /**
12892
14146
  * ID of the project that contains the instance.
12893
14147
  */
@@ -12903,6 +14157,10 @@ export namespace sqladmin_v1 {
12903
14157
  * Required. Database instance ID. This does not include the project ID.
12904
14158
  */
12905
14159
  instance?: string;
14160
+ /**
14161
+ * Optional. Region of the Cloud SQL instance.
14162
+ */
14163
+ location?: string;
12906
14164
  /**
12907
14165
  * Required. Project ID of the project that contains the instance.
12908
14166
  */
@@ -12918,6 +14176,10 @@ export namespace sqladmin_v1 {
12918
14176
  * Cloud SQL instance ID. This does not include the project ID.
12919
14177
  */
12920
14178
  instance?: string;
14179
+ /**
14180
+ * Optional. Region of the Cloud SQL instance.
14181
+ */
14182
+ location?: string;
12921
14183
  /**
12922
14184
  * Project ID of the project that contains the instance to be exported.
12923
14185
  */
@@ -12933,6 +14195,10 @@ export namespace sqladmin_v1 {
12933
14195
  * Cloud SQL instance ID. This does not include the project ID.
12934
14196
  */
12935
14197
  instance?: string;
14198
+ /**
14199
+ * Optional. Region of the Cloud SQL instance.
14200
+ */
14201
+ location?: string;
12936
14202
  /**
12937
14203
  * ID of the project that contains the read replica.
12938
14204
  */
@@ -12948,6 +14214,10 @@ export namespace sqladmin_v1 {
12948
14214
  * Required. Database instance ID. This does not include the project ID.
12949
14215
  */
12950
14216
  instance?: string;
14217
+ /**
14218
+ * Optional. Region of the Cloud SQL instance.
14219
+ */
14220
+ location?: string;
12951
14221
  /**
12952
14222
  * Required. Project ID of the project that contains the instance.
12953
14223
  */
@@ -12958,6 +14228,10 @@ export namespace sqladmin_v1 {
12958
14228
  * Cloud SQL instance ID. This does not include the project ID.
12959
14229
  */
12960
14230
  instance?: string;
14231
+ /**
14232
+ * Optional. Region of the Cloud SQL instance.
14233
+ */
14234
+ location?: string;
12961
14235
  /**
12962
14236
  * Project ID of the project that contains the instance.
12963
14237
  */
@@ -12969,6 +14243,10 @@ export namespace sqladmin_v1 {
12969
14243
  requestBody?: Schema$InstancesImportRequest;
12970
14244
  }
12971
14245
  export interface Params$Resource$Instances$Insert extends StandardParameters {
14246
+ /**
14247
+ * Optional. Region of the Cloud SQL instance.
14248
+ */
14249
+ location?: string;
12972
14250
  /**
12973
14251
  * Project ID of the project to which the newly created Cloud SQL instances should belong.
12974
14252
  */
@@ -12984,6 +14262,10 @@ export namespace sqladmin_v1 {
12984
14262
  * A filter expression that filters resources listed in the response. The expression is in the form of field:value. For example, 'instanceType:CLOUD_SQL_INSTANCE'. Fields can be nested as needed as per their JSON representation, such as 'settings.userLabels.auto_start:true'. Multiple filter queries are space-separated. For example. 'state:RUNNABLE instanceType:CLOUD_SQL_INSTANCE'. By default, each expression is an AND expression. However, you can include AND and OR expressions explicitly.
12985
14263
  */
12986
14264
  filter?: string;
14265
+ /**
14266
+ * Optional. Region of the Cloud SQL instance.
14267
+ */
14268
+ location?: string;
12987
14269
  /**
12988
14270
  * The maximum number of instances to return. The service may return fewer than this value. If unspecified, at most 500 instances are returned. The maximum value is 1000; values above 1000 are coerced to 1000.
12989
14271
  */
@@ -13002,6 +14284,10 @@ export namespace sqladmin_v1 {
13002
14284
  * Required. Cloud SQL instance ID. This does not include the project ID.
13003
14285
  */
13004
14286
  instance?: string;
14287
+ /**
14288
+ * Optional. Region of the Cloud SQL instance.
14289
+ */
14290
+ location?: string;
13005
14291
  /**
13006
14292
  * Required. Project ID of the project that contains the instance.
13007
14293
  */
@@ -13012,6 +14298,10 @@ export namespace sqladmin_v1 {
13012
14298
  * Cloud SQL instance ID. This does not include the project ID.
13013
14299
  */
13014
14300
  instance?: string;
14301
+ /**
14302
+ * Optional. Region of the Cloud SQL instance.
14303
+ */
14304
+ location?: string;
13015
14305
  /**
13016
14306
  * Project ID of the project that contains the instance.
13017
14307
  */
@@ -13022,6 +14312,10 @@ export namespace sqladmin_v1 {
13022
14312
  * Required. Cloud SQL instance ID. This does not include the project ID.
13023
14313
  */
13024
14314
  instance?: string;
14315
+ /**
14316
+ * Optional. Region of the Cloud SQL instance.
14317
+ */
14318
+ location?: string;
13025
14319
  /**
13026
14320
  * Required. Project ID of the project that contains the instance.
13027
14321
  */
@@ -13032,6 +14326,10 @@ export namespace sqladmin_v1 {
13032
14326
  * Cloud SQL instance ID. This does not include the project ID.
13033
14327
  */
13034
14328
  instance?: string;
14329
+ /**
14330
+ * Optional. Region of the Cloud SQL instance.
14331
+ */
14332
+ location?: string;
13035
14333
  /**
13036
14334
  * Project ID of the project that contains the instance.
13037
14335
  */
@@ -13066,6 +14364,10 @@ export namespace sqladmin_v1 {
13066
14364
  * Required. Cloud SQL instance ID. This does not include the project ID.
13067
14365
  */
13068
14366
  instance?: string;
14367
+ /**
14368
+ * Optional. Region of the Cloud SQL instance.
14369
+ */
14370
+ location?: string;
13069
14371
  /**
13070
14372
  * Required. Project ID of the project that contains the instance.
13071
14373
  */
@@ -13085,6 +14387,10 @@ export namespace sqladmin_v1 {
13085
14387
  * Cloud SQL read replica instance name.
13086
14388
  */
13087
14389
  instance?: string;
14390
+ /**
14391
+ * Optional. Region of the Cloud SQL instance.
14392
+ */
14393
+ location?: string;
13088
14394
  /**
13089
14395
  * ID of the project that contains the read replica.
13090
14396
  */
@@ -13095,6 +14401,10 @@ export namespace sqladmin_v1 {
13095
14401
  * Cloud SQL instance ID. This does not include the project ID.
13096
14402
  */
13097
14403
  instance?: string;
14404
+ /**
14405
+ * Optional. Region of the Cloud SQL instance.
14406
+ */
14407
+ location?: string;
13098
14408
  /**
13099
14409
  * ID of the project that contains the instance.
13100
14410
  */
@@ -13110,6 +14420,10 @@ export namespace sqladmin_v1 {
13110
14420
  * Required. The Cloud SQL instance ID. This doesn't include the project ID. The instance ID contains lowercase letters, numbers, and hyphens, and it must start with a letter. This ID can have a maximum length of 98 characters.
13111
14421
  */
13112
14422
  instance?: string;
14423
+ /**
14424
+ * Optional. Region of the Cloud SQL instance.
14425
+ */
14426
+ location?: string;
13113
14427
  /**
13114
14428
  * Required. The project ID that contains the instance.
13115
14429
  */
@@ -13120,6 +14434,10 @@ export namespace sqladmin_v1 {
13120
14434
  * Cloud SQL instance ID. This does not include the project ID.
13121
14435
  */
13122
14436
  instance?: string;
14437
+ /**
14438
+ * Optional. Region of the Cloud SQL instance.
14439
+ */
14440
+ location?: string;
13123
14441
  /**
13124
14442
  * Optional. Reset SSL mode to use.
13125
14443
  */
@@ -13134,6 +14452,10 @@ export namespace sqladmin_v1 {
13134
14452
  * Cloud SQL instance ID. This does not include the project ID.
13135
14453
  */
13136
14454
  instance?: string;
14455
+ /**
14456
+ * Optional. Region of the Cloud SQL instance.
14457
+ */
14458
+ location?: string;
13137
14459
  /**
13138
14460
  * Project ID of the project that contains the instance to be restarted.
13139
14461
  */
@@ -13144,6 +14466,10 @@ export namespace sqladmin_v1 {
13144
14466
  * Cloud SQL instance ID. This does not include the project ID.
13145
14467
  */
13146
14468
  instance?: string;
14469
+ /**
14470
+ * Optional. Region of the Cloud SQL instance.
14471
+ */
14472
+ location?: string;
13147
14473
  /**
13148
14474
  * Project ID of the project that contains the instance.
13149
14475
  */
@@ -13159,6 +14485,10 @@ export namespace sqladmin_v1 {
13159
14485
  * Required. Cloud SQL instance ID. This does not include the project ID.
13160
14486
  */
13161
14487
  instance?: string;
14488
+ /**
14489
+ * Optional. Region of the Cloud SQL instance.
14490
+ */
14491
+ location?: string;
13162
14492
  /**
13163
14493
  * Required. Project ID of the project that contains the instance.
13164
14494
  */
@@ -13174,6 +14504,10 @@ export namespace sqladmin_v1 {
13174
14504
  * Cloud SQL instance ID. This does not include the project ID.
13175
14505
  */
13176
14506
  instance?: string;
14507
+ /**
14508
+ * Optional. Region of the Cloud SQL instance.
14509
+ */
14510
+ location?: string;
13177
14511
  /**
13178
14512
  * Project ID of the project that contains the instance.
13179
14513
  */
@@ -13189,6 +14523,10 @@ export namespace sqladmin_v1 {
13189
14523
  * Required. Cloud SQL instance ID. This does not include the project ID.
13190
14524
  */
13191
14525
  instance?: string;
14526
+ /**
14527
+ * Optional. Region of the Cloud SQL instance.
14528
+ */
14529
+ location?: string;
13192
14530
  /**
13193
14531
  * Required. Project ID of the project that contains the instance.
13194
14532
  */
@@ -13204,6 +14542,10 @@ export namespace sqladmin_v1 {
13204
14542
  * Cloud SQL read replica instance name.
13205
14543
  */
13206
14544
  instance?: string;
14545
+ /**
14546
+ * Optional. Region of the Cloud SQL instance.
14547
+ */
14548
+ location?: string;
13207
14549
  /**
13208
14550
  * ID of the project that contains the read replica.
13209
14551
  */
@@ -13214,6 +14556,10 @@ export namespace sqladmin_v1 {
13214
14556
  * Cloud SQL read replica instance name.
13215
14557
  */
13216
14558
  instance?: string;
14559
+ /**
14560
+ * Optional. Region of the Cloud SQL instance.
14561
+ */
14562
+ location?: string;
13217
14563
  /**
13218
14564
  * ID of the project that contains the read replica.
13219
14565
  */
@@ -13228,6 +14574,10 @@ export namespace sqladmin_v1 {
13228
14574
  * Cloud SQL read replica instance name.
13229
14575
  */
13230
14576
  instance?: string;
14577
+ /**
14578
+ * Optional. Region of the Cloud SQL instance.
14579
+ */
14580
+ location?: string;
13231
14581
  /**
13232
14582
  * ID of the project that contains the replica.
13233
14583
  */
@@ -13238,6 +14588,10 @@ export namespace sqladmin_v1 {
13238
14588
  * Cloud SQL instance ID. This does not include the project ID.
13239
14589
  */
13240
14590
  instance?: string;
14591
+ /**
14592
+ * Optional. Region of the Cloud SQL instance.
14593
+ */
14594
+ location?: string;
13241
14595
  /**
13242
14596
  * Project ID of the Cloud SQL project.
13243
14597
  */
@@ -13253,6 +14607,10 @@ export namespace sqladmin_v1 {
13253
14607
  * Cloud SQL instance ID. This does not include the project ID.
13254
14608
  */
13255
14609
  instance?: string;
14610
+ /**
14611
+ * Optional. Region of the Cloud SQL instance.
14612
+ */
14613
+ location?: string;
13256
14614
  /**
13257
14615
  * Project ID of the project that contains the instance.
13258
14616
  */
@@ -13823,6 +15181,8 @@ export namespace sqladmin_v1 {
13823
15181
  * const res = await sql.projects.instances.getDiskShrinkConfig({
13824
15182
  * // Cloud SQL instance ID. This does not include the project ID.
13825
15183
  * instance: 'placeholder-value',
15184
+ * // Optional. Region of the Cloud SQL instance.
15185
+ * location: 'placeholder-value',
13826
15186
  * // Project ID of the project that contains the instance.
13827
15187
  * project: 'placeholder-value',
13828
15188
  * });
@@ -13977,6 +15337,8 @@ export namespace sqladmin_v1 {
13977
15337
  * const res = await sql.projects.instances.getLatestRecoveryTime({
13978
15338
  * // Cloud SQL instance ID. This does not include the project ID.
13979
15339
  * instance: 'placeholder-value',
15340
+ * // Optional. Region of the Cloud SQL instance.
15341
+ * location: 'placeholder-value',
13980
15342
  * // Project ID of the project that contains the instance.
13981
15343
  * project: 'placeholder-value',
13982
15344
  * // The timestamp used to identify the time when the source instance is deleted. If this instance is deleted, then you must set the timestamp.
@@ -14133,6 +15495,8 @@ export namespace sqladmin_v1 {
14133
15495
  * const res = await sql.projects.instances.performDiskShrink({
14134
15496
  * // Cloud SQL instance ID. This does not include the project ID.
14135
15497
  * instance: 'placeholder-value',
15498
+ * // Optional. Region of the Cloud SQL instance.
15499
+ * location: 'placeholder-value',
14136
15500
  * // Project ID of the project that contains the instance.
14137
15501
  * project: 'placeholder-value',
14138
15502
  *
@@ -14301,6 +15665,8 @@ export namespace sqladmin_v1 {
14301
15665
  * const res = await sql.projects.instances.rescheduleMaintenance({
14302
15666
  * // Cloud SQL instance ID. This does not include the project ID.
14303
15667
  * instance: 'placeholder-value',
15668
+ * // Optional. Region of the Cloud SQL instance.
15669
+ * location: 'placeholder-value',
14304
15670
  * // ID of the project that contains the instance.
14305
15671
  * project: 'placeholder-value',
14306
15672
  *
@@ -14477,7 +15843,9 @@ export namespace sqladmin_v1 {
14477
15843
  * // Request body metadata
14478
15844
  * requestBody: {
14479
15845
  * // request body parameters
14480
- * // {}
15846
+ * // {
15847
+ * // "location": "my_location"
15848
+ * // }
14481
15849
  * },
14482
15850
  * });
14483
15851
  * console.log(res.data);
@@ -14644,6 +16012,7 @@ export namespace sqladmin_v1 {
14644
16012
  * requestBody: {
14645
16013
  * // request body parameters
14646
16014
  * // {
16015
+ * // "location": "my_location",
14647
16016
  * // "migrationType": "my_migrationType",
14648
16017
  * // "mysqlSyncConfig": {},
14649
16018
  * // "replicaOverwriteEnabled": false,
@@ -14817,6 +16186,7 @@ export namespace sqladmin_v1 {
14817
16186
  * requestBody: {
14818
16187
  * // request body parameters
14819
16188
  * // {
16189
+ * // "location": "my_location",
14820
16190
  * // "migrationType": "my_migrationType",
14821
16191
  * // "mysqlSyncConfig": {},
14822
16192
  * // "selectedObjects": [],
@@ -14949,6 +16319,10 @@ export namespace sqladmin_v1 {
14949
16319
  * Cloud SQL instance ID. This does not include the project ID.
14950
16320
  */
14951
16321
  instance?: string;
16322
+ /**
16323
+ * Optional. Region of the Cloud SQL instance.
16324
+ */
16325
+ location?: string;
14952
16326
  /**
14953
16327
  * Project ID of the project that contains the instance.
14954
16328
  */
@@ -14959,6 +16333,10 @@ export namespace sqladmin_v1 {
14959
16333
  * Cloud SQL instance ID. This does not include the project ID.
14960
16334
  */
14961
16335
  instance?: string;
16336
+ /**
16337
+ * Optional. Region of the Cloud SQL instance.
16338
+ */
16339
+ location?: string;
14962
16340
  /**
14963
16341
  * Project ID of the project that contains the instance.
14964
16342
  */
@@ -14973,6 +16351,10 @@ export namespace sqladmin_v1 {
14973
16351
  * Cloud SQL instance ID. This does not include the project ID.
14974
16352
  */
14975
16353
  instance?: string;
16354
+ /**
16355
+ * Optional. Region of the Cloud SQL instance.
16356
+ */
16357
+ location?: string;
14976
16358
  /**
14977
16359
  * Project ID of the project that contains the instance.
14978
16360
  */
@@ -14988,6 +16370,10 @@ export namespace sqladmin_v1 {
14988
16370
  * Cloud SQL instance ID. This does not include the project ID.
14989
16371
  */
14990
16372
  instance?: string;
16373
+ /**
16374
+ * Optional. Region of the Cloud SQL instance.
16375
+ */
16376
+ location?: string;
14991
16377
  /**
14992
16378
  * ID of the project that contains the instance.
14993
16379
  */
@@ -15086,6 +16472,8 @@ export namespace sqladmin_v1 {
15086
16472
  * const res = await sql.sslCerts.createEphemeral({
15087
16473
  * // Cloud SQL instance ID. This does not include the project ID.
15088
16474
  * instance: 'placeholder-value',
16475
+ * // Optional. Region of the Cloud SQL instance.
16476
+ * location: 'placeholder-value',
15089
16477
  * // Project ID of the Cloud SQL project.
15090
16478
  * project: 'placeholder-value',
15091
16479
  *
@@ -15819,6 +17207,10 @@ export namespace sqladmin_v1 {
15819
17207
  * Cloud SQL instance ID. This does not include the project ID.
15820
17208
  */
15821
17209
  instance?: string;
17210
+ /**
17211
+ * Optional. Region of the Cloud SQL instance.
17212
+ */
17213
+ location?: string;
15822
17214
  /**
15823
17215
  * Project ID of the Cloud SQL project.
15824
17216
  */
@@ -16081,6 +17473,8 @@ export namespace sqladmin_v1 {
16081
17473
  * host: 'placeholder-value',
16082
17474
  * // Database instance ID. This does not include the project ID.
16083
17475
  * instance: 'placeholder-value',
17476
+ * // Optional. Region of the Cloud SQL instance.
17477
+ * location: 'placeholder-value',
16084
17478
  * // Name of the user in the instance.
16085
17479
  * name: 'placeholder-value',
16086
17480
  * // Project ID of the project that contains the instance.
@@ -16243,6 +17637,8 @@ export namespace sqladmin_v1 {
16243
17637
  * host: 'placeholder-value',
16244
17638
  * // Database instance ID. This does not include the project ID.
16245
17639
  * instance: 'placeholder-value',
17640
+ * // Optional. Region of the Cloud SQL instance.
17641
+ * location: 'placeholder-value',
16246
17642
  * // User of the instance.
16247
17643
  * name: 'placeholder-value',
16248
17644
  * // Project ID of the project that contains the instance.
@@ -16399,6 +17795,8 @@ export namespace sqladmin_v1 {
16399
17795
  * const res = await sql.users.insert({
16400
17796
  * // Database instance ID. This does not include the project ID.
16401
17797
  * instance: 'placeholder-value',
17798
+ * // Optional. Region of the Cloud SQL instance.
17799
+ * location: 'placeholder-value',
16402
17800
  * // Project ID of the project that contains the instance.
16403
17801
  * project: 'placeholder-value',
16404
17802
  *
@@ -16579,6 +17977,8 @@ export namespace sqladmin_v1 {
16579
17977
  * const res = await sql.users.list({
16580
17978
  * // Database instance ID. This does not include the project ID.
16581
17979
  * instance: 'placeholder-value',
17980
+ * // Optional. Region of the Cloud SQL instance.
17981
+ * location: 'placeholder-value',
16582
17982
  * // Project ID of the project that contains the instance.
16583
17983
  * project: 'placeholder-value',
16584
17984
  * });
@@ -16725,6 +18125,8 @@ export namespace sqladmin_v1 {
16725
18125
  * host: 'placeholder-value',
16726
18126
  * // Database instance ID. This does not include the project ID.
16727
18127
  * instance: 'placeholder-value',
18128
+ * // Optional. Region of the Cloud SQL instance.
18129
+ * location: 'placeholder-value',
16728
18130
  * // Name of the user in the instance.
16729
18131
  * name: 'placeholder-value',
16730
18132
  * // Project ID of the project that contains the instance.
@@ -16887,6 +18289,10 @@ export namespace sqladmin_v1 {
16887
18289
  * Database instance ID. This does not include the project ID.
16888
18290
  */
16889
18291
  instance?: string;
18292
+ /**
18293
+ * Optional. Region of the Cloud SQL instance.
18294
+ */
18295
+ location?: string;
16890
18296
  /**
16891
18297
  * Name of the user in the instance.
16892
18298
  */
@@ -16905,6 +18311,10 @@ export namespace sqladmin_v1 {
16905
18311
  * Database instance ID. This does not include the project ID.
16906
18312
  */
16907
18313
  instance?: string;
18314
+ /**
18315
+ * Optional. Region of the Cloud SQL instance.
18316
+ */
18317
+ location?: string;
16908
18318
  /**
16909
18319
  * User of the instance.
16910
18320
  */
@@ -16919,6 +18329,10 @@ export namespace sqladmin_v1 {
16919
18329
  * Database instance ID. This does not include the project ID.
16920
18330
  */
16921
18331
  instance?: string;
18332
+ /**
18333
+ * Optional. Region of the Cloud SQL instance.
18334
+ */
18335
+ location?: string;
16922
18336
  /**
16923
18337
  * Project ID of the project that contains the instance.
16924
18338
  */
@@ -16934,6 +18348,10 @@ export namespace sqladmin_v1 {
16934
18348
  * Database instance ID. This does not include the project ID.
16935
18349
  */
16936
18350
  instance?: string;
18351
+ /**
18352
+ * Optional. Region of the Cloud SQL instance.
18353
+ */
18354
+ location?: string;
16937
18355
  /**
16938
18356
  * Project ID of the project that contains the instance.
16939
18357
  */
@@ -16952,6 +18370,10 @@ export namespace sqladmin_v1 {
16952
18370
  * Database instance ID. This does not include the project ID.
16953
18371
  */
16954
18372
  instance?: string;
18373
+ /**
18374
+ * Optional. Region of the Cloud SQL instance.
18375
+ */
18376
+ location?: string;
16955
18377
  /**
16956
18378
  * Name of the user in the instance.
16957
18379
  */