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

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