@maxim_mazurok/gapi.client.sqladmin-v1 0.0.20230530 → 0.0.20230607
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 +106 -3
- package/package.json +1 -1
- package/readme.md +5 -0
- package/tests.ts +11 -1
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=v1
|
|
12
|
-
// Revision:
|
|
12
|
+
// Revision: 20230607
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -89,6 +89,14 @@ declare namespace gapi.client {
|
|
|
89
89
|
kind?:
|
|
90
90
|
string;
|
|
91
91
|
}
|
|
92
|
+
interface BackupReencryptionConfig {
|
|
93
|
+
/** Backup re-encryption limit */
|
|
94
|
+
backupLimit?:
|
|
95
|
+
number;
|
|
96
|
+
/** Type of backups users want to re-encrypt. */
|
|
97
|
+
backupType?:
|
|
98
|
+
string;
|
|
99
|
+
}
|
|
92
100
|
interface BackupRetentionSettings {
|
|
93
101
|
/** Depending on the value of retention_unit, this is used to determine if a backup needs to be deleted. If retention_unit is 'COUNT', we will retain this many backups. */
|
|
94
102
|
retainedBackups?:
|
|
@@ -217,6 +225,9 @@ declare namespace gapi.client {
|
|
|
217
225
|
*/
|
|
218
226
|
databaseVersion?:
|
|
219
227
|
string;
|
|
228
|
+
/** The dns name of the instance. */
|
|
229
|
+
dnsName?:
|
|
230
|
+
string;
|
|
220
231
|
/** The assigned IP addresses for the instance. */
|
|
221
232
|
ipAddresses?:
|
|
222
233
|
IpMapping[];
|
|
@@ -514,10 +525,10 @@ declare namespace gapi.client {
|
|
|
514
525
|
/** Type of this bak file will be export, FULL or DIFF, SQL Server only */
|
|
515
526
|
bakType?:
|
|
516
527
|
string;
|
|
517
|
-
/**
|
|
528
|
+
/** Deprecated: copy_only is deprecated. Use differential_base instead */
|
|
518
529
|
copyOnly?:
|
|
519
530
|
boolean;
|
|
520
|
-
/** Whether or not the backup can be
|
|
531
|
+
/** Whether or not the backup can be used as a differential base copy_only backup can not be served as differential base */
|
|
521
532
|
differentialBase?:
|
|
522
533
|
boolean;
|
|
523
534
|
/** Option for specifying how many stripes to use for the export. If blank, and the value of the striped field is true, the number of stripes is automatically chosen. */
|
|
@@ -828,6 +839,11 @@ declare namespace gapi.client {
|
|
|
828
839
|
kind?:
|
|
829
840
|
string;
|
|
830
841
|
}
|
|
842
|
+
interface InstancesReencryptRequest {
|
|
843
|
+
/** Configuration specific to backup re-encryption */
|
|
844
|
+
backupReencryptionConfig?:
|
|
845
|
+
BackupReencryptionConfig;
|
|
846
|
+
}
|
|
831
847
|
interface InstancesRestoreBackupRequest {
|
|
832
848
|
/** Parameters required to perform the restore backup operation. */
|
|
833
849
|
restoreBackupContext?:
|
|
@@ -3297,6 +3313,93 @@ declare namespace gapi.client {
|
|
|
3297
3313
|
uploadType?:
|
|
3298
3314
|
string;
|
|
3299
3315
|
}): Request<Operation>;
|
|
3316
|
+
/** Reencrypt CMEK instance with latest key version. */
|
|
3317
|
+
reencrypt(request: {
|
|
3318
|
+
/** V1 error format. */
|
|
3319
|
+
"$.xgafv"?:
|
|
3320
|
+
string;
|
|
3321
|
+
/** OAuth access token. */
|
|
3322
|
+
access_token?:
|
|
3323
|
+
string;
|
|
3324
|
+
/** Data format for response. */
|
|
3325
|
+
alt?:
|
|
3326
|
+
string;
|
|
3327
|
+
/** JSONP */
|
|
3328
|
+
callback?:
|
|
3329
|
+
string;
|
|
3330
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
3331
|
+
fields?:
|
|
3332
|
+
string;
|
|
3333
|
+
/** Cloud SQL instance ID. This does not include the project ID. */
|
|
3334
|
+
instance:
|
|
3335
|
+
string;
|
|
3336
|
+
/** 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. */
|
|
3337
|
+
key?:
|
|
3338
|
+
string;
|
|
3339
|
+
/** OAuth 2.0 token for the current user. */
|
|
3340
|
+
oauth_token?:
|
|
3341
|
+
string;
|
|
3342
|
+
/** Returns response with indentations and line breaks. */
|
|
3343
|
+
prettyPrint?:
|
|
3344
|
+
boolean;
|
|
3345
|
+
/** ID of the project that contains the instance. */
|
|
3346
|
+
project:
|
|
3347
|
+
string;
|
|
3348
|
+
/** 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. */
|
|
3349
|
+
quotaUser?:
|
|
3350
|
+
string;
|
|
3351
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
3352
|
+
upload_protocol?:
|
|
3353
|
+
string;
|
|
3354
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
3355
|
+
uploadType?:
|
|
3356
|
+
string;
|
|
3357
|
+
/** Request body */
|
|
3358
|
+
resource:
|
|
3359
|
+
InstancesReencryptRequest;
|
|
3360
|
+
}): Request<Operation>;
|
|
3361
|
+
reencrypt(request: {
|
|
3362
|
+
/** V1 error format. */
|
|
3363
|
+
"$.xgafv"?:
|
|
3364
|
+
string;
|
|
3365
|
+
/** OAuth access token. */
|
|
3366
|
+
access_token?:
|
|
3367
|
+
string;
|
|
3368
|
+
/** Data format for response. */
|
|
3369
|
+
alt?:
|
|
3370
|
+
string;
|
|
3371
|
+
/** JSONP */
|
|
3372
|
+
callback?:
|
|
3373
|
+
string;
|
|
3374
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
3375
|
+
fields?:
|
|
3376
|
+
string;
|
|
3377
|
+
/** Cloud SQL instance ID. This does not include the project ID. */
|
|
3378
|
+
instance:
|
|
3379
|
+
string;
|
|
3380
|
+
/** 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. */
|
|
3381
|
+
key?:
|
|
3382
|
+
string;
|
|
3383
|
+
/** OAuth 2.0 token for the current user. */
|
|
3384
|
+
oauth_token?:
|
|
3385
|
+
string;
|
|
3386
|
+
/** Returns response with indentations and line breaks. */
|
|
3387
|
+
prettyPrint?:
|
|
3388
|
+
boolean;
|
|
3389
|
+
/** ID of the project that contains the instance. */
|
|
3390
|
+
project:
|
|
3391
|
+
string;
|
|
3392
|
+
/** 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. */
|
|
3393
|
+
quotaUser?:
|
|
3394
|
+
string;
|
|
3395
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
3396
|
+
upload_protocol?:
|
|
3397
|
+
string;
|
|
3398
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
3399
|
+
uploadType?:
|
|
3400
|
+
string;
|
|
3401
|
+
},
|
|
3402
|
+
body: InstancesReencryptRequest): Request<Operation>;
|
|
3300
3403
|
/** Deletes all client certificates and generates a new server SSL certificate for the instance. */
|
|
3301
3404
|
resetSslConfig(request?: {
|
|
3302
3405
|
/** V1 error format. */
|
package/package.json
CHANGED
package/readme.md
CHANGED
|
@@ -199,6 +199,11 @@ Promotes the read replica instance to be a stand-alone Cloud SQL instance. Using
|
|
|
199
199
|
*/
|
|
200
200
|
await gapi.client.sql.instances.promoteReplica({ instance: "instance", project: "project", });
|
|
201
201
|
|
|
202
|
+
/*
|
|
203
|
+
Reencrypt CMEK instance with latest key version.
|
|
204
|
+
*/
|
|
205
|
+
await gapi.client.sql.instances.reencrypt({ instance: "instance", project: "project", });
|
|
206
|
+
|
|
202
207
|
/*
|
|
203
208
|
Deletes all client certificates and generates a new server SSL certificate for the instance.
|
|
204
209
|
*/
|
package/tests.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
// This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
|
|
4
4
|
// In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
|
|
5
5
|
|
|
6
|
-
// Revision:
|
|
6
|
+
// Revision: 20230607
|
|
7
7
|
|
|
8
8
|
gapi.load('client', async () => {
|
|
9
9
|
/** now we can use gapi.client */
|
|
@@ -780,6 +780,16 @@ gapi.load('client', async () => {
|
|
|
780
780
|
instance: "Test string",
|
|
781
781
|
project: "Test string",
|
|
782
782
|
});
|
|
783
|
+
/** Reencrypt CMEK instance with latest key version. */
|
|
784
|
+
await gapi.client.sql.instances.reencrypt({
|
|
785
|
+
instance: "Test string",
|
|
786
|
+
project: "Test string",
|
|
787
|
+
}, {
|
|
788
|
+
backupReencryptionConfig: {
|
|
789
|
+
backupLimit: 42,
|
|
790
|
+
backupType: "Test string",
|
|
791
|
+
},
|
|
792
|
+
});
|
|
783
793
|
/** Deletes all client certificates and generates a new server SSL certificate for the instance. */
|
|
784
794
|
await gapi.client.sql.instances.resetSslConfig({
|
|
785
795
|
instance: "Test string",
|