@googleapis/sqladmin 10.0.0 → 10.1.0

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