@googleapis/sqladmin 38.1.1 → 40.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/v1beta4.ts CHANGED
@@ -114,6 +114,7 @@ export namespace sqladmin_v1beta4 {
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_v1beta4 {
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,80 @@ export namespace sqladmin_v1beta4 {
533
537
  */
534
538
  kind?: string | null;
535
539
  }
540
+ /**
541
+ * A `BlueGreenDeployment` resource represents a Cloud SQL blue-green deployment setup. It orchestrates the lifecycle of creating a synchronized "green" environment from a "blue" production environment, performing updates, and managing the switchover process to minimize downtime.
542
+ */
543
+ export interface Schema$BlueGreenDeployment {
544
+ /**
545
+ * Output only. The time when the deployment was created.
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.
558
+ */
559
+ description?: string | null;
560
+ /**
561
+ * Output only. Provides an error message with details on why switchover is not possible.
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
+ * Output only. Deprecated: Use deployment_mappings instead. Output only. A list representing the pairs of source and target instances in the deployment.
570
+ */
571
+ pairedNodes?: Schema$SourceTargetPairedNode[];
572
+ /**
573
+ * Optional. Immutable. Optional on create, and immutable. The configuration intended for the target instance(s) when the deployment was created.
574
+ */
575
+ requestedConfig?: Schema$RequestedConfig;
576
+ /**
577
+ * Required. Immutable. The instance ID of the source instance (the "blue" instance). The value for this field does not include the project ID, for example, `my-instance-id`. This field is immutable.
578
+ */
579
+ sourceInstance?: string | null;
580
+ /**
581
+ * Output only. The current state of the blue-green deployment.
582
+ */
583
+ state?: string | null;
584
+ /**
585
+ * Output only. Details about the primary target instance (the "Green" instance) that will be promoted during switchover.
586
+ */
587
+ switchoverTargetInstance?: string | null;
588
+ /**
589
+ * Optional. Immutable. Deprecated: Use requested_config instead. The configuration intended for the target instance(s) when the deployment was created. This field is immutable.
590
+ */
591
+ targetConfig?: Schema$TargetConfig;
592
+ }
593
+ /**
594
+ * 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.
595
+ */
596
+ export interface Schema$BlueGreenDeploymentInfo {
597
+ /**
598
+ * Output only. The resource ID of the blue-green deployment.
599
+ */
600
+ deploymentId?: string | null;
601
+ /**
602
+ * Output only. The source instance for the Blue-Green deployment.
603
+ */
604
+ source?: Schema$SourceRole;
605
+ /**
606
+ * Output only. The current state of blue-green-deployment for UI tags
607
+ */
608
+ state?: string | null;
609
+ /**
610
+ * Output only. The target instance for the Blue-Green deployment.
611
+ */
612
+ target?: Schema$TargetRole;
613
+ }
536
614
  /**
537
615
  * Database instance clone context.
538
616
  */
@@ -599,6 +677,23 @@ export namespace sqladmin_v1beta4 {
599
677
  */
600
678
  type?: string | null;
601
679
  }
680
+ /**
681
+ * Represents a specific configuration difference between Blue and Green instances.
682
+ */
683
+ export interface Schema$ConfigDiff {
684
+ /**
685
+ * Output only. The name of the field that differs, fully-qualified. Example: settings.tier
686
+ */
687
+ field?: string | null;
688
+ /**
689
+ * Output only. The value on the source instance.
690
+ */
691
+ sourceValue?: string | null;
692
+ /**
693
+ * Output only. The value on the target instance.
694
+ */
695
+ targetValue?: string | null;
696
+ }
602
697
  /**
603
698
  * The managed connection pooling configuration.
604
699
  */
@@ -802,6 +897,10 @@ export namespace sqladmin_v1beta4 {
802
897
  * The database engine type and version. The `databaseVersion` field cannot be changed after instance creation.
803
898
  */
804
899
  databaseVersion?: string | null;
900
+ /**
901
+ * Output only. Deployment info for the instance. This is set if the instance is currently part of any blue-green setup.
902
+ */
903
+ deploymentInfo?: Schema$BlueGreenDeploymentInfo;
805
904
  /**
806
905
  * Disk encryption configuration specific to an instance.
807
906
  */
@@ -1098,10 +1197,48 @@ export namespace sqladmin_v1beta4 {
1098
1197
  */
1099
1198
  time?: string | null;
1100
1199
  }
1200
+ /**
1201
+ * Represents a task executed as part of the deployment on a target instance.
1202
+ */
1203
+ export interface Schema$DeploymentTask {
1204
+ /**
1205
+ * Output only. Task end time (if completed).
1206
+ */
1207
+ endTime?: string | null;
1208
+ /**
1209
+ * Output only. Optional Error details if the task state is FAILED.
1210
+ */
1211
+ errorMessage?: string | null;
1212
+ /**
1213
+ * Output only. Task start time.
1214
+ */
1215
+ startTime?: string | null;
1216
+ /**
1217
+ * Output only. The current state of the task.
1218
+ */
1219
+ state?: string | null;
1220
+ /**
1221
+ * Output only. The type of the task.
1222
+ */
1223
+ type?: string | null;
1224
+ }
1225
+ /**
1226
+ * Combined list of tasks for all paired nodes in the deployment.
1227
+ */
1228
+ export interface Schema$DeploymentTasks {
1229
+ /**
1230
+ * Output only. Tasks performed or being performed on the paired nodes of the deployment at a consolidated level.
1231
+ */
1232
+ task?: Schema$DeploymentTask[];
1233
+ }
1101
1234
  /**
1102
1235
  * Disk encryption configuration for an instance.
1103
1236
  */
1104
1237
  export interface Schema$DiskEncryptionConfiguration {
1238
+ /**
1239
+ * Optional. If true, enables Confidential Mode for the instance's Hyperdisk Balanced volumes. Only supported for zonal C4A instances currently.
1240
+ */
1241
+ confidentialMode?: boolean | null;
1105
1242
  /**
1106
1243
  * This is always `sql#diskEncryptionConfiguration`.
1107
1244
  */
@@ -1699,6 +1836,10 @@ export namespace sqladmin_v1beta4 {
1699
1836
  * 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.
1700
1837
  */
1701
1838
  backupdrBackup?: string | null;
1839
+ /**
1840
+ * Optional. If true, the restore operation proceeds even if the target instance's maintenance version is older than the source instance's maintenance version.
1841
+ */
1842
+ ignoreMaintenanceVersion?: boolean | null;
1702
1843
  /**
1703
1844
  * Parameters required to perform the restore backup operation.
1704
1845
  */
@@ -1848,6 +1989,19 @@ export namespace sqladmin_v1beta4 {
1848
1989
  */
1849
1990
  warnings?: Schema$ApiWarning[];
1850
1991
  }
1992
+ /**
1993
+ * The response message for listing blue-green deployment resources.
1994
+ */
1995
+ export interface Schema$ListBlueGreenDeploymentsResponse {
1996
+ /**
1997
+ * The list of blue-green deployment resources.
1998
+ */
1999
+ blueGreenDeployments?: Schema$BlueGreenDeployment[];
2000
+ /**
2001
+ * A token to retrieve the next page of results, or empty if there are no more results.
2002
+ */
2003
+ nextPageToken?: string | null;
2004
+ }
1851
2005
  /**
1852
2006
  * 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.
1853
2007
  */
@@ -1970,6 +2124,27 @@ export namespace sqladmin_v1beta4 {
1970
2124
  */
1971
2125
  initialSyncFlags?: Schema$SyncFlags[];
1972
2126
  }
2127
+ /**
2128
+ * Details about an instance within the deployment.
2129
+ */
2130
+ export interface Schema$NodeInfo {
2131
+ /**
2132
+ * Output only. The instance connection name.
2133
+ */
2134
+ connection?: string | null;
2135
+ /**
2136
+ * Output only. The unique DNS name for this instance.
2137
+ */
2138
+ dns?: string | null;
2139
+ /**
2140
+ * Output only. The full resource name of the instance. Format: projects/{project\}/instances/{instance\}
2141
+ */
2142
+ instance?: string | null;
2143
+ /**
2144
+ * Output only. The list of IP addresses for this instance.
2145
+ */
2146
+ ipMappings?: Schema$IpMapping[];
2147
+ }
1973
2148
  /**
1974
2149
  * On-premises instance configuration.
1975
2150
  */
@@ -2467,7 +2642,7 @@ export namespace sqladmin_v1beta4 {
2467
2642
  */
2468
2643
  allowedConsumerProjects?: string[] | null;
2469
2644
  /**
2470
- * 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
2645
+ * 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
2471
2646
  */
2472
2647
  networkAttachmentUri?: string | null;
2473
2648
  /**
@@ -2587,6 +2762,15 @@ export namespace sqladmin_v1beta4 {
2587
2762
  */
2588
2763
  psaWriteEndpoint?: string | null;
2589
2764
  }
2765
+ /**
2766
+ * Configuration specified by the user at creation time for the target (Green) instance.
2767
+ */
2768
+ export interface Schema$RequestedConfig {
2769
+ /**
2770
+ * Optional. The target database major version for the upgrade.
2771
+ */
2772
+ databaseVersion?: string | null;
2773
+ }
2590
2774
  export interface Schema$Reschedule {
2591
2775
  /**
2592
2776
  * Required. The type of the reschedule.
@@ -2808,7 +2992,7 @@ export namespace sqladmin_v1beta4 {
2808
2992
  */
2809
2993
  maintenanceWindow?: Schema$MaintenanceWindow;
2810
2994
  /**
2811
- * The local user password validation policy of the instance.
2995
+ * The local user password validation policy of the instance for PostgreSQL and MySQL.
2812
2996
  */
2813
2997
  passwordValidationPolicy?: Schema$PasswordValidationPolicy;
2814
2998
  /**
@@ -2864,6 +3048,44 @@ export namespace sqladmin_v1beta4 {
2864
3048
  */
2865
3049
  userLabels?: {[key: string]: string} | null;
2866
3050
  }
3051
+ /**
3052
+ * The source instance for the Blue-Green deployment.
3053
+ */
3054
+ export interface Schema$SourceRole {
3055
+ /**
3056
+ * Output only. The target instance paired with this source instance in a blue-green deployment.
3057
+ */
3058
+ targetId?: Schema$InstanceReference;
3059
+ }
3060
+ /**
3061
+ * Represents a pairing of a source instance node and a target instance node.
3062
+ */
3063
+ export interface Schema$SourceTargetPairedNode {
3064
+ /**
3065
+ * Output only. Deprecated: Indicates which instance (SOURCE or TARGET) in the pair is currently live. Used for internal implementation and deprecated for external use.
3066
+ */
3067
+ currentlyServingTraffic?: string | null;
3068
+ /**
3069
+ * Output only. Describes the list of differences for this pair.
3070
+ */
3071
+ diffs?: Schema$ConfigDiff[];
3072
+ /**
3073
+ * Output only. Resource name of the source instance in this pair.
3074
+ */
3075
+ source?: Schema$NodeInfo;
3076
+ /**
3077
+ * Output only. The current state of this specific source-target pair.
3078
+ */
3079
+ state?: string | null;
3080
+ /**
3081
+ * Output only. Details of the corresponding target instance in this pair.
3082
+ */
3083
+ target?: Schema$NodeInfo;
3084
+ /**
3085
+ * Output only. Tasks performed or being performed on the target instance of this pair.
3086
+ */
3087
+ tasks?: Schema$DeploymentTask[];
3088
+ }
2867
3089
  /**
2868
3090
  * Active Directory configuration, relevant only for Cloud SQL for SQL Server.
2869
3091
  */
@@ -2995,8 +3217,17 @@ export namespace sqladmin_v1beta4 {
2995
3217
  /**
2996
3218
  * Instance reset replica size request.
2997
3219
  */
2998
- export interface Schema$SqlInstancesResetReplicaSizeRequest {}
3220
+ export interface Schema$SqlInstancesResetReplicaSizeRequest {
3221
+ /**
3222
+ * Optional. Region of the Cloud SQL instance.
3223
+ */
3224
+ location?: string | null;
3225
+ }
2999
3226
  export interface Schema$SqlInstancesStartExternalSyncRequest {
3227
+ /**
3228
+ * Optional. Region of the Cloud SQL instance.
3229
+ */
3230
+ location?: string | null;
3000
3231
  /**
3001
3232
  * 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
3233
  */
@@ -3023,6 +3254,10 @@ export namespace sqladmin_v1beta4 {
3023
3254
  syncParallelLevel?: string | null;
3024
3255
  }
3025
3256
  export interface Schema$SqlInstancesVerifyExternalSyncSettingsRequest {
3257
+ /**
3258
+ * Optional. Region of the Cloud SQL instance.
3259
+ */
3260
+ location?: string | null;
3026
3261
  /**
3027
3262
  * 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.
3028
3263
  */
@@ -3156,11 +3391,11 @@ export namespace sqladmin_v1beta4 {
3156
3391
  */
3157
3392
  export interface Schema$SqlServerUserDetails {
3158
3393
  /**
3159
- * If the user has been disabled
3394
+ * Indicates if the user has been disabled.
3160
3395
  */
3161
3396
  disabled?: boolean | null;
3162
3397
  /**
3163
- * The server roles for this user
3398
+ * Indicates the server roles for this user.
3164
3399
  */
3165
3400
  serverRoles?: string[] | null;
3166
3401
  }
@@ -3300,6 +3535,10 @@ export namespace sqladmin_v1beta4 {
3300
3535
  */
3301
3536
  message?: string | null;
3302
3537
  }
3538
+ /**
3539
+ * Request message for switching over a `BlueGreenDeployment` resource.
3540
+ */
3541
+ export interface Schema$SwitchoverBlueGreenDeploymentRequest {}
3303
3542
  /**
3304
3543
  * Initial sync flags for certain Cloud SQL APIs. Currently used for the MySQL external server initial dump.
3305
3544
  */
@@ -3313,6 +3552,15 @@ export namespace sqladmin_v1beta4 {
3313
3552
  */
3314
3553
  value?: string | null;
3315
3554
  }
3555
+ /**
3556
+ * Deprecated: Use RequestedConfig instead. Configuration specified by the user at creation time for the target (Green) instance.
3557
+ */
3558
+ export interface Schema$TargetConfig {
3559
+ /**
3560
+ * Optional. The target database major version for the upgrade.
3561
+ */
3562
+ databaseVersion?: string | null;
3563
+ }
3316
3564
  /**
3317
3565
  * Target metric for read pool auto scaling.
3318
3566
  */
@@ -3326,6 +3574,15 @@ export namespace sqladmin_v1beta4 {
3326
3574
  */
3327
3575
  targetValue?: number | null;
3328
3576
  }
3577
+ /**
3578
+ * The target instance for the Blue-Green deployment.
3579
+ */
3580
+ export interface Schema$TargetRole {
3581
+ /**
3582
+ * Output only. The source instance paired with this target instance in a blue-green deployment.
3583
+ */
3584
+ sourceId?: Schema$InstanceReference;
3585
+ }
3329
3586
  /**
3330
3587
  * A Google Cloud SQL service tier resource.
3331
3588
  */
@@ -5131,14 +5388,14 @@ export namespace sqladmin_v1beta4 {
5131
5388
  requestBody?: Schema$Backup;
5132
5389
  }
5133
5390
 
5134
- export class Resource$Connect {
5391
+ export class Resource$Bluegreendeployments {
5135
5392
  context: APIRequestContext;
5136
5393
  constructor(context: APIRequestContext) {
5137
5394
  this.context = context;
5138
5395
  }
5139
5396
 
5140
5397
  /**
5141
- * 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.
5398
+ * Creates a blue-green deployment under a given project and location. This deployment provisions a synchronized green environment (target instance) from a blue production environment (source instance), facilitating updates like major version upgrades on the green instance without impacting the blue instance.
5142
5399
  * @example
5143
5400
  * ```js
5144
5401
  * // Before running the sample:
@@ -5170,20 +5427,28 @@ export namespace sqladmin_v1beta4 {
5170
5427
  * google.options({auth: authClient});
5171
5428
  *
5172
5429
  * // Do the magic
5173
- * const res = await sql.connect.generateEphemeral({
5174
- * // Cloud SQL instance ID. This does not include the project ID.
5175
- * instance: 'placeholder-value',
5176
- * // Project ID of the project that contains the instance.
5177
- * project: 'placeholder-value',
5430
+ * const res = await sql.blueGreenDeployments.create({
5431
+ * // Required. The ID to use for the blue-green deployment, which will become the final component of the deployment's resource name.
5432
+ * blueGreenDeploymentId: 'placeholder-value',
5433
+ * // Required. The parent resource where this blue-green deployment will be created. Format: projects/{project\}/locations/{location\}
5434
+ * parent: 'projects/my-project/locations/my-location',
5178
5435
  *
5179
5436
  * // Request body metadata
5180
5437
  * requestBody: {
5181
5438
  * // request body parameters
5182
5439
  * // {
5183
- * // "access_token": "my_access_token",
5184
- * // "public_key": "my_public_key",
5185
- * // "readTime": "my_readTime",
5186
- * // "validDuration": "my_validDuration"
5440
+ * // "createTime": "my_createTime",
5441
+ * // "deploymentMappings": [],
5442
+ * // "deploymentTasks": {},
5443
+ * // "description": "my_description",
5444
+ * // "errorDetail": "my_errorDetail",
5445
+ * // "name": "my_name",
5446
+ * // "pairedNodes": [],
5447
+ * // "requestedConfig": {},
5448
+ * // "sourceInstance": "my_sourceInstance",
5449
+ * // "state": "my_state",
5450
+ * // "switchoverTargetInstance": "my_switchoverTargetInstance",
5451
+ * // "targetConfig": {}
5187
5452
  * // }
5188
5453
  * },
5189
5454
  * });
@@ -5191,7 +5456,26 @@ export namespace sqladmin_v1beta4 {
5191
5456
  *
5192
5457
  * // Example response
5193
5458
  * // {
5194
- * // "ephemeralCert": {}
5459
+ * // "acquireSsrsLeaseContext": {},
5460
+ * // "apiWarning": {},
5461
+ * // "backupContext": {},
5462
+ * // "endTime": "my_endTime",
5463
+ * // "error": {},
5464
+ * // "exportContext": {},
5465
+ * // "importContext": {},
5466
+ * // "insertTime": "my_insertTime",
5467
+ * // "kind": "my_kind",
5468
+ * // "name": "my_name",
5469
+ * // "operationType": "my_operationType",
5470
+ * // "preCheckMajorVersionUpgradeContext": {},
5471
+ * // "selfLink": "my_selfLink",
5472
+ * // "startTime": "my_startTime",
5473
+ * // "status": "my_status",
5474
+ * // "subOperationType": {},
5475
+ * // "targetId": "my_targetId",
5476
+ * // "targetLink": "my_targetLink",
5477
+ * // "targetProject": "my_targetProject",
5478
+ * // "user": "my_user"
5195
5479
  * // }
5196
5480
  * }
5197
5481
  *
@@ -5207,57 +5491,52 @@ export namespace sqladmin_v1beta4 {
5207
5491
  * @param callback - Optional callback that handles the response.
5208
5492
  * @returns A promise if used with async/await, or void if used with a callback.
5209
5493
  */
5210
- generateEphemeralCert(
5211
- params: Params$Resource$Connect$Generateephemeralcert,
5494
+ create(
5495
+ params: Params$Resource$Bluegreendeployments$Create,
5212
5496
  options: StreamMethodOptions
5213
5497
  ): Promise<GaxiosResponseWithHTTP2<Readable>>;
5214
- generateEphemeralCert(
5215
- params?: Params$Resource$Connect$Generateephemeralcert,
5498
+ create(
5499
+ params?: Params$Resource$Bluegreendeployments$Create,
5216
5500
  options?: MethodOptions
5217
- ): Promise<GaxiosResponseWithHTTP2<Schema$GenerateEphemeralCertResponse>>;
5218
- generateEphemeralCert(
5219
- params: Params$Resource$Connect$Generateephemeralcert,
5501
+ ): Promise<GaxiosResponseWithHTTP2<Schema$Operation>>;
5502
+ create(
5503
+ params: Params$Resource$Bluegreendeployments$Create,
5220
5504
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
5221
5505
  callback: BodyResponseCallback<Readable>
5222
5506
  ): void;
5223
- generateEphemeralCert(
5224
- params: Params$Resource$Connect$Generateephemeralcert,
5225
- options:
5226
- | MethodOptions
5227
- | BodyResponseCallback<Schema$GenerateEphemeralCertResponse>,
5228
- callback: BodyResponseCallback<Schema$GenerateEphemeralCertResponse>
5229
- ): void;
5230
- generateEphemeralCert(
5231
- params: Params$Resource$Connect$Generateephemeralcert,
5232
- callback: BodyResponseCallback<Schema$GenerateEphemeralCertResponse>
5507
+ create(
5508
+ params: Params$Resource$Bluegreendeployments$Create,
5509
+ options: MethodOptions | BodyResponseCallback<Schema$Operation>,
5510
+ callback: BodyResponseCallback<Schema$Operation>
5233
5511
  ): void;
5234
- generateEphemeralCert(
5235
- callback: BodyResponseCallback<Schema$GenerateEphemeralCertResponse>
5512
+ create(
5513
+ params: Params$Resource$Bluegreendeployments$Create,
5514
+ callback: BodyResponseCallback<Schema$Operation>
5236
5515
  ): void;
5237
- generateEphemeralCert(
5516
+ create(callback: BodyResponseCallback<Schema$Operation>): void;
5517
+ create(
5238
5518
  paramsOrCallback?:
5239
- | Params$Resource$Connect$Generateephemeralcert
5240
- | BodyResponseCallback<Schema$GenerateEphemeralCertResponse>
5519
+ | Params$Resource$Bluegreendeployments$Create
5520
+ | BodyResponseCallback<Schema$Operation>
5241
5521
  | BodyResponseCallback<Readable>,
5242
5522
  optionsOrCallback?:
5243
5523
  | MethodOptions
5244
5524
  | StreamMethodOptions
5245
- | BodyResponseCallback<Schema$GenerateEphemeralCertResponse>
5525
+ | BodyResponseCallback<Schema$Operation>
5246
5526
  | BodyResponseCallback<Readable>,
5247
5527
  callback?:
5248
- | BodyResponseCallback<Schema$GenerateEphemeralCertResponse>
5249
- | BodyResponseCallback<Readable>
5528
+ BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
5250
5529
  ):
5251
5530
  | void
5252
- | Promise<GaxiosResponseWithHTTP2<Schema$GenerateEphemeralCertResponse>>
5531
+ | Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
5253
5532
  | Promise<GaxiosResponseWithHTTP2<Readable>> {
5254
5533
  let params = (paramsOrCallback ||
5255
- {}) as Params$Resource$Connect$Generateephemeralcert;
5534
+ {}) as Params$Resource$Bluegreendeployments$Create;
5256
5535
  let options = (optionsOrCallback || {}) as MethodOptions;
5257
5536
 
5258
5537
  if (typeof paramsOrCallback === 'function') {
5259
5538
  callback = paramsOrCallback;
5260
- params = {} as Params$Resource$Connect$Generateephemeralcert;
5539
+ params = {} as Params$Resource$Bluegreendeployments$Create;
5261
5540
  options = {};
5262
5541
  }
5263
5542
 
@@ -5271,8 +5550,7 @@ export namespace sqladmin_v1beta4 {
5271
5550
  options: Object.assign(
5272
5551
  {
5273
5552
  url: (
5274
- rootUrl +
5275
- '/sql/v1beta4/projects/{project}/instances/{instance}:generateEphemeralCert'
5553
+ rootUrl + '/sql/v1beta4/{+parent}/blueGreenDeployments'
5276
5554
  ).replace(/([^:]\/)\/+/g, '$1'),
5277
5555
  method: 'POST',
5278
5556
  apiVersion: '',
@@ -5280,24 +5558,22 @@ export namespace sqladmin_v1beta4 {
5280
5558
  options
5281
5559
  ),
5282
5560
  params,
5283
- requiredParams: ['project', 'instance'],
5284
- pathParams: ['instance', 'project'],
5561
+ requiredParams: ['parent'],
5562
+ pathParams: ['parent'],
5285
5563
  context: this.context,
5286
5564
  };
5287
5565
  if (callback) {
5288
- createAPIRequest<Schema$GenerateEphemeralCertResponse>(
5566
+ createAPIRequest<Schema$Operation>(
5289
5567
  parameters,
5290
5568
  callback as BodyResponseCallback<unknown>
5291
5569
  );
5292
5570
  } else {
5293
- return createAPIRequest<Schema$GenerateEphemeralCertResponse>(
5294
- parameters
5295
- );
5571
+ return createAPIRequest<Schema$Operation>(parameters);
5296
5572
  }
5297
5573
  }
5298
5574
 
5299
5575
  /**
5300
- * Retrieves connect settings about a Cloud SQL instance.
5576
+ * Deletes a blue-green deployment, including metadata and underlying resources based on the deployment state. If issued before switchover, this deletes the green instance. If issued after switchover, this deletes the old blue instance (source instance) if the `delete_old_source` field in the request is set to true. All blue-green deployment metadata is permanently deleted. Resources deleted as a result of this operation are no longer accessible and can't be restored.
5301
5577
  * @example
5302
5578
  * ```js
5303
5579
  * // Before running the sample:
@@ -5329,29 +5605,899 @@ export namespace sqladmin_v1beta4 {
5329
5605
  * google.options({auth: authClient});
5330
5606
  *
5331
5607
  * // Do the magic
5332
- * const res = await sql.connect.get({
5333
- * // Cloud SQL instance ID. This does not include the project ID.
5334
- * instance: 'placeholder-value',
5335
- * // Project ID of the project that contains the instance.
5336
- * project: 'placeholder-value',
5337
- * // Optional. Optional snapshot read timestamp to trade freshness for performance.
5338
- * readTime: 'placeholder-value',
5608
+ * const res = await sql.blueGreenDeployments.delete({
5609
+ * // Optional. If set to true, and the switchover is complete, this deletes the old source instance along with the deployment.
5610
+ * deleteOldSource: 'placeholder-value',
5611
+ * // Required. The name of the blue-green deployment to delete. Format: projects/{project\}/locations/{location\}/blueGreenDeployments/{blue_green_deployment\}
5612
+ * name: 'projects/my-project/locations/my-location/blueGreenDeployments/my-blueGreenDeployment',
5339
5613
  * });
5340
5614
  * console.log(res.data);
5341
5615
  *
5342
5616
  * // Example response
5343
5617
  * // {
5344
- * // "backendType": "my_backendType",
5345
- * // "connectionName": "my_connectionName",
5346
- * // "customSubjectAlternativeNames": [],
5347
- * // "databaseVersion": "my_databaseVersion",
5348
- * // "dnsName": "my_dnsName",
5349
- * // "dnsNames": [],
5350
- * // "ipAddresses": [],
5351
- * // "kind": "my_kind",
5352
- * // "mdxProtocolSupport": [],
5353
- * // "nodeCount": 0,
5354
- * // "nodes": [],
5618
+ * // "acquireSsrsLeaseContext": {},
5619
+ * // "apiWarning": {},
5620
+ * // "backupContext": {},
5621
+ * // "endTime": "my_endTime",
5622
+ * // "error": {},
5623
+ * // "exportContext": {},
5624
+ * // "importContext": {},
5625
+ * // "insertTime": "my_insertTime",
5626
+ * // "kind": "my_kind",
5627
+ * // "name": "my_name",
5628
+ * // "operationType": "my_operationType",
5629
+ * // "preCheckMajorVersionUpgradeContext": {},
5630
+ * // "selfLink": "my_selfLink",
5631
+ * // "startTime": "my_startTime",
5632
+ * // "status": "my_status",
5633
+ * // "subOperationType": {},
5634
+ * // "targetId": "my_targetId",
5635
+ * // "targetLink": "my_targetLink",
5636
+ * // "targetProject": "my_targetProject",
5637
+ * // "user": "my_user"
5638
+ * // }
5639
+ * }
5640
+ *
5641
+ * main().catch(e => {
5642
+ * console.error(e);
5643
+ * throw e;
5644
+ * });
5645
+ *
5646
+ * ```
5647
+ *
5648
+ * @param params - Parameters for request
5649
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
5650
+ * @param callback - Optional callback that handles the response.
5651
+ * @returns A promise if used with async/await, or void if used with a callback.
5652
+ */
5653
+ delete(
5654
+ params: Params$Resource$Bluegreendeployments$Delete,
5655
+ options: StreamMethodOptions
5656
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
5657
+ delete(
5658
+ params?: Params$Resource$Bluegreendeployments$Delete,
5659
+ options?: MethodOptions
5660
+ ): Promise<GaxiosResponseWithHTTP2<Schema$Operation>>;
5661
+ delete(
5662
+ params: Params$Resource$Bluegreendeployments$Delete,
5663
+ options: StreamMethodOptions | BodyResponseCallback<Readable>,
5664
+ callback: BodyResponseCallback<Readable>
5665
+ ): void;
5666
+ delete(
5667
+ params: Params$Resource$Bluegreendeployments$Delete,
5668
+ options: MethodOptions | BodyResponseCallback<Schema$Operation>,
5669
+ callback: BodyResponseCallback<Schema$Operation>
5670
+ ): void;
5671
+ delete(
5672
+ params: Params$Resource$Bluegreendeployments$Delete,
5673
+ callback: BodyResponseCallback<Schema$Operation>
5674
+ ): void;
5675
+ delete(callback: BodyResponseCallback<Schema$Operation>): void;
5676
+ delete(
5677
+ paramsOrCallback?:
5678
+ | Params$Resource$Bluegreendeployments$Delete
5679
+ | BodyResponseCallback<Schema$Operation>
5680
+ | BodyResponseCallback<Readable>,
5681
+ optionsOrCallback?:
5682
+ | MethodOptions
5683
+ | StreamMethodOptions
5684
+ | BodyResponseCallback<Schema$Operation>
5685
+ | BodyResponseCallback<Readable>,
5686
+ callback?:
5687
+ BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
5688
+ ):
5689
+ | void
5690
+ | Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
5691
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
5692
+ let params = (paramsOrCallback ||
5693
+ {}) as Params$Resource$Bluegreendeployments$Delete;
5694
+ let options = (optionsOrCallback || {}) as MethodOptions;
5695
+
5696
+ if (typeof paramsOrCallback === 'function') {
5697
+ callback = paramsOrCallback;
5698
+ params = {} as Params$Resource$Bluegreendeployments$Delete;
5699
+ options = {};
5700
+ }
5701
+
5702
+ if (typeof optionsOrCallback === 'function') {
5703
+ callback = optionsOrCallback;
5704
+ options = {};
5705
+ }
5706
+
5707
+ const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/';
5708
+ const parameters = {
5709
+ options: Object.assign(
5710
+ {
5711
+ url: (rootUrl + '/sql/v1beta4/{+name}').replace(
5712
+ /([^:]\/)\/+/g,
5713
+ '$1'
5714
+ ),
5715
+ method: 'DELETE',
5716
+ apiVersion: '',
5717
+ },
5718
+ options
5719
+ ),
5720
+ params,
5721
+ requiredParams: ['name'],
5722
+ pathParams: ['name'],
5723
+ context: this.context,
5724
+ };
5725
+ if (callback) {
5726
+ createAPIRequest<Schema$Operation>(
5727
+ parameters,
5728
+ callback as BodyResponseCallback<unknown>
5729
+ );
5730
+ } else {
5731
+ return createAPIRequest<Schema$Operation>(parameters);
5732
+ }
5733
+ }
5734
+
5735
+ /**
5736
+ * Retrieves a blue-green deployment resource under a given project and location.
5737
+ * @example
5738
+ * ```js
5739
+ * // Before running the sample:
5740
+ * // - Enable the API at:
5741
+ * // https://console.developers.google.com/apis/api/sqladmin.googleapis.com
5742
+ * // - Login into gcloud by running:
5743
+ * // ```sh
5744
+ * // $ gcloud auth application-default login
5745
+ * // ```
5746
+ * // - Install the npm module by running:
5747
+ * // ```sh
5748
+ * // $ npm install googleapis
5749
+ * // ```
5750
+ *
5751
+ * const {google} = require('googleapis');
5752
+ * const sqladmin = google.sqladmin('v1beta4');
5753
+ *
5754
+ * async function main() {
5755
+ * const auth = new google.auth.GoogleAuth({
5756
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
5757
+ * scopes: [
5758
+ * 'https://www.googleapis.com/auth/cloud-platform',
5759
+ * 'https://www.googleapis.com/auth/sqlservice.admin',
5760
+ * ],
5761
+ * });
5762
+ *
5763
+ * // Acquire an auth client, and bind it to all future calls
5764
+ * const authClient = await auth.getClient();
5765
+ * google.options({auth: authClient});
5766
+ *
5767
+ * // Do the magic
5768
+ * const res = await sql.blueGreenDeployments.get({
5769
+ * // Required. The name of the blue-green deployment to retrieve. Format: projects/{project\}/locations/{location\}/blueGreenDeployments/{blue_green_deployment\}
5770
+ * name: 'projects/my-project/locations/my-location/blueGreenDeployments/my-blueGreenDeployment',
5771
+ * // Optional. Specifies whether to return the basic or detailed view of the resource in the response.
5772
+ * view: 'placeholder-value',
5773
+ * });
5774
+ * console.log(res.data);
5775
+ *
5776
+ * // Example response
5777
+ * // {
5778
+ * // "createTime": "my_createTime",
5779
+ * // "deploymentMappings": [],
5780
+ * // "deploymentTasks": {},
5781
+ * // "description": "my_description",
5782
+ * // "errorDetail": "my_errorDetail",
5783
+ * // "name": "my_name",
5784
+ * // "pairedNodes": [],
5785
+ * // "requestedConfig": {},
5786
+ * // "sourceInstance": "my_sourceInstance",
5787
+ * // "state": "my_state",
5788
+ * // "switchoverTargetInstance": "my_switchoverTargetInstance",
5789
+ * // "targetConfig": {}
5790
+ * // }
5791
+ * }
5792
+ *
5793
+ * main().catch(e => {
5794
+ * console.error(e);
5795
+ * throw e;
5796
+ * });
5797
+ *
5798
+ * ```
5799
+ *
5800
+ * @param params - Parameters for request
5801
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
5802
+ * @param callback - Optional callback that handles the response.
5803
+ * @returns A promise if used with async/await, or void if used with a callback.
5804
+ */
5805
+ get(
5806
+ params: Params$Resource$Bluegreendeployments$Get,
5807
+ options: StreamMethodOptions
5808
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
5809
+ get(
5810
+ params?: Params$Resource$Bluegreendeployments$Get,
5811
+ options?: MethodOptions
5812
+ ): Promise<GaxiosResponseWithHTTP2<Schema$BlueGreenDeployment>>;
5813
+ get(
5814
+ params: Params$Resource$Bluegreendeployments$Get,
5815
+ options: StreamMethodOptions | BodyResponseCallback<Readable>,
5816
+ callback: BodyResponseCallback<Readable>
5817
+ ): void;
5818
+ get(
5819
+ params: Params$Resource$Bluegreendeployments$Get,
5820
+ options: MethodOptions | BodyResponseCallback<Schema$BlueGreenDeployment>,
5821
+ callback: BodyResponseCallback<Schema$BlueGreenDeployment>
5822
+ ): void;
5823
+ get(
5824
+ params: Params$Resource$Bluegreendeployments$Get,
5825
+ callback: BodyResponseCallback<Schema$BlueGreenDeployment>
5826
+ ): void;
5827
+ get(callback: BodyResponseCallback<Schema$BlueGreenDeployment>): void;
5828
+ get(
5829
+ paramsOrCallback?:
5830
+ | Params$Resource$Bluegreendeployments$Get
5831
+ | BodyResponseCallback<Schema$BlueGreenDeployment>
5832
+ | BodyResponseCallback<Readable>,
5833
+ optionsOrCallback?:
5834
+ | MethodOptions
5835
+ | StreamMethodOptions
5836
+ | BodyResponseCallback<Schema$BlueGreenDeployment>
5837
+ | BodyResponseCallback<Readable>,
5838
+ callback?:
5839
+ | BodyResponseCallback<Schema$BlueGreenDeployment>
5840
+ | BodyResponseCallback<Readable>
5841
+ ):
5842
+ | void
5843
+ | Promise<GaxiosResponseWithHTTP2<Schema$BlueGreenDeployment>>
5844
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
5845
+ let params = (paramsOrCallback ||
5846
+ {}) as Params$Resource$Bluegreendeployments$Get;
5847
+ let options = (optionsOrCallback || {}) as MethodOptions;
5848
+
5849
+ if (typeof paramsOrCallback === 'function') {
5850
+ callback = paramsOrCallback;
5851
+ params = {} as Params$Resource$Bluegreendeployments$Get;
5852
+ options = {};
5853
+ }
5854
+
5855
+ if (typeof optionsOrCallback === 'function') {
5856
+ callback = optionsOrCallback;
5857
+ options = {};
5858
+ }
5859
+
5860
+ const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/';
5861
+ const parameters = {
5862
+ options: Object.assign(
5863
+ {
5864
+ url: (rootUrl + '/sql/v1beta4/{+name}').replace(
5865
+ /([^:]\/)\/+/g,
5866
+ '$1'
5867
+ ),
5868
+ method: 'GET',
5869
+ apiVersion: '',
5870
+ },
5871
+ options
5872
+ ),
5873
+ params,
5874
+ requiredParams: ['name'],
5875
+ pathParams: ['name'],
5876
+ context: this.context,
5877
+ };
5878
+ if (callback) {
5879
+ createAPIRequest<Schema$BlueGreenDeployment>(
5880
+ parameters,
5881
+ callback as BodyResponseCallback<unknown>
5882
+ );
5883
+ } else {
5884
+ return createAPIRequest<Schema$BlueGreenDeployment>(parameters);
5885
+ }
5886
+ }
5887
+
5888
+ /**
5889
+ * Lists blue-green deployments under a given project.
5890
+ * @example
5891
+ * ```js
5892
+ * // Before running the sample:
5893
+ * // - Enable the API at:
5894
+ * // https://console.developers.google.com/apis/api/sqladmin.googleapis.com
5895
+ * // - Login into gcloud by running:
5896
+ * // ```sh
5897
+ * // $ gcloud auth application-default login
5898
+ * // ```
5899
+ * // - Install the npm module by running:
5900
+ * // ```sh
5901
+ * // $ npm install googleapis
5902
+ * // ```
5903
+ *
5904
+ * const {google} = require('googleapis');
5905
+ * const sqladmin = google.sqladmin('v1beta4');
5906
+ *
5907
+ * async function main() {
5908
+ * const auth = new google.auth.GoogleAuth({
5909
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
5910
+ * scopes: [
5911
+ * 'https://www.googleapis.com/auth/cloud-platform',
5912
+ * 'https://www.googleapis.com/auth/sqlservice.admin',
5913
+ * ],
5914
+ * });
5915
+ *
5916
+ * // Acquire an auth client, and bind it to all future calls
5917
+ * const authClient = await auth.getClient();
5918
+ * google.options({auth: authClient});
5919
+ *
5920
+ * // Do the magic
5921
+ * const res = await sql.blueGreenDeployments.list({
5922
+ * // Optional. A filter expression that filters the results.
5923
+ * filter: 'placeholder-value',
5924
+ * // Optional. A comma-separated list of fields to order the results by.
5925
+ * orderBy: 'placeholder-value',
5926
+ * // Optional. The maximum number of deployments to return.
5927
+ * pageSize: 'placeholder-value',
5928
+ * // Optional. A page token, received from a previous `ListBlueGreenDeployments` call. Provide this to retrieve the subsequent page.
5929
+ * pageToken: 'placeholder-value',
5930
+ * // Required. The parent resource whose blue-green deployments are to be listed. Format: projects/{project\}/locations/{location\}
5931
+ * parent: 'projects/my-project/locations/my-location',
5932
+ * });
5933
+ * console.log(res.data);
5934
+ *
5935
+ * // Example response
5936
+ * // {
5937
+ * // "blueGreenDeployments": [],
5938
+ * // "nextPageToken": "my_nextPageToken"
5939
+ * // }
5940
+ * }
5941
+ *
5942
+ * main().catch(e => {
5943
+ * console.error(e);
5944
+ * throw e;
5945
+ * });
5946
+ *
5947
+ * ```
5948
+ *
5949
+ * @param params - Parameters for request
5950
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
5951
+ * @param callback - Optional callback that handles the response.
5952
+ * @returns A promise if used with async/await, or void if used with a callback.
5953
+ */
5954
+ list(
5955
+ params: Params$Resource$Bluegreendeployments$List,
5956
+ options: StreamMethodOptions
5957
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
5958
+ list(
5959
+ params?: Params$Resource$Bluegreendeployments$List,
5960
+ options?: MethodOptions
5961
+ ): Promise<
5962
+ GaxiosResponseWithHTTP2<Schema$ListBlueGreenDeploymentsResponse>
5963
+ >;
5964
+ list(
5965
+ params: Params$Resource$Bluegreendeployments$List,
5966
+ options: StreamMethodOptions | BodyResponseCallback<Readable>,
5967
+ callback: BodyResponseCallback<Readable>
5968
+ ): void;
5969
+ list(
5970
+ params: Params$Resource$Bluegreendeployments$List,
5971
+ options:
5972
+ | MethodOptions
5973
+ | BodyResponseCallback<Schema$ListBlueGreenDeploymentsResponse>,
5974
+ callback: BodyResponseCallback<Schema$ListBlueGreenDeploymentsResponse>
5975
+ ): void;
5976
+ list(
5977
+ params: Params$Resource$Bluegreendeployments$List,
5978
+ callback: BodyResponseCallback<Schema$ListBlueGreenDeploymentsResponse>
5979
+ ): void;
5980
+ list(
5981
+ callback: BodyResponseCallback<Schema$ListBlueGreenDeploymentsResponse>
5982
+ ): void;
5983
+ list(
5984
+ paramsOrCallback?:
5985
+ | Params$Resource$Bluegreendeployments$List
5986
+ | BodyResponseCallback<Schema$ListBlueGreenDeploymentsResponse>
5987
+ | BodyResponseCallback<Readable>,
5988
+ optionsOrCallback?:
5989
+ | MethodOptions
5990
+ | StreamMethodOptions
5991
+ | BodyResponseCallback<Schema$ListBlueGreenDeploymentsResponse>
5992
+ | BodyResponseCallback<Readable>,
5993
+ callback?:
5994
+ | BodyResponseCallback<Schema$ListBlueGreenDeploymentsResponse>
5995
+ | BodyResponseCallback<Readable>
5996
+ ):
5997
+ | void
5998
+ | Promise<
5999
+ GaxiosResponseWithHTTP2<Schema$ListBlueGreenDeploymentsResponse>
6000
+ >
6001
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
6002
+ let params = (paramsOrCallback ||
6003
+ {}) as Params$Resource$Bluegreendeployments$List;
6004
+ let options = (optionsOrCallback || {}) as MethodOptions;
6005
+
6006
+ if (typeof paramsOrCallback === 'function') {
6007
+ callback = paramsOrCallback;
6008
+ params = {} as Params$Resource$Bluegreendeployments$List;
6009
+ options = {};
6010
+ }
6011
+
6012
+ if (typeof optionsOrCallback === 'function') {
6013
+ callback = optionsOrCallback;
6014
+ options = {};
6015
+ }
6016
+
6017
+ const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/';
6018
+ const parameters = {
6019
+ options: Object.assign(
6020
+ {
6021
+ url: (
6022
+ rootUrl + '/sql/v1beta4/{+parent}/blueGreenDeployments'
6023
+ ).replace(/([^:]\/)\/+/g, '$1'),
6024
+ method: 'GET',
6025
+ apiVersion: '',
6026
+ },
6027
+ options
6028
+ ),
6029
+ params,
6030
+ requiredParams: ['parent'],
6031
+ pathParams: ['parent'],
6032
+ context: this.context,
6033
+ };
6034
+ if (callback) {
6035
+ createAPIRequest<Schema$ListBlueGreenDeploymentsResponse>(
6036
+ parameters,
6037
+ callback as BodyResponseCallback<unknown>
6038
+ );
6039
+ } else {
6040
+ return createAPIRequest<Schema$ListBlueGreenDeploymentsResponse>(
6041
+ parameters
6042
+ );
6043
+ }
6044
+ }
6045
+
6046
+ /**
6047
+ * Switches over to green instance for a blue-green deployment.
6048
+ * @example
6049
+ * ```js
6050
+ * // Before running the sample:
6051
+ * // - Enable the API at:
6052
+ * // https://console.developers.google.com/apis/api/sqladmin.googleapis.com
6053
+ * // - Login into gcloud by running:
6054
+ * // ```sh
6055
+ * // $ gcloud auth application-default login
6056
+ * // ```
6057
+ * // - Install the npm module by running:
6058
+ * // ```sh
6059
+ * // $ npm install googleapis
6060
+ * // ```
6061
+ *
6062
+ * const {google} = require('googleapis');
6063
+ * const sqladmin = google.sqladmin('v1beta4');
6064
+ *
6065
+ * async function main() {
6066
+ * const auth = new google.auth.GoogleAuth({
6067
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
6068
+ * scopes: [
6069
+ * 'https://www.googleapis.com/auth/cloud-platform',
6070
+ * 'https://www.googleapis.com/auth/sqlservice.admin',
6071
+ * ],
6072
+ * });
6073
+ *
6074
+ * // Acquire an auth client, and bind it to all future calls
6075
+ * const authClient = await auth.getClient();
6076
+ * google.options({auth: authClient});
6077
+ *
6078
+ * // Do the magic
6079
+ * const res = await sql.blueGreenDeployments.switchover({
6080
+ * // Required. The name of the blue-green deployment to switch over. Format: projects/{project\}/locations/{location\}/blueGreenDeployments/{blue_green_deployment\}
6081
+ * name: 'projects/my-project/locations/my-location/blueGreenDeployments/my-blueGreenDeployment',
6082
+ *
6083
+ * // Request body metadata
6084
+ * requestBody: {
6085
+ * // request body parameters
6086
+ * // {}
6087
+ * },
6088
+ * });
6089
+ * console.log(res.data);
6090
+ *
6091
+ * // Example response
6092
+ * // {
6093
+ * // "acquireSsrsLeaseContext": {},
6094
+ * // "apiWarning": {},
6095
+ * // "backupContext": {},
6096
+ * // "endTime": "my_endTime",
6097
+ * // "error": {},
6098
+ * // "exportContext": {},
6099
+ * // "importContext": {},
6100
+ * // "insertTime": "my_insertTime",
6101
+ * // "kind": "my_kind",
6102
+ * // "name": "my_name",
6103
+ * // "operationType": "my_operationType",
6104
+ * // "preCheckMajorVersionUpgradeContext": {},
6105
+ * // "selfLink": "my_selfLink",
6106
+ * // "startTime": "my_startTime",
6107
+ * // "status": "my_status",
6108
+ * // "subOperationType": {},
6109
+ * // "targetId": "my_targetId",
6110
+ * // "targetLink": "my_targetLink",
6111
+ * // "targetProject": "my_targetProject",
6112
+ * // "user": "my_user"
6113
+ * // }
6114
+ * }
6115
+ *
6116
+ * main().catch(e => {
6117
+ * console.error(e);
6118
+ * throw e;
6119
+ * });
6120
+ *
6121
+ * ```
6122
+ *
6123
+ * @param params - Parameters for request
6124
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
6125
+ * @param callback - Optional callback that handles the response.
6126
+ * @returns A promise if used with async/await, or void if used with a callback.
6127
+ */
6128
+ switchover(
6129
+ params: Params$Resource$Bluegreendeployments$Switchover,
6130
+ options: StreamMethodOptions
6131
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
6132
+ switchover(
6133
+ params?: Params$Resource$Bluegreendeployments$Switchover,
6134
+ options?: MethodOptions
6135
+ ): Promise<GaxiosResponseWithHTTP2<Schema$Operation>>;
6136
+ switchover(
6137
+ params: Params$Resource$Bluegreendeployments$Switchover,
6138
+ options: StreamMethodOptions | BodyResponseCallback<Readable>,
6139
+ callback: BodyResponseCallback<Readable>
6140
+ ): void;
6141
+ switchover(
6142
+ params: Params$Resource$Bluegreendeployments$Switchover,
6143
+ options: MethodOptions | BodyResponseCallback<Schema$Operation>,
6144
+ callback: BodyResponseCallback<Schema$Operation>
6145
+ ): void;
6146
+ switchover(
6147
+ params: Params$Resource$Bluegreendeployments$Switchover,
6148
+ callback: BodyResponseCallback<Schema$Operation>
6149
+ ): void;
6150
+ switchover(callback: BodyResponseCallback<Schema$Operation>): void;
6151
+ switchover(
6152
+ paramsOrCallback?:
6153
+ | Params$Resource$Bluegreendeployments$Switchover
6154
+ | BodyResponseCallback<Schema$Operation>
6155
+ | BodyResponseCallback<Readable>,
6156
+ optionsOrCallback?:
6157
+ | MethodOptions
6158
+ | StreamMethodOptions
6159
+ | BodyResponseCallback<Schema$Operation>
6160
+ | BodyResponseCallback<Readable>,
6161
+ callback?:
6162
+ BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
6163
+ ):
6164
+ | void
6165
+ | Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
6166
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
6167
+ let params = (paramsOrCallback ||
6168
+ {}) as Params$Resource$Bluegreendeployments$Switchover;
6169
+ let options = (optionsOrCallback || {}) as MethodOptions;
6170
+
6171
+ if (typeof paramsOrCallback === 'function') {
6172
+ callback = paramsOrCallback;
6173
+ params = {} as Params$Resource$Bluegreendeployments$Switchover;
6174
+ options = {};
6175
+ }
6176
+
6177
+ if (typeof optionsOrCallback === 'function') {
6178
+ callback = optionsOrCallback;
6179
+ options = {};
6180
+ }
6181
+
6182
+ const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/';
6183
+ const parameters = {
6184
+ options: Object.assign(
6185
+ {
6186
+ url: (rootUrl + '/sql/v1beta4/{+name}:switchover').replace(
6187
+ /([^:]\/)\/+/g,
6188
+ '$1'
6189
+ ),
6190
+ method: 'POST',
6191
+ apiVersion: '',
6192
+ },
6193
+ options
6194
+ ),
6195
+ params,
6196
+ requiredParams: ['name'],
6197
+ pathParams: ['name'],
6198
+ context: this.context,
6199
+ };
6200
+ if (callback) {
6201
+ createAPIRequest<Schema$Operation>(
6202
+ parameters,
6203
+ callback as BodyResponseCallback<unknown>
6204
+ );
6205
+ } else {
6206
+ return createAPIRequest<Schema$Operation>(parameters);
6207
+ }
6208
+ }
6209
+ }
6210
+
6211
+ export interface Params$Resource$Bluegreendeployments$Create extends StandardParameters {
6212
+ /**
6213
+ * Required. The ID to use for the blue-green deployment, which will become the final component of the deployment's resource name.
6214
+ */
6215
+ blueGreenDeploymentId?: string;
6216
+ /**
6217
+ * Required. The parent resource where this blue-green deployment will be created. Format: projects/{project\}/locations/{location\}
6218
+ */
6219
+ parent?: string;
6220
+
6221
+ /**
6222
+ * Request body metadata
6223
+ */
6224
+ requestBody?: Schema$BlueGreenDeployment;
6225
+ }
6226
+ export interface Params$Resource$Bluegreendeployments$Delete extends StandardParameters {
6227
+ /**
6228
+ * Optional. If set to true, and the switchover is complete, this deletes the old source instance along with the deployment.
6229
+ */
6230
+ deleteOldSource?: boolean;
6231
+ /**
6232
+ * Required. The name of the blue-green deployment to delete. Format: projects/{project\}/locations/{location\}/blueGreenDeployments/{blue_green_deployment\}
6233
+ */
6234
+ name?: string;
6235
+ }
6236
+ export interface Params$Resource$Bluegreendeployments$Get extends StandardParameters {
6237
+ /**
6238
+ * Required. The name of the blue-green deployment to retrieve. Format: projects/{project\}/locations/{location\}/blueGreenDeployments/{blue_green_deployment\}
6239
+ */
6240
+ name?: string;
6241
+ /**
6242
+ * Optional. Specifies whether to return the basic or detailed view of the resource in the response.
6243
+ */
6244
+ view?: string;
6245
+ }
6246
+ export interface Params$Resource$Bluegreendeployments$List extends StandardParameters {
6247
+ /**
6248
+ * Optional. A filter expression that filters the results.
6249
+ */
6250
+ filter?: string;
6251
+ /**
6252
+ * Optional. A comma-separated list of fields to order the results by.
6253
+ */
6254
+ orderBy?: string;
6255
+ /**
6256
+ * Optional. The maximum number of deployments to return.
6257
+ */
6258
+ pageSize?: number;
6259
+ /**
6260
+ * Optional. A page token, received from a previous `ListBlueGreenDeployments` call. Provide this to retrieve the subsequent page.
6261
+ */
6262
+ pageToken?: string;
6263
+ /**
6264
+ * Required. The parent resource whose blue-green deployments are to be listed. Format: projects/{project\}/locations/{location\}
6265
+ */
6266
+ parent?: string;
6267
+ }
6268
+ export interface Params$Resource$Bluegreendeployments$Switchover extends StandardParameters {
6269
+ /**
6270
+ * Required. The name of the blue-green deployment to switch over. Format: projects/{project\}/locations/{location\}/blueGreenDeployments/{blue_green_deployment\}
6271
+ */
6272
+ name?: string;
6273
+
6274
+ /**
6275
+ * Request body metadata
6276
+ */
6277
+ requestBody?: Schema$SwitchoverBlueGreenDeploymentRequest;
6278
+ }
6279
+
6280
+ export class Resource$Connect {
6281
+ context: APIRequestContext;
6282
+ constructor(context: APIRequestContext) {
6283
+ this.context = context;
6284
+ }
6285
+
6286
+ /**
6287
+ * 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.
6288
+ * @example
6289
+ * ```js
6290
+ * // Before running the sample:
6291
+ * // - Enable the API at:
6292
+ * // https://console.developers.google.com/apis/api/sqladmin.googleapis.com
6293
+ * // - Login into gcloud by running:
6294
+ * // ```sh
6295
+ * // $ gcloud auth application-default login
6296
+ * // ```
6297
+ * // - Install the npm module by running:
6298
+ * // ```sh
6299
+ * // $ npm install googleapis
6300
+ * // ```
6301
+ *
6302
+ * const {google} = require('googleapis');
6303
+ * const sqladmin = google.sqladmin('v1beta4');
6304
+ *
6305
+ * async function main() {
6306
+ * const auth = new google.auth.GoogleAuth({
6307
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
6308
+ * scopes: [
6309
+ * 'https://www.googleapis.com/auth/cloud-platform',
6310
+ * 'https://www.googleapis.com/auth/sqlservice.admin',
6311
+ * ],
6312
+ * });
6313
+ *
6314
+ * // Acquire an auth client, and bind it to all future calls
6315
+ * const authClient = await auth.getClient();
6316
+ * google.options({auth: authClient});
6317
+ *
6318
+ * // Do the magic
6319
+ * const res = await sql.connect.generateEphemeral({
6320
+ * // Cloud SQL instance ID. This does not include the project ID.
6321
+ * instance: 'placeholder-value',
6322
+ * // Project ID of the project that contains the instance.
6323
+ * project: 'placeholder-value',
6324
+ *
6325
+ * // Request body metadata
6326
+ * requestBody: {
6327
+ * // request body parameters
6328
+ * // {
6329
+ * // "access_token": "my_access_token",
6330
+ * // "public_key": "my_public_key",
6331
+ * // "readTime": "my_readTime",
6332
+ * // "validDuration": "my_validDuration"
6333
+ * // }
6334
+ * },
6335
+ * });
6336
+ * console.log(res.data);
6337
+ *
6338
+ * // Example response
6339
+ * // {
6340
+ * // "ephemeralCert": {}
6341
+ * // }
6342
+ * }
6343
+ *
6344
+ * main().catch(e => {
6345
+ * console.error(e);
6346
+ * throw e;
6347
+ * });
6348
+ *
6349
+ * ```
6350
+ *
6351
+ * @param params - Parameters for request
6352
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
6353
+ * @param callback - Optional callback that handles the response.
6354
+ * @returns A promise if used with async/await, or void if used with a callback.
6355
+ */
6356
+ generateEphemeralCert(
6357
+ params: Params$Resource$Connect$Generateephemeralcert,
6358
+ options: StreamMethodOptions
6359
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
6360
+ generateEphemeralCert(
6361
+ params?: Params$Resource$Connect$Generateephemeralcert,
6362
+ options?: MethodOptions
6363
+ ): Promise<GaxiosResponseWithHTTP2<Schema$GenerateEphemeralCertResponse>>;
6364
+ generateEphemeralCert(
6365
+ params: Params$Resource$Connect$Generateephemeralcert,
6366
+ options: StreamMethodOptions | BodyResponseCallback<Readable>,
6367
+ callback: BodyResponseCallback<Readable>
6368
+ ): void;
6369
+ generateEphemeralCert(
6370
+ params: Params$Resource$Connect$Generateephemeralcert,
6371
+ options:
6372
+ | MethodOptions
6373
+ | BodyResponseCallback<Schema$GenerateEphemeralCertResponse>,
6374
+ callback: BodyResponseCallback<Schema$GenerateEphemeralCertResponse>
6375
+ ): void;
6376
+ generateEphemeralCert(
6377
+ params: Params$Resource$Connect$Generateephemeralcert,
6378
+ callback: BodyResponseCallback<Schema$GenerateEphemeralCertResponse>
6379
+ ): void;
6380
+ generateEphemeralCert(
6381
+ callback: BodyResponseCallback<Schema$GenerateEphemeralCertResponse>
6382
+ ): void;
6383
+ generateEphemeralCert(
6384
+ paramsOrCallback?:
6385
+ | Params$Resource$Connect$Generateephemeralcert
6386
+ | BodyResponseCallback<Schema$GenerateEphemeralCertResponse>
6387
+ | BodyResponseCallback<Readable>,
6388
+ optionsOrCallback?:
6389
+ | MethodOptions
6390
+ | StreamMethodOptions
6391
+ | BodyResponseCallback<Schema$GenerateEphemeralCertResponse>
6392
+ | BodyResponseCallback<Readable>,
6393
+ callback?:
6394
+ | BodyResponseCallback<Schema$GenerateEphemeralCertResponse>
6395
+ | BodyResponseCallback<Readable>
6396
+ ):
6397
+ | void
6398
+ | Promise<GaxiosResponseWithHTTP2<Schema$GenerateEphemeralCertResponse>>
6399
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
6400
+ let params = (paramsOrCallback ||
6401
+ {}) as Params$Resource$Connect$Generateephemeralcert;
6402
+ let options = (optionsOrCallback || {}) as MethodOptions;
6403
+
6404
+ if (typeof paramsOrCallback === 'function') {
6405
+ callback = paramsOrCallback;
6406
+ params = {} as Params$Resource$Connect$Generateephemeralcert;
6407
+ options = {};
6408
+ }
6409
+
6410
+ if (typeof optionsOrCallback === 'function') {
6411
+ callback = optionsOrCallback;
6412
+ options = {};
6413
+ }
6414
+
6415
+ const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/';
6416
+ const parameters = {
6417
+ options: Object.assign(
6418
+ {
6419
+ url: (
6420
+ rootUrl +
6421
+ '/sql/v1beta4/projects/{project}/instances/{instance}:generateEphemeralCert'
6422
+ ).replace(/([^:]\/)\/+/g, '$1'),
6423
+ method: 'POST',
6424
+ apiVersion: '',
6425
+ },
6426
+ options
6427
+ ),
6428
+ params,
6429
+ requiredParams: ['project', 'instance'],
6430
+ pathParams: ['instance', 'project'],
6431
+ context: this.context,
6432
+ };
6433
+ if (callback) {
6434
+ createAPIRequest<Schema$GenerateEphemeralCertResponse>(
6435
+ parameters,
6436
+ callback as BodyResponseCallback<unknown>
6437
+ );
6438
+ } else {
6439
+ return createAPIRequest<Schema$GenerateEphemeralCertResponse>(
6440
+ parameters
6441
+ );
6442
+ }
6443
+ }
6444
+
6445
+ /**
6446
+ * Retrieves connect settings about a Cloud SQL instance.
6447
+ * @example
6448
+ * ```js
6449
+ * // Before running the sample:
6450
+ * // - Enable the API at:
6451
+ * // https://console.developers.google.com/apis/api/sqladmin.googleapis.com
6452
+ * // - Login into gcloud by running:
6453
+ * // ```sh
6454
+ * // $ gcloud auth application-default login
6455
+ * // ```
6456
+ * // - Install the npm module by running:
6457
+ * // ```sh
6458
+ * // $ npm install googleapis
6459
+ * // ```
6460
+ *
6461
+ * const {google} = require('googleapis');
6462
+ * const sqladmin = google.sqladmin('v1beta4');
6463
+ *
6464
+ * async function main() {
6465
+ * const auth = new google.auth.GoogleAuth({
6466
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
6467
+ * scopes: [
6468
+ * 'https://www.googleapis.com/auth/cloud-platform',
6469
+ * 'https://www.googleapis.com/auth/sqlservice.admin',
6470
+ * ],
6471
+ * });
6472
+ *
6473
+ * // Acquire an auth client, and bind it to all future calls
6474
+ * const authClient = await auth.getClient();
6475
+ * google.options({auth: authClient});
6476
+ *
6477
+ * // Do the magic
6478
+ * const res = await sql.connect.get({
6479
+ * // Cloud SQL instance ID. This does not include the project ID.
6480
+ * instance: 'placeholder-value',
6481
+ * // Project ID of the project that contains the instance.
6482
+ * project: 'placeholder-value',
6483
+ * // Optional. Optional snapshot read timestamp to trade freshness for performance.
6484
+ * readTime: 'placeholder-value',
6485
+ * });
6486
+ * console.log(res.data);
6487
+ *
6488
+ * // Example response
6489
+ * // {
6490
+ * // "backendType": "my_backendType",
6491
+ * // "connectionName": "my_connectionName",
6492
+ * // "customSubjectAlternativeNames": [],
6493
+ * // "databaseVersion": "my_databaseVersion",
6494
+ * // "dnsName": "my_dnsName",
6495
+ * // "dnsNames": [],
6496
+ * // "ipAddresses": [],
6497
+ * // "kind": "my_kind",
6498
+ * // "mdxProtocolSupport": [],
6499
+ * // "nodeCount": 0,
6500
+ * // "nodes": [],
5355
6501
  * // "pscEnabled": false,
5356
6502
  * // "region": "my_region",
5357
6503
  * // "serverCaCert": {},
@@ -5693,6 +6839,8 @@ export namespace sqladmin_v1beta4 {
5693
6839
  * database: 'placeholder-value',
5694
6840
  * // Database instance ID. This does not include the project ID.
5695
6841
  * instance: 'placeholder-value',
6842
+ * // Optional. Region of the Cloud SQL instance.
6843
+ * location: 'placeholder-value',
5696
6844
  * // Project ID of the project that contains the instance.
5697
6845
  * project: 'placeholder-value',
5698
6846
  * });
@@ -5854,6 +7002,8 @@ export namespace sqladmin_v1beta4 {
5854
7002
  * database: 'placeholder-value',
5855
7003
  * // Database instance ID. This does not include the project ID.
5856
7004
  * instance: 'placeholder-value',
7005
+ * // Optional. Region of the Cloud SQL instance.
7006
+ * location: 'placeholder-value',
5857
7007
  * // Project ID of the project that contains the instance.
5858
7008
  * project: 'placeholder-value',
5859
7009
  * });
@@ -6002,6 +7152,8 @@ export namespace sqladmin_v1beta4 {
6002
7152
  * const res = await sql.databases.insert({
6003
7153
  * // Database instance ID. This does not include the project ID.
6004
7154
  * instance: 'placeholder-value',
7155
+ * // Optional. Region of the Cloud SQL instance.
7156
+ * location: 'placeholder-value',
6005
7157
  * // Project ID of the project that contains the instance.
6006
7158
  * project: 'placeholder-value',
6007
7159
  *
@@ -6177,6 +7329,8 @@ export namespace sqladmin_v1beta4 {
6177
7329
  * const res = await sql.databases.list({
6178
7330
  * // Cloud SQL instance ID. This does not include the project ID.
6179
7331
  * instance: 'placeholder-value',
7332
+ * // Optional. Region of the Cloud SQL instance.
7333
+ * location: 'placeholder-value',
6180
7334
  * // Project ID of the project that contains the instance.
6181
7335
  * project: 'placeholder-value',
6182
7336
  * });
@@ -6322,6 +7476,8 @@ export namespace sqladmin_v1beta4 {
6322
7476
  * database: 'placeholder-value',
6323
7477
  * // Database instance ID. This does not include the project ID.
6324
7478
  * instance: 'placeholder-value',
7479
+ * // Optional. Region of the Cloud SQL instance.
7480
+ * location: 'placeholder-value',
6325
7481
  * // Project ID of the project that contains the instance.
6326
7482
  * project: 'placeholder-value',
6327
7483
  *
@@ -6499,6 +7655,8 @@ export namespace sqladmin_v1beta4 {
6499
7655
  * database: 'placeholder-value',
6500
7656
  * // Database instance ID. This does not include the project ID.
6501
7657
  * instance: 'placeholder-value',
7658
+ * // Optional. Region of the Cloud SQL instance.
7659
+ * location: 'placeholder-value',
6502
7660
  * // Project ID of the project that contains the instance.
6503
7661
  * project: 'placeholder-value',
6504
7662
  *
@@ -6648,6 +7806,10 @@ export namespace sqladmin_v1beta4 {
6648
7806
  * Database instance ID. This does not include the project ID.
6649
7807
  */
6650
7808
  instance?: string;
7809
+ /**
7810
+ * Optional. Region of the Cloud SQL instance.
7811
+ */
7812
+ location?: string;
6651
7813
  /**
6652
7814
  * Project ID of the project that contains the instance.
6653
7815
  */
@@ -6662,6 +7824,10 @@ export namespace sqladmin_v1beta4 {
6662
7824
  * Database instance ID. This does not include the project ID.
6663
7825
  */
6664
7826
  instance?: string;
7827
+ /**
7828
+ * Optional. Region of the Cloud SQL instance.
7829
+ */
7830
+ location?: string;
6665
7831
  /**
6666
7832
  * Project ID of the project that contains the instance.
6667
7833
  */
@@ -6672,6 +7838,10 @@ export namespace sqladmin_v1beta4 {
6672
7838
  * Database instance ID. This does not include the project ID.
6673
7839
  */
6674
7840
  instance?: string;
7841
+ /**
7842
+ * Optional. Region of the Cloud SQL instance.
7843
+ */
7844
+ location?: string;
6675
7845
  /**
6676
7846
  * Project ID of the project that contains the instance.
6677
7847
  */
@@ -6687,6 +7857,10 @@ export namespace sqladmin_v1beta4 {
6687
7857
  * Cloud SQL instance ID. This does not include the project ID.
6688
7858
  */
6689
7859
  instance?: string;
7860
+ /**
7861
+ * Optional. Region of the Cloud SQL instance.
7862
+ */
7863
+ location?: string;
6690
7864
  /**
6691
7865
  * Project ID of the project that contains the instance.
6692
7866
  */
@@ -6701,6 +7875,10 @@ export namespace sqladmin_v1beta4 {
6701
7875
  * Database instance ID. This does not include the project ID.
6702
7876
  */
6703
7877
  instance?: string;
7878
+ /**
7879
+ * Optional. Region of the Cloud SQL instance.
7880
+ */
7881
+ location?: string;
6704
7882
  /**
6705
7883
  * Project ID of the project that contains the instance.
6706
7884
  */
@@ -6720,6 +7898,10 @@ export namespace sqladmin_v1beta4 {
6720
7898
  * Database instance ID. This does not include the project ID.
6721
7899
  */
6722
7900
  instance?: string;
7901
+ /**
7902
+ * Optional. Region of the Cloud SQL instance.
7903
+ */
7904
+ location?: string;
6723
7905
  /**
6724
7906
  * Project ID of the project that contains the instance.
6725
7907
  */
@@ -6930,6 +8112,8 @@ export namespace sqladmin_v1beta4 {
6930
8112
  * const res = await sql.instances.acquireSsrsLease({
6931
8113
  * // 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).
6932
8114
  * instance: 'placeholder-value',
8115
+ * // Optional. Region of the Cloud SQL instance.
8116
+ * location: 'placeholder-value',
6933
8117
  * // Required. ID of the project that contains the instance (Example: project-id).
6934
8118
  * project: 'placeholder-value',
6935
8119
  *
@@ -7090,6 +8274,8 @@ export namespace sqladmin_v1beta4 {
7090
8274
  * const res = await sql.instances.addEntraIdCertificate({
7091
8275
  * // Required. Cloud SQL instance ID. This does not include the project ID.
7092
8276
  * instance: 'placeholder-value',
8277
+ * // Optional. Region of the Cloud SQL instance.
8278
+ * location: 'placeholder-value',
7093
8279
  * // Required. Project ID of the project that contains the instance.
7094
8280
  * project: 'placeholder-value',
7095
8281
  * });
@@ -7252,6 +8438,8 @@ export namespace sqladmin_v1beta4 {
7252
8438
  * const res = await sql.instances.addServerCa({
7253
8439
  * // Cloud SQL instance ID. This does not include the project ID.
7254
8440
  * instance: 'placeholder-value',
8441
+ * // Optional. Region of the Cloud SQL instance.
8442
+ * location: 'placeholder-value',
7255
8443
  * // Project ID of the project that contains the instance.
7256
8444
  * project: 'placeholder-value',
7257
8445
  * });
@@ -7412,6 +8600,8 @@ export namespace sqladmin_v1beta4 {
7412
8600
  * const res = await sql.instances.addServerCertificate({
7413
8601
  * // Required. Cloud SQL instance ID. This does not include the project ID.
7414
8602
  * instance: 'placeholder-value',
8603
+ * // Optional. Region of the Cloud SQL instance.
8604
+ * location: 'placeholder-value',
7415
8605
  * // Required. Project ID of the project that contains the instance.
7416
8606
  * project: 'placeholder-value',
7417
8607
  * });
@@ -7574,6 +8764,8 @@ export namespace sqladmin_v1beta4 {
7574
8764
  * const res = await sql.instances.clone({
7575
8765
  * // The ID of the Cloud SQL instance to be cloned (source). This does not include the project ID.
7576
8766
  * instance: 'placeholder-value',
8767
+ * // Optional. Region of the Cloud SQL instance.
8768
+ * location: 'placeholder-value',
7577
8769
  * // Project ID of the source Cloud SQL instance.
7578
8770
  * project: 'placeholder-value',
7579
8771
  *
@@ -7749,6 +8941,8 @@ export namespace sqladmin_v1beta4 {
7749
8941
  * finalBackupTtlDays: 'placeholder-value',
7750
8942
  * // Cloud SQL instance ID. This does not include the project ID.
7751
8943
  * instance: 'placeholder-value',
8944
+ * // Optional. Region of the Cloud SQL instance.
8945
+ * location: 'placeholder-value',
7752
8946
  * // Project ID of the project that contains the instance to be deleted.
7753
8947
  * project: 'placeholder-value',
7754
8948
  * });
@@ -7907,6 +9101,8 @@ export namespace sqladmin_v1beta4 {
7907
9101
  * const res = await sql.instances.demote({
7908
9102
  * // Required. The name of the Cloud SQL instance.
7909
9103
  * instance: 'placeholder-value',
9104
+ * // Optional. Region of the Cloud SQL instance.
9105
+ * location: 'placeholder-value',
7910
9106
  * // Required. The project ID of the project that contains the instance.
7911
9107
  * project: 'placeholder-value',
7912
9108
  *
@@ -8074,6 +9270,8 @@ export namespace sqladmin_v1beta4 {
8074
9270
  * const res = await sql.instances.demoteMaster({
8075
9271
  * // Cloud SQL instance name.
8076
9272
  * instance: 'placeholder-value',
9273
+ * // Optional. Region of the Cloud SQL instance.
9274
+ * location: 'placeholder-value',
8077
9275
  * // ID of the project that contains the instance.
8078
9276
  * project: 'placeholder-value',
8079
9277
  *
@@ -8242,6 +9440,8 @@ export namespace sqladmin_v1beta4 {
8242
9440
  * const res = await sql.instances.executeSql({
8243
9441
  * // Required. Database instance ID. This does not include the project ID.
8244
9442
  * instance: 'placeholder-value',
9443
+ * // Optional. Region of the Cloud SQL instance.
9444
+ * location: 'placeholder-value',
8245
9445
  * // Required. Project ID of the project that contains the instance.
8246
9446
  * project: 'placeholder-value',
8247
9447
  *
@@ -8405,6 +9605,8 @@ export namespace sqladmin_v1beta4 {
8405
9605
  * const res = await sql.instances.export({
8406
9606
  * // The Cloud SQL instance ID. This doesn't include the project ID.
8407
9607
  * instance: 'placeholder-value',
9608
+ * // Optional. Region of the Cloud SQL instance.
9609
+ * location: 'placeholder-value',
8408
9610
  * // Project ID of the project that contains the instance to be exported.
8409
9611
  * project: 'placeholder-value',
8410
9612
  *
@@ -8572,6 +9774,8 @@ export namespace sqladmin_v1beta4 {
8572
9774
  * const res = await sql.instances.failover({
8573
9775
  * // Cloud SQL instance ID. This does not include the project ID.
8574
9776
  * instance: 'placeholder-value',
9777
+ * // Optional. Region of the Cloud SQL instance.
9778
+ * location: 'placeholder-value',
8575
9779
  * // ID of the project that contains the read replica.
8576
9780
  * project: 'placeholder-value',
8577
9781
  *
@@ -8740,6 +9944,8 @@ export namespace sqladmin_v1beta4 {
8740
9944
  * const res = await sql.instances.get({
8741
9945
  * // Database instance ID. This does not include the project ID.
8742
9946
  * instance: 'placeholder-value',
9947
+ * // Optional. Region of the Cloud SQL instance.
9948
+ * location: 'placeholder-value',
8743
9949
  * // Project ID of the project that contains the instance.
8744
9950
  * project: 'placeholder-value',
8745
9951
  * });
@@ -8755,6 +9961,7 @@ export namespace sqladmin_v1beta4 {
8755
9961
  * // "databaseCenterIntegrationEnabled": false,
8756
9962
  * // "databaseInstalledVersion": "my_databaseInstalledVersion",
8757
9963
  * // "databaseVersion": "my_databaseVersion",
9964
+ * // "deploymentInfo": {},
8758
9965
  * // "diskEncryptionConfiguration": {},
8759
9966
  * // "diskEncryptionStatus": {},
8760
9967
  * // "dnsName": "my_dnsName",
@@ -8928,6 +10135,8 @@ export namespace sqladmin_v1beta4 {
8928
10135
  * const res = await sql.instances.import({
8929
10136
  * // Cloud SQL instance ID. This does not include the project ID.
8930
10137
  * instance: 'placeholder-value',
10138
+ * // Optional. Region of the Cloud SQL instance.
10139
+ * location: 'placeholder-value',
8931
10140
  * // Project ID of the project that contains the instance.
8932
10141
  * project: 'placeholder-value',
8933
10142
  *
@@ -9093,6 +10302,8 @@ export namespace sqladmin_v1beta4 {
9093
10302
  *
9094
10303
  * // Do the magic
9095
10304
  * const res = await sql.instances.insert({
10305
+ * // Optional. Region of the Cloud SQL instance.
10306
+ * location: 'placeholder-value',
9096
10307
  * // Project ID of the project to which the newly created Cloud SQL instances should belong.
9097
10308
  * project: 'placeholder-value',
9098
10309
  *
@@ -9108,6 +10319,7 @@ export namespace sqladmin_v1beta4 {
9108
10319
  * // "databaseCenterIntegrationEnabled": false,
9109
10320
  * // "databaseInstalledVersion": "my_databaseInstalledVersion",
9110
10321
  * // "databaseVersion": "my_databaseVersion",
10322
+ * // "deploymentInfo": {},
9111
10323
  * // "diskEncryptionConfiguration": {},
9112
10324
  * // "diskEncryptionStatus": {},
9113
10325
  * // "dnsName": "my_dnsName",
@@ -9310,6 +10522,8 @@ export namespace sqladmin_v1beta4 {
9310
10522
  * const res = await sql.instances.list({
9311
10523
  * // 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.
9312
10524
  * filter: 'placeholder-value',
10525
+ * // Optional. Region of the Cloud SQL instance.
10526
+ * location: 'placeholder-value',
9313
10527
  * // 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.
9314
10528
  * maxResults: 'placeholder-value',
9315
10529
  * // A previously-returned page token representing part of the larger set of results to view.
@@ -9458,6 +10672,8 @@ export namespace sqladmin_v1beta4 {
9458
10672
  * const res = await sql.instances.ListEntraIdCertificates({
9459
10673
  * // Required. Cloud SQL instance ID. This does not include the project ID.
9460
10674
  * instance: 'placeholder-value',
10675
+ * // Optional. Region of the Cloud SQL instance.
10676
+ * location: 'placeholder-value',
9461
10677
  * // Required. Project ID of the project that contains the instance.
9462
10678
  * project: 'placeholder-value',
9463
10679
  * });
@@ -9612,6 +10828,8 @@ export namespace sqladmin_v1beta4 {
9612
10828
  * const res = await sql.instances.listServerCas({
9613
10829
  * // Cloud SQL instance ID. This does not include the project ID.
9614
10830
  * instance: 'placeholder-value',
10831
+ * // Optional. Region of the Cloud SQL instance.
10832
+ * location: 'placeholder-value',
9615
10833
  * // Project ID of the project that contains the instance.
9616
10834
  * project: 'placeholder-value',
9617
10835
  * });
@@ -9762,6 +10980,8 @@ export namespace sqladmin_v1beta4 {
9762
10980
  * const res = await sql.instances.ListServerCertificates({
9763
10981
  * // Required. Cloud SQL instance ID. This does not include the project ID.
9764
10982
  * instance: 'placeholder-value',
10983
+ * // Optional. Region of the Cloud SQL instance.
10984
+ * location: 'placeholder-value',
9765
10985
  * // Required. Project ID of the project that contains the instance.
9766
10986
  * project: 'placeholder-value',
9767
10987
  * });
@@ -9917,6 +11137,8 @@ export namespace sqladmin_v1beta4 {
9917
11137
  * const res = await sql.instances.patch({
9918
11138
  * // Cloud SQL instance ID. This does not include the project ID.
9919
11139
  * instance: 'placeholder-value',
11140
+ * // Optional. Region of the Cloud SQL instance.
11141
+ * location: 'placeholder-value',
9920
11142
  * // Project ID of the project that contains the instance.
9921
11143
  * project: 'placeholder-value',
9922
11144
  * // Optional. Set PSC config to the same value as the existing config to reconcile the PSC networking.
@@ -9936,6 +11158,7 @@ export namespace sqladmin_v1beta4 {
9936
11158
  * // "databaseCenterIntegrationEnabled": false,
9937
11159
  * // "databaseInstalledVersion": "my_databaseInstalledVersion",
9938
11160
  * // "databaseVersion": "my_databaseVersion",
11161
+ * // "deploymentInfo": {},
9939
11162
  * // "diskEncryptionConfiguration": {},
9940
11163
  * // "diskEncryptionStatus": {},
9941
11164
  * // "dnsName": "my_dnsName",
@@ -10312,6 +11535,8 @@ export namespace sqladmin_v1beta4 {
10312
11535
  * const res = await sql.instances.preCheckMajorVersionUpgrade({
10313
11536
  * // Required. Cloud SQL instance ID. This does not include the project ID.
10314
11537
  * instance: 'placeholder-value',
11538
+ * // Optional. Region of the Cloud SQL instance.
11539
+ * location: 'placeholder-value',
10315
11540
  * // Required. Project ID of the project that contains the instance.
10316
11541
  * project: 'placeholder-value',
10317
11542
  *
@@ -10484,6 +11709,8 @@ export namespace sqladmin_v1beta4 {
10484
11709
  * failover: 'placeholder-value',
10485
11710
  * // Cloud SQL read replica instance name.
10486
11711
  * instance: 'placeholder-value',
11712
+ * // Optional. Region of the Cloud SQL instance.
11713
+ * location: 'placeholder-value',
10487
11714
  * // ID of the project that contains the read replica.
10488
11715
  * project: 'placeholder-value',
10489
11716
  * });
@@ -10644,6 +11871,8 @@ export namespace sqladmin_v1beta4 {
10644
11871
  * const res = await sql.instances.reencrypt({
10645
11872
  * // Cloud SQL instance ID. This does not include the project ID.
10646
11873
  * instance: 'placeholder-value',
11874
+ * // Optional. Region of the Cloud SQL instance.
11875
+ * location: 'placeholder-value',
10647
11876
  * // ID of the project that contains the instance.
10648
11877
  * project: 'placeholder-value',
10649
11878
  *
@@ -10812,6 +12041,8 @@ export namespace sqladmin_v1beta4 {
10812
12041
  * const res = await sql.instances.releaseSsrsLease({
10813
12042
  * // Required. The 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).
10814
12043
  * instance: 'placeholder-value',
12044
+ * // Optional. Region of the Cloud SQL instance.
12045
+ * location: 'placeholder-value',
10815
12046
  * // Required. The ID of the project that contains the instance (Example: project-id).
10816
12047
  * project: 'placeholder-value',
10817
12048
  * });
@@ -10964,6 +12195,8 @@ export namespace sqladmin_v1beta4 {
10964
12195
  * const res = await sql.instances.resetSslConfig({
10965
12196
  * // Cloud SQL instance ID. This does not include the project ID.
10966
12197
  * instance: 'placeholder-value',
12198
+ * // Optional. Region of the Cloud SQL instance.
12199
+ * location: 'placeholder-value',
10967
12200
  * // Optional. Reset SSL mode to use.
10968
12201
  * mode: 'placeholder-value',
10969
12202
  * // Project ID of the project that contains the instance.
@@ -11126,6 +12359,8 @@ export namespace sqladmin_v1beta4 {
11126
12359
  * const res = await sql.instances.restart({
11127
12360
  * // Cloud SQL instance ID. This does not include the project ID.
11128
12361
  * instance: 'placeholder-value',
12362
+ * // Optional. Region of the Cloud SQL instance.
12363
+ * location: 'placeholder-value',
11129
12364
  * // Project ID of the project that contains the instance to be restarted.
11130
12365
  * project: 'placeholder-value',
11131
12366
  * });
@@ -11286,6 +12521,8 @@ export namespace sqladmin_v1beta4 {
11286
12521
  * const res = await sql.instances.restoreBackup({
11287
12522
  * // Cloud SQL instance ID. This does not include the project ID.
11288
12523
  * instance: 'placeholder-value',
12524
+ * // Optional. Region of the Cloud SQL instance.
12525
+ * location: 'placeholder-value',
11289
12526
  * // Project ID of the project that contains the instance.
11290
12527
  * project: 'placeholder-value',
11291
12528
  *
@@ -11295,6 +12532,7 @@ export namespace sqladmin_v1beta4 {
11295
12532
  * // {
11296
12533
  * // "backup": "my_backup",
11297
12534
  * // "backupdrBackup": "my_backupdrBackup",
12535
+ * // "ignoreMaintenanceVersion": false,
11298
12536
  * // "restoreBackupContext": {},
11299
12537
  * // "restoreInstanceClearOverridesFieldNames": [],
11300
12538
  * // "restoreInstanceSettings": {}
@@ -11458,6 +12696,8 @@ export namespace sqladmin_v1beta4 {
11458
12696
  * const res = await sql.instances.RotateEntraIdCertificate({
11459
12697
  * // Required. Cloud SQL instance ID. This does not include the project ID.
11460
12698
  * instance: 'placeholder-value',
12699
+ * // Optional. Region of the Cloud SQL instance.
12700
+ * location: 'placeholder-value',
11461
12701
  * // Required. Project ID of the project that contains the instance.
11462
12702
  * project: 'placeholder-value',
11463
12703
  *
@@ -11628,6 +12868,8 @@ export namespace sqladmin_v1beta4 {
11628
12868
  * const res = await sql.instances.rotateServerCa({
11629
12869
  * // Cloud SQL instance ID. This does not include the project ID.
11630
12870
  * instance: 'placeholder-value',
12871
+ * // Optional. Region of the Cloud SQL instance.
12872
+ * location: 'placeholder-value',
11631
12873
  * // Project ID of the project that contains the instance.
11632
12874
  * project: 'placeholder-value',
11633
12875
  *
@@ -11796,6 +13038,8 @@ export namespace sqladmin_v1beta4 {
11796
13038
  * const res = await sql.instances.RotateServerCertificate({
11797
13039
  * // Required. Cloud SQL instance ID. This does not include the project ID.
11798
13040
  * instance: 'placeholder-value',
13041
+ * // Optional. Region of the Cloud SQL instance.
13042
+ * location: 'placeholder-value',
11799
13043
  * // Required. Project ID of the project that contains the instance.
11800
13044
  * project: 'placeholder-value',
11801
13045
  *
@@ -11966,6 +13210,8 @@ export namespace sqladmin_v1beta4 {
11966
13210
  * const res = await sql.instances.startReplica({
11967
13211
  * // Cloud SQL read replica instance name.
11968
13212
  * instance: 'placeholder-value',
13213
+ * // Optional. Region of the Cloud SQL instance.
13214
+ * location: 'placeholder-value',
11969
13215
  * // ID of the project that contains the read replica.
11970
13216
  * project: 'placeholder-value',
11971
13217
  * });
@@ -12126,6 +13372,8 @@ export namespace sqladmin_v1beta4 {
12126
13372
  * const res = await sql.instances.stopReplica({
12127
13373
  * // Cloud SQL read replica instance name.
12128
13374
  * instance: 'placeholder-value',
13375
+ * // Optional. Region of the Cloud SQL instance.
13376
+ * location: 'placeholder-value',
12129
13377
  * // ID of the project that contains the read replica.
12130
13378
  * project: 'placeholder-value',
12131
13379
  * });
@@ -12288,6 +13536,8 @@ export namespace sqladmin_v1beta4 {
12288
13536
  * dbTimeout: 'placeholder-value',
12289
13537
  * // Cloud SQL read replica instance name.
12290
13538
  * instance: 'placeholder-value',
13539
+ * // Optional. Region of the Cloud SQL instance.
13540
+ * location: 'placeholder-value',
12291
13541
  * // ID of the project that contains the replica.
12292
13542
  * project: 'placeholder-value',
12293
13543
  * });
@@ -12448,6 +13698,8 @@ export namespace sqladmin_v1beta4 {
12448
13698
  * const res = await sql.instances.truncateLog({
12449
13699
  * // Cloud SQL instance ID. This does not include the project ID.
12450
13700
  * instance: 'placeholder-value',
13701
+ * // Optional. Region of the Cloud SQL instance.
13702
+ * location: 'placeholder-value',
12451
13703
  * // Project ID of the Cloud SQL project.
12452
13704
  * project: 'placeholder-value',
12453
13705
  *
@@ -12616,6 +13868,8 @@ export namespace sqladmin_v1beta4 {
12616
13868
  * const res = await sql.instances.update({
12617
13869
  * // Cloud SQL instance ID. This does not include the project ID.
12618
13870
  * instance: 'placeholder-value',
13871
+ * // Optional. Region of the Cloud SQL instance.
13872
+ * location: 'placeholder-value',
12619
13873
  * // Project ID of the project that contains the instance.
12620
13874
  * project: 'placeholder-value',
12621
13875
  *
@@ -12631,6 +13885,7 @@ export namespace sqladmin_v1beta4 {
12631
13885
  * // "databaseCenterIntegrationEnabled": false,
12632
13886
  * // "databaseInstalledVersion": "my_databaseInstalledVersion",
12633
13887
  * // "databaseVersion": "my_databaseVersion",
13888
+ * // "deploymentInfo": {},
12634
13889
  * // "diskEncryptionConfiguration": {},
12635
13890
  * // "diskEncryptionStatus": {},
12636
13891
  * // "dnsName": "my_dnsName",
@@ -12803,6 +14058,10 @@ export namespace sqladmin_v1beta4 {
12803
14058
  * 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).
12804
14059
  */
12805
14060
  instance?: string;
14061
+ /**
14062
+ * Optional. Region of the Cloud SQL instance.
14063
+ */
14064
+ location?: string;
12806
14065
  /**
12807
14066
  * Required. ID of the project that contains the instance (Example: project-id).
12808
14067
  */
@@ -12818,6 +14077,10 @@ export namespace sqladmin_v1beta4 {
12818
14077
  * Required. Cloud SQL instance ID. This does not include the project ID.
12819
14078
  */
12820
14079
  instance?: string;
14080
+ /**
14081
+ * Optional. Region of the Cloud SQL instance.
14082
+ */
14083
+ location?: string;
12821
14084
  /**
12822
14085
  * Required. Project ID of the project that contains the instance.
12823
14086
  */
@@ -12828,6 +14091,10 @@ export namespace sqladmin_v1beta4 {
12828
14091
  * Cloud SQL instance ID. This does not include the project ID.
12829
14092
  */
12830
14093
  instance?: string;
14094
+ /**
14095
+ * Optional. Region of the Cloud SQL instance.
14096
+ */
14097
+ location?: string;
12831
14098
  /**
12832
14099
  * Project ID of the project that contains the instance.
12833
14100
  */
@@ -12838,6 +14105,10 @@ export namespace sqladmin_v1beta4 {
12838
14105
  * Required. Cloud SQL instance ID. This does not include the project ID.
12839
14106
  */
12840
14107
  instance?: string;
14108
+ /**
14109
+ * Optional. Region of the Cloud SQL instance.
14110
+ */
14111
+ location?: string;
12841
14112
  /**
12842
14113
  * Required. Project ID of the project that contains the instance.
12843
14114
  */
@@ -12848,6 +14119,10 @@ export namespace sqladmin_v1beta4 {
12848
14119
  * The ID of the Cloud SQL instance to be cloned (source). This does not include the project ID.
12849
14120
  */
12850
14121
  instance?: string;
14122
+ /**
14123
+ * Optional. Region of the Cloud SQL instance.
14124
+ */
14125
+ location?: string;
12851
14126
  /**
12852
14127
  * Project ID of the source Cloud SQL instance.
12853
14128
  */
@@ -12879,6 +14154,10 @@ export namespace sqladmin_v1beta4 {
12879
14154
  * Cloud SQL instance ID. This does not include the project ID.
12880
14155
  */
12881
14156
  instance?: string;
14157
+ /**
14158
+ * Optional. Region of the Cloud SQL instance.
14159
+ */
14160
+ location?: string;
12882
14161
  /**
12883
14162
  * Project ID of the project that contains the instance to be deleted.
12884
14163
  */
@@ -12889,6 +14168,10 @@ export namespace sqladmin_v1beta4 {
12889
14168
  * Required. The name of the Cloud SQL instance.
12890
14169
  */
12891
14170
  instance?: string;
14171
+ /**
14172
+ * Optional. Region of the Cloud SQL instance.
14173
+ */
14174
+ location?: string;
12892
14175
  /**
12893
14176
  * Required. The project ID of the project that contains the instance.
12894
14177
  */
@@ -12904,6 +14187,10 @@ export namespace sqladmin_v1beta4 {
12904
14187
  * Cloud SQL instance name.
12905
14188
  */
12906
14189
  instance?: string;
14190
+ /**
14191
+ * Optional. Region of the Cloud SQL instance.
14192
+ */
14193
+ location?: string;
12907
14194
  /**
12908
14195
  * ID of the project that contains the instance.
12909
14196
  */
@@ -12919,6 +14206,10 @@ export namespace sqladmin_v1beta4 {
12919
14206
  * Required. Database instance ID. This does not include the project ID.
12920
14207
  */
12921
14208
  instance?: string;
14209
+ /**
14210
+ * Optional. Region of the Cloud SQL instance.
14211
+ */
14212
+ location?: string;
12922
14213
  /**
12923
14214
  * Required. Project ID of the project that contains the instance.
12924
14215
  */
@@ -12934,6 +14225,10 @@ export namespace sqladmin_v1beta4 {
12934
14225
  * The Cloud SQL instance ID. This doesn't include the project ID.
12935
14226
  */
12936
14227
  instance?: string;
14228
+ /**
14229
+ * Optional. Region of the Cloud SQL instance.
14230
+ */
14231
+ location?: string;
12937
14232
  /**
12938
14233
  * Project ID of the project that contains the instance to be exported.
12939
14234
  */
@@ -12949,6 +14244,10 @@ export namespace sqladmin_v1beta4 {
12949
14244
  * Cloud SQL instance ID. This does not include the project ID.
12950
14245
  */
12951
14246
  instance?: string;
14247
+ /**
14248
+ * Optional. Region of the Cloud SQL instance.
14249
+ */
14250
+ location?: string;
12952
14251
  /**
12953
14252
  * ID of the project that contains the read replica.
12954
14253
  */
@@ -12964,6 +14263,10 @@ export namespace sqladmin_v1beta4 {
12964
14263
  * Database instance ID. This does not include the project ID.
12965
14264
  */
12966
14265
  instance?: string;
14266
+ /**
14267
+ * Optional. Region of the Cloud SQL instance.
14268
+ */
14269
+ location?: string;
12967
14270
  /**
12968
14271
  * Project ID of the project that contains the instance.
12969
14272
  */
@@ -12974,6 +14277,10 @@ export namespace sqladmin_v1beta4 {
12974
14277
  * Cloud SQL instance ID. This does not include the project ID.
12975
14278
  */
12976
14279
  instance?: string;
14280
+ /**
14281
+ * Optional. Region of the Cloud SQL instance.
14282
+ */
14283
+ location?: string;
12977
14284
  /**
12978
14285
  * Project ID of the project that contains the instance.
12979
14286
  */
@@ -12985,6 +14292,10 @@ export namespace sqladmin_v1beta4 {
12985
14292
  requestBody?: Schema$InstancesImportRequest;
12986
14293
  }
12987
14294
  export interface Params$Resource$Instances$Insert extends StandardParameters {
14295
+ /**
14296
+ * Optional. Region of the Cloud SQL instance.
14297
+ */
14298
+ location?: string;
12988
14299
  /**
12989
14300
  * Project ID of the project to which the newly created Cloud SQL instances should belong.
12990
14301
  */
@@ -13000,6 +14311,10 @@ export namespace sqladmin_v1beta4 {
13000
14311
  * 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.
13001
14312
  */
13002
14313
  filter?: string;
14314
+ /**
14315
+ * Optional. Region of the Cloud SQL instance.
14316
+ */
14317
+ location?: string;
13003
14318
  /**
13004
14319
  * 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.
13005
14320
  */
@@ -13018,6 +14333,10 @@ export namespace sqladmin_v1beta4 {
13018
14333
  * Required. Cloud SQL instance ID. This does not include the project ID.
13019
14334
  */
13020
14335
  instance?: string;
14336
+ /**
14337
+ * Optional. Region of the Cloud SQL instance.
14338
+ */
14339
+ location?: string;
13021
14340
  /**
13022
14341
  * Required. Project ID of the project that contains the instance.
13023
14342
  */
@@ -13028,6 +14347,10 @@ export namespace sqladmin_v1beta4 {
13028
14347
  * Cloud SQL instance ID. This does not include the project ID.
13029
14348
  */
13030
14349
  instance?: string;
14350
+ /**
14351
+ * Optional. Region of the Cloud SQL instance.
14352
+ */
14353
+ location?: string;
13031
14354
  /**
13032
14355
  * Project ID of the project that contains the instance.
13033
14356
  */
@@ -13038,6 +14361,10 @@ export namespace sqladmin_v1beta4 {
13038
14361
  * Required. Cloud SQL instance ID. This does not include the project ID.
13039
14362
  */
13040
14363
  instance?: string;
14364
+ /**
14365
+ * Optional. Region of the Cloud SQL instance.
14366
+ */
14367
+ location?: string;
13041
14368
  /**
13042
14369
  * Required. Project ID of the project that contains the instance.
13043
14370
  */
@@ -13048,6 +14375,10 @@ export namespace sqladmin_v1beta4 {
13048
14375
  * Cloud SQL instance ID. This does not include the project ID.
13049
14376
  */
13050
14377
  instance?: string;
14378
+ /**
14379
+ * Optional. Region of the Cloud SQL instance.
14380
+ */
14381
+ location?: string;
13051
14382
  /**
13052
14383
  * Project ID of the project that contains the instance.
13053
14384
  */
@@ -13082,6 +14413,10 @@ export namespace sqladmin_v1beta4 {
13082
14413
  * Required. Cloud SQL instance ID. This does not include the project ID.
13083
14414
  */
13084
14415
  instance?: string;
14416
+ /**
14417
+ * Optional. Region of the Cloud SQL instance.
14418
+ */
14419
+ location?: string;
13085
14420
  /**
13086
14421
  * Required. Project ID of the project that contains the instance.
13087
14422
  */
@@ -13101,6 +14436,10 @@ export namespace sqladmin_v1beta4 {
13101
14436
  * Cloud SQL read replica instance name.
13102
14437
  */
13103
14438
  instance?: string;
14439
+ /**
14440
+ * Optional. Region of the Cloud SQL instance.
14441
+ */
14442
+ location?: string;
13104
14443
  /**
13105
14444
  * ID of the project that contains the read replica.
13106
14445
  */
@@ -13111,6 +14450,10 @@ export namespace sqladmin_v1beta4 {
13111
14450
  * Cloud SQL instance ID. This does not include the project ID.
13112
14451
  */
13113
14452
  instance?: string;
14453
+ /**
14454
+ * Optional. Region of the Cloud SQL instance.
14455
+ */
14456
+ location?: string;
13114
14457
  /**
13115
14458
  * ID of the project that contains the instance.
13116
14459
  */
@@ -13126,6 +14469,10 @@ export namespace sqladmin_v1beta4 {
13126
14469
  * Required. The 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).
13127
14470
  */
13128
14471
  instance?: string;
14472
+ /**
14473
+ * Optional. Region of the Cloud SQL instance.
14474
+ */
14475
+ location?: string;
13129
14476
  /**
13130
14477
  * Required. The ID of the project that contains the instance (Example: project-id).
13131
14478
  */
@@ -13136,6 +14483,10 @@ export namespace sqladmin_v1beta4 {
13136
14483
  * Cloud SQL instance ID. This does not include the project ID.
13137
14484
  */
13138
14485
  instance?: string;
14486
+ /**
14487
+ * Optional. Region of the Cloud SQL instance.
14488
+ */
14489
+ location?: string;
13139
14490
  /**
13140
14491
  * Optional. Reset SSL mode to use.
13141
14492
  */
@@ -13150,6 +14501,10 @@ export namespace sqladmin_v1beta4 {
13150
14501
  * Cloud SQL instance ID. This does not include the project ID.
13151
14502
  */
13152
14503
  instance?: string;
14504
+ /**
14505
+ * Optional. Region of the Cloud SQL instance.
14506
+ */
14507
+ location?: string;
13153
14508
  /**
13154
14509
  * Project ID of the project that contains the instance to be restarted.
13155
14510
  */
@@ -13160,6 +14515,10 @@ export namespace sqladmin_v1beta4 {
13160
14515
  * Cloud SQL instance ID. This does not include the project ID.
13161
14516
  */
13162
14517
  instance?: string;
14518
+ /**
14519
+ * Optional. Region of the Cloud SQL instance.
14520
+ */
14521
+ location?: string;
13163
14522
  /**
13164
14523
  * Project ID of the project that contains the instance.
13165
14524
  */
@@ -13175,6 +14534,10 @@ export namespace sqladmin_v1beta4 {
13175
14534
  * Required. Cloud SQL instance ID. This does not include the project ID.
13176
14535
  */
13177
14536
  instance?: string;
14537
+ /**
14538
+ * Optional. Region of the Cloud SQL instance.
14539
+ */
14540
+ location?: string;
13178
14541
  /**
13179
14542
  * Required. Project ID of the project that contains the instance.
13180
14543
  */
@@ -13190,6 +14553,10 @@ export namespace sqladmin_v1beta4 {
13190
14553
  * Cloud SQL instance ID. This does not include the project ID.
13191
14554
  */
13192
14555
  instance?: string;
14556
+ /**
14557
+ * Optional. Region of the Cloud SQL instance.
14558
+ */
14559
+ location?: string;
13193
14560
  /**
13194
14561
  * Project ID of the project that contains the instance.
13195
14562
  */
@@ -13205,6 +14572,10 @@ export namespace sqladmin_v1beta4 {
13205
14572
  * Required. Cloud SQL instance ID. This does not include the project ID.
13206
14573
  */
13207
14574
  instance?: string;
14575
+ /**
14576
+ * Optional. Region of the Cloud SQL instance.
14577
+ */
14578
+ location?: string;
13208
14579
  /**
13209
14580
  * Required. Project ID of the project that contains the instance.
13210
14581
  */
@@ -13220,6 +14591,10 @@ export namespace sqladmin_v1beta4 {
13220
14591
  * Cloud SQL read replica instance name.
13221
14592
  */
13222
14593
  instance?: string;
14594
+ /**
14595
+ * Optional. Region of the Cloud SQL instance.
14596
+ */
14597
+ location?: string;
13223
14598
  /**
13224
14599
  * ID of the project that contains the read replica.
13225
14600
  */
@@ -13230,6 +14605,10 @@ export namespace sqladmin_v1beta4 {
13230
14605
  * Cloud SQL read replica instance name.
13231
14606
  */
13232
14607
  instance?: string;
14608
+ /**
14609
+ * Optional. Region of the Cloud SQL instance.
14610
+ */
14611
+ location?: string;
13233
14612
  /**
13234
14613
  * ID of the project that contains the read replica.
13235
14614
  */
@@ -13244,6 +14623,10 @@ export namespace sqladmin_v1beta4 {
13244
14623
  * Cloud SQL read replica instance name.
13245
14624
  */
13246
14625
  instance?: string;
14626
+ /**
14627
+ * Optional. Region of the Cloud SQL instance.
14628
+ */
14629
+ location?: string;
13247
14630
  /**
13248
14631
  * ID of the project that contains the replica.
13249
14632
  */
@@ -13254,6 +14637,10 @@ export namespace sqladmin_v1beta4 {
13254
14637
  * Cloud SQL instance ID. This does not include the project ID.
13255
14638
  */
13256
14639
  instance?: string;
14640
+ /**
14641
+ * Optional. Region of the Cloud SQL instance.
14642
+ */
14643
+ location?: string;
13257
14644
  /**
13258
14645
  * Project ID of the Cloud SQL project.
13259
14646
  */
@@ -13269,6 +14656,10 @@ export namespace sqladmin_v1beta4 {
13269
14656
  * Cloud SQL instance ID. This does not include the project ID.
13270
14657
  */
13271
14658
  instance?: string;
14659
+ /**
14660
+ * Optional. Region of the Cloud SQL instance.
14661
+ */
14662
+ location?: string;
13272
14663
  /**
13273
14664
  * Project ID of the project that contains the instance.
13274
14665
  */
@@ -13839,6 +15230,8 @@ export namespace sqladmin_v1beta4 {
13839
15230
  * const res = await sql.projects.instances.getDiskShrinkConfig({
13840
15231
  * // Cloud SQL instance ID. This does not include the project ID.
13841
15232
  * instance: 'placeholder-value',
15233
+ * // Optional. Region of the Cloud SQL instance.
15234
+ * location: 'placeholder-value',
13842
15235
  * // Project ID of the project that contains the instance.
13843
15236
  * project: 'placeholder-value',
13844
15237
  * });
@@ -13993,6 +15386,8 @@ export namespace sqladmin_v1beta4 {
13993
15386
  * const res = await sql.projects.instances.getLatestRecoveryTime({
13994
15387
  * // Cloud SQL instance ID. This does not include the project ID.
13995
15388
  * instance: 'placeholder-value',
15389
+ * // Optional. Region of the Cloud SQL instance.
15390
+ * location: 'placeholder-value',
13996
15391
  * // Project ID of the project that contains the instance.
13997
15392
  * project: 'placeholder-value',
13998
15393
  * // The timestamp used to identify the time when the source instance is deleted. If this instance is deleted, then you must set the timestamp.
@@ -14149,6 +15544,8 @@ export namespace sqladmin_v1beta4 {
14149
15544
  * const res = await sql.projects.instances.performDiskShrink({
14150
15545
  * // Cloud SQL instance ID. This does not include the project ID.
14151
15546
  * instance: 'placeholder-value',
15547
+ * // Optional. Region of the Cloud SQL instance.
15548
+ * location: 'placeholder-value',
14152
15549
  * // Project ID of the project that contains the instance.
14153
15550
  * project: 'placeholder-value',
14154
15551
  *
@@ -14317,6 +15714,8 @@ export namespace sqladmin_v1beta4 {
14317
15714
  * const res = await sql.projects.instances.rescheduleMaintenance({
14318
15715
  * // Cloud SQL instance ID. This does not include the project ID.
14319
15716
  * instance: 'placeholder-value',
15717
+ * // Optional. Region of the Cloud SQL instance.
15718
+ * location: 'placeholder-value',
14320
15719
  * // ID of the project that contains the instance.
14321
15720
  * project: 'placeholder-value',
14322
15721
  *
@@ -14493,7 +15892,9 @@ export namespace sqladmin_v1beta4 {
14493
15892
  * // Request body metadata
14494
15893
  * requestBody: {
14495
15894
  * // request body parameters
14496
- * // {}
15895
+ * // {
15896
+ * // "location": "my_location"
15897
+ * // }
14497
15898
  * },
14498
15899
  * });
14499
15900
  * console.log(res.data);
@@ -14660,6 +16061,7 @@ export namespace sqladmin_v1beta4 {
14660
16061
  * requestBody: {
14661
16062
  * // request body parameters
14662
16063
  * // {
16064
+ * // "location": "my_location",
14663
16065
  * // "migrationType": "my_migrationType",
14664
16066
  * // "mysqlSyncConfig": {},
14665
16067
  * // "replicaOverwriteEnabled": false,
@@ -14833,6 +16235,7 @@ export namespace sqladmin_v1beta4 {
14833
16235
  * requestBody: {
14834
16236
  * // request body parameters
14835
16237
  * // {
16238
+ * // "location": "my_location",
14836
16239
  * // "migrationType": "my_migrationType",
14837
16240
  * // "mysqlSyncConfig": {},
14838
16241
  * // "selectedObjects": [],
@@ -14965,6 +16368,10 @@ export namespace sqladmin_v1beta4 {
14965
16368
  * Cloud SQL instance ID. This does not include the project ID.
14966
16369
  */
14967
16370
  instance?: string;
16371
+ /**
16372
+ * Optional. Region of the Cloud SQL instance.
16373
+ */
16374
+ location?: string;
14968
16375
  /**
14969
16376
  * Project ID of the project that contains the instance.
14970
16377
  */
@@ -14975,6 +16382,10 @@ export namespace sqladmin_v1beta4 {
14975
16382
  * Cloud SQL instance ID. This does not include the project ID.
14976
16383
  */
14977
16384
  instance?: string;
16385
+ /**
16386
+ * Optional. Region of the Cloud SQL instance.
16387
+ */
16388
+ location?: string;
14978
16389
  /**
14979
16390
  * Project ID of the project that contains the instance.
14980
16391
  */
@@ -14989,6 +16400,10 @@ export namespace sqladmin_v1beta4 {
14989
16400
  * Cloud SQL instance ID. This does not include the project ID.
14990
16401
  */
14991
16402
  instance?: string;
16403
+ /**
16404
+ * Optional. Region of the Cloud SQL instance.
16405
+ */
16406
+ location?: string;
14992
16407
  /**
14993
16408
  * Project ID of the project that contains the instance.
14994
16409
  */
@@ -15004,6 +16419,10 @@ export namespace sqladmin_v1beta4 {
15004
16419
  * Cloud SQL instance ID. This does not include the project ID.
15005
16420
  */
15006
16421
  instance?: string;
16422
+ /**
16423
+ * Optional. Region of the Cloud SQL instance.
16424
+ */
16425
+ location?: string;
15007
16426
  /**
15008
16427
  * ID of the project that contains the instance.
15009
16428
  */
@@ -15102,6 +16521,8 @@ export namespace sqladmin_v1beta4 {
15102
16521
  * const res = await sql.sslCerts.createEphemeral({
15103
16522
  * // Cloud SQL instance ID. This does not include the project ID.
15104
16523
  * instance: 'placeholder-value',
16524
+ * // Optional. Region of the Cloud SQL instance.
16525
+ * location: 'placeholder-value',
15105
16526
  * // Project ID of the Cloud SQL project.
15106
16527
  * project: 'placeholder-value',
15107
16528
  *
@@ -15837,6 +17258,10 @@ export namespace sqladmin_v1beta4 {
15837
17258
  * Cloud SQL instance ID. This does not include the project ID.
15838
17259
  */
15839
17260
  instance?: string;
17261
+ /**
17262
+ * Optional. Region of the Cloud SQL instance.
17263
+ */
17264
+ location?: string;
15840
17265
  /**
15841
17266
  * Project ID of the Cloud SQL project.
15842
17267
  */
@@ -16099,6 +17524,8 @@ export namespace sqladmin_v1beta4 {
16099
17524
  * host: 'placeholder-value',
16100
17525
  * // Database instance ID. This does not include the project ID.
16101
17526
  * instance: 'placeholder-value',
17527
+ * // Optional. Region of the Cloud SQL instance.
17528
+ * location: 'placeholder-value',
16102
17529
  * // Name of the user in the instance.
16103
17530
  * name: 'placeholder-value',
16104
17531
  * // Project ID of the project that contains the instance.
@@ -16262,6 +17689,8 @@ export namespace sqladmin_v1beta4 {
16262
17689
  * host: 'placeholder-value',
16263
17690
  * // Database instance ID. This does not include the project ID.
16264
17691
  * instance: 'placeholder-value',
17692
+ * // Optional. Region of the Cloud SQL instance.
17693
+ * location: 'placeholder-value',
16265
17694
  * // User of the instance.
16266
17695
  * name: 'placeholder-value',
16267
17696
  * // Project ID of the project that contains the instance.
@@ -16418,6 +17847,8 @@ export namespace sqladmin_v1beta4 {
16418
17847
  * const res = await sql.users.insert({
16419
17848
  * // Database instance ID. This does not include the project ID.
16420
17849
  * instance: 'placeholder-value',
17850
+ * // Optional. Region of the Cloud SQL instance.
17851
+ * location: 'placeholder-value',
16421
17852
  * // Project ID of the project that contains the instance.
16422
17853
  * project: 'placeholder-value',
16423
17854
  *
@@ -16599,6 +18030,8 @@ export namespace sqladmin_v1beta4 {
16599
18030
  * const res = await sql.users.list({
16600
18031
  * // Database instance ID. This does not include the project ID.
16601
18032
  * instance: 'placeholder-value',
18033
+ * // Optional. Region of the Cloud SQL instance.
18034
+ * location: 'placeholder-value',
16602
18035
  * // Project ID of the project that contains the instance.
16603
18036
  * project: 'placeholder-value',
16604
18037
  * });
@@ -16746,6 +18179,8 @@ export namespace sqladmin_v1beta4 {
16746
18179
  * host: 'placeholder-value',
16747
18180
  * // Database instance ID. This does not include the project ID.
16748
18181
  * instance: 'placeholder-value',
18182
+ * // Optional. Region of the Cloud SQL instance.
18183
+ * location: 'placeholder-value',
16749
18184
  * // Name of the user in the instance.
16750
18185
  * name: 'placeholder-value',
16751
18186
  * // Project ID of the project that contains the instance.
@@ -16909,6 +18344,10 @@ export namespace sqladmin_v1beta4 {
16909
18344
  * Database instance ID. This does not include the project ID.
16910
18345
  */
16911
18346
  instance?: string;
18347
+ /**
18348
+ * Optional. Region of the Cloud SQL instance.
18349
+ */
18350
+ location?: string;
16912
18351
  /**
16913
18352
  * Name of the user in the instance.
16914
18353
  */
@@ -16927,6 +18366,10 @@ export namespace sqladmin_v1beta4 {
16927
18366
  * Database instance ID. This does not include the project ID.
16928
18367
  */
16929
18368
  instance?: string;
18369
+ /**
18370
+ * Optional. Region of the Cloud SQL instance.
18371
+ */
18372
+ location?: string;
16930
18373
  /**
16931
18374
  * User of the instance.
16932
18375
  */
@@ -16941,6 +18384,10 @@ export namespace sqladmin_v1beta4 {
16941
18384
  * Database instance ID. This does not include the project ID.
16942
18385
  */
16943
18386
  instance?: string;
18387
+ /**
18388
+ * Optional. Region of the Cloud SQL instance.
18389
+ */
18390
+ location?: string;
16944
18391
  /**
16945
18392
  * Project ID of the project that contains the instance.
16946
18393
  */
@@ -16956,6 +18403,10 @@ export namespace sqladmin_v1beta4 {
16956
18403
  * Database instance ID. This does not include the project ID.
16957
18404
  */
16958
18405
  instance?: string;
18406
+ /**
18407
+ * Optional. Region of the Cloud SQL instance.
18408
+ */
18409
+ location?: string;
16959
18410
  /**
16960
18411
  * Project ID of the project that contains the instance.
16961
18412
  */
@@ -16974,6 +18425,10 @@ export namespace sqladmin_v1beta4 {
16974
18425
  * Database instance ID. This does not include the project ID.
16975
18426
  */
16976
18427
  instance?: string;
18428
+ /**
18429
+ * Optional. Region of the Cloud SQL instance.
18430
+ */
18431
+ location?: string;
16977
18432
  /**
16978
18433
  * Name of the user in the instance.
16979
18434
  */