@googleapis/sqladmin 39.0.0 → 41.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/v1beta4.ts CHANGED
@@ -124,6 +124,7 @@ export namespace sqladmin_v1beta4 {
124
124
  sslCerts: Resource$Sslcerts;
125
125
  tiers: Resource$Tiers;
126
126
  users: Resource$Users;
127
+ workloadCaptures: Resource$Workloadcaptures;
127
128
 
128
129
  constructor(options: GlobalOptions, google?: GoogleConfigurable) {
129
130
  this.context = {
@@ -145,6 +146,7 @@ export namespace sqladmin_v1beta4 {
145
146
  this.sslCerts = new Resource$Sslcerts(this.context);
146
147
  this.tiers = new Resource$Tiers(this.context);
147
148
  this.users = new Resource$Users(this.context);
149
+ this.workloadCaptures = new Resource$Workloadcaptures(this.context);
148
150
  }
149
151
  }
150
152
 
@@ -1235,6 +1237,10 @@ export namespace sqladmin_v1beta4 {
1235
1237
  * Disk encryption configuration for an instance.
1236
1238
  */
1237
1239
  export interface Schema$DiskEncryptionConfiguration {
1240
+ /**
1241
+ * Optional. Whether to enforce CMEK log encryption at source. When enforced, transaction logs are encrypted prior to being uploaded to Cloud Storage. If not enforced, then CMEK logs are encrypted by the Cloud Storage service.
1242
+ */
1243
+ cmekSourceLogEncryptionEnforced?: boolean | null;
1238
1244
  /**
1239
1245
  * Optional. If true, enables Confidential Mode for the instance's Hyperdisk Balanced volumes. Only supported for zonal C4A instances currently.
1240
1246
  */
@@ -2258,10 +2264,26 @@ export namespace sqladmin_v1beta4 {
2258
2264
  * The time this operation actually started in UTC timezone in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`.
2259
2265
  */
2260
2266
  startTime?: string | null;
2267
+ /**
2268
+ * The context for the `StartWorkloadCapture` operation, which contains details to start recording the workload (SQL queries) on a Cloud SQL instance.
2269
+ */
2270
+ startWorkloadCaptureContext?: Schema$StartWorkloadCaptureContext;
2271
+ /**
2272
+ * The context for the `StartWorkloadReplay` operation, which contains details about starting the execution of a captured workload (recorded read and write SQL queries) on a replay instance (the Cloud SQL instance where the recorded SQL queries are executed).
2273
+ */
2274
+ startWorkloadReplayContext?: Schema$StartWorkloadReplayContext;
2261
2275
  /**
2262
2276
  * The status of an operation.
2263
2277
  */
2264
2278
  status?: string | null;
2279
+ /**
2280
+ * The context for the `StopWorkloadCapture` operation, which contains details to stop recording the workload (SQL queries) on a Cloud SQL instance.
2281
+ */
2282
+ stopWorkloadCaptureContext?: Schema$StopWorkloadCaptureContext;
2283
+ /**
2284
+ * The context for the `StopWorkloadReplay` operation, which contains details about stopping the execution of a captured workload (recorded read and write SQL queries) on a replay instance.
2285
+ */
2286
+ stopWorkloadReplayContext?: Schema$StopWorkloadReplayContext;
2265
2287
  /**
2266
2288
  * Optional. The sub operation based on the operation type.
2267
2289
  */
@@ -3141,9 +3163,6 @@ export namespace sqladmin_v1beta4 {
3141
3163
  */
3142
3164
  operationId?: string | null;
3143
3165
  }
3144
- /**
3145
- * Execute SQL statements response.
3146
- */
3147
3166
  export interface Schema$SqlInstancesExecuteSqlResponse {
3148
3167
  /**
3149
3168
  * A list of notices and warnings generated during query execution. For PostgreSQL, this includes all notices and warnings. For MySQL, this includes warnings generated by the last executed statement. To retrieve all warnings for a multi-statement query, `SHOW WARNINGS` must be executed after each statement.
@@ -3408,6 +3427,42 @@ export namespace sqladmin_v1beta4 {
3408
3427
  */
3409
3428
  maintenanceType?: string | null;
3410
3429
  }
3430
+ /**
3431
+ * Request to start executing a captured workload on a replay instance (the Cloud SQL instance where the recorded SQL queries are executed).
3432
+ */
3433
+ export interface Schema$SqlWorkloadCapturesStartReplayRequest {
3434
+ /**
3435
+ * Optional. Contains details about the start workload replay operation.
3436
+ */
3437
+ startWorkloadReplayContext?: Schema$StartWorkloadReplayContext;
3438
+ }
3439
+ /**
3440
+ * Request to start recording traffic from the primary instance (captured workload).
3441
+ */
3442
+ export interface Schema$SqlWorkloadCapturesStartRequest {
3443
+ /**
3444
+ * Optional. Contains details about the start workload capture operation.
3445
+ */
3446
+ startWorkloadCaptureContext?: Schema$StartWorkloadCaptureContext;
3447
+ }
3448
+ /**
3449
+ * Request to stop executing a captured workload on a replay instance.
3450
+ */
3451
+ export interface Schema$SqlWorkloadCapturesStopReplayRequest {
3452
+ /**
3453
+ * Optional. Contains details about the stop workload replay operation.
3454
+ */
3455
+ stopWorkloadReplayContext?: Schema$StopWorkloadReplayContext;
3456
+ }
3457
+ /**
3458
+ * Request to stop recording traffic from the primary instance.
3459
+ */
3460
+ export interface Schema$SqlWorkloadCapturesStopRequest {
3461
+ /**
3462
+ * Optional. Contains details about the stop workload capture operation.
3463
+ */
3464
+ stopWorkloadCaptureContext?: Schema$StopWorkloadCaptureContext;
3465
+ }
3411
3466
  /**
3412
3467
  * SslCerts Resource
3413
3468
  */
@@ -3518,6 +3573,32 @@ export namespace sqladmin_v1beta4 {
3518
3573
  */
3519
3574
  kind?: string | null;
3520
3575
  }
3576
+ /**
3577
+ * The context for the `StartWorkloadCapture` operation, which contains details to start recording the workload (SQL queries) on a Cloud SQL instance.
3578
+ */
3579
+ export interface Schema$StartWorkloadCaptureContext {
3580
+ /**
3581
+ * Optional. If true, the captured workload is simultaneously executed on a separate, ephemeral Cloud SQL instance. This "live replay" instance is automatically provisioned and is cloned from the source instance. If false (the default), the workload is only stored and no live replay occurs. It can be replayed later using a separate `StartWorkloadReplayRequest`. Note: The workload capture runs continuously until an explicit `StopWorkloadCaptureRequest` is issued.
3582
+ */
3583
+ enableLiveReplay?: boolean | null;
3584
+ /**
3585
+ * Optional. Required if `enable_live_replay` is true. The name of the Cloud SQL instance where the captured workload (SQL queries) is being executed, excluding the project ID (for example, `my-replay-instance`). The instance name must start with a lowercase letter and contain only lowercase letters, numbers, and hyphens. The combined length of `project-ID:instance-name` must be 98 characters or less.
3586
+ */
3587
+ replayInstance?: string | null;
3588
+ }
3589
+ /**
3590
+ * The context for the `StartWorkloadReplay` operation, which contains details about starting the execution of a captured workload (recorded read and write SQL queries) on a replay instance (the Cloud SQL instance where the recorded SQL queries are executed).
3591
+ */
3592
+ export interface Schema$StartWorkloadReplayContext {
3593
+ /**
3594
+ * Required. The name of the Cloud SQL instance where the captured workload (SQL queries) is being executed, excluding the project ID (for example, `my-replay-instance`). The instance name must start with a lowercase letter and contain only lowercase letters, numbers, and hyphens. The combined length of `project-ID:instance-name` must be 98 characters or less.
3595
+ */
3596
+ replayInstance?: string | null;
3597
+ /**
3598
+ * Output only. The ID of the workload to start executing on the replay instance. Each workload capture generates a unique ID in the format `workload-` (for example, `workload-1786046400`). Use this ID to start executing the recorded SQL queries.
3599
+ */
3600
+ workloadId?: string | null;
3601
+ }
3521
3602
  /**
3522
3603
  * The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors).
3523
3604
  */
@@ -3535,6 +3616,28 @@ export namespace sqladmin_v1beta4 {
3535
3616
  */
3536
3617
  message?: string | null;
3537
3618
  }
3619
+ /**
3620
+ * The context for the `StopWorkloadCapture` operation, which contains details to stop recording the workload (SQL queries) on a Cloud SQL instance.
3621
+ */
3622
+ export interface Schema$StopWorkloadCaptureContext {
3623
+ /**
3624
+ * Optional. If true, immediately aborts the concurrent live replay and discards any un-replayed traffic alongside stopping the capture. If false (the default), the capture stops recording new traffic, but the live replay will continue executing until the entire backlog of captured traffic has been replayed.
3625
+ */
3626
+ abortLiveReplay?: boolean | null;
3627
+ }
3628
+ /**
3629
+ * The context for the `StopWorkloadReplay` operation, which contains details about stopping the execution of a captured workload (recorded read and write SQL queries) on a replay instance.
3630
+ */
3631
+ export interface Schema$StopWorkloadReplayContext {
3632
+ /**
3633
+ * Required. The name of the Cloud SQL instance where the captured workload (SQL queries) is being executed, excluding the project ID (for example, `my-replay-instance`). The instance name must start with a lowercase letter and contain only lowercase letters, numbers, and hyphens. The combined length of `project-ID:instance-name` must be 98 characters or less.
3634
+ */
3635
+ replayInstance?: string | null;
3636
+ /**
3637
+ * Output only. The ID of the workload to stop executing on the replay instance. Each workload capture generates a unique ID in the format `workload-` (for example, `workload-1786046400`). Use this ID to stop executing the recorded SQL queries.
3638
+ */
3639
+ workloadId?: string | null;
3640
+ }
3538
3641
  /**
3539
3642
  * Request message for switching over a `BlueGreenDeployment` resource.
3540
3643
  */
@@ -3751,6 +3854,52 @@ export namespace sqladmin_v1beta4 {
3751
3854
  */
3752
3855
  value?: string | null;
3753
3856
  }
3857
+ /**
3858
+ * Captured workload for an instance.
3859
+ */
3860
+ export interface Schema$WorkloadCapture {
3861
+ /**
3862
+ * Output only. The end time of the workload capture.
3863
+ */
3864
+ endTime?: string | null;
3865
+ /**
3866
+ * Output only. The name of the replay instance, if live replay was enabled.
3867
+ */
3868
+ replayInstance?: string | null;
3869
+ /**
3870
+ * Output only. The retention period in days for the captured workload.
3871
+ */
3872
+ retentionDays?: number | null;
3873
+ /**
3874
+ * Output only. The name of the source instance.
3875
+ */
3876
+ sourceInstance?: string | null;
3877
+ /**
3878
+ * Output only. The start time of the workload capture.
3879
+ */
3880
+ startTime?: string | null;
3881
+ /**
3882
+ * Output only. The state of the workload capture.
3883
+ */
3884
+ workloadCaptureState?: string | null;
3885
+ /**
3886
+ * Output only. The ID of the captured workload.
3887
+ */
3888
+ workloadId?: string | null;
3889
+ }
3890
+ /**
3891
+ * Instance list captured workloads response.
3892
+ */
3893
+ export interface Schema$WorkloadCapturesListResponse {
3894
+ /**
3895
+ * This is always `sql#workloadCapturesList`.
3896
+ */
3897
+ kind?: string | null;
3898
+ /**
3899
+ * List of captured workloads for the instance.
3900
+ */
3901
+ workloadCaptures?: Schema$WorkloadCapture[];
3902
+ }
3754
3903
 
3755
3904
  export class Resource$Backupruns {
3756
3905
  context: APIRequestContext;
@@ -3817,7 +3966,11 @@ export namespace sqladmin_v1beta4 {
3817
3966
  * // "preCheckMajorVersionUpgradeContext": {},
3818
3967
  * // "selfLink": "my_selfLink",
3819
3968
  * // "startTime": "my_startTime",
3969
+ * // "startWorkloadCaptureContext": {},
3970
+ * // "startWorkloadReplayContext": {},
3820
3971
  * // "status": "my_status",
3972
+ * // "stopWorkloadCaptureContext": {},
3973
+ * // "stopWorkloadReplayContext": {},
3821
3974
  * // "subOperationType": {},
3822
3975
  * // "targetId": "my_targetId",
3823
3976
  * // "targetLink": "my_targetLink",
@@ -4163,7 +4316,11 @@ export namespace sqladmin_v1beta4 {
4163
4316
  * // "preCheckMajorVersionUpgradeContext": {},
4164
4317
  * // "selfLink": "my_selfLink",
4165
4318
  * // "startTime": "my_startTime",
4319
+ * // "startWorkloadCaptureContext": {},
4320
+ * // "startWorkloadReplayContext": {},
4166
4321
  * // "status": "my_status",
4322
+ * // "stopWorkloadCaptureContext": {},
4323
+ * // "stopWorkloadReplayContext": {},
4167
4324
  * // "subOperationType": {},
4168
4325
  * // "targetId": "my_targetId",
4169
4326
  * // "targetLink": "my_targetLink",
@@ -4568,7 +4725,11 @@ export namespace sqladmin_v1beta4 {
4568
4725
  * // "preCheckMajorVersionUpgradeContext": {},
4569
4726
  * // "selfLink": "my_selfLink",
4570
4727
  * // "startTime": "my_startTime",
4728
+ * // "startWorkloadCaptureContext": {},
4729
+ * // "startWorkloadReplayContext": {},
4571
4730
  * // "status": "my_status",
4731
+ * // "stopWorkloadCaptureContext": {},
4732
+ * // "stopWorkloadReplayContext": {},
4572
4733
  * // "subOperationType": {},
4573
4734
  * // "targetId": "my_targetId",
4574
4735
  * // "targetLink": "my_targetLink",
@@ -4726,7 +4887,11 @@ export namespace sqladmin_v1beta4 {
4726
4887
  * // "preCheckMajorVersionUpgradeContext": {},
4727
4888
  * // "selfLink": "my_selfLink",
4728
4889
  * // "startTime": "my_startTime",
4890
+ * // "startWorkloadCaptureContext": {},
4891
+ * // "startWorkloadReplayContext": {},
4729
4892
  * // "status": "my_status",
4893
+ * // "stopWorkloadCaptureContext": {},
4894
+ * // "stopWorkloadReplayContext": {},
4730
4895
  * // "subOperationType": {},
4731
4896
  * // "targetId": "my_targetId",
4732
4897
  * // "targetLink": "my_targetLink",
@@ -5227,7 +5392,11 @@ export namespace sqladmin_v1beta4 {
5227
5392
  * // "preCheckMajorVersionUpgradeContext": {},
5228
5393
  * // "selfLink": "my_selfLink",
5229
5394
  * // "startTime": "my_startTime",
5395
+ * // "startWorkloadCaptureContext": {},
5396
+ * // "startWorkloadReplayContext": {},
5230
5397
  * // "status": "my_status",
5398
+ * // "stopWorkloadCaptureContext": {},
5399
+ * // "stopWorkloadReplayContext": {},
5231
5400
  * // "subOperationType": {},
5232
5401
  * // "targetId": "my_targetId",
5233
5402
  * // "targetLink": "my_targetLink",
@@ -5470,7 +5639,11 @@ export namespace sqladmin_v1beta4 {
5470
5639
  * // "preCheckMajorVersionUpgradeContext": {},
5471
5640
  * // "selfLink": "my_selfLink",
5472
5641
  * // "startTime": "my_startTime",
5642
+ * // "startWorkloadCaptureContext": {},
5643
+ * // "startWorkloadReplayContext": {},
5473
5644
  * // "status": "my_status",
5645
+ * // "stopWorkloadCaptureContext": {},
5646
+ * // "stopWorkloadReplayContext": {},
5474
5647
  * // "subOperationType": {},
5475
5648
  * // "targetId": "my_targetId",
5476
5649
  * // "targetLink": "my_targetLink",
@@ -5629,7 +5802,11 @@ export namespace sqladmin_v1beta4 {
5629
5802
  * // "preCheckMajorVersionUpgradeContext": {},
5630
5803
  * // "selfLink": "my_selfLink",
5631
5804
  * // "startTime": "my_startTime",
5805
+ * // "startWorkloadCaptureContext": {},
5806
+ * // "startWorkloadReplayContext": {},
5632
5807
  * // "status": "my_status",
5808
+ * // "stopWorkloadCaptureContext": {},
5809
+ * // "stopWorkloadReplayContext": {},
5633
5810
  * // "subOperationType": {},
5634
5811
  * // "targetId": "my_targetId",
5635
5812
  * // "targetLink": "my_targetLink",
@@ -6104,7 +6281,11 @@ export namespace sqladmin_v1beta4 {
6104
6281
  * // "preCheckMajorVersionUpgradeContext": {},
6105
6282
  * // "selfLink": "my_selfLink",
6106
6283
  * // "startTime": "my_startTime",
6284
+ * // "startWorkloadCaptureContext": {},
6285
+ * // "startWorkloadReplayContext": {},
6107
6286
  * // "status": "my_status",
6287
+ * // "stopWorkloadCaptureContext": {},
6288
+ * // "stopWorkloadReplayContext": {},
6108
6289
  * // "subOperationType": {},
6109
6290
  * // "targetId": "my_targetId",
6110
6291
  * // "targetLink": "my_targetLink",
@@ -6862,7 +7043,11 @@ export namespace sqladmin_v1beta4 {
6862
7043
  * // "preCheckMajorVersionUpgradeContext": {},
6863
7044
  * // "selfLink": "my_selfLink",
6864
7045
  * // "startTime": "my_startTime",
7046
+ * // "startWorkloadCaptureContext": {},
7047
+ * // "startWorkloadReplayContext": {},
6865
7048
  * // "status": "my_status",
7049
+ * // "stopWorkloadCaptureContext": {},
7050
+ * // "stopWorkloadReplayContext": {},
6866
7051
  * // "subOperationType": {},
6867
7052
  * // "targetId": "my_targetId",
6868
7053
  * // "targetLink": "my_targetLink",
@@ -7191,7 +7376,11 @@ export namespace sqladmin_v1beta4 {
7191
7376
  * // "preCheckMajorVersionUpgradeContext": {},
7192
7377
  * // "selfLink": "my_selfLink",
7193
7378
  * // "startTime": "my_startTime",
7379
+ * // "startWorkloadCaptureContext": {},
7380
+ * // "startWorkloadReplayContext": {},
7194
7381
  * // "status": "my_status",
7382
+ * // "stopWorkloadCaptureContext": {},
7383
+ * // "stopWorkloadReplayContext": {},
7195
7384
  * // "subOperationType": {},
7196
7385
  * // "targetId": "my_targetId",
7197
7386
  * // "targetLink": "my_targetLink",
@@ -7515,7 +7704,11 @@ export namespace sqladmin_v1beta4 {
7515
7704
  * // "preCheckMajorVersionUpgradeContext": {},
7516
7705
  * // "selfLink": "my_selfLink",
7517
7706
  * // "startTime": "my_startTime",
7707
+ * // "startWorkloadCaptureContext": {},
7708
+ * // "startWorkloadReplayContext": {},
7518
7709
  * // "status": "my_status",
7710
+ * // "stopWorkloadCaptureContext": {},
7711
+ * // "stopWorkloadReplayContext": {},
7519
7712
  * // "subOperationType": {},
7520
7713
  * // "targetId": "my_targetId",
7521
7714
  * // "targetLink": "my_targetLink",
@@ -7694,7 +7887,11 @@ export namespace sqladmin_v1beta4 {
7694
7887
  * // "preCheckMajorVersionUpgradeContext": {},
7695
7888
  * // "selfLink": "my_selfLink",
7696
7889
  * // "startTime": "my_startTime",
7890
+ * // "startWorkloadCaptureContext": {},
7891
+ * // "startWorkloadReplayContext": {},
7697
7892
  * // "status": "my_status",
7893
+ * // "stopWorkloadCaptureContext": {},
7894
+ * // "stopWorkloadReplayContext": {},
7698
7895
  * // "subOperationType": {},
7699
7896
  * // "targetId": "my_targetId",
7700
7897
  * // "targetLink": "my_targetLink",
@@ -8297,7 +8494,11 @@ export namespace sqladmin_v1beta4 {
8297
8494
  * // "preCheckMajorVersionUpgradeContext": {},
8298
8495
  * // "selfLink": "my_selfLink",
8299
8496
  * // "startTime": "my_startTime",
8497
+ * // "startWorkloadCaptureContext": {},
8498
+ * // "startWorkloadReplayContext": {},
8300
8499
  * // "status": "my_status",
8500
+ * // "stopWorkloadCaptureContext": {},
8501
+ * // "stopWorkloadReplayContext": {},
8301
8502
  * // "subOperationType": {},
8302
8503
  * // "targetId": "my_targetId",
8303
8504
  * // "targetLink": "my_targetLink",
@@ -8461,7 +8662,11 @@ export namespace sqladmin_v1beta4 {
8461
8662
  * // "preCheckMajorVersionUpgradeContext": {},
8462
8663
  * // "selfLink": "my_selfLink",
8463
8664
  * // "startTime": "my_startTime",
8665
+ * // "startWorkloadCaptureContext": {},
8666
+ * // "startWorkloadReplayContext": {},
8464
8667
  * // "status": "my_status",
8668
+ * // "stopWorkloadCaptureContext": {},
8669
+ * // "stopWorkloadReplayContext": {},
8465
8670
  * // "subOperationType": {},
8466
8671
  * // "targetId": "my_targetId",
8467
8672
  * // "targetLink": "my_targetLink",
@@ -8623,7 +8828,11 @@ export namespace sqladmin_v1beta4 {
8623
8828
  * // "preCheckMajorVersionUpgradeContext": {},
8624
8829
  * // "selfLink": "my_selfLink",
8625
8830
  * // "startTime": "my_startTime",
8831
+ * // "startWorkloadCaptureContext": {},
8832
+ * // "startWorkloadReplayContext": {},
8626
8833
  * // "status": "my_status",
8834
+ * // "stopWorkloadCaptureContext": {},
8835
+ * // "stopWorkloadReplayContext": {},
8627
8836
  * // "subOperationType": {},
8628
8837
  * // "targetId": "my_targetId",
8629
8838
  * // "targetLink": "my_targetLink",
@@ -8795,7 +9004,11 @@ export namespace sqladmin_v1beta4 {
8795
9004
  * // "preCheckMajorVersionUpgradeContext": {},
8796
9005
  * // "selfLink": "my_selfLink",
8797
9006
  * // "startTime": "my_startTime",
9007
+ * // "startWorkloadCaptureContext": {},
9008
+ * // "startWorkloadReplayContext": {},
8798
9009
  * // "status": "my_status",
9010
+ * // "stopWorkloadCaptureContext": {},
9011
+ * // "stopWorkloadReplayContext": {},
8799
9012
  * // "subOperationType": {},
8800
9013
  * // "targetId": "my_targetId",
8801
9014
  * // "targetLink": "my_targetLink",
@@ -8964,7 +9177,11 @@ export namespace sqladmin_v1beta4 {
8964
9177
  * // "preCheckMajorVersionUpgradeContext": {},
8965
9178
  * // "selfLink": "my_selfLink",
8966
9179
  * // "startTime": "my_startTime",
9180
+ * // "startWorkloadCaptureContext": {},
9181
+ * // "startWorkloadReplayContext": {},
8967
9182
  * // "status": "my_status",
9183
+ * // "stopWorkloadCaptureContext": {},
9184
+ * // "stopWorkloadReplayContext": {},
8968
9185
  * // "subOperationType": {},
8969
9186
  * // "targetId": "my_targetId",
8970
9187
  * // "targetLink": "my_targetLink",
@@ -9132,7 +9349,11 @@ export namespace sqladmin_v1beta4 {
9132
9349
  * // "preCheckMajorVersionUpgradeContext": {},
9133
9350
  * // "selfLink": "my_selfLink",
9134
9351
  * // "startTime": "my_startTime",
9352
+ * // "startWorkloadCaptureContext": {},
9353
+ * // "startWorkloadReplayContext": {},
9135
9354
  * // "status": "my_status",
9355
+ * // "stopWorkloadCaptureContext": {},
9356
+ * // "stopWorkloadReplayContext": {},
9136
9357
  * // "subOperationType": {},
9137
9358
  * // "targetId": "my_targetId",
9138
9359
  * // "targetLink": "my_targetLink",
@@ -9301,7 +9522,11 @@ export namespace sqladmin_v1beta4 {
9301
9522
  * // "preCheckMajorVersionUpgradeContext": {},
9302
9523
  * // "selfLink": "my_selfLink",
9303
9524
  * // "startTime": "my_startTime",
9525
+ * // "startWorkloadCaptureContext": {},
9526
+ * // "startWorkloadReplayContext": {},
9304
9527
  * // "status": "my_status",
9528
+ * // "stopWorkloadCaptureContext": {},
9529
+ * // "stopWorkloadReplayContext": {},
9305
9530
  * // "subOperationType": {},
9306
9531
  * // "targetId": "my_targetId",
9307
9532
  * // "targetLink": "my_targetLink",
@@ -9636,7 +9861,11 @@ export namespace sqladmin_v1beta4 {
9636
9861
  * // "preCheckMajorVersionUpgradeContext": {},
9637
9862
  * // "selfLink": "my_selfLink",
9638
9863
  * // "startTime": "my_startTime",
9864
+ * // "startWorkloadCaptureContext": {},
9865
+ * // "startWorkloadReplayContext": {},
9639
9866
  * // "status": "my_status",
9867
+ * // "stopWorkloadCaptureContext": {},
9868
+ * // "stopWorkloadReplayContext": {},
9640
9869
  * // "subOperationType": {},
9641
9870
  * // "targetId": "my_targetId",
9642
9871
  * // "targetLink": "my_targetLink",
@@ -9805,7 +10034,11 @@ export namespace sqladmin_v1beta4 {
9805
10034
  * // "preCheckMajorVersionUpgradeContext": {},
9806
10035
  * // "selfLink": "my_selfLink",
9807
10036
  * // "startTime": "my_startTime",
10037
+ * // "startWorkloadCaptureContext": {},
10038
+ * // "startWorkloadReplayContext": {},
9808
10039
  * // "status": "my_status",
10040
+ * // "stopWorkloadCaptureContext": {},
10041
+ * // "stopWorkloadReplayContext": {},
9809
10042
  * // "subOperationType": {},
9810
10043
  * // "targetId": "my_targetId",
9811
10044
  * // "targetLink": "my_targetLink",
@@ -10166,7 +10399,11 @@ export namespace sqladmin_v1beta4 {
10166
10399
  * // "preCheckMajorVersionUpgradeContext": {},
10167
10400
  * // "selfLink": "my_selfLink",
10168
10401
  * // "startTime": "my_startTime",
10402
+ * // "startWorkloadCaptureContext": {},
10403
+ * // "startWorkloadReplayContext": {},
10169
10404
  * // "status": "my_status",
10405
+ * // "stopWorkloadCaptureContext": {},
10406
+ * // "stopWorkloadReplayContext": {},
10170
10407
  * // "subOperationType": {},
10171
10408
  * // "targetId": "my_targetId",
10172
10409
  * // "targetLink": "my_targetLink",
@@ -10385,7 +10622,11 @@ export namespace sqladmin_v1beta4 {
10385
10622
  * // "preCheckMajorVersionUpgradeContext": {},
10386
10623
  * // "selfLink": "my_selfLink",
10387
10624
  * // "startTime": "my_startTime",
10625
+ * // "startWorkloadCaptureContext": {},
10626
+ * // "startWorkloadReplayContext": {},
10388
10627
  * // "status": "my_status",
10628
+ * // "stopWorkloadCaptureContext": {},
10629
+ * // "stopWorkloadReplayContext": {},
10389
10630
  * // "subOperationType": {},
10390
10631
  * // "targetId": "my_targetId",
10391
10632
  * // "targetLink": "my_targetLink",
@@ -11224,7 +11465,11 @@ export namespace sqladmin_v1beta4 {
11224
11465
  * // "preCheckMajorVersionUpgradeContext": {},
11225
11466
  * // "selfLink": "my_selfLink",
11226
11467
  * // "startTime": "my_startTime",
11468
+ * // "startWorkloadCaptureContext": {},
11469
+ * // "startWorkloadReplayContext": {},
11227
11470
  * // "status": "my_status",
11471
+ * // "stopWorkloadCaptureContext": {},
11472
+ * // "stopWorkloadReplayContext": {},
11228
11473
  * // "subOperationType": {},
11229
11474
  * // "targetId": "my_targetId",
11230
11475
  * // "targetLink": "my_targetLink",
@@ -11397,7 +11642,11 @@ export namespace sqladmin_v1beta4 {
11397
11642
  * // "preCheckMajorVersionUpgradeContext": {},
11398
11643
  * // "selfLink": "my_selfLink",
11399
11644
  * // "startTime": "my_startTime",
11645
+ * // "startWorkloadCaptureContext": {},
11646
+ * // "startWorkloadReplayContext": {},
11400
11647
  * // "status": "my_status",
11648
+ * // "stopWorkloadCaptureContext": {},
11649
+ * // "stopWorkloadReplayContext": {},
11401
11650
  * // "subOperationType": {},
11402
11651
  * // "targetId": "my_targetId",
11403
11652
  * // "targetLink": "my_targetLink",
@@ -11566,7 +11815,11 @@ export namespace sqladmin_v1beta4 {
11566
11815
  * // "preCheckMajorVersionUpgradeContext": {},
11567
11816
  * // "selfLink": "my_selfLink",
11568
11817
  * // "startTime": "my_startTime",
11818
+ * // "startWorkloadCaptureContext": {},
11819
+ * // "startWorkloadReplayContext": {},
11569
11820
  * // "status": "my_status",
11821
+ * // "stopWorkloadCaptureContext": {},
11822
+ * // "stopWorkloadReplayContext": {},
11570
11823
  * // "subOperationType": {},
11571
11824
  * // "targetId": "my_targetId",
11572
11825
  * // "targetLink": "my_targetLink",
@@ -11732,7 +11985,11 @@ export namespace sqladmin_v1beta4 {
11732
11985
  * // "preCheckMajorVersionUpgradeContext": {},
11733
11986
  * // "selfLink": "my_selfLink",
11734
11987
  * // "startTime": "my_startTime",
11988
+ * // "startWorkloadCaptureContext": {},
11989
+ * // "startWorkloadReplayContext": {},
11735
11990
  * // "status": "my_status",
11991
+ * // "stopWorkloadCaptureContext": {},
11992
+ * // "stopWorkloadReplayContext": {},
11736
11993
  * // "subOperationType": {},
11737
11994
  * // "targetId": "my_targetId",
11738
11995
  * // "targetLink": "my_targetLink",
@@ -11902,7 +12159,11 @@ export namespace sqladmin_v1beta4 {
11902
12159
  * // "preCheckMajorVersionUpgradeContext": {},
11903
12160
  * // "selfLink": "my_selfLink",
11904
12161
  * // "startTime": "my_startTime",
12162
+ * // "startWorkloadCaptureContext": {},
12163
+ * // "startWorkloadReplayContext": {},
11905
12164
  * // "status": "my_status",
12165
+ * // "stopWorkloadCaptureContext": {},
12166
+ * // "stopWorkloadReplayContext": {},
11906
12167
  * // "subOperationType": {},
11907
12168
  * // "targetId": "my_targetId",
11908
12169
  * // "targetLink": "my_targetLink",
@@ -12220,7 +12481,11 @@ export namespace sqladmin_v1beta4 {
12220
12481
  * // "preCheckMajorVersionUpgradeContext": {},
12221
12482
  * // "selfLink": "my_selfLink",
12222
12483
  * // "startTime": "my_startTime",
12484
+ * // "startWorkloadCaptureContext": {},
12485
+ * // "startWorkloadReplayContext": {},
12223
12486
  * // "status": "my_status",
12487
+ * // "stopWorkloadCaptureContext": {},
12488
+ * // "stopWorkloadReplayContext": {},
12224
12489
  * // "subOperationType": {},
12225
12490
  * // "targetId": "my_targetId",
12226
12491
  * // "targetLink": "my_targetLink",
@@ -12382,7 +12647,11 @@ export namespace sqladmin_v1beta4 {
12382
12647
  * // "preCheckMajorVersionUpgradeContext": {},
12383
12648
  * // "selfLink": "my_selfLink",
12384
12649
  * // "startTime": "my_startTime",
12650
+ * // "startWorkloadCaptureContext": {},
12651
+ * // "startWorkloadReplayContext": {},
12385
12652
  * // "status": "my_status",
12653
+ * // "stopWorkloadCaptureContext": {},
12654
+ * // "stopWorkloadReplayContext": {},
12386
12655
  * // "subOperationType": {},
12387
12656
  * // "targetId": "my_targetId",
12388
12657
  * // "targetLink": "my_targetLink",
@@ -12557,7 +12826,11 @@ export namespace sqladmin_v1beta4 {
12557
12826
  * // "preCheckMajorVersionUpgradeContext": {},
12558
12827
  * // "selfLink": "my_selfLink",
12559
12828
  * // "startTime": "my_startTime",
12829
+ * // "startWorkloadCaptureContext": {},
12830
+ * // "startWorkloadReplayContext": {},
12560
12831
  * // "status": "my_status",
12832
+ * // "stopWorkloadCaptureContext": {},
12833
+ * // "stopWorkloadReplayContext": {},
12561
12834
  * // "subOperationType": {},
12562
12835
  * // "targetId": "my_targetId",
12563
12836
  * // "targetLink": "my_targetLink",
@@ -12727,7 +13000,11 @@ export namespace sqladmin_v1beta4 {
12727
13000
  * // "preCheckMajorVersionUpgradeContext": {},
12728
13001
  * // "selfLink": "my_selfLink",
12729
13002
  * // "startTime": "my_startTime",
13003
+ * // "startWorkloadCaptureContext": {},
13004
+ * // "startWorkloadReplayContext": {},
12730
13005
  * // "status": "my_status",
13006
+ * // "stopWorkloadCaptureContext": {},
13007
+ * // "stopWorkloadReplayContext": {},
12731
13008
  * // "subOperationType": {},
12732
13009
  * // "targetId": "my_targetId",
12733
13010
  * // "targetLink": "my_targetLink",
@@ -12899,7 +13176,11 @@ export namespace sqladmin_v1beta4 {
12899
13176
  * // "preCheckMajorVersionUpgradeContext": {},
12900
13177
  * // "selfLink": "my_selfLink",
12901
13178
  * // "startTime": "my_startTime",
13179
+ * // "startWorkloadCaptureContext": {},
13180
+ * // "startWorkloadReplayContext": {},
12902
13181
  * // "status": "my_status",
13182
+ * // "stopWorkloadCaptureContext": {},
13183
+ * // "stopWorkloadReplayContext": {},
12903
13184
  * // "subOperationType": {},
12904
13185
  * // "targetId": "my_targetId",
12905
13186
  * // "targetLink": "my_targetLink",
@@ -13069,7 +13350,11 @@ export namespace sqladmin_v1beta4 {
13069
13350
  * // "preCheckMajorVersionUpgradeContext": {},
13070
13351
  * // "selfLink": "my_selfLink",
13071
13352
  * // "startTime": "my_startTime",
13353
+ * // "startWorkloadCaptureContext": {},
13354
+ * // "startWorkloadReplayContext": {},
13072
13355
  * // "status": "my_status",
13356
+ * // "stopWorkloadCaptureContext": {},
13357
+ * // "stopWorkloadReplayContext": {},
13073
13358
  * // "subOperationType": {},
13074
13359
  * // "targetId": "my_targetId",
13075
13360
  * // "targetLink": "my_targetLink",
@@ -13233,7 +13518,11 @@ export namespace sqladmin_v1beta4 {
13233
13518
  * // "preCheckMajorVersionUpgradeContext": {},
13234
13519
  * // "selfLink": "my_selfLink",
13235
13520
  * // "startTime": "my_startTime",
13521
+ * // "startWorkloadCaptureContext": {},
13522
+ * // "startWorkloadReplayContext": {},
13236
13523
  * // "status": "my_status",
13524
+ * // "stopWorkloadCaptureContext": {},
13525
+ * // "stopWorkloadReplayContext": {},
13237
13526
  * // "subOperationType": {},
13238
13527
  * // "targetId": "my_targetId",
13239
13528
  * // "targetLink": "my_targetLink",
@@ -13395,7 +13684,11 @@ export namespace sqladmin_v1beta4 {
13395
13684
  * // "preCheckMajorVersionUpgradeContext": {},
13396
13685
  * // "selfLink": "my_selfLink",
13397
13686
  * // "startTime": "my_startTime",
13687
+ * // "startWorkloadCaptureContext": {},
13688
+ * // "startWorkloadReplayContext": {},
13398
13689
  * // "status": "my_status",
13690
+ * // "stopWorkloadCaptureContext": {},
13691
+ * // "stopWorkloadReplayContext": {},
13399
13692
  * // "subOperationType": {},
13400
13693
  * // "targetId": "my_targetId",
13401
13694
  * // "targetLink": "my_targetLink",
@@ -13559,7 +13852,11 @@ export namespace sqladmin_v1beta4 {
13559
13852
  * // "preCheckMajorVersionUpgradeContext": {},
13560
13853
  * // "selfLink": "my_selfLink",
13561
13854
  * // "startTime": "my_startTime",
13855
+ * // "startWorkloadCaptureContext": {},
13856
+ * // "startWorkloadReplayContext": {},
13562
13857
  * // "status": "my_status",
13858
+ * // "stopWorkloadCaptureContext": {},
13859
+ * // "stopWorkloadReplayContext": {},
13563
13860
  * // "subOperationType": {},
13564
13861
  * // "targetId": "my_targetId",
13565
13862
  * // "targetLink": "my_targetLink",
@@ -13729,7 +14026,11 @@ export namespace sqladmin_v1beta4 {
13729
14026
  * // "preCheckMajorVersionUpgradeContext": {},
13730
14027
  * // "selfLink": "my_selfLink",
13731
14028
  * // "startTime": "my_startTime",
14029
+ * // "startWorkloadCaptureContext": {},
14030
+ * // "startWorkloadReplayContext": {},
13732
14031
  * // "status": "my_status",
14032
+ * // "stopWorkloadCaptureContext": {},
14033
+ * // "stopWorkloadReplayContext": {},
13733
14034
  * // "subOperationType": {},
13734
14035
  * // "targetId": "my_targetId",
13735
14036
  * // "targetLink": "my_targetLink",
@@ -13951,7 +14252,11 @@ export namespace sqladmin_v1beta4 {
13951
14252
  * // "preCheckMajorVersionUpgradeContext": {},
13952
14253
  * // "selfLink": "my_selfLink",
13953
14254
  * // "startTime": "my_startTime",
14255
+ * // "startWorkloadCaptureContext": {},
14256
+ * // "startWorkloadReplayContext": {},
13954
14257
  * // "status": "my_status",
14258
+ * // "stopWorkloadCaptureContext": {},
14259
+ * // "stopWorkloadReplayContext": {},
13955
14260
  * // "subOperationType": {},
13956
14261
  * // "targetId": "my_targetId",
13957
14262
  * // "targetLink": "my_targetLink",
@@ -14877,7 +15182,11 @@ export namespace sqladmin_v1beta4 {
14877
15182
  * // "preCheckMajorVersionUpgradeContext": {},
14878
15183
  * // "selfLink": "my_selfLink",
14879
15184
  * // "startTime": "my_startTime",
15185
+ * // "startWorkloadCaptureContext": {},
15186
+ * // "startWorkloadReplayContext": {},
14880
15187
  * // "status": "my_status",
15188
+ * // "stopWorkloadCaptureContext": {},
15189
+ * // "stopWorkloadReplayContext": {},
14881
15190
  * // "subOperationType": {},
14882
15191
  * // "targetId": "my_targetId",
14883
15192
  * // "targetLink": "my_targetLink",
@@ -15575,7 +15884,11 @@ export namespace sqladmin_v1beta4 {
15575
15884
  * // "preCheckMajorVersionUpgradeContext": {},
15576
15885
  * // "selfLink": "my_selfLink",
15577
15886
  * // "startTime": "my_startTime",
15887
+ * // "startWorkloadCaptureContext": {},
15888
+ * // "startWorkloadReplayContext": {},
15578
15889
  * // "status": "my_status",
15890
+ * // "stopWorkloadCaptureContext": {},
15891
+ * // "stopWorkloadReplayContext": {},
15579
15892
  * // "subOperationType": {},
15580
15893
  * // "targetId": "my_targetId",
15581
15894
  * // "targetLink": "my_targetLink",
@@ -15745,7 +16058,11 @@ export namespace sqladmin_v1beta4 {
15745
16058
  * // "preCheckMajorVersionUpgradeContext": {},
15746
16059
  * // "selfLink": "my_selfLink",
15747
16060
  * // "startTime": "my_startTime",
16061
+ * // "startWorkloadCaptureContext": {},
16062
+ * // "startWorkloadReplayContext": {},
15748
16063
  * // "status": "my_status",
16064
+ * // "stopWorkloadCaptureContext": {},
16065
+ * // "stopWorkloadReplayContext": {},
15749
16066
  * // "subOperationType": {},
15750
16067
  * // "targetId": "my_targetId",
15751
16068
  * // "targetLink": "my_targetLink",
@@ -15915,7 +16232,11 @@ export namespace sqladmin_v1beta4 {
15915
16232
  * // "preCheckMajorVersionUpgradeContext": {},
15916
16233
  * // "selfLink": "my_selfLink",
15917
16234
  * // "startTime": "my_startTime",
16235
+ * // "startWorkloadCaptureContext": {},
16236
+ * // "startWorkloadReplayContext": {},
15918
16237
  * // "status": "my_status",
16238
+ * // "stopWorkloadCaptureContext": {},
16239
+ * // "stopWorkloadReplayContext": {},
15919
16240
  * // "subOperationType": {},
15920
16241
  * // "targetId": "my_targetId",
15921
16242
  * // "targetLink": "my_targetLink",
@@ -16089,7 +16410,11 @@ export namespace sqladmin_v1beta4 {
16089
16410
  * // "preCheckMajorVersionUpgradeContext": {},
16090
16411
  * // "selfLink": "my_selfLink",
16091
16412
  * // "startTime": "my_startTime",
16413
+ * // "startWorkloadCaptureContext": {},
16414
+ * // "startWorkloadReplayContext": {},
16092
16415
  * // "status": "my_status",
16416
+ * // "stopWorkloadCaptureContext": {},
16417
+ * // "stopWorkloadReplayContext": {},
16093
16418
  * // "subOperationType": {},
16094
16419
  * // "targetId": "my_targetId",
16095
16420
  * // "targetLink": "my_targetLink",
@@ -16704,7 +17029,11 @@ export namespace sqladmin_v1beta4 {
16704
17029
  * // "preCheckMajorVersionUpgradeContext": {},
16705
17030
  * // "selfLink": "my_selfLink",
16706
17031
  * // "startTime": "my_startTime",
17032
+ * // "startWorkloadCaptureContext": {},
17033
+ * // "startWorkloadReplayContext": {},
16707
17034
  * // "status": "my_status",
17035
+ * // "stopWorkloadCaptureContext": {},
17036
+ * // "stopWorkloadReplayContext": {},
16708
17037
  * // "subOperationType": {},
16709
17038
  * // "targetId": "my_targetId",
16710
17039
  * // "targetLink": "my_targetLink",
@@ -17549,7 +17878,11 @@ export namespace sqladmin_v1beta4 {
17549
17878
  * // "preCheckMajorVersionUpgradeContext": {},
17550
17879
  * // "selfLink": "my_selfLink",
17551
17880
  * // "startTime": "my_startTime",
17881
+ * // "startWorkloadCaptureContext": {},
17882
+ * // "startWorkloadReplayContext": {},
17552
17883
  * // "status": "my_status",
17884
+ * // "stopWorkloadCaptureContext": {},
17885
+ * // "stopWorkloadReplayContext": {},
17553
17886
  * // "subOperationType": {},
17554
17887
  * // "targetId": "my_targetId",
17555
17888
  * // "targetLink": "my_targetLink",
@@ -17892,7 +18225,11 @@ export namespace sqladmin_v1beta4 {
17892
18225
  * // "preCheckMajorVersionUpgradeContext": {},
17893
18226
  * // "selfLink": "my_selfLink",
17894
18227
  * // "startTime": "my_startTime",
18228
+ * // "startWorkloadCaptureContext": {},
18229
+ * // "startWorkloadReplayContext": {},
17895
18230
  * // "status": "my_status",
18231
+ * // "stopWorkloadCaptureContext": {},
18232
+ * // "stopWorkloadReplayContext": {},
17896
18233
  * // "subOperationType": {},
17897
18234
  * // "targetId": "my_targetId",
17898
18235
  * // "targetLink": "my_targetLink",
@@ -18232,7 +18569,11 @@ export namespace sqladmin_v1beta4 {
18232
18569
  * // "preCheckMajorVersionUpgradeContext": {},
18233
18570
  * // "selfLink": "my_selfLink",
18234
18571
  * // "startTime": "my_startTime",
18572
+ * // "startWorkloadCaptureContext": {},
18573
+ * // "startWorkloadReplayContext": {},
18235
18574
  * // "status": "my_status",
18575
+ * // "stopWorkloadCaptureContext": {},
18576
+ * // "stopWorkloadReplayContext": {},
18236
18577
  * // "subOperationType": {},
18237
18578
  * // "targetId": "my_targetId",
18238
18579
  * // "targetLink": "my_targetLink",
@@ -18455,4 +18796,931 @@ export namespace sqladmin_v1beta4 {
18455
18796
  */
18456
18797
  requestBody?: Schema$User;
18457
18798
  }
18799
+
18800
+ export class Resource$Workloadcaptures {
18801
+ context: APIRequestContext;
18802
+ constructor(context: APIRequestContext) {
18803
+ this.context = context;
18804
+ }
18805
+
18806
+ /**
18807
+ * Lists all captured workloads associated with the instance.
18808
+ * @example
18809
+ * ```js
18810
+ * // Before running the sample:
18811
+ * // - Enable the API at:
18812
+ * // https://console.developers.google.com/apis/api/sqladmin.googleapis.com
18813
+ * // - Login into gcloud by running:
18814
+ * // ```sh
18815
+ * // $ gcloud auth application-default login
18816
+ * // ```
18817
+ * // - Install the npm module by running:
18818
+ * // ```sh
18819
+ * // $ npm install googleapis
18820
+ * // ```
18821
+ *
18822
+ * const {google} = require('googleapis');
18823
+ * const sqladmin = google.sqladmin('v1beta4');
18824
+ *
18825
+ * async function main() {
18826
+ * const auth = new google.auth.GoogleAuth({
18827
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
18828
+ * scopes: [
18829
+ * 'https://www.googleapis.com/auth/cloud-platform',
18830
+ * 'https://www.googleapis.com/auth/sqlservice.admin',
18831
+ * ],
18832
+ * });
18833
+ *
18834
+ * // Acquire an auth client, and bind it to all future calls
18835
+ * const authClient = await auth.getClient();
18836
+ * google.options({auth: authClient});
18837
+ *
18838
+ * // Do the magic
18839
+ * const res = await sql.workloadCaptures.list({
18840
+ * // Required. Cloud SQL instance ID. This does not include the project ID.
18841
+ * instance: 'placeholder-value',
18842
+ * // Required. Project ID of the project that contains the instance.
18843
+ * project: 'placeholder-value',
18844
+ * });
18845
+ * console.log(res.data);
18846
+ *
18847
+ * // Example response
18848
+ * // {
18849
+ * // "kind": "my_kind",
18850
+ * // "workloadCaptures": []
18851
+ * // }
18852
+ * }
18853
+ *
18854
+ * main().catch(e => {
18855
+ * console.error(e);
18856
+ * throw e;
18857
+ * });
18858
+ *
18859
+ * ```
18860
+ *
18861
+ * @param params - Parameters for request
18862
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
18863
+ * @param callback - Optional callback that handles the response.
18864
+ * @returns A promise if used with async/await, or void if used with a callback.
18865
+ */
18866
+ list(
18867
+ params: Params$Resource$Workloadcaptures$List,
18868
+ options: StreamMethodOptions
18869
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
18870
+ list(
18871
+ params?: Params$Resource$Workloadcaptures$List,
18872
+ options?: MethodOptions
18873
+ ): Promise<GaxiosResponseWithHTTP2<Schema$WorkloadCapturesListResponse>>;
18874
+ list(
18875
+ params: Params$Resource$Workloadcaptures$List,
18876
+ options: StreamMethodOptions | BodyResponseCallback<Readable>,
18877
+ callback: BodyResponseCallback<Readable>
18878
+ ): void;
18879
+ list(
18880
+ params: Params$Resource$Workloadcaptures$List,
18881
+ options:
18882
+ | MethodOptions
18883
+ | BodyResponseCallback<Schema$WorkloadCapturesListResponse>,
18884
+ callback: BodyResponseCallback<Schema$WorkloadCapturesListResponse>
18885
+ ): void;
18886
+ list(
18887
+ params: Params$Resource$Workloadcaptures$List,
18888
+ callback: BodyResponseCallback<Schema$WorkloadCapturesListResponse>
18889
+ ): void;
18890
+ list(
18891
+ callback: BodyResponseCallback<Schema$WorkloadCapturesListResponse>
18892
+ ): void;
18893
+ list(
18894
+ paramsOrCallback?:
18895
+ | Params$Resource$Workloadcaptures$List
18896
+ | BodyResponseCallback<Schema$WorkloadCapturesListResponse>
18897
+ | BodyResponseCallback<Readable>,
18898
+ optionsOrCallback?:
18899
+ | MethodOptions
18900
+ | StreamMethodOptions
18901
+ | BodyResponseCallback<Schema$WorkloadCapturesListResponse>
18902
+ | BodyResponseCallback<Readable>,
18903
+ callback?:
18904
+ | BodyResponseCallback<Schema$WorkloadCapturesListResponse>
18905
+ | BodyResponseCallback<Readable>
18906
+ ):
18907
+ | void
18908
+ | Promise<GaxiosResponseWithHTTP2<Schema$WorkloadCapturesListResponse>>
18909
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
18910
+ let params = (paramsOrCallback ||
18911
+ {}) as Params$Resource$Workloadcaptures$List;
18912
+ let options = (optionsOrCallback || {}) as MethodOptions;
18913
+
18914
+ if (typeof paramsOrCallback === 'function') {
18915
+ callback = paramsOrCallback;
18916
+ params = {} as Params$Resource$Workloadcaptures$List;
18917
+ options = {};
18918
+ }
18919
+
18920
+ if (typeof optionsOrCallback === 'function') {
18921
+ callback = optionsOrCallback;
18922
+ options = {};
18923
+ }
18924
+
18925
+ const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/';
18926
+ const parameters = {
18927
+ options: Object.assign(
18928
+ {
18929
+ url: (
18930
+ rootUrl +
18931
+ '/sql/v1beta4/projects/{project}/instances/{instance}/workloadCaptures'
18932
+ ).replace(/([^:]\/)\/+/g, '$1'),
18933
+ method: 'GET',
18934
+ apiVersion: '',
18935
+ },
18936
+ options
18937
+ ),
18938
+ params,
18939
+ requiredParams: ['project', 'instance'],
18940
+ pathParams: ['instance', 'project'],
18941
+ context: this.context,
18942
+ };
18943
+ if (callback) {
18944
+ createAPIRequest<Schema$WorkloadCapturesListResponse>(
18945
+ parameters,
18946
+ callback as BodyResponseCallback<unknown>
18947
+ );
18948
+ } else {
18949
+ return createAPIRequest<Schema$WorkloadCapturesListResponse>(
18950
+ parameters
18951
+ );
18952
+ }
18953
+ }
18954
+
18955
+ /**
18956
+ * Starts capturing the SQL queries, transactions, and other operations executed on the primary instance. This traffic is securely stored and forms a "captured workload". This workload can be replayed later on a different instance to safely test performance impacts, database upgrades, configuration changes etc. before applying them to production.
18957
+ * @example
18958
+ * ```js
18959
+ * // Before running the sample:
18960
+ * // - Enable the API at:
18961
+ * // https://console.developers.google.com/apis/api/sqladmin.googleapis.com
18962
+ * // - Login into gcloud by running:
18963
+ * // ```sh
18964
+ * // $ gcloud auth application-default login
18965
+ * // ```
18966
+ * // - Install the npm module by running:
18967
+ * // ```sh
18968
+ * // $ npm install googleapis
18969
+ * // ```
18970
+ *
18971
+ * const {google} = require('googleapis');
18972
+ * const sqladmin = google.sqladmin('v1beta4');
18973
+ *
18974
+ * async function main() {
18975
+ * const auth = new google.auth.GoogleAuth({
18976
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
18977
+ * scopes: [
18978
+ * 'https://www.googleapis.com/auth/cloud-platform',
18979
+ * 'https://www.googleapis.com/auth/sqlservice.admin',
18980
+ * ],
18981
+ * });
18982
+ *
18983
+ * // Acquire an auth client, and bind it to all future calls
18984
+ * const authClient = await auth.getClient();
18985
+ * google.options({auth: authClient});
18986
+ *
18987
+ * // Do the magic
18988
+ * const res = await sql.workloadCaptures.start({
18989
+ * // Required. Cloud SQL instance ID. This does not include the project ID.
18990
+ * instance: 'placeholder-value',
18991
+ * // Required. Project ID of the project that contains the instance.
18992
+ * project: 'placeholder-value',
18993
+ *
18994
+ * // Request body metadata
18995
+ * requestBody: {
18996
+ * // request body parameters
18997
+ * // {
18998
+ * // "startWorkloadCaptureContext": {}
18999
+ * // }
19000
+ * },
19001
+ * });
19002
+ * console.log(res.data);
19003
+ *
19004
+ * // Example response
19005
+ * // {
19006
+ * // "acquireSsrsLeaseContext": {},
19007
+ * // "apiWarning": {},
19008
+ * // "backupContext": {},
19009
+ * // "endTime": "my_endTime",
19010
+ * // "error": {},
19011
+ * // "exportContext": {},
19012
+ * // "importContext": {},
19013
+ * // "insertTime": "my_insertTime",
19014
+ * // "kind": "my_kind",
19015
+ * // "name": "my_name",
19016
+ * // "operationType": "my_operationType",
19017
+ * // "preCheckMajorVersionUpgradeContext": {},
19018
+ * // "selfLink": "my_selfLink",
19019
+ * // "startTime": "my_startTime",
19020
+ * // "startWorkloadCaptureContext": {},
19021
+ * // "startWorkloadReplayContext": {},
19022
+ * // "status": "my_status",
19023
+ * // "stopWorkloadCaptureContext": {},
19024
+ * // "stopWorkloadReplayContext": {},
19025
+ * // "subOperationType": {},
19026
+ * // "targetId": "my_targetId",
19027
+ * // "targetLink": "my_targetLink",
19028
+ * // "targetProject": "my_targetProject",
19029
+ * // "user": "my_user"
19030
+ * // }
19031
+ * }
19032
+ *
19033
+ * main().catch(e => {
19034
+ * console.error(e);
19035
+ * throw e;
19036
+ * });
19037
+ *
19038
+ * ```
19039
+ *
19040
+ * @param params - Parameters for request
19041
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
19042
+ * @param callback - Optional callback that handles the response.
19043
+ * @returns A promise if used with async/await, or void if used with a callback.
19044
+ */
19045
+ start(
19046
+ params: Params$Resource$Workloadcaptures$Start,
19047
+ options: StreamMethodOptions
19048
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
19049
+ start(
19050
+ params?: Params$Resource$Workloadcaptures$Start,
19051
+ options?: MethodOptions
19052
+ ): Promise<GaxiosResponseWithHTTP2<Schema$Operation>>;
19053
+ start(
19054
+ params: Params$Resource$Workloadcaptures$Start,
19055
+ options: StreamMethodOptions | BodyResponseCallback<Readable>,
19056
+ callback: BodyResponseCallback<Readable>
19057
+ ): void;
19058
+ start(
19059
+ params: Params$Resource$Workloadcaptures$Start,
19060
+ options: MethodOptions | BodyResponseCallback<Schema$Operation>,
19061
+ callback: BodyResponseCallback<Schema$Operation>
19062
+ ): void;
19063
+ start(
19064
+ params: Params$Resource$Workloadcaptures$Start,
19065
+ callback: BodyResponseCallback<Schema$Operation>
19066
+ ): void;
19067
+ start(callback: BodyResponseCallback<Schema$Operation>): void;
19068
+ start(
19069
+ paramsOrCallback?:
19070
+ | Params$Resource$Workloadcaptures$Start
19071
+ | BodyResponseCallback<Schema$Operation>
19072
+ | BodyResponseCallback<Readable>,
19073
+ optionsOrCallback?:
19074
+ | MethodOptions
19075
+ | StreamMethodOptions
19076
+ | BodyResponseCallback<Schema$Operation>
19077
+ | BodyResponseCallback<Readable>,
19078
+ callback?:
19079
+ BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
19080
+ ):
19081
+ | void
19082
+ | Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
19083
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
19084
+ let params = (paramsOrCallback ||
19085
+ {}) as Params$Resource$Workloadcaptures$Start;
19086
+ let options = (optionsOrCallback || {}) as MethodOptions;
19087
+
19088
+ if (typeof paramsOrCallback === 'function') {
19089
+ callback = paramsOrCallback;
19090
+ params = {} as Params$Resource$Workloadcaptures$Start;
19091
+ options = {};
19092
+ }
19093
+
19094
+ if (typeof optionsOrCallback === 'function') {
19095
+ callback = optionsOrCallback;
19096
+ options = {};
19097
+ }
19098
+
19099
+ const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/';
19100
+ const parameters = {
19101
+ options: Object.assign(
19102
+ {
19103
+ url: (
19104
+ rootUrl +
19105
+ '/sql/v1beta4/projects/{project}/instances/{instance}/workloadCaptures:start'
19106
+ ).replace(/([^:]\/)\/+/g, '$1'),
19107
+ method: 'POST',
19108
+ apiVersion: '',
19109
+ },
19110
+ options
19111
+ ),
19112
+ params,
19113
+ requiredParams: ['project', 'instance'],
19114
+ pathParams: ['instance', 'project'],
19115
+ context: this.context,
19116
+ };
19117
+ if (callback) {
19118
+ createAPIRequest<Schema$Operation>(
19119
+ parameters,
19120
+ callback as BodyResponseCallback<unknown>
19121
+ );
19122
+ } else {
19123
+ return createAPIRequest<Schema$Operation>(parameters);
19124
+ }
19125
+ }
19126
+
19127
+ /**
19128
+ * Starts executing a captured workload on a separate Cloud SQL instance provisioned for workload replay. This target instance simulates the production environment without affecting the primary instance.
19129
+ * @example
19130
+ * ```js
19131
+ * // Before running the sample:
19132
+ * // - Enable the API at:
19133
+ * // https://console.developers.google.com/apis/api/sqladmin.googleapis.com
19134
+ * // - Login into gcloud by running:
19135
+ * // ```sh
19136
+ * // $ gcloud auth application-default login
19137
+ * // ```
19138
+ * // - Install the npm module by running:
19139
+ * // ```sh
19140
+ * // $ npm install googleapis
19141
+ * // ```
19142
+ *
19143
+ * const {google} = require('googleapis');
19144
+ * const sqladmin = google.sqladmin('v1beta4');
19145
+ *
19146
+ * async function main() {
19147
+ * const auth = new google.auth.GoogleAuth({
19148
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
19149
+ * scopes: [
19150
+ * 'https://www.googleapis.com/auth/cloud-platform',
19151
+ * 'https://www.googleapis.com/auth/sqlservice.admin',
19152
+ * ],
19153
+ * });
19154
+ *
19155
+ * // Acquire an auth client, and bind it to all future calls
19156
+ * const authClient = await auth.getClient();
19157
+ * google.options({auth: authClient});
19158
+ *
19159
+ * // Do the magic
19160
+ * const res = await sql.workloadCaptures.startReplay({
19161
+ * // Required. Cloud SQL instance ID. This does not include the project ID.
19162
+ * instance: 'placeholder-value',
19163
+ * // Required. Project ID of the project that contains the instance.
19164
+ * project: 'placeholder-value',
19165
+ * // Required. The ID of the workload to replay.
19166
+ * workloadId: 'placeholder-value',
19167
+ *
19168
+ * // Request body metadata
19169
+ * requestBody: {
19170
+ * // request body parameters
19171
+ * // {
19172
+ * // "startWorkloadReplayContext": {}
19173
+ * // }
19174
+ * },
19175
+ * });
19176
+ * console.log(res.data);
19177
+ *
19178
+ * // Example response
19179
+ * // {
19180
+ * // "acquireSsrsLeaseContext": {},
19181
+ * // "apiWarning": {},
19182
+ * // "backupContext": {},
19183
+ * // "endTime": "my_endTime",
19184
+ * // "error": {},
19185
+ * // "exportContext": {},
19186
+ * // "importContext": {},
19187
+ * // "insertTime": "my_insertTime",
19188
+ * // "kind": "my_kind",
19189
+ * // "name": "my_name",
19190
+ * // "operationType": "my_operationType",
19191
+ * // "preCheckMajorVersionUpgradeContext": {},
19192
+ * // "selfLink": "my_selfLink",
19193
+ * // "startTime": "my_startTime",
19194
+ * // "startWorkloadCaptureContext": {},
19195
+ * // "startWorkloadReplayContext": {},
19196
+ * // "status": "my_status",
19197
+ * // "stopWorkloadCaptureContext": {},
19198
+ * // "stopWorkloadReplayContext": {},
19199
+ * // "subOperationType": {},
19200
+ * // "targetId": "my_targetId",
19201
+ * // "targetLink": "my_targetLink",
19202
+ * // "targetProject": "my_targetProject",
19203
+ * // "user": "my_user"
19204
+ * // }
19205
+ * }
19206
+ *
19207
+ * main().catch(e => {
19208
+ * console.error(e);
19209
+ * throw e;
19210
+ * });
19211
+ *
19212
+ * ```
19213
+ *
19214
+ * @param params - Parameters for request
19215
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
19216
+ * @param callback - Optional callback that handles the response.
19217
+ * @returns A promise if used with async/await, or void if used with a callback.
19218
+ */
19219
+ startReplay(
19220
+ params: Params$Resource$Workloadcaptures$Startreplay,
19221
+ options: StreamMethodOptions
19222
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
19223
+ startReplay(
19224
+ params?: Params$Resource$Workloadcaptures$Startreplay,
19225
+ options?: MethodOptions
19226
+ ): Promise<GaxiosResponseWithHTTP2<Schema$Operation>>;
19227
+ startReplay(
19228
+ params: Params$Resource$Workloadcaptures$Startreplay,
19229
+ options: StreamMethodOptions | BodyResponseCallback<Readable>,
19230
+ callback: BodyResponseCallback<Readable>
19231
+ ): void;
19232
+ startReplay(
19233
+ params: Params$Resource$Workloadcaptures$Startreplay,
19234
+ options: MethodOptions | BodyResponseCallback<Schema$Operation>,
19235
+ callback: BodyResponseCallback<Schema$Operation>
19236
+ ): void;
19237
+ startReplay(
19238
+ params: Params$Resource$Workloadcaptures$Startreplay,
19239
+ callback: BodyResponseCallback<Schema$Operation>
19240
+ ): void;
19241
+ startReplay(callback: BodyResponseCallback<Schema$Operation>): void;
19242
+ startReplay(
19243
+ paramsOrCallback?:
19244
+ | Params$Resource$Workloadcaptures$Startreplay
19245
+ | BodyResponseCallback<Schema$Operation>
19246
+ | BodyResponseCallback<Readable>,
19247
+ optionsOrCallback?:
19248
+ | MethodOptions
19249
+ | StreamMethodOptions
19250
+ | BodyResponseCallback<Schema$Operation>
19251
+ | BodyResponseCallback<Readable>,
19252
+ callback?:
19253
+ BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
19254
+ ):
19255
+ | void
19256
+ | Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
19257
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
19258
+ let params = (paramsOrCallback ||
19259
+ {}) as Params$Resource$Workloadcaptures$Startreplay;
19260
+ let options = (optionsOrCallback || {}) as MethodOptions;
19261
+
19262
+ if (typeof paramsOrCallback === 'function') {
19263
+ callback = paramsOrCallback;
19264
+ params = {} as Params$Resource$Workloadcaptures$Startreplay;
19265
+ options = {};
19266
+ }
19267
+
19268
+ if (typeof optionsOrCallback === 'function') {
19269
+ callback = optionsOrCallback;
19270
+ options = {};
19271
+ }
19272
+
19273
+ const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/';
19274
+ const parameters = {
19275
+ options: Object.assign(
19276
+ {
19277
+ url: (
19278
+ rootUrl +
19279
+ '/sql/v1beta4/projects/{project}/instances/{instance}/workloadCaptures/{workloadId}:startReplay'
19280
+ ).replace(/([^:]\/)\/+/g, '$1'),
19281
+ method: 'POST',
19282
+ apiVersion: '',
19283
+ },
19284
+ options
19285
+ ),
19286
+ params,
19287
+ requiredParams: ['project', 'instance', 'workloadId'],
19288
+ pathParams: ['instance', 'project', 'workloadId'],
19289
+ context: this.context,
19290
+ };
19291
+ if (callback) {
19292
+ createAPIRequest<Schema$Operation>(
19293
+ parameters,
19294
+ callback as BodyResponseCallback<unknown>
19295
+ );
19296
+ } else {
19297
+ return createAPIRequest<Schema$Operation>(parameters);
19298
+ }
19299
+ }
19300
+
19301
+ /**
19302
+ * Stops capturing the query traffic and related operations executed on the primary instance.
19303
+ * @example
19304
+ * ```js
19305
+ * // Before running the sample:
19306
+ * // - Enable the API at:
19307
+ * // https://console.developers.google.com/apis/api/sqladmin.googleapis.com
19308
+ * // - Login into gcloud by running:
19309
+ * // ```sh
19310
+ * // $ gcloud auth application-default login
19311
+ * // ```
19312
+ * // - Install the npm module by running:
19313
+ * // ```sh
19314
+ * // $ npm install googleapis
19315
+ * // ```
19316
+ *
19317
+ * const {google} = require('googleapis');
19318
+ * const sqladmin = google.sqladmin('v1beta4');
19319
+ *
19320
+ * async function main() {
19321
+ * const auth = new google.auth.GoogleAuth({
19322
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
19323
+ * scopes: [
19324
+ * 'https://www.googleapis.com/auth/cloud-platform',
19325
+ * 'https://www.googleapis.com/auth/sqlservice.admin',
19326
+ * ],
19327
+ * });
19328
+ *
19329
+ * // Acquire an auth client, and bind it to all future calls
19330
+ * const authClient = await auth.getClient();
19331
+ * google.options({auth: authClient});
19332
+ *
19333
+ * // Do the magic
19334
+ * const res = await sql.workloadCaptures.stop({
19335
+ * // Required. Cloud SQL instance ID. This does not include the project ID.
19336
+ * instance: 'placeholder-value',
19337
+ * // Required. Project ID of the project that contains the instance.
19338
+ * project: 'placeholder-value',
19339
+ *
19340
+ * // Request body metadata
19341
+ * requestBody: {
19342
+ * // request body parameters
19343
+ * // {
19344
+ * // "stopWorkloadCaptureContext": {}
19345
+ * // }
19346
+ * },
19347
+ * });
19348
+ * console.log(res.data);
19349
+ *
19350
+ * // Example response
19351
+ * // {
19352
+ * // "acquireSsrsLeaseContext": {},
19353
+ * // "apiWarning": {},
19354
+ * // "backupContext": {},
19355
+ * // "endTime": "my_endTime",
19356
+ * // "error": {},
19357
+ * // "exportContext": {},
19358
+ * // "importContext": {},
19359
+ * // "insertTime": "my_insertTime",
19360
+ * // "kind": "my_kind",
19361
+ * // "name": "my_name",
19362
+ * // "operationType": "my_operationType",
19363
+ * // "preCheckMajorVersionUpgradeContext": {},
19364
+ * // "selfLink": "my_selfLink",
19365
+ * // "startTime": "my_startTime",
19366
+ * // "startWorkloadCaptureContext": {},
19367
+ * // "startWorkloadReplayContext": {},
19368
+ * // "status": "my_status",
19369
+ * // "stopWorkloadCaptureContext": {},
19370
+ * // "stopWorkloadReplayContext": {},
19371
+ * // "subOperationType": {},
19372
+ * // "targetId": "my_targetId",
19373
+ * // "targetLink": "my_targetLink",
19374
+ * // "targetProject": "my_targetProject",
19375
+ * // "user": "my_user"
19376
+ * // }
19377
+ * }
19378
+ *
19379
+ * main().catch(e => {
19380
+ * console.error(e);
19381
+ * throw e;
19382
+ * });
19383
+ *
19384
+ * ```
19385
+ *
19386
+ * @param params - Parameters for request
19387
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
19388
+ * @param callback - Optional callback that handles the response.
19389
+ * @returns A promise if used with async/await, or void if used with a callback.
19390
+ */
19391
+ stop(
19392
+ params: Params$Resource$Workloadcaptures$Stop,
19393
+ options: StreamMethodOptions
19394
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
19395
+ stop(
19396
+ params?: Params$Resource$Workloadcaptures$Stop,
19397
+ options?: MethodOptions
19398
+ ): Promise<GaxiosResponseWithHTTP2<Schema$Operation>>;
19399
+ stop(
19400
+ params: Params$Resource$Workloadcaptures$Stop,
19401
+ options: StreamMethodOptions | BodyResponseCallback<Readable>,
19402
+ callback: BodyResponseCallback<Readable>
19403
+ ): void;
19404
+ stop(
19405
+ params: Params$Resource$Workloadcaptures$Stop,
19406
+ options: MethodOptions | BodyResponseCallback<Schema$Operation>,
19407
+ callback: BodyResponseCallback<Schema$Operation>
19408
+ ): void;
19409
+ stop(
19410
+ params: Params$Resource$Workloadcaptures$Stop,
19411
+ callback: BodyResponseCallback<Schema$Operation>
19412
+ ): void;
19413
+ stop(callback: BodyResponseCallback<Schema$Operation>): void;
19414
+ stop(
19415
+ paramsOrCallback?:
19416
+ | Params$Resource$Workloadcaptures$Stop
19417
+ | BodyResponseCallback<Schema$Operation>
19418
+ | BodyResponseCallback<Readable>,
19419
+ optionsOrCallback?:
19420
+ | MethodOptions
19421
+ | StreamMethodOptions
19422
+ | BodyResponseCallback<Schema$Operation>
19423
+ | BodyResponseCallback<Readable>,
19424
+ callback?:
19425
+ BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
19426
+ ):
19427
+ | void
19428
+ | Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
19429
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
19430
+ let params = (paramsOrCallback ||
19431
+ {}) as Params$Resource$Workloadcaptures$Stop;
19432
+ let options = (optionsOrCallback || {}) as MethodOptions;
19433
+
19434
+ if (typeof paramsOrCallback === 'function') {
19435
+ callback = paramsOrCallback;
19436
+ params = {} as Params$Resource$Workloadcaptures$Stop;
19437
+ options = {};
19438
+ }
19439
+
19440
+ if (typeof optionsOrCallback === 'function') {
19441
+ callback = optionsOrCallback;
19442
+ options = {};
19443
+ }
19444
+
19445
+ const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/';
19446
+ const parameters = {
19447
+ options: Object.assign(
19448
+ {
19449
+ url: (
19450
+ rootUrl +
19451
+ '/sql/v1beta4/projects/{project}/instances/{instance}/workloadCaptures:stop'
19452
+ ).replace(/([^:]\/)\/+/g, '$1'),
19453
+ method: 'POST',
19454
+ apiVersion: '',
19455
+ },
19456
+ options
19457
+ ),
19458
+ params,
19459
+ requiredParams: ['project', 'instance'],
19460
+ pathParams: ['instance', 'project'],
19461
+ context: this.context,
19462
+ };
19463
+ if (callback) {
19464
+ createAPIRequest<Schema$Operation>(
19465
+ parameters,
19466
+ callback as BodyResponseCallback<unknown>
19467
+ );
19468
+ } else {
19469
+ return createAPIRequest<Schema$Operation>(parameters);
19470
+ }
19471
+ }
19472
+
19473
+ /**
19474
+ * Stops executing a captured workload on the separate Cloud SQL instance.
19475
+ * @example
19476
+ * ```js
19477
+ * // Before running the sample:
19478
+ * // - Enable the API at:
19479
+ * // https://console.developers.google.com/apis/api/sqladmin.googleapis.com
19480
+ * // - Login into gcloud by running:
19481
+ * // ```sh
19482
+ * // $ gcloud auth application-default login
19483
+ * // ```
19484
+ * // - Install the npm module by running:
19485
+ * // ```sh
19486
+ * // $ npm install googleapis
19487
+ * // ```
19488
+ *
19489
+ * const {google} = require('googleapis');
19490
+ * const sqladmin = google.sqladmin('v1beta4');
19491
+ *
19492
+ * async function main() {
19493
+ * const auth = new google.auth.GoogleAuth({
19494
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
19495
+ * scopes: [
19496
+ * 'https://www.googleapis.com/auth/cloud-platform',
19497
+ * 'https://www.googleapis.com/auth/sqlservice.admin',
19498
+ * ],
19499
+ * });
19500
+ *
19501
+ * // Acquire an auth client, and bind it to all future calls
19502
+ * const authClient = await auth.getClient();
19503
+ * google.options({auth: authClient});
19504
+ *
19505
+ * // Do the magic
19506
+ * const res = await sql.workloadCaptures.stopReplay({
19507
+ * // Required. Cloud SQL instance ID. This does not include the project ID.
19508
+ * instance: 'placeholder-value',
19509
+ * // Required. Project ID of the project that contains the instance.
19510
+ * project: 'placeholder-value',
19511
+ * // Required. The ID of the workload to replay.
19512
+ * workloadId: 'placeholder-value',
19513
+ *
19514
+ * // Request body metadata
19515
+ * requestBody: {
19516
+ * // request body parameters
19517
+ * // {
19518
+ * // "stopWorkloadReplayContext": {}
19519
+ * // }
19520
+ * },
19521
+ * });
19522
+ * console.log(res.data);
19523
+ *
19524
+ * // Example response
19525
+ * // {
19526
+ * // "acquireSsrsLeaseContext": {},
19527
+ * // "apiWarning": {},
19528
+ * // "backupContext": {},
19529
+ * // "endTime": "my_endTime",
19530
+ * // "error": {},
19531
+ * // "exportContext": {},
19532
+ * // "importContext": {},
19533
+ * // "insertTime": "my_insertTime",
19534
+ * // "kind": "my_kind",
19535
+ * // "name": "my_name",
19536
+ * // "operationType": "my_operationType",
19537
+ * // "preCheckMajorVersionUpgradeContext": {},
19538
+ * // "selfLink": "my_selfLink",
19539
+ * // "startTime": "my_startTime",
19540
+ * // "startWorkloadCaptureContext": {},
19541
+ * // "startWorkloadReplayContext": {},
19542
+ * // "status": "my_status",
19543
+ * // "stopWorkloadCaptureContext": {},
19544
+ * // "stopWorkloadReplayContext": {},
19545
+ * // "subOperationType": {},
19546
+ * // "targetId": "my_targetId",
19547
+ * // "targetLink": "my_targetLink",
19548
+ * // "targetProject": "my_targetProject",
19549
+ * // "user": "my_user"
19550
+ * // }
19551
+ * }
19552
+ *
19553
+ * main().catch(e => {
19554
+ * console.error(e);
19555
+ * throw e;
19556
+ * });
19557
+ *
19558
+ * ```
19559
+ *
19560
+ * @param params - Parameters for request
19561
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
19562
+ * @param callback - Optional callback that handles the response.
19563
+ * @returns A promise if used with async/await, or void if used with a callback.
19564
+ */
19565
+ stopReplay(
19566
+ params: Params$Resource$Workloadcaptures$Stopreplay,
19567
+ options: StreamMethodOptions
19568
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
19569
+ stopReplay(
19570
+ params?: Params$Resource$Workloadcaptures$Stopreplay,
19571
+ options?: MethodOptions
19572
+ ): Promise<GaxiosResponseWithHTTP2<Schema$Operation>>;
19573
+ stopReplay(
19574
+ params: Params$Resource$Workloadcaptures$Stopreplay,
19575
+ options: StreamMethodOptions | BodyResponseCallback<Readable>,
19576
+ callback: BodyResponseCallback<Readable>
19577
+ ): void;
19578
+ stopReplay(
19579
+ params: Params$Resource$Workloadcaptures$Stopreplay,
19580
+ options: MethodOptions | BodyResponseCallback<Schema$Operation>,
19581
+ callback: BodyResponseCallback<Schema$Operation>
19582
+ ): void;
19583
+ stopReplay(
19584
+ params: Params$Resource$Workloadcaptures$Stopreplay,
19585
+ callback: BodyResponseCallback<Schema$Operation>
19586
+ ): void;
19587
+ stopReplay(callback: BodyResponseCallback<Schema$Operation>): void;
19588
+ stopReplay(
19589
+ paramsOrCallback?:
19590
+ | Params$Resource$Workloadcaptures$Stopreplay
19591
+ | BodyResponseCallback<Schema$Operation>
19592
+ | BodyResponseCallback<Readable>,
19593
+ optionsOrCallback?:
19594
+ | MethodOptions
19595
+ | StreamMethodOptions
19596
+ | BodyResponseCallback<Schema$Operation>
19597
+ | BodyResponseCallback<Readable>,
19598
+ callback?:
19599
+ BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
19600
+ ):
19601
+ | void
19602
+ | Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
19603
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
19604
+ let params = (paramsOrCallback ||
19605
+ {}) as Params$Resource$Workloadcaptures$Stopreplay;
19606
+ let options = (optionsOrCallback || {}) as MethodOptions;
19607
+
19608
+ if (typeof paramsOrCallback === 'function') {
19609
+ callback = paramsOrCallback;
19610
+ params = {} as Params$Resource$Workloadcaptures$Stopreplay;
19611
+ options = {};
19612
+ }
19613
+
19614
+ if (typeof optionsOrCallback === 'function') {
19615
+ callback = optionsOrCallback;
19616
+ options = {};
19617
+ }
19618
+
19619
+ const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/';
19620
+ const parameters = {
19621
+ options: Object.assign(
19622
+ {
19623
+ url: (
19624
+ rootUrl +
19625
+ '/sql/v1beta4/projects/{project}/instances/{instance}/workloadCaptures/{workloadId}:stopReplay'
19626
+ ).replace(/([^:]\/)\/+/g, '$1'),
19627
+ method: 'POST',
19628
+ apiVersion: '',
19629
+ },
19630
+ options
19631
+ ),
19632
+ params,
19633
+ requiredParams: ['project', 'instance', 'workloadId'],
19634
+ pathParams: ['instance', 'project', 'workloadId'],
19635
+ context: this.context,
19636
+ };
19637
+ if (callback) {
19638
+ createAPIRequest<Schema$Operation>(
19639
+ parameters,
19640
+ callback as BodyResponseCallback<unknown>
19641
+ );
19642
+ } else {
19643
+ return createAPIRequest<Schema$Operation>(parameters);
19644
+ }
19645
+ }
19646
+ }
19647
+
19648
+ export interface Params$Resource$Workloadcaptures$List extends StandardParameters {
19649
+ /**
19650
+ * Required. Cloud SQL instance ID. This does not include the project ID.
19651
+ */
19652
+ instance?: string;
19653
+ /**
19654
+ * Required. Project ID of the project that contains the instance.
19655
+ */
19656
+ project?: string;
19657
+ }
19658
+ export interface Params$Resource$Workloadcaptures$Start extends StandardParameters {
19659
+ /**
19660
+ * Required. Cloud SQL instance ID. This does not include the project ID.
19661
+ */
19662
+ instance?: string;
19663
+ /**
19664
+ * Required. Project ID of the project that contains the instance.
19665
+ */
19666
+ project?: string;
19667
+
19668
+ /**
19669
+ * Request body metadata
19670
+ */
19671
+ requestBody?: Schema$SqlWorkloadCapturesStartRequest;
19672
+ }
19673
+ export interface Params$Resource$Workloadcaptures$Startreplay extends StandardParameters {
19674
+ /**
19675
+ * Required. Cloud SQL instance ID. This does not include the project ID.
19676
+ */
19677
+ instance?: string;
19678
+ /**
19679
+ * Required. Project ID of the project that contains the instance.
19680
+ */
19681
+ project?: string;
19682
+ /**
19683
+ * Required. The ID of the workload to replay.
19684
+ */
19685
+ workloadId?: string;
19686
+
19687
+ /**
19688
+ * Request body metadata
19689
+ */
19690
+ requestBody?: Schema$SqlWorkloadCapturesStartReplayRequest;
19691
+ }
19692
+ export interface Params$Resource$Workloadcaptures$Stop extends StandardParameters {
19693
+ /**
19694
+ * Required. Cloud SQL instance ID. This does not include the project ID.
19695
+ */
19696
+ instance?: string;
19697
+ /**
19698
+ * Required. Project ID of the project that contains the instance.
19699
+ */
19700
+ project?: string;
19701
+
19702
+ /**
19703
+ * Request body metadata
19704
+ */
19705
+ requestBody?: Schema$SqlWorkloadCapturesStopRequest;
19706
+ }
19707
+ export interface Params$Resource$Workloadcaptures$Stopreplay extends StandardParameters {
19708
+ /**
19709
+ * Required. Cloud SQL instance ID. This does not include the project ID.
19710
+ */
19711
+ instance?: string;
19712
+ /**
19713
+ * Required. Project ID of the project that contains the instance.
19714
+ */
19715
+ project?: string;
19716
+ /**
19717
+ * Required. The ID of the workload to replay.
19718
+ */
19719
+ workloadId?: string;
19720
+
19721
+ /**
19722
+ * Request body metadata
19723
+ */
19724
+ requestBody?: Schema$SqlWorkloadCapturesStopReplayRequest;
19725
+ }
18458
19726
  }