@maxim_mazurok/gapi.client.sqladmin-v1beta4 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 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: 20230530
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
- /** 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 */
528
+ /** Deprecated: copy_only is deprecated. Use differential_base instead */
518
529
  copyOnly?:
519
530
  boolean;
520
- /** Whether or not the backup can be use as differential base only non copy only backup can be served as differential base */
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?:
@@ -3300,6 +3316,93 @@ declare namespace gapi.client {
3300
3316
  uploadType?:
3301
3317
  string;
3302
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>;
3303
3406
  /** Deletes all client certificates and generates a new server SSL certificate for the instance. */
3304
3407
  resetSslConfig(request?: {
3305
3408
  /** V1 error format. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.sqladmin-v1beta4",
3
- "version": "0.0.20230530",
3
+ "version": "0.0.20230607",
4
4
  "description": "TypeScript typings for Cloud SQL Admin API v1beta4",
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: 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",