@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/v1beta4.ts CHANGED
@@ -214,7 +214,7 @@ export namespace sqladmin_v1beta4 {
214
214
  */
215
215
  location?: string | null;
216
216
  /**
217
- * (Postgres only) Whether point in time recovery is enabled.
217
+ * Whether point in time recovery is enabled.
218
218
  */
219
219
  pointInTimeRecoveryEnabled?: boolean | null;
220
220
  /**
@@ -243,6 +243,19 @@ export namespace sqladmin_v1beta4 {
243
243
  */
244
244
  kind?: string | null;
245
245
  }
246
+ /**
247
+ * Backup Reencryption Config
248
+ */
249
+ export interface Schema$BackupReencryptionConfig {
250
+ /**
251
+ * Backup re-encryption limit
252
+ */
253
+ backupLimit?: number | null;
254
+ /**
255
+ * Type of backups users want to re-encrypt.
256
+ */
257
+ backupType?: string | null;
258
+ }
246
259
  /**
247
260
  * We currently only support backup retention by specifying the number of backups we will retain.
248
261
  */
@@ -395,6 +408,10 @@ export namespace sqladmin_v1beta4 {
395
408
  * Timestamp, if specified, identifies the time to which the source instance is cloned.
396
409
  */
397
410
  pointInTime?: string | null;
411
+ /**
412
+ * 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.
413
+ */
414
+ preferredZone?: string | null;
398
415
  }
399
416
  /**
400
417
  * Connect settings retrieval response.
@@ -408,6 +425,10 @@ export namespace sqladmin_v1beta4 {
408
425
  * 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` or `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`.
409
426
  */
410
427
  databaseVersion?: string | null;
428
+ /**
429
+ * The dns name of the instance.
430
+ */
431
+ dnsName?: string | null;
411
432
  /**
412
433
  * The assigned IP addresses for the instance.
413
434
  */
@@ -638,6 +659,15 @@ export namespace sqladmin_v1beta4 {
638
659
  */
639
660
  kind?: string | null;
640
661
  }
662
+ /**
663
+ * Data cache configurations.
664
+ */
665
+ export interface Schema$DataCacheConfig {
666
+ /**
667
+ * Whether data cache is enabled for the instance.
668
+ */
669
+ dataCacheEnabled?: boolean | null;
670
+ }
641
671
  /**
642
672
  * Read-replica configuration for connecting to the on-premises primary instance.
643
673
  */
@@ -748,6 +778,10 @@ export namespace sqladmin_v1beta4 {
748
778
  */
749
779
  kmsKeyVersionName?: string | null;
750
780
  }
781
+ /**
782
+ * 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); \}
783
+ */
784
+ export interface Schema$Empty {}
751
785
  /**
752
786
  * Database instance export context.
753
787
  */
@@ -755,7 +789,13 @@ export namespace sqladmin_v1beta4 {
755
789
  /**
756
790
  * Options for exporting BAK files (SQL Server-only)
757
791
  */
758
- bakExportOptions?: {stripeCount?: number; striped?: boolean} | null;
792
+ bakExportOptions?: {
793
+ bakType?: string;
794
+ copyOnly?: boolean;
795
+ differentialBase?: boolean;
796
+ stripeCount?: number;
797
+ striped?: boolean;
798
+ } | null;
759
799
  /**
760
800
  * Options for exporting data as CSV. `MySQL` and `PostgreSQL` instances only.
761
801
  */
@@ -904,11 +944,14 @@ export namespace sqladmin_v1beta4 {
904
944
  * Import parameters specific to SQL Server .BAK files
905
945
  */
906
946
  bakImportOptions?: {
947
+ bakType?: string;
907
948
  encryptionOptions?: {
908
949
  certPath?: string;
909
950
  pvkPassword?: string;
910
951
  pvkPath?: string;
911
952
  };
953
+ noRecovery?: boolean;
954
+ recoveryOnly?: boolean;
912
955
  striped?: boolean;
913
956
  } | null;
914
957
  /**
@@ -1065,6 +1108,15 @@ export namespace sqladmin_v1beta4 {
1065
1108
  */
1066
1109
  kind?: string | null;
1067
1110
  }
1111
+ /**
1112
+ * Database Instance reencrypt request.
1113
+ */
1114
+ export interface Schema$InstancesReencryptRequest {
1115
+ /**
1116
+ * Configuration specific to backup re-encryption
1117
+ */
1118
+ backupReencryptionConfig?: Schema$BackupReencryptionConfig;
1119
+ }
1068
1120
  /**
1069
1121
  * Database instance restore backup request.
1070
1122
  */
@@ -1585,6 +1637,10 @@ export namespace sqladmin_v1beta4 {
1585
1637
  * Configuration specific to read replica instances. Indicates whether replication is enabled or not. WARNING: Changing this restarts the instance.
1586
1638
  */
1587
1639
  databaseReplicationEnabled?: boolean | null;
1640
+ /**
1641
+ * Configuration for data cache.
1642
+ */
1643
+ dataCacheConfig?: Schema$DataCacheConfig;
1588
1644
  /**
1589
1645
  * The size of data disk, in GB. The data disk size minimum is 10GB.
1590
1646
  */
@@ -1601,6 +1657,10 @@ export namespace sqladmin_v1beta4 {
1601
1657
  * Deny maintenance periods
1602
1658
  */
1603
1659
  denyMaintenancePeriods?: Schema$DenyMaintenancePeriod[];
1660
+ /**
1661
+ * Optional. The edition of the instance.
1662
+ */
1663
+ edition?: string | null;
1604
1664
  /**
1605
1665
  * Insights configuration, for now relevant only for Postgres.
1606
1666
  */
@@ -1700,11 +1760,28 @@ export namespace sqladmin_v1beta4 {
1700
1760
  * This is always `sql#getDiskShrinkConfig`.
1701
1761
  */
1702
1762
  kind?: string | null;
1763
+ /**
1764
+ * Additional message to customers.
1765
+ */
1766
+ message?: string | null;
1703
1767
  /**
1704
1768
  * The minimum size to which a disk can be shrunk in GigaBytes.
1705
1769
  */
1706
1770
  minimalTargetSizeGb?: string | null;
1707
1771
  }
1772
+ /**
1773
+ * Instance get latest recovery time response.
1774
+ */
1775
+ export interface Schema$SqlInstancesGetLatestRecoveryTimeResponse {
1776
+ /**
1777
+ * This is always `sql#getLatestRecoveryTime`.
1778
+ */
1779
+ kind?: string | null;
1780
+ /**
1781
+ * Timestamp, identifies the latest recovery time of the source instance.
1782
+ */
1783
+ latestRecoveryTime?: string | null;
1784
+ }
1708
1785
  /**
1709
1786
  * Reschedule options for maintenance windows.
1710
1787
  */
@@ -1731,6 +1808,10 @@ export namespace sqladmin_v1beta4 {
1731
1808
  * External sync mode.
1732
1809
  */
1733
1810
  syncMode?: string | null;
1811
+ /**
1812
+ * Optional. Parallel level for initial data sync. Currently only applicable for MySQL.
1813
+ */
1814
+ syncParallelLevel?: string | null;
1734
1815
  }
1735
1816
  export interface Schema$SqlInstancesVerifyExternalSyncSettingsRequest {
1736
1817
  /**
@@ -3001,6 +3082,7 @@ export namespace sqladmin_v1beta4 {
3001
3082
  * // {
3002
3083
  * // "backendType": "my_backendType",
3003
3084
  * // "databaseVersion": "my_databaseVersion",
3085
+ * // "dnsName": "my_dnsName",
3004
3086
  * // "ipAddresses": [],
3005
3087
  * // "kind": "my_kind",
3006
3088
  * // "region": "my_region",
@@ -3430,7 +3512,7 @@ export namespace sqladmin_v1beta4 {
3430
3512
  }
3431
3513
 
3432
3514
  /**
3433
- * Inserts a resource containing information about a database inside a Cloud SQL instance.
3515
+ * Inserts a resource containing information about a database inside a Cloud SQL instance. **Note:** You can't modify the default character set and collation.
3434
3516
  * @example
3435
3517
  * ```js
3436
3518
  * // Before running the sample:
@@ -6364,6 +6446,163 @@ export namespace sqladmin_v1beta4 {
6364
6446
  }
6365
6447
  }
6366
6448
 
6449
+ /**
6450
+ * Reencrypt CMEK instance with latest key version.
6451
+ * @example
6452
+ * ```js
6453
+ * // Before running the sample:
6454
+ * // - Enable the API at:
6455
+ * // https://console.developers.google.com/apis/api/sqladmin.googleapis.com
6456
+ * // - Login into gcloud by running:
6457
+ * // `$ gcloud auth application-default login`
6458
+ * // - Install the npm module by running:
6459
+ * // `$ npm install googleapis`
6460
+ *
6461
+ * const {google} = require('googleapis');
6462
+ * const sqladmin = google.sqladmin('v1beta4');
6463
+ *
6464
+ * async function main() {
6465
+ * const auth = new google.auth.GoogleAuth({
6466
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
6467
+ * scopes: [
6468
+ * 'https://www.googleapis.com/auth/cloud-platform',
6469
+ * 'https://www.googleapis.com/auth/sqlservice.admin',
6470
+ * ],
6471
+ * });
6472
+ *
6473
+ * // Acquire an auth client, and bind it to all future calls
6474
+ * const authClient = await auth.getClient();
6475
+ * google.options({auth: authClient});
6476
+ *
6477
+ * // Do the magic
6478
+ * const res = await sql.instances.reencrypt({
6479
+ * // Cloud SQL instance ID. This does not include the project ID.
6480
+ * instance: 'placeholder-value',
6481
+ * // ID of the project that contains the instance.
6482
+ * project: 'placeholder-value',
6483
+ *
6484
+ * // Request body metadata
6485
+ * requestBody: {
6486
+ * // request body parameters
6487
+ * // {
6488
+ * // "backupReencryptionConfig": {}
6489
+ * // }
6490
+ * },
6491
+ * });
6492
+ * console.log(res.data);
6493
+ *
6494
+ * // Example response
6495
+ * // {
6496
+ * // "backupContext": {},
6497
+ * // "endTime": "my_endTime",
6498
+ * // "error": {},
6499
+ * // "exportContext": {},
6500
+ * // "importContext": {},
6501
+ * // "insertTime": "my_insertTime",
6502
+ * // "kind": "my_kind",
6503
+ * // "name": "my_name",
6504
+ * // "operationType": "my_operationType",
6505
+ * // "selfLink": "my_selfLink",
6506
+ * // "startTime": "my_startTime",
6507
+ * // "status": "my_status",
6508
+ * // "targetId": "my_targetId",
6509
+ * // "targetLink": "my_targetLink",
6510
+ * // "targetProject": "my_targetProject",
6511
+ * // "user": "my_user"
6512
+ * // }
6513
+ * }
6514
+ *
6515
+ * main().catch(e => {
6516
+ * console.error(e);
6517
+ * throw e;
6518
+ * });
6519
+ *
6520
+ * ```
6521
+ *
6522
+ * @param params - Parameters for request
6523
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
6524
+ * @param callback - Optional callback that handles the response.
6525
+ * @returns A promise if used with async/await, or void if used with a callback.
6526
+ */
6527
+ reencrypt(
6528
+ params: Params$Resource$Instances$Reencrypt,
6529
+ options: StreamMethodOptions
6530
+ ): GaxiosPromise<Readable>;
6531
+ reencrypt(
6532
+ params?: Params$Resource$Instances$Reencrypt,
6533
+ options?: MethodOptions
6534
+ ): GaxiosPromise<Schema$Operation>;
6535
+ reencrypt(
6536
+ params: Params$Resource$Instances$Reencrypt,
6537
+ options: StreamMethodOptions | BodyResponseCallback<Readable>,
6538
+ callback: BodyResponseCallback<Readable>
6539
+ ): void;
6540
+ reencrypt(
6541
+ params: Params$Resource$Instances$Reencrypt,
6542
+ options: MethodOptions | BodyResponseCallback<Schema$Operation>,
6543
+ callback: BodyResponseCallback<Schema$Operation>
6544
+ ): void;
6545
+ reencrypt(
6546
+ params: Params$Resource$Instances$Reencrypt,
6547
+ callback: BodyResponseCallback<Schema$Operation>
6548
+ ): void;
6549
+ reencrypt(callback: BodyResponseCallback<Schema$Operation>): void;
6550
+ reencrypt(
6551
+ paramsOrCallback?:
6552
+ | Params$Resource$Instances$Reencrypt
6553
+ | BodyResponseCallback<Schema$Operation>
6554
+ | BodyResponseCallback<Readable>,
6555
+ optionsOrCallback?:
6556
+ | MethodOptions
6557
+ | StreamMethodOptions
6558
+ | BodyResponseCallback<Schema$Operation>
6559
+ | BodyResponseCallback<Readable>,
6560
+ callback?:
6561
+ | BodyResponseCallback<Schema$Operation>
6562
+ | BodyResponseCallback<Readable>
6563
+ ): void | GaxiosPromise<Schema$Operation> | GaxiosPromise<Readable> {
6564
+ let params = (paramsOrCallback ||
6565
+ {}) as Params$Resource$Instances$Reencrypt;
6566
+ let options = (optionsOrCallback || {}) as MethodOptions;
6567
+
6568
+ if (typeof paramsOrCallback === 'function') {
6569
+ callback = paramsOrCallback;
6570
+ params = {} as Params$Resource$Instances$Reencrypt;
6571
+ options = {};
6572
+ }
6573
+
6574
+ if (typeof optionsOrCallback === 'function') {
6575
+ callback = optionsOrCallback;
6576
+ options = {};
6577
+ }
6578
+
6579
+ const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/';
6580
+ const parameters = {
6581
+ options: Object.assign(
6582
+ {
6583
+ url: (
6584
+ rootUrl +
6585
+ '/sql/v1beta4/projects/{project}/instances/{instance}/reencrypt'
6586
+ ).replace(/([^:]\/)\/+/g, '$1'),
6587
+ method: 'POST',
6588
+ },
6589
+ options
6590
+ ),
6591
+ params,
6592
+ requiredParams: ['project', 'instance'],
6593
+ pathParams: ['instance', 'project'],
6594
+ context: this.context,
6595
+ };
6596
+ if (callback) {
6597
+ createAPIRequest<Schema$Operation>(
6598
+ parameters,
6599
+ callback as BodyResponseCallback<unknown>
6600
+ );
6601
+ } else {
6602
+ return createAPIRequest<Schema$Operation>(parameters);
6603
+ }
6604
+ }
6605
+
6367
6606
  /**
6368
6607
  * Deletes all client certificates and generates a new server SSL certificate for the instance.
6369
6608
  * @example
@@ -7796,6 +8035,22 @@ export namespace sqladmin_v1beta4 {
7796
8035
  */
7797
8036
  project?: string;
7798
8037
  }
8038
+ export interface Params$Resource$Instances$Reencrypt
8039
+ extends StandardParameters {
8040
+ /**
8041
+ * Cloud SQL instance ID. This does not include the project ID.
8042
+ */
8043
+ instance?: string;
8044
+ /**
8045
+ * ID of the project that contains the instance.
8046
+ */
8047
+ project?: string;
8048
+
8049
+ /**
8050
+ * Request body metadata
8051
+ */
8052
+ requestBody?: Schema$InstancesReencryptRequest;
8053
+ }
7799
8054
  export interface Params$Resource$Instances$Resetsslconfig
7800
8055
  extends StandardParameters {
7801
8056
  /**
@@ -7910,6 +8165,138 @@ export namespace sqladmin_v1beta4 {
7910
8165
  this.context = context;
7911
8166
  }
7912
8167
 
8168
+ /**
8169
+ * Cancels an instance operation that has been performed on an instance.
8170
+ * @example
8171
+ * ```js
8172
+ * // Before running the sample:
8173
+ * // - Enable the API at:
8174
+ * // https://console.developers.google.com/apis/api/sqladmin.googleapis.com
8175
+ * // - Login into gcloud by running:
8176
+ * // `$ gcloud auth application-default login`
8177
+ * // - Install the npm module by running:
8178
+ * // `$ npm install googleapis`
8179
+ *
8180
+ * const {google} = require('googleapis');
8181
+ * const sqladmin = google.sqladmin('v1beta4');
8182
+ *
8183
+ * async function main() {
8184
+ * const auth = new google.auth.GoogleAuth({
8185
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
8186
+ * scopes: [
8187
+ * 'https://www.googleapis.com/auth/cloud-platform',
8188
+ * 'https://www.googleapis.com/auth/sqlservice.admin',
8189
+ * ],
8190
+ * });
8191
+ *
8192
+ * // Acquire an auth client, and bind it to all future calls
8193
+ * const authClient = await auth.getClient();
8194
+ * google.options({auth: authClient});
8195
+ *
8196
+ * // Do the magic
8197
+ * const res = await sql.operations.cancel({
8198
+ * // Instance operation ID.
8199
+ * operation: 'placeholder-value',
8200
+ * // Project ID of the project that contains the instance.
8201
+ * project: 'placeholder-value',
8202
+ * });
8203
+ * console.log(res.data);
8204
+ *
8205
+ * // Example response
8206
+ * // {}
8207
+ * }
8208
+ *
8209
+ * main().catch(e => {
8210
+ * console.error(e);
8211
+ * throw e;
8212
+ * });
8213
+ *
8214
+ * ```
8215
+ *
8216
+ * @param params - Parameters for request
8217
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
8218
+ * @param callback - Optional callback that handles the response.
8219
+ * @returns A promise if used with async/await, or void if used with a callback.
8220
+ */
8221
+ cancel(
8222
+ params: Params$Resource$Operations$Cancel,
8223
+ options: StreamMethodOptions
8224
+ ): GaxiosPromise<Readable>;
8225
+ cancel(
8226
+ params?: Params$Resource$Operations$Cancel,
8227
+ options?: MethodOptions
8228
+ ): GaxiosPromise<Schema$Empty>;
8229
+ cancel(
8230
+ params: Params$Resource$Operations$Cancel,
8231
+ options: StreamMethodOptions | BodyResponseCallback<Readable>,
8232
+ callback: BodyResponseCallback<Readable>
8233
+ ): void;
8234
+ cancel(
8235
+ params: Params$Resource$Operations$Cancel,
8236
+ options: MethodOptions | BodyResponseCallback<Schema$Empty>,
8237
+ callback: BodyResponseCallback<Schema$Empty>
8238
+ ): void;
8239
+ cancel(
8240
+ params: Params$Resource$Operations$Cancel,
8241
+ callback: BodyResponseCallback<Schema$Empty>
8242
+ ): void;
8243
+ cancel(callback: BodyResponseCallback<Schema$Empty>): void;
8244
+ cancel(
8245
+ paramsOrCallback?:
8246
+ | Params$Resource$Operations$Cancel
8247
+ | BodyResponseCallback<Schema$Empty>
8248
+ | BodyResponseCallback<Readable>,
8249
+ optionsOrCallback?:
8250
+ | MethodOptions
8251
+ | StreamMethodOptions
8252
+ | BodyResponseCallback<Schema$Empty>
8253
+ | BodyResponseCallback<Readable>,
8254
+ callback?:
8255
+ | BodyResponseCallback<Schema$Empty>
8256
+ | BodyResponseCallback<Readable>
8257
+ ): void | GaxiosPromise<Schema$Empty> | GaxiosPromise<Readable> {
8258
+ let params = (paramsOrCallback ||
8259
+ {}) as Params$Resource$Operations$Cancel;
8260
+ let options = (optionsOrCallback || {}) as MethodOptions;
8261
+
8262
+ if (typeof paramsOrCallback === 'function') {
8263
+ callback = paramsOrCallback;
8264
+ params = {} as Params$Resource$Operations$Cancel;
8265
+ options = {};
8266
+ }
8267
+
8268
+ if (typeof optionsOrCallback === 'function') {
8269
+ callback = optionsOrCallback;
8270
+ options = {};
8271
+ }
8272
+
8273
+ const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/';
8274
+ const parameters = {
8275
+ options: Object.assign(
8276
+ {
8277
+ url: (
8278
+ rootUrl +
8279
+ '/sql/v1beta4/projects/{project}/operations/{operation}/cancel'
8280
+ ).replace(/([^:]\/)\/+/g, '$1'),
8281
+ method: 'POST',
8282
+ },
8283
+ options
8284
+ ),
8285
+ params,
8286
+ requiredParams: ['project', 'operation'],
8287
+ pathParams: ['operation', 'project'],
8288
+ context: this.context,
8289
+ };
8290
+ if (callback) {
8291
+ createAPIRequest<Schema$Empty>(
8292
+ parameters,
8293
+ callback as BodyResponseCallback<unknown>
8294
+ );
8295
+ } else {
8296
+ return createAPIRequest<Schema$Empty>(parameters);
8297
+ }
8298
+ }
8299
+
7913
8300
  /**
7914
8301
  * Retrieves an instance operation that has been performed on an instance.
7915
8302
  * @example
@@ -8201,6 +8588,17 @@ export namespace sqladmin_v1beta4 {
8201
8588
  }
8202
8589
  }
8203
8590
 
8591
+ export interface Params$Resource$Operations$Cancel
8592
+ extends StandardParameters {
8593
+ /**
8594
+ * Instance operation ID.
8595
+ */
8596
+ operation?: string;
8597
+ /**
8598
+ * Project ID of the project that contains the instance.
8599
+ */
8600
+ project?: string;
8601
+ }
8204
8602
  export interface Params$Resource$Operations$Get extends StandardParameters {
8205
8603
  /**
8206
8604
  * Instance operation ID.
@@ -8285,6 +8683,7 @@ export namespace sqladmin_v1beta4 {
8285
8683
  * // Example response
8286
8684
  * // {
8287
8685
  * // "kind": "my_kind",
8686
+ * // "message": "my_message",
8288
8687
  * // "minimalTargetSizeGb": "my_minimalTargetSizeGb"
8289
8688
  * // }
8290
8689
  * }
@@ -8389,6 +8788,150 @@ export namespace sqladmin_v1beta4 {
8389
8788
  }
8390
8789
  }
8391
8790
 
8791
+ /**
8792
+ * Get Latest Recovery Time for a given instance.
8793
+ * @example
8794
+ * ```js
8795
+ * // Before running the sample:
8796
+ * // - Enable the API at:
8797
+ * // https://console.developers.google.com/apis/api/sqladmin.googleapis.com
8798
+ * // - Login into gcloud by running:
8799
+ * // `$ gcloud auth application-default login`
8800
+ * // - Install the npm module by running:
8801
+ * // `$ npm install googleapis`
8802
+ *
8803
+ * const {google} = require('googleapis');
8804
+ * const sqladmin = google.sqladmin('v1beta4');
8805
+ *
8806
+ * async function main() {
8807
+ * const auth = new google.auth.GoogleAuth({
8808
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
8809
+ * scopes: [
8810
+ * 'https://www.googleapis.com/auth/cloud-platform',
8811
+ * 'https://www.googleapis.com/auth/sqlservice.admin',
8812
+ * ],
8813
+ * });
8814
+ *
8815
+ * // Acquire an auth client, and bind it to all future calls
8816
+ * const authClient = await auth.getClient();
8817
+ * google.options({auth: authClient});
8818
+ *
8819
+ * // Do the magic
8820
+ * const res = await sql.projects.instances.getLatestRecoveryTime({
8821
+ * // Cloud SQL instance ID. This does not include the project ID.
8822
+ * instance: 'placeholder-value',
8823
+ * // Project ID of the project that contains the instance.
8824
+ * project: 'placeholder-value',
8825
+ * });
8826
+ * console.log(res.data);
8827
+ *
8828
+ * // Example response
8829
+ * // {
8830
+ * // "kind": "my_kind",
8831
+ * // "latestRecoveryTime": "my_latestRecoveryTime"
8832
+ * // }
8833
+ * }
8834
+ *
8835
+ * main().catch(e => {
8836
+ * console.error(e);
8837
+ * throw e;
8838
+ * });
8839
+ *
8840
+ * ```
8841
+ *
8842
+ * @param params - Parameters for request
8843
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
8844
+ * @param callback - Optional callback that handles the response.
8845
+ * @returns A promise if used with async/await, or void if used with a callback.
8846
+ */
8847
+ getLatestRecoveryTime(
8848
+ params: Params$Resource$Projects$Instances$Getlatestrecoverytime,
8849
+ options: StreamMethodOptions
8850
+ ): GaxiosPromise<Readable>;
8851
+ getLatestRecoveryTime(
8852
+ params?: Params$Resource$Projects$Instances$Getlatestrecoverytime,
8853
+ options?: MethodOptions
8854
+ ): GaxiosPromise<Schema$SqlInstancesGetLatestRecoveryTimeResponse>;
8855
+ getLatestRecoveryTime(
8856
+ params: Params$Resource$Projects$Instances$Getlatestrecoverytime,
8857
+ options: StreamMethodOptions | BodyResponseCallback<Readable>,
8858
+ callback: BodyResponseCallback<Readable>
8859
+ ): void;
8860
+ getLatestRecoveryTime(
8861
+ params: Params$Resource$Projects$Instances$Getlatestrecoverytime,
8862
+ options:
8863
+ | MethodOptions
8864
+ | BodyResponseCallback<Schema$SqlInstancesGetLatestRecoveryTimeResponse>,
8865
+ callback: BodyResponseCallback<Schema$SqlInstancesGetLatestRecoveryTimeResponse>
8866
+ ): void;
8867
+ getLatestRecoveryTime(
8868
+ params: Params$Resource$Projects$Instances$Getlatestrecoverytime,
8869
+ callback: BodyResponseCallback<Schema$SqlInstancesGetLatestRecoveryTimeResponse>
8870
+ ): void;
8871
+ getLatestRecoveryTime(
8872
+ callback: BodyResponseCallback<Schema$SqlInstancesGetLatestRecoveryTimeResponse>
8873
+ ): void;
8874
+ getLatestRecoveryTime(
8875
+ paramsOrCallback?:
8876
+ | Params$Resource$Projects$Instances$Getlatestrecoverytime
8877
+ | BodyResponseCallback<Schema$SqlInstancesGetLatestRecoveryTimeResponse>
8878
+ | BodyResponseCallback<Readable>,
8879
+ optionsOrCallback?:
8880
+ | MethodOptions
8881
+ | StreamMethodOptions
8882
+ | BodyResponseCallback<Schema$SqlInstancesGetLatestRecoveryTimeResponse>
8883
+ | BodyResponseCallback<Readable>,
8884
+ callback?:
8885
+ | BodyResponseCallback<Schema$SqlInstancesGetLatestRecoveryTimeResponse>
8886
+ | BodyResponseCallback<Readable>
8887
+ ):
8888
+ | void
8889
+ | GaxiosPromise<Schema$SqlInstancesGetLatestRecoveryTimeResponse>
8890
+ | GaxiosPromise<Readable> {
8891
+ let params = (paramsOrCallback ||
8892
+ {}) as Params$Resource$Projects$Instances$Getlatestrecoverytime;
8893
+ let options = (optionsOrCallback || {}) as MethodOptions;
8894
+
8895
+ if (typeof paramsOrCallback === 'function') {
8896
+ callback = paramsOrCallback;
8897
+ params = {} as Params$Resource$Projects$Instances$Getlatestrecoverytime;
8898
+ options = {};
8899
+ }
8900
+
8901
+ if (typeof optionsOrCallback === 'function') {
8902
+ callback = optionsOrCallback;
8903
+ options = {};
8904
+ }
8905
+
8906
+ const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/';
8907
+ const parameters = {
8908
+ options: Object.assign(
8909
+ {
8910
+ url: (
8911
+ rootUrl +
8912
+ '/sql/v1beta4/projects/{project}/instances/{instance}/getLatestRecoveryTime'
8913
+ ).replace(/([^:]\/)\/+/g, '$1'),
8914
+ method: 'GET',
8915
+ },
8916
+ options
8917
+ ),
8918
+ params,
8919
+ requiredParams: ['project', 'instance'],
8920
+ pathParams: ['instance', 'project'],
8921
+ context: this.context,
8922
+ };
8923
+ if (callback) {
8924
+ createAPIRequest<Schema$SqlInstancesGetLatestRecoveryTimeResponse>(
8925
+ parameters,
8926
+ callback as BodyResponseCallback<unknown>
8927
+ );
8928
+ } else {
8929
+ return createAPIRequest<Schema$SqlInstancesGetLatestRecoveryTimeResponse>(
8930
+ parameters
8931
+ );
8932
+ }
8933
+ }
8934
+
8392
8935
  /**
8393
8936
  * Perform Disk Shrink on primary instance.
8394
8937
  * @example
@@ -8901,7 +9444,8 @@ export namespace sqladmin_v1beta4 {
8901
9444
  * // {
8902
9445
  * // "mysqlSyncConfig": {},
8903
9446
  * // "skipVerification": false,
8904
- * // "syncMode": "my_syncMode"
9447
+ * // "syncMode": "my_syncMode",
9448
+ * // "syncParallelLevel": "my_syncParallelLevel"
8905
9449
  * // }
8906
9450
  * },
8907
9451
  * });
@@ -9188,6 +9732,17 @@ export namespace sqladmin_v1beta4 {
9188
9732
  */
9189
9733
  project?: string;
9190
9734
  }
9735
+ export interface Params$Resource$Projects$Instances$Getlatestrecoverytime
9736
+ extends StandardParameters {
9737
+ /**
9738
+ * Cloud SQL instance ID. This does not include the project ID.
9739
+ */
9740
+ instance?: string;
9741
+ /**
9742
+ * Project ID of the project that contains the instance.
9743
+ */
9744
+ project?: string;
9745
+ }
9191
9746
  export interface Params$Resource$Projects$Instances$Performdiskshrink
9192
9747
  extends StandardParameters {
9193
9748
  /**