google-cloud-telco_automation-v1 0.a → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (34) hide show
  1. checksums.yaml +4 -4
  2. data/.yardopts +12 -0
  3. data/AUTHENTICATION.md +149 -0
  4. data/README.md +144 -8
  5. data/lib/google/cloud/telco_automation/v1/bindings_override.rb +102 -0
  6. data/lib/google/cloud/telco_automation/v1/rest.rb +38 -0
  7. data/lib/google/cloud/telco_automation/v1/telco_automation/client.rb +3946 -0
  8. data/lib/google/cloud/telco_automation/v1/telco_automation/credentials.rb +47 -0
  9. data/lib/google/cloud/telco_automation/v1/telco_automation/operations.rb +779 -0
  10. data/lib/google/cloud/telco_automation/v1/telco_automation/paths.rb +172 -0
  11. data/lib/google/cloud/telco_automation/v1/telco_automation/rest/client.rb +3671 -0
  12. data/lib/google/cloud/telco_automation/v1/telco_automation/rest/operations.rb +870 -0
  13. data/lib/google/cloud/telco_automation/v1/telco_automation/rest/service_stub.rb +2188 -0
  14. data/lib/google/cloud/telco_automation/v1/telco_automation/rest.rb +58 -0
  15. data/lib/google/cloud/telco_automation/v1/telco_automation.rb +60 -0
  16. data/lib/google/cloud/telco_automation/v1/version.rb +7 -2
  17. data/lib/google/cloud/telco_automation/v1.rb +45 -0
  18. data/lib/google/cloud/telcoautomation/v1/telcoautomation_pb.rb +131 -0
  19. data/lib/google/cloud/telcoautomation/v1/telcoautomation_services_pb.rb +126 -0
  20. data/lib/google-cloud-telco_automation-v1.rb +21 -0
  21. data/proto_docs/README.md +4 -0
  22. data/proto_docs/google/api/client.rb +394 -0
  23. data/proto_docs/google/api/field_behavior.rb +85 -0
  24. data/proto_docs/google/api/launch_stage.rb +71 -0
  25. data/proto_docs/google/api/resource.rb +222 -0
  26. data/proto_docs/google/cloud/telcoautomation/v1/telcoautomation.rb +1534 -0
  27. data/proto_docs/google/longrunning/operations.rb +164 -0
  28. data/proto_docs/google/protobuf/any.rb +144 -0
  29. data/proto_docs/google/protobuf/duration.rb +98 -0
  30. data/proto_docs/google/protobuf/empty.rb +34 -0
  31. data/proto_docs/google/protobuf/field_mask.rb +229 -0
  32. data/proto_docs/google/protobuf/timestamp.rb +127 -0
  33. data/proto_docs/google/rpc/status.rb +48 -0
  34. metadata +209 -13
@@ -0,0 +1,3671 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2023 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/telcoautomation/v1/telcoautomation_pb"
21
+ require "google/cloud/telco_automation/v1/telco_automation/rest/service_stub"
22
+ require "google/cloud/location/rest"
23
+
24
+ module Google
25
+ module Cloud
26
+ module TelcoAutomation
27
+ module V1
28
+ module TelcoAutomation
29
+ module Rest
30
+ ##
31
+ # REST client for the TelcoAutomation service.
32
+ #
33
+ # TelcoAutomation Service manages the control plane cluster a.k.a.
34
+ # Orchestration Cluster (GKE cluster with config controller) of TNA. It also
35
+ # exposes blueprint APIs which manages the lifecycle of blueprints that control
36
+ # the infrastructure setup (e.g GDCE clusters) and deployment of network
37
+ # functions.
38
+ #
39
+ class Client
40
+ include Paths
41
+
42
+ # @private
43
+ attr_reader :telco_automation_stub
44
+
45
+ ##
46
+ # Configure the TelcoAutomation Client class.
47
+ #
48
+ # See {::Google::Cloud::TelcoAutomation::V1::TelcoAutomation::Rest::Client::Configuration}
49
+ # for a description of the configuration fields.
50
+ #
51
+ # @example
52
+ #
53
+ # # Modify the configuration for all TelcoAutomation clients
54
+ # ::Google::Cloud::TelcoAutomation::V1::TelcoAutomation::Rest::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", "TelcoAutomation", "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 TelcoAutomation 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::TelcoAutomation::V1::TelcoAutomation::Rest::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
+ # Create a new TelcoAutomation REST client object.
102
+ #
103
+ # @example
104
+ #
105
+ # # Create a client using the default configuration
106
+ # client = ::Google::Cloud::TelcoAutomation::V1::TelcoAutomation::Rest::Client.new
107
+ #
108
+ # # Create a client using a custom configuration
109
+ # client = ::Google::Cloud::TelcoAutomation::V1::TelcoAutomation::Rest::Client.new do |config|
110
+ # config.timeout = 10.0
111
+ # end
112
+ #
113
+ # @yield [config] Configure the TelcoAutomation client.
114
+ # @yieldparam config [Client::Configuration]
115
+ #
116
+ def initialize
117
+ # Create the configuration object
118
+ @config = Configuration.new Client.configure
119
+
120
+ # Yield the configuration if needed
121
+ yield @config if block_given?
122
+
123
+ # Create credentials
124
+ credentials = @config.credentials
125
+ # Use self-signed JWT if the endpoint is unchanged from default,
126
+ # but only if the default endpoint does not have a region prefix.
127
+ enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
128
+ !@config.endpoint.split(".").first.include?("-")
129
+ credentials ||= Credentials.default scope: @config.scope,
130
+ enable_self_signed_jwt: enable_self_signed_jwt
131
+ if credentials.is_a?(::String) || credentials.is_a?(::Hash)
132
+ credentials = Credentials.new credentials, scope: @config.scope
133
+ end
134
+
135
+ @quota_project_id = @config.quota_project
136
+ @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
137
+
138
+ @operations_client = ::Google::Cloud::TelcoAutomation::V1::TelcoAutomation::Rest::Operations.new do |config|
139
+ config.credentials = credentials
140
+ config.quota_project = @quota_project_id
141
+ config.endpoint = @config.endpoint
142
+ end
143
+
144
+ @location_client = Google::Cloud::Location::Locations::Rest::Client.new do |config|
145
+ config.credentials = credentials
146
+ config.quota_project = @quota_project_id
147
+ config.endpoint = @config.endpoint
148
+ config.bindings_override = @config.bindings_override
149
+ end
150
+
151
+ @telco_automation_stub = ::Google::Cloud::TelcoAutomation::V1::TelcoAutomation::Rest::ServiceStub.new endpoint: @config.endpoint, credentials: credentials
152
+ end
153
+
154
+ ##
155
+ # Get the associated client for long-running operations.
156
+ #
157
+ # @return [::Google::Cloud::TelcoAutomation::V1::TelcoAutomation::Rest::Operations]
158
+ #
159
+ attr_reader :operations_client
160
+
161
+ ##
162
+ # Get the associated client for mix-in of the Locations.
163
+ #
164
+ # @return [Google::Cloud::Location::Locations::Rest::Client]
165
+ #
166
+ attr_reader :location_client
167
+
168
+ # Service calls
169
+
170
+ ##
171
+ # Lists OrchestrationClusters in a given project and location.
172
+ #
173
+ # @overload list_orchestration_clusters(request, options = nil)
174
+ # Pass arguments to `list_orchestration_clusters` via a request object, either of type
175
+ # {::Google::Cloud::TelcoAutomation::V1::ListOrchestrationClustersRequest} or an equivalent Hash.
176
+ #
177
+ # @param request [::Google::Cloud::TelcoAutomation::V1::ListOrchestrationClustersRequest, ::Hash]
178
+ # A request object representing the call parameters. Required. To specify no
179
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
180
+ # @param options [::Gapic::CallOptions, ::Hash]
181
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
182
+ #
183
+ # @overload list_orchestration_clusters(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil)
184
+ # Pass arguments to `list_orchestration_clusters` via keyword arguments. Note that at
185
+ # least one keyword argument is required. To specify no parameters, or to keep all
186
+ # the default parameter values, pass an empty Hash as a request object (see above).
187
+ #
188
+ # @param parent [::String]
189
+ # Required. Parent value for ListOrchestrationClustersRequest
190
+ # @param page_size [::Integer]
191
+ # Requested page size. Server may return fewer items than requested.
192
+ # If unspecified, server will pick an appropriate default.
193
+ # @param page_token [::String]
194
+ # A token identifying a page of results the server should return.
195
+ # @param filter [::String]
196
+ # Filtering results.
197
+ # @param order_by [::String]
198
+ # Hint for how to order the results.
199
+ # @yield [result, operation] Access the result along with the TransportOperation object
200
+ # @yieldparam result [::Google::Cloud::TelcoAutomation::V1::ListOrchestrationClustersResponse]
201
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
202
+ #
203
+ # @return [::Google::Cloud::TelcoAutomation::V1::ListOrchestrationClustersResponse]
204
+ #
205
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
206
+ #
207
+ # @example Basic example
208
+ # require "google/cloud/telco_automation/v1"
209
+ #
210
+ # # Create a client object. The client can be reused for multiple calls.
211
+ # client = Google::Cloud::TelcoAutomation::V1::TelcoAutomation::Rest::Client.new
212
+ #
213
+ # # Create a request. To set request fields, pass in keyword arguments.
214
+ # request = Google::Cloud::TelcoAutomation::V1::ListOrchestrationClustersRequest.new
215
+ #
216
+ # # Call the list_orchestration_clusters method.
217
+ # result = client.list_orchestration_clusters request
218
+ #
219
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
220
+ # # over elements, and API calls will be issued to fetch pages as needed.
221
+ # result.each do |item|
222
+ # # Each element is of type ::Google::Cloud::TelcoAutomation::V1::OrchestrationCluster.
223
+ # p item
224
+ # end
225
+ #
226
+ def list_orchestration_clusters request, options = nil
227
+ raise ::ArgumentError, "request must be provided" if request.nil?
228
+
229
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::TelcoAutomation::V1::ListOrchestrationClustersRequest
230
+
231
+ # Converts hash and nil to an options object
232
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
233
+
234
+ # Customize the options with defaults
235
+ call_metadata = @config.rpcs.list_orchestration_clusters.metadata.to_h
236
+
237
+ # Set x-goog-api-client and x-goog-user-project headers
238
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
239
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
240
+ gapic_version: ::Google::Cloud::TelcoAutomation::V1::VERSION,
241
+ transports_version_send: [:rest]
242
+
243
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
244
+
245
+ options.apply_defaults timeout: @config.rpcs.list_orchestration_clusters.timeout,
246
+ metadata: call_metadata,
247
+ retry_policy: @config.rpcs.list_orchestration_clusters.retry_policy
248
+
249
+ options.apply_defaults timeout: @config.timeout,
250
+ metadata: @config.metadata,
251
+ retry_policy: @config.retry_policy
252
+
253
+ @telco_automation_stub.list_orchestration_clusters request, options do |result, operation|
254
+ yield result, operation if block_given?
255
+ return result
256
+ end
257
+ rescue ::Gapic::Rest::Error => e
258
+ raise ::Google::Cloud::Error.from_error(e)
259
+ end
260
+
261
+ ##
262
+ # Gets details of a single OrchestrationCluster.
263
+ #
264
+ # @overload get_orchestration_cluster(request, options = nil)
265
+ # Pass arguments to `get_orchestration_cluster` via a request object, either of type
266
+ # {::Google::Cloud::TelcoAutomation::V1::GetOrchestrationClusterRequest} or an equivalent Hash.
267
+ #
268
+ # @param request [::Google::Cloud::TelcoAutomation::V1::GetOrchestrationClusterRequest, ::Hash]
269
+ # A request object representing the call parameters. Required. To specify no
270
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
271
+ # @param options [::Gapic::CallOptions, ::Hash]
272
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
273
+ #
274
+ # @overload get_orchestration_cluster(name: nil)
275
+ # Pass arguments to `get_orchestration_cluster` via keyword arguments. Note that at
276
+ # least one keyword argument is required. To specify no parameters, or to keep all
277
+ # the default parameter values, pass an empty Hash as a request object (see above).
278
+ #
279
+ # @param name [::String]
280
+ # Required. Name of the resource
281
+ # @yield [result, operation] Access the result along with the TransportOperation object
282
+ # @yieldparam result [::Google::Cloud::TelcoAutomation::V1::OrchestrationCluster]
283
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
284
+ #
285
+ # @return [::Google::Cloud::TelcoAutomation::V1::OrchestrationCluster]
286
+ #
287
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
288
+ #
289
+ # @example Basic example
290
+ # require "google/cloud/telco_automation/v1"
291
+ #
292
+ # # Create a client object. The client can be reused for multiple calls.
293
+ # client = Google::Cloud::TelcoAutomation::V1::TelcoAutomation::Rest::Client.new
294
+ #
295
+ # # Create a request. To set request fields, pass in keyword arguments.
296
+ # request = Google::Cloud::TelcoAutomation::V1::GetOrchestrationClusterRequest.new
297
+ #
298
+ # # Call the get_orchestration_cluster method.
299
+ # result = client.get_orchestration_cluster request
300
+ #
301
+ # # The returned object is of type Google::Cloud::TelcoAutomation::V1::OrchestrationCluster.
302
+ # p result
303
+ #
304
+ def get_orchestration_cluster request, options = nil
305
+ raise ::ArgumentError, "request must be provided" if request.nil?
306
+
307
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::TelcoAutomation::V1::GetOrchestrationClusterRequest
308
+
309
+ # Converts hash and nil to an options object
310
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
311
+
312
+ # Customize the options with defaults
313
+ call_metadata = @config.rpcs.get_orchestration_cluster.metadata.to_h
314
+
315
+ # Set x-goog-api-client and x-goog-user-project headers
316
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
317
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
318
+ gapic_version: ::Google::Cloud::TelcoAutomation::V1::VERSION,
319
+ transports_version_send: [:rest]
320
+
321
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
322
+
323
+ options.apply_defaults timeout: @config.rpcs.get_orchestration_cluster.timeout,
324
+ metadata: call_metadata,
325
+ retry_policy: @config.rpcs.get_orchestration_cluster.retry_policy
326
+
327
+ options.apply_defaults timeout: @config.timeout,
328
+ metadata: @config.metadata,
329
+ retry_policy: @config.retry_policy
330
+
331
+ @telco_automation_stub.get_orchestration_cluster request, options do |result, operation|
332
+ yield result, operation if block_given?
333
+ return result
334
+ end
335
+ rescue ::Gapic::Rest::Error => e
336
+ raise ::Google::Cloud::Error.from_error(e)
337
+ end
338
+
339
+ ##
340
+ # Creates a new OrchestrationCluster in a given project and location.
341
+ #
342
+ # @overload create_orchestration_cluster(request, options = nil)
343
+ # Pass arguments to `create_orchestration_cluster` via a request object, either of type
344
+ # {::Google::Cloud::TelcoAutomation::V1::CreateOrchestrationClusterRequest} or an equivalent Hash.
345
+ #
346
+ # @param request [::Google::Cloud::TelcoAutomation::V1::CreateOrchestrationClusterRequest, ::Hash]
347
+ # A request object representing the call parameters. Required. To specify no
348
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
349
+ # @param options [::Gapic::CallOptions, ::Hash]
350
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
351
+ #
352
+ # @overload create_orchestration_cluster(parent: nil, orchestration_cluster_id: nil, orchestration_cluster: nil, request_id: nil)
353
+ # Pass arguments to `create_orchestration_cluster` via keyword arguments. Note that at
354
+ # least one keyword argument is required. To specify no parameters, or to keep all
355
+ # the default parameter values, pass an empty Hash as a request object (see above).
356
+ #
357
+ # @param parent [::String]
358
+ # Required. Value for parent.
359
+ # @param orchestration_cluster_id [::String]
360
+ # Required. Id of the requesting object
361
+ # If auto-generating Id server-side, remove this field and
362
+ # orchestration_cluster_id from the method_signature of Create RPC
363
+ # @param orchestration_cluster [::Google::Cloud::TelcoAutomation::V1::OrchestrationCluster, ::Hash]
364
+ # Required. The resource being created
365
+ # @param request_id [::String]
366
+ # Optional. An optional request ID to identify requests. Specify a unique
367
+ # request ID so that if you must retry your request, the server will know to
368
+ # ignore the request if it has already been completed. The server will
369
+ # guarantee that for at least 60 minutes since the first request.
370
+ #
371
+ # For example, consider a situation where you make an initial request and
372
+ # the request times out. If you make the request again with the same request
373
+ # ID, the server can check if original operation with the same request ID
374
+ # was received, and if so, will ignore the second request. This prevents
375
+ # clients from accidentally creating duplicate commitments.
376
+ #
377
+ # The request ID must be a valid UUID with the exception that zero UUID is
378
+ # not supported (00000000-0000-0000-0000-000000000000).
379
+ # @yield [result, operation] Access the result along with the TransportOperation object
380
+ # @yieldparam result [::Gapic::Operation]
381
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
382
+ #
383
+ # @return [::Gapic::Operation]
384
+ #
385
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
386
+ #
387
+ # @example Basic example
388
+ # require "google/cloud/telco_automation/v1"
389
+ #
390
+ # # Create a client object. The client can be reused for multiple calls.
391
+ # client = Google::Cloud::TelcoAutomation::V1::TelcoAutomation::Rest::Client.new
392
+ #
393
+ # # Create a request. To set request fields, pass in keyword arguments.
394
+ # request = Google::Cloud::TelcoAutomation::V1::CreateOrchestrationClusterRequest.new
395
+ #
396
+ # # Call the create_orchestration_cluster method.
397
+ # result = client.create_orchestration_cluster request
398
+ #
399
+ # # The returned object is of type Gapic::Operation. You can use it to
400
+ # # check the status of an operation, cancel it, or wait for results.
401
+ # # Here is how to wait for a response.
402
+ # result.wait_until_done! timeout: 60
403
+ # if result.response?
404
+ # p result.response
405
+ # else
406
+ # puts "No response received."
407
+ # end
408
+ #
409
+ def create_orchestration_cluster request, options = nil
410
+ raise ::ArgumentError, "request must be provided" if request.nil?
411
+
412
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::TelcoAutomation::V1::CreateOrchestrationClusterRequest
413
+
414
+ # Converts hash and nil to an options object
415
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
416
+
417
+ # Customize the options with defaults
418
+ call_metadata = @config.rpcs.create_orchestration_cluster.metadata.to_h
419
+
420
+ # Set x-goog-api-client and x-goog-user-project headers
421
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
422
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
423
+ gapic_version: ::Google::Cloud::TelcoAutomation::V1::VERSION,
424
+ transports_version_send: [:rest]
425
+
426
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
427
+
428
+ options.apply_defaults timeout: @config.rpcs.create_orchestration_cluster.timeout,
429
+ metadata: call_metadata,
430
+ retry_policy: @config.rpcs.create_orchestration_cluster.retry_policy
431
+
432
+ options.apply_defaults timeout: @config.timeout,
433
+ metadata: @config.metadata,
434
+ retry_policy: @config.retry_policy
435
+
436
+ @telco_automation_stub.create_orchestration_cluster request, options do |result, operation|
437
+ result = ::Gapic::Operation.new result, @operations_client, options: options
438
+ yield result, operation if block_given?
439
+ return result
440
+ end
441
+ rescue ::Gapic::Rest::Error => e
442
+ raise ::Google::Cloud::Error.from_error(e)
443
+ end
444
+
445
+ ##
446
+ # Deletes a single OrchestrationCluster.
447
+ #
448
+ # @overload delete_orchestration_cluster(request, options = nil)
449
+ # Pass arguments to `delete_orchestration_cluster` via a request object, either of type
450
+ # {::Google::Cloud::TelcoAutomation::V1::DeleteOrchestrationClusterRequest} or an equivalent Hash.
451
+ #
452
+ # @param request [::Google::Cloud::TelcoAutomation::V1::DeleteOrchestrationClusterRequest, ::Hash]
453
+ # A request object representing the call parameters. Required. To specify no
454
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
455
+ # @param options [::Gapic::CallOptions, ::Hash]
456
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
457
+ #
458
+ # @overload delete_orchestration_cluster(name: nil, request_id: nil)
459
+ # Pass arguments to `delete_orchestration_cluster` via keyword arguments. Note that at
460
+ # least one keyword argument is required. To specify no parameters, or to keep all
461
+ # the default parameter values, pass an empty Hash as a request object (see above).
462
+ #
463
+ # @param name [::String]
464
+ # Required. Name of the resource
465
+ # @param request_id [::String]
466
+ # Optional. An optional request ID to identify requests. Specify a unique
467
+ # request ID so that if you must retry your request, the server will know to
468
+ # ignore the request if it has already been completed. The server will
469
+ # guarantee that for at least 60 minutes after the first request.
470
+ #
471
+ # For example, consider a situation where you make an initial request and
472
+ # the request times out. If you make the request again with the same request
473
+ # ID, the server can check if original operation with the same request ID
474
+ # was received, and if so, will ignore the second request. This prevents
475
+ # clients from accidentally creating duplicate commitments.
476
+ #
477
+ # The request ID must be a valid UUID with the exception that zero UUID is
478
+ # not supported (00000000-0000-0000-0000-000000000000).
479
+ # @yield [result, operation] Access the result along with the TransportOperation object
480
+ # @yieldparam result [::Gapic::Operation]
481
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
482
+ #
483
+ # @return [::Gapic::Operation]
484
+ #
485
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
486
+ #
487
+ # @example Basic example
488
+ # require "google/cloud/telco_automation/v1"
489
+ #
490
+ # # Create a client object. The client can be reused for multiple calls.
491
+ # client = Google::Cloud::TelcoAutomation::V1::TelcoAutomation::Rest::Client.new
492
+ #
493
+ # # Create a request. To set request fields, pass in keyword arguments.
494
+ # request = Google::Cloud::TelcoAutomation::V1::DeleteOrchestrationClusterRequest.new
495
+ #
496
+ # # Call the delete_orchestration_cluster method.
497
+ # result = client.delete_orchestration_cluster request
498
+ #
499
+ # # The returned object is of type Gapic::Operation. You can use it to
500
+ # # check the status of an operation, cancel it, or wait for results.
501
+ # # Here is how to wait for a response.
502
+ # result.wait_until_done! timeout: 60
503
+ # if result.response?
504
+ # p result.response
505
+ # else
506
+ # puts "No response received."
507
+ # end
508
+ #
509
+ def delete_orchestration_cluster request, options = nil
510
+ raise ::ArgumentError, "request must be provided" if request.nil?
511
+
512
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::TelcoAutomation::V1::DeleteOrchestrationClusterRequest
513
+
514
+ # Converts hash and nil to an options object
515
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
516
+
517
+ # Customize the options with defaults
518
+ call_metadata = @config.rpcs.delete_orchestration_cluster.metadata.to_h
519
+
520
+ # Set x-goog-api-client and x-goog-user-project headers
521
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
522
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
523
+ gapic_version: ::Google::Cloud::TelcoAutomation::V1::VERSION,
524
+ transports_version_send: [:rest]
525
+
526
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
527
+
528
+ options.apply_defaults timeout: @config.rpcs.delete_orchestration_cluster.timeout,
529
+ metadata: call_metadata,
530
+ retry_policy: @config.rpcs.delete_orchestration_cluster.retry_policy
531
+
532
+ options.apply_defaults timeout: @config.timeout,
533
+ metadata: @config.metadata,
534
+ retry_policy: @config.retry_policy
535
+
536
+ @telco_automation_stub.delete_orchestration_cluster request, options do |result, operation|
537
+ result = ::Gapic::Operation.new result, @operations_client, options: options
538
+ yield result, operation if block_given?
539
+ return result
540
+ end
541
+ rescue ::Gapic::Rest::Error => e
542
+ raise ::Google::Cloud::Error.from_error(e)
543
+ end
544
+
545
+ ##
546
+ # Lists EdgeSlms in a given project and location.
547
+ #
548
+ # @overload list_edge_slms(request, options = nil)
549
+ # Pass arguments to `list_edge_slms` via a request object, either of type
550
+ # {::Google::Cloud::TelcoAutomation::V1::ListEdgeSlmsRequest} or an equivalent Hash.
551
+ #
552
+ # @param request [::Google::Cloud::TelcoAutomation::V1::ListEdgeSlmsRequest, ::Hash]
553
+ # A request object representing the call parameters. Required. To specify no
554
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
555
+ # @param options [::Gapic::CallOptions, ::Hash]
556
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
557
+ #
558
+ # @overload list_edge_slms(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil)
559
+ # Pass arguments to `list_edge_slms` via keyword arguments. Note that at
560
+ # least one keyword argument is required. To specify no parameters, or to keep all
561
+ # the default parameter values, pass an empty Hash as a request object (see above).
562
+ #
563
+ # @param parent [::String]
564
+ # Required. Parent value for ListEdgeSlmsRequest
565
+ # @param page_size [::Integer]
566
+ # Requested page size. Server may return fewer items than requested.
567
+ # If unspecified, server will pick an appropriate default.
568
+ # @param page_token [::String]
569
+ # A token identifying a page of results the server should return.
570
+ # @param filter [::String]
571
+ # Filtering results
572
+ # @param order_by [::String]
573
+ # Hint for how to order the results
574
+ # @yield [result, operation] Access the result along with the TransportOperation object
575
+ # @yieldparam result [::Google::Cloud::TelcoAutomation::V1::ListEdgeSlmsResponse]
576
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
577
+ #
578
+ # @return [::Google::Cloud::TelcoAutomation::V1::ListEdgeSlmsResponse]
579
+ #
580
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
581
+ #
582
+ # @example Basic example
583
+ # require "google/cloud/telco_automation/v1"
584
+ #
585
+ # # Create a client object. The client can be reused for multiple calls.
586
+ # client = Google::Cloud::TelcoAutomation::V1::TelcoAutomation::Rest::Client.new
587
+ #
588
+ # # Create a request. To set request fields, pass in keyword arguments.
589
+ # request = Google::Cloud::TelcoAutomation::V1::ListEdgeSlmsRequest.new
590
+ #
591
+ # # Call the list_edge_slms method.
592
+ # result = client.list_edge_slms request
593
+ #
594
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
595
+ # # over elements, and API calls will be issued to fetch pages as needed.
596
+ # result.each do |item|
597
+ # # Each element is of type ::Google::Cloud::TelcoAutomation::V1::EdgeSlm.
598
+ # p item
599
+ # end
600
+ #
601
+ def list_edge_slms request, options = nil
602
+ raise ::ArgumentError, "request must be provided" if request.nil?
603
+
604
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::TelcoAutomation::V1::ListEdgeSlmsRequest
605
+
606
+ # Converts hash and nil to an options object
607
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
608
+
609
+ # Customize the options with defaults
610
+ call_metadata = @config.rpcs.list_edge_slms.metadata.to_h
611
+
612
+ # Set x-goog-api-client and x-goog-user-project headers
613
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
614
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
615
+ gapic_version: ::Google::Cloud::TelcoAutomation::V1::VERSION,
616
+ transports_version_send: [:rest]
617
+
618
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
619
+
620
+ options.apply_defaults timeout: @config.rpcs.list_edge_slms.timeout,
621
+ metadata: call_metadata,
622
+ retry_policy: @config.rpcs.list_edge_slms.retry_policy
623
+
624
+ options.apply_defaults timeout: @config.timeout,
625
+ metadata: @config.metadata,
626
+ retry_policy: @config.retry_policy
627
+
628
+ @telco_automation_stub.list_edge_slms request, options do |result, operation|
629
+ yield result, operation if block_given?
630
+ return result
631
+ end
632
+ rescue ::Gapic::Rest::Error => e
633
+ raise ::Google::Cloud::Error.from_error(e)
634
+ end
635
+
636
+ ##
637
+ # Gets details of a single EdgeSlm.
638
+ #
639
+ # @overload get_edge_slm(request, options = nil)
640
+ # Pass arguments to `get_edge_slm` via a request object, either of type
641
+ # {::Google::Cloud::TelcoAutomation::V1::GetEdgeSlmRequest} or an equivalent Hash.
642
+ #
643
+ # @param request [::Google::Cloud::TelcoAutomation::V1::GetEdgeSlmRequest, ::Hash]
644
+ # A request object representing the call parameters. Required. To specify no
645
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
646
+ # @param options [::Gapic::CallOptions, ::Hash]
647
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
648
+ #
649
+ # @overload get_edge_slm(name: nil)
650
+ # Pass arguments to `get_edge_slm` via keyword arguments. Note that at
651
+ # least one keyword argument is required. To specify no parameters, or to keep all
652
+ # the default parameter values, pass an empty Hash as a request object (see above).
653
+ #
654
+ # @param name [::String]
655
+ # Required. Name of the resource
656
+ # @yield [result, operation] Access the result along with the TransportOperation object
657
+ # @yieldparam result [::Google::Cloud::TelcoAutomation::V1::EdgeSlm]
658
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
659
+ #
660
+ # @return [::Google::Cloud::TelcoAutomation::V1::EdgeSlm]
661
+ #
662
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
663
+ #
664
+ # @example Basic example
665
+ # require "google/cloud/telco_automation/v1"
666
+ #
667
+ # # Create a client object. The client can be reused for multiple calls.
668
+ # client = Google::Cloud::TelcoAutomation::V1::TelcoAutomation::Rest::Client.new
669
+ #
670
+ # # Create a request. To set request fields, pass in keyword arguments.
671
+ # request = Google::Cloud::TelcoAutomation::V1::GetEdgeSlmRequest.new
672
+ #
673
+ # # Call the get_edge_slm method.
674
+ # result = client.get_edge_slm request
675
+ #
676
+ # # The returned object is of type Google::Cloud::TelcoAutomation::V1::EdgeSlm.
677
+ # p result
678
+ #
679
+ def get_edge_slm request, options = nil
680
+ raise ::ArgumentError, "request must be provided" if request.nil?
681
+
682
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::TelcoAutomation::V1::GetEdgeSlmRequest
683
+
684
+ # Converts hash and nil to an options object
685
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
686
+
687
+ # Customize the options with defaults
688
+ call_metadata = @config.rpcs.get_edge_slm.metadata.to_h
689
+
690
+ # Set x-goog-api-client and x-goog-user-project headers
691
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
692
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
693
+ gapic_version: ::Google::Cloud::TelcoAutomation::V1::VERSION,
694
+ transports_version_send: [:rest]
695
+
696
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
697
+
698
+ options.apply_defaults timeout: @config.rpcs.get_edge_slm.timeout,
699
+ metadata: call_metadata,
700
+ retry_policy: @config.rpcs.get_edge_slm.retry_policy
701
+
702
+ options.apply_defaults timeout: @config.timeout,
703
+ metadata: @config.metadata,
704
+ retry_policy: @config.retry_policy
705
+
706
+ @telco_automation_stub.get_edge_slm request, options do |result, operation|
707
+ yield result, operation if block_given?
708
+ return result
709
+ end
710
+ rescue ::Gapic::Rest::Error => e
711
+ raise ::Google::Cloud::Error.from_error(e)
712
+ end
713
+
714
+ ##
715
+ # Creates a new EdgeSlm in a given project and location.
716
+ #
717
+ # @overload create_edge_slm(request, options = nil)
718
+ # Pass arguments to `create_edge_slm` via a request object, either of type
719
+ # {::Google::Cloud::TelcoAutomation::V1::CreateEdgeSlmRequest} or an equivalent Hash.
720
+ #
721
+ # @param request [::Google::Cloud::TelcoAutomation::V1::CreateEdgeSlmRequest, ::Hash]
722
+ # A request object representing the call parameters. Required. To specify no
723
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
724
+ # @param options [::Gapic::CallOptions, ::Hash]
725
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
726
+ #
727
+ # @overload create_edge_slm(parent: nil, edge_slm_id: nil, edge_slm: nil, request_id: nil)
728
+ # Pass arguments to `create_edge_slm` via keyword arguments. Note that at
729
+ # least one keyword argument is required. To specify no parameters, or to keep all
730
+ # the default parameter values, pass an empty Hash as a request object (see above).
731
+ #
732
+ # @param parent [::String]
733
+ # Required. Value for parent.
734
+ # @param edge_slm_id [::String]
735
+ # Required. Id of the requesting object
736
+ # If auto-generating Id server-side, remove this field and
737
+ # edge_slm_id from the method_signature of Create RPC
738
+ # @param edge_slm [::Google::Cloud::TelcoAutomation::V1::EdgeSlm, ::Hash]
739
+ # Required. The resource being created
740
+ # @param request_id [::String]
741
+ # Optional. An optional request ID to identify requests. Specify a unique
742
+ # request ID so that if you must retry your request, the server will know to
743
+ # ignore the request if it has already been completed. The server will
744
+ # guarantee that for at least 60 minutes since the first request.
745
+ #
746
+ # For example, consider a situation where you make an initial request and
747
+ # the request times out. If you make the request again with the same request
748
+ # ID, the server can check if original operation with the same request ID
749
+ # was received, and if so, will ignore the second request. This prevents
750
+ # clients from accidentally creating duplicate commitments.
751
+ #
752
+ # The request ID must be a valid UUID with the exception that zero UUID is
753
+ # not supported (00000000-0000-0000-0000-000000000000).
754
+ # @yield [result, operation] Access the result along with the TransportOperation object
755
+ # @yieldparam result [::Gapic::Operation]
756
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
757
+ #
758
+ # @return [::Gapic::Operation]
759
+ #
760
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
761
+ #
762
+ # @example Basic example
763
+ # require "google/cloud/telco_automation/v1"
764
+ #
765
+ # # Create a client object. The client can be reused for multiple calls.
766
+ # client = Google::Cloud::TelcoAutomation::V1::TelcoAutomation::Rest::Client.new
767
+ #
768
+ # # Create a request. To set request fields, pass in keyword arguments.
769
+ # request = Google::Cloud::TelcoAutomation::V1::CreateEdgeSlmRequest.new
770
+ #
771
+ # # Call the create_edge_slm method.
772
+ # result = client.create_edge_slm request
773
+ #
774
+ # # The returned object is of type Gapic::Operation. You can use it to
775
+ # # check the status of an operation, cancel it, or wait for results.
776
+ # # Here is how to wait for a response.
777
+ # result.wait_until_done! timeout: 60
778
+ # if result.response?
779
+ # p result.response
780
+ # else
781
+ # puts "No response received."
782
+ # end
783
+ #
784
+ def create_edge_slm request, options = nil
785
+ raise ::ArgumentError, "request must be provided" if request.nil?
786
+
787
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::TelcoAutomation::V1::CreateEdgeSlmRequest
788
+
789
+ # Converts hash and nil to an options object
790
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
791
+
792
+ # Customize the options with defaults
793
+ call_metadata = @config.rpcs.create_edge_slm.metadata.to_h
794
+
795
+ # Set x-goog-api-client and x-goog-user-project headers
796
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
797
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
798
+ gapic_version: ::Google::Cloud::TelcoAutomation::V1::VERSION,
799
+ transports_version_send: [:rest]
800
+
801
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
802
+
803
+ options.apply_defaults timeout: @config.rpcs.create_edge_slm.timeout,
804
+ metadata: call_metadata,
805
+ retry_policy: @config.rpcs.create_edge_slm.retry_policy
806
+
807
+ options.apply_defaults timeout: @config.timeout,
808
+ metadata: @config.metadata,
809
+ retry_policy: @config.retry_policy
810
+
811
+ @telco_automation_stub.create_edge_slm request, options do |result, operation|
812
+ result = ::Gapic::Operation.new result, @operations_client, options: options
813
+ yield result, operation if block_given?
814
+ return result
815
+ end
816
+ rescue ::Gapic::Rest::Error => e
817
+ raise ::Google::Cloud::Error.from_error(e)
818
+ end
819
+
820
+ ##
821
+ # Deletes a single EdgeSlm.
822
+ #
823
+ # @overload delete_edge_slm(request, options = nil)
824
+ # Pass arguments to `delete_edge_slm` via a request object, either of type
825
+ # {::Google::Cloud::TelcoAutomation::V1::DeleteEdgeSlmRequest} or an equivalent Hash.
826
+ #
827
+ # @param request [::Google::Cloud::TelcoAutomation::V1::DeleteEdgeSlmRequest, ::Hash]
828
+ # A request object representing the call parameters. Required. To specify no
829
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
830
+ # @param options [::Gapic::CallOptions, ::Hash]
831
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
832
+ #
833
+ # @overload delete_edge_slm(name: nil, request_id: nil)
834
+ # Pass arguments to `delete_edge_slm` via keyword arguments. Note that at
835
+ # least one keyword argument is required. To specify no parameters, or to keep all
836
+ # the default parameter values, pass an empty Hash as a request object (see above).
837
+ #
838
+ # @param name [::String]
839
+ # Required. Name of the resource
840
+ # @param request_id [::String]
841
+ # Optional. An optional request ID to identify requests. Specify a unique
842
+ # request ID so that if you must retry your request, the server will know to
843
+ # ignore the request if it has already been completed. The server will
844
+ # guarantee that for at least 60 minutes after the first request.
845
+ #
846
+ # For example, consider a situation where you make an initial request and
847
+ # the request times out. If you make the request again with the same request
848
+ # ID, the server can check if original operation with the same request ID
849
+ # was received, and if so, will ignore the second request. This prevents
850
+ # clients from accidentally creating duplicate commitments.
851
+ #
852
+ # The request ID must be a valid UUID with the exception that zero UUID is
853
+ # not supported (00000000-0000-0000-0000-000000000000).
854
+ # @yield [result, operation] Access the result along with the TransportOperation object
855
+ # @yieldparam result [::Gapic::Operation]
856
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
857
+ #
858
+ # @return [::Gapic::Operation]
859
+ #
860
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
861
+ #
862
+ # @example Basic example
863
+ # require "google/cloud/telco_automation/v1"
864
+ #
865
+ # # Create a client object. The client can be reused for multiple calls.
866
+ # client = Google::Cloud::TelcoAutomation::V1::TelcoAutomation::Rest::Client.new
867
+ #
868
+ # # Create a request. To set request fields, pass in keyword arguments.
869
+ # request = Google::Cloud::TelcoAutomation::V1::DeleteEdgeSlmRequest.new
870
+ #
871
+ # # Call the delete_edge_slm method.
872
+ # result = client.delete_edge_slm request
873
+ #
874
+ # # The returned object is of type Gapic::Operation. You can use it to
875
+ # # check the status of an operation, cancel it, or wait for results.
876
+ # # Here is how to wait for a response.
877
+ # result.wait_until_done! timeout: 60
878
+ # if result.response?
879
+ # p result.response
880
+ # else
881
+ # puts "No response received."
882
+ # end
883
+ #
884
+ def delete_edge_slm request, options = nil
885
+ raise ::ArgumentError, "request must be provided" if request.nil?
886
+
887
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::TelcoAutomation::V1::DeleteEdgeSlmRequest
888
+
889
+ # Converts hash and nil to an options object
890
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
891
+
892
+ # Customize the options with defaults
893
+ call_metadata = @config.rpcs.delete_edge_slm.metadata.to_h
894
+
895
+ # Set x-goog-api-client and x-goog-user-project headers
896
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
897
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
898
+ gapic_version: ::Google::Cloud::TelcoAutomation::V1::VERSION,
899
+ transports_version_send: [:rest]
900
+
901
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
902
+
903
+ options.apply_defaults timeout: @config.rpcs.delete_edge_slm.timeout,
904
+ metadata: call_metadata,
905
+ retry_policy: @config.rpcs.delete_edge_slm.retry_policy
906
+
907
+ options.apply_defaults timeout: @config.timeout,
908
+ metadata: @config.metadata,
909
+ retry_policy: @config.retry_policy
910
+
911
+ @telco_automation_stub.delete_edge_slm request, options do |result, operation|
912
+ result = ::Gapic::Operation.new result, @operations_client, options: options
913
+ yield result, operation if block_given?
914
+ return result
915
+ end
916
+ rescue ::Gapic::Rest::Error => e
917
+ raise ::Google::Cloud::Error.from_error(e)
918
+ end
919
+
920
+ ##
921
+ # Creates a blueprint.
922
+ #
923
+ # @overload create_blueprint(request, options = nil)
924
+ # Pass arguments to `create_blueprint` via a request object, either of type
925
+ # {::Google::Cloud::TelcoAutomation::V1::CreateBlueprintRequest} or an equivalent Hash.
926
+ #
927
+ # @param request [::Google::Cloud::TelcoAutomation::V1::CreateBlueprintRequest, ::Hash]
928
+ # A request object representing the call parameters. Required. To specify no
929
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
930
+ # @param options [::Gapic::CallOptions, ::Hash]
931
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
932
+ #
933
+ # @overload create_blueprint(parent: nil, blueprint_id: nil, blueprint: nil)
934
+ # Pass arguments to `create_blueprint` via keyword arguments. Note that at
935
+ # least one keyword argument is required. To specify no parameters, or to keep all
936
+ # the default parameter values, pass an empty Hash as a request object (see above).
937
+ #
938
+ # @param parent [::String]
939
+ # Required. The name of parent resource.
940
+ # Format should be -
941
+ # "projects/\\{project_id}/locations/\\{location_name}/orchestrationClusters/\\{orchestration_cluster}".
942
+ # @param blueprint_id [::String]
943
+ # Optional. The name of the blueprint.
944
+ # @param blueprint [::Google::Cloud::TelcoAutomation::V1::Blueprint, ::Hash]
945
+ # Required. The `Blueprint` to create.
946
+ # @yield [result, operation] Access the result along with the TransportOperation object
947
+ # @yieldparam result [::Google::Cloud::TelcoAutomation::V1::Blueprint]
948
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
949
+ #
950
+ # @return [::Google::Cloud::TelcoAutomation::V1::Blueprint]
951
+ #
952
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
953
+ #
954
+ # @example Basic example
955
+ # require "google/cloud/telco_automation/v1"
956
+ #
957
+ # # Create a client object. The client can be reused for multiple calls.
958
+ # client = Google::Cloud::TelcoAutomation::V1::TelcoAutomation::Rest::Client.new
959
+ #
960
+ # # Create a request. To set request fields, pass in keyword arguments.
961
+ # request = Google::Cloud::TelcoAutomation::V1::CreateBlueprintRequest.new
962
+ #
963
+ # # Call the create_blueprint method.
964
+ # result = client.create_blueprint request
965
+ #
966
+ # # The returned object is of type Google::Cloud::TelcoAutomation::V1::Blueprint.
967
+ # p result
968
+ #
969
+ def create_blueprint request, options = nil
970
+ raise ::ArgumentError, "request must be provided" if request.nil?
971
+
972
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::TelcoAutomation::V1::CreateBlueprintRequest
973
+
974
+ # Converts hash and nil to an options object
975
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
976
+
977
+ # Customize the options with defaults
978
+ call_metadata = @config.rpcs.create_blueprint.metadata.to_h
979
+
980
+ # Set x-goog-api-client and x-goog-user-project headers
981
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
982
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
983
+ gapic_version: ::Google::Cloud::TelcoAutomation::V1::VERSION,
984
+ transports_version_send: [:rest]
985
+
986
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
987
+
988
+ options.apply_defaults timeout: @config.rpcs.create_blueprint.timeout,
989
+ metadata: call_metadata,
990
+ retry_policy: @config.rpcs.create_blueprint.retry_policy
991
+
992
+ options.apply_defaults timeout: @config.timeout,
993
+ metadata: @config.metadata,
994
+ retry_policy: @config.retry_policy
995
+
996
+ @telco_automation_stub.create_blueprint request, options do |result, operation|
997
+ yield result, operation if block_given?
998
+ return result
999
+ end
1000
+ rescue ::Gapic::Rest::Error => e
1001
+ raise ::Google::Cloud::Error.from_error(e)
1002
+ end
1003
+
1004
+ ##
1005
+ # Updates a blueprint.
1006
+ #
1007
+ # @overload update_blueprint(request, options = nil)
1008
+ # Pass arguments to `update_blueprint` via a request object, either of type
1009
+ # {::Google::Cloud::TelcoAutomation::V1::UpdateBlueprintRequest} or an equivalent Hash.
1010
+ #
1011
+ # @param request [::Google::Cloud::TelcoAutomation::V1::UpdateBlueprintRequest, ::Hash]
1012
+ # A request object representing the call parameters. Required. To specify no
1013
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
1014
+ # @param options [::Gapic::CallOptions, ::Hash]
1015
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1016
+ #
1017
+ # @overload update_blueprint(blueprint: nil, update_mask: nil)
1018
+ # Pass arguments to `update_blueprint` via keyword arguments. Note that at
1019
+ # least one keyword argument is required. To specify no parameters, or to keep all
1020
+ # the default parameter values, pass an empty Hash as a request object (see above).
1021
+ #
1022
+ # @param blueprint [::Google::Cloud::TelcoAutomation::V1::Blueprint, ::Hash]
1023
+ # Required. The `blueprint` to update.
1024
+ # @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
1025
+ # Required. Update mask is used to specify the fields to be overwritten in
1026
+ # the `blueprint` resource by the update.
1027
+ # @yield [result, operation] Access the result along with the TransportOperation object
1028
+ # @yieldparam result [::Google::Cloud::TelcoAutomation::V1::Blueprint]
1029
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1030
+ #
1031
+ # @return [::Google::Cloud::TelcoAutomation::V1::Blueprint]
1032
+ #
1033
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
1034
+ #
1035
+ # @example Basic example
1036
+ # require "google/cloud/telco_automation/v1"
1037
+ #
1038
+ # # Create a client object. The client can be reused for multiple calls.
1039
+ # client = Google::Cloud::TelcoAutomation::V1::TelcoAutomation::Rest::Client.new
1040
+ #
1041
+ # # Create a request. To set request fields, pass in keyword arguments.
1042
+ # request = Google::Cloud::TelcoAutomation::V1::UpdateBlueprintRequest.new
1043
+ #
1044
+ # # Call the update_blueprint method.
1045
+ # result = client.update_blueprint request
1046
+ #
1047
+ # # The returned object is of type Google::Cloud::TelcoAutomation::V1::Blueprint.
1048
+ # p result
1049
+ #
1050
+ def update_blueprint request, options = nil
1051
+ raise ::ArgumentError, "request must be provided" if request.nil?
1052
+
1053
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::TelcoAutomation::V1::UpdateBlueprintRequest
1054
+
1055
+ # Converts hash and nil to an options object
1056
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1057
+
1058
+ # Customize the options with defaults
1059
+ call_metadata = @config.rpcs.update_blueprint.metadata.to_h
1060
+
1061
+ # Set x-goog-api-client and x-goog-user-project headers
1062
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1063
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
1064
+ gapic_version: ::Google::Cloud::TelcoAutomation::V1::VERSION,
1065
+ transports_version_send: [:rest]
1066
+
1067
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1068
+
1069
+ options.apply_defaults timeout: @config.rpcs.update_blueprint.timeout,
1070
+ metadata: call_metadata,
1071
+ retry_policy: @config.rpcs.update_blueprint.retry_policy
1072
+
1073
+ options.apply_defaults timeout: @config.timeout,
1074
+ metadata: @config.metadata,
1075
+ retry_policy: @config.retry_policy
1076
+
1077
+ @telco_automation_stub.update_blueprint request, options do |result, operation|
1078
+ yield result, operation if block_given?
1079
+ return result
1080
+ end
1081
+ rescue ::Gapic::Rest::Error => e
1082
+ raise ::Google::Cloud::Error.from_error(e)
1083
+ end
1084
+
1085
+ ##
1086
+ # Returns the requested blueprint.
1087
+ #
1088
+ # @overload get_blueprint(request, options = nil)
1089
+ # Pass arguments to `get_blueprint` via a request object, either of type
1090
+ # {::Google::Cloud::TelcoAutomation::V1::GetBlueprintRequest} or an equivalent Hash.
1091
+ #
1092
+ # @param request [::Google::Cloud::TelcoAutomation::V1::GetBlueprintRequest, ::Hash]
1093
+ # A request object representing the call parameters. Required. To specify no
1094
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
1095
+ # @param options [::Gapic::CallOptions, ::Hash]
1096
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1097
+ #
1098
+ # @overload get_blueprint(name: nil, view: nil)
1099
+ # Pass arguments to `get_blueprint` via keyword arguments. Note that at
1100
+ # least one keyword argument is required. To specify no parameters, or to keep all
1101
+ # the default parameter values, pass an empty Hash as a request object (see above).
1102
+ #
1103
+ # @param name [::String]
1104
+ # Required. The name of the blueprint.
1105
+ # Case 1: If the name provided in the request is
1106
+ # \\{blueprint_id}@\\{revision_id}, then the revision with revision_id will be
1107
+ # returned. Case 2: If the name provided in the request is \\{blueprint}, then
1108
+ # the current state of the blueprint is returned.
1109
+ # @param view [::Google::Cloud::TelcoAutomation::V1::BlueprintView]
1110
+ # Optional. Defines the type of view of the blueprint.
1111
+ # When field is not present BLUEPRINT_VIEW_BASIC is considered as default.
1112
+ # @yield [result, operation] Access the result along with the TransportOperation object
1113
+ # @yieldparam result [::Google::Cloud::TelcoAutomation::V1::Blueprint]
1114
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1115
+ #
1116
+ # @return [::Google::Cloud::TelcoAutomation::V1::Blueprint]
1117
+ #
1118
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
1119
+ #
1120
+ # @example Basic example
1121
+ # require "google/cloud/telco_automation/v1"
1122
+ #
1123
+ # # Create a client object. The client can be reused for multiple calls.
1124
+ # client = Google::Cloud::TelcoAutomation::V1::TelcoAutomation::Rest::Client.new
1125
+ #
1126
+ # # Create a request. To set request fields, pass in keyword arguments.
1127
+ # request = Google::Cloud::TelcoAutomation::V1::GetBlueprintRequest.new
1128
+ #
1129
+ # # Call the get_blueprint method.
1130
+ # result = client.get_blueprint request
1131
+ #
1132
+ # # The returned object is of type Google::Cloud::TelcoAutomation::V1::Blueprint.
1133
+ # p result
1134
+ #
1135
+ def get_blueprint request, options = nil
1136
+ raise ::ArgumentError, "request must be provided" if request.nil?
1137
+
1138
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::TelcoAutomation::V1::GetBlueprintRequest
1139
+
1140
+ # Converts hash and nil to an options object
1141
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1142
+
1143
+ # Customize the options with defaults
1144
+ call_metadata = @config.rpcs.get_blueprint.metadata.to_h
1145
+
1146
+ # Set x-goog-api-client and x-goog-user-project headers
1147
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1148
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
1149
+ gapic_version: ::Google::Cloud::TelcoAutomation::V1::VERSION,
1150
+ transports_version_send: [:rest]
1151
+
1152
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1153
+
1154
+ options.apply_defaults timeout: @config.rpcs.get_blueprint.timeout,
1155
+ metadata: call_metadata,
1156
+ retry_policy: @config.rpcs.get_blueprint.retry_policy
1157
+
1158
+ options.apply_defaults timeout: @config.timeout,
1159
+ metadata: @config.metadata,
1160
+ retry_policy: @config.retry_policy
1161
+
1162
+ @telco_automation_stub.get_blueprint request, options do |result, operation|
1163
+ yield result, operation if block_given?
1164
+ return result
1165
+ end
1166
+ rescue ::Gapic::Rest::Error => e
1167
+ raise ::Google::Cloud::Error.from_error(e)
1168
+ end
1169
+
1170
+ ##
1171
+ # Deletes a blueprint and all its revisions.
1172
+ #
1173
+ # @overload delete_blueprint(request, options = nil)
1174
+ # Pass arguments to `delete_blueprint` via a request object, either of type
1175
+ # {::Google::Cloud::TelcoAutomation::V1::DeleteBlueprintRequest} or an equivalent Hash.
1176
+ #
1177
+ # @param request [::Google::Cloud::TelcoAutomation::V1::DeleteBlueprintRequest, ::Hash]
1178
+ # A request object representing the call parameters. Required. To specify no
1179
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
1180
+ # @param options [::Gapic::CallOptions, ::Hash]
1181
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1182
+ #
1183
+ # @overload delete_blueprint(name: nil)
1184
+ # Pass arguments to `delete_blueprint` via keyword arguments. Note that at
1185
+ # least one keyword argument is required. To specify no parameters, or to keep all
1186
+ # the default parameter values, pass an empty Hash as a request object (see above).
1187
+ #
1188
+ # @param name [::String]
1189
+ # Required. The name of blueprint to delete.
1190
+ # Blueprint name should be in the format \\{blueprint_id}, if
1191
+ # \\{blueprint_id}@\\{revision_id} is passed then the API throws invalid
1192
+ # argument.
1193
+ # @yield [result, operation] Access the result along with the TransportOperation object
1194
+ # @yieldparam result [::Google::Protobuf::Empty]
1195
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1196
+ #
1197
+ # @return [::Google::Protobuf::Empty]
1198
+ #
1199
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
1200
+ #
1201
+ # @example Basic example
1202
+ # require "google/cloud/telco_automation/v1"
1203
+ #
1204
+ # # Create a client object. The client can be reused for multiple calls.
1205
+ # client = Google::Cloud::TelcoAutomation::V1::TelcoAutomation::Rest::Client.new
1206
+ #
1207
+ # # Create a request. To set request fields, pass in keyword arguments.
1208
+ # request = Google::Cloud::TelcoAutomation::V1::DeleteBlueprintRequest.new
1209
+ #
1210
+ # # Call the delete_blueprint method.
1211
+ # result = client.delete_blueprint request
1212
+ #
1213
+ # # The returned object is of type Google::Protobuf::Empty.
1214
+ # p result
1215
+ #
1216
+ def delete_blueprint request, options = nil
1217
+ raise ::ArgumentError, "request must be provided" if request.nil?
1218
+
1219
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::TelcoAutomation::V1::DeleteBlueprintRequest
1220
+
1221
+ # Converts hash and nil to an options object
1222
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1223
+
1224
+ # Customize the options with defaults
1225
+ call_metadata = @config.rpcs.delete_blueprint.metadata.to_h
1226
+
1227
+ # Set x-goog-api-client and x-goog-user-project headers
1228
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1229
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
1230
+ gapic_version: ::Google::Cloud::TelcoAutomation::V1::VERSION,
1231
+ transports_version_send: [:rest]
1232
+
1233
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1234
+
1235
+ options.apply_defaults timeout: @config.rpcs.delete_blueprint.timeout,
1236
+ metadata: call_metadata,
1237
+ retry_policy: @config.rpcs.delete_blueprint.retry_policy
1238
+
1239
+ options.apply_defaults timeout: @config.timeout,
1240
+ metadata: @config.metadata,
1241
+ retry_policy: @config.retry_policy
1242
+
1243
+ @telco_automation_stub.delete_blueprint request, options do |result, operation|
1244
+ yield result, operation if block_given?
1245
+ return result
1246
+ end
1247
+ rescue ::Gapic::Rest::Error => e
1248
+ raise ::Google::Cloud::Error.from_error(e)
1249
+ end
1250
+
1251
+ ##
1252
+ # List all blueprints.
1253
+ #
1254
+ # @overload list_blueprints(request, options = nil)
1255
+ # Pass arguments to `list_blueprints` via a request object, either of type
1256
+ # {::Google::Cloud::TelcoAutomation::V1::ListBlueprintsRequest} or an equivalent Hash.
1257
+ #
1258
+ # @param request [::Google::Cloud::TelcoAutomation::V1::ListBlueprintsRequest, ::Hash]
1259
+ # A request object representing the call parameters. Required. To specify no
1260
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
1261
+ # @param options [::Gapic::CallOptions, ::Hash]
1262
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1263
+ #
1264
+ # @overload list_blueprints(parent: nil, filter: nil, page_size: nil, page_token: nil)
1265
+ # Pass arguments to `list_blueprints` via keyword arguments. Note that at
1266
+ # least one keyword argument is required. To specify no parameters, or to keep all
1267
+ # the default parameter values, pass an empty Hash as a request object (see above).
1268
+ #
1269
+ # @param parent [::String]
1270
+ # Required. The name of parent orchestration cluster resource.
1271
+ # Format should be -
1272
+ # "projects/\\{project_id}/locations/\\{location_name}/orchestrationClusters/\\{orchestration_cluster}".
1273
+ # @param filter [::String]
1274
+ # Optional. Filtering only supports equality on blueprint state.
1275
+ # It should be in the form: "state = DRAFT". `OR` operator can be used to
1276
+ # get response for multiple states. e.g. "state = DRAFT OR state = PROPOSED".
1277
+ # @param page_size [::Integer]
1278
+ # Optional. The maximum number of blueprints to return per page.
1279
+ # @param page_token [::String]
1280
+ # Optional. The page token, received from a previous ListBlueprints call.
1281
+ # It can be provided to retrieve the subsequent page.
1282
+ # @yield [result, operation] Access the result along with the TransportOperation object
1283
+ # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::TelcoAutomation::V1::Blueprint>]
1284
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1285
+ #
1286
+ # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::TelcoAutomation::V1::Blueprint>]
1287
+ #
1288
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
1289
+ #
1290
+ # @example Basic example
1291
+ # require "google/cloud/telco_automation/v1"
1292
+ #
1293
+ # # Create a client object. The client can be reused for multiple calls.
1294
+ # client = Google::Cloud::TelcoAutomation::V1::TelcoAutomation::Rest::Client.new
1295
+ #
1296
+ # # Create a request. To set request fields, pass in keyword arguments.
1297
+ # request = Google::Cloud::TelcoAutomation::V1::ListBlueprintsRequest.new
1298
+ #
1299
+ # # Call the list_blueprints method.
1300
+ # result = client.list_blueprints request
1301
+ #
1302
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
1303
+ # # over elements, and API calls will be issued to fetch pages as needed.
1304
+ # result.each do |item|
1305
+ # # Each element is of type ::Google::Cloud::TelcoAutomation::V1::Blueprint.
1306
+ # p item
1307
+ # end
1308
+ #
1309
+ def list_blueprints request, options = nil
1310
+ raise ::ArgumentError, "request must be provided" if request.nil?
1311
+
1312
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::TelcoAutomation::V1::ListBlueprintsRequest
1313
+
1314
+ # Converts hash and nil to an options object
1315
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1316
+
1317
+ # Customize the options with defaults
1318
+ call_metadata = @config.rpcs.list_blueprints.metadata.to_h
1319
+
1320
+ # Set x-goog-api-client and x-goog-user-project headers
1321
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1322
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
1323
+ gapic_version: ::Google::Cloud::TelcoAutomation::V1::VERSION,
1324
+ transports_version_send: [:rest]
1325
+
1326
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1327
+
1328
+ options.apply_defaults timeout: @config.rpcs.list_blueprints.timeout,
1329
+ metadata: call_metadata,
1330
+ retry_policy: @config.rpcs.list_blueprints.retry_policy
1331
+
1332
+ options.apply_defaults timeout: @config.timeout,
1333
+ metadata: @config.metadata,
1334
+ retry_policy: @config.retry_policy
1335
+
1336
+ @telco_automation_stub.list_blueprints request, options do |result, operation|
1337
+ result = ::Gapic::Rest::PagedEnumerable.new @telco_automation_stub, :list_blueprints, "blueprints", request, result, options
1338
+ yield result, operation if block_given?
1339
+ return result
1340
+ end
1341
+ rescue ::Gapic::Rest::Error => e
1342
+ raise ::Google::Cloud::Error.from_error(e)
1343
+ end
1344
+
1345
+ ##
1346
+ # Approves a blueprint and commits a new revision.
1347
+ #
1348
+ # @overload approve_blueprint(request, options = nil)
1349
+ # Pass arguments to `approve_blueprint` via a request object, either of type
1350
+ # {::Google::Cloud::TelcoAutomation::V1::ApproveBlueprintRequest} or an equivalent Hash.
1351
+ #
1352
+ # @param request [::Google::Cloud::TelcoAutomation::V1::ApproveBlueprintRequest, ::Hash]
1353
+ # A request object representing the call parameters. Required. To specify no
1354
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
1355
+ # @param options [::Gapic::CallOptions, ::Hash]
1356
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1357
+ #
1358
+ # @overload approve_blueprint(name: nil)
1359
+ # Pass arguments to `approve_blueprint` via keyword arguments. Note that at
1360
+ # least one keyword argument is required. To specify no parameters, or to keep all
1361
+ # the default parameter values, pass an empty Hash as a request object (see above).
1362
+ #
1363
+ # @param name [::String]
1364
+ # Required. The name of the blueprint to approve. The blueprint must be in
1365
+ # Proposed state. A new revision is committed on approval.
1366
+ # @yield [result, operation] Access the result along with the TransportOperation object
1367
+ # @yieldparam result [::Google::Cloud::TelcoAutomation::V1::Blueprint]
1368
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1369
+ #
1370
+ # @return [::Google::Cloud::TelcoAutomation::V1::Blueprint]
1371
+ #
1372
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
1373
+ #
1374
+ # @example Basic example
1375
+ # require "google/cloud/telco_automation/v1"
1376
+ #
1377
+ # # Create a client object. The client can be reused for multiple calls.
1378
+ # client = Google::Cloud::TelcoAutomation::V1::TelcoAutomation::Rest::Client.new
1379
+ #
1380
+ # # Create a request. To set request fields, pass in keyword arguments.
1381
+ # request = Google::Cloud::TelcoAutomation::V1::ApproveBlueprintRequest.new
1382
+ #
1383
+ # # Call the approve_blueprint method.
1384
+ # result = client.approve_blueprint request
1385
+ #
1386
+ # # The returned object is of type Google::Cloud::TelcoAutomation::V1::Blueprint.
1387
+ # p result
1388
+ #
1389
+ def approve_blueprint request, options = nil
1390
+ raise ::ArgumentError, "request must be provided" if request.nil?
1391
+
1392
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::TelcoAutomation::V1::ApproveBlueprintRequest
1393
+
1394
+ # Converts hash and nil to an options object
1395
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1396
+
1397
+ # Customize the options with defaults
1398
+ call_metadata = @config.rpcs.approve_blueprint.metadata.to_h
1399
+
1400
+ # Set x-goog-api-client and x-goog-user-project headers
1401
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1402
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
1403
+ gapic_version: ::Google::Cloud::TelcoAutomation::V1::VERSION,
1404
+ transports_version_send: [:rest]
1405
+
1406
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1407
+
1408
+ options.apply_defaults timeout: @config.rpcs.approve_blueprint.timeout,
1409
+ metadata: call_metadata,
1410
+ retry_policy: @config.rpcs.approve_blueprint.retry_policy
1411
+
1412
+ options.apply_defaults timeout: @config.timeout,
1413
+ metadata: @config.metadata,
1414
+ retry_policy: @config.retry_policy
1415
+
1416
+ @telco_automation_stub.approve_blueprint request, options do |result, operation|
1417
+ yield result, operation if block_given?
1418
+ return result
1419
+ end
1420
+ rescue ::Gapic::Rest::Error => e
1421
+ raise ::Google::Cloud::Error.from_error(e)
1422
+ end
1423
+
1424
+ ##
1425
+ # Proposes a blueprint for approval of changes.
1426
+ #
1427
+ # @overload propose_blueprint(request, options = nil)
1428
+ # Pass arguments to `propose_blueprint` via a request object, either of type
1429
+ # {::Google::Cloud::TelcoAutomation::V1::ProposeBlueprintRequest} or an equivalent Hash.
1430
+ #
1431
+ # @param request [::Google::Cloud::TelcoAutomation::V1::ProposeBlueprintRequest, ::Hash]
1432
+ # A request object representing the call parameters. Required. To specify no
1433
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
1434
+ # @param options [::Gapic::CallOptions, ::Hash]
1435
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1436
+ #
1437
+ # @overload propose_blueprint(name: nil)
1438
+ # Pass arguments to `propose_blueprint` via keyword arguments. Note that at
1439
+ # least one keyword argument is required. To specify no parameters, or to keep all
1440
+ # the default parameter values, pass an empty Hash as a request object (see above).
1441
+ #
1442
+ # @param name [::String]
1443
+ # Required. The name of the blueprint being proposed.
1444
+ # @yield [result, operation] Access the result along with the TransportOperation object
1445
+ # @yieldparam result [::Google::Cloud::TelcoAutomation::V1::Blueprint]
1446
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1447
+ #
1448
+ # @return [::Google::Cloud::TelcoAutomation::V1::Blueprint]
1449
+ #
1450
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
1451
+ #
1452
+ # @example Basic example
1453
+ # require "google/cloud/telco_automation/v1"
1454
+ #
1455
+ # # Create a client object. The client can be reused for multiple calls.
1456
+ # client = Google::Cloud::TelcoAutomation::V1::TelcoAutomation::Rest::Client.new
1457
+ #
1458
+ # # Create a request. To set request fields, pass in keyword arguments.
1459
+ # request = Google::Cloud::TelcoAutomation::V1::ProposeBlueprintRequest.new
1460
+ #
1461
+ # # Call the propose_blueprint method.
1462
+ # result = client.propose_blueprint request
1463
+ #
1464
+ # # The returned object is of type Google::Cloud::TelcoAutomation::V1::Blueprint.
1465
+ # p result
1466
+ #
1467
+ def propose_blueprint request, options = nil
1468
+ raise ::ArgumentError, "request must be provided" if request.nil?
1469
+
1470
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::TelcoAutomation::V1::ProposeBlueprintRequest
1471
+
1472
+ # Converts hash and nil to an options object
1473
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1474
+
1475
+ # Customize the options with defaults
1476
+ call_metadata = @config.rpcs.propose_blueprint.metadata.to_h
1477
+
1478
+ # Set x-goog-api-client and x-goog-user-project headers
1479
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1480
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
1481
+ gapic_version: ::Google::Cloud::TelcoAutomation::V1::VERSION,
1482
+ transports_version_send: [:rest]
1483
+
1484
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1485
+
1486
+ options.apply_defaults timeout: @config.rpcs.propose_blueprint.timeout,
1487
+ metadata: call_metadata,
1488
+ retry_policy: @config.rpcs.propose_blueprint.retry_policy
1489
+
1490
+ options.apply_defaults timeout: @config.timeout,
1491
+ metadata: @config.metadata,
1492
+ retry_policy: @config.retry_policy
1493
+
1494
+ @telco_automation_stub.propose_blueprint request, options do |result, operation|
1495
+ yield result, operation if block_given?
1496
+ return result
1497
+ end
1498
+ rescue ::Gapic::Rest::Error => e
1499
+ raise ::Google::Cloud::Error.from_error(e)
1500
+ end
1501
+
1502
+ ##
1503
+ # Rejects a blueprint revision proposal and flips it back to Draft state.
1504
+ #
1505
+ # @overload reject_blueprint(request, options = nil)
1506
+ # Pass arguments to `reject_blueprint` via a request object, either of type
1507
+ # {::Google::Cloud::TelcoAutomation::V1::RejectBlueprintRequest} or an equivalent Hash.
1508
+ #
1509
+ # @param request [::Google::Cloud::TelcoAutomation::V1::RejectBlueprintRequest, ::Hash]
1510
+ # A request object representing the call parameters. Required. To specify no
1511
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
1512
+ # @param options [::Gapic::CallOptions, ::Hash]
1513
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1514
+ #
1515
+ # @overload reject_blueprint(name: nil)
1516
+ # Pass arguments to `reject_blueprint` via keyword arguments. Note that at
1517
+ # least one keyword argument is required. To specify no parameters, or to keep all
1518
+ # the default parameter values, pass an empty Hash as a request object (see above).
1519
+ #
1520
+ # @param name [::String]
1521
+ # Required. The name of the blueprint being rejected.
1522
+ # @yield [result, operation] Access the result along with the TransportOperation object
1523
+ # @yieldparam result [::Google::Cloud::TelcoAutomation::V1::Blueprint]
1524
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1525
+ #
1526
+ # @return [::Google::Cloud::TelcoAutomation::V1::Blueprint]
1527
+ #
1528
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
1529
+ #
1530
+ # @example Basic example
1531
+ # require "google/cloud/telco_automation/v1"
1532
+ #
1533
+ # # Create a client object. The client can be reused for multiple calls.
1534
+ # client = Google::Cloud::TelcoAutomation::V1::TelcoAutomation::Rest::Client.new
1535
+ #
1536
+ # # Create a request. To set request fields, pass in keyword arguments.
1537
+ # request = Google::Cloud::TelcoAutomation::V1::RejectBlueprintRequest.new
1538
+ #
1539
+ # # Call the reject_blueprint method.
1540
+ # result = client.reject_blueprint request
1541
+ #
1542
+ # # The returned object is of type Google::Cloud::TelcoAutomation::V1::Blueprint.
1543
+ # p result
1544
+ #
1545
+ def reject_blueprint request, options = nil
1546
+ raise ::ArgumentError, "request must be provided" if request.nil?
1547
+
1548
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::TelcoAutomation::V1::RejectBlueprintRequest
1549
+
1550
+ # Converts hash and nil to an options object
1551
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1552
+
1553
+ # Customize the options with defaults
1554
+ call_metadata = @config.rpcs.reject_blueprint.metadata.to_h
1555
+
1556
+ # Set x-goog-api-client and x-goog-user-project headers
1557
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1558
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
1559
+ gapic_version: ::Google::Cloud::TelcoAutomation::V1::VERSION,
1560
+ transports_version_send: [:rest]
1561
+
1562
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1563
+
1564
+ options.apply_defaults timeout: @config.rpcs.reject_blueprint.timeout,
1565
+ metadata: call_metadata,
1566
+ retry_policy: @config.rpcs.reject_blueprint.retry_policy
1567
+
1568
+ options.apply_defaults timeout: @config.timeout,
1569
+ metadata: @config.metadata,
1570
+ retry_policy: @config.retry_policy
1571
+
1572
+ @telco_automation_stub.reject_blueprint request, options do |result, operation|
1573
+ yield result, operation if block_given?
1574
+ return result
1575
+ end
1576
+ rescue ::Gapic::Rest::Error => e
1577
+ raise ::Google::Cloud::Error.from_error(e)
1578
+ end
1579
+
1580
+ ##
1581
+ # List blueprint revisions of a given blueprint.
1582
+ #
1583
+ # @overload list_blueprint_revisions(request, options = nil)
1584
+ # Pass arguments to `list_blueprint_revisions` via a request object, either of type
1585
+ # {::Google::Cloud::TelcoAutomation::V1::ListBlueprintRevisionsRequest} or an equivalent Hash.
1586
+ #
1587
+ # @param request [::Google::Cloud::TelcoAutomation::V1::ListBlueprintRevisionsRequest, ::Hash]
1588
+ # A request object representing the call parameters. Required. To specify no
1589
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
1590
+ # @param options [::Gapic::CallOptions, ::Hash]
1591
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1592
+ #
1593
+ # @overload list_blueprint_revisions(name: nil, page_size: nil, page_token: nil)
1594
+ # Pass arguments to `list_blueprint_revisions` via keyword arguments. Note that at
1595
+ # least one keyword argument is required. To specify no parameters, or to keep all
1596
+ # the default parameter values, pass an empty Hash as a request object (see above).
1597
+ #
1598
+ # @param name [::String]
1599
+ # Required. The name of the blueprint to list revisions for.
1600
+ # @param page_size [::Integer]
1601
+ # The maximum number of revisions to return per page.
1602
+ # @param page_token [::String]
1603
+ # The page token, received from a previous ListBlueprintRevisions call
1604
+ # It can be provided to retrieve the subsequent page.
1605
+ # @yield [result, operation] Access the result along with the TransportOperation object
1606
+ # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::TelcoAutomation::V1::Blueprint>]
1607
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1608
+ #
1609
+ # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::TelcoAutomation::V1::Blueprint>]
1610
+ #
1611
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
1612
+ #
1613
+ # @example Basic example
1614
+ # require "google/cloud/telco_automation/v1"
1615
+ #
1616
+ # # Create a client object. The client can be reused for multiple calls.
1617
+ # client = Google::Cloud::TelcoAutomation::V1::TelcoAutomation::Rest::Client.new
1618
+ #
1619
+ # # Create a request. To set request fields, pass in keyword arguments.
1620
+ # request = Google::Cloud::TelcoAutomation::V1::ListBlueprintRevisionsRequest.new
1621
+ #
1622
+ # # Call the list_blueprint_revisions method.
1623
+ # result = client.list_blueprint_revisions request
1624
+ #
1625
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
1626
+ # # over elements, and API calls will be issued to fetch pages as needed.
1627
+ # result.each do |item|
1628
+ # # Each element is of type ::Google::Cloud::TelcoAutomation::V1::Blueprint.
1629
+ # p item
1630
+ # end
1631
+ #
1632
+ def list_blueprint_revisions request, options = nil
1633
+ raise ::ArgumentError, "request must be provided" if request.nil?
1634
+
1635
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::TelcoAutomation::V1::ListBlueprintRevisionsRequest
1636
+
1637
+ # Converts hash and nil to an options object
1638
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1639
+
1640
+ # Customize the options with defaults
1641
+ call_metadata = @config.rpcs.list_blueprint_revisions.metadata.to_h
1642
+
1643
+ # Set x-goog-api-client and x-goog-user-project headers
1644
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1645
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
1646
+ gapic_version: ::Google::Cloud::TelcoAutomation::V1::VERSION,
1647
+ transports_version_send: [:rest]
1648
+
1649
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1650
+
1651
+ options.apply_defaults timeout: @config.rpcs.list_blueprint_revisions.timeout,
1652
+ metadata: call_metadata,
1653
+ retry_policy: @config.rpcs.list_blueprint_revisions.retry_policy
1654
+
1655
+ options.apply_defaults timeout: @config.timeout,
1656
+ metadata: @config.metadata,
1657
+ retry_policy: @config.retry_policy
1658
+
1659
+ @telco_automation_stub.list_blueprint_revisions request, options do |result, operation|
1660
+ result = ::Gapic::Rest::PagedEnumerable.new @telco_automation_stub, :list_blueprint_revisions, "blueprints", request, result, options
1661
+ yield result, operation if block_given?
1662
+ return result
1663
+ end
1664
+ rescue ::Gapic::Rest::Error => e
1665
+ raise ::Google::Cloud::Error.from_error(e)
1666
+ end
1667
+
1668
+ ##
1669
+ # Searches across blueprint revisions.
1670
+ #
1671
+ # @overload search_blueprint_revisions(request, options = nil)
1672
+ # Pass arguments to `search_blueprint_revisions` via a request object, either of type
1673
+ # {::Google::Cloud::TelcoAutomation::V1::SearchBlueprintRevisionsRequest} or an equivalent Hash.
1674
+ #
1675
+ # @param request [::Google::Cloud::TelcoAutomation::V1::SearchBlueprintRevisionsRequest, ::Hash]
1676
+ # A request object representing the call parameters. Required. To specify no
1677
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
1678
+ # @param options [::Gapic::CallOptions, ::Hash]
1679
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1680
+ #
1681
+ # @overload search_blueprint_revisions(parent: nil, query: nil, page_size: nil, page_token: nil)
1682
+ # Pass arguments to `search_blueprint_revisions` via keyword arguments. Note that at
1683
+ # least one keyword argument is required. To specify no parameters, or to keep all
1684
+ # the default parameter values, pass an empty Hash as a request object (see above).
1685
+ #
1686
+ # @param parent [::String]
1687
+ # Required. The name of parent orchestration cluster resource.
1688
+ # Format should be -
1689
+ # "projects/\\{project_id}/locations/\\{location_name}/orchestrationClusters/\\{orchestration_cluster}".
1690
+ # @param query [::String]
1691
+ # Required. Supported queries:
1692
+ # 1. "" : Lists all revisions across all blueprints.
1693
+ # 2. "latest=true" : Lists latest revisions across all blueprints.
1694
+ # 3. "name=\\{name}" : Lists all revisions of blueprint with name
1695
+ # \\{name}.
1696
+ # 4. "name=\\{name} latest=true": Lists latest revision of blueprint with name
1697
+ # \\{name}
1698
+ # @param page_size [::Integer]
1699
+ # Optional. The maximum number of blueprints revisions to return per page.
1700
+ # max page size = 100, default page size = 20.
1701
+ # @param page_token [::String]
1702
+ # Optional. The page token, received from a previous search call.
1703
+ # It can be provided to retrieve the subsequent page.
1704
+ # @yield [result, operation] Access the result along with the TransportOperation object
1705
+ # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::TelcoAutomation::V1::Blueprint>]
1706
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1707
+ #
1708
+ # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::TelcoAutomation::V1::Blueprint>]
1709
+ #
1710
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
1711
+ #
1712
+ # @example Basic example
1713
+ # require "google/cloud/telco_automation/v1"
1714
+ #
1715
+ # # Create a client object. The client can be reused for multiple calls.
1716
+ # client = Google::Cloud::TelcoAutomation::V1::TelcoAutomation::Rest::Client.new
1717
+ #
1718
+ # # Create a request. To set request fields, pass in keyword arguments.
1719
+ # request = Google::Cloud::TelcoAutomation::V1::SearchBlueprintRevisionsRequest.new
1720
+ #
1721
+ # # Call the search_blueprint_revisions method.
1722
+ # result = client.search_blueprint_revisions request
1723
+ #
1724
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
1725
+ # # over elements, and API calls will be issued to fetch pages as needed.
1726
+ # result.each do |item|
1727
+ # # Each element is of type ::Google::Cloud::TelcoAutomation::V1::Blueprint.
1728
+ # p item
1729
+ # end
1730
+ #
1731
+ def search_blueprint_revisions request, options = nil
1732
+ raise ::ArgumentError, "request must be provided" if request.nil?
1733
+
1734
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::TelcoAutomation::V1::SearchBlueprintRevisionsRequest
1735
+
1736
+ # Converts hash and nil to an options object
1737
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1738
+
1739
+ # Customize the options with defaults
1740
+ call_metadata = @config.rpcs.search_blueprint_revisions.metadata.to_h
1741
+
1742
+ # Set x-goog-api-client and x-goog-user-project headers
1743
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1744
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
1745
+ gapic_version: ::Google::Cloud::TelcoAutomation::V1::VERSION,
1746
+ transports_version_send: [:rest]
1747
+
1748
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1749
+
1750
+ options.apply_defaults timeout: @config.rpcs.search_blueprint_revisions.timeout,
1751
+ metadata: call_metadata,
1752
+ retry_policy: @config.rpcs.search_blueprint_revisions.retry_policy
1753
+
1754
+ options.apply_defaults timeout: @config.timeout,
1755
+ metadata: @config.metadata,
1756
+ retry_policy: @config.retry_policy
1757
+
1758
+ @telco_automation_stub.search_blueprint_revisions request, options do |result, operation|
1759
+ result = ::Gapic::Rest::PagedEnumerable.new @telco_automation_stub, :search_blueprint_revisions, "blueprints", request, result, options
1760
+ yield result, operation if block_given?
1761
+ return result
1762
+ end
1763
+ rescue ::Gapic::Rest::Error => e
1764
+ raise ::Google::Cloud::Error.from_error(e)
1765
+ end
1766
+
1767
+ ##
1768
+ # Searches across deployment revisions.
1769
+ #
1770
+ # @overload search_deployment_revisions(request, options = nil)
1771
+ # Pass arguments to `search_deployment_revisions` via a request object, either of type
1772
+ # {::Google::Cloud::TelcoAutomation::V1::SearchDeploymentRevisionsRequest} or an equivalent Hash.
1773
+ #
1774
+ # @param request [::Google::Cloud::TelcoAutomation::V1::SearchDeploymentRevisionsRequest, ::Hash]
1775
+ # A request object representing the call parameters. Required. To specify no
1776
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
1777
+ # @param options [::Gapic::CallOptions, ::Hash]
1778
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1779
+ #
1780
+ # @overload search_deployment_revisions(parent: nil, query: nil, page_size: nil, page_token: nil)
1781
+ # Pass arguments to `search_deployment_revisions` via keyword arguments. Note that at
1782
+ # least one keyword argument is required. To specify no parameters, or to keep all
1783
+ # the default parameter values, pass an empty Hash as a request object (see above).
1784
+ #
1785
+ # @param parent [::String]
1786
+ # Required. The name of parent orchestration cluster resource.
1787
+ # Format should be -
1788
+ # "projects/\\{project_id}/locations/\\{location_name}/orchestrationClusters/\\{orchestration_cluster}".
1789
+ # @param query [::String]
1790
+ # Required. Supported queries:
1791
+ # 1. "" : Lists all revisions across all deployments.
1792
+ # 2. "latest=true" : Lists latest revisions across all
1793
+ # deployments.
1794
+ # 3. "name=\\{name}" : Lists all revisions of deployment with name
1795
+ # \\{name}.
1796
+ # 4. "name=\\{name} latest=true": Lists latest revision of deployment with name
1797
+ # \\{name}
1798
+ # @param page_size [::Integer]
1799
+ # Optional. The maximum number of deployment revisions to return per page.
1800
+ # max page size = 100, default page size = 20.
1801
+ # @param page_token [::String]
1802
+ # Optional. The page token, received from a previous search call.
1803
+ # It can be provided to retrieve the subsequent page.
1804
+ # @yield [result, operation] Access the result along with the TransportOperation object
1805
+ # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::TelcoAutomation::V1::Deployment>]
1806
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1807
+ #
1808
+ # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::TelcoAutomation::V1::Deployment>]
1809
+ #
1810
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
1811
+ #
1812
+ # @example Basic example
1813
+ # require "google/cloud/telco_automation/v1"
1814
+ #
1815
+ # # Create a client object. The client can be reused for multiple calls.
1816
+ # client = Google::Cloud::TelcoAutomation::V1::TelcoAutomation::Rest::Client.new
1817
+ #
1818
+ # # Create a request. To set request fields, pass in keyword arguments.
1819
+ # request = Google::Cloud::TelcoAutomation::V1::SearchDeploymentRevisionsRequest.new
1820
+ #
1821
+ # # Call the search_deployment_revisions method.
1822
+ # result = client.search_deployment_revisions request
1823
+ #
1824
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
1825
+ # # over elements, and API calls will be issued to fetch pages as needed.
1826
+ # result.each do |item|
1827
+ # # Each element is of type ::Google::Cloud::TelcoAutomation::V1::Deployment.
1828
+ # p item
1829
+ # end
1830
+ #
1831
+ def search_deployment_revisions request, options = nil
1832
+ raise ::ArgumentError, "request must be provided" if request.nil?
1833
+
1834
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::TelcoAutomation::V1::SearchDeploymentRevisionsRequest
1835
+
1836
+ # Converts hash and nil to an options object
1837
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1838
+
1839
+ # Customize the options with defaults
1840
+ call_metadata = @config.rpcs.search_deployment_revisions.metadata.to_h
1841
+
1842
+ # Set x-goog-api-client and x-goog-user-project headers
1843
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1844
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
1845
+ gapic_version: ::Google::Cloud::TelcoAutomation::V1::VERSION,
1846
+ transports_version_send: [:rest]
1847
+
1848
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1849
+
1850
+ options.apply_defaults timeout: @config.rpcs.search_deployment_revisions.timeout,
1851
+ metadata: call_metadata,
1852
+ retry_policy: @config.rpcs.search_deployment_revisions.retry_policy
1853
+
1854
+ options.apply_defaults timeout: @config.timeout,
1855
+ metadata: @config.metadata,
1856
+ retry_policy: @config.retry_policy
1857
+
1858
+ @telco_automation_stub.search_deployment_revisions request, options do |result, operation|
1859
+ result = ::Gapic::Rest::PagedEnumerable.new @telco_automation_stub, :search_deployment_revisions, "deployments", request, result, options
1860
+ yield result, operation if block_given?
1861
+ return result
1862
+ end
1863
+ rescue ::Gapic::Rest::Error => e
1864
+ raise ::Google::Cloud::Error.from_error(e)
1865
+ end
1866
+
1867
+ ##
1868
+ # Discards the changes in a blueprint and reverts the blueprint to the last
1869
+ # approved blueprint revision. No changes take place if a blueprint does not
1870
+ # have revisions.
1871
+ #
1872
+ # @overload discard_blueprint_changes(request, options = nil)
1873
+ # Pass arguments to `discard_blueprint_changes` via a request object, either of type
1874
+ # {::Google::Cloud::TelcoAutomation::V1::DiscardBlueprintChangesRequest} or an equivalent Hash.
1875
+ #
1876
+ # @param request [::Google::Cloud::TelcoAutomation::V1::DiscardBlueprintChangesRequest, ::Hash]
1877
+ # A request object representing the call parameters. Required. To specify no
1878
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
1879
+ # @param options [::Gapic::CallOptions, ::Hash]
1880
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1881
+ #
1882
+ # @overload discard_blueprint_changes(name: nil)
1883
+ # Pass arguments to `discard_blueprint_changes` via keyword arguments. Note that at
1884
+ # least one keyword argument is required. To specify no parameters, or to keep all
1885
+ # the default parameter values, pass an empty Hash as a request object (see above).
1886
+ #
1887
+ # @param name [::String]
1888
+ # Required. The name of the blueprint of which changes are being discarded.
1889
+ # @yield [result, operation] Access the result along with the TransportOperation object
1890
+ # @yieldparam result [::Google::Cloud::TelcoAutomation::V1::DiscardBlueprintChangesResponse]
1891
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1892
+ #
1893
+ # @return [::Google::Cloud::TelcoAutomation::V1::DiscardBlueprintChangesResponse]
1894
+ #
1895
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
1896
+ #
1897
+ # @example Basic example
1898
+ # require "google/cloud/telco_automation/v1"
1899
+ #
1900
+ # # Create a client object. The client can be reused for multiple calls.
1901
+ # client = Google::Cloud::TelcoAutomation::V1::TelcoAutomation::Rest::Client.new
1902
+ #
1903
+ # # Create a request. To set request fields, pass in keyword arguments.
1904
+ # request = Google::Cloud::TelcoAutomation::V1::DiscardBlueprintChangesRequest.new
1905
+ #
1906
+ # # Call the discard_blueprint_changes method.
1907
+ # result = client.discard_blueprint_changes request
1908
+ #
1909
+ # # The returned object is of type Google::Cloud::TelcoAutomation::V1::DiscardBlueprintChangesResponse.
1910
+ # p result
1911
+ #
1912
+ def discard_blueprint_changes request, options = nil
1913
+ raise ::ArgumentError, "request must be provided" if request.nil?
1914
+
1915
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::TelcoAutomation::V1::DiscardBlueprintChangesRequest
1916
+
1917
+ # Converts hash and nil to an options object
1918
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1919
+
1920
+ # Customize the options with defaults
1921
+ call_metadata = @config.rpcs.discard_blueprint_changes.metadata.to_h
1922
+
1923
+ # Set x-goog-api-client and x-goog-user-project headers
1924
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1925
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
1926
+ gapic_version: ::Google::Cloud::TelcoAutomation::V1::VERSION,
1927
+ transports_version_send: [:rest]
1928
+
1929
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1930
+
1931
+ options.apply_defaults timeout: @config.rpcs.discard_blueprint_changes.timeout,
1932
+ metadata: call_metadata,
1933
+ retry_policy: @config.rpcs.discard_blueprint_changes.retry_policy
1934
+
1935
+ options.apply_defaults timeout: @config.timeout,
1936
+ metadata: @config.metadata,
1937
+ retry_policy: @config.retry_policy
1938
+
1939
+ @telco_automation_stub.discard_blueprint_changes request, options do |result, operation|
1940
+ yield result, operation if block_given?
1941
+ return result
1942
+ end
1943
+ rescue ::Gapic::Rest::Error => e
1944
+ raise ::Google::Cloud::Error.from_error(e)
1945
+ end
1946
+
1947
+ ##
1948
+ # Lists the blueprints in TNA's public catalog. Default page size = 20,
1949
+ # Max Page Size = 100.
1950
+ #
1951
+ # @overload list_public_blueprints(request, options = nil)
1952
+ # Pass arguments to `list_public_blueprints` via a request object, either of type
1953
+ # {::Google::Cloud::TelcoAutomation::V1::ListPublicBlueprintsRequest} or an equivalent Hash.
1954
+ #
1955
+ # @param request [::Google::Cloud::TelcoAutomation::V1::ListPublicBlueprintsRequest, ::Hash]
1956
+ # A request object representing the call parameters. Required. To specify no
1957
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
1958
+ # @param options [::Gapic::CallOptions, ::Hash]
1959
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1960
+ #
1961
+ # @overload list_public_blueprints(parent: nil, page_size: nil, page_token: nil)
1962
+ # Pass arguments to `list_public_blueprints` via keyword arguments. Note that at
1963
+ # least one keyword argument is required. To specify no parameters, or to keep all
1964
+ # the default parameter values, pass an empty Hash as a request object (see above).
1965
+ #
1966
+ # @param parent [::String]
1967
+ # Required. Parent value of public blueprint.
1968
+ # Format should be -
1969
+ # "projects/\\{project_id}/locations/\\{location_name}".
1970
+ # @param page_size [::Integer]
1971
+ # Optional. Requested page size. Server may return fewer items than
1972
+ # requested. If unspecified, server will pick an appropriate default.
1973
+ # @param page_token [::String]
1974
+ # Optional. A token identifying a page of results the server should return.
1975
+ # @yield [result, operation] Access the result along with the TransportOperation object
1976
+ # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::TelcoAutomation::V1::PublicBlueprint>]
1977
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1978
+ #
1979
+ # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::TelcoAutomation::V1::PublicBlueprint>]
1980
+ #
1981
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
1982
+ #
1983
+ # @example Basic example
1984
+ # require "google/cloud/telco_automation/v1"
1985
+ #
1986
+ # # Create a client object. The client can be reused for multiple calls.
1987
+ # client = Google::Cloud::TelcoAutomation::V1::TelcoAutomation::Rest::Client.new
1988
+ #
1989
+ # # Create a request. To set request fields, pass in keyword arguments.
1990
+ # request = Google::Cloud::TelcoAutomation::V1::ListPublicBlueprintsRequest.new
1991
+ #
1992
+ # # Call the list_public_blueprints method.
1993
+ # result = client.list_public_blueprints request
1994
+ #
1995
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
1996
+ # # over elements, and API calls will be issued to fetch pages as needed.
1997
+ # result.each do |item|
1998
+ # # Each element is of type ::Google::Cloud::TelcoAutomation::V1::PublicBlueprint.
1999
+ # p item
2000
+ # end
2001
+ #
2002
+ def list_public_blueprints request, options = nil
2003
+ raise ::ArgumentError, "request must be provided" if request.nil?
2004
+
2005
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::TelcoAutomation::V1::ListPublicBlueprintsRequest
2006
+
2007
+ # Converts hash and nil to an options object
2008
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
2009
+
2010
+ # Customize the options with defaults
2011
+ call_metadata = @config.rpcs.list_public_blueprints.metadata.to_h
2012
+
2013
+ # Set x-goog-api-client and x-goog-user-project headers
2014
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2015
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
2016
+ gapic_version: ::Google::Cloud::TelcoAutomation::V1::VERSION,
2017
+ transports_version_send: [:rest]
2018
+
2019
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2020
+
2021
+ options.apply_defaults timeout: @config.rpcs.list_public_blueprints.timeout,
2022
+ metadata: call_metadata,
2023
+ retry_policy: @config.rpcs.list_public_blueprints.retry_policy
2024
+
2025
+ options.apply_defaults timeout: @config.timeout,
2026
+ metadata: @config.metadata,
2027
+ retry_policy: @config.retry_policy
2028
+
2029
+ @telco_automation_stub.list_public_blueprints request, options do |result, operation|
2030
+ result = ::Gapic::Rest::PagedEnumerable.new @telco_automation_stub, :list_public_blueprints, "public_blueprints", request, result, options
2031
+ yield result, operation if block_given?
2032
+ return result
2033
+ end
2034
+ rescue ::Gapic::Rest::Error => e
2035
+ raise ::Google::Cloud::Error.from_error(e)
2036
+ end
2037
+
2038
+ ##
2039
+ # Returns the requested public blueprint.
2040
+ #
2041
+ # @overload get_public_blueprint(request, options = nil)
2042
+ # Pass arguments to `get_public_blueprint` via a request object, either of type
2043
+ # {::Google::Cloud::TelcoAutomation::V1::GetPublicBlueprintRequest} or an equivalent Hash.
2044
+ #
2045
+ # @param request [::Google::Cloud::TelcoAutomation::V1::GetPublicBlueprintRequest, ::Hash]
2046
+ # A request object representing the call parameters. Required. To specify no
2047
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
2048
+ # @param options [::Gapic::CallOptions, ::Hash]
2049
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
2050
+ #
2051
+ # @overload get_public_blueprint(name: nil)
2052
+ # Pass arguments to `get_public_blueprint` via keyword arguments. Note that at
2053
+ # least one keyword argument is required. To specify no parameters, or to keep all
2054
+ # the default parameter values, pass an empty Hash as a request object (see above).
2055
+ #
2056
+ # @param name [::String]
2057
+ # Required. The name of the public blueprint.
2058
+ # @yield [result, operation] Access the result along with the TransportOperation object
2059
+ # @yieldparam result [::Google::Cloud::TelcoAutomation::V1::PublicBlueprint]
2060
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
2061
+ #
2062
+ # @return [::Google::Cloud::TelcoAutomation::V1::PublicBlueprint]
2063
+ #
2064
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
2065
+ #
2066
+ # @example Basic example
2067
+ # require "google/cloud/telco_automation/v1"
2068
+ #
2069
+ # # Create a client object. The client can be reused for multiple calls.
2070
+ # client = Google::Cloud::TelcoAutomation::V1::TelcoAutomation::Rest::Client.new
2071
+ #
2072
+ # # Create a request. To set request fields, pass in keyword arguments.
2073
+ # request = Google::Cloud::TelcoAutomation::V1::GetPublicBlueprintRequest.new
2074
+ #
2075
+ # # Call the get_public_blueprint method.
2076
+ # result = client.get_public_blueprint request
2077
+ #
2078
+ # # The returned object is of type Google::Cloud::TelcoAutomation::V1::PublicBlueprint.
2079
+ # p result
2080
+ #
2081
+ def get_public_blueprint request, options = nil
2082
+ raise ::ArgumentError, "request must be provided" if request.nil?
2083
+
2084
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::TelcoAutomation::V1::GetPublicBlueprintRequest
2085
+
2086
+ # Converts hash and nil to an options object
2087
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
2088
+
2089
+ # Customize the options with defaults
2090
+ call_metadata = @config.rpcs.get_public_blueprint.metadata.to_h
2091
+
2092
+ # Set x-goog-api-client and x-goog-user-project headers
2093
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2094
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
2095
+ gapic_version: ::Google::Cloud::TelcoAutomation::V1::VERSION,
2096
+ transports_version_send: [:rest]
2097
+
2098
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2099
+
2100
+ options.apply_defaults timeout: @config.rpcs.get_public_blueprint.timeout,
2101
+ metadata: call_metadata,
2102
+ retry_policy: @config.rpcs.get_public_blueprint.retry_policy
2103
+
2104
+ options.apply_defaults timeout: @config.timeout,
2105
+ metadata: @config.metadata,
2106
+ retry_policy: @config.retry_policy
2107
+
2108
+ @telco_automation_stub.get_public_blueprint request, options do |result, operation|
2109
+ yield result, operation if block_given?
2110
+ return result
2111
+ end
2112
+ rescue ::Gapic::Rest::Error => e
2113
+ raise ::Google::Cloud::Error.from_error(e)
2114
+ end
2115
+
2116
+ ##
2117
+ # Creates a deployment.
2118
+ #
2119
+ # @overload create_deployment(request, options = nil)
2120
+ # Pass arguments to `create_deployment` via a request object, either of type
2121
+ # {::Google::Cloud::TelcoAutomation::V1::CreateDeploymentRequest} or an equivalent Hash.
2122
+ #
2123
+ # @param request [::Google::Cloud::TelcoAutomation::V1::CreateDeploymentRequest, ::Hash]
2124
+ # A request object representing the call parameters. Required. To specify no
2125
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
2126
+ # @param options [::Gapic::CallOptions, ::Hash]
2127
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
2128
+ #
2129
+ # @overload create_deployment(parent: nil, deployment_id: nil, deployment: nil)
2130
+ # Pass arguments to `create_deployment` via keyword arguments. Note that at
2131
+ # least one keyword argument is required. To specify no parameters, or to keep all
2132
+ # the default parameter values, pass an empty Hash as a request object (see above).
2133
+ #
2134
+ # @param parent [::String]
2135
+ # Required. The name of parent resource.
2136
+ # Format should be -
2137
+ # "projects/\\{project_id}/locations/\\{location_name}/orchestrationClusters/\\{orchestration_cluster}".
2138
+ # @param deployment_id [::String]
2139
+ # Optional. The name of the deployment.
2140
+ # @param deployment [::Google::Cloud::TelcoAutomation::V1::Deployment, ::Hash]
2141
+ # Required. The `Deployment` to create.
2142
+ # @yield [result, operation] Access the result along with the TransportOperation object
2143
+ # @yieldparam result [::Google::Cloud::TelcoAutomation::V1::Deployment]
2144
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
2145
+ #
2146
+ # @return [::Google::Cloud::TelcoAutomation::V1::Deployment]
2147
+ #
2148
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
2149
+ #
2150
+ # @example Basic example
2151
+ # require "google/cloud/telco_automation/v1"
2152
+ #
2153
+ # # Create a client object. The client can be reused for multiple calls.
2154
+ # client = Google::Cloud::TelcoAutomation::V1::TelcoAutomation::Rest::Client.new
2155
+ #
2156
+ # # Create a request. To set request fields, pass in keyword arguments.
2157
+ # request = Google::Cloud::TelcoAutomation::V1::CreateDeploymentRequest.new
2158
+ #
2159
+ # # Call the create_deployment method.
2160
+ # result = client.create_deployment request
2161
+ #
2162
+ # # The returned object is of type Google::Cloud::TelcoAutomation::V1::Deployment.
2163
+ # p result
2164
+ #
2165
+ def create_deployment request, options = nil
2166
+ raise ::ArgumentError, "request must be provided" if request.nil?
2167
+
2168
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::TelcoAutomation::V1::CreateDeploymentRequest
2169
+
2170
+ # Converts hash and nil to an options object
2171
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
2172
+
2173
+ # Customize the options with defaults
2174
+ call_metadata = @config.rpcs.create_deployment.metadata.to_h
2175
+
2176
+ # Set x-goog-api-client and x-goog-user-project headers
2177
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2178
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
2179
+ gapic_version: ::Google::Cloud::TelcoAutomation::V1::VERSION,
2180
+ transports_version_send: [:rest]
2181
+
2182
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2183
+
2184
+ options.apply_defaults timeout: @config.rpcs.create_deployment.timeout,
2185
+ metadata: call_metadata,
2186
+ retry_policy: @config.rpcs.create_deployment.retry_policy
2187
+
2188
+ options.apply_defaults timeout: @config.timeout,
2189
+ metadata: @config.metadata,
2190
+ retry_policy: @config.retry_policy
2191
+
2192
+ @telco_automation_stub.create_deployment request, options do |result, operation|
2193
+ yield result, operation if block_given?
2194
+ return result
2195
+ end
2196
+ rescue ::Gapic::Rest::Error => e
2197
+ raise ::Google::Cloud::Error.from_error(e)
2198
+ end
2199
+
2200
+ ##
2201
+ # Updates a deployment.
2202
+ #
2203
+ # @overload update_deployment(request, options = nil)
2204
+ # Pass arguments to `update_deployment` via a request object, either of type
2205
+ # {::Google::Cloud::TelcoAutomation::V1::UpdateDeploymentRequest} or an equivalent Hash.
2206
+ #
2207
+ # @param request [::Google::Cloud::TelcoAutomation::V1::UpdateDeploymentRequest, ::Hash]
2208
+ # A request object representing the call parameters. Required. To specify no
2209
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
2210
+ # @param options [::Gapic::CallOptions, ::Hash]
2211
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
2212
+ #
2213
+ # @overload update_deployment(deployment: nil, update_mask: nil)
2214
+ # Pass arguments to `update_deployment` via keyword arguments. Note that at
2215
+ # least one keyword argument is required. To specify no parameters, or to keep all
2216
+ # the default parameter values, pass an empty Hash as a request object (see above).
2217
+ #
2218
+ # @param deployment [::Google::Cloud::TelcoAutomation::V1::Deployment, ::Hash]
2219
+ # Required. The `deployment` to update.
2220
+ # @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
2221
+ # Required. Update mask is used to specify the fields to be overwritten in
2222
+ # the `deployment` resource by the update.
2223
+ # @yield [result, operation] Access the result along with the TransportOperation object
2224
+ # @yieldparam result [::Google::Cloud::TelcoAutomation::V1::Deployment]
2225
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
2226
+ #
2227
+ # @return [::Google::Cloud::TelcoAutomation::V1::Deployment]
2228
+ #
2229
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
2230
+ #
2231
+ # @example Basic example
2232
+ # require "google/cloud/telco_automation/v1"
2233
+ #
2234
+ # # Create a client object. The client can be reused for multiple calls.
2235
+ # client = Google::Cloud::TelcoAutomation::V1::TelcoAutomation::Rest::Client.new
2236
+ #
2237
+ # # Create a request. To set request fields, pass in keyword arguments.
2238
+ # request = Google::Cloud::TelcoAutomation::V1::UpdateDeploymentRequest.new
2239
+ #
2240
+ # # Call the update_deployment method.
2241
+ # result = client.update_deployment request
2242
+ #
2243
+ # # The returned object is of type Google::Cloud::TelcoAutomation::V1::Deployment.
2244
+ # p result
2245
+ #
2246
+ def update_deployment request, options = nil
2247
+ raise ::ArgumentError, "request must be provided" if request.nil?
2248
+
2249
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::TelcoAutomation::V1::UpdateDeploymentRequest
2250
+
2251
+ # Converts hash and nil to an options object
2252
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
2253
+
2254
+ # Customize the options with defaults
2255
+ call_metadata = @config.rpcs.update_deployment.metadata.to_h
2256
+
2257
+ # Set x-goog-api-client and x-goog-user-project headers
2258
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2259
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
2260
+ gapic_version: ::Google::Cloud::TelcoAutomation::V1::VERSION,
2261
+ transports_version_send: [:rest]
2262
+
2263
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2264
+
2265
+ options.apply_defaults timeout: @config.rpcs.update_deployment.timeout,
2266
+ metadata: call_metadata,
2267
+ retry_policy: @config.rpcs.update_deployment.retry_policy
2268
+
2269
+ options.apply_defaults timeout: @config.timeout,
2270
+ metadata: @config.metadata,
2271
+ retry_policy: @config.retry_policy
2272
+
2273
+ @telco_automation_stub.update_deployment request, options do |result, operation|
2274
+ yield result, operation if block_given?
2275
+ return result
2276
+ end
2277
+ rescue ::Gapic::Rest::Error => e
2278
+ raise ::Google::Cloud::Error.from_error(e)
2279
+ end
2280
+
2281
+ ##
2282
+ # Returns the requested deployment.
2283
+ #
2284
+ # @overload get_deployment(request, options = nil)
2285
+ # Pass arguments to `get_deployment` via a request object, either of type
2286
+ # {::Google::Cloud::TelcoAutomation::V1::GetDeploymentRequest} or an equivalent Hash.
2287
+ #
2288
+ # @param request [::Google::Cloud::TelcoAutomation::V1::GetDeploymentRequest, ::Hash]
2289
+ # A request object representing the call parameters. Required. To specify no
2290
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
2291
+ # @param options [::Gapic::CallOptions, ::Hash]
2292
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
2293
+ #
2294
+ # @overload get_deployment(name: nil, view: nil)
2295
+ # Pass arguments to `get_deployment` via keyword arguments. Note that at
2296
+ # least one keyword argument is required. To specify no parameters, or to keep all
2297
+ # the default parameter values, pass an empty Hash as a request object (see above).
2298
+ #
2299
+ # @param name [::String]
2300
+ # Required. The name of the deployment.
2301
+ # Case 1: If the name provided in the request is
2302
+ # \\{deployment_id}@\\{revision_id}, then the revision with revision_id will be
2303
+ # returned.
2304
+ # Case 2: If the name provided in the request is \\{deployment}, then
2305
+ # the current state of the deployment is returned.
2306
+ # @param view [::Google::Cloud::TelcoAutomation::V1::DeploymentView]
2307
+ # Optional. Defines the type of view of the deployment.
2308
+ # When field is not present VIEW_BASIC is considered as default.
2309
+ # @yield [result, operation] Access the result along with the TransportOperation object
2310
+ # @yieldparam result [::Google::Cloud::TelcoAutomation::V1::Deployment]
2311
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
2312
+ #
2313
+ # @return [::Google::Cloud::TelcoAutomation::V1::Deployment]
2314
+ #
2315
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
2316
+ #
2317
+ # @example Basic example
2318
+ # require "google/cloud/telco_automation/v1"
2319
+ #
2320
+ # # Create a client object. The client can be reused for multiple calls.
2321
+ # client = Google::Cloud::TelcoAutomation::V1::TelcoAutomation::Rest::Client.new
2322
+ #
2323
+ # # Create a request. To set request fields, pass in keyword arguments.
2324
+ # request = Google::Cloud::TelcoAutomation::V1::GetDeploymentRequest.new
2325
+ #
2326
+ # # Call the get_deployment method.
2327
+ # result = client.get_deployment request
2328
+ #
2329
+ # # The returned object is of type Google::Cloud::TelcoAutomation::V1::Deployment.
2330
+ # p result
2331
+ #
2332
+ def get_deployment request, options = nil
2333
+ raise ::ArgumentError, "request must be provided" if request.nil?
2334
+
2335
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::TelcoAutomation::V1::GetDeploymentRequest
2336
+
2337
+ # Converts hash and nil to an options object
2338
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
2339
+
2340
+ # Customize the options with defaults
2341
+ call_metadata = @config.rpcs.get_deployment.metadata.to_h
2342
+
2343
+ # Set x-goog-api-client and x-goog-user-project headers
2344
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2345
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
2346
+ gapic_version: ::Google::Cloud::TelcoAutomation::V1::VERSION,
2347
+ transports_version_send: [:rest]
2348
+
2349
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2350
+
2351
+ options.apply_defaults timeout: @config.rpcs.get_deployment.timeout,
2352
+ metadata: call_metadata,
2353
+ retry_policy: @config.rpcs.get_deployment.retry_policy
2354
+
2355
+ options.apply_defaults timeout: @config.timeout,
2356
+ metadata: @config.metadata,
2357
+ retry_policy: @config.retry_policy
2358
+
2359
+ @telco_automation_stub.get_deployment request, options do |result, operation|
2360
+ yield result, operation if block_given?
2361
+ return result
2362
+ end
2363
+ rescue ::Gapic::Rest::Error => e
2364
+ raise ::Google::Cloud::Error.from_error(e)
2365
+ end
2366
+
2367
+ ##
2368
+ # Removes the deployment by marking it as DELETING. Post which deployment and
2369
+ # it's revisions gets deleted.
2370
+ #
2371
+ # @overload remove_deployment(request, options = nil)
2372
+ # Pass arguments to `remove_deployment` via a request object, either of type
2373
+ # {::Google::Cloud::TelcoAutomation::V1::RemoveDeploymentRequest} or an equivalent Hash.
2374
+ #
2375
+ # @param request [::Google::Cloud::TelcoAutomation::V1::RemoveDeploymentRequest, ::Hash]
2376
+ # A request object representing the call parameters. Required. To specify no
2377
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
2378
+ # @param options [::Gapic::CallOptions, ::Hash]
2379
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
2380
+ #
2381
+ # @overload remove_deployment(name: nil)
2382
+ # Pass arguments to `remove_deployment` via keyword arguments. Note that at
2383
+ # least one keyword argument is required. To specify no parameters, or to keep all
2384
+ # the default parameter values, pass an empty Hash as a request object (see above).
2385
+ #
2386
+ # @param name [::String]
2387
+ # Required. The name of deployment to initiate delete.
2388
+ # @yield [result, operation] Access the result along with the TransportOperation object
2389
+ # @yieldparam result [::Google::Protobuf::Empty]
2390
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
2391
+ #
2392
+ # @return [::Google::Protobuf::Empty]
2393
+ #
2394
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
2395
+ #
2396
+ # @example Basic example
2397
+ # require "google/cloud/telco_automation/v1"
2398
+ #
2399
+ # # Create a client object. The client can be reused for multiple calls.
2400
+ # client = Google::Cloud::TelcoAutomation::V1::TelcoAutomation::Rest::Client.new
2401
+ #
2402
+ # # Create a request. To set request fields, pass in keyword arguments.
2403
+ # request = Google::Cloud::TelcoAutomation::V1::RemoveDeploymentRequest.new
2404
+ #
2405
+ # # Call the remove_deployment method.
2406
+ # result = client.remove_deployment request
2407
+ #
2408
+ # # The returned object is of type Google::Protobuf::Empty.
2409
+ # p result
2410
+ #
2411
+ def remove_deployment request, options = nil
2412
+ raise ::ArgumentError, "request must be provided" if request.nil?
2413
+
2414
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::TelcoAutomation::V1::RemoveDeploymentRequest
2415
+
2416
+ # Converts hash and nil to an options object
2417
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
2418
+
2419
+ # Customize the options with defaults
2420
+ call_metadata = @config.rpcs.remove_deployment.metadata.to_h
2421
+
2422
+ # Set x-goog-api-client and x-goog-user-project headers
2423
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2424
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
2425
+ gapic_version: ::Google::Cloud::TelcoAutomation::V1::VERSION,
2426
+ transports_version_send: [:rest]
2427
+
2428
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2429
+
2430
+ options.apply_defaults timeout: @config.rpcs.remove_deployment.timeout,
2431
+ metadata: call_metadata,
2432
+ retry_policy: @config.rpcs.remove_deployment.retry_policy
2433
+
2434
+ options.apply_defaults timeout: @config.timeout,
2435
+ metadata: @config.metadata,
2436
+ retry_policy: @config.retry_policy
2437
+
2438
+ @telco_automation_stub.remove_deployment request, options do |result, operation|
2439
+ yield result, operation if block_given?
2440
+ return result
2441
+ end
2442
+ rescue ::Gapic::Rest::Error => e
2443
+ raise ::Google::Cloud::Error.from_error(e)
2444
+ end
2445
+
2446
+ ##
2447
+ # List all deployments.
2448
+ #
2449
+ # @overload list_deployments(request, options = nil)
2450
+ # Pass arguments to `list_deployments` via a request object, either of type
2451
+ # {::Google::Cloud::TelcoAutomation::V1::ListDeploymentsRequest} or an equivalent Hash.
2452
+ #
2453
+ # @param request [::Google::Cloud::TelcoAutomation::V1::ListDeploymentsRequest, ::Hash]
2454
+ # A request object representing the call parameters. Required. To specify no
2455
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
2456
+ # @param options [::Gapic::CallOptions, ::Hash]
2457
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
2458
+ #
2459
+ # @overload list_deployments(parent: nil, filter: nil, page_size: nil, page_token: nil)
2460
+ # Pass arguments to `list_deployments` via keyword arguments. Note that at
2461
+ # least one keyword argument is required. To specify no parameters, or to keep all
2462
+ # the default parameter values, pass an empty Hash as a request object (see above).
2463
+ #
2464
+ # @param parent [::String]
2465
+ # Required. The name of parent orchestration cluster resource.
2466
+ # Format should be -
2467
+ # "projects/\\{project_id}/locations/\\{location_name}/orchestrationClusters/\\{orchestration_cluster}".
2468
+ # @param filter [::String]
2469
+ # Optional. Filtering only supports equality on deployment state.
2470
+ # It should be in the form: "state = DRAFT". `OR` operator can be used to
2471
+ # get response for multiple states. e.g. "state = DRAFT OR state = APPLIED".
2472
+ # @param page_size [::Integer]
2473
+ # Optional. The maximum number of deployments to return per page.
2474
+ # @param page_token [::String]
2475
+ # Optional. The page token, received from a previous ListDeployments call.
2476
+ # It can be provided to retrieve the subsequent page.
2477
+ # @yield [result, operation] Access the result along with the TransportOperation object
2478
+ # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::TelcoAutomation::V1::Deployment>]
2479
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
2480
+ #
2481
+ # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::TelcoAutomation::V1::Deployment>]
2482
+ #
2483
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
2484
+ #
2485
+ # @example Basic example
2486
+ # require "google/cloud/telco_automation/v1"
2487
+ #
2488
+ # # Create a client object. The client can be reused for multiple calls.
2489
+ # client = Google::Cloud::TelcoAutomation::V1::TelcoAutomation::Rest::Client.new
2490
+ #
2491
+ # # Create a request. To set request fields, pass in keyword arguments.
2492
+ # request = Google::Cloud::TelcoAutomation::V1::ListDeploymentsRequest.new
2493
+ #
2494
+ # # Call the list_deployments method.
2495
+ # result = client.list_deployments request
2496
+ #
2497
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
2498
+ # # over elements, and API calls will be issued to fetch pages as needed.
2499
+ # result.each do |item|
2500
+ # # Each element is of type ::Google::Cloud::TelcoAutomation::V1::Deployment.
2501
+ # p item
2502
+ # end
2503
+ #
2504
+ def list_deployments request, options = nil
2505
+ raise ::ArgumentError, "request must be provided" if request.nil?
2506
+
2507
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::TelcoAutomation::V1::ListDeploymentsRequest
2508
+
2509
+ # Converts hash and nil to an options object
2510
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
2511
+
2512
+ # Customize the options with defaults
2513
+ call_metadata = @config.rpcs.list_deployments.metadata.to_h
2514
+
2515
+ # Set x-goog-api-client and x-goog-user-project headers
2516
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2517
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
2518
+ gapic_version: ::Google::Cloud::TelcoAutomation::V1::VERSION,
2519
+ transports_version_send: [:rest]
2520
+
2521
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2522
+
2523
+ options.apply_defaults timeout: @config.rpcs.list_deployments.timeout,
2524
+ metadata: call_metadata,
2525
+ retry_policy: @config.rpcs.list_deployments.retry_policy
2526
+
2527
+ options.apply_defaults timeout: @config.timeout,
2528
+ metadata: @config.metadata,
2529
+ retry_policy: @config.retry_policy
2530
+
2531
+ @telco_automation_stub.list_deployments request, options do |result, operation|
2532
+ result = ::Gapic::Rest::PagedEnumerable.new @telco_automation_stub, :list_deployments, "deployments", request, result, options
2533
+ yield result, operation if block_given?
2534
+ return result
2535
+ end
2536
+ rescue ::Gapic::Rest::Error => e
2537
+ raise ::Google::Cloud::Error.from_error(e)
2538
+ end
2539
+
2540
+ ##
2541
+ # List deployment revisions of a given deployment.
2542
+ #
2543
+ # @overload list_deployment_revisions(request, options = nil)
2544
+ # Pass arguments to `list_deployment_revisions` via a request object, either of type
2545
+ # {::Google::Cloud::TelcoAutomation::V1::ListDeploymentRevisionsRequest} or an equivalent Hash.
2546
+ #
2547
+ # @param request [::Google::Cloud::TelcoAutomation::V1::ListDeploymentRevisionsRequest, ::Hash]
2548
+ # A request object representing the call parameters. Required. To specify no
2549
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
2550
+ # @param options [::Gapic::CallOptions, ::Hash]
2551
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
2552
+ #
2553
+ # @overload list_deployment_revisions(name: nil, page_size: nil, page_token: nil)
2554
+ # Pass arguments to `list_deployment_revisions` via keyword arguments. Note that at
2555
+ # least one keyword argument is required. To specify no parameters, or to keep all
2556
+ # the default parameter values, pass an empty Hash as a request object (see above).
2557
+ #
2558
+ # @param name [::String]
2559
+ # Required. The name of the deployment to list revisions for.
2560
+ # @param page_size [::Integer]
2561
+ # Optional. The maximum number of revisions to return per page.
2562
+ # @param page_token [::String]
2563
+ # Optional. The page token, received from a previous ListDeploymentRevisions
2564
+ # call Provide this to retrieve the subsequent page.
2565
+ # @yield [result, operation] Access the result along with the TransportOperation object
2566
+ # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::TelcoAutomation::V1::Deployment>]
2567
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
2568
+ #
2569
+ # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::TelcoAutomation::V1::Deployment>]
2570
+ #
2571
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
2572
+ #
2573
+ # @example Basic example
2574
+ # require "google/cloud/telco_automation/v1"
2575
+ #
2576
+ # # Create a client object. The client can be reused for multiple calls.
2577
+ # client = Google::Cloud::TelcoAutomation::V1::TelcoAutomation::Rest::Client.new
2578
+ #
2579
+ # # Create a request. To set request fields, pass in keyword arguments.
2580
+ # request = Google::Cloud::TelcoAutomation::V1::ListDeploymentRevisionsRequest.new
2581
+ #
2582
+ # # Call the list_deployment_revisions method.
2583
+ # result = client.list_deployment_revisions request
2584
+ #
2585
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
2586
+ # # over elements, and API calls will be issued to fetch pages as needed.
2587
+ # result.each do |item|
2588
+ # # Each element is of type ::Google::Cloud::TelcoAutomation::V1::Deployment.
2589
+ # p item
2590
+ # end
2591
+ #
2592
+ def list_deployment_revisions request, options = nil
2593
+ raise ::ArgumentError, "request must be provided" if request.nil?
2594
+
2595
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::TelcoAutomation::V1::ListDeploymentRevisionsRequest
2596
+
2597
+ # Converts hash and nil to an options object
2598
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
2599
+
2600
+ # Customize the options with defaults
2601
+ call_metadata = @config.rpcs.list_deployment_revisions.metadata.to_h
2602
+
2603
+ # Set x-goog-api-client and x-goog-user-project headers
2604
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2605
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
2606
+ gapic_version: ::Google::Cloud::TelcoAutomation::V1::VERSION,
2607
+ transports_version_send: [:rest]
2608
+
2609
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2610
+
2611
+ options.apply_defaults timeout: @config.rpcs.list_deployment_revisions.timeout,
2612
+ metadata: call_metadata,
2613
+ retry_policy: @config.rpcs.list_deployment_revisions.retry_policy
2614
+
2615
+ options.apply_defaults timeout: @config.timeout,
2616
+ metadata: @config.metadata,
2617
+ retry_policy: @config.retry_policy
2618
+
2619
+ @telco_automation_stub.list_deployment_revisions request, options do |result, operation|
2620
+ result = ::Gapic::Rest::PagedEnumerable.new @telco_automation_stub, :list_deployment_revisions, "deployments", request, result, options
2621
+ yield result, operation if block_given?
2622
+ return result
2623
+ end
2624
+ rescue ::Gapic::Rest::Error => e
2625
+ raise ::Google::Cloud::Error.from_error(e)
2626
+ end
2627
+
2628
+ ##
2629
+ # Discards the changes in a deployment and reverts the deployment to the last
2630
+ # approved deployment revision. No changes take place if a deployment does
2631
+ # not have revisions.
2632
+ #
2633
+ # @overload discard_deployment_changes(request, options = nil)
2634
+ # Pass arguments to `discard_deployment_changes` via a request object, either of type
2635
+ # {::Google::Cloud::TelcoAutomation::V1::DiscardDeploymentChangesRequest} or an equivalent Hash.
2636
+ #
2637
+ # @param request [::Google::Cloud::TelcoAutomation::V1::DiscardDeploymentChangesRequest, ::Hash]
2638
+ # A request object representing the call parameters. Required. To specify no
2639
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
2640
+ # @param options [::Gapic::CallOptions, ::Hash]
2641
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
2642
+ #
2643
+ # @overload discard_deployment_changes(name: nil)
2644
+ # Pass arguments to `discard_deployment_changes` via keyword arguments. Note that at
2645
+ # least one keyword argument is required. To specify no parameters, or to keep all
2646
+ # the default parameter values, pass an empty Hash as a request object (see above).
2647
+ #
2648
+ # @param name [::String]
2649
+ # Required. The name of the deployment of which changes are being discarded.
2650
+ # @yield [result, operation] Access the result along with the TransportOperation object
2651
+ # @yieldparam result [::Google::Cloud::TelcoAutomation::V1::DiscardDeploymentChangesResponse]
2652
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
2653
+ #
2654
+ # @return [::Google::Cloud::TelcoAutomation::V1::DiscardDeploymentChangesResponse]
2655
+ #
2656
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
2657
+ #
2658
+ # @example Basic example
2659
+ # require "google/cloud/telco_automation/v1"
2660
+ #
2661
+ # # Create a client object. The client can be reused for multiple calls.
2662
+ # client = Google::Cloud::TelcoAutomation::V1::TelcoAutomation::Rest::Client.new
2663
+ #
2664
+ # # Create a request. To set request fields, pass in keyword arguments.
2665
+ # request = Google::Cloud::TelcoAutomation::V1::DiscardDeploymentChangesRequest.new
2666
+ #
2667
+ # # Call the discard_deployment_changes method.
2668
+ # result = client.discard_deployment_changes request
2669
+ #
2670
+ # # The returned object is of type Google::Cloud::TelcoAutomation::V1::DiscardDeploymentChangesResponse.
2671
+ # p result
2672
+ #
2673
+ def discard_deployment_changes request, options = nil
2674
+ raise ::ArgumentError, "request must be provided" if request.nil?
2675
+
2676
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::TelcoAutomation::V1::DiscardDeploymentChangesRequest
2677
+
2678
+ # Converts hash and nil to an options object
2679
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
2680
+
2681
+ # Customize the options with defaults
2682
+ call_metadata = @config.rpcs.discard_deployment_changes.metadata.to_h
2683
+
2684
+ # Set x-goog-api-client and x-goog-user-project headers
2685
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2686
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
2687
+ gapic_version: ::Google::Cloud::TelcoAutomation::V1::VERSION,
2688
+ transports_version_send: [:rest]
2689
+
2690
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2691
+
2692
+ options.apply_defaults timeout: @config.rpcs.discard_deployment_changes.timeout,
2693
+ metadata: call_metadata,
2694
+ retry_policy: @config.rpcs.discard_deployment_changes.retry_policy
2695
+
2696
+ options.apply_defaults timeout: @config.timeout,
2697
+ metadata: @config.metadata,
2698
+ retry_policy: @config.retry_policy
2699
+
2700
+ @telco_automation_stub.discard_deployment_changes request, options do |result, operation|
2701
+ yield result, operation if block_given?
2702
+ return result
2703
+ end
2704
+ rescue ::Gapic::Rest::Error => e
2705
+ raise ::Google::Cloud::Error.from_error(e)
2706
+ end
2707
+
2708
+ ##
2709
+ # Applies the deployment's YAML files to the parent orchestration cluster.
2710
+ #
2711
+ # @overload apply_deployment(request, options = nil)
2712
+ # Pass arguments to `apply_deployment` via a request object, either of type
2713
+ # {::Google::Cloud::TelcoAutomation::V1::ApplyDeploymentRequest} or an equivalent Hash.
2714
+ #
2715
+ # @param request [::Google::Cloud::TelcoAutomation::V1::ApplyDeploymentRequest, ::Hash]
2716
+ # A request object representing the call parameters. Required. To specify no
2717
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
2718
+ # @param options [::Gapic::CallOptions, ::Hash]
2719
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
2720
+ #
2721
+ # @overload apply_deployment(name: nil)
2722
+ # Pass arguments to `apply_deployment` via keyword arguments. Note that at
2723
+ # least one keyword argument is required. To specify no parameters, or to keep all
2724
+ # the default parameter values, pass an empty Hash as a request object (see above).
2725
+ #
2726
+ # @param name [::String]
2727
+ # Required. The name of the deployment to apply to orchestration cluster.
2728
+ # @yield [result, operation] Access the result along with the TransportOperation object
2729
+ # @yieldparam result [::Google::Cloud::TelcoAutomation::V1::Deployment]
2730
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
2731
+ #
2732
+ # @return [::Google::Cloud::TelcoAutomation::V1::Deployment]
2733
+ #
2734
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
2735
+ #
2736
+ # @example Basic example
2737
+ # require "google/cloud/telco_automation/v1"
2738
+ #
2739
+ # # Create a client object. The client can be reused for multiple calls.
2740
+ # client = Google::Cloud::TelcoAutomation::V1::TelcoAutomation::Rest::Client.new
2741
+ #
2742
+ # # Create a request. To set request fields, pass in keyword arguments.
2743
+ # request = Google::Cloud::TelcoAutomation::V1::ApplyDeploymentRequest.new
2744
+ #
2745
+ # # Call the apply_deployment method.
2746
+ # result = client.apply_deployment request
2747
+ #
2748
+ # # The returned object is of type Google::Cloud::TelcoAutomation::V1::Deployment.
2749
+ # p result
2750
+ #
2751
+ def apply_deployment request, options = nil
2752
+ raise ::ArgumentError, "request must be provided" if request.nil?
2753
+
2754
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::TelcoAutomation::V1::ApplyDeploymentRequest
2755
+
2756
+ # Converts hash and nil to an options object
2757
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
2758
+
2759
+ # Customize the options with defaults
2760
+ call_metadata = @config.rpcs.apply_deployment.metadata.to_h
2761
+
2762
+ # Set x-goog-api-client and x-goog-user-project headers
2763
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2764
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
2765
+ gapic_version: ::Google::Cloud::TelcoAutomation::V1::VERSION,
2766
+ transports_version_send: [:rest]
2767
+
2768
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2769
+
2770
+ options.apply_defaults timeout: @config.rpcs.apply_deployment.timeout,
2771
+ metadata: call_metadata,
2772
+ retry_policy: @config.rpcs.apply_deployment.retry_policy
2773
+
2774
+ options.apply_defaults timeout: @config.timeout,
2775
+ metadata: @config.metadata,
2776
+ retry_policy: @config.retry_policy
2777
+
2778
+ @telco_automation_stub.apply_deployment request, options do |result, operation|
2779
+ yield result, operation if block_given?
2780
+ return result
2781
+ end
2782
+ rescue ::Gapic::Rest::Error => e
2783
+ raise ::Google::Cloud::Error.from_error(e)
2784
+ end
2785
+
2786
+ ##
2787
+ # Returns the requested deployment status.
2788
+ #
2789
+ # @overload compute_deployment_status(request, options = nil)
2790
+ # Pass arguments to `compute_deployment_status` via a request object, either of type
2791
+ # {::Google::Cloud::TelcoAutomation::V1::ComputeDeploymentStatusRequest} or an equivalent Hash.
2792
+ #
2793
+ # @param request [::Google::Cloud::TelcoAutomation::V1::ComputeDeploymentStatusRequest, ::Hash]
2794
+ # A request object representing the call parameters. Required. To specify no
2795
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
2796
+ # @param options [::Gapic::CallOptions, ::Hash]
2797
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
2798
+ #
2799
+ # @overload compute_deployment_status(name: nil)
2800
+ # Pass arguments to `compute_deployment_status` via keyword arguments. Note that at
2801
+ # least one keyword argument is required. To specify no parameters, or to keep all
2802
+ # the default parameter values, pass an empty Hash as a request object (see above).
2803
+ #
2804
+ # @param name [::String]
2805
+ # Required. The name of the deployment without revisionID.
2806
+ # @yield [result, operation] Access the result along with the TransportOperation object
2807
+ # @yieldparam result [::Google::Cloud::TelcoAutomation::V1::ComputeDeploymentStatusResponse]
2808
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
2809
+ #
2810
+ # @return [::Google::Cloud::TelcoAutomation::V1::ComputeDeploymentStatusResponse]
2811
+ #
2812
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
2813
+ #
2814
+ # @example Basic example
2815
+ # require "google/cloud/telco_automation/v1"
2816
+ #
2817
+ # # Create a client object. The client can be reused for multiple calls.
2818
+ # client = Google::Cloud::TelcoAutomation::V1::TelcoAutomation::Rest::Client.new
2819
+ #
2820
+ # # Create a request. To set request fields, pass in keyword arguments.
2821
+ # request = Google::Cloud::TelcoAutomation::V1::ComputeDeploymentStatusRequest.new
2822
+ #
2823
+ # # Call the compute_deployment_status method.
2824
+ # result = client.compute_deployment_status request
2825
+ #
2826
+ # # The returned object is of type Google::Cloud::TelcoAutomation::V1::ComputeDeploymentStatusResponse.
2827
+ # p result
2828
+ #
2829
+ def compute_deployment_status request, options = nil
2830
+ raise ::ArgumentError, "request must be provided" if request.nil?
2831
+
2832
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::TelcoAutomation::V1::ComputeDeploymentStatusRequest
2833
+
2834
+ # Converts hash and nil to an options object
2835
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
2836
+
2837
+ # Customize the options with defaults
2838
+ call_metadata = @config.rpcs.compute_deployment_status.metadata.to_h
2839
+
2840
+ # Set x-goog-api-client and x-goog-user-project headers
2841
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2842
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
2843
+ gapic_version: ::Google::Cloud::TelcoAutomation::V1::VERSION,
2844
+ transports_version_send: [:rest]
2845
+
2846
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2847
+
2848
+ options.apply_defaults timeout: @config.rpcs.compute_deployment_status.timeout,
2849
+ metadata: call_metadata,
2850
+ retry_policy: @config.rpcs.compute_deployment_status.retry_policy
2851
+
2852
+ options.apply_defaults timeout: @config.timeout,
2853
+ metadata: @config.metadata,
2854
+ retry_policy: @config.retry_policy
2855
+
2856
+ @telco_automation_stub.compute_deployment_status request, options do |result, operation|
2857
+ yield result, operation if block_given?
2858
+ return result
2859
+ end
2860
+ rescue ::Gapic::Rest::Error => e
2861
+ raise ::Google::Cloud::Error.from_error(e)
2862
+ end
2863
+
2864
+ ##
2865
+ # Rollback the active deployment to the given past approved deployment
2866
+ # revision.
2867
+ #
2868
+ # @overload rollback_deployment(request, options = nil)
2869
+ # Pass arguments to `rollback_deployment` via a request object, either of type
2870
+ # {::Google::Cloud::TelcoAutomation::V1::RollbackDeploymentRequest} or an equivalent Hash.
2871
+ #
2872
+ # @param request [::Google::Cloud::TelcoAutomation::V1::RollbackDeploymentRequest, ::Hash]
2873
+ # A request object representing the call parameters. Required. To specify no
2874
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
2875
+ # @param options [::Gapic::CallOptions, ::Hash]
2876
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
2877
+ #
2878
+ # @overload rollback_deployment(name: nil, revision_id: nil)
2879
+ # Pass arguments to `rollback_deployment` via keyword arguments. Note that at
2880
+ # least one keyword argument is required. To specify no parameters, or to keep all
2881
+ # the default parameter values, pass an empty Hash as a request object (see above).
2882
+ #
2883
+ # @param name [::String]
2884
+ # Required. Name of the deployment.
2885
+ # @param revision_id [::String]
2886
+ # Required. The revision id of deployment to roll back to.
2887
+ # @yield [result, operation] Access the result along with the TransportOperation object
2888
+ # @yieldparam result [::Google::Cloud::TelcoAutomation::V1::Deployment]
2889
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
2890
+ #
2891
+ # @return [::Google::Cloud::TelcoAutomation::V1::Deployment]
2892
+ #
2893
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
2894
+ #
2895
+ # @example Basic example
2896
+ # require "google/cloud/telco_automation/v1"
2897
+ #
2898
+ # # Create a client object. The client can be reused for multiple calls.
2899
+ # client = Google::Cloud::TelcoAutomation::V1::TelcoAutomation::Rest::Client.new
2900
+ #
2901
+ # # Create a request. To set request fields, pass in keyword arguments.
2902
+ # request = Google::Cloud::TelcoAutomation::V1::RollbackDeploymentRequest.new
2903
+ #
2904
+ # # Call the rollback_deployment method.
2905
+ # result = client.rollback_deployment request
2906
+ #
2907
+ # # The returned object is of type Google::Cloud::TelcoAutomation::V1::Deployment.
2908
+ # p result
2909
+ #
2910
+ def rollback_deployment request, options = nil
2911
+ raise ::ArgumentError, "request must be provided" if request.nil?
2912
+
2913
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::TelcoAutomation::V1::RollbackDeploymentRequest
2914
+
2915
+ # Converts hash and nil to an options object
2916
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
2917
+
2918
+ # Customize the options with defaults
2919
+ call_metadata = @config.rpcs.rollback_deployment.metadata.to_h
2920
+
2921
+ # Set x-goog-api-client and x-goog-user-project headers
2922
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2923
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
2924
+ gapic_version: ::Google::Cloud::TelcoAutomation::V1::VERSION,
2925
+ transports_version_send: [:rest]
2926
+
2927
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2928
+
2929
+ options.apply_defaults timeout: @config.rpcs.rollback_deployment.timeout,
2930
+ metadata: call_metadata,
2931
+ retry_policy: @config.rpcs.rollback_deployment.retry_policy
2932
+
2933
+ options.apply_defaults timeout: @config.timeout,
2934
+ metadata: @config.metadata,
2935
+ retry_policy: @config.retry_policy
2936
+
2937
+ @telco_automation_stub.rollback_deployment request, options do |result, operation|
2938
+ yield result, operation if block_given?
2939
+ return result
2940
+ end
2941
+ rescue ::Gapic::Rest::Error => e
2942
+ raise ::Google::Cloud::Error.from_error(e)
2943
+ end
2944
+
2945
+ ##
2946
+ # Returns the requested hydrated deployment.
2947
+ #
2948
+ # @overload get_hydrated_deployment(request, options = nil)
2949
+ # Pass arguments to `get_hydrated_deployment` via a request object, either of type
2950
+ # {::Google::Cloud::TelcoAutomation::V1::GetHydratedDeploymentRequest} or an equivalent Hash.
2951
+ #
2952
+ # @param request [::Google::Cloud::TelcoAutomation::V1::GetHydratedDeploymentRequest, ::Hash]
2953
+ # A request object representing the call parameters. Required. To specify no
2954
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
2955
+ # @param options [::Gapic::CallOptions, ::Hash]
2956
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
2957
+ #
2958
+ # @overload get_hydrated_deployment(name: nil)
2959
+ # Pass arguments to `get_hydrated_deployment` via keyword arguments. Note that at
2960
+ # least one keyword argument is required. To specify no parameters, or to keep all
2961
+ # the default parameter values, pass an empty Hash as a request object (see above).
2962
+ #
2963
+ # @param name [::String]
2964
+ # Required. Name of the hydrated deployment.
2965
+ # @yield [result, operation] Access the result along with the TransportOperation object
2966
+ # @yieldparam result [::Google::Cloud::TelcoAutomation::V1::HydratedDeployment]
2967
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
2968
+ #
2969
+ # @return [::Google::Cloud::TelcoAutomation::V1::HydratedDeployment]
2970
+ #
2971
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
2972
+ #
2973
+ # @example Basic example
2974
+ # require "google/cloud/telco_automation/v1"
2975
+ #
2976
+ # # Create a client object. The client can be reused for multiple calls.
2977
+ # client = Google::Cloud::TelcoAutomation::V1::TelcoAutomation::Rest::Client.new
2978
+ #
2979
+ # # Create a request. To set request fields, pass in keyword arguments.
2980
+ # request = Google::Cloud::TelcoAutomation::V1::GetHydratedDeploymentRequest.new
2981
+ #
2982
+ # # Call the get_hydrated_deployment method.
2983
+ # result = client.get_hydrated_deployment request
2984
+ #
2985
+ # # The returned object is of type Google::Cloud::TelcoAutomation::V1::HydratedDeployment.
2986
+ # p result
2987
+ #
2988
+ def get_hydrated_deployment request, options = nil
2989
+ raise ::ArgumentError, "request must be provided" if request.nil?
2990
+
2991
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::TelcoAutomation::V1::GetHydratedDeploymentRequest
2992
+
2993
+ # Converts hash and nil to an options object
2994
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
2995
+
2996
+ # Customize the options with defaults
2997
+ call_metadata = @config.rpcs.get_hydrated_deployment.metadata.to_h
2998
+
2999
+ # Set x-goog-api-client and x-goog-user-project headers
3000
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3001
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
3002
+ gapic_version: ::Google::Cloud::TelcoAutomation::V1::VERSION,
3003
+ transports_version_send: [:rest]
3004
+
3005
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3006
+
3007
+ options.apply_defaults timeout: @config.rpcs.get_hydrated_deployment.timeout,
3008
+ metadata: call_metadata,
3009
+ retry_policy: @config.rpcs.get_hydrated_deployment.retry_policy
3010
+
3011
+ options.apply_defaults timeout: @config.timeout,
3012
+ metadata: @config.metadata,
3013
+ retry_policy: @config.retry_policy
3014
+
3015
+ @telco_automation_stub.get_hydrated_deployment request, options do |result, operation|
3016
+ yield result, operation if block_given?
3017
+ return result
3018
+ end
3019
+ rescue ::Gapic::Rest::Error => e
3020
+ raise ::Google::Cloud::Error.from_error(e)
3021
+ end
3022
+
3023
+ ##
3024
+ # List all hydrated deployments present under a deployment.
3025
+ #
3026
+ # @overload list_hydrated_deployments(request, options = nil)
3027
+ # Pass arguments to `list_hydrated_deployments` via a request object, either of type
3028
+ # {::Google::Cloud::TelcoAutomation::V1::ListHydratedDeploymentsRequest} or an equivalent Hash.
3029
+ #
3030
+ # @param request [::Google::Cloud::TelcoAutomation::V1::ListHydratedDeploymentsRequest, ::Hash]
3031
+ # A request object representing the call parameters. Required. To specify no
3032
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
3033
+ # @param options [::Gapic::CallOptions, ::Hash]
3034
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
3035
+ #
3036
+ # @overload list_hydrated_deployments(parent: nil, page_size: nil, page_token: nil)
3037
+ # Pass arguments to `list_hydrated_deployments` via keyword arguments. Note that at
3038
+ # least one keyword argument is required. To specify no parameters, or to keep all
3039
+ # the default parameter values, pass an empty Hash as a request object (see above).
3040
+ #
3041
+ # @param parent [::String]
3042
+ # Required. The deployment managing the hydrated deployments.
3043
+ # @param page_size [::Integer]
3044
+ # Optional. The maximum number of hydrated deployments to return. The service
3045
+ # may return fewer than this value. If unspecified, at most 50 hydrated
3046
+ # deployments will be returned. The maximum value is 1000. Values above 1000
3047
+ # will be set to 1000.
3048
+ # @param page_token [::String]
3049
+ # Optional. The page token, received from a previous ListHydratedDeployments
3050
+ # call. Provide this to retrieve the subsequent page.
3051
+ # @yield [result, operation] Access the result along with the TransportOperation object
3052
+ # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::TelcoAutomation::V1::HydratedDeployment>]
3053
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
3054
+ #
3055
+ # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::TelcoAutomation::V1::HydratedDeployment>]
3056
+ #
3057
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
3058
+ #
3059
+ # @example Basic example
3060
+ # require "google/cloud/telco_automation/v1"
3061
+ #
3062
+ # # Create a client object. The client can be reused for multiple calls.
3063
+ # client = Google::Cloud::TelcoAutomation::V1::TelcoAutomation::Rest::Client.new
3064
+ #
3065
+ # # Create a request. To set request fields, pass in keyword arguments.
3066
+ # request = Google::Cloud::TelcoAutomation::V1::ListHydratedDeploymentsRequest.new
3067
+ #
3068
+ # # Call the list_hydrated_deployments method.
3069
+ # result = client.list_hydrated_deployments request
3070
+ #
3071
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
3072
+ # # over elements, and API calls will be issued to fetch pages as needed.
3073
+ # result.each do |item|
3074
+ # # Each element is of type ::Google::Cloud::TelcoAutomation::V1::HydratedDeployment.
3075
+ # p item
3076
+ # end
3077
+ #
3078
+ def list_hydrated_deployments request, options = nil
3079
+ raise ::ArgumentError, "request must be provided" if request.nil?
3080
+
3081
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::TelcoAutomation::V1::ListHydratedDeploymentsRequest
3082
+
3083
+ # Converts hash and nil to an options object
3084
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
3085
+
3086
+ # Customize the options with defaults
3087
+ call_metadata = @config.rpcs.list_hydrated_deployments.metadata.to_h
3088
+
3089
+ # Set x-goog-api-client and x-goog-user-project headers
3090
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3091
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
3092
+ gapic_version: ::Google::Cloud::TelcoAutomation::V1::VERSION,
3093
+ transports_version_send: [:rest]
3094
+
3095
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3096
+
3097
+ options.apply_defaults timeout: @config.rpcs.list_hydrated_deployments.timeout,
3098
+ metadata: call_metadata,
3099
+ retry_policy: @config.rpcs.list_hydrated_deployments.retry_policy
3100
+
3101
+ options.apply_defaults timeout: @config.timeout,
3102
+ metadata: @config.metadata,
3103
+ retry_policy: @config.retry_policy
3104
+
3105
+ @telco_automation_stub.list_hydrated_deployments request, options do |result, operation|
3106
+ result = ::Gapic::Rest::PagedEnumerable.new @telco_automation_stub, :list_hydrated_deployments, "hydrated_deployments", request, result, options
3107
+ yield result, operation if block_given?
3108
+ return result
3109
+ end
3110
+ rescue ::Gapic::Rest::Error => e
3111
+ raise ::Google::Cloud::Error.from_error(e)
3112
+ end
3113
+
3114
+ ##
3115
+ # Updates a hydrated deployment.
3116
+ #
3117
+ # @overload update_hydrated_deployment(request, options = nil)
3118
+ # Pass arguments to `update_hydrated_deployment` via a request object, either of type
3119
+ # {::Google::Cloud::TelcoAutomation::V1::UpdateHydratedDeploymentRequest} or an equivalent Hash.
3120
+ #
3121
+ # @param request [::Google::Cloud::TelcoAutomation::V1::UpdateHydratedDeploymentRequest, ::Hash]
3122
+ # A request object representing the call parameters. Required. To specify no
3123
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
3124
+ # @param options [::Gapic::CallOptions, ::Hash]
3125
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
3126
+ #
3127
+ # @overload update_hydrated_deployment(hydrated_deployment: nil, update_mask: nil)
3128
+ # Pass arguments to `update_hydrated_deployment` via keyword arguments. Note that at
3129
+ # least one keyword argument is required. To specify no parameters, or to keep all
3130
+ # the default parameter values, pass an empty Hash as a request object (see above).
3131
+ #
3132
+ # @param hydrated_deployment [::Google::Cloud::TelcoAutomation::V1::HydratedDeployment, ::Hash]
3133
+ # Required. The hydrated deployment to update.
3134
+ # @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
3135
+ # Required. The list of fields to update. Update mask supports a special
3136
+ # value `*` which fully replaces (equivalent to PUT) the resource provided.
3137
+ # @yield [result, operation] Access the result along with the TransportOperation object
3138
+ # @yieldparam result [::Google::Cloud::TelcoAutomation::V1::HydratedDeployment]
3139
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
3140
+ #
3141
+ # @return [::Google::Cloud::TelcoAutomation::V1::HydratedDeployment]
3142
+ #
3143
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
3144
+ #
3145
+ # @example Basic example
3146
+ # require "google/cloud/telco_automation/v1"
3147
+ #
3148
+ # # Create a client object. The client can be reused for multiple calls.
3149
+ # client = Google::Cloud::TelcoAutomation::V1::TelcoAutomation::Rest::Client.new
3150
+ #
3151
+ # # Create a request. To set request fields, pass in keyword arguments.
3152
+ # request = Google::Cloud::TelcoAutomation::V1::UpdateHydratedDeploymentRequest.new
3153
+ #
3154
+ # # Call the update_hydrated_deployment method.
3155
+ # result = client.update_hydrated_deployment request
3156
+ #
3157
+ # # The returned object is of type Google::Cloud::TelcoAutomation::V1::HydratedDeployment.
3158
+ # p result
3159
+ #
3160
+ def update_hydrated_deployment request, options = nil
3161
+ raise ::ArgumentError, "request must be provided" if request.nil?
3162
+
3163
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::TelcoAutomation::V1::UpdateHydratedDeploymentRequest
3164
+
3165
+ # Converts hash and nil to an options object
3166
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
3167
+
3168
+ # Customize the options with defaults
3169
+ call_metadata = @config.rpcs.update_hydrated_deployment.metadata.to_h
3170
+
3171
+ # Set x-goog-api-client and x-goog-user-project headers
3172
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3173
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
3174
+ gapic_version: ::Google::Cloud::TelcoAutomation::V1::VERSION,
3175
+ transports_version_send: [:rest]
3176
+
3177
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3178
+
3179
+ options.apply_defaults timeout: @config.rpcs.update_hydrated_deployment.timeout,
3180
+ metadata: call_metadata,
3181
+ retry_policy: @config.rpcs.update_hydrated_deployment.retry_policy
3182
+
3183
+ options.apply_defaults timeout: @config.timeout,
3184
+ metadata: @config.metadata,
3185
+ retry_policy: @config.retry_policy
3186
+
3187
+ @telco_automation_stub.update_hydrated_deployment request, options do |result, operation|
3188
+ yield result, operation if block_given?
3189
+ return result
3190
+ end
3191
+ rescue ::Gapic::Rest::Error => e
3192
+ raise ::Google::Cloud::Error.from_error(e)
3193
+ end
3194
+
3195
+ ##
3196
+ # Applies a hydrated deployment to a workload cluster.
3197
+ #
3198
+ # @overload apply_hydrated_deployment(request, options = nil)
3199
+ # Pass arguments to `apply_hydrated_deployment` via a request object, either of type
3200
+ # {::Google::Cloud::TelcoAutomation::V1::ApplyHydratedDeploymentRequest} or an equivalent Hash.
3201
+ #
3202
+ # @param request [::Google::Cloud::TelcoAutomation::V1::ApplyHydratedDeploymentRequest, ::Hash]
3203
+ # A request object representing the call parameters. Required. To specify no
3204
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
3205
+ # @param options [::Gapic::CallOptions, ::Hash]
3206
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
3207
+ #
3208
+ # @overload apply_hydrated_deployment(name: nil)
3209
+ # Pass arguments to `apply_hydrated_deployment` via keyword arguments. Note that at
3210
+ # least one keyword argument is required. To specify no parameters, or to keep all
3211
+ # the default parameter values, pass an empty Hash as a request object (see above).
3212
+ #
3213
+ # @param name [::String]
3214
+ # Required. The name of the hydrated deployment to apply.
3215
+ # @yield [result, operation] Access the result along with the TransportOperation object
3216
+ # @yieldparam result [::Google::Cloud::TelcoAutomation::V1::HydratedDeployment]
3217
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
3218
+ #
3219
+ # @return [::Google::Cloud::TelcoAutomation::V1::HydratedDeployment]
3220
+ #
3221
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
3222
+ #
3223
+ # @example Basic example
3224
+ # require "google/cloud/telco_automation/v1"
3225
+ #
3226
+ # # Create a client object. The client can be reused for multiple calls.
3227
+ # client = Google::Cloud::TelcoAutomation::V1::TelcoAutomation::Rest::Client.new
3228
+ #
3229
+ # # Create a request. To set request fields, pass in keyword arguments.
3230
+ # request = Google::Cloud::TelcoAutomation::V1::ApplyHydratedDeploymentRequest.new
3231
+ #
3232
+ # # Call the apply_hydrated_deployment method.
3233
+ # result = client.apply_hydrated_deployment request
3234
+ #
3235
+ # # The returned object is of type Google::Cloud::TelcoAutomation::V1::HydratedDeployment.
3236
+ # p result
3237
+ #
3238
+ def apply_hydrated_deployment request, options = nil
3239
+ raise ::ArgumentError, "request must be provided" if request.nil?
3240
+
3241
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::TelcoAutomation::V1::ApplyHydratedDeploymentRequest
3242
+
3243
+ # Converts hash and nil to an options object
3244
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
3245
+
3246
+ # Customize the options with defaults
3247
+ call_metadata = @config.rpcs.apply_hydrated_deployment.metadata.to_h
3248
+
3249
+ # Set x-goog-api-client and x-goog-user-project headers
3250
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3251
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
3252
+ gapic_version: ::Google::Cloud::TelcoAutomation::V1::VERSION,
3253
+ transports_version_send: [:rest]
3254
+
3255
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3256
+
3257
+ options.apply_defaults timeout: @config.rpcs.apply_hydrated_deployment.timeout,
3258
+ metadata: call_metadata,
3259
+ retry_policy: @config.rpcs.apply_hydrated_deployment.retry_policy
3260
+
3261
+ options.apply_defaults timeout: @config.timeout,
3262
+ metadata: @config.metadata,
3263
+ retry_policy: @config.retry_policy
3264
+
3265
+ @telco_automation_stub.apply_hydrated_deployment request, options do |result, operation|
3266
+ yield result, operation if block_given?
3267
+ return result
3268
+ end
3269
+ rescue ::Gapic::Rest::Error => e
3270
+ raise ::Google::Cloud::Error.from_error(e)
3271
+ end
3272
+
3273
+ ##
3274
+ # Configuration class for the TelcoAutomation REST API.
3275
+ #
3276
+ # This class represents the configuration for TelcoAutomation REST,
3277
+ # providing control over timeouts, retry behavior, logging, transport
3278
+ # parameters, and other low-level controls. Certain parameters can also be
3279
+ # applied individually to specific RPCs. See
3280
+ # {::Google::Cloud::TelcoAutomation::V1::TelcoAutomation::Rest::Client::Configuration::Rpcs}
3281
+ # for a list of RPCs that can be configured independently.
3282
+ #
3283
+ # Configuration can be applied globally to all clients, or to a single client
3284
+ # on construction.
3285
+ #
3286
+ # @example
3287
+ #
3288
+ # # Modify the global config, setting the timeout for
3289
+ # # list_orchestration_clusters to 20 seconds,
3290
+ # # and all remaining timeouts to 10 seconds.
3291
+ # ::Google::Cloud::TelcoAutomation::V1::TelcoAutomation::Rest::Client.configure do |config|
3292
+ # config.timeout = 10.0
3293
+ # config.rpcs.list_orchestration_clusters.timeout = 20.0
3294
+ # end
3295
+ #
3296
+ # # Apply the above configuration only to a new client.
3297
+ # client = ::Google::Cloud::TelcoAutomation::V1::TelcoAutomation::Rest::Client.new do |config|
3298
+ # config.timeout = 10.0
3299
+ # config.rpcs.list_orchestration_clusters.timeout = 20.0
3300
+ # end
3301
+ #
3302
+ # @!attribute [rw] endpoint
3303
+ # The hostname or hostname:port of the service endpoint.
3304
+ # Defaults to `"telcoautomation.googleapis.com"`.
3305
+ # @return [::String]
3306
+ # @!attribute [rw] credentials
3307
+ # Credentials to send with calls. You may provide any of the following types:
3308
+ # * (`String`) The path to a service account key file in JSON format
3309
+ # * (`Hash`) A service account key as a Hash
3310
+ # * (`Google::Auth::Credentials`) A googleauth credentials object
3311
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
3312
+ # * (`Signet::OAuth2::Client`) A signet oauth2 client object
3313
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
3314
+ # * (`nil`) indicating no credentials
3315
+ # @return [::Object]
3316
+ # @!attribute [rw] scope
3317
+ # The OAuth scopes
3318
+ # @return [::Array<::String>]
3319
+ # @!attribute [rw] lib_name
3320
+ # The library name as recorded in instrumentation and logging
3321
+ # @return [::String]
3322
+ # @!attribute [rw] lib_version
3323
+ # The library version as recorded in instrumentation and logging
3324
+ # @return [::String]
3325
+ # @!attribute [rw] timeout
3326
+ # The call timeout in seconds.
3327
+ # @return [::Numeric]
3328
+ # @!attribute [rw] metadata
3329
+ # Additional headers to be sent with the call.
3330
+ # @return [::Hash{::Symbol=>::String}]
3331
+ # @!attribute [rw] retry_policy
3332
+ # The retry policy. The value is a hash with the following keys:
3333
+ # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
3334
+ # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
3335
+ # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
3336
+ # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
3337
+ # trigger a retry.
3338
+ # @return [::Hash]
3339
+ # @!attribute [rw] quota_project
3340
+ # A separate project against which to charge quota.
3341
+ # @return [::String]
3342
+ #
3343
+ class Configuration
3344
+ extend ::Gapic::Config
3345
+
3346
+ DEFAULT_ENDPOINT = "telcoautomation.googleapis.com"
3347
+
3348
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
3349
+ config_attr :credentials, nil do |value|
3350
+ allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
3351
+ allowed.any? { |klass| klass === value }
3352
+ end
3353
+ config_attr :scope, nil, ::String, ::Array, nil
3354
+ config_attr :lib_name, nil, ::String, nil
3355
+ config_attr :lib_version, nil, ::String, nil
3356
+ config_attr :timeout, nil, ::Numeric, nil
3357
+ config_attr :metadata, nil, ::Hash, nil
3358
+ config_attr :retry_policy, nil, ::Hash, ::Proc, nil
3359
+ config_attr :quota_project, nil, ::String, nil
3360
+
3361
+ # @private
3362
+ # Overrides for http bindings for the RPCs of this service
3363
+ # are only used when this service is used as mixin, and only
3364
+ # by the host service.
3365
+ # @return [::Hash{::Symbol=>::Array<::Gapic::Rest::GrpcTranscoder::HttpBinding>}]
3366
+ config_attr :bindings_override, {}, ::Hash, nil
3367
+
3368
+ # @private
3369
+ def initialize parent_config = nil
3370
+ @parent_config = parent_config unless parent_config.nil?
3371
+
3372
+ yield self if block_given?
3373
+ end
3374
+
3375
+ ##
3376
+ # Configurations for individual RPCs
3377
+ # @return [Rpcs]
3378
+ #
3379
+ def rpcs
3380
+ @rpcs ||= begin
3381
+ parent_rpcs = nil
3382
+ parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs)
3383
+ Rpcs.new parent_rpcs
3384
+ end
3385
+ end
3386
+
3387
+ ##
3388
+ # Configuration RPC class for the TelcoAutomation API.
3389
+ #
3390
+ # Includes fields providing the configuration for each RPC in this service.
3391
+ # Each configuration object is of type `Gapic::Config::Method` and includes
3392
+ # the following configuration fields:
3393
+ #
3394
+ # * `timeout` (*type:* `Numeric`) - The call timeout in seconds
3395
+ # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional headers
3396
+ # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields
3397
+ # include the following keys:
3398
+ # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
3399
+ # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
3400
+ # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
3401
+ # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
3402
+ # trigger a retry.
3403
+ #
3404
+ class Rpcs
3405
+ ##
3406
+ # RPC-specific configuration for `list_orchestration_clusters`
3407
+ # @return [::Gapic::Config::Method]
3408
+ #
3409
+ attr_reader :list_orchestration_clusters
3410
+ ##
3411
+ # RPC-specific configuration for `get_orchestration_cluster`
3412
+ # @return [::Gapic::Config::Method]
3413
+ #
3414
+ attr_reader :get_orchestration_cluster
3415
+ ##
3416
+ # RPC-specific configuration for `create_orchestration_cluster`
3417
+ # @return [::Gapic::Config::Method]
3418
+ #
3419
+ attr_reader :create_orchestration_cluster
3420
+ ##
3421
+ # RPC-specific configuration for `delete_orchestration_cluster`
3422
+ # @return [::Gapic::Config::Method]
3423
+ #
3424
+ attr_reader :delete_orchestration_cluster
3425
+ ##
3426
+ # RPC-specific configuration for `list_edge_slms`
3427
+ # @return [::Gapic::Config::Method]
3428
+ #
3429
+ attr_reader :list_edge_slms
3430
+ ##
3431
+ # RPC-specific configuration for `get_edge_slm`
3432
+ # @return [::Gapic::Config::Method]
3433
+ #
3434
+ attr_reader :get_edge_slm
3435
+ ##
3436
+ # RPC-specific configuration for `create_edge_slm`
3437
+ # @return [::Gapic::Config::Method]
3438
+ #
3439
+ attr_reader :create_edge_slm
3440
+ ##
3441
+ # RPC-specific configuration for `delete_edge_slm`
3442
+ # @return [::Gapic::Config::Method]
3443
+ #
3444
+ attr_reader :delete_edge_slm
3445
+ ##
3446
+ # RPC-specific configuration for `create_blueprint`
3447
+ # @return [::Gapic::Config::Method]
3448
+ #
3449
+ attr_reader :create_blueprint
3450
+ ##
3451
+ # RPC-specific configuration for `update_blueprint`
3452
+ # @return [::Gapic::Config::Method]
3453
+ #
3454
+ attr_reader :update_blueprint
3455
+ ##
3456
+ # RPC-specific configuration for `get_blueprint`
3457
+ # @return [::Gapic::Config::Method]
3458
+ #
3459
+ attr_reader :get_blueprint
3460
+ ##
3461
+ # RPC-specific configuration for `delete_blueprint`
3462
+ # @return [::Gapic::Config::Method]
3463
+ #
3464
+ attr_reader :delete_blueprint
3465
+ ##
3466
+ # RPC-specific configuration for `list_blueprints`
3467
+ # @return [::Gapic::Config::Method]
3468
+ #
3469
+ attr_reader :list_blueprints
3470
+ ##
3471
+ # RPC-specific configuration for `approve_blueprint`
3472
+ # @return [::Gapic::Config::Method]
3473
+ #
3474
+ attr_reader :approve_blueprint
3475
+ ##
3476
+ # RPC-specific configuration for `propose_blueprint`
3477
+ # @return [::Gapic::Config::Method]
3478
+ #
3479
+ attr_reader :propose_blueprint
3480
+ ##
3481
+ # RPC-specific configuration for `reject_blueprint`
3482
+ # @return [::Gapic::Config::Method]
3483
+ #
3484
+ attr_reader :reject_blueprint
3485
+ ##
3486
+ # RPC-specific configuration for `list_blueprint_revisions`
3487
+ # @return [::Gapic::Config::Method]
3488
+ #
3489
+ attr_reader :list_blueprint_revisions
3490
+ ##
3491
+ # RPC-specific configuration for `search_blueprint_revisions`
3492
+ # @return [::Gapic::Config::Method]
3493
+ #
3494
+ attr_reader :search_blueprint_revisions
3495
+ ##
3496
+ # RPC-specific configuration for `search_deployment_revisions`
3497
+ # @return [::Gapic::Config::Method]
3498
+ #
3499
+ attr_reader :search_deployment_revisions
3500
+ ##
3501
+ # RPC-specific configuration for `discard_blueprint_changes`
3502
+ # @return [::Gapic::Config::Method]
3503
+ #
3504
+ attr_reader :discard_blueprint_changes
3505
+ ##
3506
+ # RPC-specific configuration for `list_public_blueprints`
3507
+ # @return [::Gapic::Config::Method]
3508
+ #
3509
+ attr_reader :list_public_blueprints
3510
+ ##
3511
+ # RPC-specific configuration for `get_public_blueprint`
3512
+ # @return [::Gapic::Config::Method]
3513
+ #
3514
+ attr_reader :get_public_blueprint
3515
+ ##
3516
+ # RPC-specific configuration for `create_deployment`
3517
+ # @return [::Gapic::Config::Method]
3518
+ #
3519
+ attr_reader :create_deployment
3520
+ ##
3521
+ # RPC-specific configuration for `update_deployment`
3522
+ # @return [::Gapic::Config::Method]
3523
+ #
3524
+ attr_reader :update_deployment
3525
+ ##
3526
+ # RPC-specific configuration for `get_deployment`
3527
+ # @return [::Gapic::Config::Method]
3528
+ #
3529
+ attr_reader :get_deployment
3530
+ ##
3531
+ # RPC-specific configuration for `remove_deployment`
3532
+ # @return [::Gapic::Config::Method]
3533
+ #
3534
+ attr_reader :remove_deployment
3535
+ ##
3536
+ # RPC-specific configuration for `list_deployments`
3537
+ # @return [::Gapic::Config::Method]
3538
+ #
3539
+ attr_reader :list_deployments
3540
+ ##
3541
+ # RPC-specific configuration for `list_deployment_revisions`
3542
+ # @return [::Gapic::Config::Method]
3543
+ #
3544
+ attr_reader :list_deployment_revisions
3545
+ ##
3546
+ # RPC-specific configuration for `discard_deployment_changes`
3547
+ # @return [::Gapic::Config::Method]
3548
+ #
3549
+ attr_reader :discard_deployment_changes
3550
+ ##
3551
+ # RPC-specific configuration for `apply_deployment`
3552
+ # @return [::Gapic::Config::Method]
3553
+ #
3554
+ attr_reader :apply_deployment
3555
+ ##
3556
+ # RPC-specific configuration for `compute_deployment_status`
3557
+ # @return [::Gapic::Config::Method]
3558
+ #
3559
+ attr_reader :compute_deployment_status
3560
+ ##
3561
+ # RPC-specific configuration for `rollback_deployment`
3562
+ # @return [::Gapic::Config::Method]
3563
+ #
3564
+ attr_reader :rollback_deployment
3565
+ ##
3566
+ # RPC-specific configuration for `get_hydrated_deployment`
3567
+ # @return [::Gapic::Config::Method]
3568
+ #
3569
+ attr_reader :get_hydrated_deployment
3570
+ ##
3571
+ # RPC-specific configuration for `list_hydrated_deployments`
3572
+ # @return [::Gapic::Config::Method]
3573
+ #
3574
+ attr_reader :list_hydrated_deployments
3575
+ ##
3576
+ # RPC-specific configuration for `update_hydrated_deployment`
3577
+ # @return [::Gapic::Config::Method]
3578
+ #
3579
+ attr_reader :update_hydrated_deployment
3580
+ ##
3581
+ # RPC-specific configuration for `apply_hydrated_deployment`
3582
+ # @return [::Gapic::Config::Method]
3583
+ #
3584
+ attr_reader :apply_hydrated_deployment
3585
+
3586
+ # @private
3587
+ def initialize parent_rpcs = nil
3588
+ list_orchestration_clusters_config = parent_rpcs.list_orchestration_clusters if parent_rpcs.respond_to? :list_orchestration_clusters
3589
+ @list_orchestration_clusters = ::Gapic::Config::Method.new list_orchestration_clusters_config
3590
+ get_orchestration_cluster_config = parent_rpcs.get_orchestration_cluster if parent_rpcs.respond_to? :get_orchestration_cluster
3591
+ @get_orchestration_cluster = ::Gapic::Config::Method.new get_orchestration_cluster_config
3592
+ create_orchestration_cluster_config = parent_rpcs.create_orchestration_cluster if parent_rpcs.respond_to? :create_orchestration_cluster
3593
+ @create_orchestration_cluster = ::Gapic::Config::Method.new create_orchestration_cluster_config
3594
+ delete_orchestration_cluster_config = parent_rpcs.delete_orchestration_cluster if parent_rpcs.respond_to? :delete_orchestration_cluster
3595
+ @delete_orchestration_cluster = ::Gapic::Config::Method.new delete_orchestration_cluster_config
3596
+ list_edge_slms_config = parent_rpcs.list_edge_slms if parent_rpcs.respond_to? :list_edge_slms
3597
+ @list_edge_slms = ::Gapic::Config::Method.new list_edge_slms_config
3598
+ get_edge_slm_config = parent_rpcs.get_edge_slm if parent_rpcs.respond_to? :get_edge_slm
3599
+ @get_edge_slm = ::Gapic::Config::Method.new get_edge_slm_config
3600
+ create_edge_slm_config = parent_rpcs.create_edge_slm if parent_rpcs.respond_to? :create_edge_slm
3601
+ @create_edge_slm = ::Gapic::Config::Method.new create_edge_slm_config
3602
+ delete_edge_slm_config = parent_rpcs.delete_edge_slm if parent_rpcs.respond_to? :delete_edge_slm
3603
+ @delete_edge_slm = ::Gapic::Config::Method.new delete_edge_slm_config
3604
+ create_blueprint_config = parent_rpcs.create_blueprint if parent_rpcs.respond_to? :create_blueprint
3605
+ @create_blueprint = ::Gapic::Config::Method.new create_blueprint_config
3606
+ update_blueprint_config = parent_rpcs.update_blueprint if parent_rpcs.respond_to? :update_blueprint
3607
+ @update_blueprint = ::Gapic::Config::Method.new update_blueprint_config
3608
+ get_blueprint_config = parent_rpcs.get_blueprint if parent_rpcs.respond_to? :get_blueprint
3609
+ @get_blueprint = ::Gapic::Config::Method.new get_blueprint_config
3610
+ delete_blueprint_config = parent_rpcs.delete_blueprint if parent_rpcs.respond_to? :delete_blueprint
3611
+ @delete_blueprint = ::Gapic::Config::Method.new delete_blueprint_config
3612
+ list_blueprints_config = parent_rpcs.list_blueprints if parent_rpcs.respond_to? :list_blueprints
3613
+ @list_blueprints = ::Gapic::Config::Method.new list_blueprints_config
3614
+ approve_blueprint_config = parent_rpcs.approve_blueprint if parent_rpcs.respond_to? :approve_blueprint
3615
+ @approve_blueprint = ::Gapic::Config::Method.new approve_blueprint_config
3616
+ propose_blueprint_config = parent_rpcs.propose_blueprint if parent_rpcs.respond_to? :propose_blueprint
3617
+ @propose_blueprint = ::Gapic::Config::Method.new propose_blueprint_config
3618
+ reject_blueprint_config = parent_rpcs.reject_blueprint if parent_rpcs.respond_to? :reject_blueprint
3619
+ @reject_blueprint = ::Gapic::Config::Method.new reject_blueprint_config
3620
+ list_blueprint_revisions_config = parent_rpcs.list_blueprint_revisions if parent_rpcs.respond_to? :list_blueprint_revisions
3621
+ @list_blueprint_revisions = ::Gapic::Config::Method.new list_blueprint_revisions_config
3622
+ search_blueprint_revisions_config = parent_rpcs.search_blueprint_revisions if parent_rpcs.respond_to? :search_blueprint_revisions
3623
+ @search_blueprint_revisions = ::Gapic::Config::Method.new search_blueprint_revisions_config
3624
+ search_deployment_revisions_config = parent_rpcs.search_deployment_revisions if parent_rpcs.respond_to? :search_deployment_revisions
3625
+ @search_deployment_revisions = ::Gapic::Config::Method.new search_deployment_revisions_config
3626
+ discard_blueprint_changes_config = parent_rpcs.discard_blueprint_changes if parent_rpcs.respond_to? :discard_blueprint_changes
3627
+ @discard_blueprint_changes = ::Gapic::Config::Method.new discard_blueprint_changes_config
3628
+ list_public_blueprints_config = parent_rpcs.list_public_blueprints if parent_rpcs.respond_to? :list_public_blueprints
3629
+ @list_public_blueprints = ::Gapic::Config::Method.new list_public_blueprints_config
3630
+ get_public_blueprint_config = parent_rpcs.get_public_blueprint if parent_rpcs.respond_to? :get_public_blueprint
3631
+ @get_public_blueprint = ::Gapic::Config::Method.new get_public_blueprint_config
3632
+ create_deployment_config = parent_rpcs.create_deployment if parent_rpcs.respond_to? :create_deployment
3633
+ @create_deployment = ::Gapic::Config::Method.new create_deployment_config
3634
+ update_deployment_config = parent_rpcs.update_deployment if parent_rpcs.respond_to? :update_deployment
3635
+ @update_deployment = ::Gapic::Config::Method.new update_deployment_config
3636
+ get_deployment_config = parent_rpcs.get_deployment if parent_rpcs.respond_to? :get_deployment
3637
+ @get_deployment = ::Gapic::Config::Method.new get_deployment_config
3638
+ remove_deployment_config = parent_rpcs.remove_deployment if parent_rpcs.respond_to? :remove_deployment
3639
+ @remove_deployment = ::Gapic::Config::Method.new remove_deployment_config
3640
+ list_deployments_config = parent_rpcs.list_deployments if parent_rpcs.respond_to? :list_deployments
3641
+ @list_deployments = ::Gapic::Config::Method.new list_deployments_config
3642
+ list_deployment_revisions_config = parent_rpcs.list_deployment_revisions if parent_rpcs.respond_to? :list_deployment_revisions
3643
+ @list_deployment_revisions = ::Gapic::Config::Method.new list_deployment_revisions_config
3644
+ discard_deployment_changes_config = parent_rpcs.discard_deployment_changes if parent_rpcs.respond_to? :discard_deployment_changes
3645
+ @discard_deployment_changes = ::Gapic::Config::Method.new discard_deployment_changes_config
3646
+ apply_deployment_config = parent_rpcs.apply_deployment if parent_rpcs.respond_to? :apply_deployment
3647
+ @apply_deployment = ::Gapic::Config::Method.new apply_deployment_config
3648
+ compute_deployment_status_config = parent_rpcs.compute_deployment_status if parent_rpcs.respond_to? :compute_deployment_status
3649
+ @compute_deployment_status = ::Gapic::Config::Method.new compute_deployment_status_config
3650
+ rollback_deployment_config = parent_rpcs.rollback_deployment if parent_rpcs.respond_to? :rollback_deployment
3651
+ @rollback_deployment = ::Gapic::Config::Method.new rollback_deployment_config
3652
+ get_hydrated_deployment_config = parent_rpcs.get_hydrated_deployment if parent_rpcs.respond_to? :get_hydrated_deployment
3653
+ @get_hydrated_deployment = ::Gapic::Config::Method.new get_hydrated_deployment_config
3654
+ list_hydrated_deployments_config = parent_rpcs.list_hydrated_deployments if parent_rpcs.respond_to? :list_hydrated_deployments
3655
+ @list_hydrated_deployments = ::Gapic::Config::Method.new list_hydrated_deployments_config
3656
+ update_hydrated_deployment_config = parent_rpcs.update_hydrated_deployment if parent_rpcs.respond_to? :update_hydrated_deployment
3657
+ @update_hydrated_deployment = ::Gapic::Config::Method.new update_hydrated_deployment_config
3658
+ apply_hydrated_deployment_config = parent_rpcs.apply_hydrated_deployment if parent_rpcs.respond_to? :apply_hydrated_deployment
3659
+ @apply_hydrated_deployment = ::Gapic::Config::Method.new apply_hydrated_deployment_config
3660
+
3661
+ yield self if block_given?
3662
+ end
3663
+ end
3664
+ end
3665
+ end
3666
+ end
3667
+ end
3668
+ end
3669
+ end
3670
+ end
3671
+ end