@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/v1.ts CHANGED
@@ -437,6 +437,10 @@ export namespace sqladmin_v1 {
437
437
  * This is always `sql#connectSettings`.
438
438
  */
439
439
  kind?: string | null;
440
+ /**
441
+ * Whether PSC connectivity is enabled for this instance.
442
+ */
443
+ pscEnabled?: boolean | null;
440
444
  /**
441
445
  * The cloud region for the instance. For example, `us-central1`, `europe-west1`. The region cannot be changed after instance creation.
442
446
  */
@@ -537,6 +541,10 @@ export namespace sqladmin_v1 {
537
541
  * Disk encryption status specific to an instance.
538
542
  */
539
543
  diskEncryptionStatus?: Schema$DiskEncryptionStatus;
544
+ /**
545
+ * Output only. The dns name of the instance.
546
+ */
547
+ dnsName?: string | null;
540
548
  /**
541
549
  * This field is deprecated and will be removed from a future version of the API. Use the `settings.settingsVersion` field instead.
542
550
  */
@@ -593,6 +601,10 @@ export namespace sqladmin_v1 {
593
601
  * The project ID of the project containing the Cloud SQL instance. The Google apps domain is prefixed if applicable.
594
602
  */
595
603
  project?: string | null;
604
+ /**
605
+ * Output only. The link to service attachment of PSC instance.
606
+ */
607
+ pscServiceAttachmentLink?: string | null;
596
608
  /**
597
609
  * 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.
598
610
  */
@@ -952,6 +964,8 @@ export namespace sqladmin_v1 {
952
964
  };
953
965
  noRecovery?: boolean;
954
966
  recoveryOnly?: boolean;
967
+ stopAt?: string;
968
+ stopAtMark?: string;
955
969
  striped?: boolean;
956
970
  } | null;
957
971
  /**
@@ -1168,6 +1182,10 @@ export namespace sqladmin_v1 {
1168
1182
  * 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.
1169
1183
  */
1170
1184
  privateNetwork?: string | null;
1185
+ /**
1186
+ * PSC settings for this instance.
1187
+ */
1188
+ pscConfig?: Schema$PscConfig;
1171
1189
  /**
1172
1190
  * Whether SSL connections over IP are enforced or not.
1173
1191
  */
@@ -1528,6 +1546,19 @@ export namespace sqladmin_v1 {
1528
1546
  */
1529
1547
  targetSizeGb?: string | null;
1530
1548
  }
1549
+ /**
1550
+ * PSC settings for a Cloud SQL instance.
1551
+ */
1552
+ export interface Schema$PscConfig {
1553
+ /**
1554
+ * 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).
1555
+ */
1556
+ allowedConsumerProjects?: string[] | null;
1557
+ /**
1558
+ * Whether PSC connectivity is enabled for this instance.
1559
+ */
1560
+ pscEnabled?: boolean | null;
1561
+ }
1531
1562
  /**
1532
1563
  * Read-replica configuration for connecting to the primary instance.
1533
1564
  */
@@ -2203,70 +2234,6 @@ export namespace sqladmin_v1 {
2203
2234
 
2204
2235
  /**
2205
2236
  * Deletes the backup taken by a backup run.
2206
- * @example
2207
- * ```js
2208
- * // Before running the sample:
2209
- * // - Enable the API at:
2210
- * // https://console.developers.google.com/apis/api/sqladmin.googleapis.com
2211
- * // - Login into gcloud by running:
2212
- * // `$ gcloud auth application-default login`
2213
- * // - Install the npm module by running:
2214
- * // `$ npm install googleapis`
2215
- *
2216
- * const {google} = require('googleapis');
2217
- * const sqladmin = google.sqladmin('v1');
2218
- *
2219
- * async function main() {
2220
- * const auth = new google.auth.GoogleAuth({
2221
- * // Scopes can be specified either as an array or as a single, space-delimited string.
2222
- * scopes: [
2223
- * 'https://www.googleapis.com/auth/cloud-platform',
2224
- * 'https://www.googleapis.com/auth/sqlservice.admin',
2225
- * ],
2226
- * });
2227
- *
2228
- * // Acquire an auth client, and bind it to all future calls
2229
- * const authClient = await auth.getClient();
2230
- * google.options({auth: authClient});
2231
- *
2232
- * // Do the magic
2233
- * const res = await sql.backupRuns.delete({
2234
- * // The ID of the backup run to delete. To find a backup run ID, use the [list](https://cloud.google.com/sql/docs/mysql/admin-api/rest/v1/backupRuns/list) method.
2235
- * id: 'placeholder-value',
2236
- * // Cloud SQL instance ID. This does not include the project ID.
2237
- * instance: 'placeholder-value',
2238
- * // Project ID of the project that contains the instance.
2239
- * project: 'placeholder-value',
2240
- * });
2241
- * console.log(res.data);
2242
- *
2243
- * // Example response
2244
- * // {
2245
- * // "backupContext": {},
2246
- * // "endTime": "my_endTime",
2247
- * // "error": {},
2248
- * // "exportContext": {},
2249
- * // "importContext": {},
2250
- * // "insertTime": "my_insertTime",
2251
- * // "kind": "my_kind",
2252
- * // "name": "my_name",
2253
- * // "operationType": "my_operationType",
2254
- * // "selfLink": "my_selfLink",
2255
- * // "startTime": "my_startTime",
2256
- * // "status": "my_status",
2257
- * // "targetId": "my_targetId",
2258
- * // "targetLink": "my_targetLink",
2259
- * // "targetProject": "my_targetProject",
2260
- * // "user": "my_user"
2261
- * // }
2262
- * }
2263
- *
2264
- * main().catch(e => {
2265
- * console.error(e);
2266
- * throw e;
2267
- * });
2268
- *
2269
- * ```
2270
2237
  *
2271
2238
  * @param params - Parameters for request
2272
2239
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -2354,71 +2321,6 @@ export namespace sqladmin_v1 {
2354
2321
 
2355
2322
  /**
2356
2323
  * Retrieves a resource containing information about a backup run.
2357
- * @example
2358
- * ```js
2359
- * // Before running the sample:
2360
- * // - Enable the API at:
2361
- * // https://console.developers.google.com/apis/api/sqladmin.googleapis.com
2362
- * // - Login into gcloud by running:
2363
- * // `$ gcloud auth application-default login`
2364
- * // - Install the npm module by running:
2365
- * // `$ npm install googleapis`
2366
- *
2367
- * const {google} = require('googleapis');
2368
- * const sqladmin = google.sqladmin('v1');
2369
- *
2370
- * async function main() {
2371
- * const auth = new google.auth.GoogleAuth({
2372
- * // Scopes can be specified either as an array or as a single, space-delimited string.
2373
- * scopes: [
2374
- * 'https://www.googleapis.com/auth/cloud-platform',
2375
- * 'https://www.googleapis.com/auth/sqlservice.admin',
2376
- * ],
2377
- * });
2378
- *
2379
- * // Acquire an auth client, and bind it to all future calls
2380
- * const authClient = await auth.getClient();
2381
- * google.options({auth: authClient});
2382
- *
2383
- * // Do the magic
2384
- * const res = await sql.backupRuns.get({
2385
- * // The ID of this backup run.
2386
- * id: 'placeholder-value',
2387
- * // Cloud SQL instance ID. This does not include the project ID.
2388
- * instance: 'placeholder-value',
2389
- * // Project ID of the project that contains the instance.
2390
- * project: 'placeholder-value',
2391
- * });
2392
- * console.log(res.data);
2393
- *
2394
- * // Example response
2395
- * // {
2396
- * // "backupKind": "my_backupKind",
2397
- * // "description": "my_description",
2398
- * // "diskEncryptionConfiguration": {},
2399
- * // "diskEncryptionStatus": {},
2400
- * // "endTime": "my_endTime",
2401
- * // "enqueuedTime": "my_enqueuedTime",
2402
- * // "error": {},
2403
- * // "id": "my_id",
2404
- * // "instance": "my_instance",
2405
- * // "kind": "my_kind",
2406
- * // "location": "my_location",
2407
- * // "selfLink": "my_selfLink",
2408
- * // "startTime": "my_startTime",
2409
- * // "status": "my_status",
2410
- * // "timeZone": "my_timeZone",
2411
- * // "type": "my_type",
2412
- * // "windowStartTime": "my_windowStartTime"
2413
- * // }
2414
- * }
2415
- *
2416
- * main().catch(e => {
2417
- * console.error(e);
2418
- * throw e;
2419
- * });
2420
- *
2421
- * ```
2422
2324
  *
2423
2325
  * @param params - Parameters for request
2424
2326
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -2505,92 +2407,6 @@ export namespace sqladmin_v1 {
2505
2407
 
2506
2408
  /**
2507
2409
  * Creates a new backup run on demand.
2508
- * @example
2509
- * ```js
2510
- * // Before running the sample:
2511
- * // - Enable the API at:
2512
- * // https://console.developers.google.com/apis/api/sqladmin.googleapis.com
2513
- * // - Login into gcloud by running:
2514
- * // `$ gcloud auth application-default login`
2515
- * // - Install the npm module by running:
2516
- * // `$ npm install googleapis`
2517
- *
2518
- * const {google} = require('googleapis');
2519
- * const sqladmin = google.sqladmin('v1');
2520
- *
2521
- * async function main() {
2522
- * const auth = new google.auth.GoogleAuth({
2523
- * // Scopes can be specified either as an array or as a single, space-delimited string.
2524
- * scopes: [
2525
- * 'https://www.googleapis.com/auth/cloud-platform',
2526
- * 'https://www.googleapis.com/auth/sqlservice.admin',
2527
- * ],
2528
- * });
2529
- *
2530
- * // Acquire an auth client, and bind it to all future calls
2531
- * const authClient = await auth.getClient();
2532
- * google.options({auth: authClient});
2533
- *
2534
- * // Do the magic
2535
- * const res = await sql.backupRuns.insert({
2536
- * // Cloud SQL instance ID. This does not include the project ID.
2537
- * instance: 'placeholder-value',
2538
- * // Project ID of the project that contains the instance.
2539
- * project: 'placeholder-value',
2540
- *
2541
- * // Request body metadata
2542
- * requestBody: {
2543
- * // request body parameters
2544
- * // {
2545
- * // "backupKind": "my_backupKind",
2546
- * // "description": "my_description",
2547
- * // "diskEncryptionConfiguration": {},
2548
- * // "diskEncryptionStatus": {},
2549
- * // "endTime": "my_endTime",
2550
- * // "enqueuedTime": "my_enqueuedTime",
2551
- * // "error": {},
2552
- * // "id": "my_id",
2553
- * // "instance": "my_instance",
2554
- * // "kind": "my_kind",
2555
- * // "location": "my_location",
2556
- * // "selfLink": "my_selfLink",
2557
- * // "startTime": "my_startTime",
2558
- * // "status": "my_status",
2559
- * // "timeZone": "my_timeZone",
2560
- * // "type": "my_type",
2561
- * // "windowStartTime": "my_windowStartTime"
2562
- * // }
2563
- * },
2564
- * });
2565
- * console.log(res.data);
2566
- *
2567
- * // Example response
2568
- * // {
2569
- * // "backupContext": {},
2570
- * // "endTime": "my_endTime",
2571
- * // "error": {},
2572
- * // "exportContext": {},
2573
- * // "importContext": {},
2574
- * // "insertTime": "my_insertTime",
2575
- * // "kind": "my_kind",
2576
- * // "name": "my_name",
2577
- * // "operationType": "my_operationType",
2578
- * // "selfLink": "my_selfLink",
2579
- * // "startTime": "my_startTime",
2580
- * // "status": "my_status",
2581
- * // "targetId": "my_targetId",
2582
- * // "targetLink": "my_targetLink",
2583
- * // "targetProject": "my_targetProject",
2584
- * // "user": "my_user"
2585
- * // }
2586
- * }
2587
- *
2588
- * main().catch(e => {
2589
- * console.error(e);
2590
- * throw e;
2591
- * });
2592
- *
2593
- * ```
2594
2410
  *
2595
2411
  * @param params - Parameters for request
2596
2412
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -2677,59 +2493,6 @@ export namespace sqladmin_v1 {
2677
2493
 
2678
2494
  /**
2679
2495
  * Lists all backup runs associated with the project or a given instance and configuration in the reverse chronological order of the backup initiation time.
2680
- * @example
2681
- * ```js
2682
- * // Before running the sample:
2683
- * // - Enable the API at:
2684
- * // https://console.developers.google.com/apis/api/sqladmin.googleapis.com
2685
- * // - Login into gcloud by running:
2686
- * // `$ gcloud auth application-default login`
2687
- * // - Install the npm module by running:
2688
- * // `$ npm install googleapis`
2689
- *
2690
- * const {google} = require('googleapis');
2691
- * const sqladmin = google.sqladmin('v1');
2692
- *
2693
- * async function main() {
2694
- * const auth = new google.auth.GoogleAuth({
2695
- * // Scopes can be specified either as an array or as a single, space-delimited string.
2696
- * scopes: [
2697
- * 'https://www.googleapis.com/auth/cloud-platform',
2698
- * 'https://www.googleapis.com/auth/sqlservice.admin',
2699
- * ],
2700
- * });
2701
- *
2702
- * // Acquire an auth client, and bind it to all future calls
2703
- * const authClient = await auth.getClient();
2704
- * google.options({auth: authClient});
2705
- *
2706
- * // Do the magic
2707
- * const res = await sql.backupRuns.list({
2708
- * // Cloud SQL instance ID, or "-" for all instances. This does not include the project ID.
2709
- * instance: 'placeholder-value',
2710
- * // Maximum number of backup runs per response.
2711
- * maxResults: 'placeholder-value',
2712
- * // A previously-returned page token representing part of the larger set of results to view.
2713
- * pageToken: 'placeholder-value',
2714
- * // Project ID of the project that contains the instance.
2715
- * project: 'placeholder-value',
2716
- * });
2717
- * console.log(res.data);
2718
- *
2719
- * // Example response
2720
- * // {
2721
- * // "items": [],
2722
- * // "kind": "my_kind",
2723
- * // "nextPageToken": "my_nextPageToken"
2724
- * // }
2725
- * }
2726
- *
2727
- * main().catch(e => {
2728
- * console.error(e);
2729
- * throw e;
2730
- * });
2731
- *
2732
- * ```
2733
2496
  *
2734
2497
  * @param params - Parameters for request
2735
2498
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -2891,64 +2654,6 @@ export namespace sqladmin_v1 {
2891
2654
 
2892
2655
  /**
2893
2656
  * 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.
2894
- * @example
2895
- * ```js
2896
- * // Before running the sample:
2897
- * // - Enable the API at:
2898
- * // https://console.developers.google.com/apis/api/sqladmin.googleapis.com
2899
- * // - Login into gcloud by running:
2900
- * // `$ gcloud auth application-default login`
2901
- * // - Install the npm module by running:
2902
- * // `$ npm install googleapis`
2903
- *
2904
- * const {google} = require('googleapis');
2905
- * const sqladmin = google.sqladmin('v1');
2906
- *
2907
- * async function main() {
2908
- * const auth = new google.auth.GoogleAuth({
2909
- * // Scopes can be specified either as an array or as a single, space-delimited string.
2910
- * scopes: [
2911
- * 'https://www.googleapis.com/auth/cloud-platform',
2912
- * 'https://www.googleapis.com/auth/sqlservice.admin',
2913
- * ],
2914
- * });
2915
- *
2916
- * // Acquire an auth client, and bind it to all future calls
2917
- * const authClient = await auth.getClient();
2918
- * google.options({auth: authClient});
2919
- *
2920
- * // Do the magic
2921
- * const res = await sql.connect.generateEphemeral({
2922
- * // Cloud SQL instance ID. This does not include the project ID.
2923
- * instance: 'placeholder-value',
2924
- * // Project ID of the project that contains the instance.
2925
- * project: 'placeholder-value',
2926
- *
2927
- * // Request body metadata
2928
- * requestBody: {
2929
- * // request body parameters
2930
- * // {
2931
- * // "access_token": "my_access_token",
2932
- * // "public_key": "my_public_key",
2933
- * // "readTime": "my_readTime",
2934
- * // "validDuration": "my_validDuration"
2935
- * // }
2936
- * },
2937
- * });
2938
- * console.log(res.data);
2939
- *
2940
- * // Example response
2941
- * // {
2942
- * // "ephemeralCert": {}
2943
- * // }
2944
- * }
2945
- *
2946
- * main().catch(e => {
2947
- * console.error(e);
2948
- * throw e;
2949
- * });
2950
- *
2951
- * ```
2952
2657
  *
2953
2658
  * @param params - Parameters for request
2954
2659
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -3045,61 +2750,6 @@ export namespace sqladmin_v1 {
3045
2750
 
3046
2751
  /**
3047
2752
  * Retrieves connect settings about a Cloud SQL instance.
3048
- * @example
3049
- * ```js
3050
- * // Before running the sample:
3051
- * // - Enable the API at:
3052
- * // https://console.developers.google.com/apis/api/sqladmin.googleapis.com
3053
- * // - Login into gcloud by running:
3054
- * // `$ gcloud auth application-default login`
3055
- * // - Install the npm module by running:
3056
- * // `$ npm install googleapis`
3057
- *
3058
- * const {google} = require('googleapis');
3059
- * const sqladmin = google.sqladmin('v1');
3060
- *
3061
- * async function main() {
3062
- * const auth = new google.auth.GoogleAuth({
3063
- * // Scopes can be specified either as an array or as a single, space-delimited string.
3064
- * scopes: [
3065
- * 'https://www.googleapis.com/auth/cloud-platform',
3066
- * 'https://www.googleapis.com/auth/sqlservice.admin',
3067
- * ],
3068
- * });
3069
- *
3070
- * // Acquire an auth client, and bind it to all future calls
3071
- * const authClient = await auth.getClient();
3072
- * google.options({auth: authClient});
3073
- *
3074
- * // Do the magic
3075
- * const res = await sql.connect.get({
3076
- * // Cloud SQL instance ID. This does not include the project ID.
3077
- * instance: 'placeholder-value',
3078
- * // Project ID of the project that contains the instance.
3079
- * project: 'placeholder-value',
3080
- * // Optional. Optional snapshot read timestamp to trade freshness for performance.
3081
- * readTime: 'placeholder-value',
3082
- * });
3083
- * console.log(res.data);
3084
- *
3085
- * // Example response
3086
- * // {
3087
- * // "backendType": "my_backendType",
3088
- * // "databaseVersion": "my_databaseVersion",
3089
- * // "dnsName": "my_dnsName",
3090
- * // "ipAddresses": [],
3091
- * // "kind": "my_kind",
3092
- * // "region": "my_region",
3093
- * // "serverCaCert": {}
3094
- * // }
3095
- * }
3096
- *
3097
- * main().catch(e => {
3098
- * console.error(e);
3099
- * throw e;
3100
- * });
3101
- *
3102
- * ```
3103
2753
  *
3104
2754
  * @param params - Parameters for request
3105
2755
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -3224,70 +2874,6 @@ export namespace sqladmin_v1 {
3224
2874
 
3225
2875
  /**
3226
2876
  * Deletes a database from a Cloud SQL instance.
3227
- * @example
3228
- * ```js
3229
- * // Before running the sample:
3230
- * // - Enable the API at:
3231
- * // https://console.developers.google.com/apis/api/sqladmin.googleapis.com
3232
- * // - Login into gcloud by running:
3233
- * // `$ gcloud auth application-default login`
3234
- * // - Install the npm module by running:
3235
- * // `$ npm install googleapis`
3236
- *
3237
- * const {google} = require('googleapis');
3238
- * const sqladmin = google.sqladmin('v1');
3239
- *
3240
- * async function main() {
3241
- * const auth = new google.auth.GoogleAuth({
3242
- * // Scopes can be specified either as an array or as a single, space-delimited string.
3243
- * scopes: [
3244
- * 'https://www.googleapis.com/auth/cloud-platform',
3245
- * 'https://www.googleapis.com/auth/sqlservice.admin',
3246
- * ],
3247
- * });
3248
- *
3249
- * // Acquire an auth client, and bind it to all future calls
3250
- * const authClient = await auth.getClient();
3251
- * google.options({auth: authClient});
3252
- *
3253
- * // Do the magic
3254
- * const res = await sql.databases.delete({
3255
- * // Name of the database to be deleted in the instance.
3256
- * database: 'placeholder-value',
3257
- * // Database instance ID. This does not include the project ID.
3258
- * instance: 'placeholder-value',
3259
- * // Project ID of the project that contains the instance.
3260
- * project: 'placeholder-value',
3261
- * });
3262
- * console.log(res.data);
3263
- *
3264
- * // Example response
3265
- * // {
3266
- * // "backupContext": {},
3267
- * // "endTime": "my_endTime",
3268
- * // "error": {},
3269
- * // "exportContext": {},
3270
- * // "importContext": {},
3271
- * // "insertTime": "my_insertTime",
3272
- * // "kind": "my_kind",
3273
- * // "name": "my_name",
3274
- * // "operationType": "my_operationType",
3275
- * // "selfLink": "my_selfLink",
3276
- * // "startTime": "my_startTime",
3277
- * // "status": "my_status",
3278
- * // "targetId": "my_targetId",
3279
- * // "targetLink": "my_targetLink",
3280
- * // "targetProject": "my_targetProject",
3281
- * // "user": "my_user"
3282
- * // }
3283
- * }
3284
- *
3285
- * main().catch(e => {
3286
- * console.error(e);
3287
- * throw e;
3288
- * });
3289
- *
3290
- * ```
3291
2877
  *
3292
2878
  * @param params - Parameters for request
3293
2879
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -3374,63 +2960,6 @@ export namespace sqladmin_v1 {
3374
2960
 
3375
2961
  /**
3376
2962
  * Retrieves a resource containing information about a database inside a Cloud SQL instance.
3377
- * @example
3378
- * ```js
3379
- * // Before running the sample:
3380
- * // - Enable the API at:
3381
- * // https://console.developers.google.com/apis/api/sqladmin.googleapis.com
3382
- * // - Login into gcloud by running:
3383
- * // `$ gcloud auth application-default login`
3384
- * // - Install the npm module by running:
3385
- * // `$ npm install googleapis`
3386
- *
3387
- * const {google} = require('googleapis');
3388
- * const sqladmin = google.sqladmin('v1');
3389
- *
3390
- * async function main() {
3391
- * const auth = new google.auth.GoogleAuth({
3392
- * // Scopes can be specified either as an array or as a single, space-delimited string.
3393
- * scopes: [
3394
- * 'https://www.googleapis.com/auth/cloud-platform',
3395
- * 'https://www.googleapis.com/auth/sqlservice.admin',
3396
- * ],
3397
- * });
3398
- *
3399
- * // Acquire an auth client, and bind it to all future calls
3400
- * const authClient = await auth.getClient();
3401
- * google.options({auth: authClient});
3402
- *
3403
- * // Do the magic
3404
- * const res = await sql.databases.get({
3405
- * // Name of the database in the instance.
3406
- * database: 'placeholder-value',
3407
- * // Database instance ID. This does not include the project ID.
3408
- * instance: 'placeholder-value',
3409
- * // Project ID of the project that contains the instance.
3410
- * project: 'placeholder-value',
3411
- * });
3412
- * console.log(res.data);
3413
- *
3414
- * // Example response
3415
- * // {
3416
- * // "charset": "my_charset",
3417
- * // "collation": "my_collation",
3418
- * // "etag": "my_etag",
3419
- * // "instance": "my_instance",
3420
- * // "kind": "my_kind",
3421
- * // "name": "my_name",
3422
- * // "project": "my_project",
3423
- * // "selfLink": "my_selfLink",
3424
- * // "sqlserverDatabaseDetails": {}
3425
- * // }
3426
- * }
3427
- *
3428
- * main().catch(e => {
3429
- * console.error(e);
3430
- * throw e;
3431
- * });
3432
- *
3433
- * ```
3434
2963
  *
3435
2964
  * @param params - Parameters for request
3436
2965
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -3517,84 +3046,6 @@ export namespace sqladmin_v1 {
3517
3046
 
3518
3047
  /**
3519
3048
  * Inserts a resource containing information about a database inside a Cloud SQL instance. **Note:** You can't modify the default character set and collation.
3520
- * @example
3521
- * ```js
3522
- * // Before running the sample:
3523
- * // - Enable the API at:
3524
- * // https://console.developers.google.com/apis/api/sqladmin.googleapis.com
3525
- * // - Login into gcloud by running:
3526
- * // `$ gcloud auth application-default login`
3527
- * // - Install the npm module by running:
3528
- * // `$ npm install googleapis`
3529
- *
3530
- * const {google} = require('googleapis');
3531
- * const sqladmin = google.sqladmin('v1');
3532
- *
3533
- * async function main() {
3534
- * const auth = new google.auth.GoogleAuth({
3535
- * // Scopes can be specified either as an array or as a single, space-delimited string.
3536
- * scopes: [
3537
- * 'https://www.googleapis.com/auth/cloud-platform',
3538
- * 'https://www.googleapis.com/auth/sqlservice.admin',
3539
- * ],
3540
- * });
3541
- *
3542
- * // Acquire an auth client, and bind it to all future calls
3543
- * const authClient = await auth.getClient();
3544
- * google.options({auth: authClient});
3545
- *
3546
- * // Do the magic
3547
- * const res = await sql.databases.insert({
3548
- * // Database instance ID. This does not include the project ID.
3549
- * instance: 'placeholder-value',
3550
- * // Project ID of the project that contains the instance.
3551
- * project: 'placeholder-value',
3552
- *
3553
- * // Request body metadata
3554
- * requestBody: {
3555
- * // request body parameters
3556
- * // {
3557
- * // "charset": "my_charset",
3558
- * // "collation": "my_collation",
3559
- * // "etag": "my_etag",
3560
- * // "instance": "my_instance",
3561
- * // "kind": "my_kind",
3562
- * // "name": "my_name",
3563
- * // "project": "my_project",
3564
- * // "selfLink": "my_selfLink",
3565
- * // "sqlserverDatabaseDetails": {}
3566
- * // }
3567
- * },
3568
- * });
3569
- * console.log(res.data);
3570
- *
3571
- * // Example response
3572
- * // {
3573
- * // "backupContext": {},
3574
- * // "endTime": "my_endTime",
3575
- * // "error": {},
3576
- * // "exportContext": {},
3577
- * // "importContext": {},
3578
- * // "insertTime": "my_insertTime",
3579
- * // "kind": "my_kind",
3580
- * // "name": "my_name",
3581
- * // "operationType": "my_operationType",
3582
- * // "selfLink": "my_selfLink",
3583
- * // "startTime": "my_startTime",
3584
- * // "status": "my_status",
3585
- * // "targetId": "my_targetId",
3586
- * // "targetLink": "my_targetLink",
3587
- * // "targetProject": "my_targetProject",
3588
- * // "user": "my_user"
3589
- * // }
3590
- * }
3591
- *
3592
- * main().catch(e => {
3593
- * console.error(e);
3594
- * throw e;
3595
- * });
3596
- *
3597
- * ```
3598
3049
  *
3599
3050
  * @param params - Parameters for request
3600
3051
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -3680,54 +3131,6 @@ export namespace sqladmin_v1 {
3680
3131
 
3681
3132
  /**
3682
3133
  * Lists databases in the specified Cloud SQL instance.
3683
- * @example
3684
- * ```js
3685
- * // Before running the sample:
3686
- * // - Enable the API at:
3687
- * // https://console.developers.google.com/apis/api/sqladmin.googleapis.com
3688
- * // - Login into gcloud by running:
3689
- * // `$ gcloud auth application-default login`
3690
- * // - Install the npm module by running:
3691
- * // `$ npm install googleapis`
3692
- *
3693
- * const {google} = require('googleapis');
3694
- * const sqladmin = google.sqladmin('v1');
3695
- *
3696
- * async function main() {
3697
- * const auth = new google.auth.GoogleAuth({
3698
- * // Scopes can be specified either as an array or as a single, space-delimited string.
3699
- * scopes: [
3700
- * 'https://www.googleapis.com/auth/cloud-platform',
3701
- * 'https://www.googleapis.com/auth/sqlservice.admin',
3702
- * ],
3703
- * });
3704
- *
3705
- * // Acquire an auth client, and bind it to all future calls
3706
- * const authClient = await auth.getClient();
3707
- * google.options({auth: authClient});
3708
- *
3709
- * // Do the magic
3710
- * const res = await sql.databases.list({
3711
- * // Cloud SQL instance ID. This does not include the project ID.
3712
- * instance: 'placeholder-value',
3713
- * // Project ID of the project that contains the instance.
3714
- * project: 'placeholder-value',
3715
- * });
3716
- * console.log(res.data);
3717
- *
3718
- * // Example response
3719
- * // {
3720
- * // "items": [],
3721
- * // "kind": "my_kind"
3722
- * // }
3723
- * }
3724
- *
3725
- * main().catch(e => {
3726
- * console.error(e);
3727
- * throw e;
3728
- * });
3729
- *
3730
- * ```
3731
3134
  *
3732
3135
  * @param params - Parameters for request
3733
3136
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -3818,86 +3221,6 @@ export namespace sqladmin_v1 {
3818
3221
 
3819
3222
  /**
3820
3223
  * Partially updates a resource containing information about a database inside a Cloud SQL instance. This method supports patch semantics.
3821
- * @example
3822
- * ```js
3823
- * // Before running the sample:
3824
- * // - Enable the API at:
3825
- * // https://console.developers.google.com/apis/api/sqladmin.googleapis.com
3826
- * // - Login into gcloud by running:
3827
- * // `$ gcloud auth application-default login`
3828
- * // - Install the npm module by running:
3829
- * // `$ npm install googleapis`
3830
- *
3831
- * const {google} = require('googleapis');
3832
- * const sqladmin = google.sqladmin('v1');
3833
- *
3834
- * async function main() {
3835
- * const auth = new google.auth.GoogleAuth({
3836
- * // Scopes can be specified either as an array or as a single, space-delimited string.
3837
- * scopes: [
3838
- * 'https://www.googleapis.com/auth/cloud-platform',
3839
- * 'https://www.googleapis.com/auth/sqlservice.admin',
3840
- * ],
3841
- * });
3842
- *
3843
- * // Acquire an auth client, and bind it to all future calls
3844
- * const authClient = await auth.getClient();
3845
- * google.options({auth: authClient});
3846
- *
3847
- * // Do the magic
3848
- * const res = await sql.databases.patch({
3849
- * // Name of the database to be updated in the instance.
3850
- * database: 'placeholder-value',
3851
- * // Database instance ID. This does not include the project ID.
3852
- * instance: 'placeholder-value',
3853
- * // Project ID of the project that contains the instance.
3854
- * project: 'placeholder-value',
3855
- *
3856
- * // Request body metadata
3857
- * requestBody: {
3858
- * // request body parameters
3859
- * // {
3860
- * // "charset": "my_charset",
3861
- * // "collation": "my_collation",
3862
- * // "etag": "my_etag",
3863
- * // "instance": "my_instance",
3864
- * // "kind": "my_kind",
3865
- * // "name": "my_name",
3866
- * // "project": "my_project",
3867
- * // "selfLink": "my_selfLink",
3868
- * // "sqlserverDatabaseDetails": {}
3869
- * // }
3870
- * },
3871
- * });
3872
- * console.log(res.data);
3873
- *
3874
- * // Example response
3875
- * // {
3876
- * // "backupContext": {},
3877
- * // "endTime": "my_endTime",
3878
- * // "error": {},
3879
- * // "exportContext": {},
3880
- * // "importContext": {},
3881
- * // "insertTime": "my_insertTime",
3882
- * // "kind": "my_kind",
3883
- * // "name": "my_name",
3884
- * // "operationType": "my_operationType",
3885
- * // "selfLink": "my_selfLink",
3886
- * // "startTime": "my_startTime",
3887
- * // "status": "my_status",
3888
- * // "targetId": "my_targetId",
3889
- * // "targetLink": "my_targetLink",
3890
- * // "targetProject": "my_targetProject",
3891
- * // "user": "my_user"
3892
- * // }
3893
- * }
3894
- *
3895
- * main().catch(e => {
3896
- * console.error(e);
3897
- * throw e;
3898
- * });
3899
- *
3900
- * ```
3901
3224
  *
3902
3225
  * @param params - Parameters for request
3903
3226
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -3984,86 +3307,6 @@ export namespace sqladmin_v1 {
3984
3307
 
3985
3308
  /**
3986
3309
  * Updates a resource containing information about a database inside a Cloud SQL instance.
3987
- * @example
3988
- * ```js
3989
- * // Before running the sample:
3990
- * // - Enable the API at:
3991
- * // https://console.developers.google.com/apis/api/sqladmin.googleapis.com
3992
- * // - Login into gcloud by running:
3993
- * // `$ gcloud auth application-default login`
3994
- * // - Install the npm module by running:
3995
- * // `$ npm install googleapis`
3996
- *
3997
- * const {google} = require('googleapis');
3998
- * const sqladmin = google.sqladmin('v1');
3999
- *
4000
- * async function main() {
4001
- * const auth = new google.auth.GoogleAuth({
4002
- * // Scopes can be specified either as an array or as a single, space-delimited string.
4003
- * scopes: [
4004
- * 'https://www.googleapis.com/auth/cloud-platform',
4005
- * 'https://www.googleapis.com/auth/sqlservice.admin',
4006
- * ],
4007
- * });
4008
- *
4009
- * // Acquire an auth client, and bind it to all future calls
4010
- * const authClient = await auth.getClient();
4011
- * google.options({auth: authClient});
4012
- *
4013
- * // Do the magic
4014
- * const res = await sql.databases.update({
4015
- * // Name of the database to be updated in the instance.
4016
- * database: 'placeholder-value',
4017
- * // Database instance ID. This does not include the project ID.
4018
- * instance: 'placeholder-value',
4019
- * // Project ID of the project that contains the instance.
4020
- * project: 'placeholder-value',
4021
- *
4022
- * // Request body metadata
4023
- * requestBody: {
4024
- * // request body parameters
4025
- * // {
4026
- * // "charset": "my_charset",
4027
- * // "collation": "my_collation",
4028
- * // "etag": "my_etag",
4029
- * // "instance": "my_instance",
4030
- * // "kind": "my_kind",
4031
- * // "name": "my_name",
4032
- * // "project": "my_project",
4033
- * // "selfLink": "my_selfLink",
4034
- * // "sqlserverDatabaseDetails": {}
4035
- * // }
4036
- * },
4037
- * });
4038
- * console.log(res.data);
4039
- *
4040
- * // Example response
4041
- * // {
4042
- * // "backupContext": {},
4043
- * // "endTime": "my_endTime",
4044
- * // "error": {},
4045
- * // "exportContext": {},
4046
- * // "importContext": {},
4047
- * // "insertTime": "my_insertTime",
4048
- * // "kind": "my_kind",
4049
- * // "name": "my_name",
4050
- * // "operationType": "my_operationType",
4051
- * // "selfLink": "my_selfLink",
4052
- * // "startTime": "my_startTime",
4053
- * // "status": "my_status",
4054
- * // "targetId": "my_targetId",
4055
- * // "targetLink": "my_targetLink",
4056
- * // "targetProject": "my_targetProject",
4057
- * // "user": "my_user"
4058
- * // }
4059
- * }
4060
- *
4061
- * main().catch(e => {
4062
- * console.error(e);
4063
- * throw e;
4064
- * });
4065
- *
4066
- * ```
4067
3310
  *
4068
3311
  * @param params - Parameters for request
4069
3312
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -4249,52 +3492,6 @@ export namespace sqladmin_v1 {
4249
3492
 
4250
3493
  /**
4251
3494
  * Lists all available database flags for Cloud SQL instances.
4252
- * @example
4253
- * ```js
4254
- * // Before running the sample:
4255
- * // - Enable the API at:
4256
- * // https://console.developers.google.com/apis/api/sqladmin.googleapis.com
4257
- * // - Login into gcloud by running:
4258
- * // `$ gcloud auth application-default login`
4259
- * // - Install the npm module by running:
4260
- * // `$ npm install googleapis`
4261
- *
4262
- * const {google} = require('googleapis');
4263
- * const sqladmin = google.sqladmin('v1');
4264
- *
4265
- * async function main() {
4266
- * const auth = new google.auth.GoogleAuth({
4267
- * // Scopes can be specified either as an array or as a single, space-delimited string.
4268
- * scopes: [
4269
- * 'https://www.googleapis.com/auth/cloud-platform',
4270
- * 'https://www.googleapis.com/auth/sqlservice.admin',
4271
- * ],
4272
- * });
4273
- *
4274
- * // Acquire an auth client, and bind it to all future calls
4275
- * const authClient = await auth.getClient();
4276
- * google.options({auth: authClient});
4277
- *
4278
- * // Do the magic
4279
- * const res = await sql.flags.list({
4280
- * // Database type and version you want to retrieve flags for. By default, this method returns flags for all database types and versions.
4281
- * databaseVersion: 'placeholder-value',
4282
- * });
4283
- * console.log(res.data);
4284
- *
4285
- * // Example response
4286
- * // {
4287
- * // "items": [],
4288
- * // "kind": "my_kind"
4289
- * // }
4290
- * }
4291
- *
4292
- * main().catch(e => {
4293
- * console.error(e);
4294
- * throw e;
4295
- * });
4296
- *
4297
- * ```
4298
3495
  *
4299
3496
  * @param params - Parameters for request
4300
3497
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -4395,68 +3592,6 @@ export namespace sqladmin_v1 {
4395
3592
 
4396
3593
  /**
4397
3594
  * Adds a new trusted Certificate Authority (CA) version for the specified instance. Required to prepare for a certificate rotation. If a CA version was previously added but never used in a certificate rotation, this operation replaces that version. There cannot be more than one CA version waiting to be rotated in.
4398
- * @example
4399
- * ```js
4400
- * // Before running the sample:
4401
- * // - Enable the API at:
4402
- * // https://console.developers.google.com/apis/api/sqladmin.googleapis.com
4403
- * // - Login into gcloud by running:
4404
- * // `$ gcloud auth application-default login`
4405
- * // - Install the npm module by running:
4406
- * // `$ npm install googleapis`
4407
- *
4408
- * const {google} = require('googleapis');
4409
- * const sqladmin = google.sqladmin('v1');
4410
- *
4411
- * async function main() {
4412
- * const auth = new google.auth.GoogleAuth({
4413
- * // Scopes can be specified either as an array or as a single, space-delimited string.
4414
- * scopes: [
4415
- * 'https://www.googleapis.com/auth/cloud-platform',
4416
- * 'https://www.googleapis.com/auth/sqlservice.admin',
4417
- * ],
4418
- * });
4419
- *
4420
- * // Acquire an auth client, and bind it to all future calls
4421
- * const authClient = await auth.getClient();
4422
- * google.options({auth: authClient});
4423
- *
4424
- * // Do the magic
4425
- * const res = await sql.instances.addServerCa({
4426
- * // Cloud SQL instance ID. This does not include the project ID.
4427
- * instance: 'placeholder-value',
4428
- * // Project ID of the project that contains the instance.
4429
- * project: 'placeholder-value',
4430
- * });
4431
- * console.log(res.data);
4432
- *
4433
- * // Example response
4434
- * // {
4435
- * // "backupContext": {},
4436
- * // "endTime": "my_endTime",
4437
- * // "error": {},
4438
- * // "exportContext": {},
4439
- * // "importContext": {},
4440
- * // "insertTime": "my_insertTime",
4441
- * // "kind": "my_kind",
4442
- * // "name": "my_name",
4443
- * // "operationType": "my_operationType",
4444
- * // "selfLink": "my_selfLink",
4445
- * // "startTime": "my_startTime",
4446
- * // "status": "my_status",
4447
- * // "targetId": "my_targetId",
4448
- * // "targetLink": "my_targetLink",
4449
- * // "targetProject": "my_targetProject",
4450
- * // "user": "my_user"
4451
- * // }
4452
- * }
4453
- *
4454
- * main().catch(e => {
4455
- * console.error(e);
4456
- * throw e;
4457
- * });
4458
- *
4459
- * ```
4460
3595
  *
4461
3596
  * @param params - Parameters for request
4462
3597
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -4544,76 +3679,6 @@ export namespace sqladmin_v1 {
4544
3679
 
4545
3680
  /**
4546
3681
  * Creates a Cloud SQL instance as a clone of the source instance. Using this operation might cause your instance to restart.
4547
- * @example
4548
- * ```js
4549
- * // Before running the sample:
4550
- * // - Enable the API at:
4551
- * // https://console.developers.google.com/apis/api/sqladmin.googleapis.com
4552
- * // - Login into gcloud by running:
4553
- * // `$ gcloud auth application-default login`
4554
- * // - Install the npm module by running:
4555
- * // `$ npm install googleapis`
4556
- *
4557
- * const {google} = require('googleapis');
4558
- * const sqladmin = google.sqladmin('v1');
4559
- *
4560
- * async function main() {
4561
- * const auth = new google.auth.GoogleAuth({
4562
- * // Scopes can be specified either as an array or as a single, space-delimited string.
4563
- * scopes: [
4564
- * 'https://www.googleapis.com/auth/cloud-platform',
4565
- * 'https://www.googleapis.com/auth/sqlservice.admin',
4566
- * ],
4567
- * });
4568
- *
4569
- * // Acquire an auth client, and bind it to all future calls
4570
- * const authClient = await auth.getClient();
4571
- * google.options({auth: authClient});
4572
- *
4573
- * // Do the magic
4574
- * const res = await sql.instances.clone({
4575
- * // The ID of the Cloud SQL instance to be cloned (source). This does not include the project ID.
4576
- * instance: 'placeholder-value',
4577
- * // Project ID of the source as well as the clone Cloud SQL instance.
4578
- * project: 'placeholder-value',
4579
- *
4580
- * // Request body metadata
4581
- * requestBody: {
4582
- * // request body parameters
4583
- * // {
4584
- * // "cloneContext": {}
4585
- * // }
4586
- * },
4587
- * });
4588
- * console.log(res.data);
4589
- *
4590
- * // Example response
4591
- * // {
4592
- * // "backupContext": {},
4593
- * // "endTime": "my_endTime",
4594
- * // "error": {},
4595
- * // "exportContext": {},
4596
- * // "importContext": {},
4597
- * // "insertTime": "my_insertTime",
4598
- * // "kind": "my_kind",
4599
- * // "name": "my_name",
4600
- * // "operationType": "my_operationType",
4601
- * // "selfLink": "my_selfLink",
4602
- * // "startTime": "my_startTime",
4603
- * // "status": "my_status",
4604
- * // "targetId": "my_targetId",
4605
- * // "targetLink": "my_targetLink",
4606
- * // "targetProject": "my_targetProject",
4607
- * // "user": "my_user"
4608
- * // }
4609
- * }
4610
- *
4611
- * main().catch(e => {
4612
- * console.error(e);
4613
- * throw e;
4614
- * });
4615
- *
4616
- * ```
4617
3682
  *
4618
3683
  * @param params - Parameters for request
4619
3684
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -4699,68 +3764,6 @@ export namespace sqladmin_v1 {
4699
3764
 
4700
3765
  /**
4701
3766
  * Deletes a Cloud SQL instance.
4702
- * @example
4703
- * ```js
4704
- * // Before running the sample:
4705
- * // - Enable the API at:
4706
- * // https://console.developers.google.com/apis/api/sqladmin.googleapis.com
4707
- * // - Login into gcloud by running:
4708
- * // `$ gcloud auth application-default login`
4709
- * // - Install the npm module by running:
4710
- * // `$ npm install googleapis`
4711
- *
4712
- * const {google} = require('googleapis');
4713
- * const sqladmin = google.sqladmin('v1');
4714
- *
4715
- * async function main() {
4716
- * const auth = new google.auth.GoogleAuth({
4717
- * // Scopes can be specified either as an array or as a single, space-delimited string.
4718
- * scopes: [
4719
- * 'https://www.googleapis.com/auth/cloud-platform',
4720
- * 'https://www.googleapis.com/auth/sqlservice.admin',
4721
- * ],
4722
- * });
4723
- *
4724
- * // Acquire an auth client, and bind it to all future calls
4725
- * const authClient = await auth.getClient();
4726
- * google.options({auth: authClient});
4727
- *
4728
- * // Do the magic
4729
- * const res = await sql.instances.delete({
4730
- * // Cloud SQL instance ID. This does not include the project ID.
4731
- * instance: 'placeholder-value',
4732
- * // Project ID of the project that contains the instance to be deleted.
4733
- * project: 'placeholder-value',
4734
- * });
4735
- * console.log(res.data);
4736
- *
4737
- * // Example response
4738
- * // {
4739
- * // "backupContext": {},
4740
- * // "endTime": "my_endTime",
4741
- * // "error": {},
4742
- * // "exportContext": {},
4743
- * // "importContext": {},
4744
- * // "insertTime": "my_insertTime",
4745
- * // "kind": "my_kind",
4746
- * // "name": "my_name",
4747
- * // "operationType": "my_operationType",
4748
- * // "selfLink": "my_selfLink",
4749
- * // "startTime": "my_startTime",
4750
- * // "status": "my_status",
4751
- * // "targetId": "my_targetId",
4752
- * // "targetLink": "my_targetLink",
4753
- * // "targetProject": "my_targetProject",
4754
- * // "user": "my_user"
4755
- * // }
4756
- * }
4757
- *
4758
- * main().catch(e => {
4759
- * console.error(e);
4760
- * throw e;
4761
- * });
4762
- *
4763
- * ```
4764
3767
  *
4765
3768
  * @param params - Parameters for request
4766
3769
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -4846,76 +3849,6 @@ export namespace sqladmin_v1 {
4846
3849
 
4847
3850
  /**
4848
3851
  * Demotes the stand-alone instance to be a Cloud SQL read replica for an external database server.
4849
- * @example
4850
- * ```js
4851
- * // Before running the sample:
4852
- * // - Enable the API at:
4853
- * // https://console.developers.google.com/apis/api/sqladmin.googleapis.com
4854
- * // - Login into gcloud by running:
4855
- * // `$ gcloud auth application-default login`
4856
- * // - Install the npm module by running:
4857
- * // `$ npm install googleapis`
4858
- *
4859
- * const {google} = require('googleapis');
4860
- * const sqladmin = google.sqladmin('v1');
4861
- *
4862
- * async function main() {
4863
- * const auth = new google.auth.GoogleAuth({
4864
- * // Scopes can be specified either as an array or as a single, space-delimited string.
4865
- * scopes: [
4866
- * 'https://www.googleapis.com/auth/cloud-platform',
4867
- * 'https://www.googleapis.com/auth/sqlservice.admin',
4868
- * ],
4869
- * });
4870
- *
4871
- * // Acquire an auth client, and bind it to all future calls
4872
- * const authClient = await auth.getClient();
4873
- * google.options({auth: authClient});
4874
- *
4875
- * // Do the magic
4876
- * const res = await sql.instances.demoteMaster({
4877
- * // Cloud SQL instance name.
4878
- * instance: 'placeholder-value',
4879
- * // ID of the project that contains the instance.
4880
- * project: 'placeholder-value',
4881
- *
4882
- * // Request body metadata
4883
- * requestBody: {
4884
- * // request body parameters
4885
- * // {
4886
- * // "demoteMasterContext": {}
4887
- * // }
4888
- * },
4889
- * });
4890
- * console.log(res.data);
4891
- *
4892
- * // Example response
4893
- * // {
4894
- * // "backupContext": {},
4895
- * // "endTime": "my_endTime",
4896
- * // "error": {},
4897
- * // "exportContext": {},
4898
- * // "importContext": {},
4899
- * // "insertTime": "my_insertTime",
4900
- * // "kind": "my_kind",
4901
- * // "name": "my_name",
4902
- * // "operationType": "my_operationType",
4903
- * // "selfLink": "my_selfLink",
4904
- * // "startTime": "my_startTime",
4905
- * // "status": "my_status",
4906
- * // "targetId": "my_targetId",
4907
- * // "targetLink": "my_targetLink",
4908
- * // "targetProject": "my_targetProject",
4909
- * // "user": "my_user"
4910
- * // }
4911
- * }
4912
- *
4913
- * main().catch(e => {
4914
- * console.error(e);
4915
- * throw e;
4916
- * });
4917
- *
4918
- * ```
4919
3852
  *
4920
3853
  * @param params - Parameters for request
4921
3854
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -5003,73 +3936,6 @@ export namespace sqladmin_v1 {
5003
3936
 
5004
3937
  /**
5005
3938
  * Exports data from a Cloud SQL instance to a Cloud Storage bucket as a SQL dump or CSV file.
5006
- * @example
5007
- * ```js
5008
- * // Before running the sample:
5009
- * // - Enable the API at:
5010
- * // https://console.developers.google.com/apis/api/sqladmin.googleapis.com
5011
- * // - Login into gcloud by running:
5012
- * // `$ gcloud auth application-default login`
5013
- * // - Install the npm module by running:
5014
- * // `$ npm install googleapis`
5015
- *
5016
- * const {google} = require('googleapis');
5017
- * const sqladmin = google.sqladmin('v1');
5018
- *
5019
- * async function main() {
5020
- * const auth = new google.auth.GoogleAuth({
5021
- * // Scopes can be specified either as an array or as a single, space-delimited string.
5022
- * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
5023
- * });
5024
- *
5025
- * // Acquire an auth client, and bind it to all future calls
5026
- * const authClient = await auth.getClient();
5027
- * google.options({auth: authClient});
5028
- *
5029
- * // Do the magic
5030
- * const res = await sql.instances.export({
5031
- * // Cloud SQL instance ID. This does not include the project ID.
5032
- * instance: 'placeholder-value',
5033
- * // Project ID of the project that contains the instance to be exported.
5034
- * project: 'placeholder-value',
5035
- *
5036
- * // Request body metadata
5037
- * requestBody: {
5038
- * // request body parameters
5039
- * // {
5040
- * // "exportContext": {}
5041
- * // }
5042
- * },
5043
- * });
5044
- * console.log(res.data);
5045
- *
5046
- * // Example response
5047
- * // {
5048
- * // "backupContext": {},
5049
- * // "endTime": "my_endTime",
5050
- * // "error": {},
5051
- * // "exportContext": {},
5052
- * // "importContext": {},
5053
- * // "insertTime": "my_insertTime",
5054
- * // "kind": "my_kind",
5055
- * // "name": "my_name",
5056
- * // "operationType": "my_operationType",
5057
- * // "selfLink": "my_selfLink",
5058
- * // "startTime": "my_startTime",
5059
- * // "status": "my_status",
5060
- * // "targetId": "my_targetId",
5061
- * // "targetLink": "my_targetLink",
5062
- * // "targetProject": "my_targetProject",
5063
- * // "user": "my_user"
5064
- * // }
5065
- * }
5066
- *
5067
- * main().catch(e => {
5068
- * console.error(e);
5069
- * throw e;
5070
- * });
5071
- *
5072
- * ```
5073
3939
  *
5074
3940
  * @param params - Parameters for request
5075
3941
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -5155,76 +4021,6 @@ export namespace sqladmin_v1 {
5155
4021
 
5156
4022
  /**
5157
4023
  * 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.
5158
- * @example
5159
- * ```js
5160
- * // Before running the sample:
5161
- * // - Enable the API at:
5162
- * // https://console.developers.google.com/apis/api/sqladmin.googleapis.com
5163
- * // - Login into gcloud by running:
5164
- * // `$ gcloud auth application-default login`
5165
- * // - Install the npm module by running:
5166
- * // `$ npm install googleapis`
5167
- *
5168
- * const {google} = require('googleapis');
5169
- * const sqladmin = google.sqladmin('v1');
5170
- *
5171
- * async function main() {
5172
- * const auth = new google.auth.GoogleAuth({
5173
- * // Scopes can be specified either as an array or as a single, space-delimited string.
5174
- * scopes: [
5175
- * 'https://www.googleapis.com/auth/cloud-platform',
5176
- * 'https://www.googleapis.com/auth/sqlservice.admin',
5177
- * ],
5178
- * });
5179
- *
5180
- * // Acquire an auth client, and bind it to all future calls
5181
- * const authClient = await auth.getClient();
5182
- * google.options({auth: authClient});
5183
- *
5184
- * // Do the magic
5185
- * const res = await sql.instances.failover({
5186
- * // Cloud SQL instance ID. This does not include the project ID.
5187
- * instance: 'placeholder-value',
5188
- * // ID of the project that contains the read replica.
5189
- * project: 'placeholder-value',
5190
- *
5191
- * // Request body metadata
5192
- * requestBody: {
5193
- * // request body parameters
5194
- * // {
5195
- * // "failoverContext": {}
5196
- * // }
5197
- * },
5198
- * });
5199
- * console.log(res.data);
5200
- *
5201
- * // Example response
5202
- * // {
5203
- * // "backupContext": {},
5204
- * // "endTime": "my_endTime",
5205
- * // "error": {},
5206
- * // "exportContext": {},
5207
- * // "importContext": {},
5208
- * // "insertTime": "my_insertTime",
5209
- * // "kind": "my_kind",
5210
- * // "name": "my_name",
5211
- * // "operationType": "my_operationType",
5212
- * // "selfLink": "my_selfLink",
5213
- * // "startTime": "my_startTime",
5214
- * // "status": "my_status",
5215
- * // "targetId": "my_targetId",
5216
- * // "targetLink": "my_targetLink",
5217
- * // "targetProject": "my_targetProject",
5218
- * // "user": "my_user"
5219
- * // }
5220
- * }
5221
- *
5222
- * main().catch(e => {
5223
- * console.error(e);
5224
- * throw e;
5225
- * });
5226
- *
5227
- * ```
5228
4024
  *
5229
4025
  * @param params - Parameters for request
5230
4026
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -5311,88 +4107,6 @@ export namespace sqladmin_v1 {
5311
4107
 
5312
4108
  /**
5313
4109
  * Retrieves a resource containing information about a Cloud SQL instance.
5314
- * @example
5315
- * ```js
5316
- * // Before running the sample:
5317
- * // - Enable the API at:
5318
- * // https://console.developers.google.com/apis/api/sqladmin.googleapis.com
5319
- * // - Login into gcloud by running:
5320
- * // `$ gcloud auth application-default login`
5321
- * // - Install the npm module by running:
5322
- * // `$ npm install googleapis`
5323
- *
5324
- * const {google} = require('googleapis');
5325
- * const sqladmin = google.sqladmin('v1');
5326
- *
5327
- * async function main() {
5328
- * const auth = new google.auth.GoogleAuth({
5329
- * // Scopes can be specified either as an array or as a single, space-delimited string.
5330
- * scopes: [
5331
- * 'https://www.googleapis.com/auth/cloud-platform',
5332
- * 'https://www.googleapis.com/auth/sqlservice.admin',
5333
- * ],
5334
- * });
5335
- *
5336
- * // Acquire an auth client, and bind it to all future calls
5337
- * const authClient = await auth.getClient();
5338
- * google.options({auth: authClient});
5339
- *
5340
- * // Do the magic
5341
- * const res = await sql.instances.get({
5342
- * // Database instance ID. This does not include the project ID.
5343
- * instance: 'placeholder-value',
5344
- * // Project ID of the project that contains the instance.
5345
- * project: 'placeholder-value',
5346
- * });
5347
- * console.log(res.data);
5348
- *
5349
- * // Example response
5350
- * // {
5351
- * // "availableMaintenanceVersions": [],
5352
- * // "backendType": "my_backendType",
5353
- * // "connectionName": "my_connectionName",
5354
- * // "createTime": "my_createTime",
5355
- * // "currentDiskSize": "my_currentDiskSize",
5356
- * // "databaseInstalledVersion": "my_databaseInstalledVersion",
5357
- * // "databaseVersion": "my_databaseVersion",
5358
- * // "diskEncryptionConfiguration": {},
5359
- * // "diskEncryptionStatus": {},
5360
- * // "etag": "my_etag",
5361
- * // "failoverReplica": {},
5362
- * // "gceZone": "my_gceZone",
5363
- * // "instanceType": "my_instanceType",
5364
- * // "ipAddresses": [],
5365
- * // "ipv6Address": "my_ipv6Address",
5366
- * // "kind": "my_kind",
5367
- * // "maintenanceVersion": "my_maintenanceVersion",
5368
- * // "masterInstanceName": "my_masterInstanceName",
5369
- * // "maxDiskSize": "my_maxDiskSize",
5370
- * // "name": "my_name",
5371
- * // "onPremisesConfiguration": {},
5372
- * // "outOfDiskReport": {},
5373
- * // "project": "my_project",
5374
- * // "region": "my_region",
5375
- * // "replicaConfiguration": {},
5376
- * // "replicaNames": [],
5377
- * // "rootPassword": "my_rootPassword",
5378
- * // "satisfiesPzs": false,
5379
- * // "scheduledMaintenance": {},
5380
- * // "secondaryGceZone": "my_secondaryGceZone",
5381
- * // "selfLink": "my_selfLink",
5382
- * // "serverCaCert": {},
5383
- * // "serviceAccountEmailAddress": "my_serviceAccountEmailAddress",
5384
- * // "settings": {},
5385
- * // "state": "my_state",
5386
- * // "suspensionReason": []
5387
- * // }
5388
- * }
5389
- *
5390
- * main().catch(e => {
5391
- * console.error(e);
5392
- * throw e;
5393
- * });
5394
- *
5395
- * ```
5396
4110
  *
5397
4111
  * @param params - Parameters for request
5398
4112
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -5478,73 +4192,6 @@ export namespace sqladmin_v1 {
5478
4192
 
5479
4193
  /**
5480
4194
  * Imports data into a Cloud SQL instance from a SQL dump or CSV file in Cloud Storage.
5481
- * @example
5482
- * ```js
5483
- * // Before running the sample:
5484
- * // - Enable the API at:
5485
- * // https://console.developers.google.com/apis/api/sqladmin.googleapis.com
5486
- * // - Login into gcloud by running:
5487
- * // `$ gcloud auth application-default login`
5488
- * // - Install the npm module by running:
5489
- * // `$ npm install googleapis`
5490
- *
5491
- * const {google} = require('googleapis');
5492
- * const sqladmin = google.sqladmin('v1');
5493
- *
5494
- * async function main() {
5495
- * const auth = new google.auth.GoogleAuth({
5496
- * // Scopes can be specified either as an array or as a single, space-delimited string.
5497
- * scopes: ['https://www.googleapis.com/auth/cloud-platform'],
5498
- * });
5499
- *
5500
- * // Acquire an auth client, and bind it to all future calls
5501
- * const authClient = await auth.getClient();
5502
- * google.options({auth: authClient});
5503
- *
5504
- * // Do the magic
5505
- * const res = await sql.instances.import({
5506
- * // Cloud SQL instance ID. This does not include the project ID.
5507
- * instance: 'placeholder-value',
5508
- * // Project ID of the project that contains the instance.
5509
- * project: 'placeholder-value',
5510
- *
5511
- * // Request body metadata
5512
- * requestBody: {
5513
- * // request body parameters
5514
- * // {
5515
- * // "importContext": {}
5516
- * // }
5517
- * },
5518
- * });
5519
- * console.log(res.data);
5520
- *
5521
- * // Example response
5522
- * // {
5523
- * // "backupContext": {},
5524
- * // "endTime": "my_endTime",
5525
- * // "error": {},
5526
- * // "exportContext": {},
5527
- * // "importContext": {},
5528
- * // "insertTime": "my_insertTime",
5529
- * // "kind": "my_kind",
5530
- * // "name": "my_name",
5531
- * // "operationType": "my_operationType",
5532
- * // "selfLink": "my_selfLink",
5533
- * // "startTime": "my_startTime",
5534
- * // "status": "my_status",
5535
- * // "targetId": "my_targetId",
5536
- * // "targetLink": "my_targetLink",
5537
- * // "targetProject": "my_targetProject",
5538
- * // "user": "my_user"
5539
- * // }
5540
- * }
5541
- *
5542
- * main().catch(e => {
5543
- * console.error(e);
5544
- * throw e;
5545
- * });
5546
- *
5547
- * ```
5548
4195
  *
5549
4196
  * @param params - Parameters for request
5550
4197
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -5630,109 +4277,6 @@ export namespace sqladmin_v1 {
5630
4277
 
5631
4278
  /**
5632
4279
  * Creates a new Cloud SQL instance.
5633
- * @example
5634
- * ```js
5635
- * // Before running the sample:
5636
- * // - Enable the API at:
5637
- * // https://console.developers.google.com/apis/api/sqladmin.googleapis.com
5638
- * // - Login into gcloud by running:
5639
- * // `$ gcloud auth application-default login`
5640
- * // - Install the npm module by running:
5641
- * // `$ npm install googleapis`
5642
- *
5643
- * const {google} = require('googleapis');
5644
- * const sqladmin = google.sqladmin('v1');
5645
- *
5646
- * async function main() {
5647
- * const auth = new google.auth.GoogleAuth({
5648
- * // Scopes can be specified either as an array or as a single, space-delimited string.
5649
- * scopes: [
5650
- * 'https://www.googleapis.com/auth/cloud-platform',
5651
- * 'https://www.googleapis.com/auth/sqlservice.admin',
5652
- * ],
5653
- * });
5654
- *
5655
- * // Acquire an auth client, and bind it to all future calls
5656
- * const authClient = await auth.getClient();
5657
- * google.options({auth: authClient});
5658
- *
5659
- * // Do the magic
5660
- * const res = await sql.instances.insert({
5661
- * // Project ID of the project to which the newly created Cloud SQL instances should belong.
5662
- * project: 'placeholder-value',
5663
- *
5664
- * // Request body metadata
5665
- * requestBody: {
5666
- * // request body parameters
5667
- * // {
5668
- * // "availableMaintenanceVersions": [],
5669
- * // "backendType": "my_backendType",
5670
- * // "connectionName": "my_connectionName",
5671
- * // "createTime": "my_createTime",
5672
- * // "currentDiskSize": "my_currentDiskSize",
5673
- * // "databaseInstalledVersion": "my_databaseInstalledVersion",
5674
- * // "databaseVersion": "my_databaseVersion",
5675
- * // "diskEncryptionConfiguration": {},
5676
- * // "diskEncryptionStatus": {},
5677
- * // "etag": "my_etag",
5678
- * // "failoverReplica": {},
5679
- * // "gceZone": "my_gceZone",
5680
- * // "instanceType": "my_instanceType",
5681
- * // "ipAddresses": [],
5682
- * // "ipv6Address": "my_ipv6Address",
5683
- * // "kind": "my_kind",
5684
- * // "maintenanceVersion": "my_maintenanceVersion",
5685
- * // "masterInstanceName": "my_masterInstanceName",
5686
- * // "maxDiskSize": "my_maxDiskSize",
5687
- * // "name": "my_name",
5688
- * // "onPremisesConfiguration": {},
5689
- * // "outOfDiskReport": {},
5690
- * // "project": "my_project",
5691
- * // "region": "my_region",
5692
- * // "replicaConfiguration": {},
5693
- * // "replicaNames": [],
5694
- * // "rootPassword": "my_rootPassword",
5695
- * // "satisfiesPzs": false,
5696
- * // "scheduledMaintenance": {},
5697
- * // "secondaryGceZone": "my_secondaryGceZone",
5698
- * // "selfLink": "my_selfLink",
5699
- * // "serverCaCert": {},
5700
- * // "serviceAccountEmailAddress": "my_serviceAccountEmailAddress",
5701
- * // "settings": {},
5702
- * // "state": "my_state",
5703
- * // "suspensionReason": []
5704
- * // }
5705
- * },
5706
- * });
5707
- * console.log(res.data);
5708
- *
5709
- * // Example response
5710
- * // {
5711
- * // "backupContext": {},
5712
- * // "endTime": "my_endTime",
5713
- * // "error": {},
5714
- * // "exportContext": {},
5715
- * // "importContext": {},
5716
- * // "insertTime": "my_insertTime",
5717
- * // "kind": "my_kind",
5718
- * // "name": "my_name",
5719
- * // "operationType": "my_operationType",
5720
- * // "selfLink": "my_selfLink",
5721
- * // "startTime": "my_startTime",
5722
- * // "status": "my_status",
5723
- * // "targetId": "my_targetId",
5724
- * // "targetLink": "my_targetLink",
5725
- * // "targetProject": "my_targetProject",
5726
- * // "user": "my_user"
5727
- * // }
5728
- * }
5729
- *
5730
- * main().catch(e => {
5731
- * console.error(e);
5732
- * throw e;
5733
- * });
5734
- *
5735
- * ```
5736
4280
  *
5737
4281
  * @param params - Parameters for request
5738
4282
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -5819,60 +4363,6 @@ export namespace sqladmin_v1 {
5819
4363
 
5820
4364
  /**
5821
4365
  * Lists instances under a given project.
5822
- * @example
5823
- * ```js
5824
- * // Before running the sample:
5825
- * // - Enable the API at:
5826
- * // https://console.developers.google.com/apis/api/sqladmin.googleapis.com
5827
- * // - Login into gcloud by running:
5828
- * // `$ gcloud auth application-default login`
5829
- * // - Install the npm module by running:
5830
- * // `$ npm install googleapis`
5831
- *
5832
- * const {google} = require('googleapis');
5833
- * const sqladmin = google.sqladmin('v1');
5834
- *
5835
- * async function main() {
5836
- * const auth = new google.auth.GoogleAuth({
5837
- * // Scopes can be specified either as an array or as a single, space-delimited string.
5838
- * scopes: [
5839
- * 'https://www.googleapis.com/auth/cloud-platform',
5840
- * 'https://www.googleapis.com/auth/sqlservice.admin',
5841
- * ],
5842
- * });
5843
- *
5844
- * // Acquire an auth client, and bind it to all future calls
5845
- * const authClient = await auth.getClient();
5846
- * google.options({auth: authClient});
5847
- *
5848
- * // Do the magic
5849
- * const res = await sql.instances.list({
5850
- * // 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.
5851
- * filter: 'placeholder-value',
5852
- * // 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.
5853
- * maxResults: 'placeholder-value',
5854
- * // A previously-returned page token representing part of the larger set of results to view.
5855
- * pageToken: 'placeholder-value',
5856
- * // Project ID of the project for which to list Cloud SQL instances.
5857
- * project: 'placeholder-value',
5858
- * });
5859
- * console.log(res.data);
5860
- *
5861
- * // Example response
5862
- * // {
5863
- * // "items": [],
5864
- * // "kind": "my_kind",
5865
- * // "nextPageToken": "my_nextPageToken",
5866
- * // "warnings": []
5867
- * // }
5868
- * }
5869
- *
5870
- * main().catch(e => {
5871
- * console.error(e);
5872
- * throw e;
5873
- * });
5874
- *
5875
- * ```
5876
4366
  *
5877
4367
  * @param params - Parameters for request
5878
4368
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -5964,55 +4454,6 @@ export namespace sqladmin_v1 {
5964
4454
 
5965
4455
  /**
5966
4456
  * 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.
5967
- * @example
5968
- * ```js
5969
- * // Before running the sample:
5970
- * // - Enable the API at:
5971
- * // https://console.developers.google.com/apis/api/sqladmin.googleapis.com
5972
- * // - Login into gcloud by running:
5973
- * // `$ gcloud auth application-default login`
5974
- * // - Install the npm module by running:
5975
- * // `$ npm install googleapis`
5976
- *
5977
- * const {google} = require('googleapis');
5978
- * const sqladmin = google.sqladmin('v1');
5979
- *
5980
- * async function main() {
5981
- * const auth = new google.auth.GoogleAuth({
5982
- * // Scopes can be specified either as an array or as a single, space-delimited string.
5983
- * scopes: [
5984
- * 'https://www.googleapis.com/auth/cloud-platform',
5985
- * 'https://www.googleapis.com/auth/sqlservice.admin',
5986
- * ],
5987
- * });
5988
- *
5989
- * // Acquire an auth client, and bind it to all future calls
5990
- * const authClient = await auth.getClient();
5991
- * google.options({auth: authClient});
5992
- *
5993
- * // Do the magic
5994
- * const res = await sql.instances.listServerCas({
5995
- * // Cloud SQL instance ID. This does not include the project ID.
5996
- * instance: 'placeholder-value',
5997
- * // Project ID of the project that contains the instance.
5998
- * project: 'placeholder-value',
5999
- * });
6000
- * console.log(res.data);
6001
- *
6002
- * // Example response
6003
- * // {
6004
- * // "activeVersion": "my_activeVersion",
6005
- * // "certs": [],
6006
- * // "kind": "my_kind"
6007
- * // }
6008
- * }
6009
- *
6010
- * main().catch(e => {
6011
- * console.error(e);
6012
- * throw e;
6013
- * });
6014
- *
6015
- * ```
6016
4457
  *
6017
4458
  * @param params - Parameters for request
6018
4459
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -6109,111 +4550,6 @@ export namespace sqladmin_v1 {
6109
4550
 
6110
4551
  /**
6111
4552
  * Partially updates settings of a Cloud SQL instance by merging the request with the current configuration. This method supports patch semantics.
6112
- * @example
6113
- * ```js
6114
- * // Before running the sample:
6115
- * // - Enable the API at:
6116
- * // https://console.developers.google.com/apis/api/sqladmin.googleapis.com
6117
- * // - Login into gcloud by running:
6118
- * // `$ gcloud auth application-default login`
6119
- * // - Install the npm module by running:
6120
- * // `$ npm install googleapis`
6121
- *
6122
- * const {google} = require('googleapis');
6123
- * const sqladmin = google.sqladmin('v1');
6124
- *
6125
- * async function main() {
6126
- * const auth = new google.auth.GoogleAuth({
6127
- * // Scopes can be specified either as an array or as a single, space-delimited string.
6128
- * scopes: [
6129
- * 'https://www.googleapis.com/auth/cloud-platform',
6130
- * 'https://www.googleapis.com/auth/sqlservice.admin',
6131
- * ],
6132
- * });
6133
- *
6134
- * // Acquire an auth client, and bind it to all future calls
6135
- * const authClient = await auth.getClient();
6136
- * google.options({auth: authClient});
6137
- *
6138
- * // Do the magic
6139
- * const res = await sql.instances.patch({
6140
- * // Cloud SQL instance ID. This does not include the project ID.
6141
- * instance: 'placeholder-value',
6142
- * // Project ID of the project that contains the instance.
6143
- * project: 'placeholder-value',
6144
- *
6145
- * // Request body metadata
6146
- * requestBody: {
6147
- * // request body parameters
6148
- * // {
6149
- * // "availableMaintenanceVersions": [],
6150
- * // "backendType": "my_backendType",
6151
- * // "connectionName": "my_connectionName",
6152
- * // "createTime": "my_createTime",
6153
- * // "currentDiskSize": "my_currentDiskSize",
6154
- * // "databaseInstalledVersion": "my_databaseInstalledVersion",
6155
- * // "databaseVersion": "my_databaseVersion",
6156
- * // "diskEncryptionConfiguration": {},
6157
- * // "diskEncryptionStatus": {},
6158
- * // "etag": "my_etag",
6159
- * // "failoverReplica": {},
6160
- * // "gceZone": "my_gceZone",
6161
- * // "instanceType": "my_instanceType",
6162
- * // "ipAddresses": [],
6163
- * // "ipv6Address": "my_ipv6Address",
6164
- * // "kind": "my_kind",
6165
- * // "maintenanceVersion": "my_maintenanceVersion",
6166
- * // "masterInstanceName": "my_masterInstanceName",
6167
- * // "maxDiskSize": "my_maxDiskSize",
6168
- * // "name": "my_name",
6169
- * // "onPremisesConfiguration": {},
6170
- * // "outOfDiskReport": {},
6171
- * // "project": "my_project",
6172
- * // "region": "my_region",
6173
- * // "replicaConfiguration": {},
6174
- * // "replicaNames": [],
6175
- * // "rootPassword": "my_rootPassword",
6176
- * // "satisfiesPzs": false,
6177
- * // "scheduledMaintenance": {},
6178
- * // "secondaryGceZone": "my_secondaryGceZone",
6179
- * // "selfLink": "my_selfLink",
6180
- * // "serverCaCert": {},
6181
- * // "serviceAccountEmailAddress": "my_serviceAccountEmailAddress",
6182
- * // "settings": {},
6183
- * // "state": "my_state",
6184
- * // "suspensionReason": []
6185
- * // }
6186
- * },
6187
- * });
6188
- * console.log(res.data);
6189
- *
6190
- * // Example response
6191
- * // {
6192
- * // "backupContext": {},
6193
- * // "endTime": "my_endTime",
6194
- * // "error": {},
6195
- * // "exportContext": {},
6196
- * // "importContext": {},
6197
- * // "insertTime": "my_insertTime",
6198
- * // "kind": "my_kind",
6199
- * // "name": "my_name",
6200
- * // "operationType": "my_operationType",
6201
- * // "selfLink": "my_selfLink",
6202
- * // "startTime": "my_startTime",
6203
- * // "status": "my_status",
6204
- * // "targetId": "my_targetId",
6205
- * // "targetLink": "my_targetLink",
6206
- * // "targetProject": "my_targetProject",
6207
- * // "user": "my_user"
6208
- * // }
6209
- * }
6210
- *
6211
- * main().catch(e => {
6212
- * console.error(e);
6213
- * throw e;
6214
- * });
6215
- *
6216
- * ```
6217
4553
  *
6218
4554
  * @param params - Parameters for request
6219
4555
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -6299,68 +4635,6 @@ export namespace sqladmin_v1 {
6299
4635
 
6300
4636
  /**
6301
4637
  * Promotes the read replica instance to be a stand-alone Cloud SQL instance. Using this operation might cause your instance to restart.
6302
- * @example
6303
- * ```js
6304
- * // Before running the sample:
6305
- * // - Enable the API at:
6306
- * // https://console.developers.google.com/apis/api/sqladmin.googleapis.com
6307
- * // - Login into gcloud by running:
6308
- * // `$ gcloud auth application-default login`
6309
- * // - Install the npm module by running:
6310
- * // `$ npm install googleapis`
6311
- *
6312
- * const {google} = require('googleapis');
6313
- * const sqladmin = google.sqladmin('v1');
6314
- *
6315
- * async function main() {
6316
- * const auth = new google.auth.GoogleAuth({
6317
- * // Scopes can be specified either as an array or as a single, space-delimited string.
6318
- * scopes: [
6319
- * 'https://www.googleapis.com/auth/cloud-platform',
6320
- * 'https://www.googleapis.com/auth/sqlservice.admin',
6321
- * ],
6322
- * });
6323
- *
6324
- * // Acquire an auth client, and bind it to all future calls
6325
- * const authClient = await auth.getClient();
6326
- * google.options({auth: authClient});
6327
- *
6328
- * // Do the magic
6329
- * const res = await sql.instances.promoteReplica({
6330
- * // Cloud SQL read replica instance name.
6331
- * instance: 'placeholder-value',
6332
- * // ID of the project that contains the read replica.
6333
- * project: 'placeholder-value',
6334
- * });
6335
- * console.log(res.data);
6336
- *
6337
- * // Example response
6338
- * // {
6339
- * // "backupContext": {},
6340
- * // "endTime": "my_endTime",
6341
- * // "error": {},
6342
- * // "exportContext": {},
6343
- * // "importContext": {},
6344
- * // "insertTime": "my_insertTime",
6345
- * // "kind": "my_kind",
6346
- * // "name": "my_name",
6347
- * // "operationType": "my_operationType",
6348
- * // "selfLink": "my_selfLink",
6349
- * // "startTime": "my_startTime",
6350
- * // "status": "my_status",
6351
- * // "targetId": "my_targetId",
6352
- * // "targetLink": "my_targetLink",
6353
- * // "targetProject": "my_targetProject",
6354
- * // "user": "my_user"
6355
- * // }
6356
- * }
6357
- *
6358
- * main().catch(e => {
6359
- * console.error(e);
6360
- * throw e;
6361
- * });
6362
- *
6363
- * ```
6364
4638
  *
6365
4639
  * @param params - Parameters for request
6366
4640
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -6448,76 +4722,6 @@ export namespace sqladmin_v1 {
6448
4722
 
6449
4723
  /**
6450
4724
  * Reencrypt CMEK instance with latest key version.
6451
- * @example
6452
- * ```js
6453
- * // Before running the sample:
6454
- * // - Enable the API at:
6455
- * // https://console.developers.google.com/apis/api/sqladmin.googleapis.com
6456
- * // - Login into gcloud by running:
6457
- * // `$ gcloud auth application-default login`
6458
- * // - Install the npm module by running:
6459
- * // `$ npm install googleapis`
6460
- *
6461
- * const {google} = require('googleapis');
6462
- * const sqladmin = google.sqladmin('v1');
6463
- *
6464
- * async function main() {
6465
- * const auth = new google.auth.GoogleAuth({
6466
- * // Scopes can be specified either as an array or as a single, space-delimited string.
6467
- * scopes: [
6468
- * 'https://www.googleapis.com/auth/cloud-platform',
6469
- * 'https://www.googleapis.com/auth/sqlservice.admin',
6470
- * ],
6471
- * });
6472
- *
6473
- * // Acquire an auth client, and bind it to all future calls
6474
- * const authClient = await auth.getClient();
6475
- * google.options({auth: authClient});
6476
- *
6477
- * // Do the magic
6478
- * const res = await sql.instances.reencrypt({
6479
- * // Cloud SQL instance ID. This does not include the project ID.
6480
- * instance: 'placeholder-value',
6481
- * // ID of the project that contains the instance.
6482
- * project: 'placeholder-value',
6483
- *
6484
- * // Request body metadata
6485
- * requestBody: {
6486
- * // request body parameters
6487
- * // {
6488
- * // "backupReencryptionConfig": {}
6489
- * // }
6490
- * },
6491
- * });
6492
- * console.log(res.data);
6493
- *
6494
- * // Example response
6495
- * // {
6496
- * // "backupContext": {},
6497
- * // "endTime": "my_endTime",
6498
- * // "error": {},
6499
- * // "exportContext": {},
6500
- * // "importContext": {},
6501
- * // "insertTime": "my_insertTime",
6502
- * // "kind": "my_kind",
6503
- * // "name": "my_name",
6504
- * // "operationType": "my_operationType",
6505
- * // "selfLink": "my_selfLink",
6506
- * // "startTime": "my_startTime",
6507
- * // "status": "my_status",
6508
- * // "targetId": "my_targetId",
6509
- * // "targetLink": "my_targetLink",
6510
- * // "targetProject": "my_targetProject",
6511
- * // "user": "my_user"
6512
- * // }
6513
- * }
6514
- *
6515
- * main().catch(e => {
6516
- * console.error(e);
6517
- * throw e;
6518
- * });
6519
- *
6520
- * ```
6521
4725
  *
6522
4726
  * @param params - Parameters for request
6523
4727
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -6604,68 +4808,6 @@ export namespace sqladmin_v1 {
6604
4808
 
6605
4809
  /**
6606
4810
  * Deletes all client certificates and generates a new server SSL certificate for the instance.
6607
- * @example
6608
- * ```js
6609
- * // Before running the sample:
6610
- * // - Enable the API at:
6611
- * // https://console.developers.google.com/apis/api/sqladmin.googleapis.com
6612
- * // - Login into gcloud by running:
6613
- * // `$ gcloud auth application-default login`
6614
- * // - Install the npm module by running:
6615
- * // `$ npm install googleapis`
6616
- *
6617
- * const {google} = require('googleapis');
6618
- * const sqladmin = google.sqladmin('v1');
6619
- *
6620
- * async function main() {
6621
- * const auth = new google.auth.GoogleAuth({
6622
- * // Scopes can be specified either as an array or as a single, space-delimited string.
6623
- * scopes: [
6624
- * 'https://www.googleapis.com/auth/cloud-platform',
6625
- * 'https://www.googleapis.com/auth/sqlservice.admin',
6626
- * ],
6627
- * });
6628
- *
6629
- * // Acquire an auth client, and bind it to all future calls
6630
- * const authClient = await auth.getClient();
6631
- * google.options({auth: authClient});
6632
- *
6633
- * // Do the magic
6634
- * const res = await sql.instances.resetSslConfig({
6635
- * // Cloud SQL instance ID. This does not include the project ID.
6636
- * instance: 'placeholder-value',
6637
- * // Project ID of the project that contains the instance.
6638
- * project: 'placeholder-value',
6639
- * });
6640
- * console.log(res.data);
6641
- *
6642
- * // Example response
6643
- * // {
6644
- * // "backupContext": {},
6645
- * // "endTime": "my_endTime",
6646
- * // "error": {},
6647
- * // "exportContext": {},
6648
- * // "importContext": {},
6649
- * // "insertTime": "my_insertTime",
6650
- * // "kind": "my_kind",
6651
- * // "name": "my_name",
6652
- * // "operationType": "my_operationType",
6653
- * // "selfLink": "my_selfLink",
6654
- * // "startTime": "my_startTime",
6655
- * // "status": "my_status",
6656
- * // "targetId": "my_targetId",
6657
- * // "targetLink": "my_targetLink",
6658
- * // "targetProject": "my_targetProject",
6659
- * // "user": "my_user"
6660
- * // }
6661
- * }
6662
- *
6663
- * main().catch(e => {
6664
- * console.error(e);
6665
- * throw e;
6666
- * });
6667
- *
6668
- * ```
6669
4811
  *
6670
4812
  * @param params - Parameters for request
6671
4813
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -6753,68 +4895,6 @@ export namespace sqladmin_v1 {
6753
4895
 
6754
4896
  /**
6755
4897
  * Restarts a Cloud SQL instance.
6756
- * @example
6757
- * ```js
6758
- * // Before running the sample:
6759
- * // - Enable the API at:
6760
- * // https://console.developers.google.com/apis/api/sqladmin.googleapis.com
6761
- * // - Login into gcloud by running:
6762
- * // `$ gcloud auth application-default login`
6763
- * // - Install the npm module by running:
6764
- * // `$ npm install googleapis`
6765
- *
6766
- * const {google} = require('googleapis');
6767
- * const sqladmin = google.sqladmin('v1');
6768
- *
6769
- * async function main() {
6770
- * const auth = new google.auth.GoogleAuth({
6771
- * // Scopes can be specified either as an array or as a single, space-delimited string.
6772
- * scopes: [
6773
- * 'https://www.googleapis.com/auth/cloud-platform',
6774
- * 'https://www.googleapis.com/auth/sqlservice.admin',
6775
- * ],
6776
- * });
6777
- *
6778
- * // Acquire an auth client, and bind it to all future calls
6779
- * const authClient = await auth.getClient();
6780
- * google.options({auth: authClient});
6781
- *
6782
- * // Do the magic
6783
- * const res = await sql.instances.restart({
6784
- * // Cloud SQL instance ID. This does not include the project ID.
6785
- * instance: 'placeholder-value',
6786
- * // Project ID of the project that contains the instance to be restarted.
6787
- * project: 'placeholder-value',
6788
- * });
6789
- * console.log(res.data);
6790
- *
6791
- * // Example response
6792
- * // {
6793
- * // "backupContext": {},
6794
- * // "endTime": "my_endTime",
6795
- * // "error": {},
6796
- * // "exportContext": {},
6797
- * // "importContext": {},
6798
- * // "insertTime": "my_insertTime",
6799
- * // "kind": "my_kind",
6800
- * // "name": "my_name",
6801
- * // "operationType": "my_operationType",
6802
- * // "selfLink": "my_selfLink",
6803
- * // "startTime": "my_startTime",
6804
- * // "status": "my_status",
6805
- * // "targetId": "my_targetId",
6806
- * // "targetLink": "my_targetLink",
6807
- * // "targetProject": "my_targetProject",
6808
- * // "user": "my_user"
6809
- * // }
6810
- * }
6811
- *
6812
- * main().catch(e => {
6813
- * console.error(e);
6814
- * throw e;
6815
- * });
6816
- *
6817
- * ```
6818
4898
  *
6819
4899
  * @param params - Parameters for request
6820
4900
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -6901,76 +4981,6 @@ export namespace sqladmin_v1 {
6901
4981
 
6902
4982
  /**
6903
4983
  * Restores a backup of a Cloud SQL instance. Using this operation might cause your instance to restart.
6904
- * @example
6905
- * ```js
6906
- * // Before running the sample:
6907
- * // - Enable the API at:
6908
- * // https://console.developers.google.com/apis/api/sqladmin.googleapis.com
6909
- * // - Login into gcloud by running:
6910
- * // `$ gcloud auth application-default login`
6911
- * // - Install the npm module by running:
6912
- * // `$ npm install googleapis`
6913
- *
6914
- * const {google} = require('googleapis');
6915
- * const sqladmin = google.sqladmin('v1');
6916
- *
6917
- * async function main() {
6918
- * const auth = new google.auth.GoogleAuth({
6919
- * // Scopes can be specified either as an array or as a single, space-delimited string.
6920
- * scopes: [
6921
- * 'https://www.googleapis.com/auth/cloud-platform',
6922
- * 'https://www.googleapis.com/auth/sqlservice.admin',
6923
- * ],
6924
- * });
6925
- *
6926
- * // Acquire an auth client, and bind it to all future calls
6927
- * const authClient = await auth.getClient();
6928
- * google.options({auth: authClient});
6929
- *
6930
- * // Do the magic
6931
- * const res = await sql.instances.restoreBackup({
6932
- * // Cloud SQL instance ID. This does not include the project ID.
6933
- * instance: 'placeholder-value',
6934
- * // Project ID of the project that contains the instance.
6935
- * project: 'placeholder-value',
6936
- *
6937
- * // Request body metadata
6938
- * requestBody: {
6939
- * // request body parameters
6940
- * // {
6941
- * // "restoreBackupContext": {}
6942
- * // }
6943
- * },
6944
- * });
6945
- * console.log(res.data);
6946
- *
6947
- * // Example response
6948
- * // {
6949
- * // "backupContext": {},
6950
- * // "endTime": "my_endTime",
6951
- * // "error": {},
6952
- * // "exportContext": {},
6953
- * // "importContext": {},
6954
- * // "insertTime": "my_insertTime",
6955
- * // "kind": "my_kind",
6956
- * // "name": "my_name",
6957
- * // "operationType": "my_operationType",
6958
- * // "selfLink": "my_selfLink",
6959
- * // "startTime": "my_startTime",
6960
- * // "status": "my_status",
6961
- * // "targetId": "my_targetId",
6962
- * // "targetLink": "my_targetLink",
6963
- * // "targetProject": "my_targetProject",
6964
- * // "user": "my_user"
6965
- * // }
6966
- * }
6967
- *
6968
- * main().catch(e => {
6969
- * console.error(e);
6970
- * throw e;
6971
- * });
6972
- *
6973
- * ```
6974
4984
  *
6975
4985
  * @param params - Parameters for request
6976
4986
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -7058,76 +5068,6 @@ export namespace sqladmin_v1 {
7058
5068
 
7059
5069
  /**
7060
5070
  * Rotates the server certificate to one signed by the Certificate Authority (CA) version previously added with the addServerCA method.
7061
- * @example
7062
- * ```js
7063
- * // Before running the sample:
7064
- * // - Enable the API at:
7065
- * // https://console.developers.google.com/apis/api/sqladmin.googleapis.com
7066
- * // - Login into gcloud by running:
7067
- * // `$ gcloud auth application-default login`
7068
- * // - Install the npm module by running:
7069
- * // `$ npm install googleapis`
7070
- *
7071
- * const {google} = require('googleapis');
7072
- * const sqladmin = google.sqladmin('v1');
7073
- *
7074
- * async function main() {
7075
- * const auth = new google.auth.GoogleAuth({
7076
- * // Scopes can be specified either as an array or as a single, space-delimited string.
7077
- * scopes: [
7078
- * 'https://www.googleapis.com/auth/cloud-platform',
7079
- * 'https://www.googleapis.com/auth/sqlservice.admin',
7080
- * ],
7081
- * });
7082
- *
7083
- * // Acquire an auth client, and bind it to all future calls
7084
- * const authClient = await auth.getClient();
7085
- * google.options({auth: authClient});
7086
- *
7087
- * // Do the magic
7088
- * const res = await sql.instances.rotateServerCa({
7089
- * // Cloud SQL instance ID. This does not include the project ID.
7090
- * instance: 'placeholder-value',
7091
- * // Project ID of the project that contains the instance.
7092
- * project: 'placeholder-value',
7093
- *
7094
- * // Request body metadata
7095
- * requestBody: {
7096
- * // request body parameters
7097
- * // {
7098
- * // "rotateServerCaContext": {}
7099
- * // }
7100
- * },
7101
- * });
7102
- * console.log(res.data);
7103
- *
7104
- * // Example response
7105
- * // {
7106
- * // "backupContext": {},
7107
- * // "endTime": "my_endTime",
7108
- * // "error": {},
7109
- * // "exportContext": {},
7110
- * // "importContext": {},
7111
- * // "insertTime": "my_insertTime",
7112
- * // "kind": "my_kind",
7113
- * // "name": "my_name",
7114
- * // "operationType": "my_operationType",
7115
- * // "selfLink": "my_selfLink",
7116
- * // "startTime": "my_startTime",
7117
- * // "status": "my_status",
7118
- * // "targetId": "my_targetId",
7119
- * // "targetLink": "my_targetLink",
7120
- * // "targetProject": "my_targetProject",
7121
- * // "user": "my_user"
7122
- * // }
7123
- * }
7124
- *
7125
- * main().catch(e => {
7126
- * console.error(e);
7127
- * throw e;
7128
- * });
7129
- *
7130
- * ```
7131
5071
  *
7132
5072
  * @param params - Parameters for request
7133
5073
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -7215,68 +5155,6 @@ export namespace sqladmin_v1 {
7215
5155
 
7216
5156
  /**
7217
5157
  * Starts the replication in the read replica instance.
7218
- * @example
7219
- * ```js
7220
- * // Before running the sample:
7221
- * // - Enable the API at:
7222
- * // https://console.developers.google.com/apis/api/sqladmin.googleapis.com
7223
- * // - Login into gcloud by running:
7224
- * // `$ gcloud auth application-default login`
7225
- * // - Install the npm module by running:
7226
- * // `$ npm install googleapis`
7227
- *
7228
- * const {google} = require('googleapis');
7229
- * const sqladmin = google.sqladmin('v1');
7230
- *
7231
- * async function main() {
7232
- * const auth = new google.auth.GoogleAuth({
7233
- * // Scopes can be specified either as an array or as a single, space-delimited string.
7234
- * scopes: [
7235
- * 'https://www.googleapis.com/auth/cloud-platform',
7236
- * 'https://www.googleapis.com/auth/sqlservice.admin',
7237
- * ],
7238
- * });
7239
- *
7240
- * // Acquire an auth client, and bind it to all future calls
7241
- * const authClient = await auth.getClient();
7242
- * google.options({auth: authClient});
7243
- *
7244
- * // Do the magic
7245
- * const res = await sql.instances.startReplica({
7246
- * // Cloud SQL read replica instance name.
7247
- * instance: 'placeholder-value',
7248
- * // ID of the project that contains the read replica.
7249
- * project: 'placeholder-value',
7250
- * });
7251
- * console.log(res.data);
7252
- *
7253
- * // Example response
7254
- * // {
7255
- * // "backupContext": {},
7256
- * // "endTime": "my_endTime",
7257
- * // "error": {},
7258
- * // "exportContext": {},
7259
- * // "importContext": {},
7260
- * // "insertTime": "my_insertTime",
7261
- * // "kind": "my_kind",
7262
- * // "name": "my_name",
7263
- * // "operationType": "my_operationType",
7264
- * // "selfLink": "my_selfLink",
7265
- * // "startTime": "my_startTime",
7266
- * // "status": "my_status",
7267
- * // "targetId": "my_targetId",
7268
- * // "targetLink": "my_targetLink",
7269
- * // "targetProject": "my_targetProject",
7270
- * // "user": "my_user"
7271
- * // }
7272
- * }
7273
- *
7274
- * main().catch(e => {
7275
- * console.error(e);
7276
- * throw e;
7277
- * });
7278
- *
7279
- * ```
7280
5158
  *
7281
5159
  * @param params - Parameters for request
7282
5160
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -7364,68 +5242,6 @@ export namespace sqladmin_v1 {
7364
5242
 
7365
5243
  /**
7366
5244
  * Stops the replication in the read replica instance.
7367
- * @example
7368
- * ```js
7369
- * // Before running the sample:
7370
- * // - Enable the API at:
7371
- * // https://console.developers.google.com/apis/api/sqladmin.googleapis.com
7372
- * // - Login into gcloud by running:
7373
- * // `$ gcloud auth application-default login`
7374
- * // - Install the npm module by running:
7375
- * // `$ npm install googleapis`
7376
- *
7377
- * const {google} = require('googleapis');
7378
- * const sqladmin = google.sqladmin('v1');
7379
- *
7380
- * async function main() {
7381
- * const auth = new google.auth.GoogleAuth({
7382
- * // Scopes can be specified either as an array or as a single, space-delimited string.
7383
- * scopes: [
7384
- * 'https://www.googleapis.com/auth/cloud-platform',
7385
- * 'https://www.googleapis.com/auth/sqlservice.admin',
7386
- * ],
7387
- * });
7388
- *
7389
- * // Acquire an auth client, and bind it to all future calls
7390
- * const authClient = await auth.getClient();
7391
- * google.options({auth: authClient});
7392
- *
7393
- * // Do the magic
7394
- * const res = await sql.instances.stopReplica({
7395
- * // Cloud SQL read replica instance name.
7396
- * instance: 'placeholder-value',
7397
- * // ID of the project that contains the read replica.
7398
- * project: 'placeholder-value',
7399
- * });
7400
- * console.log(res.data);
7401
- *
7402
- * // Example response
7403
- * // {
7404
- * // "backupContext": {},
7405
- * // "endTime": "my_endTime",
7406
- * // "error": {},
7407
- * // "exportContext": {},
7408
- * // "importContext": {},
7409
- * // "insertTime": "my_insertTime",
7410
- * // "kind": "my_kind",
7411
- * // "name": "my_name",
7412
- * // "operationType": "my_operationType",
7413
- * // "selfLink": "my_selfLink",
7414
- * // "startTime": "my_startTime",
7415
- * // "status": "my_status",
7416
- * // "targetId": "my_targetId",
7417
- * // "targetLink": "my_targetLink",
7418
- * // "targetProject": "my_targetProject",
7419
- * // "user": "my_user"
7420
- * // }
7421
- * }
7422
- *
7423
- * main().catch(e => {
7424
- * console.error(e);
7425
- * throw e;
7426
- * });
7427
- *
7428
- * ```
7429
5245
  *
7430
5246
  * @param params - Parameters for request
7431
5247
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -7513,76 +5329,6 @@ export namespace sqladmin_v1 {
7513
5329
 
7514
5330
  /**
7515
5331
  * Truncate MySQL general and slow query log tables MySQL only.
7516
- * @example
7517
- * ```js
7518
- * // Before running the sample:
7519
- * // - Enable the API at:
7520
- * // https://console.developers.google.com/apis/api/sqladmin.googleapis.com
7521
- * // - Login into gcloud by running:
7522
- * // `$ gcloud auth application-default login`
7523
- * // - Install the npm module by running:
7524
- * // `$ npm install googleapis`
7525
- *
7526
- * const {google} = require('googleapis');
7527
- * const sqladmin = google.sqladmin('v1');
7528
- *
7529
- * async function main() {
7530
- * const auth = new google.auth.GoogleAuth({
7531
- * // Scopes can be specified either as an array or as a single, space-delimited string.
7532
- * scopes: [
7533
- * 'https://www.googleapis.com/auth/cloud-platform',
7534
- * 'https://www.googleapis.com/auth/sqlservice.admin',
7535
- * ],
7536
- * });
7537
- *
7538
- * // Acquire an auth client, and bind it to all future calls
7539
- * const authClient = await auth.getClient();
7540
- * google.options({auth: authClient});
7541
- *
7542
- * // Do the magic
7543
- * const res = await sql.instances.truncateLog({
7544
- * // Cloud SQL instance ID. This does not include the project ID.
7545
- * instance: 'placeholder-value',
7546
- * // Project ID of the Cloud SQL project.
7547
- * project: 'placeholder-value',
7548
- *
7549
- * // Request body metadata
7550
- * requestBody: {
7551
- * // request body parameters
7552
- * // {
7553
- * // "truncateLogContext": {}
7554
- * // }
7555
- * },
7556
- * });
7557
- * console.log(res.data);
7558
- *
7559
- * // Example response
7560
- * // {
7561
- * // "backupContext": {},
7562
- * // "endTime": "my_endTime",
7563
- * // "error": {},
7564
- * // "exportContext": {},
7565
- * // "importContext": {},
7566
- * // "insertTime": "my_insertTime",
7567
- * // "kind": "my_kind",
7568
- * // "name": "my_name",
7569
- * // "operationType": "my_operationType",
7570
- * // "selfLink": "my_selfLink",
7571
- * // "startTime": "my_startTime",
7572
- * // "status": "my_status",
7573
- * // "targetId": "my_targetId",
7574
- * // "targetLink": "my_targetLink",
7575
- * // "targetProject": "my_targetProject",
7576
- * // "user": "my_user"
7577
- * // }
7578
- * }
7579
- *
7580
- * main().catch(e => {
7581
- * console.error(e);
7582
- * throw e;
7583
- * });
7584
- *
7585
- * ```
7586
5332
  *
7587
5333
  * @param params - Parameters for request
7588
5334
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -7670,111 +5416,6 @@ export namespace sqladmin_v1 {
7670
5416
 
7671
5417
  /**
7672
5418
  * Updates settings of a Cloud SQL instance. Using this operation might cause your instance to restart.
7673
- * @example
7674
- * ```js
7675
- * // Before running the sample:
7676
- * // - Enable the API at:
7677
- * // https://console.developers.google.com/apis/api/sqladmin.googleapis.com
7678
- * // - Login into gcloud by running:
7679
- * // `$ gcloud auth application-default login`
7680
- * // - Install the npm module by running:
7681
- * // `$ npm install googleapis`
7682
- *
7683
- * const {google} = require('googleapis');
7684
- * const sqladmin = google.sqladmin('v1');
7685
- *
7686
- * async function main() {
7687
- * const auth = new google.auth.GoogleAuth({
7688
- * // Scopes can be specified either as an array or as a single, space-delimited string.
7689
- * scopes: [
7690
- * 'https://www.googleapis.com/auth/cloud-platform',
7691
- * 'https://www.googleapis.com/auth/sqlservice.admin',
7692
- * ],
7693
- * });
7694
- *
7695
- * // Acquire an auth client, and bind it to all future calls
7696
- * const authClient = await auth.getClient();
7697
- * google.options({auth: authClient});
7698
- *
7699
- * // Do the magic
7700
- * const res = await sql.instances.update({
7701
- * // Cloud SQL instance ID. This does not include the project ID.
7702
- * instance: 'placeholder-value',
7703
- * // Project ID of the project that contains the instance.
7704
- * project: 'placeholder-value',
7705
- *
7706
- * // Request body metadata
7707
- * requestBody: {
7708
- * // request body parameters
7709
- * // {
7710
- * // "availableMaintenanceVersions": [],
7711
- * // "backendType": "my_backendType",
7712
- * // "connectionName": "my_connectionName",
7713
- * // "createTime": "my_createTime",
7714
- * // "currentDiskSize": "my_currentDiskSize",
7715
- * // "databaseInstalledVersion": "my_databaseInstalledVersion",
7716
- * // "databaseVersion": "my_databaseVersion",
7717
- * // "diskEncryptionConfiguration": {},
7718
- * // "diskEncryptionStatus": {},
7719
- * // "etag": "my_etag",
7720
- * // "failoverReplica": {},
7721
- * // "gceZone": "my_gceZone",
7722
- * // "instanceType": "my_instanceType",
7723
- * // "ipAddresses": [],
7724
- * // "ipv6Address": "my_ipv6Address",
7725
- * // "kind": "my_kind",
7726
- * // "maintenanceVersion": "my_maintenanceVersion",
7727
- * // "masterInstanceName": "my_masterInstanceName",
7728
- * // "maxDiskSize": "my_maxDiskSize",
7729
- * // "name": "my_name",
7730
- * // "onPremisesConfiguration": {},
7731
- * // "outOfDiskReport": {},
7732
- * // "project": "my_project",
7733
- * // "region": "my_region",
7734
- * // "replicaConfiguration": {},
7735
- * // "replicaNames": [],
7736
- * // "rootPassword": "my_rootPassword",
7737
- * // "satisfiesPzs": false,
7738
- * // "scheduledMaintenance": {},
7739
- * // "secondaryGceZone": "my_secondaryGceZone",
7740
- * // "selfLink": "my_selfLink",
7741
- * // "serverCaCert": {},
7742
- * // "serviceAccountEmailAddress": "my_serviceAccountEmailAddress",
7743
- * // "settings": {},
7744
- * // "state": "my_state",
7745
- * // "suspensionReason": []
7746
- * // }
7747
- * },
7748
- * });
7749
- * console.log(res.data);
7750
- *
7751
- * // Example response
7752
- * // {
7753
- * // "backupContext": {},
7754
- * // "endTime": "my_endTime",
7755
- * // "error": {},
7756
- * // "exportContext": {},
7757
- * // "importContext": {},
7758
- * // "insertTime": "my_insertTime",
7759
- * // "kind": "my_kind",
7760
- * // "name": "my_name",
7761
- * // "operationType": "my_operationType",
7762
- * // "selfLink": "my_selfLink",
7763
- * // "startTime": "my_startTime",
7764
- * // "status": "my_status",
7765
- * // "targetId": "my_targetId",
7766
- * // "targetLink": "my_targetLink",
7767
- * // "targetProject": "my_targetProject",
7768
- * // "user": "my_user"
7769
- * // }
7770
- * }
7771
- *
7772
- * main().catch(e => {
7773
- * console.error(e);
7774
- * throw e;
7775
- * });
7776
- *
7777
- * ```
7778
5419
  *
7779
5420
  * @param params - Parameters for request
7780
5421
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -8165,51 +5806,6 @@ export namespace sqladmin_v1 {
8165
5806
 
8166
5807
  /**
8167
5808
  * Cancels an instance operation that has been performed on an instance.
8168
- * @example
8169
- * ```js
8170
- * // Before running the sample:
8171
- * // - Enable the API at:
8172
- * // https://console.developers.google.com/apis/api/sqladmin.googleapis.com
8173
- * // - Login into gcloud by running:
8174
- * // `$ gcloud auth application-default login`
8175
- * // - Install the npm module by running:
8176
- * // `$ npm install googleapis`
8177
- *
8178
- * const {google} = require('googleapis');
8179
- * const sqladmin = google.sqladmin('v1');
8180
- *
8181
- * async function main() {
8182
- * const auth = new google.auth.GoogleAuth({
8183
- * // Scopes can be specified either as an array or as a single, space-delimited string.
8184
- * scopes: [
8185
- * 'https://www.googleapis.com/auth/cloud-platform',
8186
- * 'https://www.googleapis.com/auth/sqlservice.admin',
8187
- * ],
8188
- * });
8189
- *
8190
- * // Acquire an auth client, and bind it to all future calls
8191
- * const authClient = await auth.getClient();
8192
- * google.options({auth: authClient});
8193
- *
8194
- * // Do the magic
8195
- * const res = await sql.operations.cancel({
8196
- * // Instance operation ID.
8197
- * operation: 'placeholder-value',
8198
- * // Project ID of the project that contains the instance.
8199
- * project: 'placeholder-value',
8200
- * });
8201
- * console.log(res.data);
8202
- *
8203
- * // Example response
8204
- * // {}
8205
- * }
8206
- *
8207
- * main().catch(e => {
8208
- * console.error(e);
8209
- * throw e;
8210
- * });
8211
- *
8212
- * ```
8213
5809
  *
8214
5810
  * @param params - Parameters for request
8215
5811
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -8296,68 +5892,6 @@ export namespace sqladmin_v1 {
8296
5892
 
8297
5893
  /**
8298
5894
  * Retrieves an instance operation that has been performed on an instance.
8299
- * @example
8300
- * ```js
8301
- * // Before running the sample:
8302
- * // - Enable the API at:
8303
- * // https://console.developers.google.com/apis/api/sqladmin.googleapis.com
8304
- * // - Login into gcloud by running:
8305
- * // `$ gcloud auth application-default login`
8306
- * // - Install the npm module by running:
8307
- * // `$ npm install googleapis`
8308
- *
8309
- * const {google} = require('googleapis');
8310
- * const sqladmin = google.sqladmin('v1');
8311
- *
8312
- * async function main() {
8313
- * const auth = new google.auth.GoogleAuth({
8314
- * // Scopes can be specified either as an array or as a single, space-delimited string.
8315
- * scopes: [
8316
- * 'https://www.googleapis.com/auth/cloud-platform',
8317
- * 'https://www.googleapis.com/auth/sqlservice.admin',
8318
- * ],
8319
- * });
8320
- *
8321
- * // Acquire an auth client, and bind it to all future calls
8322
- * const authClient = await auth.getClient();
8323
- * google.options({auth: authClient});
8324
- *
8325
- * // Do the magic
8326
- * const res = await sql.operations.get({
8327
- * // Instance operation ID.
8328
- * operation: 'placeholder-value',
8329
- * // Project ID of the project that contains the instance.
8330
- * project: 'placeholder-value',
8331
- * });
8332
- * console.log(res.data);
8333
- *
8334
- * // Example response
8335
- * // {
8336
- * // "backupContext": {},
8337
- * // "endTime": "my_endTime",
8338
- * // "error": {},
8339
- * // "exportContext": {},
8340
- * // "importContext": {},
8341
- * // "insertTime": "my_insertTime",
8342
- * // "kind": "my_kind",
8343
- * // "name": "my_name",
8344
- * // "operationType": "my_operationType",
8345
- * // "selfLink": "my_selfLink",
8346
- * // "startTime": "my_startTime",
8347
- * // "status": "my_status",
8348
- * // "targetId": "my_targetId",
8349
- * // "targetLink": "my_targetLink",
8350
- * // "targetProject": "my_targetProject",
8351
- * // "user": "my_user"
8352
- * // }
8353
- * }
8354
- *
8355
- * main().catch(e => {
8356
- * console.error(e);
8357
- * throw e;
8358
- * });
8359
- *
8360
- * ```
8361
5895
  *
8362
5896
  * @param params - Parameters for request
8363
5897
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -8443,59 +5977,6 @@ export namespace sqladmin_v1 {
8443
5977
 
8444
5978
  /**
8445
5979
  * Lists all instance operations that have been performed on the given Cloud SQL instance in the reverse chronological order of the start time.
8446
- * @example
8447
- * ```js
8448
- * // Before running the sample:
8449
- * // - Enable the API at:
8450
- * // https://console.developers.google.com/apis/api/sqladmin.googleapis.com
8451
- * // - Login into gcloud by running:
8452
- * // `$ gcloud auth application-default login`
8453
- * // - Install the npm module by running:
8454
- * // `$ npm install googleapis`
8455
- *
8456
- * const {google} = require('googleapis');
8457
- * const sqladmin = google.sqladmin('v1');
8458
- *
8459
- * async function main() {
8460
- * const auth = new google.auth.GoogleAuth({
8461
- * // Scopes can be specified either as an array or as a single, space-delimited string.
8462
- * scopes: [
8463
- * 'https://www.googleapis.com/auth/cloud-platform',
8464
- * 'https://www.googleapis.com/auth/sqlservice.admin',
8465
- * ],
8466
- * });
8467
- *
8468
- * // Acquire an auth client, and bind it to all future calls
8469
- * const authClient = await auth.getClient();
8470
- * google.options({auth: authClient});
8471
- *
8472
- * // Do the magic
8473
- * const res = await sql.operations.list({
8474
- * // Cloud SQL instance ID. This does not include the project ID.
8475
- * instance: 'placeholder-value',
8476
- * // Maximum number of operations per response.
8477
- * maxResults: 'placeholder-value',
8478
- * // A previously-returned page token representing part of the larger set of results to view.
8479
- * pageToken: 'placeholder-value',
8480
- * // Project ID of the project that contains the instance.
8481
- * project: 'placeholder-value',
8482
- * });
8483
- * console.log(res.data);
8484
- *
8485
- * // Example response
8486
- * // {
8487
- * // "items": [],
8488
- * // "kind": "my_kind",
8489
- * // "nextPageToken": "my_nextPageToken"
8490
- * // }
8491
- * }
8492
- *
8493
- * main().catch(e => {
8494
- * console.error(e);
8495
- * throw e;
8496
- * });
8497
- *
8498
- * ```
8499
5980
  *
8500
5981
  * @param params - Parameters for request
8501
5982
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -8643,55 +6124,6 @@ export namespace sqladmin_v1 {
8643
6124
 
8644
6125
  /**
8645
6126
  * Get Disk Shrink Config for a given instance.
8646
- * @example
8647
- * ```js
8648
- * // Before running the sample:
8649
- * // - Enable the API at:
8650
- * // https://console.developers.google.com/apis/api/sqladmin.googleapis.com
8651
- * // - Login into gcloud by running:
8652
- * // `$ gcloud auth application-default login`
8653
- * // - Install the npm module by running:
8654
- * // `$ npm install googleapis`
8655
- *
8656
- * const {google} = require('googleapis');
8657
- * const sqladmin = google.sqladmin('v1');
8658
- *
8659
- * async function main() {
8660
- * const auth = new google.auth.GoogleAuth({
8661
- * // Scopes can be specified either as an array or as a single, space-delimited string.
8662
- * scopes: [
8663
- * 'https://www.googleapis.com/auth/cloud-platform',
8664
- * 'https://www.googleapis.com/auth/sqlservice.admin',
8665
- * ],
8666
- * });
8667
- *
8668
- * // Acquire an auth client, and bind it to all future calls
8669
- * const authClient = await auth.getClient();
8670
- * google.options({auth: authClient});
8671
- *
8672
- * // Do the magic
8673
- * const res = await sql.projects.instances.getDiskShrinkConfig({
8674
- * // Cloud SQL instance ID. This does not include the project ID.
8675
- * instance: 'placeholder-value',
8676
- * // Project ID of the project that contains the instance.
8677
- * project: 'placeholder-value',
8678
- * });
8679
- * console.log(res.data);
8680
- *
8681
- * // Example response
8682
- * // {
8683
- * // "kind": "my_kind",
8684
- * // "message": "my_message",
8685
- * // "minimalTargetSizeGb": "my_minimalTargetSizeGb"
8686
- * // }
8687
- * }
8688
- *
8689
- * main().catch(e => {
8690
- * console.error(e);
8691
- * throw e;
8692
- * });
8693
- *
8694
- * ```
8695
6127
  *
8696
6128
  * @param params - Parameters for request
8697
6129
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -8788,54 +6220,6 @@ export namespace sqladmin_v1 {
8788
6220
 
8789
6221
  /**
8790
6222
  * Get Latest Recovery Time for a given instance.
8791
- * @example
8792
- * ```js
8793
- * // Before running the sample:
8794
- * // - Enable the API at:
8795
- * // https://console.developers.google.com/apis/api/sqladmin.googleapis.com
8796
- * // - Login into gcloud by running:
8797
- * // `$ gcloud auth application-default login`
8798
- * // - Install the npm module by running:
8799
- * // `$ npm install googleapis`
8800
- *
8801
- * const {google} = require('googleapis');
8802
- * const sqladmin = google.sqladmin('v1');
8803
- *
8804
- * async function main() {
8805
- * const auth = new google.auth.GoogleAuth({
8806
- * // Scopes can be specified either as an array or as a single, space-delimited string.
8807
- * scopes: [
8808
- * 'https://www.googleapis.com/auth/cloud-platform',
8809
- * 'https://www.googleapis.com/auth/sqlservice.admin',
8810
- * ],
8811
- * });
8812
- *
8813
- * // Acquire an auth client, and bind it to all future calls
8814
- * const authClient = await auth.getClient();
8815
- * google.options({auth: authClient});
8816
- *
8817
- * // Do the magic
8818
- * const res = await sql.projects.instances.getLatestRecoveryTime({
8819
- * // Cloud SQL instance ID. This does not include the project ID.
8820
- * instance: 'placeholder-value',
8821
- * // Project ID of the project that contains the instance.
8822
- * project: 'placeholder-value',
8823
- * });
8824
- * console.log(res.data);
8825
- *
8826
- * // Example response
8827
- * // {
8828
- * // "kind": "my_kind",
8829
- * // "latestRecoveryTime": "my_latestRecoveryTime"
8830
- * // }
8831
- * }
8832
- *
8833
- * main().catch(e => {
8834
- * console.error(e);
8835
- * throw e;
8836
- * });
8837
- *
8838
- * ```
8839
6223
  *
8840
6224
  * @param params - Parameters for request
8841
6225
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -8932,76 +6316,6 @@ export namespace sqladmin_v1 {
8932
6316
 
8933
6317
  /**
8934
6318
  * Perform Disk Shrink on primary instance.
8935
- * @example
8936
- * ```js
8937
- * // Before running the sample:
8938
- * // - Enable the API at:
8939
- * // https://console.developers.google.com/apis/api/sqladmin.googleapis.com
8940
- * // - Login into gcloud by running:
8941
- * // `$ gcloud auth application-default login`
8942
- * // - Install the npm module by running:
8943
- * // `$ npm install googleapis`
8944
- *
8945
- * const {google} = require('googleapis');
8946
- * const sqladmin = google.sqladmin('v1');
8947
- *
8948
- * async function main() {
8949
- * const auth = new google.auth.GoogleAuth({
8950
- * // Scopes can be specified either as an array or as a single, space-delimited string.
8951
- * scopes: [
8952
- * 'https://www.googleapis.com/auth/cloud-platform',
8953
- * 'https://www.googleapis.com/auth/sqlservice.admin',
8954
- * ],
8955
- * });
8956
- *
8957
- * // Acquire an auth client, and bind it to all future calls
8958
- * const authClient = await auth.getClient();
8959
- * google.options({auth: authClient});
8960
- *
8961
- * // Do the magic
8962
- * const res = await sql.projects.instances.performDiskShrink({
8963
- * // Cloud SQL instance ID. This does not include the project ID.
8964
- * instance: 'placeholder-value',
8965
- * // Project ID of the project that contains the instance.
8966
- * project: 'placeholder-value',
8967
- *
8968
- * // Request body metadata
8969
- * requestBody: {
8970
- * // request body parameters
8971
- * // {
8972
- * // "targetSizeGb": "my_targetSizeGb"
8973
- * // }
8974
- * },
8975
- * });
8976
- * console.log(res.data);
8977
- *
8978
- * // Example response
8979
- * // {
8980
- * // "backupContext": {},
8981
- * // "endTime": "my_endTime",
8982
- * // "error": {},
8983
- * // "exportContext": {},
8984
- * // "importContext": {},
8985
- * // "insertTime": "my_insertTime",
8986
- * // "kind": "my_kind",
8987
- * // "name": "my_name",
8988
- * // "operationType": "my_operationType",
8989
- * // "selfLink": "my_selfLink",
8990
- * // "startTime": "my_startTime",
8991
- * // "status": "my_status",
8992
- * // "targetId": "my_targetId",
8993
- * // "targetLink": "my_targetLink",
8994
- * // "targetProject": "my_targetProject",
8995
- * // "user": "my_user"
8996
- * // }
8997
- * }
8998
- *
8999
- * main().catch(e => {
9000
- * console.error(e);
9001
- * throw e;
9002
- * });
9003
- *
9004
- * ```
9005
6319
  *
9006
6320
  * @param params - Parameters for request
9007
6321
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -9089,76 +6403,6 @@ export namespace sqladmin_v1 {
9089
6403
 
9090
6404
  /**
9091
6405
  * Reschedules the maintenance on the given instance.
9092
- * @example
9093
- * ```js
9094
- * // Before running the sample:
9095
- * // - Enable the API at:
9096
- * // https://console.developers.google.com/apis/api/sqladmin.googleapis.com
9097
- * // - Login into gcloud by running:
9098
- * // `$ gcloud auth application-default login`
9099
- * // - Install the npm module by running:
9100
- * // `$ npm install googleapis`
9101
- *
9102
- * const {google} = require('googleapis');
9103
- * const sqladmin = google.sqladmin('v1');
9104
- *
9105
- * async function main() {
9106
- * const auth = new google.auth.GoogleAuth({
9107
- * // Scopes can be specified either as an array or as a single, space-delimited string.
9108
- * scopes: [
9109
- * 'https://www.googleapis.com/auth/cloud-platform',
9110
- * 'https://www.googleapis.com/auth/sqlservice.admin',
9111
- * ],
9112
- * });
9113
- *
9114
- * // Acquire an auth client, and bind it to all future calls
9115
- * const authClient = await auth.getClient();
9116
- * google.options({auth: authClient});
9117
- *
9118
- * // Do the magic
9119
- * const res = await sql.projects.instances.rescheduleMaintenance({
9120
- * // Cloud SQL instance ID. This does not include the project ID.
9121
- * instance: 'placeholder-value',
9122
- * // ID of the project that contains the instance.
9123
- * project: 'placeholder-value',
9124
- *
9125
- * // Request body metadata
9126
- * requestBody: {
9127
- * // request body parameters
9128
- * // {
9129
- * // "reschedule": {}
9130
- * // }
9131
- * },
9132
- * });
9133
- * console.log(res.data);
9134
- *
9135
- * // Example response
9136
- * // {
9137
- * // "backupContext": {},
9138
- * // "endTime": "my_endTime",
9139
- * // "error": {},
9140
- * // "exportContext": {},
9141
- * // "importContext": {},
9142
- * // "insertTime": "my_insertTime",
9143
- * // "kind": "my_kind",
9144
- * // "name": "my_name",
9145
- * // "operationType": "my_operationType",
9146
- * // "selfLink": "my_selfLink",
9147
- * // "startTime": "my_startTime",
9148
- * // "status": "my_status",
9149
- * // "targetId": "my_targetId",
9150
- * // "targetLink": "my_targetLink",
9151
- * // "targetProject": "my_targetProject",
9152
- * // "user": "my_user"
9153
- * // }
9154
- * }
9155
- *
9156
- * main().catch(e => {
9157
- * console.error(e);
9158
- * throw e;
9159
- * });
9160
- *
9161
- * ```
9162
6406
  *
9163
6407
  * @param params - Parameters for request
9164
6408
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -9248,74 +6492,6 @@ export namespace sqladmin_v1 {
9248
6492
 
9249
6493
  /**
9250
6494
  * Reset Replica Size to primary instance disk size.
9251
- * @example
9252
- * ```js
9253
- * // Before running the sample:
9254
- * // - Enable the API at:
9255
- * // https://console.developers.google.com/apis/api/sqladmin.googleapis.com
9256
- * // - Login into gcloud by running:
9257
- * // `$ gcloud auth application-default login`
9258
- * // - Install the npm module by running:
9259
- * // `$ npm install googleapis`
9260
- *
9261
- * const {google} = require('googleapis');
9262
- * const sqladmin = google.sqladmin('v1');
9263
- *
9264
- * async function main() {
9265
- * const auth = new google.auth.GoogleAuth({
9266
- * // Scopes can be specified either as an array or as a single, space-delimited string.
9267
- * scopes: [
9268
- * 'https://www.googleapis.com/auth/cloud-platform',
9269
- * 'https://www.googleapis.com/auth/sqlservice.admin',
9270
- * ],
9271
- * });
9272
- *
9273
- * // Acquire an auth client, and bind it to all future calls
9274
- * const authClient = await auth.getClient();
9275
- * google.options({auth: authClient});
9276
- *
9277
- * // Do the magic
9278
- * const res = await sql.projects.instances.resetReplicaSize({
9279
- * // Cloud SQL read replica instance name.
9280
- * instance: 'placeholder-value',
9281
- * // ID of the project that contains the read replica.
9282
- * project: 'placeholder-value',
9283
- *
9284
- * // Request body metadata
9285
- * requestBody: {
9286
- * // request body parameters
9287
- * // {}
9288
- * },
9289
- * });
9290
- * console.log(res.data);
9291
- *
9292
- * // Example response
9293
- * // {
9294
- * // "backupContext": {},
9295
- * // "endTime": "my_endTime",
9296
- * // "error": {},
9297
- * // "exportContext": {},
9298
- * // "importContext": {},
9299
- * // "insertTime": "my_insertTime",
9300
- * // "kind": "my_kind",
9301
- * // "name": "my_name",
9302
- * // "operationType": "my_operationType",
9303
- * // "selfLink": "my_selfLink",
9304
- * // "startTime": "my_startTime",
9305
- * // "status": "my_status",
9306
- * // "targetId": "my_targetId",
9307
- * // "targetLink": "my_targetLink",
9308
- * // "targetProject": "my_targetProject",
9309
- * // "user": "my_user"
9310
- * // }
9311
- * }
9312
- *
9313
- * main().catch(e => {
9314
- * console.error(e);
9315
- * throw e;
9316
- * });
9317
- *
9318
- * ```
9319
6495
  *
9320
6496
  * @param params - Parameters for request
9321
6497
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -9403,79 +6579,6 @@ export namespace sqladmin_v1 {
9403
6579
 
9404
6580
  /**
9405
6581
  * Start External primary instance migration.
9406
- * @example
9407
- * ```js
9408
- * // Before running the sample:
9409
- * // - Enable the API at:
9410
- * // https://console.developers.google.com/apis/api/sqladmin.googleapis.com
9411
- * // - Login into gcloud by running:
9412
- * // `$ gcloud auth application-default login`
9413
- * // - Install the npm module by running:
9414
- * // `$ npm install googleapis`
9415
- *
9416
- * const {google} = require('googleapis');
9417
- * const sqladmin = google.sqladmin('v1');
9418
- *
9419
- * async function main() {
9420
- * const auth = new google.auth.GoogleAuth({
9421
- * // Scopes can be specified either as an array or as a single, space-delimited string.
9422
- * scopes: [
9423
- * 'https://www.googleapis.com/auth/cloud-platform',
9424
- * 'https://www.googleapis.com/auth/sqlservice.admin',
9425
- * ],
9426
- * });
9427
- *
9428
- * // Acquire an auth client, and bind it to all future calls
9429
- * const authClient = await auth.getClient();
9430
- * google.options({auth: authClient});
9431
- *
9432
- * // Do the magic
9433
- * const res = await sql.projects.instances.startExternalSync({
9434
- * // Cloud SQL instance ID. This does not include the project ID.
9435
- * instance: 'placeholder-value',
9436
- * // ID of the project that contains the instance.
9437
- * project: 'placeholder-value',
9438
- *
9439
- * // Request body metadata
9440
- * requestBody: {
9441
- * // request body parameters
9442
- * // {
9443
- * // "mysqlSyncConfig": {},
9444
- * // "skipVerification": false,
9445
- * // "syncMode": "my_syncMode",
9446
- * // "syncParallelLevel": "my_syncParallelLevel"
9447
- * // }
9448
- * },
9449
- * });
9450
- * console.log(res.data);
9451
- *
9452
- * // Example response
9453
- * // {
9454
- * // "backupContext": {},
9455
- * // "endTime": "my_endTime",
9456
- * // "error": {},
9457
- * // "exportContext": {},
9458
- * // "importContext": {},
9459
- * // "insertTime": "my_insertTime",
9460
- * // "kind": "my_kind",
9461
- * // "name": "my_name",
9462
- * // "operationType": "my_operationType",
9463
- * // "selfLink": "my_selfLink",
9464
- * // "startTime": "my_startTime",
9465
- * // "status": "my_status",
9466
- * // "targetId": "my_targetId",
9467
- * // "targetLink": "my_targetLink",
9468
- * // "targetProject": "my_targetProject",
9469
- * // "user": "my_user"
9470
- * // }
9471
- * }
9472
- *
9473
- * main().catch(e => {
9474
- * console.error(e);
9475
- * throw e;
9476
- * });
9477
- *
9478
- * ```
9479
6582
  *
9480
6583
  * @param params - Parameters for request
9481
6584
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -9563,66 +6666,6 @@ export namespace sqladmin_v1 {
9563
6666
 
9564
6667
  /**
9565
6668
  * Verify External primary instance external sync settings.
9566
- * @example
9567
- * ```js
9568
- * // Before running the sample:
9569
- * // - Enable the API at:
9570
- * // https://console.developers.google.com/apis/api/sqladmin.googleapis.com
9571
- * // - Login into gcloud by running:
9572
- * // `$ gcloud auth application-default login`
9573
- * // - Install the npm module by running:
9574
- * // `$ npm install googleapis`
9575
- *
9576
- * const {google} = require('googleapis');
9577
- * const sqladmin = google.sqladmin('v1');
9578
- *
9579
- * async function main() {
9580
- * const auth = new google.auth.GoogleAuth({
9581
- * // Scopes can be specified either as an array or as a single, space-delimited string.
9582
- * scopes: [
9583
- * 'https://www.googleapis.com/auth/cloud-platform',
9584
- * 'https://www.googleapis.com/auth/sqlservice.admin',
9585
- * ],
9586
- * });
9587
- *
9588
- * // Acquire an auth client, and bind it to all future calls
9589
- * const authClient = await auth.getClient();
9590
- * google.options({auth: authClient});
9591
- *
9592
- * // Do the magic
9593
- * const res = await sql.projects.instances.verifyExternalSyncSettings({
9594
- * // Cloud SQL instance ID. This does not include the project ID.
9595
- * instance: 'placeholder-value',
9596
- * // Project ID of the project that contains the instance.
9597
- * project: 'placeholder-value',
9598
- *
9599
- * // Request body metadata
9600
- * requestBody: {
9601
- * // request body parameters
9602
- * // {
9603
- * // "mysqlSyncConfig": {},
9604
- * // "syncMode": "my_syncMode",
9605
- * // "verifyConnectionOnly": false,
9606
- * // "verifyReplicationOnly": false
9607
- * // }
9608
- * },
9609
- * });
9610
- * console.log(res.data);
9611
- *
9612
- * // Example response
9613
- * // {
9614
- * // "errors": [],
9615
- * // "kind": "my_kind",
9616
- * // "warnings": []
9617
- * // }
9618
- * }
9619
- *
9620
- * main().catch(e => {
9621
- * console.error(e);
9622
- * throw e;
9623
- * });
9624
- *
9625
- * ```
9626
6669
  *
9627
6670
  * @param params - Parameters for request
9628
6671
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -9830,70 +6873,6 @@ export namespace sqladmin_v1 {
9830
6873
 
9831
6874
  /**
9832
6875
  * 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.
9833
- * @example
9834
- * ```js
9835
- * // Before running the sample:
9836
- * // - Enable the API at:
9837
- * // https://console.developers.google.com/apis/api/sqladmin.googleapis.com
9838
- * // - Login into gcloud by running:
9839
- * // `$ gcloud auth application-default login`
9840
- * // - Install the npm module by running:
9841
- * // `$ npm install googleapis`
9842
- *
9843
- * const {google} = require('googleapis');
9844
- * const sqladmin = google.sqladmin('v1');
9845
- *
9846
- * async function main() {
9847
- * const auth = new google.auth.GoogleAuth({
9848
- * // Scopes can be specified either as an array or as a single, space-delimited string.
9849
- * scopes: [
9850
- * 'https://www.googleapis.com/auth/cloud-platform',
9851
- * 'https://www.googleapis.com/auth/sqlservice.admin',
9852
- * ],
9853
- * });
9854
- *
9855
- * // Acquire an auth client, and bind it to all future calls
9856
- * const authClient = await auth.getClient();
9857
- * google.options({auth: authClient});
9858
- *
9859
- * // Do the magic
9860
- * const res = await sql.sslCerts.createEphemeral({
9861
- * // Cloud SQL instance ID. This does not include the project ID.
9862
- * instance: 'placeholder-value',
9863
- * // Project ID of the Cloud SQL project.
9864
- * project: 'placeholder-value',
9865
- *
9866
- * // Request body metadata
9867
- * requestBody: {
9868
- * // request body parameters
9869
- * // {
9870
- * // "access_token": "my_access_token",
9871
- * // "public_key": "my_public_key"
9872
- * // }
9873
- * },
9874
- * });
9875
- * console.log(res.data);
9876
- *
9877
- * // Example response
9878
- * // {
9879
- * // "cert": "my_cert",
9880
- * // "certSerialNumber": "my_certSerialNumber",
9881
- * // "commonName": "my_commonName",
9882
- * // "createTime": "my_createTime",
9883
- * // "expirationTime": "my_expirationTime",
9884
- * // "instance": "my_instance",
9885
- * // "kind": "my_kind",
9886
- * // "selfLink": "my_selfLink",
9887
- * // "sha1Fingerprint": "my_sha1Fingerprint"
9888
- * // }
9889
- * }
9890
- *
9891
- * main().catch(e => {
9892
- * console.error(e);
9893
- * throw e;
9894
- * });
9895
- *
9896
- * ```
9897
6876
  *
9898
6877
  * @param params - Parameters for request
9899
6878
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -9981,70 +6960,6 @@ export namespace sqladmin_v1 {
9981
6960
 
9982
6961
  /**
9983
6962
  * Deletes the SSL certificate. For First Generation instances, the certificate remains valid until the instance is restarted.
9984
- * @example
9985
- * ```js
9986
- * // Before running the sample:
9987
- * // - Enable the API at:
9988
- * // https://console.developers.google.com/apis/api/sqladmin.googleapis.com
9989
- * // - Login into gcloud by running:
9990
- * // `$ gcloud auth application-default login`
9991
- * // - Install the npm module by running:
9992
- * // `$ npm install googleapis`
9993
- *
9994
- * const {google} = require('googleapis');
9995
- * const sqladmin = google.sqladmin('v1');
9996
- *
9997
- * async function main() {
9998
- * const auth = new google.auth.GoogleAuth({
9999
- * // Scopes can be specified either as an array or as a single, space-delimited string.
10000
- * scopes: [
10001
- * 'https://www.googleapis.com/auth/cloud-platform',
10002
- * 'https://www.googleapis.com/auth/sqlservice.admin',
10003
- * ],
10004
- * });
10005
- *
10006
- * // Acquire an auth client, and bind it to all future calls
10007
- * const authClient = await auth.getClient();
10008
- * google.options({auth: authClient});
10009
- *
10010
- * // Do the magic
10011
- * const res = await sql.sslCerts.delete({
10012
- * // Cloud SQL instance ID. This does not include the project ID.
10013
- * instance: 'placeholder-value',
10014
- * // Project ID of the project that contains the instance.
10015
- * project: 'placeholder-value',
10016
- * // Sha1 FingerPrint.
10017
- * sha1Fingerprint: 'placeholder-value',
10018
- * });
10019
- * console.log(res.data);
10020
- *
10021
- * // Example response
10022
- * // {
10023
- * // "backupContext": {},
10024
- * // "endTime": "my_endTime",
10025
- * // "error": {},
10026
- * // "exportContext": {},
10027
- * // "importContext": {},
10028
- * // "insertTime": "my_insertTime",
10029
- * // "kind": "my_kind",
10030
- * // "name": "my_name",
10031
- * // "operationType": "my_operationType",
10032
- * // "selfLink": "my_selfLink",
10033
- * // "startTime": "my_startTime",
10034
- * // "status": "my_status",
10035
- * // "targetId": "my_targetId",
10036
- * // "targetLink": "my_targetLink",
10037
- * // "targetProject": "my_targetProject",
10038
- * // "user": "my_user"
10039
- * // }
10040
- * }
10041
- *
10042
- * main().catch(e => {
10043
- * console.error(e);
10044
- * throw e;
10045
- * });
10046
- *
10047
- * ```
10048
6963
  *
10049
6964
  * @param params - Parameters for request
10050
6965
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -10131,63 +7046,6 @@ export namespace sqladmin_v1 {
10131
7046
 
10132
7047
  /**
10133
7048
  * 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.
10134
- * @example
10135
- * ```js
10136
- * // Before running the sample:
10137
- * // - Enable the API at:
10138
- * // https://console.developers.google.com/apis/api/sqladmin.googleapis.com
10139
- * // - Login into gcloud by running:
10140
- * // `$ gcloud auth application-default login`
10141
- * // - Install the npm module by running:
10142
- * // `$ npm install googleapis`
10143
- *
10144
- * const {google} = require('googleapis');
10145
- * const sqladmin = google.sqladmin('v1');
10146
- *
10147
- * async function main() {
10148
- * const auth = new google.auth.GoogleAuth({
10149
- * // Scopes can be specified either as an array or as a single, space-delimited string.
10150
- * scopes: [
10151
- * 'https://www.googleapis.com/auth/cloud-platform',
10152
- * 'https://www.googleapis.com/auth/sqlservice.admin',
10153
- * ],
10154
- * });
10155
- *
10156
- * // Acquire an auth client, and bind it to all future calls
10157
- * const authClient = await auth.getClient();
10158
- * google.options({auth: authClient});
10159
- *
10160
- * // Do the magic
10161
- * const res = await sql.sslCerts.get({
10162
- * // Cloud SQL instance ID. This does not include the project ID.
10163
- * instance: 'placeholder-value',
10164
- * // Project ID of the project that contains the instance.
10165
- * project: 'placeholder-value',
10166
- * // Sha1 FingerPrint.
10167
- * sha1Fingerprint: 'placeholder-value',
10168
- * });
10169
- * console.log(res.data);
10170
- *
10171
- * // Example response
10172
- * // {
10173
- * // "cert": "my_cert",
10174
- * // "certSerialNumber": "my_certSerialNumber",
10175
- * // "commonName": "my_commonName",
10176
- * // "createTime": "my_createTime",
10177
- * // "expirationTime": "my_expirationTime",
10178
- * // "instance": "my_instance",
10179
- * // "kind": "my_kind",
10180
- * // "selfLink": "my_selfLink",
10181
- * // "sha1Fingerprint": "my_sha1Fingerprint"
10182
- * // }
10183
- * }
10184
- *
10185
- * main().catch(e => {
10186
- * console.error(e);
10187
- * throw e;
10188
- * });
10189
- *
10190
- * ```
10191
7049
  *
10192
7050
  * @param params - Parameters for request
10193
7051
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -10274,64 +7132,6 @@ export namespace sqladmin_v1 {
10274
7132
 
10275
7133
  /**
10276
7134
  * 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.
10277
- * @example
10278
- * ```js
10279
- * // Before running the sample:
10280
- * // - Enable the API at:
10281
- * // https://console.developers.google.com/apis/api/sqladmin.googleapis.com
10282
- * // - Login into gcloud by running:
10283
- * // `$ gcloud auth application-default login`
10284
- * // - Install the npm module by running:
10285
- * // `$ npm install googleapis`
10286
- *
10287
- * const {google} = require('googleapis');
10288
- * const sqladmin = google.sqladmin('v1');
10289
- *
10290
- * async function main() {
10291
- * const auth = new google.auth.GoogleAuth({
10292
- * // Scopes can be specified either as an array or as a single, space-delimited string.
10293
- * scopes: [
10294
- * 'https://www.googleapis.com/auth/cloud-platform',
10295
- * 'https://www.googleapis.com/auth/sqlservice.admin',
10296
- * ],
10297
- * });
10298
- *
10299
- * // Acquire an auth client, and bind it to all future calls
10300
- * const authClient = await auth.getClient();
10301
- * google.options({auth: authClient});
10302
- *
10303
- * // Do the magic
10304
- * const res = await sql.sslCerts.insert({
10305
- * // Cloud SQL instance ID. This does not include the project ID.
10306
- * instance: 'placeholder-value',
10307
- * // Project ID of the project that contains the instance.
10308
- * project: 'placeholder-value',
10309
- *
10310
- * // Request body metadata
10311
- * requestBody: {
10312
- * // request body parameters
10313
- * // {
10314
- * // "commonName": "my_commonName"
10315
- * // }
10316
- * },
10317
- * });
10318
- * console.log(res.data);
10319
- *
10320
- * // Example response
10321
- * // {
10322
- * // "clientCert": {},
10323
- * // "kind": "my_kind",
10324
- * // "operation": {},
10325
- * // "serverCaCert": {}
10326
- * // }
10327
- * }
10328
- *
10329
- * main().catch(e => {
10330
- * console.error(e);
10331
- * throw e;
10332
- * });
10333
- *
10334
- * ```
10335
7135
  *
10336
7136
  * @param params - Parameters for request
10337
7137
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -10422,54 +7222,6 @@ export namespace sqladmin_v1 {
10422
7222
 
10423
7223
  /**
10424
7224
  * Lists all of the current SSL certificates for the instance.
10425
- * @example
10426
- * ```js
10427
- * // Before running the sample:
10428
- * // - Enable the API at:
10429
- * // https://console.developers.google.com/apis/api/sqladmin.googleapis.com
10430
- * // - Login into gcloud by running:
10431
- * // `$ gcloud auth application-default login`
10432
- * // - Install the npm module by running:
10433
- * // `$ npm install googleapis`
10434
- *
10435
- * const {google} = require('googleapis');
10436
- * const sqladmin = google.sqladmin('v1');
10437
- *
10438
- * async function main() {
10439
- * const auth = new google.auth.GoogleAuth({
10440
- * // Scopes can be specified either as an array or as a single, space-delimited string.
10441
- * scopes: [
10442
- * 'https://www.googleapis.com/auth/cloud-platform',
10443
- * 'https://www.googleapis.com/auth/sqlservice.admin',
10444
- * ],
10445
- * });
10446
- *
10447
- * // Acquire an auth client, and bind it to all future calls
10448
- * const authClient = await auth.getClient();
10449
- * google.options({auth: authClient});
10450
- *
10451
- * // Do the magic
10452
- * const res = await sql.sslCerts.list({
10453
- * // Cloud SQL instance ID. This does not include the project ID.
10454
- * instance: 'placeholder-value',
10455
- * // Project ID of the project that contains the instance.
10456
- * project: 'placeholder-value',
10457
- * });
10458
- * console.log(res.data);
10459
- *
10460
- * // Example response
10461
- * // {
10462
- * // "items": [],
10463
- * // "kind": "my_kind"
10464
- * // }
10465
- * }
10466
- *
10467
- * main().catch(e => {
10468
- * console.error(e);
10469
- * throw e;
10470
- * });
10471
- *
10472
- * ```
10473
7225
  *
10474
7226
  * @param params - Parameters for request
10475
7227
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -10637,52 +7389,6 @@ export namespace sqladmin_v1 {
10637
7389
 
10638
7390
  /**
10639
7391
  * Lists all available machine types (tiers) for Cloud SQL, for example, `db-custom-1-3840`. For more information, see https://cloud.google.com/sql/pricing.
10640
- * @example
10641
- * ```js
10642
- * // Before running the sample:
10643
- * // - Enable the API at:
10644
- * // https://console.developers.google.com/apis/api/sqladmin.googleapis.com
10645
- * // - Login into gcloud by running:
10646
- * // `$ gcloud auth application-default login`
10647
- * // - Install the npm module by running:
10648
- * // `$ npm install googleapis`
10649
- *
10650
- * const {google} = require('googleapis');
10651
- * const sqladmin = google.sqladmin('v1');
10652
- *
10653
- * async function main() {
10654
- * const auth = new google.auth.GoogleAuth({
10655
- * // Scopes can be specified either as an array or as a single, space-delimited string.
10656
- * scopes: [
10657
- * 'https://www.googleapis.com/auth/cloud-platform',
10658
- * 'https://www.googleapis.com/auth/sqlservice.admin',
10659
- * ],
10660
- * });
10661
- *
10662
- * // Acquire an auth client, and bind it to all future calls
10663
- * const authClient = await auth.getClient();
10664
- * google.options({auth: authClient});
10665
- *
10666
- * // Do the magic
10667
- * const res = await sql.tiers.list({
10668
- * // Project ID of the project for which to list tiers.
10669
- * project: 'placeholder-value',
10670
- * });
10671
- * console.log(res.data);
10672
- *
10673
- * // Example response
10674
- * // {
10675
- * // "items": [],
10676
- * // "kind": "my_kind"
10677
- * // }
10678
- * }
10679
- *
10680
- * main().catch(e => {
10681
- * console.error(e);
10682
- * throw e;
10683
- * });
10684
- *
10685
- * ```
10686
7392
  *
10687
7393
  * @param params - Parameters for request
10688
7394
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -10786,72 +7492,6 @@ export namespace sqladmin_v1 {
10786
7492
 
10787
7493
  /**
10788
7494
  * Deletes a user from a Cloud SQL instance.
10789
- * @example
10790
- * ```js
10791
- * // Before running the sample:
10792
- * // - Enable the API at:
10793
- * // https://console.developers.google.com/apis/api/sqladmin.googleapis.com
10794
- * // - Login into gcloud by running:
10795
- * // `$ gcloud auth application-default login`
10796
- * // - Install the npm module by running:
10797
- * // `$ npm install googleapis`
10798
- *
10799
- * const {google} = require('googleapis');
10800
- * const sqladmin = google.sqladmin('v1');
10801
- *
10802
- * async function main() {
10803
- * const auth = new google.auth.GoogleAuth({
10804
- * // Scopes can be specified either as an array or as a single, space-delimited string.
10805
- * scopes: [
10806
- * 'https://www.googleapis.com/auth/cloud-platform',
10807
- * 'https://www.googleapis.com/auth/sqlservice.admin',
10808
- * ],
10809
- * });
10810
- *
10811
- * // Acquire an auth client, and bind it to all future calls
10812
- * const authClient = await auth.getClient();
10813
- * google.options({auth: authClient});
10814
- *
10815
- * // Do the magic
10816
- * const res = await sql.users.delete({
10817
- * // Host of the user in the instance.
10818
- * host: 'placeholder-value',
10819
- * // Database instance ID. This does not include the project ID.
10820
- * instance: 'placeholder-value',
10821
- * // Name of the user in the instance.
10822
- * name: 'placeholder-value',
10823
- * // Project ID of the project that contains the instance.
10824
- * project: 'placeholder-value',
10825
- * });
10826
- * console.log(res.data);
10827
- *
10828
- * // Example response
10829
- * // {
10830
- * // "backupContext": {},
10831
- * // "endTime": "my_endTime",
10832
- * // "error": {},
10833
- * // "exportContext": {},
10834
- * // "importContext": {},
10835
- * // "insertTime": "my_insertTime",
10836
- * // "kind": "my_kind",
10837
- * // "name": "my_name",
10838
- * // "operationType": "my_operationType",
10839
- * // "selfLink": "my_selfLink",
10840
- * // "startTime": "my_startTime",
10841
- * // "status": "my_status",
10842
- * // "targetId": "my_targetId",
10843
- * // "targetLink": "my_targetLink",
10844
- * // "targetProject": "my_targetProject",
10845
- * // "user": "my_user"
10846
- * // }
10847
- * }
10848
- *
10849
- * main().catch(e => {
10850
- * console.error(e);
10851
- * throw e;
10852
- * });
10853
- *
10854
- * ```
10855
7495
  *
10856
7496
  * @param params - Parameters for request
10857
7497
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -10937,67 +7577,6 @@ export namespace sqladmin_v1 {
10937
7577
 
10938
7578
  /**
10939
7579
  * Retrieves a resource containing information about a user.
10940
- * @example
10941
- * ```js
10942
- * // Before running the sample:
10943
- * // - Enable the API at:
10944
- * // https://console.developers.google.com/apis/api/sqladmin.googleapis.com
10945
- * // - Login into gcloud by running:
10946
- * // `$ gcloud auth application-default login`
10947
- * // - Install the npm module by running:
10948
- * // `$ npm install googleapis`
10949
- *
10950
- * const {google} = require('googleapis');
10951
- * const sqladmin = google.sqladmin('v1');
10952
- *
10953
- * async function main() {
10954
- * const auth = new google.auth.GoogleAuth({
10955
- * // Scopes can be specified either as an array or as a single, space-delimited string.
10956
- * scopes: [
10957
- * 'https://www.googleapis.com/auth/cloud-platform',
10958
- * 'https://www.googleapis.com/auth/sqlservice.admin',
10959
- * ],
10960
- * });
10961
- *
10962
- * // Acquire an auth client, and bind it to all future calls
10963
- * const authClient = await auth.getClient();
10964
- * google.options({auth: authClient});
10965
- *
10966
- * // Do the magic
10967
- * const res = await sql.users.get({
10968
- * // Host of a user of the instance.
10969
- * host: 'placeholder-value',
10970
- * // Database instance ID. This does not include the project ID.
10971
- * instance: 'placeholder-value',
10972
- * // User of the instance.
10973
- * name: 'placeholder-value',
10974
- * // Project ID of the project that contains the instance.
10975
- * project: 'placeholder-value',
10976
- * });
10977
- * console.log(res.data);
10978
- *
10979
- * // Example response
10980
- * // {
10981
- * // "dualPasswordType": "my_dualPasswordType",
10982
- * // "etag": "my_etag",
10983
- * // "host": "my_host",
10984
- * // "instance": "my_instance",
10985
- * // "kind": "my_kind",
10986
- * // "name": "my_name",
10987
- * // "password": "my_password",
10988
- * // "passwordPolicy": {},
10989
- * // "project": "my_project",
10990
- * // "sqlserverUserDetails": {},
10991
- * // "type": "my_type"
10992
- * // }
10993
- * }
10994
- *
10995
- * main().catch(e => {
10996
- * console.error(e);
10997
- * throw e;
10998
- * });
10999
- *
11000
- * ```
11001
7580
  *
11002
7581
  * @param params - Parameters for request
11003
7582
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -11084,86 +7663,6 @@ export namespace sqladmin_v1 {
11084
7663
 
11085
7664
  /**
11086
7665
  * Creates a new user in a Cloud SQL instance.
11087
- * @example
11088
- * ```js
11089
- * // Before running the sample:
11090
- * // - Enable the API at:
11091
- * // https://console.developers.google.com/apis/api/sqladmin.googleapis.com
11092
- * // - Login into gcloud by running:
11093
- * // `$ gcloud auth application-default login`
11094
- * // - Install the npm module by running:
11095
- * // `$ npm install googleapis`
11096
- *
11097
- * const {google} = require('googleapis');
11098
- * const sqladmin = google.sqladmin('v1');
11099
- *
11100
- * async function main() {
11101
- * const auth = new google.auth.GoogleAuth({
11102
- * // Scopes can be specified either as an array or as a single, space-delimited string.
11103
- * scopes: [
11104
- * 'https://www.googleapis.com/auth/cloud-platform',
11105
- * 'https://www.googleapis.com/auth/sqlservice.admin',
11106
- * ],
11107
- * });
11108
- *
11109
- * // Acquire an auth client, and bind it to all future calls
11110
- * const authClient = await auth.getClient();
11111
- * google.options({auth: authClient});
11112
- *
11113
- * // Do the magic
11114
- * const res = await sql.users.insert({
11115
- * // Database instance ID. This does not include the project ID.
11116
- * instance: 'placeholder-value',
11117
- * // Project ID of the project that contains the instance.
11118
- * project: 'placeholder-value',
11119
- *
11120
- * // Request body metadata
11121
- * requestBody: {
11122
- * // request body parameters
11123
- * // {
11124
- * // "dualPasswordType": "my_dualPasswordType",
11125
- * // "etag": "my_etag",
11126
- * // "host": "my_host",
11127
- * // "instance": "my_instance",
11128
- * // "kind": "my_kind",
11129
- * // "name": "my_name",
11130
- * // "password": "my_password",
11131
- * // "passwordPolicy": {},
11132
- * // "project": "my_project",
11133
- * // "sqlserverUserDetails": {},
11134
- * // "type": "my_type"
11135
- * // }
11136
- * },
11137
- * });
11138
- * console.log(res.data);
11139
- *
11140
- * // Example response
11141
- * // {
11142
- * // "backupContext": {},
11143
- * // "endTime": "my_endTime",
11144
- * // "error": {},
11145
- * // "exportContext": {},
11146
- * // "importContext": {},
11147
- * // "insertTime": "my_insertTime",
11148
- * // "kind": "my_kind",
11149
- * // "name": "my_name",
11150
- * // "operationType": "my_operationType",
11151
- * // "selfLink": "my_selfLink",
11152
- * // "startTime": "my_startTime",
11153
- * // "status": "my_status",
11154
- * // "targetId": "my_targetId",
11155
- * // "targetLink": "my_targetLink",
11156
- * // "targetProject": "my_targetProject",
11157
- * // "user": "my_user"
11158
- * // }
11159
- * }
11160
- *
11161
- * main().catch(e => {
11162
- * console.error(e);
11163
- * throw e;
11164
- * });
11165
- *
11166
- * ```
11167
7666
  *
11168
7667
  * @param params - Parameters for request
11169
7668
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -11249,55 +7748,6 @@ export namespace sqladmin_v1 {
11249
7748
 
11250
7749
  /**
11251
7750
  * Lists users in the specified Cloud SQL instance.
11252
- * @example
11253
- * ```js
11254
- * // Before running the sample:
11255
- * // - Enable the API at:
11256
- * // https://console.developers.google.com/apis/api/sqladmin.googleapis.com
11257
- * // - Login into gcloud by running:
11258
- * // `$ gcloud auth application-default login`
11259
- * // - Install the npm module by running:
11260
- * // `$ npm install googleapis`
11261
- *
11262
- * const {google} = require('googleapis');
11263
- * const sqladmin = google.sqladmin('v1');
11264
- *
11265
- * async function main() {
11266
- * const auth = new google.auth.GoogleAuth({
11267
- * // Scopes can be specified either as an array or as a single, space-delimited string.
11268
- * scopes: [
11269
- * 'https://www.googleapis.com/auth/cloud-platform',
11270
- * 'https://www.googleapis.com/auth/sqlservice.admin',
11271
- * ],
11272
- * });
11273
- *
11274
- * // Acquire an auth client, and bind it to all future calls
11275
- * const authClient = await auth.getClient();
11276
- * google.options({auth: authClient});
11277
- *
11278
- * // Do the magic
11279
- * const res = await sql.users.list({
11280
- * // Database instance ID. This does not include the project ID.
11281
- * instance: 'placeholder-value',
11282
- * // Project ID of the project that contains the instance.
11283
- * project: 'placeholder-value',
11284
- * });
11285
- * console.log(res.data);
11286
- *
11287
- * // Example response
11288
- * // {
11289
- * // "items": [],
11290
- * // "kind": "my_kind",
11291
- * // "nextPageToken": "my_nextPageToken"
11292
- * // }
11293
- * }
11294
- *
11295
- * main().catch(e => {
11296
- * console.error(e);
11297
- * throw e;
11298
- * });
11299
- *
11300
- * ```
11301
7751
  *
11302
7752
  * @param params - Parameters for request
11303
7753
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -11386,90 +7836,6 @@ export namespace sqladmin_v1 {
11386
7836
 
11387
7837
  /**
11388
7838
  * Updates an existing user in a Cloud SQL instance.
11389
- * @example
11390
- * ```js
11391
- * // Before running the sample:
11392
- * // - Enable the API at:
11393
- * // https://console.developers.google.com/apis/api/sqladmin.googleapis.com
11394
- * // - Login into gcloud by running:
11395
- * // `$ gcloud auth application-default login`
11396
- * // - Install the npm module by running:
11397
- * // `$ npm install googleapis`
11398
- *
11399
- * const {google} = require('googleapis');
11400
- * const sqladmin = google.sqladmin('v1');
11401
- *
11402
- * async function main() {
11403
- * const auth = new google.auth.GoogleAuth({
11404
- * // Scopes can be specified either as an array or as a single, space-delimited string.
11405
- * scopes: [
11406
- * 'https://www.googleapis.com/auth/cloud-platform',
11407
- * 'https://www.googleapis.com/auth/sqlservice.admin',
11408
- * ],
11409
- * });
11410
- *
11411
- * // Acquire an auth client, and bind it to all future calls
11412
- * const authClient = await auth.getClient();
11413
- * google.options({auth: authClient});
11414
- *
11415
- * // Do the magic
11416
- * const res = await sql.users.update({
11417
- * // Optional. Host of the user in the instance.
11418
- * host: 'placeholder-value',
11419
- * // Database instance ID. This does not include the project ID.
11420
- * instance: 'placeholder-value',
11421
- * // Name of the user in the instance.
11422
- * name: 'placeholder-value',
11423
- * // Project ID of the project that contains the instance.
11424
- * project: 'placeholder-value',
11425
- *
11426
- * // Request body metadata
11427
- * requestBody: {
11428
- * // request body parameters
11429
- * // {
11430
- * // "dualPasswordType": "my_dualPasswordType",
11431
- * // "etag": "my_etag",
11432
- * // "host": "my_host",
11433
- * // "instance": "my_instance",
11434
- * // "kind": "my_kind",
11435
- * // "name": "my_name",
11436
- * // "password": "my_password",
11437
- * // "passwordPolicy": {},
11438
- * // "project": "my_project",
11439
- * // "sqlserverUserDetails": {},
11440
- * // "type": "my_type"
11441
- * // }
11442
- * },
11443
- * });
11444
- * console.log(res.data);
11445
- *
11446
- * // Example response
11447
- * // {
11448
- * // "backupContext": {},
11449
- * // "endTime": "my_endTime",
11450
- * // "error": {},
11451
- * // "exportContext": {},
11452
- * // "importContext": {},
11453
- * // "insertTime": "my_insertTime",
11454
- * // "kind": "my_kind",
11455
- * // "name": "my_name",
11456
- * // "operationType": "my_operationType",
11457
- * // "selfLink": "my_selfLink",
11458
- * // "startTime": "my_startTime",
11459
- * // "status": "my_status",
11460
- * // "targetId": "my_targetId",
11461
- * // "targetLink": "my_targetLink",
11462
- * // "targetProject": "my_targetProject",
11463
- * // "user": "my_user"
11464
- * // }
11465
- * }
11466
- *
11467
- * main().catch(e => {
11468
- * console.error(e);
11469
- * throw e;
11470
- * });
11471
- *
11472
- * ```
11473
7839
  *
11474
7840
  * @param params - Parameters for request
11475
7841
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.