@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 +18 -0
- package/build/v1.d.ts +324 -3
- package/build/v1.js +94 -0
- package/build/v1.js.map +1 -1
- package/build/v1beta4.d.ts +324 -3
- package/build/v1beta4.js +96 -0
- package/build/v1beta4.js.map +1 -1
- package/package.json +1 -1
- package/v1.ts +557 -4
- package/v1beta4.ts +559 -4
package/build/v1beta4.d.ts
CHANGED
|
@@ -152,7 +152,7 @@ export declare namespace sqladmin_v1beta4 {
|
|
|
152
152
|
*/
|
|
153
153
|
location?: string | null;
|
|
154
154
|
/**
|
|
155
|
-
*
|
|
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_v1beta4 {
|
|
|
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_v1beta4 {
|
|
|
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_v1beta4 {
|
|
|
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` 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`.
|
|
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_v1beta4 {
|
|
|
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_v1beta4 {
|
|
|
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_v1beta4 {
|
|
|
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_v1beta4 {
|
|
|
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_v1beta4 {
|
|
|
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_v1beta4 {
|
|
|
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_v1beta4 {
|
|
|
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_v1beta4 {
|
|
|
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
|
*/
|
|
@@ -1680,6 +1755,10 @@ export declare namespace sqladmin_v1beta4 {
|
|
|
1680
1755
|
* External sync mode.
|
|
1681
1756
|
*/
|
|
1682
1757
|
syncMode?: string | null;
|
|
1758
|
+
/**
|
|
1759
|
+
* Optional. Parallel level for initial data sync. Currently only applicable for MySQL.
|
|
1760
|
+
*/
|
|
1761
|
+
syncParallelLevel?: string | null;
|
|
1683
1762
|
}
|
|
1684
1763
|
export interface Schema$SqlInstancesVerifyExternalSyncSettingsRequest {
|
|
1685
1764
|
/**
|
|
@@ -2562,6 +2641,7 @@ export declare namespace sqladmin_v1beta4 {
|
|
|
2562
2641
|
* // {
|
|
2563
2642
|
* // "backendType": "my_backendType",
|
|
2564
2643
|
* // "databaseVersion": "my_databaseVersion",
|
|
2644
|
+
* // "dnsName": "my_dnsName",
|
|
2565
2645
|
* // "ipAddresses": [],
|
|
2566
2646
|
* // "kind": "my_kind",
|
|
2567
2647
|
* // "region": "my_region",
|
|
@@ -2769,7 +2849,7 @@ export declare namespace sqladmin_v1beta4 {
|
|
|
2769
2849
|
get(params: Params$Resource$Databases$Get, callback: BodyResponseCallback<Schema$Database>): void;
|
|
2770
2850
|
get(callback: BodyResponseCallback<Schema$Database>): void;
|
|
2771
2851
|
/**
|
|
2772
|
-
* Inserts a resource containing information about a database inside a Cloud SQL instance.
|
|
2852
|
+
* Inserts a resource containing information about a database inside a Cloud SQL instance. **Note:** You can't modify the default character set and collation.
|
|
2773
2853
|
* @example
|
|
2774
2854
|
* ```js
|
|
2775
2855
|
* // Before running the sample:
|
|
@@ -4377,6 +4457,90 @@ export declare namespace sqladmin_v1beta4 {
|
|
|
4377
4457
|
promoteReplica(params: Params$Resource$Instances$Promotereplica, options: MethodOptions | BodyResponseCallback<Schema$Operation>, callback: BodyResponseCallback<Schema$Operation>): void;
|
|
4378
4458
|
promoteReplica(params: Params$Resource$Instances$Promotereplica, callback: BodyResponseCallback<Schema$Operation>): void;
|
|
4379
4459
|
promoteReplica(callback: BodyResponseCallback<Schema$Operation>): void;
|
|
4460
|
+
/**
|
|
4461
|
+
* Reencrypt CMEK instance with latest key version.
|
|
4462
|
+
* @example
|
|
4463
|
+
* ```js
|
|
4464
|
+
* // Before running the sample:
|
|
4465
|
+
* // - Enable the API at:
|
|
4466
|
+
* // https://console.developers.google.com/apis/api/sqladmin.googleapis.com
|
|
4467
|
+
* // - Login into gcloud by running:
|
|
4468
|
+
* // `$ gcloud auth application-default login`
|
|
4469
|
+
* // - Install the npm module by running:
|
|
4470
|
+
* // `$ npm install googleapis`
|
|
4471
|
+
*
|
|
4472
|
+
* const {google} = require('googleapis');
|
|
4473
|
+
* const sqladmin = google.sqladmin('v1beta4');
|
|
4474
|
+
*
|
|
4475
|
+
* async function main() {
|
|
4476
|
+
* const auth = new google.auth.GoogleAuth({
|
|
4477
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
4478
|
+
* scopes: [
|
|
4479
|
+
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
4480
|
+
* 'https://www.googleapis.com/auth/sqlservice.admin',
|
|
4481
|
+
* ],
|
|
4482
|
+
* });
|
|
4483
|
+
*
|
|
4484
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
4485
|
+
* const authClient = await auth.getClient();
|
|
4486
|
+
* google.options({auth: authClient});
|
|
4487
|
+
*
|
|
4488
|
+
* // Do the magic
|
|
4489
|
+
* const res = await sql.instances.reencrypt({
|
|
4490
|
+
* // Cloud SQL instance ID. This does not include the project ID.
|
|
4491
|
+
* instance: 'placeholder-value',
|
|
4492
|
+
* // ID of the project that contains the instance.
|
|
4493
|
+
* project: 'placeholder-value',
|
|
4494
|
+
*
|
|
4495
|
+
* // Request body metadata
|
|
4496
|
+
* requestBody: {
|
|
4497
|
+
* // request body parameters
|
|
4498
|
+
* // {
|
|
4499
|
+
* // "backupReencryptionConfig": {}
|
|
4500
|
+
* // }
|
|
4501
|
+
* },
|
|
4502
|
+
* });
|
|
4503
|
+
* console.log(res.data);
|
|
4504
|
+
*
|
|
4505
|
+
* // Example response
|
|
4506
|
+
* // {
|
|
4507
|
+
* // "backupContext": {},
|
|
4508
|
+
* // "endTime": "my_endTime",
|
|
4509
|
+
* // "error": {},
|
|
4510
|
+
* // "exportContext": {},
|
|
4511
|
+
* // "importContext": {},
|
|
4512
|
+
* // "insertTime": "my_insertTime",
|
|
4513
|
+
* // "kind": "my_kind",
|
|
4514
|
+
* // "name": "my_name",
|
|
4515
|
+
* // "operationType": "my_operationType",
|
|
4516
|
+
* // "selfLink": "my_selfLink",
|
|
4517
|
+
* // "startTime": "my_startTime",
|
|
4518
|
+
* // "status": "my_status",
|
|
4519
|
+
* // "targetId": "my_targetId",
|
|
4520
|
+
* // "targetLink": "my_targetLink",
|
|
4521
|
+
* // "targetProject": "my_targetProject",
|
|
4522
|
+
* // "user": "my_user"
|
|
4523
|
+
* // }
|
|
4524
|
+
* }
|
|
4525
|
+
*
|
|
4526
|
+
* main().catch(e => {
|
|
4527
|
+
* console.error(e);
|
|
4528
|
+
* throw e;
|
|
4529
|
+
* });
|
|
4530
|
+
*
|
|
4531
|
+
* ```
|
|
4532
|
+
*
|
|
4533
|
+
* @param params - Parameters for request
|
|
4534
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
4535
|
+
* @param callback - Optional callback that handles the response.
|
|
4536
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
4537
|
+
*/
|
|
4538
|
+
reencrypt(params: Params$Resource$Instances$Reencrypt, options: StreamMethodOptions): GaxiosPromise<Readable>;
|
|
4539
|
+
reencrypt(params?: Params$Resource$Instances$Reencrypt, options?: MethodOptions): GaxiosPromise<Schema$Operation>;
|
|
4540
|
+
reencrypt(params: Params$Resource$Instances$Reencrypt, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
4541
|
+
reencrypt(params: Params$Resource$Instances$Reencrypt, options: MethodOptions | BodyResponseCallback<Schema$Operation>, callback: BodyResponseCallback<Schema$Operation>): void;
|
|
4542
|
+
reencrypt(params: Params$Resource$Instances$Reencrypt, callback: BodyResponseCallback<Schema$Operation>): void;
|
|
4543
|
+
reencrypt(callback: BodyResponseCallback<Schema$Operation>): void;
|
|
4380
4544
|
/**
|
|
4381
4545
|
* Deletes all client certificates and generates a new server SSL certificate for the instance.
|
|
4382
4546
|
* @example
|
|
@@ -5215,6 +5379,20 @@ export declare namespace sqladmin_v1beta4 {
|
|
|
5215
5379
|
*/
|
|
5216
5380
|
project?: string;
|
|
5217
5381
|
}
|
|
5382
|
+
export interface Params$Resource$Instances$Reencrypt extends StandardParameters {
|
|
5383
|
+
/**
|
|
5384
|
+
* Cloud SQL instance ID. This does not include the project ID.
|
|
5385
|
+
*/
|
|
5386
|
+
instance?: string;
|
|
5387
|
+
/**
|
|
5388
|
+
* ID of the project that contains the instance.
|
|
5389
|
+
*/
|
|
5390
|
+
project?: string;
|
|
5391
|
+
/**
|
|
5392
|
+
* Request body metadata
|
|
5393
|
+
*/
|
|
5394
|
+
requestBody?: Schema$InstancesReencryptRequest;
|
|
5395
|
+
}
|
|
5218
5396
|
export interface Params$Resource$Instances$Resetsslconfig extends StandardParameters {
|
|
5219
5397
|
/**
|
|
5220
5398
|
* Cloud SQL instance ID. This does not include the project ID.
|
|
@@ -5314,6 +5492,65 @@ export declare namespace sqladmin_v1beta4 {
|
|
|
5314
5492
|
export class Resource$Operations {
|
|
5315
5493
|
context: APIRequestContext;
|
|
5316
5494
|
constructor(context: APIRequestContext);
|
|
5495
|
+
/**
|
|
5496
|
+
* Cancels an instance operation that has been performed on an instance.
|
|
5497
|
+
* @example
|
|
5498
|
+
* ```js
|
|
5499
|
+
* // Before running the sample:
|
|
5500
|
+
* // - Enable the API at:
|
|
5501
|
+
* // https://console.developers.google.com/apis/api/sqladmin.googleapis.com
|
|
5502
|
+
* // - Login into gcloud by running:
|
|
5503
|
+
* // `$ gcloud auth application-default login`
|
|
5504
|
+
* // - Install the npm module by running:
|
|
5505
|
+
* // `$ npm install googleapis`
|
|
5506
|
+
*
|
|
5507
|
+
* const {google} = require('googleapis');
|
|
5508
|
+
* const sqladmin = google.sqladmin('v1beta4');
|
|
5509
|
+
*
|
|
5510
|
+
* async function main() {
|
|
5511
|
+
* const auth = new google.auth.GoogleAuth({
|
|
5512
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
5513
|
+
* scopes: [
|
|
5514
|
+
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
5515
|
+
* 'https://www.googleapis.com/auth/sqlservice.admin',
|
|
5516
|
+
* ],
|
|
5517
|
+
* });
|
|
5518
|
+
*
|
|
5519
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
5520
|
+
* const authClient = await auth.getClient();
|
|
5521
|
+
* google.options({auth: authClient});
|
|
5522
|
+
*
|
|
5523
|
+
* // Do the magic
|
|
5524
|
+
* const res = await sql.operations.cancel({
|
|
5525
|
+
* // Instance operation ID.
|
|
5526
|
+
* operation: 'placeholder-value',
|
|
5527
|
+
* // Project ID of the project that contains the instance.
|
|
5528
|
+
* project: 'placeholder-value',
|
|
5529
|
+
* });
|
|
5530
|
+
* console.log(res.data);
|
|
5531
|
+
*
|
|
5532
|
+
* // Example response
|
|
5533
|
+
* // {}
|
|
5534
|
+
* }
|
|
5535
|
+
*
|
|
5536
|
+
* main().catch(e => {
|
|
5537
|
+
* console.error(e);
|
|
5538
|
+
* throw e;
|
|
5539
|
+
* });
|
|
5540
|
+
*
|
|
5541
|
+
* ```
|
|
5542
|
+
*
|
|
5543
|
+
* @param params - Parameters for request
|
|
5544
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
5545
|
+
* @param callback - Optional callback that handles the response.
|
|
5546
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
5547
|
+
*/
|
|
5548
|
+
cancel(params: Params$Resource$Operations$Cancel, options: StreamMethodOptions): GaxiosPromise<Readable>;
|
|
5549
|
+
cancel(params?: Params$Resource$Operations$Cancel, options?: MethodOptions): GaxiosPromise<Schema$Empty>;
|
|
5550
|
+
cancel(params: Params$Resource$Operations$Cancel, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
5551
|
+
cancel(params: Params$Resource$Operations$Cancel, options: MethodOptions | BodyResponseCallback<Schema$Empty>, callback: BodyResponseCallback<Schema$Empty>): void;
|
|
5552
|
+
cancel(params: Params$Resource$Operations$Cancel, callback: BodyResponseCallback<Schema$Empty>): void;
|
|
5553
|
+
cancel(callback: BodyResponseCallback<Schema$Empty>): void;
|
|
5317
5554
|
/**
|
|
5318
5555
|
* Retrieves an instance operation that has been performed on an instance.
|
|
5319
5556
|
* @example
|
|
@@ -5458,6 +5695,16 @@ export declare namespace sqladmin_v1beta4 {
|
|
|
5458
5695
|
list(params: Params$Resource$Operations$List, callback: BodyResponseCallback<Schema$OperationsListResponse>): void;
|
|
5459
5696
|
list(callback: BodyResponseCallback<Schema$OperationsListResponse>): void;
|
|
5460
5697
|
}
|
|
5698
|
+
export interface Params$Resource$Operations$Cancel extends StandardParameters {
|
|
5699
|
+
/**
|
|
5700
|
+
* Instance operation ID.
|
|
5701
|
+
*/
|
|
5702
|
+
operation?: string;
|
|
5703
|
+
/**
|
|
5704
|
+
* Project ID of the project that contains the instance.
|
|
5705
|
+
*/
|
|
5706
|
+
project?: string;
|
|
5707
|
+
}
|
|
5461
5708
|
export interface Params$Resource$Operations$Get extends StandardParameters {
|
|
5462
5709
|
/**
|
|
5463
5710
|
* Instance operation ID.
|
|
@@ -5534,6 +5781,7 @@ export declare namespace sqladmin_v1beta4 {
|
|
|
5534
5781
|
* // Example response
|
|
5535
5782
|
* // {
|
|
5536
5783
|
* // "kind": "my_kind",
|
|
5784
|
+
* // "message": "my_message",
|
|
5537
5785
|
* // "minimalTargetSizeGb": "my_minimalTargetSizeGb"
|
|
5538
5786
|
* // }
|
|
5539
5787
|
* }
|
|
@@ -5556,6 +5804,68 @@ export declare namespace sqladmin_v1beta4 {
|
|
|
5556
5804
|
getDiskShrinkConfig(params: Params$Resource$Projects$Instances$Getdiskshrinkconfig, options: MethodOptions | BodyResponseCallback<Schema$SqlInstancesGetDiskShrinkConfigResponse>, callback: BodyResponseCallback<Schema$SqlInstancesGetDiskShrinkConfigResponse>): void;
|
|
5557
5805
|
getDiskShrinkConfig(params: Params$Resource$Projects$Instances$Getdiskshrinkconfig, callback: BodyResponseCallback<Schema$SqlInstancesGetDiskShrinkConfigResponse>): void;
|
|
5558
5806
|
getDiskShrinkConfig(callback: BodyResponseCallback<Schema$SqlInstancesGetDiskShrinkConfigResponse>): void;
|
|
5807
|
+
/**
|
|
5808
|
+
* Get Latest Recovery Time for a given instance.
|
|
5809
|
+
* @example
|
|
5810
|
+
* ```js
|
|
5811
|
+
* // Before running the sample:
|
|
5812
|
+
* // - Enable the API at:
|
|
5813
|
+
* // https://console.developers.google.com/apis/api/sqladmin.googleapis.com
|
|
5814
|
+
* // - Login into gcloud by running:
|
|
5815
|
+
* // `$ gcloud auth application-default login`
|
|
5816
|
+
* // - Install the npm module by running:
|
|
5817
|
+
* // `$ npm install googleapis`
|
|
5818
|
+
*
|
|
5819
|
+
* const {google} = require('googleapis');
|
|
5820
|
+
* const sqladmin = google.sqladmin('v1beta4');
|
|
5821
|
+
*
|
|
5822
|
+
* async function main() {
|
|
5823
|
+
* const auth = new google.auth.GoogleAuth({
|
|
5824
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
5825
|
+
* scopes: [
|
|
5826
|
+
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
5827
|
+
* 'https://www.googleapis.com/auth/sqlservice.admin',
|
|
5828
|
+
* ],
|
|
5829
|
+
* });
|
|
5830
|
+
*
|
|
5831
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
5832
|
+
* const authClient = await auth.getClient();
|
|
5833
|
+
* google.options({auth: authClient});
|
|
5834
|
+
*
|
|
5835
|
+
* // Do the magic
|
|
5836
|
+
* const res = await sql.projects.instances.getLatestRecoveryTime({
|
|
5837
|
+
* // Cloud SQL instance ID. This does not include the project ID.
|
|
5838
|
+
* instance: 'placeholder-value',
|
|
5839
|
+
* // Project ID of the project that contains the instance.
|
|
5840
|
+
* project: 'placeholder-value',
|
|
5841
|
+
* });
|
|
5842
|
+
* console.log(res.data);
|
|
5843
|
+
*
|
|
5844
|
+
* // Example response
|
|
5845
|
+
* // {
|
|
5846
|
+
* // "kind": "my_kind",
|
|
5847
|
+
* // "latestRecoveryTime": "my_latestRecoveryTime"
|
|
5848
|
+
* // }
|
|
5849
|
+
* }
|
|
5850
|
+
*
|
|
5851
|
+
* main().catch(e => {
|
|
5852
|
+
* console.error(e);
|
|
5853
|
+
* throw e;
|
|
5854
|
+
* });
|
|
5855
|
+
*
|
|
5856
|
+
* ```
|
|
5857
|
+
*
|
|
5858
|
+
* @param params - Parameters for request
|
|
5859
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
5860
|
+
* @param callback - Optional callback that handles the response.
|
|
5861
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
5862
|
+
*/
|
|
5863
|
+
getLatestRecoveryTime(params: Params$Resource$Projects$Instances$Getlatestrecoverytime, options: StreamMethodOptions): GaxiosPromise<Readable>;
|
|
5864
|
+
getLatestRecoveryTime(params?: Params$Resource$Projects$Instances$Getlatestrecoverytime, options?: MethodOptions): GaxiosPromise<Schema$SqlInstancesGetLatestRecoveryTimeResponse>;
|
|
5865
|
+
getLatestRecoveryTime(params: Params$Resource$Projects$Instances$Getlatestrecoverytime, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
5866
|
+
getLatestRecoveryTime(params: Params$Resource$Projects$Instances$Getlatestrecoverytime, options: MethodOptions | BodyResponseCallback<Schema$SqlInstancesGetLatestRecoveryTimeResponse>, callback: BodyResponseCallback<Schema$SqlInstancesGetLatestRecoveryTimeResponse>): void;
|
|
5867
|
+
getLatestRecoveryTime(params: Params$Resource$Projects$Instances$Getlatestrecoverytime, callback: BodyResponseCallback<Schema$SqlInstancesGetLatestRecoveryTimeResponse>): void;
|
|
5868
|
+
getLatestRecoveryTime(callback: BodyResponseCallback<Schema$SqlInstancesGetLatestRecoveryTimeResponse>): void;
|
|
5559
5869
|
/**
|
|
5560
5870
|
* Perform Disk Shrink on primary instance.
|
|
5561
5871
|
* @example
|
|
@@ -5847,7 +6157,8 @@ export declare namespace sqladmin_v1beta4 {
|
|
|
5847
6157
|
* // {
|
|
5848
6158
|
* // "mysqlSyncConfig": {},
|
|
5849
6159
|
* // "skipVerification": false,
|
|
5850
|
-
* // "syncMode": "my_syncMode"
|
|
6160
|
+
* // "syncMode": "my_syncMode",
|
|
6161
|
+
* // "syncParallelLevel": "my_syncParallelLevel"
|
|
5851
6162
|
* // }
|
|
5852
6163
|
* },
|
|
5853
6164
|
* });
|
|
@@ -5977,6 +6288,16 @@ export declare namespace sqladmin_v1beta4 {
|
|
|
5977
6288
|
*/
|
|
5978
6289
|
project?: string;
|
|
5979
6290
|
}
|
|
6291
|
+
export interface Params$Resource$Projects$Instances$Getlatestrecoverytime extends StandardParameters {
|
|
6292
|
+
/**
|
|
6293
|
+
* Cloud SQL instance ID. This does not include the project ID.
|
|
6294
|
+
*/
|
|
6295
|
+
instance?: string;
|
|
6296
|
+
/**
|
|
6297
|
+
* Project ID of the project that contains the instance.
|
|
6298
|
+
*/
|
|
6299
|
+
project?: string;
|
|
6300
|
+
}
|
|
5980
6301
|
export interface Params$Resource$Projects$Instances$Performdiskshrink extends StandardParameters {
|
|
5981
6302
|
/**
|
|
5982
6303
|
* Cloud SQL instance ID. This does not include the project ID.
|
package/build/v1beta4.js
CHANGED
|
@@ -887,6 +887,38 @@ var sqladmin_v1beta4;
|
|
|
887
887
|
return (0, googleapis_common_1.createAPIRequest)(parameters);
|
|
888
888
|
}
|
|
889
889
|
}
|
|
890
|
+
reencrypt(paramsOrCallback, optionsOrCallback, callback) {
|
|
891
|
+
let params = (paramsOrCallback ||
|
|
892
|
+
{});
|
|
893
|
+
let options = (optionsOrCallback || {});
|
|
894
|
+
if (typeof paramsOrCallback === 'function') {
|
|
895
|
+
callback = paramsOrCallback;
|
|
896
|
+
params = {};
|
|
897
|
+
options = {};
|
|
898
|
+
}
|
|
899
|
+
if (typeof optionsOrCallback === 'function') {
|
|
900
|
+
callback = optionsOrCallback;
|
|
901
|
+
options = {};
|
|
902
|
+
}
|
|
903
|
+
const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/';
|
|
904
|
+
const parameters = {
|
|
905
|
+
options: Object.assign({
|
|
906
|
+
url: (rootUrl +
|
|
907
|
+
'/sql/v1beta4/projects/{project}/instances/{instance}/reencrypt').replace(/([^:]\/)\/+/g, '$1'),
|
|
908
|
+
method: 'POST',
|
|
909
|
+
}, options),
|
|
910
|
+
params,
|
|
911
|
+
requiredParams: ['project', 'instance'],
|
|
912
|
+
pathParams: ['instance', 'project'],
|
|
913
|
+
context: this.context,
|
|
914
|
+
};
|
|
915
|
+
if (callback) {
|
|
916
|
+
(0, googleapis_common_1.createAPIRequest)(parameters, callback);
|
|
917
|
+
}
|
|
918
|
+
else {
|
|
919
|
+
return (0, googleapis_common_1.createAPIRequest)(parameters);
|
|
920
|
+
}
|
|
921
|
+
}
|
|
890
922
|
resetSslConfig(paramsOrCallback, optionsOrCallback, callback) {
|
|
891
923
|
let params = (paramsOrCallback ||
|
|
892
924
|
{});
|
|
@@ -1147,6 +1179,38 @@ var sqladmin_v1beta4;
|
|
|
1147
1179
|
constructor(context) {
|
|
1148
1180
|
this.context = context;
|
|
1149
1181
|
}
|
|
1182
|
+
cancel(paramsOrCallback, optionsOrCallback, callback) {
|
|
1183
|
+
let params = (paramsOrCallback ||
|
|
1184
|
+
{});
|
|
1185
|
+
let options = (optionsOrCallback || {});
|
|
1186
|
+
if (typeof paramsOrCallback === 'function') {
|
|
1187
|
+
callback = paramsOrCallback;
|
|
1188
|
+
params = {};
|
|
1189
|
+
options = {};
|
|
1190
|
+
}
|
|
1191
|
+
if (typeof optionsOrCallback === 'function') {
|
|
1192
|
+
callback = optionsOrCallback;
|
|
1193
|
+
options = {};
|
|
1194
|
+
}
|
|
1195
|
+
const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/';
|
|
1196
|
+
const parameters = {
|
|
1197
|
+
options: Object.assign({
|
|
1198
|
+
url: (rootUrl +
|
|
1199
|
+
'/sql/v1beta4/projects/{project}/operations/{operation}/cancel').replace(/([^:]\/)\/+/g, '$1'),
|
|
1200
|
+
method: 'POST',
|
|
1201
|
+
}, options),
|
|
1202
|
+
params,
|
|
1203
|
+
requiredParams: ['project', 'operation'],
|
|
1204
|
+
pathParams: ['operation', 'project'],
|
|
1205
|
+
context: this.context,
|
|
1206
|
+
};
|
|
1207
|
+
if (callback) {
|
|
1208
|
+
(0, googleapis_common_1.createAPIRequest)(parameters, callback);
|
|
1209
|
+
}
|
|
1210
|
+
else {
|
|
1211
|
+
return (0, googleapis_common_1.createAPIRequest)(parameters);
|
|
1212
|
+
}
|
|
1213
|
+
}
|
|
1150
1214
|
get(paramsOrCallback, optionsOrCallback, callback) {
|
|
1151
1215
|
let params = (paramsOrCallback || {});
|
|
1152
1216
|
let options = (optionsOrCallback || {});
|
|
@@ -1252,6 +1316,38 @@ var sqladmin_v1beta4;
|
|
|
1252
1316
|
return (0, googleapis_common_1.createAPIRequest)(parameters);
|
|
1253
1317
|
}
|
|
1254
1318
|
}
|
|
1319
|
+
getLatestRecoveryTime(paramsOrCallback, optionsOrCallback, callback) {
|
|
1320
|
+
let params = (paramsOrCallback ||
|
|
1321
|
+
{});
|
|
1322
|
+
let options = (optionsOrCallback || {});
|
|
1323
|
+
if (typeof paramsOrCallback === 'function') {
|
|
1324
|
+
callback = paramsOrCallback;
|
|
1325
|
+
params = {};
|
|
1326
|
+
options = {};
|
|
1327
|
+
}
|
|
1328
|
+
if (typeof optionsOrCallback === 'function') {
|
|
1329
|
+
callback = optionsOrCallback;
|
|
1330
|
+
options = {};
|
|
1331
|
+
}
|
|
1332
|
+
const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/';
|
|
1333
|
+
const parameters = {
|
|
1334
|
+
options: Object.assign({
|
|
1335
|
+
url: (rootUrl +
|
|
1336
|
+
'/sql/v1beta4/projects/{project}/instances/{instance}/getLatestRecoveryTime').replace(/([^:]\/)\/+/g, '$1'),
|
|
1337
|
+
method: 'GET',
|
|
1338
|
+
}, options),
|
|
1339
|
+
params,
|
|
1340
|
+
requiredParams: ['project', 'instance'],
|
|
1341
|
+
pathParams: ['instance', 'project'],
|
|
1342
|
+
context: this.context,
|
|
1343
|
+
};
|
|
1344
|
+
if (callback) {
|
|
1345
|
+
(0, googleapis_common_1.createAPIRequest)(parameters, callback);
|
|
1346
|
+
}
|
|
1347
|
+
else {
|
|
1348
|
+
return (0, googleapis_common_1.createAPIRequest)(parameters);
|
|
1349
|
+
}
|
|
1350
|
+
}
|
|
1255
1351
|
performDiskShrink(paramsOrCallback, optionsOrCallback, callback) {
|
|
1256
1352
|
let params = (paramsOrCallback ||
|
|
1257
1353
|
{});
|