@googleapis/sqladmin 40.0.0 → 41.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -79,6 +79,7 @@ export declare namespace sqladmin_v1beta4 {
79
79
  sslCerts: Resource$Sslcerts;
80
80
  tiers: Resource$Tiers;
81
81
  users: Resource$Users;
82
+ workloadCaptures: Resource$Workloadcaptures;
82
83
  constructor(options: GlobalOptions, google?: GoogleConfigurable);
83
84
  }
84
85
  /**
@@ -1173,6 +1174,10 @@ export declare namespace sqladmin_v1beta4 {
1173
1174
  * Disk encryption configuration for an instance.
1174
1175
  */
1175
1176
  export interface Schema$DiskEncryptionConfiguration {
1177
+ /**
1178
+ * 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.
1179
+ */
1180
+ cmekSourceLogEncryptionEnforced?: boolean | null;
1176
1181
  /**
1177
1182
  * Optional. If true, enables Confidential Mode for the instance's Hyperdisk Balanced volumes. Only supported for zonal C4A instances currently.
1178
1183
  */
@@ -2205,10 +2210,26 @@ export declare namespace sqladmin_v1beta4 {
2205
2210
  * 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`.
2206
2211
  */
2207
2212
  startTime?: string | null;
2213
+ /**
2214
+ * The context for the `StartWorkloadCapture` operation, which contains details to start recording the workload (SQL queries) on a Cloud SQL instance.
2215
+ */
2216
+ startWorkloadCaptureContext?: Schema$StartWorkloadCaptureContext;
2217
+ /**
2218
+ * 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).
2219
+ */
2220
+ startWorkloadReplayContext?: Schema$StartWorkloadReplayContext;
2208
2221
  /**
2209
2222
  * The status of an operation.
2210
2223
  */
2211
2224
  status?: string | null;
2225
+ /**
2226
+ * The context for the `StopWorkloadCapture` operation, which contains details to stop recording the workload (SQL queries) on a Cloud SQL instance.
2227
+ */
2228
+ stopWorkloadCaptureContext?: Schema$StopWorkloadCaptureContext;
2229
+ /**
2230
+ * 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.
2231
+ */
2232
+ stopWorkloadReplayContext?: Schema$StopWorkloadReplayContext;
2212
2233
  /**
2213
2234
  * Optional. The sub operation based on the operation type.
2214
2235
  */
@@ -3090,9 +3111,6 @@ export declare namespace sqladmin_v1beta4 {
3090
3111
  */
3091
3112
  operationId?: string | null;
3092
3113
  }
3093
- /**
3094
- * Execute SQL statements response.
3095
- */
3096
3114
  export interface Schema$SqlInstancesExecuteSqlResponse {
3097
3115
  /**
3098
3116
  * 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.
@@ -3357,6 +3375,42 @@ export declare namespace sqladmin_v1beta4 {
3357
3375
  */
3358
3376
  maintenanceType?: string | null;
3359
3377
  }
3378
+ /**
3379
+ * Request to start executing a captured workload on a replay instance (the Cloud SQL instance where the recorded SQL queries are executed).
3380
+ */
3381
+ export interface Schema$SqlWorkloadCapturesStartReplayRequest {
3382
+ /**
3383
+ * Required. Contains details about the start workload replay operation.
3384
+ */
3385
+ startWorkloadReplayContext?: Schema$StartWorkloadReplayContext;
3386
+ }
3387
+ /**
3388
+ * Request to start recording traffic from the primary instance (captured workload).
3389
+ */
3390
+ export interface Schema$SqlWorkloadCapturesStartRequest {
3391
+ /**
3392
+ * Optional. Contains details about the start workload capture operation.
3393
+ */
3394
+ startWorkloadCaptureContext?: Schema$StartWorkloadCaptureContext;
3395
+ }
3396
+ /**
3397
+ * Request to stop executing a captured workload on a replay instance.
3398
+ */
3399
+ export interface Schema$SqlWorkloadCapturesStopReplayRequest {
3400
+ /**
3401
+ * Required. Contains details about the stop workload replay operation.
3402
+ */
3403
+ stopWorkloadReplayContext?: Schema$StopWorkloadReplayContext;
3404
+ }
3405
+ /**
3406
+ * Request to stop recording traffic from the primary instance.
3407
+ */
3408
+ export interface Schema$SqlWorkloadCapturesStopRequest {
3409
+ /**
3410
+ * Optional. Contains details about the stop workload capture operation.
3411
+ */
3412
+ stopWorkloadCaptureContext?: Schema$StopWorkloadCaptureContext;
3413
+ }
3360
3414
  /**
3361
3415
  * SslCerts Resource
3362
3416
  */
@@ -3467,6 +3521,32 @@ export declare namespace sqladmin_v1beta4 {
3467
3521
  */
3468
3522
  kind?: string | null;
3469
3523
  }
3524
+ /**
3525
+ * The context for the `StartWorkloadCapture` operation, which contains details to start recording the workload (SQL queries) on a Cloud SQL instance.
3526
+ */
3527
+ export interface Schema$StartWorkloadCaptureContext {
3528
+ /**
3529
+ * 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.
3530
+ */
3531
+ enableLiveReplay?: boolean | null;
3532
+ /**
3533
+ * 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.
3534
+ */
3535
+ replayInstance?: string | null;
3536
+ }
3537
+ /**
3538
+ * 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).
3539
+ */
3540
+ export interface Schema$StartWorkloadReplayContext {
3541
+ /**
3542
+ * 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.
3543
+ */
3544
+ replayInstance?: string | null;
3545
+ /**
3546
+ * 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.
3547
+ */
3548
+ workloadId?: string | null;
3549
+ }
3470
3550
  /**
3471
3551
  * 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).
3472
3552
  */
@@ -3486,6 +3566,28 @@ export declare namespace sqladmin_v1beta4 {
3486
3566
  */
3487
3567
  message?: string | null;
3488
3568
  }
3569
+ /**
3570
+ * The context for the `StopWorkloadCapture` operation, which contains details to stop recording the workload (SQL queries) on a Cloud SQL instance.
3571
+ */
3572
+ export interface Schema$StopWorkloadCaptureContext {
3573
+ /**
3574
+ * 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.
3575
+ */
3576
+ abortLiveReplay?: boolean | null;
3577
+ }
3578
+ /**
3579
+ * 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.
3580
+ */
3581
+ export interface Schema$StopWorkloadReplayContext {
3582
+ /**
3583
+ * 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.
3584
+ */
3585
+ replayInstance?: string | null;
3586
+ /**
3587
+ * 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.
3588
+ */
3589
+ workloadId?: string | null;
3590
+ }
3489
3591
  /**
3490
3592
  * Request message for switching over a `BlueGreenDeployment` resource.
3491
3593
  */
@@ -3703,6 +3805,52 @@ export declare namespace sqladmin_v1beta4 {
3703
3805
  */
3704
3806
  value?: string | null;
3705
3807
  }
3808
+ /**
3809
+ * Captured workload for an instance.
3810
+ */
3811
+ export interface Schema$WorkloadCapture {
3812
+ /**
3813
+ * Output only. The end time of the workload capture.
3814
+ */
3815
+ endTime?: string | null;
3816
+ /**
3817
+ * Output only. The name of the replay instance, if live replay was enabled.
3818
+ */
3819
+ replayInstance?: string | null;
3820
+ /**
3821
+ * Output only. The retention period in days for the captured workload.
3822
+ */
3823
+ retentionDays?: number | null;
3824
+ /**
3825
+ * Output only. The name of the source instance.
3826
+ */
3827
+ sourceInstance?: string | null;
3828
+ /**
3829
+ * Output only. The start time of the workload capture.
3830
+ */
3831
+ startTime?: string | null;
3832
+ /**
3833
+ * Output only. The state of the workload capture.
3834
+ */
3835
+ workloadCaptureState?: string | null;
3836
+ /**
3837
+ * Output only. The ID of the captured workload.
3838
+ */
3839
+ workloadId?: string | null;
3840
+ }
3841
+ /**
3842
+ * Instance list captured workloads response.
3843
+ */
3844
+ export interface Schema$WorkloadCapturesListResponse {
3845
+ /**
3846
+ * This is always `sql#workloadCapturesList`.
3847
+ */
3848
+ kind?: string | null;
3849
+ /**
3850
+ * List of captured workloads for the instance.
3851
+ */
3852
+ workloadCaptures?: Schema$WorkloadCapture[];
3853
+ }
3706
3854
  export class Resource$Backupruns {
3707
3855
  context: APIRequestContext;
3708
3856
  constructor(context: APIRequestContext);
@@ -3765,7 +3913,11 @@ export declare namespace sqladmin_v1beta4 {
3765
3913
  * // "preCheckMajorVersionUpgradeContext": {},
3766
3914
  * // "selfLink": "my_selfLink",
3767
3915
  * // "startTime": "my_startTime",
3916
+ * // "startWorkloadCaptureContext": {},
3917
+ * // "startWorkloadReplayContext": {},
3768
3918
  * // "status": "my_status",
3919
+ * // "stopWorkloadCaptureContext": {},
3920
+ * // "stopWorkloadReplayContext": {},
3769
3921
  * // "subOperationType": {},
3770
3922
  * // "targetId": "my_targetId",
3771
3923
  * // "targetLink": "my_targetLink",
@@ -3960,7 +4112,11 @@ export declare namespace sqladmin_v1beta4 {
3960
4112
  * // "preCheckMajorVersionUpgradeContext": {},
3961
4113
  * // "selfLink": "my_selfLink",
3962
4114
  * // "startTime": "my_startTime",
4115
+ * // "startWorkloadCaptureContext": {},
4116
+ * // "startWorkloadReplayContext": {},
3963
4117
  * // "status": "my_status",
4118
+ * // "stopWorkloadCaptureContext": {},
4119
+ * // "stopWorkloadReplayContext": {},
3964
4120
  * // "subOperationType": {},
3965
4121
  * // "targetId": "my_targetId",
3966
4122
  * // "targetLink": "my_targetLink",
@@ -4207,7 +4363,11 @@ export declare namespace sqladmin_v1beta4 {
4207
4363
  * // "preCheckMajorVersionUpgradeContext": {},
4208
4364
  * // "selfLink": "my_selfLink",
4209
4365
  * // "startTime": "my_startTime",
4366
+ * // "startWorkloadCaptureContext": {},
4367
+ * // "startWorkloadReplayContext": {},
4210
4368
  * // "status": "my_status",
4369
+ * // "stopWorkloadCaptureContext": {},
4370
+ * // "stopWorkloadReplayContext": {},
4211
4371
  * // "subOperationType": {},
4212
4372
  * // "targetId": "my_targetId",
4213
4373
  * // "targetLink": "my_targetLink",
@@ -4289,7 +4449,11 @@ export declare namespace sqladmin_v1beta4 {
4289
4449
  * // "preCheckMajorVersionUpgradeContext": {},
4290
4450
  * // "selfLink": "my_selfLink",
4291
4451
  * // "startTime": "my_startTime",
4452
+ * // "startWorkloadCaptureContext": {},
4453
+ * // "startWorkloadReplayContext": {},
4292
4454
  * // "status": "my_status",
4455
+ * // "stopWorkloadCaptureContext": {},
4456
+ * // "stopWorkloadReplayContext": {},
4293
4457
  * // "subOperationType": {},
4294
4458
  * // "targetId": "my_targetId",
4295
4459
  * // "targetLink": "my_targetLink",
@@ -4559,7 +4723,11 @@ export declare namespace sqladmin_v1beta4 {
4559
4723
  * // "preCheckMajorVersionUpgradeContext": {},
4560
4724
  * // "selfLink": "my_selfLink",
4561
4725
  * // "startTime": "my_startTime",
4726
+ * // "startWorkloadCaptureContext": {},
4727
+ * // "startWorkloadReplayContext": {},
4562
4728
  * // "status": "my_status",
4729
+ * // "stopWorkloadCaptureContext": {},
4730
+ * // "stopWorkloadReplayContext": {},
4563
4731
  * // "subOperationType": {},
4564
4732
  * // "targetId": "my_targetId",
4565
4733
  * // "targetLink": "my_targetLink",
@@ -4720,7 +4888,11 @@ export declare namespace sqladmin_v1beta4 {
4720
4888
  * // "preCheckMajorVersionUpgradeContext": {},
4721
4889
  * // "selfLink": "my_selfLink",
4722
4890
  * // "startTime": "my_startTime",
4891
+ * // "startWorkloadCaptureContext": {},
4892
+ * // "startWorkloadReplayContext": {},
4723
4893
  * // "status": "my_status",
4894
+ * // "stopWorkloadCaptureContext": {},
4895
+ * // "stopWorkloadReplayContext": {},
4724
4896
  * // "subOperationType": {},
4725
4897
  * // "targetId": "my_targetId",
4726
4898
  * // "targetLink": "my_targetLink",
@@ -4804,7 +4976,11 @@ export declare namespace sqladmin_v1beta4 {
4804
4976
  * // "preCheckMajorVersionUpgradeContext": {},
4805
4977
  * // "selfLink": "my_selfLink",
4806
4978
  * // "startTime": "my_startTime",
4979
+ * // "startWorkloadCaptureContext": {},
4980
+ * // "startWorkloadReplayContext": {},
4807
4981
  * // "status": "my_status",
4982
+ * // "stopWorkloadCaptureContext": {},
4983
+ * // "stopWorkloadReplayContext": {},
4808
4984
  * // "subOperationType": {},
4809
4985
  * // "targetId": "my_targetId",
4810
4986
  * // "targetLink": "my_targetLink",
@@ -5040,7 +5216,11 @@ export declare namespace sqladmin_v1beta4 {
5040
5216
  * // "preCheckMajorVersionUpgradeContext": {},
5041
5217
  * // "selfLink": "my_selfLink",
5042
5218
  * // "startTime": "my_startTime",
5219
+ * // "startWorkloadCaptureContext": {},
5220
+ * // "startWorkloadReplayContext": {},
5043
5221
  * // "status": "my_status",
5222
+ * // "stopWorkloadCaptureContext": {},
5223
+ * // "stopWorkloadReplayContext": {},
5044
5224
  * // "subOperationType": {},
5045
5225
  * // "targetId": "my_targetId",
5046
5226
  * // "targetLink": "my_targetLink",
@@ -5476,7 +5656,11 @@ export declare namespace sqladmin_v1beta4 {
5476
5656
  * // "preCheckMajorVersionUpgradeContext": {},
5477
5657
  * // "selfLink": "my_selfLink",
5478
5658
  * // "startTime": "my_startTime",
5659
+ * // "startWorkloadCaptureContext": {},
5660
+ * // "startWorkloadReplayContext": {},
5479
5661
  * // "status": "my_status",
5662
+ * // "stopWorkloadCaptureContext": {},
5663
+ * // "stopWorkloadReplayContext": {},
5480
5664
  * // "subOperationType": {},
5481
5665
  * // "targetId": "my_targetId",
5482
5666
  * // "targetLink": "my_targetLink",
@@ -5655,7 +5839,11 @@ export declare namespace sqladmin_v1beta4 {
5655
5839
  * // "preCheckMajorVersionUpgradeContext": {},
5656
5840
  * // "selfLink": "my_selfLink",
5657
5841
  * // "startTime": "my_startTime",
5842
+ * // "startWorkloadCaptureContext": {},
5843
+ * // "startWorkloadReplayContext": {},
5658
5844
  * // "status": "my_status",
5845
+ * // "stopWorkloadCaptureContext": {},
5846
+ * // "stopWorkloadReplayContext": {},
5659
5847
  * // "subOperationType": {},
5660
5848
  * // "targetId": "my_targetId",
5661
5849
  * // "targetLink": "my_targetLink",
@@ -5827,7 +6015,11 @@ export declare namespace sqladmin_v1beta4 {
5827
6015
  * // "preCheckMajorVersionUpgradeContext": {},
5828
6016
  * // "selfLink": "my_selfLink",
5829
6017
  * // "startTime": "my_startTime",
6018
+ * // "startWorkloadCaptureContext": {},
6019
+ * // "startWorkloadReplayContext": {},
5830
6020
  * // "status": "my_status",
6021
+ * // "stopWorkloadCaptureContext": {},
6022
+ * // "stopWorkloadReplayContext": {},
5831
6023
  * // "subOperationType": {},
5832
6024
  * // "targetId": "my_targetId",
5833
6025
  * // "targetLink": "my_targetLink",
@@ -5931,7 +6123,11 @@ export declare namespace sqladmin_v1beta4 {
5931
6123
  * // "preCheckMajorVersionUpgradeContext": {},
5932
6124
  * // "selfLink": "my_selfLink",
5933
6125
  * // "startTime": "my_startTime",
6126
+ * // "startWorkloadCaptureContext": {},
6127
+ * // "startWorkloadReplayContext": {},
5934
6128
  * // "status": "my_status",
6129
+ * // "stopWorkloadCaptureContext": {},
6130
+ * // "stopWorkloadReplayContext": {},
5935
6131
  * // "subOperationType": {},
5936
6132
  * // "targetId": "my_targetId",
5937
6133
  * // "targetLink": "my_targetLink",
@@ -6288,7 +6484,11 @@ export declare namespace sqladmin_v1beta4 {
6288
6484
  * // "preCheckMajorVersionUpgradeContext": {},
6289
6485
  * // "selfLink": "my_selfLink",
6290
6486
  * // "startTime": "my_startTime",
6487
+ * // "startWorkloadCaptureContext": {},
6488
+ * // "startWorkloadReplayContext": {},
6291
6489
  * // "status": "my_status",
6490
+ * // "stopWorkloadCaptureContext": {},
6491
+ * // "stopWorkloadReplayContext": {},
6292
6492
  * // "subOperationType": {},
6293
6493
  * // "targetId": "my_targetId",
6294
6494
  * // "targetLink": "my_targetLink",
@@ -6374,7 +6574,11 @@ export declare namespace sqladmin_v1beta4 {
6374
6574
  * // "preCheckMajorVersionUpgradeContext": {},
6375
6575
  * // "selfLink": "my_selfLink",
6376
6576
  * // "startTime": "my_startTime",
6577
+ * // "startWorkloadCaptureContext": {},
6578
+ * // "startWorkloadReplayContext": {},
6377
6579
  * // "status": "my_status",
6580
+ * // "stopWorkloadCaptureContext": {},
6581
+ * // "stopWorkloadReplayContext": {},
6378
6582
  * // "subOperationType": {},
6379
6583
  * // "targetId": "my_targetId",
6380
6584
  * // "targetLink": "my_targetLink",
@@ -6460,7 +6664,11 @@ export declare namespace sqladmin_v1beta4 {
6460
6664
  * // "preCheckMajorVersionUpgradeContext": {},
6461
6665
  * // "selfLink": "my_selfLink",
6462
6666
  * // "startTime": "my_startTime",
6667
+ * // "startWorkloadCaptureContext": {},
6668
+ * // "startWorkloadReplayContext": {},
6463
6669
  * // "status": "my_status",
6670
+ * // "stopWorkloadCaptureContext": {},
6671
+ * // "stopWorkloadReplayContext": {},
6464
6672
  * // "subOperationType": {},
6465
6673
  * // "targetId": "my_targetId",
6466
6674
  * // "targetLink": "my_targetLink",
@@ -6554,7 +6762,11 @@ export declare namespace sqladmin_v1beta4 {
6554
6762
  * // "preCheckMajorVersionUpgradeContext": {},
6555
6763
  * // "selfLink": "my_selfLink",
6556
6764
  * // "startTime": "my_startTime",
6765
+ * // "startWorkloadCaptureContext": {},
6766
+ * // "startWorkloadReplayContext": {},
6557
6767
  * // "status": "my_status",
6768
+ * // "stopWorkloadCaptureContext": {},
6769
+ * // "stopWorkloadReplayContext": {},
6558
6770
  * // "subOperationType": {},
6559
6771
  * // "targetId": "my_targetId",
6560
6772
  * // "targetLink": "my_targetLink",
@@ -6648,7 +6860,11 @@ export declare namespace sqladmin_v1beta4 {
6648
6860
  * // "preCheckMajorVersionUpgradeContext": {},
6649
6861
  * // "selfLink": "my_selfLink",
6650
6862
  * // "startTime": "my_startTime",
6863
+ * // "startWorkloadCaptureContext": {},
6864
+ * // "startWorkloadReplayContext": {},
6651
6865
  * // "status": "my_status",
6866
+ * // "stopWorkloadCaptureContext": {},
6867
+ * // "stopWorkloadReplayContext": {},
6652
6868
  * // "subOperationType": {},
6653
6869
  * // "targetId": "my_targetId",
6654
6870
  * // "targetLink": "my_targetLink",
@@ -6742,7 +6958,11 @@ export declare namespace sqladmin_v1beta4 {
6742
6958
  * // "preCheckMajorVersionUpgradeContext": {},
6743
6959
  * // "selfLink": "my_selfLink",
6744
6960
  * // "startTime": "my_startTime",
6961
+ * // "startWorkloadCaptureContext": {},
6962
+ * // "startWorkloadReplayContext": {},
6745
6963
  * // "status": "my_status",
6964
+ * // "stopWorkloadCaptureContext": {},
6965
+ * // "stopWorkloadReplayContext": {},
6746
6966
  * // "subOperationType": {},
6747
6967
  * // "targetId": "my_targetId",
6748
6968
  * // "targetLink": "my_targetLink",
@@ -6836,7 +7056,11 @@ export declare namespace sqladmin_v1beta4 {
6836
7056
  * // "preCheckMajorVersionUpgradeContext": {},
6837
7057
  * // "selfLink": "my_selfLink",
6838
7058
  * // "startTime": "my_startTime",
7059
+ * // "startWorkloadCaptureContext": {},
7060
+ * // "startWorkloadReplayContext": {},
6839
7061
  * // "status": "my_status",
7062
+ * // "stopWorkloadCaptureContext": {},
7063
+ * // "stopWorkloadReplayContext": {},
6840
7064
  * // "subOperationType": {},
6841
7065
  * // "targetId": "my_targetId",
6842
7066
  * // "targetLink": "my_targetLink",
@@ -7012,7 +7236,11 @@ export declare namespace sqladmin_v1beta4 {
7012
7236
  * // "preCheckMajorVersionUpgradeContext": {},
7013
7237
  * // "selfLink": "my_selfLink",
7014
7238
  * // "startTime": "my_startTime",
7239
+ * // "startWorkloadCaptureContext": {},
7240
+ * // "startWorkloadReplayContext": {},
7015
7241
  * // "status": "my_status",
7242
+ * // "stopWorkloadCaptureContext": {},
7243
+ * // "stopWorkloadReplayContext": {},
7016
7244
  * // "subOperationType": {},
7017
7245
  * // "targetId": "my_targetId",
7018
7246
  * // "targetLink": "my_targetLink",
@@ -7106,7 +7334,11 @@ export declare namespace sqladmin_v1beta4 {
7106
7334
  * // "preCheckMajorVersionUpgradeContext": {},
7107
7335
  * // "selfLink": "my_selfLink",
7108
7336
  * // "startTime": "my_startTime",
7337
+ * // "startWorkloadCaptureContext": {},
7338
+ * // "startWorkloadReplayContext": {},
7109
7339
  * // "status": "my_status",
7340
+ * // "stopWorkloadCaptureContext": {},
7341
+ * // "stopWorkloadReplayContext": {},
7110
7342
  * // "subOperationType": {},
7111
7343
  * // "targetId": "my_targetId",
7112
7344
  * // "targetLink": "my_targetLink",
@@ -7316,7 +7548,11 @@ export declare namespace sqladmin_v1beta4 {
7316
7548
  * // "preCheckMajorVersionUpgradeContext": {},
7317
7549
  * // "selfLink": "my_selfLink",
7318
7550
  * // "startTime": "my_startTime",
7551
+ * // "startWorkloadCaptureContext": {},
7552
+ * // "startWorkloadReplayContext": {},
7319
7553
  * // "status": "my_status",
7554
+ * // "stopWorkloadCaptureContext": {},
7555
+ * // "stopWorkloadReplayContext": {},
7320
7556
  * // "subOperationType": {},
7321
7557
  * // "targetId": "my_targetId",
7322
7558
  * // "targetLink": "my_targetLink",
@@ -7460,7 +7696,11 @@ export declare namespace sqladmin_v1beta4 {
7460
7696
  * // "preCheckMajorVersionUpgradeContext": {},
7461
7697
  * // "selfLink": "my_selfLink",
7462
7698
  * // "startTime": "my_startTime",
7699
+ * // "startWorkloadCaptureContext": {},
7700
+ * // "startWorkloadReplayContext": {},
7463
7701
  * // "status": "my_status",
7702
+ * // "stopWorkloadCaptureContext": {},
7703
+ * // "stopWorkloadReplayContext": {},
7464
7704
  * // "subOperationType": {},
7465
7705
  * // "targetId": "my_targetId",
7466
7706
  * // "targetLink": "my_targetLink",
@@ -7892,7 +8132,11 @@ export declare namespace sqladmin_v1beta4 {
7892
8132
  * // "preCheckMajorVersionUpgradeContext": {},
7893
8133
  * // "selfLink": "my_selfLink",
7894
8134
  * // "startTime": "my_startTime",
8135
+ * // "startWorkloadCaptureContext": {},
8136
+ * // "startWorkloadReplayContext": {},
7895
8137
  * // "status": "my_status",
8138
+ * // "stopWorkloadCaptureContext": {},
8139
+ * // "stopWorkloadReplayContext": {},
7896
8140
  * // "subOperationType": {},
7897
8141
  * // "targetId": "my_targetId",
7898
8142
  * // "targetLink": "my_targetLink",
@@ -7991,7 +8235,11 @@ export declare namespace sqladmin_v1beta4 {
7991
8235
  * // "preCheckMajorVersionUpgradeContext": {},
7992
8236
  * // "selfLink": "my_selfLink",
7993
8237
  * // "startTime": "my_startTime",
8238
+ * // "startWorkloadCaptureContext": {},
8239
+ * // "startWorkloadReplayContext": {},
7994
8240
  * // "status": "my_status",
8241
+ * // "stopWorkloadCaptureContext": {},
8242
+ * // "stopWorkloadReplayContext": {},
7995
8243
  * // "subOperationType": {},
7996
8244
  * // "targetId": "my_targetId",
7997
8245
  * // "targetLink": "my_targetLink",
@@ -8085,7 +8333,11 @@ export declare namespace sqladmin_v1beta4 {
8085
8333
  * // "preCheckMajorVersionUpgradeContext": {},
8086
8334
  * // "selfLink": "my_selfLink",
8087
8335
  * // "startTime": "my_startTime",
8336
+ * // "startWorkloadCaptureContext": {},
8337
+ * // "startWorkloadReplayContext": {},
8088
8338
  * // "status": "my_status",
8339
+ * // "stopWorkloadCaptureContext": {},
8340
+ * // "stopWorkloadReplayContext": {},
8089
8341
  * // "subOperationType": {},
8090
8342
  * // "targetId": "my_targetId",
8091
8343
  * // "targetLink": "my_targetLink",
@@ -8173,7 +8425,11 @@ export declare namespace sqladmin_v1beta4 {
8173
8425
  * // "preCheckMajorVersionUpgradeContext": {},
8174
8426
  * // "selfLink": "my_selfLink",
8175
8427
  * // "startTime": "my_startTime",
8428
+ * // "startWorkloadCaptureContext": {},
8429
+ * // "startWorkloadReplayContext": {},
8176
8430
  * // "status": "my_status",
8431
+ * // "stopWorkloadCaptureContext": {},
8432
+ * // "stopWorkloadReplayContext": {},
8177
8433
  * // "subOperationType": {},
8178
8434
  * // "targetId": "my_targetId",
8179
8435
  * // "targetLink": "my_targetLink",
@@ -8267,7 +8523,11 @@ export declare namespace sqladmin_v1beta4 {
8267
8523
  * // "preCheckMajorVersionUpgradeContext": {},
8268
8524
  * // "selfLink": "my_selfLink",
8269
8525
  * // "startTime": "my_startTime",
8526
+ * // "startWorkloadCaptureContext": {},
8527
+ * // "startWorkloadReplayContext": {},
8270
8528
  * // "status": "my_status",
8529
+ * // "stopWorkloadCaptureContext": {},
8530
+ * // "stopWorkloadReplayContext": {},
8271
8531
  * // "subOperationType": {},
8272
8532
  * // "targetId": "my_targetId",
8273
8533
  * // "targetLink": "my_targetLink",
@@ -8422,7 +8682,11 @@ export declare namespace sqladmin_v1beta4 {
8422
8682
  * // "preCheckMajorVersionUpgradeContext": {},
8423
8683
  * // "selfLink": "my_selfLink",
8424
8684
  * // "startTime": "my_startTime",
8685
+ * // "startWorkloadCaptureContext": {},
8686
+ * // "startWorkloadReplayContext": {},
8425
8687
  * // "status": "my_status",
8688
+ * // "stopWorkloadCaptureContext": {},
8689
+ * // "stopWorkloadReplayContext": {},
8426
8690
  * // "subOperationType": {},
8427
8691
  * // "targetId": "my_targetId",
8428
8692
  * // "targetLink": "my_targetLink",
@@ -8508,7 +8772,11 @@ export declare namespace sqladmin_v1beta4 {
8508
8772
  * // "preCheckMajorVersionUpgradeContext": {},
8509
8773
  * // "selfLink": "my_selfLink",
8510
8774
  * // "startTime": "my_startTime",
8775
+ * // "startWorkloadCaptureContext": {},
8776
+ * // "startWorkloadReplayContext": {},
8511
8777
  * // "status": "my_status",
8778
+ * // "stopWorkloadCaptureContext": {},
8779
+ * // "stopWorkloadReplayContext": {},
8512
8780
  * // "subOperationType": {},
8513
8781
  * // "targetId": "my_targetId",
8514
8782
  * // "targetLink": "my_targetLink",
@@ -8607,7 +8875,11 @@ export declare namespace sqladmin_v1beta4 {
8607
8875
  * // "preCheckMajorVersionUpgradeContext": {},
8608
8876
  * // "selfLink": "my_selfLink",
8609
8877
  * // "startTime": "my_startTime",
8878
+ * // "startWorkloadCaptureContext": {},
8879
+ * // "startWorkloadReplayContext": {},
8610
8880
  * // "status": "my_status",
8881
+ * // "stopWorkloadCaptureContext": {},
8882
+ * // "stopWorkloadReplayContext": {},
8611
8883
  * // "subOperationType": {},
8612
8884
  * // "targetId": "my_targetId",
8613
8885
  * // "targetLink": "my_targetLink",
@@ -8701,7 +8973,11 @@ export declare namespace sqladmin_v1beta4 {
8701
8973
  * // "preCheckMajorVersionUpgradeContext": {},
8702
8974
  * // "selfLink": "my_selfLink",
8703
8975
  * // "startTime": "my_startTime",
8976
+ * // "startWorkloadCaptureContext": {},
8977
+ * // "startWorkloadReplayContext": {},
8704
8978
  * // "status": "my_status",
8979
+ * // "stopWorkloadCaptureContext": {},
8980
+ * // "stopWorkloadReplayContext": {},
8705
8981
  * // "subOperationType": {},
8706
8982
  * // "targetId": "my_targetId",
8707
8983
  * // "targetLink": "my_targetLink",
@@ -8795,7 +9071,11 @@ export declare namespace sqladmin_v1beta4 {
8795
9071
  * // "preCheckMajorVersionUpgradeContext": {},
8796
9072
  * // "selfLink": "my_selfLink",
8797
9073
  * // "startTime": "my_startTime",
9074
+ * // "startWorkloadCaptureContext": {},
9075
+ * // "startWorkloadReplayContext": {},
8798
9076
  * // "status": "my_status",
9077
+ * // "stopWorkloadCaptureContext": {},
9078
+ * // "stopWorkloadReplayContext": {},
8799
9079
  * // "subOperationType": {},
8800
9080
  * // "targetId": "my_targetId",
8801
9081
  * // "targetLink": "my_targetLink",
@@ -8889,7 +9169,11 @@ export declare namespace sqladmin_v1beta4 {
8889
9169
  * // "preCheckMajorVersionUpgradeContext": {},
8890
9170
  * // "selfLink": "my_selfLink",
8891
9171
  * // "startTime": "my_startTime",
9172
+ * // "startWorkloadCaptureContext": {},
9173
+ * // "startWorkloadReplayContext": {},
8892
9174
  * // "status": "my_status",
9175
+ * // "stopWorkloadCaptureContext": {},
9176
+ * // "stopWorkloadReplayContext": {},
8893
9177
  * // "subOperationType": {},
8894
9178
  * // "targetId": "my_targetId",
8895
9179
  * // "targetLink": "my_targetLink",
@@ -8975,7 +9259,11 @@ export declare namespace sqladmin_v1beta4 {
8975
9259
  * // "preCheckMajorVersionUpgradeContext": {},
8976
9260
  * // "selfLink": "my_selfLink",
8977
9261
  * // "startTime": "my_startTime",
9262
+ * // "startWorkloadCaptureContext": {},
9263
+ * // "startWorkloadReplayContext": {},
8978
9264
  * // "status": "my_status",
9265
+ * // "stopWorkloadCaptureContext": {},
9266
+ * // "stopWorkloadReplayContext": {},
8979
9267
  * // "subOperationType": {},
8980
9268
  * // "targetId": "my_targetId",
8981
9269
  * // "targetLink": "my_targetLink",
@@ -9061,7 +9349,11 @@ export declare namespace sqladmin_v1beta4 {
9061
9349
  * // "preCheckMajorVersionUpgradeContext": {},
9062
9350
  * // "selfLink": "my_selfLink",
9063
9351
  * // "startTime": "my_startTime",
9352
+ * // "startWorkloadCaptureContext": {},
9353
+ * // "startWorkloadReplayContext": {},
9064
9354
  * // "status": "my_status",
9355
+ * // "stopWorkloadCaptureContext": {},
9356
+ * // "stopWorkloadReplayContext": {},
9065
9357
  * // "subOperationType": {},
9066
9358
  * // "targetId": "my_targetId",
9067
9359
  * // "targetLink": "my_targetLink",
@@ -9149,7 +9441,11 @@ export declare namespace sqladmin_v1beta4 {
9149
9441
  * // "preCheckMajorVersionUpgradeContext": {},
9150
9442
  * // "selfLink": "my_selfLink",
9151
9443
  * // "startTime": "my_startTime",
9444
+ * // "startWorkloadCaptureContext": {},
9445
+ * // "startWorkloadReplayContext": {},
9152
9446
  * // "status": "my_status",
9447
+ * // "stopWorkloadCaptureContext": {},
9448
+ * // "stopWorkloadReplayContext": {},
9153
9449
  * // "subOperationType": {},
9154
9450
  * // "targetId": "my_targetId",
9155
9451
  * // "targetLink": "my_targetLink",
@@ -9243,7 +9539,11 @@ export declare namespace sqladmin_v1beta4 {
9243
9539
  * // "preCheckMajorVersionUpgradeContext": {},
9244
9540
  * // "selfLink": "my_selfLink",
9245
9541
  * // "startTime": "my_startTime",
9542
+ * // "startWorkloadCaptureContext": {},
9543
+ * // "startWorkloadReplayContext": {},
9246
9544
  * // "status": "my_status",
9545
+ * // "stopWorkloadCaptureContext": {},
9546
+ * // "stopWorkloadReplayContext": {},
9247
9547
  * // "subOperationType": {},
9248
9548
  * // "targetId": "my_targetId",
9249
9549
  * // "targetLink": "my_targetLink",
@@ -9389,7 +9689,11 @@ export declare namespace sqladmin_v1beta4 {
9389
9689
  * // "preCheckMajorVersionUpgradeContext": {},
9390
9690
  * // "selfLink": "my_selfLink",
9391
9691
  * // "startTime": "my_startTime",
9692
+ * // "startWorkloadCaptureContext": {},
9693
+ * // "startWorkloadReplayContext": {},
9392
9694
  * // "status": "my_status",
9695
+ * // "stopWorkloadCaptureContext": {},
9696
+ * // "stopWorkloadReplayContext": {},
9393
9697
  * // "subOperationType": {},
9394
9698
  * // "targetId": "my_targetId",
9395
9699
  * // "targetLink": "my_targetLink",
@@ -10142,7 +10446,11 @@ export declare namespace sqladmin_v1beta4 {
10142
10446
  * // "preCheckMajorVersionUpgradeContext": {},
10143
10447
  * // "selfLink": "my_selfLink",
10144
10448
  * // "startTime": "my_startTime",
10449
+ * // "startWorkloadCaptureContext": {},
10450
+ * // "startWorkloadReplayContext": {},
10145
10451
  * // "status": "my_status",
10452
+ * // "stopWorkloadCaptureContext": {},
10453
+ * // "stopWorkloadReplayContext": {},
10146
10454
  * // "subOperationType": {},
10147
10455
  * // "targetId": "my_targetId",
10148
10456
  * // "targetLink": "my_targetLink",
@@ -10508,7 +10816,11 @@ export declare namespace sqladmin_v1beta4 {
10508
10816
  * // "preCheckMajorVersionUpgradeContext": {},
10509
10817
  * // "selfLink": "my_selfLink",
10510
10818
  * // "startTime": "my_startTime",
10819
+ * // "startWorkloadCaptureContext": {},
10820
+ * // "startWorkloadReplayContext": {},
10511
10821
  * // "status": "my_status",
10822
+ * // "stopWorkloadCaptureContext": {},
10823
+ * // "stopWorkloadReplayContext": {},
10512
10824
  * // "subOperationType": {},
10513
10825
  * // "targetId": "my_targetId",
10514
10826
  * // "targetLink": "my_targetLink",
@@ -10602,7 +10914,11 @@ export declare namespace sqladmin_v1beta4 {
10602
10914
  * // "preCheckMajorVersionUpgradeContext": {},
10603
10915
  * // "selfLink": "my_selfLink",
10604
10916
  * // "startTime": "my_startTime",
10917
+ * // "startWorkloadCaptureContext": {},
10918
+ * // "startWorkloadReplayContext": {},
10605
10919
  * // "status": "my_status",
10920
+ * // "stopWorkloadCaptureContext": {},
10921
+ * // "stopWorkloadReplayContext": {},
10606
10922
  * // "subOperationType": {},
10607
10923
  * // "targetId": "my_targetId",
10608
10924
  * // "targetLink": "my_targetLink",
@@ -10694,7 +11010,11 @@ export declare namespace sqladmin_v1beta4 {
10694
11010
  * // "preCheckMajorVersionUpgradeContext": {},
10695
11011
  * // "selfLink": "my_selfLink",
10696
11012
  * // "startTime": "my_startTime",
11013
+ * // "startWorkloadCaptureContext": {},
11014
+ * // "startWorkloadReplayContext": {},
10697
11015
  * // "status": "my_status",
11016
+ * // "stopWorkloadCaptureContext": {},
11017
+ * // "stopWorkloadReplayContext": {},
10698
11018
  * // "subOperationType": {},
10699
11019
  * // "targetId": "my_targetId",
10700
11020
  * // "targetLink": "my_targetLink",
@@ -10792,7 +11112,11 @@ export declare namespace sqladmin_v1beta4 {
10792
11112
  * // "preCheckMajorVersionUpgradeContext": {},
10793
11113
  * // "selfLink": "my_selfLink",
10794
11114
  * // "startTime": "my_startTime",
11115
+ * // "startWorkloadCaptureContext": {},
11116
+ * // "startWorkloadReplayContext": {},
10795
11117
  * // "status": "my_status",
11118
+ * // "stopWorkloadCaptureContext": {},
11119
+ * // "stopWorkloadReplayContext": {},
10796
11120
  * // "subOperationType": {},
10797
11121
  * // "targetId": "my_targetId",
10798
11122
  * // "targetLink": "my_targetLink",
@@ -11158,7 +11482,11 @@ export declare namespace sqladmin_v1beta4 {
11158
11482
  * // "preCheckMajorVersionUpgradeContext": {},
11159
11483
  * // "selfLink": "my_selfLink",
11160
11484
  * // "startTime": "my_startTime",
11485
+ * // "startWorkloadCaptureContext": {},
11486
+ * // "startWorkloadReplayContext": {},
11161
11487
  * // "status": "my_status",
11488
+ * // "stopWorkloadCaptureContext": {},
11489
+ * // "stopWorkloadReplayContext": {},
11162
11490
  * // "subOperationType": {},
11163
11491
  * // "targetId": "my_targetId",
11164
11492
  * // "targetLink": "my_targetLink",
@@ -11613,7 +11941,11 @@ export declare namespace sqladmin_v1beta4 {
11613
11941
  * // "preCheckMajorVersionUpgradeContext": {},
11614
11942
  * // "selfLink": "my_selfLink",
11615
11943
  * // "startTime": "my_startTime",
11944
+ * // "startWorkloadCaptureContext": {},
11945
+ * // "startWorkloadReplayContext": {},
11616
11946
  * // "status": "my_status",
11947
+ * // "stopWorkloadCaptureContext": {},
11948
+ * // "stopWorkloadReplayContext": {},
11617
11949
  * // "subOperationType": {},
11618
11950
  * // "targetId": "my_targetId",
11619
11951
  * // "targetLink": "my_targetLink",
@@ -11806,7 +12138,11 @@ export declare namespace sqladmin_v1beta4 {
11806
12138
  * // "preCheckMajorVersionUpgradeContext": {},
11807
12139
  * // "selfLink": "my_selfLink",
11808
12140
  * // "startTime": "my_startTime",
12141
+ * // "startWorkloadCaptureContext": {},
12142
+ * // "startWorkloadReplayContext": {},
11809
12143
  * // "status": "my_status",
12144
+ * // "stopWorkloadCaptureContext": {},
12145
+ * // "stopWorkloadReplayContext": {},
11810
12146
  * // "subOperationType": {},
11811
12147
  * // "targetId": "my_targetId",
11812
12148
  * // "targetLink": "my_targetLink",
@@ -11995,7 +12331,11 @@ export declare namespace sqladmin_v1beta4 {
11995
12331
  * // "preCheckMajorVersionUpgradeContext": {},
11996
12332
  * // "selfLink": "my_selfLink",
11997
12333
  * // "startTime": "my_startTime",
12334
+ * // "startWorkloadCaptureContext": {},
12335
+ * // "startWorkloadReplayContext": {},
11998
12336
  * // "status": "my_status",
12337
+ * // "stopWorkloadCaptureContext": {},
12338
+ * // "stopWorkloadReplayContext": {},
11999
12339
  * // "subOperationType": {},
12000
12340
  * // "targetId": "my_targetId",
12001
12341
  * // "targetLink": "my_targetLink",
@@ -12141,5 +12481,537 @@ export declare namespace sqladmin_v1beta4 {
12141
12481
  */
12142
12482
  requestBody?: Schema$User;
12143
12483
  }
12484
+ export class Resource$Workloadcaptures {
12485
+ context: APIRequestContext;
12486
+ constructor(context: APIRequestContext);
12487
+ /**
12488
+ * Lists all captured workloads associated with the instance.
12489
+ * @example
12490
+ * ```js
12491
+ * // Before running the sample:
12492
+ * // - Enable the API at:
12493
+ * // https://console.developers.google.com/apis/api/sqladmin.googleapis.com
12494
+ * // - Login into gcloud by running:
12495
+ * // ```sh
12496
+ * // $ gcloud auth application-default login
12497
+ * // ```
12498
+ * // - Install the npm module by running:
12499
+ * // ```sh
12500
+ * // $ npm install googleapis
12501
+ * // ```
12502
+ *
12503
+ * const {google} = require('googleapis');
12504
+ * const sqladmin = google.sqladmin('v1beta4');
12505
+ *
12506
+ * async function main() {
12507
+ * const auth = new google.auth.GoogleAuth({
12508
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
12509
+ * scopes: [
12510
+ * 'https://www.googleapis.com/auth/cloud-platform',
12511
+ * 'https://www.googleapis.com/auth/sqlservice.admin',
12512
+ * ],
12513
+ * });
12514
+ *
12515
+ * // Acquire an auth client, and bind it to all future calls
12516
+ * const authClient = await auth.getClient();
12517
+ * google.options({auth: authClient});
12518
+ *
12519
+ * // Do the magic
12520
+ * const res = await sql.workloadCaptures.list({
12521
+ * // Required. Cloud SQL instance ID. This does not include the project ID.
12522
+ * instance: 'placeholder-value',
12523
+ * // Required. Project ID of the project that contains the instance.
12524
+ * project: 'placeholder-value',
12525
+ * });
12526
+ * console.log(res.data);
12527
+ *
12528
+ * // Example response
12529
+ * // {
12530
+ * // "kind": "my_kind",
12531
+ * // "workloadCaptures": []
12532
+ * // }
12533
+ * }
12534
+ *
12535
+ * main().catch(e => {
12536
+ * console.error(e);
12537
+ * throw e;
12538
+ * });
12539
+ *
12540
+ * ```
12541
+ *
12542
+ * @param params - Parameters for request
12543
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
12544
+ * @param callback - Optional callback that handles the response.
12545
+ * @returns A promise if used with async/await, or void if used with a callback.
12546
+ */
12547
+ list(params: Params$Resource$Workloadcaptures$List, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
12548
+ list(params?: Params$Resource$Workloadcaptures$List, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$WorkloadCapturesListResponse>>;
12549
+ list(params: Params$Resource$Workloadcaptures$List, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
12550
+ list(params: Params$Resource$Workloadcaptures$List, options: MethodOptions | BodyResponseCallback<Schema$WorkloadCapturesListResponse>, callback: BodyResponseCallback<Schema$WorkloadCapturesListResponse>): void;
12551
+ list(params: Params$Resource$Workloadcaptures$List, callback: BodyResponseCallback<Schema$WorkloadCapturesListResponse>): void;
12552
+ list(callback: BodyResponseCallback<Schema$WorkloadCapturesListResponse>): void;
12553
+ /**
12554
+ * 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.
12555
+ * @example
12556
+ * ```js
12557
+ * // Before running the sample:
12558
+ * // - Enable the API at:
12559
+ * // https://console.developers.google.com/apis/api/sqladmin.googleapis.com
12560
+ * // - Login into gcloud by running:
12561
+ * // ```sh
12562
+ * // $ gcloud auth application-default login
12563
+ * // ```
12564
+ * // - Install the npm module by running:
12565
+ * // ```sh
12566
+ * // $ npm install googleapis
12567
+ * // ```
12568
+ *
12569
+ * const {google} = require('googleapis');
12570
+ * const sqladmin = google.sqladmin('v1beta4');
12571
+ *
12572
+ * async function main() {
12573
+ * const auth = new google.auth.GoogleAuth({
12574
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
12575
+ * scopes: [
12576
+ * 'https://www.googleapis.com/auth/cloud-platform',
12577
+ * 'https://www.googleapis.com/auth/sqlservice.admin',
12578
+ * ],
12579
+ * });
12580
+ *
12581
+ * // Acquire an auth client, and bind it to all future calls
12582
+ * const authClient = await auth.getClient();
12583
+ * google.options({auth: authClient});
12584
+ *
12585
+ * // Do the magic
12586
+ * const res = await sql.workloadCaptures.start({
12587
+ * // Required. Cloud SQL instance ID. This does not include the project ID.
12588
+ * instance: 'placeholder-value',
12589
+ * // Required. Project ID of the project that contains the instance.
12590
+ * project: 'placeholder-value',
12591
+ *
12592
+ * // Request body metadata
12593
+ * requestBody: {
12594
+ * // request body parameters
12595
+ * // {
12596
+ * // "startWorkloadCaptureContext": {}
12597
+ * // }
12598
+ * },
12599
+ * });
12600
+ * console.log(res.data);
12601
+ *
12602
+ * // Example response
12603
+ * // {
12604
+ * // "acquireSsrsLeaseContext": {},
12605
+ * // "apiWarning": {},
12606
+ * // "backupContext": {},
12607
+ * // "endTime": "my_endTime",
12608
+ * // "error": {},
12609
+ * // "exportContext": {},
12610
+ * // "importContext": {},
12611
+ * // "insertTime": "my_insertTime",
12612
+ * // "kind": "my_kind",
12613
+ * // "name": "my_name",
12614
+ * // "operationType": "my_operationType",
12615
+ * // "preCheckMajorVersionUpgradeContext": {},
12616
+ * // "selfLink": "my_selfLink",
12617
+ * // "startTime": "my_startTime",
12618
+ * // "startWorkloadCaptureContext": {},
12619
+ * // "startWorkloadReplayContext": {},
12620
+ * // "status": "my_status",
12621
+ * // "stopWorkloadCaptureContext": {},
12622
+ * // "stopWorkloadReplayContext": {},
12623
+ * // "subOperationType": {},
12624
+ * // "targetId": "my_targetId",
12625
+ * // "targetLink": "my_targetLink",
12626
+ * // "targetProject": "my_targetProject",
12627
+ * // "user": "my_user"
12628
+ * // }
12629
+ * }
12630
+ *
12631
+ * main().catch(e => {
12632
+ * console.error(e);
12633
+ * throw e;
12634
+ * });
12635
+ *
12636
+ * ```
12637
+ *
12638
+ * @param params - Parameters for request
12639
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
12640
+ * @param callback - Optional callback that handles the response.
12641
+ * @returns A promise if used with async/await, or void if used with a callback.
12642
+ */
12643
+ start(params: Params$Resource$Workloadcaptures$Start, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
12644
+ start(params?: Params$Resource$Workloadcaptures$Start, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$Operation>>;
12645
+ start(params: Params$Resource$Workloadcaptures$Start, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
12646
+ start(params: Params$Resource$Workloadcaptures$Start, options: MethodOptions | BodyResponseCallback<Schema$Operation>, callback: BodyResponseCallback<Schema$Operation>): void;
12647
+ start(params: Params$Resource$Workloadcaptures$Start, callback: BodyResponseCallback<Schema$Operation>): void;
12648
+ start(callback: BodyResponseCallback<Schema$Operation>): void;
12649
+ /**
12650
+ * 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.
12651
+ * @example
12652
+ * ```js
12653
+ * // Before running the sample:
12654
+ * // - Enable the API at:
12655
+ * // https://console.developers.google.com/apis/api/sqladmin.googleapis.com
12656
+ * // - Login into gcloud by running:
12657
+ * // ```sh
12658
+ * // $ gcloud auth application-default login
12659
+ * // ```
12660
+ * // - Install the npm module by running:
12661
+ * // ```sh
12662
+ * // $ npm install googleapis
12663
+ * // ```
12664
+ *
12665
+ * const {google} = require('googleapis');
12666
+ * const sqladmin = google.sqladmin('v1beta4');
12667
+ *
12668
+ * async function main() {
12669
+ * const auth = new google.auth.GoogleAuth({
12670
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
12671
+ * scopes: [
12672
+ * 'https://www.googleapis.com/auth/cloud-platform',
12673
+ * 'https://www.googleapis.com/auth/sqlservice.admin',
12674
+ * ],
12675
+ * });
12676
+ *
12677
+ * // Acquire an auth client, and bind it to all future calls
12678
+ * const authClient = await auth.getClient();
12679
+ * google.options({auth: authClient});
12680
+ *
12681
+ * // Do the magic
12682
+ * const res = await sql.workloadCaptures.startReplay({
12683
+ * // Required. Cloud SQL instance ID. This does not include the project ID.
12684
+ * instance: 'placeholder-value',
12685
+ * // Required. Project ID of the project that contains the instance.
12686
+ * project: 'placeholder-value',
12687
+ * // Required. The ID of the workload to replay.
12688
+ * workloadId: 'placeholder-value',
12689
+ *
12690
+ * // Request body metadata
12691
+ * requestBody: {
12692
+ * // request body parameters
12693
+ * // {
12694
+ * // "startWorkloadReplayContext": {}
12695
+ * // }
12696
+ * },
12697
+ * });
12698
+ * console.log(res.data);
12699
+ *
12700
+ * // Example response
12701
+ * // {
12702
+ * // "acquireSsrsLeaseContext": {},
12703
+ * // "apiWarning": {},
12704
+ * // "backupContext": {},
12705
+ * // "endTime": "my_endTime",
12706
+ * // "error": {},
12707
+ * // "exportContext": {},
12708
+ * // "importContext": {},
12709
+ * // "insertTime": "my_insertTime",
12710
+ * // "kind": "my_kind",
12711
+ * // "name": "my_name",
12712
+ * // "operationType": "my_operationType",
12713
+ * // "preCheckMajorVersionUpgradeContext": {},
12714
+ * // "selfLink": "my_selfLink",
12715
+ * // "startTime": "my_startTime",
12716
+ * // "startWorkloadCaptureContext": {},
12717
+ * // "startWorkloadReplayContext": {},
12718
+ * // "status": "my_status",
12719
+ * // "stopWorkloadCaptureContext": {},
12720
+ * // "stopWorkloadReplayContext": {},
12721
+ * // "subOperationType": {},
12722
+ * // "targetId": "my_targetId",
12723
+ * // "targetLink": "my_targetLink",
12724
+ * // "targetProject": "my_targetProject",
12725
+ * // "user": "my_user"
12726
+ * // }
12727
+ * }
12728
+ *
12729
+ * main().catch(e => {
12730
+ * console.error(e);
12731
+ * throw e;
12732
+ * });
12733
+ *
12734
+ * ```
12735
+ *
12736
+ * @param params - Parameters for request
12737
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
12738
+ * @param callback - Optional callback that handles the response.
12739
+ * @returns A promise if used with async/await, or void if used with a callback.
12740
+ */
12741
+ startReplay(params: Params$Resource$Workloadcaptures$Startreplay, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
12742
+ startReplay(params?: Params$Resource$Workloadcaptures$Startreplay, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$Operation>>;
12743
+ startReplay(params: Params$Resource$Workloadcaptures$Startreplay, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
12744
+ startReplay(params: Params$Resource$Workloadcaptures$Startreplay, options: MethodOptions | BodyResponseCallback<Schema$Operation>, callback: BodyResponseCallback<Schema$Operation>): void;
12745
+ startReplay(params: Params$Resource$Workloadcaptures$Startreplay, callback: BodyResponseCallback<Schema$Operation>): void;
12746
+ startReplay(callback: BodyResponseCallback<Schema$Operation>): void;
12747
+ /**
12748
+ * Stops capturing the query traffic and related operations executed on the primary instance.
12749
+ * @example
12750
+ * ```js
12751
+ * // Before running the sample:
12752
+ * // - Enable the API at:
12753
+ * // https://console.developers.google.com/apis/api/sqladmin.googleapis.com
12754
+ * // - Login into gcloud by running:
12755
+ * // ```sh
12756
+ * // $ gcloud auth application-default login
12757
+ * // ```
12758
+ * // - Install the npm module by running:
12759
+ * // ```sh
12760
+ * // $ npm install googleapis
12761
+ * // ```
12762
+ *
12763
+ * const {google} = require('googleapis');
12764
+ * const sqladmin = google.sqladmin('v1beta4');
12765
+ *
12766
+ * async function main() {
12767
+ * const auth = new google.auth.GoogleAuth({
12768
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
12769
+ * scopes: [
12770
+ * 'https://www.googleapis.com/auth/cloud-platform',
12771
+ * 'https://www.googleapis.com/auth/sqlservice.admin',
12772
+ * ],
12773
+ * });
12774
+ *
12775
+ * // Acquire an auth client, and bind it to all future calls
12776
+ * const authClient = await auth.getClient();
12777
+ * google.options({auth: authClient});
12778
+ *
12779
+ * // Do the magic
12780
+ * const res = await sql.workloadCaptures.stop({
12781
+ * // Required. Cloud SQL instance ID. This does not include the project ID.
12782
+ * instance: 'placeholder-value',
12783
+ * // Required. Project ID of the project that contains the instance.
12784
+ * project: 'placeholder-value',
12785
+ *
12786
+ * // Request body metadata
12787
+ * requestBody: {
12788
+ * // request body parameters
12789
+ * // {
12790
+ * // "stopWorkloadCaptureContext": {}
12791
+ * // }
12792
+ * },
12793
+ * });
12794
+ * console.log(res.data);
12795
+ *
12796
+ * // Example response
12797
+ * // {
12798
+ * // "acquireSsrsLeaseContext": {},
12799
+ * // "apiWarning": {},
12800
+ * // "backupContext": {},
12801
+ * // "endTime": "my_endTime",
12802
+ * // "error": {},
12803
+ * // "exportContext": {},
12804
+ * // "importContext": {},
12805
+ * // "insertTime": "my_insertTime",
12806
+ * // "kind": "my_kind",
12807
+ * // "name": "my_name",
12808
+ * // "operationType": "my_operationType",
12809
+ * // "preCheckMajorVersionUpgradeContext": {},
12810
+ * // "selfLink": "my_selfLink",
12811
+ * // "startTime": "my_startTime",
12812
+ * // "startWorkloadCaptureContext": {},
12813
+ * // "startWorkloadReplayContext": {},
12814
+ * // "status": "my_status",
12815
+ * // "stopWorkloadCaptureContext": {},
12816
+ * // "stopWorkloadReplayContext": {},
12817
+ * // "subOperationType": {},
12818
+ * // "targetId": "my_targetId",
12819
+ * // "targetLink": "my_targetLink",
12820
+ * // "targetProject": "my_targetProject",
12821
+ * // "user": "my_user"
12822
+ * // }
12823
+ * }
12824
+ *
12825
+ * main().catch(e => {
12826
+ * console.error(e);
12827
+ * throw e;
12828
+ * });
12829
+ *
12830
+ * ```
12831
+ *
12832
+ * @param params - Parameters for request
12833
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
12834
+ * @param callback - Optional callback that handles the response.
12835
+ * @returns A promise if used with async/await, or void if used with a callback.
12836
+ */
12837
+ stop(params: Params$Resource$Workloadcaptures$Stop, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
12838
+ stop(params?: Params$Resource$Workloadcaptures$Stop, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$Operation>>;
12839
+ stop(params: Params$Resource$Workloadcaptures$Stop, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
12840
+ stop(params: Params$Resource$Workloadcaptures$Stop, options: MethodOptions | BodyResponseCallback<Schema$Operation>, callback: BodyResponseCallback<Schema$Operation>): void;
12841
+ stop(params: Params$Resource$Workloadcaptures$Stop, callback: BodyResponseCallback<Schema$Operation>): void;
12842
+ stop(callback: BodyResponseCallback<Schema$Operation>): void;
12843
+ /**
12844
+ * Stops executing a captured workload on the separate Cloud SQL instance.
12845
+ * @example
12846
+ * ```js
12847
+ * // Before running the sample:
12848
+ * // - Enable the API at:
12849
+ * // https://console.developers.google.com/apis/api/sqladmin.googleapis.com
12850
+ * // - Login into gcloud by running:
12851
+ * // ```sh
12852
+ * // $ gcloud auth application-default login
12853
+ * // ```
12854
+ * // - Install the npm module by running:
12855
+ * // ```sh
12856
+ * // $ npm install googleapis
12857
+ * // ```
12858
+ *
12859
+ * const {google} = require('googleapis');
12860
+ * const sqladmin = google.sqladmin('v1beta4');
12861
+ *
12862
+ * async function main() {
12863
+ * const auth = new google.auth.GoogleAuth({
12864
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
12865
+ * scopes: [
12866
+ * 'https://www.googleapis.com/auth/cloud-platform',
12867
+ * 'https://www.googleapis.com/auth/sqlservice.admin',
12868
+ * ],
12869
+ * });
12870
+ *
12871
+ * // Acquire an auth client, and bind it to all future calls
12872
+ * const authClient = await auth.getClient();
12873
+ * google.options({auth: authClient});
12874
+ *
12875
+ * // Do the magic
12876
+ * const res = await sql.workloadCaptures.stopReplay({
12877
+ * // Required. Cloud SQL instance ID. This does not include the project ID.
12878
+ * instance: 'placeholder-value',
12879
+ * // Required. Project ID of the project that contains the instance.
12880
+ * project: 'placeholder-value',
12881
+ * // Required. The ID of the workload to replay.
12882
+ * workloadId: 'placeholder-value',
12883
+ *
12884
+ * // Request body metadata
12885
+ * requestBody: {
12886
+ * // request body parameters
12887
+ * // {
12888
+ * // "stopWorkloadReplayContext": {}
12889
+ * // }
12890
+ * },
12891
+ * });
12892
+ * console.log(res.data);
12893
+ *
12894
+ * // Example response
12895
+ * // {
12896
+ * // "acquireSsrsLeaseContext": {},
12897
+ * // "apiWarning": {},
12898
+ * // "backupContext": {},
12899
+ * // "endTime": "my_endTime",
12900
+ * // "error": {},
12901
+ * // "exportContext": {},
12902
+ * // "importContext": {},
12903
+ * // "insertTime": "my_insertTime",
12904
+ * // "kind": "my_kind",
12905
+ * // "name": "my_name",
12906
+ * // "operationType": "my_operationType",
12907
+ * // "preCheckMajorVersionUpgradeContext": {},
12908
+ * // "selfLink": "my_selfLink",
12909
+ * // "startTime": "my_startTime",
12910
+ * // "startWorkloadCaptureContext": {},
12911
+ * // "startWorkloadReplayContext": {},
12912
+ * // "status": "my_status",
12913
+ * // "stopWorkloadCaptureContext": {},
12914
+ * // "stopWorkloadReplayContext": {},
12915
+ * // "subOperationType": {},
12916
+ * // "targetId": "my_targetId",
12917
+ * // "targetLink": "my_targetLink",
12918
+ * // "targetProject": "my_targetProject",
12919
+ * // "user": "my_user"
12920
+ * // }
12921
+ * }
12922
+ *
12923
+ * main().catch(e => {
12924
+ * console.error(e);
12925
+ * throw e;
12926
+ * });
12927
+ *
12928
+ * ```
12929
+ *
12930
+ * @param params - Parameters for request
12931
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
12932
+ * @param callback - Optional callback that handles the response.
12933
+ * @returns A promise if used with async/await, or void if used with a callback.
12934
+ */
12935
+ stopReplay(params: Params$Resource$Workloadcaptures$Stopreplay, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
12936
+ stopReplay(params?: Params$Resource$Workloadcaptures$Stopreplay, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$Operation>>;
12937
+ stopReplay(params: Params$Resource$Workloadcaptures$Stopreplay, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
12938
+ stopReplay(params: Params$Resource$Workloadcaptures$Stopreplay, options: MethodOptions | BodyResponseCallback<Schema$Operation>, callback: BodyResponseCallback<Schema$Operation>): void;
12939
+ stopReplay(params: Params$Resource$Workloadcaptures$Stopreplay, callback: BodyResponseCallback<Schema$Operation>): void;
12940
+ stopReplay(callback: BodyResponseCallback<Schema$Operation>): void;
12941
+ }
12942
+ export interface Params$Resource$Workloadcaptures$List extends StandardParameters {
12943
+ /**
12944
+ * Required. Cloud SQL instance ID. This does not include the project ID.
12945
+ */
12946
+ instance?: string;
12947
+ /**
12948
+ * Required. Project ID of the project that contains the instance.
12949
+ */
12950
+ project?: string;
12951
+ }
12952
+ export interface Params$Resource$Workloadcaptures$Start extends StandardParameters {
12953
+ /**
12954
+ * Required. Cloud SQL instance ID. This does not include the project ID.
12955
+ */
12956
+ instance?: string;
12957
+ /**
12958
+ * Required. Project ID of the project that contains the instance.
12959
+ */
12960
+ project?: string;
12961
+ /**
12962
+ * Request body metadata
12963
+ */
12964
+ requestBody?: Schema$SqlWorkloadCapturesStartRequest;
12965
+ }
12966
+ export interface Params$Resource$Workloadcaptures$Startreplay extends StandardParameters {
12967
+ /**
12968
+ * Required. Cloud SQL instance ID. This does not include the project ID.
12969
+ */
12970
+ instance?: string;
12971
+ /**
12972
+ * Required. Project ID of the project that contains the instance.
12973
+ */
12974
+ project?: string;
12975
+ /**
12976
+ * Required. The ID of the workload to replay.
12977
+ */
12978
+ workloadId?: string;
12979
+ /**
12980
+ * Request body metadata
12981
+ */
12982
+ requestBody?: Schema$SqlWorkloadCapturesStartReplayRequest;
12983
+ }
12984
+ export interface Params$Resource$Workloadcaptures$Stop extends StandardParameters {
12985
+ /**
12986
+ * Required. Cloud SQL instance ID. This does not include the project ID.
12987
+ */
12988
+ instance?: string;
12989
+ /**
12990
+ * Required. Project ID of the project that contains the instance.
12991
+ */
12992
+ project?: string;
12993
+ /**
12994
+ * Request body metadata
12995
+ */
12996
+ requestBody?: Schema$SqlWorkloadCapturesStopRequest;
12997
+ }
12998
+ export interface Params$Resource$Workloadcaptures$Stopreplay extends StandardParameters {
12999
+ /**
13000
+ * Required. Cloud SQL instance ID. This does not include the project ID.
13001
+ */
13002
+ instance?: string;
13003
+ /**
13004
+ * Required. Project ID of the project that contains the instance.
13005
+ */
13006
+ project?: string;
13007
+ /**
13008
+ * Required. The ID of the workload to replay.
13009
+ */
13010
+ workloadId?: string;
13011
+ /**
13012
+ * Request body metadata
13013
+ */
13014
+ requestBody?: Schema$SqlWorkloadCapturesStopReplayRequest;
13015
+ }
12144
13016
  export {};
12145
13017
  }