@googleapis/sqladmin 36.0.0 → 38.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/v1.ts CHANGED
@@ -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
@@ -359,7 +359,7 @@ export namespace sqladmin_v1 {
359
359
  */
360
360
  pointInTimeRecoveryEnabled?: boolean | null;
361
361
  /**
362
- * Reserved for future use.
362
+ * 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
363
  */
364
364
  replicationLogArchivingEnabled?: boolean | null;
365
365
  /**
@@ -554,7 +554,7 @@ export namespace sqladmin_v1 {
554
554
  */
555
555
  destinationInstanceName?: string | null;
556
556
  /**
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.
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.
558
558
  */
559
559
  destinationNetwork?: string | null;
560
560
  /**
@@ -658,6 +658,10 @@ export namespace sqladmin_v1 {
658
658
  * `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
659
  */
660
660
  backendType?: string | null;
661
+ /**
662
+ * Optional. Output only. Connection name of the Cloud SQL instance used in connection strings, in the format project:region:instance.
663
+ */
664
+ connectionName?: string | null;
661
665
  /**
662
666
  * Custom subject alternative names for the server certificate.
663
667
  */
@@ -786,6 +790,10 @@ export namespace sqladmin_v1 {
786
790
  * 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
791
  */
788
792
  currentDiskSize?: string | null;
793
+ /**
794
+ * Optional. If true, instance metadata is sent to the Database Center. If false, instance metadata is not sent to the Database Center.
795
+ */
796
+ databaseCenterIntegrationEnabled?: boolean | null;
789
797
  /**
790
798
  * Output only. Stores the current database version running on the instance including minor version such as `MYSQL_8_0_18`.
791
799
  */
@@ -1158,6 +1166,10 @@ export namespace sqladmin_v1 {
1158
1166
  * 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
1167
  */
1160
1168
  partialResultMode?: string | null;
1169
+ /**
1170
+ * 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.
1171
+ */
1172
+ passwordSecretVersion?: string | null;
1161
1173
  /**
1162
1174
  * Optional. The maximum number of rows returned per SQL statement.
1163
1175
  */
@@ -1971,6 +1983,10 @@ export namespace sqladmin_v1 {
1971
1983
  * PEM representation of the replica's private key. The corresponding public key is encoded in the client's certificate.
1972
1984
  */
1973
1985
  clientKey?: string | null;
1986
+ /**
1987
+ * Output only. Indicates whether the resource is managed by Database Migration Service.
1988
+ */
1989
+ dmsManaged?: boolean | null;
1974
1990
  /**
1975
1991
  * The dump file to create the Cloud SQL replica.
1976
1992
  */
@@ -2216,10 +2232,22 @@ export namespace sqladmin_v1 {
2216
2232
  * Performance capture configuration.
2217
2233
  */
2218
2234
  export interface Schema$PerformanceCaptureConfig {
2235
+ /**
2236
+ * 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.
2237
+ */
2238
+ cpuUtilizationThresholdPercent?: number | null;
2219
2239
  /**
2220
2240
  * Optional. Enables or disables the performance capture feature.
2221
2241
  */
2222
2242
  enabled?: boolean | null;
2243
+ /**
2244
+ * 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.
2245
+ */
2246
+ historyListLengthThresholdCount?: number | null;
2247
+ /**
2248
+ * 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.
2249
+ */
2250
+ memoryUsageThresholdPercent?: number | null;
2223
2251
  /**
2224
2252
  * Optional. Specifies the minimum number of consecutive probe threshold that triggers performance capture.
2225
2253
  */
@@ -2236,10 +2264,30 @@ export namespace sqladmin_v1 {
2236
2264
  * Optional. Specifies the minimum number of seconds replica must be lagging behind primary instance to trigger the performance capture on replica.
2237
2265
  */
2238
2266
  secondsBehindSourceThreshold?: number | null;
2267
+ /**
2268
+ * 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.
2269
+ */
2270
+ semaphoreWaitThresholdCount?: number | null;
2239
2271
  /**
2240
2272
  * Optional. Specifies the amount of time in seconds that a transaction needs to have been open before the watcher starts recording it.
2241
2273
  */
2242
2274
  transactionDurationThreshold?: number | null;
2275
+ /**
2276
+ * 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@%"]`
2277
+ */
2278
+ transactionKillExcludedUserHosts?: string[] | null;
2279
+ /**
2280
+ * 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.
2281
+ */
2282
+ transactionKillThresholdSeconds?: number | null;
2283
+ /**
2284
+ * 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.
2285
+ */
2286
+ transactionKillType?: string | null;
2287
+ /**
2288
+ * 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.
2289
+ */
2290
+ transactionLockWaitThresholdCount?: number | null;
2243
2291
  }
2244
2292
  /**
2245
2293
  * Perform disk shrink context.
@@ -2382,14 +2430,30 @@ export namespace sqladmin_v1 {
2382
2430
  * 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
2431
  */
2384
2432
  consumerProject?: string | null;
2433
+ /**
2434
+ * Output only. The status of automated DNS provisioning.
2435
+ */
2436
+ instanceAutoDnsStatus?: string | null;
2385
2437
  /**
2386
2438
  * The IP address of the consumer endpoint.
2387
2439
  */
2388
2440
  ipAddress?: string | null;
2441
+ /**
2442
+ * 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`.
2443
+ */
2444
+ serviceConnectionPolicy?: string | null;
2445
+ /**
2446
+ * Output only. The status of service connection policy creation.
2447
+ */
2448
+ serviceConnectionPolicyCreationResult?: string | null;
2389
2449
  /**
2390
2450
  * The connection status of the consumer endpoint.
2391
2451
  */
2392
2452
  status?: string | null;
2453
+ /**
2454
+ * Output only. The status of automated DNS provisioning for the write endpoint.
2455
+ */
2456
+ writeEndpointAutoDnsStatus?: string | null;
2393
2457
  }
2394
2458
  /**
2395
2459
  * PSC settings for a Cloud SQL instance.
@@ -2403,12 +2467,16 @@ export namespace sqladmin_v1 {
2403
2467
  * Optional. The network attachment of the consumer network that the Private Service Connect enabled Cloud SQL instance is authorized to connect via PSC interface. format: projects/PROJECT/regions/REGION/networkAttachments/ID
2404
2468
  */
2405
2469
  networkAttachmentUri?: string | null;
2470
+ /**
2471
+ * Optional. Whether to set up the PSC service connection policy automatically.
2472
+ */
2473
+ pscAutoConnectionPolicyEnabled?: boolean | null;
2406
2474
  /**
2407
2475
  * Optional. The list of settings for requested Private Service Connect consumer endpoints that can be used to connect to this Cloud SQL instance.
2408
2476
  */
2409
2477
  pscAutoConnections?: Schema$PscAutoConnectionConfig[];
2410
2478
  /**
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.
2479
+ * 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
2480
  */
2413
2481
  pscAutoDnsEnabled?: boolean | null;
2414
2482
  /**
@@ -2416,7 +2484,7 @@ export namespace sqladmin_v1 {
2416
2484
  */
2417
2485
  pscEnabled?: boolean | null;
2418
2486
  /**
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.
2487
+ * 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
2488
  */
2421
2489
  pscWriteEndpointDnsEnabled?: boolean | null;
2422
2490
  }
@@ -2697,7 +2765,7 @@ export namespace sqladmin_v1 {
2697
2765
  */
2698
2766
  denyMaintenancePeriods?: Schema$DenyMaintenancePeriod[];
2699
2767
  /**
2700
- * Optional. The edition of the instance.
2768
+ * Optional. The edition type of the Cloud SQL instance.
2701
2769
  */
2702
2770
  edition?: string | null;
2703
2771
  /**
@@ -3364,6 +3432,10 @@ export namespace sqladmin_v1 {
3364
3432
  * 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
3433
  */
3366
3434
  project?: string | null;
3435
+ /**
3436
+ * Optional. The server roles for the SQL Server login.
3437
+ */
3438
+ serverRoles?: string[] | null;
3367
3439
  sqlserverUserDetails?: Schema$SqlServerUserDetails;
3368
3440
  /**
3369
3441
  * 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 +3618,7 @@ export namespace sqladmin_v1 {
3546
3618
  | BodyResponseCallback<Schema$Operation>
3547
3619
  | BodyResponseCallback<Readable>,
3548
3620
  callback?:
3549
- | BodyResponseCallback<Schema$Operation>
3550
- | BodyResponseCallback<Readable>
3621
+ BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
3551
3622
  ):
3552
3623
  | void
3553
3624
  | Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
@@ -3708,8 +3779,7 @@ export namespace sqladmin_v1 {
3708
3779
  | BodyResponseCallback<Schema$BackupRun>
3709
3780
  | BodyResponseCallback<Readable>,
3710
3781
  callback?:
3711
- | BodyResponseCallback<Schema$BackupRun>
3712
- | BodyResponseCallback<Readable>
3782
+ BodyResponseCallback<Schema$BackupRun> | BodyResponseCallback<Readable>
3713
3783
  ):
3714
3784
  | void
3715
3785
  | Promise<GaxiosResponseWithHTTP2<Schema$BackupRun>>
@@ -3894,8 +3964,7 @@ export namespace sqladmin_v1 {
3894
3964
  | BodyResponseCallback<Schema$Operation>
3895
3965
  | BodyResponseCallback<Readable>,
3896
3966
  callback?:
3897
- | BodyResponseCallback<Schema$Operation>
3898
- | BodyResponseCallback<Readable>
3967
+ BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
3899
3968
  ):
3900
3969
  | void
3901
3970
  | Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
@@ -4023,8 +4092,7 @@ export namespace sqladmin_v1 {
4023
4092
  list(
4024
4093
  params: Params$Resource$Backupruns$List,
4025
4094
  options:
4026
- | MethodOptions
4027
- | BodyResponseCallback<Schema$BackupRunsListResponse>,
4095
+ MethodOptions | BodyResponseCallback<Schema$BackupRunsListResponse>,
4028
4096
  callback: BodyResponseCallback<Schema$BackupRunsListResponse>
4029
4097
  ): void;
4030
4098
  list(
@@ -4299,8 +4367,7 @@ export namespace sqladmin_v1 {
4299
4367
  | BodyResponseCallback<Schema$Operation>
4300
4368
  | BodyResponseCallback<Readable>,
4301
4369
  callback?:
4302
- | BodyResponseCallback<Schema$Operation>
4303
- | BodyResponseCallback<Readable>
4370
+ BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
4304
4371
  ):
4305
4372
  | void
4306
4373
  | Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
@@ -4458,8 +4525,7 @@ export namespace sqladmin_v1 {
4458
4525
  | BodyResponseCallback<Schema$Operation>
4459
4526
  | BodyResponseCallback<Readable>,
4460
4527
  callback?:
4461
- | BodyResponseCallback<Schema$Operation>
4462
- | BodyResponseCallback<Readable>
4528
+ BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
4463
4529
  ):
4464
4530
  | void
4465
4531
  | Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
@@ -4617,8 +4683,7 @@ export namespace sqladmin_v1 {
4617
4683
  | BodyResponseCallback<Schema$Backup>
4618
4684
  | BodyResponseCallback<Readable>,
4619
4685
  callback?:
4620
- | BodyResponseCallback<Schema$Backup>
4621
- | BodyResponseCallback<Readable>
4686
+ BodyResponseCallback<Schema$Backup> | BodyResponseCallback<Readable>
4622
4687
  ):
4623
4688
  | void
4624
4689
  | Promise<GaxiosResponseWithHTTP2<Schema$Backup>>
@@ -4955,8 +5020,7 @@ export namespace sqladmin_v1 {
4955
5020
  | BodyResponseCallback<Schema$Operation>
4956
5021
  | BodyResponseCallback<Readable>,
4957
5022
  callback?:
4958
- | BodyResponseCallback<Schema$Operation>
4959
- | BodyResponseCallback<Readable>
5023
+ BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
4960
5024
  ):
4961
5025
  | void
4962
5026
  | Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
@@ -5270,6 +5334,7 @@ export namespace sqladmin_v1 {
5270
5334
  * // Example response
5271
5335
  * // {
5272
5336
  * // "backendType": "my_backendType",
5337
+ * // "connectionName": "my_connectionName",
5273
5338
  * // "customSubjectAlternativeNames": [],
5274
5339
  * // "databaseVersion": "my_databaseVersion",
5275
5340
  * // "dnsName": "my_dnsName",
@@ -5379,6 +5444,161 @@ export namespace sqladmin_v1 {
5379
5444
  return createAPIRequest<Schema$ConnectSettings>(parameters);
5380
5445
  }
5381
5446
  }
5447
+
5448
+ /**
5449
+ * Retrieves connect settings about a Cloud SQL instance using the instance DNS name.
5450
+ * @example
5451
+ * ```js
5452
+ * // Before running the sample:
5453
+ * // - Enable the API at:
5454
+ * // https://console.developers.google.com/apis/api/sqladmin.googleapis.com
5455
+ * // - Login into gcloud by running:
5456
+ * // ```sh
5457
+ * // $ gcloud auth application-default login
5458
+ * // ```
5459
+ * // - Install the npm module by running:
5460
+ * // ```sh
5461
+ * // $ npm install googleapis
5462
+ * // ```
5463
+ *
5464
+ * const {google} = require('googleapis');
5465
+ * const sqladmin = google.sqladmin('v1');
5466
+ *
5467
+ * async function main() {
5468
+ * const auth = new google.auth.GoogleAuth({
5469
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
5470
+ * scopes: [
5471
+ * 'https://www.googleapis.com/auth/cloud-platform',
5472
+ * 'https://www.googleapis.com/auth/sqlservice.admin',
5473
+ * ],
5474
+ * });
5475
+ *
5476
+ * // Acquire an auth client, and bind it to all future calls
5477
+ * const authClient = await auth.getClient();
5478
+ * google.options({auth: authClient});
5479
+ *
5480
+ * // Do the magic
5481
+ * const res = await sql.connect.resolve({
5482
+ * // Required. Cloud SQL instance ID. This does not include the project ID.
5483
+ * dnsName: 'placeholder-value',
5484
+ * // Required. The region of the instance.
5485
+ * location: 'placeholder-value',
5486
+ * });
5487
+ * console.log(res.data);
5488
+ *
5489
+ * // Example response
5490
+ * // {
5491
+ * // "backendType": "my_backendType",
5492
+ * // "connectionName": "my_connectionName",
5493
+ * // "customSubjectAlternativeNames": [],
5494
+ * // "databaseVersion": "my_databaseVersion",
5495
+ * // "dnsName": "my_dnsName",
5496
+ * // "dnsNames": [],
5497
+ * // "ipAddresses": [],
5498
+ * // "kind": "my_kind",
5499
+ * // "mdxProtocolSupport": [],
5500
+ * // "nodeCount": 0,
5501
+ * // "nodes": [],
5502
+ * // "pscEnabled": false,
5503
+ * // "region": "my_region",
5504
+ * // "serverCaCert": {},
5505
+ * // "serverCaMode": "my_serverCaMode"
5506
+ * // }
5507
+ * }
5508
+ *
5509
+ * main().catch(e => {
5510
+ * console.error(e);
5511
+ * throw e;
5512
+ * });
5513
+ *
5514
+ * ```
5515
+ *
5516
+ * @param params - Parameters for request
5517
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
5518
+ * @param callback - Optional callback that handles the response.
5519
+ * @returns A promise if used with async/await, or void if used with a callback.
5520
+ */
5521
+ resolve(
5522
+ params: Params$Resource$Connect$Resolve,
5523
+ options: StreamMethodOptions
5524
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
5525
+ resolve(
5526
+ params?: Params$Resource$Connect$Resolve,
5527
+ options?: MethodOptions
5528
+ ): Promise<GaxiosResponseWithHTTP2<Schema$ConnectSettings>>;
5529
+ resolve(
5530
+ params: Params$Resource$Connect$Resolve,
5531
+ options: StreamMethodOptions | BodyResponseCallback<Readable>,
5532
+ callback: BodyResponseCallback<Readable>
5533
+ ): void;
5534
+ resolve(
5535
+ params: Params$Resource$Connect$Resolve,
5536
+ options: MethodOptions | BodyResponseCallback<Schema$ConnectSettings>,
5537
+ callback: BodyResponseCallback<Schema$ConnectSettings>
5538
+ ): void;
5539
+ resolve(
5540
+ params: Params$Resource$Connect$Resolve,
5541
+ callback: BodyResponseCallback<Schema$ConnectSettings>
5542
+ ): void;
5543
+ resolve(callback: BodyResponseCallback<Schema$ConnectSettings>): void;
5544
+ resolve(
5545
+ paramsOrCallback?:
5546
+ | Params$Resource$Connect$Resolve
5547
+ | BodyResponseCallback<Schema$ConnectSettings>
5548
+ | BodyResponseCallback<Readable>,
5549
+ optionsOrCallback?:
5550
+ | MethodOptions
5551
+ | StreamMethodOptions
5552
+ | BodyResponseCallback<Schema$ConnectSettings>
5553
+ | BodyResponseCallback<Readable>,
5554
+ callback?:
5555
+ | BodyResponseCallback<Schema$ConnectSettings>
5556
+ | BodyResponseCallback<Readable>
5557
+ ):
5558
+ | void
5559
+ | Promise<GaxiosResponseWithHTTP2<Schema$ConnectSettings>>
5560
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
5561
+ let params = (paramsOrCallback || {}) as Params$Resource$Connect$Resolve;
5562
+ let options = (optionsOrCallback || {}) as MethodOptions;
5563
+
5564
+ if (typeof paramsOrCallback === 'function') {
5565
+ callback = paramsOrCallback;
5566
+ params = {} as Params$Resource$Connect$Resolve;
5567
+ options = {};
5568
+ }
5569
+
5570
+ if (typeof optionsOrCallback === 'function') {
5571
+ callback = optionsOrCallback;
5572
+ options = {};
5573
+ }
5574
+
5575
+ const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/';
5576
+ const parameters = {
5577
+ options: Object.assign(
5578
+ {
5579
+ url: (
5580
+ rootUrl +
5581
+ '/v1/locations/{location}/dns/{dnsName}:resolveConnectSettings'
5582
+ ).replace(/([^:]\/)\/+/g, '$1'),
5583
+ method: 'GET',
5584
+ apiVersion: '',
5585
+ },
5586
+ options
5587
+ ),
5588
+ params,
5589
+ requiredParams: ['location', 'dnsName'],
5590
+ pathParams: ['dnsName', 'location'],
5591
+ context: this.context,
5592
+ };
5593
+ if (callback) {
5594
+ createAPIRequest<Schema$ConnectSettings>(
5595
+ parameters,
5596
+ callback as BodyResponseCallback<unknown>
5597
+ );
5598
+ } else {
5599
+ return createAPIRequest<Schema$ConnectSettings>(parameters);
5600
+ }
5601
+ }
5382
5602
  }
5383
5603
 
5384
5604
  export interface Params$Resource$Connect$Generateephemeralcert extends StandardParameters {
@@ -5410,6 +5630,16 @@ export namespace sqladmin_v1 {
5410
5630
  */
5411
5631
  readTime?: string;
5412
5632
  }
5633
+ export interface Params$Resource$Connect$Resolve extends StandardParameters {
5634
+ /**
5635
+ * Required. Cloud SQL instance ID. This does not include the project ID.
5636
+ */
5637
+ dnsName?: string;
5638
+ /**
5639
+ * Required. The region of the instance.
5640
+ */
5641
+ location?: string;
5642
+ }
5413
5643
 
5414
5644
  export class Resource$Databases {
5415
5645
  context: APIRequestContext;
@@ -5531,8 +5761,7 @@ export namespace sqladmin_v1 {
5531
5761
  | BodyResponseCallback<Schema$Operation>
5532
5762
  | BodyResponseCallback<Readable>,
5533
5763
  callback?:
5534
- | BodyResponseCallback<Schema$Operation>
5535
- | BodyResponseCallback<Readable>
5764
+ BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
5536
5765
  ):
5537
5766
  | void
5538
5767
  | Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
@@ -5682,8 +5911,7 @@ export namespace sqladmin_v1 {
5682
5911
  | BodyResponseCallback<Schema$Database>
5683
5912
  | BodyResponseCallback<Readable>,
5684
5913
  callback?:
5685
- | BodyResponseCallback<Schema$Database>
5686
- | BodyResponseCallback<Readable>
5914
+ BodyResponseCallback<Schema$Database> | BodyResponseCallback<Readable>
5687
5915
  ):
5688
5916
  | void
5689
5917
  | Promise<GaxiosResponseWithHTTP2<Schema$Database>>
@@ -5858,8 +6086,7 @@ export namespace sqladmin_v1 {
5858
6086
  | BodyResponseCallback<Schema$Operation>
5859
6087
  | BodyResponseCallback<Readable>,
5860
6088
  callback?:
5861
- | BodyResponseCallback<Schema$Operation>
5862
- | BodyResponseCallback<Readable>
6089
+ BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
5863
6090
  ):
5864
6091
  | void
5865
6092
  | Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
@@ -5981,8 +6208,7 @@ export namespace sqladmin_v1 {
5981
6208
  list(
5982
6209
  params: Params$Resource$Databases$List,
5983
6210
  options:
5984
- | MethodOptions
5985
- | BodyResponseCallback<Schema$DatabasesListResponse>,
6211
+ MethodOptions | BodyResponseCallback<Schema$DatabasesListResponse>,
5986
6212
  callback: BodyResponseCallback<Schema$DatabasesListResponse>
5987
6213
  ): void;
5988
6214
  list(
@@ -6178,8 +6404,7 @@ export namespace sqladmin_v1 {
6178
6404
  | BodyResponseCallback<Schema$Operation>
6179
6405
  | BodyResponseCallback<Readable>,
6180
6406
  callback?:
6181
- | BodyResponseCallback<Schema$Operation>
6182
- | BodyResponseCallback<Readable>
6407
+ BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
6183
6408
  ):
6184
6409
  | void
6185
6410
  | Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
@@ -6356,8 +6581,7 @@ export namespace sqladmin_v1 {
6356
6581
  | BodyResponseCallback<Schema$Operation>
6357
6582
  | BodyResponseCallback<Readable>,
6358
6583
  callback?:
6359
- | BodyResponseCallback<Schema$Operation>
6360
- | BodyResponseCallback<Readable>
6584
+ BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
6361
6585
  ):
6362
6586
  | void
6363
6587
  | Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
@@ -6934,8 +7158,7 @@ export namespace sqladmin_v1 {
6934
7158
  | BodyResponseCallback<Schema$Operation>
6935
7159
  | BodyResponseCallback<Readable>,
6936
7160
  callback?:
6937
- | BodyResponseCallback<Schema$Operation>
6938
- | BodyResponseCallback<Readable>
7161
+ BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
6939
7162
  ):
6940
7163
  | void
6941
7164
  | Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
@@ -7095,8 +7318,7 @@ export namespace sqladmin_v1 {
7095
7318
  | BodyResponseCallback<Schema$Operation>
7096
7319
  | BodyResponseCallback<Readable>,
7097
7320
  callback?:
7098
- | BodyResponseCallback<Schema$Operation>
7099
- | BodyResponseCallback<Readable>
7321
+ BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
7100
7322
  ):
7101
7323
  | void
7102
7324
  | Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
@@ -7258,8 +7480,7 @@ export namespace sqladmin_v1 {
7258
7480
  | BodyResponseCallback<Schema$Operation>
7259
7481
  | BodyResponseCallback<Readable>,
7260
7482
  callback?:
7261
- | BodyResponseCallback<Schema$Operation>
7262
- | BodyResponseCallback<Readable>
7483
+ BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
7263
7484
  ):
7264
7485
  | void
7265
7486
  | Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
@@ -7427,8 +7648,7 @@ export namespace sqladmin_v1 {
7427
7648
  | BodyResponseCallback<Schema$Operation>
7428
7649
  | BodyResponseCallback<Readable>,
7429
7650
  callback?:
7430
- | BodyResponseCallback<Schema$Operation>
7431
- | BodyResponseCallback<Readable>
7651
+ BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
7432
7652
  ):
7433
7653
  | void
7434
7654
  | Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
@@ -7594,8 +7814,7 @@ export namespace sqladmin_v1 {
7594
7814
  | BodyResponseCallback<Schema$Operation>
7595
7815
  | BodyResponseCallback<Readable>,
7596
7816
  callback?:
7597
- | BodyResponseCallback<Schema$Operation>
7598
- | BodyResponseCallback<Readable>
7817
+ BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
7599
7818
  ):
7600
7819
  | void
7601
7820
  | Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
@@ -7761,8 +7980,7 @@ export namespace sqladmin_v1 {
7761
7980
  | BodyResponseCallback<Schema$Operation>
7762
7981
  | BodyResponseCallback<Readable>,
7763
7982
  callback?:
7764
- | BodyResponseCallback<Schema$Operation>
7765
- | BodyResponseCallback<Readable>
7983
+ BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
7766
7984
  ):
7767
7985
  | void
7768
7986
  | Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
@@ -7928,8 +8146,7 @@ export namespace sqladmin_v1 {
7928
8146
  | BodyResponseCallback<Schema$Operation>
7929
8147
  | BodyResponseCallback<Readable>,
7930
8148
  callback?:
7931
- | BodyResponseCallback<Schema$Operation>
7932
- | BodyResponseCallback<Readable>
8149
+ BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
7933
8150
  ):
7934
8151
  | void
7935
8152
  | Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
@@ -8024,6 +8241,7 @@ export namespace sqladmin_v1 {
8024
8241
  * // "autoIamAuthn": false,
8025
8242
  * // "database": "my_database",
8026
8243
  * // "partialResultMode": "my_partialResultMode",
8244
+ * // "passwordSecretVersion": "my_passwordSecretVersion",
8027
8245
  * // "rowLimit": "my_rowLimit",
8028
8246
  * // "sqlStatement": "my_sqlStatement",
8029
8247
  * // "user": "my_user"
@@ -8258,8 +8476,7 @@ export namespace sqladmin_v1 {
8258
8476
  | BodyResponseCallback<Schema$Operation>
8259
8477
  | BodyResponseCallback<Readable>,
8260
8478
  callback?:
8261
- | BodyResponseCallback<Schema$Operation>
8262
- | BodyResponseCallback<Readable>
8479
+ BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
8263
8480
  ):
8264
8481
  | void
8265
8482
  | Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
@@ -8425,8 +8642,7 @@ export namespace sqladmin_v1 {
8425
8642
  | BodyResponseCallback<Schema$Operation>
8426
8643
  | BodyResponseCallback<Readable>,
8427
8644
  callback?:
8428
- | BodyResponseCallback<Schema$Operation>
8429
- | BodyResponseCallback<Readable>
8645
+ BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
8430
8646
  ):
8431
8647
  | void
8432
8648
  | Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
@@ -8521,6 +8737,7 @@ export namespace sqladmin_v1 {
8521
8737
  * // "connectionName": "my_connectionName",
8522
8738
  * // "createTime": "my_createTime",
8523
8739
  * // "currentDiskSize": "my_currentDiskSize",
8740
+ * // "databaseCenterIntegrationEnabled": false,
8524
8741
  * // "databaseInstalledVersion": "my_databaseInstalledVersion",
8525
8742
  * // "databaseVersion": "my_databaseVersion",
8526
8743
  * // "diskEncryptionConfiguration": {},
@@ -8780,8 +8997,7 @@ export namespace sqladmin_v1 {
8780
8997
  | BodyResponseCallback<Schema$Operation>
8781
8998
  | BodyResponseCallback<Readable>,
8782
8999
  callback?:
8783
- | BodyResponseCallback<Schema$Operation>
8784
- | BodyResponseCallback<Readable>
9000
+ BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
8785
9001
  ):
8786
9002
  | void
8787
9003
  | Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
@@ -8873,6 +9089,7 @@ export namespace sqladmin_v1 {
8873
9089
  * // "connectionName": "my_connectionName",
8874
9090
  * // "createTime": "my_createTime",
8875
9091
  * // "currentDiskSize": "my_currentDiskSize",
9092
+ * // "databaseCenterIntegrationEnabled": false,
8876
9093
  * // "databaseInstalledVersion": "my_databaseInstalledVersion",
8877
9094
  * // "databaseVersion": "my_databaseVersion",
8878
9095
  * // "diskEncryptionConfiguration": {},
@@ -8995,8 +9212,7 @@ export namespace sqladmin_v1 {
8995
9212
  | BodyResponseCallback<Schema$Operation>
8996
9213
  | BodyResponseCallback<Readable>,
8997
9214
  callback?:
8998
- | BodyResponseCallback<Schema$Operation>
8999
- | BodyResponseCallback<Readable>
9215
+ BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
9000
9216
  ):
9001
9217
  | void
9002
9218
  | Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
@@ -9125,8 +9341,7 @@ export namespace sqladmin_v1 {
9125
9341
  list(
9126
9342
  params: Params$Resource$Instances$List,
9127
9343
  options:
9128
- | MethodOptions
9129
- | BodyResponseCallback<Schema$InstancesListResponse>,
9344
+ MethodOptions | BodyResponseCallback<Schema$InstancesListResponse>,
9130
9345
  callback: BodyResponseCallback<Schema$InstancesListResponse>
9131
9346
  ): void;
9132
9347
  list(
@@ -9690,6 +9905,10 @@ export namespace sqladmin_v1 {
9690
9905
  * instance: 'placeholder-value',
9691
9906
  * // Project ID of the project that contains the instance.
9692
9907
  * project: 'placeholder-value',
9908
+ * // Optional. Set PSC config to the same value as the existing config to reconcile the PSC networking.
9909
+ * reconcilePscNetworking: 'placeholder-value',
9910
+ * // Optional. Set PSC config to the same value as the existing config and force reconcile the PSC networking.
9911
+ * reconcilePscNetworkingForce: 'placeholder-value',
9693
9912
  *
9694
9913
  * // Request body metadata
9695
9914
  * requestBody: {
@@ -9700,6 +9919,7 @@ export namespace sqladmin_v1 {
9700
9919
  * // "connectionName": "my_connectionName",
9701
9920
  * // "createTime": "my_createTime",
9702
9921
  * // "currentDiskSize": "my_currentDiskSize",
9922
+ * // "databaseCenterIntegrationEnabled": false,
9703
9923
  * // "databaseInstalledVersion": "my_databaseInstalledVersion",
9704
9924
  * // "databaseVersion": "my_databaseVersion",
9705
9925
  * // "diskEncryptionConfiguration": {},
@@ -9822,8 +10042,7 @@ export namespace sqladmin_v1 {
9822
10042
  | BodyResponseCallback<Schema$Operation>
9823
10043
  | BodyResponseCallback<Readable>,
9824
10044
  callback?:
9825
- | BodyResponseCallback<Schema$Operation>
9826
- | BodyResponseCallback<Readable>
10045
+ BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
9827
10046
  ):
9828
10047
  | void
9829
10048
  | Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
@@ -9996,8 +10215,7 @@ export namespace sqladmin_v1 {
9996
10215
  | BodyResponseCallback<Schema$Operation>
9997
10216
  | BodyResponseCallback<Readable>,
9998
10217
  callback?:
9999
- | BodyResponseCallback<Schema$Operation>
10000
- | BodyResponseCallback<Readable>
10218
+ BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
10001
10219
  ):
10002
10220
  | void
10003
10221
  | Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
@@ -10167,8 +10385,7 @@ export namespace sqladmin_v1 {
10167
10385
  | BodyResponseCallback<Schema$Operation>
10168
10386
  | BodyResponseCallback<Readable>,
10169
10387
  callback?:
10170
- | BodyResponseCallback<Schema$Operation>
10171
- | BodyResponseCallback<Readable>
10388
+ BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
10172
10389
  ):
10173
10390
  | void
10174
10391
  | Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
@@ -10330,8 +10547,7 @@ export namespace sqladmin_v1 {
10330
10547
  | BodyResponseCallback<Schema$Operation>
10331
10548
  | BodyResponseCallback<Readable>,
10332
10549
  callback?:
10333
- | BodyResponseCallback<Schema$Operation>
10334
- | BodyResponseCallback<Readable>
10550
+ BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
10335
10551
  ):
10336
10552
  | void
10337
10553
  | Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
@@ -10499,8 +10715,7 @@ export namespace sqladmin_v1 {
10499
10715
  | BodyResponseCallback<Schema$Operation>
10500
10716
  | BodyResponseCallback<Readable>,
10501
10717
  callback?:
10502
- | BodyResponseCallback<Schema$Operation>
10503
- | BodyResponseCallback<Readable>
10718
+ BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
10504
10719
  ):
10505
10720
  | void
10506
10721
  | Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
@@ -10813,8 +11028,7 @@ export namespace sqladmin_v1 {
10813
11028
  | BodyResponseCallback<Schema$Operation>
10814
11029
  | BodyResponseCallback<Readable>,
10815
11030
  callback?:
10816
- | BodyResponseCallback<Schema$Operation>
10817
- | BodyResponseCallback<Readable>
11031
+ BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
10818
11032
  ):
10819
11033
  | void
10820
11034
  | Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
@@ -10974,8 +11188,7 @@ export namespace sqladmin_v1 {
10974
11188
  | BodyResponseCallback<Schema$Operation>
10975
11189
  | BodyResponseCallback<Readable>,
10976
11190
  callback?:
10977
- | BodyResponseCallback<Schema$Operation>
10978
- | BodyResponseCallback<Readable>
11191
+ BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
10979
11192
  ):
10980
11193
  | void
10981
11194
  | Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
@@ -11146,8 +11359,7 @@ export namespace sqladmin_v1 {
11146
11359
  | BodyResponseCallback<Schema$Operation>
11147
11360
  | BodyResponseCallback<Readable>,
11148
11361
  callback?:
11149
- | BodyResponseCallback<Schema$Operation>
11150
- | BodyResponseCallback<Readable>
11362
+ BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
11151
11363
  ):
11152
11364
  | void
11153
11365
  | Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
@@ -11317,8 +11529,7 @@ export namespace sqladmin_v1 {
11317
11529
  | BodyResponseCallback<Schema$Operation>
11318
11530
  | BodyResponseCallback<Readable>,
11319
11531
  callback?:
11320
- | BodyResponseCallback<Schema$Operation>
11321
- | BodyResponseCallback<Readable>
11532
+ BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
11322
11533
  ):
11323
11534
  | void
11324
11535
  | Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
@@ -11486,8 +11697,7 @@ export namespace sqladmin_v1 {
11486
11697
  | BodyResponseCallback<Schema$Operation>
11487
11698
  | BodyResponseCallback<Readable>,
11488
11699
  callback?:
11489
- | BodyResponseCallback<Schema$Operation>
11490
- | BodyResponseCallback<Readable>
11700
+ BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
11491
11701
  ):
11492
11702
  | void
11493
11703
  | Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
@@ -11657,8 +11867,7 @@ export namespace sqladmin_v1 {
11657
11867
  | BodyResponseCallback<Schema$Operation>
11658
11868
  | BodyResponseCallback<Readable>,
11659
11869
  callback?:
11660
- | BodyResponseCallback<Schema$Operation>
11661
- | BodyResponseCallback<Readable>
11870
+ BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
11662
11871
  ):
11663
11872
  | void
11664
11873
  | Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
@@ -11818,8 +12027,7 @@ export namespace sqladmin_v1 {
11818
12027
  | BodyResponseCallback<Schema$Operation>
11819
12028
  | BodyResponseCallback<Readable>,
11820
12029
  callback?:
11821
- | BodyResponseCallback<Schema$Operation>
11822
- | BodyResponseCallback<Readable>
12030
+ BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
11823
12031
  ):
11824
12032
  | void
11825
12033
  | Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
@@ -11979,8 +12187,7 @@ export namespace sqladmin_v1 {
11979
12187
  | BodyResponseCallback<Schema$Operation>
11980
12188
  | BodyResponseCallback<Readable>,
11981
12189
  callback?:
11982
- | BodyResponseCallback<Schema$Operation>
11983
- | BodyResponseCallback<Readable>
12190
+ BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
11984
12191
  ):
11985
12192
  | void
11986
12193
  | Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
@@ -12142,8 +12349,7 @@ export namespace sqladmin_v1 {
12142
12349
  | BodyResponseCallback<Schema$Operation>
12143
12350
  | BodyResponseCallback<Readable>,
12144
12351
  callback?:
12145
- | BodyResponseCallback<Schema$Operation>
12146
- | BodyResponseCallback<Readable>
12352
+ BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
12147
12353
  ):
12148
12354
  | void
12149
12355
  | Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
@@ -12310,8 +12516,7 @@ export namespace sqladmin_v1 {
12310
12516
  | BodyResponseCallback<Schema$Operation>
12311
12517
  | BodyResponseCallback<Readable>,
12312
12518
  callback?:
12313
- | BodyResponseCallback<Schema$Operation>
12314
- | BodyResponseCallback<Readable>
12519
+ BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
12315
12520
  ):
12316
12521
  | void
12317
12522
  | Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
@@ -12407,6 +12612,7 @@ export namespace sqladmin_v1 {
12407
12612
  * // "connectionName": "my_connectionName",
12408
12613
  * // "createTime": "my_createTime",
12409
12614
  * // "currentDiskSize": "my_currentDiskSize",
12615
+ * // "databaseCenterIntegrationEnabled": false,
12410
12616
  * // "databaseInstalledVersion": "my_databaseInstalledVersion",
12411
12617
  * // "databaseVersion": "my_databaseVersion",
12412
12618
  * // "diskEncryptionConfiguration": {},
@@ -12529,8 +12735,7 @@ export namespace sqladmin_v1 {
12529
12735
  | BodyResponseCallback<Schema$Operation>
12530
12736
  | BodyResponseCallback<Readable>,
12531
12737
  callback?:
12532
- | BodyResponseCallback<Schema$Operation>
12533
- | BodyResponseCallback<Readable>
12738
+ BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
12534
12739
  ):
12535
12740
  | void
12536
12741
  | Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
@@ -12831,6 +13036,14 @@ export namespace sqladmin_v1 {
12831
13036
  * Project ID of the project that contains the instance.
12832
13037
  */
12833
13038
  project?: string;
13039
+ /**
13040
+ * Optional. Set PSC config to the same value as the existing config to reconcile the PSC networking.
13041
+ */
13042
+ reconcilePscNetworking?: boolean;
13043
+ /**
13044
+ * Optional. Set PSC config to the same value as the existing config and force reconcile the PSC networking.
13045
+ */
13046
+ reconcilePscNetworkingForce?: boolean;
12834
13047
 
12835
13048
  /**
12836
13049
  * Request body metadata
@@ -13091,6 +13304,8 @@ export namespace sqladmin_v1 {
13091
13304
  *
13092
13305
  * // Do the magic
13093
13306
  * const res = await sql.operations.cancel({
13307
+ * // Optional. Region of the Cloud SQL instance.
13308
+ * location: 'placeholder-value',
13094
13309
  * // Instance operation ID.
13095
13310
  * operation: 'placeholder-value',
13096
13311
  * // Project ID of the project that contains the instance.
@@ -13148,8 +13363,7 @@ export namespace sqladmin_v1 {
13148
13363
  | BodyResponseCallback<Schema$Empty>
13149
13364
  | BodyResponseCallback<Readable>,
13150
13365
  callback?:
13151
- | BodyResponseCallback<Schema$Empty>
13152
- | BodyResponseCallback<Readable>
13366
+ BodyResponseCallback<Schema$Empty> | BodyResponseCallback<Readable>
13153
13367
  ):
13154
13368
  | void
13155
13369
  | Promise<GaxiosResponseWithHTTP2<Schema$Empty>>
@@ -13230,6 +13444,8 @@ export namespace sqladmin_v1 {
13230
13444
  *
13231
13445
  * // Do the magic
13232
13446
  * const res = await sql.operations.get({
13447
+ * // Optional. Region of the Cloud SQL instance.
13448
+ * location: 'placeholder-value',
13233
13449
  * // Required. Instance operation ID.
13234
13450
  * operation: 'placeholder-value',
13235
13451
  * // Required. Project ID of the project that contains the instance.
@@ -13308,8 +13524,7 @@ export namespace sqladmin_v1 {
13308
13524
  | BodyResponseCallback<Schema$Operation>
13309
13525
  | BodyResponseCallback<Readable>,
13310
13526
  callback?:
13311
- | BodyResponseCallback<Schema$Operation>
13312
- | BodyResponseCallback<Readable>
13527
+ BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
13313
13528
  ):
13314
13529
  | void
13315
13530
  | Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
@@ -13391,6 +13606,8 @@ export namespace sqladmin_v1 {
13391
13606
  * const res = await sql.operations.list({
13392
13607
  * // Cloud SQL instance ID. This does not include the project ID.
13393
13608
  * instance: 'placeholder-value',
13609
+ * // Optional. Region of the Cloud SQL instance.
13610
+ * location: 'placeholder-value',
13394
13611
  * // Maximum number of operations per response.
13395
13612
  * maxResults: 'placeholder-value',
13396
13613
  * // A previously-returned page token representing part of the larger set of results to view.
@@ -13436,8 +13653,7 @@ export namespace sqladmin_v1 {
13436
13653
  list(
13437
13654
  params: Params$Resource$Operations$List,
13438
13655
  options:
13439
- | MethodOptions
13440
- | BodyResponseCallback<Schema$OperationsListResponse>,
13656
+ MethodOptions | BodyResponseCallback<Schema$OperationsListResponse>,
13441
13657
  callback: BodyResponseCallback<Schema$OperationsListResponse>
13442
13658
  ): void;
13443
13659
  list(
@@ -13506,6 +13722,10 @@ export namespace sqladmin_v1 {
13506
13722
  }
13507
13723
 
13508
13724
  export interface Params$Resource$Operations$Cancel extends StandardParameters {
13725
+ /**
13726
+ * Optional. Region of the Cloud SQL instance.
13727
+ */
13728
+ location?: string;
13509
13729
  /**
13510
13730
  * Instance operation ID.
13511
13731
  */
@@ -13516,6 +13736,10 @@ export namespace sqladmin_v1 {
13516
13736
  project?: string;
13517
13737
  }
13518
13738
  export interface Params$Resource$Operations$Get extends StandardParameters {
13739
+ /**
13740
+ * Optional. Region of the Cloud SQL instance.
13741
+ */
13742
+ location?: string;
13519
13743
  /**
13520
13744
  * Required. Instance operation ID.
13521
13745
  */
@@ -13530,6 +13754,10 @@ export namespace sqladmin_v1 {
13530
13754
  * Cloud SQL instance ID. This does not include the project ID.
13531
13755
  */
13532
13756
  instance?: string;
13757
+ /**
13758
+ * Optional. Region of the Cloud SQL instance.
13759
+ */
13760
+ location?: string;
13533
13761
  /**
13534
13762
  * Maximum number of operations per response.
13535
13763
  */
@@ -13989,8 +14217,7 @@ export namespace sqladmin_v1 {
13989
14217
  | BodyResponseCallback<Schema$Operation>
13990
14218
  | BodyResponseCallback<Readable>,
13991
14219
  callback?:
13992
- | BodyResponseCallback<Schema$Operation>
13993
- | BodyResponseCallback<Readable>
14220
+ BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
13994
14221
  ):
13995
14222
  | void
13996
14223
  | Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
@@ -14160,8 +14387,7 @@ export namespace sqladmin_v1 {
14160
14387
  | BodyResponseCallback<Schema$Operation>
14161
14388
  | BodyResponseCallback<Readable>,
14162
14389
  callback?:
14163
- | BodyResponseCallback<Schema$Operation>
14164
- | BodyResponseCallback<Readable>
14390
+ BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
14165
14391
  ):
14166
14392
  | void
14167
14393
  | Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
@@ -14327,8 +14553,7 @@ export namespace sqladmin_v1 {
14327
14553
  | BodyResponseCallback<Schema$Operation>
14328
14554
  | BodyResponseCallback<Readable>,
14329
14555
  callback?:
14330
- | BodyResponseCallback<Schema$Operation>
14331
- | BodyResponseCallback<Readable>
14556
+ BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
14332
14557
  ):
14333
14558
  | void
14334
14559
  | Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
@@ -14501,8 +14726,7 @@ export namespace sqladmin_v1 {
14501
14726
  | BodyResponseCallback<Schema$Operation>
14502
14727
  | BodyResponseCallback<Readable>,
14503
14728
  callback?:
14504
- | BodyResponseCallback<Schema$Operation>
14505
- | BodyResponseCallback<Readable>
14729
+ BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
14506
14730
  ):
14507
14731
  | void
14508
14732
  | Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
@@ -14936,8 +15160,7 @@ export namespace sqladmin_v1 {
14936
15160
  | BodyResponseCallback<Schema$SslCert>
14937
15161
  | BodyResponseCallback<Readable>,
14938
15162
  callback?:
14939
- | BodyResponseCallback<Schema$SslCert>
14940
- | BodyResponseCallback<Readable>
15163
+ BodyResponseCallback<Schema$SslCert> | BodyResponseCallback<Readable>
14941
15164
  ):
14942
15165
  | void
14943
15166
  | Promise<GaxiosResponseWithHTTP2<Schema$SslCert>>
@@ -15099,8 +15322,7 @@ export namespace sqladmin_v1 {
15099
15322
  | BodyResponseCallback<Schema$Operation>
15100
15323
  | BodyResponseCallback<Readable>,
15101
15324
  callback?:
15102
- | BodyResponseCallback<Schema$Operation>
15103
- | BodyResponseCallback<Readable>
15325
+ BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
15104
15326
  ):
15105
15327
  | void
15106
15328
  | Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
@@ -15250,8 +15472,7 @@ export namespace sqladmin_v1 {
15250
15472
  | BodyResponseCallback<Schema$SslCert>
15251
15473
  | BodyResponseCallback<Readable>,
15252
15474
  callback?:
15253
- | BodyResponseCallback<Schema$SslCert>
15254
- | BodyResponseCallback<Readable>
15475
+ BodyResponseCallback<Schema$SslCert> | BodyResponseCallback<Readable>
15255
15476
  ):
15256
15477
  | void
15257
15478
  | Promise<GaxiosResponseWithHTTP2<Schema$SslCert>>
@@ -15384,8 +15605,7 @@ export namespace sqladmin_v1 {
15384
15605
  insert(
15385
15606
  params: Params$Resource$Sslcerts$Insert,
15386
15607
  options:
15387
- | MethodOptions
15388
- | BodyResponseCallback<Schema$SslCertsInsertResponse>,
15608
+ MethodOptions | BodyResponseCallback<Schema$SslCertsInsertResponse>,
15389
15609
  callback: BodyResponseCallback<Schema$SslCertsInsertResponse>
15390
15610
  ): void;
15391
15611
  insert(
@@ -15527,8 +15747,7 @@ export namespace sqladmin_v1 {
15527
15747
  list(
15528
15748
  params: Params$Resource$Sslcerts$List,
15529
15749
  options:
15530
- | MethodOptions
15531
- | BodyResponseCallback<Schema$SslCertsListResponse>,
15750
+ MethodOptions | BodyResponseCallback<Schema$SslCertsListResponse>,
15532
15751
  callback: BodyResponseCallback<Schema$SslCertsListResponse>
15533
15752
  ): void;
15534
15753
  list(
@@ -15940,8 +16159,7 @@ export namespace sqladmin_v1 {
15940
16159
  | BodyResponseCallback<Schema$Operation>
15941
16160
  | BodyResponseCallback<Readable>,
15942
16161
  callback?:
15943
- | BodyResponseCallback<Schema$Operation>
15944
- | BodyResponseCallback<Readable>
16162
+ BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
15945
16163
  ):
15946
16164
  | void
15947
16165
  | Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
@@ -16046,6 +16264,7 @@ export namespace sqladmin_v1 {
16046
16264
  * // "password": "my_password",
16047
16265
  * // "passwordPolicy": {},
16048
16266
  * // "project": "my_project",
16267
+ * // "serverRoles": [],
16049
16268
  * // "sqlserverUserDetails": {},
16050
16269
  * // "type": "my_type"
16051
16270
  * // }
@@ -16097,8 +16316,7 @@ export namespace sqladmin_v1 {
16097
16316
  | BodyResponseCallback<Schema$User>
16098
16317
  | BodyResponseCallback<Readable>,
16099
16318
  callback?:
16100
- | BodyResponseCallback<Schema$User>
16101
- | BodyResponseCallback<Readable>
16319
+ BodyResponseCallback<Schema$User> | BodyResponseCallback<Readable>
16102
16320
  ):
16103
16321
  | void
16104
16322
  | Promise<GaxiosResponseWithHTTP2<Schema$User>>
@@ -16200,6 +16418,7 @@ export namespace sqladmin_v1 {
16200
16418
  * // "password": "my_password",
16201
16419
  * // "passwordPolicy": {},
16202
16420
  * // "project": "my_project",
16421
+ * // "serverRoles": [],
16203
16422
  * // "sqlserverUserDetails": {},
16204
16423
  * // "type": "my_type"
16205
16424
  * // }
@@ -16278,8 +16497,7 @@ export namespace sqladmin_v1 {
16278
16497
  | BodyResponseCallback<Schema$Operation>
16279
16498
  | BodyResponseCallback<Readable>,
16280
16499
  callback?:
16281
- | BodyResponseCallback<Schema$Operation>
16282
- | BodyResponseCallback<Readable>
16500
+ BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
16283
16501
  ):
16284
16502
  | void
16285
16503
  | Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
@@ -16513,6 +16731,10 @@ export namespace sqladmin_v1 {
16513
16731
  * project: 'placeholder-value',
16514
16732
  * // 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
16733
  * revokeExistingRoles: 'placeholder-value',
16734
+ * // 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.
16735
+ * revokeExistingServerRoles: 'placeholder-value',
16736
+ * // 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.
16737
+ * serverRoles: 'placeholder-value',
16516
16738
  *
16517
16739
  * // Request body metadata
16518
16740
  * requestBody: {
@@ -16530,6 +16752,7 @@ export namespace sqladmin_v1 {
16530
16752
  * // "password": "my_password",
16531
16753
  * // "passwordPolicy": {},
16532
16754
  * // "project": "my_project",
16755
+ * // "serverRoles": [],
16533
16756
  * // "sqlserverUserDetails": {},
16534
16757
  * // "type": "my_type"
16535
16758
  * // }
@@ -16608,8 +16831,7 @@ export namespace sqladmin_v1 {
16608
16831
  | BodyResponseCallback<Schema$Operation>
16609
16832
  | BodyResponseCallback<Readable>,
16610
16833
  callback?:
16611
- | BodyResponseCallback<Schema$Operation>
16612
- | BodyResponseCallback<Readable>
16834
+ BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
16613
16835
  ):
16614
16836
  | void
16615
16837
  | Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
@@ -16742,6 +16964,14 @@ export namespace sqladmin_v1 {
16742
16964
  * 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
16965
  */
16744
16966
  revokeExistingRoles?: boolean;
16967
+ /**
16968
+ * 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.
16969
+ */
16970
+ revokeExistingServerRoles?: boolean;
16971
+ /**
16972
+ * 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.
16973
+ */
16974
+ serverRoles?: string[];
16745
16975
 
16746
16976
  /**
16747
16977
  * Request body metadata