@googleapis/sqladmin 7.2.0 → 9.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 +22 -0
- package/build/v1.d.ts +232 -4
- package/build/v1.js +62 -0
- package/build/v1.js.map +1 -1
- package/build/v1beta4.d.ts +232 -4
- package/build/v1beta4.js +64 -0
- package/build/v1beta4.js.map +1 -1
- package/package.json +1 -1
- package/v1.ts +382 -5
- package/v1beta4.ts +384 -5
package/v1.ts
CHANGED
|
@@ -163,6 +163,15 @@ export namespace sqladmin_v1 {
|
|
|
163
163
|
*/
|
|
164
164
|
value?: string | null;
|
|
165
165
|
}
|
|
166
|
+
/**
|
|
167
|
+
* Specifies options for controlling advanced machine features.
|
|
168
|
+
*/
|
|
169
|
+
export interface Schema$AdvancedMachineFeatures {
|
|
170
|
+
/**
|
|
171
|
+
* The number of threads per physical core.
|
|
172
|
+
*/
|
|
173
|
+
threadsPerCore?: number | null;
|
|
174
|
+
}
|
|
166
175
|
/**
|
|
167
176
|
* An Admin API warning message.
|
|
168
177
|
*/
|
|
@@ -205,7 +214,7 @@ export namespace sqladmin_v1 {
|
|
|
205
214
|
*/
|
|
206
215
|
location?: string | null;
|
|
207
216
|
/**
|
|
208
|
-
*
|
|
217
|
+
* Whether point in time recovery is enabled.
|
|
209
218
|
*/
|
|
210
219
|
pointInTimeRecoveryEnabled?: boolean | null;
|
|
211
220
|
/**
|
|
@@ -234,6 +243,19 @@ export namespace sqladmin_v1 {
|
|
|
234
243
|
*/
|
|
235
244
|
kind?: string | null;
|
|
236
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
|
+
}
|
|
237
259
|
/**
|
|
238
260
|
* We currently only support backup retention by specifying the number of backups we will retain.
|
|
239
261
|
*/
|
|
@@ -399,6 +421,10 @@ export namespace sqladmin_v1 {
|
|
|
399
421
|
* 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`.
|
|
400
422
|
*/
|
|
401
423
|
databaseVersion?: string | null;
|
|
424
|
+
/**
|
|
425
|
+
* The dns name of the instance.
|
|
426
|
+
*/
|
|
427
|
+
dnsName?: string | null;
|
|
402
428
|
/**
|
|
403
429
|
* The assigned IP addresses for the instance.
|
|
404
430
|
*/
|
|
@@ -472,7 +498,7 @@ export namespace sqladmin_v1 {
|
|
|
472
498
|
*/
|
|
473
499
|
export interface Schema$DatabaseInstance {
|
|
474
500
|
/**
|
|
475
|
-
* List all maintenance versions applicable on the instance
|
|
501
|
+
* Output only. List all maintenance versions applicable on the instance
|
|
476
502
|
*/
|
|
477
503
|
availableMaintenanceVersions?: string[] | null;
|
|
478
504
|
/**
|
|
@@ -739,6 +765,10 @@ export namespace sqladmin_v1 {
|
|
|
739
765
|
*/
|
|
740
766
|
kmsKeyVersionName?: string | null;
|
|
741
767
|
}
|
|
768
|
+
/**
|
|
769
|
+
* 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); \}
|
|
770
|
+
*/
|
|
771
|
+
export interface Schema$Empty {}
|
|
742
772
|
/**
|
|
743
773
|
* Database instance export context.
|
|
744
774
|
*/
|
|
@@ -746,7 +776,13 @@ export namespace sqladmin_v1 {
|
|
|
746
776
|
/**
|
|
747
777
|
* Options for exporting BAK files (SQL Server-only)
|
|
748
778
|
*/
|
|
749
|
-
bakExportOptions?: {
|
|
779
|
+
bakExportOptions?: {
|
|
780
|
+
bakType?: string;
|
|
781
|
+
copyOnly?: boolean;
|
|
782
|
+
differentialBase?: boolean;
|
|
783
|
+
stripeCount?: number;
|
|
784
|
+
striped?: boolean;
|
|
785
|
+
} | null;
|
|
750
786
|
/**
|
|
751
787
|
* Options for exporting data as CSV. `MySQL` and `PostgreSQL` instances only.
|
|
752
788
|
*/
|
|
@@ -895,11 +931,14 @@ export namespace sqladmin_v1 {
|
|
|
895
931
|
* Import parameters specific to SQL Server .BAK files
|
|
896
932
|
*/
|
|
897
933
|
bakImportOptions?: {
|
|
934
|
+
bakType?: string;
|
|
898
935
|
encryptionOptions?: {
|
|
899
936
|
certPath?: string;
|
|
900
937
|
pvkPassword?: string;
|
|
901
938
|
pvkPath?: string;
|
|
902
939
|
};
|
|
940
|
+
noRecovery?: boolean;
|
|
941
|
+
recoveryOnly?: boolean;
|
|
903
942
|
striped?: boolean;
|
|
904
943
|
} | null;
|
|
905
944
|
/**
|
|
@@ -1056,6 +1095,15 @@ export namespace sqladmin_v1 {
|
|
|
1056
1095
|
*/
|
|
1057
1096
|
kind?: string | null;
|
|
1058
1097
|
}
|
|
1098
|
+
/**
|
|
1099
|
+
* Database Instance reencrypt request.
|
|
1100
|
+
*/
|
|
1101
|
+
export interface Schema$InstancesReencryptRequest {
|
|
1102
|
+
/**
|
|
1103
|
+
* Configuration specific to backup re-encryption
|
|
1104
|
+
*/
|
|
1105
|
+
backupReencryptionConfig?: Schema$BackupReencryptionConfig;
|
|
1106
|
+
}
|
|
1059
1107
|
/**
|
|
1060
1108
|
* Database instance restore backup request.
|
|
1061
1109
|
*/
|
|
@@ -1540,6 +1588,10 @@ export namespace sqladmin_v1 {
|
|
|
1540
1588
|
* Active Directory configuration, relevant only for Cloud SQL for SQL Server.
|
|
1541
1589
|
*/
|
|
1542
1590
|
activeDirectoryConfig?: Schema$SqlActiveDirectoryConfig;
|
|
1591
|
+
/**
|
|
1592
|
+
* Specifies advance machine configuration for the instance relevant only for SQL Server.
|
|
1593
|
+
*/
|
|
1594
|
+
advancedMachineFeatures?: Schema$AdvancedMachineFeatures;
|
|
1543
1595
|
/**
|
|
1544
1596
|
* The App Engine app IDs that can access this instance. (Deprecated) Applied to First Generation instances only.
|
|
1545
1597
|
*/
|
|
@@ -1687,6 +1739,10 @@ export namespace sqladmin_v1 {
|
|
|
1687
1739
|
* This is always `sql#getDiskShrinkConfig`.
|
|
1688
1740
|
*/
|
|
1689
1741
|
kind?: string | null;
|
|
1742
|
+
/**
|
|
1743
|
+
* Additional message to customers.
|
|
1744
|
+
*/
|
|
1745
|
+
message?: string | null;
|
|
1690
1746
|
/**
|
|
1691
1747
|
* The minimum size to which a disk can be shrunk in GigaBytes.
|
|
1692
1748
|
*/
|
|
@@ -1721,6 +1777,10 @@ export namespace sqladmin_v1 {
|
|
|
1721
1777
|
* External sync mode.
|
|
1722
1778
|
*/
|
|
1723
1779
|
syncMode?: string | null;
|
|
1780
|
+
/**
|
|
1781
|
+
* Optional. Parallel level for initial data sync. Currently only applicable for MySQL.
|
|
1782
|
+
*/
|
|
1783
|
+
syncParallelLevel?: string | null;
|
|
1724
1784
|
}
|
|
1725
1785
|
/**
|
|
1726
1786
|
* Instance verify external sync settings request.
|
|
@@ -2992,6 +3052,7 @@ export namespace sqladmin_v1 {
|
|
|
2992
3052
|
* // {
|
|
2993
3053
|
* // "backendType": "my_backendType",
|
|
2994
3054
|
* // "databaseVersion": "my_databaseVersion",
|
|
3055
|
+
* // "dnsName": "my_dnsName",
|
|
2995
3056
|
* // "ipAddresses": [],
|
|
2996
3057
|
* // "kind": "my_kind",
|
|
2997
3058
|
* // "region": "my_region",
|
|
@@ -3421,7 +3482,7 @@ export namespace sqladmin_v1 {
|
|
|
3421
3482
|
}
|
|
3422
3483
|
|
|
3423
3484
|
/**
|
|
3424
|
-
* Inserts a resource containing information about a database inside a Cloud SQL instance.
|
|
3485
|
+
* Inserts a resource containing information about a database inside a Cloud SQL instance. **Note:** You can't modify the default character set and collation.
|
|
3425
3486
|
* @example
|
|
3426
3487
|
* ```js
|
|
3427
3488
|
* // Before running the sample:
|
|
@@ -6351,6 +6412,162 @@ export namespace sqladmin_v1 {
|
|
|
6351
6412
|
}
|
|
6352
6413
|
}
|
|
6353
6414
|
|
|
6415
|
+
/**
|
|
6416
|
+
* Reencrypt CMEK instance with latest key version.
|
|
6417
|
+
* @example
|
|
6418
|
+
* ```js
|
|
6419
|
+
* // Before running the sample:
|
|
6420
|
+
* // - Enable the API at:
|
|
6421
|
+
* // https://console.developers.google.com/apis/api/sqladmin.googleapis.com
|
|
6422
|
+
* // - Login into gcloud by running:
|
|
6423
|
+
* // `$ gcloud auth application-default login`
|
|
6424
|
+
* // - Install the npm module by running:
|
|
6425
|
+
* // `$ npm install googleapis`
|
|
6426
|
+
*
|
|
6427
|
+
* const {google} = require('googleapis');
|
|
6428
|
+
* const sqladmin = google.sqladmin('v1');
|
|
6429
|
+
*
|
|
6430
|
+
* async function main() {
|
|
6431
|
+
* const auth = new google.auth.GoogleAuth({
|
|
6432
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
6433
|
+
* scopes: [
|
|
6434
|
+
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
6435
|
+
* 'https://www.googleapis.com/auth/sqlservice.admin',
|
|
6436
|
+
* ],
|
|
6437
|
+
* });
|
|
6438
|
+
*
|
|
6439
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
6440
|
+
* const authClient = await auth.getClient();
|
|
6441
|
+
* google.options({auth: authClient});
|
|
6442
|
+
*
|
|
6443
|
+
* // Do the magic
|
|
6444
|
+
* const res = await sql.instances.reencrypt({
|
|
6445
|
+
* // Cloud SQL instance ID. This does not include the project ID.
|
|
6446
|
+
* instance: 'placeholder-value',
|
|
6447
|
+
* // ID of the project that contains the instance.
|
|
6448
|
+
* project: 'placeholder-value',
|
|
6449
|
+
*
|
|
6450
|
+
* // Request body metadata
|
|
6451
|
+
* requestBody: {
|
|
6452
|
+
* // request body parameters
|
|
6453
|
+
* // {
|
|
6454
|
+
* // "backupReencryptionConfig": {}
|
|
6455
|
+
* // }
|
|
6456
|
+
* },
|
|
6457
|
+
* });
|
|
6458
|
+
* console.log(res.data);
|
|
6459
|
+
*
|
|
6460
|
+
* // Example response
|
|
6461
|
+
* // {
|
|
6462
|
+
* // "backupContext": {},
|
|
6463
|
+
* // "endTime": "my_endTime",
|
|
6464
|
+
* // "error": {},
|
|
6465
|
+
* // "exportContext": {},
|
|
6466
|
+
* // "importContext": {},
|
|
6467
|
+
* // "insertTime": "my_insertTime",
|
|
6468
|
+
* // "kind": "my_kind",
|
|
6469
|
+
* // "name": "my_name",
|
|
6470
|
+
* // "operationType": "my_operationType",
|
|
6471
|
+
* // "selfLink": "my_selfLink",
|
|
6472
|
+
* // "startTime": "my_startTime",
|
|
6473
|
+
* // "status": "my_status",
|
|
6474
|
+
* // "targetId": "my_targetId",
|
|
6475
|
+
* // "targetLink": "my_targetLink",
|
|
6476
|
+
* // "targetProject": "my_targetProject",
|
|
6477
|
+
* // "user": "my_user"
|
|
6478
|
+
* // }
|
|
6479
|
+
* }
|
|
6480
|
+
*
|
|
6481
|
+
* main().catch(e => {
|
|
6482
|
+
* console.error(e);
|
|
6483
|
+
* throw e;
|
|
6484
|
+
* });
|
|
6485
|
+
*
|
|
6486
|
+
* ```
|
|
6487
|
+
*
|
|
6488
|
+
* @param params - Parameters for request
|
|
6489
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
6490
|
+
* @param callback - Optional callback that handles the response.
|
|
6491
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
6492
|
+
*/
|
|
6493
|
+
reencrypt(
|
|
6494
|
+
params: Params$Resource$Instances$Reencrypt,
|
|
6495
|
+
options: StreamMethodOptions
|
|
6496
|
+
): GaxiosPromise<Readable>;
|
|
6497
|
+
reencrypt(
|
|
6498
|
+
params?: Params$Resource$Instances$Reencrypt,
|
|
6499
|
+
options?: MethodOptions
|
|
6500
|
+
): GaxiosPromise<Schema$Operation>;
|
|
6501
|
+
reencrypt(
|
|
6502
|
+
params: Params$Resource$Instances$Reencrypt,
|
|
6503
|
+
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
6504
|
+
callback: BodyResponseCallback<Readable>
|
|
6505
|
+
): void;
|
|
6506
|
+
reencrypt(
|
|
6507
|
+
params: Params$Resource$Instances$Reencrypt,
|
|
6508
|
+
options: MethodOptions | BodyResponseCallback<Schema$Operation>,
|
|
6509
|
+
callback: BodyResponseCallback<Schema$Operation>
|
|
6510
|
+
): void;
|
|
6511
|
+
reencrypt(
|
|
6512
|
+
params: Params$Resource$Instances$Reencrypt,
|
|
6513
|
+
callback: BodyResponseCallback<Schema$Operation>
|
|
6514
|
+
): void;
|
|
6515
|
+
reencrypt(callback: BodyResponseCallback<Schema$Operation>): void;
|
|
6516
|
+
reencrypt(
|
|
6517
|
+
paramsOrCallback?:
|
|
6518
|
+
| Params$Resource$Instances$Reencrypt
|
|
6519
|
+
| BodyResponseCallback<Schema$Operation>
|
|
6520
|
+
| BodyResponseCallback<Readable>,
|
|
6521
|
+
optionsOrCallback?:
|
|
6522
|
+
| MethodOptions
|
|
6523
|
+
| StreamMethodOptions
|
|
6524
|
+
| BodyResponseCallback<Schema$Operation>
|
|
6525
|
+
| BodyResponseCallback<Readable>,
|
|
6526
|
+
callback?:
|
|
6527
|
+
| BodyResponseCallback<Schema$Operation>
|
|
6528
|
+
| BodyResponseCallback<Readable>
|
|
6529
|
+
): void | GaxiosPromise<Schema$Operation> | GaxiosPromise<Readable> {
|
|
6530
|
+
let params = (paramsOrCallback ||
|
|
6531
|
+
{}) as Params$Resource$Instances$Reencrypt;
|
|
6532
|
+
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
6533
|
+
|
|
6534
|
+
if (typeof paramsOrCallback === 'function') {
|
|
6535
|
+
callback = paramsOrCallback;
|
|
6536
|
+
params = {} as Params$Resource$Instances$Reencrypt;
|
|
6537
|
+
options = {};
|
|
6538
|
+
}
|
|
6539
|
+
|
|
6540
|
+
if (typeof optionsOrCallback === 'function') {
|
|
6541
|
+
callback = optionsOrCallback;
|
|
6542
|
+
options = {};
|
|
6543
|
+
}
|
|
6544
|
+
|
|
6545
|
+
const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/';
|
|
6546
|
+
const parameters = {
|
|
6547
|
+
options: Object.assign(
|
|
6548
|
+
{
|
|
6549
|
+
url: (
|
|
6550
|
+
rootUrl + '/v1/projects/{project}/instances/{instance}/reencrypt'
|
|
6551
|
+
).replace(/([^:]\/)\/+/g, '$1'),
|
|
6552
|
+
method: 'POST',
|
|
6553
|
+
},
|
|
6554
|
+
options
|
|
6555
|
+
),
|
|
6556
|
+
params,
|
|
6557
|
+
requiredParams: ['project', 'instance'],
|
|
6558
|
+
pathParams: ['instance', 'project'],
|
|
6559
|
+
context: this.context,
|
|
6560
|
+
};
|
|
6561
|
+
if (callback) {
|
|
6562
|
+
createAPIRequest<Schema$Operation>(
|
|
6563
|
+
parameters,
|
|
6564
|
+
callback as BodyResponseCallback<unknown>
|
|
6565
|
+
);
|
|
6566
|
+
} else {
|
|
6567
|
+
return createAPIRequest<Schema$Operation>(parameters);
|
|
6568
|
+
}
|
|
6569
|
+
}
|
|
6570
|
+
|
|
6354
6571
|
/**
|
|
6355
6572
|
* Deletes all client certificates and generates a new server SSL certificate for the instance.
|
|
6356
6573
|
* @example
|
|
@@ -7782,6 +7999,22 @@ export namespace sqladmin_v1 {
|
|
|
7782
7999
|
*/
|
|
7783
8000
|
project?: string;
|
|
7784
8001
|
}
|
|
8002
|
+
export interface Params$Resource$Instances$Reencrypt
|
|
8003
|
+
extends StandardParameters {
|
|
8004
|
+
/**
|
|
8005
|
+
* Cloud SQL instance ID. This does not include the project ID.
|
|
8006
|
+
*/
|
|
8007
|
+
instance?: string;
|
|
8008
|
+
/**
|
|
8009
|
+
* ID of the project that contains the instance.
|
|
8010
|
+
*/
|
|
8011
|
+
project?: string;
|
|
8012
|
+
|
|
8013
|
+
/**
|
|
8014
|
+
* Request body metadata
|
|
8015
|
+
*/
|
|
8016
|
+
requestBody?: Schema$InstancesReencryptRequest;
|
|
8017
|
+
}
|
|
7785
8018
|
export interface Params$Resource$Instances$Resetsslconfig
|
|
7786
8019
|
extends StandardParameters {
|
|
7787
8020
|
/**
|
|
@@ -7896,6 +8129,137 @@ export namespace sqladmin_v1 {
|
|
|
7896
8129
|
this.context = context;
|
|
7897
8130
|
}
|
|
7898
8131
|
|
|
8132
|
+
/**
|
|
8133
|
+
* Cancels an instance operation that has been performed on an instance.
|
|
8134
|
+
* @example
|
|
8135
|
+
* ```js
|
|
8136
|
+
* // Before running the sample:
|
|
8137
|
+
* // - Enable the API at:
|
|
8138
|
+
* // https://console.developers.google.com/apis/api/sqladmin.googleapis.com
|
|
8139
|
+
* // - Login into gcloud by running:
|
|
8140
|
+
* // `$ gcloud auth application-default login`
|
|
8141
|
+
* // - Install the npm module by running:
|
|
8142
|
+
* // `$ npm install googleapis`
|
|
8143
|
+
*
|
|
8144
|
+
* const {google} = require('googleapis');
|
|
8145
|
+
* const sqladmin = google.sqladmin('v1');
|
|
8146
|
+
*
|
|
8147
|
+
* async function main() {
|
|
8148
|
+
* const auth = new google.auth.GoogleAuth({
|
|
8149
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
8150
|
+
* scopes: [
|
|
8151
|
+
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
8152
|
+
* 'https://www.googleapis.com/auth/sqlservice.admin',
|
|
8153
|
+
* ],
|
|
8154
|
+
* });
|
|
8155
|
+
*
|
|
8156
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
8157
|
+
* const authClient = await auth.getClient();
|
|
8158
|
+
* google.options({auth: authClient});
|
|
8159
|
+
*
|
|
8160
|
+
* // Do the magic
|
|
8161
|
+
* const res = await sql.operations.cancel({
|
|
8162
|
+
* // Instance operation ID.
|
|
8163
|
+
* operation: 'placeholder-value',
|
|
8164
|
+
* // Project ID of the project that contains the instance.
|
|
8165
|
+
* project: 'placeholder-value',
|
|
8166
|
+
* });
|
|
8167
|
+
* console.log(res.data);
|
|
8168
|
+
*
|
|
8169
|
+
* // Example response
|
|
8170
|
+
* // {}
|
|
8171
|
+
* }
|
|
8172
|
+
*
|
|
8173
|
+
* main().catch(e => {
|
|
8174
|
+
* console.error(e);
|
|
8175
|
+
* throw e;
|
|
8176
|
+
* });
|
|
8177
|
+
*
|
|
8178
|
+
* ```
|
|
8179
|
+
*
|
|
8180
|
+
* @param params - Parameters for request
|
|
8181
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
8182
|
+
* @param callback - Optional callback that handles the response.
|
|
8183
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
8184
|
+
*/
|
|
8185
|
+
cancel(
|
|
8186
|
+
params: Params$Resource$Operations$Cancel,
|
|
8187
|
+
options: StreamMethodOptions
|
|
8188
|
+
): GaxiosPromise<Readable>;
|
|
8189
|
+
cancel(
|
|
8190
|
+
params?: Params$Resource$Operations$Cancel,
|
|
8191
|
+
options?: MethodOptions
|
|
8192
|
+
): GaxiosPromise<Schema$Empty>;
|
|
8193
|
+
cancel(
|
|
8194
|
+
params: Params$Resource$Operations$Cancel,
|
|
8195
|
+
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
8196
|
+
callback: BodyResponseCallback<Readable>
|
|
8197
|
+
): void;
|
|
8198
|
+
cancel(
|
|
8199
|
+
params: Params$Resource$Operations$Cancel,
|
|
8200
|
+
options: MethodOptions | BodyResponseCallback<Schema$Empty>,
|
|
8201
|
+
callback: BodyResponseCallback<Schema$Empty>
|
|
8202
|
+
): void;
|
|
8203
|
+
cancel(
|
|
8204
|
+
params: Params$Resource$Operations$Cancel,
|
|
8205
|
+
callback: BodyResponseCallback<Schema$Empty>
|
|
8206
|
+
): void;
|
|
8207
|
+
cancel(callback: BodyResponseCallback<Schema$Empty>): void;
|
|
8208
|
+
cancel(
|
|
8209
|
+
paramsOrCallback?:
|
|
8210
|
+
| Params$Resource$Operations$Cancel
|
|
8211
|
+
| BodyResponseCallback<Schema$Empty>
|
|
8212
|
+
| BodyResponseCallback<Readable>,
|
|
8213
|
+
optionsOrCallback?:
|
|
8214
|
+
| MethodOptions
|
|
8215
|
+
| StreamMethodOptions
|
|
8216
|
+
| BodyResponseCallback<Schema$Empty>
|
|
8217
|
+
| BodyResponseCallback<Readable>,
|
|
8218
|
+
callback?:
|
|
8219
|
+
| BodyResponseCallback<Schema$Empty>
|
|
8220
|
+
| BodyResponseCallback<Readable>
|
|
8221
|
+
): void | GaxiosPromise<Schema$Empty> | GaxiosPromise<Readable> {
|
|
8222
|
+
let params = (paramsOrCallback ||
|
|
8223
|
+
{}) as Params$Resource$Operations$Cancel;
|
|
8224
|
+
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
8225
|
+
|
|
8226
|
+
if (typeof paramsOrCallback === 'function') {
|
|
8227
|
+
callback = paramsOrCallback;
|
|
8228
|
+
params = {} as Params$Resource$Operations$Cancel;
|
|
8229
|
+
options = {};
|
|
8230
|
+
}
|
|
8231
|
+
|
|
8232
|
+
if (typeof optionsOrCallback === 'function') {
|
|
8233
|
+
callback = optionsOrCallback;
|
|
8234
|
+
options = {};
|
|
8235
|
+
}
|
|
8236
|
+
|
|
8237
|
+
const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/';
|
|
8238
|
+
const parameters = {
|
|
8239
|
+
options: Object.assign(
|
|
8240
|
+
{
|
|
8241
|
+
url: (
|
|
8242
|
+
rootUrl + '/v1/projects/{project}/operations/{operation}/cancel'
|
|
8243
|
+
).replace(/([^:]\/)\/+/g, '$1'),
|
|
8244
|
+
method: 'POST',
|
|
8245
|
+
},
|
|
8246
|
+
options
|
|
8247
|
+
),
|
|
8248
|
+
params,
|
|
8249
|
+
requiredParams: ['project', 'operation'],
|
|
8250
|
+
pathParams: ['operation', 'project'],
|
|
8251
|
+
context: this.context,
|
|
8252
|
+
};
|
|
8253
|
+
if (callback) {
|
|
8254
|
+
createAPIRequest<Schema$Empty>(
|
|
8255
|
+
parameters,
|
|
8256
|
+
callback as BodyResponseCallback<unknown>
|
|
8257
|
+
);
|
|
8258
|
+
} else {
|
|
8259
|
+
return createAPIRequest<Schema$Empty>(parameters);
|
|
8260
|
+
}
|
|
8261
|
+
}
|
|
8262
|
+
|
|
7899
8263
|
/**
|
|
7900
8264
|
* Retrieves an instance operation that has been performed on an instance.
|
|
7901
8265
|
* @example
|
|
@@ -8188,6 +8552,17 @@ export namespace sqladmin_v1 {
|
|
|
8188
8552
|
}
|
|
8189
8553
|
}
|
|
8190
8554
|
|
|
8555
|
+
export interface Params$Resource$Operations$Cancel
|
|
8556
|
+
extends StandardParameters {
|
|
8557
|
+
/**
|
|
8558
|
+
* Instance operation ID.
|
|
8559
|
+
*/
|
|
8560
|
+
operation?: string;
|
|
8561
|
+
/**
|
|
8562
|
+
* Project ID of the project that contains the instance.
|
|
8563
|
+
*/
|
|
8564
|
+
project?: string;
|
|
8565
|
+
}
|
|
8191
8566
|
export interface Params$Resource$Operations$Get extends StandardParameters {
|
|
8192
8567
|
/**
|
|
8193
8568
|
* Instance operation ID.
|
|
@@ -8272,6 +8647,7 @@ export namespace sqladmin_v1 {
|
|
|
8272
8647
|
* // Example response
|
|
8273
8648
|
* // {
|
|
8274
8649
|
* // "kind": "my_kind",
|
|
8650
|
+
* // "message": "my_message",
|
|
8275
8651
|
* // "minimalTargetSizeGb": "my_minimalTargetSizeGb"
|
|
8276
8652
|
* // }
|
|
8277
8653
|
* }
|
|
@@ -8888,7 +9264,8 @@ export namespace sqladmin_v1 {
|
|
|
8888
9264
|
* // {
|
|
8889
9265
|
* // "mysqlSyncConfig": {},
|
|
8890
9266
|
* // "skipVerification": false,
|
|
8891
|
-
* // "syncMode": "my_syncMode"
|
|
9267
|
+
* // "syncMode": "my_syncMode",
|
|
9268
|
+
* // "syncParallelLevel": "my_syncParallelLevel"
|
|
8892
9269
|
* // }
|
|
8893
9270
|
* },
|
|
8894
9271
|
* });
|