@maxim_mazurok/gapi.client.sqladmin-v1beta4 0.0.20230523 → 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 +155 -7
- package/package.json +1 -1
- package/readme.md +10 -0
- package/tests.ts +17 -2
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: 20230607
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -68,7 +68,7 @@ declare namespace gapi.client {
|
|
|
68
68
|
/** Location of the backup */
|
|
69
69
|
location?:
|
|
70
70
|
string;
|
|
71
|
-
/**
|
|
71
|
+
/** Whether point in time recovery is enabled. */
|
|
72
72
|
pointInTimeRecoveryEnabled?:
|
|
73
73
|
boolean;
|
|
74
74
|
/** Reserved for future use. */
|
|
@@ -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?:
|
|
@@ -201,9 +209,6 @@ declare namespace gapi.client {
|
|
|
201
209
|
/** Timestamp, if specified, identifies the time to which the source instance is cloned. */
|
|
202
210
|
pointInTime?:
|
|
203
211
|
string;
|
|
204
|
-
/** (Point-in-time recovery for PostgreSQL only) Clone to an instance in the specified zone. If no zone is specified, clone to the same zone as the source instance. */
|
|
205
|
-
preferredZone?:
|
|
206
|
-
string;
|
|
207
212
|
}
|
|
208
213
|
interface ConnectSettings {
|
|
209
214
|
/**
|
|
@@ -220,6 +225,9 @@ declare namespace gapi.client {
|
|
|
220
225
|
*/
|
|
221
226
|
databaseVersion?:
|
|
222
227
|
string;
|
|
228
|
+
/** The dns name of the instance. */
|
|
229
|
+
dnsName?:
|
|
230
|
+
string;
|
|
223
231
|
/** The assigned IP addresses for the instance. */
|
|
224
232
|
ipAddresses?:
|
|
225
233
|
IpMapping[];
|
|
@@ -507,6 +515,9 @@ declare namespace gapi.client {
|
|
|
507
515
|
kmsKeyVersionName?:
|
|
508
516
|
string;
|
|
509
517
|
}
|
|
518
|
+
// tslint:disable-next-line:no-empty-interface
|
|
519
|
+
interface Empty {
|
|
520
|
+
}
|
|
510
521
|
interface ExportContext {
|
|
511
522
|
/** Options for exporting BAK files (SQL Server-only) */
|
|
512
523
|
bakExportOptions?:
|
|
@@ -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. */
|
|
@@ -831,6 +842,11 @@ declare namespace gapi.client {
|
|
|
831
842
|
kind?:
|
|
832
843
|
string;
|
|
833
844
|
}
|
|
845
|
+
interface InstancesReencryptRequest {
|
|
846
|
+
/** Configuration specific to backup re-encryption */
|
|
847
|
+
backupReencryptionConfig?:
|
|
848
|
+
BackupReencryptionConfig;
|
|
849
|
+
}
|
|
834
850
|
interface InstancesRestoreBackupRequest {
|
|
835
851
|
/** Parameters required to perform the restore backup operation. */
|
|
836
852
|
restoreBackupContext?:
|
|
@@ -1345,6 +1361,9 @@ declare namespace gapi.client {
|
|
|
1345
1361
|
/** External sync mode. */
|
|
1346
1362
|
syncMode?:
|
|
1347
1363
|
string;
|
|
1364
|
+
/** Optional. Parallel level for initial data sync. Currently only applicable for MySQL. */
|
|
1365
|
+
syncParallelLevel?:
|
|
1366
|
+
string;
|
|
1348
1367
|
}
|
|
1349
1368
|
interface SqlInstancesVerifyExternalSyncSettingsRequest {
|
|
1350
1369
|
/** Optional. MySQL-specific settings for start external sync. */
|
|
@@ -3297,6 +3316,93 @@ declare namespace gapi.client {
|
|
|
3297
3316
|
uploadType?:
|
|
3298
3317
|
string;
|
|
3299
3318
|
}): Request<Operation>;
|
|
3319
|
+
/** Reencrypt CMEK instance with latest key version. */
|
|
3320
|
+
reencrypt(request: {
|
|
3321
|
+
/** V1 error format. */
|
|
3322
|
+
"$.xgafv"?:
|
|
3323
|
+
string;
|
|
3324
|
+
/** OAuth access token. */
|
|
3325
|
+
access_token?:
|
|
3326
|
+
string;
|
|
3327
|
+
/** Data format for response. */
|
|
3328
|
+
alt?:
|
|
3329
|
+
string;
|
|
3330
|
+
/** JSONP */
|
|
3331
|
+
callback?:
|
|
3332
|
+
string;
|
|
3333
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
3334
|
+
fields?:
|
|
3335
|
+
string;
|
|
3336
|
+
/** Cloud SQL instance ID. This does not include the project ID. */
|
|
3337
|
+
instance:
|
|
3338
|
+
string;
|
|
3339
|
+
/** 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. */
|
|
3340
|
+
key?:
|
|
3341
|
+
string;
|
|
3342
|
+
/** OAuth 2.0 token for the current user. */
|
|
3343
|
+
oauth_token?:
|
|
3344
|
+
string;
|
|
3345
|
+
/** Returns response with indentations and line breaks. */
|
|
3346
|
+
prettyPrint?:
|
|
3347
|
+
boolean;
|
|
3348
|
+
/** ID of the project that contains the instance. */
|
|
3349
|
+
project:
|
|
3350
|
+
string;
|
|
3351
|
+
/** 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. */
|
|
3352
|
+
quotaUser?:
|
|
3353
|
+
string;
|
|
3354
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
3355
|
+
upload_protocol?:
|
|
3356
|
+
string;
|
|
3357
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
3358
|
+
uploadType?:
|
|
3359
|
+
string;
|
|
3360
|
+
/** Request body */
|
|
3361
|
+
resource:
|
|
3362
|
+
InstancesReencryptRequest;
|
|
3363
|
+
}): Request<Operation>;
|
|
3364
|
+
reencrypt(request: {
|
|
3365
|
+
/** V1 error format. */
|
|
3366
|
+
"$.xgafv"?:
|
|
3367
|
+
string;
|
|
3368
|
+
/** OAuth access token. */
|
|
3369
|
+
access_token?:
|
|
3370
|
+
string;
|
|
3371
|
+
/** Data format for response. */
|
|
3372
|
+
alt?:
|
|
3373
|
+
string;
|
|
3374
|
+
/** JSONP */
|
|
3375
|
+
callback?:
|
|
3376
|
+
string;
|
|
3377
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
3378
|
+
fields?:
|
|
3379
|
+
string;
|
|
3380
|
+
/** Cloud SQL instance ID. This does not include the project ID. */
|
|
3381
|
+
instance:
|
|
3382
|
+
string;
|
|
3383
|
+
/** 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. */
|
|
3384
|
+
key?:
|
|
3385
|
+
string;
|
|
3386
|
+
/** OAuth 2.0 token for the current user. */
|
|
3387
|
+
oauth_token?:
|
|
3388
|
+
string;
|
|
3389
|
+
/** Returns response with indentations and line breaks. */
|
|
3390
|
+
prettyPrint?:
|
|
3391
|
+
boolean;
|
|
3392
|
+
/** ID of the project that contains the instance. */
|
|
3393
|
+
project:
|
|
3394
|
+
string;
|
|
3395
|
+
/** 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. */
|
|
3396
|
+
quotaUser?:
|
|
3397
|
+
string;
|
|
3398
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
3399
|
+
upload_protocol?:
|
|
3400
|
+
string;
|
|
3401
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
3402
|
+
uploadType?:
|
|
3403
|
+
string;
|
|
3404
|
+
},
|
|
3405
|
+
body: InstancesReencryptRequest): Request<Operation>;
|
|
3300
3406
|
/** Deletes all client certificates and generates a new server SSL certificate for the instance. */
|
|
3301
3407
|
resetSslConfig(request?: {
|
|
3302
3408
|
/** V1 error format. */
|
|
@@ -3815,6 +3921,48 @@ declare namespace gapi.client {
|
|
|
3815
3921
|
body: DatabaseInstance): Request<Operation>;
|
|
3816
3922
|
}
|
|
3817
3923
|
interface OperationsResource {
|
|
3924
|
+
/** Cancels an instance operation that has been performed on an instance. */
|
|
3925
|
+
cancel(request?: {
|
|
3926
|
+
/** V1 error format. */
|
|
3927
|
+
"$.xgafv"?:
|
|
3928
|
+
string;
|
|
3929
|
+
/** OAuth access token. */
|
|
3930
|
+
access_token?:
|
|
3931
|
+
string;
|
|
3932
|
+
/** Data format for response. */
|
|
3933
|
+
alt?:
|
|
3934
|
+
string;
|
|
3935
|
+
/** JSONP */
|
|
3936
|
+
callback?:
|
|
3937
|
+
string;
|
|
3938
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
3939
|
+
fields?:
|
|
3940
|
+
string;
|
|
3941
|
+
/** 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. */
|
|
3942
|
+
key?:
|
|
3943
|
+
string;
|
|
3944
|
+
/** OAuth 2.0 token for the current user. */
|
|
3945
|
+
oauth_token?:
|
|
3946
|
+
string;
|
|
3947
|
+
/** Instance operation ID. */
|
|
3948
|
+
operation:
|
|
3949
|
+
string;
|
|
3950
|
+
/** Returns response with indentations and line breaks. */
|
|
3951
|
+
prettyPrint?:
|
|
3952
|
+
boolean;
|
|
3953
|
+
/** Project ID of the project that contains the instance. */
|
|
3954
|
+
project:
|
|
3955
|
+
string;
|
|
3956
|
+
/** 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. */
|
|
3957
|
+
quotaUser?:
|
|
3958
|
+
string;
|
|
3959
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
3960
|
+
upload_protocol?:
|
|
3961
|
+
string;
|
|
3962
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
3963
|
+
uploadType?:
|
|
3964
|
+
string;
|
|
3965
|
+
}): Request<{}>;
|
|
3818
3966
|
/** Retrieves an instance operation that has been performed on an instance. */
|
|
3819
3967
|
get(request?: {
|
|
3820
3968
|
/** 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
|
*/
|
|
@@ -239,6 +244,11 @@ Updates settings of a Cloud SQL instance. Using this operation might cause your
|
|
|
239
244
|
*/
|
|
240
245
|
await gapi.client.sql.instances.update({ instance: "instance", project: "project", });
|
|
241
246
|
|
|
247
|
+
/*
|
|
248
|
+
Cancels an instance operation that has been performed on an instance.
|
|
249
|
+
*/
|
|
250
|
+
await gapi.client.sql.operations.cancel({ operation: "operation", project: "project", });
|
|
251
|
+
|
|
242
252
|
/*
|
|
243
253
|
Retrieves an instance operation that has been performed on an instance.
|
|
244
254
|
*/
|
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 */
|
|
@@ -206,7 +206,6 @@ gapi.load('client', async () => {
|
|
|
206
206
|
kind: "Test string",
|
|
207
207
|
pitrTimestampMs: "Test string",
|
|
208
208
|
pointInTime: "Test string",
|
|
209
|
-
preferredZone: "Test string",
|
|
210
209
|
},
|
|
211
210
|
});
|
|
212
211
|
/** Deletes a Cloud SQL instance. */
|
|
@@ -781,6 +780,16 @@ gapi.load('client', async () => {
|
|
|
781
780
|
instance: "Test string",
|
|
782
781
|
project: "Test string",
|
|
783
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
|
+
});
|
|
784
793
|
/** Deletes all client certificates and generates a new server SSL certificate for the instance. */
|
|
785
794
|
await gapi.client.sql.instances.resetSslConfig({
|
|
786
795
|
instance: "Test string",
|
|
@@ -1050,6 +1059,11 @@ gapi.load('client', async () => {
|
|
|
1050
1059
|
"Test string"
|
|
1051
1060
|
],
|
|
1052
1061
|
});
|
|
1062
|
+
/** Cancels an instance operation that has been performed on an instance. */
|
|
1063
|
+
await gapi.client.sql.operations.cancel({
|
|
1064
|
+
operation: "Test string",
|
|
1065
|
+
project: "Test string",
|
|
1066
|
+
});
|
|
1053
1067
|
/** Retrieves an instance operation that has been performed on an instance. */
|
|
1054
1068
|
await gapi.client.sql.operations.get({
|
|
1055
1069
|
operation: "Test string",
|
|
@@ -1105,6 +1119,7 @@ gapi.load('client', async () => {
|
|
|
1105
1119
|
},
|
|
1106
1120
|
skipVerification: true,
|
|
1107
1121
|
syncMode: "Test string",
|
|
1122
|
+
syncParallelLevel: "Test string",
|
|
1108
1123
|
});
|
|
1109
1124
|
/** Verify External primary instance external sync settings. */
|
|
1110
1125
|
await gapi.client.sql.projects.instances.verifyExternalSyncSettings({
|