google-cloud-sql-v1beta4 0.1.1 → 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.
Files changed (46) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -1
  3. data/lib/google/cloud/sql/v1beta4/blue_green_deployments_service/client.rb +906 -0
  4. data/lib/google/cloud/sql/v1beta4/blue_green_deployments_service/credentials.rb +48 -0
  5. data/lib/google/cloud/sql/v1beta4/blue_green_deployments_service/paths.rb +69 -0
  6. data/lib/google/cloud/sql/v1beta4/blue_green_deployments_service/rest/client.rb +828 -0
  7. data/lib/google/cloud/sql/v1beta4/blue_green_deployments_service/rest/service_stub.rb +388 -0
  8. data/lib/google/cloud/sql/v1beta4/blue_green_deployments_service/rest.rb +52 -0
  9. data/lib/google/cloud/sql/v1beta4/blue_green_deployments_service.rb +55 -0
  10. data/lib/google/cloud/sql/v1beta4/cloud_sql_blue_green_deployments_pb.rb +47 -0
  11. data/lib/google/cloud/sql/v1beta4/cloud_sql_blue_green_deployments_services_pb.rb +65 -0
  12. data/lib/google/cloud/sql/v1beta4/cloud_sql_pb.rb +2 -1
  13. data/lib/google/cloud/sql/v1beta4/cloud_sql_resources_pb.rb +10 -1
  14. data/lib/google/cloud/sql/v1beta4/cloud_sql_users_pb.rb +1 -1
  15. data/lib/google/cloud/sql/v1beta4/cloud_sql_workload_captures_pb.rb +35 -0
  16. data/lib/google/cloud/sql/v1beta4/cloud_sql_workload_captures_services_pb.rb +60 -0
  17. data/lib/google/cloud/sql/v1beta4/rest.rb +2 -0
  18. data/lib/google/cloud/sql/v1beta4/sql_backup_runs_service/client.rb +2 -0
  19. data/lib/google/cloud/sql/v1beta4/sql_backup_runs_service/paths.rb +77 -0
  20. data/lib/google/cloud/sql/v1beta4/sql_backup_runs_service/rest/client.rb +2 -0
  21. data/lib/google/cloud/sql/v1beta4/sql_backup_runs_service/rest.rb +1 -0
  22. data/lib/google/cloud/sql/v1beta4/sql_backup_runs_service.rb +1 -0
  23. data/lib/google/cloud/sql/v1beta4/sql_backups_service/paths.rb +63 -0
  24. data/lib/google/cloud/sql/v1beta4/sql_databases_service/client.rb +18 -6
  25. data/lib/google/cloud/sql/v1beta4/sql_databases_service/rest/client.rb +18 -6
  26. data/lib/google/cloud/sql/v1beta4/sql_instances_service/client.rb +131 -44
  27. data/lib/google/cloud/sql/v1beta4/sql_instances_service/paths.rb +63 -0
  28. data/lib/google/cloud/sql/v1beta4/sql_instances_service/rest/client.rb +126 -42
  29. data/lib/google/cloud/sql/v1beta4/sql_users_service/client.rb +15 -5
  30. data/lib/google/cloud/sql/v1beta4/sql_users_service/rest/client.rb +15 -5
  31. data/lib/google/cloud/sql/v1beta4/sql_workload_captures_service/client.rb +905 -0
  32. data/lib/google/cloud/sql/v1beta4/sql_workload_captures_service/credentials.rb +48 -0
  33. data/lib/google/cloud/sql/v1beta4/sql_workload_captures_service/rest/client.rb +809 -0
  34. data/lib/google/cloud/sql/v1beta4/sql_workload_captures_service/rest/service_stub.rb +396 -0
  35. data/lib/google/cloud/sql/v1beta4/sql_workload_captures_service/rest.rb +51 -0
  36. data/lib/google/cloud/sql/v1beta4/sql_workload_captures_service.rb +54 -0
  37. data/lib/google/cloud/sql/v1beta4/version.rb +1 -1
  38. data/lib/google/cloud/sql/v1beta4.rb +2 -0
  39. data/proto_docs/google/api/routing.rb +463 -0
  40. data/proto_docs/google/cloud/sql/v1beta4/cloud_sql.rb +142 -1
  41. data/proto_docs/google/cloud/sql/v1beta4/cloud_sql_blue_green_deployments.rb +428 -0
  42. data/proto_docs/google/cloud/sql/v1beta4/cloud_sql_resources.rb +214 -2
  43. data/proto_docs/google/cloud/sql/v1beta4/cloud_sql_users.rb +19 -4
  44. data/proto_docs/google/cloud/sql/v1beta4/cloud_sql_workload_captures.rb +169 -0
  45. data/proto_docs/google/protobuf/timestamp.rb +7 -6
  46. metadata +24 -3
@@ -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,10 +834,18 @@ 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
836
844
  # false, instance metadata is not sent to the Database Center.
845
+ # @!attribute [rw] database_center_integration
846
+ # @return [::Google::Cloud::Sql::V1beta4::DatabaseInstance::DatabaseCenterIntegration]
847
+ # Optional. State of the Database Center integration for this instance.
848
+ # When unspecified, Database Center integration is enabled by default.
837
849
  class DatabaseInstance
838
850
  include ::Google::Protobuf::MessageExts
839
851
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -991,6 +1003,75 @@ module Google
991
1003
  # The instance uses the old network architecture.
992
1004
  OLD_NETWORK_ARCHITECTURE = 2
993
1005
  end
1006
+
1007
+ # State of the integration with Database Center.
1008
+ module DatabaseCenterIntegration
1009
+ # Default value. The integration state is unspecified. When unspecified,
1010
+ # Database Center integration is enabled by default.
1011
+ DATABASE_CENTER_INTEGRATION_UNSPECIFIED = 0
1012
+
1013
+ # Database Center integration is enabled.
1014
+ ENABLED = 1
1015
+
1016
+ # Database Center integration is disabled.
1017
+ DISABLED = 2
1018
+ end
1019
+ end
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
994
1075
  end
995
1076
 
996
1077
  # DNS metadata.
@@ -1852,6 +1933,11 @@ module Google
1852
1933
  # Optional. This field has the same purpose as restore_instance_settings,
1853
1934
  # changes any instance settings stored in the backup you are restoring from.
1854
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.
1855
1941
  class InstancesRestoreBackupRequest
1856
1942
  include ::Google::Protobuf::MessageExts
1857
1943
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -2008,6 +2094,9 @@ module Google
2008
2094
  # @!attribute [rw] kind
2009
2095
  # @return [::String]
2010
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.
2011
2100
  class PreCheckMajorVersionUpgradeContext
2012
2101
  include ::Google::Protobuf::MessageExts
2013
2102
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -2266,6 +2355,15 @@ module Google
2266
2355
  # The replication user is missing specific privileges to setup DDL
2267
2356
  # replication. (e.g. CREATE EVENT TRIGGER, CREATE SCHEMA) for PostgreSQL.
2268
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
2269
2367
  end
2270
2368
  end
2271
2369
 
@@ -2452,7 +2550,7 @@ module Google
2452
2550
  # @return [::String]
2453
2551
  # Optional. The network attachment of the consumer network that the
2454
2552
  # Private Service Connect enabled Cloud SQL instance is
2455
- # authorized to connect via PSC interface.
2553
+ # authorized to connect using the PSC interface.
2456
2554
  # format: projects/PROJECT/regions/REGION/networkAttachments/ID
2457
2555
  # @!attribute [rw] psc_auto_dns_enabled
2458
2556
  # @return [::Boolean]
@@ -2775,6 +2873,15 @@ module Google
2775
2873
  # @!attribute [rw] kind
2776
2874
  # @return [::String]
2777
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.
2778
2885
  class DiskEncryptionConfiguration
2779
2886
  include ::Google::Protobuf::MessageExts
2780
2887
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -2869,6 +2976,27 @@ module Google
2869
2976
  # The PreCheckMajorVersionUpgradeContext message itself contains the details
2870
2977
  # for that pre-check, such as the target database version for the upgrade
2871
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.
2872
3000
  # @!attribute [rw] name
2873
3001
  # @return [::String]
2874
3002
  # An identifier that uniquely identifies the operation. You can use this
@@ -3069,6 +3197,15 @@ module Google
3069
3197
  # Pre-checks for major version upgrade.
3070
3198
  PRE_CHECK_MAJOR_VERSION_UPGRADE = 54
3071
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
+
3072
3209
  # This operation type represents individual steps in a multi-step setup
3073
3210
  # migration workflow: including configuration, replication,
3074
3211
  # switchover/back, and data reseeding, as defined by operation's intent.
@@ -3406,7 +3543,8 @@ module Google
3406
3543
  # Insights configuration, for now relevant only for Postgres.
3407
3544
  # @!attribute [rw] password_validation_policy
3408
3545
  # @return [::Google::Cloud::Sql::V1beta4::PasswordValidationPolicy]
3409
- # The local user password validation policy of the instance.
3546
+ # The local user password validation policy of the instance for PostgreSQL
3547
+ # and MySQL.
3410
3548
  # @!attribute [rw] sql_server_audit_config
3411
3549
  # @return [::Google::Cloud::Sql::V1beta4::SqlServerAuditConfig]
3412
3550
  # SQL Server specific audit configuration.
@@ -3987,6 +4125,76 @@ module Google
3987
4125
  extend ::Google::Protobuf::MessageExts::ClassMethods
3988
4126
  end
3989
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
+
3990
4198
  module SqlFileType
3991
4199
  # Unknown file type.
3992
4200
  SQL_FILE_TYPE_UNSPECIFIED = 0
@@ -4170,6 +4378,10 @@ module Google
4170
4378
 
4171
4379
  # A Cloud SQL read pool.
4172
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
4173
4385
  end
4174
4386
 
4175
4387
  # The database engine type and version.
@@ -33,6 +33,9 @@ module Google
33
33
  # @!attribute [rw] project
34
34
  # @return [::String]
35
35
  # Project ID of the project that contains the instance.
36
+ # @!attribute [rw] location
37
+ # @return [::String]
38
+ # Optional. Region of the Cloud SQL instance.
36
39
  class SqlUsersDeleteRequest
37
40
  include ::Google::Protobuf::MessageExts
38
41
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -51,6 +54,9 @@ module Google
51
54
  # @!attribute [rw] host
52
55
  # @return [::String]
53
56
  # Host of a user of the instance.
57
+ # @!attribute [rw] location
58
+ # @return [::String]
59
+ # Optional. Region of the Cloud SQL instance.
54
60
  class SqlUsersGetRequest
55
61
  include ::Google::Protobuf::MessageExts
56
62
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -64,6 +70,9 @@ module Google
64
70
  # Project ID of the project that contains the instance.
65
71
  # @!attribute [rw] body
66
72
  # @return [::Google::Cloud::Sql::V1beta4::User]
73
+ # @!attribute [rw] location
74
+ # @return [::String]
75
+ # Optional. Region of the Cloud SQL instance.
67
76
  class SqlUsersInsertRequest
68
77
  include ::Google::Protobuf::MessageExts
69
78
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -75,6 +84,9 @@ module Google
75
84
  # @!attribute [rw] project
76
85
  # @return [::String]
77
86
  # Project ID of the project that contains the instance.
87
+ # @!attribute [rw] location
88
+ # @return [::String]
89
+ # Optional. Region of the Cloud SQL instance.
78
90
  class SqlUsersListRequest
79
91
  include ::Google::Protobuf::MessageExts
80
92
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -113,6 +125,9 @@ module Google
113
125
  # specified in `server_roles` are added to the user's existing server roles.
114
126
  # @!attribute [rw] body
115
127
  # @return [::Google::Cloud::Sql::V1beta4::User]
128
+ # @!attribute [rw] location
129
+ # @return [::String]
130
+ # Optional. Region of the Cloud SQL instance.
116
131
  class SqlUsersUpdateRequest
117
132
  include ::Google::Protobuf::MessageExts
118
133
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -234,8 +249,8 @@ module Google
234
249
  # Cloud IAM group.
235
250
  CLOUD_IAM_GROUP_SERVICE_ACCOUNT = 5
236
251
 
237
- # Cloud IAM workforce identity user managed via workforce identity
238
- # federation.
252
+ # Cloud IAM workforce identity managed by Workforce Identity
253
+ # Federation.
239
254
  CLOUD_IAM_WORKFORCE_IDENTITY = 6
240
255
 
241
256
  # Microsoft Entra ID user.
@@ -278,10 +293,10 @@ module Google
278
293
  # Represents a Sql Server user on the Cloud SQL instance.
279
294
  # @!attribute [rw] disabled
280
295
  # @return [::Boolean]
281
- # If the user has been disabled
296
+ # Indicates if the user has been disabled.
282
297
  # @!attribute [rw] server_roles
283
298
  # @return [::Array<::String>]
284
- # The server roles for this user
299
+ # Indicates the server roles for this user.
285
300
  class SqlServerUserDetails
286
301
  include ::Google::Protobuf::MessageExts
287
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
@@ -110,14 +110,15 @@ module Google
110
110
  # ) to obtain a formatter capable of generating timestamps in this format.
111
111
  # @!attribute [rw] seconds
112
112
  # @return [::Integer]
113
- # Represents seconds of UTC time since Unix epoch
114
- # 1970-01-01T00:00:00Z. Must be from 0001-01-01T00:00:00Z to
115
- # 9999-12-31T23:59:59Z inclusive.
113
+ # Represents seconds of UTC time since Unix epoch 1970-01-01T00:00:00Z. Must
114
+ # be between -315576000000 and 315576000000 inclusive (which corresponds to
115
+ # 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z).
116
116
  # @!attribute [rw] nanos
117
117
  # @return [::Integer]
118
- # Non-negative fractions of a second at nanosecond resolution. Negative
119
- # second values with fractions must still have non-negative nanos values
120
- # that count forward in time. Must be from 0 to 999,999,999
118
+ # Non-negative fractions of a second at nanosecond resolution. This field is
119
+ # the nanosecond portion of the duration, not an alternative to seconds.
120
+ # Negative second values with fractions must still have non-negative nanos
121
+ # values that count forward in time. Must be between 0 and 999,999,999
121
122
  # inclusive.
122
123
  class Timestamp
123
124
  include ::Google::Protobuf::MessageExts
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.1.1
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
@@ -51,7 +51,7 @@ dependencies:
51
51
  - - "~>"
52
52
  - !ruby/object:Gem::Version
53
53
  version: '1.0'
54
- description: Cloud SQL Admin API. Note that google-cloud-sql-v1beta4 is a version-specific
54
+ description: Cloud SQL Admin API Note that google-cloud-sql-v1beta4 is a version-specific
55
55
  client library. For most uses, we recommend installing the main client library google-cloud-sql
56
56
  instead. See the readme for more details.
57
57
  email: googleapis-packages@google.com
@@ -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
@@ -152,12 +170,15 @@ files:
152
170
  - proto_docs/google/api/field_info.rb
153
171
  - proto_docs/google/api/launch_stage.rb
154
172
  - proto_docs/google/api/resource.rb
173
+ - proto_docs/google/api/routing.rb
155
174
  - proto_docs/google/cloud/sql/v1beta4/cloud_sql.rb
175
+ - proto_docs/google/cloud/sql/v1beta4/cloud_sql_blue_green_deployments.rb
156
176
  - proto_docs/google/cloud/sql/v1beta4/cloud_sql_connect.rb
157
177
  - proto_docs/google/cloud/sql/v1beta4/cloud_sql_data.rb
158
178
  - proto_docs/google/cloud/sql/v1beta4/cloud_sql_resources.rb
159
179
  - proto_docs/google/cloud/sql/v1beta4/cloud_sql_tiers.rb
160
180
  - proto_docs/google/cloud/sql/v1beta4/cloud_sql_users.rb
181
+ - proto_docs/google/cloud/sql/v1beta4/cloud_sql_workload_captures.rb
161
182
  - proto_docs/google/protobuf/any.rb
162
183
  - proto_docs/google/protobuf/duration.rb
163
184
  - proto_docs/google/protobuf/empty.rb
@@ -186,5 +207,5 @@ required_rubygems_version: !ruby/object:Gem::Requirement
186
207
  requirements: []
187
208
  rubygems_version: 3.6.9
188
209
  specification_version: 4
189
- summary: Cloud SQL Admin API.
210
+ summary: Cloud SQL Admin API
190
211
  test_files: []