google-cloud-sql-v1beta4 0.2.0 → 0.3.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 +4 -4
- data/lib/google/cloud/sql/v1beta4/blue_green_deployments_service/client.rb +906 -0
- data/lib/google/cloud/sql/v1beta4/blue_green_deployments_service/credentials.rb +48 -0
- data/lib/google/cloud/sql/v1beta4/blue_green_deployments_service/paths.rb +69 -0
- data/lib/google/cloud/sql/v1beta4/blue_green_deployments_service/rest/client.rb +828 -0
- data/lib/google/cloud/sql/v1beta4/blue_green_deployments_service/rest/service_stub.rb +388 -0
- data/lib/google/cloud/sql/v1beta4/blue_green_deployments_service/rest.rb +52 -0
- data/lib/google/cloud/sql/v1beta4/blue_green_deployments_service.rb +55 -0
- data/lib/google/cloud/sql/v1beta4/cloud_sql_blue_green_deployments_pb.rb +47 -0
- data/lib/google/cloud/sql/v1beta4/cloud_sql_blue_green_deployments_services_pb.rb +65 -0
- data/lib/google/cloud/sql/v1beta4/cloud_sql_resources_pb.rb +9 -1
- data/lib/google/cloud/sql/v1beta4/cloud_sql_workload_captures_pb.rb +35 -0
- data/lib/google/cloud/sql/v1beta4/cloud_sql_workload_captures_services_pb.rb +60 -0
- data/lib/google/cloud/sql/v1beta4/rest.rb +2 -0
- data/lib/google/cloud/sql/v1beta4/sql_backup_runs_service/client.rb +2 -0
- data/lib/google/cloud/sql/v1beta4/sql_backup_runs_service/paths.rb +77 -0
- data/lib/google/cloud/sql/v1beta4/sql_backup_runs_service/rest/client.rb +2 -0
- data/lib/google/cloud/sql/v1beta4/sql_backup_runs_service/rest.rb +1 -0
- data/lib/google/cloud/sql/v1beta4/sql_backup_runs_service.rb +1 -0
- data/lib/google/cloud/sql/v1beta4/sql_backups_service/paths.rb +63 -0
- data/lib/google/cloud/sql/v1beta4/sql_instances_service/paths.rb +63 -0
- data/lib/google/cloud/sql/v1beta4/sql_workload_captures_service/client.rb +905 -0
- data/lib/google/cloud/sql/v1beta4/sql_workload_captures_service/credentials.rb +48 -0
- data/lib/google/cloud/sql/v1beta4/sql_workload_captures_service/rest/client.rb +809 -0
- data/lib/google/cloud/sql/v1beta4/sql_workload_captures_service/rest/service_stub.rb +396 -0
- data/lib/google/cloud/sql/v1beta4/sql_workload_captures_service/rest.rb +51 -0
- data/lib/google/cloud/sql/v1beta4/sql_workload_captures_service.rb +54 -0
- data/lib/google/cloud/sql/v1beta4/version.rb +1 -1
- data/lib/google/cloud/sql/v1beta4.rb +2 -0
- data/proto_docs/google/cloud/sql/v1beta4/cloud_sql.rb +1 -1
- data/proto_docs/google/cloud/sql/v1beta4/cloud_sql_blue_green_deployments.rb +428 -0
- data/proto_docs/google/cloud/sql/v1beta4/cloud_sql_resources.rb +197 -2
- data/proto_docs/google/cloud/sql/v1beta4/cloud_sql_users.rb +4 -4
- data/proto_docs/google/cloud/sql/v1beta4/cloud_sql_workload_captures.rb +169 -0
- metadata +21 -1
|
@@ -806,6 +806,10 @@ module Google
|
|
|
806
806
|
# Input only. Determines whether an in-place major version upgrade of
|
|
807
807
|
# replicas happens when an in-place major version upgrade of a primary
|
|
808
808
|
# instance is initiated.
|
|
809
|
+
# @!attribute [rw] skip_precheck
|
|
810
|
+
# @return [::Google::Protobuf::BoolValue]
|
|
811
|
+
# Optional. Input only. Determines whether the precheck step is skipped
|
|
812
|
+
# during a major version upgrade.
|
|
809
813
|
# @!attribute [rw] tags
|
|
810
814
|
# @return [::Google::Protobuf::Map{::String => ::String}]
|
|
811
815
|
# Optional. Input only. Immutable. Tag keys and tag values that are bound to
|
|
@@ -830,6 +834,10 @@ module Google
|
|
|
830
834
|
# @!attribute [r] dns_names
|
|
831
835
|
# @return [::Array<::Google::Cloud::Sql::V1beta4::DnsNameMapping>]
|
|
832
836
|
# Output only. The list of DNS names used by this instance.
|
|
837
|
+
# @!attribute [r] deployment_info
|
|
838
|
+
# @return [::Google::Cloud::Sql::V1beta4::BlueGreenDeploymentInfo]
|
|
839
|
+
# Output only. Deployment info for the instance. This is set if the instance
|
|
840
|
+
# is currently part of any blue-green setup.
|
|
833
841
|
# @!attribute [rw] database_center_integration_enabled
|
|
834
842
|
# @return [::Google::Protobuf::BoolValue]
|
|
835
843
|
# Optional. If true, instance metadata is sent to the Database Center. If
|
|
@@ -1010,6 +1018,62 @@ module Google
|
|
|
1010
1018
|
end
|
|
1011
1019
|
end
|
|
1012
1020
|
|
|
1021
|
+
# Blue-green deployment metadata for a database instance. In a blue-green
|
|
1022
|
+
# deployment, we maintain two environments, one of which is live.
|
|
1023
|
+
# This message contains details about the blue-green deployment.
|
|
1024
|
+
# @!attribute [r] deployment_id
|
|
1025
|
+
# @return [::String]
|
|
1026
|
+
# Output only. The resource ID of the blue-green deployment.
|
|
1027
|
+
# @!attribute [r] source
|
|
1028
|
+
# @return [::Google::Cloud::Sql::V1beta4::BlueGreenDeploymentInfo::SourceRole]
|
|
1029
|
+
# Output only. The source instance for the Blue-Green deployment.
|
|
1030
|
+
#
|
|
1031
|
+
# Note: The following fields are mutually exclusive: `source`, `target`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
|
1032
|
+
# @!attribute [r] target
|
|
1033
|
+
# @return [::Google::Cloud::Sql::V1beta4::BlueGreenDeploymentInfo::TargetRole]
|
|
1034
|
+
# Output only. The target instance for the Blue-Green deployment.
|
|
1035
|
+
#
|
|
1036
|
+
# Note: The following fields are mutually exclusive: `target`, `source`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
|
1037
|
+
# @!attribute [r] state
|
|
1038
|
+
# @return [::Google::Cloud::Sql::V1beta4::BlueGreenDeploymentInfo::State]
|
|
1039
|
+
# Output only. The current state of blue-green-deployment for UI tags
|
|
1040
|
+
class BlueGreenDeploymentInfo
|
|
1041
|
+
include ::Google::Protobuf::MessageExts
|
|
1042
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
1043
|
+
|
|
1044
|
+
# The source instance for the Blue-Green deployment.
|
|
1045
|
+
# @!attribute [r] target_id
|
|
1046
|
+
# @return [::Google::Cloud::Sql::V1beta4::InstanceReference]
|
|
1047
|
+
# Output only. The target instance paired with this source instance in a
|
|
1048
|
+
# blue-green deployment.
|
|
1049
|
+
class SourceRole
|
|
1050
|
+
include ::Google::Protobuf::MessageExts
|
|
1051
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
1052
|
+
end
|
|
1053
|
+
|
|
1054
|
+
# The target instance for the Blue-Green deployment.
|
|
1055
|
+
# @!attribute [r] source_id
|
|
1056
|
+
# @return [::Google::Cloud::Sql::V1beta4::InstanceReference]
|
|
1057
|
+
# Output only. The source instance paired with this target instance in a
|
|
1058
|
+
# blue-green deployment.
|
|
1059
|
+
class TargetRole
|
|
1060
|
+
include ::Google::Protobuf::MessageExts
|
|
1061
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
1062
|
+
end
|
|
1063
|
+
|
|
1064
|
+
# The state of blue-green-deployment for UI tags
|
|
1065
|
+
module State
|
|
1066
|
+
# The state of the deployment is unknown.
|
|
1067
|
+
STATE_UNSPECIFIED = 0
|
|
1068
|
+
|
|
1069
|
+
# The deployment is pre-switchover.
|
|
1070
|
+
PRE_SWITCHOVER = 1
|
|
1071
|
+
|
|
1072
|
+
# The deployment is post-switchover.
|
|
1073
|
+
POST_SWITCHOVER = 2
|
|
1074
|
+
end
|
|
1075
|
+
end
|
|
1076
|
+
|
|
1013
1077
|
# DNS metadata.
|
|
1014
1078
|
# @!attribute [r] name
|
|
1015
1079
|
# @return [::String]
|
|
@@ -1869,6 +1933,11 @@ module Google
|
|
|
1869
1933
|
# Optional. This field has the same purpose as restore_instance_settings,
|
|
1870
1934
|
# changes any instance settings stored in the backup you are restoring from.
|
|
1871
1935
|
# With the difference that these fields are cleared in the settings.
|
|
1936
|
+
# @!attribute [rw] ignore_maintenance_version
|
|
1937
|
+
# @return [::Boolean]
|
|
1938
|
+
# Optional. If true, the restore operation proceeds even if the target
|
|
1939
|
+
# instance's maintenance version is older than the source instance's
|
|
1940
|
+
# maintenance version.
|
|
1872
1941
|
class InstancesRestoreBackupRequest
|
|
1873
1942
|
include ::Google::Protobuf::MessageExts
|
|
1874
1943
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
@@ -2025,6 +2094,9 @@ module Google
|
|
|
2025
2094
|
# @!attribute [rw] kind
|
|
2026
2095
|
# @return [::String]
|
|
2027
2096
|
# Optional. This is always `sql#preCheckMajorVersionUpgradeContext`.
|
|
2097
|
+
# @!attribute [rw] max_runtime
|
|
2098
|
+
# @return [::Google::Protobuf::Duration]
|
|
2099
|
+
# Optional. The maximum allowed runtime for the precheck operation.
|
|
2028
2100
|
class PreCheckMajorVersionUpgradeContext
|
|
2029
2101
|
include ::Google::Protobuf::MessageExts
|
|
2030
2102
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
@@ -2283,6 +2355,15 @@ module Google
|
|
|
2283
2355
|
# The replication user is missing specific privileges to setup DDL
|
|
2284
2356
|
# replication. (e.g. CREATE EVENT TRIGGER, CREATE SCHEMA) for PostgreSQL.
|
|
2285
2357
|
PG_DDL_REPLICATION_INSUFFICIENT_PRIVILEGE = 58
|
|
2358
|
+
|
|
2359
|
+
# Read replicas of the Writable Destination instance will be recreated
|
|
2360
|
+
# after external synchronization is complete, causing downtime on read
|
|
2361
|
+
# replicas.
|
|
2362
|
+
WRITABLE_DESTINATION_REPLICA_RECREATION_DOWNTIME = 59
|
|
2363
|
+
|
|
2364
|
+
# A warning that disk storage auto increase is disabled on the destination
|
|
2365
|
+
# instance for a Writable Destination migration.
|
|
2366
|
+
WRITABLE_DESTINATION_STORAGE_AUTO_INCREASE_DISABLED = 60
|
|
2286
2367
|
end
|
|
2287
2368
|
end
|
|
2288
2369
|
|
|
@@ -2469,7 +2550,7 @@ module Google
|
|
|
2469
2550
|
# @return [::String]
|
|
2470
2551
|
# Optional. The network attachment of the consumer network that the
|
|
2471
2552
|
# Private Service Connect enabled Cloud SQL instance is
|
|
2472
|
-
# authorized to connect
|
|
2553
|
+
# authorized to connect using the PSC interface.
|
|
2473
2554
|
# format: projects/PROJECT/regions/REGION/networkAttachments/ID
|
|
2474
2555
|
# @!attribute [rw] psc_auto_dns_enabled
|
|
2475
2556
|
# @return [::Boolean]
|
|
@@ -2792,6 +2873,15 @@ module Google
|
|
|
2792
2873
|
# @!attribute [rw] kind
|
|
2793
2874
|
# @return [::String]
|
|
2794
2875
|
# This is always `sql#diskEncryptionConfiguration`.
|
|
2876
|
+
# @!attribute [rw] confidential_mode
|
|
2877
|
+
# @return [::Boolean]
|
|
2878
|
+
# Optional. If true, enables Confidential Mode for the instance's Hyperdisk
|
|
2879
|
+
# Balanced volumes. Only supported for zonal C4A instances currently.
|
|
2880
|
+
# @!attribute [rw] cmek_source_log_encryption_enforced
|
|
2881
|
+
# @return [::Boolean]
|
|
2882
|
+
# Optional. Whether to enforce CMEK log encryption at source. When enforced,
|
|
2883
|
+
# transaction logs are encrypted prior to being uploaded to Cloud Storage. If
|
|
2884
|
+
# not enforced, then CMEK logs are encrypted by the Cloud Storage service.
|
|
2795
2885
|
class DiskEncryptionConfiguration
|
|
2796
2886
|
include ::Google::Protobuf::MessageExts
|
|
2797
2887
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
@@ -2886,6 +2976,27 @@ module Google
|
|
|
2886
2976
|
# The PreCheckMajorVersionUpgradeContext message itself contains the details
|
|
2887
2977
|
# for that pre-check, such as the target database version for the upgrade
|
|
2888
2978
|
# and the results of the check (including any warnings or errors found).
|
|
2979
|
+
# @!attribute [rw] start_workload_capture_context
|
|
2980
|
+
# @return [::Google::Cloud::Sql::V1beta4::StartWorkloadCaptureContext]
|
|
2981
|
+
# The context for the `StartWorkloadCapture` operation, which contains
|
|
2982
|
+
# details to start recording the workload (SQL queries) on a Cloud SQL
|
|
2983
|
+
# instance.
|
|
2984
|
+
# @!attribute [rw] stop_workload_capture_context
|
|
2985
|
+
# @return [::Google::Cloud::Sql::V1beta4::StopWorkloadCaptureContext]
|
|
2986
|
+
# The context for the `StopWorkloadCapture` operation, which contains
|
|
2987
|
+
# details to stop recording the workload (SQL queries) on a Cloud SQL
|
|
2988
|
+
# instance.
|
|
2989
|
+
# @!attribute [rw] start_workload_replay_context
|
|
2990
|
+
# @return [::Google::Cloud::Sql::V1beta4::StartWorkloadReplayContext]
|
|
2991
|
+
# The context for the `StartWorkloadReplay` operation, which contains details
|
|
2992
|
+
# about starting the execution of a captured workload (recorded read and
|
|
2993
|
+
# write SQL queries) on a replay instance (the Cloud SQL
|
|
2994
|
+
# instance where the recorded SQL queries are executed).
|
|
2995
|
+
# @!attribute [rw] stop_workload_replay_context
|
|
2996
|
+
# @return [::Google::Cloud::Sql::V1beta4::StopWorkloadReplayContext]
|
|
2997
|
+
# The context for the `StopWorkloadReplay` operation, which contains details
|
|
2998
|
+
# about stopping the execution of a captured workload (recorded read and
|
|
2999
|
+
# write SQL queries) on a replay instance.
|
|
2889
3000
|
# @!attribute [rw] name
|
|
2890
3001
|
# @return [::String]
|
|
2891
3002
|
# An identifier that uniquely identifies the operation. You can use this
|
|
@@ -3086,6 +3197,15 @@ module Google
|
|
|
3086
3197
|
# Pre-checks for major version upgrade.
|
|
3087
3198
|
PRE_CHECK_MAJOR_VERSION_UPGRADE = 54
|
|
3088
3199
|
|
|
3200
|
+
# Creates a new Blue-Green deployment.
|
|
3201
|
+
CREATE_BLUE_GREEN_DEPLOYMENT = 55
|
|
3202
|
+
|
|
3203
|
+
# Switches over a Blue-Green deployment.
|
|
3204
|
+
SWITCHOVER_BLUE_GREEN_DEPLOYMENT = 56
|
|
3205
|
+
|
|
3206
|
+
# Deletes a Blue-Green deployment.
|
|
3207
|
+
DELETE_BLUE_GREEN_DEPLOYMENT = 57
|
|
3208
|
+
|
|
3089
3209
|
# This operation type represents individual steps in a multi-step setup
|
|
3090
3210
|
# migration workflow: including configuration, replication,
|
|
3091
3211
|
# switchover/back, and data reseeding, as defined by operation's intent.
|
|
@@ -3423,7 +3543,8 @@ module Google
|
|
|
3423
3543
|
# Insights configuration, for now relevant only for Postgres.
|
|
3424
3544
|
# @!attribute [rw] password_validation_policy
|
|
3425
3545
|
# @return [::Google::Cloud::Sql::V1beta4::PasswordValidationPolicy]
|
|
3426
|
-
# The local user password validation policy of the instance
|
|
3546
|
+
# The local user password validation policy of the instance for PostgreSQL
|
|
3547
|
+
# and MySQL.
|
|
3427
3548
|
# @!attribute [rw] sql_server_audit_config
|
|
3428
3549
|
# @return [::Google::Cloud::Sql::V1beta4::SqlServerAuditConfig]
|
|
3429
3550
|
# SQL Server specific audit configuration.
|
|
@@ -4004,6 +4125,76 @@ module Google
|
|
|
4004
4125
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
4005
4126
|
end
|
|
4006
4127
|
|
|
4128
|
+
# The context for the `StartWorkloadCapture` operation, which contains
|
|
4129
|
+
# details to start recording the workload (SQL queries) on a Cloud SQL
|
|
4130
|
+
# instance.
|
|
4131
|
+
# @!attribute [rw] enable_live_replay
|
|
4132
|
+
# @return [::Boolean]
|
|
4133
|
+
# Optional. If true, the captured workload is simultaneously executed on a
|
|
4134
|
+
# separate, ephemeral Cloud SQL instance. This "live replay" instance
|
|
4135
|
+
# is automatically provisioned and is cloned from the source instance. If
|
|
4136
|
+
# false (the default), the workload is only stored and no live replay occurs.
|
|
4137
|
+
# It can be replayed later using a separate `StartWorkloadReplayRequest`.
|
|
4138
|
+
# Note: The workload capture runs continuously until an explicit
|
|
4139
|
+
# `StopWorkloadCaptureRequest` is issued.
|
|
4140
|
+
# @!attribute [rw] replay_instance
|
|
4141
|
+
# @return [::String]
|
|
4142
|
+
# Optional. Required if `enable_live_replay` is true.
|
|
4143
|
+
# The name of the Cloud SQL instance where the captured workload
|
|
4144
|
+
# (SQL queries) is being executed, excluding the project ID (for example,
|
|
4145
|
+
# `my-replay-instance`). The instance name must start with a lowercase letter
|
|
4146
|
+
# and contain only lowercase letters, numbers, and hyphens. The combined
|
|
4147
|
+
# length of `project-ID:instance-name` must be 98 characters or less.
|
|
4148
|
+
class StartWorkloadCaptureContext
|
|
4149
|
+
include ::Google::Protobuf::MessageExts
|
|
4150
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
4151
|
+
end
|
|
4152
|
+
|
|
4153
|
+
# The context for the `StopWorkloadCapture` operation, which contains
|
|
4154
|
+
# details to stop recording the workload (SQL queries) on a Cloud SQL
|
|
4155
|
+
# instance.
|
|
4156
|
+
# @!attribute [rw] abort_live_replay
|
|
4157
|
+
# @return [::Boolean]
|
|
4158
|
+
# Optional. If true, immediately aborts the concurrent live replay and
|
|
4159
|
+
# discards any un-replayed traffic alongside stopping the capture. If false
|
|
4160
|
+
# (the default), the capture stops recording new traffic, but the live replay
|
|
4161
|
+
# will continue executing until the entire backlog of captured traffic has
|
|
4162
|
+
# been replayed.
|
|
4163
|
+
class StopWorkloadCaptureContext
|
|
4164
|
+
include ::Google::Protobuf::MessageExts
|
|
4165
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
4166
|
+
end
|
|
4167
|
+
|
|
4168
|
+
# The context for the `StartWorkloadReplay` operation, which contains details
|
|
4169
|
+
# about starting the execution of a captured workload (recorded read and
|
|
4170
|
+
# write SQL queries) on a replay instance (the Cloud SQL
|
|
4171
|
+
# instance where the recorded SQL queries are executed).
|
|
4172
|
+
# @!attribute [rw] replay_instance
|
|
4173
|
+
# @return [::String]
|
|
4174
|
+
# Required. The name of the Cloud SQL instance where the captured workload
|
|
4175
|
+
# (SQL queries) is being executed, excluding the project ID (for example,
|
|
4176
|
+
# `my-replay-instance`). The instance name must start with a lowercase letter
|
|
4177
|
+
# and contain only lowercase letters, numbers, and hyphens. The combined
|
|
4178
|
+
# length of `project-ID:instance-name` must be 98 characters or less.
|
|
4179
|
+
# @!attribute [r] workload_id
|
|
4180
|
+
# @return [::String]
|
|
4181
|
+
# Output only. The ID of the workload to start executing on the replay
|
|
4182
|
+
# instance. Each workload capture generates a unique ID in the format
|
|
4183
|
+
# `workload-<epoch_timestamp>` (for example, `workload-1786046400`). Use this
|
|
4184
|
+
# ID to start executing the recorded SQL queries.
|
|
4185
|
+
class StartWorkloadReplayContext
|
|
4186
|
+
include ::Google::Protobuf::MessageExts
|
|
4187
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
4188
|
+
end
|
|
4189
|
+
|
|
4190
|
+
# The context for the `StopWorkloadReplay` operation, which represents an
|
|
4191
|
+
# operation that stops an active workload replay on a target Cloud SQL replay
|
|
4192
|
+
# instance.
|
|
4193
|
+
class StopWorkloadReplayContext
|
|
4194
|
+
include ::Google::Protobuf::MessageExts
|
|
4195
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
4196
|
+
end
|
|
4197
|
+
|
|
4007
4198
|
module SqlFileType
|
|
4008
4199
|
# Unknown file type.
|
|
4009
4200
|
SQL_FILE_TYPE_UNSPECIFIED = 0
|
|
@@ -4187,6 +4378,10 @@ module Google
|
|
|
4187
4378
|
|
|
4188
4379
|
# A Cloud SQL read pool.
|
|
4189
4380
|
READ_POOL_INSTANCE = 5
|
|
4381
|
+
|
|
4382
|
+
# A Cloud SQL instance acting as a Blue-Green deployment target primary.
|
|
4383
|
+
# (MySQL only)
|
|
4384
|
+
GREEN_INSTANCE = 7
|
|
4190
4385
|
end
|
|
4191
4386
|
|
|
4192
4387
|
# The database engine type and version.
|
|
@@ -249,8 +249,8 @@ module Google
|
|
|
249
249
|
# Cloud IAM group.
|
|
250
250
|
CLOUD_IAM_GROUP_SERVICE_ACCOUNT = 5
|
|
251
251
|
|
|
252
|
-
# Cloud IAM workforce identity
|
|
253
|
-
#
|
|
252
|
+
# Cloud IAM workforce identity managed by Workforce Identity
|
|
253
|
+
# Federation.
|
|
254
254
|
CLOUD_IAM_WORKFORCE_IDENTITY = 6
|
|
255
255
|
|
|
256
256
|
# Microsoft Entra ID user.
|
|
@@ -293,10 +293,10 @@ module Google
|
|
|
293
293
|
# Represents a Sql Server user on the Cloud SQL instance.
|
|
294
294
|
# @!attribute [rw] disabled
|
|
295
295
|
# @return [::Boolean]
|
|
296
|
-
#
|
|
296
|
+
# Indicates if the user has been disabled.
|
|
297
297
|
# @!attribute [rw] server_roles
|
|
298
298
|
# @return [::Array<::String>]
|
|
299
|
-
#
|
|
299
|
+
# Indicates the server roles for this user.
|
|
300
300
|
class SqlServerUserDetails
|
|
301
301
|
include ::Google::Protobuf::MessageExts
|
|
302
302
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# Copyright 2026 Google LLC
|
|
4
|
+
#
|
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
# you may not use this file except in compliance with the License.
|
|
7
|
+
# You may obtain a copy of the License at
|
|
8
|
+
#
|
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
#
|
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
# See the License for the specific language governing permissions and
|
|
15
|
+
# limitations under the License.
|
|
16
|
+
|
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
module Google
|
|
21
|
+
module Cloud
|
|
22
|
+
module Sql
|
|
23
|
+
module V1beta4
|
|
24
|
+
# Request to start recording traffic from the primary instance (captured
|
|
25
|
+
# workload).
|
|
26
|
+
# @!attribute [rw] project
|
|
27
|
+
# @return [::String]
|
|
28
|
+
# Required. Project ID of the project that contains the instance.
|
|
29
|
+
# @!attribute [rw] instance
|
|
30
|
+
# @return [::String]
|
|
31
|
+
# Required. Cloud SQL instance ID. This does not include the project ID.
|
|
32
|
+
# @!attribute [rw] start_workload_capture_context
|
|
33
|
+
# @return [::Google::Cloud::Sql::V1beta4::StartWorkloadCaptureContext]
|
|
34
|
+
# Optional. Contains details about the start workload capture operation.
|
|
35
|
+
class SqlWorkloadCapturesStartRequest
|
|
36
|
+
include ::Google::Protobuf::MessageExts
|
|
37
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
38
|
+
end
|
|
39
|
+
|
|
40
|
+
# Request to stop recording traffic from the primary instance.
|
|
41
|
+
# @!attribute [rw] project
|
|
42
|
+
# @return [::String]
|
|
43
|
+
# Required. Project ID of the project that contains the instance.
|
|
44
|
+
# @!attribute [rw] instance
|
|
45
|
+
# @return [::String]
|
|
46
|
+
# Required. Cloud SQL instance ID. This does not include the project ID.
|
|
47
|
+
# @!attribute [rw] stop_workload_capture_context
|
|
48
|
+
# @return [::Google::Cloud::Sql::V1beta4::StopWorkloadCaptureContext]
|
|
49
|
+
# Optional. Contains details about the stop workload capture operation.
|
|
50
|
+
class SqlWorkloadCapturesStopRequest
|
|
51
|
+
include ::Google::Protobuf::MessageExts
|
|
52
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
53
|
+
end
|
|
54
|
+
|
|
55
|
+
# Request to start executing a captured workload on a replay instance (the
|
|
56
|
+
# Cloud SQL instance where the recorded SQL queries are executed).
|
|
57
|
+
# @!attribute [rw] project
|
|
58
|
+
# @return [::String]
|
|
59
|
+
# Required. Project ID of the project that contains the instance.
|
|
60
|
+
# @!attribute [rw] instance
|
|
61
|
+
# @return [::String]
|
|
62
|
+
# Required. Cloud SQL instance ID. This does not include the project ID.
|
|
63
|
+
# @!attribute [rw] start_workload_replay_context
|
|
64
|
+
# @return [::Google::Cloud::Sql::V1beta4::StartWorkloadReplayContext]
|
|
65
|
+
# Required. Contains details about the start workload replay operation.
|
|
66
|
+
# @!attribute [rw] workload_id
|
|
67
|
+
# @return [::String]
|
|
68
|
+
# Required. The ID of the workload to replay.
|
|
69
|
+
class SqlWorkloadCapturesStartReplayRequest
|
|
70
|
+
include ::Google::Protobuf::MessageExts
|
|
71
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
72
|
+
end
|
|
73
|
+
|
|
74
|
+
# Request to stop an active workload replay on a target Cloud SQL replay
|
|
75
|
+
# instance.
|
|
76
|
+
# @!attribute [rw] project
|
|
77
|
+
# @return [::String]
|
|
78
|
+
# Required. Project ID of the project that contains the target replay
|
|
79
|
+
# instance.
|
|
80
|
+
# @!attribute [rw] instance
|
|
81
|
+
# @return [::String]
|
|
82
|
+
# Required. Cloud SQL instance ID of the target replay instance. This does
|
|
83
|
+
# not include the project ID.
|
|
84
|
+
# @!attribute [rw] stop_workload_replay_context
|
|
85
|
+
# @return [::Google::Cloud::Sql::V1beta4::StopWorkloadReplayContext]
|
|
86
|
+
# Optional. Contains details about the stop workload replay operation.
|
|
87
|
+
class SqlWorkloadCapturesStopReplayRequest
|
|
88
|
+
include ::Google::Protobuf::MessageExts
|
|
89
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
90
|
+
end
|
|
91
|
+
|
|
92
|
+
# Instance list captured workloads request.
|
|
93
|
+
# @!attribute [rw] project
|
|
94
|
+
# @return [::String]
|
|
95
|
+
# Required. Project ID of the project that contains the instance.
|
|
96
|
+
# @!attribute [rw] instance
|
|
97
|
+
# @return [::String]
|
|
98
|
+
# Required. Cloud SQL instance ID. This does not include the project ID.
|
|
99
|
+
class SqlWorkloadCapturesListRequest
|
|
100
|
+
include ::Google::Protobuf::MessageExts
|
|
101
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
102
|
+
end
|
|
103
|
+
|
|
104
|
+
# Instance list captured workloads response.
|
|
105
|
+
# @!attribute [rw] workload_captures
|
|
106
|
+
# @return [::Array<::Google::Cloud::Sql::V1beta4::WorkloadCapture>]
|
|
107
|
+
# List of captured workloads for the instance.
|
|
108
|
+
# @!attribute [rw] kind
|
|
109
|
+
# @return [::String]
|
|
110
|
+
# This is always `sql#workloadCapturesList`.
|
|
111
|
+
class WorkloadCapturesListResponse
|
|
112
|
+
include ::Google::Protobuf::MessageExts
|
|
113
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
114
|
+
end
|
|
115
|
+
|
|
116
|
+
# Captured workload for an instance.
|
|
117
|
+
# @!attribute [r] workload_id
|
|
118
|
+
# @return [::String]
|
|
119
|
+
# Output only. The ID of the captured workload.
|
|
120
|
+
# @!attribute [r] source_instance
|
|
121
|
+
# @return [::String]
|
|
122
|
+
# Output only. The name of the source instance.
|
|
123
|
+
# @!attribute [r] workload_capture_state
|
|
124
|
+
# @return [::Google::Cloud::Sql::V1beta4::WorkloadCapture::State]
|
|
125
|
+
# Output only. The state of the workload capture.
|
|
126
|
+
# @!attribute [r] start_time
|
|
127
|
+
# @return [::Google::Protobuf::Timestamp]
|
|
128
|
+
# Output only. The start time of the workload capture.
|
|
129
|
+
# @!attribute [r] end_time
|
|
130
|
+
# @return [::Google::Protobuf::Timestamp]
|
|
131
|
+
# Output only. The end time of the workload capture.
|
|
132
|
+
# @!attribute [r] replay_instance
|
|
133
|
+
# @return [::String]
|
|
134
|
+
# Output only. The name of the replay instance, if live replay was enabled.
|
|
135
|
+
# @!attribute [r] retention_days
|
|
136
|
+
# @return [::Integer]
|
|
137
|
+
# Output only. The retention period in days for the captured workload.
|
|
138
|
+
# @!attribute [r] backup_id
|
|
139
|
+
# @return [::String]
|
|
140
|
+
# Output only. The base backup ID associated with the workload capture.
|
|
141
|
+
class WorkloadCapture
|
|
142
|
+
include ::Google::Protobuf::MessageExts
|
|
143
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
144
|
+
|
|
145
|
+
# State of the workload capture.
|
|
146
|
+
module State
|
|
147
|
+
# Default value. This value is unused.
|
|
148
|
+
STATE_UNSPECIFIED = 0
|
|
149
|
+
|
|
150
|
+
# Workload capture is currently running.
|
|
151
|
+
RUNNING = 1
|
|
152
|
+
|
|
153
|
+
# Workload capture completed successfully. This state is set when the user
|
|
154
|
+
# explicitly stops the capture.
|
|
155
|
+
COMPLETED = 2
|
|
156
|
+
|
|
157
|
+
# Workload capture failed.
|
|
158
|
+
FAILED = 3
|
|
159
|
+
|
|
160
|
+
# Workload capture was terminated automatically. This state is set when
|
|
161
|
+
# Cloud SQL automatically stops the capture due to a conflicting operation
|
|
162
|
+
# or when the maximum duration is reached.
|
|
163
|
+
TERMINATED = 4
|
|
164
|
+
end
|
|
165
|
+
end
|
|
166
|
+
end
|
|
167
|
+
end
|
|
168
|
+
end
|
|
169
|
+
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: google-cloud-sql-v1beta4
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.3.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Google LLC
|
|
@@ -65,6 +65,15 @@ files:
|
|
|
65
65
|
- README.md
|
|
66
66
|
- lib/google-cloud-sql-v1beta4.rb
|
|
67
67
|
- lib/google/cloud/sql/v1beta4.rb
|
|
68
|
+
- lib/google/cloud/sql/v1beta4/blue_green_deployments_service.rb
|
|
69
|
+
- lib/google/cloud/sql/v1beta4/blue_green_deployments_service/client.rb
|
|
70
|
+
- lib/google/cloud/sql/v1beta4/blue_green_deployments_service/credentials.rb
|
|
71
|
+
- lib/google/cloud/sql/v1beta4/blue_green_deployments_service/paths.rb
|
|
72
|
+
- lib/google/cloud/sql/v1beta4/blue_green_deployments_service/rest.rb
|
|
73
|
+
- lib/google/cloud/sql/v1beta4/blue_green_deployments_service/rest/client.rb
|
|
74
|
+
- lib/google/cloud/sql/v1beta4/blue_green_deployments_service/rest/service_stub.rb
|
|
75
|
+
- lib/google/cloud/sql/v1beta4/cloud_sql_blue_green_deployments_pb.rb
|
|
76
|
+
- lib/google/cloud/sql/v1beta4/cloud_sql_blue_green_deployments_services_pb.rb
|
|
68
77
|
- lib/google/cloud/sql/v1beta4/cloud_sql_connect_pb.rb
|
|
69
78
|
- lib/google/cloud/sql/v1beta4/cloud_sql_connect_services_pb.rb
|
|
70
79
|
- lib/google/cloud/sql/v1beta4/cloud_sql_data_pb.rb
|
|
@@ -78,10 +87,13 @@ files:
|
|
|
78
87
|
- lib/google/cloud/sql/v1beta4/cloud_sql_tiers_services_pb.rb
|
|
79
88
|
- lib/google/cloud/sql/v1beta4/cloud_sql_users_pb.rb
|
|
80
89
|
- lib/google/cloud/sql/v1beta4/cloud_sql_users_services_pb.rb
|
|
90
|
+
- lib/google/cloud/sql/v1beta4/cloud_sql_workload_captures_pb.rb
|
|
91
|
+
- lib/google/cloud/sql/v1beta4/cloud_sql_workload_captures_services_pb.rb
|
|
81
92
|
- lib/google/cloud/sql/v1beta4/rest.rb
|
|
82
93
|
- lib/google/cloud/sql/v1beta4/sql_backup_runs_service.rb
|
|
83
94
|
- lib/google/cloud/sql/v1beta4/sql_backup_runs_service/client.rb
|
|
84
95
|
- lib/google/cloud/sql/v1beta4/sql_backup_runs_service/credentials.rb
|
|
96
|
+
- lib/google/cloud/sql/v1beta4/sql_backup_runs_service/paths.rb
|
|
85
97
|
- lib/google/cloud/sql/v1beta4/sql_backup_runs_service/rest.rb
|
|
86
98
|
- lib/google/cloud/sql/v1beta4/sql_backup_runs_service/rest/client.rb
|
|
87
99
|
- lib/google/cloud/sql/v1beta4/sql_backup_runs_service/rest/service_stub.rb
|
|
@@ -145,6 +157,12 @@ files:
|
|
|
145
157
|
- lib/google/cloud/sql/v1beta4/sql_users_service/rest.rb
|
|
146
158
|
- lib/google/cloud/sql/v1beta4/sql_users_service/rest/client.rb
|
|
147
159
|
- lib/google/cloud/sql/v1beta4/sql_users_service/rest/service_stub.rb
|
|
160
|
+
- lib/google/cloud/sql/v1beta4/sql_workload_captures_service.rb
|
|
161
|
+
- lib/google/cloud/sql/v1beta4/sql_workload_captures_service/client.rb
|
|
162
|
+
- lib/google/cloud/sql/v1beta4/sql_workload_captures_service/credentials.rb
|
|
163
|
+
- lib/google/cloud/sql/v1beta4/sql_workload_captures_service/rest.rb
|
|
164
|
+
- lib/google/cloud/sql/v1beta4/sql_workload_captures_service/rest/client.rb
|
|
165
|
+
- lib/google/cloud/sql/v1beta4/sql_workload_captures_service/rest/service_stub.rb
|
|
148
166
|
- lib/google/cloud/sql/v1beta4/version.rb
|
|
149
167
|
- proto_docs/README.md
|
|
150
168
|
- proto_docs/google/api/client.rb
|
|
@@ -154,11 +172,13 @@ files:
|
|
|
154
172
|
- proto_docs/google/api/resource.rb
|
|
155
173
|
- proto_docs/google/api/routing.rb
|
|
156
174
|
- proto_docs/google/cloud/sql/v1beta4/cloud_sql.rb
|
|
175
|
+
- proto_docs/google/cloud/sql/v1beta4/cloud_sql_blue_green_deployments.rb
|
|
157
176
|
- proto_docs/google/cloud/sql/v1beta4/cloud_sql_connect.rb
|
|
158
177
|
- proto_docs/google/cloud/sql/v1beta4/cloud_sql_data.rb
|
|
159
178
|
- proto_docs/google/cloud/sql/v1beta4/cloud_sql_resources.rb
|
|
160
179
|
- proto_docs/google/cloud/sql/v1beta4/cloud_sql_tiers.rb
|
|
161
180
|
- proto_docs/google/cloud/sql/v1beta4/cloud_sql_users.rb
|
|
181
|
+
- proto_docs/google/cloud/sql/v1beta4/cloud_sql_workload_captures.rb
|
|
162
182
|
- proto_docs/google/protobuf/any.rb
|
|
163
183
|
- proto_docs/google/protobuf/duration.rb
|
|
164
184
|
- proto_docs/google/protobuf/empty.rb
|