@googleapis/sqladmin 10.0.0 → 10.1.1
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 +14 -0
- package/build/v1.d.ts +31 -3665
- package/build/v1.js.map +1 -1
- package/build/v1beta4.d.ts +31 -3665
- package/build/v1beta4.js.map +1 -1
- package/package.json +3 -3
- package/v1.ts +31 -3665
- package/v1beta4.ts +31 -3665
package/build/v1.d.ts
CHANGED
|
@@ -375,6 +375,10 @@ export declare namespace sqladmin_v1 {
|
|
|
375
375
|
* This is always `sql#connectSettings`.
|
|
376
376
|
*/
|
|
377
377
|
kind?: string | null;
|
|
378
|
+
/**
|
|
379
|
+
* Whether PSC connectivity is enabled for this instance.
|
|
380
|
+
*/
|
|
381
|
+
pscEnabled?: boolean | null;
|
|
378
382
|
/**
|
|
379
383
|
* The cloud region for the instance. For example, `us-central1`, `europe-west1`. The region cannot be changed after instance creation.
|
|
380
384
|
*/
|
|
@@ -475,6 +479,10 @@ export declare namespace sqladmin_v1 {
|
|
|
475
479
|
* Disk encryption status specific to an instance.
|
|
476
480
|
*/
|
|
477
481
|
diskEncryptionStatus?: Schema$DiskEncryptionStatus;
|
|
482
|
+
/**
|
|
483
|
+
* Output only. The dns name of the instance.
|
|
484
|
+
*/
|
|
485
|
+
dnsName?: string | null;
|
|
478
486
|
/**
|
|
479
487
|
* This field is deprecated and will be removed from a future version of the API. Use the `settings.settingsVersion` field instead.
|
|
480
488
|
*/
|
|
@@ -534,6 +542,10 @@ export declare namespace sqladmin_v1 {
|
|
|
534
542
|
* The project ID of the project containing the Cloud SQL instance. The Google apps domain is prefixed if applicable.
|
|
535
543
|
*/
|
|
536
544
|
project?: string | null;
|
|
545
|
+
/**
|
|
546
|
+
* Output only. The link to service attachment of PSC instance.
|
|
547
|
+
*/
|
|
548
|
+
pscServiceAttachmentLink?: string | null;
|
|
537
549
|
/**
|
|
538
550
|
* The geographical region. Can be: * `us-central` (`FIRST_GEN` instances only) * `us-central1` (`SECOND_GEN` instances only) * `asia-east1` or `europe-west1`. Defaults to `us-central` or `us-central1` depending on the instance type. The region cannot be changed after instance creation.
|
|
539
551
|
*/
|
|
@@ -896,6 +908,8 @@ export declare namespace sqladmin_v1 {
|
|
|
896
908
|
};
|
|
897
909
|
noRecovery?: boolean;
|
|
898
910
|
recoveryOnly?: boolean;
|
|
911
|
+
stopAt?: string;
|
|
912
|
+
stopAtMark?: string;
|
|
899
913
|
striped?: boolean;
|
|
900
914
|
} | null;
|
|
901
915
|
/**
|
|
@@ -1112,6 +1126,10 @@ export declare namespace sqladmin_v1 {
|
|
|
1112
1126
|
* The resource link for the VPC network from which the Cloud SQL instance is accessible for private IP. For example, `/projects/myProject/global/networks/default`. This setting can be updated, but it cannot be removed after it is set.
|
|
1113
1127
|
*/
|
|
1114
1128
|
privateNetwork?: string | null;
|
|
1129
|
+
/**
|
|
1130
|
+
* PSC settings for this instance.
|
|
1131
|
+
*/
|
|
1132
|
+
pscConfig?: Schema$PscConfig;
|
|
1115
1133
|
/**
|
|
1116
1134
|
* Whether SSL connections over IP are enforced or not.
|
|
1117
1135
|
*/
|
|
@@ -1472,6 +1490,19 @@ export declare namespace sqladmin_v1 {
|
|
|
1472
1490
|
*/
|
|
1473
1491
|
targetSizeGb?: string | null;
|
|
1474
1492
|
}
|
|
1493
|
+
/**
|
|
1494
|
+
* PSC settings for a Cloud SQL instance.
|
|
1495
|
+
*/
|
|
1496
|
+
export interface Schema$PscConfig {
|
|
1497
|
+
/**
|
|
1498
|
+
* List of consumer projects that are allow-listed for PSC connections to this instance. This instance can be connected to with PSC from any network in these projects. Each consumer project in this list may be represented by a project number (numeric) or by a project id (alphanumeric).
|
|
1499
|
+
*/
|
|
1500
|
+
allowedConsumerProjects?: string[] | null;
|
|
1501
|
+
/**
|
|
1502
|
+
* Whether PSC connectivity is enabled for this instance.
|
|
1503
|
+
*/
|
|
1504
|
+
pscEnabled?: boolean | null;
|
|
1505
|
+
}
|
|
1475
1506
|
/**
|
|
1476
1507
|
* Read-replica configuration for connecting to the primary instance.
|
|
1477
1508
|
*/
|
|
@@ -2146,70 +2177,6 @@ export declare namespace sqladmin_v1 {
|
|
|
2146
2177
|
constructor(context: APIRequestContext);
|
|
2147
2178
|
/**
|
|
2148
2179
|
* Deletes the backup taken by a backup run.
|
|
2149
|
-
* @example
|
|
2150
|
-
* ```js
|
|
2151
|
-
* // Before running the sample:
|
|
2152
|
-
* // - Enable the API at:
|
|
2153
|
-
* // https://console.developers.google.com/apis/api/sqladmin.googleapis.com
|
|
2154
|
-
* // - Login into gcloud by running:
|
|
2155
|
-
* // `$ gcloud auth application-default login`
|
|
2156
|
-
* // - Install the npm module by running:
|
|
2157
|
-
* // `$ npm install googleapis`
|
|
2158
|
-
*
|
|
2159
|
-
* const {google} = require('googleapis');
|
|
2160
|
-
* const sqladmin = google.sqladmin('v1');
|
|
2161
|
-
*
|
|
2162
|
-
* async function main() {
|
|
2163
|
-
* const auth = new google.auth.GoogleAuth({
|
|
2164
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
2165
|
-
* scopes: [
|
|
2166
|
-
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
2167
|
-
* 'https://www.googleapis.com/auth/sqlservice.admin',
|
|
2168
|
-
* ],
|
|
2169
|
-
* });
|
|
2170
|
-
*
|
|
2171
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
2172
|
-
* const authClient = await auth.getClient();
|
|
2173
|
-
* google.options({auth: authClient});
|
|
2174
|
-
*
|
|
2175
|
-
* // Do the magic
|
|
2176
|
-
* const res = await sql.backupRuns.delete({
|
|
2177
|
-
* // The ID of the backup run to delete. To find a backup run ID, use the [list](https://cloud.google.com/sql/docs/mysql/admin-api/rest/v1/backupRuns/list) method.
|
|
2178
|
-
* id: 'placeholder-value',
|
|
2179
|
-
* // Cloud SQL instance ID. This does not include the project ID.
|
|
2180
|
-
* instance: 'placeholder-value',
|
|
2181
|
-
* // Project ID of the project that contains the instance.
|
|
2182
|
-
* project: 'placeholder-value',
|
|
2183
|
-
* });
|
|
2184
|
-
* console.log(res.data);
|
|
2185
|
-
*
|
|
2186
|
-
* // Example response
|
|
2187
|
-
* // {
|
|
2188
|
-
* // "backupContext": {},
|
|
2189
|
-
* // "endTime": "my_endTime",
|
|
2190
|
-
* // "error": {},
|
|
2191
|
-
* // "exportContext": {},
|
|
2192
|
-
* // "importContext": {},
|
|
2193
|
-
* // "insertTime": "my_insertTime",
|
|
2194
|
-
* // "kind": "my_kind",
|
|
2195
|
-
* // "name": "my_name",
|
|
2196
|
-
* // "operationType": "my_operationType",
|
|
2197
|
-
* // "selfLink": "my_selfLink",
|
|
2198
|
-
* // "startTime": "my_startTime",
|
|
2199
|
-
* // "status": "my_status",
|
|
2200
|
-
* // "targetId": "my_targetId",
|
|
2201
|
-
* // "targetLink": "my_targetLink",
|
|
2202
|
-
* // "targetProject": "my_targetProject",
|
|
2203
|
-
* // "user": "my_user"
|
|
2204
|
-
* // }
|
|
2205
|
-
* }
|
|
2206
|
-
*
|
|
2207
|
-
* main().catch(e => {
|
|
2208
|
-
* console.error(e);
|
|
2209
|
-
* throw e;
|
|
2210
|
-
* });
|
|
2211
|
-
*
|
|
2212
|
-
* ```
|
|
2213
2180
|
*
|
|
2214
2181
|
* @param params - Parameters for request
|
|
2215
2182
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -2224,71 +2191,6 @@ export declare namespace sqladmin_v1 {
|
|
|
2224
2191
|
delete(callback: BodyResponseCallback<Schema$Operation>): void;
|
|
2225
2192
|
/**
|
|
2226
2193
|
* Retrieves a resource containing information about a backup run.
|
|
2227
|
-
* @example
|
|
2228
|
-
* ```js
|
|
2229
|
-
* // Before running the sample:
|
|
2230
|
-
* // - Enable the API at:
|
|
2231
|
-
* // https://console.developers.google.com/apis/api/sqladmin.googleapis.com
|
|
2232
|
-
* // - Login into gcloud by running:
|
|
2233
|
-
* // `$ gcloud auth application-default login`
|
|
2234
|
-
* // - Install the npm module by running:
|
|
2235
|
-
* // `$ npm install googleapis`
|
|
2236
|
-
*
|
|
2237
|
-
* const {google} = require('googleapis');
|
|
2238
|
-
* const sqladmin = google.sqladmin('v1');
|
|
2239
|
-
*
|
|
2240
|
-
* async function main() {
|
|
2241
|
-
* const auth = new google.auth.GoogleAuth({
|
|
2242
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
2243
|
-
* scopes: [
|
|
2244
|
-
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
2245
|
-
* 'https://www.googleapis.com/auth/sqlservice.admin',
|
|
2246
|
-
* ],
|
|
2247
|
-
* });
|
|
2248
|
-
*
|
|
2249
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
2250
|
-
* const authClient = await auth.getClient();
|
|
2251
|
-
* google.options({auth: authClient});
|
|
2252
|
-
*
|
|
2253
|
-
* // Do the magic
|
|
2254
|
-
* const res = await sql.backupRuns.get({
|
|
2255
|
-
* // The ID of this backup run.
|
|
2256
|
-
* id: 'placeholder-value',
|
|
2257
|
-
* // Cloud SQL instance ID. This does not include the project ID.
|
|
2258
|
-
* instance: 'placeholder-value',
|
|
2259
|
-
* // Project ID of the project that contains the instance.
|
|
2260
|
-
* project: 'placeholder-value',
|
|
2261
|
-
* });
|
|
2262
|
-
* console.log(res.data);
|
|
2263
|
-
*
|
|
2264
|
-
* // Example response
|
|
2265
|
-
* // {
|
|
2266
|
-
* // "backupKind": "my_backupKind",
|
|
2267
|
-
* // "description": "my_description",
|
|
2268
|
-
* // "diskEncryptionConfiguration": {},
|
|
2269
|
-
* // "diskEncryptionStatus": {},
|
|
2270
|
-
* // "endTime": "my_endTime",
|
|
2271
|
-
* // "enqueuedTime": "my_enqueuedTime",
|
|
2272
|
-
* // "error": {},
|
|
2273
|
-
* // "id": "my_id",
|
|
2274
|
-
* // "instance": "my_instance",
|
|
2275
|
-
* // "kind": "my_kind",
|
|
2276
|
-
* // "location": "my_location",
|
|
2277
|
-
* // "selfLink": "my_selfLink",
|
|
2278
|
-
* // "startTime": "my_startTime",
|
|
2279
|
-
* // "status": "my_status",
|
|
2280
|
-
* // "timeZone": "my_timeZone",
|
|
2281
|
-
* // "type": "my_type",
|
|
2282
|
-
* // "windowStartTime": "my_windowStartTime"
|
|
2283
|
-
* // }
|
|
2284
|
-
* }
|
|
2285
|
-
*
|
|
2286
|
-
* main().catch(e => {
|
|
2287
|
-
* console.error(e);
|
|
2288
|
-
* throw e;
|
|
2289
|
-
* });
|
|
2290
|
-
*
|
|
2291
|
-
* ```
|
|
2292
2194
|
*
|
|
2293
2195
|
* @param params - Parameters for request
|
|
2294
2196
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -2303,92 +2205,6 @@ export declare namespace sqladmin_v1 {
|
|
|
2303
2205
|
get(callback: BodyResponseCallback<Schema$BackupRun>): void;
|
|
2304
2206
|
/**
|
|
2305
2207
|
* Creates a new backup run on demand.
|
|
2306
|
-
* @example
|
|
2307
|
-
* ```js
|
|
2308
|
-
* // Before running the sample:
|
|
2309
|
-
* // - Enable the API at:
|
|
2310
|
-
* // https://console.developers.google.com/apis/api/sqladmin.googleapis.com
|
|
2311
|
-
* // - Login into gcloud by running:
|
|
2312
|
-
* // `$ gcloud auth application-default login`
|
|
2313
|
-
* // - Install the npm module by running:
|
|
2314
|
-
* // `$ npm install googleapis`
|
|
2315
|
-
*
|
|
2316
|
-
* const {google} = require('googleapis');
|
|
2317
|
-
* const sqladmin = google.sqladmin('v1');
|
|
2318
|
-
*
|
|
2319
|
-
* async function main() {
|
|
2320
|
-
* const auth = new google.auth.GoogleAuth({
|
|
2321
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
2322
|
-
* scopes: [
|
|
2323
|
-
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
2324
|
-
* 'https://www.googleapis.com/auth/sqlservice.admin',
|
|
2325
|
-
* ],
|
|
2326
|
-
* });
|
|
2327
|
-
*
|
|
2328
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
2329
|
-
* const authClient = await auth.getClient();
|
|
2330
|
-
* google.options({auth: authClient});
|
|
2331
|
-
*
|
|
2332
|
-
* // Do the magic
|
|
2333
|
-
* const res = await sql.backupRuns.insert({
|
|
2334
|
-
* // Cloud SQL instance ID. This does not include the project ID.
|
|
2335
|
-
* instance: 'placeholder-value',
|
|
2336
|
-
* // Project ID of the project that contains the instance.
|
|
2337
|
-
* project: 'placeholder-value',
|
|
2338
|
-
*
|
|
2339
|
-
* // Request body metadata
|
|
2340
|
-
* requestBody: {
|
|
2341
|
-
* // request body parameters
|
|
2342
|
-
* // {
|
|
2343
|
-
* // "backupKind": "my_backupKind",
|
|
2344
|
-
* // "description": "my_description",
|
|
2345
|
-
* // "diskEncryptionConfiguration": {},
|
|
2346
|
-
* // "diskEncryptionStatus": {},
|
|
2347
|
-
* // "endTime": "my_endTime",
|
|
2348
|
-
* // "enqueuedTime": "my_enqueuedTime",
|
|
2349
|
-
* // "error": {},
|
|
2350
|
-
* // "id": "my_id",
|
|
2351
|
-
* // "instance": "my_instance",
|
|
2352
|
-
* // "kind": "my_kind",
|
|
2353
|
-
* // "location": "my_location",
|
|
2354
|
-
* // "selfLink": "my_selfLink",
|
|
2355
|
-
* // "startTime": "my_startTime",
|
|
2356
|
-
* // "status": "my_status",
|
|
2357
|
-
* // "timeZone": "my_timeZone",
|
|
2358
|
-
* // "type": "my_type",
|
|
2359
|
-
* // "windowStartTime": "my_windowStartTime"
|
|
2360
|
-
* // }
|
|
2361
|
-
* },
|
|
2362
|
-
* });
|
|
2363
|
-
* console.log(res.data);
|
|
2364
|
-
*
|
|
2365
|
-
* // Example response
|
|
2366
|
-
* // {
|
|
2367
|
-
* // "backupContext": {},
|
|
2368
|
-
* // "endTime": "my_endTime",
|
|
2369
|
-
* // "error": {},
|
|
2370
|
-
* // "exportContext": {},
|
|
2371
|
-
* // "importContext": {},
|
|
2372
|
-
* // "insertTime": "my_insertTime",
|
|
2373
|
-
* // "kind": "my_kind",
|
|
2374
|
-
* // "name": "my_name",
|
|
2375
|
-
* // "operationType": "my_operationType",
|
|
2376
|
-
* // "selfLink": "my_selfLink",
|
|
2377
|
-
* // "startTime": "my_startTime",
|
|
2378
|
-
* // "status": "my_status",
|
|
2379
|
-
* // "targetId": "my_targetId",
|
|
2380
|
-
* // "targetLink": "my_targetLink",
|
|
2381
|
-
* // "targetProject": "my_targetProject",
|
|
2382
|
-
* // "user": "my_user"
|
|
2383
|
-
* // }
|
|
2384
|
-
* }
|
|
2385
|
-
*
|
|
2386
|
-
* main().catch(e => {
|
|
2387
|
-
* console.error(e);
|
|
2388
|
-
* throw e;
|
|
2389
|
-
* });
|
|
2390
|
-
*
|
|
2391
|
-
* ```
|
|
2392
2208
|
*
|
|
2393
2209
|
* @param params - Parameters for request
|
|
2394
2210
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -2403,59 +2219,6 @@ export declare namespace sqladmin_v1 {
|
|
|
2403
2219
|
insert(callback: BodyResponseCallback<Schema$Operation>): void;
|
|
2404
2220
|
/**
|
|
2405
2221
|
* Lists all backup runs associated with the project or a given instance and configuration in the reverse chronological order of the backup initiation time.
|
|
2406
|
-
* @example
|
|
2407
|
-
* ```js
|
|
2408
|
-
* // Before running the sample:
|
|
2409
|
-
* // - Enable the API at:
|
|
2410
|
-
* // https://console.developers.google.com/apis/api/sqladmin.googleapis.com
|
|
2411
|
-
* // - Login into gcloud by running:
|
|
2412
|
-
* // `$ gcloud auth application-default login`
|
|
2413
|
-
* // - Install the npm module by running:
|
|
2414
|
-
* // `$ npm install googleapis`
|
|
2415
|
-
*
|
|
2416
|
-
* const {google} = require('googleapis');
|
|
2417
|
-
* const sqladmin = google.sqladmin('v1');
|
|
2418
|
-
*
|
|
2419
|
-
* async function main() {
|
|
2420
|
-
* const auth = new google.auth.GoogleAuth({
|
|
2421
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
2422
|
-
* scopes: [
|
|
2423
|
-
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
2424
|
-
* 'https://www.googleapis.com/auth/sqlservice.admin',
|
|
2425
|
-
* ],
|
|
2426
|
-
* });
|
|
2427
|
-
*
|
|
2428
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
2429
|
-
* const authClient = await auth.getClient();
|
|
2430
|
-
* google.options({auth: authClient});
|
|
2431
|
-
*
|
|
2432
|
-
* // Do the magic
|
|
2433
|
-
* const res = await sql.backupRuns.list({
|
|
2434
|
-
* // Cloud SQL instance ID, or "-" for all instances. This does not include the project ID.
|
|
2435
|
-
* instance: 'placeholder-value',
|
|
2436
|
-
* // Maximum number of backup runs per response.
|
|
2437
|
-
* maxResults: 'placeholder-value',
|
|
2438
|
-
* // A previously-returned page token representing part of the larger set of results to view.
|
|
2439
|
-
* pageToken: 'placeholder-value',
|
|
2440
|
-
* // Project ID of the project that contains the instance.
|
|
2441
|
-
* project: 'placeholder-value',
|
|
2442
|
-
* });
|
|
2443
|
-
* console.log(res.data);
|
|
2444
|
-
*
|
|
2445
|
-
* // Example response
|
|
2446
|
-
* // {
|
|
2447
|
-
* // "items": [],
|
|
2448
|
-
* // "kind": "my_kind",
|
|
2449
|
-
* // "nextPageToken": "my_nextPageToken"
|
|
2450
|
-
* // }
|
|
2451
|
-
* }
|
|
2452
|
-
*
|
|
2453
|
-
* main().catch(e => {
|
|
2454
|
-
* console.error(e);
|
|
2455
|
-
* throw e;
|
|
2456
|
-
* });
|
|
2457
|
-
*
|
|
2458
|
-
* ```
|
|
2459
2222
|
*
|
|
2460
2223
|
* @param params - Parameters for request
|
|
2461
2224
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -2534,64 +2297,6 @@ export declare namespace sqladmin_v1 {
|
|
|
2534
2297
|
constructor(context: APIRequestContext);
|
|
2535
2298
|
/**
|
|
2536
2299
|
* Generates a short-lived X509 certificate containing the provided public key and signed by a private key specific to the target instance. Users may use the certificate to authenticate as themselves when connecting to the database.
|
|
2537
|
-
* @example
|
|
2538
|
-
* ```js
|
|
2539
|
-
* // Before running the sample:
|
|
2540
|
-
* // - Enable the API at:
|
|
2541
|
-
* // https://console.developers.google.com/apis/api/sqladmin.googleapis.com
|
|
2542
|
-
* // - Login into gcloud by running:
|
|
2543
|
-
* // `$ gcloud auth application-default login`
|
|
2544
|
-
* // - Install the npm module by running:
|
|
2545
|
-
* // `$ npm install googleapis`
|
|
2546
|
-
*
|
|
2547
|
-
* const {google} = require('googleapis');
|
|
2548
|
-
* const sqladmin = google.sqladmin('v1');
|
|
2549
|
-
*
|
|
2550
|
-
* async function main() {
|
|
2551
|
-
* const auth = new google.auth.GoogleAuth({
|
|
2552
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
2553
|
-
* scopes: [
|
|
2554
|
-
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
2555
|
-
* 'https://www.googleapis.com/auth/sqlservice.admin',
|
|
2556
|
-
* ],
|
|
2557
|
-
* });
|
|
2558
|
-
*
|
|
2559
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
2560
|
-
* const authClient = await auth.getClient();
|
|
2561
|
-
* google.options({auth: authClient});
|
|
2562
|
-
*
|
|
2563
|
-
* // Do the magic
|
|
2564
|
-
* const res = await sql.connect.generateEphemeral({
|
|
2565
|
-
* // Cloud SQL instance ID. This does not include the project ID.
|
|
2566
|
-
* instance: 'placeholder-value',
|
|
2567
|
-
* // Project ID of the project that contains the instance.
|
|
2568
|
-
* project: 'placeholder-value',
|
|
2569
|
-
*
|
|
2570
|
-
* // Request body metadata
|
|
2571
|
-
* requestBody: {
|
|
2572
|
-
* // request body parameters
|
|
2573
|
-
* // {
|
|
2574
|
-
* // "access_token": "my_access_token",
|
|
2575
|
-
* // "public_key": "my_public_key",
|
|
2576
|
-
* // "readTime": "my_readTime",
|
|
2577
|
-
* // "validDuration": "my_validDuration"
|
|
2578
|
-
* // }
|
|
2579
|
-
* },
|
|
2580
|
-
* });
|
|
2581
|
-
* console.log(res.data);
|
|
2582
|
-
*
|
|
2583
|
-
* // Example response
|
|
2584
|
-
* // {
|
|
2585
|
-
* // "ephemeralCert": {}
|
|
2586
|
-
* // }
|
|
2587
|
-
* }
|
|
2588
|
-
*
|
|
2589
|
-
* main().catch(e => {
|
|
2590
|
-
* console.error(e);
|
|
2591
|
-
* throw e;
|
|
2592
|
-
* });
|
|
2593
|
-
*
|
|
2594
|
-
* ```
|
|
2595
2300
|
*
|
|
2596
2301
|
* @param params - Parameters for request
|
|
2597
2302
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -2606,61 +2311,6 @@ export declare namespace sqladmin_v1 {
|
|
|
2606
2311
|
generateEphemeralCert(callback: BodyResponseCallback<Schema$GenerateEphemeralCertResponse>): void;
|
|
2607
2312
|
/**
|
|
2608
2313
|
* Retrieves connect settings about a Cloud SQL instance.
|
|
2609
|
-
* @example
|
|
2610
|
-
* ```js
|
|
2611
|
-
* // Before running the sample:
|
|
2612
|
-
* // - Enable the API at:
|
|
2613
|
-
* // https://console.developers.google.com/apis/api/sqladmin.googleapis.com
|
|
2614
|
-
* // - Login into gcloud by running:
|
|
2615
|
-
* // `$ gcloud auth application-default login`
|
|
2616
|
-
* // - Install the npm module by running:
|
|
2617
|
-
* // `$ npm install googleapis`
|
|
2618
|
-
*
|
|
2619
|
-
* const {google} = require('googleapis');
|
|
2620
|
-
* const sqladmin = google.sqladmin('v1');
|
|
2621
|
-
*
|
|
2622
|
-
* async function main() {
|
|
2623
|
-
* const auth = new google.auth.GoogleAuth({
|
|
2624
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
2625
|
-
* scopes: [
|
|
2626
|
-
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
2627
|
-
* 'https://www.googleapis.com/auth/sqlservice.admin',
|
|
2628
|
-
* ],
|
|
2629
|
-
* });
|
|
2630
|
-
*
|
|
2631
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
2632
|
-
* const authClient = await auth.getClient();
|
|
2633
|
-
* google.options({auth: authClient});
|
|
2634
|
-
*
|
|
2635
|
-
* // Do the magic
|
|
2636
|
-
* const res = await sql.connect.get({
|
|
2637
|
-
* // Cloud SQL instance ID. This does not include the project ID.
|
|
2638
|
-
* instance: 'placeholder-value',
|
|
2639
|
-
* // Project ID of the project that contains the instance.
|
|
2640
|
-
* project: 'placeholder-value',
|
|
2641
|
-
* // Optional. Optional snapshot read timestamp to trade freshness for performance.
|
|
2642
|
-
* readTime: 'placeholder-value',
|
|
2643
|
-
* });
|
|
2644
|
-
* console.log(res.data);
|
|
2645
|
-
*
|
|
2646
|
-
* // Example response
|
|
2647
|
-
* // {
|
|
2648
|
-
* // "backendType": "my_backendType",
|
|
2649
|
-
* // "databaseVersion": "my_databaseVersion",
|
|
2650
|
-
* // "dnsName": "my_dnsName",
|
|
2651
|
-
* // "ipAddresses": [],
|
|
2652
|
-
* // "kind": "my_kind",
|
|
2653
|
-
* // "region": "my_region",
|
|
2654
|
-
* // "serverCaCert": {}
|
|
2655
|
-
* // }
|
|
2656
|
-
* }
|
|
2657
|
-
*
|
|
2658
|
-
* main().catch(e => {
|
|
2659
|
-
* console.error(e);
|
|
2660
|
-
* throw e;
|
|
2661
|
-
* });
|
|
2662
|
-
*
|
|
2663
|
-
* ```
|
|
2664
2314
|
*
|
|
2665
2315
|
* @param params - Parameters for request
|
|
2666
2316
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -2707,70 +2357,6 @@ export declare namespace sqladmin_v1 {
|
|
|
2707
2357
|
constructor(context: APIRequestContext);
|
|
2708
2358
|
/**
|
|
2709
2359
|
* Deletes a database from a Cloud SQL instance.
|
|
2710
|
-
* @example
|
|
2711
|
-
* ```js
|
|
2712
|
-
* // Before running the sample:
|
|
2713
|
-
* // - Enable the API at:
|
|
2714
|
-
* // https://console.developers.google.com/apis/api/sqladmin.googleapis.com
|
|
2715
|
-
* // - Login into gcloud by running:
|
|
2716
|
-
* // `$ gcloud auth application-default login`
|
|
2717
|
-
* // - Install the npm module by running:
|
|
2718
|
-
* // `$ npm install googleapis`
|
|
2719
|
-
*
|
|
2720
|
-
* const {google} = require('googleapis');
|
|
2721
|
-
* const sqladmin = google.sqladmin('v1');
|
|
2722
|
-
*
|
|
2723
|
-
* async function main() {
|
|
2724
|
-
* const auth = new google.auth.GoogleAuth({
|
|
2725
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
2726
|
-
* scopes: [
|
|
2727
|
-
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
2728
|
-
* 'https://www.googleapis.com/auth/sqlservice.admin',
|
|
2729
|
-
* ],
|
|
2730
|
-
* });
|
|
2731
|
-
*
|
|
2732
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
2733
|
-
* const authClient = await auth.getClient();
|
|
2734
|
-
* google.options({auth: authClient});
|
|
2735
|
-
*
|
|
2736
|
-
* // Do the magic
|
|
2737
|
-
* const res = await sql.databases.delete({
|
|
2738
|
-
* // Name of the database to be deleted in the instance.
|
|
2739
|
-
* database: 'placeholder-value',
|
|
2740
|
-
* // Database instance ID. This does not include the project ID.
|
|
2741
|
-
* instance: 'placeholder-value',
|
|
2742
|
-
* // Project ID of the project that contains the instance.
|
|
2743
|
-
* project: 'placeholder-value',
|
|
2744
|
-
* });
|
|
2745
|
-
* console.log(res.data);
|
|
2746
|
-
*
|
|
2747
|
-
* // Example response
|
|
2748
|
-
* // {
|
|
2749
|
-
* // "backupContext": {},
|
|
2750
|
-
* // "endTime": "my_endTime",
|
|
2751
|
-
* // "error": {},
|
|
2752
|
-
* // "exportContext": {},
|
|
2753
|
-
* // "importContext": {},
|
|
2754
|
-
* // "insertTime": "my_insertTime",
|
|
2755
|
-
* // "kind": "my_kind",
|
|
2756
|
-
* // "name": "my_name",
|
|
2757
|
-
* // "operationType": "my_operationType",
|
|
2758
|
-
* // "selfLink": "my_selfLink",
|
|
2759
|
-
* // "startTime": "my_startTime",
|
|
2760
|
-
* // "status": "my_status",
|
|
2761
|
-
* // "targetId": "my_targetId",
|
|
2762
|
-
* // "targetLink": "my_targetLink",
|
|
2763
|
-
* // "targetProject": "my_targetProject",
|
|
2764
|
-
* // "user": "my_user"
|
|
2765
|
-
* // }
|
|
2766
|
-
* }
|
|
2767
|
-
*
|
|
2768
|
-
* main().catch(e => {
|
|
2769
|
-
* console.error(e);
|
|
2770
|
-
* throw e;
|
|
2771
|
-
* });
|
|
2772
|
-
*
|
|
2773
|
-
* ```
|
|
2774
2360
|
*
|
|
2775
2361
|
* @param params - Parameters for request
|
|
2776
2362
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -2785,63 +2371,6 @@ export declare namespace sqladmin_v1 {
|
|
|
2785
2371
|
delete(callback: BodyResponseCallback<Schema$Operation>): void;
|
|
2786
2372
|
/**
|
|
2787
2373
|
* Retrieves a resource containing information about a database inside a Cloud SQL instance.
|
|
2788
|
-
* @example
|
|
2789
|
-
* ```js
|
|
2790
|
-
* // Before running the sample:
|
|
2791
|
-
* // - Enable the API at:
|
|
2792
|
-
* // https://console.developers.google.com/apis/api/sqladmin.googleapis.com
|
|
2793
|
-
* // - Login into gcloud by running:
|
|
2794
|
-
* // `$ gcloud auth application-default login`
|
|
2795
|
-
* // - Install the npm module by running:
|
|
2796
|
-
* // `$ npm install googleapis`
|
|
2797
|
-
*
|
|
2798
|
-
* const {google} = require('googleapis');
|
|
2799
|
-
* const sqladmin = google.sqladmin('v1');
|
|
2800
|
-
*
|
|
2801
|
-
* async function main() {
|
|
2802
|
-
* const auth = new google.auth.GoogleAuth({
|
|
2803
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
2804
|
-
* scopes: [
|
|
2805
|
-
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
2806
|
-
* 'https://www.googleapis.com/auth/sqlservice.admin',
|
|
2807
|
-
* ],
|
|
2808
|
-
* });
|
|
2809
|
-
*
|
|
2810
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
2811
|
-
* const authClient = await auth.getClient();
|
|
2812
|
-
* google.options({auth: authClient});
|
|
2813
|
-
*
|
|
2814
|
-
* // Do the magic
|
|
2815
|
-
* const res = await sql.databases.get({
|
|
2816
|
-
* // Name of the database in the instance.
|
|
2817
|
-
* database: 'placeholder-value',
|
|
2818
|
-
* // Database instance ID. This does not include the project ID.
|
|
2819
|
-
* instance: 'placeholder-value',
|
|
2820
|
-
* // Project ID of the project that contains the instance.
|
|
2821
|
-
* project: 'placeholder-value',
|
|
2822
|
-
* });
|
|
2823
|
-
* console.log(res.data);
|
|
2824
|
-
*
|
|
2825
|
-
* // Example response
|
|
2826
|
-
* // {
|
|
2827
|
-
* // "charset": "my_charset",
|
|
2828
|
-
* // "collation": "my_collation",
|
|
2829
|
-
* // "etag": "my_etag",
|
|
2830
|
-
* // "instance": "my_instance",
|
|
2831
|
-
* // "kind": "my_kind",
|
|
2832
|
-
* // "name": "my_name",
|
|
2833
|
-
* // "project": "my_project",
|
|
2834
|
-
* // "selfLink": "my_selfLink",
|
|
2835
|
-
* // "sqlserverDatabaseDetails": {}
|
|
2836
|
-
* // }
|
|
2837
|
-
* }
|
|
2838
|
-
*
|
|
2839
|
-
* main().catch(e => {
|
|
2840
|
-
* console.error(e);
|
|
2841
|
-
* throw e;
|
|
2842
|
-
* });
|
|
2843
|
-
*
|
|
2844
|
-
* ```
|
|
2845
2374
|
*
|
|
2846
2375
|
* @param params - Parameters for request
|
|
2847
2376
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -2856,84 +2385,6 @@ export declare namespace sqladmin_v1 {
|
|
|
2856
2385
|
get(callback: BodyResponseCallback<Schema$Database>): void;
|
|
2857
2386
|
/**
|
|
2858
2387
|
* Inserts a resource containing information about a database inside a Cloud SQL instance. **Note:** You can't modify the default character set and collation.
|
|
2859
|
-
* @example
|
|
2860
|
-
* ```js
|
|
2861
|
-
* // Before running the sample:
|
|
2862
|
-
* // - Enable the API at:
|
|
2863
|
-
* // https://console.developers.google.com/apis/api/sqladmin.googleapis.com
|
|
2864
|
-
* // - Login into gcloud by running:
|
|
2865
|
-
* // `$ gcloud auth application-default login`
|
|
2866
|
-
* // - Install the npm module by running:
|
|
2867
|
-
* // `$ npm install googleapis`
|
|
2868
|
-
*
|
|
2869
|
-
* const {google} = require('googleapis');
|
|
2870
|
-
* const sqladmin = google.sqladmin('v1');
|
|
2871
|
-
*
|
|
2872
|
-
* async function main() {
|
|
2873
|
-
* const auth = new google.auth.GoogleAuth({
|
|
2874
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
2875
|
-
* scopes: [
|
|
2876
|
-
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
2877
|
-
* 'https://www.googleapis.com/auth/sqlservice.admin',
|
|
2878
|
-
* ],
|
|
2879
|
-
* });
|
|
2880
|
-
*
|
|
2881
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
2882
|
-
* const authClient = await auth.getClient();
|
|
2883
|
-
* google.options({auth: authClient});
|
|
2884
|
-
*
|
|
2885
|
-
* // Do the magic
|
|
2886
|
-
* const res = await sql.databases.insert({
|
|
2887
|
-
* // Database instance ID. This does not include the project ID.
|
|
2888
|
-
* instance: 'placeholder-value',
|
|
2889
|
-
* // Project ID of the project that contains the instance.
|
|
2890
|
-
* project: 'placeholder-value',
|
|
2891
|
-
*
|
|
2892
|
-
* // Request body metadata
|
|
2893
|
-
* requestBody: {
|
|
2894
|
-
* // request body parameters
|
|
2895
|
-
* // {
|
|
2896
|
-
* // "charset": "my_charset",
|
|
2897
|
-
* // "collation": "my_collation",
|
|
2898
|
-
* // "etag": "my_etag",
|
|
2899
|
-
* // "instance": "my_instance",
|
|
2900
|
-
* // "kind": "my_kind",
|
|
2901
|
-
* // "name": "my_name",
|
|
2902
|
-
* // "project": "my_project",
|
|
2903
|
-
* // "selfLink": "my_selfLink",
|
|
2904
|
-
* // "sqlserverDatabaseDetails": {}
|
|
2905
|
-
* // }
|
|
2906
|
-
* },
|
|
2907
|
-
* });
|
|
2908
|
-
* console.log(res.data);
|
|
2909
|
-
*
|
|
2910
|
-
* // Example response
|
|
2911
|
-
* // {
|
|
2912
|
-
* // "backupContext": {},
|
|
2913
|
-
* // "endTime": "my_endTime",
|
|
2914
|
-
* // "error": {},
|
|
2915
|
-
* // "exportContext": {},
|
|
2916
|
-
* // "importContext": {},
|
|
2917
|
-
* // "insertTime": "my_insertTime",
|
|
2918
|
-
* // "kind": "my_kind",
|
|
2919
|
-
* // "name": "my_name",
|
|
2920
|
-
* // "operationType": "my_operationType",
|
|
2921
|
-
* // "selfLink": "my_selfLink",
|
|
2922
|
-
* // "startTime": "my_startTime",
|
|
2923
|
-
* // "status": "my_status",
|
|
2924
|
-
* // "targetId": "my_targetId",
|
|
2925
|
-
* // "targetLink": "my_targetLink",
|
|
2926
|
-
* // "targetProject": "my_targetProject",
|
|
2927
|
-
* // "user": "my_user"
|
|
2928
|
-
* // }
|
|
2929
|
-
* }
|
|
2930
|
-
*
|
|
2931
|
-
* main().catch(e => {
|
|
2932
|
-
* console.error(e);
|
|
2933
|
-
* throw e;
|
|
2934
|
-
* });
|
|
2935
|
-
*
|
|
2936
|
-
* ```
|
|
2937
2388
|
*
|
|
2938
2389
|
* @param params - Parameters for request
|
|
2939
2390
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -2948,54 +2399,6 @@ export declare namespace sqladmin_v1 {
|
|
|
2948
2399
|
insert(callback: BodyResponseCallback<Schema$Operation>): void;
|
|
2949
2400
|
/**
|
|
2950
2401
|
* Lists databases in the specified Cloud SQL instance.
|
|
2951
|
-
* @example
|
|
2952
|
-
* ```js
|
|
2953
|
-
* // Before running the sample:
|
|
2954
|
-
* // - Enable the API at:
|
|
2955
|
-
* // https://console.developers.google.com/apis/api/sqladmin.googleapis.com
|
|
2956
|
-
* // - Login into gcloud by running:
|
|
2957
|
-
* // `$ gcloud auth application-default login`
|
|
2958
|
-
* // - Install the npm module by running:
|
|
2959
|
-
* // `$ npm install googleapis`
|
|
2960
|
-
*
|
|
2961
|
-
* const {google} = require('googleapis');
|
|
2962
|
-
* const sqladmin = google.sqladmin('v1');
|
|
2963
|
-
*
|
|
2964
|
-
* async function main() {
|
|
2965
|
-
* const auth = new google.auth.GoogleAuth({
|
|
2966
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
2967
|
-
* scopes: [
|
|
2968
|
-
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
2969
|
-
* 'https://www.googleapis.com/auth/sqlservice.admin',
|
|
2970
|
-
* ],
|
|
2971
|
-
* });
|
|
2972
|
-
*
|
|
2973
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
2974
|
-
* const authClient = await auth.getClient();
|
|
2975
|
-
* google.options({auth: authClient});
|
|
2976
|
-
*
|
|
2977
|
-
* // Do the magic
|
|
2978
|
-
* const res = await sql.databases.list({
|
|
2979
|
-
* // Cloud SQL instance ID. This does not include the project ID.
|
|
2980
|
-
* instance: 'placeholder-value',
|
|
2981
|
-
* // Project ID of the project that contains the instance.
|
|
2982
|
-
* project: 'placeholder-value',
|
|
2983
|
-
* });
|
|
2984
|
-
* console.log(res.data);
|
|
2985
|
-
*
|
|
2986
|
-
* // Example response
|
|
2987
|
-
* // {
|
|
2988
|
-
* // "items": [],
|
|
2989
|
-
* // "kind": "my_kind"
|
|
2990
|
-
* // }
|
|
2991
|
-
* }
|
|
2992
|
-
*
|
|
2993
|
-
* main().catch(e => {
|
|
2994
|
-
* console.error(e);
|
|
2995
|
-
* throw e;
|
|
2996
|
-
* });
|
|
2997
|
-
*
|
|
2998
|
-
* ```
|
|
2999
2402
|
*
|
|
3000
2403
|
* @param params - Parameters for request
|
|
3001
2404
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -3010,86 +2413,6 @@ export declare namespace sqladmin_v1 {
|
|
|
3010
2413
|
list(callback: BodyResponseCallback<Schema$DatabasesListResponse>): void;
|
|
3011
2414
|
/**
|
|
3012
2415
|
* Partially updates a resource containing information about a database inside a Cloud SQL instance. This method supports patch semantics.
|
|
3013
|
-
* @example
|
|
3014
|
-
* ```js
|
|
3015
|
-
* // Before running the sample:
|
|
3016
|
-
* // - Enable the API at:
|
|
3017
|
-
* // https://console.developers.google.com/apis/api/sqladmin.googleapis.com
|
|
3018
|
-
* // - Login into gcloud by running:
|
|
3019
|
-
* // `$ gcloud auth application-default login`
|
|
3020
|
-
* // - Install the npm module by running:
|
|
3021
|
-
* // `$ npm install googleapis`
|
|
3022
|
-
*
|
|
3023
|
-
* const {google} = require('googleapis');
|
|
3024
|
-
* const sqladmin = google.sqladmin('v1');
|
|
3025
|
-
*
|
|
3026
|
-
* async function main() {
|
|
3027
|
-
* const auth = new google.auth.GoogleAuth({
|
|
3028
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
3029
|
-
* scopes: [
|
|
3030
|
-
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
3031
|
-
* 'https://www.googleapis.com/auth/sqlservice.admin',
|
|
3032
|
-
* ],
|
|
3033
|
-
* });
|
|
3034
|
-
*
|
|
3035
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
3036
|
-
* const authClient = await auth.getClient();
|
|
3037
|
-
* google.options({auth: authClient});
|
|
3038
|
-
*
|
|
3039
|
-
* // Do the magic
|
|
3040
|
-
* const res = await sql.databases.patch({
|
|
3041
|
-
* // Name of the database to be updated in the instance.
|
|
3042
|
-
* database: 'placeholder-value',
|
|
3043
|
-
* // Database instance ID. This does not include the project ID.
|
|
3044
|
-
* instance: 'placeholder-value',
|
|
3045
|
-
* // Project ID of the project that contains the instance.
|
|
3046
|
-
* project: 'placeholder-value',
|
|
3047
|
-
*
|
|
3048
|
-
* // Request body metadata
|
|
3049
|
-
* requestBody: {
|
|
3050
|
-
* // request body parameters
|
|
3051
|
-
* // {
|
|
3052
|
-
* // "charset": "my_charset",
|
|
3053
|
-
* // "collation": "my_collation",
|
|
3054
|
-
* // "etag": "my_etag",
|
|
3055
|
-
* // "instance": "my_instance",
|
|
3056
|
-
* // "kind": "my_kind",
|
|
3057
|
-
* // "name": "my_name",
|
|
3058
|
-
* // "project": "my_project",
|
|
3059
|
-
* // "selfLink": "my_selfLink",
|
|
3060
|
-
* // "sqlserverDatabaseDetails": {}
|
|
3061
|
-
* // }
|
|
3062
|
-
* },
|
|
3063
|
-
* });
|
|
3064
|
-
* console.log(res.data);
|
|
3065
|
-
*
|
|
3066
|
-
* // Example response
|
|
3067
|
-
* // {
|
|
3068
|
-
* // "backupContext": {},
|
|
3069
|
-
* // "endTime": "my_endTime",
|
|
3070
|
-
* // "error": {},
|
|
3071
|
-
* // "exportContext": {},
|
|
3072
|
-
* // "importContext": {},
|
|
3073
|
-
* // "insertTime": "my_insertTime",
|
|
3074
|
-
* // "kind": "my_kind",
|
|
3075
|
-
* // "name": "my_name",
|
|
3076
|
-
* // "operationType": "my_operationType",
|
|
3077
|
-
* // "selfLink": "my_selfLink",
|
|
3078
|
-
* // "startTime": "my_startTime",
|
|
3079
|
-
* // "status": "my_status",
|
|
3080
|
-
* // "targetId": "my_targetId",
|
|
3081
|
-
* // "targetLink": "my_targetLink",
|
|
3082
|
-
* // "targetProject": "my_targetProject",
|
|
3083
|
-
* // "user": "my_user"
|
|
3084
|
-
* // }
|
|
3085
|
-
* }
|
|
3086
|
-
*
|
|
3087
|
-
* main().catch(e => {
|
|
3088
|
-
* console.error(e);
|
|
3089
|
-
* throw e;
|
|
3090
|
-
* });
|
|
3091
|
-
*
|
|
3092
|
-
* ```
|
|
3093
2416
|
*
|
|
3094
2417
|
* @param params - Parameters for request
|
|
3095
2418
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -3104,86 +2427,6 @@ export declare namespace sqladmin_v1 {
|
|
|
3104
2427
|
patch(callback: BodyResponseCallback<Schema$Operation>): void;
|
|
3105
2428
|
/**
|
|
3106
2429
|
* Updates a resource containing information about a database inside a Cloud SQL instance.
|
|
3107
|
-
* @example
|
|
3108
|
-
* ```js
|
|
3109
|
-
* // Before running the sample:
|
|
3110
|
-
* // - Enable the API at:
|
|
3111
|
-
* // https://console.developers.google.com/apis/api/sqladmin.googleapis.com
|
|
3112
|
-
* // - Login into gcloud by running:
|
|
3113
|
-
* // `$ gcloud auth application-default login`
|
|
3114
|
-
* // - Install the npm module by running:
|
|
3115
|
-
* // `$ npm install googleapis`
|
|
3116
|
-
*
|
|
3117
|
-
* const {google} = require('googleapis');
|
|
3118
|
-
* const sqladmin = google.sqladmin('v1');
|
|
3119
|
-
*
|
|
3120
|
-
* async function main() {
|
|
3121
|
-
* const auth = new google.auth.GoogleAuth({
|
|
3122
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
3123
|
-
* scopes: [
|
|
3124
|
-
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
3125
|
-
* 'https://www.googleapis.com/auth/sqlservice.admin',
|
|
3126
|
-
* ],
|
|
3127
|
-
* });
|
|
3128
|
-
*
|
|
3129
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
3130
|
-
* const authClient = await auth.getClient();
|
|
3131
|
-
* google.options({auth: authClient});
|
|
3132
|
-
*
|
|
3133
|
-
* // Do the magic
|
|
3134
|
-
* const res = await sql.databases.update({
|
|
3135
|
-
* // Name of the database to be updated in the instance.
|
|
3136
|
-
* database: 'placeholder-value',
|
|
3137
|
-
* // Database instance ID. This does not include the project ID.
|
|
3138
|
-
* instance: 'placeholder-value',
|
|
3139
|
-
* // Project ID of the project that contains the instance.
|
|
3140
|
-
* project: 'placeholder-value',
|
|
3141
|
-
*
|
|
3142
|
-
* // Request body metadata
|
|
3143
|
-
* requestBody: {
|
|
3144
|
-
* // request body parameters
|
|
3145
|
-
* // {
|
|
3146
|
-
* // "charset": "my_charset",
|
|
3147
|
-
* // "collation": "my_collation",
|
|
3148
|
-
* // "etag": "my_etag",
|
|
3149
|
-
* // "instance": "my_instance",
|
|
3150
|
-
* // "kind": "my_kind",
|
|
3151
|
-
* // "name": "my_name",
|
|
3152
|
-
* // "project": "my_project",
|
|
3153
|
-
* // "selfLink": "my_selfLink",
|
|
3154
|
-
* // "sqlserverDatabaseDetails": {}
|
|
3155
|
-
* // }
|
|
3156
|
-
* },
|
|
3157
|
-
* });
|
|
3158
|
-
* console.log(res.data);
|
|
3159
|
-
*
|
|
3160
|
-
* // Example response
|
|
3161
|
-
* // {
|
|
3162
|
-
* // "backupContext": {},
|
|
3163
|
-
* // "endTime": "my_endTime",
|
|
3164
|
-
* // "error": {},
|
|
3165
|
-
* // "exportContext": {},
|
|
3166
|
-
* // "importContext": {},
|
|
3167
|
-
* // "insertTime": "my_insertTime",
|
|
3168
|
-
* // "kind": "my_kind",
|
|
3169
|
-
* // "name": "my_name",
|
|
3170
|
-
* // "operationType": "my_operationType",
|
|
3171
|
-
* // "selfLink": "my_selfLink",
|
|
3172
|
-
* // "startTime": "my_startTime",
|
|
3173
|
-
* // "status": "my_status",
|
|
3174
|
-
* // "targetId": "my_targetId",
|
|
3175
|
-
* // "targetLink": "my_targetLink",
|
|
3176
|
-
* // "targetProject": "my_targetProject",
|
|
3177
|
-
* // "user": "my_user"
|
|
3178
|
-
* // }
|
|
3179
|
-
* }
|
|
3180
|
-
*
|
|
3181
|
-
* main().catch(e => {
|
|
3182
|
-
* console.error(e);
|
|
3183
|
-
* throw e;
|
|
3184
|
-
* });
|
|
3185
|
-
*
|
|
3186
|
-
* ```
|
|
3187
2430
|
*
|
|
3188
2431
|
* @param params - Parameters for request
|
|
3189
2432
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -3290,52 +2533,6 @@ export declare namespace sqladmin_v1 {
|
|
|
3290
2533
|
constructor(context: APIRequestContext);
|
|
3291
2534
|
/**
|
|
3292
2535
|
* Lists all available database flags for Cloud SQL instances.
|
|
3293
|
-
* @example
|
|
3294
|
-
* ```js
|
|
3295
|
-
* // Before running the sample:
|
|
3296
|
-
* // - Enable the API at:
|
|
3297
|
-
* // https://console.developers.google.com/apis/api/sqladmin.googleapis.com
|
|
3298
|
-
* // - Login into gcloud by running:
|
|
3299
|
-
* // `$ gcloud auth application-default login`
|
|
3300
|
-
* // - Install the npm module by running:
|
|
3301
|
-
* // `$ npm install googleapis`
|
|
3302
|
-
*
|
|
3303
|
-
* const {google} = require('googleapis');
|
|
3304
|
-
* const sqladmin = google.sqladmin('v1');
|
|
3305
|
-
*
|
|
3306
|
-
* async function main() {
|
|
3307
|
-
* const auth = new google.auth.GoogleAuth({
|
|
3308
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
3309
|
-
* scopes: [
|
|
3310
|
-
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
3311
|
-
* 'https://www.googleapis.com/auth/sqlservice.admin',
|
|
3312
|
-
* ],
|
|
3313
|
-
* });
|
|
3314
|
-
*
|
|
3315
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
3316
|
-
* const authClient = await auth.getClient();
|
|
3317
|
-
* google.options({auth: authClient});
|
|
3318
|
-
*
|
|
3319
|
-
* // Do the magic
|
|
3320
|
-
* const res = await sql.flags.list({
|
|
3321
|
-
* // Database type and version you want to retrieve flags for. By default, this method returns flags for all database types and versions.
|
|
3322
|
-
* databaseVersion: 'placeholder-value',
|
|
3323
|
-
* });
|
|
3324
|
-
* console.log(res.data);
|
|
3325
|
-
*
|
|
3326
|
-
* // Example response
|
|
3327
|
-
* // {
|
|
3328
|
-
* // "items": [],
|
|
3329
|
-
* // "kind": "my_kind"
|
|
3330
|
-
* // }
|
|
3331
|
-
* }
|
|
3332
|
-
*
|
|
3333
|
-
* main().catch(e => {
|
|
3334
|
-
* console.error(e);
|
|
3335
|
-
* throw e;
|
|
3336
|
-
* });
|
|
3337
|
-
*
|
|
3338
|
-
* ```
|
|
3339
2536
|
*
|
|
3340
2537
|
* @param params - Parameters for request
|
|
3341
2538
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -3360,68 +2557,6 @@ export declare namespace sqladmin_v1 {
|
|
|
3360
2557
|
constructor(context: APIRequestContext);
|
|
3361
2558
|
/**
|
|
3362
2559
|
* Adds a new trusted Certificate Authority (CA) version for the specified instance. Required to prepare for a certificate rotation. If a CA version was previously added but never used in a certificate rotation, this operation replaces that version. There cannot be more than one CA version waiting to be rotated in.
|
|
3363
|
-
* @example
|
|
3364
|
-
* ```js
|
|
3365
|
-
* // Before running the sample:
|
|
3366
|
-
* // - Enable the API at:
|
|
3367
|
-
* // https://console.developers.google.com/apis/api/sqladmin.googleapis.com
|
|
3368
|
-
* // - Login into gcloud by running:
|
|
3369
|
-
* // `$ gcloud auth application-default login`
|
|
3370
|
-
* // - Install the npm module by running:
|
|
3371
|
-
* // `$ npm install googleapis`
|
|
3372
|
-
*
|
|
3373
|
-
* const {google} = require('googleapis');
|
|
3374
|
-
* const sqladmin = google.sqladmin('v1');
|
|
3375
|
-
*
|
|
3376
|
-
* async function main() {
|
|
3377
|
-
* const auth = new google.auth.GoogleAuth({
|
|
3378
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
3379
|
-
* scopes: [
|
|
3380
|
-
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
3381
|
-
* 'https://www.googleapis.com/auth/sqlservice.admin',
|
|
3382
|
-
* ],
|
|
3383
|
-
* });
|
|
3384
|
-
*
|
|
3385
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
3386
|
-
* const authClient = await auth.getClient();
|
|
3387
|
-
* google.options({auth: authClient});
|
|
3388
|
-
*
|
|
3389
|
-
* // Do the magic
|
|
3390
|
-
* const res = await sql.instances.addServerCa({
|
|
3391
|
-
* // Cloud SQL instance ID. This does not include the project ID.
|
|
3392
|
-
* instance: 'placeholder-value',
|
|
3393
|
-
* // Project ID of the project that contains the instance.
|
|
3394
|
-
* project: 'placeholder-value',
|
|
3395
|
-
* });
|
|
3396
|
-
* console.log(res.data);
|
|
3397
|
-
*
|
|
3398
|
-
* // Example response
|
|
3399
|
-
* // {
|
|
3400
|
-
* // "backupContext": {},
|
|
3401
|
-
* // "endTime": "my_endTime",
|
|
3402
|
-
* // "error": {},
|
|
3403
|
-
* // "exportContext": {},
|
|
3404
|
-
* // "importContext": {},
|
|
3405
|
-
* // "insertTime": "my_insertTime",
|
|
3406
|
-
* // "kind": "my_kind",
|
|
3407
|
-
* // "name": "my_name",
|
|
3408
|
-
* // "operationType": "my_operationType",
|
|
3409
|
-
* // "selfLink": "my_selfLink",
|
|
3410
|
-
* // "startTime": "my_startTime",
|
|
3411
|
-
* // "status": "my_status",
|
|
3412
|
-
* // "targetId": "my_targetId",
|
|
3413
|
-
* // "targetLink": "my_targetLink",
|
|
3414
|
-
* // "targetProject": "my_targetProject",
|
|
3415
|
-
* // "user": "my_user"
|
|
3416
|
-
* // }
|
|
3417
|
-
* }
|
|
3418
|
-
*
|
|
3419
|
-
* main().catch(e => {
|
|
3420
|
-
* console.error(e);
|
|
3421
|
-
* throw e;
|
|
3422
|
-
* });
|
|
3423
|
-
*
|
|
3424
|
-
* ```
|
|
3425
2560
|
*
|
|
3426
2561
|
* @param params - Parameters for request
|
|
3427
2562
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -3436,76 +2571,6 @@ export declare namespace sqladmin_v1 {
|
|
|
3436
2571
|
addServerCa(callback: BodyResponseCallback<Schema$Operation>): void;
|
|
3437
2572
|
/**
|
|
3438
2573
|
* Creates a Cloud SQL instance as a clone of the source instance. Using this operation might cause your instance to restart.
|
|
3439
|
-
* @example
|
|
3440
|
-
* ```js
|
|
3441
|
-
* // Before running the sample:
|
|
3442
|
-
* // - Enable the API at:
|
|
3443
|
-
* // https://console.developers.google.com/apis/api/sqladmin.googleapis.com
|
|
3444
|
-
* // - Login into gcloud by running:
|
|
3445
|
-
* // `$ gcloud auth application-default login`
|
|
3446
|
-
* // - Install the npm module by running:
|
|
3447
|
-
* // `$ npm install googleapis`
|
|
3448
|
-
*
|
|
3449
|
-
* const {google} = require('googleapis');
|
|
3450
|
-
* const sqladmin = google.sqladmin('v1');
|
|
3451
|
-
*
|
|
3452
|
-
* async function main() {
|
|
3453
|
-
* const auth = new google.auth.GoogleAuth({
|
|
3454
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
3455
|
-
* scopes: [
|
|
3456
|
-
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
3457
|
-
* 'https://www.googleapis.com/auth/sqlservice.admin',
|
|
3458
|
-
* ],
|
|
3459
|
-
* });
|
|
3460
|
-
*
|
|
3461
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
3462
|
-
* const authClient = await auth.getClient();
|
|
3463
|
-
* google.options({auth: authClient});
|
|
3464
|
-
*
|
|
3465
|
-
* // Do the magic
|
|
3466
|
-
* const res = await sql.instances.clone({
|
|
3467
|
-
* // The ID of the Cloud SQL instance to be cloned (source). This does not include the project ID.
|
|
3468
|
-
* instance: 'placeholder-value',
|
|
3469
|
-
* // Project ID of the source as well as the clone Cloud SQL instance.
|
|
3470
|
-
* project: 'placeholder-value',
|
|
3471
|
-
*
|
|
3472
|
-
* // Request body metadata
|
|
3473
|
-
* requestBody: {
|
|
3474
|
-
* // request body parameters
|
|
3475
|
-
* // {
|
|
3476
|
-
* // "cloneContext": {}
|
|
3477
|
-
* // }
|
|
3478
|
-
* },
|
|
3479
|
-
* });
|
|
3480
|
-
* console.log(res.data);
|
|
3481
|
-
*
|
|
3482
|
-
* // Example response
|
|
3483
|
-
* // {
|
|
3484
|
-
* // "backupContext": {},
|
|
3485
|
-
* // "endTime": "my_endTime",
|
|
3486
|
-
* // "error": {},
|
|
3487
|
-
* // "exportContext": {},
|
|
3488
|
-
* // "importContext": {},
|
|
3489
|
-
* // "insertTime": "my_insertTime",
|
|
3490
|
-
* // "kind": "my_kind",
|
|
3491
|
-
* // "name": "my_name",
|
|
3492
|
-
* // "operationType": "my_operationType",
|
|
3493
|
-
* // "selfLink": "my_selfLink",
|
|
3494
|
-
* // "startTime": "my_startTime",
|
|
3495
|
-
* // "status": "my_status",
|
|
3496
|
-
* // "targetId": "my_targetId",
|
|
3497
|
-
* // "targetLink": "my_targetLink",
|
|
3498
|
-
* // "targetProject": "my_targetProject",
|
|
3499
|
-
* // "user": "my_user"
|
|
3500
|
-
* // }
|
|
3501
|
-
* }
|
|
3502
|
-
*
|
|
3503
|
-
* main().catch(e => {
|
|
3504
|
-
* console.error(e);
|
|
3505
|
-
* throw e;
|
|
3506
|
-
* });
|
|
3507
|
-
*
|
|
3508
|
-
* ```
|
|
3509
2574
|
*
|
|
3510
2575
|
* @param params - Parameters for request
|
|
3511
2576
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -3520,68 +2585,6 @@ export declare namespace sqladmin_v1 {
|
|
|
3520
2585
|
clone(callback: BodyResponseCallback<Schema$Operation>): void;
|
|
3521
2586
|
/**
|
|
3522
2587
|
* Deletes a Cloud SQL instance.
|
|
3523
|
-
* @example
|
|
3524
|
-
* ```js
|
|
3525
|
-
* // Before running the sample:
|
|
3526
|
-
* // - Enable the API at:
|
|
3527
|
-
* // https://console.developers.google.com/apis/api/sqladmin.googleapis.com
|
|
3528
|
-
* // - Login into gcloud by running:
|
|
3529
|
-
* // `$ gcloud auth application-default login`
|
|
3530
|
-
* // - Install the npm module by running:
|
|
3531
|
-
* // `$ npm install googleapis`
|
|
3532
|
-
*
|
|
3533
|
-
* const {google} = require('googleapis');
|
|
3534
|
-
* const sqladmin = google.sqladmin('v1');
|
|
3535
|
-
*
|
|
3536
|
-
* async function main() {
|
|
3537
|
-
* const auth = new google.auth.GoogleAuth({
|
|
3538
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
3539
|
-
* scopes: [
|
|
3540
|
-
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
3541
|
-
* 'https://www.googleapis.com/auth/sqlservice.admin',
|
|
3542
|
-
* ],
|
|
3543
|
-
* });
|
|
3544
|
-
*
|
|
3545
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
3546
|
-
* const authClient = await auth.getClient();
|
|
3547
|
-
* google.options({auth: authClient});
|
|
3548
|
-
*
|
|
3549
|
-
* // Do the magic
|
|
3550
|
-
* const res = await sql.instances.delete({
|
|
3551
|
-
* // Cloud SQL instance ID. This does not include the project ID.
|
|
3552
|
-
* instance: 'placeholder-value',
|
|
3553
|
-
* // Project ID of the project that contains the instance to be deleted.
|
|
3554
|
-
* project: 'placeholder-value',
|
|
3555
|
-
* });
|
|
3556
|
-
* console.log(res.data);
|
|
3557
|
-
*
|
|
3558
|
-
* // Example response
|
|
3559
|
-
* // {
|
|
3560
|
-
* // "backupContext": {},
|
|
3561
|
-
* // "endTime": "my_endTime",
|
|
3562
|
-
* // "error": {},
|
|
3563
|
-
* // "exportContext": {},
|
|
3564
|
-
* // "importContext": {},
|
|
3565
|
-
* // "insertTime": "my_insertTime",
|
|
3566
|
-
* // "kind": "my_kind",
|
|
3567
|
-
* // "name": "my_name",
|
|
3568
|
-
* // "operationType": "my_operationType",
|
|
3569
|
-
* // "selfLink": "my_selfLink",
|
|
3570
|
-
* // "startTime": "my_startTime",
|
|
3571
|
-
* // "status": "my_status",
|
|
3572
|
-
* // "targetId": "my_targetId",
|
|
3573
|
-
* // "targetLink": "my_targetLink",
|
|
3574
|
-
* // "targetProject": "my_targetProject",
|
|
3575
|
-
* // "user": "my_user"
|
|
3576
|
-
* // }
|
|
3577
|
-
* }
|
|
3578
|
-
*
|
|
3579
|
-
* main().catch(e => {
|
|
3580
|
-
* console.error(e);
|
|
3581
|
-
* throw e;
|
|
3582
|
-
* });
|
|
3583
|
-
*
|
|
3584
|
-
* ```
|
|
3585
2588
|
*
|
|
3586
2589
|
* @param params - Parameters for request
|
|
3587
2590
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -3596,76 +2599,6 @@ export declare namespace sqladmin_v1 {
|
|
|
3596
2599
|
delete(callback: BodyResponseCallback<Schema$Operation>): void;
|
|
3597
2600
|
/**
|
|
3598
2601
|
* Demotes the stand-alone instance to be a Cloud SQL read replica for an external database server.
|
|
3599
|
-
* @example
|
|
3600
|
-
* ```js
|
|
3601
|
-
* // Before running the sample:
|
|
3602
|
-
* // - Enable the API at:
|
|
3603
|
-
* // https://console.developers.google.com/apis/api/sqladmin.googleapis.com
|
|
3604
|
-
* // - Login into gcloud by running:
|
|
3605
|
-
* // `$ gcloud auth application-default login`
|
|
3606
|
-
* // - Install the npm module by running:
|
|
3607
|
-
* // `$ npm install googleapis`
|
|
3608
|
-
*
|
|
3609
|
-
* const {google} = require('googleapis');
|
|
3610
|
-
* const sqladmin = google.sqladmin('v1');
|
|
3611
|
-
*
|
|
3612
|
-
* async function main() {
|
|
3613
|
-
* const auth = new google.auth.GoogleAuth({
|
|
3614
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
3615
|
-
* scopes: [
|
|
3616
|
-
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
3617
|
-
* 'https://www.googleapis.com/auth/sqlservice.admin',
|
|
3618
|
-
* ],
|
|
3619
|
-
* });
|
|
3620
|
-
*
|
|
3621
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
3622
|
-
* const authClient = await auth.getClient();
|
|
3623
|
-
* google.options({auth: authClient});
|
|
3624
|
-
*
|
|
3625
|
-
* // Do the magic
|
|
3626
|
-
* const res = await sql.instances.demoteMaster({
|
|
3627
|
-
* // Cloud SQL instance name.
|
|
3628
|
-
* instance: 'placeholder-value',
|
|
3629
|
-
* // ID of the project that contains the instance.
|
|
3630
|
-
* project: 'placeholder-value',
|
|
3631
|
-
*
|
|
3632
|
-
* // Request body metadata
|
|
3633
|
-
* requestBody: {
|
|
3634
|
-
* // request body parameters
|
|
3635
|
-
* // {
|
|
3636
|
-
* // "demoteMasterContext": {}
|
|
3637
|
-
* // }
|
|
3638
|
-
* },
|
|
3639
|
-
* });
|
|
3640
|
-
* console.log(res.data);
|
|
3641
|
-
*
|
|
3642
|
-
* // Example response
|
|
3643
|
-
* // {
|
|
3644
|
-
* // "backupContext": {},
|
|
3645
|
-
* // "endTime": "my_endTime",
|
|
3646
|
-
* // "error": {},
|
|
3647
|
-
* // "exportContext": {},
|
|
3648
|
-
* // "importContext": {},
|
|
3649
|
-
* // "insertTime": "my_insertTime",
|
|
3650
|
-
* // "kind": "my_kind",
|
|
3651
|
-
* // "name": "my_name",
|
|
3652
|
-
* // "operationType": "my_operationType",
|
|
3653
|
-
* // "selfLink": "my_selfLink",
|
|
3654
|
-
* // "startTime": "my_startTime",
|
|
3655
|
-
* // "status": "my_status",
|
|
3656
|
-
* // "targetId": "my_targetId",
|
|
3657
|
-
* // "targetLink": "my_targetLink",
|
|
3658
|
-
* // "targetProject": "my_targetProject",
|
|
3659
|
-
* // "user": "my_user"
|
|
3660
|
-
* // }
|
|
3661
|
-
* }
|
|
3662
|
-
*
|
|
3663
|
-
* main().catch(e => {
|
|
3664
|
-
* console.error(e);
|
|
3665
|
-
* throw e;
|
|
3666
|
-
* });
|
|
3667
|
-
*
|
|
3668
|
-
* ```
|
|
3669
2602
|
*
|
|
3670
2603
|
* @param params - Parameters for request
|
|
3671
2604
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -3680,73 +2613,6 @@ export declare namespace sqladmin_v1 {
|
|
|
3680
2613
|
demoteMaster(callback: BodyResponseCallback<Schema$Operation>): void;
|
|
3681
2614
|
/**
|
|
3682
2615
|
* Exports data from a Cloud SQL instance to a Cloud Storage bucket as a SQL dump or CSV file.
|
|
3683
|
-
* @example
|
|
3684
|
-
* ```js
|
|
3685
|
-
* // Before running the sample:
|
|
3686
|
-
* // - Enable the API at:
|
|
3687
|
-
* // https://console.developers.google.com/apis/api/sqladmin.googleapis.com
|
|
3688
|
-
* // - Login into gcloud by running:
|
|
3689
|
-
* // `$ gcloud auth application-default login`
|
|
3690
|
-
* // - Install the npm module by running:
|
|
3691
|
-
* // `$ npm install googleapis`
|
|
3692
|
-
*
|
|
3693
|
-
* const {google} = require('googleapis');
|
|
3694
|
-
* const sqladmin = google.sqladmin('v1');
|
|
3695
|
-
*
|
|
3696
|
-
* async function main() {
|
|
3697
|
-
* const auth = new google.auth.GoogleAuth({
|
|
3698
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
3699
|
-
* scopes: ['https://www.googleapis.com/auth/cloud-platform'],
|
|
3700
|
-
* });
|
|
3701
|
-
*
|
|
3702
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
3703
|
-
* const authClient = await auth.getClient();
|
|
3704
|
-
* google.options({auth: authClient});
|
|
3705
|
-
*
|
|
3706
|
-
* // Do the magic
|
|
3707
|
-
* const res = await sql.instances.export({
|
|
3708
|
-
* // Cloud SQL instance ID. This does not include the project ID.
|
|
3709
|
-
* instance: 'placeholder-value',
|
|
3710
|
-
* // Project ID of the project that contains the instance to be exported.
|
|
3711
|
-
* project: 'placeholder-value',
|
|
3712
|
-
*
|
|
3713
|
-
* // Request body metadata
|
|
3714
|
-
* requestBody: {
|
|
3715
|
-
* // request body parameters
|
|
3716
|
-
* // {
|
|
3717
|
-
* // "exportContext": {}
|
|
3718
|
-
* // }
|
|
3719
|
-
* },
|
|
3720
|
-
* });
|
|
3721
|
-
* console.log(res.data);
|
|
3722
|
-
*
|
|
3723
|
-
* // Example response
|
|
3724
|
-
* // {
|
|
3725
|
-
* // "backupContext": {},
|
|
3726
|
-
* // "endTime": "my_endTime",
|
|
3727
|
-
* // "error": {},
|
|
3728
|
-
* // "exportContext": {},
|
|
3729
|
-
* // "importContext": {},
|
|
3730
|
-
* // "insertTime": "my_insertTime",
|
|
3731
|
-
* // "kind": "my_kind",
|
|
3732
|
-
* // "name": "my_name",
|
|
3733
|
-
* // "operationType": "my_operationType",
|
|
3734
|
-
* // "selfLink": "my_selfLink",
|
|
3735
|
-
* // "startTime": "my_startTime",
|
|
3736
|
-
* // "status": "my_status",
|
|
3737
|
-
* // "targetId": "my_targetId",
|
|
3738
|
-
* // "targetLink": "my_targetLink",
|
|
3739
|
-
* // "targetProject": "my_targetProject",
|
|
3740
|
-
* // "user": "my_user"
|
|
3741
|
-
* // }
|
|
3742
|
-
* }
|
|
3743
|
-
*
|
|
3744
|
-
* main().catch(e => {
|
|
3745
|
-
* console.error(e);
|
|
3746
|
-
* throw e;
|
|
3747
|
-
* });
|
|
3748
|
-
*
|
|
3749
|
-
* ```
|
|
3750
2616
|
*
|
|
3751
2617
|
* @param params - Parameters for request
|
|
3752
2618
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -3761,76 +2627,6 @@ export declare namespace sqladmin_v1 {
|
|
|
3761
2627
|
export(callback: BodyResponseCallback<Schema$Operation>): void;
|
|
3762
2628
|
/**
|
|
3763
2629
|
* Initiates a manual failover of a high availability (HA) primary instance to a standby instance, which becomes the primary instance. Users are then rerouted to the new primary. For more information, see the [Overview of high availability](https://cloud.google.com/sql/docs/mysql/high-availability) page in the Cloud SQL documentation. If using Legacy HA (MySQL only), this causes the instance to failover to its failover replica instance.
|
|
3764
|
-
* @example
|
|
3765
|
-
* ```js
|
|
3766
|
-
* // Before running the sample:
|
|
3767
|
-
* // - Enable the API at:
|
|
3768
|
-
* // https://console.developers.google.com/apis/api/sqladmin.googleapis.com
|
|
3769
|
-
* // - Login into gcloud by running:
|
|
3770
|
-
* // `$ gcloud auth application-default login`
|
|
3771
|
-
* // - Install the npm module by running:
|
|
3772
|
-
* // `$ npm install googleapis`
|
|
3773
|
-
*
|
|
3774
|
-
* const {google} = require('googleapis');
|
|
3775
|
-
* const sqladmin = google.sqladmin('v1');
|
|
3776
|
-
*
|
|
3777
|
-
* async function main() {
|
|
3778
|
-
* const auth = new google.auth.GoogleAuth({
|
|
3779
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
3780
|
-
* scopes: [
|
|
3781
|
-
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
3782
|
-
* 'https://www.googleapis.com/auth/sqlservice.admin',
|
|
3783
|
-
* ],
|
|
3784
|
-
* });
|
|
3785
|
-
*
|
|
3786
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
3787
|
-
* const authClient = await auth.getClient();
|
|
3788
|
-
* google.options({auth: authClient});
|
|
3789
|
-
*
|
|
3790
|
-
* // Do the magic
|
|
3791
|
-
* const res = await sql.instances.failover({
|
|
3792
|
-
* // Cloud SQL instance ID. This does not include the project ID.
|
|
3793
|
-
* instance: 'placeholder-value',
|
|
3794
|
-
* // ID of the project that contains the read replica.
|
|
3795
|
-
* project: 'placeholder-value',
|
|
3796
|
-
*
|
|
3797
|
-
* // Request body metadata
|
|
3798
|
-
* requestBody: {
|
|
3799
|
-
* // request body parameters
|
|
3800
|
-
* // {
|
|
3801
|
-
* // "failoverContext": {}
|
|
3802
|
-
* // }
|
|
3803
|
-
* },
|
|
3804
|
-
* });
|
|
3805
|
-
* console.log(res.data);
|
|
3806
|
-
*
|
|
3807
|
-
* // Example response
|
|
3808
|
-
* // {
|
|
3809
|
-
* // "backupContext": {},
|
|
3810
|
-
* // "endTime": "my_endTime",
|
|
3811
|
-
* // "error": {},
|
|
3812
|
-
* // "exportContext": {},
|
|
3813
|
-
* // "importContext": {},
|
|
3814
|
-
* // "insertTime": "my_insertTime",
|
|
3815
|
-
* // "kind": "my_kind",
|
|
3816
|
-
* // "name": "my_name",
|
|
3817
|
-
* // "operationType": "my_operationType",
|
|
3818
|
-
* // "selfLink": "my_selfLink",
|
|
3819
|
-
* // "startTime": "my_startTime",
|
|
3820
|
-
* // "status": "my_status",
|
|
3821
|
-
* // "targetId": "my_targetId",
|
|
3822
|
-
* // "targetLink": "my_targetLink",
|
|
3823
|
-
* // "targetProject": "my_targetProject",
|
|
3824
|
-
* // "user": "my_user"
|
|
3825
|
-
* // }
|
|
3826
|
-
* }
|
|
3827
|
-
*
|
|
3828
|
-
* main().catch(e => {
|
|
3829
|
-
* console.error(e);
|
|
3830
|
-
* throw e;
|
|
3831
|
-
* });
|
|
3832
|
-
*
|
|
3833
|
-
* ```
|
|
3834
2630
|
*
|
|
3835
2631
|
* @param params - Parameters for request
|
|
3836
2632
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -3845,88 +2641,6 @@ export declare namespace sqladmin_v1 {
|
|
|
3845
2641
|
failover(callback: BodyResponseCallback<Schema$Operation>): void;
|
|
3846
2642
|
/**
|
|
3847
2643
|
* Retrieves a resource containing information about a Cloud SQL instance.
|
|
3848
|
-
* @example
|
|
3849
|
-
* ```js
|
|
3850
|
-
* // Before running the sample:
|
|
3851
|
-
* // - Enable the API at:
|
|
3852
|
-
* // https://console.developers.google.com/apis/api/sqladmin.googleapis.com
|
|
3853
|
-
* // - Login into gcloud by running:
|
|
3854
|
-
* // `$ gcloud auth application-default login`
|
|
3855
|
-
* // - Install the npm module by running:
|
|
3856
|
-
* // `$ npm install googleapis`
|
|
3857
|
-
*
|
|
3858
|
-
* const {google} = require('googleapis');
|
|
3859
|
-
* const sqladmin = google.sqladmin('v1');
|
|
3860
|
-
*
|
|
3861
|
-
* async function main() {
|
|
3862
|
-
* const auth = new google.auth.GoogleAuth({
|
|
3863
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
3864
|
-
* scopes: [
|
|
3865
|
-
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
3866
|
-
* 'https://www.googleapis.com/auth/sqlservice.admin',
|
|
3867
|
-
* ],
|
|
3868
|
-
* });
|
|
3869
|
-
*
|
|
3870
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
3871
|
-
* const authClient = await auth.getClient();
|
|
3872
|
-
* google.options({auth: authClient});
|
|
3873
|
-
*
|
|
3874
|
-
* // Do the magic
|
|
3875
|
-
* const res = await sql.instances.get({
|
|
3876
|
-
* // Database instance ID. This does not include the project ID.
|
|
3877
|
-
* instance: 'placeholder-value',
|
|
3878
|
-
* // Project ID of the project that contains the instance.
|
|
3879
|
-
* project: 'placeholder-value',
|
|
3880
|
-
* });
|
|
3881
|
-
* console.log(res.data);
|
|
3882
|
-
*
|
|
3883
|
-
* // Example response
|
|
3884
|
-
* // {
|
|
3885
|
-
* // "availableMaintenanceVersions": [],
|
|
3886
|
-
* // "backendType": "my_backendType",
|
|
3887
|
-
* // "connectionName": "my_connectionName",
|
|
3888
|
-
* // "createTime": "my_createTime",
|
|
3889
|
-
* // "currentDiskSize": "my_currentDiskSize",
|
|
3890
|
-
* // "databaseInstalledVersion": "my_databaseInstalledVersion",
|
|
3891
|
-
* // "databaseVersion": "my_databaseVersion",
|
|
3892
|
-
* // "diskEncryptionConfiguration": {},
|
|
3893
|
-
* // "diskEncryptionStatus": {},
|
|
3894
|
-
* // "etag": "my_etag",
|
|
3895
|
-
* // "failoverReplica": {},
|
|
3896
|
-
* // "gceZone": "my_gceZone",
|
|
3897
|
-
* // "instanceType": "my_instanceType",
|
|
3898
|
-
* // "ipAddresses": [],
|
|
3899
|
-
* // "ipv6Address": "my_ipv6Address",
|
|
3900
|
-
* // "kind": "my_kind",
|
|
3901
|
-
* // "maintenanceVersion": "my_maintenanceVersion",
|
|
3902
|
-
* // "masterInstanceName": "my_masterInstanceName",
|
|
3903
|
-
* // "maxDiskSize": "my_maxDiskSize",
|
|
3904
|
-
* // "name": "my_name",
|
|
3905
|
-
* // "onPremisesConfiguration": {},
|
|
3906
|
-
* // "outOfDiskReport": {},
|
|
3907
|
-
* // "project": "my_project",
|
|
3908
|
-
* // "region": "my_region",
|
|
3909
|
-
* // "replicaConfiguration": {},
|
|
3910
|
-
* // "replicaNames": [],
|
|
3911
|
-
* // "rootPassword": "my_rootPassword",
|
|
3912
|
-
* // "satisfiesPzs": false,
|
|
3913
|
-
* // "scheduledMaintenance": {},
|
|
3914
|
-
* // "secondaryGceZone": "my_secondaryGceZone",
|
|
3915
|
-
* // "selfLink": "my_selfLink",
|
|
3916
|
-
* // "serverCaCert": {},
|
|
3917
|
-
* // "serviceAccountEmailAddress": "my_serviceAccountEmailAddress",
|
|
3918
|
-
* // "settings": {},
|
|
3919
|
-
* // "state": "my_state",
|
|
3920
|
-
* // "suspensionReason": []
|
|
3921
|
-
* // }
|
|
3922
|
-
* }
|
|
3923
|
-
*
|
|
3924
|
-
* main().catch(e => {
|
|
3925
|
-
* console.error(e);
|
|
3926
|
-
* throw e;
|
|
3927
|
-
* });
|
|
3928
|
-
*
|
|
3929
|
-
* ```
|
|
3930
2644
|
*
|
|
3931
2645
|
* @param params - Parameters for request
|
|
3932
2646
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -3941,73 +2655,6 @@ export declare namespace sqladmin_v1 {
|
|
|
3941
2655
|
get(callback: BodyResponseCallback<Schema$DatabaseInstance>): void;
|
|
3942
2656
|
/**
|
|
3943
2657
|
* Imports data into a Cloud SQL instance from a SQL dump or CSV file in Cloud Storage.
|
|
3944
|
-
* @example
|
|
3945
|
-
* ```js
|
|
3946
|
-
* // Before running the sample:
|
|
3947
|
-
* // - Enable the API at:
|
|
3948
|
-
* // https://console.developers.google.com/apis/api/sqladmin.googleapis.com
|
|
3949
|
-
* // - Login into gcloud by running:
|
|
3950
|
-
* // `$ gcloud auth application-default login`
|
|
3951
|
-
* // - Install the npm module by running:
|
|
3952
|
-
* // `$ npm install googleapis`
|
|
3953
|
-
*
|
|
3954
|
-
* const {google} = require('googleapis');
|
|
3955
|
-
* const sqladmin = google.sqladmin('v1');
|
|
3956
|
-
*
|
|
3957
|
-
* async function main() {
|
|
3958
|
-
* const auth = new google.auth.GoogleAuth({
|
|
3959
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
3960
|
-
* scopes: ['https://www.googleapis.com/auth/cloud-platform'],
|
|
3961
|
-
* });
|
|
3962
|
-
*
|
|
3963
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
3964
|
-
* const authClient = await auth.getClient();
|
|
3965
|
-
* google.options({auth: authClient});
|
|
3966
|
-
*
|
|
3967
|
-
* // Do the magic
|
|
3968
|
-
* const res = await sql.instances.import({
|
|
3969
|
-
* // Cloud SQL instance ID. This does not include the project ID.
|
|
3970
|
-
* instance: 'placeholder-value',
|
|
3971
|
-
* // Project ID of the project that contains the instance.
|
|
3972
|
-
* project: 'placeholder-value',
|
|
3973
|
-
*
|
|
3974
|
-
* // Request body metadata
|
|
3975
|
-
* requestBody: {
|
|
3976
|
-
* // request body parameters
|
|
3977
|
-
* // {
|
|
3978
|
-
* // "importContext": {}
|
|
3979
|
-
* // }
|
|
3980
|
-
* },
|
|
3981
|
-
* });
|
|
3982
|
-
* console.log(res.data);
|
|
3983
|
-
*
|
|
3984
|
-
* // Example response
|
|
3985
|
-
* // {
|
|
3986
|
-
* // "backupContext": {},
|
|
3987
|
-
* // "endTime": "my_endTime",
|
|
3988
|
-
* // "error": {},
|
|
3989
|
-
* // "exportContext": {},
|
|
3990
|
-
* // "importContext": {},
|
|
3991
|
-
* // "insertTime": "my_insertTime",
|
|
3992
|
-
* // "kind": "my_kind",
|
|
3993
|
-
* // "name": "my_name",
|
|
3994
|
-
* // "operationType": "my_operationType",
|
|
3995
|
-
* // "selfLink": "my_selfLink",
|
|
3996
|
-
* // "startTime": "my_startTime",
|
|
3997
|
-
* // "status": "my_status",
|
|
3998
|
-
* // "targetId": "my_targetId",
|
|
3999
|
-
* // "targetLink": "my_targetLink",
|
|
4000
|
-
* // "targetProject": "my_targetProject",
|
|
4001
|
-
* // "user": "my_user"
|
|
4002
|
-
* // }
|
|
4003
|
-
* }
|
|
4004
|
-
*
|
|
4005
|
-
* main().catch(e => {
|
|
4006
|
-
* console.error(e);
|
|
4007
|
-
* throw e;
|
|
4008
|
-
* });
|
|
4009
|
-
*
|
|
4010
|
-
* ```
|
|
4011
2658
|
*
|
|
4012
2659
|
* @param params - Parameters for request
|
|
4013
2660
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -4022,109 +2669,6 @@ export declare namespace sqladmin_v1 {
|
|
|
4022
2669
|
import(callback: BodyResponseCallback<Schema$Operation>): void;
|
|
4023
2670
|
/**
|
|
4024
2671
|
* Creates a new Cloud SQL instance.
|
|
4025
|
-
* @example
|
|
4026
|
-
* ```js
|
|
4027
|
-
* // Before running the sample:
|
|
4028
|
-
* // - Enable the API at:
|
|
4029
|
-
* // https://console.developers.google.com/apis/api/sqladmin.googleapis.com
|
|
4030
|
-
* // - Login into gcloud by running:
|
|
4031
|
-
* // `$ gcloud auth application-default login`
|
|
4032
|
-
* // - Install the npm module by running:
|
|
4033
|
-
* // `$ npm install googleapis`
|
|
4034
|
-
*
|
|
4035
|
-
* const {google} = require('googleapis');
|
|
4036
|
-
* const sqladmin = google.sqladmin('v1');
|
|
4037
|
-
*
|
|
4038
|
-
* async function main() {
|
|
4039
|
-
* const auth = new google.auth.GoogleAuth({
|
|
4040
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
4041
|
-
* scopes: [
|
|
4042
|
-
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
4043
|
-
* 'https://www.googleapis.com/auth/sqlservice.admin',
|
|
4044
|
-
* ],
|
|
4045
|
-
* });
|
|
4046
|
-
*
|
|
4047
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
4048
|
-
* const authClient = await auth.getClient();
|
|
4049
|
-
* google.options({auth: authClient});
|
|
4050
|
-
*
|
|
4051
|
-
* // Do the magic
|
|
4052
|
-
* const res = await sql.instances.insert({
|
|
4053
|
-
* // Project ID of the project to which the newly created Cloud SQL instances should belong.
|
|
4054
|
-
* project: 'placeholder-value',
|
|
4055
|
-
*
|
|
4056
|
-
* // Request body metadata
|
|
4057
|
-
* requestBody: {
|
|
4058
|
-
* // request body parameters
|
|
4059
|
-
* // {
|
|
4060
|
-
* // "availableMaintenanceVersions": [],
|
|
4061
|
-
* // "backendType": "my_backendType",
|
|
4062
|
-
* // "connectionName": "my_connectionName",
|
|
4063
|
-
* // "createTime": "my_createTime",
|
|
4064
|
-
* // "currentDiskSize": "my_currentDiskSize",
|
|
4065
|
-
* // "databaseInstalledVersion": "my_databaseInstalledVersion",
|
|
4066
|
-
* // "databaseVersion": "my_databaseVersion",
|
|
4067
|
-
* // "diskEncryptionConfiguration": {},
|
|
4068
|
-
* // "diskEncryptionStatus": {},
|
|
4069
|
-
* // "etag": "my_etag",
|
|
4070
|
-
* // "failoverReplica": {},
|
|
4071
|
-
* // "gceZone": "my_gceZone",
|
|
4072
|
-
* // "instanceType": "my_instanceType",
|
|
4073
|
-
* // "ipAddresses": [],
|
|
4074
|
-
* // "ipv6Address": "my_ipv6Address",
|
|
4075
|
-
* // "kind": "my_kind",
|
|
4076
|
-
* // "maintenanceVersion": "my_maintenanceVersion",
|
|
4077
|
-
* // "masterInstanceName": "my_masterInstanceName",
|
|
4078
|
-
* // "maxDiskSize": "my_maxDiskSize",
|
|
4079
|
-
* // "name": "my_name",
|
|
4080
|
-
* // "onPremisesConfiguration": {},
|
|
4081
|
-
* // "outOfDiskReport": {},
|
|
4082
|
-
* // "project": "my_project",
|
|
4083
|
-
* // "region": "my_region",
|
|
4084
|
-
* // "replicaConfiguration": {},
|
|
4085
|
-
* // "replicaNames": [],
|
|
4086
|
-
* // "rootPassword": "my_rootPassword",
|
|
4087
|
-
* // "satisfiesPzs": false,
|
|
4088
|
-
* // "scheduledMaintenance": {},
|
|
4089
|
-
* // "secondaryGceZone": "my_secondaryGceZone",
|
|
4090
|
-
* // "selfLink": "my_selfLink",
|
|
4091
|
-
* // "serverCaCert": {},
|
|
4092
|
-
* // "serviceAccountEmailAddress": "my_serviceAccountEmailAddress",
|
|
4093
|
-
* // "settings": {},
|
|
4094
|
-
* // "state": "my_state",
|
|
4095
|
-
* // "suspensionReason": []
|
|
4096
|
-
* // }
|
|
4097
|
-
* },
|
|
4098
|
-
* });
|
|
4099
|
-
* console.log(res.data);
|
|
4100
|
-
*
|
|
4101
|
-
* // Example response
|
|
4102
|
-
* // {
|
|
4103
|
-
* // "backupContext": {},
|
|
4104
|
-
* // "endTime": "my_endTime",
|
|
4105
|
-
* // "error": {},
|
|
4106
|
-
* // "exportContext": {},
|
|
4107
|
-
* // "importContext": {},
|
|
4108
|
-
* // "insertTime": "my_insertTime",
|
|
4109
|
-
* // "kind": "my_kind",
|
|
4110
|
-
* // "name": "my_name",
|
|
4111
|
-
* // "operationType": "my_operationType",
|
|
4112
|
-
* // "selfLink": "my_selfLink",
|
|
4113
|
-
* // "startTime": "my_startTime",
|
|
4114
|
-
* // "status": "my_status",
|
|
4115
|
-
* // "targetId": "my_targetId",
|
|
4116
|
-
* // "targetLink": "my_targetLink",
|
|
4117
|
-
* // "targetProject": "my_targetProject",
|
|
4118
|
-
* // "user": "my_user"
|
|
4119
|
-
* // }
|
|
4120
|
-
* }
|
|
4121
|
-
*
|
|
4122
|
-
* main().catch(e => {
|
|
4123
|
-
* console.error(e);
|
|
4124
|
-
* throw e;
|
|
4125
|
-
* });
|
|
4126
|
-
*
|
|
4127
|
-
* ```
|
|
4128
2672
|
*
|
|
4129
2673
|
* @param params - Parameters for request
|
|
4130
2674
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -4139,60 +2683,6 @@ export declare namespace sqladmin_v1 {
|
|
|
4139
2683
|
insert(callback: BodyResponseCallback<Schema$Operation>): void;
|
|
4140
2684
|
/**
|
|
4141
2685
|
* Lists instances under a given project.
|
|
4142
|
-
* @example
|
|
4143
|
-
* ```js
|
|
4144
|
-
* // Before running the sample:
|
|
4145
|
-
* // - Enable the API at:
|
|
4146
|
-
* // https://console.developers.google.com/apis/api/sqladmin.googleapis.com
|
|
4147
|
-
* // - Login into gcloud by running:
|
|
4148
|
-
* // `$ gcloud auth application-default login`
|
|
4149
|
-
* // - Install the npm module by running:
|
|
4150
|
-
* // `$ npm install googleapis`
|
|
4151
|
-
*
|
|
4152
|
-
* const {google} = require('googleapis');
|
|
4153
|
-
* const sqladmin = google.sqladmin('v1');
|
|
4154
|
-
*
|
|
4155
|
-
* async function main() {
|
|
4156
|
-
* const auth = new google.auth.GoogleAuth({
|
|
4157
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
4158
|
-
* scopes: [
|
|
4159
|
-
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
4160
|
-
* 'https://www.googleapis.com/auth/sqlservice.admin',
|
|
4161
|
-
* ],
|
|
4162
|
-
* });
|
|
4163
|
-
*
|
|
4164
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
4165
|
-
* const authClient = await auth.getClient();
|
|
4166
|
-
* google.options({auth: authClient});
|
|
4167
|
-
*
|
|
4168
|
-
* // Do the magic
|
|
4169
|
-
* const res = await sql.instances.list({
|
|
4170
|
-
* // A filter expression that filters resources listed in the response. The expression is in the form of field:value. For example, 'instanceType:CLOUD_SQL_INSTANCE'. Fields can be nested as needed as per their JSON representation, such as 'settings.userLabels.auto_start:true'. Multiple filter queries are space-separated. For example. 'state:RUNNABLE instanceType:CLOUD_SQL_INSTANCE'. By default, each expression is an AND expression. However, you can include AND and OR expressions explicitly.
|
|
4171
|
-
* filter: 'placeholder-value',
|
|
4172
|
-
* // The maximum number of instances to return. The service may return fewer than this value. If unspecified, at most 500 instances are returned. The maximum value is 1000; values above 1000 are coerced to 1000.
|
|
4173
|
-
* maxResults: 'placeholder-value',
|
|
4174
|
-
* // A previously-returned page token representing part of the larger set of results to view.
|
|
4175
|
-
* pageToken: 'placeholder-value',
|
|
4176
|
-
* // Project ID of the project for which to list Cloud SQL instances.
|
|
4177
|
-
* project: 'placeholder-value',
|
|
4178
|
-
* });
|
|
4179
|
-
* console.log(res.data);
|
|
4180
|
-
*
|
|
4181
|
-
* // Example response
|
|
4182
|
-
* // {
|
|
4183
|
-
* // "items": [],
|
|
4184
|
-
* // "kind": "my_kind",
|
|
4185
|
-
* // "nextPageToken": "my_nextPageToken",
|
|
4186
|
-
* // "warnings": []
|
|
4187
|
-
* // }
|
|
4188
|
-
* }
|
|
4189
|
-
*
|
|
4190
|
-
* main().catch(e => {
|
|
4191
|
-
* console.error(e);
|
|
4192
|
-
* throw e;
|
|
4193
|
-
* });
|
|
4194
|
-
*
|
|
4195
|
-
* ```
|
|
4196
2686
|
*
|
|
4197
2687
|
* @param params - Parameters for request
|
|
4198
2688
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -4207,55 +2697,6 @@ export declare namespace sqladmin_v1 {
|
|
|
4207
2697
|
list(callback: BodyResponseCallback<Schema$InstancesListResponse>): void;
|
|
4208
2698
|
/**
|
|
4209
2699
|
* Lists all of the trusted Certificate Authorities (CAs) for the specified instance. There can be up to three CAs listed: the CA that was used to sign the certificate that is currently in use, a CA that has been added but not yet used to sign a certificate, and a CA used to sign a certificate that has previously rotated out.
|
|
4210
|
-
* @example
|
|
4211
|
-
* ```js
|
|
4212
|
-
* // Before running the sample:
|
|
4213
|
-
* // - Enable the API at:
|
|
4214
|
-
* // https://console.developers.google.com/apis/api/sqladmin.googleapis.com
|
|
4215
|
-
* // - Login into gcloud by running:
|
|
4216
|
-
* // `$ gcloud auth application-default login`
|
|
4217
|
-
* // - Install the npm module by running:
|
|
4218
|
-
* // `$ npm install googleapis`
|
|
4219
|
-
*
|
|
4220
|
-
* const {google} = require('googleapis');
|
|
4221
|
-
* const sqladmin = google.sqladmin('v1');
|
|
4222
|
-
*
|
|
4223
|
-
* async function main() {
|
|
4224
|
-
* const auth = new google.auth.GoogleAuth({
|
|
4225
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
4226
|
-
* scopes: [
|
|
4227
|
-
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
4228
|
-
* 'https://www.googleapis.com/auth/sqlservice.admin',
|
|
4229
|
-
* ],
|
|
4230
|
-
* });
|
|
4231
|
-
*
|
|
4232
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
4233
|
-
* const authClient = await auth.getClient();
|
|
4234
|
-
* google.options({auth: authClient});
|
|
4235
|
-
*
|
|
4236
|
-
* // Do the magic
|
|
4237
|
-
* const res = await sql.instances.listServerCas({
|
|
4238
|
-
* // Cloud SQL instance ID. This does not include the project ID.
|
|
4239
|
-
* instance: 'placeholder-value',
|
|
4240
|
-
* // Project ID of the project that contains the instance.
|
|
4241
|
-
* project: 'placeholder-value',
|
|
4242
|
-
* });
|
|
4243
|
-
* console.log(res.data);
|
|
4244
|
-
*
|
|
4245
|
-
* // Example response
|
|
4246
|
-
* // {
|
|
4247
|
-
* // "activeVersion": "my_activeVersion",
|
|
4248
|
-
* // "certs": [],
|
|
4249
|
-
* // "kind": "my_kind"
|
|
4250
|
-
* // }
|
|
4251
|
-
* }
|
|
4252
|
-
*
|
|
4253
|
-
* main().catch(e => {
|
|
4254
|
-
* console.error(e);
|
|
4255
|
-
* throw e;
|
|
4256
|
-
* });
|
|
4257
|
-
*
|
|
4258
|
-
* ```
|
|
4259
2700
|
*
|
|
4260
2701
|
* @param params - Parameters for request
|
|
4261
2702
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -4270,111 +2711,6 @@ export declare namespace sqladmin_v1 {
|
|
|
4270
2711
|
listServerCas(callback: BodyResponseCallback<Schema$InstancesListServerCasResponse>): void;
|
|
4271
2712
|
/**
|
|
4272
2713
|
* Partially updates settings of a Cloud SQL instance by merging the request with the current configuration. This method supports patch semantics.
|
|
4273
|
-
* @example
|
|
4274
|
-
* ```js
|
|
4275
|
-
* // Before running the sample:
|
|
4276
|
-
* // - Enable the API at:
|
|
4277
|
-
* // https://console.developers.google.com/apis/api/sqladmin.googleapis.com
|
|
4278
|
-
* // - Login into gcloud by running:
|
|
4279
|
-
* // `$ gcloud auth application-default login`
|
|
4280
|
-
* // - Install the npm module by running:
|
|
4281
|
-
* // `$ npm install googleapis`
|
|
4282
|
-
*
|
|
4283
|
-
* const {google} = require('googleapis');
|
|
4284
|
-
* const sqladmin = google.sqladmin('v1');
|
|
4285
|
-
*
|
|
4286
|
-
* async function main() {
|
|
4287
|
-
* const auth = new google.auth.GoogleAuth({
|
|
4288
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
4289
|
-
* scopes: [
|
|
4290
|
-
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
4291
|
-
* 'https://www.googleapis.com/auth/sqlservice.admin',
|
|
4292
|
-
* ],
|
|
4293
|
-
* });
|
|
4294
|
-
*
|
|
4295
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
4296
|
-
* const authClient = await auth.getClient();
|
|
4297
|
-
* google.options({auth: authClient});
|
|
4298
|
-
*
|
|
4299
|
-
* // Do the magic
|
|
4300
|
-
* const res = await sql.instances.patch({
|
|
4301
|
-
* // Cloud SQL instance ID. This does not include the project ID.
|
|
4302
|
-
* instance: 'placeholder-value',
|
|
4303
|
-
* // Project ID of the project that contains the instance.
|
|
4304
|
-
* project: 'placeholder-value',
|
|
4305
|
-
*
|
|
4306
|
-
* // Request body metadata
|
|
4307
|
-
* requestBody: {
|
|
4308
|
-
* // request body parameters
|
|
4309
|
-
* // {
|
|
4310
|
-
* // "availableMaintenanceVersions": [],
|
|
4311
|
-
* // "backendType": "my_backendType",
|
|
4312
|
-
* // "connectionName": "my_connectionName",
|
|
4313
|
-
* // "createTime": "my_createTime",
|
|
4314
|
-
* // "currentDiskSize": "my_currentDiskSize",
|
|
4315
|
-
* // "databaseInstalledVersion": "my_databaseInstalledVersion",
|
|
4316
|
-
* // "databaseVersion": "my_databaseVersion",
|
|
4317
|
-
* // "diskEncryptionConfiguration": {},
|
|
4318
|
-
* // "diskEncryptionStatus": {},
|
|
4319
|
-
* // "etag": "my_etag",
|
|
4320
|
-
* // "failoverReplica": {},
|
|
4321
|
-
* // "gceZone": "my_gceZone",
|
|
4322
|
-
* // "instanceType": "my_instanceType",
|
|
4323
|
-
* // "ipAddresses": [],
|
|
4324
|
-
* // "ipv6Address": "my_ipv6Address",
|
|
4325
|
-
* // "kind": "my_kind",
|
|
4326
|
-
* // "maintenanceVersion": "my_maintenanceVersion",
|
|
4327
|
-
* // "masterInstanceName": "my_masterInstanceName",
|
|
4328
|
-
* // "maxDiskSize": "my_maxDiskSize",
|
|
4329
|
-
* // "name": "my_name",
|
|
4330
|
-
* // "onPremisesConfiguration": {},
|
|
4331
|
-
* // "outOfDiskReport": {},
|
|
4332
|
-
* // "project": "my_project",
|
|
4333
|
-
* // "region": "my_region",
|
|
4334
|
-
* // "replicaConfiguration": {},
|
|
4335
|
-
* // "replicaNames": [],
|
|
4336
|
-
* // "rootPassword": "my_rootPassword",
|
|
4337
|
-
* // "satisfiesPzs": false,
|
|
4338
|
-
* // "scheduledMaintenance": {},
|
|
4339
|
-
* // "secondaryGceZone": "my_secondaryGceZone",
|
|
4340
|
-
* // "selfLink": "my_selfLink",
|
|
4341
|
-
* // "serverCaCert": {},
|
|
4342
|
-
* // "serviceAccountEmailAddress": "my_serviceAccountEmailAddress",
|
|
4343
|
-
* // "settings": {},
|
|
4344
|
-
* // "state": "my_state",
|
|
4345
|
-
* // "suspensionReason": []
|
|
4346
|
-
* // }
|
|
4347
|
-
* },
|
|
4348
|
-
* });
|
|
4349
|
-
* console.log(res.data);
|
|
4350
|
-
*
|
|
4351
|
-
* // Example response
|
|
4352
|
-
* // {
|
|
4353
|
-
* // "backupContext": {},
|
|
4354
|
-
* // "endTime": "my_endTime",
|
|
4355
|
-
* // "error": {},
|
|
4356
|
-
* // "exportContext": {},
|
|
4357
|
-
* // "importContext": {},
|
|
4358
|
-
* // "insertTime": "my_insertTime",
|
|
4359
|
-
* // "kind": "my_kind",
|
|
4360
|
-
* // "name": "my_name",
|
|
4361
|
-
* // "operationType": "my_operationType",
|
|
4362
|
-
* // "selfLink": "my_selfLink",
|
|
4363
|
-
* // "startTime": "my_startTime",
|
|
4364
|
-
* // "status": "my_status",
|
|
4365
|
-
* // "targetId": "my_targetId",
|
|
4366
|
-
* // "targetLink": "my_targetLink",
|
|
4367
|
-
* // "targetProject": "my_targetProject",
|
|
4368
|
-
* // "user": "my_user"
|
|
4369
|
-
* // }
|
|
4370
|
-
* }
|
|
4371
|
-
*
|
|
4372
|
-
* main().catch(e => {
|
|
4373
|
-
* console.error(e);
|
|
4374
|
-
* throw e;
|
|
4375
|
-
* });
|
|
4376
|
-
*
|
|
4377
|
-
* ```
|
|
4378
2714
|
*
|
|
4379
2715
|
* @param params - Parameters for request
|
|
4380
2716
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -4389,68 +2725,6 @@ export declare namespace sqladmin_v1 {
|
|
|
4389
2725
|
patch(callback: BodyResponseCallback<Schema$Operation>): void;
|
|
4390
2726
|
/**
|
|
4391
2727
|
* Promotes the read replica instance to be a stand-alone Cloud SQL instance. Using this operation might cause your instance to restart.
|
|
4392
|
-
* @example
|
|
4393
|
-
* ```js
|
|
4394
|
-
* // Before running the sample:
|
|
4395
|
-
* // - Enable the API at:
|
|
4396
|
-
* // https://console.developers.google.com/apis/api/sqladmin.googleapis.com
|
|
4397
|
-
* // - Login into gcloud by running:
|
|
4398
|
-
* // `$ gcloud auth application-default login`
|
|
4399
|
-
* // - Install the npm module by running:
|
|
4400
|
-
* // `$ npm install googleapis`
|
|
4401
|
-
*
|
|
4402
|
-
* const {google} = require('googleapis');
|
|
4403
|
-
* const sqladmin = google.sqladmin('v1');
|
|
4404
|
-
*
|
|
4405
|
-
* async function main() {
|
|
4406
|
-
* const auth = new google.auth.GoogleAuth({
|
|
4407
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
4408
|
-
* scopes: [
|
|
4409
|
-
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
4410
|
-
* 'https://www.googleapis.com/auth/sqlservice.admin',
|
|
4411
|
-
* ],
|
|
4412
|
-
* });
|
|
4413
|
-
*
|
|
4414
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
4415
|
-
* const authClient = await auth.getClient();
|
|
4416
|
-
* google.options({auth: authClient});
|
|
4417
|
-
*
|
|
4418
|
-
* // Do the magic
|
|
4419
|
-
* const res = await sql.instances.promoteReplica({
|
|
4420
|
-
* // Cloud SQL read replica instance name.
|
|
4421
|
-
* instance: 'placeholder-value',
|
|
4422
|
-
* // ID of the project that contains the read replica.
|
|
4423
|
-
* project: 'placeholder-value',
|
|
4424
|
-
* });
|
|
4425
|
-
* console.log(res.data);
|
|
4426
|
-
*
|
|
4427
|
-
* // Example response
|
|
4428
|
-
* // {
|
|
4429
|
-
* // "backupContext": {},
|
|
4430
|
-
* // "endTime": "my_endTime",
|
|
4431
|
-
* // "error": {},
|
|
4432
|
-
* // "exportContext": {},
|
|
4433
|
-
* // "importContext": {},
|
|
4434
|
-
* // "insertTime": "my_insertTime",
|
|
4435
|
-
* // "kind": "my_kind",
|
|
4436
|
-
* // "name": "my_name",
|
|
4437
|
-
* // "operationType": "my_operationType",
|
|
4438
|
-
* // "selfLink": "my_selfLink",
|
|
4439
|
-
* // "startTime": "my_startTime",
|
|
4440
|
-
* // "status": "my_status",
|
|
4441
|
-
* // "targetId": "my_targetId",
|
|
4442
|
-
* // "targetLink": "my_targetLink",
|
|
4443
|
-
* // "targetProject": "my_targetProject",
|
|
4444
|
-
* // "user": "my_user"
|
|
4445
|
-
* // }
|
|
4446
|
-
* }
|
|
4447
|
-
*
|
|
4448
|
-
* main().catch(e => {
|
|
4449
|
-
* console.error(e);
|
|
4450
|
-
* throw e;
|
|
4451
|
-
* });
|
|
4452
|
-
*
|
|
4453
|
-
* ```
|
|
4454
2728
|
*
|
|
4455
2729
|
* @param params - Parameters for request
|
|
4456
2730
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -4465,76 +2739,6 @@ export declare namespace sqladmin_v1 {
|
|
|
4465
2739
|
promoteReplica(callback: BodyResponseCallback<Schema$Operation>): void;
|
|
4466
2740
|
/**
|
|
4467
2741
|
* Reencrypt CMEK instance with latest key version.
|
|
4468
|
-
* @example
|
|
4469
|
-
* ```js
|
|
4470
|
-
* // Before running the sample:
|
|
4471
|
-
* // - Enable the API at:
|
|
4472
|
-
* // https://console.developers.google.com/apis/api/sqladmin.googleapis.com
|
|
4473
|
-
* // - Login into gcloud by running:
|
|
4474
|
-
* // `$ gcloud auth application-default login`
|
|
4475
|
-
* // - Install the npm module by running:
|
|
4476
|
-
* // `$ npm install googleapis`
|
|
4477
|
-
*
|
|
4478
|
-
* const {google} = require('googleapis');
|
|
4479
|
-
* const sqladmin = google.sqladmin('v1');
|
|
4480
|
-
*
|
|
4481
|
-
* async function main() {
|
|
4482
|
-
* const auth = new google.auth.GoogleAuth({
|
|
4483
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
4484
|
-
* scopes: [
|
|
4485
|
-
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
4486
|
-
* 'https://www.googleapis.com/auth/sqlservice.admin',
|
|
4487
|
-
* ],
|
|
4488
|
-
* });
|
|
4489
|
-
*
|
|
4490
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
4491
|
-
* const authClient = await auth.getClient();
|
|
4492
|
-
* google.options({auth: authClient});
|
|
4493
|
-
*
|
|
4494
|
-
* // Do the magic
|
|
4495
|
-
* const res = await sql.instances.reencrypt({
|
|
4496
|
-
* // Cloud SQL instance ID. This does not include the project ID.
|
|
4497
|
-
* instance: 'placeholder-value',
|
|
4498
|
-
* // ID of the project that contains the instance.
|
|
4499
|
-
* project: 'placeholder-value',
|
|
4500
|
-
*
|
|
4501
|
-
* // Request body metadata
|
|
4502
|
-
* requestBody: {
|
|
4503
|
-
* // request body parameters
|
|
4504
|
-
* // {
|
|
4505
|
-
* // "backupReencryptionConfig": {}
|
|
4506
|
-
* // }
|
|
4507
|
-
* },
|
|
4508
|
-
* });
|
|
4509
|
-
* console.log(res.data);
|
|
4510
|
-
*
|
|
4511
|
-
* // Example response
|
|
4512
|
-
* // {
|
|
4513
|
-
* // "backupContext": {},
|
|
4514
|
-
* // "endTime": "my_endTime",
|
|
4515
|
-
* // "error": {},
|
|
4516
|
-
* // "exportContext": {},
|
|
4517
|
-
* // "importContext": {},
|
|
4518
|
-
* // "insertTime": "my_insertTime",
|
|
4519
|
-
* // "kind": "my_kind",
|
|
4520
|
-
* // "name": "my_name",
|
|
4521
|
-
* // "operationType": "my_operationType",
|
|
4522
|
-
* // "selfLink": "my_selfLink",
|
|
4523
|
-
* // "startTime": "my_startTime",
|
|
4524
|
-
* // "status": "my_status",
|
|
4525
|
-
* // "targetId": "my_targetId",
|
|
4526
|
-
* // "targetLink": "my_targetLink",
|
|
4527
|
-
* // "targetProject": "my_targetProject",
|
|
4528
|
-
* // "user": "my_user"
|
|
4529
|
-
* // }
|
|
4530
|
-
* }
|
|
4531
|
-
*
|
|
4532
|
-
* main().catch(e => {
|
|
4533
|
-
* console.error(e);
|
|
4534
|
-
* throw e;
|
|
4535
|
-
* });
|
|
4536
|
-
*
|
|
4537
|
-
* ```
|
|
4538
2742
|
*
|
|
4539
2743
|
* @param params - Parameters for request
|
|
4540
2744
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -4549,68 +2753,6 @@ export declare namespace sqladmin_v1 {
|
|
|
4549
2753
|
reencrypt(callback: BodyResponseCallback<Schema$Operation>): void;
|
|
4550
2754
|
/**
|
|
4551
2755
|
* Deletes all client certificates and generates a new server SSL certificate for the instance.
|
|
4552
|
-
* @example
|
|
4553
|
-
* ```js
|
|
4554
|
-
* // Before running the sample:
|
|
4555
|
-
* // - Enable the API at:
|
|
4556
|
-
* // https://console.developers.google.com/apis/api/sqladmin.googleapis.com
|
|
4557
|
-
* // - Login into gcloud by running:
|
|
4558
|
-
* // `$ gcloud auth application-default login`
|
|
4559
|
-
* // - Install the npm module by running:
|
|
4560
|
-
* // `$ npm install googleapis`
|
|
4561
|
-
*
|
|
4562
|
-
* const {google} = require('googleapis');
|
|
4563
|
-
* const sqladmin = google.sqladmin('v1');
|
|
4564
|
-
*
|
|
4565
|
-
* async function main() {
|
|
4566
|
-
* const auth = new google.auth.GoogleAuth({
|
|
4567
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
4568
|
-
* scopes: [
|
|
4569
|
-
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
4570
|
-
* 'https://www.googleapis.com/auth/sqlservice.admin',
|
|
4571
|
-
* ],
|
|
4572
|
-
* });
|
|
4573
|
-
*
|
|
4574
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
4575
|
-
* const authClient = await auth.getClient();
|
|
4576
|
-
* google.options({auth: authClient});
|
|
4577
|
-
*
|
|
4578
|
-
* // Do the magic
|
|
4579
|
-
* const res = await sql.instances.resetSslConfig({
|
|
4580
|
-
* // Cloud SQL instance ID. This does not include the project ID.
|
|
4581
|
-
* instance: 'placeholder-value',
|
|
4582
|
-
* // Project ID of the project that contains the instance.
|
|
4583
|
-
* project: 'placeholder-value',
|
|
4584
|
-
* });
|
|
4585
|
-
* console.log(res.data);
|
|
4586
|
-
*
|
|
4587
|
-
* // Example response
|
|
4588
|
-
* // {
|
|
4589
|
-
* // "backupContext": {},
|
|
4590
|
-
* // "endTime": "my_endTime",
|
|
4591
|
-
* // "error": {},
|
|
4592
|
-
* // "exportContext": {},
|
|
4593
|
-
* // "importContext": {},
|
|
4594
|
-
* // "insertTime": "my_insertTime",
|
|
4595
|
-
* // "kind": "my_kind",
|
|
4596
|
-
* // "name": "my_name",
|
|
4597
|
-
* // "operationType": "my_operationType",
|
|
4598
|
-
* // "selfLink": "my_selfLink",
|
|
4599
|
-
* // "startTime": "my_startTime",
|
|
4600
|
-
* // "status": "my_status",
|
|
4601
|
-
* // "targetId": "my_targetId",
|
|
4602
|
-
* // "targetLink": "my_targetLink",
|
|
4603
|
-
* // "targetProject": "my_targetProject",
|
|
4604
|
-
* // "user": "my_user"
|
|
4605
|
-
* // }
|
|
4606
|
-
* }
|
|
4607
|
-
*
|
|
4608
|
-
* main().catch(e => {
|
|
4609
|
-
* console.error(e);
|
|
4610
|
-
* throw e;
|
|
4611
|
-
* });
|
|
4612
|
-
*
|
|
4613
|
-
* ```
|
|
4614
2756
|
*
|
|
4615
2757
|
* @param params - Parameters for request
|
|
4616
2758
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -4625,68 +2767,6 @@ export declare namespace sqladmin_v1 {
|
|
|
4625
2767
|
resetSslConfig(callback: BodyResponseCallback<Schema$Operation>): void;
|
|
4626
2768
|
/**
|
|
4627
2769
|
* Restarts a Cloud SQL instance.
|
|
4628
|
-
* @example
|
|
4629
|
-
* ```js
|
|
4630
|
-
* // Before running the sample:
|
|
4631
|
-
* // - Enable the API at:
|
|
4632
|
-
* // https://console.developers.google.com/apis/api/sqladmin.googleapis.com
|
|
4633
|
-
* // - Login into gcloud by running:
|
|
4634
|
-
* // `$ gcloud auth application-default login`
|
|
4635
|
-
* // - Install the npm module by running:
|
|
4636
|
-
* // `$ npm install googleapis`
|
|
4637
|
-
*
|
|
4638
|
-
* const {google} = require('googleapis');
|
|
4639
|
-
* const sqladmin = google.sqladmin('v1');
|
|
4640
|
-
*
|
|
4641
|
-
* async function main() {
|
|
4642
|
-
* const auth = new google.auth.GoogleAuth({
|
|
4643
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
4644
|
-
* scopes: [
|
|
4645
|
-
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
4646
|
-
* 'https://www.googleapis.com/auth/sqlservice.admin',
|
|
4647
|
-
* ],
|
|
4648
|
-
* });
|
|
4649
|
-
*
|
|
4650
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
4651
|
-
* const authClient = await auth.getClient();
|
|
4652
|
-
* google.options({auth: authClient});
|
|
4653
|
-
*
|
|
4654
|
-
* // Do the magic
|
|
4655
|
-
* const res = await sql.instances.restart({
|
|
4656
|
-
* // Cloud SQL instance ID. This does not include the project ID.
|
|
4657
|
-
* instance: 'placeholder-value',
|
|
4658
|
-
* // Project ID of the project that contains the instance to be restarted.
|
|
4659
|
-
* project: 'placeholder-value',
|
|
4660
|
-
* });
|
|
4661
|
-
* console.log(res.data);
|
|
4662
|
-
*
|
|
4663
|
-
* // Example response
|
|
4664
|
-
* // {
|
|
4665
|
-
* // "backupContext": {},
|
|
4666
|
-
* // "endTime": "my_endTime",
|
|
4667
|
-
* // "error": {},
|
|
4668
|
-
* // "exportContext": {},
|
|
4669
|
-
* // "importContext": {},
|
|
4670
|
-
* // "insertTime": "my_insertTime",
|
|
4671
|
-
* // "kind": "my_kind",
|
|
4672
|
-
* // "name": "my_name",
|
|
4673
|
-
* // "operationType": "my_operationType",
|
|
4674
|
-
* // "selfLink": "my_selfLink",
|
|
4675
|
-
* // "startTime": "my_startTime",
|
|
4676
|
-
* // "status": "my_status",
|
|
4677
|
-
* // "targetId": "my_targetId",
|
|
4678
|
-
* // "targetLink": "my_targetLink",
|
|
4679
|
-
* // "targetProject": "my_targetProject",
|
|
4680
|
-
* // "user": "my_user"
|
|
4681
|
-
* // }
|
|
4682
|
-
* }
|
|
4683
|
-
*
|
|
4684
|
-
* main().catch(e => {
|
|
4685
|
-
* console.error(e);
|
|
4686
|
-
* throw e;
|
|
4687
|
-
* });
|
|
4688
|
-
*
|
|
4689
|
-
* ```
|
|
4690
2770
|
*
|
|
4691
2771
|
* @param params - Parameters for request
|
|
4692
2772
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -4701,76 +2781,6 @@ export declare namespace sqladmin_v1 {
|
|
|
4701
2781
|
restart(callback: BodyResponseCallback<Schema$Operation>): void;
|
|
4702
2782
|
/**
|
|
4703
2783
|
* Restores a backup of a Cloud SQL instance. Using this operation might cause your instance to restart.
|
|
4704
|
-
* @example
|
|
4705
|
-
* ```js
|
|
4706
|
-
* // Before running the sample:
|
|
4707
|
-
* // - Enable the API at:
|
|
4708
|
-
* // https://console.developers.google.com/apis/api/sqladmin.googleapis.com
|
|
4709
|
-
* // - Login into gcloud by running:
|
|
4710
|
-
* // `$ gcloud auth application-default login`
|
|
4711
|
-
* // - Install the npm module by running:
|
|
4712
|
-
* // `$ npm install googleapis`
|
|
4713
|
-
*
|
|
4714
|
-
* const {google} = require('googleapis');
|
|
4715
|
-
* const sqladmin = google.sqladmin('v1');
|
|
4716
|
-
*
|
|
4717
|
-
* async function main() {
|
|
4718
|
-
* const auth = new google.auth.GoogleAuth({
|
|
4719
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
4720
|
-
* scopes: [
|
|
4721
|
-
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
4722
|
-
* 'https://www.googleapis.com/auth/sqlservice.admin',
|
|
4723
|
-
* ],
|
|
4724
|
-
* });
|
|
4725
|
-
*
|
|
4726
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
4727
|
-
* const authClient = await auth.getClient();
|
|
4728
|
-
* google.options({auth: authClient});
|
|
4729
|
-
*
|
|
4730
|
-
* // Do the magic
|
|
4731
|
-
* const res = await sql.instances.restoreBackup({
|
|
4732
|
-
* // Cloud SQL instance ID. This does not include the project ID.
|
|
4733
|
-
* instance: 'placeholder-value',
|
|
4734
|
-
* // Project ID of the project that contains the instance.
|
|
4735
|
-
* project: 'placeholder-value',
|
|
4736
|
-
*
|
|
4737
|
-
* // Request body metadata
|
|
4738
|
-
* requestBody: {
|
|
4739
|
-
* // request body parameters
|
|
4740
|
-
* // {
|
|
4741
|
-
* // "restoreBackupContext": {}
|
|
4742
|
-
* // }
|
|
4743
|
-
* },
|
|
4744
|
-
* });
|
|
4745
|
-
* console.log(res.data);
|
|
4746
|
-
*
|
|
4747
|
-
* // Example response
|
|
4748
|
-
* // {
|
|
4749
|
-
* // "backupContext": {},
|
|
4750
|
-
* // "endTime": "my_endTime",
|
|
4751
|
-
* // "error": {},
|
|
4752
|
-
* // "exportContext": {},
|
|
4753
|
-
* // "importContext": {},
|
|
4754
|
-
* // "insertTime": "my_insertTime",
|
|
4755
|
-
* // "kind": "my_kind",
|
|
4756
|
-
* // "name": "my_name",
|
|
4757
|
-
* // "operationType": "my_operationType",
|
|
4758
|
-
* // "selfLink": "my_selfLink",
|
|
4759
|
-
* // "startTime": "my_startTime",
|
|
4760
|
-
* // "status": "my_status",
|
|
4761
|
-
* // "targetId": "my_targetId",
|
|
4762
|
-
* // "targetLink": "my_targetLink",
|
|
4763
|
-
* // "targetProject": "my_targetProject",
|
|
4764
|
-
* // "user": "my_user"
|
|
4765
|
-
* // }
|
|
4766
|
-
* }
|
|
4767
|
-
*
|
|
4768
|
-
* main().catch(e => {
|
|
4769
|
-
* console.error(e);
|
|
4770
|
-
* throw e;
|
|
4771
|
-
* });
|
|
4772
|
-
*
|
|
4773
|
-
* ```
|
|
4774
2784
|
*
|
|
4775
2785
|
* @param params - Parameters for request
|
|
4776
2786
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -4785,76 +2795,6 @@ export declare namespace sqladmin_v1 {
|
|
|
4785
2795
|
restoreBackup(callback: BodyResponseCallback<Schema$Operation>): void;
|
|
4786
2796
|
/**
|
|
4787
2797
|
* Rotates the server certificate to one signed by the Certificate Authority (CA) version previously added with the addServerCA method.
|
|
4788
|
-
* @example
|
|
4789
|
-
* ```js
|
|
4790
|
-
* // Before running the sample:
|
|
4791
|
-
* // - Enable the API at:
|
|
4792
|
-
* // https://console.developers.google.com/apis/api/sqladmin.googleapis.com
|
|
4793
|
-
* // - Login into gcloud by running:
|
|
4794
|
-
* // `$ gcloud auth application-default login`
|
|
4795
|
-
* // - Install the npm module by running:
|
|
4796
|
-
* // `$ npm install googleapis`
|
|
4797
|
-
*
|
|
4798
|
-
* const {google} = require('googleapis');
|
|
4799
|
-
* const sqladmin = google.sqladmin('v1');
|
|
4800
|
-
*
|
|
4801
|
-
* async function main() {
|
|
4802
|
-
* const auth = new google.auth.GoogleAuth({
|
|
4803
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
4804
|
-
* scopes: [
|
|
4805
|
-
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
4806
|
-
* 'https://www.googleapis.com/auth/sqlservice.admin',
|
|
4807
|
-
* ],
|
|
4808
|
-
* });
|
|
4809
|
-
*
|
|
4810
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
4811
|
-
* const authClient = await auth.getClient();
|
|
4812
|
-
* google.options({auth: authClient});
|
|
4813
|
-
*
|
|
4814
|
-
* // Do the magic
|
|
4815
|
-
* const res = await sql.instances.rotateServerCa({
|
|
4816
|
-
* // Cloud SQL instance ID. This does not include the project ID.
|
|
4817
|
-
* instance: 'placeholder-value',
|
|
4818
|
-
* // Project ID of the project that contains the instance.
|
|
4819
|
-
* project: 'placeholder-value',
|
|
4820
|
-
*
|
|
4821
|
-
* // Request body metadata
|
|
4822
|
-
* requestBody: {
|
|
4823
|
-
* // request body parameters
|
|
4824
|
-
* // {
|
|
4825
|
-
* // "rotateServerCaContext": {}
|
|
4826
|
-
* // }
|
|
4827
|
-
* },
|
|
4828
|
-
* });
|
|
4829
|
-
* console.log(res.data);
|
|
4830
|
-
*
|
|
4831
|
-
* // Example response
|
|
4832
|
-
* // {
|
|
4833
|
-
* // "backupContext": {},
|
|
4834
|
-
* // "endTime": "my_endTime",
|
|
4835
|
-
* // "error": {},
|
|
4836
|
-
* // "exportContext": {},
|
|
4837
|
-
* // "importContext": {},
|
|
4838
|
-
* // "insertTime": "my_insertTime",
|
|
4839
|
-
* // "kind": "my_kind",
|
|
4840
|
-
* // "name": "my_name",
|
|
4841
|
-
* // "operationType": "my_operationType",
|
|
4842
|
-
* // "selfLink": "my_selfLink",
|
|
4843
|
-
* // "startTime": "my_startTime",
|
|
4844
|
-
* // "status": "my_status",
|
|
4845
|
-
* // "targetId": "my_targetId",
|
|
4846
|
-
* // "targetLink": "my_targetLink",
|
|
4847
|
-
* // "targetProject": "my_targetProject",
|
|
4848
|
-
* // "user": "my_user"
|
|
4849
|
-
* // }
|
|
4850
|
-
* }
|
|
4851
|
-
*
|
|
4852
|
-
* main().catch(e => {
|
|
4853
|
-
* console.error(e);
|
|
4854
|
-
* throw e;
|
|
4855
|
-
* });
|
|
4856
|
-
*
|
|
4857
|
-
* ```
|
|
4858
2798
|
*
|
|
4859
2799
|
* @param params - Parameters for request
|
|
4860
2800
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -4869,68 +2809,6 @@ export declare namespace sqladmin_v1 {
|
|
|
4869
2809
|
rotateServerCa(callback: BodyResponseCallback<Schema$Operation>): void;
|
|
4870
2810
|
/**
|
|
4871
2811
|
* Starts the replication in the read replica instance.
|
|
4872
|
-
* @example
|
|
4873
|
-
* ```js
|
|
4874
|
-
* // Before running the sample:
|
|
4875
|
-
* // - Enable the API at:
|
|
4876
|
-
* // https://console.developers.google.com/apis/api/sqladmin.googleapis.com
|
|
4877
|
-
* // - Login into gcloud by running:
|
|
4878
|
-
* // `$ gcloud auth application-default login`
|
|
4879
|
-
* // - Install the npm module by running:
|
|
4880
|
-
* // `$ npm install googleapis`
|
|
4881
|
-
*
|
|
4882
|
-
* const {google} = require('googleapis');
|
|
4883
|
-
* const sqladmin = google.sqladmin('v1');
|
|
4884
|
-
*
|
|
4885
|
-
* async function main() {
|
|
4886
|
-
* const auth = new google.auth.GoogleAuth({
|
|
4887
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
4888
|
-
* scopes: [
|
|
4889
|
-
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
4890
|
-
* 'https://www.googleapis.com/auth/sqlservice.admin',
|
|
4891
|
-
* ],
|
|
4892
|
-
* });
|
|
4893
|
-
*
|
|
4894
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
4895
|
-
* const authClient = await auth.getClient();
|
|
4896
|
-
* google.options({auth: authClient});
|
|
4897
|
-
*
|
|
4898
|
-
* // Do the magic
|
|
4899
|
-
* const res = await sql.instances.startReplica({
|
|
4900
|
-
* // Cloud SQL read replica instance name.
|
|
4901
|
-
* instance: 'placeholder-value',
|
|
4902
|
-
* // ID of the project that contains the read replica.
|
|
4903
|
-
* project: 'placeholder-value',
|
|
4904
|
-
* });
|
|
4905
|
-
* console.log(res.data);
|
|
4906
|
-
*
|
|
4907
|
-
* // Example response
|
|
4908
|
-
* // {
|
|
4909
|
-
* // "backupContext": {},
|
|
4910
|
-
* // "endTime": "my_endTime",
|
|
4911
|
-
* // "error": {},
|
|
4912
|
-
* // "exportContext": {},
|
|
4913
|
-
* // "importContext": {},
|
|
4914
|
-
* // "insertTime": "my_insertTime",
|
|
4915
|
-
* // "kind": "my_kind",
|
|
4916
|
-
* // "name": "my_name",
|
|
4917
|
-
* // "operationType": "my_operationType",
|
|
4918
|
-
* // "selfLink": "my_selfLink",
|
|
4919
|
-
* // "startTime": "my_startTime",
|
|
4920
|
-
* // "status": "my_status",
|
|
4921
|
-
* // "targetId": "my_targetId",
|
|
4922
|
-
* // "targetLink": "my_targetLink",
|
|
4923
|
-
* // "targetProject": "my_targetProject",
|
|
4924
|
-
* // "user": "my_user"
|
|
4925
|
-
* // }
|
|
4926
|
-
* }
|
|
4927
|
-
*
|
|
4928
|
-
* main().catch(e => {
|
|
4929
|
-
* console.error(e);
|
|
4930
|
-
* throw e;
|
|
4931
|
-
* });
|
|
4932
|
-
*
|
|
4933
|
-
* ```
|
|
4934
2812
|
*
|
|
4935
2813
|
* @param params - Parameters for request
|
|
4936
2814
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -4945,68 +2823,6 @@ export declare namespace sqladmin_v1 {
|
|
|
4945
2823
|
startReplica(callback: BodyResponseCallback<Schema$Operation>): void;
|
|
4946
2824
|
/**
|
|
4947
2825
|
* Stops the replication in the read replica instance.
|
|
4948
|
-
* @example
|
|
4949
|
-
* ```js
|
|
4950
|
-
* // Before running the sample:
|
|
4951
|
-
* // - Enable the API at:
|
|
4952
|
-
* // https://console.developers.google.com/apis/api/sqladmin.googleapis.com
|
|
4953
|
-
* // - Login into gcloud by running:
|
|
4954
|
-
* // `$ gcloud auth application-default login`
|
|
4955
|
-
* // - Install the npm module by running:
|
|
4956
|
-
* // `$ npm install googleapis`
|
|
4957
|
-
*
|
|
4958
|
-
* const {google} = require('googleapis');
|
|
4959
|
-
* const sqladmin = google.sqladmin('v1');
|
|
4960
|
-
*
|
|
4961
|
-
* async function main() {
|
|
4962
|
-
* const auth = new google.auth.GoogleAuth({
|
|
4963
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
4964
|
-
* scopes: [
|
|
4965
|
-
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
4966
|
-
* 'https://www.googleapis.com/auth/sqlservice.admin',
|
|
4967
|
-
* ],
|
|
4968
|
-
* });
|
|
4969
|
-
*
|
|
4970
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
4971
|
-
* const authClient = await auth.getClient();
|
|
4972
|
-
* google.options({auth: authClient});
|
|
4973
|
-
*
|
|
4974
|
-
* // Do the magic
|
|
4975
|
-
* const res = await sql.instances.stopReplica({
|
|
4976
|
-
* // Cloud SQL read replica instance name.
|
|
4977
|
-
* instance: 'placeholder-value',
|
|
4978
|
-
* // ID of the project that contains the read replica.
|
|
4979
|
-
* project: 'placeholder-value',
|
|
4980
|
-
* });
|
|
4981
|
-
* console.log(res.data);
|
|
4982
|
-
*
|
|
4983
|
-
* // Example response
|
|
4984
|
-
* // {
|
|
4985
|
-
* // "backupContext": {},
|
|
4986
|
-
* // "endTime": "my_endTime",
|
|
4987
|
-
* // "error": {},
|
|
4988
|
-
* // "exportContext": {},
|
|
4989
|
-
* // "importContext": {},
|
|
4990
|
-
* // "insertTime": "my_insertTime",
|
|
4991
|
-
* // "kind": "my_kind",
|
|
4992
|
-
* // "name": "my_name",
|
|
4993
|
-
* // "operationType": "my_operationType",
|
|
4994
|
-
* // "selfLink": "my_selfLink",
|
|
4995
|
-
* // "startTime": "my_startTime",
|
|
4996
|
-
* // "status": "my_status",
|
|
4997
|
-
* // "targetId": "my_targetId",
|
|
4998
|
-
* // "targetLink": "my_targetLink",
|
|
4999
|
-
* // "targetProject": "my_targetProject",
|
|
5000
|
-
* // "user": "my_user"
|
|
5001
|
-
* // }
|
|
5002
|
-
* }
|
|
5003
|
-
*
|
|
5004
|
-
* main().catch(e => {
|
|
5005
|
-
* console.error(e);
|
|
5006
|
-
* throw e;
|
|
5007
|
-
* });
|
|
5008
|
-
*
|
|
5009
|
-
* ```
|
|
5010
2826
|
*
|
|
5011
2827
|
* @param params - Parameters for request
|
|
5012
2828
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -5021,76 +2837,6 @@ export declare namespace sqladmin_v1 {
|
|
|
5021
2837
|
stopReplica(callback: BodyResponseCallback<Schema$Operation>): void;
|
|
5022
2838
|
/**
|
|
5023
2839
|
* Truncate MySQL general and slow query log tables MySQL only.
|
|
5024
|
-
* @example
|
|
5025
|
-
* ```js
|
|
5026
|
-
* // Before running the sample:
|
|
5027
|
-
* // - Enable the API at:
|
|
5028
|
-
* // https://console.developers.google.com/apis/api/sqladmin.googleapis.com
|
|
5029
|
-
* // - Login into gcloud by running:
|
|
5030
|
-
* // `$ gcloud auth application-default login`
|
|
5031
|
-
* // - Install the npm module by running:
|
|
5032
|
-
* // `$ npm install googleapis`
|
|
5033
|
-
*
|
|
5034
|
-
* const {google} = require('googleapis');
|
|
5035
|
-
* const sqladmin = google.sqladmin('v1');
|
|
5036
|
-
*
|
|
5037
|
-
* async function main() {
|
|
5038
|
-
* const auth = new google.auth.GoogleAuth({
|
|
5039
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
5040
|
-
* scopes: [
|
|
5041
|
-
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
5042
|
-
* 'https://www.googleapis.com/auth/sqlservice.admin',
|
|
5043
|
-
* ],
|
|
5044
|
-
* });
|
|
5045
|
-
*
|
|
5046
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
5047
|
-
* const authClient = await auth.getClient();
|
|
5048
|
-
* google.options({auth: authClient});
|
|
5049
|
-
*
|
|
5050
|
-
* // Do the magic
|
|
5051
|
-
* const res = await sql.instances.truncateLog({
|
|
5052
|
-
* // Cloud SQL instance ID. This does not include the project ID.
|
|
5053
|
-
* instance: 'placeholder-value',
|
|
5054
|
-
* // Project ID of the Cloud SQL project.
|
|
5055
|
-
* project: 'placeholder-value',
|
|
5056
|
-
*
|
|
5057
|
-
* // Request body metadata
|
|
5058
|
-
* requestBody: {
|
|
5059
|
-
* // request body parameters
|
|
5060
|
-
* // {
|
|
5061
|
-
* // "truncateLogContext": {}
|
|
5062
|
-
* // }
|
|
5063
|
-
* },
|
|
5064
|
-
* });
|
|
5065
|
-
* console.log(res.data);
|
|
5066
|
-
*
|
|
5067
|
-
* // Example response
|
|
5068
|
-
* // {
|
|
5069
|
-
* // "backupContext": {},
|
|
5070
|
-
* // "endTime": "my_endTime",
|
|
5071
|
-
* // "error": {},
|
|
5072
|
-
* // "exportContext": {},
|
|
5073
|
-
* // "importContext": {},
|
|
5074
|
-
* // "insertTime": "my_insertTime",
|
|
5075
|
-
* // "kind": "my_kind",
|
|
5076
|
-
* // "name": "my_name",
|
|
5077
|
-
* // "operationType": "my_operationType",
|
|
5078
|
-
* // "selfLink": "my_selfLink",
|
|
5079
|
-
* // "startTime": "my_startTime",
|
|
5080
|
-
* // "status": "my_status",
|
|
5081
|
-
* // "targetId": "my_targetId",
|
|
5082
|
-
* // "targetLink": "my_targetLink",
|
|
5083
|
-
* // "targetProject": "my_targetProject",
|
|
5084
|
-
* // "user": "my_user"
|
|
5085
|
-
* // }
|
|
5086
|
-
* }
|
|
5087
|
-
*
|
|
5088
|
-
* main().catch(e => {
|
|
5089
|
-
* console.error(e);
|
|
5090
|
-
* throw e;
|
|
5091
|
-
* });
|
|
5092
|
-
*
|
|
5093
|
-
* ```
|
|
5094
2840
|
*
|
|
5095
2841
|
* @param params - Parameters for request
|
|
5096
2842
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -5105,111 +2851,6 @@ export declare namespace sqladmin_v1 {
|
|
|
5105
2851
|
truncateLog(callback: BodyResponseCallback<Schema$Operation>): void;
|
|
5106
2852
|
/**
|
|
5107
2853
|
* Updates settings of a Cloud SQL instance. Using this operation might cause your instance to restart.
|
|
5108
|
-
* @example
|
|
5109
|
-
* ```js
|
|
5110
|
-
* // Before running the sample:
|
|
5111
|
-
* // - Enable the API at:
|
|
5112
|
-
* // https://console.developers.google.com/apis/api/sqladmin.googleapis.com
|
|
5113
|
-
* // - Login into gcloud by running:
|
|
5114
|
-
* // `$ gcloud auth application-default login`
|
|
5115
|
-
* // - Install the npm module by running:
|
|
5116
|
-
* // `$ npm install googleapis`
|
|
5117
|
-
*
|
|
5118
|
-
* const {google} = require('googleapis');
|
|
5119
|
-
* const sqladmin = google.sqladmin('v1');
|
|
5120
|
-
*
|
|
5121
|
-
* async function main() {
|
|
5122
|
-
* const auth = new google.auth.GoogleAuth({
|
|
5123
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
5124
|
-
* scopes: [
|
|
5125
|
-
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
5126
|
-
* 'https://www.googleapis.com/auth/sqlservice.admin',
|
|
5127
|
-
* ],
|
|
5128
|
-
* });
|
|
5129
|
-
*
|
|
5130
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
5131
|
-
* const authClient = await auth.getClient();
|
|
5132
|
-
* google.options({auth: authClient});
|
|
5133
|
-
*
|
|
5134
|
-
* // Do the magic
|
|
5135
|
-
* const res = await sql.instances.update({
|
|
5136
|
-
* // Cloud SQL instance ID. This does not include the project ID.
|
|
5137
|
-
* instance: 'placeholder-value',
|
|
5138
|
-
* // Project ID of the project that contains the instance.
|
|
5139
|
-
* project: 'placeholder-value',
|
|
5140
|
-
*
|
|
5141
|
-
* // Request body metadata
|
|
5142
|
-
* requestBody: {
|
|
5143
|
-
* // request body parameters
|
|
5144
|
-
* // {
|
|
5145
|
-
* // "availableMaintenanceVersions": [],
|
|
5146
|
-
* // "backendType": "my_backendType",
|
|
5147
|
-
* // "connectionName": "my_connectionName",
|
|
5148
|
-
* // "createTime": "my_createTime",
|
|
5149
|
-
* // "currentDiskSize": "my_currentDiskSize",
|
|
5150
|
-
* // "databaseInstalledVersion": "my_databaseInstalledVersion",
|
|
5151
|
-
* // "databaseVersion": "my_databaseVersion",
|
|
5152
|
-
* // "diskEncryptionConfiguration": {},
|
|
5153
|
-
* // "diskEncryptionStatus": {},
|
|
5154
|
-
* // "etag": "my_etag",
|
|
5155
|
-
* // "failoverReplica": {},
|
|
5156
|
-
* // "gceZone": "my_gceZone",
|
|
5157
|
-
* // "instanceType": "my_instanceType",
|
|
5158
|
-
* // "ipAddresses": [],
|
|
5159
|
-
* // "ipv6Address": "my_ipv6Address",
|
|
5160
|
-
* // "kind": "my_kind",
|
|
5161
|
-
* // "maintenanceVersion": "my_maintenanceVersion",
|
|
5162
|
-
* // "masterInstanceName": "my_masterInstanceName",
|
|
5163
|
-
* // "maxDiskSize": "my_maxDiskSize",
|
|
5164
|
-
* // "name": "my_name",
|
|
5165
|
-
* // "onPremisesConfiguration": {},
|
|
5166
|
-
* // "outOfDiskReport": {},
|
|
5167
|
-
* // "project": "my_project",
|
|
5168
|
-
* // "region": "my_region",
|
|
5169
|
-
* // "replicaConfiguration": {},
|
|
5170
|
-
* // "replicaNames": [],
|
|
5171
|
-
* // "rootPassword": "my_rootPassword",
|
|
5172
|
-
* // "satisfiesPzs": false,
|
|
5173
|
-
* // "scheduledMaintenance": {},
|
|
5174
|
-
* // "secondaryGceZone": "my_secondaryGceZone",
|
|
5175
|
-
* // "selfLink": "my_selfLink",
|
|
5176
|
-
* // "serverCaCert": {},
|
|
5177
|
-
* // "serviceAccountEmailAddress": "my_serviceAccountEmailAddress",
|
|
5178
|
-
* // "settings": {},
|
|
5179
|
-
* // "state": "my_state",
|
|
5180
|
-
* // "suspensionReason": []
|
|
5181
|
-
* // }
|
|
5182
|
-
* },
|
|
5183
|
-
* });
|
|
5184
|
-
* console.log(res.data);
|
|
5185
|
-
*
|
|
5186
|
-
* // Example response
|
|
5187
|
-
* // {
|
|
5188
|
-
* // "backupContext": {},
|
|
5189
|
-
* // "endTime": "my_endTime",
|
|
5190
|
-
* // "error": {},
|
|
5191
|
-
* // "exportContext": {},
|
|
5192
|
-
* // "importContext": {},
|
|
5193
|
-
* // "insertTime": "my_insertTime",
|
|
5194
|
-
* // "kind": "my_kind",
|
|
5195
|
-
* // "name": "my_name",
|
|
5196
|
-
* // "operationType": "my_operationType",
|
|
5197
|
-
* // "selfLink": "my_selfLink",
|
|
5198
|
-
* // "startTime": "my_startTime",
|
|
5199
|
-
* // "status": "my_status",
|
|
5200
|
-
* // "targetId": "my_targetId",
|
|
5201
|
-
* // "targetLink": "my_targetLink",
|
|
5202
|
-
* // "targetProject": "my_targetProject",
|
|
5203
|
-
* // "user": "my_user"
|
|
5204
|
-
* // }
|
|
5205
|
-
* }
|
|
5206
|
-
*
|
|
5207
|
-
* main().catch(e => {
|
|
5208
|
-
* console.error(e);
|
|
5209
|
-
* throw e;
|
|
5210
|
-
* });
|
|
5211
|
-
*
|
|
5212
|
-
* ```
|
|
5213
2854
|
*
|
|
5214
2855
|
* @param params - Parameters for request
|
|
5215
2856
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -5500,51 +3141,6 @@ export declare namespace sqladmin_v1 {
|
|
|
5500
3141
|
constructor(context: APIRequestContext);
|
|
5501
3142
|
/**
|
|
5502
3143
|
* Cancels an instance operation that has been performed on an instance.
|
|
5503
|
-
* @example
|
|
5504
|
-
* ```js
|
|
5505
|
-
* // Before running the sample:
|
|
5506
|
-
* // - Enable the API at:
|
|
5507
|
-
* // https://console.developers.google.com/apis/api/sqladmin.googleapis.com
|
|
5508
|
-
* // - Login into gcloud by running:
|
|
5509
|
-
* // `$ gcloud auth application-default login`
|
|
5510
|
-
* // - Install the npm module by running:
|
|
5511
|
-
* // `$ npm install googleapis`
|
|
5512
|
-
*
|
|
5513
|
-
* const {google} = require('googleapis');
|
|
5514
|
-
* const sqladmin = google.sqladmin('v1');
|
|
5515
|
-
*
|
|
5516
|
-
* async function main() {
|
|
5517
|
-
* const auth = new google.auth.GoogleAuth({
|
|
5518
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
5519
|
-
* scopes: [
|
|
5520
|
-
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
5521
|
-
* 'https://www.googleapis.com/auth/sqlservice.admin',
|
|
5522
|
-
* ],
|
|
5523
|
-
* });
|
|
5524
|
-
*
|
|
5525
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
5526
|
-
* const authClient = await auth.getClient();
|
|
5527
|
-
* google.options({auth: authClient});
|
|
5528
|
-
*
|
|
5529
|
-
* // Do the magic
|
|
5530
|
-
* const res = await sql.operations.cancel({
|
|
5531
|
-
* // Instance operation ID.
|
|
5532
|
-
* operation: 'placeholder-value',
|
|
5533
|
-
* // Project ID of the project that contains the instance.
|
|
5534
|
-
* project: 'placeholder-value',
|
|
5535
|
-
* });
|
|
5536
|
-
* console.log(res.data);
|
|
5537
|
-
*
|
|
5538
|
-
* // Example response
|
|
5539
|
-
* // {}
|
|
5540
|
-
* }
|
|
5541
|
-
*
|
|
5542
|
-
* main().catch(e => {
|
|
5543
|
-
* console.error(e);
|
|
5544
|
-
* throw e;
|
|
5545
|
-
* });
|
|
5546
|
-
*
|
|
5547
|
-
* ```
|
|
5548
3144
|
*
|
|
5549
3145
|
* @param params - Parameters for request
|
|
5550
3146
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -5559,68 +3155,6 @@ export declare namespace sqladmin_v1 {
|
|
|
5559
3155
|
cancel(callback: BodyResponseCallback<Schema$Empty>): void;
|
|
5560
3156
|
/**
|
|
5561
3157
|
* Retrieves an instance operation that has been performed on an instance.
|
|
5562
|
-
* @example
|
|
5563
|
-
* ```js
|
|
5564
|
-
* // Before running the sample:
|
|
5565
|
-
* // - Enable the API at:
|
|
5566
|
-
* // https://console.developers.google.com/apis/api/sqladmin.googleapis.com
|
|
5567
|
-
* // - Login into gcloud by running:
|
|
5568
|
-
* // `$ gcloud auth application-default login`
|
|
5569
|
-
* // - Install the npm module by running:
|
|
5570
|
-
* // `$ npm install googleapis`
|
|
5571
|
-
*
|
|
5572
|
-
* const {google} = require('googleapis');
|
|
5573
|
-
* const sqladmin = google.sqladmin('v1');
|
|
5574
|
-
*
|
|
5575
|
-
* async function main() {
|
|
5576
|
-
* const auth = new google.auth.GoogleAuth({
|
|
5577
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
5578
|
-
* scopes: [
|
|
5579
|
-
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
5580
|
-
* 'https://www.googleapis.com/auth/sqlservice.admin',
|
|
5581
|
-
* ],
|
|
5582
|
-
* });
|
|
5583
|
-
*
|
|
5584
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
5585
|
-
* const authClient = await auth.getClient();
|
|
5586
|
-
* google.options({auth: authClient});
|
|
5587
|
-
*
|
|
5588
|
-
* // Do the magic
|
|
5589
|
-
* const res = await sql.operations.get({
|
|
5590
|
-
* // Instance operation ID.
|
|
5591
|
-
* operation: 'placeholder-value',
|
|
5592
|
-
* // Project ID of the project that contains the instance.
|
|
5593
|
-
* project: 'placeholder-value',
|
|
5594
|
-
* });
|
|
5595
|
-
* console.log(res.data);
|
|
5596
|
-
*
|
|
5597
|
-
* // Example response
|
|
5598
|
-
* // {
|
|
5599
|
-
* // "backupContext": {},
|
|
5600
|
-
* // "endTime": "my_endTime",
|
|
5601
|
-
* // "error": {},
|
|
5602
|
-
* // "exportContext": {},
|
|
5603
|
-
* // "importContext": {},
|
|
5604
|
-
* // "insertTime": "my_insertTime",
|
|
5605
|
-
* // "kind": "my_kind",
|
|
5606
|
-
* // "name": "my_name",
|
|
5607
|
-
* // "operationType": "my_operationType",
|
|
5608
|
-
* // "selfLink": "my_selfLink",
|
|
5609
|
-
* // "startTime": "my_startTime",
|
|
5610
|
-
* // "status": "my_status",
|
|
5611
|
-
* // "targetId": "my_targetId",
|
|
5612
|
-
* // "targetLink": "my_targetLink",
|
|
5613
|
-
* // "targetProject": "my_targetProject",
|
|
5614
|
-
* // "user": "my_user"
|
|
5615
|
-
* // }
|
|
5616
|
-
* }
|
|
5617
|
-
*
|
|
5618
|
-
* main().catch(e => {
|
|
5619
|
-
* console.error(e);
|
|
5620
|
-
* throw e;
|
|
5621
|
-
* });
|
|
5622
|
-
*
|
|
5623
|
-
* ```
|
|
5624
3158
|
*
|
|
5625
3159
|
* @param params - Parameters for request
|
|
5626
3160
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -5635,59 +3169,6 @@ export declare namespace sqladmin_v1 {
|
|
|
5635
3169
|
get(callback: BodyResponseCallback<Schema$Operation>): void;
|
|
5636
3170
|
/**
|
|
5637
3171
|
* Lists all instance operations that have been performed on the given Cloud SQL instance in the reverse chronological order of the start time.
|
|
5638
|
-
* @example
|
|
5639
|
-
* ```js
|
|
5640
|
-
* // Before running the sample:
|
|
5641
|
-
* // - Enable the API at:
|
|
5642
|
-
* // https://console.developers.google.com/apis/api/sqladmin.googleapis.com
|
|
5643
|
-
* // - Login into gcloud by running:
|
|
5644
|
-
* // `$ gcloud auth application-default login`
|
|
5645
|
-
* // - Install the npm module by running:
|
|
5646
|
-
* // `$ npm install googleapis`
|
|
5647
|
-
*
|
|
5648
|
-
* const {google} = require('googleapis');
|
|
5649
|
-
* const sqladmin = google.sqladmin('v1');
|
|
5650
|
-
*
|
|
5651
|
-
* async function main() {
|
|
5652
|
-
* const auth = new google.auth.GoogleAuth({
|
|
5653
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
5654
|
-
* scopes: [
|
|
5655
|
-
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
5656
|
-
* 'https://www.googleapis.com/auth/sqlservice.admin',
|
|
5657
|
-
* ],
|
|
5658
|
-
* });
|
|
5659
|
-
*
|
|
5660
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
5661
|
-
* const authClient = await auth.getClient();
|
|
5662
|
-
* google.options({auth: authClient});
|
|
5663
|
-
*
|
|
5664
|
-
* // Do the magic
|
|
5665
|
-
* const res = await sql.operations.list({
|
|
5666
|
-
* // Cloud SQL instance ID. This does not include the project ID.
|
|
5667
|
-
* instance: 'placeholder-value',
|
|
5668
|
-
* // Maximum number of operations per response.
|
|
5669
|
-
* maxResults: 'placeholder-value',
|
|
5670
|
-
* // A previously-returned page token representing part of the larger set of results to view.
|
|
5671
|
-
* pageToken: 'placeholder-value',
|
|
5672
|
-
* // Project ID of the project that contains the instance.
|
|
5673
|
-
* project: 'placeholder-value',
|
|
5674
|
-
* });
|
|
5675
|
-
* console.log(res.data);
|
|
5676
|
-
*
|
|
5677
|
-
* // Example response
|
|
5678
|
-
* // {
|
|
5679
|
-
* // "items": [],
|
|
5680
|
-
* // "kind": "my_kind",
|
|
5681
|
-
* // "nextPageToken": "my_nextPageToken"
|
|
5682
|
-
* // }
|
|
5683
|
-
* }
|
|
5684
|
-
*
|
|
5685
|
-
* main().catch(e => {
|
|
5686
|
-
* console.error(e);
|
|
5687
|
-
* throw e;
|
|
5688
|
-
* });
|
|
5689
|
-
*
|
|
5690
|
-
* ```
|
|
5691
3172
|
*
|
|
5692
3173
|
* @param params - Parameters for request
|
|
5693
3174
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -5749,55 +3230,6 @@ export declare namespace sqladmin_v1 {
|
|
|
5749
3230
|
constructor(context: APIRequestContext);
|
|
5750
3231
|
/**
|
|
5751
3232
|
* Get Disk Shrink Config for a given instance.
|
|
5752
|
-
* @example
|
|
5753
|
-
* ```js
|
|
5754
|
-
* // Before running the sample:
|
|
5755
|
-
* // - Enable the API at:
|
|
5756
|
-
* // https://console.developers.google.com/apis/api/sqladmin.googleapis.com
|
|
5757
|
-
* // - Login into gcloud by running:
|
|
5758
|
-
* // `$ gcloud auth application-default login`
|
|
5759
|
-
* // - Install the npm module by running:
|
|
5760
|
-
* // `$ npm install googleapis`
|
|
5761
|
-
*
|
|
5762
|
-
* const {google} = require('googleapis');
|
|
5763
|
-
* const sqladmin = google.sqladmin('v1');
|
|
5764
|
-
*
|
|
5765
|
-
* async function main() {
|
|
5766
|
-
* const auth = new google.auth.GoogleAuth({
|
|
5767
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
5768
|
-
* scopes: [
|
|
5769
|
-
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
5770
|
-
* 'https://www.googleapis.com/auth/sqlservice.admin',
|
|
5771
|
-
* ],
|
|
5772
|
-
* });
|
|
5773
|
-
*
|
|
5774
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
5775
|
-
* const authClient = await auth.getClient();
|
|
5776
|
-
* google.options({auth: authClient});
|
|
5777
|
-
*
|
|
5778
|
-
* // Do the magic
|
|
5779
|
-
* const res = await sql.projects.instances.getDiskShrinkConfig({
|
|
5780
|
-
* // Cloud SQL instance ID. This does not include the project ID.
|
|
5781
|
-
* instance: 'placeholder-value',
|
|
5782
|
-
* // Project ID of the project that contains the instance.
|
|
5783
|
-
* project: 'placeholder-value',
|
|
5784
|
-
* });
|
|
5785
|
-
* console.log(res.data);
|
|
5786
|
-
*
|
|
5787
|
-
* // Example response
|
|
5788
|
-
* // {
|
|
5789
|
-
* // "kind": "my_kind",
|
|
5790
|
-
* // "message": "my_message",
|
|
5791
|
-
* // "minimalTargetSizeGb": "my_minimalTargetSizeGb"
|
|
5792
|
-
* // }
|
|
5793
|
-
* }
|
|
5794
|
-
*
|
|
5795
|
-
* main().catch(e => {
|
|
5796
|
-
* console.error(e);
|
|
5797
|
-
* throw e;
|
|
5798
|
-
* });
|
|
5799
|
-
*
|
|
5800
|
-
* ```
|
|
5801
3233
|
*
|
|
5802
3234
|
* @param params - Parameters for request
|
|
5803
3235
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -5812,54 +3244,6 @@ export declare namespace sqladmin_v1 {
|
|
|
5812
3244
|
getDiskShrinkConfig(callback: BodyResponseCallback<Schema$SqlInstancesGetDiskShrinkConfigResponse>): void;
|
|
5813
3245
|
/**
|
|
5814
3246
|
* Get Latest Recovery Time for a given instance.
|
|
5815
|
-
* @example
|
|
5816
|
-
* ```js
|
|
5817
|
-
* // Before running the sample:
|
|
5818
|
-
* // - Enable the API at:
|
|
5819
|
-
* // https://console.developers.google.com/apis/api/sqladmin.googleapis.com
|
|
5820
|
-
* // - Login into gcloud by running:
|
|
5821
|
-
* // `$ gcloud auth application-default login`
|
|
5822
|
-
* // - Install the npm module by running:
|
|
5823
|
-
* // `$ npm install googleapis`
|
|
5824
|
-
*
|
|
5825
|
-
* const {google} = require('googleapis');
|
|
5826
|
-
* const sqladmin = google.sqladmin('v1');
|
|
5827
|
-
*
|
|
5828
|
-
* async function main() {
|
|
5829
|
-
* const auth = new google.auth.GoogleAuth({
|
|
5830
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
5831
|
-
* scopes: [
|
|
5832
|
-
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
5833
|
-
* 'https://www.googleapis.com/auth/sqlservice.admin',
|
|
5834
|
-
* ],
|
|
5835
|
-
* });
|
|
5836
|
-
*
|
|
5837
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
5838
|
-
* const authClient = await auth.getClient();
|
|
5839
|
-
* google.options({auth: authClient});
|
|
5840
|
-
*
|
|
5841
|
-
* // Do the magic
|
|
5842
|
-
* const res = await sql.projects.instances.getLatestRecoveryTime({
|
|
5843
|
-
* // Cloud SQL instance ID. This does not include the project ID.
|
|
5844
|
-
* instance: 'placeholder-value',
|
|
5845
|
-
* // Project ID of the project that contains the instance.
|
|
5846
|
-
* project: 'placeholder-value',
|
|
5847
|
-
* });
|
|
5848
|
-
* console.log(res.data);
|
|
5849
|
-
*
|
|
5850
|
-
* // Example response
|
|
5851
|
-
* // {
|
|
5852
|
-
* // "kind": "my_kind",
|
|
5853
|
-
* // "latestRecoveryTime": "my_latestRecoveryTime"
|
|
5854
|
-
* // }
|
|
5855
|
-
* }
|
|
5856
|
-
*
|
|
5857
|
-
* main().catch(e => {
|
|
5858
|
-
* console.error(e);
|
|
5859
|
-
* throw e;
|
|
5860
|
-
* });
|
|
5861
|
-
*
|
|
5862
|
-
* ```
|
|
5863
3247
|
*
|
|
5864
3248
|
* @param params - Parameters for request
|
|
5865
3249
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -5874,76 +3258,6 @@ export declare namespace sqladmin_v1 {
|
|
|
5874
3258
|
getLatestRecoveryTime(callback: BodyResponseCallback<Schema$SqlInstancesGetLatestRecoveryTimeResponse>): void;
|
|
5875
3259
|
/**
|
|
5876
3260
|
* Perform Disk Shrink on primary instance.
|
|
5877
|
-
* @example
|
|
5878
|
-
* ```js
|
|
5879
|
-
* // Before running the sample:
|
|
5880
|
-
* // - Enable the API at:
|
|
5881
|
-
* // https://console.developers.google.com/apis/api/sqladmin.googleapis.com
|
|
5882
|
-
* // - Login into gcloud by running:
|
|
5883
|
-
* // `$ gcloud auth application-default login`
|
|
5884
|
-
* // - Install the npm module by running:
|
|
5885
|
-
* // `$ npm install googleapis`
|
|
5886
|
-
*
|
|
5887
|
-
* const {google} = require('googleapis');
|
|
5888
|
-
* const sqladmin = google.sqladmin('v1');
|
|
5889
|
-
*
|
|
5890
|
-
* async function main() {
|
|
5891
|
-
* const auth = new google.auth.GoogleAuth({
|
|
5892
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
5893
|
-
* scopes: [
|
|
5894
|
-
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
5895
|
-
* 'https://www.googleapis.com/auth/sqlservice.admin',
|
|
5896
|
-
* ],
|
|
5897
|
-
* });
|
|
5898
|
-
*
|
|
5899
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
5900
|
-
* const authClient = await auth.getClient();
|
|
5901
|
-
* google.options({auth: authClient});
|
|
5902
|
-
*
|
|
5903
|
-
* // Do the magic
|
|
5904
|
-
* const res = await sql.projects.instances.performDiskShrink({
|
|
5905
|
-
* // Cloud SQL instance ID. This does not include the project ID.
|
|
5906
|
-
* instance: 'placeholder-value',
|
|
5907
|
-
* // Project ID of the project that contains the instance.
|
|
5908
|
-
* project: 'placeholder-value',
|
|
5909
|
-
*
|
|
5910
|
-
* // Request body metadata
|
|
5911
|
-
* requestBody: {
|
|
5912
|
-
* // request body parameters
|
|
5913
|
-
* // {
|
|
5914
|
-
* // "targetSizeGb": "my_targetSizeGb"
|
|
5915
|
-
* // }
|
|
5916
|
-
* },
|
|
5917
|
-
* });
|
|
5918
|
-
* console.log(res.data);
|
|
5919
|
-
*
|
|
5920
|
-
* // Example response
|
|
5921
|
-
* // {
|
|
5922
|
-
* // "backupContext": {},
|
|
5923
|
-
* // "endTime": "my_endTime",
|
|
5924
|
-
* // "error": {},
|
|
5925
|
-
* // "exportContext": {},
|
|
5926
|
-
* // "importContext": {},
|
|
5927
|
-
* // "insertTime": "my_insertTime",
|
|
5928
|
-
* // "kind": "my_kind",
|
|
5929
|
-
* // "name": "my_name",
|
|
5930
|
-
* // "operationType": "my_operationType",
|
|
5931
|
-
* // "selfLink": "my_selfLink",
|
|
5932
|
-
* // "startTime": "my_startTime",
|
|
5933
|
-
* // "status": "my_status",
|
|
5934
|
-
* // "targetId": "my_targetId",
|
|
5935
|
-
* // "targetLink": "my_targetLink",
|
|
5936
|
-
* // "targetProject": "my_targetProject",
|
|
5937
|
-
* // "user": "my_user"
|
|
5938
|
-
* // }
|
|
5939
|
-
* }
|
|
5940
|
-
*
|
|
5941
|
-
* main().catch(e => {
|
|
5942
|
-
* console.error(e);
|
|
5943
|
-
* throw e;
|
|
5944
|
-
* });
|
|
5945
|
-
*
|
|
5946
|
-
* ```
|
|
5947
3261
|
*
|
|
5948
3262
|
* @param params - Parameters for request
|
|
5949
3263
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -5958,76 +3272,6 @@ export declare namespace sqladmin_v1 {
|
|
|
5958
3272
|
performDiskShrink(callback: BodyResponseCallback<Schema$Operation>): void;
|
|
5959
3273
|
/**
|
|
5960
3274
|
* Reschedules the maintenance on the given instance.
|
|
5961
|
-
* @example
|
|
5962
|
-
* ```js
|
|
5963
|
-
* // Before running the sample:
|
|
5964
|
-
* // - Enable the API at:
|
|
5965
|
-
* // https://console.developers.google.com/apis/api/sqladmin.googleapis.com
|
|
5966
|
-
* // - Login into gcloud by running:
|
|
5967
|
-
* // `$ gcloud auth application-default login`
|
|
5968
|
-
* // - Install the npm module by running:
|
|
5969
|
-
* // `$ npm install googleapis`
|
|
5970
|
-
*
|
|
5971
|
-
* const {google} = require('googleapis');
|
|
5972
|
-
* const sqladmin = google.sqladmin('v1');
|
|
5973
|
-
*
|
|
5974
|
-
* async function main() {
|
|
5975
|
-
* const auth = new google.auth.GoogleAuth({
|
|
5976
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
5977
|
-
* scopes: [
|
|
5978
|
-
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
5979
|
-
* 'https://www.googleapis.com/auth/sqlservice.admin',
|
|
5980
|
-
* ],
|
|
5981
|
-
* });
|
|
5982
|
-
*
|
|
5983
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
5984
|
-
* const authClient = await auth.getClient();
|
|
5985
|
-
* google.options({auth: authClient});
|
|
5986
|
-
*
|
|
5987
|
-
* // Do the magic
|
|
5988
|
-
* const res = await sql.projects.instances.rescheduleMaintenance({
|
|
5989
|
-
* // Cloud SQL instance ID. This does not include the project ID.
|
|
5990
|
-
* instance: 'placeholder-value',
|
|
5991
|
-
* // ID of the project that contains the instance.
|
|
5992
|
-
* project: 'placeholder-value',
|
|
5993
|
-
*
|
|
5994
|
-
* // Request body metadata
|
|
5995
|
-
* requestBody: {
|
|
5996
|
-
* // request body parameters
|
|
5997
|
-
* // {
|
|
5998
|
-
* // "reschedule": {}
|
|
5999
|
-
* // }
|
|
6000
|
-
* },
|
|
6001
|
-
* });
|
|
6002
|
-
* console.log(res.data);
|
|
6003
|
-
*
|
|
6004
|
-
* // Example response
|
|
6005
|
-
* // {
|
|
6006
|
-
* // "backupContext": {},
|
|
6007
|
-
* // "endTime": "my_endTime",
|
|
6008
|
-
* // "error": {},
|
|
6009
|
-
* // "exportContext": {},
|
|
6010
|
-
* // "importContext": {},
|
|
6011
|
-
* // "insertTime": "my_insertTime",
|
|
6012
|
-
* // "kind": "my_kind",
|
|
6013
|
-
* // "name": "my_name",
|
|
6014
|
-
* // "operationType": "my_operationType",
|
|
6015
|
-
* // "selfLink": "my_selfLink",
|
|
6016
|
-
* // "startTime": "my_startTime",
|
|
6017
|
-
* // "status": "my_status",
|
|
6018
|
-
* // "targetId": "my_targetId",
|
|
6019
|
-
* // "targetLink": "my_targetLink",
|
|
6020
|
-
* // "targetProject": "my_targetProject",
|
|
6021
|
-
* // "user": "my_user"
|
|
6022
|
-
* // }
|
|
6023
|
-
* }
|
|
6024
|
-
*
|
|
6025
|
-
* main().catch(e => {
|
|
6026
|
-
* console.error(e);
|
|
6027
|
-
* throw e;
|
|
6028
|
-
* });
|
|
6029
|
-
*
|
|
6030
|
-
* ```
|
|
6031
3275
|
*
|
|
6032
3276
|
* @param params - Parameters for request
|
|
6033
3277
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -6042,74 +3286,6 @@ export declare namespace sqladmin_v1 {
|
|
|
6042
3286
|
rescheduleMaintenance(callback: BodyResponseCallback<Schema$Operation>): void;
|
|
6043
3287
|
/**
|
|
6044
3288
|
* Reset Replica Size to primary instance disk size.
|
|
6045
|
-
* @example
|
|
6046
|
-
* ```js
|
|
6047
|
-
* // Before running the sample:
|
|
6048
|
-
* // - Enable the API at:
|
|
6049
|
-
* // https://console.developers.google.com/apis/api/sqladmin.googleapis.com
|
|
6050
|
-
* // - Login into gcloud by running:
|
|
6051
|
-
* // `$ gcloud auth application-default login`
|
|
6052
|
-
* // - Install the npm module by running:
|
|
6053
|
-
* // `$ npm install googleapis`
|
|
6054
|
-
*
|
|
6055
|
-
* const {google} = require('googleapis');
|
|
6056
|
-
* const sqladmin = google.sqladmin('v1');
|
|
6057
|
-
*
|
|
6058
|
-
* async function main() {
|
|
6059
|
-
* const auth = new google.auth.GoogleAuth({
|
|
6060
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
6061
|
-
* scopes: [
|
|
6062
|
-
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
6063
|
-
* 'https://www.googleapis.com/auth/sqlservice.admin',
|
|
6064
|
-
* ],
|
|
6065
|
-
* });
|
|
6066
|
-
*
|
|
6067
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
6068
|
-
* const authClient = await auth.getClient();
|
|
6069
|
-
* google.options({auth: authClient});
|
|
6070
|
-
*
|
|
6071
|
-
* // Do the magic
|
|
6072
|
-
* const res = await sql.projects.instances.resetReplicaSize({
|
|
6073
|
-
* // Cloud SQL read replica instance name.
|
|
6074
|
-
* instance: 'placeholder-value',
|
|
6075
|
-
* // ID of the project that contains the read replica.
|
|
6076
|
-
* project: 'placeholder-value',
|
|
6077
|
-
*
|
|
6078
|
-
* // Request body metadata
|
|
6079
|
-
* requestBody: {
|
|
6080
|
-
* // request body parameters
|
|
6081
|
-
* // {}
|
|
6082
|
-
* },
|
|
6083
|
-
* });
|
|
6084
|
-
* console.log(res.data);
|
|
6085
|
-
*
|
|
6086
|
-
* // Example response
|
|
6087
|
-
* // {
|
|
6088
|
-
* // "backupContext": {},
|
|
6089
|
-
* // "endTime": "my_endTime",
|
|
6090
|
-
* // "error": {},
|
|
6091
|
-
* // "exportContext": {},
|
|
6092
|
-
* // "importContext": {},
|
|
6093
|
-
* // "insertTime": "my_insertTime",
|
|
6094
|
-
* // "kind": "my_kind",
|
|
6095
|
-
* // "name": "my_name",
|
|
6096
|
-
* // "operationType": "my_operationType",
|
|
6097
|
-
* // "selfLink": "my_selfLink",
|
|
6098
|
-
* // "startTime": "my_startTime",
|
|
6099
|
-
* // "status": "my_status",
|
|
6100
|
-
* // "targetId": "my_targetId",
|
|
6101
|
-
* // "targetLink": "my_targetLink",
|
|
6102
|
-
* // "targetProject": "my_targetProject",
|
|
6103
|
-
* // "user": "my_user"
|
|
6104
|
-
* // }
|
|
6105
|
-
* }
|
|
6106
|
-
*
|
|
6107
|
-
* main().catch(e => {
|
|
6108
|
-
* console.error(e);
|
|
6109
|
-
* throw e;
|
|
6110
|
-
* });
|
|
6111
|
-
*
|
|
6112
|
-
* ```
|
|
6113
3289
|
*
|
|
6114
3290
|
* @param params - Parameters for request
|
|
6115
3291
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -6124,79 +3300,6 @@ export declare namespace sqladmin_v1 {
|
|
|
6124
3300
|
resetReplicaSize(callback: BodyResponseCallback<Schema$Operation>): void;
|
|
6125
3301
|
/**
|
|
6126
3302
|
* Start External primary instance migration.
|
|
6127
|
-
* @example
|
|
6128
|
-
* ```js
|
|
6129
|
-
* // Before running the sample:
|
|
6130
|
-
* // - Enable the API at:
|
|
6131
|
-
* // https://console.developers.google.com/apis/api/sqladmin.googleapis.com
|
|
6132
|
-
* // - Login into gcloud by running:
|
|
6133
|
-
* // `$ gcloud auth application-default login`
|
|
6134
|
-
* // - Install the npm module by running:
|
|
6135
|
-
* // `$ npm install googleapis`
|
|
6136
|
-
*
|
|
6137
|
-
* const {google} = require('googleapis');
|
|
6138
|
-
* const sqladmin = google.sqladmin('v1');
|
|
6139
|
-
*
|
|
6140
|
-
* async function main() {
|
|
6141
|
-
* const auth = new google.auth.GoogleAuth({
|
|
6142
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
6143
|
-
* scopes: [
|
|
6144
|
-
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
6145
|
-
* 'https://www.googleapis.com/auth/sqlservice.admin',
|
|
6146
|
-
* ],
|
|
6147
|
-
* });
|
|
6148
|
-
*
|
|
6149
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
6150
|
-
* const authClient = await auth.getClient();
|
|
6151
|
-
* google.options({auth: authClient});
|
|
6152
|
-
*
|
|
6153
|
-
* // Do the magic
|
|
6154
|
-
* const res = await sql.projects.instances.startExternalSync({
|
|
6155
|
-
* // Cloud SQL instance ID. This does not include the project ID.
|
|
6156
|
-
* instance: 'placeholder-value',
|
|
6157
|
-
* // ID of the project that contains the instance.
|
|
6158
|
-
* project: 'placeholder-value',
|
|
6159
|
-
*
|
|
6160
|
-
* // Request body metadata
|
|
6161
|
-
* requestBody: {
|
|
6162
|
-
* // request body parameters
|
|
6163
|
-
* // {
|
|
6164
|
-
* // "mysqlSyncConfig": {},
|
|
6165
|
-
* // "skipVerification": false,
|
|
6166
|
-
* // "syncMode": "my_syncMode",
|
|
6167
|
-
* // "syncParallelLevel": "my_syncParallelLevel"
|
|
6168
|
-
* // }
|
|
6169
|
-
* },
|
|
6170
|
-
* });
|
|
6171
|
-
* console.log(res.data);
|
|
6172
|
-
*
|
|
6173
|
-
* // Example response
|
|
6174
|
-
* // {
|
|
6175
|
-
* // "backupContext": {},
|
|
6176
|
-
* // "endTime": "my_endTime",
|
|
6177
|
-
* // "error": {},
|
|
6178
|
-
* // "exportContext": {},
|
|
6179
|
-
* // "importContext": {},
|
|
6180
|
-
* // "insertTime": "my_insertTime",
|
|
6181
|
-
* // "kind": "my_kind",
|
|
6182
|
-
* // "name": "my_name",
|
|
6183
|
-
* // "operationType": "my_operationType",
|
|
6184
|
-
* // "selfLink": "my_selfLink",
|
|
6185
|
-
* // "startTime": "my_startTime",
|
|
6186
|
-
* // "status": "my_status",
|
|
6187
|
-
* // "targetId": "my_targetId",
|
|
6188
|
-
* // "targetLink": "my_targetLink",
|
|
6189
|
-
* // "targetProject": "my_targetProject",
|
|
6190
|
-
* // "user": "my_user"
|
|
6191
|
-
* // }
|
|
6192
|
-
* }
|
|
6193
|
-
*
|
|
6194
|
-
* main().catch(e => {
|
|
6195
|
-
* console.error(e);
|
|
6196
|
-
* throw e;
|
|
6197
|
-
* });
|
|
6198
|
-
*
|
|
6199
|
-
* ```
|
|
6200
3303
|
*
|
|
6201
3304
|
* @param params - Parameters for request
|
|
6202
3305
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -6211,66 +3314,6 @@ export declare namespace sqladmin_v1 {
|
|
|
6211
3314
|
startExternalSync(callback: BodyResponseCallback<Schema$Operation>): void;
|
|
6212
3315
|
/**
|
|
6213
3316
|
* Verify External primary instance external sync settings.
|
|
6214
|
-
* @example
|
|
6215
|
-
* ```js
|
|
6216
|
-
* // Before running the sample:
|
|
6217
|
-
* // - Enable the API at:
|
|
6218
|
-
* // https://console.developers.google.com/apis/api/sqladmin.googleapis.com
|
|
6219
|
-
* // - Login into gcloud by running:
|
|
6220
|
-
* // `$ gcloud auth application-default login`
|
|
6221
|
-
* // - Install the npm module by running:
|
|
6222
|
-
* // `$ npm install googleapis`
|
|
6223
|
-
*
|
|
6224
|
-
* const {google} = require('googleapis');
|
|
6225
|
-
* const sqladmin = google.sqladmin('v1');
|
|
6226
|
-
*
|
|
6227
|
-
* async function main() {
|
|
6228
|
-
* const auth = new google.auth.GoogleAuth({
|
|
6229
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
6230
|
-
* scopes: [
|
|
6231
|
-
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
6232
|
-
* 'https://www.googleapis.com/auth/sqlservice.admin',
|
|
6233
|
-
* ],
|
|
6234
|
-
* });
|
|
6235
|
-
*
|
|
6236
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
6237
|
-
* const authClient = await auth.getClient();
|
|
6238
|
-
* google.options({auth: authClient});
|
|
6239
|
-
*
|
|
6240
|
-
* // Do the magic
|
|
6241
|
-
* const res = await sql.projects.instances.verifyExternalSyncSettings({
|
|
6242
|
-
* // Cloud SQL instance ID. This does not include the project ID.
|
|
6243
|
-
* instance: 'placeholder-value',
|
|
6244
|
-
* // Project ID of the project that contains the instance.
|
|
6245
|
-
* project: 'placeholder-value',
|
|
6246
|
-
*
|
|
6247
|
-
* // Request body metadata
|
|
6248
|
-
* requestBody: {
|
|
6249
|
-
* // request body parameters
|
|
6250
|
-
* // {
|
|
6251
|
-
* // "mysqlSyncConfig": {},
|
|
6252
|
-
* // "syncMode": "my_syncMode",
|
|
6253
|
-
* // "verifyConnectionOnly": false,
|
|
6254
|
-
* // "verifyReplicationOnly": false
|
|
6255
|
-
* // }
|
|
6256
|
-
* },
|
|
6257
|
-
* });
|
|
6258
|
-
* console.log(res.data);
|
|
6259
|
-
*
|
|
6260
|
-
* // Example response
|
|
6261
|
-
* // {
|
|
6262
|
-
* // "errors": [],
|
|
6263
|
-
* // "kind": "my_kind",
|
|
6264
|
-
* // "warnings": []
|
|
6265
|
-
* // }
|
|
6266
|
-
* }
|
|
6267
|
-
*
|
|
6268
|
-
* main().catch(e => {
|
|
6269
|
-
* console.error(e);
|
|
6270
|
-
* throw e;
|
|
6271
|
-
* });
|
|
6272
|
-
*
|
|
6273
|
-
* ```
|
|
6274
3317
|
*
|
|
6275
3318
|
* @param params - Parameters for request
|
|
6276
3319
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -6379,70 +3422,6 @@ export declare namespace sqladmin_v1 {
|
|
|
6379
3422
|
constructor(context: APIRequestContext);
|
|
6380
3423
|
/**
|
|
6381
3424
|
* Generates a short-lived X509 certificate containing the provided public key and signed by a private key specific to the target instance. Users may use the certificate to authenticate as themselves when connecting to the database.
|
|
6382
|
-
* @example
|
|
6383
|
-
* ```js
|
|
6384
|
-
* // Before running the sample:
|
|
6385
|
-
* // - Enable the API at:
|
|
6386
|
-
* // https://console.developers.google.com/apis/api/sqladmin.googleapis.com
|
|
6387
|
-
* // - Login into gcloud by running:
|
|
6388
|
-
* // `$ gcloud auth application-default login`
|
|
6389
|
-
* // - Install the npm module by running:
|
|
6390
|
-
* // `$ npm install googleapis`
|
|
6391
|
-
*
|
|
6392
|
-
* const {google} = require('googleapis');
|
|
6393
|
-
* const sqladmin = google.sqladmin('v1');
|
|
6394
|
-
*
|
|
6395
|
-
* async function main() {
|
|
6396
|
-
* const auth = new google.auth.GoogleAuth({
|
|
6397
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
6398
|
-
* scopes: [
|
|
6399
|
-
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
6400
|
-
* 'https://www.googleapis.com/auth/sqlservice.admin',
|
|
6401
|
-
* ],
|
|
6402
|
-
* });
|
|
6403
|
-
*
|
|
6404
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
6405
|
-
* const authClient = await auth.getClient();
|
|
6406
|
-
* google.options({auth: authClient});
|
|
6407
|
-
*
|
|
6408
|
-
* // Do the magic
|
|
6409
|
-
* const res = await sql.sslCerts.createEphemeral({
|
|
6410
|
-
* // Cloud SQL instance ID. This does not include the project ID.
|
|
6411
|
-
* instance: 'placeholder-value',
|
|
6412
|
-
* // Project ID of the Cloud SQL project.
|
|
6413
|
-
* project: 'placeholder-value',
|
|
6414
|
-
*
|
|
6415
|
-
* // Request body metadata
|
|
6416
|
-
* requestBody: {
|
|
6417
|
-
* // request body parameters
|
|
6418
|
-
* // {
|
|
6419
|
-
* // "access_token": "my_access_token",
|
|
6420
|
-
* // "public_key": "my_public_key"
|
|
6421
|
-
* // }
|
|
6422
|
-
* },
|
|
6423
|
-
* });
|
|
6424
|
-
* console.log(res.data);
|
|
6425
|
-
*
|
|
6426
|
-
* // Example response
|
|
6427
|
-
* // {
|
|
6428
|
-
* // "cert": "my_cert",
|
|
6429
|
-
* // "certSerialNumber": "my_certSerialNumber",
|
|
6430
|
-
* // "commonName": "my_commonName",
|
|
6431
|
-
* // "createTime": "my_createTime",
|
|
6432
|
-
* // "expirationTime": "my_expirationTime",
|
|
6433
|
-
* // "instance": "my_instance",
|
|
6434
|
-
* // "kind": "my_kind",
|
|
6435
|
-
* // "selfLink": "my_selfLink",
|
|
6436
|
-
* // "sha1Fingerprint": "my_sha1Fingerprint"
|
|
6437
|
-
* // }
|
|
6438
|
-
* }
|
|
6439
|
-
*
|
|
6440
|
-
* main().catch(e => {
|
|
6441
|
-
* console.error(e);
|
|
6442
|
-
* throw e;
|
|
6443
|
-
* });
|
|
6444
|
-
*
|
|
6445
|
-
* ```
|
|
6446
3425
|
*
|
|
6447
3426
|
* @param params - Parameters for request
|
|
6448
3427
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -6457,70 +3436,6 @@ export declare namespace sqladmin_v1 {
|
|
|
6457
3436
|
createEphemeral(callback: BodyResponseCallback<Schema$SslCert>): void;
|
|
6458
3437
|
/**
|
|
6459
3438
|
* Deletes the SSL certificate. For First Generation instances, the certificate remains valid until the instance is restarted.
|
|
6460
|
-
* @example
|
|
6461
|
-
* ```js
|
|
6462
|
-
* // Before running the sample:
|
|
6463
|
-
* // - Enable the API at:
|
|
6464
|
-
* // https://console.developers.google.com/apis/api/sqladmin.googleapis.com
|
|
6465
|
-
* // - Login into gcloud by running:
|
|
6466
|
-
* // `$ gcloud auth application-default login`
|
|
6467
|
-
* // - Install the npm module by running:
|
|
6468
|
-
* // `$ npm install googleapis`
|
|
6469
|
-
*
|
|
6470
|
-
* const {google} = require('googleapis');
|
|
6471
|
-
* const sqladmin = google.sqladmin('v1');
|
|
6472
|
-
*
|
|
6473
|
-
* async function main() {
|
|
6474
|
-
* const auth = new google.auth.GoogleAuth({
|
|
6475
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
6476
|
-
* scopes: [
|
|
6477
|
-
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
6478
|
-
* 'https://www.googleapis.com/auth/sqlservice.admin',
|
|
6479
|
-
* ],
|
|
6480
|
-
* });
|
|
6481
|
-
*
|
|
6482
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
6483
|
-
* const authClient = await auth.getClient();
|
|
6484
|
-
* google.options({auth: authClient});
|
|
6485
|
-
*
|
|
6486
|
-
* // Do the magic
|
|
6487
|
-
* const res = await sql.sslCerts.delete({
|
|
6488
|
-
* // Cloud SQL instance ID. This does not include the project ID.
|
|
6489
|
-
* instance: 'placeholder-value',
|
|
6490
|
-
* // Project ID of the project that contains the instance.
|
|
6491
|
-
* project: 'placeholder-value',
|
|
6492
|
-
* // Sha1 FingerPrint.
|
|
6493
|
-
* sha1Fingerprint: 'placeholder-value',
|
|
6494
|
-
* });
|
|
6495
|
-
* console.log(res.data);
|
|
6496
|
-
*
|
|
6497
|
-
* // Example response
|
|
6498
|
-
* // {
|
|
6499
|
-
* // "backupContext": {},
|
|
6500
|
-
* // "endTime": "my_endTime",
|
|
6501
|
-
* // "error": {},
|
|
6502
|
-
* // "exportContext": {},
|
|
6503
|
-
* // "importContext": {},
|
|
6504
|
-
* // "insertTime": "my_insertTime",
|
|
6505
|
-
* // "kind": "my_kind",
|
|
6506
|
-
* // "name": "my_name",
|
|
6507
|
-
* // "operationType": "my_operationType",
|
|
6508
|
-
* // "selfLink": "my_selfLink",
|
|
6509
|
-
* // "startTime": "my_startTime",
|
|
6510
|
-
* // "status": "my_status",
|
|
6511
|
-
* // "targetId": "my_targetId",
|
|
6512
|
-
* // "targetLink": "my_targetLink",
|
|
6513
|
-
* // "targetProject": "my_targetProject",
|
|
6514
|
-
* // "user": "my_user"
|
|
6515
|
-
* // }
|
|
6516
|
-
* }
|
|
6517
|
-
*
|
|
6518
|
-
* main().catch(e => {
|
|
6519
|
-
* console.error(e);
|
|
6520
|
-
* throw e;
|
|
6521
|
-
* });
|
|
6522
|
-
*
|
|
6523
|
-
* ```
|
|
6524
3439
|
*
|
|
6525
3440
|
* @param params - Parameters for request
|
|
6526
3441
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -6535,63 +3450,6 @@ export declare namespace sqladmin_v1 {
|
|
|
6535
3450
|
delete(callback: BodyResponseCallback<Schema$Operation>): void;
|
|
6536
3451
|
/**
|
|
6537
3452
|
* Retrieves a particular SSL certificate. Does not include the private key (required for usage). The private key must be saved from the response to initial creation.
|
|
6538
|
-
* @example
|
|
6539
|
-
* ```js
|
|
6540
|
-
* // Before running the sample:
|
|
6541
|
-
* // - Enable the API at:
|
|
6542
|
-
* // https://console.developers.google.com/apis/api/sqladmin.googleapis.com
|
|
6543
|
-
* // - Login into gcloud by running:
|
|
6544
|
-
* // `$ gcloud auth application-default login`
|
|
6545
|
-
* // - Install the npm module by running:
|
|
6546
|
-
* // `$ npm install googleapis`
|
|
6547
|
-
*
|
|
6548
|
-
* const {google} = require('googleapis');
|
|
6549
|
-
* const sqladmin = google.sqladmin('v1');
|
|
6550
|
-
*
|
|
6551
|
-
* async function main() {
|
|
6552
|
-
* const auth = new google.auth.GoogleAuth({
|
|
6553
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
6554
|
-
* scopes: [
|
|
6555
|
-
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
6556
|
-
* 'https://www.googleapis.com/auth/sqlservice.admin',
|
|
6557
|
-
* ],
|
|
6558
|
-
* });
|
|
6559
|
-
*
|
|
6560
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
6561
|
-
* const authClient = await auth.getClient();
|
|
6562
|
-
* google.options({auth: authClient});
|
|
6563
|
-
*
|
|
6564
|
-
* // Do the magic
|
|
6565
|
-
* const res = await sql.sslCerts.get({
|
|
6566
|
-
* // Cloud SQL instance ID. This does not include the project ID.
|
|
6567
|
-
* instance: 'placeholder-value',
|
|
6568
|
-
* // Project ID of the project that contains the instance.
|
|
6569
|
-
* project: 'placeholder-value',
|
|
6570
|
-
* // Sha1 FingerPrint.
|
|
6571
|
-
* sha1Fingerprint: 'placeholder-value',
|
|
6572
|
-
* });
|
|
6573
|
-
* console.log(res.data);
|
|
6574
|
-
*
|
|
6575
|
-
* // Example response
|
|
6576
|
-
* // {
|
|
6577
|
-
* // "cert": "my_cert",
|
|
6578
|
-
* // "certSerialNumber": "my_certSerialNumber",
|
|
6579
|
-
* // "commonName": "my_commonName",
|
|
6580
|
-
* // "createTime": "my_createTime",
|
|
6581
|
-
* // "expirationTime": "my_expirationTime",
|
|
6582
|
-
* // "instance": "my_instance",
|
|
6583
|
-
* // "kind": "my_kind",
|
|
6584
|
-
* // "selfLink": "my_selfLink",
|
|
6585
|
-
* // "sha1Fingerprint": "my_sha1Fingerprint"
|
|
6586
|
-
* // }
|
|
6587
|
-
* }
|
|
6588
|
-
*
|
|
6589
|
-
* main().catch(e => {
|
|
6590
|
-
* console.error(e);
|
|
6591
|
-
* throw e;
|
|
6592
|
-
* });
|
|
6593
|
-
*
|
|
6594
|
-
* ```
|
|
6595
3453
|
*
|
|
6596
3454
|
* @param params - Parameters for request
|
|
6597
3455
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -6606,64 +3464,6 @@ export declare namespace sqladmin_v1 {
|
|
|
6606
3464
|
get(callback: BodyResponseCallback<Schema$SslCert>): void;
|
|
6607
3465
|
/**
|
|
6608
3466
|
* Creates an SSL certificate and returns it along with the private key and server certificate authority. The new certificate will not be usable until the instance is restarted.
|
|
6609
|
-
* @example
|
|
6610
|
-
* ```js
|
|
6611
|
-
* // Before running the sample:
|
|
6612
|
-
* // - Enable the API at:
|
|
6613
|
-
* // https://console.developers.google.com/apis/api/sqladmin.googleapis.com
|
|
6614
|
-
* // - Login into gcloud by running:
|
|
6615
|
-
* // `$ gcloud auth application-default login`
|
|
6616
|
-
* // - Install the npm module by running:
|
|
6617
|
-
* // `$ npm install googleapis`
|
|
6618
|
-
*
|
|
6619
|
-
* const {google} = require('googleapis');
|
|
6620
|
-
* const sqladmin = google.sqladmin('v1');
|
|
6621
|
-
*
|
|
6622
|
-
* async function main() {
|
|
6623
|
-
* const auth = new google.auth.GoogleAuth({
|
|
6624
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
6625
|
-
* scopes: [
|
|
6626
|
-
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
6627
|
-
* 'https://www.googleapis.com/auth/sqlservice.admin',
|
|
6628
|
-
* ],
|
|
6629
|
-
* });
|
|
6630
|
-
*
|
|
6631
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
6632
|
-
* const authClient = await auth.getClient();
|
|
6633
|
-
* google.options({auth: authClient});
|
|
6634
|
-
*
|
|
6635
|
-
* // Do the magic
|
|
6636
|
-
* const res = await sql.sslCerts.insert({
|
|
6637
|
-
* // Cloud SQL instance ID. This does not include the project ID.
|
|
6638
|
-
* instance: 'placeholder-value',
|
|
6639
|
-
* // Project ID of the project that contains the instance.
|
|
6640
|
-
* project: 'placeholder-value',
|
|
6641
|
-
*
|
|
6642
|
-
* // Request body metadata
|
|
6643
|
-
* requestBody: {
|
|
6644
|
-
* // request body parameters
|
|
6645
|
-
* // {
|
|
6646
|
-
* // "commonName": "my_commonName"
|
|
6647
|
-
* // }
|
|
6648
|
-
* },
|
|
6649
|
-
* });
|
|
6650
|
-
* console.log(res.data);
|
|
6651
|
-
*
|
|
6652
|
-
* // Example response
|
|
6653
|
-
* // {
|
|
6654
|
-
* // "clientCert": {},
|
|
6655
|
-
* // "kind": "my_kind",
|
|
6656
|
-
* // "operation": {},
|
|
6657
|
-
* // "serverCaCert": {}
|
|
6658
|
-
* // }
|
|
6659
|
-
* }
|
|
6660
|
-
*
|
|
6661
|
-
* main().catch(e => {
|
|
6662
|
-
* console.error(e);
|
|
6663
|
-
* throw e;
|
|
6664
|
-
* });
|
|
6665
|
-
*
|
|
6666
|
-
* ```
|
|
6667
3467
|
*
|
|
6668
3468
|
* @param params - Parameters for request
|
|
6669
3469
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -6678,54 +3478,6 @@ export declare namespace sqladmin_v1 {
|
|
|
6678
3478
|
insert(callback: BodyResponseCallback<Schema$SslCertsInsertResponse>): void;
|
|
6679
3479
|
/**
|
|
6680
3480
|
* Lists all of the current SSL certificates for the instance.
|
|
6681
|
-
* @example
|
|
6682
|
-
* ```js
|
|
6683
|
-
* // Before running the sample:
|
|
6684
|
-
* // - Enable the API at:
|
|
6685
|
-
* // https://console.developers.google.com/apis/api/sqladmin.googleapis.com
|
|
6686
|
-
* // - Login into gcloud by running:
|
|
6687
|
-
* // `$ gcloud auth application-default login`
|
|
6688
|
-
* // - Install the npm module by running:
|
|
6689
|
-
* // `$ npm install googleapis`
|
|
6690
|
-
*
|
|
6691
|
-
* const {google} = require('googleapis');
|
|
6692
|
-
* const sqladmin = google.sqladmin('v1');
|
|
6693
|
-
*
|
|
6694
|
-
* async function main() {
|
|
6695
|
-
* const auth = new google.auth.GoogleAuth({
|
|
6696
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
6697
|
-
* scopes: [
|
|
6698
|
-
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
6699
|
-
* 'https://www.googleapis.com/auth/sqlservice.admin',
|
|
6700
|
-
* ],
|
|
6701
|
-
* });
|
|
6702
|
-
*
|
|
6703
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
6704
|
-
* const authClient = await auth.getClient();
|
|
6705
|
-
* google.options({auth: authClient});
|
|
6706
|
-
*
|
|
6707
|
-
* // Do the magic
|
|
6708
|
-
* const res = await sql.sslCerts.list({
|
|
6709
|
-
* // Cloud SQL instance ID. This does not include the project ID.
|
|
6710
|
-
* instance: 'placeholder-value',
|
|
6711
|
-
* // Project ID of the project that contains the instance.
|
|
6712
|
-
* project: 'placeholder-value',
|
|
6713
|
-
* });
|
|
6714
|
-
* console.log(res.data);
|
|
6715
|
-
*
|
|
6716
|
-
* // Example response
|
|
6717
|
-
* // {
|
|
6718
|
-
* // "items": [],
|
|
6719
|
-
* // "kind": "my_kind"
|
|
6720
|
-
* // }
|
|
6721
|
-
* }
|
|
6722
|
-
*
|
|
6723
|
-
* main().catch(e => {
|
|
6724
|
-
* console.error(e);
|
|
6725
|
-
* throw e;
|
|
6726
|
-
* });
|
|
6727
|
-
*
|
|
6728
|
-
* ```
|
|
6729
3481
|
*
|
|
6730
3482
|
* @param params - Parameters for request
|
|
6731
3483
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -6810,52 +3562,6 @@ export declare namespace sqladmin_v1 {
|
|
|
6810
3562
|
constructor(context: APIRequestContext);
|
|
6811
3563
|
/**
|
|
6812
3564
|
* Lists all available machine types (tiers) for Cloud SQL, for example, `db-custom-1-3840`. For more information, see https://cloud.google.com/sql/pricing.
|
|
6813
|
-
* @example
|
|
6814
|
-
* ```js
|
|
6815
|
-
* // Before running the sample:
|
|
6816
|
-
* // - Enable the API at:
|
|
6817
|
-
* // https://console.developers.google.com/apis/api/sqladmin.googleapis.com
|
|
6818
|
-
* // - Login into gcloud by running:
|
|
6819
|
-
* // `$ gcloud auth application-default login`
|
|
6820
|
-
* // - Install the npm module by running:
|
|
6821
|
-
* // `$ npm install googleapis`
|
|
6822
|
-
*
|
|
6823
|
-
* const {google} = require('googleapis');
|
|
6824
|
-
* const sqladmin = google.sqladmin('v1');
|
|
6825
|
-
*
|
|
6826
|
-
* async function main() {
|
|
6827
|
-
* const auth = new google.auth.GoogleAuth({
|
|
6828
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
6829
|
-
* scopes: [
|
|
6830
|
-
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
6831
|
-
* 'https://www.googleapis.com/auth/sqlservice.admin',
|
|
6832
|
-
* ],
|
|
6833
|
-
* });
|
|
6834
|
-
*
|
|
6835
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
6836
|
-
* const authClient = await auth.getClient();
|
|
6837
|
-
* google.options({auth: authClient});
|
|
6838
|
-
*
|
|
6839
|
-
* // Do the magic
|
|
6840
|
-
* const res = await sql.tiers.list({
|
|
6841
|
-
* // Project ID of the project for which to list tiers.
|
|
6842
|
-
* project: 'placeholder-value',
|
|
6843
|
-
* });
|
|
6844
|
-
* console.log(res.data);
|
|
6845
|
-
*
|
|
6846
|
-
* // Example response
|
|
6847
|
-
* // {
|
|
6848
|
-
* // "items": [],
|
|
6849
|
-
* // "kind": "my_kind"
|
|
6850
|
-
* // }
|
|
6851
|
-
* }
|
|
6852
|
-
*
|
|
6853
|
-
* main().catch(e => {
|
|
6854
|
-
* console.error(e);
|
|
6855
|
-
* throw e;
|
|
6856
|
-
* });
|
|
6857
|
-
*
|
|
6858
|
-
* ```
|
|
6859
3565
|
*
|
|
6860
3566
|
* @param params - Parameters for request
|
|
6861
3567
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -6880,72 +3586,6 @@ export declare namespace sqladmin_v1 {
|
|
|
6880
3586
|
constructor(context: APIRequestContext);
|
|
6881
3587
|
/**
|
|
6882
3588
|
* Deletes a user from a Cloud SQL instance.
|
|
6883
|
-
* @example
|
|
6884
|
-
* ```js
|
|
6885
|
-
* // Before running the sample:
|
|
6886
|
-
* // - Enable the API at:
|
|
6887
|
-
* // https://console.developers.google.com/apis/api/sqladmin.googleapis.com
|
|
6888
|
-
* // - Login into gcloud by running:
|
|
6889
|
-
* // `$ gcloud auth application-default login`
|
|
6890
|
-
* // - Install the npm module by running:
|
|
6891
|
-
* // `$ npm install googleapis`
|
|
6892
|
-
*
|
|
6893
|
-
* const {google} = require('googleapis');
|
|
6894
|
-
* const sqladmin = google.sqladmin('v1');
|
|
6895
|
-
*
|
|
6896
|
-
* async function main() {
|
|
6897
|
-
* const auth = new google.auth.GoogleAuth({
|
|
6898
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
6899
|
-
* scopes: [
|
|
6900
|
-
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
6901
|
-
* 'https://www.googleapis.com/auth/sqlservice.admin',
|
|
6902
|
-
* ],
|
|
6903
|
-
* });
|
|
6904
|
-
*
|
|
6905
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
6906
|
-
* const authClient = await auth.getClient();
|
|
6907
|
-
* google.options({auth: authClient});
|
|
6908
|
-
*
|
|
6909
|
-
* // Do the magic
|
|
6910
|
-
* const res = await sql.users.delete({
|
|
6911
|
-
* // Host of the user in the instance.
|
|
6912
|
-
* host: 'placeholder-value',
|
|
6913
|
-
* // Database instance ID. This does not include the project ID.
|
|
6914
|
-
* instance: 'placeholder-value',
|
|
6915
|
-
* // Name of the user in the instance.
|
|
6916
|
-
* name: 'placeholder-value',
|
|
6917
|
-
* // Project ID of the project that contains the instance.
|
|
6918
|
-
* project: 'placeholder-value',
|
|
6919
|
-
* });
|
|
6920
|
-
* console.log(res.data);
|
|
6921
|
-
*
|
|
6922
|
-
* // Example response
|
|
6923
|
-
* // {
|
|
6924
|
-
* // "backupContext": {},
|
|
6925
|
-
* // "endTime": "my_endTime",
|
|
6926
|
-
* // "error": {},
|
|
6927
|
-
* // "exportContext": {},
|
|
6928
|
-
* // "importContext": {},
|
|
6929
|
-
* // "insertTime": "my_insertTime",
|
|
6930
|
-
* // "kind": "my_kind",
|
|
6931
|
-
* // "name": "my_name",
|
|
6932
|
-
* // "operationType": "my_operationType",
|
|
6933
|
-
* // "selfLink": "my_selfLink",
|
|
6934
|
-
* // "startTime": "my_startTime",
|
|
6935
|
-
* // "status": "my_status",
|
|
6936
|
-
* // "targetId": "my_targetId",
|
|
6937
|
-
* // "targetLink": "my_targetLink",
|
|
6938
|
-
* // "targetProject": "my_targetProject",
|
|
6939
|
-
* // "user": "my_user"
|
|
6940
|
-
* // }
|
|
6941
|
-
* }
|
|
6942
|
-
*
|
|
6943
|
-
* main().catch(e => {
|
|
6944
|
-
* console.error(e);
|
|
6945
|
-
* throw e;
|
|
6946
|
-
* });
|
|
6947
|
-
*
|
|
6948
|
-
* ```
|
|
6949
3589
|
*
|
|
6950
3590
|
* @param params - Parameters for request
|
|
6951
3591
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -6960,67 +3600,6 @@ export declare namespace sqladmin_v1 {
|
|
|
6960
3600
|
delete(callback: BodyResponseCallback<Schema$Operation>): void;
|
|
6961
3601
|
/**
|
|
6962
3602
|
* Retrieves a resource containing information about a user.
|
|
6963
|
-
* @example
|
|
6964
|
-
* ```js
|
|
6965
|
-
* // Before running the sample:
|
|
6966
|
-
* // - Enable the API at:
|
|
6967
|
-
* // https://console.developers.google.com/apis/api/sqladmin.googleapis.com
|
|
6968
|
-
* // - Login into gcloud by running:
|
|
6969
|
-
* // `$ gcloud auth application-default login`
|
|
6970
|
-
* // - Install the npm module by running:
|
|
6971
|
-
* // `$ npm install googleapis`
|
|
6972
|
-
*
|
|
6973
|
-
* const {google} = require('googleapis');
|
|
6974
|
-
* const sqladmin = google.sqladmin('v1');
|
|
6975
|
-
*
|
|
6976
|
-
* async function main() {
|
|
6977
|
-
* const auth = new google.auth.GoogleAuth({
|
|
6978
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
6979
|
-
* scopes: [
|
|
6980
|
-
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
6981
|
-
* 'https://www.googleapis.com/auth/sqlservice.admin',
|
|
6982
|
-
* ],
|
|
6983
|
-
* });
|
|
6984
|
-
*
|
|
6985
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
6986
|
-
* const authClient = await auth.getClient();
|
|
6987
|
-
* google.options({auth: authClient});
|
|
6988
|
-
*
|
|
6989
|
-
* // Do the magic
|
|
6990
|
-
* const res = await sql.users.get({
|
|
6991
|
-
* // Host of a user of the instance.
|
|
6992
|
-
* host: 'placeholder-value',
|
|
6993
|
-
* // Database instance ID. This does not include the project ID.
|
|
6994
|
-
* instance: 'placeholder-value',
|
|
6995
|
-
* // User of the instance.
|
|
6996
|
-
* name: 'placeholder-value',
|
|
6997
|
-
* // Project ID of the project that contains the instance.
|
|
6998
|
-
* project: 'placeholder-value',
|
|
6999
|
-
* });
|
|
7000
|
-
* console.log(res.data);
|
|
7001
|
-
*
|
|
7002
|
-
* // Example response
|
|
7003
|
-
* // {
|
|
7004
|
-
* // "dualPasswordType": "my_dualPasswordType",
|
|
7005
|
-
* // "etag": "my_etag",
|
|
7006
|
-
* // "host": "my_host",
|
|
7007
|
-
* // "instance": "my_instance",
|
|
7008
|
-
* // "kind": "my_kind",
|
|
7009
|
-
* // "name": "my_name",
|
|
7010
|
-
* // "password": "my_password",
|
|
7011
|
-
* // "passwordPolicy": {},
|
|
7012
|
-
* // "project": "my_project",
|
|
7013
|
-
* // "sqlserverUserDetails": {},
|
|
7014
|
-
* // "type": "my_type"
|
|
7015
|
-
* // }
|
|
7016
|
-
* }
|
|
7017
|
-
*
|
|
7018
|
-
* main().catch(e => {
|
|
7019
|
-
* console.error(e);
|
|
7020
|
-
* throw e;
|
|
7021
|
-
* });
|
|
7022
|
-
*
|
|
7023
|
-
* ```
|
|
7024
3603
|
*
|
|
7025
3604
|
* @param params - Parameters for request
|
|
7026
3605
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -7035,86 +3614,6 @@ export declare namespace sqladmin_v1 {
|
|
|
7035
3614
|
get(callback: BodyResponseCallback<Schema$User>): void;
|
|
7036
3615
|
/**
|
|
7037
3616
|
* Creates a new user in a Cloud SQL instance.
|
|
7038
|
-
* @example
|
|
7039
|
-
* ```js
|
|
7040
|
-
* // Before running the sample:
|
|
7041
|
-
* // - Enable the API at:
|
|
7042
|
-
* // https://console.developers.google.com/apis/api/sqladmin.googleapis.com
|
|
7043
|
-
* // - Login into gcloud by running:
|
|
7044
|
-
* // `$ gcloud auth application-default login`
|
|
7045
|
-
* // - Install the npm module by running:
|
|
7046
|
-
* // `$ npm install googleapis`
|
|
7047
|
-
*
|
|
7048
|
-
* const {google} = require('googleapis');
|
|
7049
|
-
* const sqladmin = google.sqladmin('v1');
|
|
7050
|
-
*
|
|
7051
|
-
* async function main() {
|
|
7052
|
-
* const auth = new google.auth.GoogleAuth({
|
|
7053
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
7054
|
-
* scopes: [
|
|
7055
|
-
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
7056
|
-
* 'https://www.googleapis.com/auth/sqlservice.admin',
|
|
7057
|
-
* ],
|
|
7058
|
-
* });
|
|
7059
|
-
*
|
|
7060
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
7061
|
-
* const authClient = await auth.getClient();
|
|
7062
|
-
* google.options({auth: authClient});
|
|
7063
|
-
*
|
|
7064
|
-
* // Do the magic
|
|
7065
|
-
* const res = await sql.users.insert({
|
|
7066
|
-
* // Database instance ID. This does not include the project ID.
|
|
7067
|
-
* instance: 'placeholder-value',
|
|
7068
|
-
* // Project ID of the project that contains the instance.
|
|
7069
|
-
* project: 'placeholder-value',
|
|
7070
|
-
*
|
|
7071
|
-
* // Request body metadata
|
|
7072
|
-
* requestBody: {
|
|
7073
|
-
* // request body parameters
|
|
7074
|
-
* // {
|
|
7075
|
-
* // "dualPasswordType": "my_dualPasswordType",
|
|
7076
|
-
* // "etag": "my_etag",
|
|
7077
|
-
* // "host": "my_host",
|
|
7078
|
-
* // "instance": "my_instance",
|
|
7079
|
-
* // "kind": "my_kind",
|
|
7080
|
-
* // "name": "my_name",
|
|
7081
|
-
* // "password": "my_password",
|
|
7082
|
-
* // "passwordPolicy": {},
|
|
7083
|
-
* // "project": "my_project",
|
|
7084
|
-
* // "sqlserverUserDetails": {},
|
|
7085
|
-
* // "type": "my_type"
|
|
7086
|
-
* // }
|
|
7087
|
-
* },
|
|
7088
|
-
* });
|
|
7089
|
-
* console.log(res.data);
|
|
7090
|
-
*
|
|
7091
|
-
* // Example response
|
|
7092
|
-
* // {
|
|
7093
|
-
* // "backupContext": {},
|
|
7094
|
-
* // "endTime": "my_endTime",
|
|
7095
|
-
* // "error": {},
|
|
7096
|
-
* // "exportContext": {},
|
|
7097
|
-
* // "importContext": {},
|
|
7098
|
-
* // "insertTime": "my_insertTime",
|
|
7099
|
-
* // "kind": "my_kind",
|
|
7100
|
-
* // "name": "my_name",
|
|
7101
|
-
* // "operationType": "my_operationType",
|
|
7102
|
-
* // "selfLink": "my_selfLink",
|
|
7103
|
-
* // "startTime": "my_startTime",
|
|
7104
|
-
* // "status": "my_status",
|
|
7105
|
-
* // "targetId": "my_targetId",
|
|
7106
|
-
* // "targetLink": "my_targetLink",
|
|
7107
|
-
* // "targetProject": "my_targetProject",
|
|
7108
|
-
* // "user": "my_user"
|
|
7109
|
-
* // }
|
|
7110
|
-
* }
|
|
7111
|
-
*
|
|
7112
|
-
* main().catch(e => {
|
|
7113
|
-
* console.error(e);
|
|
7114
|
-
* throw e;
|
|
7115
|
-
* });
|
|
7116
|
-
*
|
|
7117
|
-
* ```
|
|
7118
3617
|
*
|
|
7119
3618
|
* @param params - Parameters for request
|
|
7120
3619
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -7129,55 +3628,6 @@ export declare namespace sqladmin_v1 {
|
|
|
7129
3628
|
insert(callback: BodyResponseCallback<Schema$Operation>): void;
|
|
7130
3629
|
/**
|
|
7131
3630
|
* Lists users in the specified Cloud SQL instance.
|
|
7132
|
-
* @example
|
|
7133
|
-
* ```js
|
|
7134
|
-
* // Before running the sample:
|
|
7135
|
-
* // - Enable the API at:
|
|
7136
|
-
* // https://console.developers.google.com/apis/api/sqladmin.googleapis.com
|
|
7137
|
-
* // - Login into gcloud by running:
|
|
7138
|
-
* // `$ gcloud auth application-default login`
|
|
7139
|
-
* // - Install the npm module by running:
|
|
7140
|
-
* // `$ npm install googleapis`
|
|
7141
|
-
*
|
|
7142
|
-
* const {google} = require('googleapis');
|
|
7143
|
-
* const sqladmin = google.sqladmin('v1');
|
|
7144
|
-
*
|
|
7145
|
-
* async function main() {
|
|
7146
|
-
* const auth = new google.auth.GoogleAuth({
|
|
7147
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
7148
|
-
* scopes: [
|
|
7149
|
-
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
7150
|
-
* 'https://www.googleapis.com/auth/sqlservice.admin',
|
|
7151
|
-
* ],
|
|
7152
|
-
* });
|
|
7153
|
-
*
|
|
7154
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
7155
|
-
* const authClient = await auth.getClient();
|
|
7156
|
-
* google.options({auth: authClient});
|
|
7157
|
-
*
|
|
7158
|
-
* // Do the magic
|
|
7159
|
-
* const res = await sql.users.list({
|
|
7160
|
-
* // Database instance ID. This does not include the project ID.
|
|
7161
|
-
* instance: 'placeholder-value',
|
|
7162
|
-
* // Project ID of the project that contains the instance.
|
|
7163
|
-
* project: 'placeholder-value',
|
|
7164
|
-
* });
|
|
7165
|
-
* console.log(res.data);
|
|
7166
|
-
*
|
|
7167
|
-
* // Example response
|
|
7168
|
-
* // {
|
|
7169
|
-
* // "items": [],
|
|
7170
|
-
* // "kind": "my_kind",
|
|
7171
|
-
* // "nextPageToken": "my_nextPageToken"
|
|
7172
|
-
* // }
|
|
7173
|
-
* }
|
|
7174
|
-
*
|
|
7175
|
-
* main().catch(e => {
|
|
7176
|
-
* console.error(e);
|
|
7177
|
-
* throw e;
|
|
7178
|
-
* });
|
|
7179
|
-
*
|
|
7180
|
-
* ```
|
|
7181
3631
|
*
|
|
7182
3632
|
* @param params - Parameters for request
|
|
7183
3633
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -7192,90 +3642,6 @@ export declare namespace sqladmin_v1 {
|
|
|
7192
3642
|
list(callback: BodyResponseCallback<Schema$UsersListResponse>): void;
|
|
7193
3643
|
/**
|
|
7194
3644
|
* Updates an existing user in a Cloud SQL instance.
|
|
7195
|
-
* @example
|
|
7196
|
-
* ```js
|
|
7197
|
-
* // Before running the sample:
|
|
7198
|
-
* // - Enable the API at:
|
|
7199
|
-
* // https://console.developers.google.com/apis/api/sqladmin.googleapis.com
|
|
7200
|
-
* // - Login into gcloud by running:
|
|
7201
|
-
* // `$ gcloud auth application-default login`
|
|
7202
|
-
* // - Install the npm module by running:
|
|
7203
|
-
* // `$ npm install googleapis`
|
|
7204
|
-
*
|
|
7205
|
-
* const {google} = require('googleapis');
|
|
7206
|
-
* const sqladmin = google.sqladmin('v1');
|
|
7207
|
-
*
|
|
7208
|
-
* async function main() {
|
|
7209
|
-
* const auth = new google.auth.GoogleAuth({
|
|
7210
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
7211
|
-
* scopes: [
|
|
7212
|
-
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
7213
|
-
* 'https://www.googleapis.com/auth/sqlservice.admin',
|
|
7214
|
-
* ],
|
|
7215
|
-
* });
|
|
7216
|
-
*
|
|
7217
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
7218
|
-
* const authClient = await auth.getClient();
|
|
7219
|
-
* google.options({auth: authClient});
|
|
7220
|
-
*
|
|
7221
|
-
* // Do the magic
|
|
7222
|
-
* const res = await sql.users.update({
|
|
7223
|
-
* // Optional. Host of the user in the instance.
|
|
7224
|
-
* host: 'placeholder-value',
|
|
7225
|
-
* // Database instance ID. This does not include the project ID.
|
|
7226
|
-
* instance: 'placeholder-value',
|
|
7227
|
-
* // Name of the user in the instance.
|
|
7228
|
-
* name: 'placeholder-value',
|
|
7229
|
-
* // Project ID of the project that contains the instance.
|
|
7230
|
-
* project: 'placeholder-value',
|
|
7231
|
-
*
|
|
7232
|
-
* // Request body metadata
|
|
7233
|
-
* requestBody: {
|
|
7234
|
-
* // request body parameters
|
|
7235
|
-
* // {
|
|
7236
|
-
* // "dualPasswordType": "my_dualPasswordType",
|
|
7237
|
-
* // "etag": "my_etag",
|
|
7238
|
-
* // "host": "my_host",
|
|
7239
|
-
* // "instance": "my_instance",
|
|
7240
|
-
* // "kind": "my_kind",
|
|
7241
|
-
* // "name": "my_name",
|
|
7242
|
-
* // "password": "my_password",
|
|
7243
|
-
* // "passwordPolicy": {},
|
|
7244
|
-
* // "project": "my_project",
|
|
7245
|
-
* // "sqlserverUserDetails": {},
|
|
7246
|
-
* // "type": "my_type"
|
|
7247
|
-
* // }
|
|
7248
|
-
* },
|
|
7249
|
-
* });
|
|
7250
|
-
* console.log(res.data);
|
|
7251
|
-
*
|
|
7252
|
-
* // Example response
|
|
7253
|
-
* // {
|
|
7254
|
-
* // "backupContext": {},
|
|
7255
|
-
* // "endTime": "my_endTime",
|
|
7256
|
-
* // "error": {},
|
|
7257
|
-
* // "exportContext": {},
|
|
7258
|
-
* // "importContext": {},
|
|
7259
|
-
* // "insertTime": "my_insertTime",
|
|
7260
|
-
* // "kind": "my_kind",
|
|
7261
|
-
* // "name": "my_name",
|
|
7262
|
-
* // "operationType": "my_operationType",
|
|
7263
|
-
* // "selfLink": "my_selfLink",
|
|
7264
|
-
* // "startTime": "my_startTime",
|
|
7265
|
-
* // "status": "my_status",
|
|
7266
|
-
* // "targetId": "my_targetId",
|
|
7267
|
-
* // "targetLink": "my_targetLink",
|
|
7268
|
-
* // "targetProject": "my_targetProject",
|
|
7269
|
-
* // "user": "my_user"
|
|
7270
|
-
* // }
|
|
7271
|
-
* }
|
|
7272
|
-
*
|
|
7273
|
-
* main().catch(e => {
|
|
7274
|
-
* console.error(e);
|
|
7275
|
-
* throw e;
|
|
7276
|
-
* });
|
|
7277
|
-
*
|
|
7278
|
-
* ```
|
|
7279
3645
|
*
|
|
7280
3646
|
* @param params - Parameters for request
|
|
7281
3647
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|