@googleapis/sqladmin 38.1.0 → 38.1.1

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