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