google-apis-sqladmin_v1beta4 0.105.0 → 0.106.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: dd017040103606cff86128053a27365b6b1e5c4b32836a16f8a68a295a959d9c
4
- data.tar.gz: 0145d48033e1d9961a3bcc2ee91b9b4c9b1f14493aa8153b2841049ec6eb6a76
3
+ metadata.gz: 4e52ee3fd1b2a27581311cf6e94e59f1244dbaa4312e1546e364997540392fbe
4
+ data.tar.gz: 6aaf3c8ecfbe01a2a85b9ae1a285abe0fd0a998b1a8456de2aedc2bb9758c3e8
5
5
  SHA512:
6
- metadata.gz: 3d9630ca3383439fc0e8349a17d195d68fdfe9047e6a6f1d15b8c1708462402a53f57bc2364ee4d80b6bb57ca49adc91b680e22d988d30896ff5e30c439aec9b
7
- data.tar.gz: 1531efbdc079a9ca398a53d94bf0d577e8bb0afd0068568c3bf94445e15d85c48dd90ce10bbcaa0c0192d54d17034a39f56641395992f75d8b5b2ed62aee315c
6
+ metadata.gz: 77291c567dfd430733b7e96ca6845909150879069b9e089d5382b2309af9d8fb53c703b35a6507d181a78cb9cdae8c02f9d64ea87ab3c57f2e4356c211e2a983
7
+ data.tar.gz: 2e2f07dc57707177c7d0558bbf8b3b18e37c33d26be114b2e9dc7a094a1f2cdae6c371b43a031e86059f9d971a01ad97c003f9555da737ec56327abca74af413
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-sqladmin_v1beta4
2
2
 
3
+ ### v0.106.0 (2026-09-20)
4
+
5
+ * Regenerated from discovery document revision 20260908
6
+
3
7
  ### v0.105.0 (2026-09-06)
4
8
 
5
9
  * Regenerated from discovery document revision 20260819
@@ -2044,6 +2044,14 @@ module Google
2044
2044
  class DiskEncryptionConfiguration
2045
2045
  include Google::Apis::Core::Hashable
2046
2046
 
2047
+ # Optional. Whether to enforce CMEK log encryption at source. When enforced,
2048
+ # transaction logs are encrypted prior to being uploaded to Cloud Storage. If
2049
+ # not enforced, then CMEK logs are encrypted by the Cloud Storage service.
2050
+ # Corresponds to the JSON property `cmekSourceLogEncryptionEnforced`
2051
+ # @return [Boolean]
2052
+ attr_accessor :cmek_source_log_encryption_enforced
2053
+ alias_method :cmek_source_log_encryption_enforced?, :cmek_source_log_encryption_enforced
2054
+
2047
2055
  # Optional. If true, enables Confidential Mode for the instance's Hyperdisk
2048
2056
  # Balanced volumes. Only supported for zonal C4A instances currently.
2049
2057
  # Corresponds to the JSON property `confidentialMode`
@@ -2067,6 +2075,7 @@ module Google
2067
2075
 
2068
2076
  # Update properties of this object
2069
2077
  def update!(**args)
2078
+ @cmek_source_log_encryption_enforced = args[:cmek_source_log_encryption_enforced] if args.key?(:cmek_source_log_encryption_enforced)
2070
2079
  @confidential_mode = args[:confidential_mode] if args.key?(:confidential_mode)
2071
2080
  @kind = args[:kind] if args.key?(:kind)
2072
2081
  @kms_key_name = args[:kms_key_name] if args.key?(:kms_key_name)
@@ -4459,11 +4468,38 @@ module Google
4459
4468
  # @return [String]
4460
4469
  attr_accessor :start_time
4461
4470
 
4471
+ # The context for the `StartWorkloadCapture` operation, which contains details
4472
+ # to start recording the workload (SQL queries) on a Cloud SQL instance.
4473
+ # Corresponds to the JSON property `startWorkloadCaptureContext`
4474
+ # @return [Google::Apis::SqladminV1beta4::StartWorkloadCaptureContext]
4475
+ attr_accessor :start_workload_capture_context
4476
+
4477
+ # The context for the `StartWorkloadReplay` operation, which contains details
4478
+ # about starting the execution of a captured workload (recorded read and write
4479
+ # SQL queries) on a replay instance (the Cloud SQL instance where the recorded
4480
+ # SQL queries are executed).
4481
+ # Corresponds to the JSON property `startWorkloadReplayContext`
4482
+ # @return [Google::Apis::SqladminV1beta4::StartWorkloadReplayContext]
4483
+ attr_accessor :start_workload_replay_context
4484
+
4462
4485
  # The status of an operation.
4463
4486
  # Corresponds to the JSON property `status`
4464
4487
  # @return [String]
4465
4488
  attr_accessor :status
4466
4489
 
4490
+ # The context for the `StopWorkloadCapture` operation, which contains details to
4491
+ # stop recording the workload (SQL queries) on a Cloud SQL instance.
4492
+ # Corresponds to the JSON property `stopWorkloadCaptureContext`
4493
+ # @return [Google::Apis::SqladminV1beta4::StopWorkloadCaptureContext]
4494
+ attr_accessor :stop_workload_capture_context
4495
+
4496
+ # The context for the `StopWorkloadReplay` operation, which contains details
4497
+ # about stopping the execution of a captured workload (recorded read and write
4498
+ # SQL queries) on a replay instance.
4499
+ # Corresponds to the JSON property `stopWorkloadReplayContext`
4500
+ # @return [Google::Apis::SqladminV1beta4::StopWorkloadReplayContext]
4501
+ attr_accessor :stop_workload_replay_context
4502
+
4467
4503
  # The sub operation type based on the operation type.
4468
4504
  # Corresponds to the JSON property `subOperationType`
4469
4505
  # @return [Google::Apis::SqladminV1beta4::SqlSubOperationType]
@@ -4509,7 +4545,11 @@ module Google
4509
4545
  @pre_check_major_version_upgrade_context = args[:pre_check_major_version_upgrade_context] if args.key?(:pre_check_major_version_upgrade_context)
4510
4546
  @self_link = args[:self_link] if args.key?(:self_link)
4511
4547
  @start_time = args[:start_time] if args.key?(:start_time)
4548
+ @start_workload_capture_context = args[:start_workload_capture_context] if args.key?(:start_workload_capture_context)
4549
+ @start_workload_replay_context = args[:start_workload_replay_context] if args.key?(:start_workload_replay_context)
4512
4550
  @status = args[:status] if args.key?(:status)
4551
+ @stop_workload_capture_context = args[:stop_workload_capture_context] if args.key?(:stop_workload_capture_context)
4552
+ @stop_workload_replay_context = args[:stop_workload_replay_context] if args.key?(:stop_workload_replay_context)
4513
4553
  @sub_operation_type = args[:sub_operation_type] if args.key?(:sub_operation_type)
4514
4554
  @target_id = args[:target_id] if args.key?(:target_id)
4515
4555
  @target_link = args[:target_link] if args.key?(:target_link)
@@ -6192,7 +6232,7 @@ module Google
6192
6232
  end
6193
6233
  end
6194
6234
 
6195
- # Execute SQL statements response.
6235
+ #
6196
6236
  class SqlInstancesExecuteSqlResponse
6197
6237
  include Google::Apis::Core::Hashable
6198
6238
 
@@ -6724,6 +6764,91 @@ module Google
6724
6764
  end
6725
6765
  end
6726
6766
 
6767
+ # Request to start executing a captured workload on a replay instance (the Cloud
6768
+ # SQL instance where the recorded SQL queries are executed).
6769
+ class SqlWorkloadCapturesStartReplayRequest
6770
+ include Google::Apis::Core::Hashable
6771
+
6772
+ # The context for the `StartWorkloadReplay` operation, which contains details
6773
+ # about starting the execution of a captured workload (recorded read and write
6774
+ # SQL queries) on a replay instance (the Cloud SQL instance where the recorded
6775
+ # SQL queries are executed).
6776
+ # Corresponds to the JSON property `startWorkloadReplayContext`
6777
+ # @return [Google::Apis::SqladminV1beta4::StartWorkloadReplayContext]
6778
+ attr_accessor :start_workload_replay_context
6779
+
6780
+ def initialize(**args)
6781
+ update!(**args)
6782
+ end
6783
+
6784
+ # Update properties of this object
6785
+ def update!(**args)
6786
+ @start_workload_replay_context = args[:start_workload_replay_context] if args.key?(:start_workload_replay_context)
6787
+ end
6788
+ end
6789
+
6790
+ # Request to start recording traffic from the primary instance (captured
6791
+ # workload).
6792
+ class SqlWorkloadCapturesStartRequest
6793
+ include Google::Apis::Core::Hashable
6794
+
6795
+ # The context for the `StartWorkloadCapture` operation, which contains details
6796
+ # to start recording the workload (SQL queries) on a Cloud SQL instance.
6797
+ # Corresponds to the JSON property `startWorkloadCaptureContext`
6798
+ # @return [Google::Apis::SqladminV1beta4::StartWorkloadCaptureContext]
6799
+ attr_accessor :start_workload_capture_context
6800
+
6801
+ def initialize(**args)
6802
+ update!(**args)
6803
+ end
6804
+
6805
+ # Update properties of this object
6806
+ def update!(**args)
6807
+ @start_workload_capture_context = args[:start_workload_capture_context] if args.key?(:start_workload_capture_context)
6808
+ end
6809
+ end
6810
+
6811
+ # Request to stop executing a captured workload on a replay instance.
6812
+ class SqlWorkloadCapturesStopReplayRequest
6813
+ include Google::Apis::Core::Hashable
6814
+
6815
+ # The context for the `StopWorkloadReplay` operation, which contains details
6816
+ # about stopping the execution of a captured workload (recorded read and write
6817
+ # SQL queries) on a replay instance.
6818
+ # Corresponds to the JSON property `stopWorkloadReplayContext`
6819
+ # @return [Google::Apis::SqladminV1beta4::StopWorkloadReplayContext]
6820
+ attr_accessor :stop_workload_replay_context
6821
+
6822
+ def initialize(**args)
6823
+ update!(**args)
6824
+ end
6825
+
6826
+ # Update properties of this object
6827
+ def update!(**args)
6828
+ @stop_workload_replay_context = args[:stop_workload_replay_context] if args.key?(:stop_workload_replay_context)
6829
+ end
6830
+ end
6831
+
6832
+ # Request to stop recording traffic from the primary instance.
6833
+ class SqlWorkloadCapturesStopRequest
6834
+ include Google::Apis::Core::Hashable
6835
+
6836
+ # The context for the `StopWorkloadCapture` operation, which contains details to
6837
+ # stop recording the workload (SQL queries) on a Cloud SQL instance.
6838
+ # Corresponds to the JSON property `stopWorkloadCaptureContext`
6839
+ # @return [Google::Apis::SqladminV1beta4::StopWorkloadCaptureContext]
6840
+ attr_accessor :stop_workload_capture_context
6841
+
6842
+ def initialize(**args)
6843
+ update!(**args)
6844
+ end
6845
+
6846
+ # Update properties of this object
6847
+ def update!(**args)
6848
+ @stop_workload_capture_context = args[:stop_workload_capture_context] if args.key?(:stop_workload_capture_context)
6849
+ end
6850
+ end
6851
+
6727
6852
  # SslCerts Resource
6728
6853
  class SslCert
6729
6854
  include Google::Apis::Core::Hashable
@@ -6928,6 +7053,79 @@ module Google
6928
7053
  end
6929
7054
  end
6930
7055
 
7056
+ # The context for the `StartWorkloadCapture` operation, which contains details
7057
+ # to start recording the workload (SQL queries) on a Cloud SQL instance.
7058
+ class StartWorkloadCaptureContext
7059
+ include Google::Apis::Core::Hashable
7060
+
7061
+ # Optional. If true, the captured workload is simultaneously executed on a
7062
+ # separate, ephemeral Cloud SQL instance. This "live replay" instance is
7063
+ # automatically provisioned and is cloned from the source instance. If false (
7064
+ # the default), the workload is only stored and no live replay occurs. It can be
7065
+ # replayed later using a separate `StartWorkloadReplayRequest`. Note: The
7066
+ # workload capture runs continuously until an explicit `
7067
+ # StopWorkloadCaptureRequest` is issued.
7068
+ # Corresponds to the JSON property `enableLiveReplay`
7069
+ # @return [Boolean]
7070
+ attr_accessor :enable_live_replay
7071
+ alias_method :enable_live_replay?, :enable_live_replay
7072
+
7073
+ # Optional. Required if `enable_live_replay` is true. The name of the Cloud SQL
7074
+ # instance where the captured workload (SQL queries) is being executed,
7075
+ # excluding the project ID (for example, `my-replay-instance`). The instance
7076
+ # name must start with a lowercase letter and contain only lowercase letters,
7077
+ # numbers, and hyphens. The combined length of `project-ID:instance-name` must
7078
+ # be 98 characters or less.
7079
+ # Corresponds to the JSON property `replayInstance`
7080
+ # @return [String]
7081
+ attr_accessor :replay_instance
7082
+
7083
+ def initialize(**args)
7084
+ update!(**args)
7085
+ end
7086
+
7087
+ # Update properties of this object
7088
+ def update!(**args)
7089
+ @enable_live_replay = args[:enable_live_replay] if args.key?(:enable_live_replay)
7090
+ @replay_instance = args[:replay_instance] if args.key?(:replay_instance)
7091
+ end
7092
+ end
7093
+
7094
+ # The context for the `StartWorkloadReplay` operation, which contains details
7095
+ # about starting the execution of a captured workload (recorded read and write
7096
+ # SQL queries) on a replay instance (the Cloud SQL instance where the recorded
7097
+ # SQL queries are executed).
7098
+ class StartWorkloadReplayContext
7099
+ include Google::Apis::Core::Hashable
7100
+
7101
+ # Required. The name of the Cloud SQL instance where the captured workload (SQL
7102
+ # queries) is being executed, excluding the project ID (for example, `my-replay-
7103
+ # instance`). The instance name must start with a lowercase letter and contain
7104
+ # only lowercase letters, numbers, and hyphens. The combined length of `project-
7105
+ # ID:instance-name` must be 98 characters or less.
7106
+ # Corresponds to the JSON property `replayInstance`
7107
+ # @return [String]
7108
+ attr_accessor :replay_instance
7109
+
7110
+ # Output only. The ID of the workload to start executing on the replay instance.
7111
+ # Each workload capture generates a unique ID in the format `workload-` (for
7112
+ # example, `workload-1786046400`). Use this ID to start executing the recorded
7113
+ # SQL queries.
7114
+ # Corresponds to the JSON property `workloadId`
7115
+ # @return [String]
7116
+ attr_accessor :workload_id
7117
+
7118
+ def initialize(**args)
7119
+ update!(**args)
7120
+ end
7121
+
7122
+ # Update properties of this object
7123
+ def update!(**args)
7124
+ @replay_instance = args[:replay_instance] if args.key?(:replay_instance)
7125
+ @workload_id = args[:workload_id] if args.key?(:workload_id)
7126
+ end
7127
+ end
7128
+
6931
7129
  # The `Status` type defines a logical error model that is suitable for different
6932
7130
  # programming environments, including REST APIs and RPC APIs. It is used by [
6933
7131
  # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
@@ -6967,6 +7165,64 @@ module Google
6967
7165
  end
6968
7166
  end
6969
7167
 
7168
+ # The context for the `StopWorkloadCapture` operation, which contains details to
7169
+ # stop recording the workload (SQL queries) on a Cloud SQL instance.
7170
+ class StopWorkloadCaptureContext
7171
+ include Google::Apis::Core::Hashable
7172
+
7173
+ # Optional. If true, immediately aborts the concurrent live replay and discards
7174
+ # any un-replayed traffic alongside stopping the capture. If false (the default),
7175
+ # the capture stops recording new traffic, but the live replay will continue
7176
+ # executing until the entire backlog of captured traffic has been replayed.
7177
+ # Corresponds to the JSON property `abortLiveReplay`
7178
+ # @return [Boolean]
7179
+ attr_accessor :abort_live_replay
7180
+ alias_method :abort_live_replay?, :abort_live_replay
7181
+
7182
+ def initialize(**args)
7183
+ update!(**args)
7184
+ end
7185
+
7186
+ # Update properties of this object
7187
+ def update!(**args)
7188
+ @abort_live_replay = args[:abort_live_replay] if args.key?(:abort_live_replay)
7189
+ end
7190
+ end
7191
+
7192
+ # The context for the `StopWorkloadReplay` operation, which contains details
7193
+ # about stopping the execution of a captured workload (recorded read and write
7194
+ # SQL queries) on a replay instance.
7195
+ class StopWorkloadReplayContext
7196
+ include Google::Apis::Core::Hashable
7197
+
7198
+ # Required. The name of the Cloud SQL instance where the captured workload (SQL
7199
+ # queries) is being executed, excluding the project ID (for example, `my-replay-
7200
+ # instance`). The instance name must start with a lowercase letter and contain
7201
+ # only lowercase letters, numbers, and hyphens. The combined length of `project-
7202
+ # ID:instance-name` must be 98 characters or less.
7203
+ # Corresponds to the JSON property `replayInstance`
7204
+ # @return [String]
7205
+ attr_accessor :replay_instance
7206
+
7207
+ # Output only. The ID of the workload to stop executing on the replay instance.
7208
+ # Each workload capture generates a unique ID in the format `workload-` (for
7209
+ # example, `workload-1786046400`). Use this ID to stop executing the recorded
7210
+ # SQL queries.
7211
+ # Corresponds to the JSON property `workloadId`
7212
+ # @return [String]
7213
+ attr_accessor :workload_id
7214
+
7215
+ def initialize(**args)
7216
+ update!(**args)
7217
+ end
7218
+
7219
+ # Update properties of this object
7220
+ def update!(**args)
7221
+ @replay_instance = args[:replay_instance] if args.key?(:replay_instance)
7222
+ @workload_id = args[:workload_id] if args.key?(:workload_id)
7223
+ end
7224
+ end
7225
+
6970
7226
  # Request message for switching over a `BlueGreenDeployment` resource.
6971
7227
  class SwitchoverBlueGreenDeploymentRequest
6972
7228
  include Google::Apis::Core::Hashable
@@ -7381,6 +7637,86 @@ module Google
7381
7637
  @value = args[:value] if args.key?(:value)
7382
7638
  end
7383
7639
  end
7640
+
7641
+ # Captured workload for an instance.
7642
+ class WorkloadCapture
7643
+ include Google::Apis::Core::Hashable
7644
+
7645
+ # Output only. The end time of the workload capture.
7646
+ # Corresponds to the JSON property `endTime`
7647
+ # @return [String]
7648
+ attr_accessor :end_time
7649
+
7650
+ # Output only. The name of the replay instance, if live replay was enabled.
7651
+ # Corresponds to the JSON property `replayInstance`
7652
+ # @return [String]
7653
+ attr_accessor :replay_instance
7654
+
7655
+ # Output only. The retention period in days for the captured workload.
7656
+ # Corresponds to the JSON property `retentionDays`
7657
+ # @return [Fixnum]
7658
+ attr_accessor :retention_days
7659
+
7660
+ # Output only. The name of the source instance.
7661
+ # Corresponds to the JSON property `sourceInstance`
7662
+ # @return [String]
7663
+ attr_accessor :source_instance
7664
+
7665
+ # Output only. The start time of the workload capture.
7666
+ # Corresponds to the JSON property `startTime`
7667
+ # @return [String]
7668
+ attr_accessor :start_time
7669
+
7670
+ # Output only. The state of the workload capture.
7671
+ # Corresponds to the JSON property `workloadCaptureState`
7672
+ # @return [String]
7673
+ attr_accessor :workload_capture_state
7674
+
7675
+ # Output only. The ID of the captured workload.
7676
+ # Corresponds to the JSON property `workloadId`
7677
+ # @return [String]
7678
+ attr_accessor :workload_id
7679
+
7680
+ def initialize(**args)
7681
+ update!(**args)
7682
+ end
7683
+
7684
+ # Update properties of this object
7685
+ def update!(**args)
7686
+ @end_time = args[:end_time] if args.key?(:end_time)
7687
+ @replay_instance = args[:replay_instance] if args.key?(:replay_instance)
7688
+ @retention_days = args[:retention_days] if args.key?(:retention_days)
7689
+ @source_instance = args[:source_instance] if args.key?(:source_instance)
7690
+ @start_time = args[:start_time] if args.key?(:start_time)
7691
+ @workload_capture_state = args[:workload_capture_state] if args.key?(:workload_capture_state)
7692
+ @workload_id = args[:workload_id] if args.key?(:workload_id)
7693
+ end
7694
+ end
7695
+
7696
+ # Instance list captured workloads response.
7697
+ class WorkloadCapturesListResponse
7698
+ include Google::Apis::Core::Hashable
7699
+
7700
+ # This is always `sql#workloadCapturesList`.
7701
+ # Corresponds to the JSON property `kind`
7702
+ # @return [String]
7703
+ attr_accessor :kind
7704
+
7705
+ # List of captured workloads for the instance.
7706
+ # Corresponds to the JSON property `workloadCaptures`
7707
+ # @return [Array<Google::Apis::SqladminV1beta4::WorkloadCapture>]
7708
+ attr_accessor :workload_captures
7709
+
7710
+ def initialize(**args)
7711
+ update!(**args)
7712
+ end
7713
+
7714
+ # Update properties of this object
7715
+ def update!(**args)
7716
+ @kind = args[:kind] if args.key?(:kind)
7717
+ @workload_captures = args[:workload_captures] if args.key?(:workload_captures)
7718
+ end
7719
+ end
7384
7720
  end
7385
7721
  end
7386
7722
  end
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module SqladminV1beta4
18
18
  # Version of the google-apis-sqladmin_v1beta4 gem
19
- GEM_VERSION = "0.105.0"
19
+ GEM_VERSION = "0.106.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.19.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20260819"
25
+ REVISION = "20260908"
26
26
  end
27
27
  end
28
28
  end
@@ -886,6 +886,30 @@ module Google
886
886
  include Google::Apis::Core::JsonObjectSupport
887
887
  end
888
888
 
889
+ class SqlWorkloadCapturesStartReplayRequest
890
+ class Representation < Google::Apis::Core::JsonRepresentation; end
891
+
892
+ include Google::Apis::Core::JsonObjectSupport
893
+ end
894
+
895
+ class SqlWorkloadCapturesStartRequest
896
+ class Representation < Google::Apis::Core::JsonRepresentation; end
897
+
898
+ include Google::Apis::Core::JsonObjectSupport
899
+ end
900
+
901
+ class SqlWorkloadCapturesStopReplayRequest
902
+ class Representation < Google::Apis::Core::JsonRepresentation; end
903
+
904
+ include Google::Apis::Core::JsonObjectSupport
905
+ end
906
+
907
+ class SqlWorkloadCapturesStopRequest
908
+ class Representation < Google::Apis::Core::JsonRepresentation; end
909
+
910
+ include Google::Apis::Core::JsonObjectSupport
911
+ end
912
+
889
913
  class SslCert
890
914
  class Representation < Google::Apis::Core::JsonRepresentation; end
891
915
 
@@ -922,12 +946,36 @@ module Google
922
946
  include Google::Apis::Core::JsonObjectSupport
923
947
  end
924
948
 
949
+ class StartWorkloadCaptureContext
950
+ class Representation < Google::Apis::Core::JsonRepresentation; end
951
+
952
+ include Google::Apis::Core::JsonObjectSupport
953
+ end
954
+
955
+ class StartWorkloadReplayContext
956
+ class Representation < Google::Apis::Core::JsonRepresentation; end
957
+
958
+ include Google::Apis::Core::JsonObjectSupport
959
+ end
960
+
925
961
  class Status
926
962
  class Representation < Google::Apis::Core::JsonRepresentation; end
927
963
 
928
964
  include Google::Apis::Core::JsonObjectSupport
929
965
  end
930
966
 
967
+ class StopWorkloadCaptureContext
968
+ class Representation < Google::Apis::Core::JsonRepresentation; end
969
+
970
+ include Google::Apis::Core::JsonObjectSupport
971
+ end
972
+
973
+ class StopWorkloadReplayContext
974
+ class Representation < Google::Apis::Core::JsonRepresentation; end
975
+
976
+ include Google::Apis::Core::JsonObjectSupport
977
+ end
978
+
931
979
  class SwitchoverBlueGreenDeploymentRequest
932
980
  class Representation < Google::Apis::Core::JsonRepresentation; end
933
981
 
@@ -1000,6 +1048,18 @@ module Google
1000
1048
  include Google::Apis::Core::JsonObjectSupport
1001
1049
  end
1002
1050
 
1051
+ class WorkloadCapture
1052
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1053
+
1054
+ include Google::Apis::Core::JsonObjectSupport
1055
+ end
1056
+
1057
+ class WorkloadCapturesListResponse
1058
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1059
+
1060
+ include Google::Apis::Core::JsonObjectSupport
1061
+ end
1062
+
1003
1063
  class AclEntry
1004
1064
  # @private
1005
1065
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1488,6 +1548,7 @@ module Google
1488
1548
  class DiskEncryptionConfiguration
1489
1549
  # @private
1490
1550
  class Representation < Google::Apis::Core::JsonRepresentation
1551
+ property :cmek_source_log_encryption_enforced, as: 'cmekSourceLogEncryptionEnforced'
1491
1552
  property :confidential_mode, as: 'confidentialMode'
1492
1553
  property :kind, as: 'kind'
1493
1554
  property :kms_key_name, as: 'kmsKeyName'
@@ -2133,7 +2194,15 @@ module Google
2133
2194
 
2134
2195
  property :self_link, as: 'selfLink'
2135
2196
  property :start_time, as: 'startTime'
2197
+ property :start_workload_capture_context, as: 'startWorkloadCaptureContext', class: Google::Apis::SqladminV1beta4::StartWorkloadCaptureContext, decorator: Google::Apis::SqladminV1beta4::StartWorkloadCaptureContext::Representation
2198
+
2199
+ property :start_workload_replay_context, as: 'startWorkloadReplayContext', class: Google::Apis::SqladminV1beta4::StartWorkloadReplayContext, decorator: Google::Apis::SqladminV1beta4::StartWorkloadReplayContext::Representation
2200
+
2136
2201
  property :status, as: 'status'
2202
+ property :stop_workload_capture_context, as: 'stopWorkloadCaptureContext', class: Google::Apis::SqladminV1beta4::StopWorkloadCaptureContext, decorator: Google::Apis::SqladminV1beta4::StopWorkloadCaptureContext::Representation
2203
+
2204
+ property :stop_workload_replay_context, as: 'stopWorkloadReplayContext', class: Google::Apis::SqladminV1beta4::StopWorkloadReplayContext, decorator: Google::Apis::SqladminV1beta4::StopWorkloadReplayContext::Representation
2205
+
2137
2206
  property :sub_operation_type, as: 'subOperationType', class: Google::Apis::SqladminV1beta4::SqlSubOperationType, decorator: Google::Apis::SqladminV1beta4::SqlSubOperationType::Representation
2138
2207
 
2139
2208
  property :target_id, as: 'targetId'
@@ -2702,6 +2771,38 @@ module Google
2702
2771
  end
2703
2772
  end
2704
2773
 
2774
+ class SqlWorkloadCapturesStartReplayRequest
2775
+ # @private
2776
+ class Representation < Google::Apis::Core::JsonRepresentation
2777
+ property :start_workload_replay_context, as: 'startWorkloadReplayContext', class: Google::Apis::SqladminV1beta4::StartWorkloadReplayContext, decorator: Google::Apis::SqladminV1beta4::StartWorkloadReplayContext::Representation
2778
+
2779
+ end
2780
+ end
2781
+
2782
+ class SqlWorkloadCapturesStartRequest
2783
+ # @private
2784
+ class Representation < Google::Apis::Core::JsonRepresentation
2785
+ property :start_workload_capture_context, as: 'startWorkloadCaptureContext', class: Google::Apis::SqladminV1beta4::StartWorkloadCaptureContext, decorator: Google::Apis::SqladminV1beta4::StartWorkloadCaptureContext::Representation
2786
+
2787
+ end
2788
+ end
2789
+
2790
+ class SqlWorkloadCapturesStopReplayRequest
2791
+ # @private
2792
+ class Representation < Google::Apis::Core::JsonRepresentation
2793
+ property :stop_workload_replay_context, as: 'stopWorkloadReplayContext', class: Google::Apis::SqladminV1beta4::StopWorkloadReplayContext, decorator: Google::Apis::SqladminV1beta4::StopWorkloadReplayContext::Representation
2794
+
2795
+ end
2796
+ end
2797
+
2798
+ class SqlWorkloadCapturesStopRequest
2799
+ # @private
2800
+ class Representation < Google::Apis::Core::JsonRepresentation
2801
+ property :stop_workload_capture_context, as: 'stopWorkloadCaptureContext', class: Google::Apis::SqladminV1beta4::StopWorkloadCaptureContext, decorator: Google::Apis::SqladminV1beta4::StopWorkloadCaptureContext::Representation
2802
+
2803
+ end
2804
+ end
2805
+
2705
2806
  class SslCert
2706
2807
  # @private
2707
2808
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -2763,6 +2864,22 @@ module Google
2763
2864
  end
2764
2865
  end
2765
2866
 
2867
+ class StartWorkloadCaptureContext
2868
+ # @private
2869
+ class Representation < Google::Apis::Core::JsonRepresentation
2870
+ property :enable_live_replay, as: 'enableLiveReplay'
2871
+ property :replay_instance, as: 'replayInstance'
2872
+ end
2873
+ end
2874
+
2875
+ class StartWorkloadReplayContext
2876
+ # @private
2877
+ class Representation < Google::Apis::Core::JsonRepresentation
2878
+ property :replay_instance, as: 'replayInstance'
2879
+ property :workload_id, as: 'workloadId'
2880
+ end
2881
+ end
2882
+
2766
2883
  class Status
2767
2884
  # @private
2768
2885
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -2772,6 +2889,21 @@ module Google
2772
2889
  end
2773
2890
  end
2774
2891
 
2892
+ class StopWorkloadCaptureContext
2893
+ # @private
2894
+ class Representation < Google::Apis::Core::JsonRepresentation
2895
+ property :abort_live_replay, as: 'abortLiveReplay'
2896
+ end
2897
+ end
2898
+
2899
+ class StopWorkloadReplayContext
2900
+ # @private
2901
+ class Representation < Google::Apis::Core::JsonRepresentation
2902
+ property :replay_instance, as: 'replayInstance'
2903
+ property :workload_id, as: 'workloadId'
2904
+ end
2905
+ end
2906
+
2775
2907
  class SwitchoverBlueGreenDeploymentRequest
2776
2908
  # @private
2777
2909
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -2889,6 +3021,28 @@ module Google
2889
3021
  property :value, as: 'value'
2890
3022
  end
2891
3023
  end
3024
+
3025
+ class WorkloadCapture
3026
+ # @private
3027
+ class Representation < Google::Apis::Core::JsonRepresentation
3028
+ property :end_time, as: 'endTime'
3029
+ property :replay_instance, as: 'replayInstance'
3030
+ property :retention_days, as: 'retentionDays'
3031
+ property :source_instance, as: 'sourceInstance'
3032
+ property :start_time, as: 'startTime'
3033
+ property :workload_capture_state, as: 'workloadCaptureState'
3034
+ property :workload_id, as: 'workloadId'
3035
+ end
3036
+ end
3037
+
3038
+ class WorkloadCapturesListResponse
3039
+ # @private
3040
+ class Representation < Google::Apis::Core::JsonRepresentation
3041
+ property :kind, as: 'kind'
3042
+ collection :workload_captures, as: 'workloadCaptures', class: Google::Apis::SqladminV1beta4::WorkloadCapture, decorator: Google::Apis::SqladminV1beta4::WorkloadCapture::Representation
3043
+
3044
+ end
3045
+ end
2892
3046
  end
2893
3047
  end
2894
3048
  end
@@ -3200,6 +3200,196 @@ module Google
3200
3200
  command.query['quotaUser'] = quota_user unless quota_user.nil?
3201
3201
  execute_or_queue_command(command, &block)
3202
3202
  end
3203
+
3204
+ # Lists all captured workloads associated with the instance.
3205
+ # @param [String] project
3206
+ # Required. Project ID of the project that contains the instance.
3207
+ # @param [String] instance
3208
+ # Required. Cloud SQL instance ID. This does not include the project ID.
3209
+ # @param [String] fields
3210
+ # Selector specifying which fields to include in a partial response.
3211
+ # @param [String] quota_user
3212
+ # Available to use for quota purposes for server-side applications. Can be any
3213
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3214
+ # @param [Google::Apis::RequestOptions] options
3215
+ # Request-specific options
3216
+ #
3217
+ # @yield [result, err] Result & error if block supplied
3218
+ # @yieldparam result [Google::Apis::SqladminV1beta4::WorkloadCapturesListResponse] parsed result object
3219
+ # @yieldparam err [StandardError] error object if request failed
3220
+ #
3221
+ # @return [Google::Apis::SqladminV1beta4::WorkloadCapturesListResponse]
3222
+ #
3223
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3224
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3225
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3226
+ def list_workload_captures(project, instance, fields: nil, quota_user: nil, options: nil, &block)
3227
+ command = make_simple_command(:get, 'sql/v1beta4/projects/{project}/instances/{instance}/workloadCaptures', options)
3228
+ command.response_representation = Google::Apis::SqladminV1beta4::WorkloadCapturesListResponse::Representation
3229
+ command.response_class = Google::Apis::SqladminV1beta4::WorkloadCapturesListResponse
3230
+ command.params['project'] = project unless project.nil?
3231
+ command.params['instance'] = instance unless instance.nil?
3232
+ command.query['fields'] = fields unless fields.nil?
3233
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3234
+ execute_or_queue_command(command, &block)
3235
+ end
3236
+
3237
+ # Starts capturing the SQL queries, transactions, and other operations executed
3238
+ # on the primary instance. This traffic is securely stored and forms a "captured
3239
+ # workload". This workload can be replayed later on a different instance to
3240
+ # safely test performance impacts, database upgrades, configuration changes etc.
3241
+ # before applying them to production.
3242
+ # @param [String] project
3243
+ # Required. Project ID of the project that contains the instance.
3244
+ # @param [String] instance
3245
+ # Required. Cloud SQL instance ID. This does not include the project ID.
3246
+ # @param [Google::Apis::SqladminV1beta4::SqlWorkloadCapturesStartRequest] sql_workload_captures_start_request_object
3247
+ # @param [String] fields
3248
+ # Selector specifying which fields to include in a partial response.
3249
+ # @param [String] quota_user
3250
+ # Available to use for quota purposes for server-side applications. Can be any
3251
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3252
+ # @param [Google::Apis::RequestOptions] options
3253
+ # Request-specific options
3254
+ #
3255
+ # @yield [result, err] Result & error if block supplied
3256
+ # @yieldparam result [Google::Apis::SqladminV1beta4::Operation] parsed result object
3257
+ # @yieldparam err [StandardError] error object if request failed
3258
+ #
3259
+ # @return [Google::Apis::SqladminV1beta4::Operation]
3260
+ #
3261
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3262
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3263
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3264
+ def start_workload_capture(project, instance, sql_workload_captures_start_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
3265
+ command = make_simple_command(:post, 'sql/v1beta4/projects/{project}/instances/{instance}/workloadCaptures:start', options)
3266
+ command.request_representation = Google::Apis::SqladminV1beta4::SqlWorkloadCapturesStartRequest::Representation
3267
+ command.request_object = sql_workload_captures_start_request_object
3268
+ command.response_representation = Google::Apis::SqladminV1beta4::Operation::Representation
3269
+ command.response_class = Google::Apis::SqladminV1beta4::Operation
3270
+ command.params['project'] = project unless project.nil?
3271
+ command.params['instance'] = instance unless instance.nil?
3272
+ command.query['fields'] = fields unless fields.nil?
3273
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3274
+ execute_or_queue_command(command, &block)
3275
+ end
3276
+
3277
+ # Starts executing a captured workload on a separate Cloud SQL instance
3278
+ # provisioned for workload replay. This target instance simulates the production
3279
+ # environment without affecting the primary instance.
3280
+ # @param [String] project
3281
+ # Required. Project ID of the project that contains the instance.
3282
+ # @param [String] instance
3283
+ # Required. Cloud SQL instance ID. This does not include the project ID.
3284
+ # @param [String] workload_id
3285
+ # Required. The ID of the workload to replay.
3286
+ # @param [Google::Apis::SqladminV1beta4::SqlWorkloadCapturesStartReplayRequest] sql_workload_captures_start_replay_request_object
3287
+ # @param [String] fields
3288
+ # Selector specifying which fields to include in a partial response.
3289
+ # @param [String] quota_user
3290
+ # Available to use for quota purposes for server-side applications. Can be any
3291
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3292
+ # @param [Google::Apis::RequestOptions] options
3293
+ # Request-specific options
3294
+ #
3295
+ # @yield [result, err] Result & error if block supplied
3296
+ # @yieldparam result [Google::Apis::SqladminV1beta4::Operation] parsed result object
3297
+ # @yieldparam err [StandardError] error object if request failed
3298
+ #
3299
+ # @return [Google::Apis::SqladminV1beta4::Operation]
3300
+ #
3301
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3302
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3303
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3304
+ def start_workload_capture_replay(project, instance, workload_id, sql_workload_captures_start_replay_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
3305
+ command = make_simple_command(:post, 'sql/v1beta4/projects/{project}/instances/{instance}/workloadCaptures/{workloadId}:startReplay', options)
3306
+ command.request_representation = Google::Apis::SqladminV1beta4::SqlWorkloadCapturesStartReplayRequest::Representation
3307
+ command.request_object = sql_workload_captures_start_replay_request_object
3308
+ command.response_representation = Google::Apis::SqladminV1beta4::Operation::Representation
3309
+ command.response_class = Google::Apis::SqladminV1beta4::Operation
3310
+ command.params['project'] = project unless project.nil?
3311
+ command.params['instance'] = instance unless instance.nil?
3312
+ command.params['workloadId'] = workload_id unless workload_id.nil?
3313
+ command.query['fields'] = fields unless fields.nil?
3314
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3315
+ execute_or_queue_command(command, &block)
3316
+ end
3317
+
3318
+ # Stops capturing the query traffic and related operations executed on the
3319
+ # primary instance.
3320
+ # @param [String] project
3321
+ # Required. Project ID of the project that contains the instance.
3322
+ # @param [String] instance
3323
+ # Required. Cloud SQL instance ID. This does not include the project ID.
3324
+ # @param [Google::Apis::SqladminV1beta4::SqlWorkloadCapturesStopRequest] sql_workload_captures_stop_request_object
3325
+ # @param [String] fields
3326
+ # Selector specifying which fields to include in a partial response.
3327
+ # @param [String] quota_user
3328
+ # Available to use for quota purposes for server-side applications. Can be any
3329
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3330
+ # @param [Google::Apis::RequestOptions] options
3331
+ # Request-specific options
3332
+ #
3333
+ # @yield [result, err] Result & error if block supplied
3334
+ # @yieldparam result [Google::Apis::SqladminV1beta4::Operation] parsed result object
3335
+ # @yieldparam err [StandardError] error object if request failed
3336
+ #
3337
+ # @return [Google::Apis::SqladminV1beta4::Operation]
3338
+ #
3339
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3340
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3341
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3342
+ def stop_workload_capture(project, instance, sql_workload_captures_stop_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
3343
+ command = make_simple_command(:post, 'sql/v1beta4/projects/{project}/instances/{instance}/workloadCaptures:stop', options)
3344
+ command.request_representation = Google::Apis::SqladminV1beta4::SqlWorkloadCapturesStopRequest::Representation
3345
+ command.request_object = sql_workload_captures_stop_request_object
3346
+ command.response_representation = Google::Apis::SqladminV1beta4::Operation::Representation
3347
+ command.response_class = Google::Apis::SqladminV1beta4::Operation
3348
+ command.params['project'] = project unless project.nil?
3349
+ command.params['instance'] = instance unless instance.nil?
3350
+ command.query['fields'] = fields unless fields.nil?
3351
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3352
+ execute_or_queue_command(command, &block)
3353
+ end
3354
+
3355
+ # Stops executing a captured workload on the separate Cloud SQL instance.
3356
+ # @param [String] project
3357
+ # Required. Project ID of the project that contains the instance.
3358
+ # @param [String] instance
3359
+ # Required. Cloud SQL instance ID. This does not include the project ID.
3360
+ # @param [String] workload_id
3361
+ # Required. The ID of the workload to replay.
3362
+ # @param [Google::Apis::SqladminV1beta4::SqlWorkloadCapturesStopReplayRequest] sql_workload_captures_stop_replay_request_object
3363
+ # @param [String] fields
3364
+ # Selector specifying which fields to include in a partial response.
3365
+ # @param [String] quota_user
3366
+ # Available to use for quota purposes for server-side applications. Can be any
3367
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3368
+ # @param [Google::Apis::RequestOptions] options
3369
+ # Request-specific options
3370
+ #
3371
+ # @yield [result, err] Result & error if block supplied
3372
+ # @yieldparam result [Google::Apis::SqladminV1beta4::Operation] parsed result object
3373
+ # @yieldparam err [StandardError] error object if request failed
3374
+ #
3375
+ # @return [Google::Apis::SqladminV1beta4::Operation]
3376
+ #
3377
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3378
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3379
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3380
+ def stop_workload_capture_replay(project, instance, workload_id, sql_workload_captures_stop_replay_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
3381
+ command = make_simple_command(:post, 'sql/v1beta4/projects/{project}/instances/{instance}/workloadCaptures/{workloadId}:stopReplay', options)
3382
+ command.request_representation = Google::Apis::SqladminV1beta4::SqlWorkloadCapturesStopReplayRequest::Representation
3383
+ command.request_object = sql_workload_captures_stop_replay_request_object
3384
+ command.response_representation = Google::Apis::SqladminV1beta4::Operation::Representation
3385
+ command.response_class = Google::Apis::SqladminV1beta4::Operation
3386
+ command.params['project'] = project unless project.nil?
3387
+ command.params['instance'] = instance unless instance.nil?
3388
+ command.params['workloadId'] = workload_id unless workload_id.nil?
3389
+ command.query['fields'] = fields unless fields.nil?
3390
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3391
+ execute_or_queue_command(command, &block)
3392
+ end
3203
3393
 
3204
3394
  protected
3205
3395
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-sqladmin_v1beta4
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.105.0
4
+ version: 0.106.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
@@ -57,7 +57,7 @@ licenses:
57
57
  metadata:
58
58
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
59
59
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-sqladmin_v1beta4/CHANGELOG.md
60
- documentation_uri: https://googleapis.dev/ruby/google-apis-sqladmin_v1beta4/v0.105.0
60
+ documentation_uri: https://googleapis.dev/ruby/google-apis-sqladmin_v1beta4/v0.106.0
61
61
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-sqladmin_v1beta4
62
62
  rdoc_options: []
63
63
  require_paths: