@maxim_mazurok/gapi.client.sqladmin-v1beta4 0.1.20251025 → 0.1.20251107
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/index.d.ts +198 -4
- package/package.json +1 -1
- package/readme.md +24 -0
package/index.d.ts
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
// This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
|
|
10
10
|
// In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
|
|
11
11
|
// Generated from: https://sqladmin.googleapis.com/$discovery/rest?version=v1beta4
|
|
12
|
-
// Revision:
|
|
12
|
+
// Revision: 20251107
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -692,7 +692,7 @@ declare namespace gapi.client {
|
|
|
692
692
|
/** Path to the Certificate Private Key (.pvk) in Cloud Storage, in the form `gs://bucketName/fileName`. The instance must have write permissions to the bucket and read access to the file. */
|
|
693
693
|
pvkPath?: string;
|
|
694
694
|
};
|
|
695
|
-
/** Whether or not the backup importing will restore database with NORECOVERY option Applies only to Cloud SQL for SQL Server. */
|
|
695
|
+
/** Whether or not the backup importing will restore database with NORECOVERY option. Applies only to Cloud SQL for SQL Server. */
|
|
696
696
|
noRecovery?: boolean;
|
|
697
697
|
/** Whether or not the backup importing request will just bring database online without downloading Bak content only one of "no_recovery" and "recovery_only" can be true otherwise error will return. Applies only to Cloud SQL for SQL Server. */
|
|
698
698
|
recoveryOnly?: boolean;
|
|
@@ -802,6 +802,14 @@ declare namespace gapi.client {
|
|
|
802
802
|
/** Contains details about the import operation. */
|
|
803
803
|
importContext?: ImportContext;
|
|
804
804
|
}
|
|
805
|
+
interface InstancesListEntraIdCertificatesResponse {
|
|
806
|
+
/** The `sha1_fingerprint` of the active certificate from `certs`. */
|
|
807
|
+
activeVersion?: string;
|
|
808
|
+
/** List of Entra ID certificates for the instance. */
|
|
809
|
+
certs?: SslCert[];
|
|
810
|
+
/** This is always `sql#instancesListEntraIdCertificates`. */
|
|
811
|
+
kind?: string;
|
|
812
|
+
}
|
|
805
813
|
interface InstancesListResponse {
|
|
806
814
|
/** List of database instance resources. */
|
|
807
815
|
items?: DatabaseInstance[];
|
|
@@ -849,6 +857,10 @@ declare namespace gapi.client {
|
|
|
849
857
|
/** Optional. By using this parameter, Cloud SQL overrides any instance settings stored in the backup you are restoring from. You can't change the instance's major database version and you can only increase the disk size. You can use this field to restore new instances only. This field is not applicable for restore to existing instances. */
|
|
850
858
|
restoreInstanceSettings?: DatabaseInstance;
|
|
851
859
|
}
|
|
860
|
+
interface InstancesRotateEntraIdCertificateRequest {
|
|
861
|
+
/** Optional. Contains details about the rotate Entra ID certificate operation. */
|
|
862
|
+
rotateEntraIdCertificateContext?: RotateEntraIdCertificateContext;
|
|
863
|
+
}
|
|
852
864
|
interface InstancesRotateServerCaRequest {
|
|
853
865
|
/** Contains details about the rotate server CA operation. */
|
|
854
866
|
rotateServerCaContext?: RotateServerCaContext;
|
|
@@ -888,6 +900,8 @@ declare namespace gapi.client {
|
|
|
888
900
|
serverCaMode?: string;
|
|
889
901
|
/** 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} */
|
|
890
902
|
serverCaPool?: string;
|
|
903
|
+
/** 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. */
|
|
904
|
+
serverCertificateRotationMode?: string;
|
|
891
905
|
/** 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. */
|
|
892
906
|
sslMode?: string;
|
|
893
907
|
}
|
|
@@ -1097,7 +1111,7 @@ declare namespace gapi.client {
|
|
|
1097
1111
|
interface PointInTimeRestoreContext {
|
|
1098
1112
|
/** Optional. The name of the allocated IP range for the internal IP Cloud SQL instance. For example: "google-managed-services-default". If you set this, then Cloud SQL creates the IP address for the cloned instance in the allocated range. This range must comply with [RFC 1035](https://tools.ietf.org/html/rfc1035) standards. Specifically, the name must be 1-63 characters long and match the regular expression [a-z]([-a-z0-9]*[a-z0-9])?. Reserved for future use. */
|
|
1099
1113
|
allocatedIpRange?: string;
|
|
1100
|
-
/** The
|
|
1114
|
+
/** The Backup and Disaster Recovery (DR) Service Datasource URI. Format: projects/{project}/locations/{region}/backupVaults/{backupvault}/dataSources/{datasource}. */
|
|
1101
1115
|
datasource?: string;
|
|
1102
1116
|
/** Required. The date and time to which you want to restore the instance. */
|
|
1103
1117
|
pointInTime?: string;
|
|
@@ -1224,6 +1238,12 @@ declare namespace gapi.client {
|
|
|
1224
1238
|
/** The full project ID of the source instance. */
|
|
1225
1239
|
project?: string;
|
|
1226
1240
|
}
|
|
1241
|
+
interface RotateEntraIdCertificateContext {
|
|
1242
|
+
/** Optional. This is always `sql#rotateEntraIdCertificateContext`. */
|
|
1243
|
+
kind?: string;
|
|
1244
|
+
/** Optional. The fingerprint of the next version to be rotated to. If left unspecified, will be rotated to the most recently added Entra ID certificate version. */
|
|
1245
|
+
nextVersion?: string;
|
|
1246
|
+
}
|
|
1227
1247
|
interface RotateServerCaContext {
|
|
1228
1248
|
/** This is always `sql#rotateServerCaContext`. */
|
|
1229
1249
|
kind?: string;
|
|
@@ -1267,7 +1287,7 @@ declare namespace gapi.client {
|
|
|
1267
1287
|
connectorEnforcement?: string;
|
|
1268
1288
|
/** Configuration specific to read replica instances. Indicates whether database flags for crash-safe replication are enabled. This property was only applicable to First Generation instances. */
|
|
1269
1289
|
crashSafeReplicationEnabled?: boolean;
|
|
1270
|
-
/** This parameter controls whether to allow using
|
|
1290
|
+
/** This parameter controls whether to allow using ExecuteSql API to connect to the instance. Not allowed by default. */
|
|
1271
1291
|
dataApiAccess?: string;
|
|
1272
1292
|
/** The database flags passed to the instance at startup. */
|
|
1273
1293
|
databaseFlags?: DatabaseFlags[];
|
|
@@ -1293,6 +1313,8 @@ declare namespace gapi.client {
|
|
|
1293
1313
|
enableDataplexIntegration?: boolean;
|
|
1294
1314
|
/** 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. */
|
|
1295
1315
|
enableGoogleMlIntegration?: boolean;
|
|
1316
|
+
/** Optional. The Microsoft Entra ID configuration for the SQL Server instance. */
|
|
1317
|
+
entraidConfig?: SqlServerEntraIdConfig;
|
|
1296
1318
|
/** Optional. The final backup configuration for the instance. */
|
|
1297
1319
|
finalBackupConfig?: FinalBackupConfig;
|
|
1298
1320
|
/** Insights configuration, for now relevant only for Postgres. */
|
|
@@ -1358,6 +1380,7 @@ declare namespace gapi.client {
|
|
|
1358
1380
|
/** The unique identifier for this operation. */
|
|
1359
1381
|
operationId?: string;
|
|
1360
1382
|
}
|
|
1383
|
+
interface SqlInstancesAddEntraIdCertificateRequest {}
|
|
1361
1384
|
interface SqlInstancesExecuteSqlResponse {
|
|
1362
1385
|
/** A list of notices and warnings generated during query execution. For PostgreSQL, this includes all notices and warnings. For MySQL, this includes warnings generated by the last executed statement. To retrieve all warnings for a multi-statement query, `SHOW WARNINGS` must be executed after each statement. */
|
|
1363
1386
|
messages?: Message[];
|
|
@@ -1462,6 +1485,14 @@ declare namespace gapi.client {
|
|
|
1462
1485
|
/** The recovery model of a SQL Server database */
|
|
1463
1486
|
recoveryModel?: string;
|
|
1464
1487
|
}
|
|
1488
|
+
interface SqlServerEntraIdConfig {
|
|
1489
|
+
/** Optional. The application ID for the Entra ID configuration. */
|
|
1490
|
+
applicationId?: string;
|
|
1491
|
+
/** Output only. This is always sql#sqlServerEntraIdConfig */
|
|
1492
|
+
kind?: string;
|
|
1493
|
+
/** Optional. The tenant ID for the Entra ID configuration. */
|
|
1494
|
+
tenantId?: string;
|
|
1495
|
+
}
|
|
1465
1496
|
interface SqlServerUserDetails {
|
|
1466
1497
|
/** If the user has been disabled */
|
|
1467
1498
|
disabled?: boolean;
|
|
@@ -1569,6 +1600,8 @@ declare namespace gapi.client {
|
|
|
1569
1600
|
logType?: string;
|
|
1570
1601
|
}
|
|
1571
1602
|
interface User {
|
|
1603
|
+
/** Optional. Role memberships of the user */
|
|
1604
|
+
databaseRoles?: string[];
|
|
1572
1605
|
/** Dual password status for the user. */
|
|
1573
1606
|
dualPasswordType?: string;
|
|
1574
1607
|
/** This field is deprecated and will be removed from a future version of the API. */
|
|
@@ -2465,6 +2498,68 @@ declare namespace gapi.client {
|
|
|
2465
2498
|
},
|
|
2466
2499
|
body: InstancesAcquireSsrsLeaseRequest,
|
|
2467
2500
|
): Request<SqlInstancesAcquireSsrsLeaseResponse>;
|
|
2501
|
+
/** Adds a new Entra ID certificate for the specified instance. If an Entra ID certificate was previously added but never used in a certificate rotation, this operation replaces that version. */
|
|
2502
|
+
addEntraIdCertificate(request: {
|
|
2503
|
+
/** V1 error format. */
|
|
2504
|
+
'$.xgafv'?: string;
|
|
2505
|
+
/** OAuth access token. */
|
|
2506
|
+
access_token?: string;
|
|
2507
|
+
/** Data format for response. */
|
|
2508
|
+
alt?: string;
|
|
2509
|
+
/** JSONP */
|
|
2510
|
+
callback?: string;
|
|
2511
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2512
|
+
fields?: string;
|
|
2513
|
+
/** Required. Cloud SQL instance ID. This does not include the project ID. */
|
|
2514
|
+
instance: string;
|
|
2515
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
2516
|
+
key?: string;
|
|
2517
|
+
/** OAuth 2.0 token for the current user. */
|
|
2518
|
+
oauth_token?: string;
|
|
2519
|
+
/** Returns response with indentations and line breaks. */
|
|
2520
|
+
prettyPrint?: boolean;
|
|
2521
|
+
/** Required. Project ID of the project that contains the instance. */
|
|
2522
|
+
project: string;
|
|
2523
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
2524
|
+
quotaUser?: string;
|
|
2525
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2526
|
+
upload_protocol?: string;
|
|
2527
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2528
|
+
uploadType?: string;
|
|
2529
|
+
/** Request body */
|
|
2530
|
+
resource: SqlInstancesAddEntraIdCertificateRequest;
|
|
2531
|
+
}): Request<Operation>;
|
|
2532
|
+
addEntraIdCertificate(
|
|
2533
|
+
request: {
|
|
2534
|
+
/** V1 error format. */
|
|
2535
|
+
'$.xgafv'?: string;
|
|
2536
|
+
/** OAuth access token. */
|
|
2537
|
+
access_token?: string;
|
|
2538
|
+
/** Data format for response. */
|
|
2539
|
+
alt?: string;
|
|
2540
|
+
/** JSONP */
|
|
2541
|
+
callback?: string;
|
|
2542
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
2543
|
+
fields?: string;
|
|
2544
|
+
/** Required. Cloud SQL instance ID. This does not include the project ID. */
|
|
2545
|
+
instance: string;
|
|
2546
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
2547
|
+
key?: string;
|
|
2548
|
+
/** OAuth 2.0 token for the current user. */
|
|
2549
|
+
oauth_token?: string;
|
|
2550
|
+
/** Returns response with indentations and line breaks. */
|
|
2551
|
+
prettyPrint?: boolean;
|
|
2552
|
+
/** Required. Project ID of the project that contains the instance. */
|
|
2553
|
+
project: string;
|
|
2554
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
2555
|
+
quotaUser?: string;
|
|
2556
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2557
|
+
upload_protocol?: string;
|
|
2558
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2559
|
+
uploadType?: string;
|
|
2560
|
+
},
|
|
2561
|
+
body: SqlInstancesAddEntraIdCertificateRequest,
|
|
2562
|
+
): Request<Operation>;
|
|
2468
2563
|
/** Add a new trusted Certificate Authority (CA) version for the specified instance. Required to prepare for a certificate rotation. If a CA version was previously added but never used in a certificate rotation, this operation replaces that version. There cannot be more than one CA version waiting to be rotated in. For instances that have enabled Certificate Authority Service (CAS) based server CA, use AddServerCertificate to add a new server certificate. */
|
|
2469
2564
|
addServerCa(request?: {
|
|
2470
2565
|
/** V1 error format. */
|
|
@@ -3114,6 +3209,35 @@ declare namespace gapi.client {
|
|
|
3114
3209
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
3115
3210
|
uploadType?: string;
|
|
3116
3211
|
}): Request<InstancesListResponse>;
|
|
3212
|
+
/** 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. */
|
|
3213
|
+
ListEntraIdCertificates(request?: {
|
|
3214
|
+
/** V1 error format. */
|
|
3215
|
+
'$.xgafv'?: string;
|
|
3216
|
+
/** OAuth access token. */
|
|
3217
|
+
access_token?: string;
|
|
3218
|
+
/** Data format for response. */
|
|
3219
|
+
alt?: string;
|
|
3220
|
+
/** JSONP */
|
|
3221
|
+
callback?: string;
|
|
3222
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
3223
|
+
fields?: string;
|
|
3224
|
+
/** Required. Cloud SQL instance ID. This does not include the project ID. */
|
|
3225
|
+
instance: string;
|
|
3226
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
3227
|
+
key?: string;
|
|
3228
|
+
/** OAuth 2.0 token for the current user. */
|
|
3229
|
+
oauth_token?: string;
|
|
3230
|
+
/** Returns response with indentations and line breaks. */
|
|
3231
|
+
prettyPrint?: boolean;
|
|
3232
|
+
/** Required. Project ID of the project that contains the instance. */
|
|
3233
|
+
project: string;
|
|
3234
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
3235
|
+
quotaUser?: string;
|
|
3236
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
3237
|
+
upload_protocol?: string;
|
|
3238
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
3239
|
+
uploadType?: string;
|
|
3240
|
+
}): Request<InstancesListEntraIdCertificatesResponse>;
|
|
3117
3241
|
/** 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. */
|
|
3118
3242
|
listServerCas(request?: {
|
|
3119
3243
|
/** V1 error format. */
|
|
@@ -3598,6 +3722,68 @@ declare namespace gapi.client {
|
|
|
3598
3722
|
},
|
|
3599
3723
|
body: InstancesRestoreBackupRequest,
|
|
3600
3724
|
): Request<Operation>;
|
|
3725
|
+
/** Rotates the Entra Id certificate version to one previously added with the addEntraIdCertificate method. */
|
|
3726
|
+
RotateEntraIdCertificate(request: {
|
|
3727
|
+
/** V1 error format. */
|
|
3728
|
+
'$.xgafv'?: string;
|
|
3729
|
+
/** OAuth access token. */
|
|
3730
|
+
access_token?: string;
|
|
3731
|
+
/** Data format for response. */
|
|
3732
|
+
alt?: string;
|
|
3733
|
+
/** JSONP */
|
|
3734
|
+
callback?: string;
|
|
3735
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
3736
|
+
fields?: string;
|
|
3737
|
+
/** Required. Cloud SQL instance ID. This does not include the project ID. */
|
|
3738
|
+
instance: string;
|
|
3739
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
3740
|
+
key?: string;
|
|
3741
|
+
/** OAuth 2.0 token for the current user. */
|
|
3742
|
+
oauth_token?: string;
|
|
3743
|
+
/** Returns response with indentations and line breaks. */
|
|
3744
|
+
prettyPrint?: boolean;
|
|
3745
|
+
/** Required. Project ID of the project that contains the instance. */
|
|
3746
|
+
project: string;
|
|
3747
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
3748
|
+
quotaUser?: string;
|
|
3749
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
3750
|
+
upload_protocol?: string;
|
|
3751
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
3752
|
+
uploadType?: string;
|
|
3753
|
+
/** Request body */
|
|
3754
|
+
resource: InstancesRotateEntraIdCertificateRequest;
|
|
3755
|
+
}): Request<Operation>;
|
|
3756
|
+
RotateEntraIdCertificate(
|
|
3757
|
+
request: {
|
|
3758
|
+
/** V1 error format. */
|
|
3759
|
+
'$.xgafv'?: string;
|
|
3760
|
+
/** OAuth access token. */
|
|
3761
|
+
access_token?: string;
|
|
3762
|
+
/** Data format for response. */
|
|
3763
|
+
alt?: string;
|
|
3764
|
+
/** JSONP */
|
|
3765
|
+
callback?: string;
|
|
3766
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
3767
|
+
fields?: string;
|
|
3768
|
+
/** Required. Cloud SQL instance ID. This does not include the project ID. */
|
|
3769
|
+
instance: string;
|
|
3770
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
3771
|
+
key?: string;
|
|
3772
|
+
/** OAuth 2.0 token for the current user. */
|
|
3773
|
+
oauth_token?: string;
|
|
3774
|
+
/** Returns response with indentations and line breaks. */
|
|
3775
|
+
prettyPrint?: boolean;
|
|
3776
|
+
/** Required. Project ID of the project that contains the instance. */
|
|
3777
|
+
project: string;
|
|
3778
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
3779
|
+
quotaUser?: string;
|
|
3780
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
3781
|
+
upload_protocol?: string;
|
|
3782
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
3783
|
+
uploadType?: string;
|
|
3784
|
+
},
|
|
3785
|
+
body: InstancesRotateEntraIdCertificateRequest,
|
|
3786
|
+
): Request<Operation>;
|
|
3601
3787
|
/** 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. */
|
|
3602
3788
|
rotateServerCa(request: {
|
|
3603
3789
|
/** V1 error format. */
|
|
@@ -4818,6 +5004,8 @@ declare namespace gapi.client {
|
|
|
4818
5004
|
alt?: string;
|
|
4819
5005
|
/** JSONP */
|
|
4820
5006
|
callback?: string;
|
|
5007
|
+
/** Optional. List of database roles to grant to the user. body.database_roles will be ignored for update request. */
|
|
5008
|
+
databaseRoles?: string | string[];
|
|
4821
5009
|
/** Selector specifying which fields to include in a partial response. */
|
|
4822
5010
|
fields?: string;
|
|
4823
5011
|
/** Optional. Host of the user in the instance. */
|
|
@@ -4836,6 +5024,8 @@ declare namespace gapi.client {
|
|
|
4836
5024
|
project: string;
|
|
4837
5025
|
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
4838
5026
|
quotaUser?: string;
|
|
5027
|
+
/** Optional. revoke the existing roles granted to the user. */
|
|
5028
|
+
revokeExistingRoles?: boolean;
|
|
4839
5029
|
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
4840
5030
|
upload_protocol?: string;
|
|
4841
5031
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
@@ -4853,6 +5043,8 @@ declare namespace gapi.client {
|
|
|
4853
5043
|
alt?: string;
|
|
4854
5044
|
/** JSONP */
|
|
4855
5045
|
callback?: string;
|
|
5046
|
+
/** Optional. List of database roles to grant to the user. body.database_roles will be ignored for update request. */
|
|
5047
|
+
databaseRoles?: string | string[];
|
|
4856
5048
|
/** Selector specifying which fields to include in a partial response. */
|
|
4857
5049
|
fields?: string;
|
|
4858
5050
|
/** Optional. Host of the user in the instance. */
|
|
@@ -4871,6 +5063,8 @@ declare namespace gapi.client {
|
|
|
4871
5063
|
project: string;
|
|
4872
5064
|
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
4873
5065
|
quotaUser?: string;
|
|
5066
|
+
/** Optional. revoke the existing roles granted to the user. */
|
|
5067
|
+
revokeExistingRoles?: boolean;
|
|
4874
5068
|
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
4875
5069
|
upload_protocol?: string;
|
|
4876
5070
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
package/package.json
CHANGED
package/readme.md
CHANGED
|
@@ -209,6 +209,14 @@ await gapi.client.sql.instances.acquireSsrsLease({
|
|
|
209
209
|
project: 'project',
|
|
210
210
|
});
|
|
211
211
|
|
|
212
|
+
/*
|
|
213
|
+
Adds a new Entra ID certificate for the specified instance. If an Entra ID certificate was previously added but never used in a certificate rotation, this operation replaces that version.
|
|
214
|
+
*/
|
|
215
|
+
await gapi.client.sql.instances.addEntraIdCertificate({
|
|
216
|
+
instance: 'instance',
|
|
217
|
+
project: 'project',
|
|
218
|
+
});
|
|
219
|
+
|
|
212
220
|
/*
|
|
213
221
|
Add a new trusted Certificate Authority (CA) version for the specified instance. Required to prepare for a certificate rotation. If a CA version was previously added but never used in a certificate rotation, this operation replaces that version. There cannot be more than one CA version waiting to be rotated in. For instances that have enabled Certificate Authority Service (CAS) based server CA, use AddServerCertificate to add a new server certificate.
|
|
214
222
|
*/
|
|
@@ -304,6 +312,14 @@ Lists instances under a given project.
|
|
|
304
312
|
*/
|
|
305
313
|
await gapi.client.sql.instances.list({project: 'project'});
|
|
306
314
|
|
|
315
|
+
/*
|
|
316
|
+
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.
|
|
317
|
+
*/
|
|
318
|
+
await gapi.client.sql.instances.ListEntraIdCertificates({
|
|
319
|
+
instance: 'instance',
|
|
320
|
+
project: 'project',
|
|
321
|
+
});
|
|
322
|
+
|
|
307
323
|
/*
|
|
308
324
|
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.
|
|
309
325
|
*/
|
|
@@ -389,6 +405,14 @@ await gapi.client.sql.instances.restoreBackup({
|
|
|
389
405
|
project: 'project',
|
|
390
406
|
});
|
|
391
407
|
|
|
408
|
+
/*
|
|
409
|
+
Rotates the Entra Id certificate version to one previously added with the addEntraIdCertificate method.
|
|
410
|
+
*/
|
|
411
|
+
await gapi.client.sql.instances.RotateEntraIdCertificate({
|
|
412
|
+
instance: 'instance',
|
|
413
|
+
project: 'project',
|
|
414
|
+
});
|
|
415
|
+
|
|
392
416
|
/*
|
|
393
417
|
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.
|
|
394
418
|
*/
|