@googleapis/sqladmin 8.0.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 +11 -0
- package/build/v1.d.ts +218 -3
- package/build/v1.js +62 -0
- package/build/v1.js.map +1 -1
- package/build/v1beta4.d.ts +218 -3
- package/build/v1beta4.js +64 -0
- package/build/v1beta4.js.map +1 -1
- package/package.json +1 -1
- package/v1.ts +368 -4
- package/v1beta4.ts +370 -4
package/v1.ts
CHANGED
|
@@ -214,7 +214,7 @@ export namespace sqladmin_v1 {
|
|
|
214
214
|
*/
|
|
215
215
|
location?: string | null;
|
|
216
216
|
/**
|
|
217
|
-
*
|
|
217
|
+
* Whether point in time recovery is enabled.
|
|
218
218
|
*/
|
|
219
219
|
pointInTimeRecoveryEnabled?: boolean | null;
|
|
220
220
|
/**
|
|
@@ -243,6 +243,19 @@ export namespace sqladmin_v1 {
|
|
|
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
|
*/
|
|
@@ -408,6 +421,10 @@ export namespace sqladmin_v1 {
|
|
|
408
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`.
|
|
409
422
|
*/
|
|
410
423
|
databaseVersion?: string | null;
|
|
424
|
+
/**
|
|
425
|
+
* The dns name of the instance.
|
|
426
|
+
*/
|
|
427
|
+
dnsName?: string | null;
|
|
411
428
|
/**
|
|
412
429
|
* The assigned IP addresses for the instance.
|
|
413
430
|
*/
|
|
@@ -748,6 +765,10 @@ export namespace sqladmin_v1 {
|
|
|
748
765
|
*/
|
|
749
766
|
kmsKeyVersionName?: string | null;
|
|
750
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 {}
|
|
751
772
|
/**
|
|
752
773
|
* Database instance export context.
|
|
753
774
|
*/
|
|
@@ -755,7 +776,13 @@ export namespace sqladmin_v1 {
|
|
|
755
776
|
/**
|
|
756
777
|
* Options for exporting BAK files (SQL Server-only)
|
|
757
778
|
*/
|
|
758
|
-
bakExportOptions?: {
|
|
779
|
+
bakExportOptions?: {
|
|
780
|
+
bakType?: string;
|
|
781
|
+
copyOnly?: boolean;
|
|
782
|
+
differentialBase?: boolean;
|
|
783
|
+
stripeCount?: number;
|
|
784
|
+
striped?: boolean;
|
|
785
|
+
} | null;
|
|
759
786
|
/**
|
|
760
787
|
* Options for exporting data as CSV. `MySQL` and `PostgreSQL` instances only.
|
|
761
788
|
*/
|
|
@@ -904,11 +931,14 @@ export namespace sqladmin_v1 {
|
|
|
904
931
|
* Import parameters specific to SQL Server .BAK files
|
|
905
932
|
*/
|
|
906
933
|
bakImportOptions?: {
|
|
934
|
+
bakType?: string;
|
|
907
935
|
encryptionOptions?: {
|
|
908
936
|
certPath?: string;
|
|
909
937
|
pvkPassword?: string;
|
|
910
938
|
pvkPath?: string;
|
|
911
939
|
};
|
|
940
|
+
noRecovery?: boolean;
|
|
941
|
+
recoveryOnly?: boolean;
|
|
912
942
|
striped?: boolean;
|
|
913
943
|
} | null;
|
|
914
944
|
/**
|
|
@@ -1065,6 +1095,15 @@ export namespace sqladmin_v1 {
|
|
|
1065
1095
|
*/
|
|
1066
1096
|
kind?: string | null;
|
|
1067
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
|
+
}
|
|
1068
1107
|
/**
|
|
1069
1108
|
* Database instance restore backup request.
|
|
1070
1109
|
*/
|
|
@@ -1700,6 +1739,10 @@ export namespace sqladmin_v1 {
|
|
|
1700
1739
|
* This is always `sql#getDiskShrinkConfig`.
|
|
1701
1740
|
*/
|
|
1702
1741
|
kind?: string | null;
|
|
1742
|
+
/**
|
|
1743
|
+
* Additional message to customers.
|
|
1744
|
+
*/
|
|
1745
|
+
message?: string | null;
|
|
1703
1746
|
/**
|
|
1704
1747
|
* The minimum size to which a disk can be shrunk in GigaBytes.
|
|
1705
1748
|
*/
|
|
@@ -1734,6 +1777,10 @@ export namespace sqladmin_v1 {
|
|
|
1734
1777
|
* External sync mode.
|
|
1735
1778
|
*/
|
|
1736
1779
|
syncMode?: string | null;
|
|
1780
|
+
/**
|
|
1781
|
+
* Optional. Parallel level for initial data sync. Currently only applicable for MySQL.
|
|
1782
|
+
*/
|
|
1783
|
+
syncParallelLevel?: string | null;
|
|
1737
1784
|
}
|
|
1738
1785
|
/**
|
|
1739
1786
|
* Instance verify external sync settings request.
|
|
@@ -3005,6 +3052,7 @@ export namespace sqladmin_v1 {
|
|
|
3005
3052
|
* // {
|
|
3006
3053
|
* // "backendType": "my_backendType",
|
|
3007
3054
|
* // "databaseVersion": "my_databaseVersion",
|
|
3055
|
+
* // "dnsName": "my_dnsName",
|
|
3008
3056
|
* // "ipAddresses": [],
|
|
3009
3057
|
* // "kind": "my_kind",
|
|
3010
3058
|
* // "region": "my_region",
|
|
@@ -3434,7 +3482,7 @@ export namespace sqladmin_v1 {
|
|
|
3434
3482
|
}
|
|
3435
3483
|
|
|
3436
3484
|
/**
|
|
3437
|
-
* 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.
|
|
3438
3486
|
* @example
|
|
3439
3487
|
* ```js
|
|
3440
3488
|
* // Before running the sample:
|
|
@@ -6364,6 +6412,162 @@ export namespace sqladmin_v1 {
|
|
|
6364
6412
|
}
|
|
6365
6413
|
}
|
|
6366
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
|
+
|
|
6367
6571
|
/**
|
|
6368
6572
|
* Deletes all client certificates and generates a new server SSL certificate for the instance.
|
|
6369
6573
|
* @example
|
|
@@ -7795,6 +7999,22 @@ export namespace sqladmin_v1 {
|
|
|
7795
7999
|
*/
|
|
7796
8000
|
project?: string;
|
|
7797
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
|
+
}
|
|
7798
8018
|
export interface Params$Resource$Instances$Resetsslconfig
|
|
7799
8019
|
extends StandardParameters {
|
|
7800
8020
|
/**
|
|
@@ -7909,6 +8129,137 @@ export namespace sqladmin_v1 {
|
|
|
7909
8129
|
this.context = context;
|
|
7910
8130
|
}
|
|
7911
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
|
+
|
|
7912
8263
|
/**
|
|
7913
8264
|
* Retrieves an instance operation that has been performed on an instance.
|
|
7914
8265
|
* @example
|
|
@@ -8201,6 +8552,17 @@ export namespace sqladmin_v1 {
|
|
|
8201
8552
|
}
|
|
8202
8553
|
}
|
|
8203
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
|
+
}
|
|
8204
8566
|
export interface Params$Resource$Operations$Get extends StandardParameters {
|
|
8205
8567
|
/**
|
|
8206
8568
|
* Instance operation ID.
|
|
@@ -8285,6 +8647,7 @@ export namespace sqladmin_v1 {
|
|
|
8285
8647
|
* // Example response
|
|
8286
8648
|
* // {
|
|
8287
8649
|
* // "kind": "my_kind",
|
|
8650
|
+
* // "message": "my_message",
|
|
8288
8651
|
* // "minimalTargetSizeGb": "my_minimalTargetSizeGb"
|
|
8289
8652
|
* // }
|
|
8290
8653
|
* }
|
|
@@ -8901,7 +9264,8 @@ export namespace sqladmin_v1 {
|
|
|
8901
9264
|
* // {
|
|
8902
9265
|
* // "mysqlSyncConfig": {},
|
|
8903
9266
|
* // "skipVerification": false,
|
|
8904
|
-
* // "syncMode": "my_syncMode"
|
|
9267
|
+
* // "syncMode": "my_syncMode",
|
|
9268
|
+
* // "syncParallelLevel": "my_syncParallelLevel"
|
|
8905
9269
|
* // }
|
|
8906
9270
|
* },
|
|
8907
9271
|
* });
|