@googleapis/sqladmin 38.1.1 → 40.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/build/v1.d.ts CHANGED
@@ -69,6 +69,7 @@ export declare namespace sqladmin_v1 {
69
69
  context: APIRequestContext;
70
70
  backupRuns: Resource$Backupruns;
71
71
  Backups: Resource$Backups;
72
+ blueGreenDeployments: Resource$Bluegreendeployments;
72
73
  connect: Resource$Connect;
73
74
  databases: Resource$Databases;
74
75
  flags: Resource$Flags;
@@ -469,6 +470,72 @@ export declare namespace sqladmin_v1 {
469
470
  */
470
471
  kind?: string | null;
471
472
  }
473
+ /**
474
+ * A `BlueGreenDeployment` resource represents a Cloud SQL blue-green deployment setup.
475
+ */
476
+ export interface Schema$BlueGreenDeployment {
477
+ /**
478
+ * Output only. The time when the deployment was created. Example: `2024-01-01T00:00:00Z`
479
+ */
480
+ createTime?: string | null;
481
+ /**
482
+ * Output only. A list representing the pairs of source and target instances in the deployment.
483
+ */
484
+ deploymentMappings?: Schema$SourceTargetPairedNode[];
485
+ /**
486
+ * Output only. Combined list of tasks for all paired nodes.
487
+ */
488
+ deploymentTasks?: Schema$DeploymentTasks;
489
+ /**
490
+ * Optional. User-provided description for the deployment. The description can be up to 255 characters long.
491
+ */
492
+ description?: string | null;
493
+ /**
494
+ * 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."
495
+ */
496
+ errorDetail?: string | null;
497
+ /**
498
+ * Output only. Identifier. The full resource name of the deployment. Format: projects/{project\}/locations/{location\}/blueGreenDeployments/{deployment_id\}
499
+ */
500
+ name?: string | null;
501
+ /**
502
+ * Optional. Immutable. Optional on create, and immutable. The configuration intended for the target instance(s) when the deployment was created.
503
+ */
504
+ requestedConfig?: Schema$RequestedConfig;
505
+ /**
506
+ * Required. Immutable. Required on create, and immutable. The full resource name of the source instance (the "blue" instance). Format: projects/{project\}/instances/{instance\}
507
+ */
508
+ sourceInstance?: string | null;
509
+ /**
510
+ * Output only. The current state of the blue-green deployment.
511
+ */
512
+ state?: string | null;
513
+ /**
514
+ * 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\}
515
+ */
516
+ switchoverTargetInstance?: string | null;
517
+ }
518
+ /**
519
+ * 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.
520
+ */
521
+ export interface Schema$BlueGreenDeploymentInfo {
522
+ /**
523
+ * Output only. The resource ID of the blue-green deployment.
524
+ */
525
+ deploymentId?: string | null;
526
+ /**
527
+ * Output only. The source instance for the Blue-Green deployment.
528
+ */
529
+ source?: Schema$SourceRole;
530
+ /**
531
+ * Output only. The current state of blue-green-deployment for UI tags
532
+ */
533
+ state?: string | null;
534
+ /**
535
+ * Output only. The target instance for the Blue-Green deployment.
536
+ */
537
+ target?: Schema$TargetRole;
538
+ }
472
539
  /**
473
540
  * Database instance clone context.
474
541
  */
@@ -535,6 +602,23 @@ export declare namespace sqladmin_v1 {
535
602
  */
536
603
  type?: string | null;
537
604
  }
605
+ /**
606
+ * Represents a specific configuration difference between blue and green instances.
607
+ */
608
+ export interface Schema$ConfigDiff {
609
+ /**
610
+ * Output only. The name of the field that differs in the blue and green instances, fully-qualified. Example: `settings.tier`
611
+ */
612
+ field?: string | null;
613
+ /**
614
+ * Output only. The value on the source instance.
615
+ */
616
+ sourceValue?: string | null;
617
+ /**
618
+ * Output only. The value on the target instance.
619
+ */
620
+ targetValue?: string | null;
621
+ }
538
622
  /**
539
623
  * The managed connection pooling configuration.
540
624
  */
@@ -738,6 +822,10 @@ export declare namespace sqladmin_v1 {
738
822
  * The database engine type and version. The `databaseVersion` field cannot be changed after instance creation.
739
823
  */
740
824
  databaseVersion?: string | null;
825
+ /**
826
+ * Output only. Deployment info for the instance. This is set if the instance is currently part of any blue-green setup.
827
+ */
828
+ deploymentInfo?: Schema$BlueGreenDeploymentInfo;
741
829
  /**
742
830
  * Disk encryption configuration specific to an instance.
743
831
  */
@@ -1036,10 +1124,48 @@ export declare namespace sqladmin_v1 {
1036
1124
  */
1037
1125
  time?: string | null;
1038
1126
  }
1127
+ /**
1128
+ * Represents a task executed as part of the deployment on a target instance.
1129
+ */
1130
+ export interface Schema$DeploymentTask {
1131
+ /**
1132
+ * Output only. Task end time (if completed).
1133
+ */
1134
+ endTime?: string | null;
1135
+ /**
1136
+ * Output only. Optional error details if the task state is `FAILED`.
1137
+ */
1138
+ errorMessage?: string | null;
1139
+ /**
1140
+ * Output only. Task start time.
1141
+ */
1142
+ startTime?: string | null;
1143
+ /**
1144
+ * Output only. The current state of the task.
1145
+ */
1146
+ state?: string | null;
1147
+ /**
1148
+ * Output only. The type of the task.
1149
+ */
1150
+ type?: string | null;
1151
+ }
1152
+ /**
1153
+ * Combined list of tasks for all paired nodes in the deployment.
1154
+ */
1155
+ export interface Schema$DeploymentTasks {
1156
+ /**
1157
+ * Output only. Tasks performed or being performed on the paired nodes of the deployment at a consolidated level.
1158
+ */
1159
+ task?: Schema$DeploymentTask[];
1160
+ }
1039
1161
  /**
1040
1162
  * Disk encryption configuration for an instance.
1041
1163
  */
1042
1164
  export interface Schema$DiskEncryptionConfiguration {
1165
+ /**
1166
+ * Optional. If true, enables Confidential Mode for the instance's Hyperdisk Balanced volumes. Only supported for zonal C4A instances currently.
1167
+ */
1168
+ confidentialMode?: boolean | null;
1043
1169
  /**
1044
1170
  * This is always `sql#diskEncryptionConfiguration`.
1045
1171
  */
@@ -1646,6 +1772,10 @@ export declare namespace sqladmin_v1 {
1646
1772
  * 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.
1647
1773
  */
1648
1774
  backupdrBackup?: string | null;
1775
+ /**
1776
+ * Optional. If true, the restore operation proceeds even if the target instance's maintenance version is older than the source instance's maintenance version.
1777
+ */
1778
+ ignoreMaintenanceVersion?: boolean | null;
1649
1779
  /**
1650
1780
  * Parameters required to perform the restore backup operation.
1651
1781
  */
@@ -1795,6 +1925,19 @@ export declare namespace sqladmin_v1 {
1795
1925
  */
1796
1926
  warnings?: Schema$ApiWarning[];
1797
1927
  }
1928
+ /**
1929
+ * The response message for listing blue-green deployment resources.
1930
+ */
1931
+ export interface Schema$ListBlueGreenDeploymentsResponse {
1932
+ /**
1933
+ * The list of blue-green deployment resources.
1934
+ */
1935
+ blueGreenDeployments?: Schema$BlueGreenDeployment[];
1936
+ /**
1937
+ * A token to retrieve the next page of results, or empty if there are no more results.
1938
+ */
1939
+ nextPageToken?: string | null;
1940
+ }
1798
1941
  /**
1799
1942
  * 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.
1800
1943
  */
@@ -1917,6 +2060,27 @@ export declare namespace sqladmin_v1 {
1917
2060
  */
1918
2061
  initialSyncFlags?: Schema$SyncFlags[];
1919
2062
  }
2063
+ /**
2064
+ * Details about an instance within the deployment.
2065
+ */
2066
+ export interface Schema$NodeInfo {
2067
+ /**
2068
+ * Output only. The instance connection name.
2069
+ */
2070
+ connection?: string | null;
2071
+ /**
2072
+ * Output only. The unique DNS name for this instance.
2073
+ */
2074
+ dns?: string | null;
2075
+ /**
2076
+ * Output only. The full resource name of the instance. Format: projects/{project\}/instances/{instance\}
2077
+ */
2078
+ instance?: string | null;
2079
+ /**
2080
+ * Output only. The list of IP addresses for this instance.
2081
+ */
2082
+ ipMappings?: Schema$IpMapping[];
2083
+ }
1920
2084
  /**
1921
2085
  * On-premises instance configuration.
1922
2086
  */
@@ -2414,7 +2578,7 @@ export declare namespace sqladmin_v1 {
2414
2578
  */
2415
2579
  allowedConsumerProjects?: string[] | null;
2416
2580
  /**
2417
- * 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
2581
+ * 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
2418
2582
  */
2419
2583
  networkAttachmentUri?: string | null;
2420
2584
  /**
@@ -2534,6 +2698,15 @@ export declare namespace sqladmin_v1 {
2534
2698
  */
2535
2699
  psaWriteEndpoint?: string | null;
2536
2700
  }
2701
+ /**
2702
+ * Configuration specified by the user at creation time for the target (green) instance.
2703
+ */
2704
+ export interface Schema$RequestedConfig {
2705
+ /**
2706
+ * Optional. The target database major version for the upgrade. For example, `MYSQL_8_0` or `POSTGRES_15`.
2707
+ */
2708
+ databaseVersion?: string | null;
2709
+ }
2537
2710
  export interface Schema$Reschedule {
2538
2711
  /**
2539
2712
  * Required. The type of the reschedule.
@@ -2755,7 +2928,7 @@ export declare namespace sqladmin_v1 {
2755
2928
  */
2756
2929
  maintenanceWindow?: Schema$MaintenanceWindow;
2757
2930
  /**
2758
- * The local user password validation policy of the instance.
2931
+ * The local user password validation policy of the instance for PostgreSQL and MySQL.
2759
2932
  */
2760
2933
  passwordValidationPolicy?: Schema$PasswordValidationPolicy;
2761
2934
  /**
@@ -2813,6 +2986,36 @@ export declare namespace sqladmin_v1 {
2813
2986
  [key: string]: string;
2814
2987
  } | null;
2815
2988
  }
2989
+ /**
2990
+ * The source instance for the Blue-Green deployment.
2991
+ */
2992
+ export interface Schema$SourceRole {
2993
+ /**
2994
+ * Output only. The target instance paired with this source instance in a blue-green deployment.
2995
+ */
2996
+ targetId?: Schema$InstanceReference;
2997
+ }
2998
+ /**
2999
+ * Represents a pairing of a source instance node and a target instance node.
3000
+ */
3001
+ export interface Schema$SourceTargetPairedNode {
3002
+ /**
3003
+ * Output only. Describes the list of differences for the `SourceTargetPairedNode`.
3004
+ */
3005
+ diffs?: Schema$ConfigDiff[];
3006
+ /**
3007
+ * Output only. Specifies the resource name of the source instance in this pair.
3008
+ */
3009
+ source?: Schema$NodeInfo;
3010
+ /**
3011
+ * Output only. Specifies the current state of this specific source-target pair.
3012
+ */
3013
+ state?: string | null;
3014
+ /**
3015
+ * Output only. Specifies details of the corresponding target instance in this pair.
3016
+ */
3017
+ target?: Schema$NodeInfo;
3018
+ }
2816
3019
  /**
2817
3020
  * Active Directory configuration, relevant only for Cloud SQL for SQL Server.
2818
3021
  */
@@ -2945,11 +3148,19 @@ export declare namespace sqladmin_v1 {
2945
3148
  * Instance reset replica size request.
2946
3149
  */
2947
3150
  export interface Schema$SqlInstancesResetReplicaSizeRequest {
3151
+ /**
3152
+ * Optional. Region of the Cloud SQL instance.
3153
+ */
3154
+ location?: string | null;
2948
3155
  }
2949
3156
  /**
2950
3157
  * Instance start external sync request.
2951
3158
  */
2952
3159
  export interface Schema$SqlInstancesStartExternalSyncRequest {
3160
+ /**
3161
+ * Optional. Region of the Cloud SQL instance.
3162
+ */
3163
+ location?: string | null;
2953
3164
  /**
2954
3165
  * 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.
2955
3166
  */
@@ -2979,6 +3190,10 @@ export declare namespace sqladmin_v1 {
2979
3190
  * Instance verify external sync settings request.
2980
3191
  */
2981
3192
  export interface Schema$SqlInstancesVerifyExternalSyncSettingsRequest {
3193
+ /**
3194
+ * Optional. Region of the Cloud SQL instance.
3195
+ */
3196
+ location?: string | null;
2982
3197
  /**
2983
3198
  * 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.
2984
3199
  */
@@ -3112,11 +3327,11 @@ export declare namespace sqladmin_v1 {
3112
3327
  */
3113
3328
  export interface Schema$SqlServerUserDetails {
3114
3329
  /**
3115
- * If the user has been disabled
3330
+ * Indicates if the user has been disabled.
3116
3331
  */
3117
3332
  disabled?: boolean | null;
3118
3333
  /**
3119
- * The server roles for this user
3334
+ * Indicates the server roles for this user.
3120
3335
  */
3121
3336
  serverRoles?: string[] | null;
3122
3337
  }
@@ -3258,6 +3473,11 @@ export declare namespace sqladmin_v1 {
3258
3473
  */
3259
3474
  message?: string | null;
3260
3475
  }
3476
+ /**
3477
+ * Request message for switching over a `BlueGreenDeployment` resource.
3478
+ */
3479
+ export interface Schema$SwitchoverBlueGreenDeploymentRequest {
3480
+ }
3261
3481
  /**
3262
3482
  * Initial sync flags for certain Cloud SQL APIs. Currently used for the MySQL external server initial dump.
3263
3483
  */
@@ -3284,6 +3504,15 @@ export declare namespace sqladmin_v1 {
3284
3504
  */
3285
3505
  targetValue?: number | null;
3286
3506
  }
3507
+ /**
3508
+ * The target instance for the Blue-Green deployment.
3509
+ */
3510
+ export interface Schema$TargetRole {
3511
+ /**
3512
+ * Output only. The source instance paired with this target instance in a blue-green deployment.
3513
+ */
3514
+ sourceId?: Schema$InstanceReference;
3515
+ }
3287
3516
  /**
3288
3517
  * A Google Cloud SQL service tier resource.
3289
3518
  */
@@ -4390,11 +4619,11 @@ export declare namespace sqladmin_v1 {
4390
4619
  */
4391
4620
  requestBody?: Schema$Backup;
4392
4621
  }
4393
- export class Resource$Connect {
4622
+ export class Resource$Bluegreendeployments {
4394
4623
  context: APIRequestContext;
4395
4624
  constructor(context: APIRequestContext);
4396
4625
  /**
4397
- * 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.
4626
+ * Creates a blue-green deployment under a given project and location.
4398
4627
  * @example
4399
4628
  * ```js
4400
4629
  * // Before running the sample:
@@ -4426,20 +4655,26 @@ export declare namespace sqladmin_v1 {
4426
4655
  * google.options({auth: authClient});
4427
4656
  *
4428
4657
  * // Do the magic
4429
- * const res = await sql.connect.generateEphemeral({
4430
- * // Cloud SQL instance ID. This does not include the project ID.
4431
- * instance: 'placeholder-value',
4432
- * // Project ID of the project that contains the instance.
4433
- * project: 'placeholder-value',
4658
+ * const res = await sql.blueGreenDeployments.create({
4659
+ * // 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.
4660
+ * blueGreenDeploymentId: 'placeholder-value',
4661
+ * // Required. The parent resource where this blue-green deployment will be created. Format: projects/{project\}/locations/{location\}
4662
+ * parent: 'projects/my-project/locations/my-location',
4434
4663
  *
4435
4664
  * // Request body metadata
4436
4665
  * requestBody: {
4437
4666
  * // request body parameters
4438
4667
  * // {
4439
- * // "access_token": "my_access_token",
4440
- * // "public_key": "my_public_key",
4441
- * // "readTime": "my_readTime",
4442
- * // "validDuration": "my_validDuration"
4668
+ * // "createTime": "my_createTime",
4669
+ * // "deploymentMappings": [],
4670
+ * // "deploymentTasks": {},
4671
+ * // "description": "my_description",
4672
+ * // "errorDetail": "my_errorDetail",
4673
+ * // "name": "my_name",
4674
+ * // "requestedConfig": {},
4675
+ * // "sourceInstance": "my_sourceInstance",
4676
+ * // "state": "my_state",
4677
+ * // "switchoverTargetInstance": "my_switchoverTargetInstance"
4443
4678
  * // }
4444
4679
  * },
4445
4680
  * });
@@ -4447,7 +4682,26 @@ export declare namespace sqladmin_v1 {
4447
4682
  *
4448
4683
  * // Example response
4449
4684
  * // {
4450
- * // "ephemeralCert": {}
4685
+ * // "acquireSsrsLeaseContext": {},
4686
+ * // "apiWarning": {},
4687
+ * // "backupContext": {},
4688
+ * // "endTime": "my_endTime",
4689
+ * // "error": {},
4690
+ * // "exportContext": {},
4691
+ * // "importContext": {},
4692
+ * // "insertTime": "my_insertTime",
4693
+ * // "kind": "my_kind",
4694
+ * // "name": "my_name",
4695
+ * // "operationType": "my_operationType",
4696
+ * // "preCheckMajorVersionUpgradeContext": {},
4697
+ * // "selfLink": "my_selfLink",
4698
+ * // "startTime": "my_startTime",
4699
+ * // "status": "my_status",
4700
+ * // "subOperationType": {},
4701
+ * // "targetId": "my_targetId",
4702
+ * // "targetLink": "my_targetLink",
4703
+ * // "targetProject": "my_targetProject",
4704
+ * // "user": "my_user"
4451
4705
  * // }
4452
4706
  * }
4453
4707
  *
@@ -4463,14 +4717,14 @@ export declare namespace sqladmin_v1 {
4463
4717
  * @param callback - Optional callback that handles the response.
4464
4718
  * @returns A promise if used with async/await, or void if used with a callback.
4465
4719
  */
4466
- generateEphemeralCert(params: Params$Resource$Connect$Generateephemeralcert, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
4467
- generateEphemeralCert(params?: Params$Resource$Connect$Generateephemeralcert, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$GenerateEphemeralCertResponse>>;
4468
- generateEphemeralCert(params: Params$Resource$Connect$Generateephemeralcert, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
4469
- generateEphemeralCert(params: Params$Resource$Connect$Generateephemeralcert, options: MethodOptions | BodyResponseCallback<Schema$GenerateEphemeralCertResponse>, callback: BodyResponseCallback<Schema$GenerateEphemeralCertResponse>): void;
4470
- generateEphemeralCert(params: Params$Resource$Connect$Generateephemeralcert, callback: BodyResponseCallback<Schema$GenerateEphemeralCertResponse>): void;
4471
- generateEphemeralCert(callback: BodyResponseCallback<Schema$GenerateEphemeralCertResponse>): void;
4720
+ create(params: Params$Resource$Bluegreendeployments$Create, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
4721
+ create(params?: Params$Resource$Bluegreendeployments$Create, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$Operation>>;
4722
+ create(params: Params$Resource$Bluegreendeployments$Create, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
4723
+ create(params: Params$Resource$Bluegreendeployments$Create, options: MethodOptions | BodyResponseCallback<Schema$Operation>, callback: BodyResponseCallback<Schema$Operation>): void;
4724
+ create(params: Params$Resource$Bluegreendeployments$Create, callback: BodyResponseCallback<Schema$Operation>): void;
4725
+ create(callback: BodyResponseCallback<Schema$Operation>): void;
4472
4726
  /**
4473
- * Retrieves connect settings about a Cloud SQL instance.
4727
+ * Deletes a blue-green deployment.
4474
4728
  * @example
4475
4729
  * ```js
4476
4730
  * // Before running the sample:
@@ -4502,33 +4756,36 @@ export declare namespace sqladmin_v1 {
4502
4756
  * google.options({auth: authClient});
4503
4757
  *
4504
4758
  * // Do the magic
4505
- * const res = await sql.connect.get({
4506
- * // Cloud SQL instance ID. This does not include the project ID.
4507
- * instance: 'placeholder-value',
4508
- * // Project ID of the project that contains the instance.
4509
- * project: 'placeholder-value',
4510
- * // Optional. Optional snapshot read timestamp to trade freshness for performance.
4511
- * readTime: 'placeholder-value',
4759
+ * const res = await sql.blueGreenDeployments.delete({
4760
+ * // Optional. If set to true, and the switchover is complete, this deletes the old source instance along with the deployment.
4761
+ * deleteOldSource: 'placeholder-value',
4762
+ * // Required. The name of the blue-green deployment to delete. Format: projects/{project\}/locations/{location\}/blueGreenDeployments/{blue_green_deployment\}
4763
+ * name: 'projects/my-project/locations/my-location/blueGreenDeployments/my-blueGreenDeployment',
4512
4764
  * });
4513
4765
  * console.log(res.data);
4514
4766
  *
4515
4767
  * // Example response
4516
4768
  * // {
4517
- * // "backendType": "my_backendType",
4518
- * // "connectionName": "my_connectionName",
4519
- * // "customSubjectAlternativeNames": [],
4520
- * // "databaseVersion": "my_databaseVersion",
4521
- * // "dnsName": "my_dnsName",
4522
- * // "dnsNames": [],
4523
- * // "ipAddresses": [],
4769
+ * // "acquireSsrsLeaseContext": {},
4770
+ * // "apiWarning": {},
4771
+ * // "backupContext": {},
4772
+ * // "endTime": "my_endTime",
4773
+ * // "error": {},
4774
+ * // "exportContext": {},
4775
+ * // "importContext": {},
4776
+ * // "insertTime": "my_insertTime",
4524
4777
  * // "kind": "my_kind",
4525
- * // "mdxProtocolSupport": [],
4526
- * // "nodeCount": 0,
4527
- * // "nodes": [],
4528
- * // "pscEnabled": false,
4529
- * // "region": "my_region",
4530
- * // "serverCaCert": {},
4531
- * // "serverCaMode": "my_serverCaMode"
4778
+ * // "name": "my_name",
4779
+ * // "operationType": "my_operationType",
4780
+ * // "preCheckMajorVersionUpgradeContext": {},
4781
+ * // "selfLink": "my_selfLink",
4782
+ * // "startTime": "my_startTime",
4783
+ * // "status": "my_status",
4784
+ * // "subOperationType": {},
4785
+ * // "targetId": "my_targetId",
4786
+ * // "targetLink": "my_targetLink",
4787
+ * // "targetProject": "my_targetProject",
4788
+ * // "user": "my_user"
4532
4789
  * // }
4533
4790
  * }
4534
4791
  *
@@ -4544,14 +4801,14 @@ export declare namespace sqladmin_v1 {
4544
4801
  * @param callback - Optional callback that handles the response.
4545
4802
  * @returns A promise if used with async/await, or void if used with a callback.
4546
4803
  */
4547
- get(params: Params$Resource$Connect$Get, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
4548
- get(params?: Params$Resource$Connect$Get, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$ConnectSettings>>;
4549
- get(params: Params$Resource$Connect$Get, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
4550
- get(params: Params$Resource$Connect$Get, options: MethodOptions | BodyResponseCallback<Schema$ConnectSettings>, callback: BodyResponseCallback<Schema$ConnectSettings>): void;
4551
- get(params: Params$Resource$Connect$Get, callback: BodyResponseCallback<Schema$ConnectSettings>): void;
4552
- get(callback: BodyResponseCallback<Schema$ConnectSettings>): void;
4804
+ delete(params: Params$Resource$Bluegreendeployments$Delete, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
4805
+ delete(params?: Params$Resource$Bluegreendeployments$Delete, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$Operation>>;
4806
+ delete(params: Params$Resource$Bluegreendeployments$Delete, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
4807
+ delete(params: Params$Resource$Bluegreendeployments$Delete, options: MethodOptions | BodyResponseCallback<Schema$Operation>, callback: BodyResponseCallback<Schema$Operation>): void;
4808
+ delete(params: Params$Resource$Bluegreendeployments$Delete, callback: BodyResponseCallback<Schema$Operation>): void;
4809
+ delete(callback: BodyResponseCallback<Schema$Operation>): void;
4553
4810
  /**
4554
- * Retrieves connect settings about a Cloud SQL instance using the instance DNS name.
4811
+ * Retrieves a blue-green deployment resource under a given project and location.
4555
4812
  * @example
4556
4813
  * ```js
4557
4814
  * // Before running the sample:
@@ -4583,31 +4840,26 @@ export declare namespace sqladmin_v1 {
4583
4840
  * google.options({auth: authClient});
4584
4841
  *
4585
4842
  * // Do the magic
4586
- * const res = await sql.connect.resolve({
4587
- * // Required. Cloud SQL instance ID. This does not include the project ID.
4588
- * dnsName: 'placeholder-value',
4589
- * // Required. The region of the instance.
4590
- * location: 'placeholder-value',
4843
+ * const res = await sql.blueGreenDeployments.get({
4844
+ * // Required. The name of the blue-green deployment to retrieve. Format: projects/{project\}/locations/{location\}/blueGreenDeployments/{blue_green_deployment\}
4845
+ * name: 'projects/my-project/locations/my-location/blueGreenDeployments/my-blueGreenDeployment',
4846
+ * // Optional. Specifies whether to return the basic or detailed view of the resource in the response.
4847
+ * view: 'placeholder-value',
4591
4848
  * });
4592
4849
  * console.log(res.data);
4593
4850
  *
4594
4851
  * // Example response
4595
4852
  * // {
4596
- * // "backendType": "my_backendType",
4597
- * // "connectionName": "my_connectionName",
4598
- * // "customSubjectAlternativeNames": [],
4599
- * // "databaseVersion": "my_databaseVersion",
4600
- * // "dnsName": "my_dnsName",
4601
- * // "dnsNames": [],
4602
- * // "ipAddresses": [],
4603
- * // "kind": "my_kind",
4604
- * // "mdxProtocolSupport": [],
4605
- * // "nodeCount": 0,
4606
- * // "nodes": [],
4607
- * // "pscEnabled": false,
4608
- * // "region": "my_region",
4609
- * // "serverCaCert": {},
4610
- * // "serverCaMode": "my_serverCaMode"
4853
+ * // "createTime": "my_createTime",
4854
+ * // "deploymentMappings": [],
4855
+ * // "deploymentTasks": {},
4856
+ * // "description": "my_description",
4857
+ * // "errorDetail": "my_errorDetail",
4858
+ * // "name": "my_name",
4859
+ * // "requestedConfig": {},
4860
+ * // "sourceInstance": "my_sourceInstance",
4861
+ * // "state": "my_state",
4862
+ * // "switchoverTargetInstance": "my_switchoverTargetInstance"
4611
4863
  * // }
4612
4864
  * }
4613
4865
  *
@@ -4623,8 +4875,474 @@ export declare namespace sqladmin_v1 {
4623
4875
  * @param callback - Optional callback that handles the response.
4624
4876
  * @returns A promise if used with async/await, or void if used with a callback.
4625
4877
  */
4626
- resolve(params: Params$Resource$Connect$Resolve, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
4627
- resolve(params?: Params$Resource$Connect$Resolve, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$ConnectSettings>>;
4878
+ get(params: Params$Resource$Bluegreendeployments$Get, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
4879
+ get(params?: Params$Resource$Bluegreendeployments$Get, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$BlueGreenDeployment>>;
4880
+ get(params: Params$Resource$Bluegreendeployments$Get, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
4881
+ get(params: Params$Resource$Bluegreendeployments$Get, options: MethodOptions | BodyResponseCallback<Schema$BlueGreenDeployment>, callback: BodyResponseCallback<Schema$BlueGreenDeployment>): void;
4882
+ get(params: Params$Resource$Bluegreendeployments$Get, callback: BodyResponseCallback<Schema$BlueGreenDeployment>): void;
4883
+ get(callback: BodyResponseCallback<Schema$BlueGreenDeployment>): void;
4884
+ /**
4885
+ * Lists blue-green deployments under a given project.
4886
+ * @example
4887
+ * ```js
4888
+ * // Before running the sample:
4889
+ * // - Enable the API at:
4890
+ * // https://console.developers.google.com/apis/api/sqladmin.googleapis.com
4891
+ * // - Login into gcloud by running:
4892
+ * // ```sh
4893
+ * // $ gcloud auth application-default login
4894
+ * // ```
4895
+ * // - Install the npm module by running:
4896
+ * // ```sh
4897
+ * // $ npm install googleapis
4898
+ * // ```
4899
+ *
4900
+ * const {google} = require('googleapis');
4901
+ * const sqladmin = google.sqladmin('v1');
4902
+ *
4903
+ * async function main() {
4904
+ * const auth = new google.auth.GoogleAuth({
4905
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
4906
+ * scopes: [
4907
+ * 'https://www.googleapis.com/auth/cloud-platform',
4908
+ * 'https://www.googleapis.com/auth/sqlservice.admin',
4909
+ * ],
4910
+ * });
4911
+ *
4912
+ * // Acquire an auth client, and bind it to all future calls
4913
+ * const authClient = await auth.getClient();
4914
+ * google.options({auth: authClient});
4915
+ *
4916
+ * // Do the magic
4917
+ * const res = await sql.blueGreenDeployments.list({
4918
+ * // Optional. A filter expression that filters the results.
4919
+ * filter: 'placeholder-value',
4920
+ * // Optional. A comma-separated list of fields to order the results by.
4921
+ * orderBy: 'placeholder-value',
4922
+ * // 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.
4923
+ * pageSize: 'placeholder-value',
4924
+ * // Optional. A page token, received from a previous `ListBlueGreenDeployments` call. Provide this to retrieve the subsequent page.
4925
+ * pageToken: 'placeholder-value',
4926
+ * // Required. The parent resource whose blue-green deployments are to be listed. Format: projects/{project\}/locations/{location\}
4927
+ * parent: 'projects/my-project/locations/my-location',
4928
+ * });
4929
+ * console.log(res.data);
4930
+ *
4931
+ * // Example response
4932
+ * // {
4933
+ * // "blueGreenDeployments": [],
4934
+ * // "nextPageToken": "my_nextPageToken"
4935
+ * // }
4936
+ * }
4937
+ *
4938
+ * main().catch(e => {
4939
+ * console.error(e);
4940
+ * throw e;
4941
+ * });
4942
+ *
4943
+ * ```
4944
+ *
4945
+ * @param params - Parameters for request
4946
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
4947
+ * @param callback - Optional callback that handles the response.
4948
+ * @returns A promise if used with async/await, or void if used with a callback.
4949
+ */
4950
+ list(params: Params$Resource$Bluegreendeployments$List, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
4951
+ list(params?: Params$Resource$Bluegreendeployments$List, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$ListBlueGreenDeploymentsResponse>>;
4952
+ list(params: Params$Resource$Bluegreendeployments$List, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
4953
+ list(params: Params$Resource$Bluegreendeployments$List, options: MethodOptions | BodyResponseCallback<Schema$ListBlueGreenDeploymentsResponse>, callback: BodyResponseCallback<Schema$ListBlueGreenDeploymentsResponse>): void;
4954
+ list(params: Params$Resource$Bluegreendeployments$List, callback: BodyResponseCallback<Schema$ListBlueGreenDeploymentsResponse>): void;
4955
+ list(callback: BodyResponseCallback<Schema$ListBlueGreenDeploymentsResponse>): void;
4956
+ /**
4957
+ * Switches over to green instance for a blue-green deployment.
4958
+ * @example
4959
+ * ```js
4960
+ * // Before running the sample:
4961
+ * // - Enable the API at:
4962
+ * // https://console.developers.google.com/apis/api/sqladmin.googleapis.com
4963
+ * // - Login into gcloud by running:
4964
+ * // ```sh
4965
+ * // $ gcloud auth application-default login
4966
+ * // ```
4967
+ * // - Install the npm module by running:
4968
+ * // ```sh
4969
+ * // $ npm install googleapis
4970
+ * // ```
4971
+ *
4972
+ * const {google} = require('googleapis');
4973
+ * const sqladmin = google.sqladmin('v1');
4974
+ *
4975
+ * async function main() {
4976
+ * const auth = new google.auth.GoogleAuth({
4977
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
4978
+ * scopes: [
4979
+ * 'https://www.googleapis.com/auth/cloud-platform',
4980
+ * 'https://www.googleapis.com/auth/sqlservice.admin',
4981
+ * ],
4982
+ * });
4983
+ *
4984
+ * // Acquire an auth client, and bind it to all future calls
4985
+ * const authClient = await auth.getClient();
4986
+ * google.options({auth: authClient});
4987
+ *
4988
+ * // Do the magic
4989
+ * const res = await sql.blueGreenDeployments.switchover({
4990
+ * // Required. The name of the blue-green deployment to switch over. Format: projects/{project\}/locations/{location\}/blueGreenDeployments/{blue_green_deployment\}
4991
+ * name: 'projects/my-project/locations/my-location/blueGreenDeployments/my-blueGreenDeployment',
4992
+ *
4993
+ * // Request body metadata
4994
+ * requestBody: {
4995
+ * // request body parameters
4996
+ * // {}
4997
+ * },
4998
+ * });
4999
+ * console.log(res.data);
5000
+ *
5001
+ * // Example response
5002
+ * // {
5003
+ * // "acquireSsrsLeaseContext": {},
5004
+ * // "apiWarning": {},
5005
+ * // "backupContext": {},
5006
+ * // "endTime": "my_endTime",
5007
+ * // "error": {},
5008
+ * // "exportContext": {},
5009
+ * // "importContext": {},
5010
+ * // "insertTime": "my_insertTime",
5011
+ * // "kind": "my_kind",
5012
+ * // "name": "my_name",
5013
+ * // "operationType": "my_operationType",
5014
+ * // "preCheckMajorVersionUpgradeContext": {},
5015
+ * // "selfLink": "my_selfLink",
5016
+ * // "startTime": "my_startTime",
5017
+ * // "status": "my_status",
5018
+ * // "subOperationType": {},
5019
+ * // "targetId": "my_targetId",
5020
+ * // "targetLink": "my_targetLink",
5021
+ * // "targetProject": "my_targetProject",
5022
+ * // "user": "my_user"
5023
+ * // }
5024
+ * }
5025
+ *
5026
+ * main().catch(e => {
5027
+ * console.error(e);
5028
+ * throw e;
5029
+ * });
5030
+ *
5031
+ * ```
5032
+ *
5033
+ * @param params - Parameters for request
5034
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
5035
+ * @param callback - Optional callback that handles the response.
5036
+ * @returns A promise if used with async/await, or void if used with a callback.
5037
+ */
5038
+ switchover(params: Params$Resource$Bluegreendeployments$Switchover, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
5039
+ switchover(params?: Params$Resource$Bluegreendeployments$Switchover, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$Operation>>;
5040
+ switchover(params: Params$Resource$Bluegreendeployments$Switchover, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
5041
+ switchover(params: Params$Resource$Bluegreendeployments$Switchover, options: MethodOptions | BodyResponseCallback<Schema$Operation>, callback: BodyResponseCallback<Schema$Operation>): void;
5042
+ switchover(params: Params$Resource$Bluegreendeployments$Switchover, callback: BodyResponseCallback<Schema$Operation>): void;
5043
+ switchover(callback: BodyResponseCallback<Schema$Operation>): void;
5044
+ }
5045
+ export interface Params$Resource$Bluegreendeployments$Create extends StandardParameters {
5046
+ /**
5047
+ * 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.
5048
+ */
5049
+ blueGreenDeploymentId?: string;
5050
+ /**
5051
+ * Required. The parent resource where this blue-green deployment will be created. Format: projects/{project\}/locations/{location\}
5052
+ */
5053
+ parent?: string;
5054
+ /**
5055
+ * Request body metadata
5056
+ */
5057
+ requestBody?: Schema$BlueGreenDeployment;
5058
+ }
5059
+ export interface Params$Resource$Bluegreendeployments$Delete extends StandardParameters {
5060
+ /**
5061
+ * Optional. If set to true, and the switchover is complete, this deletes the old source instance along with the deployment.
5062
+ */
5063
+ deleteOldSource?: boolean;
5064
+ /**
5065
+ * Required. The name of the blue-green deployment to delete. Format: projects/{project\}/locations/{location\}/blueGreenDeployments/{blue_green_deployment\}
5066
+ */
5067
+ name?: string;
5068
+ }
5069
+ export interface Params$Resource$Bluegreendeployments$Get extends StandardParameters {
5070
+ /**
5071
+ * Required. The name of the blue-green deployment to retrieve. Format: projects/{project\}/locations/{location\}/blueGreenDeployments/{blue_green_deployment\}
5072
+ */
5073
+ name?: string;
5074
+ /**
5075
+ * Optional. Specifies whether to return the basic or detailed view of the resource in the response.
5076
+ */
5077
+ view?: string;
5078
+ }
5079
+ export interface Params$Resource$Bluegreendeployments$List extends StandardParameters {
5080
+ /**
5081
+ * Optional. A filter expression that filters the results.
5082
+ */
5083
+ filter?: string;
5084
+ /**
5085
+ * Optional. A comma-separated list of fields to order the results by.
5086
+ */
5087
+ orderBy?: string;
5088
+ /**
5089
+ * 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.
5090
+ */
5091
+ pageSize?: number;
5092
+ /**
5093
+ * Optional. A page token, received from a previous `ListBlueGreenDeployments` call. Provide this to retrieve the subsequent page.
5094
+ */
5095
+ pageToken?: string;
5096
+ /**
5097
+ * Required. The parent resource whose blue-green deployments are to be listed. Format: projects/{project\}/locations/{location\}
5098
+ */
5099
+ parent?: string;
5100
+ }
5101
+ export interface Params$Resource$Bluegreendeployments$Switchover extends StandardParameters {
5102
+ /**
5103
+ * Required. The name of the blue-green deployment to switch over. Format: projects/{project\}/locations/{location\}/blueGreenDeployments/{blue_green_deployment\}
5104
+ */
5105
+ name?: string;
5106
+ /**
5107
+ * Request body metadata
5108
+ */
5109
+ requestBody?: Schema$SwitchoverBlueGreenDeploymentRequest;
5110
+ }
5111
+ export class Resource$Connect {
5112
+ context: APIRequestContext;
5113
+ constructor(context: APIRequestContext);
5114
+ /**
5115
+ * 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.
5116
+ * @example
5117
+ * ```js
5118
+ * // Before running the sample:
5119
+ * // - Enable the API at:
5120
+ * // https://console.developers.google.com/apis/api/sqladmin.googleapis.com
5121
+ * // - Login into gcloud by running:
5122
+ * // ```sh
5123
+ * // $ gcloud auth application-default login
5124
+ * // ```
5125
+ * // - Install the npm module by running:
5126
+ * // ```sh
5127
+ * // $ npm install googleapis
5128
+ * // ```
5129
+ *
5130
+ * const {google} = require('googleapis');
5131
+ * const sqladmin = google.sqladmin('v1');
5132
+ *
5133
+ * async function main() {
5134
+ * const auth = new google.auth.GoogleAuth({
5135
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
5136
+ * scopes: [
5137
+ * 'https://www.googleapis.com/auth/cloud-platform',
5138
+ * 'https://www.googleapis.com/auth/sqlservice.admin',
5139
+ * ],
5140
+ * });
5141
+ *
5142
+ * // Acquire an auth client, and bind it to all future calls
5143
+ * const authClient = await auth.getClient();
5144
+ * google.options({auth: authClient});
5145
+ *
5146
+ * // Do the magic
5147
+ * const res = await sql.connect.generateEphemeral({
5148
+ * // Cloud SQL instance ID. This does not include the project ID.
5149
+ * instance: 'placeholder-value',
5150
+ * // Project ID of the project that contains the instance.
5151
+ * project: 'placeholder-value',
5152
+ *
5153
+ * // Request body metadata
5154
+ * requestBody: {
5155
+ * // request body parameters
5156
+ * // {
5157
+ * // "access_token": "my_access_token",
5158
+ * // "public_key": "my_public_key",
5159
+ * // "readTime": "my_readTime",
5160
+ * // "validDuration": "my_validDuration"
5161
+ * // }
5162
+ * },
5163
+ * });
5164
+ * console.log(res.data);
5165
+ *
5166
+ * // Example response
5167
+ * // {
5168
+ * // "ephemeralCert": {}
5169
+ * // }
5170
+ * }
5171
+ *
5172
+ * main().catch(e => {
5173
+ * console.error(e);
5174
+ * throw e;
5175
+ * });
5176
+ *
5177
+ * ```
5178
+ *
5179
+ * @param params - Parameters for request
5180
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
5181
+ * @param callback - Optional callback that handles the response.
5182
+ * @returns A promise if used with async/await, or void if used with a callback.
5183
+ */
5184
+ generateEphemeralCert(params: Params$Resource$Connect$Generateephemeralcert, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
5185
+ generateEphemeralCert(params?: Params$Resource$Connect$Generateephemeralcert, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$GenerateEphemeralCertResponse>>;
5186
+ generateEphemeralCert(params: Params$Resource$Connect$Generateephemeralcert, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
5187
+ generateEphemeralCert(params: Params$Resource$Connect$Generateephemeralcert, options: MethodOptions | BodyResponseCallback<Schema$GenerateEphemeralCertResponse>, callback: BodyResponseCallback<Schema$GenerateEphemeralCertResponse>): void;
5188
+ generateEphemeralCert(params: Params$Resource$Connect$Generateephemeralcert, callback: BodyResponseCallback<Schema$GenerateEphemeralCertResponse>): void;
5189
+ generateEphemeralCert(callback: BodyResponseCallback<Schema$GenerateEphemeralCertResponse>): void;
5190
+ /**
5191
+ * Retrieves connect settings about a Cloud SQL instance.
5192
+ * @example
5193
+ * ```js
5194
+ * // Before running the sample:
5195
+ * // - Enable the API at:
5196
+ * // https://console.developers.google.com/apis/api/sqladmin.googleapis.com
5197
+ * // - Login into gcloud by running:
5198
+ * // ```sh
5199
+ * // $ gcloud auth application-default login
5200
+ * // ```
5201
+ * // - Install the npm module by running:
5202
+ * // ```sh
5203
+ * // $ npm install googleapis
5204
+ * // ```
5205
+ *
5206
+ * const {google} = require('googleapis');
5207
+ * const sqladmin = google.sqladmin('v1');
5208
+ *
5209
+ * async function main() {
5210
+ * const auth = new google.auth.GoogleAuth({
5211
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
5212
+ * scopes: [
5213
+ * 'https://www.googleapis.com/auth/cloud-platform',
5214
+ * 'https://www.googleapis.com/auth/sqlservice.admin',
5215
+ * ],
5216
+ * });
5217
+ *
5218
+ * // Acquire an auth client, and bind it to all future calls
5219
+ * const authClient = await auth.getClient();
5220
+ * google.options({auth: authClient});
5221
+ *
5222
+ * // Do the magic
5223
+ * const res = await sql.connect.get({
5224
+ * // Cloud SQL instance ID. This does not include the project ID.
5225
+ * instance: 'placeholder-value',
5226
+ * // Project ID of the project that contains the instance.
5227
+ * project: 'placeholder-value',
5228
+ * // Optional. Optional snapshot read timestamp to trade freshness for performance.
5229
+ * readTime: 'placeholder-value',
5230
+ * });
5231
+ * console.log(res.data);
5232
+ *
5233
+ * // Example response
5234
+ * // {
5235
+ * // "backendType": "my_backendType",
5236
+ * // "connectionName": "my_connectionName",
5237
+ * // "customSubjectAlternativeNames": [],
5238
+ * // "databaseVersion": "my_databaseVersion",
5239
+ * // "dnsName": "my_dnsName",
5240
+ * // "dnsNames": [],
5241
+ * // "ipAddresses": [],
5242
+ * // "kind": "my_kind",
5243
+ * // "mdxProtocolSupport": [],
5244
+ * // "nodeCount": 0,
5245
+ * // "nodes": [],
5246
+ * // "pscEnabled": false,
5247
+ * // "region": "my_region",
5248
+ * // "serverCaCert": {},
5249
+ * // "serverCaMode": "my_serverCaMode"
5250
+ * // }
5251
+ * }
5252
+ *
5253
+ * main().catch(e => {
5254
+ * console.error(e);
5255
+ * throw e;
5256
+ * });
5257
+ *
5258
+ * ```
5259
+ *
5260
+ * @param params - Parameters for request
5261
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
5262
+ * @param callback - Optional callback that handles the response.
5263
+ * @returns A promise if used with async/await, or void if used with a callback.
5264
+ */
5265
+ get(params: Params$Resource$Connect$Get, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
5266
+ get(params?: Params$Resource$Connect$Get, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$ConnectSettings>>;
5267
+ get(params: Params$Resource$Connect$Get, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
5268
+ get(params: Params$Resource$Connect$Get, options: MethodOptions | BodyResponseCallback<Schema$ConnectSettings>, callback: BodyResponseCallback<Schema$ConnectSettings>): void;
5269
+ get(params: Params$Resource$Connect$Get, callback: BodyResponseCallback<Schema$ConnectSettings>): void;
5270
+ get(callback: BodyResponseCallback<Schema$ConnectSettings>): void;
5271
+ /**
5272
+ * Retrieves connect settings about a Cloud SQL instance using the instance DNS name.
5273
+ * @example
5274
+ * ```js
5275
+ * // Before running the sample:
5276
+ * // - Enable the API at:
5277
+ * // https://console.developers.google.com/apis/api/sqladmin.googleapis.com
5278
+ * // - Login into gcloud by running:
5279
+ * // ```sh
5280
+ * // $ gcloud auth application-default login
5281
+ * // ```
5282
+ * // - Install the npm module by running:
5283
+ * // ```sh
5284
+ * // $ npm install googleapis
5285
+ * // ```
5286
+ *
5287
+ * const {google} = require('googleapis');
5288
+ * const sqladmin = google.sqladmin('v1');
5289
+ *
5290
+ * async function main() {
5291
+ * const auth = new google.auth.GoogleAuth({
5292
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
5293
+ * scopes: [
5294
+ * 'https://www.googleapis.com/auth/cloud-platform',
5295
+ * 'https://www.googleapis.com/auth/sqlservice.admin',
5296
+ * ],
5297
+ * });
5298
+ *
5299
+ * // Acquire an auth client, and bind it to all future calls
5300
+ * const authClient = await auth.getClient();
5301
+ * google.options({auth: authClient});
5302
+ *
5303
+ * // Do the magic
5304
+ * const res = await sql.connect.resolve({
5305
+ * // Required. Cloud SQL instance ID. This does not include the project ID.
5306
+ * dnsName: 'placeholder-value',
5307
+ * // Required. The region of the instance.
5308
+ * location: 'placeholder-value',
5309
+ * });
5310
+ * console.log(res.data);
5311
+ *
5312
+ * // Example response
5313
+ * // {
5314
+ * // "backendType": "my_backendType",
5315
+ * // "connectionName": "my_connectionName",
5316
+ * // "customSubjectAlternativeNames": [],
5317
+ * // "databaseVersion": "my_databaseVersion",
5318
+ * // "dnsName": "my_dnsName",
5319
+ * // "dnsNames": [],
5320
+ * // "ipAddresses": [],
5321
+ * // "kind": "my_kind",
5322
+ * // "mdxProtocolSupport": [],
5323
+ * // "nodeCount": 0,
5324
+ * // "nodes": [],
5325
+ * // "pscEnabled": false,
5326
+ * // "region": "my_region",
5327
+ * // "serverCaCert": {},
5328
+ * // "serverCaMode": "my_serverCaMode"
5329
+ * // }
5330
+ * }
5331
+ *
5332
+ * main().catch(e => {
5333
+ * console.error(e);
5334
+ * throw e;
5335
+ * });
5336
+ *
5337
+ * ```
5338
+ *
5339
+ * @param params - Parameters for request
5340
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
5341
+ * @param callback - Optional callback that handles the response.
5342
+ * @returns A promise if used with async/await, or void if used with a callback.
5343
+ */
5344
+ resolve(params: Params$Resource$Connect$Resolve, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
5345
+ resolve(params?: Params$Resource$Connect$Resolve, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$ConnectSettings>>;
4628
5346
  resolve(params: Params$Resource$Connect$Resolve, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
4629
5347
  resolve(params: Params$Resource$Connect$Resolve, options: MethodOptions | BodyResponseCallback<Schema$ConnectSettings>, callback: BodyResponseCallback<Schema$ConnectSettings>): void;
4630
5348
  resolve(params: Params$Resource$Connect$Resolve, callback: BodyResponseCallback<Schema$ConnectSettings>): void;
@@ -4709,6 +5427,8 @@ export declare namespace sqladmin_v1 {
4709
5427
  * database: 'placeholder-value',
4710
5428
  * // Database instance ID. This does not include the project ID.
4711
5429
  * instance: 'placeholder-value',
5430
+ * // Optional. Region of the Cloud SQL instance.
5431
+ * location: 'placeholder-value',
4712
5432
  * // Project ID of the project that contains the instance.
4713
5433
  * project: 'placeholder-value',
4714
5434
  * });
@@ -4795,6 +5515,8 @@ export declare namespace sqladmin_v1 {
4795
5515
  * database: 'placeholder-value',
4796
5516
  * // Database instance ID. This does not include the project ID.
4797
5517
  * instance: 'placeholder-value',
5518
+ * // Optional. Region of the Cloud SQL instance.
5519
+ * location: 'placeholder-value',
4798
5520
  * // Project ID of the project that contains the instance.
4799
5521
  * project: 'placeholder-value',
4800
5522
  * });
@@ -4868,6 +5590,8 @@ export declare namespace sqladmin_v1 {
4868
5590
  * const res = await sql.databases.insert({
4869
5591
  * // Database instance ID. This does not include the project ID.
4870
5592
  * instance: 'placeholder-value',
5593
+ * // Optional. Region of the Cloud SQL instance.
5594
+ * location: 'placeholder-value',
4871
5595
  * // Project ID of the project that contains the instance.
4872
5596
  * project: 'placeholder-value',
4873
5597
  *
@@ -4968,6 +5692,8 @@ export declare namespace sqladmin_v1 {
4968
5692
  * const res = await sql.databases.list({
4969
5693
  * // Cloud SQL instance ID. This does not include the project ID.
4970
5694
  * instance: 'placeholder-value',
5695
+ * // Optional. Region of the Cloud SQL instance.
5696
+ * location: 'placeholder-value',
4971
5697
  * // Project ID of the project that contains the instance.
4972
5698
  * project: 'placeholder-value',
4973
5699
  * });
@@ -5036,6 +5762,8 @@ export declare namespace sqladmin_v1 {
5036
5762
  * database: 'placeholder-value',
5037
5763
  * // Database instance ID. This does not include the project ID.
5038
5764
  * instance: 'placeholder-value',
5765
+ * // Optional. Region of the Cloud SQL instance.
5766
+ * location: 'placeholder-value',
5039
5767
  * // Project ID of the project that contains the instance.
5040
5768
  * project: 'placeholder-value',
5041
5769
  *
@@ -5138,6 +5866,8 @@ export declare namespace sqladmin_v1 {
5138
5866
  * database: 'placeholder-value',
5139
5867
  * // Database instance ID. This does not include the project ID.
5140
5868
  * instance: 'placeholder-value',
5869
+ * // Optional. Region of the Cloud SQL instance.
5870
+ * location: 'placeholder-value',
5141
5871
  * // Project ID of the project that contains the instance.
5142
5872
  * project: 'placeholder-value',
5143
5873
  *
@@ -5212,6 +5942,10 @@ export declare namespace sqladmin_v1 {
5212
5942
  * Database instance ID. This does not include the project ID.
5213
5943
  */
5214
5944
  instance?: string;
5945
+ /**
5946
+ * Optional. Region of the Cloud SQL instance.
5947
+ */
5948
+ location?: string;
5215
5949
  /**
5216
5950
  * Project ID of the project that contains the instance.
5217
5951
  */
@@ -5226,6 +5960,10 @@ export declare namespace sqladmin_v1 {
5226
5960
  * Database instance ID. This does not include the project ID.
5227
5961
  */
5228
5962
  instance?: string;
5963
+ /**
5964
+ * Optional. Region of the Cloud SQL instance.
5965
+ */
5966
+ location?: string;
5229
5967
  /**
5230
5968
  * Project ID of the project that contains the instance.
5231
5969
  */
@@ -5236,6 +5974,10 @@ export declare namespace sqladmin_v1 {
5236
5974
  * Database instance ID. This does not include the project ID.
5237
5975
  */
5238
5976
  instance?: string;
5977
+ /**
5978
+ * Optional. Region of the Cloud SQL instance.
5979
+ */
5980
+ location?: string;
5239
5981
  /**
5240
5982
  * Project ID of the project that contains the instance.
5241
5983
  */
@@ -5250,6 +5992,10 @@ export declare namespace sqladmin_v1 {
5250
5992
  * Cloud SQL instance ID. This does not include the project ID.
5251
5993
  */
5252
5994
  instance?: string;
5995
+ /**
5996
+ * Optional. Region of the Cloud SQL instance.
5997
+ */
5998
+ location?: string;
5253
5999
  /**
5254
6000
  * Project ID of the project that contains the instance.
5255
6001
  */
@@ -5264,6 +6010,10 @@ export declare namespace sqladmin_v1 {
5264
6010
  * Database instance ID. This does not include the project ID.
5265
6011
  */
5266
6012
  instance?: string;
6013
+ /**
6014
+ * Optional. Region of the Cloud SQL instance.
6015
+ */
6016
+ location?: string;
5267
6017
  /**
5268
6018
  * Project ID of the project that contains the instance.
5269
6019
  */
@@ -5282,6 +6032,10 @@ export declare namespace sqladmin_v1 {
5282
6032
  * Database instance ID. This does not include the project ID.
5283
6033
  */
5284
6034
  instance?: string;
6035
+ /**
6036
+ * Optional. Region of the Cloud SQL instance.
6037
+ */
6038
+ location?: string;
5285
6039
  /**
5286
6040
  * Project ID of the project that contains the instance.
5287
6041
  */
@@ -5410,6 +6164,8 @@ export declare namespace sqladmin_v1 {
5410
6164
  * const res = await sql.instances.acquireSsrsLease({
5411
6165
  * // 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).
5412
6166
  * instance: 'placeholder-value',
6167
+ * // Optional. Region of the Cloud SQL instance.
6168
+ * location: 'placeholder-value',
5413
6169
  * // Required. Project ID of the project that contains the instance (Example: project-id).
5414
6170
  * project: 'placeholder-value',
5415
6171
  *
@@ -5483,6 +6239,8 @@ export declare namespace sqladmin_v1 {
5483
6239
  * const res = await sql.instances.addEntraIdCertificate({
5484
6240
  * // Required. Cloud SQL instance ID. This does not include the project ID.
5485
6241
  * instance: 'placeholder-value',
6242
+ * // Optional. Region of the Cloud SQL instance.
6243
+ * location: 'placeholder-value',
5486
6244
  * // Required. Project ID of the project that contains the instance.
5487
6245
  * project: 'placeholder-value',
5488
6246
  * });
@@ -5567,6 +6325,8 @@ export declare namespace sqladmin_v1 {
5567
6325
  * const res = await sql.instances.addServerCa({
5568
6326
  * // Cloud SQL instance ID. This does not include the project ID.
5569
6327
  * instance: 'placeholder-value',
6328
+ * // Optional. Region of the Cloud SQL instance.
6329
+ * location: 'placeholder-value',
5570
6330
  * // Project ID of the project that contains the instance.
5571
6331
  * project: 'placeholder-value',
5572
6332
  * });
@@ -5651,6 +6411,8 @@ export declare namespace sqladmin_v1 {
5651
6411
  * const res = await sql.instances.addServerCertificate({
5652
6412
  * // Cloud SQL instance ID. This does not include the project ID.
5653
6413
  * instance: 'placeholder-value',
6414
+ * // Optional. Region of the Cloud SQL instance.
6415
+ * location: 'placeholder-value',
5654
6416
  * // Project ID of the project that contains the instance.
5655
6417
  * project: 'placeholder-value',
5656
6418
  * });
@@ -5735,6 +6497,8 @@ export declare namespace sqladmin_v1 {
5735
6497
  * const res = await sql.instances.clone({
5736
6498
  * // Required. The ID of the Cloud SQL instance to be cloned (source). This does not include the project ID.
5737
6499
  * instance: 'placeholder-value',
6500
+ * // Optional. Region of the Cloud SQL instance.
6501
+ * location: 'placeholder-value',
5738
6502
  * // Required. Project ID of the source Cloud SQL instance.
5739
6503
  * project: 'placeholder-value',
5740
6504
  *
@@ -5835,6 +6599,8 @@ export declare namespace sqladmin_v1 {
5835
6599
  * finalBackupTtlDays: 'placeholder-value',
5836
6600
  * // Cloud SQL instance ID. This does not include the project ID.
5837
6601
  * instance: 'placeholder-value',
6602
+ * // Optional. Region of the Cloud SQL instance.
6603
+ * location: 'placeholder-value',
5838
6604
  * // Project ID of the project that contains the instance to be deleted.
5839
6605
  * project: 'placeholder-value',
5840
6606
  * });
@@ -5919,6 +6685,8 @@ export declare namespace sqladmin_v1 {
5919
6685
  * const res = await sql.instances.demote({
5920
6686
  * // Required. Cloud SQL instance name.
5921
6687
  * instance: 'placeholder-value',
6688
+ * // Optional. Region of the Cloud SQL instance.
6689
+ * location: 'placeholder-value',
5922
6690
  * // Required. ID of the project that contains the instance.
5923
6691
  * project: 'placeholder-value',
5924
6692
  *
@@ -6011,6 +6779,8 @@ export declare namespace sqladmin_v1 {
6011
6779
  * const res = await sql.instances.demoteMaster({
6012
6780
  * // Cloud SQL instance name.
6013
6781
  * instance: 'placeholder-value',
6782
+ * // Optional. Region of the Cloud SQL instance.
6783
+ * location: 'placeholder-value',
6014
6784
  * // ID of the project that contains the instance.
6015
6785
  * project: 'placeholder-value',
6016
6786
  *
@@ -6103,6 +6873,8 @@ export declare namespace sqladmin_v1 {
6103
6873
  * const res = await sql.instances.executeSql({
6104
6874
  * // Required. Database instance ID. This does not include the project ID.
6105
6875
  * instance: 'placeholder-value',
6876
+ * // Optional. Region of the Cloud SQL instance.
6877
+ * location: 'placeholder-value',
6106
6878
  * // Required. Project ID of the project that contains the instance.
6107
6879
  * project: 'placeholder-value',
6108
6880
  *
@@ -6183,6 +6955,8 @@ export declare namespace sqladmin_v1 {
6183
6955
  * const res = await sql.instances.export({
6184
6956
  * // Cloud SQL instance ID. This does not include the project ID.
6185
6957
  * instance: 'placeholder-value',
6958
+ * // Optional. Region of the Cloud SQL instance.
6959
+ * location: 'placeholder-value',
6186
6960
  * // Project ID of the project that contains the instance to be exported.
6187
6961
  * project: 'placeholder-value',
6188
6962
  *
@@ -6275,6 +7049,8 @@ export declare namespace sqladmin_v1 {
6275
7049
  * const res = await sql.instances.failover({
6276
7050
  * // Cloud SQL instance ID. This does not include the project ID.
6277
7051
  * instance: 'placeholder-value',
7052
+ * // Optional. Region of the Cloud SQL instance.
7053
+ * location: 'placeholder-value',
6278
7054
  * // ID of the project that contains the read replica.
6279
7055
  * project: 'placeholder-value',
6280
7056
  *
@@ -6367,6 +7143,8 @@ export declare namespace sqladmin_v1 {
6367
7143
  * const res = await sql.instances.get({
6368
7144
  * // Required. Database instance ID. This does not include the project ID.
6369
7145
  * instance: 'placeholder-value',
7146
+ * // Optional. Region of the Cloud SQL instance.
7147
+ * location: 'placeholder-value',
6370
7148
  * // Required. Project ID of the project that contains the instance.
6371
7149
  * project: 'placeholder-value',
6372
7150
  * });
@@ -6382,6 +7160,7 @@ export declare namespace sqladmin_v1 {
6382
7160
  * // "databaseCenterIntegrationEnabled": false,
6383
7161
  * // "databaseInstalledVersion": "my_databaseInstalledVersion",
6384
7162
  * // "databaseVersion": "my_databaseVersion",
7163
+ * // "deploymentInfo": {},
6385
7164
  * // "diskEncryptionConfiguration": {},
6386
7165
  * // "diskEncryptionStatus": {},
6387
7166
  * // "dnsName": "my_dnsName",
@@ -6480,6 +7259,8 @@ export declare namespace sqladmin_v1 {
6480
7259
  * const res = await sql.instances.import({
6481
7260
  * // Cloud SQL instance ID. This does not include the project ID.
6482
7261
  * instance: 'placeholder-value',
7262
+ * // Optional. Region of the Cloud SQL instance.
7263
+ * location: 'placeholder-value',
6483
7264
  * // Project ID of the project that contains the instance.
6484
7265
  * project: 'placeholder-value',
6485
7266
  *
@@ -6570,6 +7351,8 @@ export declare namespace sqladmin_v1 {
6570
7351
  *
6571
7352
  * // Do the magic
6572
7353
  * const res = await sql.instances.insert({
7354
+ * // Optional. Region of the Cloud SQL instance.
7355
+ * location: 'placeholder-value',
6573
7356
  * // Project ID of the project to which the newly created Cloud SQL instances should belong.
6574
7357
  * project: 'placeholder-value',
6575
7358
  *
@@ -6585,6 +7368,7 @@ export declare namespace sqladmin_v1 {
6585
7368
  * // "databaseCenterIntegrationEnabled": false,
6586
7369
  * // "databaseInstalledVersion": "my_databaseInstalledVersion",
6587
7370
  * // "databaseVersion": "my_databaseVersion",
7371
+ * // "deploymentInfo": {},
6588
7372
  * // "diskEncryptionConfiguration": {},
6589
7373
  * // "diskEncryptionStatus": {},
6590
7374
  * // "dnsName": "my_dnsName",
@@ -6713,6 +7497,8 @@ export declare namespace sqladmin_v1 {
6713
7497
  * const res = await sql.instances.list({
6714
7498
  * // 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.
6715
7499
  * filter: 'placeholder-value',
7500
+ * // Optional. Region of the Cloud SQL instance.
7501
+ * location: 'placeholder-value',
6716
7502
  * // 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.
6717
7503
  * maxResults: 'placeholder-value',
6718
7504
  * // A previously-returned page token representing part of the larger set of results to view.
@@ -6785,6 +7571,8 @@ export declare namespace sqladmin_v1 {
6785
7571
  * const res = await sql.instances.ListEntraIdCertificates({
6786
7572
  * // Required. Cloud SQL instance ID. This does not include the project ID.
6787
7573
  * instance: 'placeholder-value',
7574
+ * // Optional. Region of the Cloud SQL instance.
7575
+ * location: 'placeholder-value',
6788
7576
  * // Required. Project ID of the project that contains the instance.
6789
7577
  * project: 'placeholder-value',
6790
7578
  * });
@@ -6852,6 +7640,8 @@ export declare namespace sqladmin_v1 {
6852
7640
  * const res = await sql.instances.listServerCas({
6853
7641
  * // Cloud SQL instance ID. This does not include the project ID.
6854
7642
  * instance: 'placeholder-value',
7643
+ * // Optional. Region of the Cloud SQL instance.
7644
+ * location: 'placeholder-value',
6855
7645
  * // Project ID of the project that contains the instance.
6856
7646
  * project: 'placeholder-value',
6857
7647
  * });
@@ -6919,6 +7709,8 @@ export declare namespace sqladmin_v1 {
6919
7709
  * const res = await sql.instances.ListServerCertificates({
6920
7710
  * // Required. Cloud SQL instance ID. This does not include the project ID.
6921
7711
  * instance: 'placeholder-value',
7712
+ * // Optional. Region of the Cloud SQL instance.
7713
+ * location: 'placeholder-value',
6922
7714
  * // Required. Project ID of the project that contains the instance.
6923
7715
  * project: 'placeholder-value',
6924
7716
  * });
@@ -6987,6 +7779,8 @@ export declare namespace sqladmin_v1 {
6987
7779
  * const res = await sql.instances.patch({
6988
7780
  * // Cloud SQL instance ID. This does not include the project ID.
6989
7781
  * instance: 'placeholder-value',
7782
+ * // Optional. Region of the Cloud SQL instance.
7783
+ * location: 'placeholder-value',
6990
7784
  * // Project ID of the project that contains the instance.
6991
7785
  * project: 'placeholder-value',
6992
7786
  * // Optional. Set PSC config to the same value as the existing config to reconcile the PSC networking.
@@ -7006,6 +7800,7 @@ export declare namespace sqladmin_v1 {
7006
7800
  * // "databaseCenterIntegrationEnabled": false,
7007
7801
  * // "databaseInstalledVersion": "my_databaseInstalledVersion",
7008
7802
  * // "databaseVersion": "my_databaseVersion",
7803
+ * // "deploymentInfo": {},
7009
7804
  * // "diskEncryptionConfiguration": {},
7010
7805
  * // "diskEncryptionStatus": {},
7011
7806
  * // "dnsName": "my_dnsName",
@@ -7233,6 +8028,8 @@ export declare namespace sqladmin_v1 {
7233
8028
  * const res = await sql.instances.preCheckMajorVersionUpgrade({
7234
8029
  * // Required. Cloud SQL instance ID. This does not include the project ID.
7235
8030
  * instance: 'placeholder-value',
8031
+ * // Optional. Region of the Cloud SQL instance.
8032
+ * location: 'placeholder-value',
7236
8033
  * // Required. Project ID of the project that contains the instance.
7237
8034
  * project: 'placeholder-value',
7238
8035
  *
@@ -7327,6 +8124,8 @@ export declare namespace sqladmin_v1 {
7327
8124
  * failover: 'placeholder-value',
7328
8125
  * // Cloud SQL read replica instance name.
7329
8126
  * instance: 'placeholder-value',
8127
+ * // Optional. Region of the Cloud SQL instance.
8128
+ * location: 'placeholder-value',
7330
8129
  * // ID of the project that contains the read replica.
7331
8130
  * project: 'placeholder-value',
7332
8131
  * });
@@ -7411,6 +8210,8 @@ export declare namespace sqladmin_v1 {
7411
8210
  * const res = await sql.instances.reencrypt({
7412
8211
  * // Cloud SQL instance ID. This does not include the project ID.
7413
8212
  * instance: 'placeholder-value',
8213
+ * // Optional. Region of the Cloud SQL instance.
8214
+ * location: 'placeholder-value',
7414
8215
  * // ID of the project that contains the instance.
7415
8216
  * project: 'placeholder-value',
7416
8217
  *
@@ -7503,6 +8304,8 @@ export declare namespace sqladmin_v1 {
7503
8304
  * const res = await sql.instances.releaseSsrsLease({
7504
8305
  * // 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.
7505
8306
  * instance: 'placeholder-value',
8307
+ * // Optional. Region of the Cloud SQL instance.
8308
+ * location: 'placeholder-value',
7506
8309
  * // Required. The project ID that contains the instance.
7507
8310
  * project: 'placeholder-value',
7508
8311
  * });
@@ -7568,6 +8371,8 @@ export declare namespace sqladmin_v1 {
7568
8371
  * const res = await sql.instances.resetSslConfig({
7569
8372
  * // Cloud SQL instance ID. This does not include the project ID.
7570
8373
  * instance: 'placeholder-value',
8374
+ * // Optional. Region of the Cloud SQL instance.
8375
+ * location: 'placeholder-value',
7571
8376
  * // Optional. Reset SSL mode to use.
7572
8377
  * mode: 'placeholder-value',
7573
8378
  * // Project ID of the project that contains the instance.
@@ -7654,6 +8459,8 @@ export declare namespace sqladmin_v1 {
7654
8459
  * const res = await sql.instances.restart({
7655
8460
  * // Cloud SQL instance ID. This does not include the project ID.
7656
8461
  * instance: 'placeholder-value',
8462
+ * // Optional. Region of the Cloud SQL instance.
8463
+ * location: 'placeholder-value',
7657
8464
  * // Project ID of the project that contains the instance to be restarted.
7658
8465
  * project: 'placeholder-value',
7659
8466
  * });
@@ -7738,6 +8545,8 @@ export declare namespace sqladmin_v1 {
7738
8545
  * const res = await sql.instances.restoreBackup({
7739
8546
  * // Cloud SQL instance ID. This does not include the project ID.
7740
8547
  * instance: 'placeholder-value',
8548
+ * // Optional. Region of the Cloud SQL instance.
8549
+ * location: 'placeholder-value',
7741
8550
  * // Project ID of the project that contains the instance.
7742
8551
  * project: 'placeholder-value',
7743
8552
  *
@@ -7747,6 +8556,7 @@ export declare namespace sqladmin_v1 {
7747
8556
  * // {
7748
8557
  * // "backup": "my_backup",
7749
8558
  * // "backupdrBackup": "my_backupdrBackup",
8559
+ * // "ignoreMaintenanceVersion": false,
7750
8560
  * // "restoreBackupContext": {},
7751
8561
  * // "restoreInstanceClearOverridesFieldNames": [],
7752
8562
  * // "restoreInstanceSettings": {}
@@ -7834,6 +8644,8 @@ export declare namespace sqladmin_v1 {
7834
8644
  * const res = await sql.instances.RotateEntraIdCertificate({
7835
8645
  * // Required. Cloud SQL instance ID. This does not include the project ID.
7836
8646
  * instance: 'placeholder-value',
8647
+ * // Optional. Region of the Cloud SQL instance.
8648
+ * location: 'placeholder-value',
7837
8649
  * // Required. Project ID of the project that contains the instance.
7838
8650
  * project: 'placeholder-value',
7839
8651
  *
@@ -7926,6 +8738,8 @@ export declare namespace sqladmin_v1 {
7926
8738
  * const res = await sql.instances.rotateServerCa({
7927
8739
  * // Cloud SQL instance ID. This does not include the project ID.
7928
8740
  * instance: 'placeholder-value',
8741
+ * // Optional. Region of the Cloud SQL instance.
8742
+ * location: 'placeholder-value',
7929
8743
  * // Project ID of the project that contains the instance.
7930
8744
  * project: 'placeholder-value',
7931
8745
  *
@@ -8018,6 +8832,8 @@ export declare namespace sqladmin_v1 {
8018
8832
  * const res = await sql.instances.RotateServerCertificate({
8019
8833
  * // Required. Cloud SQL instance ID. This does not include the project ID.
8020
8834
  * instance: 'placeholder-value',
8835
+ * // Optional. Region of the Cloud SQL instance.
8836
+ * location: 'placeholder-value',
8021
8837
  * // Required. Project ID of the project that contains the instance.
8022
8838
  * project: 'placeholder-value',
8023
8839
  *
@@ -8110,6 +8926,8 @@ export declare namespace sqladmin_v1 {
8110
8926
  * const res = await sql.instances.startReplica({
8111
8927
  * // Cloud SQL read replica instance name.
8112
8928
  * instance: 'placeholder-value',
8929
+ * // Optional. Region of the Cloud SQL instance.
8930
+ * location: 'placeholder-value',
8113
8931
  * // ID of the project that contains the read replica.
8114
8932
  * project: 'placeholder-value',
8115
8933
  * });
@@ -8194,6 +9012,8 @@ export declare namespace sqladmin_v1 {
8194
9012
  * const res = await sql.instances.stopReplica({
8195
9013
  * // Cloud SQL read replica instance name.
8196
9014
  * instance: 'placeholder-value',
9015
+ * // Optional. Region of the Cloud SQL instance.
9016
+ * location: 'placeholder-value',
8197
9017
  * // ID of the project that contains the read replica.
8198
9018
  * project: 'placeholder-value',
8199
9019
  * });
@@ -8280,6 +9100,8 @@ export declare namespace sqladmin_v1 {
8280
9100
  * dbTimeout: 'placeholder-value',
8281
9101
  * // Cloud SQL read replica instance name.
8282
9102
  * instance: 'placeholder-value',
9103
+ * // Optional. Region of the Cloud SQL instance.
9104
+ * location: 'placeholder-value',
8283
9105
  * // ID of the project that contains the replica.
8284
9106
  * project: 'placeholder-value',
8285
9107
  * });
@@ -8364,6 +9186,8 @@ export declare namespace sqladmin_v1 {
8364
9186
  * const res = await sql.instances.truncateLog({
8365
9187
  * // Cloud SQL instance ID. This does not include the project ID.
8366
9188
  * instance: 'placeholder-value',
9189
+ * // Optional. Region of the Cloud SQL instance.
9190
+ * location: 'placeholder-value',
8367
9191
  * // Project ID of the Cloud SQL project.
8368
9192
  * project: 'placeholder-value',
8369
9193
  *
@@ -8456,6 +9280,8 @@ export declare namespace sqladmin_v1 {
8456
9280
  * const res = await sql.instances.update({
8457
9281
  * // Cloud SQL instance ID. This does not include the project ID.
8458
9282
  * instance: 'placeholder-value',
9283
+ * // Optional. Region of the Cloud SQL instance.
9284
+ * location: 'placeholder-value',
8459
9285
  * // Project ID of the project that contains the instance.
8460
9286
  * project: 'placeholder-value',
8461
9287
  *
@@ -8471,6 +9297,7 @@ export declare namespace sqladmin_v1 {
8471
9297
  * // "databaseCenterIntegrationEnabled": false,
8472
9298
  * // "databaseInstalledVersion": "my_databaseInstalledVersion",
8473
9299
  * // "databaseVersion": "my_databaseVersion",
9300
+ * // "deploymentInfo": {},
8474
9301
  * // "diskEncryptionConfiguration": {},
8475
9302
  * // "diskEncryptionStatus": {},
8476
9303
  * // "dnsName": "my_dnsName",
@@ -8569,6 +9396,10 @@ export declare namespace sqladmin_v1 {
8569
9396
  * 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).
8570
9397
  */
8571
9398
  instance?: string;
9399
+ /**
9400
+ * Optional. Region of the Cloud SQL instance.
9401
+ */
9402
+ location?: string;
8572
9403
  /**
8573
9404
  * Required. Project ID of the project that contains the instance (Example: project-id).
8574
9405
  */
@@ -8583,6 +9414,10 @@ export declare namespace sqladmin_v1 {
8583
9414
  * Required. Cloud SQL instance ID. This does not include the project ID.
8584
9415
  */
8585
9416
  instance?: string;
9417
+ /**
9418
+ * Optional. Region of the Cloud SQL instance.
9419
+ */
9420
+ location?: string;
8586
9421
  /**
8587
9422
  * Required. Project ID of the project that contains the instance.
8588
9423
  */
@@ -8593,6 +9428,10 @@ export declare namespace sqladmin_v1 {
8593
9428
  * Cloud SQL instance ID. This does not include the project ID.
8594
9429
  */
8595
9430
  instance?: string;
9431
+ /**
9432
+ * Optional. Region of the Cloud SQL instance.
9433
+ */
9434
+ location?: string;
8596
9435
  /**
8597
9436
  * Project ID of the project that contains the instance.
8598
9437
  */
@@ -8603,6 +9442,10 @@ export declare namespace sqladmin_v1 {
8603
9442
  * Cloud SQL instance ID. This does not include the project ID.
8604
9443
  */
8605
9444
  instance?: string;
9445
+ /**
9446
+ * Optional. Region of the Cloud SQL instance.
9447
+ */
9448
+ location?: string;
8606
9449
  /**
8607
9450
  * Project ID of the project that contains the instance.
8608
9451
  */
@@ -8613,6 +9456,10 @@ export declare namespace sqladmin_v1 {
8613
9456
  * Required. The ID of the Cloud SQL instance to be cloned (source). This does not include the project ID.
8614
9457
  */
8615
9458
  instance?: string;
9459
+ /**
9460
+ * Optional. Region of the Cloud SQL instance.
9461
+ */
9462
+ location?: string;
8616
9463
  /**
8617
9464
  * Required. Project ID of the source Cloud SQL instance.
8618
9465
  */
@@ -8643,6 +9490,10 @@ export declare namespace sqladmin_v1 {
8643
9490
  * Cloud SQL instance ID. This does not include the project ID.
8644
9491
  */
8645
9492
  instance?: string;
9493
+ /**
9494
+ * Optional. Region of the Cloud SQL instance.
9495
+ */
9496
+ location?: string;
8646
9497
  /**
8647
9498
  * Project ID of the project that contains the instance to be deleted.
8648
9499
  */
@@ -8653,6 +9504,10 @@ export declare namespace sqladmin_v1 {
8653
9504
  * Required. Cloud SQL instance name.
8654
9505
  */
8655
9506
  instance?: string;
9507
+ /**
9508
+ * Optional. Region of the Cloud SQL instance.
9509
+ */
9510
+ location?: string;
8656
9511
  /**
8657
9512
  * Required. ID of the project that contains the instance.
8658
9513
  */
@@ -8667,6 +9522,10 @@ export declare namespace sqladmin_v1 {
8667
9522
  * Cloud SQL instance name.
8668
9523
  */
8669
9524
  instance?: string;
9525
+ /**
9526
+ * Optional. Region of the Cloud SQL instance.
9527
+ */
9528
+ location?: string;
8670
9529
  /**
8671
9530
  * ID of the project that contains the instance.
8672
9531
  */
@@ -8681,6 +9540,10 @@ export declare namespace sqladmin_v1 {
8681
9540
  * Required. Database instance ID. This does not include the project ID.
8682
9541
  */
8683
9542
  instance?: string;
9543
+ /**
9544
+ * Optional. Region of the Cloud SQL instance.
9545
+ */
9546
+ location?: string;
8684
9547
  /**
8685
9548
  * Required. Project ID of the project that contains the instance.
8686
9549
  */
@@ -8695,6 +9558,10 @@ export declare namespace sqladmin_v1 {
8695
9558
  * Cloud SQL instance ID. This does not include the project ID.
8696
9559
  */
8697
9560
  instance?: string;
9561
+ /**
9562
+ * Optional. Region of the Cloud SQL instance.
9563
+ */
9564
+ location?: string;
8698
9565
  /**
8699
9566
  * Project ID of the project that contains the instance to be exported.
8700
9567
  */
@@ -8709,6 +9576,10 @@ export declare namespace sqladmin_v1 {
8709
9576
  * Cloud SQL instance ID. This does not include the project ID.
8710
9577
  */
8711
9578
  instance?: string;
9579
+ /**
9580
+ * Optional. Region of the Cloud SQL instance.
9581
+ */
9582
+ location?: string;
8712
9583
  /**
8713
9584
  * ID of the project that contains the read replica.
8714
9585
  */
@@ -8723,6 +9594,10 @@ export declare namespace sqladmin_v1 {
8723
9594
  * Required. Database instance ID. This does not include the project ID.
8724
9595
  */
8725
9596
  instance?: string;
9597
+ /**
9598
+ * Optional. Region of the Cloud SQL instance.
9599
+ */
9600
+ location?: string;
8726
9601
  /**
8727
9602
  * Required. Project ID of the project that contains the instance.
8728
9603
  */
@@ -8733,6 +9608,10 @@ export declare namespace sqladmin_v1 {
8733
9608
  * Cloud SQL instance ID. This does not include the project ID.
8734
9609
  */
8735
9610
  instance?: string;
9611
+ /**
9612
+ * Optional. Region of the Cloud SQL instance.
9613
+ */
9614
+ location?: string;
8736
9615
  /**
8737
9616
  * Project ID of the project that contains the instance.
8738
9617
  */
@@ -8743,6 +9622,10 @@ export declare namespace sqladmin_v1 {
8743
9622
  requestBody?: Schema$InstancesImportRequest;
8744
9623
  }
8745
9624
  export interface Params$Resource$Instances$Insert extends StandardParameters {
9625
+ /**
9626
+ * Optional. Region of the Cloud SQL instance.
9627
+ */
9628
+ location?: string;
8746
9629
  /**
8747
9630
  * Project ID of the project to which the newly created Cloud SQL instances should belong.
8748
9631
  */
@@ -8757,6 +9640,10 @@ export declare namespace sqladmin_v1 {
8757
9640
  * 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.
8758
9641
  */
8759
9642
  filter?: string;
9643
+ /**
9644
+ * Optional. Region of the Cloud SQL instance.
9645
+ */
9646
+ location?: string;
8760
9647
  /**
8761
9648
  * 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.
8762
9649
  */
@@ -8775,6 +9662,10 @@ export declare namespace sqladmin_v1 {
8775
9662
  * Required. Cloud SQL instance ID. This does not include the project ID.
8776
9663
  */
8777
9664
  instance?: string;
9665
+ /**
9666
+ * Optional. Region of the Cloud SQL instance.
9667
+ */
9668
+ location?: string;
8778
9669
  /**
8779
9670
  * Required. Project ID of the project that contains the instance.
8780
9671
  */
@@ -8785,6 +9676,10 @@ export declare namespace sqladmin_v1 {
8785
9676
  * Cloud SQL instance ID. This does not include the project ID.
8786
9677
  */
8787
9678
  instance?: string;
9679
+ /**
9680
+ * Optional. Region of the Cloud SQL instance.
9681
+ */
9682
+ location?: string;
8788
9683
  /**
8789
9684
  * Project ID of the project that contains the instance.
8790
9685
  */
@@ -8795,6 +9690,10 @@ export declare namespace sqladmin_v1 {
8795
9690
  * Required. Cloud SQL instance ID. This does not include the project ID.
8796
9691
  */
8797
9692
  instance?: string;
9693
+ /**
9694
+ * Optional. Region of the Cloud SQL instance.
9695
+ */
9696
+ location?: string;
8798
9697
  /**
8799
9698
  * Required. Project ID of the project that contains the instance.
8800
9699
  */
@@ -8805,6 +9704,10 @@ export declare namespace sqladmin_v1 {
8805
9704
  * Cloud SQL instance ID. This does not include the project ID.
8806
9705
  */
8807
9706
  instance?: string;
9707
+ /**
9708
+ * Optional. Region of the Cloud SQL instance.
9709
+ */
9710
+ location?: string;
8808
9711
  /**
8809
9712
  * Project ID of the project that contains the instance.
8810
9713
  */
@@ -8837,6 +9740,10 @@ export declare namespace sqladmin_v1 {
8837
9740
  * Required. Cloud SQL instance ID. This does not include the project ID.
8838
9741
  */
8839
9742
  instance?: string;
9743
+ /**
9744
+ * Optional. Region of the Cloud SQL instance.
9745
+ */
9746
+ location?: string;
8840
9747
  /**
8841
9748
  * Required. Project ID of the project that contains the instance.
8842
9749
  */
@@ -8855,6 +9762,10 @@ export declare namespace sqladmin_v1 {
8855
9762
  * Cloud SQL read replica instance name.
8856
9763
  */
8857
9764
  instance?: string;
9765
+ /**
9766
+ * Optional. Region of the Cloud SQL instance.
9767
+ */
9768
+ location?: string;
8858
9769
  /**
8859
9770
  * ID of the project that contains the read replica.
8860
9771
  */
@@ -8865,6 +9776,10 @@ export declare namespace sqladmin_v1 {
8865
9776
  * Cloud SQL instance ID. This does not include the project ID.
8866
9777
  */
8867
9778
  instance?: string;
9779
+ /**
9780
+ * Optional. Region of the Cloud SQL instance.
9781
+ */
9782
+ location?: string;
8868
9783
  /**
8869
9784
  * ID of the project that contains the instance.
8870
9785
  */
@@ -8879,6 +9794,10 @@ export declare namespace sqladmin_v1 {
8879
9794
  * 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.
8880
9795
  */
8881
9796
  instance?: string;
9797
+ /**
9798
+ * Optional. Region of the Cloud SQL instance.
9799
+ */
9800
+ location?: string;
8882
9801
  /**
8883
9802
  * Required. The project ID that contains the instance.
8884
9803
  */
@@ -8889,6 +9808,10 @@ export declare namespace sqladmin_v1 {
8889
9808
  * Cloud SQL instance ID. This does not include the project ID.
8890
9809
  */
8891
9810
  instance?: string;
9811
+ /**
9812
+ * Optional. Region of the Cloud SQL instance.
9813
+ */
9814
+ location?: string;
8892
9815
  /**
8893
9816
  * Optional. Reset SSL mode to use.
8894
9817
  */
@@ -8903,6 +9826,10 @@ export declare namespace sqladmin_v1 {
8903
9826
  * Cloud SQL instance ID. This does not include the project ID.
8904
9827
  */
8905
9828
  instance?: string;
9829
+ /**
9830
+ * Optional. Region of the Cloud SQL instance.
9831
+ */
9832
+ location?: string;
8906
9833
  /**
8907
9834
  * Project ID of the project that contains the instance to be restarted.
8908
9835
  */
@@ -8913,6 +9840,10 @@ export declare namespace sqladmin_v1 {
8913
9840
  * Cloud SQL instance ID. This does not include the project ID.
8914
9841
  */
8915
9842
  instance?: string;
9843
+ /**
9844
+ * Optional. Region of the Cloud SQL instance.
9845
+ */
9846
+ location?: string;
8916
9847
  /**
8917
9848
  * Project ID of the project that contains the instance.
8918
9849
  */
@@ -8927,6 +9858,10 @@ export declare namespace sqladmin_v1 {
8927
9858
  * Required. Cloud SQL instance ID. This does not include the project ID.
8928
9859
  */
8929
9860
  instance?: string;
9861
+ /**
9862
+ * Optional. Region of the Cloud SQL instance.
9863
+ */
9864
+ location?: string;
8930
9865
  /**
8931
9866
  * Required. Project ID of the project that contains the instance.
8932
9867
  */
@@ -8941,6 +9876,10 @@ export declare namespace sqladmin_v1 {
8941
9876
  * Cloud SQL instance ID. This does not include the project ID.
8942
9877
  */
8943
9878
  instance?: string;
9879
+ /**
9880
+ * Optional. Region of the Cloud SQL instance.
9881
+ */
9882
+ location?: string;
8944
9883
  /**
8945
9884
  * Project ID of the project that contains the instance.
8946
9885
  */
@@ -8955,6 +9894,10 @@ export declare namespace sqladmin_v1 {
8955
9894
  * Required. Cloud SQL instance ID. This does not include the project ID.
8956
9895
  */
8957
9896
  instance?: string;
9897
+ /**
9898
+ * Optional. Region of the Cloud SQL instance.
9899
+ */
9900
+ location?: string;
8958
9901
  /**
8959
9902
  * Required. Project ID of the project that contains the instance.
8960
9903
  */
@@ -8969,6 +9912,10 @@ export declare namespace sqladmin_v1 {
8969
9912
  * Cloud SQL read replica instance name.
8970
9913
  */
8971
9914
  instance?: string;
9915
+ /**
9916
+ * Optional. Region of the Cloud SQL instance.
9917
+ */
9918
+ location?: string;
8972
9919
  /**
8973
9920
  * ID of the project that contains the read replica.
8974
9921
  */
@@ -8979,6 +9926,10 @@ export declare namespace sqladmin_v1 {
8979
9926
  * Cloud SQL read replica instance name.
8980
9927
  */
8981
9928
  instance?: string;
9929
+ /**
9930
+ * Optional. Region of the Cloud SQL instance.
9931
+ */
9932
+ location?: string;
8982
9933
  /**
8983
9934
  * ID of the project that contains the read replica.
8984
9935
  */
@@ -8993,6 +9944,10 @@ export declare namespace sqladmin_v1 {
8993
9944
  * Cloud SQL read replica instance name.
8994
9945
  */
8995
9946
  instance?: string;
9947
+ /**
9948
+ * Optional. Region of the Cloud SQL instance.
9949
+ */
9950
+ location?: string;
8996
9951
  /**
8997
9952
  * ID of the project that contains the replica.
8998
9953
  */
@@ -9003,6 +9958,10 @@ export declare namespace sqladmin_v1 {
9003
9958
  * Cloud SQL instance ID. This does not include the project ID.
9004
9959
  */
9005
9960
  instance?: string;
9961
+ /**
9962
+ * Optional. Region of the Cloud SQL instance.
9963
+ */
9964
+ location?: string;
9006
9965
  /**
9007
9966
  * Project ID of the Cloud SQL project.
9008
9967
  */
@@ -9017,6 +9976,10 @@ export declare namespace sqladmin_v1 {
9017
9976
  * Cloud SQL instance ID. This does not include the project ID.
9018
9977
  */
9019
9978
  instance?: string;
9979
+ /**
9980
+ * Optional. Region of the Cloud SQL instance.
9981
+ */
9982
+ location?: string;
9020
9983
  /**
9021
9984
  * Project ID of the project that contains the instance.
9022
9985
  */
@@ -9348,6 +10311,8 @@ export declare namespace sqladmin_v1 {
9348
10311
  * const res = await sql.projects.instances.getDiskShrinkConfig({
9349
10312
  * // Cloud SQL instance ID. This does not include the project ID.
9350
10313
  * instance: 'placeholder-value',
10314
+ * // Optional. Region of the Cloud SQL instance.
10315
+ * location: 'placeholder-value',
9351
10316
  * // Project ID of the project that contains the instance.
9352
10317
  * project: 'placeholder-value',
9353
10318
  * });
@@ -9415,6 +10380,8 @@ export declare namespace sqladmin_v1 {
9415
10380
  * const res = await sql.projects.instances.getLatestRecoveryTime({
9416
10381
  * // Cloud SQL instance ID. This does not include the project ID.
9417
10382
  * instance: 'placeholder-value',
10383
+ * // Optional. Region of the Cloud SQL instance.
10384
+ * location: 'placeholder-value',
9418
10385
  * // Project ID of the project that contains the instance.
9419
10386
  * project: 'placeholder-value',
9420
10387
  * // The timestamp used to identify the time when the source instance is deleted. If this instance is deleted, then you must set the timestamp.
@@ -9484,6 +10451,8 @@ export declare namespace sqladmin_v1 {
9484
10451
  * const res = await sql.projects.instances.performDiskShrink({
9485
10452
  * // Cloud SQL instance ID. This does not include the project ID.
9486
10453
  * instance: 'placeholder-value',
10454
+ * // Optional. Region of the Cloud SQL instance.
10455
+ * location: 'placeholder-value',
9487
10456
  * // Project ID of the project that contains the instance.
9488
10457
  * project: 'placeholder-value',
9489
10458
  *
@@ -9576,6 +10545,8 @@ export declare namespace sqladmin_v1 {
9576
10545
  * const res = await sql.projects.instances.rescheduleMaintenance({
9577
10546
  * // Cloud SQL instance ID. This does not include the project ID.
9578
10547
  * instance: 'placeholder-value',
10548
+ * // Optional. Region of the Cloud SQL instance.
10549
+ * location: 'placeholder-value',
9579
10550
  * // ID of the project that contains the instance.
9580
10551
  * project: 'placeholder-value',
9581
10552
  *
@@ -9674,7 +10645,9 @@ export declare namespace sqladmin_v1 {
9674
10645
  * // Request body metadata
9675
10646
  * requestBody: {
9676
10647
  * // request body parameters
9677
- * // {}
10648
+ * // {
10649
+ * // "location": "my_location"
10650
+ * // }
9678
10651
  * },
9679
10652
  * });
9680
10653
  * console.log(res.data);
@@ -9765,6 +10738,7 @@ export declare namespace sqladmin_v1 {
9765
10738
  * requestBody: {
9766
10739
  * // request body parameters
9767
10740
  * // {
10741
+ * // "location": "my_location",
9768
10742
  * // "migrationType": "my_migrationType",
9769
10743
  * // "mysqlSyncConfig": {},
9770
10744
  * // "replicaOverwriteEnabled": false,
@@ -9862,6 +10836,7 @@ export declare namespace sqladmin_v1 {
9862
10836
  * requestBody: {
9863
10837
  * // request body parameters
9864
10838
  * // {
10839
+ * // "location": "my_location",
9865
10840
  * // "migrationType": "my_migrationType",
9866
10841
  * // "mysqlSyncConfig": {},
9867
10842
  * // "selectedObjects": [],
@@ -9906,6 +10881,10 @@ export declare namespace sqladmin_v1 {
9906
10881
  * Cloud SQL instance ID. This does not include the project ID.
9907
10882
  */
9908
10883
  instance?: string;
10884
+ /**
10885
+ * Optional. Region of the Cloud SQL instance.
10886
+ */
10887
+ location?: string;
9909
10888
  /**
9910
10889
  * Project ID of the project that contains the instance.
9911
10890
  */
@@ -9916,6 +10895,10 @@ export declare namespace sqladmin_v1 {
9916
10895
  * Cloud SQL instance ID. This does not include the project ID.
9917
10896
  */
9918
10897
  instance?: string;
10898
+ /**
10899
+ * Optional. Region of the Cloud SQL instance.
10900
+ */
10901
+ location?: string;
9919
10902
  /**
9920
10903
  * Project ID of the project that contains the instance.
9921
10904
  */
@@ -9930,6 +10913,10 @@ export declare namespace sqladmin_v1 {
9930
10913
  * Cloud SQL instance ID. This does not include the project ID.
9931
10914
  */
9932
10915
  instance?: string;
10916
+ /**
10917
+ * Optional. Region of the Cloud SQL instance.
10918
+ */
10919
+ location?: string;
9933
10920
  /**
9934
10921
  * Project ID of the project that contains the instance.
9935
10922
  */
@@ -9944,6 +10931,10 @@ export declare namespace sqladmin_v1 {
9944
10931
  * Cloud SQL instance ID. This does not include the project ID.
9945
10932
  */
9946
10933
  instance?: string;
10934
+ /**
10935
+ * Optional. Region of the Cloud SQL instance.
10936
+ */
10937
+ location?: string;
9947
10938
  /**
9948
10939
  * ID of the project that contains the instance.
9949
10940
  */
@@ -10034,6 +11025,8 @@ export declare namespace sqladmin_v1 {
10034
11025
  * const res = await sql.sslCerts.createEphemeral({
10035
11026
  * // Cloud SQL instance ID. This does not include the project ID.
10036
11027
  * instance: 'placeholder-value',
11028
+ * // Optional. Region of the Cloud SQL instance.
11029
+ * location: 'placeholder-value',
10037
11030
  * // Project ID of the Cloud SQL project.
10038
11031
  * project: 'placeholder-value',
10039
11032
  *
@@ -10389,6 +11382,10 @@ export declare namespace sqladmin_v1 {
10389
11382
  * Cloud SQL instance ID. This does not include the project ID.
10390
11383
  */
10391
11384
  instance?: string;
11385
+ /**
11386
+ * Optional. Region of the Cloud SQL instance.
11387
+ */
11388
+ location?: string;
10392
11389
  /**
10393
11390
  * Project ID of the Cloud SQL project.
10394
11391
  */
@@ -10565,6 +11562,8 @@ export declare namespace sqladmin_v1 {
10565
11562
  * host: 'placeholder-value',
10566
11563
  * // Database instance ID. This does not include the project ID.
10567
11564
  * instance: 'placeholder-value',
11565
+ * // Optional. Region of the Cloud SQL instance.
11566
+ * location: 'placeholder-value',
10568
11567
  * // Name of the user in the instance.
10569
11568
  * name: 'placeholder-value',
10570
11569
  * // Project ID of the project that contains the instance.
@@ -10653,6 +11652,8 @@ export declare namespace sqladmin_v1 {
10653
11652
  * host: 'placeholder-value',
10654
11653
  * // Database instance ID. This does not include the project ID.
10655
11654
  * instance: 'placeholder-value',
11655
+ * // Optional. Region of the Cloud SQL instance.
11656
+ * location: 'placeholder-value',
10656
11657
  * // User of the instance.
10657
11658
  * name: 'placeholder-value',
10658
11659
  * // Project ID of the project that contains the instance.
@@ -10734,6 +11735,8 @@ export declare namespace sqladmin_v1 {
10734
11735
  * const res = await sql.users.insert({
10735
11736
  * // Database instance ID. This does not include the project ID.
10736
11737
  * instance: 'placeholder-value',
11738
+ * // Optional. Region of the Cloud SQL instance.
11739
+ * location: 'placeholder-value',
10737
11740
  * // Project ID of the project that contains the instance.
10738
11741
  * project: 'placeholder-value',
10739
11742
  *
@@ -10840,6 +11843,8 @@ export declare namespace sqladmin_v1 {
10840
11843
  * const res = await sql.users.list({
10841
11844
  * // Database instance ID. This does not include the project ID.
10842
11845
  * instance: 'placeholder-value',
11846
+ * // Optional. Region of the Cloud SQL instance.
11847
+ * location: 'placeholder-value',
10843
11848
  * // Project ID of the project that contains the instance.
10844
11849
  * project: 'placeholder-value',
10845
11850
  * });
@@ -10911,6 +11916,8 @@ export declare namespace sqladmin_v1 {
10911
11916
  * host: 'placeholder-value',
10912
11917
  * // Database instance ID. This does not include the project ID.
10913
11918
  * instance: 'placeholder-value',
11919
+ * // Optional. Region of the Cloud SQL instance.
11920
+ * location: 'placeholder-value',
10914
11921
  * // Name of the user in the instance.
10915
11922
  * name: 'placeholder-value',
10916
11923
  * // Project ID of the project that contains the instance.
@@ -10999,6 +12006,10 @@ export declare namespace sqladmin_v1 {
10999
12006
  * Database instance ID. This does not include the project ID.
11000
12007
  */
11001
12008
  instance?: string;
12009
+ /**
12010
+ * Optional. Region of the Cloud SQL instance.
12011
+ */
12012
+ location?: string;
11002
12013
  /**
11003
12014
  * Name of the user in the instance.
11004
12015
  */
@@ -11017,6 +12028,10 @@ export declare namespace sqladmin_v1 {
11017
12028
  * Database instance ID. This does not include the project ID.
11018
12029
  */
11019
12030
  instance?: string;
12031
+ /**
12032
+ * Optional. Region of the Cloud SQL instance.
12033
+ */
12034
+ location?: string;
11020
12035
  /**
11021
12036
  * User of the instance.
11022
12037
  */
@@ -11031,6 +12046,10 @@ export declare namespace sqladmin_v1 {
11031
12046
  * Database instance ID. This does not include the project ID.
11032
12047
  */
11033
12048
  instance?: string;
12049
+ /**
12050
+ * Optional. Region of the Cloud SQL instance.
12051
+ */
12052
+ location?: string;
11034
12053
  /**
11035
12054
  * Project ID of the project that contains the instance.
11036
12055
  */
@@ -11045,6 +12064,10 @@ export declare namespace sqladmin_v1 {
11045
12064
  * Database instance ID. This does not include the project ID.
11046
12065
  */
11047
12066
  instance?: string;
12067
+ /**
12068
+ * Optional. Region of the Cloud SQL instance.
12069
+ */
12070
+ location?: string;
11048
12071
  /**
11049
12072
  * Project ID of the project that contains the instance.
11050
12073
  */
@@ -11063,6 +12086,10 @@ export declare namespace sqladmin_v1 {
11063
12086
  * Database instance ID. This does not include the project ID.
11064
12087
  */
11065
12088
  instance?: string;
12089
+ /**
12090
+ * Optional. Region of the Cloud SQL instance.
12091
+ */
12092
+ location?: string;
11066
12093
  /**
11067
12094
  * Name of the user in the instance.
11068
12095
  */