google-cloud-sql-v1 0.4.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.
- checksums.yaml +4 -4
- data/lib/google/cloud/sql/v1/blue_green_deployments_service/client.rb +899 -0
- data/lib/google/cloud/sql/v1/blue_green_deployments_service/credentials.rb +48 -0
- data/lib/google/cloud/sql/v1/blue_green_deployments_service/paths.rb +86 -0
- data/lib/google/cloud/sql/v1/blue_green_deployments_service/rest/client.rb +821 -0
- data/lib/google/cloud/sql/v1/blue_green_deployments_service/rest/service_stub.rb +388 -0
- data/lib/google/cloud/sql/v1/blue_green_deployments_service/rest.rb +52 -0
- data/lib/google/cloud/sql/v1/blue_green_deployments_service.rb +55 -0
- data/lib/google/cloud/sql/v1/cloud_sql_backups_pb.rb +1 -1
- data/lib/google/cloud/sql/v1/cloud_sql_blue_green_deployments_pb.rb +45 -0
- data/lib/google/cloud/sql/v1/cloud_sql_blue_green_deployments_services_pb.rb +54 -0
- data/lib/google/cloud/sql/v1/cloud_sql_instances_pb.rb +5 -1
- data/lib/google/cloud/sql/v1/cloud_sql_resources_pb.rb +5 -1
- data/lib/google/cloud/sql/v1/cloud_sql_workload_captures_pb.rb +35 -0
- data/lib/google/cloud/sql/v1/cloud_sql_workload_captures_services_pb.rb +60 -0
- data/lib/google/cloud/sql/v1/rest.rb +2 -0
- data/lib/google/cloud/sql/v1/sql_backup_runs_service/client.rb +2 -0
- data/lib/google/cloud/sql/v1/sql_backup_runs_service/paths.rb +77 -0
- data/lib/google/cloud/sql/v1/sql_backup_runs_service/rest/client.rb +2 -0
- data/lib/google/cloud/sql/v1/sql_backup_runs_service/rest.rb +1 -0
- data/lib/google/cloud/sql/v1/sql_backup_runs_service.rb +1 -0
- data/lib/google/cloud/sql/v1/sql_backups_service/paths.rb +63 -0
- data/lib/google/cloud/sql/v1/sql_instances_service/paths.rb +63 -0
- data/lib/google/cloud/sql/v1/sql_workload_captures_service/client.rb +906 -0
- data/lib/google/cloud/sql/v1/sql_workload_captures_service/credentials.rb +48 -0
- data/lib/google/cloud/sql/v1/sql_workload_captures_service/rest/client.rb +810 -0
- data/lib/google/cloud/sql/v1/sql_workload_captures_service/rest/service_stub.rb +396 -0
- data/lib/google/cloud/sql/v1/sql_workload_captures_service/rest.rb +51 -0
- data/lib/google/cloud/sql/v1/sql_workload_captures_service.rb +54 -0
- data/lib/google/cloud/sql/v1/version.rb +1 -1
- data/lib/google/cloud/sql/v1.rb +2 -0
- data/proto_docs/google/cloud/sql/v1/cloud_sql_blue_green_deployments.rb +399 -0
- data/proto_docs/google/cloud/sql/v1/cloud_sql_instances.rb +83 -2
- data/proto_docs/google/cloud/sql/v1/cloud_sql_resources.rb +116 -3
- data/proto_docs/google/cloud/sql/v1/cloud_sql_users.rb +4 -4
- data/proto_docs/google/cloud/sql/v1/cloud_sql_workload_captures.rb +170 -0
- metadata +21 -1
|
@@ -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
|
|
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
|
|
@@ -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,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
|
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.
|
|
4
|
+
version: 0.5.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Google LLC
|
|
@@ -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
|
|
@@ -171,6 +189,7 @@ files:
|
|
|
171
189
|
- proto_docs/google/api/routing.rb
|
|
172
190
|
- proto_docs/google/cloud/sql/v1/cloud_sql_backup_runs.rb
|
|
173
191
|
- proto_docs/google/cloud/sql/v1/cloud_sql_backups.rb
|
|
192
|
+
- proto_docs/google/cloud/sql/v1/cloud_sql_blue_green_deployments.rb
|
|
174
193
|
- proto_docs/google/cloud/sql/v1/cloud_sql_connect.rb
|
|
175
194
|
- proto_docs/google/cloud/sql/v1/cloud_sql_databases.rb
|
|
176
195
|
- proto_docs/google/cloud/sql/v1/cloud_sql_flags.rb
|
|
@@ -180,6 +199,7 @@ files:
|
|
|
180
199
|
- proto_docs/google/cloud/sql/v1/cloud_sql_ssl_certs.rb
|
|
181
200
|
- proto_docs/google/cloud/sql/v1/cloud_sql_tiers.rb
|
|
182
201
|
- proto_docs/google/cloud/sql/v1/cloud_sql_users.rb
|
|
202
|
+
- proto_docs/google/cloud/sql/v1/cloud_sql_workload_captures.rb
|
|
183
203
|
- proto_docs/google/protobuf/any.rb
|
|
184
204
|
- proto_docs/google/protobuf/duration.rb
|
|
185
205
|
- proto_docs/google/protobuf/empty.rb
|