google-cloud-sql-v1 0.2.0 → 0.5.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 (55) hide show
  1. checksums.yaml +4 -4
  2. data/AUTHENTICATION.md +4 -4
  3. data/README.md +9 -2
  4. data/lib/google/cloud/sql/v1/blue_green_deployments_service/client.rb +899 -0
  5. data/lib/google/cloud/sql/v1/blue_green_deployments_service/credentials.rb +48 -0
  6. data/lib/google/cloud/sql/v1/blue_green_deployments_service/paths.rb +86 -0
  7. data/lib/google/cloud/sql/v1/blue_green_deployments_service/rest/client.rb +821 -0
  8. data/lib/google/cloud/sql/v1/blue_green_deployments_service/rest/service_stub.rb +388 -0
  9. data/lib/google/cloud/sql/v1/blue_green_deployments_service/rest.rb +52 -0
  10. data/lib/google/cloud/sql/v1/blue_green_deployments_service.rb +55 -0
  11. data/lib/google/cloud/sql/v1/cloud_sql_backups_pb.rb +1 -1
  12. data/lib/google/cloud/sql/v1/cloud_sql_blue_green_deployments_pb.rb +45 -0
  13. data/lib/google/cloud/sql/v1/cloud_sql_blue_green_deployments_services_pb.rb +54 -0
  14. data/lib/google/cloud/sql/v1/cloud_sql_databases_pb.rb +2 -1
  15. data/lib/google/cloud/sql/v1/cloud_sql_instances_pb.rb +7 -1
  16. data/lib/google/cloud/sql/v1/cloud_sql_operations_pb.rb +1 -1
  17. data/lib/google/cloud/sql/v1/cloud_sql_resources_pb.rb +5 -1
  18. data/lib/google/cloud/sql/v1/cloud_sql_ssl_certs_pb.rb +2 -1
  19. data/lib/google/cloud/sql/v1/cloud_sql_users_pb.rb +1 -1
  20. data/lib/google/cloud/sql/v1/cloud_sql_workload_captures_pb.rb +35 -0
  21. data/lib/google/cloud/sql/v1/cloud_sql_workload_captures_services_pb.rb +60 -0
  22. data/lib/google/cloud/sql/v1/rest.rb +2 -0
  23. data/lib/google/cloud/sql/v1/sql_backup_runs_service/client.rb +2 -0
  24. data/lib/google/cloud/sql/v1/sql_backup_runs_service/paths.rb +77 -0
  25. data/lib/google/cloud/sql/v1/sql_backup_runs_service/rest/client.rb +2 -0
  26. data/lib/google/cloud/sql/v1/sql_backup_runs_service/rest.rb +1 -0
  27. data/lib/google/cloud/sql/v1/sql_backup_runs_service.rb +1 -0
  28. data/lib/google/cloud/sql/v1/sql_backups_service/paths.rb +63 -0
  29. data/lib/google/cloud/sql/v1/sql_databases_service/client.rb +18 -6
  30. data/lib/google/cloud/sql/v1/sql_databases_service/rest/client.rb +18 -6
  31. data/lib/google/cloud/sql/v1/sql_instances_service/client.rb +131 -44
  32. data/lib/google/cloud/sql/v1/sql_instances_service/paths.rb +108 -0
  33. data/lib/google/cloud/sql/v1/sql_instances_service/rest/client.rb +126 -42
  34. data/lib/google/cloud/sql/v1/sql_operations_service/client.rb +9 -3
  35. data/lib/google/cloud/sql/v1/sql_operations_service/rest/client.rb +9 -3
  36. data/lib/google/cloud/sql/v1/sql_users_service/client.rb +23 -5
  37. data/lib/google/cloud/sql/v1/sql_users_service/rest/client.rb +23 -5
  38. data/lib/google/cloud/sql/v1/sql_workload_captures_service/client.rb +906 -0
  39. data/lib/google/cloud/sql/v1/sql_workload_captures_service/credentials.rb +48 -0
  40. data/lib/google/cloud/sql/v1/sql_workload_captures_service/rest/client.rb +810 -0
  41. data/lib/google/cloud/sql/v1/sql_workload_captures_service/rest/service_stub.rb +396 -0
  42. data/lib/google/cloud/sql/v1/sql_workload_captures_service/rest.rb +51 -0
  43. data/lib/google/cloud/sql/v1/sql_workload_captures_service.rb +54 -0
  44. data/lib/google/cloud/sql/v1/version.rb +1 -1
  45. data/lib/google/cloud/sql/v1.rb +2 -6
  46. data/proto_docs/google/api/routing.rb +463 -0
  47. data/proto_docs/google/cloud/sql/v1/cloud_sql_blue_green_deployments.rb +399 -0
  48. data/proto_docs/google/cloud/sql/v1/cloud_sql_databases.rb +15 -0
  49. data/proto_docs/google/cloud/sql/v1/cloud_sql_instances.rb +248 -2
  50. data/proto_docs/google/cloud/sql/v1/cloud_sql_operations.rb +9 -0
  51. data/proto_docs/google/cloud/sql/v1/cloud_sql_resources.rb +116 -3
  52. data/proto_docs/google/cloud/sql/v1/cloud_sql_users.rb +32 -4
  53. data/proto_docs/google/cloud/sql/v1/cloud_sql_workload_captures.rb +170 -0
  54. data/proto_docs/google/protobuf/timestamp.rb +7 -6
  55. metadata +24 -3
@@ -240,6 +240,9 @@ module Google
240
240
  # @!attribute [rw] kind
241
241
  # @return [::String]
242
242
  # Optional. This is always `sql#preCheckMajorVersionUpgradeContext`.
243
+ # @!attribute [rw] max_runtime
244
+ # @return [::Google::Protobuf::Duration]
245
+ # Optional. The maximum allowed runtime for the precheck operation.
243
246
  class PreCheckMajorVersionUpgradeContext
244
247
  include ::Google::Protobuf::MessageExts
245
248
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -961,7 +964,7 @@ module Google
961
964
  # @return [::String]
962
965
  # Optional. The network attachment of the consumer network that the
963
966
  # Private Service Connect enabled Cloud SQL instance is
964
- # authorized to connect via PSC interface.
967
+ # authorized to connect using the PSC interface.
965
968
  # format: projects/PROJECT/regions/REGION/networkAttachments/ID
966
969
  # @!attribute [rw] psc_auto_dns_enabled
967
970
  # @return [::Boolean]
@@ -1188,10 +1191,19 @@ module Google
1188
1191
  # Disk encryption configuration for an instance.
1189
1192
  # @!attribute [rw] kms_key_name
1190
1193
  # @return [::String]
1191
- # Resource name of KMS key for disk encryption
1194
+ # Resource name of KMS key for disk encryption.
1192
1195
  # @!attribute [rw] kind
1193
1196
  # @return [::String]
1194
1197
  # This is always `sql#diskEncryptionConfiguration`.
1198
+ # @!attribute [rw] confidential_mode
1199
+ # @return [::Boolean]
1200
+ # Optional. If true, enables Confidential Mode for the instance's Hyperdisk
1201
+ # Balanced volumes. Only supported for zonal C4A instances currently.
1202
+ # @!attribute [rw] cmek_source_log_encryption_enforced
1203
+ # @return [::Boolean]
1204
+ # Optional. Whether to enforce CMEK log encryption at source. When enforced,
1205
+ # transaction logs are encrypted prior to being uploaded to Cloud Storage. If
1206
+ # not enforced, then CMEK logs are encrypted by the Cloud Storage service.
1195
1207
  class DiskEncryptionConfiguration
1196
1208
  include ::Google::Protobuf::MessageExts
1197
1209
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -1306,6 +1318,27 @@ module Google
1306
1318
  # The PreCheckMajorVersionUpgradeContext message itself contains the details
1307
1319
  # for that pre-check, such as the target database version for the upgrade
1308
1320
  # and the results of the check (including any warnings or errors found).
1321
+ # @!attribute [rw] start_workload_capture_context
1322
+ # @return [::Google::Cloud::Sql::V1::StartWorkloadCaptureContext]
1323
+ # The context for the `StartWorkloadCapture` operation, which contains
1324
+ # details to start recording the workload (SQL queries) on a Cloud SQL
1325
+ # instance.
1326
+ # @!attribute [rw] stop_workload_capture_context
1327
+ # @return [::Google::Cloud::Sql::V1::StopWorkloadCaptureContext]
1328
+ # The context for the `StopWorkloadCapture` operation, which contains
1329
+ # details to stop recording the workload (SQL queries) on a Cloud SQL
1330
+ # instance.
1331
+ # @!attribute [rw] start_workload_replay_context
1332
+ # @return [::Google::Cloud::Sql::V1::StartWorkloadReplayContext]
1333
+ # The context for the `StartWorkloadReplay` operation, which contains details
1334
+ # about starting the execution of a captured workload (recorded read and
1335
+ # write SQL queries) on a replay instance (the Cloud SQL
1336
+ # instance where the recorded SQL queries are executed).
1337
+ # @!attribute [rw] stop_workload_replay_context
1338
+ # @return [::Google::Cloud::Sql::V1::StopWorkloadReplayContext]
1339
+ # The context for the `StopWorkloadReplay` operation, which contains details
1340
+ # about stopping the execution of a captured workload (recorded read and
1341
+ # write SQL queries) on a replay instance.
1309
1342
  # @!attribute [rw] name
1310
1343
  # @return [::String]
1311
1344
  # An identifier that uniquely identifies the operation. You can use this
@@ -1510,6 +1543,15 @@ module Google
1510
1543
  # migration workflow: including configuration, replication,
1511
1544
  # switchover/back, and data reseeding, as defined by operation's intent.
1512
1545
  SETUP_MIGRATION = 55
1546
+
1547
+ # Creates a new Blue-Green deployment.
1548
+ CREATE_BLUE_GREEN_DEPLOYMENT = 56
1549
+
1550
+ # Switches over a Blue-Green deployment.
1551
+ SWITCHOVER_BLUE_GREEN_DEPLOYMENT = 57
1552
+
1553
+ # Deletes a Blue-Green deployment.
1554
+ DELETE_BLUE_GREEN_DEPLOYMENT = 58
1513
1555
  end
1514
1556
 
1515
1557
  # The status of an operation.
@@ -1735,7 +1777,8 @@ module Google
1735
1777
  # Insights configuration, for now relevant only for Postgres.
1736
1778
  # @!attribute [rw] password_validation_policy
1737
1779
  # @return [::Google::Cloud::Sql::V1::PasswordValidationPolicy]
1738
- # The local user password validation policy of the instance.
1780
+ # The local user password validation policy of the instance for PostgreSQL
1781
+ # and MySQL.
1739
1782
  # @!attribute [rw] sql_server_audit_config
1740
1783
  # @return [::Google::Cloud::Sql::V1::SqlServerAuditConfig]
1741
1784
  # SQL Server specific audit configuration.
@@ -2273,6 +2316,76 @@ module Google
2273
2316
  end
2274
2317
  end
2275
2318
 
2319
+ # The context for the `StartWorkloadCapture` operation, which contains
2320
+ # details to start recording the workload (SQL queries) on a Cloud SQL
2321
+ # instance.
2322
+ # @!attribute [rw] enable_live_replay
2323
+ # @return [::Boolean]
2324
+ # Optional. If true, the captured workload is simultaneously executed on a
2325
+ # separate, ephemeral Cloud SQL instance. This "live replay" instance
2326
+ # is automatically provisioned and is cloned from the source instance. If
2327
+ # false (the default), the workload is only stored and no live replay occurs.
2328
+ # It can be replayed later using a separate `StartWorkloadReplayRequest`.
2329
+ # Note: The workload capture runs continuously until an explicit
2330
+ # `StopWorkloadCaptureRequest` is issued.
2331
+ # @!attribute [rw] replay_instance
2332
+ # @return [::String]
2333
+ # Optional. Required if `enable_live_replay` is true.
2334
+ # The name of the Cloud SQL instance where the captured workload
2335
+ # (SQL queries) is being executed, excluding the project ID (for example,
2336
+ # `my-replay-instance`). The instance name must start with a lowercase letter
2337
+ # and contain only lowercase letters, numbers, and hyphens. The combined
2338
+ # length of `project-ID:instance-name` must be 98 characters or less.
2339
+ class StartWorkloadCaptureContext
2340
+ include ::Google::Protobuf::MessageExts
2341
+ extend ::Google::Protobuf::MessageExts::ClassMethods
2342
+ end
2343
+
2344
+ # The context for the `StopWorkloadCapture` operation, which contains
2345
+ # details to stop recording the workload (SQL queries) on a Cloud SQL
2346
+ # instance.
2347
+ # @!attribute [rw] abort_live_replay
2348
+ # @return [::Boolean]
2349
+ # Optional. If true, immediately aborts the concurrent live replay and
2350
+ # discards any un-replayed traffic alongside stopping the capture. If false
2351
+ # (the default), the capture stops recording new traffic, but the live replay
2352
+ # will continue executing until the entire backlog of captured traffic has
2353
+ # been replayed.
2354
+ class StopWorkloadCaptureContext
2355
+ include ::Google::Protobuf::MessageExts
2356
+ extend ::Google::Protobuf::MessageExts::ClassMethods
2357
+ end
2358
+
2359
+ # The context for the `StartWorkloadReplay` operation, which contains details
2360
+ # about starting the execution of a captured workload (recorded read and
2361
+ # write SQL queries) on a replay instance (the Cloud SQL
2362
+ # instance where the recorded SQL queries are executed).
2363
+ # @!attribute [rw] replay_instance
2364
+ # @return [::String]
2365
+ # Required. The name of the Cloud SQL instance where the captured workload
2366
+ # (SQL queries) is being executed, excluding the project ID (for example,
2367
+ # `my-replay-instance`). The instance name must start with a lowercase letter
2368
+ # and contain only lowercase letters, numbers, and hyphens. The combined
2369
+ # length of `project-ID:instance-name` must be 98 characters or less.
2370
+ # @!attribute [r] workload_id
2371
+ # @return [::String]
2372
+ # Output only. The ID of the workload to start executing on the replay
2373
+ # instance. Each workload capture generates a unique ID in the format
2374
+ # `workload-<epoch_timestamp>` (for example, `workload-1786046400`). Use this
2375
+ # ID to start executing the recorded SQL queries.
2376
+ class StartWorkloadReplayContext
2377
+ include ::Google::Protobuf::MessageExts
2378
+ extend ::Google::Protobuf::MessageExts::ClassMethods
2379
+ end
2380
+
2381
+ # The context for the `StopWorkloadReplay` operation, which represents an
2382
+ # operation that stops an active workload replay on a target Cloud SQL replay
2383
+ # instance.
2384
+ class StopWorkloadReplayContext
2385
+ include ::Google::Protobuf::MessageExts
2386
+ extend ::Google::Protobuf::MessageExts::ClassMethods
2387
+ end
2388
+
2276
2389
  module SqlFileType
2277
2390
  # Unknown file type.
2278
2391
  SQL_FILE_TYPE_UNSPECIFIED = 0
@@ -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::V1::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
@@ -101,8 +113,21 @@ module Google
101
113
  # Optional. Specifies whether to revoke existing roles that are not present
102
114
  # in the `database_roles` field. If `false` or unset, the database roles
103
115
  # specified in `database_roles` are added to the user's existing roles.
116
+ # @!attribute [rw] server_roles
117
+ # @return [::Array<::String>]
118
+ # Optional. The server roles to grant to the SQL Server login. Existing
119
+ # server roles will not be revoked if revoke_existing_roles is false.
120
+ # body.server_roles will be ignored for update request.
121
+ # @!attribute [rw] revoke_existing_server_roles
122
+ # @return [::Boolean]
123
+ # Optional. Specifies whether to revoke existing roles that are not present
124
+ # in the `server_roles` field. If `false` or unset, the server roles
125
+ # specified in `server_roles` are added to the user's existing server roles.
104
126
  # @!attribute [rw] body
105
127
  # @return [::Google::Cloud::Sql::V1::User]
128
+ # @!attribute [rw] location
129
+ # @return [::String]
130
+ # Optional. Region of the Cloud SQL instance.
106
131
  class SqlUsersUpdateRequest
107
132
  include ::Google::Protobuf::MessageExts
108
133
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -196,6 +221,9 @@ module Google
196
221
  # @!attribute [rw] database_roles
197
222
  # @return [::Array<::String>]
198
223
  # Optional. Role memberships of the user
224
+ # @!attribute [rw] server_roles
225
+ # @return [::Array<::String>]
226
+ # Optional. The server roles for the SQL Server login.
199
227
  class User
200
228
  include ::Google::Protobuf::MessageExts
201
229
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -221,8 +249,8 @@ module Google
221
249
  # Cloud IAM group.
222
250
  CLOUD_IAM_GROUP_SERVICE_ACCOUNT = 5
223
251
 
224
- # Cloud IAM workforce identity user managed via workforce identity
225
- # federation.
252
+ # Cloud IAM workforce identity managed by Workforce Identity
253
+ # Federation.
226
254
  CLOUD_IAM_WORKFORCE_IDENTITY = 6
227
255
 
228
256
  # Microsoft Entra ID user.
@@ -265,10 +293,10 @@ module Google
265
293
  # Represents a Sql Server user on the Cloud SQL instance.
266
294
  # @!attribute [rw] disabled
267
295
  # @return [::Boolean]
268
- # If the user has been disabled
296
+ # Indicates if the user has been disabled.
269
297
  # @!attribute [rw] server_roles
270
298
  # @return [::Array<::String>]
271
- # The server roles for this user
299
+ # Indicates the server roles for this user.
272
300
  class SqlServerUserDetails
273
301
  include ::Google::Protobuf::MessageExts
274
302
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -0,0 +1,170 @@
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 V1
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::V1::StartWorkloadCaptureContext]
34
+ # Optional. Contains details about the start workload capture operation.
35
+ class WorkloadCapturesStartRequest
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::V1::StopWorkloadCaptureContext]
49
+ # Optional. Contains details about the stop workload capture operation.
50
+ class WorkloadCapturesStopRequest
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::V1::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 WorkloadCapturesStartReplayRequest
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::V1::StopWorkloadReplayContext]
86
+ # Optional. Contains details about the stop workload replay operation. If
87
+ # omitted, default values are used.
88
+ class WorkloadCapturesStopReplayRequest
89
+ include ::Google::Protobuf::MessageExts
90
+ extend ::Google::Protobuf::MessageExts::ClassMethods
91
+ end
92
+
93
+ # Instance list captured workloads request.
94
+ # @!attribute [rw] project
95
+ # @return [::String]
96
+ # Required. Project ID of the project that contains the instance.
97
+ # @!attribute [rw] instance
98
+ # @return [::String]
99
+ # Required. Cloud SQL instance ID. This does not include the project ID.
100
+ class SqlWorkloadCapturesListRequest
101
+ include ::Google::Protobuf::MessageExts
102
+ extend ::Google::Protobuf::MessageExts::ClassMethods
103
+ end
104
+
105
+ # Instance list captured workloads response.
106
+ # @!attribute [rw] workload_captures
107
+ # @return [::Array<::Google::Cloud::Sql::V1::WorkloadCapture>]
108
+ # List of captured workloads for the instance.
109
+ # @!attribute [rw] kind
110
+ # @return [::String]
111
+ # This is always `sql#workloadCapturesList`.
112
+ class WorkloadCapturesListResponse
113
+ include ::Google::Protobuf::MessageExts
114
+ extend ::Google::Protobuf::MessageExts::ClassMethods
115
+ end
116
+
117
+ # Captured workload for an instance.
118
+ # @!attribute [r] workload_id
119
+ # @return [::String]
120
+ # Output only. The ID of the captured workload.
121
+ # @!attribute [r] source_instance
122
+ # @return [::String]
123
+ # Output only. The name of the source instance.
124
+ # @!attribute [r] workload_capture_state
125
+ # @return [::Google::Cloud::Sql::V1::WorkloadCapture::State]
126
+ # Output only. The state of the workload capture.
127
+ # @!attribute [r] start_time
128
+ # @return [::Google::Protobuf::Timestamp]
129
+ # Output only. The start time of the workload capture.
130
+ # @!attribute [r] end_time
131
+ # @return [::Google::Protobuf::Timestamp]
132
+ # Output only. The end time of the workload capture.
133
+ # @!attribute [r] replay_instance
134
+ # @return [::String]
135
+ # Output only. The name of the replay instance, if live replay was enabled.
136
+ # @!attribute [r] retention_days
137
+ # @return [::Integer]
138
+ # Output only. The retention period in days for the captured workload.
139
+ # @!attribute [r] backup_id
140
+ # @return [::String]
141
+ # Output only. The base backup ID associated with the workload capture.
142
+ class WorkloadCapture
143
+ include ::Google::Protobuf::MessageExts
144
+ extend ::Google::Protobuf::MessageExts::ClassMethods
145
+
146
+ # State of the workload capture.
147
+ module State
148
+ # Default value. This value is unused.
149
+ STATE_UNSPECIFIED = 0
150
+
151
+ # Workload capture is currently running.
152
+ RUNNING = 1
153
+
154
+ # Workload capture completed successfully. This state is set when the user
155
+ # explicitly stops the capture.
156
+ COMPLETED = 2
157
+
158
+ # Workload capture failed.
159
+ FAILED = 3
160
+
161
+ # Workload capture was terminated automatically. This state is set when
162
+ # Cloud SQL automatically stops the capture due to a conflicting operation
163
+ # or when the maximum duration is reached.
164
+ TERMINATED = 4
165
+ end
166
+ end
167
+ end
168
+ end
169
+ end
170
+ 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-v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.5.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-v1 is a version-specific
54
+ description: Cloud SQL Admin API Note that google-cloud-sql-v1 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,12 +65,21 @@ files:
65
65
  - README.md
66
66
  - lib/google-cloud-sql-v1.rb
67
67
  - lib/google/cloud/sql/v1.rb
68
+ - lib/google/cloud/sql/v1/blue_green_deployments_service.rb
69
+ - lib/google/cloud/sql/v1/blue_green_deployments_service/client.rb
70
+ - lib/google/cloud/sql/v1/blue_green_deployments_service/credentials.rb
71
+ - lib/google/cloud/sql/v1/blue_green_deployments_service/paths.rb
72
+ - lib/google/cloud/sql/v1/blue_green_deployments_service/rest.rb
73
+ - lib/google/cloud/sql/v1/blue_green_deployments_service/rest/client.rb
74
+ - lib/google/cloud/sql/v1/blue_green_deployments_service/rest/service_stub.rb
68
75
  - lib/google/cloud/sql/v1/cloud_sql_available_database_versions_pb.rb
69
76
  - lib/google/cloud/sql/v1/cloud_sql_available_database_versions_services_pb.rb
70
77
  - lib/google/cloud/sql/v1/cloud_sql_backup_runs_pb.rb
71
78
  - lib/google/cloud/sql/v1/cloud_sql_backup_runs_services_pb.rb
72
79
  - lib/google/cloud/sql/v1/cloud_sql_backups_pb.rb
73
80
  - lib/google/cloud/sql/v1/cloud_sql_backups_services_pb.rb
81
+ - lib/google/cloud/sql/v1/cloud_sql_blue_green_deployments_pb.rb
82
+ - lib/google/cloud/sql/v1/cloud_sql_blue_green_deployments_services_pb.rb
74
83
  - lib/google/cloud/sql/v1/cloud_sql_connect_pb.rb
75
84
  - lib/google/cloud/sql/v1/cloud_sql_connect_services_pb.rb
76
85
  - lib/google/cloud/sql/v1/cloud_sql_databases_pb.rb
@@ -98,10 +107,13 @@ files:
98
107
  - lib/google/cloud/sql/v1/cloud_sql_tiers_services_pb.rb
99
108
  - lib/google/cloud/sql/v1/cloud_sql_users_pb.rb
100
109
  - lib/google/cloud/sql/v1/cloud_sql_users_services_pb.rb
110
+ - lib/google/cloud/sql/v1/cloud_sql_workload_captures_pb.rb
111
+ - lib/google/cloud/sql/v1/cloud_sql_workload_captures_services_pb.rb
101
112
  - lib/google/cloud/sql/v1/rest.rb
102
113
  - lib/google/cloud/sql/v1/sql_backup_runs_service.rb
103
114
  - lib/google/cloud/sql/v1/sql_backup_runs_service/client.rb
104
115
  - lib/google/cloud/sql/v1/sql_backup_runs_service/credentials.rb
116
+ - lib/google/cloud/sql/v1/sql_backup_runs_service/paths.rb
105
117
  - lib/google/cloud/sql/v1/sql_backup_runs_service/rest.rb
106
118
  - lib/google/cloud/sql/v1/sql_backup_runs_service/rest/client.rb
107
119
  - lib/google/cloud/sql/v1/sql_backup_runs_service/rest/service_stub.rb
@@ -161,6 +173,12 @@ files:
161
173
  - lib/google/cloud/sql/v1/sql_users_service/rest.rb
162
174
  - lib/google/cloud/sql/v1/sql_users_service/rest/client.rb
163
175
  - lib/google/cloud/sql/v1/sql_users_service/rest/service_stub.rb
176
+ - lib/google/cloud/sql/v1/sql_workload_captures_service.rb
177
+ - lib/google/cloud/sql/v1/sql_workload_captures_service/client.rb
178
+ - lib/google/cloud/sql/v1/sql_workload_captures_service/credentials.rb
179
+ - lib/google/cloud/sql/v1/sql_workload_captures_service/rest.rb
180
+ - lib/google/cloud/sql/v1/sql_workload_captures_service/rest/client.rb
181
+ - lib/google/cloud/sql/v1/sql_workload_captures_service/rest/service_stub.rb
164
182
  - lib/google/cloud/sql/v1/version.rb
165
183
  - proto_docs/README.md
166
184
  - proto_docs/google/api/client.rb
@@ -168,8 +186,10 @@ files:
168
186
  - proto_docs/google/api/field_info.rb
169
187
  - proto_docs/google/api/launch_stage.rb
170
188
  - proto_docs/google/api/resource.rb
189
+ - proto_docs/google/api/routing.rb
171
190
  - proto_docs/google/cloud/sql/v1/cloud_sql_backup_runs.rb
172
191
  - proto_docs/google/cloud/sql/v1/cloud_sql_backups.rb
192
+ - proto_docs/google/cloud/sql/v1/cloud_sql_blue_green_deployments.rb
173
193
  - proto_docs/google/cloud/sql/v1/cloud_sql_connect.rb
174
194
  - proto_docs/google/cloud/sql/v1/cloud_sql_databases.rb
175
195
  - proto_docs/google/cloud/sql/v1/cloud_sql_flags.rb
@@ -179,6 +199,7 @@ files:
179
199
  - proto_docs/google/cloud/sql/v1/cloud_sql_ssl_certs.rb
180
200
  - proto_docs/google/cloud/sql/v1/cloud_sql_tiers.rb
181
201
  - proto_docs/google/cloud/sql/v1/cloud_sql_users.rb
202
+ - proto_docs/google/cloud/sql/v1/cloud_sql_workload_captures.rb
182
203
  - proto_docs/google/protobuf/any.rb
183
204
  - proto_docs/google/protobuf/duration.rb
184
205
  - proto_docs/google/protobuf/empty.rb
@@ -207,5 +228,5 @@ required_rubygems_version: !ruby/object:Gem::Requirement
207
228
  requirements: []
208
229
  rubygems_version: 3.6.9
209
230
  specification_version: 4
210
- summary: Cloud SQL Admin API.
231
+ summary: Cloud SQL Admin API
211
232
  test_files: []