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
|
@@ -0,0 +1,399 @@
|
|
|
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
|
+
# A `BlueGreenDeployment` resource represents a Cloud SQL blue-green deployment
|
|
25
|
+
# setup.
|
|
26
|
+
# @!attribute [r] name
|
|
27
|
+
# @return [::String]
|
|
28
|
+
# Output only. Identifier. The full resource name of the deployment.
|
|
29
|
+
# Format:
|
|
30
|
+
# projects/\\{project}/locations/\\{location}/blueGreenDeployments/\\{deployment_id}
|
|
31
|
+
# @!attribute [rw] description
|
|
32
|
+
# @return [::String]
|
|
33
|
+
# Optional. User-provided description for the deployment.
|
|
34
|
+
# The description can be up to 255 characters long.
|
|
35
|
+
# @!attribute [r] create_time
|
|
36
|
+
# @return [::Google::Protobuf::Timestamp]
|
|
37
|
+
# Output only. The time when the deployment was created.
|
|
38
|
+
# Example: `2024-01-01T00:00:00Z`
|
|
39
|
+
# @!attribute [r] state
|
|
40
|
+
# @return [::Google::Cloud::Sql::V1::BlueGreenDeployment::State]
|
|
41
|
+
# Output only. The current state of the blue-green deployment.
|
|
42
|
+
# @!attribute [rw] source_instance
|
|
43
|
+
# @return [::String]
|
|
44
|
+
# Required. Immutable. Required on create, and immutable. The full resource
|
|
45
|
+
# name of the source instance (the "blue" instance). Format:
|
|
46
|
+
# projects/\\{project}/instances/\\{instance}
|
|
47
|
+
# @!attribute [r] switchover_target_instance
|
|
48
|
+
# @return [::String]
|
|
49
|
+
# Output only. The full resource name of the primary target instance (the
|
|
50
|
+
# "green" instance) that will be promoted during switchover. This field is
|
|
51
|
+
# always populated once the deployment is created. Format:
|
|
52
|
+
# projects/\\{project}/instances/\\{instance}
|
|
53
|
+
# @!attribute [r] error_detail
|
|
54
|
+
# @return [::String]
|
|
55
|
+
# Output only. Provides details on why switchover is not possible.
|
|
56
|
+
# This field is empty unless a switchover attempt failed or the state is
|
|
57
|
+
# `SWITCHOVER_NOT_READY`.
|
|
58
|
+
# Example: "The target database version does not match the source instance
|
|
59
|
+
# database version."
|
|
60
|
+
# @!attribute [r] deployment_mappings
|
|
61
|
+
# @return [::Array<::Google::Cloud::Sql::V1::BlueGreenDeployment::SourceTargetPairedNode>]
|
|
62
|
+
# Output only. A list representing the pairs of source and target instances
|
|
63
|
+
# in the deployment.
|
|
64
|
+
# @!attribute [r] deployment_tasks
|
|
65
|
+
# @return [::Google::Cloud::Sql::V1::BlueGreenDeployment::DeploymentTasks]
|
|
66
|
+
# Output only. Combined list of tasks for all paired nodes.
|
|
67
|
+
# @!attribute [rw] requested_config
|
|
68
|
+
# @return [::Google::Cloud::Sql::V1::BlueGreenDeployment::RequestedConfig]
|
|
69
|
+
# Optional. Immutable. Optional on create, and immutable. The configuration
|
|
70
|
+
# intended for the target instance(s) when the deployment was created.
|
|
71
|
+
class BlueGreenDeployment
|
|
72
|
+
include ::Google::Protobuf::MessageExts
|
|
73
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
74
|
+
|
|
75
|
+
# Configuration specified by the user at creation time for the target (green)
|
|
76
|
+
# instance.
|
|
77
|
+
# @!attribute [rw] database_version
|
|
78
|
+
# @return [::String]
|
|
79
|
+
# Optional. The target database major version for the upgrade. For example,
|
|
80
|
+
# `MYSQL_8_0` or `POSTGRES_15`.
|
|
81
|
+
class RequestedConfig
|
|
82
|
+
include ::Google::Protobuf::MessageExts
|
|
83
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
84
|
+
end
|
|
85
|
+
|
|
86
|
+
# Combined list of tasks for all paired nodes in the deployment.
|
|
87
|
+
# @!attribute [r] task
|
|
88
|
+
# @return [::Array<::Google::Cloud::Sql::V1::BlueGreenDeployment::SourceTargetPairedNode::DeploymentTask>]
|
|
89
|
+
# Output only. Tasks performed or being performed on the paired nodes
|
|
90
|
+
# of the deployment at a consolidated level.
|
|
91
|
+
class DeploymentTasks
|
|
92
|
+
include ::Google::Protobuf::MessageExts
|
|
93
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
94
|
+
end
|
|
95
|
+
|
|
96
|
+
# Represents a pairing of a source instance node and a target instance node.
|
|
97
|
+
# @!attribute [r] source
|
|
98
|
+
# @return [::Google::Cloud::Sql::V1::BlueGreenDeployment::SourceTargetPairedNode::NodeInfo]
|
|
99
|
+
# Output only. Specifies the resource name of the source instance in this
|
|
100
|
+
# pair.
|
|
101
|
+
# @!attribute [r] target
|
|
102
|
+
# @return [::Google::Cloud::Sql::V1::BlueGreenDeployment::SourceTargetPairedNode::NodeInfo]
|
|
103
|
+
# Output only. Specifies details of the corresponding target instance in
|
|
104
|
+
# this pair.
|
|
105
|
+
# @!attribute [r] state
|
|
106
|
+
# @return [::Google::Cloud::Sql::V1::BlueGreenDeployment::SourceTargetPairedNode::State]
|
|
107
|
+
# Output only. Specifies the current state of this specific source-target
|
|
108
|
+
# pair.
|
|
109
|
+
# @!attribute [r] diffs
|
|
110
|
+
# @return [::Array<::Google::Cloud::Sql::V1::BlueGreenDeployment::SourceTargetPairedNode::ConfigDiff>]
|
|
111
|
+
# Output only. Describes the list of differences for the
|
|
112
|
+
# `SourceTargetPairedNode`.
|
|
113
|
+
class SourceTargetPairedNode
|
|
114
|
+
include ::Google::Protobuf::MessageExts
|
|
115
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
116
|
+
|
|
117
|
+
# Represents a specific configuration difference between blue and green
|
|
118
|
+
# instances.
|
|
119
|
+
# @!attribute [r] field
|
|
120
|
+
# @return [::String]
|
|
121
|
+
# Output only. The name of the field that differs in the blue and green
|
|
122
|
+
# instances, fully-qualified. Example: `settings.tier`
|
|
123
|
+
# @!attribute [r] source_value
|
|
124
|
+
# @return [::String]
|
|
125
|
+
# Output only. The value on the source instance.
|
|
126
|
+
# @!attribute [r] target_value
|
|
127
|
+
# @return [::String]
|
|
128
|
+
# Output only. The value on the target instance.
|
|
129
|
+
class ConfigDiff
|
|
130
|
+
include ::Google::Protobuf::MessageExts
|
|
131
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
132
|
+
end
|
|
133
|
+
|
|
134
|
+
# Details about an instance within the deployment.
|
|
135
|
+
# @!attribute [r] instance
|
|
136
|
+
# @return [::String]
|
|
137
|
+
# Output only. The full resource name of the instance.
|
|
138
|
+
# Format: projects/\\{project}/instances/\\{instance}
|
|
139
|
+
# @!attribute [r] connection
|
|
140
|
+
# @return [::String]
|
|
141
|
+
# Output only. The instance connection name.
|
|
142
|
+
# @!attribute [r] dns
|
|
143
|
+
# @return [::String]
|
|
144
|
+
# Output only. The unique DNS name for this instance.
|
|
145
|
+
# @!attribute [r] ip_mappings
|
|
146
|
+
# @return [::Array<::Google::Cloud::Sql::V1::IpMapping>]
|
|
147
|
+
# Output only. The list of IP addresses for this instance.
|
|
148
|
+
class NodeInfo
|
|
149
|
+
include ::Google::Protobuf::MessageExts
|
|
150
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
151
|
+
end
|
|
152
|
+
|
|
153
|
+
# Represents a task executed as part of the deployment on a target
|
|
154
|
+
# instance.
|
|
155
|
+
# @!attribute [r] type
|
|
156
|
+
# @return [::Google::Cloud::Sql::V1::BlueGreenDeployment::SourceTargetPairedNode::DeploymentTask::Type]
|
|
157
|
+
# Output only. The type of the task.
|
|
158
|
+
# @!attribute [r] state
|
|
159
|
+
# @return [::Google::Cloud::Sql::V1::BlueGreenDeployment::SourceTargetPairedNode::DeploymentTask::State]
|
|
160
|
+
# Output only. The current state of the task.
|
|
161
|
+
# @!attribute [r] start_time
|
|
162
|
+
# @return [::Google::Protobuf::Timestamp]
|
|
163
|
+
# Output only. Task start time.
|
|
164
|
+
# @!attribute [r] end_time
|
|
165
|
+
# @return [::Google::Protobuf::Timestamp]
|
|
166
|
+
# Output only. Task end time (if completed).
|
|
167
|
+
# @!attribute [r] error_message
|
|
168
|
+
# @return [::String]
|
|
169
|
+
# Output only. Optional error details if the task state is `FAILED`.
|
|
170
|
+
class DeploymentTask
|
|
171
|
+
include ::Google::Protobuf::MessageExts
|
|
172
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
173
|
+
|
|
174
|
+
# The type of the task.
|
|
175
|
+
# This enum type `Type` is prone to change, and new values may be added
|
|
176
|
+
# in the future.
|
|
177
|
+
module Type
|
|
178
|
+
# The default value. This value is used if the type is omitted.
|
|
179
|
+
TYPE_UNSPECIFIED = 0
|
|
180
|
+
|
|
181
|
+
# Provisions the green environment, which includes creating the target
|
|
182
|
+
# instance.
|
|
183
|
+
PROVISION = 1
|
|
184
|
+
|
|
185
|
+
# Upgrades the green environment, for example, performing a major
|
|
186
|
+
# version upgrade on the target instance.
|
|
187
|
+
UPGRADE = 2
|
|
188
|
+
|
|
189
|
+
# Promotes the target instance and then demotes the source instance for
|
|
190
|
+
# this pair.
|
|
191
|
+
SWITCHOVER = 3
|
|
192
|
+
|
|
193
|
+
# Deletes the blue-green deployment, including underlying resources.
|
|
194
|
+
DELETE = 4
|
|
195
|
+
|
|
196
|
+
# Post-switchover operations, including cleaning up resources of the
|
|
197
|
+
# old instance, taking final backups, and updating metadata.
|
|
198
|
+
POST_SWITCHOVER_OPERATIONS = 5
|
|
199
|
+
end
|
|
200
|
+
|
|
201
|
+
# The state of the task.
|
|
202
|
+
# This enum is not frozen, and new values may be added in the future.
|
|
203
|
+
module State
|
|
204
|
+
# The state of the task is unknown.
|
|
205
|
+
STATE_UNSPECIFIED = 0
|
|
206
|
+
|
|
207
|
+
# The task is pending.
|
|
208
|
+
PENDING = 1
|
|
209
|
+
|
|
210
|
+
# The task is running.
|
|
211
|
+
RUNNING = 2
|
|
212
|
+
|
|
213
|
+
# The task has succeeded.
|
|
214
|
+
SUCCEEDED = 3
|
|
215
|
+
|
|
216
|
+
# The task has failed.
|
|
217
|
+
FAILED = 4
|
|
218
|
+
end
|
|
219
|
+
end
|
|
220
|
+
|
|
221
|
+
# The state of a pair of source and target instances in deployment (paired
|
|
222
|
+
# node).
|
|
223
|
+
module State
|
|
224
|
+
# The state of the paired node is unknown.
|
|
225
|
+
STATE_UNSPECIFIED = 0
|
|
226
|
+
|
|
227
|
+
# The paired node is being provisioned.
|
|
228
|
+
PROVISIONING = 1
|
|
229
|
+
|
|
230
|
+
# The paired node is provisioned.
|
|
231
|
+
PROVISIONED = 2
|
|
232
|
+
|
|
233
|
+
# The paired node is upgrading.
|
|
234
|
+
UPGRADING = 3
|
|
235
|
+
|
|
236
|
+
# The paired node is upgraded.
|
|
237
|
+
UPGRADED = 4
|
|
238
|
+
|
|
239
|
+
# Upgrade failed on the paired node.
|
|
240
|
+
UPGRADE_FAILED = 5
|
|
241
|
+
|
|
242
|
+
# Switchover is in progress.
|
|
243
|
+
SWITCHOVER_IN_PROGRESS = 6
|
|
244
|
+
|
|
245
|
+
# Switchover failed on the paired node.
|
|
246
|
+
SWITCHOVER_FAILED = 7
|
|
247
|
+
|
|
248
|
+
# Switchover completed successfully.
|
|
249
|
+
SWITCHOVER_SUCCEEDED = 8
|
|
250
|
+
|
|
251
|
+
# The paired node is being deleted.
|
|
252
|
+
DELETING = 11
|
|
253
|
+
end
|
|
254
|
+
end
|
|
255
|
+
|
|
256
|
+
# The state of the blue-green deployment.
|
|
257
|
+
module State
|
|
258
|
+
# The default value. This value is used if the state is omitted or unknown.
|
|
259
|
+
STATE_UNSPECIFIED = 0
|
|
260
|
+
|
|
261
|
+
# The deployment is being provisioned.
|
|
262
|
+
PROVISIONING = 1
|
|
263
|
+
|
|
264
|
+
# The deployment is ready for switchover.
|
|
265
|
+
SWITCHOVER_READY = 2
|
|
266
|
+
|
|
267
|
+
# The deployment is not ready for switchover.
|
|
268
|
+
SWITCHOVER_NOT_READY = 3
|
|
269
|
+
|
|
270
|
+
# The deployment is in the process of switching over.
|
|
271
|
+
SWITCHOVER_IN_PROGRESS = 4
|
|
272
|
+
|
|
273
|
+
# The deployment has completed switchover.
|
|
274
|
+
SWITCHOVER_COMPLETED = 5
|
|
275
|
+
|
|
276
|
+
# The deployment is being deleted.
|
|
277
|
+
DELETING = 6
|
|
278
|
+
end
|
|
279
|
+
end
|
|
280
|
+
|
|
281
|
+
# The request message for creating a `BlueGreenDeployment` resource.
|
|
282
|
+
# @!attribute [rw] parent
|
|
283
|
+
# @return [::String]
|
|
284
|
+
# Required. The parent resource where this blue-green deployment will be
|
|
285
|
+
# created. Format: projects/\\{project}/locations/\\{location}
|
|
286
|
+
# @!attribute [rw] blue_green_deployment_id
|
|
287
|
+
# @return [::String]
|
|
288
|
+
# Required. The ID to use for the blue-green deployment, which will become
|
|
289
|
+
# the final component of the deployment's resource name. The ID must be
|
|
290
|
+
# unique within the given project and location and between 2-63 characters.
|
|
291
|
+
# @!attribute [rw] blue_green_deployment
|
|
292
|
+
# @return [::Google::Cloud::Sql::V1::BlueGreenDeployment]
|
|
293
|
+
# Required. The `BlueGreenDeployment` resource to create.
|
|
294
|
+
class CreateBlueGreenDeploymentRequest
|
|
295
|
+
include ::Google::Protobuf::MessageExts
|
|
296
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
297
|
+
end
|
|
298
|
+
|
|
299
|
+
# The request message for getting a BlueGreenDeployment.
|
|
300
|
+
# @!attribute [rw] name
|
|
301
|
+
# @return [::String]
|
|
302
|
+
# Required. The name of the blue-green deployment to retrieve.
|
|
303
|
+
# Format:
|
|
304
|
+
# projects/\\{project}/locations/\\{location}/blueGreenDeployments/\\{blue_green_deployment}
|
|
305
|
+
# @!attribute [rw] view
|
|
306
|
+
# @return [::Google::Cloud::Sql::V1::GetBlueGreenDeploymentRequest::BlueGreenDeploymentView]
|
|
307
|
+
# Optional. Specifies whether to return the basic or detailed view of the
|
|
308
|
+
# resource in the response.
|
|
309
|
+
class GetBlueGreenDeploymentRequest
|
|
310
|
+
include ::Google::Protobuf::MessageExts
|
|
311
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
312
|
+
|
|
313
|
+
# The view of a `BlueGreenDeployment` resource.
|
|
314
|
+
module BlueGreenDeploymentView
|
|
315
|
+
# Blue-green deployment view enumeration. This allows the caller to specify
|
|
316
|
+
# what view they query. If unspecified
|
|
317
|
+
# (BLUE_GREEN_DEPLOYMENT_VIEW_UNSPECIFIED), the behavior is the same as
|
|
318
|
+
# BASIC.
|
|
319
|
+
BLUE_GREEN_DEPLOYMENT_VIEW_UNSPECIFIED = 0
|
|
320
|
+
|
|
321
|
+
# Includes basic metadata about the blue-green deployment.
|
|
322
|
+
# `BASIC` is the default view.
|
|
323
|
+
BASIC = 1
|
|
324
|
+
|
|
325
|
+
# Includes basic metadata and configuration differences between source and
|
|
326
|
+
# target instances (`database_version`, `tier`, `edition`,
|
|
327
|
+
# `availability_type`, `data_disk_size_gb`, and `data_disk_type`).
|
|
328
|
+
DETAILED = 2
|
|
329
|
+
end
|
|
330
|
+
end
|
|
331
|
+
|
|
332
|
+
# Request message for switching over a `BlueGreenDeployment` resource.
|
|
333
|
+
# @!attribute [rw] name
|
|
334
|
+
# @return [::String]
|
|
335
|
+
# Required. The name of the blue-green deployment to switch over.
|
|
336
|
+
# Format:
|
|
337
|
+
# projects/\\{project}/locations/\\{location}/blueGreenDeployments/\\{blue_green_deployment}
|
|
338
|
+
class SwitchoverBlueGreenDeploymentRequest
|
|
339
|
+
include ::Google::Protobuf::MessageExts
|
|
340
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
341
|
+
end
|
|
342
|
+
|
|
343
|
+
# The request message for listing blue-green deployment resources.
|
|
344
|
+
# @!attribute [rw] parent
|
|
345
|
+
# @return [::String]
|
|
346
|
+
# Required. The parent resource whose blue-green deployments are to be
|
|
347
|
+
# listed. Format: projects/\\{project}/locations/\\{location}
|
|
348
|
+
# @!attribute [rw] page_size
|
|
349
|
+
# @return [::Integer]
|
|
350
|
+
# Optional. The maximum number of deployments to return. The service may
|
|
351
|
+
# return fewer deployments than this value. If unspecified, at most 500
|
|
352
|
+
# deployments are returned. The maximum value is 1000; values above 1000
|
|
353
|
+
# are treated as 1000.
|
|
354
|
+
# @!attribute [rw] page_token
|
|
355
|
+
# @return [::String]
|
|
356
|
+
# Optional. A page token, received from a previous `ListBlueGreenDeployments`
|
|
357
|
+
# call. Provide this to retrieve the subsequent page.
|
|
358
|
+
# @!attribute [rw] filter
|
|
359
|
+
# @return [::String]
|
|
360
|
+
# Optional. A filter expression that filters the results.
|
|
361
|
+
# @!attribute [rw] order_by
|
|
362
|
+
# @return [::String]
|
|
363
|
+
# Optional. A comma-separated list of fields to order the results by.
|
|
364
|
+
class ListBlueGreenDeploymentsRequest
|
|
365
|
+
include ::Google::Protobuf::MessageExts
|
|
366
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
367
|
+
end
|
|
368
|
+
|
|
369
|
+
# The response message for listing blue-green deployment resources.
|
|
370
|
+
# @!attribute [rw] blue_green_deployments
|
|
371
|
+
# @return [::Array<::Google::Cloud::Sql::V1::BlueGreenDeployment>]
|
|
372
|
+
# The list of blue-green deployment resources.
|
|
373
|
+
# @!attribute [rw] next_page_token
|
|
374
|
+
# @return [::String]
|
|
375
|
+
# A token to retrieve the next page of results, or empty if there are no
|
|
376
|
+
# more results.
|
|
377
|
+
class ListBlueGreenDeploymentsResponse
|
|
378
|
+
include ::Google::Protobuf::MessageExts
|
|
379
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
380
|
+
end
|
|
381
|
+
|
|
382
|
+
# Request message for deleting a BlueGreenDeployment.
|
|
383
|
+
# @!attribute [rw] name
|
|
384
|
+
# @return [::String]
|
|
385
|
+
# Required. The name of the blue-green deployment to delete.
|
|
386
|
+
# Format:
|
|
387
|
+
# projects/\\{project}/locations/\\{location}/blueGreenDeployments/\\{blue_green_deployment}
|
|
388
|
+
# @!attribute [rw] delete_old_source
|
|
389
|
+
# @return [::Boolean]
|
|
390
|
+
# Optional. If set to true, and the switchover is complete, this deletes the
|
|
391
|
+
# old source instance along with the deployment.
|
|
392
|
+
class DeleteBlueGreenDeploymentRequest
|
|
393
|
+
include ::Google::Protobuf::MessageExts
|
|
394
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
395
|
+
end
|
|
396
|
+
end
|
|
397
|
+
end
|
|
398
|
+
end
|
|
399
|
+
end
|
|
@@ -978,6 +978,11 @@ module Google
|
|
|
978
978
|
# Optional. This field has the same purpose as restore_instance_settings,
|
|
979
979
|
# changes any instance settings stored in the backup you are restoring from.
|
|
980
980
|
# With the difference that these fields are cleared in the settings.
|
|
981
|
+
# @!attribute [rw] ignore_maintenance_version
|
|
982
|
+
# @return [::Boolean]
|
|
983
|
+
# Optional. If true, the restore operation proceeds even if the target
|
|
984
|
+
# instance's maintenance version is older than the source instance's
|
|
985
|
+
# maintenance version.
|
|
981
986
|
class InstancesRestoreBackupRequest
|
|
982
987
|
include ::Google::Protobuf::MessageExts
|
|
983
988
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
@@ -1439,6 +1444,10 @@ module Google
|
|
|
1439
1444
|
# Input only. Determines whether an in-place major version upgrade of
|
|
1440
1445
|
# replicas happens when an in-place major version upgrade of a primary
|
|
1441
1446
|
# instance is initiated.
|
|
1447
|
+
# @!attribute [rw] skip_precheck
|
|
1448
|
+
# @return [::Google::Protobuf::BoolValue]
|
|
1449
|
+
# Optional. Input only. Determines whether the precheck step is skipped
|
|
1450
|
+
# during a major version upgrade.
|
|
1442
1451
|
# @!attribute [rw] tags
|
|
1443
1452
|
# @return [::Google::Protobuf::Map{::String => ::String}]
|
|
1444
1453
|
# Optional. Input only. Immutable. Tag keys and tag values that are bound to
|
|
@@ -1463,6 +1472,10 @@ module Google
|
|
|
1463
1472
|
# @!attribute [r] dns_names
|
|
1464
1473
|
# @return [::Array<::Google::Cloud::Sql::V1::DnsNameMapping>]
|
|
1465
1474
|
# Output only. The list of DNS names used by this instance.
|
|
1475
|
+
# @!attribute [r] deployment_info
|
|
1476
|
+
# @return [::Google::Cloud::Sql::V1::BlueGreenDeploymentInfo]
|
|
1477
|
+
# Output only. Deployment info for the instance. This is set if the instance
|
|
1478
|
+
# is currently part of any blue-green setup.
|
|
1466
1479
|
# @!attribute [rw] database_center_integration_enabled
|
|
1467
1480
|
# @return [::Google::Protobuf::BoolValue]
|
|
1468
1481
|
# Optional. If true, instance metadata is sent to the Database Center. If
|
|
@@ -1643,6 +1656,62 @@ module Google
|
|
|
1643
1656
|
end
|
|
1644
1657
|
end
|
|
1645
1658
|
|
|
1659
|
+
# Blue-green deployment metadata for a database instance. In a blue-green
|
|
1660
|
+
# deployment, we maintain two environments, one of which is live.
|
|
1661
|
+
# This message contains details about the blue-green deployment.
|
|
1662
|
+
# @!attribute [r] deployment_id
|
|
1663
|
+
# @return [::String]
|
|
1664
|
+
# Output only. The resource ID of the blue-green deployment.
|
|
1665
|
+
# @!attribute [r] source
|
|
1666
|
+
# @return [::Google::Cloud::Sql::V1::BlueGreenDeploymentInfo::SourceRole]
|
|
1667
|
+
# Output only. The source instance for the Blue-Green deployment.
|
|
1668
|
+
#
|
|
1669
|
+
# 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.
|
|
1670
|
+
# @!attribute [r] target
|
|
1671
|
+
# @return [::Google::Cloud::Sql::V1::BlueGreenDeploymentInfo::TargetRole]
|
|
1672
|
+
# Output only. The target instance for the Blue-Green deployment.
|
|
1673
|
+
#
|
|
1674
|
+
# 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.
|
|
1675
|
+
# @!attribute [r] state
|
|
1676
|
+
# @return [::Google::Cloud::Sql::V1::BlueGreenDeploymentInfo::State]
|
|
1677
|
+
# Output only. The current state of blue-green-deployment for UI tags
|
|
1678
|
+
class BlueGreenDeploymentInfo
|
|
1679
|
+
include ::Google::Protobuf::MessageExts
|
|
1680
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
1681
|
+
|
|
1682
|
+
# The source instance for the Blue-Green deployment.
|
|
1683
|
+
# @!attribute [r] target_id
|
|
1684
|
+
# @return [::Google::Cloud::Sql::V1::InstanceReference]
|
|
1685
|
+
# Output only. The target instance paired with this source instance in a
|
|
1686
|
+
# blue-green deployment.
|
|
1687
|
+
class SourceRole
|
|
1688
|
+
include ::Google::Protobuf::MessageExts
|
|
1689
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
1690
|
+
end
|
|
1691
|
+
|
|
1692
|
+
# The target instance for the Blue-Green deployment.
|
|
1693
|
+
# @!attribute [r] source_id
|
|
1694
|
+
# @return [::Google::Cloud::Sql::V1::InstanceReference]
|
|
1695
|
+
# Output only. The source instance paired with this target instance in a
|
|
1696
|
+
# blue-green deployment.
|
|
1697
|
+
class TargetRole
|
|
1698
|
+
include ::Google::Protobuf::MessageExts
|
|
1699
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
1700
|
+
end
|
|
1701
|
+
|
|
1702
|
+
# The state of blue-green-deployment for UI tags
|
|
1703
|
+
module State
|
|
1704
|
+
# The state of the deployment is unknown.
|
|
1705
|
+
STATE_UNSPECIFIED = 0
|
|
1706
|
+
|
|
1707
|
+
# The deployment is pre-switchover.
|
|
1708
|
+
PRE_SWITCHOVER = 1
|
|
1709
|
+
|
|
1710
|
+
# The deployment is post-switchover.
|
|
1711
|
+
POST_SWITCHOVER = 2
|
|
1712
|
+
end
|
|
1713
|
+
end
|
|
1714
|
+
|
|
1646
1715
|
# Gemini instance configuration.
|
|
1647
1716
|
# @!attribute [r] entitled
|
|
1648
1717
|
# @return [::Boolean]
|
|
@@ -2102,6 +2171,15 @@ module Google
|
|
|
2102
2171
|
# The replication user is missing specific privileges to setup DDL
|
|
2103
2172
|
# replication. (e.g. CREATE EVENT TRIGGER, CREATE SCHEMA) for PostgreSQL.
|
|
2104
2173
|
PG_DDL_REPLICATION_INSUFFICIENT_PRIVILEGE = 58
|
|
2174
|
+
|
|
2175
|
+
# Read replicas of the Writable Destination instance will be recreated
|
|
2176
|
+
# after external synchronization is complete, causing downtime on read
|
|
2177
|
+
# replicas.
|
|
2178
|
+
WRITABLE_DESTINATION_REPLICA_RECREATION_DOWNTIME = 59
|
|
2179
|
+
|
|
2180
|
+
# A warning that disk storage auto increase is disabled on the destination
|
|
2181
|
+
# instance for a Writable Destination migration.
|
|
2182
|
+
WRITABLE_DESTINATION_STORAGE_AUTO_INCREASE_DISABLED = 60
|
|
2105
2183
|
end
|
|
2106
2184
|
end
|
|
2107
2185
|
|
|
@@ -2205,7 +2283,6 @@ module Google
|
|
|
2205
2283
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
2206
2284
|
end
|
|
2207
2285
|
|
|
2208
|
-
# Execute SQL statements request.
|
|
2209
2286
|
# @!attribute [rw] instance
|
|
2210
2287
|
# @return [::String]
|
|
2211
2288
|
# Required. Database instance ID. This does not include the project ID.
|
|
@@ -2236,6 +2313,7 @@ module Google
|
|
|
2236
2313
|
# @!attribute [rw] database
|
|
2237
2314
|
# @return [::String]
|
|
2238
2315
|
# Optional. Name of the database on which the statement will be executed.
|
|
2316
|
+
# For Postgres and SQL Server it's required, for MySQL it's optional.
|
|
2239
2317
|
# @!attribute [rw] password_secret_version
|
|
2240
2318
|
# @return [::String]
|
|
2241
2319
|
# Optional. The resource name of the Secret Manager secret holding the
|
|
@@ -2289,7 +2367,6 @@ module Google
|
|
|
2289
2367
|
end
|
|
2290
2368
|
end
|
|
2291
2369
|
|
|
2292
|
-
# Execute SQL statements response.
|
|
2293
2370
|
# @!attribute [rw] messages
|
|
2294
2371
|
# @return [::Array<::Google::Cloud::Sql::V1::SqlInstancesExecuteSqlResponse::Message>]
|
|
2295
2372
|
# A list of notices and warnings generated during query execution.
|
|
@@ -2499,6 +2576,10 @@ module Google
|
|
|
2499
2576
|
|
|
2500
2577
|
# A Cloud SQL read pool.
|
|
2501
2578
|
READ_POOL_INSTANCE = 5
|
|
2579
|
+
|
|
2580
|
+
# A Cloud SQL instance acting as a Blue-Green deployment target primary.
|
|
2581
|
+
# (MySQL only)
|
|
2582
|
+
GREEN_INSTANCE = 7
|
|
2502
2583
|
end
|
|
2503
2584
|
|
|
2504
2585
|
# The suspension reason of the database instance if the state is SUSPENDED.
|