@googleapis/sqladmin 8.0.0 → 9.1.0

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/CHANGELOG.md CHANGED
@@ -1,5 +1,23 @@
1
1
  # Changelog
2
2
 
3
+ ## [9.1.0](https://github.com/googleapis/google-api-nodejs-client/compare/sqladmin-v9.0.0...sqladmin-v9.1.0) (2023-07-10)
4
+
5
+
6
+ ### Features
7
+
8
+ * **sqladmin:** update the API ([2c3384a](https://github.com/googleapis/google-api-nodejs-client/commit/2c3384a8044707608fc2de7f4ea76ff9853d5b34))
9
+
10
+ ## [9.0.0](https://github.com/googleapis/google-api-nodejs-client/compare/sqladmin-v8.0.0...sqladmin-v9.0.0) (2023-06-22)
11
+
12
+
13
+ ### ⚠ BREAKING CHANGES
14
+
15
+ * This release has breaking changes.
16
+
17
+ ### Features
18
+
19
+ * run the generator ([#3260](https://github.com/googleapis/google-api-nodejs-client/issues/3260)) ([8efb786](https://github.com/googleapis/google-api-nodejs-client/commit/8efb7861b7da4bc1472a4b654e46f90b29fbff20))
20
+
3
21
  ## [8.0.0](https://github.com/googleapis/google-api-nodejs-client/compare/sqladmin-v7.2.0...sqladmin-v8.0.0) (2023-04-08)
4
22
 
5
23
 
package/build/v1.d.ts CHANGED
@@ -152,7 +152,7 @@ export declare namespace sqladmin_v1 {
152
152
  */
153
153
  location?: string | null;
154
154
  /**
155
- * (Postgres only) Whether point in time recovery is enabled.
155
+ * Whether point in time recovery is enabled.
156
156
  */
157
157
  pointInTimeRecoveryEnabled?: boolean | null;
158
158
  /**
@@ -181,6 +181,19 @@ export declare namespace sqladmin_v1 {
181
181
  */
182
182
  kind?: string | null;
183
183
  }
184
+ /**
185
+ * Backup Reencryption Config
186
+ */
187
+ export interface Schema$BackupReencryptionConfig {
188
+ /**
189
+ * Backup re-encryption limit
190
+ */
191
+ backupLimit?: number | null;
192
+ /**
193
+ * Type of backups users want to re-encrypt.
194
+ */
195
+ backupType?: string | null;
196
+ }
184
197
  /**
185
198
  * We currently only support backup retention by specifying the number of backups we will retain.
186
199
  */
@@ -333,6 +346,10 @@ export declare namespace sqladmin_v1 {
333
346
  * Timestamp, if specified, identifies the time to which the source instance is cloned.
334
347
  */
335
348
  pointInTime?: string | null;
349
+ /**
350
+ * Optional. (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.
351
+ */
352
+ preferredZone?: string | null;
336
353
  }
337
354
  /**
338
355
  * Connect settings retrieval response.
@@ -346,6 +363,10 @@ export declare namespace sqladmin_v1 {
346
363
  * The database engine type and version. The `databaseVersion` field cannot be changed after instance creation. MySQL instances: `MYSQL_8_0`, `MYSQL_5_7` (default), or `MYSQL_5_6`. PostgreSQL instances: `POSTGRES_9_6`, `POSTGRES_10`, `POSTGRES_11`, `POSTGRES_12` (default), `POSTGRES_13`, or `POSTGRES_14`. SQL Server instances: `SQLSERVER_2017_STANDARD` (default), `SQLSERVER_2017_ENTERPRISE`, `SQLSERVER_2017_EXPRESS`, `SQLSERVER_2017_WEB`, `SQLSERVER_2019_STANDARD`, `SQLSERVER_2019_ENTERPRISE`, `SQLSERVER_2019_EXPRESS`, or `SQLSERVER_2019_WEB`.
347
364
  */
348
365
  databaseVersion?: string | null;
366
+ /**
367
+ * The dns name of the instance.
368
+ */
369
+ dnsName?: string | null;
349
370
  /**
350
371
  * The assigned IP addresses for the instance.
351
372
  */
@@ -579,6 +600,15 @@ export declare namespace sqladmin_v1 {
579
600
  */
580
601
  kind?: string | null;
581
602
  }
603
+ /**
604
+ * Data cache configurations.
605
+ */
606
+ export interface Schema$DataCacheConfig {
607
+ /**
608
+ * Whether data cache is enabled for the instance.
609
+ */
610
+ dataCacheEnabled?: boolean | null;
611
+ }
582
612
  /**
583
613
  * Read-replica configuration for connecting to the on-premises primary instance.
584
614
  */
@@ -689,6 +719,11 @@ export declare namespace sqladmin_v1 {
689
719
  */
690
720
  kmsKeyVersionName?: string | null;
691
721
  }
722
+ /**
723
+ * A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); \}
724
+ */
725
+ export interface Schema$Empty {
726
+ }
692
727
  /**
693
728
  * Database instance export context.
694
729
  */
@@ -697,6 +732,9 @@ export declare namespace sqladmin_v1 {
697
732
  * Options for exporting BAK files (SQL Server-only)
698
733
  */
699
734
  bakExportOptions?: {
735
+ bakType?: string;
736
+ copyOnly?: boolean;
737
+ differentialBase?: boolean;
700
738
  stripeCount?: number;
701
739
  striped?: boolean;
702
740
  } | null;
@@ -850,11 +888,14 @@ export declare namespace sqladmin_v1 {
850
888
  * Import parameters specific to SQL Server .BAK files
851
889
  */
852
890
  bakImportOptions?: {
891
+ bakType?: string;
853
892
  encryptionOptions?: {
854
893
  certPath?: string;
855
894
  pvkPassword?: string;
856
895
  pvkPath?: string;
857
896
  };
897
+ noRecovery?: boolean;
898
+ recoveryOnly?: boolean;
858
899
  striped?: boolean;
859
900
  } | null;
860
901
  /**
@@ -1011,6 +1052,15 @@ export declare namespace sqladmin_v1 {
1011
1052
  */
1012
1053
  kind?: string | null;
1013
1054
  }
1055
+ /**
1056
+ * Database Instance reencrypt request.
1057
+ */
1058
+ export interface Schema$InstancesReencryptRequest {
1059
+ /**
1060
+ * Configuration specific to backup re-encryption
1061
+ */
1062
+ backupReencryptionConfig?: Schema$BackupReencryptionConfig;
1063
+ }
1014
1064
  /**
1015
1065
  * Database instance restore backup request.
1016
1066
  */
@@ -1531,6 +1581,10 @@ export declare namespace sqladmin_v1 {
1531
1581
  * Configuration specific to read replica instances. Indicates whether replication is enabled or not. WARNING: Changing this restarts the instance.
1532
1582
  */
1533
1583
  databaseReplicationEnabled?: boolean | null;
1584
+ /**
1585
+ * Configuration for data cache.
1586
+ */
1587
+ dataCacheConfig?: Schema$DataCacheConfig;
1534
1588
  /**
1535
1589
  * The size of data disk, in GB. The data disk size minimum is 10GB.
1536
1590
  */
@@ -1547,6 +1601,10 @@ export declare namespace sqladmin_v1 {
1547
1601
  * Deny maintenance periods
1548
1602
  */
1549
1603
  denyMaintenancePeriods?: Schema$DenyMaintenancePeriod[];
1604
+ /**
1605
+ * Optional. The edition of the instance.
1606
+ */
1607
+ edition?: string | null;
1550
1608
  /**
1551
1609
  * Insights configuration, for now relevant only for Postgres.
1552
1610
  */
@@ -1648,11 +1706,28 @@ export declare namespace sqladmin_v1 {
1648
1706
  * This is always `sql#getDiskShrinkConfig`.
1649
1707
  */
1650
1708
  kind?: string | null;
1709
+ /**
1710
+ * Additional message to customers.
1711
+ */
1712
+ message?: string | null;
1651
1713
  /**
1652
1714
  * The minimum size to which a disk can be shrunk in GigaBytes.
1653
1715
  */
1654
1716
  minimalTargetSizeGb?: string | null;
1655
1717
  }
1718
+ /**
1719
+ * Instance get latest recovery time response.
1720
+ */
1721
+ export interface Schema$SqlInstancesGetLatestRecoveryTimeResponse {
1722
+ /**
1723
+ * This is always `sql#getLatestRecoveryTime`.
1724
+ */
1725
+ kind?: string | null;
1726
+ /**
1727
+ * Timestamp, identifies the latest recovery time of the source instance.
1728
+ */
1729
+ latestRecoveryTime?: string | null;
1730
+ }
1656
1731
  /**
1657
1732
  * Reschedule options for maintenance windows.
1658
1733
  */
@@ -1683,6 +1758,10 @@ export declare namespace sqladmin_v1 {
1683
1758
  * External sync mode.
1684
1759
  */
1685
1760
  syncMode?: string | null;
1761
+ /**
1762
+ * Optional. Parallel level for initial data sync. Currently only applicable for MySQL.
1763
+ */
1764
+ syncParallelLevel?: string | null;
1686
1765
  }
1687
1766
  /**
1688
1767
  * Instance verify external sync settings request.
@@ -2568,6 +2647,7 @@ export declare namespace sqladmin_v1 {
2568
2647
  * // {
2569
2648
  * // "backendType": "my_backendType",
2570
2649
  * // "databaseVersion": "my_databaseVersion",
2650
+ * // "dnsName": "my_dnsName",
2571
2651
  * // "ipAddresses": [],
2572
2652
  * // "kind": "my_kind",
2573
2653
  * // "region": "my_region",
@@ -2775,7 +2855,7 @@ export declare namespace sqladmin_v1 {
2775
2855
  get(params: Params$Resource$Databases$Get, callback: BodyResponseCallback<Schema$Database>): void;
2776
2856
  get(callback: BodyResponseCallback<Schema$Database>): void;
2777
2857
  /**
2778
- * Inserts a resource containing information about a database inside a Cloud SQL instance.
2858
+ * Inserts a resource containing information about a database inside a Cloud SQL instance. **Note:** You can't modify the default character set and collation.
2779
2859
  * @example
2780
2860
  * ```js
2781
2861
  * // Before running the sample:
@@ -4383,6 +4463,90 @@ export declare namespace sqladmin_v1 {
4383
4463
  promoteReplica(params: Params$Resource$Instances$Promotereplica, options: MethodOptions | BodyResponseCallback<Schema$Operation>, callback: BodyResponseCallback<Schema$Operation>): void;
4384
4464
  promoteReplica(params: Params$Resource$Instances$Promotereplica, callback: BodyResponseCallback<Schema$Operation>): void;
4385
4465
  promoteReplica(callback: BodyResponseCallback<Schema$Operation>): void;
4466
+ /**
4467
+ * Reencrypt CMEK instance with latest key version.
4468
+ * @example
4469
+ * ```js
4470
+ * // Before running the sample:
4471
+ * // - Enable the API at:
4472
+ * // https://console.developers.google.com/apis/api/sqladmin.googleapis.com
4473
+ * // - Login into gcloud by running:
4474
+ * // `$ gcloud auth application-default login`
4475
+ * // - Install the npm module by running:
4476
+ * // `$ npm install googleapis`
4477
+ *
4478
+ * const {google} = require('googleapis');
4479
+ * const sqladmin = google.sqladmin('v1');
4480
+ *
4481
+ * async function main() {
4482
+ * const auth = new google.auth.GoogleAuth({
4483
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
4484
+ * scopes: [
4485
+ * 'https://www.googleapis.com/auth/cloud-platform',
4486
+ * 'https://www.googleapis.com/auth/sqlservice.admin',
4487
+ * ],
4488
+ * });
4489
+ *
4490
+ * // Acquire an auth client, and bind it to all future calls
4491
+ * const authClient = await auth.getClient();
4492
+ * google.options({auth: authClient});
4493
+ *
4494
+ * // Do the magic
4495
+ * const res = await sql.instances.reencrypt({
4496
+ * // Cloud SQL instance ID. This does not include the project ID.
4497
+ * instance: 'placeholder-value',
4498
+ * // ID of the project that contains the instance.
4499
+ * project: 'placeholder-value',
4500
+ *
4501
+ * // Request body metadata
4502
+ * requestBody: {
4503
+ * // request body parameters
4504
+ * // {
4505
+ * // "backupReencryptionConfig": {}
4506
+ * // }
4507
+ * },
4508
+ * });
4509
+ * console.log(res.data);
4510
+ *
4511
+ * // Example response
4512
+ * // {
4513
+ * // "backupContext": {},
4514
+ * // "endTime": "my_endTime",
4515
+ * // "error": {},
4516
+ * // "exportContext": {},
4517
+ * // "importContext": {},
4518
+ * // "insertTime": "my_insertTime",
4519
+ * // "kind": "my_kind",
4520
+ * // "name": "my_name",
4521
+ * // "operationType": "my_operationType",
4522
+ * // "selfLink": "my_selfLink",
4523
+ * // "startTime": "my_startTime",
4524
+ * // "status": "my_status",
4525
+ * // "targetId": "my_targetId",
4526
+ * // "targetLink": "my_targetLink",
4527
+ * // "targetProject": "my_targetProject",
4528
+ * // "user": "my_user"
4529
+ * // }
4530
+ * }
4531
+ *
4532
+ * main().catch(e => {
4533
+ * console.error(e);
4534
+ * throw e;
4535
+ * });
4536
+ *
4537
+ * ```
4538
+ *
4539
+ * @param params - Parameters for request
4540
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
4541
+ * @param callback - Optional callback that handles the response.
4542
+ * @returns A promise if used with async/await, or void if used with a callback.
4543
+ */
4544
+ reencrypt(params: Params$Resource$Instances$Reencrypt, options: StreamMethodOptions): GaxiosPromise<Readable>;
4545
+ reencrypt(params?: Params$Resource$Instances$Reencrypt, options?: MethodOptions): GaxiosPromise<Schema$Operation>;
4546
+ reencrypt(params: Params$Resource$Instances$Reencrypt, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
4547
+ reencrypt(params: Params$Resource$Instances$Reencrypt, options: MethodOptions | BodyResponseCallback<Schema$Operation>, callback: BodyResponseCallback<Schema$Operation>): void;
4548
+ reencrypt(params: Params$Resource$Instances$Reencrypt, callback: BodyResponseCallback<Schema$Operation>): void;
4549
+ reencrypt(callback: BodyResponseCallback<Schema$Operation>): void;
4386
4550
  /**
4387
4551
  * Deletes all client certificates and generates a new server SSL certificate for the instance.
4388
4552
  * @example
@@ -5221,6 +5385,20 @@ export declare namespace sqladmin_v1 {
5221
5385
  */
5222
5386
  project?: string;
5223
5387
  }
5388
+ export interface Params$Resource$Instances$Reencrypt extends StandardParameters {
5389
+ /**
5390
+ * Cloud SQL instance ID. This does not include the project ID.
5391
+ */
5392
+ instance?: string;
5393
+ /**
5394
+ * ID of the project that contains the instance.
5395
+ */
5396
+ project?: string;
5397
+ /**
5398
+ * Request body metadata
5399
+ */
5400
+ requestBody?: Schema$InstancesReencryptRequest;
5401
+ }
5224
5402
  export interface Params$Resource$Instances$Resetsslconfig extends StandardParameters {
5225
5403
  /**
5226
5404
  * Cloud SQL instance ID. This does not include the project ID.
@@ -5320,6 +5498,65 @@ export declare namespace sqladmin_v1 {
5320
5498
  export class Resource$Operations {
5321
5499
  context: APIRequestContext;
5322
5500
  constructor(context: APIRequestContext);
5501
+ /**
5502
+ * Cancels an instance operation that has been performed on an instance.
5503
+ * @example
5504
+ * ```js
5505
+ * // Before running the sample:
5506
+ * // - Enable the API at:
5507
+ * // https://console.developers.google.com/apis/api/sqladmin.googleapis.com
5508
+ * // - Login into gcloud by running:
5509
+ * // `$ gcloud auth application-default login`
5510
+ * // - Install the npm module by running:
5511
+ * // `$ npm install googleapis`
5512
+ *
5513
+ * const {google} = require('googleapis');
5514
+ * const sqladmin = google.sqladmin('v1');
5515
+ *
5516
+ * async function main() {
5517
+ * const auth = new google.auth.GoogleAuth({
5518
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
5519
+ * scopes: [
5520
+ * 'https://www.googleapis.com/auth/cloud-platform',
5521
+ * 'https://www.googleapis.com/auth/sqlservice.admin',
5522
+ * ],
5523
+ * });
5524
+ *
5525
+ * // Acquire an auth client, and bind it to all future calls
5526
+ * const authClient = await auth.getClient();
5527
+ * google.options({auth: authClient});
5528
+ *
5529
+ * // Do the magic
5530
+ * const res = await sql.operations.cancel({
5531
+ * // Instance operation ID.
5532
+ * operation: 'placeholder-value',
5533
+ * // Project ID of the project that contains the instance.
5534
+ * project: 'placeholder-value',
5535
+ * });
5536
+ * console.log(res.data);
5537
+ *
5538
+ * // Example response
5539
+ * // {}
5540
+ * }
5541
+ *
5542
+ * main().catch(e => {
5543
+ * console.error(e);
5544
+ * throw e;
5545
+ * });
5546
+ *
5547
+ * ```
5548
+ *
5549
+ * @param params - Parameters for request
5550
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
5551
+ * @param callback - Optional callback that handles the response.
5552
+ * @returns A promise if used with async/await, or void if used with a callback.
5553
+ */
5554
+ cancel(params: Params$Resource$Operations$Cancel, options: StreamMethodOptions): GaxiosPromise<Readable>;
5555
+ cancel(params?: Params$Resource$Operations$Cancel, options?: MethodOptions): GaxiosPromise<Schema$Empty>;
5556
+ cancel(params: Params$Resource$Operations$Cancel, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
5557
+ cancel(params: Params$Resource$Operations$Cancel, options: MethodOptions | BodyResponseCallback<Schema$Empty>, callback: BodyResponseCallback<Schema$Empty>): void;
5558
+ cancel(params: Params$Resource$Operations$Cancel, callback: BodyResponseCallback<Schema$Empty>): void;
5559
+ cancel(callback: BodyResponseCallback<Schema$Empty>): void;
5323
5560
  /**
5324
5561
  * Retrieves an instance operation that has been performed on an instance.
5325
5562
  * @example
@@ -5464,6 +5701,16 @@ export declare namespace sqladmin_v1 {
5464
5701
  list(params: Params$Resource$Operations$List, callback: BodyResponseCallback<Schema$OperationsListResponse>): void;
5465
5702
  list(callback: BodyResponseCallback<Schema$OperationsListResponse>): void;
5466
5703
  }
5704
+ export interface Params$Resource$Operations$Cancel extends StandardParameters {
5705
+ /**
5706
+ * Instance operation ID.
5707
+ */
5708
+ operation?: string;
5709
+ /**
5710
+ * Project ID of the project that contains the instance.
5711
+ */
5712
+ project?: string;
5713
+ }
5467
5714
  export interface Params$Resource$Operations$Get extends StandardParameters {
5468
5715
  /**
5469
5716
  * Instance operation ID.
@@ -5540,6 +5787,7 @@ export declare namespace sqladmin_v1 {
5540
5787
  * // Example response
5541
5788
  * // {
5542
5789
  * // "kind": "my_kind",
5790
+ * // "message": "my_message",
5543
5791
  * // "minimalTargetSizeGb": "my_minimalTargetSizeGb"
5544
5792
  * // }
5545
5793
  * }
@@ -5562,6 +5810,68 @@ export declare namespace sqladmin_v1 {
5562
5810
  getDiskShrinkConfig(params: Params$Resource$Projects$Instances$Getdiskshrinkconfig, options: MethodOptions | BodyResponseCallback<Schema$SqlInstancesGetDiskShrinkConfigResponse>, callback: BodyResponseCallback<Schema$SqlInstancesGetDiskShrinkConfigResponse>): void;
5563
5811
  getDiskShrinkConfig(params: Params$Resource$Projects$Instances$Getdiskshrinkconfig, callback: BodyResponseCallback<Schema$SqlInstancesGetDiskShrinkConfigResponse>): void;
5564
5812
  getDiskShrinkConfig(callback: BodyResponseCallback<Schema$SqlInstancesGetDiskShrinkConfigResponse>): void;
5813
+ /**
5814
+ * Get Latest Recovery Time for a given instance.
5815
+ * @example
5816
+ * ```js
5817
+ * // Before running the sample:
5818
+ * // - Enable the API at:
5819
+ * // https://console.developers.google.com/apis/api/sqladmin.googleapis.com
5820
+ * // - Login into gcloud by running:
5821
+ * // `$ gcloud auth application-default login`
5822
+ * // - Install the npm module by running:
5823
+ * // `$ npm install googleapis`
5824
+ *
5825
+ * const {google} = require('googleapis');
5826
+ * const sqladmin = google.sqladmin('v1');
5827
+ *
5828
+ * async function main() {
5829
+ * const auth = new google.auth.GoogleAuth({
5830
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
5831
+ * scopes: [
5832
+ * 'https://www.googleapis.com/auth/cloud-platform',
5833
+ * 'https://www.googleapis.com/auth/sqlservice.admin',
5834
+ * ],
5835
+ * });
5836
+ *
5837
+ * // Acquire an auth client, and bind it to all future calls
5838
+ * const authClient = await auth.getClient();
5839
+ * google.options({auth: authClient});
5840
+ *
5841
+ * // Do the magic
5842
+ * const res = await sql.projects.instances.getLatestRecoveryTime({
5843
+ * // Cloud SQL instance ID. This does not include the project ID.
5844
+ * instance: 'placeholder-value',
5845
+ * // Project ID of the project that contains the instance.
5846
+ * project: 'placeholder-value',
5847
+ * });
5848
+ * console.log(res.data);
5849
+ *
5850
+ * // Example response
5851
+ * // {
5852
+ * // "kind": "my_kind",
5853
+ * // "latestRecoveryTime": "my_latestRecoveryTime"
5854
+ * // }
5855
+ * }
5856
+ *
5857
+ * main().catch(e => {
5858
+ * console.error(e);
5859
+ * throw e;
5860
+ * });
5861
+ *
5862
+ * ```
5863
+ *
5864
+ * @param params - Parameters for request
5865
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
5866
+ * @param callback - Optional callback that handles the response.
5867
+ * @returns A promise if used with async/await, or void if used with a callback.
5868
+ */
5869
+ getLatestRecoveryTime(params: Params$Resource$Projects$Instances$Getlatestrecoverytime, options: StreamMethodOptions): GaxiosPromise<Readable>;
5870
+ getLatestRecoveryTime(params?: Params$Resource$Projects$Instances$Getlatestrecoverytime, options?: MethodOptions): GaxiosPromise<Schema$SqlInstancesGetLatestRecoveryTimeResponse>;
5871
+ getLatestRecoveryTime(params: Params$Resource$Projects$Instances$Getlatestrecoverytime, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
5872
+ getLatestRecoveryTime(params: Params$Resource$Projects$Instances$Getlatestrecoverytime, options: MethodOptions | BodyResponseCallback<Schema$SqlInstancesGetLatestRecoveryTimeResponse>, callback: BodyResponseCallback<Schema$SqlInstancesGetLatestRecoveryTimeResponse>): void;
5873
+ getLatestRecoveryTime(params: Params$Resource$Projects$Instances$Getlatestrecoverytime, callback: BodyResponseCallback<Schema$SqlInstancesGetLatestRecoveryTimeResponse>): void;
5874
+ getLatestRecoveryTime(callback: BodyResponseCallback<Schema$SqlInstancesGetLatestRecoveryTimeResponse>): void;
5565
5875
  /**
5566
5876
  * Perform Disk Shrink on primary instance.
5567
5877
  * @example
@@ -5853,7 +6163,8 @@ export declare namespace sqladmin_v1 {
5853
6163
  * // {
5854
6164
  * // "mysqlSyncConfig": {},
5855
6165
  * // "skipVerification": false,
5856
- * // "syncMode": "my_syncMode"
6166
+ * // "syncMode": "my_syncMode",
6167
+ * // "syncParallelLevel": "my_syncParallelLevel"
5857
6168
  * // }
5858
6169
  * },
5859
6170
  * });
@@ -5983,6 +6294,16 @@ export declare namespace sqladmin_v1 {
5983
6294
  */
5984
6295
  project?: string;
5985
6296
  }
6297
+ export interface Params$Resource$Projects$Instances$Getlatestrecoverytime extends StandardParameters {
6298
+ /**
6299
+ * Cloud SQL instance ID. This does not include the project ID.
6300
+ */
6301
+ instance?: string;
6302
+ /**
6303
+ * Project ID of the project that contains the instance.
6304
+ */
6305
+ project?: string;
6306
+ }
5986
6307
  export interface Params$Resource$Projects$Instances$Performdiskshrink extends StandardParameters {
5987
6308
  /**
5988
6309
  * Cloud SQL instance ID. This does not include the project ID.
package/build/v1.js CHANGED
@@ -879,6 +879,37 @@ var sqladmin_v1;
879
879
  return (0, googleapis_common_1.createAPIRequest)(parameters);
880
880
  }
881
881
  }
882
+ reencrypt(paramsOrCallback, optionsOrCallback, callback) {
883
+ let params = (paramsOrCallback ||
884
+ {});
885
+ let options = (optionsOrCallback || {});
886
+ if (typeof paramsOrCallback === 'function') {
887
+ callback = paramsOrCallback;
888
+ params = {};
889
+ options = {};
890
+ }
891
+ if (typeof optionsOrCallback === 'function') {
892
+ callback = optionsOrCallback;
893
+ options = {};
894
+ }
895
+ const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/';
896
+ const parameters = {
897
+ options: Object.assign({
898
+ url: (rootUrl + '/v1/projects/{project}/instances/{instance}/reencrypt').replace(/([^:]\/)\/+/g, '$1'),
899
+ method: 'POST',
900
+ }, options),
901
+ params,
902
+ requiredParams: ['project', 'instance'],
903
+ pathParams: ['instance', 'project'],
904
+ context: this.context,
905
+ };
906
+ if (callback) {
907
+ (0, googleapis_common_1.createAPIRequest)(parameters, callback);
908
+ }
909
+ else {
910
+ return (0, googleapis_common_1.createAPIRequest)(parameters);
911
+ }
912
+ }
882
913
  resetSslConfig(paramsOrCallback, optionsOrCallback, callback) {
883
914
  let params = (paramsOrCallback ||
884
915
  {});
@@ -1138,6 +1169,37 @@ var sqladmin_v1;
1138
1169
  constructor(context) {
1139
1170
  this.context = context;
1140
1171
  }
1172
+ cancel(paramsOrCallback, optionsOrCallback, callback) {
1173
+ let params = (paramsOrCallback ||
1174
+ {});
1175
+ let options = (optionsOrCallback || {});
1176
+ if (typeof paramsOrCallback === 'function') {
1177
+ callback = paramsOrCallback;
1178
+ params = {};
1179
+ options = {};
1180
+ }
1181
+ if (typeof optionsOrCallback === 'function') {
1182
+ callback = optionsOrCallback;
1183
+ options = {};
1184
+ }
1185
+ const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/';
1186
+ const parameters = {
1187
+ options: Object.assign({
1188
+ url: (rootUrl + '/v1/projects/{project}/operations/{operation}/cancel').replace(/([^:]\/)\/+/g, '$1'),
1189
+ method: 'POST',
1190
+ }, options),
1191
+ params,
1192
+ requiredParams: ['project', 'operation'],
1193
+ pathParams: ['operation', 'project'],
1194
+ context: this.context,
1195
+ };
1196
+ if (callback) {
1197
+ (0, googleapis_common_1.createAPIRequest)(parameters, callback);
1198
+ }
1199
+ else {
1200
+ return (0, googleapis_common_1.createAPIRequest)(parameters);
1201
+ }
1202
+ }
1141
1203
  get(paramsOrCallback, optionsOrCallback, callback) {
1142
1204
  let params = (paramsOrCallback || {});
1143
1205
  let options = (optionsOrCallback || {});
@@ -1243,6 +1305,38 @@ var sqladmin_v1;
1243
1305
  return (0, googleapis_common_1.createAPIRequest)(parameters);
1244
1306
  }
1245
1307
  }
1308
+ getLatestRecoveryTime(paramsOrCallback, optionsOrCallback, callback) {
1309
+ let params = (paramsOrCallback ||
1310
+ {});
1311
+ let options = (optionsOrCallback || {});
1312
+ if (typeof paramsOrCallback === 'function') {
1313
+ callback = paramsOrCallback;
1314
+ params = {};
1315
+ options = {};
1316
+ }
1317
+ if (typeof optionsOrCallback === 'function') {
1318
+ callback = optionsOrCallback;
1319
+ options = {};
1320
+ }
1321
+ const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/';
1322
+ const parameters = {
1323
+ options: Object.assign({
1324
+ url: (rootUrl +
1325
+ '/v1/projects/{project}/instances/{instance}/getLatestRecoveryTime').replace(/([^:]\/)\/+/g, '$1'),
1326
+ method: 'GET',
1327
+ }, options),
1328
+ params,
1329
+ requiredParams: ['project', 'instance'],
1330
+ pathParams: ['instance', 'project'],
1331
+ context: this.context,
1332
+ };
1333
+ if (callback) {
1334
+ (0, googleapis_common_1.createAPIRequest)(parameters, callback);
1335
+ }
1336
+ else {
1337
+ return (0, googleapis_common_1.createAPIRequest)(parameters);
1338
+ }
1339
+ }
1246
1340
  performDiskShrink(paramsOrCallback, optionsOrCallback, callback) {
1247
1341
  let params = (paramsOrCallback ||
1248
1342
  {});