@googleapis/sqladmin 37.0.0 → 38.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/v1.ts CHANGED
@@ -102,7 +102,7 @@ export namespace sqladmin_v1 {
102
102
  /**
103
103
  * Cloud SQL Admin API
104
104
  *
105
- * API for Cloud SQL database instance management
105
+ * Cloud SQL Admin API
106
106
  *
107
107
  * @example
108
108
  * ```js
@@ -114,6 +114,7 @@ export namespace sqladmin_v1 {
114
114
  context: APIRequestContext;
115
115
  backupRuns: Resource$Backupruns;
116
116
  Backups: Resource$Backups;
117
+ blueGreenDeployments: Resource$Bluegreendeployments;
117
118
  connect: Resource$Connect;
118
119
  databases: Resource$Databases;
119
120
  flags: Resource$Flags;
@@ -132,6 +133,9 @@ export namespace sqladmin_v1 {
132
133
 
133
134
  this.backupRuns = new Resource$Backupruns(this.context);
134
135
  this.Backups = new Resource$Backups(this.context);
136
+ this.blueGreenDeployments = new Resource$Bluegreendeployments(
137
+ this.context
138
+ );
135
139
  this.connect = new Resource$Connect(this.context);
136
140
  this.databases = new Resource$Databases(this.context);
137
141
  this.flags = new Resource$Flags(this.context);
@@ -359,7 +363,7 @@ export namespace sqladmin_v1 {
359
363
  */
360
364
  pointInTimeRecoveryEnabled?: boolean | null;
361
365
  /**
362
- * Reserved for future use.
366
+ * Optional. Deprecated: replication_log_archiving_enabled is deprecated and will be removed from a future version of the API. Use point_in_time_recovery_enabled instead.
363
367
  */
364
368
  replicationLogArchivingEnabled?: boolean | null;
365
369
  /**
@@ -533,6 +537,72 @@ export namespace sqladmin_v1 {
533
537
  */
534
538
  kind?: string | null;
535
539
  }
540
+ /**
541
+ * A `BlueGreenDeployment` resource represents a Cloud SQL blue-green deployment setup.
542
+ */
543
+ export interface Schema$BlueGreenDeployment {
544
+ /**
545
+ * Output only. The time when the deployment was created. Example: `2024-01-01T00:00:00Z`
546
+ */
547
+ createTime?: string | null;
548
+ /**
549
+ * Output only. A list representing the pairs of source and target instances in the deployment.
550
+ */
551
+ deploymentMappings?: Schema$SourceTargetPairedNode[];
552
+ /**
553
+ * Output only. Combined list of tasks for all paired nodes.
554
+ */
555
+ deploymentTasks?: Schema$DeploymentTasks;
556
+ /**
557
+ * Optional. User-provided description for the deployment. The description can be up to 255 characters long.
558
+ */
559
+ description?: string | null;
560
+ /**
561
+ * Output only. Provides details on why switchover is not possible. This field is empty unless a switchover attempt failed or the state is `SWITCHOVER_NOT_READY`. Example: "The target database version does not match the source instance database version."
562
+ */
563
+ errorDetail?: string | null;
564
+ /**
565
+ * Output only. Identifier. The full resource name of the deployment. Format: projects/{project\}/locations/{location\}/blueGreenDeployments/{deployment_id\}
566
+ */
567
+ name?: string | null;
568
+ /**
569
+ * Optional. Immutable. Optional on create, and immutable. The configuration intended for the target instance(s) when the deployment was created.
570
+ */
571
+ requestedConfig?: Schema$RequestedConfig;
572
+ /**
573
+ * Required. Immutable. Required on create, and immutable. The full resource name of the source instance (the "blue" instance). Format: projects/{project\}/instances/{instance\}
574
+ */
575
+ sourceInstance?: string | null;
576
+ /**
577
+ * Output only. The current state of the blue-green deployment.
578
+ */
579
+ state?: string | null;
580
+ /**
581
+ * Output only. The full resource name of the primary target instance (the "green" instance) that will be promoted during switchover. This field is always populated once the deployment is created. Format: projects/{project\}/instances/{instance\}
582
+ */
583
+ switchoverTargetInstance?: string | null;
584
+ }
585
+ /**
586
+ * Blue-green deployment metadata for a database instance. In a blue-green deployment, we maintain two environments, one of which is live. This message contains details about the blue-green deployment.
587
+ */
588
+ export interface Schema$BlueGreenDeploymentInfo {
589
+ /**
590
+ * Output only. The resource ID of the blue-green deployment.
591
+ */
592
+ deploymentId?: string | null;
593
+ /**
594
+ * Output only. The source instance for the Blue-Green deployment.
595
+ */
596
+ source?: Schema$SourceRole;
597
+ /**
598
+ * Output only. The current state of blue-green-deployment for UI tags
599
+ */
600
+ state?: string | null;
601
+ /**
602
+ * Output only. The target instance for the Blue-Green deployment.
603
+ */
604
+ target?: Schema$TargetRole;
605
+ }
536
606
  /**
537
607
  * Database instance clone context.
538
608
  */
@@ -554,7 +624,7 @@ export namespace sqladmin_v1 {
554
624
  */
555
625
  destinationInstanceName?: string | null;
556
626
  /**
557
- * Optional. The fully qualified URI of the VPC network to which the cloned instance will be connected via Private Services Access for private IP. For example:`projects/my-network-project/global/networks/my-network`. This field is only required for cross-project cloning.
627
+ * Optional. The fully qualified URI of the VPC network to which the cloned instance will be connected via private services access for private IP. For example:`projects/my-network-project/global/networks/my-network`. This field is only required for cross-project cloning.
558
628
  */
559
629
  destinationNetwork?: string | null;
560
630
  /**
@@ -599,6 +669,23 @@ export namespace sqladmin_v1 {
599
669
  */
600
670
  type?: string | null;
601
671
  }
672
+ /**
673
+ * Represents a specific configuration difference between blue and green instances.
674
+ */
675
+ export interface Schema$ConfigDiff {
676
+ /**
677
+ * Output only. The name of the field that differs in the blue and green instances, fully-qualified. Example: `settings.tier`
678
+ */
679
+ field?: string | null;
680
+ /**
681
+ * Output only. The value on the source instance.
682
+ */
683
+ sourceValue?: string | null;
684
+ /**
685
+ * Output only. The value on the target instance.
686
+ */
687
+ targetValue?: string | null;
688
+ }
602
689
  /**
603
690
  * The managed connection pooling configuration.
604
691
  */
@@ -658,6 +745,10 @@ export namespace sqladmin_v1 {
658
745
  * `SECOND_GEN`: Cloud SQL database instance. `EXTERNAL`: A database server that is not managed by Google. This property is read-only; use the `tier` property in the `settings` object to determine the database type.
659
746
  */
660
747
  backendType?: string | null;
748
+ /**
749
+ * Optional. Output only. Connection name of the Cloud SQL instance used in connection strings, in the format project:region:instance.
750
+ */
751
+ connectionName?: string | null;
661
752
  /**
662
753
  * Custom subject alternative names for the server certificate.
663
754
  */
@@ -786,6 +877,10 @@ export namespace sqladmin_v1 {
786
877
  * The current disk usage of the instance in bytes. This property has been deprecated. Use the "cloudsql.googleapis.com/database/disk/bytes_used" metric in Cloud Monitoring API instead. Please see [this announcement](https://groups.google.com/d/msg/google-cloud-sql-announce/I_7-F9EBhT0/BtvFtdFeAgAJ) for details.
787
878
  */
788
879
  currentDiskSize?: string | null;
880
+ /**
881
+ * Optional. If true, instance metadata is sent to the Database Center. If false, instance metadata is not sent to the Database Center.
882
+ */
883
+ databaseCenterIntegrationEnabled?: boolean | null;
789
884
  /**
790
885
  * Output only. Stores the current database version running on the instance including minor version such as `MYSQL_8_0_18`.
791
886
  */
@@ -794,6 +889,10 @@ export namespace sqladmin_v1 {
794
889
  * The database engine type and version. The `databaseVersion` field cannot be changed after instance creation.
795
890
  */
796
891
  databaseVersion?: string | null;
892
+ /**
893
+ * Output only. Deployment info for the instance. This is set if the instance is currently part of any blue-green setup.
894
+ */
895
+ deploymentInfo?: Schema$BlueGreenDeploymentInfo;
797
896
  /**
798
897
  * Disk encryption configuration specific to an instance.
799
898
  */
@@ -1087,10 +1186,48 @@ export namespace sqladmin_v1 {
1087
1186
  */
1088
1187
  time?: string | null;
1089
1188
  }
1189
+ /**
1190
+ * Represents a task executed as part of the deployment on a target instance.
1191
+ */
1192
+ export interface Schema$DeploymentTask {
1193
+ /**
1194
+ * Output only. Task end time (if completed).
1195
+ */
1196
+ endTime?: string | null;
1197
+ /**
1198
+ * Output only. Optional error details if the task state is `FAILED`.
1199
+ */
1200
+ errorMessage?: string | null;
1201
+ /**
1202
+ * Output only. Task start time.
1203
+ */
1204
+ startTime?: string | null;
1205
+ /**
1206
+ * Output only. The current state of the task.
1207
+ */
1208
+ state?: string | null;
1209
+ /**
1210
+ * Output only. The type of the task.
1211
+ */
1212
+ type?: string | null;
1213
+ }
1214
+ /**
1215
+ * Combined list of tasks for all paired nodes in the deployment.
1216
+ */
1217
+ export interface Schema$DeploymentTasks {
1218
+ /**
1219
+ * Output only. Tasks performed or being performed on the paired nodes of the deployment at a consolidated level.
1220
+ */
1221
+ task?: Schema$DeploymentTask[];
1222
+ }
1090
1223
  /**
1091
1224
  * Disk encryption configuration for an instance.
1092
1225
  */
1093
1226
  export interface Schema$DiskEncryptionConfiguration {
1227
+ /**
1228
+ * Optional. If true, enables Confidential Mode for the instance's Hyperdisk Balanced volumes. Only supported for zonal C4A instances currently.
1229
+ */
1230
+ confidentialMode?: boolean | null;
1094
1231
  /**
1095
1232
  * This is always `sql#diskEncryptionConfiguration`.
1096
1233
  */
@@ -1158,6 +1295,10 @@ export namespace sqladmin_v1 {
1158
1295
  * Optional. Controls how the API should respond when the SQL execution result is incomplete due to the size limit or another error. The default mode is to throw an error.
1159
1296
  */
1160
1297
  partialResultMode?: string | null;
1298
+ /**
1299
+ * Optional. The resource name of the Secret Manager secret holding the password for the user to log into the database. The secret should be created using the regional endpoint (for API) or from the Regional Secrets page (for UI), and stored in the same region as the Cloud SQL instance. The expected resource name format is `projects/{project\}/locations/{location\}/secrets/{secret\}/versions/{secret_version\}`. Used together with the `user` field. The secret resource name will not be stored.
1300
+ */
1301
+ passwordSecretVersion?: string | null;
1161
1302
  /**
1162
1303
  * Optional. The maximum number of rows returned per SQL statement.
1163
1304
  */
@@ -1684,6 +1825,10 @@ export namespace sqladmin_v1 {
1684
1825
  * The name of the backup that's used to restore a Cloud SQL instance: Format: "projects/{project-id\}/locations/{location\}/backupVaults/{backupvault\}/dataSources/{datasource\}/backups/{backup-uid\}". Only one of restore_backup_context, backup, backupdr_backup can be passed to the input.
1685
1826
  */
1686
1827
  backupdrBackup?: string | null;
1828
+ /**
1829
+ * Optional. If true, the restore operation proceeds even if the target instance's maintenance version is older than the source instance's maintenance version.
1830
+ */
1831
+ ignoreMaintenanceVersion?: boolean | null;
1687
1832
  /**
1688
1833
  * Parameters required to perform the restore backup operation.
1689
1834
  */
@@ -1833,6 +1978,19 @@ export namespace sqladmin_v1 {
1833
1978
  */
1834
1979
  warnings?: Schema$ApiWarning[];
1835
1980
  }
1981
+ /**
1982
+ * The response message for listing blue-green deployment resources.
1983
+ */
1984
+ export interface Schema$ListBlueGreenDeploymentsResponse {
1985
+ /**
1986
+ * The list of blue-green deployment resources.
1987
+ */
1988
+ blueGreenDeployments?: Schema$BlueGreenDeployment[];
1989
+ /**
1990
+ * A token to retrieve the next page of results, or empty if there are no more results.
1991
+ */
1992
+ nextPageToken?: string | null;
1993
+ }
1836
1994
  /**
1837
1995
  * Preferred location. This specifies where a Cloud SQL instance is located. Note that if the preferred location is not available, the instance will be located as close as possible within the region. Only one location may be specified.
1838
1996
  */
@@ -1955,6 +2113,27 @@ export namespace sqladmin_v1 {
1955
2113
  */
1956
2114
  initialSyncFlags?: Schema$SyncFlags[];
1957
2115
  }
2116
+ /**
2117
+ * Details about an instance within the deployment.
2118
+ */
2119
+ export interface Schema$NodeInfo {
2120
+ /**
2121
+ * Output only. The instance connection name.
2122
+ */
2123
+ connection?: string | null;
2124
+ /**
2125
+ * Output only. The unique DNS name for this instance.
2126
+ */
2127
+ dns?: string | null;
2128
+ /**
2129
+ * Output only. The full resource name of the instance. Format: projects/{project\}/instances/{instance\}
2130
+ */
2131
+ instance?: string | null;
2132
+ /**
2133
+ * Output only. The list of IP addresses for this instance.
2134
+ */
2135
+ ipMappings?: Schema$IpMapping[];
2136
+ }
1958
2137
  /**
1959
2138
  * On-premises instance configuration.
1960
2139
  */
@@ -1971,6 +2150,10 @@ export namespace sqladmin_v1 {
1971
2150
  * PEM representation of the replica's private key. The corresponding public key is encoded in the client's certificate.
1972
2151
  */
1973
2152
  clientKey?: string | null;
2153
+ /**
2154
+ * Output only. Indicates whether the resource is managed by Database Migration Service.
2155
+ */
2156
+ dmsManaged?: boolean | null;
1974
2157
  /**
1975
2158
  * The dump file to create the Cloud SQL replica.
1976
2159
  */
@@ -2216,10 +2399,22 @@ export namespace sqladmin_v1 {
2216
2399
  * Performance capture configuration.
2217
2400
  */
2218
2401
  export interface Schema$PerformanceCaptureConfig {
2402
+ /**
2403
+ * Optional. Specifies the minimum percentage of CPU utilization to trigger the performance capture. Valid integers range from `10` to `99`. Enter `0` to disable the check.
2404
+ */
2405
+ cpuUtilizationThresholdPercent?: number | null;
2219
2406
  /**
2220
2407
  * Optional. Enables or disables the performance capture feature.
2221
2408
  */
2222
2409
  enabled?: boolean | null;
2410
+ /**
2411
+ * Optional. Specifies the minimum number of undo log entries in the history list length to trigger the performance capture. Valid integers range from `10000` to `10000000`. Enter `0` to disable the check.
2412
+ */
2413
+ historyListLengthThresholdCount?: number | null;
2414
+ /**
2415
+ * Optional. Specifies the minimum percentage of memory usage to trigger the performance capture. Valid integers range from `10` to `99`. Enter `0` to disable the check.
2416
+ */
2417
+ memoryUsageThresholdPercent?: number | null;
2223
2418
  /**
2224
2419
  * Optional. Specifies the minimum number of consecutive probe threshold that triggers performance capture.
2225
2420
  */
@@ -2236,10 +2431,30 @@ export namespace sqladmin_v1 {
2236
2431
  * Optional. Specifies the minimum number of seconds replica must be lagging behind primary instance to trigger the performance capture on replica.
2237
2432
  */
2238
2433
  secondsBehindSourceThreshold?: number | null;
2434
+ /**
2435
+ * Optional. Specifies the minimum allowed number of semaphore waits to trigger the performance capture. Valid integers range from `10` to `10000`. Enter `0` to disable the check.
2436
+ */
2437
+ semaphoreWaitThresholdCount?: number | null;
2239
2438
  /**
2240
2439
  * Optional. Specifies the amount of time in seconds that a transaction needs to have been open before the watcher starts recording it.
2241
2440
  */
2242
2441
  transactionDurationThreshold?: number | null;
2442
+ /**
2443
+ * Optional. Specifies a customer-defined list of users to exclude from transaction termination. Entries can be in the format 'user@host' or just 'user'. A standalone 'user' implies 'user@%', excluding the user from any host. Wildcard '%' is allowed in the host part of the 'user@host' format. Example: `["app_user", "db_admin@10.1.2.3", "report_user@%"]`
2444
+ */
2445
+ transactionKillExcludedUserHosts?: string[] | null;
2446
+ /**
2447
+ * Optional. Specifies the amount of time in seconds that a transaction needs to have been open before the watcher starts terminating it. Valid integers range from `60` to `604800` (7 days). Enter `0` to disable. If enabled (i.e., \> 0), this value must be greater than or equal to `transaction_duration_threshold`. Configurations where `0 < transaction_kill_threshold_seconds < transaction_duration_threshold` will be rejected.
2448
+ */
2449
+ transactionKillThresholdSeconds?: number | null;
2450
+ /**
2451
+ * Optional. Determines which transactions are allowed to be terminated when they exceed `transaction_kill_threshold_seconds`. This allows protecting write-heavy transactions from auto-termination if desired. Defaults to `READ_ONLY_TRANSACTIONS` if unspecified.
2452
+ */
2453
+ transactionKillType?: string | null;
2454
+ /**
2455
+ * Optional. Specifies the minimum allowed number of transactions in lock wait state to trigger the performance capture. Valid integers range from `10` to `10000`. Enter `0` to disable the check.
2456
+ */
2457
+ transactionLockWaitThresholdCount?: number | null;
2243
2458
  }
2244
2459
  /**
2245
2460
  * Perform disk shrink context.
@@ -2382,14 +2597,30 @@ export namespace sqladmin_v1 {
2382
2597
  * Optional. This is the project ID of consumer service project of this consumer endpoint. This is only applicable if `consumer_network` is a shared VPC network.
2383
2598
  */
2384
2599
  consumerProject?: string | null;
2600
+ /**
2601
+ * Output only. The status of automated DNS provisioning.
2602
+ */
2603
+ instanceAutoDnsStatus?: string | null;
2385
2604
  /**
2386
2605
  * The IP address of the consumer endpoint.
2387
2606
  */
2388
2607
  ipAddress?: string | null;
2608
+ /**
2609
+ * Output only. The service connection policy created automatically for the consumer network when `psc_auto_connection_policy_enabled` is true. It is in the format of: `projects/{project\}/regions/{region\}/serviceConnectionPolicies/{policy_id\}` The `policy_id` is in format of `$NETWORK-$RANDOM`.
2610
+ */
2611
+ serviceConnectionPolicy?: string | null;
2612
+ /**
2613
+ * Output only. The status of service connection policy creation.
2614
+ */
2615
+ serviceConnectionPolicyCreationResult?: string | null;
2389
2616
  /**
2390
2617
  * The connection status of the consumer endpoint.
2391
2618
  */
2392
2619
  status?: string | null;
2620
+ /**
2621
+ * Output only. The status of automated DNS provisioning for the write endpoint.
2622
+ */
2623
+ writeEndpointAutoDnsStatus?: string | null;
2393
2624
  }
2394
2625
  /**
2395
2626
  * PSC settings for a Cloud SQL instance.
@@ -2400,15 +2631,19 @@ export namespace sqladmin_v1 {
2400
2631
  */
2401
2632
  allowedConsumerProjects?: string[] | null;
2402
2633
  /**
2403
- * Optional. The network attachment of the consumer network that the Private Service Connect enabled Cloud SQL instance is authorized to connect via PSC interface. format: projects/PROJECT/regions/REGION/networkAttachments/ID
2634
+ * Optional. The network attachment of the consumer network that the Private Service Connect enabled Cloud SQL instance is authorized to connect using the PSC interface. format: projects/PROJECT/regions/REGION/networkAttachments/ID
2404
2635
  */
2405
2636
  networkAttachmentUri?: string | null;
2637
+ /**
2638
+ * Optional. Whether to set up the PSC service connection policy automatically.
2639
+ */
2640
+ pscAutoConnectionPolicyEnabled?: boolean | null;
2406
2641
  /**
2407
2642
  * Optional. The list of settings for requested Private Service Connect consumer endpoints that can be used to connect to this Cloud SQL instance.
2408
2643
  */
2409
2644
  pscAutoConnections?: Schema$PscAutoConnectionConfig[];
2410
2645
  /**
2411
- * Optional. Indicates whether PSC DNS automation is enabled for this instance. When enabled, Cloud SQL provisions a universal DNS record across all networks configured with Private Service Connect (PSC) auto-connections. This will default to true for new instances when Private Service Connect is enabled.
2646
+ * Optional. Indicates whether Private Service Connect DNS automation is enabled for this instance. When enabled, Cloud SQL provisions a universal DNS record across all networks configured with Private Service Connect auto-connections. This will default to true for new instances when Private Service Connect is enabled.
2412
2647
  */
2413
2648
  pscAutoDnsEnabled?: boolean | null;
2414
2649
  /**
@@ -2416,7 +2651,7 @@ export namespace sqladmin_v1 {
2416
2651
  */
2417
2652
  pscEnabled?: boolean | null;
2418
2653
  /**
2419
- * Optional. Indicates whether PSC write endpoint DNS automation is enabled for this instance. When enabled, Cloud SQL provisions a universal global DNS record across all networks configured with Private Service Connect (PSC) auto-connections that always points to the cluster primary instance. This feature is only supported for Enterprise Plus edition. This will default to true for new Enterprise Plus instances when `psc_auto_dns_enabled` is enabled.
2654
+ * Optional. Indicates whether Private Service Connect write endpoint DNS automation is enabled for this instance. When enabled, Cloud SQL provisions a universal global DNS record across all networks configured with Private Service Connect auto-connections that points to the cluster primary instance. This feature is only supported for Enterprise Plus edition. This will default to true for new Enterprise Plus instances when `psc_auto_dns_enabled` is enabled.
2420
2655
  */
2421
2656
  pscWriteEndpointDnsEnabled?: boolean | null;
2422
2657
  }
@@ -2516,6 +2751,15 @@ export namespace sqladmin_v1 {
2516
2751
  */
2517
2752
  psaWriteEndpoint?: string | null;
2518
2753
  }
2754
+ /**
2755
+ * Configuration specified by the user at creation time for the target (green) instance.
2756
+ */
2757
+ export interface Schema$RequestedConfig {
2758
+ /**
2759
+ * Optional. The target database major version for the upgrade. For example, `MYSQL_8_0` or `POSTGRES_15`.
2760
+ */
2761
+ databaseVersion?: string | null;
2762
+ }
2519
2763
  export interface Schema$Reschedule {
2520
2764
  /**
2521
2765
  * Required. The type of the reschedule.
@@ -2737,7 +2981,7 @@ export namespace sqladmin_v1 {
2737
2981
  */
2738
2982
  maintenanceWindow?: Schema$MaintenanceWindow;
2739
2983
  /**
2740
- * The local user password validation policy of the instance.
2984
+ * The local user password validation policy of the instance for PostgreSQL and MySQL.
2741
2985
  */
2742
2986
  passwordValidationPolicy?: Schema$PasswordValidationPolicy;
2743
2987
  /**
@@ -2793,6 +3037,36 @@ export namespace sqladmin_v1 {
2793
3037
  */
2794
3038
  userLabels?: {[key: string]: string} | null;
2795
3039
  }
3040
+ /**
3041
+ * The source instance for the Blue-Green deployment.
3042
+ */
3043
+ export interface Schema$SourceRole {
3044
+ /**
3045
+ * Output only. The target instance paired with this source instance in a blue-green deployment.
3046
+ */
3047
+ targetId?: Schema$InstanceReference;
3048
+ }
3049
+ /**
3050
+ * Represents a pairing of a source instance node and a target instance node.
3051
+ */
3052
+ export interface Schema$SourceTargetPairedNode {
3053
+ /**
3054
+ * Output only. Describes the list of differences for the `SourceTargetPairedNode`.
3055
+ */
3056
+ diffs?: Schema$ConfigDiff[];
3057
+ /**
3058
+ * Output only. Specifies the resource name of the source instance in this pair.
3059
+ */
3060
+ source?: Schema$NodeInfo;
3061
+ /**
3062
+ * Output only. Specifies the current state of this specific source-target pair.
3063
+ */
3064
+ state?: string | null;
3065
+ /**
3066
+ * Output only. Specifies details of the corresponding target instance in this pair.
3067
+ */
3068
+ target?: Schema$NodeInfo;
3069
+ }
2796
3070
  /**
2797
3071
  * Active Directory configuration, relevant only for Cloud SQL for SQL Server.
2798
3072
  */
@@ -2924,11 +3198,20 @@ export namespace sqladmin_v1 {
2924
3198
  /**
2925
3199
  * Instance reset replica size request.
2926
3200
  */
2927
- export interface Schema$SqlInstancesResetReplicaSizeRequest {}
3201
+ export interface Schema$SqlInstancesResetReplicaSizeRequest {
3202
+ /**
3203
+ * Optional. Region of the Cloud SQL instance.
3204
+ */
3205
+ location?: string | null;
3206
+ }
2928
3207
  /**
2929
3208
  * Instance start external sync request.
2930
3209
  */
2931
3210
  export interface Schema$SqlInstancesStartExternalSyncRequest {
3211
+ /**
3212
+ * Optional. Region of the Cloud SQL instance.
3213
+ */
3214
+ location?: string | null;
2932
3215
  /**
2933
3216
  * Optional. MigrationType configures the migration to use physical files or logical dump files. If not set, then the logical dump file configuration is used. Valid values are `LOGICAL` or `PHYSICAL`. Only applicable to MySQL.
2934
3217
  */
@@ -2958,6 +3241,10 @@ export namespace sqladmin_v1 {
2958
3241
  * Instance verify external sync settings request.
2959
3242
  */
2960
3243
  export interface Schema$SqlInstancesVerifyExternalSyncSettingsRequest {
3244
+ /**
3245
+ * Optional. Region of the Cloud SQL instance.
3246
+ */
3247
+ location?: string | null;
2961
3248
  /**
2962
3249
  * Optional. MigrationType configures the migration to use physical files or logical dump files. If not set, then the logical dump file configuration is used. Valid values are `LOGICAL` or `PHYSICAL`. Only applicable to MySQL.
2963
3250
  */
@@ -3091,11 +3378,11 @@ export namespace sqladmin_v1 {
3091
3378
  */
3092
3379
  export interface Schema$SqlServerUserDetails {
3093
3380
  /**
3094
- * If the user has been disabled
3381
+ * Indicates if the user has been disabled.
3095
3382
  */
3096
3383
  disabled?: boolean | null;
3097
3384
  /**
3098
- * The server roles for this user
3385
+ * Indicates the server roles for this user.
3099
3386
  */
3100
3387
  serverRoles?: string[] | null;
3101
3388
  }
@@ -3235,6 +3522,10 @@ export namespace sqladmin_v1 {
3235
3522
  */
3236
3523
  message?: string | null;
3237
3524
  }
3525
+ /**
3526
+ * Request message for switching over a `BlueGreenDeployment` resource.
3527
+ */
3528
+ export interface Schema$SwitchoverBlueGreenDeploymentRequest {}
3238
3529
  /**
3239
3530
  * Initial sync flags for certain Cloud SQL APIs. Currently used for the MySQL external server initial dump.
3240
3531
  */
@@ -3261,6 +3552,15 @@ export namespace sqladmin_v1 {
3261
3552
  */
3262
3553
  targetValue?: number | null;
3263
3554
  }
3555
+ /**
3556
+ * The target instance for the Blue-Green deployment.
3557
+ */
3558
+ export interface Schema$TargetRole {
3559
+ /**
3560
+ * Output only. The source instance paired with this target instance in a blue-green deployment.
3561
+ */
3562
+ sourceId?: Schema$InstanceReference;
3563
+ }
3264
3564
  /**
3265
3565
  * A Google Cloud SQL service tier resource.
3266
3566
  */
@@ -3364,6 +3664,10 @@ export namespace sqladmin_v1 {
3364
3664
  * The project ID of the project containing the Cloud SQL database. The Google apps domain is prefixed if applicable. Can be omitted for `update` because it is already specified on the URL.
3365
3665
  */
3366
3666
  project?: string | null;
3667
+ /**
3668
+ * Optional. The server roles for the SQL Server login.
3669
+ */
3670
+ serverRoles?: string[] | null;
3367
3671
  sqlserverUserDetails?: Schema$SqlServerUserDetails;
3368
3672
  /**
3369
3673
  * The user type. It determines the method to authenticate the user during login. The default is the database's built-in user type.
@@ -3546,8 +3850,7 @@ export namespace sqladmin_v1 {
3546
3850
  | BodyResponseCallback<Schema$Operation>
3547
3851
  | BodyResponseCallback<Readable>,
3548
3852
  callback?:
3549
- | BodyResponseCallback<Schema$Operation>
3550
- | BodyResponseCallback<Readable>
3853
+ BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
3551
3854
  ):
3552
3855
  | void
3553
3856
  | Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
@@ -3708,8 +4011,7 @@ export namespace sqladmin_v1 {
3708
4011
  | BodyResponseCallback<Schema$BackupRun>
3709
4012
  | BodyResponseCallback<Readable>,
3710
4013
  callback?:
3711
- | BodyResponseCallback<Schema$BackupRun>
3712
- | BodyResponseCallback<Readable>
4014
+ BodyResponseCallback<Schema$BackupRun> | BodyResponseCallback<Readable>
3713
4015
  ):
3714
4016
  | void
3715
4017
  | Promise<GaxiosResponseWithHTTP2<Schema$BackupRun>>
@@ -3894,8 +4196,7 @@ export namespace sqladmin_v1 {
3894
4196
  | BodyResponseCallback<Schema$Operation>
3895
4197
  | BodyResponseCallback<Readable>,
3896
4198
  callback?:
3897
- | BodyResponseCallback<Schema$Operation>
3898
- | BodyResponseCallback<Readable>
4199
+ BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
3899
4200
  ):
3900
4201
  | void
3901
4202
  | Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
@@ -4023,8 +4324,7 @@ export namespace sqladmin_v1 {
4023
4324
  list(
4024
4325
  params: Params$Resource$Backupruns$List,
4025
4326
  options:
4026
- | MethodOptions
4027
- | BodyResponseCallback<Schema$BackupRunsListResponse>,
4327
+ MethodOptions | BodyResponseCallback<Schema$BackupRunsListResponse>,
4028
4328
  callback: BodyResponseCallback<Schema$BackupRunsListResponse>
4029
4329
  ): void;
4030
4330
  list(
@@ -4299,8 +4599,7 @@ export namespace sqladmin_v1 {
4299
4599
  | BodyResponseCallback<Schema$Operation>
4300
4600
  | BodyResponseCallback<Readable>,
4301
4601
  callback?:
4302
- | BodyResponseCallback<Schema$Operation>
4303
- | BodyResponseCallback<Readable>
4602
+ BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
4304
4603
  ):
4305
4604
  | void
4306
4605
  | Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
@@ -4458,8 +4757,7 @@ export namespace sqladmin_v1 {
4458
4757
  | BodyResponseCallback<Schema$Operation>
4459
4758
  | BodyResponseCallback<Readable>,
4460
4759
  callback?:
4461
- | BodyResponseCallback<Schema$Operation>
4462
- | BodyResponseCallback<Readable>
4760
+ BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
4463
4761
  ):
4464
4762
  | void
4465
4763
  | Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
@@ -4617,8 +4915,7 @@ export namespace sqladmin_v1 {
4617
4915
  | BodyResponseCallback<Schema$Backup>
4618
4916
  | BodyResponseCallback<Readable>,
4619
4917
  callback?:
4620
- | BodyResponseCallback<Schema$Backup>
4621
- | BodyResponseCallback<Readable>
4918
+ BodyResponseCallback<Schema$Backup> | BodyResponseCallback<Readable>
4622
4919
  ):
4623
4920
  | void
4624
4921
  | Promise<GaxiosResponseWithHTTP2<Schema$Backup>>
@@ -4955,8 +5252,7 @@ export namespace sqladmin_v1 {
4955
5252
  | BodyResponseCallback<Schema$Operation>
4956
5253
  | BodyResponseCallback<Readable>,
4957
5254
  callback?:
4958
- | BodyResponseCallback<Schema$Operation>
4959
- | BodyResponseCallback<Readable>
5255
+ BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
4960
5256
  ):
4961
5257
  | void
4962
5258
  | Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
@@ -5059,14 +5355,14 @@ export namespace sqladmin_v1 {
5059
5355
  requestBody?: Schema$Backup;
5060
5356
  }
5061
5357
 
5062
- export class Resource$Connect {
5358
+ export class Resource$Bluegreendeployments {
5063
5359
  context: APIRequestContext;
5064
5360
  constructor(context: APIRequestContext) {
5065
5361
  this.context = context;
5066
5362
  }
5067
5363
 
5068
5364
  /**
5069
- * Generates a short-lived X509 certificate containing the provided public key and signed by a private key specific to the target instance. Users may use the certificate to authenticate as themselves when connecting to the database.
5365
+ * Creates a blue-green deployment under a given project and location.
5070
5366
  * @example
5071
5367
  * ```js
5072
5368
  * // Before running the sample:
@@ -5098,20 +5394,26 @@ export namespace sqladmin_v1 {
5098
5394
  * google.options({auth: authClient});
5099
5395
  *
5100
5396
  * // Do the magic
5101
- * const res = await sql.connect.generateEphemeral({
5102
- * // Cloud SQL instance ID. This does not include the project ID.
5103
- * instance: 'placeholder-value',
5104
- * // Project ID of the project that contains the instance.
5105
- * project: 'placeholder-value',
5397
+ * const res = await sql.blueGreenDeployments.create({
5398
+ * // Required. The ID to use for the blue-green deployment, which will become the final component of the deployment's resource name. The ID must be unique within the given project and location and between 2-63 characters.
5399
+ * blueGreenDeploymentId: 'placeholder-value',
5400
+ * // Required. The parent resource where this blue-green deployment will be created. Format: projects/{project\}/locations/{location\}
5401
+ * parent: 'projects/my-project/locations/my-location',
5106
5402
  *
5107
5403
  * // Request body metadata
5108
5404
  * requestBody: {
5109
5405
  * // request body parameters
5110
5406
  * // {
5111
- * // "access_token": "my_access_token",
5112
- * // "public_key": "my_public_key",
5113
- * // "readTime": "my_readTime",
5114
- * // "validDuration": "my_validDuration"
5407
+ * // "createTime": "my_createTime",
5408
+ * // "deploymentMappings": [],
5409
+ * // "deploymentTasks": {},
5410
+ * // "description": "my_description",
5411
+ * // "errorDetail": "my_errorDetail",
5412
+ * // "name": "my_name",
5413
+ * // "requestedConfig": {},
5414
+ * // "sourceInstance": "my_sourceInstance",
5415
+ * // "state": "my_state",
5416
+ * // "switchoverTargetInstance": "my_switchoverTargetInstance"
5115
5417
  * // }
5116
5418
  * },
5117
5419
  * });
@@ -5119,7 +5421,26 @@ export namespace sqladmin_v1 {
5119
5421
  *
5120
5422
  * // Example response
5121
5423
  * // {
5122
- * // "ephemeralCert": {}
5424
+ * // "acquireSsrsLeaseContext": {},
5425
+ * // "apiWarning": {},
5426
+ * // "backupContext": {},
5427
+ * // "endTime": "my_endTime",
5428
+ * // "error": {},
5429
+ * // "exportContext": {},
5430
+ * // "importContext": {},
5431
+ * // "insertTime": "my_insertTime",
5432
+ * // "kind": "my_kind",
5433
+ * // "name": "my_name",
5434
+ * // "operationType": "my_operationType",
5435
+ * // "preCheckMajorVersionUpgradeContext": {},
5436
+ * // "selfLink": "my_selfLink",
5437
+ * // "startTime": "my_startTime",
5438
+ * // "status": "my_status",
5439
+ * // "subOperationType": {},
5440
+ * // "targetId": "my_targetId",
5441
+ * // "targetLink": "my_targetLink",
5442
+ * // "targetProject": "my_targetProject",
5443
+ * // "user": "my_user"
5123
5444
  * // }
5124
5445
  * }
5125
5446
  *
@@ -5135,42 +5456,898 @@ export namespace sqladmin_v1 {
5135
5456
  * @param callback - Optional callback that handles the response.
5136
5457
  * @returns A promise if used with async/await, or void if used with a callback.
5137
5458
  */
5138
- generateEphemeralCert(
5139
- params: Params$Resource$Connect$Generateephemeralcert,
5459
+ create(
5460
+ params: Params$Resource$Bluegreendeployments$Create,
5140
5461
  options: StreamMethodOptions
5141
5462
  ): Promise<GaxiosResponseWithHTTP2<Readable>>;
5142
- generateEphemeralCert(
5143
- params?: Params$Resource$Connect$Generateephemeralcert,
5463
+ create(
5464
+ params?: Params$Resource$Bluegreendeployments$Create,
5144
5465
  options?: MethodOptions
5145
- ): Promise<GaxiosResponseWithHTTP2<Schema$GenerateEphemeralCertResponse>>;
5146
- generateEphemeralCert(
5147
- params: Params$Resource$Connect$Generateephemeralcert,
5466
+ ): Promise<GaxiosResponseWithHTTP2<Schema$Operation>>;
5467
+ create(
5468
+ params: Params$Resource$Bluegreendeployments$Create,
5148
5469
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
5149
5470
  callback: BodyResponseCallback<Readable>
5150
5471
  ): void;
5151
- generateEphemeralCert(
5152
- params: Params$Resource$Connect$Generateephemeralcert,
5153
- options:
5154
- | MethodOptions
5155
- | BodyResponseCallback<Schema$GenerateEphemeralCertResponse>,
5156
- callback: BodyResponseCallback<Schema$GenerateEphemeralCertResponse>
5157
- ): void;
5158
- generateEphemeralCert(
5159
- params: Params$Resource$Connect$Generateephemeralcert,
5160
- callback: BodyResponseCallback<Schema$GenerateEphemeralCertResponse>
5472
+ create(
5473
+ params: Params$Resource$Bluegreendeployments$Create,
5474
+ options: MethodOptions | BodyResponseCallback<Schema$Operation>,
5475
+ callback: BodyResponseCallback<Schema$Operation>
5161
5476
  ): void;
5162
- generateEphemeralCert(
5163
- callback: BodyResponseCallback<Schema$GenerateEphemeralCertResponse>
5477
+ create(
5478
+ params: Params$Resource$Bluegreendeployments$Create,
5479
+ callback: BodyResponseCallback<Schema$Operation>
5164
5480
  ): void;
5165
- generateEphemeralCert(
5481
+ create(callback: BodyResponseCallback<Schema$Operation>): void;
5482
+ create(
5166
5483
  paramsOrCallback?:
5167
- | Params$Resource$Connect$Generateephemeralcert
5168
- | BodyResponseCallback<Schema$GenerateEphemeralCertResponse>
5484
+ | Params$Resource$Bluegreendeployments$Create
5485
+ | BodyResponseCallback<Schema$Operation>
5169
5486
  | BodyResponseCallback<Readable>,
5170
5487
  optionsOrCallback?:
5171
5488
  | MethodOptions
5172
5489
  | StreamMethodOptions
5173
- | BodyResponseCallback<Schema$GenerateEphemeralCertResponse>
5490
+ | BodyResponseCallback<Schema$Operation>
5491
+ | BodyResponseCallback<Readable>,
5492
+ callback?:
5493
+ BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
5494
+ ):
5495
+ | void
5496
+ | Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
5497
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
5498
+ let params = (paramsOrCallback ||
5499
+ {}) as Params$Resource$Bluegreendeployments$Create;
5500
+ let options = (optionsOrCallback || {}) as MethodOptions;
5501
+
5502
+ if (typeof paramsOrCallback === 'function') {
5503
+ callback = paramsOrCallback;
5504
+ params = {} as Params$Resource$Bluegreendeployments$Create;
5505
+ options = {};
5506
+ }
5507
+
5508
+ if (typeof optionsOrCallback === 'function') {
5509
+ callback = optionsOrCallback;
5510
+ options = {};
5511
+ }
5512
+
5513
+ const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/';
5514
+ const parameters = {
5515
+ options: Object.assign(
5516
+ {
5517
+ url: (rootUrl + '/v1/{+parent}/blueGreenDeployments').replace(
5518
+ /([^:]\/)\/+/g,
5519
+ '$1'
5520
+ ),
5521
+ method: 'POST',
5522
+ apiVersion: '',
5523
+ },
5524
+ options
5525
+ ),
5526
+ params,
5527
+ requiredParams: ['parent'],
5528
+ pathParams: ['parent'],
5529
+ context: this.context,
5530
+ };
5531
+ if (callback) {
5532
+ createAPIRequest<Schema$Operation>(
5533
+ parameters,
5534
+ callback as BodyResponseCallback<unknown>
5535
+ );
5536
+ } else {
5537
+ return createAPIRequest<Schema$Operation>(parameters);
5538
+ }
5539
+ }
5540
+
5541
+ /**
5542
+ * Deletes a blue-green deployment.
5543
+ * @example
5544
+ * ```js
5545
+ * // Before running the sample:
5546
+ * // - Enable the API at:
5547
+ * // https://console.developers.google.com/apis/api/sqladmin.googleapis.com
5548
+ * // - Login into gcloud by running:
5549
+ * // ```sh
5550
+ * // $ gcloud auth application-default login
5551
+ * // ```
5552
+ * // - Install the npm module by running:
5553
+ * // ```sh
5554
+ * // $ npm install googleapis
5555
+ * // ```
5556
+ *
5557
+ * const {google} = require('googleapis');
5558
+ * const sqladmin = google.sqladmin('v1');
5559
+ *
5560
+ * async function main() {
5561
+ * const auth = new google.auth.GoogleAuth({
5562
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
5563
+ * scopes: [
5564
+ * 'https://www.googleapis.com/auth/cloud-platform',
5565
+ * 'https://www.googleapis.com/auth/sqlservice.admin',
5566
+ * ],
5567
+ * });
5568
+ *
5569
+ * // Acquire an auth client, and bind it to all future calls
5570
+ * const authClient = await auth.getClient();
5571
+ * google.options({auth: authClient});
5572
+ *
5573
+ * // Do the magic
5574
+ * const res = await sql.blueGreenDeployments.delete({
5575
+ * // Optional. If set to true, and the switchover is complete, this deletes the old source instance along with the deployment.
5576
+ * deleteOldSource: 'placeholder-value',
5577
+ * // Required. The name of the blue-green deployment to delete. Format: projects/{project\}/locations/{location\}/blueGreenDeployments/{blue_green_deployment\}
5578
+ * name: 'projects/my-project/locations/my-location/blueGreenDeployments/my-blueGreenDeployment',
5579
+ * });
5580
+ * console.log(res.data);
5581
+ *
5582
+ * // Example response
5583
+ * // {
5584
+ * // "acquireSsrsLeaseContext": {},
5585
+ * // "apiWarning": {},
5586
+ * // "backupContext": {},
5587
+ * // "endTime": "my_endTime",
5588
+ * // "error": {},
5589
+ * // "exportContext": {},
5590
+ * // "importContext": {},
5591
+ * // "insertTime": "my_insertTime",
5592
+ * // "kind": "my_kind",
5593
+ * // "name": "my_name",
5594
+ * // "operationType": "my_operationType",
5595
+ * // "preCheckMajorVersionUpgradeContext": {},
5596
+ * // "selfLink": "my_selfLink",
5597
+ * // "startTime": "my_startTime",
5598
+ * // "status": "my_status",
5599
+ * // "subOperationType": {},
5600
+ * // "targetId": "my_targetId",
5601
+ * // "targetLink": "my_targetLink",
5602
+ * // "targetProject": "my_targetProject",
5603
+ * // "user": "my_user"
5604
+ * // }
5605
+ * }
5606
+ *
5607
+ * main().catch(e => {
5608
+ * console.error(e);
5609
+ * throw e;
5610
+ * });
5611
+ *
5612
+ * ```
5613
+ *
5614
+ * @param params - Parameters for request
5615
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
5616
+ * @param callback - Optional callback that handles the response.
5617
+ * @returns A promise if used with async/await, or void if used with a callback.
5618
+ */
5619
+ delete(
5620
+ params: Params$Resource$Bluegreendeployments$Delete,
5621
+ options: StreamMethodOptions
5622
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
5623
+ delete(
5624
+ params?: Params$Resource$Bluegreendeployments$Delete,
5625
+ options?: MethodOptions
5626
+ ): Promise<GaxiosResponseWithHTTP2<Schema$Operation>>;
5627
+ delete(
5628
+ params: Params$Resource$Bluegreendeployments$Delete,
5629
+ options: StreamMethodOptions | BodyResponseCallback<Readable>,
5630
+ callback: BodyResponseCallback<Readable>
5631
+ ): void;
5632
+ delete(
5633
+ params: Params$Resource$Bluegreendeployments$Delete,
5634
+ options: MethodOptions | BodyResponseCallback<Schema$Operation>,
5635
+ callback: BodyResponseCallback<Schema$Operation>
5636
+ ): void;
5637
+ delete(
5638
+ params: Params$Resource$Bluegreendeployments$Delete,
5639
+ callback: BodyResponseCallback<Schema$Operation>
5640
+ ): void;
5641
+ delete(callback: BodyResponseCallback<Schema$Operation>): void;
5642
+ delete(
5643
+ paramsOrCallback?:
5644
+ | Params$Resource$Bluegreendeployments$Delete
5645
+ | BodyResponseCallback<Schema$Operation>
5646
+ | BodyResponseCallback<Readable>,
5647
+ optionsOrCallback?:
5648
+ | MethodOptions
5649
+ | StreamMethodOptions
5650
+ | BodyResponseCallback<Schema$Operation>
5651
+ | BodyResponseCallback<Readable>,
5652
+ callback?:
5653
+ BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
5654
+ ):
5655
+ | void
5656
+ | Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
5657
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
5658
+ let params = (paramsOrCallback ||
5659
+ {}) as Params$Resource$Bluegreendeployments$Delete;
5660
+ let options = (optionsOrCallback || {}) as MethodOptions;
5661
+
5662
+ if (typeof paramsOrCallback === 'function') {
5663
+ callback = paramsOrCallback;
5664
+ params = {} as Params$Resource$Bluegreendeployments$Delete;
5665
+ options = {};
5666
+ }
5667
+
5668
+ if (typeof optionsOrCallback === 'function') {
5669
+ callback = optionsOrCallback;
5670
+ options = {};
5671
+ }
5672
+
5673
+ const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/';
5674
+ const parameters = {
5675
+ options: Object.assign(
5676
+ {
5677
+ url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'),
5678
+ method: 'DELETE',
5679
+ apiVersion: '',
5680
+ },
5681
+ options
5682
+ ),
5683
+ params,
5684
+ requiredParams: ['name'],
5685
+ pathParams: ['name'],
5686
+ context: this.context,
5687
+ };
5688
+ if (callback) {
5689
+ createAPIRequest<Schema$Operation>(
5690
+ parameters,
5691
+ callback as BodyResponseCallback<unknown>
5692
+ );
5693
+ } else {
5694
+ return createAPIRequest<Schema$Operation>(parameters);
5695
+ }
5696
+ }
5697
+
5698
+ /**
5699
+ * Retrieves a blue-green deployment resource under a given project and location.
5700
+ * @example
5701
+ * ```js
5702
+ * // Before running the sample:
5703
+ * // - Enable the API at:
5704
+ * // https://console.developers.google.com/apis/api/sqladmin.googleapis.com
5705
+ * // - Login into gcloud by running:
5706
+ * // ```sh
5707
+ * // $ gcloud auth application-default login
5708
+ * // ```
5709
+ * // - Install the npm module by running:
5710
+ * // ```sh
5711
+ * // $ npm install googleapis
5712
+ * // ```
5713
+ *
5714
+ * const {google} = require('googleapis');
5715
+ * const sqladmin = google.sqladmin('v1');
5716
+ *
5717
+ * async function main() {
5718
+ * const auth = new google.auth.GoogleAuth({
5719
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
5720
+ * scopes: [
5721
+ * 'https://www.googleapis.com/auth/cloud-platform',
5722
+ * 'https://www.googleapis.com/auth/sqlservice.admin',
5723
+ * ],
5724
+ * });
5725
+ *
5726
+ * // Acquire an auth client, and bind it to all future calls
5727
+ * const authClient = await auth.getClient();
5728
+ * google.options({auth: authClient});
5729
+ *
5730
+ * // Do the magic
5731
+ * const res = await sql.blueGreenDeployments.get({
5732
+ * // Required. The name of the blue-green deployment to retrieve. Format: projects/{project\}/locations/{location\}/blueGreenDeployments/{blue_green_deployment\}
5733
+ * name: 'projects/my-project/locations/my-location/blueGreenDeployments/my-blueGreenDeployment',
5734
+ * // Optional. Specifies whether to return the basic or detailed view of the resource in the response.
5735
+ * view: 'placeholder-value',
5736
+ * });
5737
+ * console.log(res.data);
5738
+ *
5739
+ * // Example response
5740
+ * // {
5741
+ * // "createTime": "my_createTime",
5742
+ * // "deploymentMappings": [],
5743
+ * // "deploymentTasks": {},
5744
+ * // "description": "my_description",
5745
+ * // "errorDetail": "my_errorDetail",
5746
+ * // "name": "my_name",
5747
+ * // "requestedConfig": {},
5748
+ * // "sourceInstance": "my_sourceInstance",
5749
+ * // "state": "my_state",
5750
+ * // "switchoverTargetInstance": "my_switchoverTargetInstance"
5751
+ * // }
5752
+ * }
5753
+ *
5754
+ * main().catch(e => {
5755
+ * console.error(e);
5756
+ * throw e;
5757
+ * });
5758
+ *
5759
+ * ```
5760
+ *
5761
+ * @param params - Parameters for request
5762
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
5763
+ * @param callback - Optional callback that handles the response.
5764
+ * @returns A promise if used with async/await, or void if used with a callback.
5765
+ */
5766
+ get(
5767
+ params: Params$Resource$Bluegreendeployments$Get,
5768
+ options: StreamMethodOptions
5769
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
5770
+ get(
5771
+ params?: Params$Resource$Bluegreendeployments$Get,
5772
+ options?: MethodOptions
5773
+ ): Promise<GaxiosResponseWithHTTP2<Schema$BlueGreenDeployment>>;
5774
+ get(
5775
+ params: Params$Resource$Bluegreendeployments$Get,
5776
+ options: StreamMethodOptions | BodyResponseCallback<Readable>,
5777
+ callback: BodyResponseCallback<Readable>
5778
+ ): void;
5779
+ get(
5780
+ params: Params$Resource$Bluegreendeployments$Get,
5781
+ options: MethodOptions | BodyResponseCallback<Schema$BlueGreenDeployment>,
5782
+ callback: BodyResponseCallback<Schema$BlueGreenDeployment>
5783
+ ): void;
5784
+ get(
5785
+ params: Params$Resource$Bluegreendeployments$Get,
5786
+ callback: BodyResponseCallback<Schema$BlueGreenDeployment>
5787
+ ): void;
5788
+ get(callback: BodyResponseCallback<Schema$BlueGreenDeployment>): void;
5789
+ get(
5790
+ paramsOrCallback?:
5791
+ | Params$Resource$Bluegreendeployments$Get
5792
+ | BodyResponseCallback<Schema$BlueGreenDeployment>
5793
+ | BodyResponseCallback<Readable>,
5794
+ optionsOrCallback?:
5795
+ | MethodOptions
5796
+ | StreamMethodOptions
5797
+ | BodyResponseCallback<Schema$BlueGreenDeployment>
5798
+ | BodyResponseCallback<Readable>,
5799
+ callback?:
5800
+ | BodyResponseCallback<Schema$BlueGreenDeployment>
5801
+ | BodyResponseCallback<Readable>
5802
+ ):
5803
+ | void
5804
+ | Promise<GaxiosResponseWithHTTP2<Schema$BlueGreenDeployment>>
5805
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
5806
+ let params = (paramsOrCallback ||
5807
+ {}) as Params$Resource$Bluegreendeployments$Get;
5808
+ let options = (optionsOrCallback || {}) as MethodOptions;
5809
+
5810
+ if (typeof paramsOrCallback === 'function') {
5811
+ callback = paramsOrCallback;
5812
+ params = {} as Params$Resource$Bluegreendeployments$Get;
5813
+ options = {};
5814
+ }
5815
+
5816
+ if (typeof optionsOrCallback === 'function') {
5817
+ callback = optionsOrCallback;
5818
+ options = {};
5819
+ }
5820
+
5821
+ const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/';
5822
+ const parameters = {
5823
+ options: Object.assign(
5824
+ {
5825
+ url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'),
5826
+ method: 'GET',
5827
+ apiVersion: '',
5828
+ },
5829
+ options
5830
+ ),
5831
+ params,
5832
+ requiredParams: ['name'],
5833
+ pathParams: ['name'],
5834
+ context: this.context,
5835
+ };
5836
+ if (callback) {
5837
+ createAPIRequest<Schema$BlueGreenDeployment>(
5838
+ parameters,
5839
+ callback as BodyResponseCallback<unknown>
5840
+ );
5841
+ } else {
5842
+ return createAPIRequest<Schema$BlueGreenDeployment>(parameters);
5843
+ }
5844
+ }
5845
+
5846
+ /**
5847
+ * Lists blue-green deployments under a given project.
5848
+ * @example
5849
+ * ```js
5850
+ * // Before running the sample:
5851
+ * // - Enable the API at:
5852
+ * // https://console.developers.google.com/apis/api/sqladmin.googleapis.com
5853
+ * // - Login into gcloud by running:
5854
+ * // ```sh
5855
+ * // $ gcloud auth application-default login
5856
+ * // ```
5857
+ * // - Install the npm module by running:
5858
+ * // ```sh
5859
+ * // $ npm install googleapis
5860
+ * // ```
5861
+ *
5862
+ * const {google} = require('googleapis');
5863
+ * const sqladmin = google.sqladmin('v1');
5864
+ *
5865
+ * async function main() {
5866
+ * const auth = new google.auth.GoogleAuth({
5867
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
5868
+ * scopes: [
5869
+ * 'https://www.googleapis.com/auth/cloud-platform',
5870
+ * 'https://www.googleapis.com/auth/sqlservice.admin',
5871
+ * ],
5872
+ * });
5873
+ *
5874
+ * // Acquire an auth client, and bind it to all future calls
5875
+ * const authClient = await auth.getClient();
5876
+ * google.options({auth: authClient});
5877
+ *
5878
+ * // Do the magic
5879
+ * const res = await sql.blueGreenDeployments.list({
5880
+ * // Optional. A filter expression that filters the results.
5881
+ * filter: 'placeholder-value',
5882
+ * // Optional. A comma-separated list of fields to order the results by.
5883
+ * orderBy: 'placeholder-value',
5884
+ * // Optional. The maximum number of deployments to return. The service may return fewer deployments than this value. If unspecified, at most 500 deployments are returned. The maximum value is 1000; values above 1000 are treated as 1000.
5885
+ * pageSize: 'placeholder-value',
5886
+ * // Optional. A page token, received from a previous `ListBlueGreenDeployments` call. Provide this to retrieve the subsequent page.
5887
+ * pageToken: 'placeholder-value',
5888
+ * // Required. The parent resource whose blue-green deployments are to be listed. Format: projects/{project\}/locations/{location\}
5889
+ * parent: 'projects/my-project/locations/my-location',
5890
+ * });
5891
+ * console.log(res.data);
5892
+ *
5893
+ * // Example response
5894
+ * // {
5895
+ * // "blueGreenDeployments": [],
5896
+ * // "nextPageToken": "my_nextPageToken"
5897
+ * // }
5898
+ * }
5899
+ *
5900
+ * main().catch(e => {
5901
+ * console.error(e);
5902
+ * throw e;
5903
+ * });
5904
+ *
5905
+ * ```
5906
+ *
5907
+ * @param params - Parameters for request
5908
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
5909
+ * @param callback - Optional callback that handles the response.
5910
+ * @returns A promise if used with async/await, or void if used with a callback.
5911
+ */
5912
+ list(
5913
+ params: Params$Resource$Bluegreendeployments$List,
5914
+ options: StreamMethodOptions
5915
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
5916
+ list(
5917
+ params?: Params$Resource$Bluegreendeployments$List,
5918
+ options?: MethodOptions
5919
+ ): Promise<
5920
+ GaxiosResponseWithHTTP2<Schema$ListBlueGreenDeploymentsResponse>
5921
+ >;
5922
+ list(
5923
+ params: Params$Resource$Bluegreendeployments$List,
5924
+ options: StreamMethodOptions | BodyResponseCallback<Readable>,
5925
+ callback: BodyResponseCallback<Readable>
5926
+ ): void;
5927
+ list(
5928
+ params: Params$Resource$Bluegreendeployments$List,
5929
+ options:
5930
+ | MethodOptions
5931
+ | BodyResponseCallback<Schema$ListBlueGreenDeploymentsResponse>,
5932
+ callback: BodyResponseCallback<Schema$ListBlueGreenDeploymentsResponse>
5933
+ ): void;
5934
+ list(
5935
+ params: Params$Resource$Bluegreendeployments$List,
5936
+ callback: BodyResponseCallback<Schema$ListBlueGreenDeploymentsResponse>
5937
+ ): void;
5938
+ list(
5939
+ callback: BodyResponseCallback<Schema$ListBlueGreenDeploymentsResponse>
5940
+ ): void;
5941
+ list(
5942
+ paramsOrCallback?:
5943
+ | Params$Resource$Bluegreendeployments$List
5944
+ | BodyResponseCallback<Schema$ListBlueGreenDeploymentsResponse>
5945
+ | BodyResponseCallback<Readable>,
5946
+ optionsOrCallback?:
5947
+ | MethodOptions
5948
+ | StreamMethodOptions
5949
+ | BodyResponseCallback<Schema$ListBlueGreenDeploymentsResponse>
5950
+ | BodyResponseCallback<Readable>,
5951
+ callback?:
5952
+ | BodyResponseCallback<Schema$ListBlueGreenDeploymentsResponse>
5953
+ | BodyResponseCallback<Readable>
5954
+ ):
5955
+ | void
5956
+ | Promise<
5957
+ GaxiosResponseWithHTTP2<Schema$ListBlueGreenDeploymentsResponse>
5958
+ >
5959
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
5960
+ let params = (paramsOrCallback ||
5961
+ {}) as Params$Resource$Bluegreendeployments$List;
5962
+ let options = (optionsOrCallback || {}) as MethodOptions;
5963
+
5964
+ if (typeof paramsOrCallback === 'function') {
5965
+ callback = paramsOrCallback;
5966
+ params = {} as Params$Resource$Bluegreendeployments$List;
5967
+ options = {};
5968
+ }
5969
+
5970
+ if (typeof optionsOrCallback === 'function') {
5971
+ callback = optionsOrCallback;
5972
+ options = {};
5973
+ }
5974
+
5975
+ const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/';
5976
+ const parameters = {
5977
+ options: Object.assign(
5978
+ {
5979
+ url: (rootUrl + '/v1/{+parent}/blueGreenDeployments').replace(
5980
+ /([^:]\/)\/+/g,
5981
+ '$1'
5982
+ ),
5983
+ method: 'GET',
5984
+ apiVersion: '',
5985
+ },
5986
+ options
5987
+ ),
5988
+ params,
5989
+ requiredParams: ['parent'],
5990
+ pathParams: ['parent'],
5991
+ context: this.context,
5992
+ };
5993
+ if (callback) {
5994
+ createAPIRequest<Schema$ListBlueGreenDeploymentsResponse>(
5995
+ parameters,
5996
+ callback as BodyResponseCallback<unknown>
5997
+ );
5998
+ } else {
5999
+ return createAPIRequest<Schema$ListBlueGreenDeploymentsResponse>(
6000
+ parameters
6001
+ );
6002
+ }
6003
+ }
6004
+
6005
+ /**
6006
+ * Switches over to green instance for a blue-green deployment.
6007
+ * @example
6008
+ * ```js
6009
+ * // Before running the sample:
6010
+ * // - Enable the API at:
6011
+ * // https://console.developers.google.com/apis/api/sqladmin.googleapis.com
6012
+ * // - Login into gcloud by running:
6013
+ * // ```sh
6014
+ * // $ gcloud auth application-default login
6015
+ * // ```
6016
+ * // - Install the npm module by running:
6017
+ * // ```sh
6018
+ * // $ npm install googleapis
6019
+ * // ```
6020
+ *
6021
+ * const {google} = require('googleapis');
6022
+ * const sqladmin = google.sqladmin('v1');
6023
+ *
6024
+ * async function main() {
6025
+ * const auth = new google.auth.GoogleAuth({
6026
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
6027
+ * scopes: [
6028
+ * 'https://www.googleapis.com/auth/cloud-platform',
6029
+ * 'https://www.googleapis.com/auth/sqlservice.admin',
6030
+ * ],
6031
+ * });
6032
+ *
6033
+ * // Acquire an auth client, and bind it to all future calls
6034
+ * const authClient = await auth.getClient();
6035
+ * google.options({auth: authClient});
6036
+ *
6037
+ * // Do the magic
6038
+ * const res = await sql.blueGreenDeployments.switchover({
6039
+ * // Required. The name of the blue-green deployment to switch over. Format: projects/{project\}/locations/{location\}/blueGreenDeployments/{blue_green_deployment\}
6040
+ * name: 'projects/my-project/locations/my-location/blueGreenDeployments/my-blueGreenDeployment',
6041
+ *
6042
+ * // Request body metadata
6043
+ * requestBody: {
6044
+ * // request body parameters
6045
+ * // {}
6046
+ * },
6047
+ * });
6048
+ * console.log(res.data);
6049
+ *
6050
+ * // Example response
6051
+ * // {
6052
+ * // "acquireSsrsLeaseContext": {},
6053
+ * // "apiWarning": {},
6054
+ * // "backupContext": {},
6055
+ * // "endTime": "my_endTime",
6056
+ * // "error": {},
6057
+ * // "exportContext": {},
6058
+ * // "importContext": {},
6059
+ * // "insertTime": "my_insertTime",
6060
+ * // "kind": "my_kind",
6061
+ * // "name": "my_name",
6062
+ * // "operationType": "my_operationType",
6063
+ * // "preCheckMajorVersionUpgradeContext": {},
6064
+ * // "selfLink": "my_selfLink",
6065
+ * // "startTime": "my_startTime",
6066
+ * // "status": "my_status",
6067
+ * // "subOperationType": {},
6068
+ * // "targetId": "my_targetId",
6069
+ * // "targetLink": "my_targetLink",
6070
+ * // "targetProject": "my_targetProject",
6071
+ * // "user": "my_user"
6072
+ * // }
6073
+ * }
6074
+ *
6075
+ * main().catch(e => {
6076
+ * console.error(e);
6077
+ * throw e;
6078
+ * });
6079
+ *
6080
+ * ```
6081
+ *
6082
+ * @param params - Parameters for request
6083
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
6084
+ * @param callback - Optional callback that handles the response.
6085
+ * @returns A promise if used with async/await, or void if used with a callback.
6086
+ */
6087
+ switchover(
6088
+ params: Params$Resource$Bluegreendeployments$Switchover,
6089
+ options: StreamMethodOptions
6090
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
6091
+ switchover(
6092
+ params?: Params$Resource$Bluegreendeployments$Switchover,
6093
+ options?: MethodOptions
6094
+ ): Promise<GaxiosResponseWithHTTP2<Schema$Operation>>;
6095
+ switchover(
6096
+ params: Params$Resource$Bluegreendeployments$Switchover,
6097
+ options: StreamMethodOptions | BodyResponseCallback<Readable>,
6098
+ callback: BodyResponseCallback<Readable>
6099
+ ): void;
6100
+ switchover(
6101
+ params: Params$Resource$Bluegreendeployments$Switchover,
6102
+ options: MethodOptions | BodyResponseCallback<Schema$Operation>,
6103
+ callback: BodyResponseCallback<Schema$Operation>
6104
+ ): void;
6105
+ switchover(
6106
+ params: Params$Resource$Bluegreendeployments$Switchover,
6107
+ callback: BodyResponseCallback<Schema$Operation>
6108
+ ): void;
6109
+ switchover(callback: BodyResponseCallback<Schema$Operation>): void;
6110
+ switchover(
6111
+ paramsOrCallback?:
6112
+ | Params$Resource$Bluegreendeployments$Switchover
6113
+ | BodyResponseCallback<Schema$Operation>
6114
+ | BodyResponseCallback<Readable>,
6115
+ optionsOrCallback?:
6116
+ | MethodOptions
6117
+ | StreamMethodOptions
6118
+ | BodyResponseCallback<Schema$Operation>
6119
+ | BodyResponseCallback<Readable>,
6120
+ callback?:
6121
+ BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
6122
+ ):
6123
+ | void
6124
+ | Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
6125
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
6126
+ let params = (paramsOrCallback ||
6127
+ {}) as Params$Resource$Bluegreendeployments$Switchover;
6128
+ let options = (optionsOrCallback || {}) as MethodOptions;
6129
+
6130
+ if (typeof paramsOrCallback === 'function') {
6131
+ callback = paramsOrCallback;
6132
+ params = {} as Params$Resource$Bluegreendeployments$Switchover;
6133
+ options = {};
6134
+ }
6135
+
6136
+ if (typeof optionsOrCallback === 'function') {
6137
+ callback = optionsOrCallback;
6138
+ options = {};
6139
+ }
6140
+
6141
+ const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/';
6142
+ const parameters = {
6143
+ options: Object.assign(
6144
+ {
6145
+ url: (rootUrl + '/v1/{+name}:switchover').replace(
6146
+ /([^:]\/)\/+/g,
6147
+ '$1'
6148
+ ),
6149
+ method: 'POST',
6150
+ apiVersion: '',
6151
+ },
6152
+ options
6153
+ ),
6154
+ params,
6155
+ requiredParams: ['name'],
6156
+ pathParams: ['name'],
6157
+ context: this.context,
6158
+ };
6159
+ if (callback) {
6160
+ createAPIRequest<Schema$Operation>(
6161
+ parameters,
6162
+ callback as BodyResponseCallback<unknown>
6163
+ );
6164
+ } else {
6165
+ return createAPIRequest<Schema$Operation>(parameters);
6166
+ }
6167
+ }
6168
+ }
6169
+
6170
+ export interface Params$Resource$Bluegreendeployments$Create extends StandardParameters {
6171
+ /**
6172
+ * Required. The ID to use for the blue-green deployment, which will become the final component of the deployment's resource name. The ID must be unique within the given project and location and between 2-63 characters.
6173
+ */
6174
+ blueGreenDeploymentId?: string;
6175
+ /**
6176
+ * Required. The parent resource where this blue-green deployment will be created. Format: projects/{project\}/locations/{location\}
6177
+ */
6178
+ parent?: string;
6179
+
6180
+ /**
6181
+ * Request body metadata
6182
+ */
6183
+ requestBody?: Schema$BlueGreenDeployment;
6184
+ }
6185
+ export interface Params$Resource$Bluegreendeployments$Delete extends StandardParameters {
6186
+ /**
6187
+ * Optional. If set to true, and the switchover is complete, this deletes the old source instance along with the deployment.
6188
+ */
6189
+ deleteOldSource?: boolean;
6190
+ /**
6191
+ * Required. The name of the blue-green deployment to delete. Format: projects/{project\}/locations/{location\}/blueGreenDeployments/{blue_green_deployment\}
6192
+ */
6193
+ name?: string;
6194
+ }
6195
+ export interface Params$Resource$Bluegreendeployments$Get extends StandardParameters {
6196
+ /**
6197
+ * Required. The name of the blue-green deployment to retrieve. Format: projects/{project\}/locations/{location\}/blueGreenDeployments/{blue_green_deployment\}
6198
+ */
6199
+ name?: string;
6200
+ /**
6201
+ * Optional. Specifies whether to return the basic or detailed view of the resource in the response.
6202
+ */
6203
+ view?: string;
6204
+ }
6205
+ export interface Params$Resource$Bluegreendeployments$List extends StandardParameters {
6206
+ /**
6207
+ * Optional. A filter expression that filters the results.
6208
+ */
6209
+ filter?: string;
6210
+ /**
6211
+ * Optional. A comma-separated list of fields to order the results by.
6212
+ */
6213
+ orderBy?: string;
6214
+ /**
6215
+ * Optional. The maximum number of deployments to return. The service may return fewer deployments than this value. If unspecified, at most 500 deployments are returned. The maximum value is 1000; values above 1000 are treated as 1000.
6216
+ */
6217
+ pageSize?: number;
6218
+ /**
6219
+ * Optional. A page token, received from a previous `ListBlueGreenDeployments` call. Provide this to retrieve the subsequent page.
6220
+ */
6221
+ pageToken?: string;
6222
+ /**
6223
+ * Required. The parent resource whose blue-green deployments are to be listed. Format: projects/{project\}/locations/{location\}
6224
+ */
6225
+ parent?: string;
6226
+ }
6227
+ export interface Params$Resource$Bluegreendeployments$Switchover extends StandardParameters {
6228
+ /**
6229
+ * Required. The name of the blue-green deployment to switch over. Format: projects/{project\}/locations/{location\}/blueGreenDeployments/{blue_green_deployment\}
6230
+ */
6231
+ name?: string;
6232
+
6233
+ /**
6234
+ * Request body metadata
6235
+ */
6236
+ requestBody?: Schema$SwitchoverBlueGreenDeploymentRequest;
6237
+ }
6238
+
6239
+ export class Resource$Connect {
6240
+ context: APIRequestContext;
6241
+ constructor(context: APIRequestContext) {
6242
+ this.context = context;
6243
+ }
6244
+
6245
+ /**
6246
+ * Generates a short-lived X509 certificate containing the provided public key and signed by a private key specific to the target instance. Users may use the certificate to authenticate as themselves when connecting to the database.
6247
+ * @example
6248
+ * ```js
6249
+ * // Before running the sample:
6250
+ * // - Enable the API at:
6251
+ * // https://console.developers.google.com/apis/api/sqladmin.googleapis.com
6252
+ * // - Login into gcloud by running:
6253
+ * // ```sh
6254
+ * // $ gcloud auth application-default login
6255
+ * // ```
6256
+ * // - Install the npm module by running:
6257
+ * // ```sh
6258
+ * // $ npm install googleapis
6259
+ * // ```
6260
+ *
6261
+ * const {google} = require('googleapis');
6262
+ * const sqladmin = google.sqladmin('v1');
6263
+ *
6264
+ * async function main() {
6265
+ * const auth = new google.auth.GoogleAuth({
6266
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
6267
+ * scopes: [
6268
+ * 'https://www.googleapis.com/auth/cloud-platform',
6269
+ * 'https://www.googleapis.com/auth/sqlservice.admin',
6270
+ * ],
6271
+ * });
6272
+ *
6273
+ * // Acquire an auth client, and bind it to all future calls
6274
+ * const authClient = await auth.getClient();
6275
+ * google.options({auth: authClient});
6276
+ *
6277
+ * // Do the magic
6278
+ * const res = await sql.connect.generateEphemeral({
6279
+ * // Cloud SQL instance ID. This does not include the project ID.
6280
+ * instance: 'placeholder-value',
6281
+ * // Project ID of the project that contains the instance.
6282
+ * project: 'placeholder-value',
6283
+ *
6284
+ * // Request body metadata
6285
+ * requestBody: {
6286
+ * // request body parameters
6287
+ * // {
6288
+ * // "access_token": "my_access_token",
6289
+ * // "public_key": "my_public_key",
6290
+ * // "readTime": "my_readTime",
6291
+ * // "validDuration": "my_validDuration"
6292
+ * // }
6293
+ * },
6294
+ * });
6295
+ * console.log(res.data);
6296
+ *
6297
+ * // Example response
6298
+ * // {
6299
+ * // "ephemeralCert": {}
6300
+ * // }
6301
+ * }
6302
+ *
6303
+ * main().catch(e => {
6304
+ * console.error(e);
6305
+ * throw e;
6306
+ * });
6307
+ *
6308
+ * ```
6309
+ *
6310
+ * @param params - Parameters for request
6311
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
6312
+ * @param callback - Optional callback that handles the response.
6313
+ * @returns A promise if used with async/await, or void if used with a callback.
6314
+ */
6315
+ generateEphemeralCert(
6316
+ params: Params$Resource$Connect$Generateephemeralcert,
6317
+ options: StreamMethodOptions
6318
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
6319
+ generateEphemeralCert(
6320
+ params?: Params$Resource$Connect$Generateephemeralcert,
6321
+ options?: MethodOptions
6322
+ ): Promise<GaxiosResponseWithHTTP2<Schema$GenerateEphemeralCertResponse>>;
6323
+ generateEphemeralCert(
6324
+ params: Params$Resource$Connect$Generateephemeralcert,
6325
+ options: StreamMethodOptions | BodyResponseCallback<Readable>,
6326
+ callback: BodyResponseCallback<Readable>
6327
+ ): void;
6328
+ generateEphemeralCert(
6329
+ params: Params$Resource$Connect$Generateephemeralcert,
6330
+ options:
6331
+ | MethodOptions
6332
+ | BodyResponseCallback<Schema$GenerateEphemeralCertResponse>,
6333
+ callback: BodyResponseCallback<Schema$GenerateEphemeralCertResponse>
6334
+ ): void;
6335
+ generateEphemeralCert(
6336
+ params: Params$Resource$Connect$Generateephemeralcert,
6337
+ callback: BodyResponseCallback<Schema$GenerateEphemeralCertResponse>
6338
+ ): void;
6339
+ generateEphemeralCert(
6340
+ callback: BodyResponseCallback<Schema$GenerateEphemeralCertResponse>
6341
+ ): void;
6342
+ generateEphemeralCert(
6343
+ paramsOrCallback?:
6344
+ | Params$Resource$Connect$Generateephemeralcert
6345
+ | BodyResponseCallback<Schema$GenerateEphemeralCertResponse>
6346
+ | BodyResponseCallback<Readable>,
6347
+ optionsOrCallback?:
6348
+ | MethodOptions
6349
+ | StreamMethodOptions
6350
+ | BodyResponseCallback<Schema$GenerateEphemeralCertResponse>
5174
6351
  | BodyResponseCallback<Readable>,
5175
6352
  callback?:
5176
6353
  | BodyResponseCallback<Schema$GenerateEphemeralCertResponse>
@@ -5202,7 +6379,166 @@ export namespace sqladmin_v1 {
5202
6379
  rootUrl +
5203
6380
  '/v1/projects/{project}/instances/{instance}:generateEphemeralCert'
5204
6381
  ).replace(/([^:]\/)\/+/g, '$1'),
5205
- method: 'POST',
6382
+ method: 'POST',
6383
+ apiVersion: '',
6384
+ },
6385
+ options
6386
+ ),
6387
+ params,
6388
+ requiredParams: ['project', 'instance'],
6389
+ pathParams: ['instance', 'project'],
6390
+ context: this.context,
6391
+ };
6392
+ if (callback) {
6393
+ createAPIRequest<Schema$GenerateEphemeralCertResponse>(
6394
+ parameters,
6395
+ callback as BodyResponseCallback<unknown>
6396
+ );
6397
+ } else {
6398
+ return createAPIRequest<Schema$GenerateEphemeralCertResponse>(
6399
+ parameters
6400
+ );
6401
+ }
6402
+ }
6403
+
6404
+ /**
6405
+ * Retrieves connect settings about a Cloud SQL instance.
6406
+ * @example
6407
+ * ```js
6408
+ * // Before running the sample:
6409
+ * // - Enable the API at:
6410
+ * // https://console.developers.google.com/apis/api/sqladmin.googleapis.com
6411
+ * // - Login into gcloud by running:
6412
+ * // ```sh
6413
+ * // $ gcloud auth application-default login
6414
+ * // ```
6415
+ * // - Install the npm module by running:
6416
+ * // ```sh
6417
+ * // $ npm install googleapis
6418
+ * // ```
6419
+ *
6420
+ * const {google} = require('googleapis');
6421
+ * const sqladmin = google.sqladmin('v1');
6422
+ *
6423
+ * async function main() {
6424
+ * const auth = new google.auth.GoogleAuth({
6425
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
6426
+ * scopes: [
6427
+ * 'https://www.googleapis.com/auth/cloud-platform',
6428
+ * 'https://www.googleapis.com/auth/sqlservice.admin',
6429
+ * ],
6430
+ * });
6431
+ *
6432
+ * // Acquire an auth client, and bind it to all future calls
6433
+ * const authClient = await auth.getClient();
6434
+ * google.options({auth: authClient});
6435
+ *
6436
+ * // Do the magic
6437
+ * const res = await sql.connect.get({
6438
+ * // Cloud SQL instance ID. This does not include the project ID.
6439
+ * instance: 'placeholder-value',
6440
+ * // Project ID of the project that contains the instance.
6441
+ * project: 'placeholder-value',
6442
+ * // Optional. Optional snapshot read timestamp to trade freshness for performance.
6443
+ * readTime: 'placeholder-value',
6444
+ * });
6445
+ * console.log(res.data);
6446
+ *
6447
+ * // Example response
6448
+ * // {
6449
+ * // "backendType": "my_backendType",
6450
+ * // "connectionName": "my_connectionName",
6451
+ * // "customSubjectAlternativeNames": [],
6452
+ * // "databaseVersion": "my_databaseVersion",
6453
+ * // "dnsName": "my_dnsName",
6454
+ * // "dnsNames": [],
6455
+ * // "ipAddresses": [],
6456
+ * // "kind": "my_kind",
6457
+ * // "mdxProtocolSupport": [],
6458
+ * // "nodeCount": 0,
6459
+ * // "nodes": [],
6460
+ * // "pscEnabled": false,
6461
+ * // "region": "my_region",
6462
+ * // "serverCaCert": {},
6463
+ * // "serverCaMode": "my_serverCaMode"
6464
+ * // }
6465
+ * }
6466
+ *
6467
+ * main().catch(e => {
6468
+ * console.error(e);
6469
+ * throw e;
6470
+ * });
6471
+ *
6472
+ * ```
6473
+ *
6474
+ * @param params - Parameters for request
6475
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
6476
+ * @param callback - Optional callback that handles the response.
6477
+ * @returns A promise if used with async/await, or void if used with a callback.
6478
+ */
6479
+ get(
6480
+ params: Params$Resource$Connect$Get,
6481
+ options: StreamMethodOptions
6482
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
6483
+ get(
6484
+ params?: Params$Resource$Connect$Get,
6485
+ options?: MethodOptions
6486
+ ): Promise<GaxiosResponseWithHTTP2<Schema$ConnectSettings>>;
6487
+ get(
6488
+ params: Params$Resource$Connect$Get,
6489
+ options: StreamMethodOptions | BodyResponseCallback<Readable>,
6490
+ callback: BodyResponseCallback<Readable>
6491
+ ): void;
6492
+ get(
6493
+ params: Params$Resource$Connect$Get,
6494
+ options: MethodOptions | BodyResponseCallback<Schema$ConnectSettings>,
6495
+ callback: BodyResponseCallback<Schema$ConnectSettings>
6496
+ ): void;
6497
+ get(
6498
+ params: Params$Resource$Connect$Get,
6499
+ callback: BodyResponseCallback<Schema$ConnectSettings>
6500
+ ): void;
6501
+ get(callback: BodyResponseCallback<Schema$ConnectSettings>): void;
6502
+ get(
6503
+ paramsOrCallback?:
6504
+ | Params$Resource$Connect$Get
6505
+ | BodyResponseCallback<Schema$ConnectSettings>
6506
+ | BodyResponseCallback<Readable>,
6507
+ optionsOrCallback?:
6508
+ | MethodOptions
6509
+ | StreamMethodOptions
6510
+ | BodyResponseCallback<Schema$ConnectSettings>
6511
+ | BodyResponseCallback<Readable>,
6512
+ callback?:
6513
+ | BodyResponseCallback<Schema$ConnectSettings>
6514
+ | BodyResponseCallback<Readable>
6515
+ ):
6516
+ | void
6517
+ | Promise<GaxiosResponseWithHTTP2<Schema$ConnectSettings>>
6518
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
6519
+ let params = (paramsOrCallback || {}) as Params$Resource$Connect$Get;
6520
+ let options = (optionsOrCallback || {}) as MethodOptions;
6521
+
6522
+ if (typeof paramsOrCallback === 'function') {
6523
+ callback = paramsOrCallback;
6524
+ params = {} as Params$Resource$Connect$Get;
6525
+ options = {};
6526
+ }
6527
+
6528
+ if (typeof optionsOrCallback === 'function') {
6529
+ callback = optionsOrCallback;
6530
+ options = {};
6531
+ }
6532
+
6533
+ const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/';
6534
+ const parameters = {
6535
+ options: Object.assign(
6536
+ {
6537
+ url: (
6538
+ rootUrl +
6539
+ '/v1/projects/{project}/instances/{instance}/connectSettings'
6540
+ ).replace(/([^:]\/)\/+/g, '$1'),
6541
+ method: 'GET',
5206
6542
  apiVersion: '',
5207
6543
  },
5208
6544
  options
@@ -5213,19 +6549,17 @@ export namespace sqladmin_v1 {
5213
6549
  context: this.context,
5214
6550
  };
5215
6551
  if (callback) {
5216
- createAPIRequest<Schema$GenerateEphemeralCertResponse>(
6552
+ createAPIRequest<Schema$ConnectSettings>(
5217
6553
  parameters,
5218
6554
  callback as BodyResponseCallback<unknown>
5219
6555
  );
5220
6556
  } else {
5221
- return createAPIRequest<Schema$GenerateEphemeralCertResponse>(
5222
- parameters
5223
- );
6557
+ return createAPIRequest<Schema$ConnectSettings>(parameters);
5224
6558
  }
5225
6559
  }
5226
6560
 
5227
6561
  /**
5228
- * Retrieves connect settings about a Cloud SQL instance.
6562
+ * Retrieves connect settings about a Cloud SQL instance using the instance DNS name.
5229
6563
  * @example
5230
6564
  * ```js
5231
6565
  * // Before running the sample:
@@ -5257,19 +6591,18 @@ export namespace sqladmin_v1 {
5257
6591
  * google.options({auth: authClient});
5258
6592
  *
5259
6593
  * // Do the magic
5260
- * const res = await sql.connect.get({
5261
- * // Cloud SQL instance ID. This does not include the project ID.
5262
- * instance: 'placeholder-value',
5263
- * // Project ID of the project that contains the instance.
5264
- * project: 'placeholder-value',
5265
- * // Optional. Optional snapshot read timestamp to trade freshness for performance.
5266
- * readTime: 'placeholder-value',
6594
+ * const res = await sql.connect.resolve({
6595
+ * // Required. Cloud SQL instance ID. This does not include the project ID.
6596
+ * dnsName: 'placeholder-value',
6597
+ * // Required. The region of the instance.
6598
+ * location: 'placeholder-value',
5267
6599
  * });
5268
6600
  * console.log(res.data);
5269
6601
  *
5270
6602
  * // Example response
5271
6603
  * // {
5272
6604
  * // "backendType": "my_backendType",
6605
+ * // "connectionName": "my_connectionName",
5273
6606
  * // "customSubjectAlternativeNames": [],
5274
6607
  * // "databaseVersion": "my_databaseVersion",
5275
6608
  * // "dnsName": "my_dnsName",
@@ -5298,32 +6631,32 @@ export namespace sqladmin_v1 {
5298
6631
  * @param callback - Optional callback that handles the response.
5299
6632
  * @returns A promise if used with async/await, or void if used with a callback.
5300
6633
  */
5301
- get(
5302
- params: Params$Resource$Connect$Get,
6634
+ resolve(
6635
+ params: Params$Resource$Connect$Resolve,
5303
6636
  options: StreamMethodOptions
5304
6637
  ): Promise<GaxiosResponseWithHTTP2<Readable>>;
5305
- get(
5306
- params?: Params$Resource$Connect$Get,
6638
+ resolve(
6639
+ params?: Params$Resource$Connect$Resolve,
5307
6640
  options?: MethodOptions
5308
6641
  ): Promise<GaxiosResponseWithHTTP2<Schema$ConnectSettings>>;
5309
- get(
5310
- params: Params$Resource$Connect$Get,
6642
+ resolve(
6643
+ params: Params$Resource$Connect$Resolve,
5311
6644
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
5312
6645
  callback: BodyResponseCallback<Readable>
5313
6646
  ): void;
5314
- get(
5315
- params: Params$Resource$Connect$Get,
6647
+ resolve(
6648
+ params: Params$Resource$Connect$Resolve,
5316
6649
  options: MethodOptions | BodyResponseCallback<Schema$ConnectSettings>,
5317
6650
  callback: BodyResponseCallback<Schema$ConnectSettings>
5318
6651
  ): void;
5319
- get(
5320
- params: Params$Resource$Connect$Get,
6652
+ resolve(
6653
+ params: Params$Resource$Connect$Resolve,
5321
6654
  callback: BodyResponseCallback<Schema$ConnectSettings>
5322
6655
  ): void;
5323
- get(callback: BodyResponseCallback<Schema$ConnectSettings>): void;
5324
- get(
6656
+ resolve(callback: BodyResponseCallback<Schema$ConnectSettings>): void;
6657
+ resolve(
5325
6658
  paramsOrCallback?:
5326
- | Params$Resource$Connect$Get
6659
+ | Params$Resource$Connect$Resolve
5327
6660
  | BodyResponseCallback<Schema$ConnectSettings>
5328
6661
  | BodyResponseCallback<Readable>,
5329
6662
  optionsOrCallback?:
@@ -5338,12 +6671,12 @@ export namespace sqladmin_v1 {
5338
6671
  | void
5339
6672
  | Promise<GaxiosResponseWithHTTP2<Schema$ConnectSettings>>
5340
6673
  | Promise<GaxiosResponseWithHTTP2<Readable>> {
5341
- let params = (paramsOrCallback || {}) as Params$Resource$Connect$Get;
6674
+ let params = (paramsOrCallback || {}) as Params$Resource$Connect$Resolve;
5342
6675
  let options = (optionsOrCallback || {}) as MethodOptions;
5343
6676
 
5344
6677
  if (typeof paramsOrCallback === 'function') {
5345
6678
  callback = paramsOrCallback;
5346
- params = {} as Params$Resource$Connect$Get;
6679
+ params = {} as Params$Resource$Connect$Resolve;
5347
6680
  options = {};
5348
6681
  }
5349
6682
 
@@ -5358,7 +6691,7 @@ export namespace sqladmin_v1 {
5358
6691
  {
5359
6692
  url: (
5360
6693
  rootUrl +
5361
- '/v1/projects/{project}/instances/{instance}/connectSettings'
6694
+ '/v1/locations/{location}/dns/{dnsName}:resolveConnectSettings'
5362
6695
  ).replace(/([^:]\/)\/+/g, '$1'),
5363
6696
  method: 'GET',
5364
6697
  apiVersion: '',
@@ -5366,8 +6699,8 @@ export namespace sqladmin_v1 {
5366
6699
  options
5367
6700
  ),
5368
6701
  params,
5369
- requiredParams: ['project', 'instance'],
5370
- pathParams: ['instance', 'project'],
6702
+ requiredParams: ['location', 'dnsName'],
6703
+ pathParams: ['dnsName', 'location'],
5371
6704
  context: this.context,
5372
6705
  };
5373
6706
  if (callback) {
@@ -5410,6 +6743,16 @@ export namespace sqladmin_v1 {
5410
6743
  */
5411
6744
  readTime?: string;
5412
6745
  }
6746
+ export interface Params$Resource$Connect$Resolve extends StandardParameters {
6747
+ /**
6748
+ * Required. Cloud SQL instance ID. This does not include the project ID.
6749
+ */
6750
+ dnsName?: string;
6751
+ /**
6752
+ * Required. The region of the instance.
6753
+ */
6754
+ location?: string;
6755
+ }
5413
6756
 
5414
6757
  export class Resource$Databases {
5415
6758
  context: APIRequestContext;
@@ -5455,6 +6798,8 @@ export namespace sqladmin_v1 {
5455
6798
  * database: 'placeholder-value',
5456
6799
  * // Database instance ID. This does not include the project ID.
5457
6800
  * instance: 'placeholder-value',
6801
+ * // Optional. Region of the Cloud SQL instance.
6802
+ * location: 'placeholder-value',
5458
6803
  * // Project ID of the project that contains the instance.
5459
6804
  * project: 'placeholder-value',
5460
6805
  * });
@@ -5531,8 +6876,7 @@ export namespace sqladmin_v1 {
5531
6876
  | BodyResponseCallback<Schema$Operation>
5532
6877
  | BodyResponseCallback<Readable>,
5533
6878
  callback?:
5534
- | BodyResponseCallback<Schema$Operation>
5535
- | BodyResponseCallback<Readable>
6879
+ BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
5536
6880
  ):
5537
6881
  | void
5538
6882
  | Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
@@ -5617,6 +6961,8 @@ export namespace sqladmin_v1 {
5617
6961
  * database: 'placeholder-value',
5618
6962
  * // Database instance ID. This does not include the project ID.
5619
6963
  * instance: 'placeholder-value',
6964
+ * // Optional. Region of the Cloud SQL instance.
6965
+ * location: 'placeholder-value',
5620
6966
  * // Project ID of the project that contains the instance.
5621
6967
  * project: 'placeholder-value',
5622
6968
  * });
@@ -5682,8 +7028,7 @@ export namespace sqladmin_v1 {
5682
7028
  | BodyResponseCallback<Schema$Database>
5683
7029
  | BodyResponseCallback<Readable>,
5684
7030
  callback?:
5685
- | BodyResponseCallback<Schema$Database>
5686
- | BodyResponseCallback<Readable>
7031
+ BodyResponseCallback<Schema$Database> | BodyResponseCallback<Readable>
5687
7032
  ):
5688
7033
  | void
5689
7034
  | Promise<GaxiosResponseWithHTTP2<Schema$Database>>
@@ -5766,6 +7111,8 @@ export namespace sqladmin_v1 {
5766
7111
  * const res = await sql.databases.insert({
5767
7112
  * // Database instance ID. This does not include the project ID.
5768
7113
  * instance: 'placeholder-value',
7114
+ * // Optional. Region of the Cloud SQL instance.
7115
+ * location: 'placeholder-value',
5769
7116
  * // Project ID of the project that contains the instance.
5770
7117
  * project: 'placeholder-value',
5771
7118
  *
@@ -5858,8 +7205,7 @@ export namespace sqladmin_v1 {
5858
7205
  | BodyResponseCallback<Schema$Operation>
5859
7206
  | BodyResponseCallback<Readable>,
5860
7207
  callback?:
5861
- | BodyResponseCallback<Schema$Operation>
5862
- | BodyResponseCallback<Readable>
7208
+ BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
5863
7209
  ):
5864
7210
  | void
5865
7211
  | Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
@@ -5941,6 +7287,8 @@ export namespace sqladmin_v1 {
5941
7287
  * const res = await sql.databases.list({
5942
7288
  * // Cloud SQL instance ID. This does not include the project ID.
5943
7289
  * instance: 'placeholder-value',
7290
+ * // Optional. Region of the Cloud SQL instance.
7291
+ * location: 'placeholder-value',
5944
7292
  * // Project ID of the project that contains the instance.
5945
7293
  * project: 'placeholder-value',
5946
7294
  * });
@@ -5981,8 +7329,7 @@ export namespace sqladmin_v1 {
5981
7329
  list(
5982
7330
  params: Params$Resource$Databases$List,
5983
7331
  options:
5984
- | MethodOptions
5985
- | BodyResponseCallback<Schema$DatabasesListResponse>,
7332
+ MethodOptions | BodyResponseCallback<Schema$DatabasesListResponse>,
5986
7333
  callback: BodyResponseCallback<Schema$DatabasesListResponse>
5987
7334
  ): void;
5988
7335
  list(
@@ -6086,6 +7433,8 @@ export namespace sqladmin_v1 {
6086
7433
  * database: 'placeholder-value',
6087
7434
  * // Database instance ID. This does not include the project ID.
6088
7435
  * instance: 'placeholder-value',
7436
+ * // Optional. Region of the Cloud SQL instance.
7437
+ * location: 'placeholder-value',
6089
7438
  * // Project ID of the project that contains the instance.
6090
7439
  * project: 'placeholder-value',
6091
7440
  *
@@ -6178,8 +7527,7 @@ export namespace sqladmin_v1 {
6178
7527
  | BodyResponseCallback<Schema$Operation>
6179
7528
  | BodyResponseCallback<Readable>,
6180
7529
  callback?:
6181
- | BodyResponseCallback<Schema$Operation>
6182
- | BodyResponseCallback<Readable>
7530
+ BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
6183
7531
  ):
6184
7532
  | void
6185
7533
  | Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
@@ -6264,6 +7612,8 @@ export namespace sqladmin_v1 {
6264
7612
  * database: 'placeholder-value',
6265
7613
  * // Database instance ID. This does not include the project ID.
6266
7614
  * instance: 'placeholder-value',
7615
+ * // Optional. Region of the Cloud SQL instance.
7616
+ * location: 'placeholder-value',
6267
7617
  * // Project ID of the project that contains the instance.
6268
7618
  * project: 'placeholder-value',
6269
7619
  *
@@ -6356,8 +7706,7 @@ export namespace sqladmin_v1 {
6356
7706
  | BodyResponseCallback<Schema$Operation>
6357
7707
  | BodyResponseCallback<Readable>,
6358
7708
  callback?:
6359
- | BodyResponseCallback<Schema$Operation>
6360
- | BodyResponseCallback<Readable>
7709
+ BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
6361
7710
  ):
6362
7711
  | void
6363
7712
  | Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
@@ -6414,6 +7763,10 @@ export namespace sqladmin_v1 {
6414
7763
  * Database instance ID. This does not include the project ID.
6415
7764
  */
6416
7765
  instance?: string;
7766
+ /**
7767
+ * Optional. Region of the Cloud SQL instance.
7768
+ */
7769
+ location?: string;
6417
7770
  /**
6418
7771
  * Project ID of the project that contains the instance.
6419
7772
  */
@@ -6428,6 +7781,10 @@ export namespace sqladmin_v1 {
6428
7781
  * Database instance ID. This does not include the project ID.
6429
7782
  */
6430
7783
  instance?: string;
7784
+ /**
7785
+ * Optional. Region of the Cloud SQL instance.
7786
+ */
7787
+ location?: string;
6431
7788
  /**
6432
7789
  * Project ID of the project that contains the instance.
6433
7790
  */
@@ -6438,6 +7795,10 @@ export namespace sqladmin_v1 {
6438
7795
  * Database instance ID. This does not include the project ID.
6439
7796
  */
6440
7797
  instance?: string;
7798
+ /**
7799
+ * Optional. Region of the Cloud SQL instance.
7800
+ */
7801
+ location?: string;
6441
7802
  /**
6442
7803
  * Project ID of the project that contains the instance.
6443
7804
  */
@@ -6453,6 +7814,10 @@ export namespace sqladmin_v1 {
6453
7814
  * Cloud SQL instance ID. This does not include the project ID.
6454
7815
  */
6455
7816
  instance?: string;
7817
+ /**
7818
+ * Optional. Region of the Cloud SQL instance.
7819
+ */
7820
+ location?: string;
6456
7821
  /**
6457
7822
  * Project ID of the project that contains the instance.
6458
7823
  */
@@ -6467,6 +7832,10 @@ export namespace sqladmin_v1 {
6467
7832
  * Database instance ID. This does not include the project ID.
6468
7833
  */
6469
7834
  instance?: string;
7835
+ /**
7836
+ * Optional. Region of the Cloud SQL instance.
7837
+ */
7838
+ location?: string;
6470
7839
  /**
6471
7840
  * Project ID of the project that contains the instance.
6472
7841
  */
@@ -6486,6 +7855,10 @@ export namespace sqladmin_v1 {
6486
7855
  * Database instance ID. This does not include the project ID.
6487
7856
  */
6488
7857
  instance?: string;
7858
+ /**
7859
+ * Optional. Region of the Cloud SQL instance.
7860
+ */
7861
+ location?: string;
6489
7862
  /**
6490
7863
  * Project ID of the project that contains the instance.
6491
7864
  */
@@ -6696,6 +8069,8 @@ export namespace sqladmin_v1 {
6696
8069
  * const res = await sql.instances.acquireSsrsLease({
6697
8070
  * // Required. Cloud SQL instance ID. This doesn't include the project ID. It's composed of lowercase letters, numbers, and hyphens, and it must start with a letter. The total length must be 98 characters or less (Example: instance-id).
6698
8071
  * instance: 'placeholder-value',
8072
+ * // Optional. Region of the Cloud SQL instance.
8073
+ * location: 'placeholder-value',
6699
8074
  * // Required. Project ID of the project that contains the instance (Example: project-id).
6700
8075
  * project: 'placeholder-value',
6701
8076
  *
@@ -6856,6 +8231,8 @@ export namespace sqladmin_v1 {
6856
8231
  * const res = await sql.instances.addEntraIdCertificate({
6857
8232
  * // Required. Cloud SQL instance ID. This does not include the project ID.
6858
8233
  * instance: 'placeholder-value',
8234
+ * // Optional. Region of the Cloud SQL instance.
8235
+ * location: 'placeholder-value',
6859
8236
  * // Required. Project ID of the project that contains the instance.
6860
8237
  * project: 'placeholder-value',
6861
8238
  * });
@@ -6934,8 +8311,7 @@ export namespace sqladmin_v1 {
6934
8311
  | BodyResponseCallback<Schema$Operation>
6935
8312
  | BodyResponseCallback<Readable>,
6936
8313
  callback?:
6937
- | BodyResponseCallback<Schema$Operation>
6938
- | BodyResponseCallback<Readable>
8314
+ BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
6939
8315
  ):
6940
8316
  | void
6941
8317
  | Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
@@ -7019,6 +8395,8 @@ export namespace sqladmin_v1 {
7019
8395
  * const res = await sql.instances.addServerCa({
7020
8396
  * // Cloud SQL instance ID. This does not include the project ID.
7021
8397
  * instance: 'placeholder-value',
8398
+ * // Optional. Region of the Cloud SQL instance.
8399
+ * location: 'placeholder-value',
7022
8400
  * // Project ID of the project that contains the instance.
7023
8401
  * project: 'placeholder-value',
7024
8402
  * });
@@ -7095,8 +8473,7 @@ export namespace sqladmin_v1 {
7095
8473
  | BodyResponseCallback<Schema$Operation>
7096
8474
  | BodyResponseCallback<Readable>,
7097
8475
  callback?:
7098
- | BodyResponseCallback<Schema$Operation>
7099
- | BodyResponseCallback<Readable>
8476
+ BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
7100
8477
  ):
7101
8478
  | void
7102
8479
  | Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
@@ -7180,6 +8557,8 @@ export namespace sqladmin_v1 {
7180
8557
  * const res = await sql.instances.addServerCertificate({
7181
8558
  * // Cloud SQL instance ID. This does not include the project ID.
7182
8559
  * instance: 'placeholder-value',
8560
+ * // Optional. Region of the Cloud SQL instance.
8561
+ * location: 'placeholder-value',
7183
8562
  * // Project ID of the project that contains the instance.
7184
8563
  * project: 'placeholder-value',
7185
8564
  * });
@@ -7258,8 +8637,7 @@ export namespace sqladmin_v1 {
7258
8637
  | BodyResponseCallback<Schema$Operation>
7259
8638
  | BodyResponseCallback<Readable>,
7260
8639
  callback?:
7261
- | BodyResponseCallback<Schema$Operation>
7262
- | BodyResponseCallback<Readable>
8640
+ BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
7263
8641
  ):
7264
8642
  | void
7265
8643
  | Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
@@ -7343,6 +8721,8 @@ export namespace sqladmin_v1 {
7343
8721
  * const res = await sql.instances.clone({
7344
8722
  * // Required. The ID of the Cloud SQL instance to be cloned (source). This does not include the project ID.
7345
8723
  * instance: 'placeholder-value',
8724
+ * // Optional. Region of the Cloud SQL instance.
8725
+ * location: 'placeholder-value',
7346
8726
  * // Required. Project ID of the source Cloud SQL instance.
7347
8727
  * project: 'placeholder-value',
7348
8728
  *
@@ -7427,8 +8807,7 @@ export namespace sqladmin_v1 {
7427
8807
  | BodyResponseCallback<Schema$Operation>
7428
8808
  | BodyResponseCallback<Readable>,
7429
8809
  callback?:
7430
- | BodyResponseCallback<Schema$Operation>
7431
- | BodyResponseCallback<Readable>
8810
+ BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
7432
8811
  ):
7433
8812
  | void
7434
8813
  | Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
@@ -7518,6 +8897,8 @@ export namespace sqladmin_v1 {
7518
8897
  * finalBackupTtlDays: 'placeholder-value',
7519
8898
  * // Cloud SQL instance ID. This does not include the project ID.
7520
8899
  * instance: 'placeholder-value',
8900
+ * // Optional. Region of the Cloud SQL instance.
8901
+ * location: 'placeholder-value',
7521
8902
  * // Project ID of the project that contains the instance to be deleted.
7522
8903
  * project: 'placeholder-value',
7523
8904
  * });
@@ -7594,8 +8975,7 @@ export namespace sqladmin_v1 {
7594
8975
  | BodyResponseCallback<Schema$Operation>
7595
8976
  | BodyResponseCallback<Readable>,
7596
8977
  callback?:
7597
- | BodyResponseCallback<Schema$Operation>
7598
- | BodyResponseCallback<Readable>
8978
+ BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
7599
8979
  ):
7600
8980
  | void
7601
8981
  | Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
@@ -7677,6 +9057,8 @@ export namespace sqladmin_v1 {
7677
9057
  * const res = await sql.instances.demote({
7678
9058
  * // Required. Cloud SQL instance name.
7679
9059
  * instance: 'placeholder-value',
9060
+ * // Optional. Region of the Cloud SQL instance.
9061
+ * location: 'placeholder-value',
7680
9062
  * // Required. ID of the project that contains the instance.
7681
9063
  * project: 'placeholder-value',
7682
9064
  *
@@ -7761,8 +9143,7 @@ export namespace sqladmin_v1 {
7761
9143
  | BodyResponseCallback<Schema$Operation>
7762
9144
  | BodyResponseCallback<Readable>,
7763
9145
  callback?:
7764
- | BodyResponseCallback<Schema$Operation>
7765
- | BodyResponseCallback<Readable>
9146
+ BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
7766
9147
  ):
7767
9148
  | void
7768
9149
  | Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
@@ -7844,6 +9225,8 @@ export namespace sqladmin_v1 {
7844
9225
  * const res = await sql.instances.demoteMaster({
7845
9226
  * // Cloud SQL instance name.
7846
9227
  * instance: 'placeholder-value',
9228
+ * // Optional. Region of the Cloud SQL instance.
9229
+ * location: 'placeholder-value',
7847
9230
  * // ID of the project that contains the instance.
7848
9231
  * project: 'placeholder-value',
7849
9232
  *
@@ -7928,8 +9311,7 @@ export namespace sqladmin_v1 {
7928
9311
  | BodyResponseCallback<Schema$Operation>
7929
9312
  | BodyResponseCallback<Readable>,
7930
9313
  callback?:
7931
- | BodyResponseCallback<Schema$Operation>
7932
- | BodyResponseCallback<Readable>
9314
+ BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
7933
9315
  ):
7934
9316
  | void
7935
9317
  | Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
@@ -8013,6 +9395,8 @@ export namespace sqladmin_v1 {
8013
9395
  * const res = await sql.instances.executeSql({
8014
9396
  * // Required. Database instance ID. This does not include the project ID.
8015
9397
  * instance: 'placeholder-value',
9398
+ * // Optional. Region of the Cloud SQL instance.
9399
+ * location: 'placeholder-value',
8016
9400
  * // Required. Project ID of the project that contains the instance.
8017
9401
  * project: 'placeholder-value',
8018
9402
  *
@@ -8024,6 +9408,7 @@ export namespace sqladmin_v1 {
8024
9408
  * // "autoIamAuthn": false,
8025
9409
  * // "database": "my_database",
8026
9410
  * // "partialResultMode": "my_partialResultMode",
9411
+ * // "passwordSecretVersion": "my_passwordSecretVersion",
8027
9412
  * // "rowLimit": "my_rowLimit",
8028
9413
  * // "sqlStatement": "my_sqlStatement",
8029
9414
  * // "user": "my_user"
@@ -8174,6 +9559,8 @@ export namespace sqladmin_v1 {
8174
9559
  * const res = await sql.instances.export({
8175
9560
  * // Cloud SQL instance ID. This does not include the project ID.
8176
9561
  * instance: 'placeholder-value',
9562
+ * // Optional. Region of the Cloud SQL instance.
9563
+ * location: 'placeholder-value',
8177
9564
  * // Project ID of the project that contains the instance to be exported.
8178
9565
  * project: 'placeholder-value',
8179
9566
  *
@@ -8258,8 +9645,7 @@ export namespace sqladmin_v1 {
8258
9645
  | BodyResponseCallback<Schema$Operation>
8259
9646
  | BodyResponseCallback<Readable>,
8260
9647
  callback?:
8261
- | BodyResponseCallback<Schema$Operation>
8262
- | BodyResponseCallback<Readable>
9648
+ BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
8263
9649
  ):
8264
9650
  | void
8265
9651
  | Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
@@ -8341,6 +9727,8 @@ export namespace sqladmin_v1 {
8341
9727
  * const res = await sql.instances.failover({
8342
9728
  * // Cloud SQL instance ID. This does not include the project ID.
8343
9729
  * instance: 'placeholder-value',
9730
+ * // Optional. Region of the Cloud SQL instance.
9731
+ * location: 'placeholder-value',
8344
9732
  * // ID of the project that contains the read replica.
8345
9733
  * project: 'placeholder-value',
8346
9734
  *
@@ -8425,8 +9813,7 @@ export namespace sqladmin_v1 {
8425
9813
  | BodyResponseCallback<Schema$Operation>
8426
9814
  | BodyResponseCallback<Readable>,
8427
9815
  callback?:
8428
- | BodyResponseCallback<Schema$Operation>
8429
- | BodyResponseCallback<Readable>
9816
+ BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
8430
9817
  ):
8431
9818
  | void
8432
9819
  | Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
@@ -8509,6 +9896,8 @@ export namespace sqladmin_v1 {
8509
9896
  * const res = await sql.instances.get({
8510
9897
  * // Required. Database instance ID. This does not include the project ID.
8511
9898
  * instance: 'placeholder-value',
9899
+ * // Optional. Region of the Cloud SQL instance.
9900
+ * location: 'placeholder-value',
8512
9901
  * // Required. Project ID of the project that contains the instance.
8513
9902
  * project: 'placeholder-value',
8514
9903
  * });
@@ -8521,8 +9910,10 @@ export namespace sqladmin_v1 {
8521
9910
  * // "connectionName": "my_connectionName",
8522
9911
  * // "createTime": "my_createTime",
8523
9912
  * // "currentDiskSize": "my_currentDiskSize",
9913
+ * // "databaseCenterIntegrationEnabled": false,
8524
9914
  * // "databaseInstalledVersion": "my_databaseInstalledVersion",
8525
9915
  * // "databaseVersion": "my_databaseVersion",
9916
+ * // "deploymentInfo": {},
8526
9917
  * // "diskEncryptionConfiguration": {},
8527
9918
  * // "diskEncryptionStatus": {},
8528
9919
  * // "dnsName": "my_dnsName",
@@ -8696,6 +10087,8 @@ export namespace sqladmin_v1 {
8696
10087
  * const res = await sql.instances.import({
8697
10088
  * // Cloud SQL instance ID. This does not include the project ID.
8698
10089
  * instance: 'placeholder-value',
10090
+ * // Optional. Region of the Cloud SQL instance.
10091
+ * location: 'placeholder-value',
8699
10092
  * // Project ID of the project that contains the instance.
8700
10093
  * project: 'placeholder-value',
8701
10094
  *
@@ -8780,8 +10173,7 @@ export namespace sqladmin_v1 {
8780
10173
  | BodyResponseCallback<Schema$Operation>
8781
10174
  | BodyResponseCallback<Readable>,
8782
10175
  callback?:
8783
- | BodyResponseCallback<Schema$Operation>
8784
- | BodyResponseCallback<Readable>
10176
+ BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
8785
10177
  ):
8786
10178
  | void
8787
10179
  | Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
@@ -8861,6 +10253,8 @@ export namespace sqladmin_v1 {
8861
10253
  *
8862
10254
  * // Do the magic
8863
10255
  * const res = await sql.instances.insert({
10256
+ * // Optional. Region of the Cloud SQL instance.
10257
+ * location: 'placeholder-value',
8864
10258
  * // Project ID of the project to which the newly created Cloud SQL instances should belong.
8865
10259
  * project: 'placeholder-value',
8866
10260
  *
@@ -8873,8 +10267,10 @@ export namespace sqladmin_v1 {
8873
10267
  * // "connectionName": "my_connectionName",
8874
10268
  * // "createTime": "my_createTime",
8875
10269
  * // "currentDiskSize": "my_currentDiskSize",
10270
+ * // "databaseCenterIntegrationEnabled": false,
8876
10271
  * // "databaseInstalledVersion": "my_databaseInstalledVersion",
8877
10272
  * // "databaseVersion": "my_databaseVersion",
10273
+ * // "deploymentInfo": {},
8878
10274
  * // "diskEncryptionConfiguration": {},
8879
10275
  * // "diskEncryptionStatus": {},
8880
10276
  * // "dnsName": "my_dnsName",
@@ -8995,8 +10391,7 @@ export namespace sqladmin_v1 {
8995
10391
  | BodyResponseCallback<Schema$Operation>
8996
10392
  | BodyResponseCallback<Readable>,
8997
10393
  callback?:
8998
- | BodyResponseCallback<Schema$Operation>
8999
- | BodyResponseCallback<Readable>
10394
+ BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
9000
10395
  ):
9001
10396
  | void
9002
10397
  | Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
@@ -9079,6 +10474,8 @@ export namespace sqladmin_v1 {
9079
10474
  * const res = await sql.instances.list({
9080
10475
  * // A filter expression that filters resources listed in the response. The expression is in the form of field:value. For example, 'instanceType:CLOUD_SQL_INSTANCE'. Fields can be nested as needed as per their JSON representation, such as 'settings.userLabels.auto_start:true'. Multiple filter queries are space-separated. For example. 'state:RUNNABLE instanceType:CLOUD_SQL_INSTANCE'. By default, each expression is an AND expression. However, you can include AND and OR expressions explicitly.
9081
10476
  * filter: 'placeholder-value',
10477
+ * // Optional. Region of the Cloud SQL instance.
10478
+ * location: 'placeholder-value',
9082
10479
  * // The maximum number of instances to return. The service may return fewer than this value. If unspecified, at most 500 instances are returned. The maximum value is 1000; values above 1000 are coerced to 1000.
9083
10480
  * maxResults: 'placeholder-value',
9084
10481
  * // A previously-returned page token representing part of the larger set of results to view.
@@ -9125,8 +10522,7 @@ export namespace sqladmin_v1 {
9125
10522
  list(
9126
10523
  params: Params$Resource$Instances$List,
9127
10524
  options:
9128
- | MethodOptions
9129
- | BodyResponseCallback<Schema$InstancesListResponse>,
10525
+ MethodOptions | BodyResponseCallback<Schema$InstancesListResponse>,
9130
10526
  callback: BodyResponseCallback<Schema$InstancesListResponse>
9131
10527
  ): void;
9132
10528
  list(
@@ -9229,6 +10625,8 @@ export namespace sqladmin_v1 {
9229
10625
  * const res = await sql.instances.ListEntraIdCertificates({
9230
10626
  * // Required. Cloud SQL instance ID. This does not include the project ID.
9231
10627
  * instance: 'placeholder-value',
10628
+ * // Optional. Region of the Cloud SQL instance.
10629
+ * location: 'placeholder-value',
9232
10630
  * // Required. Project ID of the project that contains the instance.
9233
10631
  * project: 'placeholder-value',
9234
10632
  * });
@@ -9383,6 +10781,8 @@ export namespace sqladmin_v1 {
9383
10781
  * const res = await sql.instances.listServerCas({
9384
10782
  * // Cloud SQL instance ID. This does not include the project ID.
9385
10783
  * instance: 'placeholder-value',
10784
+ * // Optional. Region of the Cloud SQL instance.
10785
+ * location: 'placeholder-value',
9386
10786
  * // Project ID of the project that contains the instance.
9387
10787
  * project: 'placeholder-value',
9388
10788
  * });
@@ -9533,6 +10933,8 @@ export namespace sqladmin_v1 {
9533
10933
  * const res = await sql.instances.ListServerCertificates({
9534
10934
  * // Required. Cloud SQL instance ID. This does not include the project ID.
9535
10935
  * instance: 'placeholder-value',
10936
+ * // Optional. Region of the Cloud SQL instance.
10937
+ * location: 'placeholder-value',
9536
10938
  * // Required. Project ID of the project that contains the instance.
9537
10939
  * project: 'placeholder-value',
9538
10940
  * });
@@ -9688,8 +11090,14 @@ export namespace sqladmin_v1 {
9688
11090
  * const res = await sql.instances.patch({
9689
11091
  * // Cloud SQL instance ID. This does not include the project ID.
9690
11092
  * instance: 'placeholder-value',
11093
+ * // Optional. Region of the Cloud SQL instance.
11094
+ * location: 'placeholder-value',
9691
11095
  * // Project ID of the project that contains the instance.
9692
11096
  * project: 'placeholder-value',
11097
+ * // Optional. Set PSC config to the same value as the existing config to reconcile the PSC networking.
11098
+ * reconcilePscNetworking: 'placeholder-value',
11099
+ * // Optional. Set PSC config to the same value as the existing config and force reconcile the PSC networking.
11100
+ * reconcilePscNetworkingForce: 'placeholder-value',
9693
11101
  *
9694
11102
  * // Request body metadata
9695
11103
  * requestBody: {
@@ -9700,8 +11108,10 @@ export namespace sqladmin_v1 {
9700
11108
  * // "connectionName": "my_connectionName",
9701
11109
  * // "createTime": "my_createTime",
9702
11110
  * // "currentDiskSize": "my_currentDiskSize",
11111
+ * // "databaseCenterIntegrationEnabled": false,
9703
11112
  * // "databaseInstalledVersion": "my_databaseInstalledVersion",
9704
11113
  * // "databaseVersion": "my_databaseVersion",
11114
+ * // "deploymentInfo": {},
9705
11115
  * // "diskEncryptionConfiguration": {},
9706
11116
  * // "diskEncryptionStatus": {},
9707
11117
  * // "dnsName": "my_dnsName",
@@ -9822,8 +11232,7 @@ export namespace sqladmin_v1 {
9822
11232
  | BodyResponseCallback<Schema$Operation>
9823
11233
  | BodyResponseCallback<Readable>,
9824
11234
  callback?:
9825
- | BodyResponseCallback<Schema$Operation>
9826
- | BodyResponseCallback<Readable>
11235
+ BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
9827
11236
  ):
9828
11237
  | void
9829
11238
  | Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
@@ -9996,8 +11405,7 @@ export namespace sqladmin_v1 {
9996
11405
  | BodyResponseCallback<Schema$Operation>
9997
11406
  | BodyResponseCallback<Readable>,
9998
11407
  callback?:
9999
- | BodyResponseCallback<Schema$Operation>
10000
- | BodyResponseCallback<Readable>
11408
+ BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
10001
11409
  ):
10002
11410
  | void
10003
11411
  | Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
@@ -10081,6 +11489,8 @@ export namespace sqladmin_v1 {
10081
11489
  * const res = await sql.instances.preCheckMajorVersionUpgrade({
10082
11490
  * // Required. Cloud SQL instance ID. This does not include the project ID.
10083
11491
  * instance: 'placeholder-value',
11492
+ * // Optional. Region of the Cloud SQL instance.
11493
+ * location: 'placeholder-value',
10084
11494
  * // Required. Project ID of the project that contains the instance.
10085
11495
  * project: 'placeholder-value',
10086
11496
  *
@@ -10167,8 +11577,7 @@ export namespace sqladmin_v1 {
10167
11577
  | BodyResponseCallback<Schema$Operation>
10168
11578
  | BodyResponseCallback<Readable>,
10169
11579
  callback?:
10170
- | BodyResponseCallback<Schema$Operation>
10171
- | BodyResponseCallback<Readable>
11580
+ BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
10172
11581
  ):
10173
11582
  | void
10174
11583
  | Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
@@ -10254,6 +11663,8 @@ export namespace sqladmin_v1 {
10254
11663
  * failover: 'placeholder-value',
10255
11664
  * // Cloud SQL read replica instance name.
10256
11665
  * instance: 'placeholder-value',
11666
+ * // Optional. Region of the Cloud SQL instance.
11667
+ * location: 'placeholder-value',
10257
11668
  * // ID of the project that contains the read replica.
10258
11669
  * project: 'placeholder-value',
10259
11670
  * });
@@ -10330,8 +11741,7 @@ export namespace sqladmin_v1 {
10330
11741
  | BodyResponseCallback<Schema$Operation>
10331
11742
  | BodyResponseCallback<Readable>,
10332
11743
  callback?:
10333
- | BodyResponseCallback<Schema$Operation>
10334
- | BodyResponseCallback<Readable>
11744
+ BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
10335
11745
  ):
10336
11746
  | void
10337
11747
  | Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
@@ -10415,6 +11825,8 @@ export namespace sqladmin_v1 {
10415
11825
  * const res = await sql.instances.reencrypt({
10416
11826
  * // Cloud SQL instance ID. This does not include the project ID.
10417
11827
  * instance: 'placeholder-value',
11828
+ * // Optional. Region of the Cloud SQL instance.
11829
+ * location: 'placeholder-value',
10418
11830
  * // ID of the project that contains the instance.
10419
11831
  * project: 'placeholder-value',
10420
11832
  *
@@ -10499,8 +11911,7 @@ export namespace sqladmin_v1 {
10499
11911
  | BodyResponseCallback<Schema$Operation>
10500
11912
  | BodyResponseCallback<Readable>,
10501
11913
  callback?:
10502
- | BodyResponseCallback<Schema$Operation>
10503
- | BodyResponseCallback<Readable>
11914
+ BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
10504
11915
  ):
10505
11916
  | void
10506
11917
  | Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
@@ -10583,6 +11994,8 @@ export namespace sqladmin_v1 {
10583
11994
  * const res = await sql.instances.releaseSsrsLease({
10584
11995
  * // Required. The Cloud SQL instance ID. This doesn't include the project ID. The instance ID contains lowercase letters, numbers, and hyphens, and it must start with a letter. This ID can have a maximum length of 98 characters.
10585
11996
  * instance: 'placeholder-value',
11997
+ * // Optional. Region of the Cloud SQL instance.
11998
+ * location: 'placeholder-value',
10586
11999
  * // Required. The project ID that contains the instance.
10587
12000
  * project: 'placeholder-value',
10588
12001
  * });
@@ -10735,6 +12148,8 @@ export namespace sqladmin_v1 {
10735
12148
  * const res = await sql.instances.resetSslConfig({
10736
12149
  * // Cloud SQL instance ID. This does not include the project ID.
10737
12150
  * instance: 'placeholder-value',
12151
+ * // Optional. Region of the Cloud SQL instance.
12152
+ * location: 'placeholder-value',
10738
12153
  * // Optional. Reset SSL mode to use.
10739
12154
  * mode: 'placeholder-value',
10740
12155
  * // Project ID of the project that contains the instance.
@@ -10813,8 +12228,7 @@ export namespace sqladmin_v1 {
10813
12228
  | BodyResponseCallback<Schema$Operation>
10814
12229
  | BodyResponseCallback<Readable>,
10815
12230
  callback?:
10816
- | BodyResponseCallback<Schema$Operation>
10817
- | BodyResponseCallback<Readable>
12231
+ BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
10818
12232
  ):
10819
12233
  | void
10820
12234
  | Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
@@ -10898,6 +12312,8 @@ export namespace sqladmin_v1 {
10898
12312
  * const res = await sql.instances.restart({
10899
12313
  * // Cloud SQL instance ID. This does not include the project ID.
10900
12314
  * instance: 'placeholder-value',
12315
+ * // Optional. Region of the Cloud SQL instance.
12316
+ * location: 'placeholder-value',
10901
12317
  * // Project ID of the project that contains the instance to be restarted.
10902
12318
  * project: 'placeholder-value',
10903
12319
  * });
@@ -10974,8 +12390,7 @@ export namespace sqladmin_v1 {
10974
12390
  | BodyResponseCallback<Schema$Operation>
10975
12391
  | BodyResponseCallback<Readable>,
10976
12392
  callback?:
10977
- | BodyResponseCallback<Schema$Operation>
10978
- | BodyResponseCallback<Readable>
12393
+ BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
10979
12394
  ):
10980
12395
  | void
10981
12396
  | Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
@@ -11058,6 +12473,8 @@ export namespace sqladmin_v1 {
11058
12473
  * const res = await sql.instances.restoreBackup({
11059
12474
  * // Cloud SQL instance ID. This does not include the project ID.
11060
12475
  * instance: 'placeholder-value',
12476
+ * // Optional. Region of the Cloud SQL instance.
12477
+ * location: 'placeholder-value',
11061
12478
  * // Project ID of the project that contains the instance.
11062
12479
  * project: 'placeholder-value',
11063
12480
  *
@@ -11067,6 +12484,7 @@ export namespace sqladmin_v1 {
11067
12484
  * // {
11068
12485
  * // "backup": "my_backup",
11069
12486
  * // "backupdrBackup": "my_backupdrBackup",
12487
+ * // "ignoreMaintenanceVersion": false,
11070
12488
  * // "restoreBackupContext": {},
11071
12489
  * // "restoreInstanceClearOverridesFieldNames": [],
11072
12490
  * // "restoreInstanceSettings": {}
@@ -11146,8 +12564,7 @@ export namespace sqladmin_v1 {
11146
12564
  | BodyResponseCallback<Schema$Operation>
11147
12565
  | BodyResponseCallback<Readable>,
11148
12566
  callback?:
11149
- | BodyResponseCallback<Schema$Operation>
11150
- | BodyResponseCallback<Readable>
12567
+ BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
11151
12568
  ):
11152
12569
  | void
11153
12570
  | Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
@@ -11231,6 +12648,8 @@ export namespace sqladmin_v1 {
11231
12648
  * const res = await sql.instances.RotateEntraIdCertificate({
11232
12649
  * // Required. Cloud SQL instance ID. This does not include the project ID.
11233
12650
  * instance: 'placeholder-value',
12651
+ * // Optional. Region of the Cloud SQL instance.
12652
+ * location: 'placeholder-value',
11234
12653
  * // Required. Project ID of the project that contains the instance.
11235
12654
  * project: 'placeholder-value',
11236
12655
  *
@@ -11317,8 +12736,7 @@ export namespace sqladmin_v1 {
11317
12736
  | BodyResponseCallback<Schema$Operation>
11318
12737
  | BodyResponseCallback<Readable>,
11319
12738
  callback?:
11320
- | BodyResponseCallback<Schema$Operation>
11321
- | BodyResponseCallback<Readable>
12739
+ BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
11322
12740
  ):
11323
12741
  | void
11324
12742
  | Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
@@ -11402,6 +12820,8 @@ export namespace sqladmin_v1 {
11402
12820
  * const res = await sql.instances.rotateServerCa({
11403
12821
  * // Cloud SQL instance ID. This does not include the project ID.
11404
12822
  * instance: 'placeholder-value',
12823
+ * // Optional. Region of the Cloud SQL instance.
12824
+ * location: 'placeholder-value',
11405
12825
  * // Project ID of the project that contains the instance.
11406
12826
  * project: 'placeholder-value',
11407
12827
  *
@@ -11486,8 +12906,7 @@ export namespace sqladmin_v1 {
11486
12906
  | BodyResponseCallback<Schema$Operation>
11487
12907
  | BodyResponseCallback<Readable>,
11488
12908
  callback?:
11489
- | BodyResponseCallback<Schema$Operation>
11490
- | BodyResponseCallback<Readable>
12909
+ BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
11491
12910
  ):
11492
12911
  | void
11493
12912
  | Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
@@ -11571,6 +12990,8 @@ export namespace sqladmin_v1 {
11571
12990
  * const res = await sql.instances.RotateServerCertificate({
11572
12991
  * // Required. Cloud SQL instance ID. This does not include the project ID.
11573
12992
  * instance: 'placeholder-value',
12993
+ * // Optional. Region of the Cloud SQL instance.
12994
+ * location: 'placeholder-value',
11574
12995
  * // Required. Project ID of the project that contains the instance.
11575
12996
  * project: 'placeholder-value',
11576
12997
  *
@@ -11657,8 +13078,7 @@ export namespace sqladmin_v1 {
11657
13078
  | BodyResponseCallback<Schema$Operation>
11658
13079
  | BodyResponseCallback<Readable>,
11659
13080
  callback?:
11660
- | BodyResponseCallback<Schema$Operation>
11661
- | BodyResponseCallback<Readable>
13081
+ BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
11662
13082
  ):
11663
13083
  | void
11664
13084
  | Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
@@ -11742,6 +13162,8 @@ export namespace sqladmin_v1 {
11742
13162
  * const res = await sql.instances.startReplica({
11743
13163
  * // Cloud SQL read replica instance name.
11744
13164
  * instance: 'placeholder-value',
13165
+ * // Optional. Region of the Cloud SQL instance.
13166
+ * location: 'placeholder-value',
11745
13167
  * // ID of the project that contains the read replica.
11746
13168
  * project: 'placeholder-value',
11747
13169
  * });
@@ -11818,8 +13240,7 @@ export namespace sqladmin_v1 {
11818
13240
  | BodyResponseCallback<Schema$Operation>
11819
13241
  | BodyResponseCallback<Readable>,
11820
13242
  callback?:
11821
- | BodyResponseCallback<Schema$Operation>
11822
- | BodyResponseCallback<Readable>
13243
+ BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
11823
13244
  ):
11824
13245
  | void
11825
13246
  | Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
@@ -11903,6 +13324,8 @@ export namespace sqladmin_v1 {
11903
13324
  * const res = await sql.instances.stopReplica({
11904
13325
  * // Cloud SQL read replica instance name.
11905
13326
  * instance: 'placeholder-value',
13327
+ * // Optional. Region of the Cloud SQL instance.
13328
+ * location: 'placeholder-value',
11906
13329
  * // ID of the project that contains the read replica.
11907
13330
  * project: 'placeholder-value',
11908
13331
  * });
@@ -11979,8 +13402,7 @@ export namespace sqladmin_v1 {
11979
13402
  | BodyResponseCallback<Schema$Operation>
11980
13403
  | BodyResponseCallback<Readable>,
11981
13404
  callback?:
11982
- | BodyResponseCallback<Schema$Operation>
11983
- | BodyResponseCallback<Readable>
13405
+ BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
11984
13406
  ):
11985
13407
  | void
11986
13408
  | Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
@@ -12066,6 +13488,8 @@ export namespace sqladmin_v1 {
12066
13488
  * dbTimeout: 'placeholder-value',
12067
13489
  * // Cloud SQL read replica instance name.
12068
13490
  * instance: 'placeholder-value',
13491
+ * // Optional. Region of the Cloud SQL instance.
13492
+ * location: 'placeholder-value',
12069
13493
  * // ID of the project that contains the replica.
12070
13494
  * project: 'placeholder-value',
12071
13495
  * });
@@ -12142,8 +13566,7 @@ export namespace sqladmin_v1 {
12142
13566
  | BodyResponseCallback<Schema$Operation>
12143
13567
  | BodyResponseCallback<Readable>,
12144
13568
  callback?:
12145
- | BodyResponseCallback<Schema$Operation>
12146
- | BodyResponseCallback<Readable>
13569
+ BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
12147
13570
  ):
12148
13571
  | void
12149
13572
  | Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
@@ -12226,6 +13649,8 @@ export namespace sqladmin_v1 {
12226
13649
  * const res = await sql.instances.truncateLog({
12227
13650
  * // Cloud SQL instance ID. This does not include the project ID.
12228
13651
  * instance: 'placeholder-value',
13652
+ * // Optional. Region of the Cloud SQL instance.
13653
+ * location: 'placeholder-value',
12229
13654
  * // Project ID of the Cloud SQL project.
12230
13655
  * project: 'placeholder-value',
12231
13656
  *
@@ -12310,8 +13735,7 @@ export namespace sqladmin_v1 {
12310
13735
  | BodyResponseCallback<Schema$Operation>
12311
13736
  | BodyResponseCallback<Readable>,
12312
13737
  callback?:
12313
- | BodyResponseCallback<Schema$Operation>
12314
- | BodyResponseCallback<Readable>
13738
+ BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
12315
13739
  ):
12316
13740
  | void
12317
13741
  | Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
@@ -12395,6 +13819,8 @@ export namespace sqladmin_v1 {
12395
13819
  * const res = await sql.instances.update({
12396
13820
  * // Cloud SQL instance ID. This does not include the project ID.
12397
13821
  * instance: 'placeholder-value',
13822
+ * // Optional. Region of the Cloud SQL instance.
13823
+ * location: 'placeholder-value',
12398
13824
  * // Project ID of the project that contains the instance.
12399
13825
  * project: 'placeholder-value',
12400
13826
  *
@@ -12407,8 +13833,10 @@ export namespace sqladmin_v1 {
12407
13833
  * // "connectionName": "my_connectionName",
12408
13834
  * // "createTime": "my_createTime",
12409
13835
  * // "currentDiskSize": "my_currentDiskSize",
13836
+ * // "databaseCenterIntegrationEnabled": false,
12410
13837
  * // "databaseInstalledVersion": "my_databaseInstalledVersion",
12411
13838
  * // "databaseVersion": "my_databaseVersion",
13839
+ * // "deploymentInfo": {},
12412
13840
  * // "diskEncryptionConfiguration": {},
12413
13841
  * // "diskEncryptionStatus": {},
12414
13842
  * // "dnsName": "my_dnsName",
@@ -12529,8 +13957,7 @@ export namespace sqladmin_v1 {
12529
13957
  | BodyResponseCallback<Schema$Operation>
12530
13958
  | BodyResponseCallback<Readable>,
12531
13959
  callback?:
12532
- | BodyResponseCallback<Schema$Operation>
12533
- | BodyResponseCallback<Readable>
13960
+ BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
12534
13961
  ):
12535
13962
  | void
12536
13963
  | Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
@@ -12582,6 +14009,10 @@ export namespace sqladmin_v1 {
12582
14009
  * Required. Cloud SQL instance ID. This doesn't include the project ID. It's composed of lowercase letters, numbers, and hyphens, and it must start with a letter. The total length must be 98 characters or less (Example: instance-id).
12583
14010
  */
12584
14011
  instance?: string;
14012
+ /**
14013
+ * Optional. Region of the Cloud SQL instance.
14014
+ */
14015
+ location?: string;
12585
14016
  /**
12586
14017
  * Required. Project ID of the project that contains the instance (Example: project-id).
12587
14018
  */
@@ -12597,6 +14028,10 @@ export namespace sqladmin_v1 {
12597
14028
  * Required. Cloud SQL instance ID. This does not include the project ID.
12598
14029
  */
12599
14030
  instance?: string;
14031
+ /**
14032
+ * Optional. Region of the Cloud SQL instance.
14033
+ */
14034
+ location?: string;
12600
14035
  /**
12601
14036
  * Required. Project ID of the project that contains the instance.
12602
14037
  */
@@ -12607,6 +14042,10 @@ export namespace sqladmin_v1 {
12607
14042
  * Cloud SQL instance ID. This does not include the project ID.
12608
14043
  */
12609
14044
  instance?: string;
14045
+ /**
14046
+ * Optional. Region of the Cloud SQL instance.
14047
+ */
14048
+ location?: string;
12610
14049
  /**
12611
14050
  * Project ID of the project that contains the instance.
12612
14051
  */
@@ -12617,6 +14056,10 @@ export namespace sqladmin_v1 {
12617
14056
  * Cloud SQL instance ID. This does not include the project ID.
12618
14057
  */
12619
14058
  instance?: string;
14059
+ /**
14060
+ * Optional. Region of the Cloud SQL instance.
14061
+ */
14062
+ location?: string;
12620
14063
  /**
12621
14064
  * Project ID of the project that contains the instance.
12622
14065
  */
@@ -12627,6 +14070,10 @@ export namespace sqladmin_v1 {
12627
14070
  * Required. The ID of the Cloud SQL instance to be cloned (source). This does not include the project ID.
12628
14071
  */
12629
14072
  instance?: string;
14073
+ /**
14074
+ * Optional. Region of the Cloud SQL instance.
14075
+ */
14076
+ location?: string;
12630
14077
  /**
12631
14078
  * Required. Project ID of the source Cloud SQL instance.
12632
14079
  */
@@ -12658,6 +14105,10 @@ export namespace sqladmin_v1 {
12658
14105
  * Cloud SQL instance ID. This does not include the project ID.
12659
14106
  */
12660
14107
  instance?: string;
14108
+ /**
14109
+ * Optional. Region of the Cloud SQL instance.
14110
+ */
14111
+ location?: string;
12661
14112
  /**
12662
14113
  * Project ID of the project that contains the instance to be deleted.
12663
14114
  */
@@ -12668,6 +14119,10 @@ export namespace sqladmin_v1 {
12668
14119
  * Required. Cloud SQL instance name.
12669
14120
  */
12670
14121
  instance?: string;
14122
+ /**
14123
+ * Optional. Region of the Cloud SQL instance.
14124
+ */
14125
+ location?: string;
12671
14126
  /**
12672
14127
  * Required. ID of the project that contains the instance.
12673
14128
  */
@@ -12683,6 +14138,10 @@ export namespace sqladmin_v1 {
12683
14138
  * Cloud SQL instance name.
12684
14139
  */
12685
14140
  instance?: string;
14141
+ /**
14142
+ * Optional. Region of the Cloud SQL instance.
14143
+ */
14144
+ location?: string;
12686
14145
  /**
12687
14146
  * ID of the project that contains the instance.
12688
14147
  */
@@ -12698,6 +14157,10 @@ export namespace sqladmin_v1 {
12698
14157
  * Required. Database instance ID. This does not include the project ID.
12699
14158
  */
12700
14159
  instance?: string;
14160
+ /**
14161
+ * Optional. Region of the Cloud SQL instance.
14162
+ */
14163
+ location?: string;
12701
14164
  /**
12702
14165
  * Required. Project ID of the project that contains the instance.
12703
14166
  */
@@ -12713,6 +14176,10 @@ export namespace sqladmin_v1 {
12713
14176
  * Cloud SQL instance ID. This does not include the project ID.
12714
14177
  */
12715
14178
  instance?: string;
14179
+ /**
14180
+ * Optional. Region of the Cloud SQL instance.
14181
+ */
14182
+ location?: string;
12716
14183
  /**
12717
14184
  * Project ID of the project that contains the instance to be exported.
12718
14185
  */
@@ -12728,6 +14195,10 @@ export namespace sqladmin_v1 {
12728
14195
  * Cloud SQL instance ID. This does not include the project ID.
12729
14196
  */
12730
14197
  instance?: string;
14198
+ /**
14199
+ * Optional. Region of the Cloud SQL instance.
14200
+ */
14201
+ location?: string;
12731
14202
  /**
12732
14203
  * ID of the project that contains the read replica.
12733
14204
  */
@@ -12743,6 +14214,10 @@ export namespace sqladmin_v1 {
12743
14214
  * Required. Database instance ID. This does not include the project ID.
12744
14215
  */
12745
14216
  instance?: string;
14217
+ /**
14218
+ * Optional. Region of the Cloud SQL instance.
14219
+ */
14220
+ location?: string;
12746
14221
  /**
12747
14222
  * Required. Project ID of the project that contains the instance.
12748
14223
  */
@@ -12753,6 +14228,10 @@ export namespace sqladmin_v1 {
12753
14228
  * Cloud SQL instance ID. This does not include the project ID.
12754
14229
  */
12755
14230
  instance?: string;
14231
+ /**
14232
+ * Optional. Region of the Cloud SQL instance.
14233
+ */
14234
+ location?: string;
12756
14235
  /**
12757
14236
  * Project ID of the project that contains the instance.
12758
14237
  */
@@ -12764,6 +14243,10 @@ export namespace sqladmin_v1 {
12764
14243
  requestBody?: Schema$InstancesImportRequest;
12765
14244
  }
12766
14245
  export interface Params$Resource$Instances$Insert extends StandardParameters {
14246
+ /**
14247
+ * Optional. Region of the Cloud SQL instance.
14248
+ */
14249
+ location?: string;
12767
14250
  /**
12768
14251
  * Project ID of the project to which the newly created Cloud SQL instances should belong.
12769
14252
  */
@@ -12779,6 +14262,10 @@ export namespace sqladmin_v1 {
12779
14262
  * A filter expression that filters resources listed in the response. The expression is in the form of field:value. For example, 'instanceType:CLOUD_SQL_INSTANCE'. Fields can be nested as needed as per their JSON representation, such as 'settings.userLabels.auto_start:true'. Multiple filter queries are space-separated. For example. 'state:RUNNABLE instanceType:CLOUD_SQL_INSTANCE'. By default, each expression is an AND expression. However, you can include AND and OR expressions explicitly.
12780
14263
  */
12781
14264
  filter?: string;
14265
+ /**
14266
+ * Optional. Region of the Cloud SQL instance.
14267
+ */
14268
+ location?: string;
12782
14269
  /**
12783
14270
  * The maximum number of instances to return. The service may return fewer than this value. If unspecified, at most 500 instances are returned. The maximum value is 1000; values above 1000 are coerced to 1000.
12784
14271
  */
@@ -12797,6 +14284,10 @@ export namespace sqladmin_v1 {
12797
14284
  * Required. Cloud SQL instance ID. This does not include the project ID.
12798
14285
  */
12799
14286
  instance?: string;
14287
+ /**
14288
+ * Optional. Region of the Cloud SQL instance.
14289
+ */
14290
+ location?: string;
12800
14291
  /**
12801
14292
  * Required. Project ID of the project that contains the instance.
12802
14293
  */
@@ -12807,6 +14298,10 @@ export namespace sqladmin_v1 {
12807
14298
  * Cloud SQL instance ID. This does not include the project ID.
12808
14299
  */
12809
14300
  instance?: string;
14301
+ /**
14302
+ * Optional. Region of the Cloud SQL instance.
14303
+ */
14304
+ location?: string;
12810
14305
  /**
12811
14306
  * Project ID of the project that contains the instance.
12812
14307
  */
@@ -12817,6 +14312,10 @@ export namespace sqladmin_v1 {
12817
14312
  * Required. Cloud SQL instance ID. This does not include the project ID.
12818
14313
  */
12819
14314
  instance?: string;
14315
+ /**
14316
+ * Optional. Region of the Cloud SQL instance.
14317
+ */
14318
+ location?: string;
12820
14319
  /**
12821
14320
  * Required. Project ID of the project that contains the instance.
12822
14321
  */
@@ -12827,10 +14326,22 @@ export namespace sqladmin_v1 {
12827
14326
  * Cloud SQL instance ID. This does not include the project ID.
12828
14327
  */
12829
14328
  instance?: string;
14329
+ /**
14330
+ * Optional. Region of the Cloud SQL instance.
14331
+ */
14332
+ location?: string;
12830
14333
  /**
12831
14334
  * Project ID of the project that contains the instance.
12832
14335
  */
12833
14336
  project?: string;
14337
+ /**
14338
+ * Optional. Set PSC config to the same value as the existing config to reconcile the PSC networking.
14339
+ */
14340
+ reconcilePscNetworking?: boolean;
14341
+ /**
14342
+ * Optional. Set PSC config to the same value as the existing config and force reconcile the PSC networking.
14343
+ */
14344
+ reconcilePscNetworkingForce?: boolean;
12834
14345
 
12835
14346
  /**
12836
14347
  * Request body metadata
@@ -12853,6 +14364,10 @@ export namespace sqladmin_v1 {
12853
14364
  * Required. Cloud SQL instance ID. This does not include the project ID.
12854
14365
  */
12855
14366
  instance?: string;
14367
+ /**
14368
+ * Optional. Region of the Cloud SQL instance.
14369
+ */
14370
+ location?: string;
12856
14371
  /**
12857
14372
  * Required. Project ID of the project that contains the instance.
12858
14373
  */
@@ -12872,6 +14387,10 @@ export namespace sqladmin_v1 {
12872
14387
  * Cloud SQL read replica instance name.
12873
14388
  */
12874
14389
  instance?: string;
14390
+ /**
14391
+ * Optional. Region of the Cloud SQL instance.
14392
+ */
14393
+ location?: string;
12875
14394
  /**
12876
14395
  * ID of the project that contains the read replica.
12877
14396
  */
@@ -12882,6 +14401,10 @@ export namespace sqladmin_v1 {
12882
14401
  * Cloud SQL instance ID. This does not include the project ID.
12883
14402
  */
12884
14403
  instance?: string;
14404
+ /**
14405
+ * Optional. Region of the Cloud SQL instance.
14406
+ */
14407
+ location?: string;
12885
14408
  /**
12886
14409
  * ID of the project that contains the instance.
12887
14410
  */
@@ -12897,6 +14420,10 @@ export namespace sqladmin_v1 {
12897
14420
  * Required. The Cloud SQL instance ID. This doesn't include the project ID. The instance ID contains lowercase letters, numbers, and hyphens, and it must start with a letter. This ID can have a maximum length of 98 characters.
12898
14421
  */
12899
14422
  instance?: string;
14423
+ /**
14424
+ * Optional. Region of the Cloud SQL instance.
14425
+ */
14426
+ location?: string;
12900
14427
  /**
12901
14428
  * Required. The project ID that contains the instance.
12902
14429
  */
@@ -12907,6 +14434,10 @@ export namespace sqladmin_v1 {
12907
14434
  * Cloud SQL instance ID. This does not include the project ID.
12908
14435
  */
12909
14436
  instance?: string;
14437
+ /**
14438
+ * Optional. Region of the Cloud SQL instance.
14439
+ */
14440
+ location?: string;
12910
14441
  /**
12911
14442
  * Optional. Reset SSL mode to use.
12912
14443
  */
@@ -12921,6 +14452,10 @@ export namespace sqladmin_v1 {
12921
14452
  * Cloud SQL instance ID. This does not include the project ID.
12922
14453
  */
12923
14454
  instance?: string;
14455
+ /**
14456
+ * Optional. Region of the Cloud SQL instance.
14457
+ */
14458
+ location?: string;
12924
14459
  /**
12925
14460
  * Project ID of the project that contains the instance to be restarted.
12926
14461
  */
@@ -12931,6 +14466,10 @@ export namespace sqladmin_v1 {
12931
14466
  * Cloud SQL instance ID. This does not include the project ID.
12932
14467
  */
12933
14468
  instance?: string;
14469
+ /**
14470
+ * Optional. Region of the Cloud SQL instance.
14471
+ */
14472
+ location?: string;
12934
14473
  /**
12935
14474
  * Project ID of the project that contains the instance.
12936
14475
  */
@@ -12946,6 +14485,10 @@ export namespace sqladmin_v1 {
12946
14485
  * Required. Cloud SQL instance ID. This does not include the project ID.
12947
14486
  */
12948
14487
  instance?: string;
14488
+ /**
14489
+ * Optional. Region of the Cloud SQL instance.
14490
+ */
14491
+ location?: string;
12949
14492
  /**
12950
14493
  * Required. Project ID of the project that contains the instance.
12951
14494
  */
@@ -12961,6 +14504,10 @@ export namespace sqladmin_v1 {
12961
14504
  * Cloud SQL instance ID. This does not include the project ID.
12962
14505
  */
12963
14506
  instance?: string;
14507
+ /**
14508
+ * Optional. Region of the Cloud SQL instance.
14509
+ */
14510
+ location?: string;
12964
14511
  /**
12965
14512
  * Project ID of the project that contains the instance.
12966
14513
  */
@@ -12976,6 +14523,10 @@ export namespace sqladmin_v1 {
12976
14523
  * Required. Cloud SQL instance ID. This does not include the project ID.
12977
14524
  */
12978
14525
  instance?: string;
14526
+ /**
14527
+ * Optional. Region of the Cloud SQL instance.
14528
+ */
14529
+ location?: string;
12979
14530
  /**
12980
14531
  * Required. Project ID of the project that contains the instance.
12981
14532
  */
@@ -12991,6 +14542,10 @@ export namespace sqladmin_v1 {
12991
14542
  * Cloud SQL read replica instance name.
12992
14543
  */
12993
14544
  instance?: string;
14545
+ /**
14546
+ * Optional. Region of the Cloud SQL instance.
14547
+ */
14548
+ location?: string;
12994
14549
  /**
12995
14550
  * ID of the project that contains the read replica.
12996
14551
  */
@@ -13001,6 +14556,10 @@ export namespace sqladmin_v1 {
13001
14556
  * Cloud SQL read replica instance name.
13002
14557
  */
13003
14558
  instance?: string;
14559
+ /**
14560
+ * Optional. Region of the Cloud SQL instance.
14561
+ */
14562
+ location?: string;
13004
14563
  /**
13005
14564
  * ID of the project that contains the read replica.
13006
14565
  */
@@ -13015,6 +14574,10 @@ export namespace sqladmin_v1 {
13015
14574
  * Cloud SQL read replica instance name.
13016
14575
  */
13017
14576
  instance?: string;
14577
+ /**
14578
+ * Optional. Region of the Cloud SQL instance.
14579
+ */
14580
+ location?: string;
13018
14581
  /**
13019
14582
  * ID of the project that contains the replica.
13020
14583
  */
@@ -13025,6 +14588,10 @@ export namespace sqladmin_v1 {
13025
14588
  * Cloud SQL instance ID. This does not include the project ID.
13026
14589
  */
13027
14590
  instance?: string;
14591
+ /**
14592
+ * Optional. Region of the Cloud SQL instance.
14593
+ */
14594
+ location?: string;
13028
14595
  /**
13029
14596
  * Project ID of the Cloud SQL project.
13030
14597
  */
@@ -13040,6 +14607,10 @@ export namespace sqladmin_v1 {
13040
14607
  * Cloud SQL instance ID. This does not include the project ID.
13041
14608
  */
13042
14609
  instance?: string;
14610
+ /**
14611
+ * Optional. Region of the Cloud SQL instance.
14612
+ */
14613
+ location?: string;
13043
14614
  /**
13044
14615
  * Project ID of the project that contains the instance.
13045
14616
  */
@@ -13091,6 +14662,8 @@ export namespace sqladmin_v1 {
13091
14662
  *
13092
14663
  * // Do the magic
13093
14664
  * const res = await sql.operations.cancel({
14665
+ * // Optional. Region of the Cloud SQL instance.
14666
+ * location: 'placeholder-value',
13094
14667
  * // Instance operation ID.
13095
14668
  * operation: 'placeholder-value',
13096
14669
  * // Project ID of the project that contains the instance.
@@ -13148,8 +14721,7 @@ export namespace sqladmin_v1 {
13148
14721
  | BodyResponseCallback<Schema$Empty>
13149
14722
  | BodyResponseCallback<Readable>,
13150
14723
  callback?:
13151
- | BodyResponseCallback<Schema$Empty>
13152
- | BodyResponseCallback<Readable>
14724
+ BodyResponseCallback<Schema$Empty> | BodyResponseCallback<Readable>
13153
14725
  ):
13154
14726
  | void
13155
14727
  | Promise<GaxiosResponseWithHTTP2<Schema$Empty>>
@@ -13230,6 +14802,8 @@ export namespace sqladmin_v1 {
13230
14802
  *
13231
14803
  * // Do the magic
13232
14804
  * const res = await sql.operations.get({
14805
+ * // Optional. Region of the Cloud SQL instance.
14806
+ * location: 'placeholder-value',
13233
14807
  * // Required. Instance operation ID.
13234
14808
  * operation: 'placeholder-value',
13235
14809
  * // Required. Project ID of the project that contains the instance.
@@ -13308,8 +14882,7 @@ export namespace sqladmin_v1 {
13308
14882
  | BodyResponseCallback<Schema$Operation>
13309
14883
  | BodyResponseCallback<Readable>,
13310
14884
  callback?:
13311
- | BodyResponseCallback<Schema$Operation>
13312
- | BodyResponseCallback<Readable>
14885
+ BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
13313
14886
  ):
13314
14887
  | void
13315
14888
  | Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
@@ -13391,6 +14964,8 @@ export namespace sqladmin_v1 {
13391
14964
  * const res = await sql.operations.list({
13392
14965
  * // Cloud SQL instance ID. This does not include the project ID.
13393
14966
  * instance: 'placeholder-value',
14967
+ * // Optional. Region of the Cloud SQL instance.
14968
+ * location: 'placeholder-value',
13394
14969
  * // Maximum number of operations per response.
13395
14970
  * maxResults: 'placeholder-value',
13396
14971
  * // A previously-returned page token representing part of the larger set of results to view.
@@ -13436,8 +15011,7 @@ export namespace sqladmin_v1 {
13436
15011
  list(
13437
15012
  params: Params$Resource$Operations$List,
13438
15013
  options:
13439
- | MethodOptions
13440
- | BodyResponseCallback<Schema$OperationsListResponse>,
15014
+ MethodOptions | BodyResponseCallback<Schema$OperationsListResponse>,
13441
15015
  callback: BodyResponseCallback<Schema$OperationsListResponse>
13442
15016
  ): void;
13443
15017
  list(
@@ -13506,6 +15080,10 @@ export namespace sqladmin_v1 {
13506
15080
  }
13507
15081
 
13508
15082
  export interface Params$Resource$Operations$Cancel extends StandardParameters {
15083
+ /**
15084
+ * Optional. Region of the Cloud SQL instance.
15085
+ */
15086
+ location?: string;
13509
15087
  /**
13510
15088
  * Instance operation ID.
13511
15089
  */
@@ -13516,6 +15094,10 @@ export namespace sqladmin_v1 {
13516
15094
  project?: string;
13517
15095
  }
13518
15096
  export interface Params$Resource$Operations$Get extends StandardParameters {
15097
+ /**
15098
+ * Optional. Region of the Cloud SQL instance.
15099
+ */
15100
+ location?: string;
13519
15101
  /**
13520
15102
  * Required. Instance operation ID.
13521
15103
  */
@@ -13530,6 +15112,10 @@ export namespace sqladmin_v1 {
13530
15112
  * Cloud SQL instance ID. This does not include the project ID.
13531
15113
  */
13532
15114
  instance?: string;
15115
+ /**
15116
+ * Optional. Region of the Cloud SQL instance.
15117
+ */
15118
+ location?: string;
13533
15119
  /**
13534
15120
  * Maximum number of operations per response.
13535
15121
  */
@@ -13595,6 +15181,8 @@ export namespace sqladmin_v1 {
13595
15181
  * const res = await sql.projects.instances.getDiskShrinkConfig({
13596
15182
  * // Cloud SQL instance ID. This does not include the project ID.
13597
15183
  * instance: 'placeholder-value',
15184
+ * // Optional. Region of the Cloud SQL instance.
15185
+ * location: 'placeholder-value',
13598
15186
  * // Project ID of the project that contains the instance.
13599
15187
  * project: 'placeholder-value',
13600
15188
  * });
@@ -13749,6 +15337,8 @@ export namespace sqladmin_v1 {
13749
15337
  * const res = await sql.projects.instances.getLatestRecoveryTime({
13750
15338
  * // Cloud SQL instance ID. This does not include the project ID.
13751
15339
  * instance: 'placeholder-value',
15340
+ * // Optional. Region of the Cloud SQL instance.
15341
+ * location: 'placeholder-value',
13752
15342
  * // Project ID of the project that contains the instance.
13753
15343
  * project: 'placeholder-value',
13754
15344
  * // The timestamp used to identify the time when the source instance is deleted. If this instance is deleted, then you must set the timestamp.
@@ -13905,6 +15495,8 @@ export namespace sqladmin_v1 {
13905
15495
  * const res = await sql.projects.instances.performDiskShrink({
13906
15496
  * // Cloud SQL instance ID. This does not include the project ID.
13907
15497
  * instance: 'placeholder-value',
15498
+ * // Optional. Region of the Cloud SQL instance.
15499
+ * location: 'placeholder-value',
13908
15500
  * // Project ID of the project that contains the instance.
13909
15501
  * project: 'placeholder-value',
13910
15502
  *
@@ -13989,8 +15581,7 @@ export namespace sqladmin_v1 {
13989
15581
  | BodyResponseCallback<Schema$Operation>
13990
15582
  | BodyResponseCallback<Readable>,
13991
15583
  callback?:
13992
- | BodyResponseCallback<Schema$Operation>
13993
- | BodyResponseCallback<Readable>
15584
+ BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
13994
15585
  ):
13995
15586
  | void
13996
15587
  | Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
@@ -14074,6 +15665,8 @@ export namespace sqladmin_v1 {
14074
15665
  * const res = await sql.projects.instances.rescheduleMaintenance({
14075
15666
  * // Cloud SQL instance ID. This does not include the project ID.
14076
15667
  * instance: 'placeholder-value',
15668
+ * // Optional. Region of the Cloud SQL instance.
15669
+ * location: 'placeholder-value',
14077
15670
  * // ID of the project that contains the instance.
14078
15671
  * project: 'placeholder-value',
14079
15672
  *
@@ -14160,8 +15753,7 @@ export namespace sqladmin_v1 {
14160
15753
  | BodyResponseCallback<Schema$Operation>
14161
15754
  | BodyResponseCallback<Readable>,
14162
15755
  callback?:
14163
- | BodyResponseCallback<Schema$Operation>
14164
- | BodyResponseCallback<Readable>
15756
+ BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
14165
15757
  ):
14166
15758
  | void
14167
15759
  | Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
@@ -14251,7 +15843,9 @@ export namespace sqladmin_v1 {
14251
15843
  * // Request body metadata
14252
15844
  * requestBody: {
14253
15845
  * // request body parameters
14254
- * // {}
15846
+ * // {
15847
+ * // "location": "my_location"
15848
+ * // }
14255
15849
  * },
14256
15850
  * });
14257
15851
  * console.log(res.data);
@@ -14327,8 +15921,7 @@ export namespace sqladmin_v1 {
14327
15921
  | BodyResponseCallback<Schema$Operation>
14328
15922
  | BodyResponseCallback<Readable>,
14329
15923
  callback?:
14330
- | BodyResponseCallback<Schema$Operation>
14331
- | BodyResponseCallback<Readable>
15924
+ BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
14332
15925
  ):
14333
15926
  | void
14334
15927
  | Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
@@ -14419,6 +16012,7 @@ export namespace sqladmin_v1 {
14419
16012
  * requestBody: {
14420
16013
  * // request body parameters
14421
16014
  * // {
16015
+ * // "location": "my_location",
14422
16016
  * // "migrationType": "my_migrationType",
14423
16017
  * // "mysqlSyncConfig": {},
14424
16018
  * // "replicaOverwriteEnabled": false,
@@ -14501,8 +16095,7 @@ export namespace sqladmin_v1 {
14501
16095
  | BodyResponseCallback<Schema$Operation>
14502
16096
  | BodyResponseCallback<Readable>,
14503
16097
  callback?:
14504
- | BodyResponseCallback<Schema$Operation>
14505
- | BodyResponseCallback<Readable>
16098
+ BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
14506
16099
  ):
14507
16100
  | void
14508
16101
  | Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
@@ -14593,6 +16186,7 @@ export namespace sqladmin_v1 {
14593
16186
  * requestBody: {
14594
16187
  * // request body parameters
14595
16188
  * // {
16189
+ * // "location": "my_location",
14596
16190
  * // "migrationType": "my_migrationType",
14597
16191
  * // "mysqlSyncConfig": {},
14598
16192
  * // "selectedObjects": [],
@@ -14725,6 +16319,10 @@ export namespace sqladmin_v1 {
14725
16319
  * Cloud SQL instance ID. This does not include the project ID.
14726
16320
  */
14727
16321
  instance?: string;
16322
+ /**
16323
+ * Optional. Region of the Cloud SQL instance.
16324
+ */
16325
+ location?: string;
14728
16326
  /**
14729
16327
  * Project ID of the project that contains the instance.
14730
16328
  */
@@ -14735,6 +16333,10 @@ export namespace sqladmin_v1 {
14735
16333
  * Cloud SQL instance ID. This does not include the project ID.
14736
16334
  */
14737
16335
  instance?: string;
16336
+ /**
16337
+ * Optional. Region of the Cloud SQL instance.
16338
+ */
16339
+ location?: string;
14738
16340
  /**
14739
16341
  * Project ID of the project that contains the instance.
14740
16342
  */
@@ -14749,6 +16351,10 @@ export namespace sqladmin_v1 {
14749
16351
  * Cloud SQL instance ID. This does not include the project ID.
14750
16352
  */
14751
16353
  instance?: string;
16354
+ /**
16355
+ * Optional. Region of the Cloud SQL instance.
16356
+ */
16357
+ location?: string;
14752
16358
  /**
14753
16359
  * Project ID of the project that contains the instance.
14754
16360
  */
@@ -14764,6 +16370,10 @@ export namespace sqladmin_v1 {
14764
16370
  * Cloud SQL instance ID. This does not include the project ID.
14765
16371
  */
14766
16372
  instance?: string;
16373
+ /**
16374
+ * Optional. Region of the Cloud SQL instance.
16375
+ */
16376
+ location?: string;
14767
16377
  /**
14768
16378
  * ID of the project that contains the instance.
14769
16379
  */
@@ -14862,6 +16472,8 @@ export namespace sqladmin_v1 {
14862
16472
  * const res = await sql.sslCerts.createEphemeral({
14863
16473
  * // Cloud SQL instance ID. This does not include the project ID.
14864
16474
  * instance: 'placeholder-value',
16475
+ * // Optional. Region of the Cloud SQL instance.
16476
+ * location: 'placeholder-value',
14865
16477
  * // Project ID of the Cloud SQL project.
14866
16478
  * project: 'placeholder-value',
14867
16479
  *
@@ -14936,8 +16548,7 @@ export namespace sqladmin_v1 {
14936
16548
  | BodyResponseCallback<Schema$SslCert>
14937
16549
  | BodyResponseCallback<Readable>,
14938
16550
  callback?:
14939
- | BodyResponseCallback<Schema$SslCert>
14940
- | BodyResponseCallback<Readable>
16551
+ BodyResponseCallback<Schema$SslCert> | BodyResponseCallback<Readable>
14941
16552
  ):
14942
16553
  | void
14943
16554
  | Promise<GaxiosResponseWithHTTP2<Schema$SslCert>>
@@ -15099,8 +16710,7 @@ export namespace sqladmin_v1 {
15099
16710
  | BodyResponseCallback<Schema$Operation>
15100
16711
  | BodyResponseCallback<Readable>,
15101
16712
  callback?:
15102
- | BodyResponseCallback<Schema$Operation>
15103
- | BodyResponseCallback<Readable>
16713
+ BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
15104
16714
  ):
15105
16715
  | void
15106
16716
  | Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
@@ -15250,8 +16860,7 @@ export namespace sqladmin_v1 {
15250
16860
  | BodyResponseCallback<Schema$SslCert>
15251
16861
  | BodyResponseCallback<Readable>,
15252
16862
  callback?:
15253
- | BodyResponseCallback<Schema$SslCert>
15254
- | BodyResponseCallback<Readable>
16863
+ BodyResponseCallback<Schema$SslCert> | BodyResponseCallback<Readable>
15255
16864
  ):
15256
16865
  | void
15257
16866
  | Promise<GaxiosResponseWithHTTP2<Schema$SslCert>>
@@ -15384,8 +16993,7 @@ export namespace sqladmin_v1 {
15384
16993
  insert(
15385
16994
  params: Params$Resource$Sslcerts$Insert,
15386
16995
  options:
15387
- | MethodOptions
15388
- | BodyResponseCallback<Schema$SslCertsInsertResponse>,
16996
+ MethodOptions | BodyResponseCallback<Schema$SslCertsInsertResponse>,
15389
16997
  callback: BodyResponseCallback<Schema$SslCertsInsertResponse>
15390
16998
  ): void;
15391
16999
  insert(
@@ -15527,8 +17135,7 @@ export namespace sqladmin_v1 {
15527
17135
  list(
15528
17136
  params: Params$Resource$Sslcerts$List,
15529
17137
  options:
15530
- | MethodOptions
15531
- | BodyResponseCallback<Schema$SslCertsListResponse>,
17138
+ MethodOptions | BodyResponseCallback<Schema$SslCertsListResponse>,
15532
17139
  callback: BodyResponseCallback<Schema$SslCertsListResponse>
15533
17140
  ): void;
15534
17141
  list(
@@ -15600,6 +17207,10 @@ export namespace sqladmin_v1 {
15600
17207
  * Cloud SQL instance ID. This does not include the project ID.
15601
17208
  */
15602
17209
  instance?: string;
17210
+ /**
17211
+ * Optional. Region of the Cloud SQL instance.
17212
+ */
17213
+ location?: string;
15603
17214
  /**
15604
17215
  * Project ID of the Cloud SQL project.
15605
17216
  */
@@ -15862,6 +17473,8 @@ export namespace sqladmin_v1 {
15862
17473
  * host: 'placeholder-value',
15863
17474
  * // Database instance ID. This does not include the project ID.
15864
17475
  * instance: 'placeholder-value',
17476
+ * // Optional. Region of the Cloud SQL instance.
17477
+ * location: 'placeholder-value',
15865
17478
  * // Name of the user in the instance.
15866
17479
  * name: 'placeholder-value',
15867
17480
  * // Project ID of the project that contains the instance.
@@ -15940,8 +17553,7 @@ export namespace sqladmin_v1 {
15940
17553
  | BodyResponseCallback<Schema$Operation>
15941
17554
  | BodyResponseCallback<Readable>,
15942
17555
  callback?:
15943
- | BodyResponseCallback<Schema$Operation>
15944
- | BodyResponseCallback<Readable>
17556
+ BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
15945
17557
  ):
15946
17558
  | void
15947
17559
  | Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
@@ -16025,6 +17637,8 @@ export namespace sqladmin_v1 {
16025
17637
  * host: 'placeholder-value',
16026
17638
  * // Database instance ID. This does not include the project ID.
16027
17639
  * instance: 'placeholder-value',
17640
+ * // Optional. Region of the Cloud SQL instance.
17641
+ * location: 'placeholder-value',
16028
17642
  * // User of the instance.
16029
17643
  * name: 'placeholder-value',
16030
17644
  * // Project ID of the project that contains the instance.
@@ -16046,6 +17660,7 @@ export namespace sqladmin_v1 {
16046
17660
  * // "password": "my_password",
16047
17661
  * // "passwordPolicy": {},
16048
17662
  * // "project": "my_project",
17663
+ * // "serverRoles": [],
16049
17664
  * // "sqlserverUserDetails": {},
16050
17665
  * // "type": "my_type"
16051
17666
  * // }
@@ -16097,8 +17712,7 @@ export namespace sqladmin_v1 {
16097
17712
  | BodyResponseCallback<Schema$User>
16098
17713
  | BodyResponseCallback<Readable>,
16099
17714
  callback?:
16100
- | BodyResponseCallback<Schema$User>
16101
- | BodyResponseCallback<Readable>
17715
+ BodyResponseCallback<Schema$User> | BodyResponseCallback<Readable>
16102
17716
  ):
16103
17717
  | void
16104
17718
  | Promise<GaxiosResponseWithHTTP2<Schema$User>>
@@ -16181,6 +17795,8 @@ export namespace sqladmin_v1 {
16181
17795
  * const res = await sql.users.insert({
16182
17796
  * // Database instance ID. This does not include the project ID.
16183
17797
  * instance: 'placeholder-value',
17798
+ * // Optional. Region of the Cloud SQL instance.
17799
+ * location: 'placeholder-value',
16184
17800
  * // Project ID of the project that contains the instance.
16185
17801
  * project: 'placeholder-value',
16186
17802
  *
@@ -16200,6 +17816,7 @@ export namespace sqladmin_v1 {
16200
17816
  * // "password": "my_password",
16201
17817
  * // "passwordPolicy": {},
16202
17818
  * // "project": "my_project",
17819
+ * // "serverRoles": [],
16203
17820
  * // "sqlserverUserDetails": {},
16204
17821
  * // "type": "my_type"
16205
17822
  * // }
@@ -16278,8 +17895,7 @@ export namespace sqladmin_v1 {
16278
17895
  | BodyResponseCallback<Schema$Operation>
16279
17896
  | BodyResponseCallback<Readable>,
16280
17897
  callback?:
16281
- | BodyResponseCallback<Schema$Operation>
16282
- | BodyResponseCallback<Readable>
17898
+ BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
16283
17899
  ):
16284
17900
  | void
16285
17901
  | Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
@@ -16361,6 +17977,8 @@ export namespace sqladmin_v1 {
16361
17977
  * const res = await sql.users.list({
16362
17978
  * // Database instance ID. This does not include the project ID.
16363
17979
  * instance: 'placeholder-value',
17980
+ * // Optional. Region of the Cloud SQL instance.
17981
+ * location: 'placeholder-value',
16364
17982
  * // Project ID of the project that contains the instance.
16365
17983
  * project: 'placeholder-value',
16366
17984
  * });
@@ -16507,12 +18125,18 @@ export namespace sqladmin_v1 {
16507
18125
  * host: 'placeholder-value',
16508
18126
  * // Database instance ID. This does not include the project ID.
16509
18127
  * instance: 'placeholder-value',
18128
+ * // Optional. Region of the Cloud SQL instance.
18129
+ * location: 'placeholder-value',
16510
18130
  * // Name of the user in the instance.
16511
18131
  * name: 'placeholder-value',
16512
18132
  * // Project ID of the project that contains the instance.
16513
18133
  * project: 'placeholder-value',
16514
18134
  * // Optional. Specifies whether to revoke existing roles that are not present in the `database_roles` field. If `false` or unset, the database roles specified in `database_roles` are added to the user's existing roles.
16515
18135
  * revokeExistingRoles: 'placeholder-value',
18136
+ * // Optional. Specifies whether to revoke existing roles that are not present in the `server_roles` field. If `false` or unset, the server roles specified in `server_roles` are added to the user's existing server roles.
18137
+ * revokeExistingServerRoles: 'placeholder-value',
18138
+ * // Optional. The server roles to grant to the SQL Server login. Existing server roles will not be revoked if revoke_existing_roles is false. body.server_roles will be ignored for update request.
18139
+ * serverRoles: 'placeholder-value',
16516
18140
  *
16517
18141
  * // Request body metadata
16518
18142
  * requestBody: {
@@ -16530,6 +18154,7 @@ export namespace sqladmin_v1 {
16530
18154
  * // "password": "my_password",
16531
18155
  * // "passwordPolicy": {},
16532
18156
  * // "project": "my_project",
18157
+ * // "serverRoles": [],
16533
18158
  * // "sqlserverUserDetails": {},
16534
18159
  * // "type": "my_type"
16535
18160
  * // }
@@ -16608,8 +18233,7 @@ export namespace sqladmin_v1 {
16608
18233
  | BodyResponseCallback<Schema$Operation>
16609
18234
  | BodyResponseCallback<Readable>,
16610
18235
  callback?:
16611
- | BodyResponseCallback<Schema$Operation>
16612
- | BodyResponseCallback<Readable>
18236
+ BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
16613
18237
  ):
16614
18238
  | void
16615
18239
  | Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
@@ -16665,6 +18289,10 @@ export namespace sqladmin_v1 {
16665
18289
  * Database instance ID. This does not include the project ID.
16666
18290
  */
16667
18291
  instance?: string;
18292
+ /**
18293
+ * Optional. Region of the Cloud SQL instance.
18294
+ */
18295
+ location?: string;
16668
18296
  /**
16669
18297
  * Name of the user in the instance.
16670
18298
  */
@@ -16683,6 +18311,10 @@ export namespace sqladmin_v1 {
16683
18311
  * Database instance ID. This does not include the project ID.
16684
18312
  */
16685
18313
  instance?: string;
18314
+ /**
18315
+ * Optional. Region of the Cloud SQL instance.
18316
+ */
18317
+ location?: string;
16686
18318
  /**
16687
18319
  * User of the instance.
16688
18320
  */
@@ -16697,6 +18329,10 @@ export namespace sqladmin_v1 {
16697
18329
  * Database instance ID. This does not include the project ID.
16698
18330
  */
16699
18331
  instance?: string;
18332
+ /**
18333
+ * Optional. Region of the Cloud SQL instance.
18334
+ */
18335
+ location?: string;
16700
18336
  /**
16701
18337
  * Project ID of the project that contains the instance.
16702
18338
  */
@@ -16712,6 +18348,10 @@ export namespace sqladmin_v1 {
16712
18348
  * Database instance ID. This does not include the project ID.
16713
18349
  */
16714
18350
  instance?: string;
18351
+ /**
18352
+ * Optional. Region of the Cloud SQL instance.
18353
+ */
18354
+ location?: string;
16715
18355
  /**
16716
18356
  * Project ID of the project that contains the instance.
16717
18357
  */
@@ -16730,6 +18370,10 @@ export namespace sqladmin_v1 {
16730
18370
  * Database instance ID. This does not include the project ID.
16731
18371
  */
16732
18372
  instance?: string;
18373
+ /**
18374
+ * Optional. Region of the Cloud SQL instance.
18375
+ */
18376
+ location?: string;
16733
18377
  /**
16734
18378
  * Name of the user in the instance.
16735
18379
  */
@@ -16742,6 +18386,14 @@ export namespace sqladmin_v1 {
16742
18386
  * Optional. Specifies whether to revoke existing roles that are not present in the `database_roles` field. If `false` or unset, the database roles specified in `database_roles` are added to the user's existing roles.
16743
18387
  */
16744
18388
  revokeExistingRoles?: boolean;
18389
+ /**
18390
+ * Optional. Specifies whether to revoke existing roles that are not present in the `server_roles` field. If `false` or unset, the server roles specified in `server_roles` are added to the user's existing server roles.
18391
+ */
18392
+ revokeExistingServerRoles?: boolean;
18393
+ /**
18394
+ * Optional. The server roles to grant to the SQL Server login. Existing server roles will not be revoked if revoke_existing_roles is false. body.server_roles will be ignored for update request.
18395
+ */
18396
+ serverRoles?: string[];
16745
18397
 
16746
18398
  /**
16747
18399
  * Request body metadata