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
@@ -0,0 +1,899 @@
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
+ require "google/cloud/errors"
20
+ require "google/cloud/sql/v1/cloud_sql_blue_green_deployments_pb"
21
+ require "google/cloud/location"
22
+
23
+ module Google
24
+ module Cloud
25
+ module Sql
26
+ module V1
27
+ module BlueGreenDeploymentsService
28
+ ##
29
+ # Client for the BlueGreenDeploymentsService service.
30
+ #
31
+ # Service for managing blue-green deployments.
32
+ #
33
+ class Client
34
+ # @private
35
+ API_VERSION = ""
36
+
37
+ # @private
38
+ DEFAULT_ENDPOINT_TEMPLATE = "sqladmin.$UNIVERSE_DOMAIN$"
39
+
40
+ include Paths
41
+
42
+ # @private
43
+ attr_reader :blue_green_deployments_service_stub
44
+
45
+ ##
46
+ # Configure the BlueGreenDeploymentsService Client class.
47
+ #
48
+ # See {::Google::Cloud::Sql::V1::BlueGreenDeploymentsService::Client::Configuration}
49
+ # for a description of the configuration fields.
50
+ #
51
+ # @example
52
+ #
53
+ # # Modify the configuration for all BlueGreenDeploymentsService clients
54
+ # ::Google::Cloud::Sql::V1::BlueGreenDeploymentsService::Client.configure do |config|
55
+ # config.timeout = 10.0
56
+ # end
57
+ #
58
+ # @yield [config] Configure the Client client.
59
+ # @yieldparam config [Client::Configuration]
60
+ #
61
+ # @return [Client::Configuration]
62
+ #
63
+ def self.configure
64
+ @configure ||= begin
65
+ namespace = ["Google", "Cloud", "Sql", "V1"]
66
+ parent_config = while namespace.any?
67
+ parent_name = namespace.join "::"
68
+ parent_const = const_get parent_name
69
+ break parent_const.configure if parent_const.respond_to? :configure
70
+ namespace.pop
71
+ end
72
+ default_config = Client::Configuration.new parent_config
73
+
74
+ default_config
75
+ end
76
+ yield @configure if block_given?
77
+ @configure
78
+ end
79
+
80
+ ##
81
+ # Configure the BlueGreenDeploymentsService Client instance.
82
+ #
83
+ # The configuration is set to the derived mode, meaning that values can be changed,
84
+ # but structural changes (adding new fields, etc.) are not allowed. Structural changes
85
+ # should be made on {Client.configure}.
86
+ #
87
+ # See {::Google::Cloud::Sql::V1::BlueGreenDeploymentsService::Client::Configuration}
88
+ # for a description of the configuration fields.
89
+ #
90
+ # @yield [config] Configure the Client client.
91
+ # @yieldparam config [Client::Configuration]
92
+ #
93
+ # @return [Client::Configuration]
94
+ #
95
+ def configure
96
+ yield @config if block_given?
97
+ @config
98
+ end
99
+
100
+ ##
101
+ # The effective universe domain
102
+ #
103
+ # @return [String]
104
+ #
105
+ def universe_domain
106
+ @blue_green_deployments_service_stub.universe_domain
107
+ end
108
+
109
+ ##
110
+ # Create a new BlueGreenDeploymentsService client object.
111
+ #
112
+ # @example
113
+ #
114
+ # # Create a client using the default configuration
115
+ # client = ::Google::Cloud::Sql::V1::BlueGreenDeploymentsService::Client.new
116
+ #
117
+ # # Create a client using a custom configuration
118
+ # client = ::Google::Cloud::Sql::V1::BlueGreenDeploymentsService::Client.new do |config|
119
+ # config.timeout = 10.0
120
+ # end
121
+ #
122
+ # @yield [config] Configure the BlueGreenDeploymentsService client.
123
+ # @yieldparam config [Client::Configuration]
124
+ #
125
+ def initialize
126
+ # These require statements are intentionally placed here to initialize
127
+ # the gRPC module only when it's required.
128
+ # See https://github.com/googleapis/toolkit/issues/446
129
+ require "gapic/grpc"
130
+ require "google/cloud/sql/v1/cloud_sql_blue_green_deployments_services_pb"
131
+
132
+ # Create the configuration object
133
+ @config = Configuration.new Client.configure
134
+
135
+ # Yield the configuration if needed
136
+ yield @config if block_given?
137
+
138
+ # Create credentials
139
+ credentials = @config.credentials
140
+ # Use self-signed JWT if the endpoint is unchanged from default,
141
+ # but only if the default endpoint does not have a region prefix.
142
+ enable_self_signed_jwt = @config.endpoint.nil? ||
143
+ (@config.endpoint == Configuration::DEFAULT_ENDPOINT &&
144
+ !@config.endpoint.split(".").first.include?("-"))
145
+ credentials ||= Credentials.default scope: @config.scope,
146
+ enable_self_signed_jwt: enable_self_signed_jwt
147
+ if credentials.is_a?(::String) || credentials.is_a?(::Hash)
148
+ credentials = Credentials.new credentials, scope: @config.scope
149
+ end
150
+ @quota_project_id = @config.quota_project
151
+ @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
152
+
153
+ @blue_green_deployments_service_stub = ::Gapic::ServiceStub.new(
154
+ ::Google::Cloud::Sql::V1::BlueGreenDeploymentsService::Stub,
155
+ credentials: credentials,
156
+ endpoint: @config.endpoint,
157
+ endpoint_template: DEFAULT_ENDPOINT_TEMPLATE,
158
+ universe_domain: @config.universe_domain,
159
+ channel_args: @config.channel_args,
160
+ interceptors: @config.interceptors,
161
+ channel_pool_config: @config.channel_pool,
162
+ logger: @config.logger
163
+ )
164
+
165
+ @blue_green_deployments_service_stub.stub_logger&.info do |entry|
166
+ entry.set_system_name
167
+ entry.set_service
168
+ entry.message = "Created client for #{entry.service}"
169
+ entry.set_credentials_fields credentials
170
+ entry.set "customEndpoint", @config.endpoint if @config.endpoint
171
+ entry.set "defaultTimeout", @config.timeout if @config.timeout
172
+ entry.set "quotaProject", @quota_project_id if @quota_project_id
173
+ end
174
+
175
+ @location_client = Google::Cloud::Location::Locations::Client.new do |config|
176
+ config.credentials = credentials
177
+ config.quota_project = @quota_project_id
178
+ config.endpoint = @blue_green_deployments_service_stub.endpoint
179
+ config.universe_domain = @blue_green_deployments_service_stub.universe_domain
180
+ config.logger = @blue_green_deployments_service_stub.logger if config.respond_to? :logger=
181
+ end
182
+ end
183
+
184
+ ##
185
+ # Get the associated client for mix-in of the Locations.
186
+ #
187
+ # @return [Google::Cloud::Location::Locations::Client]
188
+ #
189
+ attr_reader :location_client
190
+
191
+ ##
192
+ # The logger used for request/response debug logging.
193
+ #
194
+ # @return [Logger]
195
+ #
196
+ def logger
197
+ @blue_green_deployments_service_stub.logger
198
+ end
199
+
200
+ # Service calls
201
+
202
+ ##
203
+ # Creates a blue-green deployment under a given project and location.
204
+ #
205
+ # @overload create_blue_green_deployment(request, options = nil)
206
+ # Pass arguments to `create_blue_green_deployment` via a request object, either of type
207
+ # {::Google::Cloud::Sql::V1::CreateBlueGreenDeploymentRequest} or an equivalent Hash.
208
+ #
209
+ # @param request [::Google::Cloud::Sql::V1::CreateBlueGreenDeploymentRequest, ::Hash]
210
+ # A request object representing the call parameters. Required. To specify no
211
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
212
+ # @param options [::Gapic::CallOptions, ::Hash]
213
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
214
+ #
215
+ # @overload create_blue_green_deployment(parent: nil, blue_green_deployment_id: nil, blue_green_deployment: nil)
216
+ # Pass arguments to `create_blue_green_deployment` via keyword arguments. Note that at
217
+ # least one keyword argument is required. To specify no parameters, or to keep all
218
+ # the default parameter values, pass an empty Hash as a request object (see above).
219
+ #
220
+ # @param parent [::String]
221
+ # Required. The parent resource where this blue-green deployment will be
222
+ # created. Format: projects/\\{project}/locations/\\{location}
223
+ # @param blue_green_deployment_id [::String]
224
+ # Required. The ID to use for the blue-green deployment, which will become
225
+ # the final component of the deployment's resource name. The ID must be
226
+ # unique within the given project and location and between 2-63 characters.
227
+ # @param blue_green_deployment [::Google::Cloud::Sql::V1::BlueGreenDeployment, ::Hash]
228
+ # Required. The `BlueGreenDeployment` resource to create.
229
+ #
230
+ # @yield [response, operation] Access the result along with the RPC operation
231
+ # @yieldparam response [::Google::Cloud::Sql::V1::Operation]
232
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
233
+ #
234
+ # @return [::Google::Cloud::Sql::V1::Operation]
235
+ #
236
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
237
+ #
238
+ # @example Basic example
239
+ # require "google/cloud/sql/v1"
240
+ #
241
+ # # Create a client object. The client can be reused for multiple calls.
242
+ # client = Google::Cloud::Sql::V1::BlueGreenDeploymentsService::Client.new
243
+ #
244
+ # # Create a request. To set request fields, pass in keyword arguments.
245
+ # request = Google::Cloud::Sql::V1::CreateBlueGreenDeploymentRequest.new
246
+ #
247
+ # # Call the create_blue_green_deployment method.
248
+ # result = client.create_blue_green_deployment request
249
+ #
250
+ # # The returned object is of type Google::Cloud::Sql::V1::Operation.
251
+ # p result
252
+ #
253
+ def create_blue_green_deployment request, options = nil
254
+ raise ::ArgumentError, "request must be provided" if request.nil?
255
+
256
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Sql::V1::CreateBlueGreenDeploymentRequest
257
+
258
+ # Converts hash and nil to an options object
259
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
260
+
261
+ # Customize the options with defaults
262
+ metadata = @config.rpcs.create_blue_green_deployment.metadata.to_h
263
+
264
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
265
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
266
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
267
+ gapic_version: ::Google::Cloud::Sql::V1::VERSION
268
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
269
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
270
+
271
+ header_params = {}
272
+ if request.parent
273
+ header_params["parent"] = request.parent
274
+ end
275
+
276
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
277
+ metadata[:"x-goog-request-params"] ||= request_params_header
278
+
279
+ options.apply_defaults timeout: @config.rpcs.create_blue_green_deployment.timeout,
280
+ metadata: metadata,
281
+ retry_policy: @config.rpcs.create_blue_green_deployment.retry_policy
282
+
283
+ options.apply_defaults timeout: @config.timeout,
284
+ metadata: @config.metadata,
285
+ retry_policy: @config.retry_policy
286
+
287
+ @blue_green_deployments_service_stub.call_rpc :create_blue_green_deployment, request, options: options do |response, operation|
288
+ yield response, operation if block_given?
289
+ end
290
+ rescue ::GRPC::BadStatus => e
291
+ raise ::Google::Cloud::Error.from_error(e)
292
+ end
293
+
294
+ ##
295
+ # Retrieves a blue-green deployment resource under a given project and
296
+ # location.
297
+ #
298
+ # @overload get_blue_green_deployment(request, options = nil)
299
+ # Pass arguments to `get_blue_green_deployment` via a request object, either of type
300
+ # {::Google::Cloud::Sql::V1::GetBlueGreenDeploymentRequest} or an equivalent Hash.
301
+ #
302
+ # @param request [::Google::Cloud::Sql::V1::GetBlueGreenDeploymentRequest, ::Hash]
303
+ # A request object representing the call parameters. Required. To specify no
304
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
305
+ # @param options [::Gapic::CallOptions, ::Hash]
306
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
307
+ #
308
+ # @overload get_blue_green_deployment(name: nil, view: nil)
309
+ # Pass arguments to `get_blue_green_deployment` via keyword arguments. Note that at
310
+ # least one keyword argument is required. To specify no parameters, or to keep all
311
+ # the default parameter values, pass an empty Hash as a request object (see above).
312
+ #
313
+ # @param name [::String]
314
+ # Required. The name of the blue-green deployment to retrieve.
315
+ # Format:
316
+ # projects/\\{project}/locations/\\{location}/blueGreenDeployments/\\{blue_green_deployment}
317
+ # @param view [::Google::Cloud::Sql::V1::GetBlueGreenDeploymentRequest::BlueGreenDeploymentView]
318
+ # Optional. Specifies whether to return the basic or detailed view of the
319
+ # resource in the response.
320
+ #
321
+ # @yield [response, operation] Access the result along with the RPC operation
322
+ # @yieldparam response [::Google::Cloud::Sql::V1::BlueGreenDeployment]
323
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
324
+ #
325
+ # @return [::Google::Cloud::Sql::V1::BlueGreenDeployment]
326
+ #
327
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
328
+ #
329
+ # @example Basic example
330
+ # require "google/cloud/sql/v1"
331
+ #
332
+ # # Create a client object. The client can be reused for multiple calls.
333
+ # client = Google::Cloud::Sql::V1::BlueGreenDeploymentsService::Client.new
334
+ #
335
+ # # Create a request. To set request fields, pass in keyword arguments.
336
+ # request = Google::Cloud::Sql::V1::GetBlueGreenDeploymentRequest.new
337
+ #
338
+ # # Call the get_blue_green_deployment method.
339
+ # result = client.get_blue_green_deployment request
340
+ #
341
+ # # The returned object is of type Google::Cloud::Sql::V1::BlueGreenDeployment.
342
+ # p result
343
+ #
344
+ def get_blue_green_deployment request, options = nil
345
+ raise ::ArgumentError, "request must be provided" if request.nil?
346
+
347
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Sql::V1::GetBlueGreenDeploymentRequest
348
+
349
+ # Converts hash and nil to an options object
350
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
351
+
352
+ # Customize the options with defaults
353
+ metadata = @config.rpcs.get_blue_green_deployment.metadata.to_h
354
+
355
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
356
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
357
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
358
+ gapic_version: ::Google::Cloud::Sql::V1::VERSION
359
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
360
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
361
+
362
+ header_params = {}
363
+ if request.name
364
+ header_params["name"] = request.name
365
+ end
366
+
367
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
368
+ metadata[:"x-goog-request-params"] ||= request_params_header
369
+
370
+ options.apply_defaults timeout: @config.rpcs.get_blue_green_deployment.timeout,
371
+ metadata: metadata,
372
+ retry_policy: @config.rpcs.get_blue_green_deployment.retry_policy
373
+
374
+ options.apply_defaults timeout: @config.timeout,
375
+ metadata: @config.metadata,
376
+ retry_policy: @config.retry_policy
377
+
378
+ @blue_green_deployments_service_stub.call_rpc :get_blue_green_deployment, request, options: options do |response, operation|
379
+ yield response, operation if block_given?
380
+ end
381
+ rescue ::GRPC::BadStatus => e
382
+ raise ::Google::Cloud::Error.from_error(e)
383
+ end
384
+
385
+ ##
386
+ # Switches over to green instance for a blue-green deployment.
387
+ #
388
+ # @overload switchover_blue_green_deployment(request, options = nil)
389
+ # Pass arguments to `switchover_blue_green_deployment` via a request object, either of type
390
+ # {::Google::Cloud::Sql::V1::SwitchoverBlueGreenDeploymentRequest} or an equivalent Hash.
391
+ #
392
+ # @param request [::Google::Cloud::Sql::V1::SwitchoverBlueGreenDeploymentRequest, ::Hash]
393
+ # A request object representing the call parameters. Required. To specify no
394
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
395
+ # @param options [::Gapic::CallOptions, ::Hash]
396
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
397
+ #
398
+ # @overload switchover_blue_green_deployment(name: nil)
399
+ # Pass arguments to `switchover_blue_green_deployment` via keyword arguments. Note that at
400
+ # least one keyword argument is required. To specify no parameters, or to keep all
401
+ # the default parameter values, pass an empty Hash as a request object (see above).
402
+ #
403
+ # @param name [::String]
404
+ # Required. The name of the blue-green deployment to switch over.
405
+ # Format:
406
+ # projects/\\{project}/locations/\\{location}/blueGreenDeployments/\\{blue_green_deployment}
407
+ #
408
+ # @yield [response, operation] Access the result along with the RPC operation
409
+ # @yieldparam response [::Google::Cloud::Sql::V1::Operation]
410
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
411
+ #
412
+ # @return [::Google::Cloud::Sql::V1::Operation]
413
+ #
414
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
415
+ #
416
+ # @example Basic example
417
+ # require "google/cloud/sql/v1"
418
+ #
419
+ # # Create a client object. The client can be reused for multiple calls.
420
+ # client = Google::Cloud::Sql::V1::BlueGreenDeploymentsService::Client.new
421
+ #
422
+ # # Create a request. To set request fields, pass in keyword arguments.
423
+ # request = Google::Cloud::Sql::V1::SwitchoverBlueGreenDeploymentRequest.new
424
+ #
425
+ # # Call the switchover_blue_green_deployment method.
426
+ # result = client.switchover_blue_green_deployment request
427
+ #
428
+ # # The returned object is of type Google::Cloud::Sql::V1::Operation.
429
+ # p result
430
+ #
431
+ def switchover_blue_green_deployment request, options = nil
432
+ raise ::ArgumentError, "request must be provided" if request.nil?
433
+
434
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Sql::V1::SwitchoverBlueGreenDeploymentRequest
435
+
436
+ # Converts hash and nil to an options object
437
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
438
+
439
+ # Customize the options with defaults
440
+ metadata = @config.rpcs.switchover_blue_green_deployment.metadata.to_h
441
+
442
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
443
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
444
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
445
+ gapic_version: ::Google::Cloud::Sql::V1::VERSION
446
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
447
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
448
+
449
+ header_params = {}
450
+ if request.name
451
+ header_params["name"] = request.name
452
+ end
453
+
454
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
455
+ metadata[:"x-goog-request-params"] ||= request_params_header
456
+
457
+ options.apply_defaults timeout: @config.rpcs.switchover_blue_green_deployment.timeout,
458
+ metadata: metadata,
459
+ retry_policy: @config.rpcs.switchover_blue_green_deployment.retry_policy
460
+
461
+ options.apply_defaults timeout: @config.timeout,
462
+ metadata: @config.metadata,
463
+ retry_policy: @config.retry_policy
464
+
465
+ @blue_green_deployments_service_stub.call_rpc :switchover_blue_green_deployment, request, options: options do |response, operation|
466
+ yield response, operation if block_given?
467
+ end
468
+ rescue ::GRPC::BadStatus => e
469
+ raise ::Google::Cloud::Error.from_error(e)
470
+ end
471
+
472
+ ##
473
+ # Lists blue-green deployments under a given project.
474
+ #
475
+ # @overload list_blue_green_deployments(request, options = nil)
476
+ # Pass arguments to `list_blue_green_deployments` via a request object, either of type
477
+ # {::Google::Cloud::Sql::V1::ListBlueGreenDeploymentsRequest} or an equivalent Hash.
478
+ #
479
+ # @param request [::Google::Cloud::Sql::V1::ListBlueGreenDeploymentsRequest, ::Hash]
480
+ # A request object representing the call parameters. Required. To specify no
481
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
482
+ # @param options [::Gapic::CallOptions, ::Hash]
483
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
484
+ #
485
+ # @overload list_blue_green_deployments(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil)
486
+ # Pass arguments to `list_blue_green_deployments` via keyword arguments. Note that at
487
+ # least one keyword argument is required. To specify no parameters, or to keep all
488
+ # the default parameter values, pass an empty Hash as a request object (see above).
489
+ #
490
+ # @param parent [::String]
491
+ # Required. The parent resource whose blue-green deployments are to be
492
+ # listed. Format: projects/\\{project}/locations/\\{location}
493
+ # @param page_size [::Integer]
494
+ # Optional. The maximum number of deployments to return. The service may
495
+ # return fewer deployments than this value. If unspecified, at most 500
496
+ # deployments are returned. The maximum value is 1000; values above 1000
497
+ # are treated as 1000.
498
+ # @param page_token [::String]
499
+ # Optional. A page token, received from a previous `ListBlueGreenDeployments`
500
+ # call. Provide this to retrieve the subsequent page.
501
+ # @param filter [::String]
502
+ # Optional. A filter expression that filters the results.
503
+ # @param order_by [::String]
504
+ # Optional. A comma-separated list of fields to order the results by.
505
+ #
506
+ # @yield [response, operation] Access the result along with the RPC operation
507
+ # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Sql::V1::BlueGreenDeployment>]
508
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
509
+ #
510
+ # @return [::Gapic::PagedEnumerable<::Google::Cloud::Sql::V1::BlueGreenDeployment>]
511
+ #
512
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
513
+ #
514
+ # @example Basic example
515
+ # require "google/cloud/sql/v1"
516
+ #
517
+ # # Create a client object. The client can be reused for multiple calls.
518
+ # client = Google::Cloud::Sql::V1::BlueGreenDeploymentsService::Client.new
519
+ #
520
+ # # Create a request. To set request fields, pass in keyword arguments.
521
+ # request = Google::Cloud::Sql::V1::ListBlueGreenDeploymentsRequest.new
522
+ #
523
+ # # Call the list_blue_green_deployments method.
524
+ # result = client.list_blue_green_deployments request
525
+ #
526
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
527
+ # # over elements, and API calls will be issued to fetch pages as needed.
528
+ # result.each do |item|
529
+ # # Each element is of type ::Google::Cloud::Sql::V1::BlueGreenDeployment.
530
+ # p item
531
+ # end
532
+ #
533
+ def list_blue_green_deployments request, options = nil
534
+ raise ::ArgumentError, "request must be provided" if request.nil?
535
+
536
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Sql::V1::ListBlueGreenDeploymentsRequest
537
+
538
+ # Converts hash and nil to an options object
539
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
540
+
541
+ # Customize the options with defaults
542
+ metadata = @config.rpcs.list_blue_green_deployments.metadata.to_h
543
+
544
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
545
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
546
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
547
+ gapic_version: ::Google::Cloud::Sql::V1::VERSION
548
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
549
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
550
+
551
+ header_params = {}
552
+ if request.parent
553
+ header_params["parent"] = request.parent
554
+ end
555
+
556
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
557
+ metadata[:"x-goog-request-params"] ||= request_params_header
558
+
559
+ options.apply_defaults timeout: @config.rpcs.list_blue_green_deployments.timeout,
560
+ metadata: metadata,
561
+ retry_policy: @config.rpcs.list_blue_green_deployments.retry_policy
562
+
563
+ options.apply_defaults timeout: @config.timeout,
564
+ metadata: @config.metadata,
565
+ retry_policy: @config.retry_policy
566
+
567
+ @blue_green_deployments_service_stub.call_rpc :list_blue_green_deployments, request, options: options do |response, operation|
568
+ response = ::Gapic::PagedEnumerable.new @blue_green_deployments_service_stub, :list_blue_green_deployments, request, response, operation, options
569
+ yield response, operation if block_given?
570
+ throw :response, response
571
+ end
572
+ rescue ::GRPC::BadStatus => e
573
+ raise ::Google::Cloud::Error.from_error(e)
574
+ end
575
+
576
+ ##
577
+ # Deletes a blue-green deployment.
578
+ #
579
+ # @overload delete_blue_green_deployment(request, options = nil)
580
+ # Pass arguments to `delete_blue_green_deployment` via a request object, either of type
581
+ # {::Google::Cloud::Sql::V1::DeleteBlueGreenDeploymentRequest} or an equivalent Hash.
582
+ #
583
+ # @param request [::Google::Cloud::Sql::V1::DeleteBlueGreenDeploymentRequest, ::Hash]
584
+ # A request object representing the call parameters. Required. To specify no
585
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
586
+ # @param options [::Gapic::CallOptions, ::Hash]
587
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
588
+ #
589
+ # @overload delete_blue_green_deployment(name: nil, delete_old_source: nil)
590
+ # Pass arguments to `delete_blue_green_deployment` via keyword arguments. Note that at
591
+ # least one keyword argument is required. To specify no parameters, or to keep all
592
+ # the default parameter values, pass an empty Hash as a request object (see above).
593
+ #
594
+ # @param name [::String]
595
+ # Required. The name of the blue-green deployment to delete.
596
+ # Format:
597
+ # projects/\\{project}/locations/\\{location}/blueGreenDeployments/\\{blue_green_deployment}
598
+ # @param delete_old_source [::Boolean]
599
+ # Optional. If set to true, and the switchover is complete, this deletes the
600
+ # old source instance along with the deployment.
601
+ #
602
+ # @yield [response, operation] Access the result along with the RPC operation
603
+ # @yieldparam response [::Google::Cloud::Sql::V1::Operation]
604
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
605
+ #
606
+ # @return [::Google::Cloud::Sql::V1::Operation]
607
+ #
608
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
609
+ #
610
+ # @example Basic example
611
+ # require "google/cloud/sql/v1"
612
+ #
613
+ # # Create a client object. The client can be reused for multiple calls.
614
+ # client = Google::Cloud::Sql::V1::BlueGreenDeploymentsService::Client.new
615
+ #
616
+ # # Create a request. To set request fields, pass in keyword arguments.
617
+ # request = Google::Cloud::Sql::V1::DeleteBlueGreenDeploymentRequest.new
618
+ #
619
+ # # Call the delete_blue_green_deployment method.
620
+ # result = client.delete_blue_green_deployment request
621
+ #
622
+ # # The returned object is of type Google::Cloud::Sql::V1::Operation.
623
+ # p result
624
+ #
625
+ def delete_blue_green_deployment request, options = nil
626
+ raise ::ArgumentError, "request must be provided" if request.nil?
627
+
628
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Sql::V1::DeleteBlueGreenDeploymentRequest
629
+
630
+ # Converts hash and nil to an options object
631
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
632
+
633
+ # Customize the options with defaults
634
+ metadata = @config.rpcs.delete_blue_green_deployment.metadata.to_h
635
+
636
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
637
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
638
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
639
+ gapic_version: ::Google::Cloud::Sql::V1::VERSION
640
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
641
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
642
+
643
+ header_params = {}
644
+ if request.name
645
+ header_params["name"] = request.name
646
+ end
647
+
648
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
649
+ metadata[:"x-goog-request-params"] ||= request_params_header
650
+
651
+ options.apply_defaults timeout: @config.rpcs.delete_blue_green_deployment.timeout,
652
+ metadata: metadata,
653
+ retry_policy: @config.rpcs.delete_blue_green_deployment.retry_policy
654
+
655
+ options.apply_defaults timeout: @config.timeout,
656
+ metadata: @config.metadata,
657
+ retry_policy: @config.retry_policy
658
+
659
+ @blue_green_deployments_service_stub.call_rpc :delete_blue_green_deployment, request, options: options do |response, operation|
660
+ yield response, operation if block_given?
661
+ end
662
+ rescue ::GRPC::BadStatus => e
663
+ raise ::Google::Cloud::Error.from_error(e)
664
+ end
665
+
666
+ ##
667
+ # Configuration class for the BlueGreenDeploymentsService API.
668
+ #
669
+ # This class represents the configuration for BlueGreenDeploymentsService,
670
+ # providing control over timeouts, retry behavior, logging, transport
671
+ # parameters, and other low-level controls. Certain parameters can also be
672
+ # applied individually to specific RPCs. See
673
+ # {::Google::Cloud::Sql::V1::BlueGreenDeploymentsService::Client::Configuration::Rpcs}
674
+ # for a list of RPCs that can be configured independently.
675
+ #
676
+ # Configuration can be applied globally to all clients, or to a single client
677
+ # on construction.
678
+ #
679
+ # @example
680
+ #
681
+ # # Modify the global config, setting the timeout for
682
+ # # create_blue_green_deployment to 20 seconds,
683
+ # # and all remaining timeouts to 10 seconds.
684
+ # ::Google::Cloud::Sql::V1::BlueGreenDeploymentsService::Client.configure do |config|
685
+ # config.timeout = 10.0
686
+ # config.rpcs.create_blue_green_deployment.timeout = 20.0
687
+ # end
688
+ #
689
+ # # Apply the above configuration only to a new client.
690
+ # client = ::Google::Cloud::Sql::V1::BlueGreenDeploymentsService::Client.new do |config|
691
+ # config.timeout = 10.0
692
+ # config.rpcs.create_blue_green_deployment.timeout = 20.0
693
+ # end
694
+ #
695
+ # @!attribute [rw] endpoint
696
+ # A custom service endpoint, as a hostname or hostname:port. The default is
697
+ # nil, indicating to use the default endpoint in the current universe domain.
698
+ # @return [::String,nil]
699
+ # @!attribute [rw] credentials
700
+ # Credentials to send with calls. You may provide any of the following types:
701
+ # * (`Google::Auth::Credentials`) A googleauth credentials object
702
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
703
+ # * (`Signet::OAuth2::Client`) A signet oauth2 client object
704
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
705
+ # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
706
+ # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
707
+ # * (`nil`) indicating no credentials
708
+ #
709
+ # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
710
+ # is deprecated. Providing an unvalidated credential configuration to
711
+ # Google APIs can compromise the security of your systems and data.
712
+ #
713
+ # @example
714
+ #
715
+ # # The recommended way to provide credentials is to use the `make_creds` method
716
+ # # on the appropriate credentials class for your environment.
717
+ #
718
+ # require "googleauth"
719
+ #
720
+ # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
721
+ # json_key_io: ::File.open("/path/to/keyfile.json")
722
+ # )
723
+ #
724
+ # client = ::Google::Cloud::Sql::V1::BlueGreenDeploymentsService::Client.new do |config|
725
+ # config.credentials = credentials
726
+ # end
727
+ #
728
+ # @note Warning: If you accept a credential configuration (JSON file or Hash) from an
729
+ # external source for authentication to Google Cloud, you must validate it before
730
+ # providing it to a Google API client library. Providing an unvalidated credential
731
+ # configuration to Google APIs can compromise the security of your systems and data.
732
+ # For more information, refer to [Validate credential configurations from external
733
+ # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials).
734
+ # @return [::Object]
735
+ # @!attribute [rw] scope
736
+ # The OAuth scopes
737
+ # @return [::Array<::String>]
738
+ # @!attribute [rw] lib_name
739
+ # The library name as recorded in instrumentation and logging
740
+ # @return [::String]
741
+ # @!attribute [rw] lib_version
742
+ # The library version as recorded in instrumentation and logging
743
+ # @return [::String]
744
+ # @!attribute [rw] channel_args
745
+ # Extra parameters passed to the gRPC channel. Note: this is ignored if a
746
+ # `GRPC::Core::Channel` object is provided as the credential.
747
+ # @return [::Hash]
748
+ # @!attribute [rw] interceptors
749
+ # An array of interceptors that are run before calls are executed.
750
+ # @return [::Array<::GRPC::ClientInterceptor>]
751
+ # @!attribute [rw] timeout
752
+ # The call timeout in seconds.
753
+ # @return [::Numeric]
754
+ # @!attribute [rw] metadata
755
+ # Additional gRPC headers to be sent with the call.
756
+ # @return [::Hash{::Symbol=>::String}]
757
+ # @!attribute [rw] retry_policy
758
+ # The retry policy. The value is a hash with the following keys:
759
+ # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
760
+ # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
761
+ # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
762
+ # * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0.
763
+ # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
764
+ # trigger a retry.
765
+ # @return [::Hash]
766
+ # @!attribute [rw] quota_project
767
+ # A separate project against which to charge quota.
768
+ # @return [::String]
769
+ # @!attribute [rw] universe_domain
770
+ # The universe domain within which to make requests. This determines the
771
+ # default endpoint URL. The default value of nil uses the environment
772
+ # universe (usually the default "googleapis.com" universe).
773
+ # @return [::String,nil]
774
+ # @!attribute [rw] logger
775
+ # A custom logger to use for request/response debug logging, or the value
776
+ # `:default` (the default) to construct a default logger, or `nil` to
777
+ # explicitly disable logging.
778
+ # @return [::Logger,:default,nil]
779
+ #
780
+ class Configuration
781
+ extend ::Gapic::Config
782
+
783
+ # @private
784
+ # The endpoint specific to the default "googleapis.com" universe. Deprecated.
785
+ DEFAULT_ENDPOINT = "sqladmin.googleapis.com"
786
+
787
+ config_attr :endpoint, nil, ::String, nil
788
+ config_attr :credentials, nil do |value|
789
+ allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
790
+ allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC::Core::Channel
791
+ allowed.any? { |klass| klass === value }
792
+ end
793
+ config_attr :scope, nil, ::String, ::Array, nil
794
+ config_attr :lib_name, nil, ::String, nil
795
+ config_attr :lib_version, nil, ::String, nil
796
+ config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil)
797
+ config_attr :interceptors, nil, ::Array, nil
798
+ config_attr :timeout, nil, ::Numeric, nil
799
+ config_attr :metadata, nil, ::Hash, nil
800
+ config_attr :retry_policy, nil, ::Hash, ::Proc, nil
801
+ config_attr :quota_project, nil, ::String, nil
802
+ config_attr :universe_domain, nil, ::String, nil
803
+ config_attr :logger, :default, ::Logger, nil, :default
804
+
805
+ # @private
806
+ def initialize parent_config = nil
807
+ @parent_config = parent_config unless parent_config.nil?
808
+
809
+ yield self if block_given?
810
+ end
811
+
812
+ ##
813
+ # Configurations for individual RPCs
814
+ # @return [Rpcs]
815
+ #
816
+ def rpcs
817
+ @rpcs ||= begin
818
+ parent_rpcs = nil
819
+ parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs)
820
+ Rpcs.new parent_rpcs
821
+ end
822
+ end
823
+
824
+ ##
825
+ # Configuration for the channel pool
826
+ # @return [::Gapic::ServiceStub::ChannelPool::Configuration]
827
+ #
828
+ def channel_pool
829
+ @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
830
+ end
831
+
832
+ ##
833
+ # Configuration RPC class for the BlueGreenDeploymentsService API.
834
+ #
835
+ # Includes fields providing the configuration for each RPC in this service.
836
+ # Each configuration object is of type `Gapic::Config::Method` and includes
837
+ # the following configuration fields:
838
+ #
839
+ # * `timeout` (*type:* `Numeric`) - The call timeout in seconds
840
+ # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers
841
+ # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields
842
+ # include the following keys:
843
+ # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
844
+ # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
845
+ # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
846
+ # * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0.
847
+ # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
848
+ # trigger a retry.
849
+ #
850
+ class Rpcs
851
+ ##
852
+ # RPC-specific configuration for `create_blue_green_deployment`
853
+ # @return [::Gapic::Config::Method]
854
+ #
855
+ attr_reader :create_blue_green_deployment
856
+ ##
857
+ # RPC-specific configuration for `get_blue_green_deployment`
858
+ # @return [::Gapic::Config::Method]
859
+ #
860
+ attr_reader :get_blue_green_deployment
861
+ ##
862
+ # RPC-specific configuration for `switchover_blue_green_deployment`
863
+ # @return [::Gapic::Config::Method]
864
+ #
865
+ attr_reader :switchover_blue_green_deployment
866
+ ##
867
+ # RPC-specific configuration for `list_blue_green_deployments`
868
+ # @return [::Gapic::Config::Method]
869
+ #
870
+ attr_reader :list_blue_green_deployments
871
+ ##
872
+ # RPC-specific configuration for `delete_blue_green_deployment`
873
+ # @return [::Gapic::Config::Method]
874
+ #
875
+ attr_reader :delete_blue_green_deployment
876
+
877
+ # @private
878
+ def initialize parent_rpcs = nil
879
+ create_blue_green_deployment_config = parent_rpcs.create_blue_green_deployment if parent_rpcs.respond_to? :create_blue_green_deployment
880
+ @create_blue_green_deployment = ::Gapic::Config::Method.new create_blue_green_deployment_config
881
+ get_blue_green_deployment_config = parent_rpcs.get_blue_green_deployment if parent_rpcs.respond_to? :get_blue_green_deployment
882
+ @get_blue_green_deployment = ::Gapic::Config::Method.new get_blue_green_deployment_config
883
+ switchover_blue_green_deployment_config = parent_rpcs.switchover_blue_green_deployment if parent_rpcs.respond_to? :switchover_blue_green_deployment
884
+ @switchover_blue_green_deployment = ::Gapic::Config::Method.new switchover_blue_green_deployment_config
885
+ list_blue_green_deployments_config = parent_rpcs.list_blue_green_deployments if parent_rpcs.respond_to? :list_blue_green_deployments
886
+ @list_blue_green_deployments = ::Gapic::Config::Method.new list_blue_green_deployments_config
887
+ delete_blue_green_deployment_config = parent_rpcs.delete_blue_green_deployment if parent_rpcs.respond_to? :delete_blue_green_deployment
888
+ @delete_blue_green_deployment = ::Gapic::Config::Method.new delete_blue_green_deployment_config
889
+
890
+ yield self if block_given?
891
+ end
892
+ end
893
+ end
894
+ end
895
+ end
896
+ end
897
+ end
898
+ end
899
+ end