@maxim_mazurok/gapi.client.sqladmin-v1beta4 0.0.20230530 → 0.0.20230621
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 +117 -3
- package/package.json +1 -1
- package/readme.md +5 -0
- package/tests.ts +23 -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=v1beta4
|
|
12
|
-
// Revision:
|
|
12
|
+
// Revision: 20230621
|
|
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[];
|
|
@@ -415,6 +426,11 @@ declare namespace gapi.client {
|
|
|
415
426
|
kind?:
|
|
416
427
|
string;
|
|
417
428
|
}
|
|
429
|
+
interface DataCacheConfig {
|
|
430
|
+
/** Whether data cache is enabled for the instance. */
|
|
431
|
+
dataCacheEnabled?:
|
|
432
|
+
boolean;
|
|
433
|
+
}
|
|
418
434
|
interface DemoteMasterConfiguration {
|
|
419
435
|
/** This is always `sql#demoteMasterConfiguration`. */
|
|
420
436
|
kind?:
|
|
@@ -514,10 +530,10 @@ declare namespace gapi.client {
|
|
|
514
530
|
/** Type of this bak file will be export, FULL or DIFF, SQL Server only */
|
|
515
531
|
bakType?:
|
|
516
532
|
string;
|
|
517
|
-
/**
|
|
533
|
+
/** Deprecated: copy_only is deprecated. Use differential_base instead */
|
|
518
534
|
copyOnly?:
|
|
519
535
|
boolean;
|
|
520
|
-
/** Whether or not the backup can be
|
|
536
|
+
/** Whether or not the backup can be used as a differential base copy_only backup can not be served as differential base */
|
|
521
537
|
differentialBase?:
|
|
522
538
|
boolean;
|
|
523
539
|
/** 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. */
|
|
@@ -831,6 +847,11 @@ declare namespace gapi.client {
|
|
|
831
847
|
kind?:
|
|
832
848
|
string;
|
|
833
849
|
}
|
|
850
|
+
interface InstancesReencryptRequest {
|
|
851
|
+
/** Configuration specific to backup re-encryption */
|
|
852
|
+
backupReencryptionConfig?:
|
|
853
|
+
BackupReencryptionConfig;
|
|
854
|
+
}
|
|
834
855
|
interface InstancesRestoreBackupRequest {
|
|
835
856
|
/** Parameters required to perform the restore backup operation. */
|
|
836
857
|
restoreBackupContext?:
|
|
@@ -1230,6 +1251,9 @@ declare namespace gapi.client {
|
|
|
1230
1251
|
/** Configuration specific to read replica instances. Indicates whether replication is enabled or not. WARNING: Changing this restarts the instance. */
|
|
1231
1252
|
databaseReplicationEnabled?:
|
|
1232
1253
|
boolean;
|
|
1254
|
+
/** Configuration for data cache. */
|
|
1255
|
+
dataCacheConfig?:
|
|
1256
|
+
DataCacheConfig;
|
|
1233
1257
|
/** The size of data disk, in GB. The data disk size minimum is 10GB. */
|
|
1234
1258
|
dataDiskSizeGb?:
|
|
1235
1259
|
string;
|
|
@@ -1242,6 +1266,9 @@ declare namespace gapi.client {
|
|
|
1242
1266
|
/** Deny maintenance periods */
|
|
1243
1267
|
denyMaintenancePeriods?:
|
|
1244
1268
|
DenyMaintenancePeriod[];
|
|
1269
|
+
/** Optional. The edition of the instance. */
|
|
1270
|
+
edition?:
|
|
1271
|
+
string;
|
|
1245
1272
|
/** Insights configuration, for now relevant only for Postgres. */
|
|
1246
1273
|
insightsConfig?:
|
|
1247
1274
|
InsightsConfig;
|
|
@@ -3300,6 +3327,93 @@ declare namespace gapi.client {
|
|
|
3300
3327
|
uploadType?:
|
|
3301
3328
|
string;
|
|
3302
3329
|
}): Request<Operation>;
|
|
3330
|
+
/** Reencrypt CMEK instance with latest key version. */
|
|
3331
|
+
reencrypt(request: {
|
|
3332
|
+
/** V1 error format. */
|
|
3333
|
+
"$.xgafv"?:
|
|
3334
|
+
string;
|
|
3335
|
+
/** OAuth access token. */
|
|
3336
|
+
access_token?:
|
|
3337
|
+
string;
|
|
3338
|
+
/** Data format for response. */
|
|
3339
|
+
alt?:
|
|
3340
|
+
string;
|
|
3341
|
+
/** JSONP */
|
|
3342
|
+
callback?:
|
|
3343
|
+
string;
|
|
3344
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
3345
|
+
fields?:
|
|
3346
|
+
string;
|
|
3347
|
+
/** Cloud SQL instance ID. This does not include the project ID. */
|
|
3348
|
+
instance:
|
|
3349
|
+
string;
|
|
3350
|
+
/** 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. */
|
|
3351
|
+
key?:
|
|
3352
|
+
string;
|
|
3353
|
+
/** OAuth 2.0 token for the current user. */
|
|
3354
|
+
oauth_token?:
|
|
3355
|
+
string;
|
|
3356
|
+
/** Returns response with indentations and line breaks. */
|
|
3357
|
+
prettyPrint?:
|
|
3358
|
+
boolean;
|
|
3359
|
+
/** ID of the project that contains the instance. */
|
|
3360
|
+
project:
|
|
3361
|
+
string;
|
|
3362
|
+
/** 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. */
|
|
3363
|
+
quotaUser?:
|
|
3364
|
+
string;
|
|
3365
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
3366
|
+
upload_protocol?:
|
|
3367
|
+
string;
|
|
3368
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
3369
|
+
uploadType?:
|
|
3370
|
+
string;
|
|
3371
|
+
/** Request body */
|
|
3372
|
+
resource:
|
|
3373
|
+
InstancesReencryptRequest;
|
|
3374
|
+
}): Request<Operation>;
|
|
3375
|
+
reencrypt(request: {
|
|
3376
|
+
/** V1 error format. */
|
|
3377
|
+
"$.xgafv"?:
|
|
3378
|
+
string;
|
|
3379
|
+
/** OAuth access token. */
|
|
3380
|
+
access_token?:
|
|
3381
|
+
string;
|
|
3382
|
+
/** Data format for response. */
|
|
3383
|
+
alt?:
|
|
3384
|
+
string;
|
|
3385
|
+
/** JSONP */
|
|
3386
|
+
callback?:
|
|
3387
|
+
string;
|
|
3388
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
3389
|
+
fields?:
|
|
3390
|
+
string;
|
|
3391
|
+
/** Cloud SQL instance ID. This does not include the project ID. */
|
|
3392
|
+
instance:
|
|
3393
|
+
string;
|
|
3394
|
+
/** 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. */
|
|
3395
|
+
key?:
|
|
3396
|
+
string;
|
|
3397
|
+
/** OAuth 2.0 token for the current user. */
|
|
3398
|
+
oauth_token?:
|
|
3399
|
+
string;
|
|
3400
|
+
/** Returns response with indentations and line breaks. */
|
|
3401
|
+
prettyPrint?:
|
|
3402
|
+
boolean;
|
|
3403
|
+
/** ID of the project that contains the instance. */
|
|
3404
|
+
project:
|
|
3405
|
+
string;
|
|
3406
|
+
/** 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. */
|
|
3407
|
+
quotaUser?:
|
|
3408
|
+
string;
|
|
3409
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
3410
|
+
upload_protocol?:
|
|
3411
|
+
string;
|
|
3412
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
3413
|
+
uploadType?:
|
|
3414
|
+
string;
|
|
3415
|
+
},
|
|
3416
|
+
body: InstancesReencryptRequest): Request<Operation>;
|
|
3303
3417
|
/** Deletes all client certificates and generates a new server SSL certificate for the instance. */
|
|
3304
3418
|
resetSslConfig(request?: {
|
|
3305
3419
|
/** 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: 20230621
|
|
7
7
|
|
|
8
8
|
gapi.load('client', async () => {
|
|
9
9
|
/** now we can use gapi.client */
|
|
@@ -468,6 +468,9 @@ gapi.load('client', async () => {
|
|
|
468
468
|
}
|
|
469
469
|
],
|
|
470
470
|
databaseReplicationEnabled: true,
|
|
471
|
+
dataCacheConfig: {
|
|
472
|
+
dataCacheEnabled: true,
|
|
473
|
+
},
|
|
471
474
|
dataDiskSizeGb: "Test string",
|
|
472
475
|
dataDiskType: "Test string",
|
|
473
476
|
deletionProtectionEnabled: true,
|
|
@@ -478,6 +481,7 @@ gapi.load('client', async () => {
|
|
|
478
481
|
time: "Test string",
|
|
479
482
|
}
|
|
480
483
|
],
|
|
484
|
+
edition: "Test string",
|
|
481
485
|
insightsConfig: {
|
|
482
486
|
queryInsightsEnabled: true,
|
|
483
487
|
queryPlansPerMinute: 42,
|
|
@@ -700,6 +704,9 @@ gapi.load('client', async () => {
|
|
|
700
704
|
}
|
|
701
705
|
],
|
|
702
706
|
databaseReplicationEnabled: true,
|
|
707
|
+
dataCacheConfig: {
|
|
708
|
+
dataCacheEnabled: true,
|
|
709
|
+
},
|
|
703
710
|
dataDiskSizeGb: "Test string",
|
|
704
711
|
dataDiskType: "Test string",
|
|
705
712
|
deletionProtectionEnabled: true,
|
|
@@ -710,6 +717,7 @@ gapi.load('client', async () => {
|
|
|
710
717
|
time: "Test string",
|
|
711
718
|
}
|
|
712
719
|
],
|
|
720
|
+
edition: "Test string",
|
|
713
721
|
insightsConfig: {
|
|
714
722
|
queryInsightsEnabled: true,
|
|
715
723
|
queryPlansPerMinute: 42,
|
|
@@ -780,6 +788,16 @@ gapi.load('client', async () => {
|
|
|
780
788
|
instance: "Test string",
|
|
781
789
|
project: "Test string",
|
|
782
790
|
});
|
|
791
|
+
/** Reencrypt CMEK instance with latest key version. */
|
|
792
|
+
await gapi.client.sql.instances.reencrypt({
|
|
793
|
+
instance: "Test string",
|
|
794
|
+
project: "Test string",
|
|
795
|
+
}, {
|
|
796
|
+
backupReencryptionConfig: {
|
|
797
|
+
backupLimit: 42,
|
|
798
|
+
backupType: "Test string",
|
|
799
|
+
},
|
|
800
|
+
});
|
|
783
801
|
/** Deletes all client certificates and generates a new server SSL certificate for the instance. */
|
|
784
802
|
await gapi.client.sql.instances.resetSslConfig({
|
|
785
803
|
instance: "Test string",
|
|
@@ -974,6 +992,9 @@ gapi.load('client', async () => {
|
|
|
974
992
|
}
|
|
975
993
|
],
|
|
976
994
|
databaseReplicationEnabled: true,
|
|
995
|
+
dataCacheConfig: {
|
|
996
|
+
dataCacheEnabled: true,
|
|
997
|
+
},
|
|
977
998
|
dataDiskSizeGb: "Test string",
|
|
978
999
|
dataDiskType: "Test string",
|
|
979
1000
|
deletionProtectionEnabled: true,
|
|
@@ -984,6 +1005,7 @@ gapi.load('client', async () => {
|
|
|
984
1005
|
time: "Test string",
|
|
985
1006
|
}
|
|
986
1007
|
],
|
|
1008
|
+
edition: "Test string",
|
|
987
1009
|
insightsConfig: {
|
|
988
1010
|
queryInsightsEnabled: true,
|
|
989
1011
|
queryPlansPerMinute: 42,
|