@maxim_mazurok/gapi.client.sqladmin-v1 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=v1
|
|
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. */
|
|
@@ -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?:
|
|
@@ -1342,6 +1358,9 @@ declare namespace gapi.client {
|
|
|
1342
1358
|
/** External sync mode. */
|
|
1343
1359
|
syncMode?:
|
|
1344
1360
|
string;
|
|
1361
|
+
/** Optional. Parallel level for initial data sync. Currently only applicable for MySQL. */
|
|
1362
|
+
syncParallelLevel?:
|
|
1363
|
+
string;
|
|
1345
1364
|
}
|
|
1346
1365
|
interface SqlInstancesVerifyExternalSyncSettingsRequest {
|
|
1347
1366
|
/** Optional. MySQL-specific settings for start external sync. */
|
|
@@ -3294,6 +3313,93 @@ declare namespace gapi.client {
|
|
|
3294
3313
|
uploadType?:
|
|
3295
3314
|
string;
|
|
3296
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>;
|
|
3297
3403
|
/** Deletes all client certificates and generates a new server SSL certificate for the instance. */
|
|
3298
3404
|
resetSslConfig(request?: {
|
|
3299
3405
|
/** V1 error format. */
|
|
@@ -3812,6 +3918,48 @@ declare namespace gapi.client {
|
|
|
3812
3918
|
body: DatabaseInstance): Request<Operation>;
|
|
3813
3919
|
}
|
|
3814
3920
|
interface OperationsResource {
|
|
3921
|
+
/** Cancels an instance operation that has been performed on an instance. */
|
|
3922
|
+
cancel(request?: {
|
|
3923
|
+
/** V1 error format. */
|
|
3924
|
+
"$.xgafv"?:
|
|
3925
|
+
string;
|
|
3926
|
+
/** OAuth access token. */
|
|
3927
|
+
access_token?:
|
|
3928
|
+
string;
|
|
3929
|
+
/** Data format for response. */
|
|
3930
|
+
alt?:
|
|
3931
|
+
string;
|
|
3932
|
+
/** JSONP */
|
|
3933
|
+
callback?:
|
|
3934
|
+
string;
|
|
3935
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
3936
|
+
fields?:
|
|
3937
|
+
string;
|
|
3938
|
+
/** 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. */
|
|
3939
|
+
key?:
|
|
3940
|
+
string;
|
|
3941
|
+
/** OAuth 2.0 token for the current user. */
|
|
3942
|
+
oauth_token?:
|
|
3943
|
+
string;
|
|
3944
|
+
/** Instance operation ID. */
|
|
3945
|
+
operation:
|
|
3946
|
+
string;
|
|
3947
|
+
/** Returns response with indentations and line breaks. */
|
|
3948
|
+
prettyPrint?:
|
|
3949
|
+
boolean;
|
|
3950
|
+
/** Project ID of the project that contains the instance. */
|
|
3951
|
+
project:
|
|
3952
|
+
string;
|
|
3953
|
+
/** 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. */
|
|
3954
|
+
quotaUser?:
|
|
3955
|
+
string;
|
|
3956
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
3957
|
+
upload_protocol?:
|
|
3958
|
+
string;
|
|
3959
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
3960
|
+
uploadType?:
|
|
3961
|
+
string;
|
|
3962
|
+
}): Request<{}>;
|
|
3815
3963
|
/** Retrieves an instance operation that has been performed on an instance. */
|
|
3816
3964
|
get(request?: {
|
|
3817
3965
|
/** 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({
|