@googleapis/sqladmin 34.1.0 → 34.2.1
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/CHANGELOG.md +15 -0
- package/build/tsconfig.tsbuildinfo +1 -1
- package/build/v1.d.ts +263 -3
- package/build/v1.js +66 -0
- package/build/v1.js.map +1 -1
- package/build/v1beta4.d.ts +378 -3
- package/build/v1beta4.js +99 -0
- package/build/v1beta4.js.map +1 -1
- package/package.json +1 -1
- package/v1.ts +469 -81
- package/v1beta4.ts +663 -81
package/v1.ts
CHANGED
|
@@ -1561,6 +1561,23 @@ export namespace sqladmin_v1 {
|
|
|
1561
1561
|
*/
|
|
1562
1562
|
importContext?: Schema$ImportContext;
|
|
1563
1563
|
}
|
|
1564
|
+
/**
|
|
1565
|
+
* Instances ListEntraIdCertificates response.
|
|
1566
|
+
*/
|
|
1567
|
+
export interface Schema$InstancesListEntraIdCertificatesResponse {
|
|
1568
|
+
/**
|
|
1569
|
+
* The `sha1_fingerprint` of the active certificate from `certs`.
|
|
1570
|
+
*/
|
|
1571
|
+
activeVersion?: string | null;
|
|
1572
|
+
/**
|
|
1573
|
+
* List of Entra ID certificates for the instance.
|
|
1574
|
+
*/
|
|
1575
|
+
certs?: Schema$SslCert[];
|
|
1576
|
+
/**
|
|
1577
|
+
* This is always `sql#instancesListEntraIdCertificates`.
|
|
1578
|
+
*/
|
|
1579
|
+
kind?: string | null;
|
|
1580
|
+
}
|
|
1564
1581
|
/**
|
|
1565
1582
|
* Database instances list response.
|
|
1566
1583
|
*/
|
|
@@ -1660,6 +1677,15 @@ export namespace sqladmin_v1 {
|
|
|
1660
1677
|
*/
|
|
1661
1678
|
restoreInstanceSettings?: Schema$DatabaseInstance;
|
|
1662
1679
|
}
|
|
1680
|
+
/**
|
|
1681
|
+
* Rotate Entra ID certificate request.
|
|
1682
|
+
*/
|
|
1683
|
+
export interface Schema$InstancesRotateEntraIdCertificateRequest {
|
|
1684
|
+
/**
|
|
1685
|
+
* Optional. Contains details about the rotate server certificate operation.
|
|
1686
|
+
*/
|
|
1687
|
+
rotateEntraIdCertificateContext?: Schema$RotateEntraIdCertificateContext;
|
|
1688
|
+
}
|
|
1663
1689
|
/**
|
|
1664
1690
|
* Rotate server CA request.
|
|
1665
1691
|
*/
|
|
@@ -1744,6 +1770,10 @@ export namespace sqladmin_v1 {
|
|
|
1744
1770
|
* Optional. The resource name of the server CA pool for an instance with `CUSTOMER_MANAGED_CAS_CA` as the `server_ca_mode`. Format: projects/{PROJECT\}/locations/{REGION\}/caPools/{CA_POOL_ID\}
|
|
1745
1771
|
*/
|
|
1746
1772
|
serverCaPool?: string | null;
|
|
1773
|
+
/**
|
|
1774
|
+
* Optional. Controls the automatic server certificate rotation feature. This feature is disabled by default. When enabled, the server certificate will be automatically rotated during Cloud SQL scheduled maintenance or self-service maintenance updates up to six months before it expires. This setting can only be set if server_ca_mode is either GOOGLE_MANAGED_CAS_CA or CUSTOMER_MANAGED_CAS_CA.
|
|
1775
|
+
*/
|
|
1776
|
+
serverCertificateRotationMode?: string | null;
|
|
1747
1777
|
/**
|
|
1748
1778
|
* Specify how SSL/TLS is enforced in database connections. If you must use the `require_ssl` flag for backward compatibility, then only the following value pairs are valid: For PostgreSQL and MySQL: * `ssl_mode=ALLOW_UNENCRYPTED_AND_ENCRYPTED` and `require_ssl=false` * `ssl_mode=ENCRYPTED_ONLY` and `require_ssl=false` * `ssl_mode=TRUSTED_CLIENT_CERTIFICATE_REQUIRED` and `require_ssl=true` For SQL Server: * `ssl_mode=ALLOW_UNENCRYPTED_AND_ENCRYPTED` and `require_ssl=false` * `ssl_mode=ENCRYPTED_ONLY` and `require_ssl=true` The value of `ssl_mode` has priority over the value of `require_ssl`. For example, for the pair `ssl_mode=ENCRYPTED_ONLY` and `require_ssl=false`, `ssl_mode=ENCRYPTED_ONLY` means accept only SSL connections, while `require_ssl=false` means accept both non-SSL and SSL connections. In this case, MySQL and PostgreSQL databases respect `ssl_mode` and accepts only SSL connections.
|
|
1749
1779
|
*/
|
|
@@ -2172,7 +2202,7 @@ export namespace sqladmin_v1 {
|
|
|
2172
2202
|
targetSizeGb?: string | null;
|
|
2173
2203
|
}
|
|
2174
2204
|
/**
|
|
2175
|
-
* The context to perform a point-in-time recovery of an instance managed by
|
|
2205
|
+
* The context to perform a point-in-time recovery of an instance managed by Backup and Disaster Recovery (DR) Service.
|
|
2176
2206
|
*/
|
|
2177
2207
|
export interface Schema$PointInTimeRestoreContext {
|
|
2178
2208
|
/**
|
|
@@ -2180,7 +2210,7 @@ export namespace sqladmin_v1 {
|
|
|
2180
2210
|
*/
|
|
2181
2211
|
allocatedIpRange?: string | null;
|
|
2182
2212
|
/**
|
|
2183
|
-
* The
|
|
2213
|
+
* The Backup and Disaster Recovery (DR) Service Datasource URI. Format: projects/{project\}/locations/{region\}/backupVaults/{backupvault\}/dataSources/{datasource\}.
|
|
2184
2214
|
*/
|
|
2185
2215
|
datasource?: string | null;
|
|
2186
2216
|
/**
|
|
@@ -2440,6 +2470,19 @@ export namespace sqladmin_v1 {
|
|
|
2440
2470
|
*/
|
|
2441
2471
|
project?: string | null;
|
|
2442
2472
|
}
|
|
2473
|
+
/**
|
|
2474
|
+
* Instance rotate Entra ID certificate context.
|
|
2475
|
+
*/
|
|
2476
|
+
export interface Schema$RotateEntraIdCertificateContext {
|
|
2477
|
+
/**
|
|
2478
|
+
* Optional. This is always `sql#rotateEntraIdCertificateContext`.
|
|
2479
|
+
*/
|
|
2480
|
+
kind?: string | null;
|
|
2481
|
+
/**
|
|
2482
|
+
* Optional. The fingerprint of the next version to be rotated to. If left unspecified, will be rotated to the most recently added server certificate version.
|
|
2483
|
+
*/
|
|
2484
|
+
nextVersion?: string | null;
|
|
2485
|
+
}
|
|
2443
2486
|
/**
|
|
2444
2487
|
* Instance rotate server CA context.
|
|
2445
2488
|
*/
|
|
@@ -2533,7 +2576,7 @@ export namespace sqladmin_v1 {
|
|
|
2533
2576
|
*/
|
|
2534
2577
|
crashSafeReplicationEnabled?: boolean | null;
|
|
2535
2578
|
/**
|
|
2536
|
-
* This parameter controls whether to allow using
|
|
2579
|
+
* This parameter controls whether to allow using ExecuteSql API to connect to the instance. Not allowed by default.
|
|
2537
2580
|
*/
|
|
2538
2581
|
dataApiAccess?: string | null;
|
|
2539
2582
|
/**
|
|
@@ -2584,6 +2627,10 @@ export namespace sqladmin_v1 {
|
|
|
2584
2627
|
* Optional. When this parameter is set to true, Cloud SQL instances can connect to Vertex AI to pass requests for real-time predictions and insights to the AI. The default value is false. This applies only to Cloud SQL for MySQL and Cloud SQL for PostgreSQL instances.
|
|
2585
2628
|
*/
|
|
2586
2629
|
enableGoogleMlIntegration?: boolean | null;
|
|
2630
|
+
/**
|
|
2631
|
+
* Optional. The Microsoft Entra ID configuration for the SQL Server instance.
|
|
2632
|
+
*/
|
|
2633
|
+
entraidConfig?: Schema$SqlServerEntraIdConfig;
|
|
2587
2634
|
/**
|
|
2588
2635
|
* Optional. The final backup configuration for the instance.
|
|
2589
2636
|
*/
|
|
@@ -2937,6 +2984,23 @@ export namespace sqladmin_v1 {
|
|
|
2937
2984
|
*/
|
|
2938
2985
|
recoveryModel?: string | null;
|
|
2939
2986
|
}
|
|
2987
|
+
/**
|
|
2988
|
+
* SQL Server Entra ID configuration.
|
|
2989
|
+
*/
|
|
2990
|
+
export interface Schema$SqlServerEntraIdConfig {
|
|
2991
|
+
/**
|
|
2992
|
+
* Optional. The application ID for the Entra ID configuration.
|
|
2993
|
+
*/
|
|
2994
|
+
applicationId?: string | null;
|
|
2995
|
+
/**
|
|
2996
|
+
* Output only. This is always sql#sqlServerEntraIdConfig
|
|
2997
|
+
*/
|
|
2998
|
+
kind?: string | null;
|
|
2999
|
+
/**
|
|
3000
|
+
* Optional. The tenant ID for the Entra ID configuration.
|
|
3001
|
+
*/
|
|
3002
|
+
tenantId?: string | null;
|
|
3003
|
+
}
|
|
2940
3004
|
/**
|
|
2941
3005
|
* Represents a Sql Server user on the Cloud SQL instance.
|
|
2942
3006
|
*/
|
|
@@ -3167,6 +3231,10 @@ export namespace sqladmin_v1 {
|
|
|
3167
3231
|
* A Cloud SQL user resource.
|
|
3168
3232
|
*/
|
|
3169
3233
|
export interface Schema$User {
|
|
3234
|
+
/**
|
|
3235
|
+
* Optional. Role memberships of the user
|
|
3236
|
+
*/
|
|
3237
|
+
databaseRoles?: string[] | null;
|
|
3170
3238
|
/**
|
|
3171
3239
|
* Dual password status for the user.
|
|
3172
3240
|
*/
|
|
@@ -3938,8 +4006,7 @@ export namespace sqladmin_v1 {
|
|
|
3938
4006
|
}
|
|
3939
4007
|
}
|
|
3940
4008
|
|
|
3941
|
-
export interface Params$Resource$Backupruns$Delete
|
|
3942
|
-
extends StandardParameters {
|
|
4009
|
+
export interface Params$Resource$Backupruns$Delete extends StandardParameters {
|
|
3943
4010
|
/**
|
|
3944
4011
|
* The ID of the backup run to delete. To find a backup run ID, use the [list](https://cloud.google.com/sql/docs/mysql/admin-api/rest/v1/backupRuns/list) method.
|
|
3945
4012
|
*/
|
|
@@ -3967,8 +4034,7 @@ export namespace sqladmin_v1 {
|
|
|
3967
4034
|
*/
|
|
3968
4035
|
project?: string;
|
|
3969
4036
|
}
|
|
3970
|
-
export interface Params$Resource$Backupruns$Insert
|
|
3971
|
-
extends StandardParameters {
|
|
4037
|
+
export interface Params$Resource$Backupruns$Insert extends StandardParameters {
|
|
3972
4038
|
/**
|
|
3973
4039
|
* Cloud SQL instance ID. This does not include the project ID.
|
|
3974
4040
|
*/
|
|
@@ -4851,8 +4917,7 @@ export namespace sqladmin_v1 {
|
|
|
4851
4917
|
}
|
|
4852
4918
|
}
|
|
4853
4919
|
|
|
4854
|
-
export interface Params$Resource$Backups$Createbackup
|
|
4855
|
-
extends StandardParameters {
|
|
4920
|
+
export interface Params$Resource$Backups$Createbackup extends StandardParameters {
|
|
4856
4921
|
/**
|
|
4857
4922
|
* Required. The parent resource where this backup is created. Format: projects/{project\}
|
|
4858
4923
|
*/
|
|
@@ -4863,22 +4928,19 @@ export namespace sqladmin_v1 {
|
|
|
4863
4928
|
*/
|
|
4864
4929
|
requestBody?: Schema$Backup;
|
|
4865
4930
|
}
|
|
4866
|
-
export interface Params$Resource$Backups$Deletebackup
|
|
4867
|
-
extends StandardParameters {
|
|
4931
|
+
export interface Params$Resource$Backups$Deletebackup extends StandardParameters {
|
|
4868
4932
|
/**
|
|
4869
4933
|
* Required. The name of the backup to delete. Format: projects/{project\}/backups/{backup\}
|
|
4870
4934
|
*/
|
|
4871
4935
|
name?: string;
|
|
4872
4936
|
}
|
|
4873
|
-
export interface Params$Resource$Backups$Getbackup
|
|
4874
|
-
extends StandardParameters {
|
|
4937
|
+
export interface Params$Resource$Backups$Getbackup extends StandardParameters {
|
|
4875
4938
|
/**
|
|
4876
4939
|
* Required. The name of the backup to retrieve. Format: projects/{project\}/backups/{backup\}
|
|
4877
4940
|
*/
|
|
4878
4941
|
name?: string;
|
|
4879
4942
|
}
|
|
4880
|
-
export interface Params$Resource$Backups$Listbackups
|
|
4881
|
-
extends StandardParameters {
|
|
4943
|
+
export interface Params$Resource$Backups$Listbackups extends StandardParameters {
|
|
4882
4944
|
/**
|
|
4883
4945
|
* Multiple filter queries are separated by spaces. For example, 'instance:abc AND type:FINAL, 'location:us', 'backupInterval.startTime\>=1950-01-01T01:01:25.771Z'. You can filter by type, instance, backupInterval.startTime (creation time), or location.
|
|
4884
4946
|
*/
|
|
@@ -4896,8 +4958,7 @@ export namespace sqladmin_v1 {
|
|
|
4896
4958
|
*/
|
|
4897
4959
|
parent?: string;
|
|
4898
4960
|
}
|
|
4899
|
-
export interface Params$Resource$Backups$Updatebackup
|
|
4900
|
-
extends StandardParameters {
|
|
4961
|
+
export interface Params$Resource$Backups$Updatebackup extends StandardParameters {
|
|
4901
4962
|
/**
|
|
4902
4963
|
* Output only. The resource name of the backup. Format: projects/{project\}/backups/{backup\}.
|
|
4903
4964
|
*/
|
|
@@ -5235,8 +5296,7 @@ export namespace sqladmin_v1 {
|
|
|
5235
5296
|
}
|
|
5236
5297
|
}
|
|
5237
5298
|
|
|
5238
|
-
export interface Params$Resource$Connect$Generateephemeralcert
|
|
5239
|
-
extends StandardParameters {
|
|
5299
|
+
export interface Params$Resource$Connect$Generateephemeralcert extends StandardParameters {
|
|
5240
5300
|
/**
|
|
5241
5301
|
* Cloud SQL instance ID. This does not include the project ID.
|
|
5242
5302
|
*/
|
|
@@ -8884,6 +8944,160 @@ export namespace sqladmin_v1 {
|
|
|
8884
8944
|
}
|
|
8885
8945
|
}
|
|
8886
8946
|
|
|
8947
|
+
/**
|
|
8948
|
+
* Lists all versions of EntraID certificates for the specified instance. There can be up to three sets of certificates listed: the certificate that is currently in use, a future that has been added but not yet used to sign a certificate, and a certificate that has been rotated out.
|
|
8949
|
+
* @example
|
|
8950
|
+
* ```js
|
|
8951
|
+
* // Before running the sample:
|
|
8952
|
+
* // - Enable the API at:
|
|
8953
|
+
* // https://console.developers.google.com/apis/api/sqladmin.googleapis.com
|
|
8954
|
+
* // - Login into gcloud by running:
|
|
8955
|
+
* // ```sh
|
|
8956
|
+
* // $ gcloud auth application-default login
|
|
8957
|
+
* // ```
|
|
8958
|
+
* // - Install the npm module by running:
|
|
8959
|
+
* // ```sh
|
|
8960
|
+
* // $ npm install googleapis
|
|
8961
|
+
* // ```
|
|
8962
|
+
*
|
|
8963
|
+
* const {google} = require('googleapis');
|
|
8964
|
+
* const sqladmin = google.sqladmin('v1');
|
|
8965
|
+
*
|
|
8966
|
+
* async function main() {
|
|
8967
|
+
* const auth = new google.auth.GoogleAuth({
|
|
8968
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
8969
|
+
* scopes: [
|
|
8970
|
+
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
8971
|
+
* 'https://www.googleapis.com/auth/sqlservice.admin',
|
|
8972
|
+
* ],
|
|
8973
|
+
* });
|
|
8974
|
+
*
|
|
8975
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
8976
|
+
* const authClient = await auth.getClient();
|
|
8977
|
+
* google.options({auth: authClient});
|
|
8978
|
+
*
|
|
8979
|
+
* // Do the magic
|
|
8980
|
+
* const res = await sql.instances.ListEntraIdCertificates({
|
|
8981
|
+
* // Required. Cloud SQL instance ID. This does not include the project ID.
|
|
8982
|
+
* instance: 'placeholder-value',
|
|
8983
|
+
* // Required. Project ID of the project that contains the instance.
|
|
8984
|
+
* project: 'placeholder-value',
|
|
8985
|
+
* });
|
|
8986
|
+
* console.log(res.data);
|
|
8987
|
+
*
|
|
8988
|
+
* // Example response
|
|
8989
|
+
* // {
|
|
8990
|
+
* // "activeVersion": "my_activeVersion",
|
|
8991
|
+
* // "certs": [],
|
|
8992
|
+
* // "kind": "my_kind"
|
|
8993
|
+
* // }
|
|
8994
|
+
* }
|
|
8995
|
+
*
|
|
8996
|
+
* main().catch(e => {
|
|
8997
|
+
* console.error(e);
|
|
8998
|
+
* throw e;
|
|
8999
|
+
* });
|
|
9000
|
+
*
|
|
9001
|
+
* ```
|
|
9002
|
+
*
|
|
9003
|
+
* @param params - Parameters for request
|
|
9004
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
9005
|
+
* @param callback - Optional callback that handles the response.
|
|
9006
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
9007
|
+
*/
|
|
9008
|
+
ListEntraIdCertificates(
|
|
9009
|
+
params: Params$Resource$Instances$Listentraidcertificates,
|
|
9010
|
+
options: StreamMethodOptions
|
|
9011
|
+
): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
9012
|
+
ListEntraIdCertificates(
|
|
9013
|
+
params?: Params$Resource$Instances$Listentraidcertificates,
|
|
9014
|
+
options?: MethodOptions
|
|
9015
|
+
): Promise<
|
|
9016
|
+
GaxiosResponseWithHTTP2<Schema$InstancesListEntraIdCertificatesResponse>
|
|
9017
|
+
>;
|
|
9018
|
+
ListEntraIdCertificates(
|
|
9019
|
+
params: Params$Resource$Instances$Listentraidcertificates,
|
|
9020
|
+
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
9021
|
+
callback: BodyResponseCallback<Readable>
|
|
9022
|
+
): void;
|
|
9023
|
+
ListEntraIdCertificates(
|
|
9024
|
+
params: Params$Resource$Instances$Listentraidcertificates,
|
|
9025
|
+
options:
|
|
9026
|
+
| MethodOptions
|
|
9027
|
+
| BodyResponseCallback<Schema$InstancesListEntraIdCertificatesResponse>,
|
|
9028
|
+
callback: BodyResponseCallback<Schema$InstancesListEntraIdCertificatesResponse>
|
|
9029
|
+
): void;
|
|
9030
|
+
ListEntraIdCertificates(
|
|
9031
|
+
params: Params$Resource$Instances$Listentraidcertificates,
|
|
9032
|
+
callback: BodyResponseCallback<Schema$InstancesListEntraIdCertificatesResponse>
|
|
9033
|
+
): void;
|
|
9034
|
+
ListEntraIdCertificates(
|
|
9035
|
+
callback: BodyResponseCallback<Schema$InstancesListEntraIdCertificatesResponse>
|
|
9036
|
+
): void;
|
|
9037
|
+
ListEntraIdCertificates(
|
|
9038
|
+
paramsOrCallback?:
|
|
9039
|
+
| Params$Resource$Instances$Listentraidcertificates
|
|
9040
|
+
| BodyResponseCallback<Schema$InstancesListEntraIdCertificatesResponse>
|
|
9041
|
+
| BodyResponseCallback<Readable>,
|
|
9042
|
+
optionsOrCallback?:
|
|
9043
|
+
| MethodOptions
|
|
9044
|
+
| StreamMethodOptions
|
|
9045
|
+
| BodyResponseCallback<Schema$InstancesListEntraIdCertificatesResponse>
|
|
9046
|
+
| BodyResponseCallback<Readable>,
|
|
9047
|
+
callback?:
|
|
9048
|
+
| BodyResponseCallback<Schema$InstancesListEntraIdCertificatesResponse>
|
|
9049
|
+
| BodyResponseCallback<Readable>
|
|
9050
|
+
):
|
|
9051
|
+
| void
|
|
9052
|
+
| Promise<
|
|
9053
|
+
GaxiosResponseWithHTTP2<Schema$InstancesListEntraIdCertificatesResponse>
|
|
9054
|
+
>
|
|
9055
|
+
| Promise<GaxiosResponseWithHTTP2<Readable>> {
|
|
9056
|
+
let params = (paramsOrCallback ||
|
|
9057
|
+
{}) as Params$Resource$Instances$Listentraidcertificates;
|
|
9058
|
+
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
9059
|
+
|
|
9060
|
+
if (typeof paramsOrCallback === 'function') {
|
|
9061
|
+
callback = paramsOrCallback;
|
|
9062
|
+
params = {} as Params$Resource$Instances$Listentraidcertificates;
|
|
9063
|
+
options = {};
|
|
9064
|
+
}
|
|
9065
|
+
|
|
9066
|
+
if (typeof optionsOrCallback === 'function') {
|
|
9067
|
+
callback = optionsOrCallback;
|
|
9068
|
+
options = {};
|
|
9069
|
+
}
|
|
9070
|
+
|
|
9071
|
+
const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/';
|
|
9072
|
+
const parameters = {
|
|
9073
|
+
options: Object.assign(
|
|
9074
|
+
{
|
|
9075
|
+
url: (
|
|
9076
|
+
rootUrl +
|
|
9077
|
+
'/v1/projects/{project}/instances/{instance}/listEntraIdCertificates'
|
|
9078
|
+
).replace(/([^:]\/)\/+/g, '$1'),
|
|
9079
|
+
method: 'GET',
|
|
9080
|
+
apiVersion: '',
|
|
9081
|
+
},
|
|
9082
|
+
options
|
|
9083
|
+
),
|
|
9084
|
+
params,
|
|
9085
|
+
requiredParams: ['project', 'instance'],
|
|
9086
|
+
pathParams: ['instance', 'project'],
|
|
9087
|
+
context: this.context,
|
|
9088
|
+
};
|
|
9089
|
+
if (callback) {
|
|
9090
|
+
createAPIRequest<Schema$InstancesListEntraIdCertificatesResponse>(
|
|
9091
|
+
parameters,
|
|
9092
|
+
callback as BodyResponseCallback<unknown>
|
|
9093
|
+
);
|
|
9094
|
+
} else {
|
|
9095
|
+
return createAPIRequest<Schema$InstancesListEntraIdCertificatesResponse>(
|
|
9096
|
+
parameters
|
|
9097
|
+
);
|
|
9098
|
+
}
|
|
9099
|
+
}
|
|
9100
|
+
|
|
8887
9101
|
/**
|
|
8888
9102
|
* Lists all of the trusted Certificate Authorities (CAs) for the specified instance. There can be up to three CAs listed: the CA that was used to sign the certificate that is currently in use, a CA that has been added but not yet used to sign a certificate, and a CA used to sign a certificate that has previously rotated out.
|
|
8889
9103
|
* @example
|
|
@@ -10729,6 +10943,177 @@ export namespace sqladmin_v1 {
|
|
|
10729
10943
|
}
|
|
10730
10944
|
}
|
|
10731
10945
|
|
|
10946
|
+
/**
|
|
10947
|
+
* Rotates the server certificate version to one previously added with the addEntraIdCertificate method.
|
|
10948
|
+
* @example
|
|
10949
|
+
* ```js
|
|
10950
|
+
* // Before running the sample:
|
|
10951
|
+
* // - Enable the API at:
|
|
10952
|
+
* // https://console.developers.google.com/apis/api/sqladmin.googleapis.com
|
|
10953
|
+
* // - Login into gcloud by running:
|
|
10954
|
+
* // ```sh
|
|
10955
|
+
* // $ gcloud auth application-default login
|
|
10956
|
+
* // ```
|
|
10957
|
+
* // - Install the npm module by running:
|
|
10958
|
+
* // ```sh
|
|
10959
|
+
* // $ npm install googleapis
|
|
10960
|
+
* // ```
|
|
10961
|
+
*
|
|
10962
|
+
* const {google} = require('googleapis');
|
|
10963
|
+
* const sqladmin = google.sqladmin('v1');
|
|
10964
|
+
*
|
|
10965
|
+
* async function main() {
|
|
10966
|
+
* const auth = new google.auth.GoogleAuth({
|
|
10967
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
10968
|
+
* scopes: [
|
|
10969
|
+
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
10970
|
+
* 'https://www.googleapis.com/auth/sqlservice.admin',
|
|
10971
|
+
* ],
|
|
10972
|
+
* });
|
|
10973
|
+
*
|
|
10974
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
10975
|
+
* const authClient = await auth.getClient();
|
|
10976
|
+
* google.options({auth: authClient});
|
|
10977
|
+
*
|
|
10978
|
+
* // Do the magic
|
|
10979
|
+
* const res = await sql.instances.RotateEntraIdCertificate({
|
|
10980
|
+
* // Required. Cloud SQL instance ID. This does not include the project ID.
|
|
10981
|
+
* instance: 'placeholder-value',
|
|
10982
|
+
* // Required. Project ID of the project that contains the instance.
|
|
10983
|
+
* project: 'placeholder-value',
|
|
10984
|
+
*
|
|
10985
|
+
* // Request body metadata
|
|
10986
|
+
* requestBody: {
|
|
10987
|
+
* // request body parameters
|
|
10988
|
+
* // {
|
|
10989
|
+
* // "rotateEntraIdCertificateContext": {}
|
|
10990
|
+
* // }
|
|
10991
|
+
* },
|
|
10992
|
+
* });
|
|
10993
|
+
* console.log(res.data);
|
|
10994
|
+
*
|
|
10995
|
+
* // Example response
|
|
10996
|
+
* // {
|
|
10997
|
+
* // "acquireSsrsLeaseContext": {},
|
|
10998
|
+
* // "apiWarning": {},
|
|
10999
|
+
* // "backupContext": {},
|
|
11000
|
+
* // "endTime": "my_endTime",
|
|
11001
|
+
* // "error": {},
|
|
11002
|
+
* // "exportContext": {},
|
|
11003
|
+
* // "importContext": {},
|
|
11004
|
+
* // "insertTime": "my_insertTime",
|
|
11005
|
+
* // "kind": "my_kind",
|
|
11006
|
+
* // "name": "my_name",
|
|
11007
|
+
* // "operationType": "my_operationType",
|
|
11008
|
+
* // "preCheckMajorVersionUpgradeContext": {},
|
|
11009
|
+
* // "selfLink": "my_selfLink",
|
|
11010
|
+
* // "startTime": "my_startTime",
|
|
11011
|
+
* // "status": "my_status",
|
|
11012
|
+
* // "subOperationType": {},
|
|
11013
|
+
* // "targetId": "my_targetId",
|
|
11014
|
+
* // "targetLink": "my_targetLink",
|
|
11015
|
+
* // "targetProject": "my_targetProject",
|
|
11016
|
+
* // "user": "my_user"
|
|
11017
|
+
* // }
|
|
11018
|
+
* }
|
|
11019
|
+
*
|
|
11020
|
+
* main().catch(e => {
|
|
11021
|
+
* console.error(e);
|
|
11022
|
+
* throw e;
|
|
11023
|
+
* });
|
|
11024
|
+
*
|
|
11025
|
+
* ```
|
|
11026
|
+
*
|
|
11027
|
+
* @param params - Parameters for request
|
|
11028
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
11029
|
+
* @param callback - Optional callback that handles the response.
|
|
11030
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
11031
|
+
*/
|
|
11032
|
+
RotateEntraIdCertificate(
|
|
11033
|
+
params: Params$Resource$Instances$Rotateentraidcertificate,
|
|
11034
|
+
options: StreamMethodOptions
|
|
11035
|
+
): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
11036
|
+
RotateEntraIdCertificate(
|
|
11037
|
+
params?: Params$Resource$Instances$Rotateentraidcertificate,
|
|
11038
|
+
options?: MethodOptions
|
|
11039
|
+
): Promise<GaxiosResponseWithHTTP2<Schema$Operation>>;
|
|
11040
|
+
RotateEntraIdCertificate(
|
|
11041
|
+
params: Params$Resource$Instances$Rotateentraidcertificate,
|
|
11042
|
+
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
11043
|
+
callback: BodyResponseCallback<Readable>
|
|
11044
|
+
): void;
|
|
11045
|
+
RotateEntraIdCertificate(
|
|
11046
|
+
params: Params$Resource$Instances$Rotateentraidcertificate,
|
|
11047
|
+
options: MethodOptions | BodyResponseCallback<Schema$Operation>,
|
|
11048
|
+
callback: BodyResponseCallback<Schema$Operation>
|
|
11049
|
+
): void;
|
|
11050
|
+
RotateEntraIdCertificate(
|
|
11051
|
+
params: Params$Resource$Instances$Rotateentraidcertificate,
|
|
11052
|
+
callback: BodyResponseCallback<Schema$Operation>
|
|
11053
|
+
): void;
|
|
11054
|
+
RotateEntraIdCertificate(
|
|
11055
|
+
callback: BodyResponseCallback<Schema$Operation>
|
|
11056
|
+
): void;
|
|
11057
|
+
RotateEntraIdCertificate(
|
|
11058
|
+
paramsOrCallback?:
|
|
11059
|
+
| Params$Resource$Instances$Rotateentraidcertificate
|
|
11060
|
+
| BodyResponseCallback<Schema$Operation>
|
|
11061
|
+
| BodyResponseCallback<Readable>,
|
|
11062
|
+
optionsOrCallback?:
|
|
11063
|
+
| MethodOptions
|
|
11064
|
+
| StreamMethodOptions
|
|
11065
|
+
| BodyResponseCallback<Schema$Operation>
|
|
11066
|
+
| BodyResponseCallback<Readable>,
|
|
11067
|
+
callback?:
|
|
11068
|
+
| BodyResponseCallback<Schema$Operation>
|
|
11069
|
+
| BodyResponseCallback<Readable>
|
|
11070
|
+
):
|
|
11071
|
+
| void
|
|
11072
|
+
| Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
|
|
11073
|
+
| Promise<GaxiosResponseWithHTTP2<Readable>> {
|
|
11074
|
+
let params = (paramsOrCallback ||
|
|
11075
|
+
{}) as Params$Resource$Instances$Rotateentraidcertificate;
|
|
11076
|
+
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
11077
|
+
|
|
11078
|
+
if (typeof paramsOrCallback === 'function') {
|
|
11079
|
+
callback = paramsOrCallback;
|
|
11080
|
+
params = {} as Params$Resource$Instances$Rotateentraidcertificate;
|
|
11081
|
+
options = {};
|
|
11082
|
+
}
|
|
11083
|
+
|
|
11084
|
+
if (typeof optionsOrCallback === 'function') {
|
|
11085
|
+
callback = optionsOrCallback;
|
|
11086
|
+
options = {};
|
|
11087
|
+
}
|
|
11088
|
+
|
|
11089
|
+
const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/';
|
|
11090
|
+
const parameters = {
|
|
11091
|
+
options: Object.assign(
|
|
11092
|
+
{
|
|
11093
|
+
url: (
|
|
11094
|
+
rootUrl +
|
|
11095
|
+
'/v1/projects/{project}/instances/{instance}/rotateEntraIdCertificate'
|
|
11096
|
+
).replace(/([^:]\/)\/+/g, '$1'),
|
|
11097
|
+
method: 'POST',
|
|
11098
|
+
apiVersion: '',
|
|
11099
|
+
},
|
|
11100
|
+
options
|
|
11101
|
+
),
|
|
11102
|
+
params,
|
|
11103
|
+
requiredParams: ['project', 'instance'],
|
|
11104
|
+
pathParams: ['instance', 'project'],
|
|
11105
|
+
context: this.context,
|
|
11106
|
+
};
|
|
11107
|
+
if (callback) {
|
|
11108
|
+
createAPIRequest<Schema$Operation>(
|
|
11109
|
+
parameters,
|
|
11110
|
+
callback as BodyResponseCallback<unknown>
|
|
11111
|
+
);
|
|
11112
|
+
} else {
|
|
11113
|
+
return createAPIRequest<Schema$Operation>(parameters);
|
|
11114
|
+
}
|
|
11115
|
+
}
|
|
11116
|
+
|
|
10732
11117
|
/**
|
|
10733
11118
|
* Rotates the server certificate to one signed by the Certificate Authority (CA) version previously added with the addServerCA method. For instances that have enabled Certificate Authority Service (CAS) based server CA, use RotateServerCertificate to rotate the server certificate.
|
|
10734
11119
|
* @example
|
|
@@ -11940,8 +12325,7 @@ export namespace sqladmin_v1 {
|
|
|
11940
12325
|
}
|
|
11941
12326
|
}
|
|
11942
12327
|
|
|
11943
|
-
export interface Params$Resource$Instances$Acquiressrslease
|
|
11944
|
-
extends StandardParameters {
|
|
12328
|
+
export interface Params$Resource$Instances$Acquiressrslease extends StandardParameters {
|
|
11945
12329
|
/**
|
|
11946
12330
|
* Required. Cloud SQL instance ID. This doesn't include the project ID. It's composed of lowercase letters, numbers, and hyphens, and it must start with a letter. The total length must be 98 characters or less (Example: instance-id).
|
|
11947
12331
|
*/
|
|
@@ -11956,8 +12340,7 @@ export namespace sqladmin_v1 {
|
|
|
11956
12340
|
*/
|
|
11957
12341
|
requestBody?: Schema$InstancesAcquireSsrsLeaseRequest;
|
|
11958
12342
|
}
|
|
11959
|
-
export interface Params$Resource$Instances$Addserverca
|
|
11960
|
-
extends StandardParameters {
|
|
12343
|
+
export interface Params$Resource$Instances$Addserverca extends StandardParameters {
|
|
11961
12344
|
/**
|
|
11962
12345
|
* Cloud SQL instance ID. This does not include the project ID.
|
|
11963
12346
|
*/
|
|
@@ -11967,8 +12350,7 @@ export namespace sqladmin_v1 {
|
|
|
11967
12350
|
*/
|
|
11968
12351
|
project?: string;
|
|
11969
12352
|
}
|
|
11970
|
-
export interface Params$Resource$Instances$Addservercertificate
|
|
11971
|
-
extends StandardParameters {
|
|
12353
|
+
export interface Params$Resource$Instances$Addservercertificate extends StandardParameters {
|
|
11972
12354
|
/**
|
|
11973
12355
|
* Cloud SQL instance ID. This does not include the project ID.
|
|
11974
12356
|
*/
|
|
@@ -12034,8 +12416,7 @@ export namespace sqladmin_v1 {
|
|
|
12034
12416
|
*/
|
|
12035
12417
|
requestBody?: Schema$InstancesDemoteRequest;
|
|
12036
12418
|
}
|
|
12037
|
-
export interface Params$Resource$Instances$Demotemaster
|
|
12038
|
-
extends StandardParameters {
|
|
12419
|
+
export interface Params$Resource$Instances$Demotemaster extends StandardParameters {
|
|
12039
12420
|
/**
|
|
12040
12421
|
* Cloud SQL instance name.
|
|
12041
12422
|
*/
|
|
@@ -12050,8 +12431,7 @@ export namespace sqladmin_v1 {
|
|
|
12050
12431
|
*/
|
|
12051
12432
|
requestBody?: Schema$InstancesDemoteMasterRequest;
|
|
12052
12433
|
}
|
|
12053
|
-
export interface Params$Resource$Instances$Executesql
|
|
12054
|
-
extends StandardParameters {
|
|
12434
|
+
export interface Params$Resource$Instances$Executesql extends StandardParameters {
|
|
12055
12435
|
/**
|
|
12056
12436
|
* Required. Database instance ID. This does not include the project ID.
|
|
12057
12437
|
*/
|
|
@@ -12081,8 +12461,7 @@ export namespace sqladmin_v1 {
|
|
|
12081
12461
|
*/
|
|
12082
12462
|
requestBody?: Schema$InstancesExportRequest;
|
|
12083
12463
|
}
|
|
12084
|
-
export interface Params$Resource$Instances$Failover
|
|
12085
|
-
extends StandardParameters {
|
|
12464
|
+
export interface Params$Resource$Instances$Failover extends StandardParameters {
|
|
12086
12465
|
/**
|
|
12087
12466
|
* Cloud SQL instance ID. This does not include the project ID.
|
|
12088
12467
|
*/
|
|
@@ -12151,8 +12530,17 @@ export namespace sqladmin_v1 {
|
|
|
12151
12530
|
*/
|
|
12152
12531
|
project?: string;
|
|
12153
12532
|
}
|
|
12154
|
-
export interface Params$Resource$Instances$
|
|
12155
|
-
|
|
12533
|
+
export interface Params$Resource$Instances$Listentraidcertificates extends StandardParameters {
|
|
12534
|
+
/**
|
|
12535
|
+
* Required. Cloud SQL instance ID. This does not include the project ID.
|
|
12536
|
+
*/
|
|
12537
|
+
instance?: string;
|
|
12538
|
+
/**
|
|
12539
|
+
* Required. Project ID of the project that contains the instance.
|
|
12540
|
+
*/
|
|
12541
|
+
project?: string;
|
|
12542
|
+
}
|
|
12543
|
+
export interface Params$Resource$Instances$Listservercas extends StandardParameters {
|
|
12156
12544
|
/**
|
|
12157
12545
|
* Cloud SQL instance ID. This does not include the project ID.
|
|
12158
12546
|
*/
|
|
@@ -12162,8 +12550,7 @@ export namespace sqladmin_v1 {
|
|
|
12162
12550
|
*/
|
|
12163
12551
|
project?: string;
|
|
12164
12552
|
}
|
|
12165
|
-
export interface Params$Resource$Instances$Listservercertificates
|
|
12166
|
-
extends StandardParameters {
|
|
12553
|
+
export interface Params$Resource$Instances$Listservercertificates extends StandardParameters {
|
|
12167
12554
|
/**
|
|
12168
12555
|
* Required. Cloud SQL instance ID. This does not include the project ID.
|
|
12169
12556
|
*/
|
|
@@ -12188,8 +12575,7 @@ export namespace sqladmin_v1 {
|
|
|
12188
12575
|
*/
|
|
12189
12576
|
requestBody?: Schema$DatabaseInstance;
|
|
12190
12577
|
}
|
|
12191
|
-
export interface Params$Resource$Instances$Pointintimerestore
|
|
12192
|
-
extends StandardParameters {
|
|
12578
|
+
export interface Params$Resource$Instances$Pointintimerestore extends StandardParameters {
|
|
12193
12579
|
/**
|
|
12194
12580
|
* Required. The parent resource where you created this instance. Format: projects/{project\}
|
|
12195
12581
|
*/
|
|
@@ -12200,8 +12586,7 @@ export namespace sqladmin_v1 {
|
|
|
12200
12586
|
*/
|
|
12201
12587
|
requestBody?: Schema$PointInTimeRestoreContext;
|
|
12202
12588
|
}
|
|
12203
|
-
export interface Params$Resource$Instances$Precheckmajorversionupgrade
|
|
12204
|
-
extends StandardParameters {
|
|
12589
|
+
export interface Params$Resource$Instances$Precheckmajorversionupgrade extends StandardParameters {
|
|
12205
12590
|
/**
|
|
12206
12591
|
* Required. Cloud SQL instance ID. This does not include the project ID.
|
|
12207
12592
|
*/
|
|
@@ -12216,8 +12601,7 @@ export namespace sqladmin_v1 {
|
|
|
12216
12601
|
*/
|
|
12217
12602
|
requestBody?: Schema$InstancesPreCheckMajorVersionUpgradeRequest;
|
|
12218
12603
|
}
|
|
12219
|
-
export interface Params$Resource$Instances$Promotereplica
|
|
12220
|
-
extends StandardParameters {
|
|
12604
|
+
export interface Params$Resource$Instances$Promotereplica extends StandardParameters {
|
|
12221
12605
|
/**
|
|
12222
12606
|
* Set to true to invoke a replica failover to the DR replica. As part of replica failover, the promote operation attempts to add the original primary instance as a replica of the promoted DR replica when the original primary instance comes back online. If set to false or not specified, then the original primary instance becomes an independent Cloud SQL primary instance.
|
|
12223
12607
|
*/
|
|
@@ -12231,8 +12615,7 @@ export namespace sqladmin_v1 {
|
|
|
12231
12615
|
*/
|
|
12232
12616
|
project?: string;
|
|
12233
12617
|
}
|
|
12234
|
-
export interface Params$Resource$Instances$Reencrypt
|
|
12235
|
-
extends StandardParameters {
|
|
12618
|
+
export interface Params$Resource$Instances$Reencrypt extends StandardParameters {
|
|
12236
12619
|
/**
|
|
12237
12620
|
* Cloud SQL instance ID. This does not include the project ID.
|
|
12238
12621
|
*/
|
|
@@ -12247,8 +12630,7 @@ export namespace sqladmin_v1 {
|
|
|
12247
12630
|
*/
|
|
12248
12631
|
requestBody?: Schema$InstancesReencryptRequest;
|
|
12249
12632
|
}
|
|
12250
|
-
export interface Params$Resource$Instances$Releasessrslease
|
|
12251
|
-
extends StandardParameters {
|
|
12633
|
+
export interface Params$Resource$Instances$Releasessrslease extends StandardParameters {
|
|
12252
12634
|
/**
|
|
12253
12635
|
* Required. The Cloud SQL instance ID. This doesn't include the project ID. The instance ID contains lowercase letters, numbers, and hyphens, and it must start with a letter. This ID can have a maximum length of 98 characters.
|
|
12254
12636
|
*/
|
|
@@ -12258,8 +12640,7 @@ export namespace sqladmin_v1 {
|
|
|
12258
12640
|
*/
|
|
12259
12641
|
project?: string;
|
|
12260
12642
|
}
|
|
12261
|
-
export interface Params$Resource$Instances$Resetsslconfig
|
|
12262
|
-
extends StandardParameters {
|
|
12643
|
+
export interface Params$Resource$Instances$Resetsslconfig extends StandardParameters {
|
|
12263
12644
|
/**
|
|
12264
12645
|
* Cloud SQL instance ID. This does not include the project ID.
|
|
12265
12646
|
*/
|
|
@@ -12273,8 +12654,7 @@ export namespace sqladmin_v1 {
|
|
|
12273
12654
|
*/
|
|
12274
12655
|
project?: string;
|
|
12275
12656
|
}
|
|
12276
|
-
export interface Params$Resource$Instances$Restart
|
|
12277
|
-
extends StandardParameters {
|
|
12657
|
+
export interface Params$Resource$Instances$Restart extends StandardParameters {
|
|
12278
12658
|
/**
|
|
12279
12659
|
* Cloud SQL instance ID. This does not include the project ID.
|
|
12280
12660
|
*/
|
|
@@ -12284,8 +12664,7 @@ export namespace sqladmin_v1 {
|
|
|
12284
12664
|
*/
|
|
12285
12665
|
project?: string;
|
|
12286
12666
|
}
|
|
12287
|
-
export interface Params$Resource$Instances$Restorebackup
|
|
12288
|
-
extends StandardParameters {
|
|
12667
|
+
export interface Params$Resource$Instances$Restorebackup extends StandardParameters {
|
|
12289
12668
|
/**
|
|
12290
12669
|
* Cloud SQL instance ID. This does not include the project ID.
|
|
12291
12670
|
*/
|
|
@@ -12300,8 +12679,22 @@ export namespace sqladmin_v1 {
|
|
|
12300
12679
|
*/
|
|
12301
12680
|
requestBody?: Schema$InstancesRestoreBackupRequest;
|
|
12302
12681
|
}
|
|
12303
|
-
export interface Params$Resource$Instances$
|
|
12304
|
-
|
|
12682
|
+
export interface Params$Resource$Instances$Rotateentraidcertificate extends StandardParameters {
|
|
12683
|
+
/**
|
|
12684
|
+
* Required. Cloud SQL instance ID. This does not include the project ID.
|
|
12685
|
+
*/
|
|
12686
|
+
instance?: string;
|
|
12687
|
+
/**
|
|
12688
|
+
* Required. Project ID of the project that contains the instance.
|
|
12689
|
+
*/
|
|
12690
|
+
project?: string;
|
|
12691
|
+
|
|
12692
|
+
/**
|
|
12693
|
+
* Request body metadata
|
|
12694
|
+
*/
|
|
12695
|
+
requestBody?: Schema$InstancesRotateEntraIdCertificateRequest;
|
|
12696
|
+
}
|
|
12697
|
+
export interface Params$Resource$Instances$Rotateserverca extends StandardParameters {
|
|
12305
12698
|
/**
|
|
12306
12699
|
* Cloud SQL instance ID. This does not include the project ID.
|
|
12307
12700
|
*/
|
|
@@ -12316,8 +12709,7 @@ export namespace sqladmin_v1 {
|
|
|
12316
12709
|
*/
|
|
12317
12710
|
requestBody?: Schema$InstancesRotateServerCaRequest;
|
|
12318
12711
|
}
|
|
12319
|
-
export interface Params$Resource$Instances$Rotateservercertificate
|
|
12320
|
-
extends StandardParameters {
|
|
12712
|
+
export interface Params$Resource$Instances$Rotateservercertificate extends StandardParameters {
|
|
12321
12713
|
/**
|
|
12322
12714
|
* Required. Cloud SQL instance ID. This does not include the project ID.
|
|
12323
12715
|
*/
|
|
@@ -12332,8 +12724,7 @@ export namespace sqladmin_v1 {
|
|
|
12332
12724
|
*/
|
|
12333
12725
|
requestBody?: Schema$InstancesRotateServerCertificateRequest;
|
|
12334
12726
|
}
|
|
12335
|
-
export interface Params$Resource$Instances$Startreplica
|
|
12336
|
-
extends StandardParameters {
|
|
12727
|
+
export interface Params$Resource$Instances$Startreplica extends StandardParameters {
|
|
12337
12728
|
/**
|
|
12338
12729
|
* Cloud SQL read replica instance name.
|
|
12339
12730
|
*/
|
|
@@ -12343,8 +12734,7 @@ export namespace sqladmin_v1 {
|
|
|
12343
12734
|
*/
|
|
12344
12735
|
project?: string;
|
|
12345
12736
|
}
|
|
12346
|
-
export interface Params$Resource$Instances$Stopreplica
|
|
12347
|
-
extends StandardParameters {
|
|
12737
|
+
export interface Params$Resource$Instances$Stopreplica extends StandardParameters {
|
|
12348
12738
|
/**
|
|
12349
12739
|
* Cloud SQL read replica instance name.
|
|
12350
12740
|
*/
|
|
@@ -12354,8 +12744,7 @@ export namespace sqladmin_v1 {
|
|
|
12354
12744
|
*/
|
|
12355
12745
|
project?: string;
|
|
12356
12746
|
}
|
|
12357
|
-
export interface Params$Resource$Instances$Switchover
|
|
12358
|
-
extends StandardParameters {
|
|
12747
|
+
export interface Params$Resource$Instances$Switchover extends StandardParameters {
|
|
12359
12748
|
/**
|
|
12360
12749
|
* Optional. (MySQL and PostgreSQL only) Cloud SQL instance operations timeout, which is a sum of all database operations. Default value is 10 minutes and can be modified to a maximum value of 24 hours.
|
|
12361
12750
|
*/
|
|
@@ -12369,8 +12758,7 @@ export namespace sqladmin_v1 {
|
|
|
12369
12758
|
*/
|
|
12370
12759
|
project?: string;
|
|
12371
12760
|
}
|
|
12372
|
-
export interface Params$Resource$Instances$Truncatelog
|
|
12373
|
-
extends StandardParameters {
|
|
12761
|
+
export interface Params$Resource$Instances$Truncatelog extends StandardParameters {
|
|
12374
12762
|
/**
|
|
12375
12763
|
* Cloud SQL instance ID. This does not include the project ID.
|
|
12376
12764
|
*/
|
|
@@ -12855,8 +13243,7 @@ export namespace sqladmin_v1 {
|
|
|
12855
13243
|
}
|
|
12856
13244
|
}
|
|
12857
13245
|
|
|
12858
|
-
export interface Params$Resource$Operations$Cancel
|
|
12859
|
-
extends StandardParameters {
|
|
13246
|
+
export interface Params$Resource$Operations$Cancel extends StandardParameters {
|
|
12860
13247
|
/**
|
|
12861
13248
|
* Instance operation ID.
|
|
12862
13249
|
*/
|
|
@@ -14071,8 +14458,7 @@ export namespace sqladmin_v1 {
|
|
|
14071
14458
|
}
|
|
14072
14459
|
}
|
|
14073
14460
|
|
|
14074
|
-
export interface Params$Resource$Projects$Instances$Getdiskshrinkconfig
|
|
14075
|
-
extends StandardParameters {
|
|
14461
|
+
export interface Params$Resource$Projects$Instances$Getdiskshrinkconfig extends StandardParameters {
|
|
14076
14462
|
/**
|
|
14077
14463
|
* Cloud SQL instance ID. This does not include the project ID.
|
|
14078
14464
|
*/
|
|
@@ -14082,8 +14468,7 @@ export namespace sqladmin_v1 {
|
|
|
14082
14468
|
*/
|
|
14083
14469
|
project?: string;
|
|
14084
14470
|
}
|
|
14085
|
-
export interface Params$Resource$Projects$Instances$Getlatestrecoverytime
|
|
14086
|
-
extends StandardParameters {
|
|
14471
|
+
export interface Params$Resource$Projects$Instances$Getlatestrecoverytime extends StandardParameters {
|
|
14087
14472
|
/**
|
|
14088
14473
|
* Cloud SQL instance ID. This does not include the project ID.
|
|
14089
14474
|
*/
|
|
@@ -14097,8 +14482,7 @@ export namespace sqladmin_v1 {
|
|
|
14097
14482
|
*/
|
|
14098
14483
|
sourceInstanceDeletionTime?: string;
|
|
14099
14484
|
}
|
|
14100
|
-
export interface Params$Resource$Projects$Instances$Performdiskshrink
|
|
14101
|
-
extends StandardParameters {
|
|
14485
|
+
export interface Params$Resource$Projects$Instances$Performdiskshrink extends StandardParameters {
|
|
14102
14486
|
/**
|
|
14103
14487
|
* Cloud SQL instance ID. This does not include the project ID.
|
|
14104
14488
|
*/
|
|
@@ -14113,8 +14497,7 @@ export namespace sqladmin_v1 {
|
|
|
14113
14497
|
*/
|
|
14114
14498
|
requestBody?: Schema$PerformDiskShrinkContext;
|
|
14115
14499
|
}
|
|
14116
|
-
export interface Params$Resource$Projects$Instances$Reschedulemaintenance
|
|
14117
|
-
extends StandardParameters {
|
|
14500
|
+
export interface Params$Resource$Projects$Instances$Reschedulemaintenance extends StandardParameters {
|
|
14118
14501
|
/**
|
|
14119
14502
|
* Cloud SQL instance ID. This does not include the project ID.
|
|
14120
14503
|
*/
|
|
@@ -14129,8 +14512,7 @@ export namespace sqladmin_v1 {
|
|
|
14129
14512
|
*/
|
|
14130
14513
|
requestBody?: Schema$SqlInstancesRescheduleMaintenanceRequestBody;
|
|
14131
14514
|
}
|
|
14132
|
-
export interface Params$Resource$Projects$Instances$Resetreplicasize
|
|
14133
|
-
extends StandardParameters {
|
|
14515
|
+
export interface Params$Resource$Projects$Instances$Resetreplicasize extends StandardParameters {
|
|
14134
14516
|
/**
|
|
14135
14517
|
* Cloud SQL read replica instance name.
|
|
14136
14518
|
*/
|
|
@@ -14145,8 +14527,7 @@ export namespace sqladmin_v1 {
|
|
|
14145
14527
|
*/
|
|
14146
14528
|
requestBody?: Schema$SqlInstancesResetReplicaSizeRequest;
|
|
14147
14529
|
}
|
|
14148
|
-
export interface Params$Resource$Projects$Instances$Startexternalsync
|
|
14149
|
-
extends StandardParameters {
|
|
14530
|
+
export interface Params$Resource$Projects$Instances$Startexternalsync extends StandardParameters {
|
|
14150
14531
|
/**
|
|
14151
14532
|
* Cloud SQL instance ID. This does not include the project ID.
|
|
14152
14533
|
*/
|
|
@@ -14161,8 +14542,7 @@ export namespace sqladmin_v1 {
|
|
|
14161
14542
|
*/
|
|
14162
14543
|
requestBody?: Schema$SqlInstancesStartExternalSyncRequest;
|
|
14163
14544
|
}
|
|
14164
|
-
export interface Params$Resource$Projects$Instances$Verifyexternalsyncsettings
|
|
14165
|
-
extends StandardParameters {
|
|
14545
|
+
export interface Params$Resource$Projects$Instances$Verifyexternalsyncsettings extends StandardParameters {
|
|
14166
14546
|
/**
|
|
14167
14547
|
* Cloud SQL instance ID. This does not include the project ID.
|
|
14168
14548
|
*/
|
|
@@ -14953,8 +15333,7 @@ export namespace sqladmin_v1 {
|
|
|
14953
15333
|
}
|
|
14954
15334
|
}
|
|
14955
15335
|
|
|
14956
|
-
export interface Params$Resource$Sslcerts$Createephemeral
|
|
14957
|
-
extends StandardParameters {
|
|
15336
|
+
export interface Params$Resource$Sslcerts$Createephemeral extends StandardParameters {
|
|
14958
15337
|
/**
|
|
14959
15338
|
* Cloud SQL instance ID. This does not include the project ID.
|
|
14960
15339
|
*/
|
|
@@ -15393,6 +15772,7 @@ export namespace sqladmin_v1 {
|
|
|
15393
15772
|
*
|
|
15394
15773
|
* // Example response
|
|
15395
15774
|
* // {
|
|
15775
|
+
* // "databaseRoles": [],
|
|
15396
15776
|
* // "dualPasswordType": "my_dualPasswordType",
|
|
15397
15777
|
* // "etag": "my_etag",
|
|
15398
15778
|
* // "host": "my_host",
|
|
@@ -15546,6 +15926,7 @@ export namespace sqladmin_v1 {
|
|
|
15546
15926
|
* requestBody: {
|
|
15547
15927
|
* // request body parameters
|
|
15548
15928
|
* // {
|
|
15929
|
+
* // "databaseRoles": [],
|
|
15549
15930
|
* // "dualPasswordType": "my_dualPasswordType",
|
|
15550
15931
|
* // "etag": "my_etag",
|
|
15551
15932
|
* // "host": "my_host",
|
|
@@ -15858,6 +16239,8 @@ export namespace sqladmin_v1 {
|
|
|
15858
16239
|
*
|
|
15859
16240
|
* // Do the magic
|
|
15860
16241
|
* const res = await sql.users.update({
|
|
16242
|
+
* // Optional. List of database roles to grant to the user. body.database_roles will be ignored for update request.
|
|
16243
|
+
* databaseRoles: 'placeholder-value',
|
|
15861
16244
|
* // Optional. Host of the user in the instance.
|
|
15862
16245
|
* host: 'placeholder-value',
|
|
15863
16246
|
* // Database instance ID. This does not include the project ID.
|
|
@@ -15871,6 +16254,7 @@ export namespace sqladmin_v1 {
|
|
|
15871
16254
|
* requestBody: {
|
|
15872
16255
|
* // request body parameters
|
|
15873
16256
|
* // {
|
|
16257
|
+
* // "databaseRoles": [],
|
|
15874
16258
|
* // "dualPasswordType": "my_dualPasswordType",
|
|
15875
16259
|
* // "etag": "my_etag",
|
|
15876
16260
|
* // "host": "my_host",
|
|
@@ -16070,6 +16454,10 @@ export namespace sqladmin_v1 {
|
|
|
16070
16454
|
project?: string;
|
|
16071
16455
|
}
|
|
16072
16456
|
export interface Params$Resource$Users$Update extends StandardParameters {
|
|
16457
|
+
/**
|
|
16458
|
+
* Optional. List of database roles to grant to the user. body.database_roles will be ignored for update request.
|
|
16459
|
+
*/
|
|
16460
|
+
databaseRoles?: string[];
|
|
16073
16461
|
/**
|
|
16074
16462
|
* Optional. Host of the user in the instance.
|
|
16075
16463
|
*/
|