@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/build/v1.d.ts CHANGED
@@ -57,7 +57,7 @@ export declare namespace sqladmin_v1 {
57
57
  /**
58
58
  * Cloud SQL Admin API
59
59
  *
60
- * API for Cloud SQL database instance management
60
+ * Cloud SQL Admin API
61
61
  *
62
62
  * @example
63
63
  * ```js
@@ -295,7 +295,7 @@ export declare namespace sqladmin_v1 {
295
295
  */
296
296
  pointInTimeRecoveryEnabled?: boolean | null;
297
297
  /**
298
- * Reserved for future use.
298
+ * 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.
299
299
  */
300
300
  replicationLogArchivingEnabled?: boolean | null;
301
301
  /**
@@ -490,7 +490,7 @@ export declare namespace sqladmin_v1 {
490
490
  */
491
491
  destinationInstanceName?: string | null;
492
492
  /**
493
- * 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.
493
+ * 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.
494
494
  */
495
495
  destinationNetwork?: string | null;
496
496
  /**
@@ -594,6 +594,10 @@ export declare namespace sqladmin_v1 {
594
594
  * `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.
595
595
  */
596
596
  backendType?: string | null;
597
+ /**
598
+ * Optional. Output only. Connection name of the Cloud SQL instance used in connection strings, in the format project:region:instance.
599
+ */
600
+ connectionName?: string | null;
597
601
  /**
598
602
  * Custom subject alternative names for the server certificate.
599
603
  */
@@ -722,6 +726,10 @@ export declare namespace sqladmin_v1 {
722
726
  * 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.
723
727
  */
724
728
  currentDiskSize?: string | null;
729
+ /**
730
+ * Optional. If true, instance metadata is sent to the Database Center. If false, instance metadata is not sent to the Database Center.
731
+ */
732
+ databaseCenterIntegrationEnabled?: boolean | null;
725
733
  /**
726
734
  * Output only. Stores the current database version running on the instance including minor version such as `MYSQL_8_0_18`.
727
735
  */
@@ -1100,6 +1108,10 @@ export declare namespace sqladmin_v1 {
1100
1108
  * 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.
1101
1109
  */
1102
1110
  partialResultMode?: string | null;
1111
+ /**
1112
+ * 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.
1113
+ */
1114
+ passwordSecretVersion?: string | null;
1103
1115
  /**
1104
1116
  * Optional. The maximum number of rows returned per SQL statement.
1105
1117
  */
@@ -1921,6 +1933,10 @@ export declare namespace sqladmin_v1 {
1921
1933
  * PEM representation of the replica's private key. The corresponding public key is encoded in the client's certificate.
1922
1934
  */
1923
1935
  clientKey?: string | null;
1936
+ /**
1937
+ * Output only. Indicates whether the resource is managed by Database Migration Service.
1938
+ */
1939
+ dmsManaged?: boolean | null;
1924
1940
  /**
1925
1941
  * The dump file to create the Cloud SQL replica.
1926
1942
  */
@@ -2166,10 +2182,22 @@ export declare namespace sqladmin_v1 {
2166
2182
  * Performance capture configuration.
2167
2183
  */
2168
2184
  export interface Schema$PerformanceCaptureConfig {
2185
+ /**
2186
+ * 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.
2187
+ */
2188
+ cpuUtilizationThresholdPercent?: number | null;
2169
2189
  /**
2170
2190
  * Optional. Enables or disables the performance capture feature.
2171
2191
  */
2172
2192
  enabled?: boolean | null;
2193
+ /**
2194
+ * 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.
2195
+ */
2196
+ historyListLengthThresholdCount?: number | null;
2197
+ /**
2198
+ * 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.
2199
+ */
2200
+ memoryUsageThresholdPercent?: number | null;
2173
2201
  /**
2174
2202
  * Optional. Specifies the minimum number of consecutive probe threshold that triggers performance capture.
2175
2203
  */
@@ -2186,10 +2214,30 @@ export declare namespace sqladmin_v1 {
2186
2214
  * Optional. Specifies the minimum number of seconds replica must be lagging behind primary instance to trigger the performance capture on replica.
2187
2215
  */
2188
2216
  secondsBehindSourceThreshold?: number | null;
2217
+ /**
2218
+ * 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.
2219
+ */
2220
+ semaphoreWaitThresholdCount?: number | null;
2189
2221
  /**
2190
2222
  * Optional. Specifies the amount of time in seconds that a transaction needs to have been open before the watcher starts recording it.
2191
2223
  */
2192
2224
  transactionDurationThreshold?: number | null;
2225
+ /**
2226
+ * 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@%"]`
2227
+ */
2228
+ transactionKillExcludedUserHosts?: string[] | null;
2229
+ /**
2230
+ * 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.
2231
+ */
2232
+ transactionKillThresholdSeconds?: number | null;
2233
+ /**
2234
+ * 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.
2235
+ */
2236
+ transactionKillType?: string | null;
2237
+ /**
2238
+ * 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.
2239
+ */
2240
+ transactionLockWaitThresholdCount?: number | null;
2193
2241
  }
2194
2242
  /**
2195
2243
  * Perform disk shrink context.
@@ -2332,14 +2380,30 @@ export declare namespace sqladmin_v1 {
2332
2380
  * 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.
2333
2381
  */
2334
2382
  consumerProject?: string | null;
2383
+ /**
2384
+ * Output only. The status of automated DNS provisioning.
2385
+ */
2386
+ instanceAutoDnsStatus?: string | null;
2335
2387
  /**
2336
2388
  * The IP address of the consumer endpoint.
2337
2389
  */
2338
2390
  ipAddress?: string | null;
2391
+ /**
2392
+ * 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`.
2393
+ */
2394
+ serviceConnectionPolicy?: string | null;
2395
+ /**
2396
+ * Output only. The status of service connection policy creation.
2397
+ */
2398
+ serviceConnectionPolicyCreationResult?: string | null;
2339
2399
  /**
2340
2400
  * The connection status of the consumer endpoint.
2341
2401
  */
2342
2402
  status?: string | null;
2403
+ /**
2404
+ * Output only. The status of automated DNS provisioning for the write endpoint.
2405
+ */
2406
+ writeEndpointAutoDnsStatus?: string | null;
2343
2407
  }
2344
2408
  /**
2345
2409
  * PSC settings for a Cloud SQL instance.
@@ -2353,12 +2417,16 @@ export declare namespace sqladmin_v1 {
2353
2417
  * Optional. The network attachment of the consumer network that the Private Service Connect enabled Cloud SQL instance is authorized to connect via PSC interface. format: projects/PROJECT/regions/REGION/networkAttachments/ID
2354
2418
  */
2355
2419
  networkAttachmentUri?: string | null;
2420
+ /**
2421
+ * Optional. Whether to set up the PSC service connection policy automatically.
2422
+ */
2423
+ pscAutoConnectionPolicyEnabled?: boolean | null;
2356
2424
  /**
2357
2425
  * Optional. The list of settings for requested Private Service Connect consumer endpoints that can be used to connect to this Cloud SQL instance.
2358
2426
  */
2359
2427
  pscAutoConnections?: Schema$PscAutoConnectionConfig[];
2360
2428
  /**
2361
- * 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.
2429
+ * 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.
2362
2430
  */
2363
2431
  pscAutoDnsEnabled?: boolean | null;
2364
2432
  /**
@@ -2366,7 +2434,7 @@ export declare namespace sqladmin_v1 {
2366
2434
  */
2367
2435
  pscEnabled?: boolean | null;
2368
2436
  /**
2369
- * 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.
2437
+ * 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.
2370
2438
  */
2371
2439
  pscWriteEndpointDnsEnabled?: boolean | null;
2372
2440
  }
@@ -2647,7 +2715,7 @@ export declare namespace sqladmin_v1 {
2647
2715
  */
2648
2716
  denyMaintenancePeriods?: Schema$DenyMaintenancePeriod[];
2649
2717
  /**
2650
- * Optional. The edition of the instance.
2718
+ * Optional. The edition type of the Cloud SQL instance.
2651
2719
  */
2652
2720
  edition?: string | null;
2653
2721
  /**
@@ -3319,6 +3387,10 @@ export declare namespace sqladmin_v1 {
3319
3387
  * 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.
3320
3388
  */
3321
3389
  project?: string | null;
3390
+ /**
3391
+ * Optional. The server roles for the SQL Server login.
3392
+ */
3393
+ serverRoles?: string[] | null;
3322
3394
  sqlserverUserDetails?: Schema$SqlServerUserDetails;
3323
3395
  /**
3324
3396
  * The user type. It determines the method to authenticate the user during login. The default is the database's built-in user type.
@@ -4443,6 +4515,7 @@ export declare namespace sqladmin_v1 {
4443
4515
  * // Example response
4444
4516
  * // {
4445
4517
  * // "backendType": "my_backendType",
4518
+ * // "connectionName": "my_connectionName",
4446
4519
  * // "customSubjectAlternativeNames": [],
4447
4520
  * // "databaseVersion": "my_databaseVersion",
4448
4521
  * // "dnsName": "my_dnsName",
@@ -4477,6 +4550,85 @@ export declare namespace sqladmin_v1 {
4477
4550
  get(params: Params$Resource$Connect$Get, options: MethodOptions | BodyResponseCallback<Schema$ConnectSettings>, callback: BodyResponseCallback<Schema$ConnectSettings>): void;
4478
4551
  get(params: Params$Resource$Connect$Get, callback: BodyResponseCallback<Schema$ConnectSettings>): void;
4479
4552
  get(callback: BodyResponseCallback<Schema$ConnectSettings>): void;
4553
+ /**
4554
+ * Retrieves connect settings about a Cloud SQL instance using the instance DNS name.
4555
+ * @example
4556
+ * ```js
4557
+ * // Before running the sample:
4558
+ * // - Enable the API at:
4559
+ * // https://console.developers.google.com/apis/api/sqladmin.googleapis.com
4560
+ * // - Login into gcloud by running:
4561
+ * // ```sh
4562
+ * // $ gcloud auth application-default login
4563
+ * // ```
4564
+ * // - Install the npm module by running:
4565
+ * // ```sh
4566
+ * // $ npm install googleapis
4567
+ * // ```
4568
+ *
4569
+ * const {google} = require('googleapis');
4570
+ * const sqladmin = google.sqladmin('v1');
4571
+ *
4572
+ * async function main() {
4573
+ * const auth = new google.auth.GoogleAuth({
4574
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
4575
+ * scopes: [
4576
+ * 'https://www.googleapis.com/auth/cloud-platform',
4577
+ * 'https://www.googleapis.com/auth/sqlservice.admin',
4578
+ * ],
4579
+ * });
4580
+ *
4581
+ * // Acquire an auth client, and bind it to all future calls
4582
+ * const authClient = await auth.getClient();
4583
+ * google.options({auth: authClient});
4584
+ *
4585
+ * // Do the magic
4586
+ * const res = await sql.connect.resolve({
4587
+ * // Required. Cloud SQL instance ID. This does not include the project ID.
4588
+ * dnsName: 'placeholder-value',
4589
+ * // Required. The region of the instance.
4590
+ * location: 'placeholder-value',
4591
+ * });
4592
+ * console.log(res.data);
4593
+ *
4594
+ * // Example response
4595
+ * // {
4596
+ * // "backendType": "my_backendType",
4597
+ * // "connectionName": "my_connectionName",
4598
+ * // "customSubjectAlternativeNames": [],
4599
+ * // "databaseVersion": "my_databaseVersion",
4600
+ * // "dnsName": "my_dnsName",
4601
+ * // "dnsNames": [],
4602
+ * // "ipAddresses": [],
4603
+ * // "kind": "my_kind",
4604
+ * // "mdxProtocolSupport": [],
4605
+ * // "nodeCount": 0,
4606
+ * // "nodes": [],
4607
+ * // "pscEnabled": false,
4608
+ * // "region": "my_region",
4609
+ * // "serverCaCert": {},
4610
+ * // "serverCaMode": "my_serverCaMode"
4611
+ * // }
4612
+ * }
4613
+ *
4614
+ * main().catch(e => {
4615
+ * console.error(e);
4616
+ * throw e;
4617
+ * });
4618
+ *
4619
+ * ```
4620
+ *
4621
+ * @param params - Parameters for request
4622
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
4623
+ * @param callback - Optional callback that handles the response.
4624
+ * @returns A promise if used with async/await, or void if used with a callback.
4625
+ */
4626
+ resolve(params: Params$Resource$Connect$Resolve, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
4627
+ resolve(params?: Params$Resource$Connect$Resolve, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$ConnectSettings>>;
4628
+ resolve(params: Params$Resource$Connect$Resolve, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
4629
+ resolve(params: Params$Resource$Connect$Resolve, options: MethodOptions | BodyResponseCallback<Schema$ConnectSettings>, callback: BodyResponseCallback<Schema$ConnectSettings>): void;
4630
+ resolve(params: Params$Resource$Connect$Resolve, callback: BodyResponseCallback<Schema$ConnectSettings>): void;
4631
+ resolve(callback: BodyResponseCallback<Schema$ConnectSettings>): void;
4480
4632
  }
4481
4633
  export interface Params$Resource$Connect$Generateephemeralcert extends StandardParameters {
4482
4634
  /**
@@ -4506,6 +4658,16 @@ export declare namespace sqladmin_v1 {
4506
4658
  */
4507
4659
  readTime?: string;
4508
4660
  }
4661
+ export interface Params$Resource$Connect$Resolve extends StandardParameters {
4662
+ /**
4663
+ * Required. Cloud SQL instance ID. This does not include the project ID.
4664
+ */
4665
+ dnsName?: string;
4666
+ /**
4667
+ * Required. The region of the instance.
4668
+ */
4669
+ location?: string;
4670
+ }
4509
4671
  export class Resource$Databases {
4510
4672
  context: APIRequestContext;
4511
4673
  constructor(context: APIRequestContext);
@@ -5952,6 +6114,7 @@ export declare namespace sqladmin_v1 {
5952
6114
  * // "autoIamAuthn": false,
5953
6115
  * // "database": "my_database",
5954
6116
  * // "partialResultMode": "my_partialResultMode",
6117
+ * // "passwordSecretVersion": "my_passwordSecretVersion",
5955
6118
  * // "rowLimit": "my_rowLimit",
5956
6119
  * // "sqlStatement": "my_sqlStatement",
5957
6120
  * // "user": "my_user"
@@ -6216,6 +6379,7 @@ export declare namespace sqladmin_v1 {
6216
6379
  * // "connectionName": "my_connectionName",
6217
6380
  * // "createTime": "my_createTime",
6218
6381
  * // "currentDiskSize": "my_currentDiskSize",
6382
+ * // "databaseCenterIntegrationEnabled": false,
6219
6383
  * // "databaseInstalledVersion": "my_databaseInstalledVersion",
6220
6384
  * // "databaseVersion": "my_databaseVersion",
6221
6385
  * // "diskEncryptionConfiguration": {},
@@ -6418,6 +6582,7 @@ export declare namespace sqladmin_v1 {
6418
6582
  * // "connectionName": "my_connectionName",
6419
6583
  * // "createTime": "my_createTime",
6420
6584
  * // "currentDiskSize": "my_currentDiskSize",
6585
+ * // "databaseCenterIntegrationEnabled": false,
6421
6586
  * // "databaseInstalledVersion": "my_databaseInstalledVersion",
6422
6587
  * // "databaseVersion": "my_databaseVersion",
6423
6588
  * // "diskEncryptionConfiguration": {},
@@ -6824,6 +6989,10 @@ export declare namespace sqladmin_v1 {
6824
6989
  * instance: 'placeholder-value',
6825
6990
  * // Project ID of the project that contains the instance.
6826
6991
  * project: 'placeholder-value',
6992
+ * // Optional. Set PSC config to the same value as the existing config to reconcile the PSC networking.
6993
+ * reconcilePscNetworking: 'placeholder-value',
6994
+ * // Optional. Set PSC config to the same value as the existing config and force reconcile the PSC networking.
6995
+ * reconcilePscNetworkingForce: 'placeholder-value',
6827
6996
  *
6828
6997
  * // Request body metadata
6829
6998
  * requestBody: {
@@ -6834,6 +7003,7 @@ export declare namespace sqladmin_v1 {
6834
7003
  * // "connectionName": "my_connectionName",
6835
7004
  * // "createTime": "my_createTime",
6836
7005
  * // "currentDiskSize": "my_currentDiskSize",
7006
+ * // "databaseCenterIntegrationEnabled": false,
6837
7007
  * // "databaseInstalledVersion": "my_databaseInstalledVersion",
6838
7008
  * // "databaseVersion": "my_databaseVersion",
6839
7009
  * // "diskEncryptionConfiguration": {},
@@ -8298,6 +8468,7 @@ export declare namespace sqladmin_v1 {
8298
8468
  * // "connectionName": "my_connectionName",
8299
8469
  * // "createTime": "my_createTime",
8300
8470
  * // "currentDiskSize": "my_currentDiskSize",
8471
+ * // "databaseCenterIntegrationEnabled": false,
8301
8472
  * // "databaseInstalledVersion": "my_databaseInstalledVersion",
8302
8473
  * // "databaseVersion": "my_databaseVersion",
8303
8474
  * // "diskEncryptionConfiguration": {},
@@ -8638,6 +8809,14 @@ export declare namespace sqladmin_v1 {
8638
8809
  * Project ID of the project that contains the instance.
8639
8810
  */
8640
8811
  project?: string;
8812
+ /**
8813
+ * Optional. Set PSC config to the same value as the existing config to reconcile the PSC networking.
8814
+ */
8815
+ reconcilePscNetworking?: boolean;
8816
+ /**
8817
+ * Optional. Set PSC config to the same value as the existing config and force reconcile the PSC networking.
8818
+ */
8819
+ reconcilePscNetworkingForce?: boolean;
8641
8820
  /**
8642
8821
  * Request body metadata
8643
8822
  */
@@ -8884,6 +9063,8 @@ export declare namespace sqladmin_v1 {
8884
9063
  *
8885
9064
  * // Do the magic
8886
9065
  * const res = await sql.operations.cancel({
9066
+ * // Optional. Region of the Cloud SQL instance.
9067
+ * location: 'placeholder-value',
8887
9068
  * // Instance operation ID.
8888
9069
  * operation: 'placeholder-value',
8889
9070
  * // Project ID of the project that contains the instance.
@@ -8947,6 +9128,8 @@ export declare namespace sqladmin_v1 {
8947
9128
  *
8948
9129
  * // Do the magic
8949
9130
  * const res = await sql.operations.get({
9131
+ * // Optional. Region of the Cloud SQL instance.
9132
+ * location: 'placeholder-value',
8950
9133
  * // Required. Instance operation ID.
8951
9134
  * operation: 'placeholder-value',
8952
9135
  * // Required. Project ID of the project that contains the instance.
@@ -9033,6 +9216,8 @@ export declare namespace sqladmin_v1 {
9033
9216
  * const res = await sql.operations.list({
9034
9217
  * // Cloud SQL instance ID. This does not include the project ID.
9035
9218
  * instance: 'placeholder-value',
9219
+ * // Optional. Region of the Cloud SQL instance.
9220
+ * location: 'placeholder-value',
9036
9221
  * // Maximum number of operations per response.
9037
9222
  * maxResults: 'placeholder-value',
9038
9223
  * // A previously-returned page token representing part of the larger set of results to view.
@@ -9070,6 +9255,10 @@ export declare namespace sqladmin_v1 {
9070
9255
  list(callback: BodyResponseCallback<Schema$OperationsListResponse>): void;
9071
9256
  }
9072
9257
  export interface Params$Resource$Operations$Cancel extends StandardParameters {
9258
+ /**
9259
+ * Optional. Region of the Cloud SQL instance.
9260
+ */
9261
+ location?: string;
9073
9262
  /**
9074
9263
  * Instance operation ID.
9075
9264
  */
@@ -9080,6 +9269,10 @@ export declare namespace sqladmin_v1 {
9080
9269
  project?: string;
9081
9270
  }
9082
9271
  export interface Params$Resource$Operations$Get extends StandardParameters {
9272
+ /**
9273
+ * Optional. Region of the Cloud SQL instance.
9274
+ */
9275
+ location?: string;
9083
9276
  /**
9084
9277
  * Required. Instance operation ID.
9085
9278
  */
@@ -9094,6 +9287,10 @@ export declare namespace sqladmin_v1 {
9094
9287
  * Cloud SQL instance ID. This does not include the project ID.
9095
9288
  */
9096
9289
  instance?: string;
9290
+ /**
9291
+ * Optional. Region of the Cloud SQL instance.
9292
+ */
9293
+ location?: string;
9097
9294
  /**
9098
9295
  * Maximum number of operations per response.
9099
9296
  */
@@ -10477,6 +10674,7 @@ export declare namespace sqladmin_v1 {
10477
10674
  * // "password": "my_password",
10478
10675
  * // "passwordPolicy": {},
10479
10676
  * // "project": "my_project",
10677
+ * // "serverRoles": [],
10480
10678
  * // "sqlserverUserDetails": {},
10481
10679
  * // "type": "my_type"
10482
10680
  * // }
@@ -10555,6 +10753,7 @@ export declare namespace sqladmin_v1 {
10555
10753
  * // "password": "my_password",
10556
10754
  * // "passwordPolicy": {},
10557
10755
  * // "project": "my_project",
10756
+ * // "serverRoles": [],
10558
10757
  * // "sqlserverUserDetails": {},
10559
10758
  * // "type": "my_type"
10560
10759
  * // }
@@ -10718,6 +10917,10 @@ export declare namespace sqladmin_v1 {
10718
10917
  * project: 'placeholder-value',
10719
10918
  * // 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.
10720
10919
  * revokeExistingRoles: 'placeholder-value',
10920
+ * // 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.
10921
+ * revokeExistingServerRoles: 'placeholder-value',
10922
+ * // 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.
10923
+ * serverRoles: 'placeholder-value',
10721
10924
  *
10722
10925
  * // Request body metadata
10723
10926
  * requestBody: {
@@ -10735,6 +10938,7 @@ export declare namespace sqladmin_v1 {
10735
10938
  * // "password": "my_password",
10736
10939
  * // "passwordPolicy": {},
10737
10940
  * // "project": "my_project",
10941
+ * // "serverRoles": [],
10738
10942
  * // "sqlserverUserDetails": {},
10739
10943
  * // "type": "my_type"
10740
10944
  * // }
@@ -10871,6 +11075,14 @@ export declare namespace sqladmin_v1 {
10871
11075
  * 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.
10872
11076
  */
10873
11077
  revokeExistingRoles?: boolean;
11078
+ /**
11079
+ * 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.
11080
+ */
11081
+ revokeExistingServerRoles?: boolean;
11082
+ /**
11083
+ * 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.
11084
+ */
11085
+ serverRoles?: string[];
10874
11086
  /**
10875
11087
  * Request body metadata
10876
11088
  */
package/build/v1.js CHANGED
@@ -24,7 +24,7 @@ var sqladmin_v1;
24
24
  /**
25
25
  * Cloud SQL Admin API
26
26
  *
27
- * API for Cloud SQL database instance management
27
+ * Cloud SQL Admin API
28
28
  *
29
29
  * @example
30
30
  * ```js
@@ -436,6 +436,38 @@ var sqladmin_v1;
436
436
  return (0, googleapis_common_1.createAPIRequest)(parameters);
437
437
  }
438
438
  }
439
+ resolve(paramsOrCallback, optionsOrCallback, callback) {
440
+ let params = (paramsOrCallback || {});
441
+ let options = (optionsOrCallback || {});
442
+ if (typeof paramsOrCallback === 'function') {
443
+ callback = paramsOrCallback;
444
+ params = {};
445
+ options = {};
446
+ }
447
+ if (typeof optionsOrCallback === 'function') {
448
+ callback = optionsOrCallback;
449
+ options = {};
450
+ }
451
+ const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/';
452
+ const parameters = {
453
+ options: Object.assign({
454
+ url: (rootUrl +
455
+ '/v1/locations/{location}/dns/{dnsName}:resolveConnectSettings').replace(/([^:]\/)\/+/g, '$1'),
456
+ method: 'GET',
457
+ apiVersion: '',
458
+ }, options),
459
+ params,
460
+ requiredParams: ['location', 'dnsName'],
461
+ pathParams: ['dnsName', 'location'],
462
+ context: this.context,
463
+ };
464
+ if (callback) {
465
+ (0, googleapis_common_1.createAPIRequest)(parameters, callback);
466
+ }
467
+ else {
468
+ return (0, googleapis_common_1.createAPIRequest)(parameters);
469
+ }
470
+ }
439
471
  }
440
472
  sqladmin_v1.Resource$Connect = Resource$Connect;
441
473
  class Resource$Databases {