@maxim_mazurok/gapi.client.sqladmin-v1 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 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: 20230530
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
- /** Whether or not the export will be exeucted with COPY_ONLY, SQL Server only deprecated as the behavior should default to copy_only = true use differential_base instead */
533
+ /** Deprecated: copy_only is deprecated. Use differential_base instead */
518
534
  copyOnly?:
519
535
  boolean;
520
- /** Whether or not the backup can be use as differential base only non copy only backup can be served as differential base */
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. */
@@ -828,6 +844,11 @@ declare namespace gapi.client {
828
844
  kind?:
829
845
  string;
830
846
  }
847
+ interface InstancesReencryptRequest {
848
+ /** Configuration specific to backup re-encryption */
849
+ backupReencryptionConfig?:
850
+ BackupReencryptionConfig;
851
+ }
831
852
  interface InstancesRestoreBackupRequest {
832
853
  /** Parameters required to perform the restore backup operation. */
833
854
  restoreBackupContext?:
@@ -1227,6 +1248,9 @@ declare namespace gapi.client {
1227
1248
  /** Configuration specific to read replica instances. Indicates whether replication is enabled or not. WARNING: Changing this restarts the instance. */
1228
1249
  databaseReplicationEnabled?:
1229
1250
  boolean;
1251
+ /** Configuration for data cache. */
1252
+ dataCacheConfig?:
1253
+ DataCacheConfig;
1230
1254
  /** The size of data disk, in GB. The data disk size minimum is 10GB. */
1231
1255
  dataDiskSizeGb?:
1232
1256
  string;
@@ -1239,6 +1263,9 @@ declare namespace gapi.client {
1239
1263
  /** Deny maintenance periods */
1240
1264
  denyMaintenancePeriods?:
1241
1265
  DenyMaintenancePeriod[];
1266
+ /** Optional. The edition of the instance. */
1267
+ edition?:
1268
+ string;
1242
1269
  /** Insights configuration, for now relevant only for Postgres. */
1243
1270
  insightsConfig?:
1244
1271
  InsightsConfig;
@@ -3297,6 +3324,93 @@ declare namespace gapi.client {
3297
3324
  uploadType?:
3298
3325
  string;
3299
3326
  }): Request<Operation>;
3327
+ /** Reencrypt CMEK instance with latest key version. */
3328
+ reencrypt(request: {
3329
+ /** V1 error format. */
3330
+ "$.xgafv"?:
3331
+ string;
3332
+ /** OAuth access token. */
3333
+ access_token?:
3334
+ string;
3335
+ /** Data format for response. */
3336
+ alt?:
3337
+ string;
3338
+ /** JSONP */
3339
+ callback?:
3340
+ string;
3341
+ /** Selector specifying which fields to include in a partial response. */
3342
+ fields?:
3343
+ string;
3344
+ /** Cloud SQL instance ID. This does not include the project ID. */
3345
+ instance:
3346
+ string;
3347
+ /** 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. */
3348
+ key?:
3349
+ string;
3350
+ /** OAuth 2.0 token for the current user. */
3351
+ oauth_token?:
3352
+ string;
3353
+ /** Returns response with indentations and line breaks. */
3354
+ prettyPrint?:
3355
+ boolean;
3356
+ /** ID of the project that contains the instance. */
3357
+ project:
3358
+ string;
3359
+ /** 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. */
3360
+ quotaUser?:
3361
+ string;
3362
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3363
+ upload_protocol?:
3364
+ string;
3365
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3366
+ uploadType?:
3367
+ string;
3368
+ /** Request body */
3369
+ resource:
3370
+ InstancesReencryptRequest;
3371
+ }): Request<Operation>;
3372
+ reencrypt(request: {
3373
+ /** V1 error format. */
3374
+ "$.xgafv"?:
3375
+ string;
3376
+ /** OAuth access token. */
3377
+ access_token?:
3378
+ string;
3379
+ /** Data format for response. */
3380
+ alt?:
3381
+ string;
3382
+ /** JSONP */
3383
+ callback?:
3384
+ string;
3385
+ /** Selector specifying which fields to include in a partial response. */
3386
+ fields?:
3387
+ string;
3388
+ /** Cloud SQL instance ID. This does not include the project ID. */
3389
+ instance:
3390
+ string;
3391
+ /** 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. */
3392
+ key?:
3393
+ string;
3394
+ /** OAuth 2.0 token for the current user. */
3395
+ oauth_token?:
3396
+ string;
3397
+ /** Returns response with indentations and line breaks. */
3398
+ prettyPrint?:
3399
+ boolean;
3400
+ /** ID of the project that contains the instance. */
3401
+ project:
3402
+ string;
3403
+ /** 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. */
3404
+ quotaUser?:
3405
+ string;
3406
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3407
+ upload_protocol?:
3408
+ string;
3409
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3410
+ uploadType?:
3411
+ string;
3412
+ },
3413
+ body: InstancesReencryptRequest): Request<Operation>;
3300
3414
  /** Deletes all client certificates and generates a new server SSL certificate for the instance. */
3301
3415
  resetSslConfig(request?: {
3302
3416
  /** V1 error format. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.sqladmin-v1",
3
- "version": "0.0.20230530",
3
+ "version": "0.0.20230621",
4
4
  "description": "TypeScript typings for Cloud SQL Admin API v1",
5
5
  "license": "MIT",
6
6
  "author": {
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: 20230530
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,