@googleapis/sqladmin 37.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.
@@ -57,7 +57,7 @@ export declare namespace sqladmin_v1beta4 {
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_v1beta4 {
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_v1beta4 {
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_v1beta4 {
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_v1beta4 {
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
  */
@@ -1103,6 +1111,10 @@ export declare namespace sqladmin_v1beta4 {
1103
1111
  * 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.
1104
1112
  */
1105
1113
  partialResultMode?: string | null;
1114
+ /**
1115
+ * 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\}`. This field is used together with the `user` field. The secret resource name will not be stored.
1116
+ */
1117
+ passwordSecretVersion?: string | null;
1106
1118
  /**
1107
1119
  * Optional. The maximum number of rows returned per SQL statement.
1108
1120
  */
@@ -1924,6 +1936,10 @@ export declare namespace sqladmin_v1beta4 {
1924
1936
  * PEM representation of the replica's private key. The corresponding public key is encoded in the client's certificate.
1925
1937
  */
1926
1938
  clientKey?: string | null;
1939
+ /**
1940
+ * Output only. Indicates whether the resource is managed by Database Migration Service.
1941
+ */
1942
+ dmsManaged?: boolean | null;
1927
1943
  /**
1928
1944
  * The dump file to create the Cloud SQL replica.
1929
1945
  */
@@ -2169,10 +2185,22 @@ export declare namespace sqladmin_v1beta4 {
2169
2185
  * Performance capture configuration.
2170
2186
  */
2171
2187
  export interface Schema$PerformanceCaptureConfig {
2188
+ /**
2189
+ * 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.
2190
+ */
2191
+ cpuUtilizationThresholdPercent?: number | null;
2172
2192
  /**
2173
2193
  * Optional. Enables or disables the performance capture feature.
2174
2194
  */
2175
2195
  enabled?: boolean | null;
2196
+ /**
2197
+ * 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.
2198
+ */
2199
+ historyListLengthThresholdCount?: number | null;
2200
+ /**
2201
+ * 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.
2202
+ */
2203
+ memoryUsageThresholdPercent?: number | null;
2176
2204
  /**
2177
2205
  * Optional. Specifies the minimum number of consecutive probe threshold that triggers performance capture.
2178
2206
  */
@@ -2189,10 +2217,30 @@ export declare namespace sqladmin_v1beta4 {
2189
2217
  * Optional. Specifies the minimum number of seconds replica must be lagging behind primary instance to trigger the performance capture on replica.
2190
2218
  */
2191
2219
  secondsBehindSourceThreshold?: number | null;
2220
+ /**
2221
+ * 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.
2222
+ */
2223
+ semaphoreWaitThresholdCount?: number | null;
2192
2224
  /**
2193
2225
  * Optional. Specifies the amount of time in seconds that a transaction needs to have been open before the watcher starts recording it.
2194
2226
  */
2195
2227
  transactionDurationThreshold?: number | null;
2228
+ /**
2229
+ * 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@%"]`
2230
+ */
2231
+ transactionKillExcludedUserHosts?: string[] | null;
2232
+ /**
2233
+ * 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.
2234
+ */
2235
+ transactionKillThresholdSeconds?: number | null;
2236
+ /**
2237
+ * 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.
2238
+ */
2239
+ transactionKillType?: string | null;
2240
+ /**
2241
+ * 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.
2242
+ */
2243
+ transactionLockWaitThresholdCount?: number | null;
2196
2244
  }
2197
2245
  /**
2198
2246
  * Perform disk shrink context.
@@ -2335,14 +2383,30 @@ export declare namespace sqladmin_v1beta4 {
2335
2383
  * Optional. This is the project ID of consumer service project of this consumer endpoint. Optional. This is only applicable if consumer_network is a shared vpc network.
2336
2384
  */
2337
2385
  consumerProject?: string | null;
2386
+ /**
2387
+ * Output only. The status of automated DNS provisioning.
2388
+ */
2389
+ instanceAutoDnsStatus?: string | null;
2338
2390
  /**
2339
2391
  * The IP address of the consumer endpoint.
2340
2392
  */
2341
2393
  ipAddress?: string | null;
2394
+ /**
2395
+ * 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`.
2396
+ */
2397
+ serviceConnectionPolicy?: string | null;
2398
+ /**
2399
+ * Output only. The status of service connection policy creation.
2400
+ */
2401
+ serviceConnectionPolicyCreationResult?: string | null;
2342
2402
  /**
2343
2403
  * The connection status of the consumer endpoint.
2344
2404
  */
2345
2405
  status?: string | null;
2406
+ /**
2407
+ * Output only. The status of automated DNS provisioning for the write endpoint.
2408
+ */
2409
+ writeEndpointAutoDnsStatus?: string | null;
2346
2410
  }
2347
2411
  /**
2348
2412
  * PSC settings for a Cloud SQL instance.
@@ -2356,12 +2420,16 @@ export declare namespace sqladmin_v1beta4 {
2356
2420
  * 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
2357
2421
  */
2358
2422
  networkAttachmentUri?: string | null;
2423
+ /**
2424
+ * Optional. Whether to set up the PSC service connection policy automatically.
2425
+ */
2426
+ pscAutoConnectionPolicyEnabled?: boolean | null;
2359
2427
  /**
2360
2428
  * Optional. The list of settings for requested Private Service Connect consumer endpoints that can be used to connect to this Cloud SQL instance.
2361
2429
  */
2362
2430
  pscAutoConnections?: Schema$PscAutoConnectionConfig[];
2363
2431
  /**
2364
- * 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.
2432
+ * 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.
2365
2433
  */
2366
2434
  pscAutoDnsEnabled?: boolean | null;
2367
2435
  /**
@@ -2369,7 +2437,7 @@ export declare namespace sqladmin_v1beta4 {
2369
2437
  */
2370
2438
  pscEnabled?: boolean | null;
2371
2439
  /**
2372
- * 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.
2440
+ * 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.
2373
2441
  */
2374
2442
  pscWriteEndpointDnsEnabled?: boolean | null;
2375
2443
  }
@@ -3316,6 +3384,10 @@ export declare namespace sqladmin_v1beta4 {
3316
3384
  * 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.
3317
3385
  */
3318
3386
  project?: string | null;
3387
+ /**
3388
+ * Optional. The server roles for the SQL Server login.
3389
+ */
3390
+ serverRoles?: string[] | null;
3319
3391
  sqlserverUserDetails?: Schema$SqlServerUserDetails;
3320
3392
  /**
3321
3393
  * The user type. It determines the method to authenticate the user during login. The default is the database's built-in user type.
@@ -4440,6 +4512,7 @@ export declare namespace sqladmin_v1beta4 {
4440
4512
  * // Example response
4441
4513
  * // {
4442
4514
  * // "backendType": "my_backendType",
4515
+ * // "connectionName": "my_connectionName",
4443
4516
  * // "customSubjectAlternativeNames": [],
4444
4517
  * // "databaseVersion": "my_databaseVersion",
4445
4518
  * // "dnsName": "my_dnsName",
@@ -4474,6 +4547,85 @@ export declare namespace sqladmin_v1beta4 {
4474
4547
  get(params: Params$Resource$Connect$Get, options: MethodOptions | BodyResponseCallback<Schema$ConnectSettings>, callback: BodyResponseCallback<Schema$ConnectSettings>): void;
4475
4548
  get(params: Params$Resource$Connect$Get, callback: BodyResponseCallback<Schema$ConnectSettings>): void;
4476
4549
  get(callback: BodyResponseCallback<Schema$ConnectSettings>): void;
4550
+ /**
4551
+ * Retrieves connect settings about a Cloud SQL instance using the instance DNS name.
4552
+ * @example
4553
+ * ```js
4554
+ * // Before running the sample:
4555
+ * // - Enable the API at:
4556
+ * // https://console.developers.google.com/apis/api/sqladmin.googleapis.com
4557
+ * // - Login into gcloud by running:
4558
+ * // ```sh
4559
+ * // $ gcloud auth application-default login
4560
+ * // ```
4561
+ * // - Install the npm module by running:
4562
+ * // ```sh
4563
+ * // $ npm install googleapis
4564
+ * // ```
4565
+ *
4566
+ * const {google} = require('googleapis');
4567
+ * const sqladmin = google.sqladmin('v1beta4');
4568
+ *
4569
+ * async function main() {
4570
+ * const auth = new google.auth.GoogleAuth({
4571
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
4572
+ * scopes: [
4573
+ * 'https://www.googleapis.com/auth/cloud-platform',
4574
+ * 'https://www.googleapis.com/auth/sqlservice.admin',
4575
+ * ],
4576
+ * });
4577
+ *
4578
+ * // Acquire an auth client, and bind it to all future calls
4579
+ * const authClient = await auth.getClient();
4580
+ * google.options({auth: authClient});
4581
+ *
4582
+ * // Do the magic
4583
+ * const res = await sql.connect.resolve({
4584
+ * // Required. Cloud SQL instance ID. This does not include the project ID.
4585
+ * dnsName: 'placeholder-value',
4586
+ * // Required. The region of the instance.
4587
+ * location: 'placeholder-value',
4588
+ * });
4589
+ * console.log(res.data);
4590
+ *
4591
+ * // Example response
4592
+ * // {
4593
+ * // "backendType": "my_backendType",
4594
+ * // "connectionName": "my_connectionName",
4595
+ * // "customSubjectAlternativeNames": [],
4596
+ * // "databaseVersion": "my_databaseVersion",
4597
+ * // "dnsName": "my_dnsName",
4598
+ * // "dnsNames": [],
4599
+ * // "ipAddresses": [],
4600
+ * // "kind": "my_kind",
4601
+ * // "mdxProtocolSupport": [],
4602
+ * // "nodeCount": 0,
4603
+ * // "nodes": [],
4604
+ * // "pscEnabled": false,
4605
+ * // "region": "my_region",
4606
+ * // "serverCaCert": {},
4607
+ * // "serverCaMode": "my_serverCaMode"
4608
+ * // }
4609
+ * }
4610
+ *
4611
+ * main().catch(e => {
4612
+ * console.error(e);
4613
+ * throw e;
4614
+ * });
4615
+ *
4616
+ * ```
4617
+ *
4618
+ * @param params - Parameters for request
4619
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
4620
+ * @param callback - Optional callback that handles the response.
4621
+ * @returns A promise if used with async/await, or void if used with a callback.
4622
+ */
4623
+ resolve(params: Params$Resource$Connect$Resolve, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
4624
+ resolve(params?: Params$Resource$Connect$Resolve, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$ConnectSettings>>;
4625
+ resolve(params: Params$Resource$Connect$Resolve, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
4626
+ resolve(params: Params$Resource$Connect$Resolve, options: MethodOptions | BodyResponseCallback<Schema$ConnectSettings>, callback: BodyResponseCallback<Schema$ConnectSettings>): void;
4627
+ resolve(params: Params$Resource$Connect$Resolve, callback: BodyResponseCallback<Schema$ConnectSettings>): void;
4628
+ resolve(callback: BodyResponseCallback<Schema$ConnectSettings>): void;
4477
4629
  }
4478
4630
  export interface Params$Resource$Connect$Generateephemeralcert extends StandardParameters {
4479
4631
  /**
@@ -4503,6 +4655,16 @@ export declare namespace sqladmin_v1beta4 {
4503
4655
  */
4504
4656
  readTime?: string;
4505
4657
  }
4658
+ export interface Params$Resource$Connect$Resolve extends StandardParameters {
4659
+ /**
4660
+ * Required. Cloud SQL instance ID. This does not include the project ID.
4661
+ */
4662
+ dnsName?: string;
4663
+ /**
4664
+ * Required. The region of the instance.
4665
+ */
4666
+ location?: string;
4667
+ }
4506
4668
  export class Resource$Databases {
4507
4669
  context: APIRequestContext;
4508
4670
  constructor(context: APIRequestContext);
@@ -5949,6 +6111,7 @@ export declare namespace sqladmin_v1beta4 {
5949
6111
  * // "autoIamAuthn": false,
5950
6112
  * // "database": "my_database",
5951
6113
  * // "partialResultMode": "my_partialResultMode",
6114
+ * // "passwordSecretVersion": "my_passwordSecretVersion",
5952
6115
  * // "rowLimit": "my_rowLimit",
5953
6116
  * // "sqlStatement": "my_sqlStatement",
5954
6117
  * // "user": "my_user"
@@ -6213,6 +6376,7 @@ export declare namespace sqladmin_v1beta4 {
6213
6376
  * // "connectionName": "my_connectionName",
6214
6377
  * // "createTime": "my_createTime",
6215
6378
  * // "currentDiskSize": "my_currentDiskSize",
6379
+ * // "databaseCenterIntegrationEnabled": false,
6216
6380
  * // "databaseInstalledVersion": "my_databaseInstalledVersion",
6217
6381
  * // "databaseVersion": "my_databaseVersion",
6218
6382
  * // "diskEncryptionConfiguration": {},
@@ -6415,6 +6579,7 @@ export declare namespace sqladmin_v1beta4 {
6415
6579
  * // "connectionName": "my_connectionName",
6416
6580
  * // "createTime": "my_createTime",
6417
6581
  * // "currentDiskSize": "my_currentDiskSize",
6582
+ * // "databaseCenterIntegrationEnabled": false,
6418
6583
  * // "databaseInstalledVersion": "my_databaseInstalledVersion",
6419
6584
  * // "databaseVersion": "my_databaseVersion",
6420
6585
  * // "diskEncryptionConfiguration": {},
@@ -6821,6 +6986,10 @@ export declare namespace sqladmin_v1beta4 {
6821
6986
  * instance: 'placeholder-value',
6822
6987
  * // Project ID of the project that contains the instance.
6823
6988
  * project: 'placeholder-value',
6989
+ * // Optional. Set PSC config to the same value as the existing config to reconcile the PSC networking.
6990
+ * reconcilePscNetworking: 'placeholder-value',
6991
+ * // Optional. Set PSC config to the same value as the existing config and force reconcile the PSC networking.
6992
+ * reconcilePscNetworkingForce: 'placeholder-value',
6824
6993
  *
6825
6994
  * // Request body metadata
6826
6995
  * requestBody: {
@@ -6831,6 +7000,7 @@ export declare namespace sqladmin_v1beta4 {
6831
7000
  * // "connectionName": "my_connectionName",
6832
7001
  * // "createTime": "my_createTime",
6833
7002
  * // "currentDiskSize": "my_currentDiskSize",
7003
+ * // "databaseCenterIntegrationEnabled": false,
6834
7004
  * // "databaseInstalledVersion": "my_databaseInstalledVersion",
6835
7005
  * // "databaseVersion": "my_databaseVersion",
6836
7006
  * // "diskEncryptionConfiguration": {},
@@ -8295,6 +8465,7 @@ export declare namespace sqladmin_v1beta4 {
8295
8465
  * // "connectionName": "my_connectionName",
8296
8466
  * // "createTime": "my_createTime",
8297
8467
  * // "currentDiskSize": "my_currentDiskSize",
8468
+ * // "databaseCenterIntegrationEnabled": false,
8298
8469
  * // "databaseInstalledVersion": "my_databaseInstalledVersion",
8299
8470
  * // "databaseVersion": "my_databaseVersion",
8300
8471
  * // "diskEncryptionConfiguration": {},
@@ -8635,6 +8806,14 @@ export declare namespace sqladmin_v1beta4 {
8635
8806
  * Project ID of the project that contains the instance.
8636
8807
  */
8637
8808
  project?: string;
8809
+ /**
8810
+ * Optional. Set PSC config to the same value as the existing config to reconcile the PSC networking.
8811
+ */
8812
+ reconcilePscNetworking?: boolean;
8813
+ /**
8814
+ * Optional. Set PSC config to the same value as the existing config and force reconcile the PSC networking.
8815
+ */
8816
+ reconcilePscNetworkingForce?: boolean;
8638
8817
  /**
8639
8818
  * Request body metadata
8640
8819
  */
@@ -8881,6 +9060,8 @@ export declare namespace sqladmin_v1beta4 {
8881
9060
  *
8882
9061
  * // Do the magic
8883
9062
  * const res = await sql.operations.cancel({
9063
+ * // Optional. Region of the Cloud SQL instance.
9064
+ * location: 'placeholder-value',
8884
9065
  * // Instance operation ID.
8885
9066
  * operation: 'placeholder-value',
8886
9067
  * // Project ID of the project that contains the instance.
@@ -8944,6 +9125,8 @@ export declare namespace sqladmin_v1beta4 {
8944
9125
  *
8945
9126
  * // Do the magic
8946
9127
  * const res = await sql.operations.get({
9128
+ * // Optional. Region of the Cloud SQL instance.
9129
+ * location: 'placeholder-value',
8947
9130
  * // Instance operation ID.
8948
9131
  * operation: 'placeholder-value',
8949
9132
  * // Project ID of the project that contains the instance.
@@ -9030,6 +9213,8 @@ export declare namespace sqladmin_v1beta4 {
9030
9213
  * const res = await sql.operations.list({
9031
9214
  * // Cloud SQL instance ID. This does not include the project ID.
9032
9215
  * instance: 'placeholder-value',
9216
+ * // Optional. Region of the Cloud SQL instance.
9217
+ * location: 'placeholder-value',
9033
9218
  * // Maximum number of operations per response.
9034
9219
  * maxResults: 'placeholder-value',
9035
9220
  * // A previously-returned page token representing part of the larger set of results to view.
@@ -9067,6 +9252,10 @@ export declare namespace sqladmin_v1beta4 {
9067
9252
  list(callback: BodyResponseCallback<Schema$OperationsListResponse>): void;
9068
9253
  }
9069
9254
  export interface Params$Resource$Operations$Cancel extends StandardParameters {
9255
+ /**
9256
+ * Optional. Region of the Cloud SQL instance.
9257
+ */
9258
+ location?: string;
9070
9259
  /**
9071
9260
  * Instance operation ID.
9072
9261
  */
@@ -9077,6 +9266,10 @@ export declare namespace sqladmin_v1beta4 {
9077
9266
  project?: string;
9078
9267
  }
9079
9268
  export interface Params$Resource$Operations$Get extends StandardParameters {
9269
+ /**
9270
+ * Optional. Region of the Cloud SQL instance.
9271
+ */
9272
+ location?: string;
9080
9273
  /**
9081
9274
  * Instance operation ID.
9082
9275
  */
@@ -9091,6 +9284,10 @@ export declare namespace sqladmin_v1beta4 {
9091
9284
  * Cloud SQL instance ID. This does not include the project ID.
9092
9285
  */
9093
9286
  instance?: string;
9287
+ /**
9288
+ * Optional. Region of the Cloud SQL instance.
9289
+ */
9290
+ location?: string;
9094
9291
  /**
9095
9292
  * Maximum number of operations per response.
9096
9293
  */
@@ -10474,6 +10671,7 @@ export declare namespace sqladmin_v1beta4 {
10474
10671
  * // "password": "my_password",
10475
10672
  * // "passwordPolicy": {},
10476
10673
  * // "project": "my_project",
10674
+ * // "serverRoles": [],
10477
10675
  * // "sqlserverUserDetails": {},
10478
10676
  * // "type": "my_type"
10479
10677
  * // }
@@ -10552,6 +10750,7 @@ export declare namespace sqladmin_v1beta4 {
10552
10750
  * // "password": "my_password",
10553
10751
  * // "passwordPolicy": {},
10554
10752
  * // "project": "my_project",
10753
+ * // "serverRoles": [],
10555
10754
  * // "sqlserverUserDetails": {},
10556
10755
  * // "type": "my_type"
10557
10756
  * // }
@@ -10715,6 +10914,10 @@ export declare namespace sqladmin_v1beta4 {
10715
10914
  * project: 'placeholder-value',
10716
10915
  * // 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.
10717
10916
  * revokeExistingRoles: 'placeholder-value',
10917
+ * // 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.
10918
+ * revokeExistingServerRoles: 'placeholder-value',
10919
+ * // 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.
10920
+ * serverRoles: 'placeholder-value',
10718
10921
  *
10719
10922
  * // Request body metadata
10720
10923
  * requestBody: {
@@ -10732,6 +10935,7 @@ export declare namespace sqladmin_v1beta4 {
10732
10935
  * // "password": "my_password",
10733
10936
  * // "passwordPolicy": {},
10734
10937
  * // "project": "my_project",
10938
+ * // "serverRoles": [],
10735
10939
  * // "sqlserverUserDetails": {},
10736
10940
  * // "type": "my_type"
10737
10941
  * // }
@@ -10868,6 +11072,14 @@ export declare namespace sqladmin_v1beta4 {
10868
11072
  * 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.
10869
11073
  */
10870
11074
  revokeExistingRoles?: boolean;
11075
+ /**
11076
+ * 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.
11077
+ */
11078
+ revokeExistingServerRoles?: boolean;
11079
+ /**
11080
+ * 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.
11081
+ */
11082
+ serverRoles?: string[];
10871
11083
  /**
10872
11084
  * Request body metadata
10873
11085
  */
package/build/v1beta4.js CHANGED
@@ -24,7 +24,7 @@ var sqladmin_v1beta4;
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
@@ -438,6 +438,38 @@ var sqladmin_v1beta4;
438
438
  return (0, googleapis_common_1.createAPIRequest)(parameters);
439
439
  }
440
440
  }
441
+ resolve(paramsOrCallback, optionsOrCallback, callback) {
442
+ let params = (paramsOrCallback || {});
443
+ let options = (optionsOrCallback || {});
444
+ if (typeof paramsOrCallback === 'function') {
445
+ callback = paramsOrCallback;
446
+ params = {};
447
+ options = {};
448
+ }
449
+ if (typeof optionsOrCallback === 'function') {
450
+ callback = optionsOrCallback;
451
+ options = {};
452
+ }
453
+ const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/';
454
+ const parameters = {
455
+ options: Object.assign({
456
+ url: (rootUrl +
457
+ '/sql/v1beta4/locations/{location}/dns/{dnsName}:resolveConnectSettings').replace(/([^:]\/)\/+/g, '$1'),
458
+ method: 'GET',
459
+ apiVersion: '',
460
+ }, options),
461
+ params,
462
+ requiredParams: ['location', 'dnsName'],
463
+ pathParams: ['dnsName', 'location'],
464
+ context: this.context,
465
+ };
466
+ if (callback) {
467
+ (0, googleapis_common_1.createAPIRequest)(parameters, callback);
468
+ }
469
+ else {
470
+ return (0, googleapis_common_1.createAPIRequest)(parameters);
471
+ }
472
+ }
441
473
  }
442
474
  sqladmin_v1beta4.Resource$Connect = Resource$Connect;
443
475
  class Resource$Databases {