@googleapis/sqladmin 7.1.0 → 8.0.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 +308 -2
- package/build/v1.js +97 -1
- package/build/v1.js.map +1 -1
- package/build/v1beta4.d.ts +308 -2
- package/build/v1beta4.js +97 -1
- package/build/v1beta4.js.map +1 -1
- package/package.json +1 -1
- package/v1.ts +540 -2
- package/v1beta4.ts +540 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [8.0.0](https://github.com/googleapis/google-api-nodejs-client/compare/sqladmin-v7.2.0...sqladmin-v8.0.0) (2023-04-08)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### ⚠ BREAKING CHANGES
|
|
7
|
+
|
|
8
|
+
* This release has breaking changes.
|
|
9
|
+
|
|
10
|
+
### Features
|
|
11
|
+
|
|
12
|
+
* run the generator ([#3208](https://github.com/googleapis/google-api-nodejs-client/issues/3208)) ([f040752](https://github.com/googleapis/google-api-nodejs-client/commit/f0407528c81f2e74ba5e1d35443085d35f5f005d))
|
|
13
|
+
|
|
14
|
+
## [7.2.0](https://github.com/googleapis/google-api-nodejs-client/compare/sqladmin-v7.1.0...sqladmin-v7.2.0) (2023-03-22)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Features
|
|
18
|
+
|
|
19
|
+
* **sqladmin:** update the API ([34c6ad3](https://github.com/googleapis/google-api-nodejs-client/commit/34c6ad32fbc53c4765e17e8fc4b219b68eac6b86))
|
|
20
|
+
|
|
3
21
|
## [7.1.0](https://github.com/googleapis/google-api-nodejs-client/compare/sqladmin-v7.0.0...sqladmin-v7.1.0) (2023-03-13)
|
|
4
22
|
|
|
5
23
|
|
package/build/v1.d.ts
CHANGED
|
@@ -56,7 +56,7 @@ export declare namespace sqladmin_v1 {
|
|
|
56
56
|
upload_protocol?: string;
|
|
57
57
|
}
|
|
58
58
|
/**
|
|
59
|
-
*
|
|
59
|
+
* Cloud SQL Admin API
|
|
60
60
|
*
|
|
61
61
|
* API for Cloud SQL database instance management
|
|
62
62
|
*
|
|
@@ -101,6 +101,15 @@ export declare namespace sqladmin_v1 {
|
|
|
101
101
|
*/
|
|
102
102
|
value?: string | null;
|
|
103
103
|
}
|
|
104
|
+
/**
|
|
105
|
+
* Specifies options for controlling advanced machine features.
|
|
106
|
+
*/
|
|
107
|
+
export interface Schema$AdvancedMachineFeatures {
|
|
108
|
+
/**
|
|
109
|
+
* The number of threads per physical core.
|
|
110
|
+
*/
|
|
111
|
+
threadsPerCore?: number | null;
|
|
112
|
+
}
|
|
104
113
|
/**
|
|
105
114
|
* An Admin API warning message.
|
|
106
115
|
*/
|
|
@@ -410,7 +419,7 @@ export declare namespace sqladmin_v1 {
|
|
|
410
419
|
*/
|
|
411
420
|
export interface Schema$DatabaseInstance {
|
|
412
421
|
/**
|
|
413
|
-
* List all maintenance versions applicable on the instance
|
|
422
|
+
* Output only. List all maintenance versions applicable on the instance
|
|
414
423
|
*/
|
|
415
424
|
availableMaintenanceVersions?: string[] | null;
|
|
416
425
|
/**
|
|
@@ -1404,6 +1413,15 @@ export declare namespace sqladmin_v1 {
|
|
|
1404
1413
|
*/
|
|
1405
1414
|
reuseInterval?: number | null;
|
|
1406
1415
|
}
|
|
1416
|
+
/**
|
|
1417
|
+
* Perform disk shrink context.
|
|
1418
|
+
*/
|
|
1419
|
+
export interface Schema$PerformDiskShrinkContext {
|
|
1420
|
+
/**
|
|
1421
|
+
* The target disk shrink size in GigaBytes.
|
|
1422
|
+
*/
|
|
1423
|
+
targetSizeGb?: string | null;
|
|
1424
|
+
}
|
|
1407
1425
|
/**
|
|
1408
1426
|
* Read-replica configuration for connecting to the primary instance.
|
|
1409
1427
|
*/
|
|
@@ -1477,6 +1495,10 @@ export declare namespace sqladmin_v1 {
|
|
|
1477
1495
|
* Active Directory configuration, relevant only for Cloud SQL for SQL Server.
|
|
1478
1496
|
*/
|
|
1479
1497
|
activeDirectoryConfig?: Schema$SqlActiveDirectoryConfig;
|
|
1498
|
+
/**
|
|
1499
|
+
* Specifies advance machine configuration for the instance relevant only for SQL Server.
|
|
1500
|
+
*/
|
|
1501
|
+
advancedMachineFeatures?: Schema$AdvancedMachineFeatures;
|
|
1480
1502
|
/**
|
|
1481
1503
|
* The App Engine app IDs that can access this instance. (Deprecated) Applied to First Generation instances only.
|
|
1482
1504
|
*/
|
|
@@ -1618,6 +1640,19 @@ export declare namespace sqladmin_v1 {
|
|
|
1618
1640
|
*/
|
|
1619
1641
|
type?: string | null;
|
|
1620
1642
|
}
|
|
1643
|
+
/**
|
|
1644
|
+
* Instance get disk shrink config response.
|
|
1645
|
+
*/
|
|
1646
|
+
export interface Schema$SqlInstancesGetDiskShrinkConfigResponse {
|
|
1647
|
+
/**
|
|
1648
|
+
* This is always `sql#getDiskShrinkConfig`.
|
|
1649
|
+
*/
|
|
1650
|
+
kind?: string | null;
|
|
1651
|
+
/**
|
|
1652
|
+
* The minimum size to which a disk can be shrunk in GigaBytes.
|
|
1653
|
+
*/
|
|
1654
|
+
minimalTargetSizeGb?: string | null;
|
|
1655
|
+
}
|
|
1621
1656
|
/**
|
|
1622
1657
|
* Reschedule options for maintenance windows.
|
|
1623
1658
|
*/
|
|
@@ -1627,6 +1662,11 @@ export declare namespace sqladmin_v1 {
|
|
|
1627
1662
|
*/
|
|
1628
1663
|
reschedule?: Schema$Reschedule;
|
|
1629
1664
|
}
|
|
1665
|
+
/**
|
|
1666
|
+
* Instance reset replica size request.
|
|
1667
|
+
*/
|
|
1668
|
+
export interface Schema$SqlInstancesResetReplicaSizeRequest {
|
|
1669
|
+
}
|
|
1630
1670
|
/**
|
|
1631
1671
|
* Instance start external sync request.
|
|
1632
1672
|
*/
|
|
@@ -5460,6 +5500,152 @@ export declare namespace sqladmin_v1 {
|
|
|
5460
5500
|
export class Resource$Projects$Instances {
|
|
5461
5501
|
context: APIRequestContext;
|
|
5462
5502
|
constructor(context: APIRequestContext);
|
|
5503
|
+
/**
|
|
5504
|
+
* Get Disk Shrink Config for a given instance.
|
|
5505
|
+
* @example
|
|
5506
|
+
* ```js
|
|
5507
|
+
* // Before running the sample:
|
|
5508
|
+
* // - Enable the API at:
|
|
5509
|
+
* // https://console.developers.google.com/apis/api/sqladmin.googleapis.com
|
|
5510
|
+
* // - Login into gcloud by running:
|
|
5511
|
+
* // `$ gcloud auth application-default login`
|
|
5512
|
+
* // - Install the npm module by running:
|
|
5513
|
+
* // `$ npm install googleapis`
|
|
5514
|
+
*
|
|
5515
|
+
* const {google} = require('googleapis');
|
|
5516
|
+
* const sqladmin = google.sqladmin('v1');
|
|
5517
|
+
*
|
|
5518
|
+
* async function main() {
|
|
5519
|
+
* const auth = new google.auth.GoogleAuth({
|
|
5520
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
5521
|
+
* scopes: [
|
|
5522
|
+
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
5523
|
+
* 'https://www.googleapis.com/auth/sqlservice.admin',
|
|
5524
|
+
* ],
|
|
5525
|
+
* });
|
|
5526
|
+
*
|
|
5527
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
5528
|
+
* const authClient = await auth.getClient();
|
|
5529
|
+
* google.options({auth: authClient});
|
|
5530
|
+
*
|
|
5531
|
+
* // Do the magic
|
|
5532
|
+
* const res = await sql.projects.instances.getDiskShrinkConfig({
|
|
5533
|
+
* // Cloud SQL instance ID. This does not include the project ID.
|
|
5534
|
+
* instance: 'placeholder-value',
|
|
5535
|
+
* // Project ID of the project that contains the instance.
|
|
5536
|
+
* project: 'placeholder-value',
|
|
5537
|
+
* });
|
|
5538
|
+
* console.log(res.data);
|
|
5539
|
+
*
|
|
5540
|
+
* // Example response
|
|
5541
|
+
* // {
|
|
5542
|
+
* // "kind": "my_kind",
|
|
5543
|
+
* // "minimalTargetSizeGb": "my_minimalTargetSizeGb"
|
|
5544
|
+
* // }
|
|
5545
|
+
* }
|
|
5546
|
+
*
|
|
5547
|
+
* main().catch(e => {
|
|
5548
|
+
* console.error(e);
|
|
5549
|
+
* throw e;
|
|
5550
|
+
* });
|
|
5551
|
+
*
|
|
5552
|
+
* ```
|
|
5553
|
+
*
|
|
5554
|
+
* @param params - Parameters for request
|
|
5555
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
5556
|
+
* @param callback - Optional callback that handles the response.
|
|
5557
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
5558
|
+
*/
|
|
5559
|
+
getDiskShrinkConfig(params: Params$Resource$Projects$Instances$Getdiskshrinkconfig, options: StreamMethodOptions): GaxiosPromise<Readable>;
|
|
5560
|
+
getDiskShrinkConfig(params?: Params$Resource$Projects$Instances$Getdiskshrinkconfig, options?: MethodOptions): GaxiosPromise<Schema$SqlInstancesGetDiskShrinkConfigResponse>;
|
|
5561
|
+
getDiskShrinkConfig(params: Params$Resource$Projects$Instances$Getdiskshrinkconfig, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
5562
|
+
getDiskShrinkConfig(params: Params$Resource$Projects$Instances$Getdiskshrinkconfig, options: MethodOptions | BodyResponseCallback<Schema$SqlInstancesGetDiskShrinkConfigResponse>, callback: BodyResponseCallback<Schema$SqlInstancesGetDiskShrinkConfigResponse>): void;
|
|
5563
|
+
getDiskShrinkConfig(params: Params$Resource$Projects$Instances$Getdiskshrinkconfig, callback: BodyResponseCallback<Schema$SqlInstancesGetDiskShrinkConfigResponse>): void;
|
|
5564
|
+
getDiskShrinkConfig(callback: BodyResponseCallback<Schema$SqlInstancesGetDiskShrinkConfigResponse>): void;
|
|
5565
|
+
/**
|
|
5566
|
+
* Perform Disk Shrink on primary instance.
|
|
5567
|
+
* @example
|
|
5568
|
+
* ```js
|
|
5569
|
+
* // Before running the sample:
|
|
5570
|
+
* // - Enable the API at:
|
|
5571
|
+
* // https://console.developers.google.com/apis/api/sqladmin.googleapis.com
|
|
5572
|
+
* // - Login into gcloud by running:
|
|
5573
|
+
* // `$ gcloud auth application-default login`
|
|
5574
|
+
* // - Install the npm module by running:
|
|
5575
|
+
* // `$ npm install googleapis`
|
|
5576
|
+
*
|
|
5577
|
+
* const {google} = require('googleapis');
|
|
5578
|
+
* const sqladmin = google.sqladmin('v1');
|
|
5579
|
+
*
|
|
5580
|
+
* async function main() {
|
|
5581
|
+
* const auth = new google.auth.GoogleAuth({
|
|
5582
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
5583
|
+
* scopes: [
|
|
5584
|
+
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
5585
|
+
* 'https://www.googleapis.com/auth/sqlservice.admin',
|
|
5586
|
+
* ],
|
|
5587
|
+
* });
|
|
5588
|
+
*
|
|
5589
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
5590
|
+
* const authClient = await auth.getClient();
|
|
5591
|
+
* google.options({auth: authClient});
|
|
5592
|
+
*
|
|
5593
|
+
* // Do the magic
|
|
5594
|
+
* const res = await sql.projects.instances.performDiskShrink({
|
|
5595
|
+
* // Cloud SQL instance ID. This does not include the project ID.
|
|
5596
|
+
* instance: 'placeholder-value',
|
|
5597
|
+
* // Project ID of the project that contains the instance.
|
|
5598
|
+
* project: 'placeholder-value',
|
|
5599
|
+
*
|
|
5600
|
+
* // Request body metadata
|
|
5601
|
+
* requestBody: {
|
|
5602
|
+
* // request body parameters
|
|
5603
|
+
* // {
|
|
5604
|
+
* // "targetSizeGb": "my_targetSizeGb"
|
|
5605
|
+
* // }
|
|
5606
|
+
* },
|
|
5607
|
+
* });
|
|
5608
|
+
* console.log(res.data);
|
|
5609
|
+
*
|
|
5610
|
+
* // Example response
|
|
5611
|
+
* // {
|
|
5612
|
+
* // "backupContext": {},
|
|
5613
|
+
* // "endTime": "my_endTime",
|
|
5614
|
+
* // "error": {},
|
|
5615
|
+
* // "exportContext": {},
|
|
5616
|
+
* // "importContext": {},
|
|
5617
|
+
* // "insertTime": "my_insertTime",
|
|
5618
|
+
* // "kind": "my_kind",
|
|
5619
|
+
* // "name": "my_name",
|
|
5620
|
+
* // "operationType": "my_operationType",
|
|
5621
|
+
* // "selfLink": "my_selfLink",
|
|
5622
|
+
* // "startTime": "my_startTime",
|
|
5623
|
+
* // "status": "my_status",
|
|
5624
|
+
* // "targetId": "my_targetId",
|
|
5625
|
+
* // "targetLink": "my_targetLink",
|
|
5626
|
+
* // "targetProject": "my_targetProject",
|
|
5627
|
+
* // "user": "my_user"
|
|
5628
|
+
* // }
|
|
5629
|
+
* }
|
|
5630
|
+
*
|
|
5631
|
+
* main().catch(e => {
|
|
5632
|
+
* console.error(e);
|
|
5633
|
+
* throw e;
|
|
5634
|
+
* });
|
|
5635
|
+
*
|
|
5636
|
+
* ```
|
|
5637
|
+
*
|
|
5638
|
+
* @param params - Parameters for request
|
|
5639
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
5640
|
+
* @param callback - Optional callback that handles the response.
|
|
5641
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
5642
|
+
*/
|
|
5643
|
+
performDiskShrink(params: Params$Resource$Projects$Instances$Performdiskshrink, options: StreamMethodOptions): GaxiosPromise<Readable>;
|
|
5644
|
+
performDiskShrink(params?: Params$Resource$Projects$Instances$Performdiskshrink, options?: MethodOptions): GaxiosPromise<Schema$Operation>;
|
|
5645
|
+
performDiskShrink(params: Params$Resource$Projects$Instances$Performdiskshrink, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
5646
|
+
performDiskShrink(params: Params$Resource$Projects$Instances$Performdiskshrink, options: MethodOptions | BodyResponseCallback<Schema$Operation>, callback: BodyResponseCallback<Schema$Operation>): void;
|
|
5647
|
+
performDiskShrink(params: Params$Resource$Projects$Instances$Performdiskshrink, callback: BodyResponseCallback<Schema$Operation>): void;
|
|
5648
|
+
performDiskShrink(callback: BodyResponseCallback<Schema$Operation>): void;
|
|
5463
5649
|
/**
|
|
5464
5650
|
* Reschedules the maintenance on the given instance.
|
|
5465
5651
|
* @example
|
|
@@ -5544,6 +5730,88 @@ export declare namespace sqladmin_v1 {
|
|
|
5544
5730
|
rescheduleMaintenance(params: Params$Resource$Projects$Instances$Reschedulemaintenance, options: MethodOptions | BodyResponseCallback<Schema$Operation>, callback: BodyResponseCallback<Schema$Operation>): void;
|
|
5545
5731
|
rescheduleMaintenance(params: Params$Resource$Projects$Instances$Reschedulemaintenance, callback: BodyResponseCallback<Schema$Operation>): void;
|
|
5546
5732
|
rescheduleMaintenance(callback: BodyResponseCallback<Schema$Operation>): void;
|
|
5733
|
+
/**
|
|
5734
|
+
* Reset Replica Size to primary instance disk size.
|
|
5735
|
+
* @example
|
|
5736
|
+
* ```js
|
|
5737
|
+
* // Before running the sample:
|
|
5738
|
+
* // - Enable the API at:
|
|
5739
|
+
* // https://console.developers.google.com/apis/api/sqladmin.googleapis.com
|
|
5740
|
+
* // - Login into gcloud by running:
|
|
5741
|
+
* // `$ gcloud auth application-default login`
|
|
5742
|
+
* // - Install the npm module by running:
|
|
5743
|
+
* // `$ npm install googleapis`
|
|
5744
|
+
*
|
|
5745
|
+
* const {google} = require('googleapis');
|
|
5746
|
+
* const sqladmin = google.sqladmin('v1');
|
|
5747
|
+
*
|
|
5748
|
+
* async function main() {
|
|
5749
|
+
* const auth = new google.auth.GoogleAuth({
|
|
5750
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
5751
|
+
* scopes: [
|
|
5752
|
+
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
5753
|
+
* 'https://www.googleapis.com/auth/sqlservice.admin',
|
|
5754
|
+
* ],
|
|
5755
|
+
* });
|
|
5756
|
+
*
|
|
5757
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
5758
|
+
* const authClient = await auth.getClient();
|
|
5759
|
+
* google.options({auth: authClient});
|
|
5760
|
+
*
|
|
5761
|
+
* // Do the magic
|
|
5762
|
+
* const res = await sql.projects.instances.resetReplicaSize({
|
|
5763
|
+
* // Cloud SQL read replica instance name.
|
|
5764
|
+
* instance: 'placeholder-value',
|
|
5765
|
+
* // ID of the project that contains the read replica.
|
|
5766
|
+
* project: 'placeholder-value',
|
|
5767
|
+
*
|
|
5768
|
+
* // Request body metadata
|
|
5769
|
+
* requestBody: {
|
|
5770
|
+
* // request body parameters
|
|
5771
|
+
* // {}
|
|
5772
|
+
* },
|
|
5773
|
+
* });
|
|
5774
|
+
* console.log(res.data);
|
|
5775
|
+
*
|
|
5776
|
+
* // Example response
|
|
5777
|
+
* // {
|
|
5778
|
+
* // "backupContext": {},
|
|
5779
|
+
* // "endTime": "my_endTime",
|
|
5780
|
+
* // "error": {},
|
|
5781
|
+
* // "exportContext": {},
|
|
5782
|
+
* // "importContext": {},
|
|
5783
|
+
* // "insertTime": "my_insertTime",
|
|
5784
|
+
* // "kind": "my_kind",
|
|
5785
|
+
* // "name": "my_name",
|
|
5786
|
+
* // "operationType": "my_operationType",
|
|
5787
|
+
* // "selfLink": "my_selfLink",
|
|
5788
|
+
* // "startTime": "my_startTime",
|
|
5789
|
+
* // "status": "my_status",
|
|
5790
|
+
* // "targetId": "my_targetId",
|
|
5791
|
+
* // "targetLink": "my_targetLink",
|
|
5792
|
+
* // "targetProject": "my_targetProject",
|
|
5793
|
+
* // "user": "my_user"
|
|
5794
|
+
* // }
|
|
5795
|
+
* }
|
|
5796
|
+
*
|
|
5797
|
+
* main().catch(e => {
|
|
5798
|
+
* console.error(e);
|
|
5799
|
+
* throw e;
|
|
5800
|
+
* });
|
|
5801
|
+
*
|
|
5802
|
+
* ```
|
|
5803
|
+
*
|
|
5804
|
+
* @param params - Parameters for request
|
|
5805
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
5806
|
+
* @param callback - Optional callback that handles the response.
|
|
5807
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
5808
|
+
*/
|
|
5809
|
+
resetReplicaSize(params: Params$Resource$Projects$Instances$Resetreplicasize, options: StreamMethodOptions): GaxiosPromise<Readable>;
|
|
5810
|
+
resetReplicaSize(params?: Params$Resource$Projects$Instances$Resetreplicasize, options?: MethodOptions): GaxiosPromise<Schema$Operation>;
|
|
5811
|
+
resetReplicaSize(params: Params$Resource$Projects$Instances$Resetreplicasize, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
|
|
5812
|
+
resetReplicaSize(params: Params$Resource$Projects$Instances$Resetreplicasize, options: MethodOptions | BodyResponseCallback<Schema$Operation>, callback: BodyResponseCallback<Schema$Operation>): void;
|
|
5813
|
+
resetReplicaSize(params: Params$Resource$Projects$Instances$Resetreplicasize, callback: BodyResponseCallback<Schema$Operation>): void;
|
|
5814
|
+
resetReplicaSize(callback: BodyResponseCallback<Schema$Operation>): void;
|
|
5547
5815
|
/**
|
|
5548
5816
|
* Start External primary instance migration.
|
|
5549
5817
|
* @example
|
|
@@ -5705,6 +5973,30 @@ export declare namespace sqladmin_v1 {
|
|
|
5705
5973
|
verifyExternalSyncSettings(params: Params$Resource$Projects$Instances$Verifyexternalsyncsettings, callback: BodyResponseCallback<Schema$SqlInstancesVerifyExternalSyncSettingsResponse>): void;
|
|
5706
5974
|
verifyExternalSyncSettings(callback: BodyResponseCallback<Schema$SqlInstancesVerifyExternalSyncSettingsResponse>): void;
|
|
5707
5975
|
}
|
|
5976
|
+
export interface Params$Resource$Projects$Instances$Getdiskshrinkconfig extends StandardParameters {
|
|
5977
|
+
/**
|
|
5978
|
+
* Cloud SQL instance ID. This does not include the project ID.
|
|
5979
|
+
*/
|
|
5980
|
+
instance?: string;
|
|
5981
|
+
/**
|
|
5982
|
+
* Project ID of the project that contains the instance.
|
|
5983
|
+
*/
|
|
5984
|
+
project?: string;
|
|
5985
|
+
}
|
|
5986
|
+
export interface Params$Resource$Projects$Instances$Performdiskshrink extends StandardParameters {
|
|
5987
|
+
/**
|
|
5988
|
+
* Cloud SQL instance ID. This does not include the project ID.
|
|
5989
|
+
*/
|
|
5990
|
+
instance?: string;
|
|
5991
|
+
/**
|
|
5992
|
+
* Project ID of the project that contains the instance.
|
|
5993
|
+
*/
|
|
5994
|
+
project?: string;
|
|
5995
|
+
/**
|
|
5996
|
+
* Request body metadata
|
|
5997
|
+
*/
|
|
5998
|
+
requestBody?: Schema$PerformDiskShrinkContext;
|
|
5999
|
+
}
|
|
5708
6000
|
export interface Params$Resource$Projects$Instances$Reschedulemaintenance extends StandardParameters {
|
|
5709
6001
|
/**
|
|
5710
6002
|
* Cloud SQL instance ID. This does not include the project ID.
|
|
@@ -5719,6 +6011,20 @@ export declare namespace sqladmin_v1 {
|
|
|
5719
6011
|
*/
|
|
5720
6012
|
requestBody?: Schema$SqlInstancesRescheduleMaintenanceRequestBody;
|
|
5721
6013
|
}
|
|
6014
|
+
export interface Params$Resource$Projects$Instances$Resetreplicasize extends StandardParameters {
|
|
6015
|
+
/**
|
|
6016
|
+
* Cloud SQL read replica instance name.
|
|
6017
|
+
*/
|
|
6018
|
+
instance?: string;
|
|
6019
|
+
/**
|
|
6020
|
+
* ID of the project that contains the read replica.
|
|
6021
|
+
*/
|
|
6022
|
+
project?: string;
|
|
6023
|
+
/**
|
|
6024
|
+
* Request body metadata
|
|
6025
|
+
*/
|
|
6026
|
+
requestBody?: Schema$SqlInstancesResetReplicaSizeRequest;
|
|
6027
|
+
}
|
|
5722
6028
|
export interface Params$Resource$Projects$Instances$Startexternalsync extends StandardParameters {
|
|
5723
6029
|
/**
|
|
5724
6030
|
* Cloud SQL instance ID. This does not include the project ID.
|
package/build/v1.js
CHANGED
|
@@ -22,7 +22,7 @@ const googleapis_common_1 = require("googleapis-common");
|
|
|
22
22
|
var sqladmin_v1;
|
|
23
23
|
(function (sqladmin_v1) {
|
|
24
24
|
/**
|
|
25
|
-
*
|
|
25
|
+
* Cloud SQL Admin API
|
|
26
26
|
*
|
|
27
27
|
* API for Cloud SQL database instance management
|
|
28
28
|
*
|
|
@@ -1211,6 +1211,70 @@ var sqladmin_v1;
|
|
|
1211
1211
|
constructor(context) {
|
|
1212
1212
|
this.context = context;
|
|
1213
1213
|
}
|
|
1214
|
+
getDiskShrinkConfig(paramsOrCallback, optionsOrCallback, callback) {
|
|
1215
|
+
let params = (paramsOrCallback ||
|
|
1216
|
+
{});
|
|
1217
|
+
let options = (optionsOrCallback || {});
|
|
1218
|
+
if (typeof paramsOrCallback === 'function') {
|
|
1219
|
+
callback = paramsOrCallback;
|
|
1220
|
+
params = {};
|
|
1221
|
+
options = {};
|
|
1222
|
+
}
|
|
1223
|
+
if (typeof optionsOrCallback === 'function') {
|
|
1224
|
+
callback = optionsOrCallback;
|
|
1225
|
+
options = {};
|
|
1226
|
+
}
|
|
1227
|
+
const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/';
|
|
1228
|
+
const parameters = {
|
|
1229
|
+
options: Object.assign({
|
|
1230
|
+
url: (rootUrl +
|
|
1231
|
+
'/v1/projects/{project}/instances/{instance}/getDiskShrinkConfig').replace(/([^:]\/)\/+/g, '$1'),
|
|
1232
|
+
method: 'GET',
|
|
1233
|
+
}, options),
|
|
1234
|
+
params,
|
|
1235
|
+
requiredParams: ['project', 'instance'],
|
|
1236
|
+
pathParams: ['instance', 'project'],
|
|
1237
|
+
context: this.context,
|
|
1238
|
+
};
|
|
1239
|
+
if (callback) {
|
|
1240
|
+
(0, googleapis_common_1.createAPIRequest)(parameters, callback);
|
|
1241
|
+
}
|
|
1242
|
+
else {
|
|
1243
|
+
return (0, googleapis_common_1.createAPIRequest)(parameters);
|
|
1244
|
+
}
|
|
1245
|
+
}
|
|
1246
|
+
performDiskShrink(paramsOrCallback, optionsOrCallback, callback) {
|
|
1247
|
+
let params = (paramsOrCallback ||
|
|
1248
|
+
{});
|
|
1249
|
+
let options = (optionsOrCallback || {});
|
|
1250
|
+
if (typeof paramsOrCallback === 'function') {
|
|
1251
|
+
callback = paramsOrCallback;
|
|
1252
|
+
params = {};
|
|
1253
|
+
options = {};
|
|
1254
|
+
}
|
|
1255
|
+
if (typeof optionsOrCallback === 'function') {
|
|
1256
|
+
callback = optionsOrCallback;
|
|
1257
|
+
options = {};
|
|
1258
|
+
}
|
|
1259
|
+
const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/';
|
|
1260
|
+
const parameters = {
|
|
1261
|
+
options: Object.assign({
|
|
1262
|
+
url: (rootUrl +
|
|
1263
|
+
'/v1/projects/{project}/instances/{instance}/performDiskShrink').replace(/([^:]\/)\/+/g, '$1'),
|
|
1264
|
+
method: 'POST',
|
|
1265
|
+
}, options),
|
|
1266
|
+
params,
|
|
1267
|
+
requiredParams: ['project', 'instance'],
|
|
1268
|
+
pathParams: ['instance', 'project'],
|
|
1269
|
+
context: this.context,
|
|
1270
|
+
};
|
|
1271
|
+
if (callback) {
|
|
1272
|
+
(0, googleapis_common_1.createAPIRequest)(parameters, callback);
|
|
1273
|
+
}
|
|
1274
|
+
else {
|
|
1275
|
+
return (0, googleapis_common_1.createAPIRequest)(parameters);
|
|
1276
|
+
}
|
|
1277
|
+
}
|
|
1214
1278
|
rescheduleMaintenance(paramsOrCallback, optionsOrCallback, callback) {
|
|
1215
1279
|
let params = (paramsOrCallback ||
|
|
1216
1280
|
{});
|
|
@@ -1243,6 +1307,38 @@ var sqladmin_v1;
|
|
|
1243
1307
|
return (0, googleapis_common_1.createAPIRequest)(parameters);
|
|
1244
1308
|
}
|
|
1245
1309
|
}
|
|
1310
|
+
resetReplicaSize(paramsOrCallback, optionsOrCallback, callback) {
|
|
1311
|
+
let params = (paramsOrCallback ||
|
|
1312
|
+
{});
|
|
1313
|
+
let options = (optionsOrCallback || {});
|
|
1314
|
+
if (typeof paramsOrCallback === 'function') {
|
|
1315
|
+
callback = paramsOrCallback;
|
|
1316
|
+
params = {};
|
|
1317
|
+
options = {};
|
|
1318
|
+
}
|
|
1319
|
+
if (typeof optionsOrCallback === 'function') {
|
|
1320
|
+
callback = optionsOrCallback;
|
|
1321
|
+
options = {};
|
|
1322
|
+
}
|
|
1323
|
+
const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/';
|
|
1324
|
+
const parameters = {
|
|
1325
|
+
options: Object.assign({
|
|
1326
|
+
url: (rootUrl +
|
|
1327
|
+
'/v1/projects/{project}/instances/{instance}/resetReplicaSize').replace(/([^:]\/)\/+/g, '$1'),
|
|
1328
|
+
method: 'POST',
|
|
1329
|
+
}, options),
|
|
1330
|
+
params,
|
|
1331
|
+
requiredParams: ['project', 'instance'],
|
|
1332
|
+
pathParams: ['instance', 'project'],
|
|
1333
|
+
context: this.context,
|
|
1334
|
+
};
|
|
1335
|
+
if (callback) {
|
|
1336
|
+
(0, googleapis_common_1.createAPIRequest)(parameters, callback);
|
|
1337
|
+
}
|
|
1338
|
+
else {
|
|
1339
|
+
return (0, googleapis_common_1.createAPIRequest)(parameters);
|
|
1340
|
+
}
|
|
1341
|
+
}
|
|
1246
1342
|
startExternalSync(paramsOrCallback, optionsOrCallback, callback) {
|
|
1247
1343
|
let params = (paramsOrCallback ||
|
|
1248
1344
|
{});
|