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