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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (34) hide show
  1. checksums.yaml +4 -4
  2. data/.yardopts +12 -0
  3. data/AUTHENTICATION.md +122 -0
  4. data/README.md +144 -8
  5. data/lib/google/cloud/telco_automation/v1/bindings_override.rb +102 -0
  6. data/lib/google/cloud/telco_automation/v1/rest.rb +38 -0
  7. data/lib/google/cloud/telco_automation/v1/telco_automation/client.rb +3971 -0
  8. data/lib/google/cloud/telco_automation/v1/telco_automation/credentials.rb +47 -0
  9. data/lib/google/cloud/telco_automation/v1/telco_automation/operations.rb +801 -0
  10. data/lib/google/cloud/telco_automation/v1/telco_automation/paths.rb +172 -0
  11. data/lib/google/cloud/telco_automation/v1/telco_automation/rest/client.rb +3699 -0
  12. data/lib/google/cloud/telco_automation/v1/telco_automation/rest/operations.rb +895 -0
  13. data/lib/google/cloud/telco_automation/v1/telco_automation/rest/service_stub.rb +2200 -0
  14. data/lib/google/cloud/telco_automation/v1/telco_automation/rest.rb +58 -0
  15. data/lib/google/cloud/telco_automation/v1/telco_automation.rb +60 -0
  16. data/lib/google/cloud/telco_automation/v1/version.rb +7 -2
  17. data/lib/google/cloud/telco_automation/v1.rb +45 -0
  18. data/lib/google/cloud/telcoautomation/v1/telcoautomation_pb.rb +131 -0
  19. data/lib/google/cloud/telcoautomation/v1/telcoautomation_services_pb.rb +126 -0
  20. data/lib/google-cloud-telco_automation-v1.rb +21 -0
  21. data/proto_docs/README.md +4 -0
  22. data/proto_docs/google/api/client.rb +395 -0
  23. data/proto_docs/google/api/field_behavior.rb +85 -0
  24. data/proto_docs/google/api/launch_stage.rb +71 -0
  25. data/proto_docs/google/api/resource.rb +222 -0
  26. data/proto_docs/google/cloud/telcoautomation/v1/telcoautomation.rb +1534 -0
  27. data/proto_docs/google/longrunning/operations.rb +164 -0
  28. data/proto_docs/google/protobuf/any.rb +144 -0
  29. data/proto_docs/google/protobuf/duration.rb +98 -0
  30. data/proto_docs/google/protobuf/empty.rb +34 -0
  31. data/proto_docs/google/protobuf/field_mask.rb +229 -0
  32. data/proto_docs/google/protobuf/timestamp.rb +127 -0
  33. data/proto_docs/google/rpc/status.rb +48 -0
  34. metadata +209 -13
@@ -0,0 +1,2200 @@
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/telcoautomation/v1/telcoautomation_pb"
20
+
21
+ module Google
22
+ module Cloud
23
+ module TelcoAutomation
24
+ module V1
25
+ module TelcoAutomation
26
+ module Rest
27
+ ##
28
+ # REST service stub for the TelcoAutomation service.
29
+ # Service stub contains baseline method implementations
30
+ # including transcoding, making the REST call, and deserialing the response.
31
+ #
32
+ class ServiceStub
33
+ def initialize endpoint:, endpoint_template:, universe_domain:, credentials:
34
+ # These require statements are intentionally placed here to initialize
35
+ # the REST modules only when it's required.
36
+ require "gapic/rest"
37
+
38
+ @client_stub = ::Gapic::Rest::ClientStub.new endpoint: endpoint,
39
+ endpoint_template: endpoint_template,
40
+ universe_domain: universe_domain,
41
+ credentials: credentials,
42
+ numeric_enums: true,
43
+ raise_faraday_errors: false
44
+ end
45
+
46
+ ##
47
+ # The effective universe domain
48
+ #
49
+ # @return [String]
50
+ #
51
+ def universe_domain
52
+ @client_stub.universe_domain
53
+ end
54
+
55
+ ##
56
+ # Baseline implementation for the list_orchestration_clusters REST call
57
+ #
58
+ # @param request_pb [::Google::Cloud::TelcoAutomation::V1::ListOrchestrationClustersRequest]
59
+ # A request object representing the call parameters. Required.
60
+ # @param options [::Gapic::CallOptions]
61
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
62
+ #
63
+ # @yield [result, operation] Access the result along with the TransportOperation object
64
+ # @yieldparam result [::Google::Cloud::TelcoAutomation::V1::ListOrchestrationClustersResponse]
65
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
66
+ #
67
+ # @return [::Google::Cloud::TelcoAutomation::V1::ListOrchestrationClustersResponse]
68
+ # A result object deserialized from the server's reply
69
+ def list_orchestration_clusters request_pb, options = nil
70
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
71
+
72
+ verb, uri, query_string_params, body = ServiceStub.transcode_list_orchestration_clusters_request request_pb
73
+ query_string_params = if query_string_params.any?
74
+ query_string_params.to_h { |p| p.split "=", 2 }
75
+ else
76
+ {}
77
+ end
78
+
79
+ response = @client_stub.make_http_request(
80
+ verb,
81
+ uri: uri,
82
+ body: body || "",
83
+ params: query_string_params,
84
+ options: options
85
+ )
86
+ operation = ::Gapic::Rest::TransportOperation.new response
87
+ result = ::Google::Cloud::TelcoAutomation::V1::ListOrchestrationClustersResponse.decode_json response.body, ignore_unknown_fields: true
88
+
89
+ yield result, operation if block_given?
90
+ result
91
+ end
92
+
93
+ ##
94
+ # Baseline implementation for the get_orchestration_cluster REST call
95
+ #
96
+ # @param request_pb [::Google::Cloud::TelcoAutomation::V1::GetOrchestrationClusterRequest]
97
+ # A request object representing the call parameters. Required.
98
+ # @param options [::Gapic::CallOptions]
99
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
100
+ #
101
+ # @yield [result, operation] Access the result along with the TransportOperation object
102
+ # @yieldparam result [::Google::Cloud::TelcoAutomation::V1::OrchestrationCluster]
103
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
104
+ #
105
+ # @return [::Google::Cloud::TelcoAutomation::V1::OrchestrationCluster]
106
+ # A result object deserialized from the server's reply
107
+ def get_orchestration_cluster request_pb, options = nil
108
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
109
+
110
+ verb, uri, query_string_params, body = ServiceStub.transcode_get_orchestration_cluster_request request_pb
111
+ query_string_params = if query_string_params.any?
112
+ query_string_params.to_h { |p| p.split "=", 2 }
113
+ else
114
+ {}
115
+ end
116
+
117
+ response = @client_stub.make_http_request(
118
+ verb,
119
+ uri: uri,
120
+ body: body || "",
121
+ params: query_string_params,
122
+ options: options
123
+ )
124
+ operation = ::Gapic::Rest::TransportOperation.new response
125
+ result = ::Google::Cloud::TelcoAutomation::V1::OrchestrationCluster.decode_json response.body, ignore_unknown_fields: true
126
+
127
+ yield result, operation if block_given?
128
+ result
129
+ end
130
+
131
+ ##
132
+ # Baseline implementation for the create_orchestration_cluster REST call
133
+ #
134
+ # @param request_pb [::Google::Cloud::TelcoAutomation::V1::CreateOrchestrationClusterRequest]
135
+ # A request object representing the call parameters. Required.
136
+ # @param options [::Gapic::CallOptions]
137
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
138
+ #
139
+ # @yield [result, operation] Access the result along with the TransportOperation object
140
+ # @yieldparam result [::Google::Longrunning::Operation]
141
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
142
+ #
143
+ # @return [::Google::Longrunning::Operation]
144
+ # A result object deserialized from the server's reply
145
+ def create_orchestration_cluster request_pb, options = nil
146
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
147
+
148
+ verb, uri, query_string_params, body = ServiceStub.transcode_create_orchestration_cluster_request request_pb
149
+ query_string_params = if query_string_params.any?
150
+ query_string_params.to_h { |p| p.split "=", 2 }
151
+ else
152
+ {}
153
+ end
154
+
155
+ response = @client_stub.make_http_request(
156
+ verb,
157
+ uri: uri,
158
+ body: body || "",
159
+ params: query_string_params,
160
+ options: options
161
+ )
162
+ operation = ::Gapic::Rest::TransportOperation.new response
163
+ result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
164
+
165
+ yield result, operation if block_given?
166
+ result
167
+ end
168
+
169
+ ##
170
+ # Baseline implementation for the delete_orchestration_cluster REST call
171
+ #
172
+ # @param request_pb [::Google::Cloud::TelcoAutomation::V1::DeleteOrchestrationClusterRequest]
173
+ # A request object representing the call parameters. Required.
174
+ # @param options [::Gapic::CallOptions]
175
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
176
+ #
177
+ # @yield [result, operation] Access the result along with the TransportOperation object
178
+ # @yieldparam result [::Google::Longrunning::Operation]
179
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
180
+ #
181
+ # @return [::Google::Longrunning::Operation]
182
+ # A result object deserialized from the server's reply
183
+ def delete_orchestration_cluster request_pb, options = nil
184
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
185
+
186
+ verb, uri, query_string_params, body = ServiceStub.transcode_delete_orchestration_cluster_request request_pb
187
+ query_string_params = if query_string_params.any?
188
+ query_string_params.to_h { |p| p.split "=", 2 }
189
+ else
190
+ {}
191
+ end
192
+
193
+ response = @client_stub.make_http_request(
194
+ verb,
195
+ uri: uri,
196
+ body: body || "",
197
+ params: query_string_params,
198
+ options: options
199
+ )
200
+ operation = ::Gapic::Rest::TransportOperation.new response
201
+ result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
202
+
203
+ yield result, operation if block_given?
204
+ result
205
+ end
206
+
207
+ ##
208
+ # Baseline implementation for the list_edge_slms REST call
209
+ #
210
+ # @param request_pb [::Google::Cloud::TelcoAutomation::V1::ListEdgeSlmsRequest]
211
+ # A request object representing the call parameters. Required.
212
+ # @param options [::Gapic::CallOptions]
213
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
214
+ #
215
+ # @yield [result, operation] Access the result along with the TransportOperation object
216
+ # @yieldparam result [::Google::Cloud::TelcoAutomation::V1::ListEdgeSlmsResponse]
217
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
218
+ #
219
+ # @return [::Google::Cloud::TelcoAutomation::V1::ListEdgeSlmsResponse]
220
+ # A result object deserialized from the server's reply
221
+ def list_edge_slms request_pb, options = nil
222
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
223
+
224
+ verb, uri, query_string_params, body = ServiceStub.transcode_list_edge_slms_request request_pb
225
+ query_string_params = if query_string_params.any?
226
+ query_string_params.to_h { |p| p.split "=", 2 }
227
+ else
228
+ {}
229
+ end
230
+
231
+ response = @client_stub.make_http_request(
232
+ verb,
233
+ uri: uri,
234
+ body: body || "",
235
+ params: query_string_params,
236
+ options: options
237
+ )
238
+ operation = ::Gapic::Rest::TransportOperation.new response
239
+ result = ::Google::Cloud::TelcoAutomation::V1::ListEdgeSlmsResponse.decode_json response.body, ignore_unknown_fields: true
240
+
241
+ yield result, operation if block_given?
242
+ result
243
+ end
244
+
245
+ ##
246
+ # Baseline implementation for the get_edge_slm REST call
247
+ #
248
+ # @param request_pb [::Google::Cloud::TelcoAutomation::V1::GetEdgeSlmRequest]
249
+ # A request object representing the call parameters. Required.
250
+ # @param options [::Gapic::CallOptions]
251
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
252
+ #
253
+ # @yield [result, operation] Access the result along with the TransportOperation object
254
+ # @yieldparam result [::Google::Cloud::TelcoAutomation::V1::EdgeSlm]
255
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
256
+ #
257
+ # @return [::Google::Cloud::TelcoAutomation::V1::EdgeSlm]
258
+ # A result object deserialized from the server's reply
259
+ def get_edge_slm request_pb, options = nil
260
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
261
+
262
+ verb, uri, query_string_params, body = ServiceStub.transcode_get_edge_slm_request request_pb
263
+ query_string_params = if query_string_params.any?
264
+ query_string_params.to_h { |p| p.split "=", 2 }
265
+ else
266
+ {}
267
+ end
268
+
269
+ response = @client_stub.make_http_request(
270
+ verb,
271
+ uri: uri,
272
+ body: body || "",
273
+ params: query_string_params,
274
+ options: options
275
+ )
276
+ operation = ::Gapic::Rest::TransportOperation.new response
277
+ result = ::Google::Cloud::TelcoAutomation::V1::EdgeSlm.decode_json response.body, ignore_unknown_fields: true
278
+
279
+ yield result, operation if block_given?
280
+ result
281
+ end
282
+
283
+ ##
284
+ # Baseline implementation for the create_edge_slm REST call
285
+ #
286
+ # @param request_pb [::Google::Cloud::TelcoAutomation::V1::CreateEdgeSlmRequest]
287
+ # A request object representing the call parameters. Required.
288
+ # @param options [::Gapic::CallOptions]
289
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
290
+ #
291
+ # @yield [result, operation] Access the result along with the TransportOperation object
292
+ # @yieldparam result [::Google::Longrunning::Operation]
293
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
294
+ #
295
+ # @return [::Google::Longrunning::Operation]
296
+ # A result object deserialized from the server's reply
297
+ def create_edge_slm request_pb, options = nil
298
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
299
+
300
+ verb, uri, query_string_params, body = ServiceStub.transcode_create_edge_slm_request request_pb
301
+ query_string_params = if query_string_params.any?
302
+ query_string_params.to_h { |p| p.split "=", 2 }
303
+ else
304
+ {}
305
+ end
306
+
307
+ response = @client_stub.make_http_request(
308
+ verb,
309
+ uri: uri,
310
+ body: body || "",
311
+ params: query_string_params,
312
+ options: options
313
+ )
314
+ operation = ::Gapic::Rest::TransportOperation.new response
315
+ result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
316
+
317
+ yield result, operation if block_given?
318
+ result
319
+ end
320
+
321
+ ##
322
+ # Baseline implementation for the delete_edge_slm REST call
323
+ #
324
+ # @param request_pb [::Google::Cloud::TelcoAutomation::V1::DeleteEdgeSlmRequest]
325
+ # A request object representing the call parameters. Required.
326
+ # @param options [::Gapic::CallOptions]
327
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
328
+ #
329
+ # @yield [result, operation] Access the result along with the TransportOperation object
330
+ # @yieldparam result [::Google::Longrunning::Operation]
331
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
332
+ #
333
+ # @return [::Google::Longrunning::Operation]
334
+ # A result object deserialized from the server's reply
335
+ def delete_edge_slm request_pb, options = nil
336
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
337
+
338
+ verb, uri, query_string_params, body = ServiceStub.transcode_delete_edge_slm_request request_pb
339
+ query_string_params = if query_string_params.any?
340
+ query_string_params.to_h { |p| p.split "=", 2 }
341
+ else
342
+ {}
343
+ end
344
+
345
+ response = @client_stub.make_http_request(
346
+ verb,
347
+ uri: uri,
348
+ body: body || "",
349
+ params: query_string_params,
350
+ options: options
351
+ )
352
+ operation = ::Gapic::Rest::TransportOperation.new response
353
+ result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
354
+
355
+ yield result, operation if block_given?
356
+ result
357
+ end
358
+
359
+ ##
360
+ # Baseline implementation for the create_blueprint REST call
361
+ #
362
+ # @param request_pb [::Google::Cloud::TelcoAutomation::V1::CreateBlueprintRequest]
363
+ # A request object representing the call parameters. Required.
364
+ # @param options [::Gapic::CallOptions]
365
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
366
+ #
367
+ # @yield [result, operation] Access the result along with the TransportOperation object
368
+ # @yieldparam result [::Google::Cloud::TelcoAutomation::V1::Blueprint]
369
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
370
+ #
371
+ # @return [::Google::Cloud::TelcoAutomation::V1::Blueprint]
372
+ # A result object deserialized from the server's reply
373
+ def create_blueprint request_pb, options = nil
374
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
375
+
376
+ verb, uri, query_string_params, body = ServiceStub.transcode_create_blueprint_request request_pb
377
+ query_string_params = if query_string_params.any?
378
+ query_string_params.to_h { |p| p.split "=", 2 }
379
+ else
380
+ {}
381
+ end
382
+
383
+ response = @client_stub.make_http_request(
384
+ verb,
385
+ uri: uri,
386
+ body: body || "",
387
+ params: query_string_params,
388
+ options: options
389
+ )
390
+ operation = ::Gapic::Rest::TransportOperation.new response
391
+ result = ::Google::Cloud::TelcoAutomation::V1::Blueprint.decode_json response.body, ignore_unknown_fields: true
392
+
393
+ yield result, operation if block_given?
394
+ result
395
+ end
396
+
397
+ ##
398
+ # Baseline implementation for the update_blueprint REST call
399
+ #
400
+ # @param request_pb [::Google::Cloud::TelcoAutomation::V1::UpdateBlueprintRequest]
401
+ # A request object representing the call parameters. Required.
402
+ # @param options [::Gapic::CallOptions]
403
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
404
+ #
405
+ # @yield [result, operation] Access the result along with the TransportOperation object
406
+ # @yieldparam result [::Google::Cloud::TelcoAutomation::V1::Blueprint]
407
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
408
+ #
409
+ # @return [::Google::Cloud::TelcoAutomation::V1::Blueprint]
410
+ # A result object deserialized from the server's reply
411
+ def update_blueprint request_pb, options = nil
412
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
413
+
414
+ verb, uri, query_string_params, body = ServiceStub.transcode_update_blueprint_request request_pb
415
+ query_string_params = if query_string_params.any?
416
+ query_string_params.to_h { |p| p.split "=", 2 }
417
+ else
418
+ {}
419
+ end
420
+
421
+ response = @client_stub.make_http_request(
422
+ verb,
423
+ uri: uri,
424
+ body: body || "",
425
+ params: query_string_params,
426
+ options: options
427
+ )
428
+ operation = ::Gapic::Rest::TransportOperation.new response
429
+ result = ::Google::Cloud::TelcoAutomation::V1::Blueprint.decode_json response.body, ignore_unknown_fields: true
430
+
431
+ yield result, operation if block_given?
432
+ result
433
+ end
434
+
435
+ ##
436
+ # Baseline implementation for the get_blueprint REST call
437
+ #
438
+ # @param request_pb [::Google::Cloud::TelcoAutomation::V1::GetBlueprintRequest]
439
+ # A request object representing the call parameters. Required.
440
+ # @param options [::Gapic::CallOptions]
441
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
442
+ #
443
+ # @yield [result, operation] Access the result along with the TransportOperation object
444
+ # @yieldparam result [::Google::Cloud::TelcoAutomation::V1::Blueprint]
445
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
446
+ #
447
+ # @return [::Google::Cloud::TelcoAutomation::V1::Blueprint]
448
+ # A result object deserialized from the server's reply
449
+ def get_blueprint request_pb, options = nil
450
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
451
+
452
+ verb, uri, query_string_params, body = ServiceStub.transcode_get_blueprint_request request_pb
453
+ query_string_params = if query_string_params.any?
454
+ query_string_params.to_h { |p| p.split "=", 2 }
455
+ else
456
+ {}
457
+ end
458
+
459
+ response = @client_stub.make_http_request(
460
+ verb,
461
+ uri: uri,
462
+ body: body || "",
463
+ params: query_string_params,
464
+ options: options
465
+ )
466
+ operation = ::Gapic::Rest::TransportOperation.new response
467
+ result = ::Google::Cloud::TelcoAutomation::V1::Blueprint.decode_json response.body, ignore_unknown_fields: true
468
+
469
+ yield result, operation if block_given?
470
+ result
471
+ end
472
+
473
+ ##
474
+ # Baseline implementation for the delete_blueprint REST call
475
+ #
476
+ # @param request_pb [::Google::Cloud::TelcoAutomation::V1::DeleteBlueprintRequest]
477
+ # A request object representing the call parameters. Required.
478
+ # @param options [::Gapic::CallOptions]
479
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
480
+ #
481
+ # @yield [result, operation] Access the result along with the TransportOperation object
482
+ # @yieldparam result [::Google::Protobuf::Empty]
483
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
484
+ #
485
+ # @return [::Google::Protobuf::Empty]
486
+ # A result object deserialized from the server's reply
487
+ def delete_blueprint request_pb, options = nil
488
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
489
+
490
+ verb, uri, query_string_params, body = ServiceStub.transcode_delete_blueprint_request request_pb
491
+ query_string_params = if query_string_params.any?
492
+ query_string_params.to_h { |p| p.split "=", 2 }
493
+ else
494
+ {}
495
+ end
496
+
497
+ response = @client_stub.make_http_request(
498
+ verb,
499
+ uri: uri,
500
+ body: body || "",
501
+ params: query_string_params,
502
+ options: options
503
+ )
504
+ operation = ::Gapic::Rest::TransportOperation.new response
505
+ result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true
506
+
507
+ yield result, operation if block_given?
508
+ result
509
+ end
510
+
511
+ ##
512
+ # Baseline implementation for the list_blueprints REST call
513
+ #
514
+ # @param request_pb [::Google::Cloud::TelcoAutomation::V1::ListBlueprintsRequest]
515
+ # A request object representing the call parameters. Required.
516
+ # @param options [::Gapic::CallOptions]
517
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
518
+ #
519
+ # @yield [result, operation] Access the result along with the TransportOperation object
520
+ # @yieldparam result [::Google::Cloud::TelcoAutomation::V1::ListBlueprintsResponse]
521
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
522
+ #
523
+ # @return [::Google::Cloud::TelcoAutomation::V1::ListBlueprintsResponse]
524
+ # A result object deserialized from the server's reply
525
+ def list_blueprints request_pb, options = nil
526
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
527
+
528
+ verb, uri, query_string_params, body = ServiceStub.transcode_list_blueprints_request request_pb
529
+ query_string_params = if query_string_params.any?
530
+ query_string_params.to_h { |p| p.split "=", 2 }
531
+ else
532
+ {}
533
+ end
534
+
535
+ response = @client_stub.make_http_request(
536
+ verb,
537
+ uri: uri,
538
+ body: body || "",
539
+ params: query_string_params,
540
+ options: options
541
+ )
542
+ operation = ::Gapic::Rest::TransportOperation.new response
543
+ result = ::Google::Cloud::TelcoAutomation::V1::ListBlueprintsResponse.decode_json response.body, ignore_unknown_fields: true
544
+
545
+ yield result, operation if block_given?
546
+ result
547
+ end
548
+
549
+ ##
550
+ # Baseline implementation for the approve_blueprint REST call
551
+ #
552
+ # @param request_pb [::Google::Cloud::TelcoAutomation::V1::ApproveBlueprintRequest]
553
+ # A request object representing the call parameters. Required.
554
+ # @param options [::Gapic::CallOptions]
555
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
556
+ #
557
+ # @yield [result, operation] Access the result along with the TransportOperation object
558
+ # @yieldparam result [::Google::Cloud::TelcoAutomation::V1::Blueprint]
559
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
560
+ #
561
+ # @return [::Google::Cloud::TelcoAutomation::V1::Blueprint]
562
+ # A result object deserialized from the server's reply
563
+ def approve_blueprint request_pb, options = nil
564
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
565
+
566
+ verb, uri, query_string_params, body = ServiceStub.transcode_approve_blueprint_request request_pb
567
+ query_string_params = if query_string_params.any?
568
+ query_string_params.to_h { |p| p.split "=", 2 }
569
+ else
570
+ {}
571
+ end
572
+
573
+ response = @client_stub.make_http_request(
574
+ verb,
575
+ uri: uri,
576
+ body: body || "",
577
+ params: query_string_params,
578
+ options: options
579
+ )
580
+ operation = ::Gapic::Rest::TransportOperation.new response
581
+ result = ::Google::Cloud::TelcoAutomation::V1::Blueprint.decode_json response.body, ignore_unknown_fields: true
582
+
583
+ yield result, operation if block_given?
584
+ result
585
+ end
586
+
587
+ ##
588
+ # Baseline implementation for the propose_blueprint REST call
589
+ #
590
+ # @param request_pb [::Google::Cloud::TelcoAutomation::V1::ProposeBlueprintRequest]
591
+ # A request object representing the call parameters. Required.
592
+ # @param options [::Gapic::CallOptions]
593
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
594
+ #
595
+ # @yield [result, operation] Access the result along with the TransportOperation object
596
+ # @yieldparam result [::Google::Cloud::TelcoAutomation::V1::Blueprint]
597
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
598
+ #
599
+ # @return [::Google::Cloud::TelcoAutomation::V1::Blueprint]
600
+ # A result object deserialized from the server's reply
601
+ def propose_blueprint request_pb, options = nil
602
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
603
+
604
+ verb, uri, query_string_params, body = ServiceStub.transcode_propose_blueprint_request request_pb
605
+ query_string_params = if query_string_params.any?
606
+ query_string_params.to_h { |p| p.split "=", 2 }
607
+ else
608
+ {}
609
+ end
610
+
611
+ response = @client_stub.make_http_request(
612
+ verb,
613
+ uri: uri,
614
+ body: body || "",
615
+ params: query_string_params,
616
+ options: options
617
+ )
618
+ operation = ::Gapic::Rest::TransportOperation.new response
619
+ result = ::Google::Cloud::TelcoAutomation::V1::Blueprint.decode_json response.body, ignore_unknown_fields: true
620
+
621
+ yield result, operation if block_given?
622
+ result
623
+ end
624
+
625
+ ##
626
+ # Baseline implementation for the reject_blueprint REST call
627
+ #
628
+ # @param request_pb [::Google::Cloud::TelcoAutomation::V1::RejectBlueprintRequest]
629
+ # A request object representing the call parameters. Required.
630
+ # @param options [::Gapic::CallOptions]
631
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
632
+ #
633
+ # @yield [result, operation] Access the result along with the TransportOperation object
634
+ # @yieldparam result [::Google::Cloud::TelcoAutomation::V1::Blueprint]
635
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
636
+ #
637
+ # @return [::Google::Cloud::TelcoAutomation::V1::Blueprint]
638
+ # A result object deserialized from the server's reply
639
+ def reject_blueprint request_pb, options = nil
640
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
641
+
642
+ verb, uri, query_string_params, body = ServiceStub.transcode_reject_blueprint_request request_pb
643
+ query_string_params = if query_string_params.any?
644
+ query_string_params.to_h { |p| p.split "=", 2 }
645
+ else
646
+ {}
647
+ end
648
+
649
+ response = @client_stub.make_http_request(
650
+ verb,
651
+ uri: uri,
652
+ body: body || "",
653
+ params: query_string_params,
654
+ options: options
655
+ )
656
+ operation = ::Gapic::Rest::TransportOperation.new response
657
+ result = ::Google::Cloud::TelcoAutomation::V1::Blueprint.decode_json response.body, ignore_unknown_fields: true
658
+
659
+ yield result, operation if block_given?
660
+ result
661
+ end
662
+
663
+ ##
664
+ # Baseline implementation for the list_blueprint_revisions REST call
665
+ #
666
+ # @param request_pb [::Google::Cloud::TelcoAutomation::V1::ListBlueprintRevisionsRequest]
667
+ # A request object representing the call parameters. Required.
668
+ # @param options [::Gapic::CallOptions]
669
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
670
+ #
671
+ # @yield [result, operation] Access the result along with the TransportOperation object
672
+ # @yieldparam result [::Google::Cloud::TelcoAutomation::V1::ListBlueprintRevisionsResponse]
673
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
674
+ #
675
+ # @return [::Google::Cloud::TelcoAutomation::V1::ListBlueprintRevisionsResponse]
676
+ # A result object deserialized from the server's reply
677
+ def list_blueprint_revisions request_pb, options = nil
678
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
679
+
680
+ verb, uri, query_string_params, body = ServiceStub.transcode_list_blueprint_revisions_request request_pb
681
+ query_string_params = if query_string_params.any?
682
+ query_string_params.to_h { |p| p.split "=", 2 }
683
+ else
684
+ {}
685
+ end
686
+
687
+ response = @client_stub.make_http_request(
688
+ verb,
689
+ uri: uri,
690
+ body: body || "",
691
+ params: query_string_params,
692
+ options: options
693
+ )
694
+ operation = ::Gapic::Rest::TransportOperation.new response
695
+ result = ::Google::Cloud::TelcoAutomation::V1::ListBlueprintRevisionsResponse.decode_json response.body, ignore_unknown_fields: true
696
+
697
+ yield result, operation if block_given?
698
+ result
699
+ end
700
+
701
+ ##
702
+ # Baseline implementation for the search_blueprint_revisions REST call
703
+ #
704
+ # @param request_pb [::Google::Cloud::TelcoAutomation::V1::SearchBlueprintRevisionsRequest]
705
+ # A request object representing the call parameters. Required.
706
+ # @param options [::Gapic::CallOptions]
707
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
708
+ #
709
+ # @yield [result, operation] Access the result along with the TransportOperation object
710
+ # @yieldparam result [::Google::Cloud::TelcoAutomation::V1::SearchBlueprintRevisionsResponse]
711
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
712
+ #
713
+ # @return [::Google::Cloud::TelcoAutomation::V1::SearchBlueprintRevisionsResponse]
714
+ # A result object deserialized from the server's reply
715
+ def search_blueprint_revisions request_pb, options = nil
716
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
717
+
718
+ verb, uri, query_string_params, body = ServiceStub.transcode_search_blueprint_revisions_request request_pb
719
+ query_string_params = if query_string_params.any?
720
+ query_string_params.to_h { |p| p.split "=", 2 }
721
+ else
722
+ {}
723
+ end
724
+
725
+ response = @client_stub.make_http_request(
726
+ verb,
727
+ uri: uri,
728
+ body: body || "",
729
+ params: query_string_params,
730
+ options: options
731
+ )
732
+ operation = ::Gapic::Rest::TransportOperation.new response
733
+ result = ::Google::Cloud::TelcoAutomation::V1::SearchBlueprintRevisionsResponse.decode_json response.body, ignore_unknown_fields: true
734
+
735
+ yield result, operation if block_given?
736
+ result
737
+ end
738
+
739
+ ##
740
+ # Baseline implementation for the search_deployment_revisions REST call
741
+ #
742
+ # @param request_pb [::Google::Cloud::TelcoAutomation::V1::SearchDeploymentRevisionsRequest]
743
+ # A request object representing the call parameters. Required.
744
+ # @param options [::Gapic::CallOptions]
745
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
746
+ #
747
+ # @yield [result, operation] Access the result along with the TransportOperation object
748
+ # @yieldparam result [::Google::Cloud::TelcoAutomation::V1::SearchDeploymentRevisionsResponse]
749
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
750
+ #
751
+ # @return [::Google::Cloud::TelcoAutomation::V1::SearchDeploymentRevisionsResponse]
752
+ # A result object deserialized from the server's reply
753
+ def search_deployment_revisions request_pb, options = nil
754
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
755
+
756
+ verb, uri, query_string_params, body = ServiceStub.transcode_search_deployment_revisions_request request_pb
757
+ query_string_params = if query_string_params.any?
758
+ query_string_params.to_h { |p| p.split "=", 2 }
759
+ else
760
+ {}
761
+ end
762
+
763
+ response = @client_stub.make_http_request(
764
+ verb,
765
+ uri: uri,
766
+ body: body || "",
767
+ params: query_string_params,
768
+ options: options
769
+ )
770
+ operation = ::Gapic::Rest::TransportOperation.new response
771
+ result = ::Google::Cloud::TelcoAutomation::V1::SearchDeploymentRevisionsResponse.decode_json response.body, ignore_unknown_fields: true
772
+
773
+ yield result, operation if block_given?
774
+ result
775
+ end
776
+
777
+ ##
778
+ # Baseline implementation for the discard_blueprint_changes REST call
779
+ #
780
+ # @param request_pb [::Google::Cloud::TelcoAutomation::V1::DiscardBlueprintChangesRequest]
781
+ # A request object representing the call parameters. Required.
782
+ # @param options [::Gapic::CallOptions]
783
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
784
+ #
785
+ # @yield [result, operation] Access the result along with the TransportOperation object
786
+ # @yieldparam result [::Google::Cloud::TelcoAutomation::V1::DiscardBlueprintChangesResponse]
787
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
788
+ #
789
+ # @return [::Google::Cloud::TelcoAutomation::V1::DiscardBlueprintChangesResponse]
790
+ # A result object deserialized from the server's reply
791
+ def discard_blueprint_changes request_pb, options = nil
792
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
793
+
794
+ verb, uri, query_string_params, body = ServiceStub.transcode_discard_blueprint_changes_request request_pb
795
+ query_string_params = if query_string_params.any?
796
+ query_string_params.to_h { |p| p.split "=", 2 }
797
+ else
798
+ {}
799
+ end
800
+
801
+ response = @client_stub.make_http_request(
802
+ verb,
803
+ uri: uri,
804
+ body: body || "",
805
+ params: query_string_params,
806
+ options: options
807
+ )
808
+ operation = ::Gapic::Rest::TransportOperation.new response
809
+ result = ::Google::Cloud::TelcoAutomation::V1::DiscardBlueprintChangesResponse.decode_json response.body, ignore_unknown_fields: true
810
+
811
+ yield result, operation if block_given?
812
+ result
813
+ end
814
+
815
+ ##
816
+ # Baseline implementation for the list_public_blueprints REST call
817
+ #
818
+ # @param request_pb [::Google::Cloud::TelcoAutomation::V1::ListPublicBlueprintsRequest]
819
+ # A request object representing the call parameters. Required.
820
+ # @param options [::Gapic::CallOptions]
821
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
822
+ #
823
+ # @yield [result, operation] Access the result along with the TransportOperation object
824
+ # @yieldparam result [::Google::Cloud::TelcoAutomation::V1::ListPublicBlueprintsResponse]
825
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
826
+ #
827
+ # @return [::Google::Cloud::TelcoAutomation::V1::ListPublicBlueprintsResponse]
828
+ # A result object deserialized from the server's reply
829
+ def list_public_blueprints request_pb, options = nil
830
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
831
+
832
+ verb, uri, query_string_params, body = ServiceStub.transcode_list_public_blueprints_request request_pb
833
+ query_string_params = if query_string_params.any?
834
+ query_string_params.to_h { |p| p.split "=", 2 }
835
+ else
836
+ {}
837
+ end
838
+
839
+ response = @client_stub.make_http_request(
840
+ verb,
841
+ uri: uri,
842
+ body: body || "",
843
+ params: query_string_params,
844
+ options: options
845
+ )
846
+ operation = ::Gapic::Rest::TransportOperation.new response
847
+ result = ::Google::Cloud::TelcoAutomation::V1::ListPublicBlueprintsResponse.decode_json response.body, ignore_unknown_fields: true
848
+
849
+ yield result, operation if block_given?
850
+ result
851
+ end
852
+
853
+ ##
854
+ # Baseline implementation for the get_public_blueprint REST call
855
+ #
856
+ # @param request_pb [::Google::Cloud::TelcoAutomation::V1::GetPublicBlueprintRequest]
857
+ # A request object representing the call parameters. Required.
858
+ # @param options [::Gapic::CallOptions]
859
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
860
+ #
861
+ # @yield [result, operation] Access the result along with the TransportOperation object
862
+ # @yieldparam result [::Google::Cloud::TelcoAutomation::V1::PublicBlueprint]
863
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
864
+ #
865
+ # @return [::Google::Cloud::TelcoAutomation::V1::PublicBlueprint]
866
+ # A result object deserialized from the server's reply
867
+ def get_public_blueprint request_pb, options = nil
868
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
869
+
870
+ verb, uri, query_string_params, body = ServiceStub.transcode_get_public_blueprint_request request_pb
871
+ query_string_params = if query_string_params.any?
872
+ query_string_params.to_h { |p| p.split "=", 2 }
873
+ else
874
+ {}
875
+ end
876
+
877
+ response = @client_stub.make_http_request(
878
+ verb,
879
+ uri: uri,
880
+ body: body || "",
881
+ params: query_string_params,
882
+ options: options
883
+ )
884
+ operation = ::Gapic::Rest::TransportOperation.new response
885
+ result = ::Google::Cloud::TelcoAutomation::V1::PublicBlueprint.decode_json response.body, ignore_unknown_fields: true
886
+
887
+ yield result, operation if block_given?
888
+ result
889
+ end
890
+
891
+ ##
892
+ # Baseline implementation for the create_deployment REST call
893
+ #
894
+ # @param request_pb [::Google::Cloud::TelcoAutomation::V1::CreateDeploymentRequest]
895
+ # A request object representing the call parameters. Required.
896
+ # @param options [::Gapic::CallOptions]
897
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
898
+ #
899
+ # @yield [result, operation] Access the result along with the TransportOperation object
900
+ # @yieldparam result [::Google::Cloud::TelcoAutomation::V1::Deployment]
901
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
902
+ #
903
+ # @return [::Google::Cloud::TelcoAutomation::V1::Deployment]
904
+ # A result object deserialized from the server's reply
905
+ def create_deployment request_pb, options = nil
906
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
907
+
908
+ verb, uri, query_string_params, body = ServiceStub.transcode_create_deployment_request request_pb
909
+ query_string_params = if query_string_params.any?
910
+ query_string_params.to_h { |p| p.split "=", 2 }
911
+ else
912
+ {}
913
+ end
914
+
915
+ response = @client_stub.make_http_request(
916
+ verb,
917
+ uri: uri,
918
+ body: body || "",
919
+ params: query_string_params,
920
+ options: options
921
+ )
922
+ operation = ::Gapic::Rest::TransportOperation.new response
923
+ result = ::Google::Cloud::TelcoAutomation::V1::Deployment.decode_json response.body, ignore_unknown_fields: true
924
+
925
+ yield result, operation if block_given?
926
+ result
927
+ end
928
+
929
+ ##
930
+ # Baseline implementation for the update_deployment REST call
931
+ #
932
+ # @param request_pb [::Google::Cloud::TelcoAutomation::V1::UpdateDeploymentRequest]
933
+ # A request object representing the call parameters. Required.
934
+ # @param options [::Gapic::CallOptions]
935
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
936
+ #
937
+ # @yield [result, operation] Access the result along with the TransportOperation object
938
+ # @yieldparam result [::Google::Cloud::TelcoAutomation::V1::Deployment]
939
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
940
+ #
941
+ # @return [::Google::Cloud::TelcoAutomation::V1::Deployment]
942
+ # A result object deserialized from the server's reply
943
+ def update_deployment request_pb, options = nil
944
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
945
+
946
+ verb, uri, query_string_params, body = ServiceStub.transcode_update_deployment_request request_pb
947
+ query_string_params = if query_string_params.any?
948
+ query_string_params.to_h { |p| p.split "=", 2 }
949
+ else
950
+ {}
951
+ end
952
+
953
+ response = @client_stub.make_http_request(
954
+ verb,
955
+ uri: uri,
956
+ body: body || "",
957
+ params: query_string_params,
958
+ options: options
959
+ )
960
+ operation = ::Gapic::Rest::TransportOperation.new response
961
+ result = ::Google::Cloud::TelcoAutomation::V1::Deployment.decode_json response.body, ignore_unknown_fields: true
962
+
963
+ yield result, operation if block_given?
964
+ result
965
+ end
966
+
967
+ ##
968
+ # Baseline implementation for the get_deployment REST call
969
+ #
970
+ # @param request_pb [::Google::Cloud::TelcoAutomation::V1::GetDeploymentRequest]
971
+ # A request object representing the call parameters. Required.
972
+ # @param options [::Gapic::CallOptions]
973
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
974
+ #
975
+ # @yield [result, operation] Access the result along with the TransportOperation object
976
+ # @yieldparam result [::Google::Cloud::TelcoAutomation::V1::Deployment]
977
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
978
+ #
979
+ # @return [::Google::Cloud::TelcoAutomation::V1::Deployment]
980
+ # A result object deserialized from the server's reply
981
+ def get_deployment request_pb, options = nil
982
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
983
+
984
+ verb, uri, query_string_params, body = ServiceStub.transcode_get_deployment_request request_pb
985
+ query_string_params = if query_string_params.any?
986
+ query_string_params.to_h { |p| p.split "=", 2 }
987
+ else
988
+ {}
989
+ end
990
+
991
+ response = @client_stub.make_http_request(
992
+ verb,
993
+ uri: uri,
994
+ body: body || "",
995
+ params: query_string_params,
996
+ options: options
997
+ )
998
+ operation = ::Gapic::Rest::TransportOperation.new response
999
+ result = ::Google::Cloud::TelcoAutomation::V1::Deployment.decode_json response.body, ignore_unknown_fields: true
1000
+
1001
+ yield result, operation if block_given?
1002
+ result
1003
+ end
1004
+
1005
+ ##
1006
+ # Baseline implementation for the remove_deployment REST call
1007
+ #
1008
+ # @param request_pb [::Google::Cloud::TelcoAutomation::V1::RemoveDeploymentRequest]
1009
+ # A request object representing the call parameters. Required.
1010
+ # @param options [::Gapic::CallOptions]
1011
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1012
+ #
1013
+ # @yield [result, operation] Access the result along with the TransportOperation object
1014
+ # @yieldparam result [::Google::Protobuf::Empty]
1015
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1016
+ #
1017
+ # @return [::Google::Protobuf::Empty]
1018
+ # A result object deserialized from the server's reply
1019
+ def remove_deployment request_pb, options = nil
1020
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
1021
+
1022
+ verb, uri, query_string_params, body = ServiceStub.transcode_remove_deployment_request request_pb
1023
+ query_string_params = if query_string_params.any?
1024
+ query_string_params.to_h { |p| p.split "=", 2 }
1025
+ else
1026
+ {}
1027
+ end
1028
+
1029
+ response = @client_stub.make_http_request(
1030
+ verb,
1031
+ uri: uri,
1032
+ body: body || "",
1033
+ params: query_string_params,
1034
+ options: options
1035
+ )
1036
+ operation = ::Gapic::Rest::TransportOperation.new response
1037
+ result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true
1038
+
1039
+ yield result, operation if block_given?
1040
+ result
1041
+ end
1042
+
1043
+ ##
1044
+ # Baseline implementation for the list_deployments REST call
1045
+ #
1046
+ # @param request_pb [::Google::Cloud::TelcoAutomation::V1::ListDeploymentsRequest]
1047
+ # A request object representing the call parameters. Required.
1048
+ # @param options [::Gapic::CallOptions]
1049
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1050
+ #
1051
+ # @yield [result, operation] Access the result along with the TransportOperation object
1052
+ # @yieldparam result [::Google::Cloud::TelcoAutomation::V1::ListDeploymentsResponse]
1053
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1054
+ #
1055
+ # @return [::Google::Cloud::TelcoAutomation::V1::ListDeploymentsResponse]
1056
+ # A result object deserialized from the server's reply
1057
+ def list_deployments request_pb, options = nil
1058
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
1059
+
1060
+ verb, uri, query_string_params, body = ServiceStub.transcode_list_deployments_request request_pb
1061
+ query_string_params = if query_string_params.any?
1062
+ query_string_params.to_h { |p| p.split "=", 2 }
1063
+ else
1064
+ {}
1065
+ end
1066
+
1067
+ response = @client_stub.make_http_request(
1068
+ verb,
1069
+ uri: uri,
1070
+ body: body || "",
1071
+ params: query_string_params,
1072
+ options: options
1073
+ )
1074
+ operation = ::Gapic::Rest::TransportOperation.new response
1075
+ result = ::Google::Cloud::TelcoAutomation::V1::ListDeploymentsResponse.decode_json response.body, ignore_unknown_fields: true
1076
+
1077
+ yield result, operation if block_given?
1078
+ result
1079
+ end
1080
+
1081
+ ##
1082
+ # Baseline implementation for the list_deployment_revisions REST call
1083
+ #
1084
+ # @param request_pb [::Google::Cloud::TelcoAutomation::V1::ListDeploymentRevisionsRequest]
1085
+ # A request object representing the call parameters. Required.
1086
+ # @param options [::Gapic::CallOptions]
1087
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1088
+ #
1089
+ # @yield [result, operation] Access the result along with the TransportOperation object
1090
+ # @yieldparam result [::Google::Cloud::TelcoAutomation::V1::ListDeploymentRevisionsResponse]
1091
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1092
+ #
1093
+ # @return [::Google::Cloud::TelcoAutomation::V1::ListDeploymentRevisionsResponse]
1094
+ # A result object deserialized from the server's reply
1095
+ def list_deployment_revisions request_pb, options = nil
1096
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
1097
+
1098
+ verb, uri, query_string_params, body = ServiceStub.transcode_list_deployment_revisions_request request_pb
1099
+ query_string_params = if query_string_params.any?
1100
+ query_string_params.to_h { |p| p.split "=", 2 }
1101
+ else
1102
+ {}
1103
+ end
1104
+
1105
+ response = @client_stub.make_http_request(
1106
+ verb,
1107
+ uri: uri,
1108
+ body: body || "",
1109
+ params: query_string_params,
1110
+ options: options
1111
+ )
1112
+ operation = ::Gapic::Rest::TransportOperation.new response
1113
+ result = ::Google::Cloud::TelcoAutomation::V1::ListDeploymentRevisionsResponse.decode_json response.body, ignore_unknown_fields: true
1114
+
1115
+ yield result, operation if block_given?
1116
+ result
1117
+ end
1118
+
1119
+ ##
1120
+ # Baseline implementation for the discard_deployment_changes REST call
1121
+ #
1122
+ # @param request_pb [::Google::Cloud::TelcoAutomation::V1::DiscardDeploymentChangesRequest]
1123
+ # A request object representing the call parameters. Required.
1124
+ # @param options [::Gapic::CallOptions]
1125
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1126
+ #
1127
+ # @yield [result, operation] Access the result along with the TransportOperation object
1128
+ # @yieldparam result [::Google::Cloud::TelcoAutomation::V1::DiscardDeploymentChangesResponse]
1129
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1130
+ #
1131
+ # @return [::Google::Cloud::TelcoAutomation::V1::DiscardDeploymentChangesResponse]
1132
+ # A result object deserialized from the server's reply
1133
+ def discard_deployment_changes request_pb, options = nil
1134
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
1135
+
1136
+ verb, uri, query_string_params, body = ServiceStub.transcode_discard_deployment_changes_request request_pb
1137
+ query_string_params = if query_string_params.any?
1138
+ query_string_params.to_h { |p| p.split "=", 2 }
1139
+ else
1140
+ {}
1141
+ end
1142
+
1143
+ response = @client_stub.make_http_request(
1144
+ verb,
1145
+ uri: uri,
1146
+ body: body || "",
1147
+ params: query_string_params,
1148
+ options: options
1149
+ )
1150
+ operation = ::Gapic::Rest::TransportOperation.new response
1151
+ result = ::Google::Cloud::TelcoAutomation::V1::DiscardDeploymentChangesResponse.decode_json response.body, ignore_unknown_fields: true
1152
+
1153
+ yield result, operation if block_given?
1154
+ result
1155
+ end
1156
+
1157
+ ##
1158
+ # Baseline implementation for the apply_deployment REST call
1159
+ #
1160
+ # @param request_pb [::Google::Cloud::TelcoAutomation::V1::ApplyDeploymentRequest]
1161
+ # A request object representing the call parameters. Required.
1162
+ # @param options [::Gapic::CallOptions]
1163
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1164
+ #
1165
+ # @yield [result, operation] Access the result along with the TransportOperation object
1166
+ # @yieldparam result [::Google::Cloud::TelcoAutomation::V1::Deployment]
1167
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1168
+ #
1169
+ # @return [::Google::Cloud::TelcoAutomation::V1::Deployment]
1170
+ # A result object deserialized from the server's reply
1171
+ def apply_deployment request_pb, options = nil
1172
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
1173
+
1174
+ verb, uri, query_string_params, body = ServiceStub.transcode_apply_deployment_request request_pb
1175
+ query_string_params = if query_string_params.any?
1176
+ query_string_params.to_h { |p| p.split "=", 2 }
1177
+ else
1178
+ {}
1179
+ end
1180
+
1181
+ response = @client_stub.make_http_request(
1182
+ verb,
1183
+ uri: uri,
1184
+ body: body || "",
1185
+ params: query_string_params,
1186
+ options: options
1187
+ )
1188
+ operation = ::Gapic::Rest::TransportOperation.new response
1189
+ result = ::Google::Cloud::TelcoAutomation::V1::Deployment.decode_json response.body, ignore_unknown_fields: true
1190
+
1191
+ yield result, operation if block_given?
1192
+ result
1193
+ end
1194
+
1195
+ ##
1196
+ # Baseline implementation for the compute_deployment_status REST call
1197
+ #
1198
+ # @param request_pb [::Google::Cloud::TelcoAutomation::V1::ComputeDeploymentStatusRequest]
1199
+ # A request object representing the call parameters. Required.
1200
+ # @param options [::Gapic::CallOptions]
1201
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1202
+ #
1203
+ # @yield [result, operation] Access the result along with the TransportOperation object
1204
+ # @yieldparam result [::Google::Cloud::TelcoAutomation::V1::ComputeDeploymentStatusResponse]
1205
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1206
+ #
1207
+ # @return [::Google::Cloud::TelcoAutomation::V1::ComputeDeploymentStatusResponse]
1208
+ # A result object deserialized from the server's reply
1209
+ def compute_deployment_status request_pb, options = nil
1210
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
1211
+
1212
+ verb, uri, query_string_params, body = ServiceStub.transcode_compute_deployment_status_request request_pb
1213
+ query_string_params = if query_string_params.any?
1214
+ query_string_params.to_h { |p| p.split "=", 2 }
1215
+ else
1216
+ {}
1217
+ end
1218
+
1219
+ response = @client_stub.make_http_request(
1220
+ verb,
1221
+ uri: uri,
1222
+ body: body || "",
1223
+ params: query_string_params,
1224
+ options: options
1225
+ )
1226
+ operation = ::Gapic::Rest::TransportOperation.new response
1227
+ result = ::Google::Cloud::TelcoAutomation::V1::ComputeDeploymentStatusResponse.decode_json response.body, ignore_unknown_fields: true
1228
+
1229
+ yield result, operation if block_given?
1230
+ result
1231
+ end
1232
+
1233
+ ##
1234
+ # Baseline implementation for the rollback_deployment REST call
1235
+ #
1236
+ # @param request_pb [::Google::Cloud::TelcoAutomation::V1::RollbackDeploymentRequest]
1237
+ # A request object representing the call parameters. Required.
1238
+ # @param options [::Gapic::CallOptions]
1239
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1240
+ #
1241
+ # @yield [result, operation] Access the result along with the TransportOperation object
1242
+ # @yieldparam result [::Google::Cloud::TelcoAutomation::V1::Deployment]
1243
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1244
+ #
1245
+ # @return [::Google::Cloud::TelcoAutomation::V1::Deployment]
1246
+ # A result object deserialized from the server's reply
1247
+ def rollback_deployment request_pb, options = nil
1248
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
1249
+
1250
+ verb, uri, query_string_params, body = ServiceStub.transcode_rollback_deployment_request request_pb
1251
+ query_string_params = if query_string_params.any?
1252
+ query_string_params.to_h { |p| p.split "=", 2 }
1253
+ else
1254
+ {}
1255
+ end
1256
+
1257
+ response = @client_stub.make_http_request(
1258
+ verb,
1259
+ uri: uri,
1260
+ body: body || "",
1261
+ params: query_string_params,
1262
+ options: options
1263
+ )
1264
+ operation = ::Gapic::Rest::TransportOperation.new response
1265
+ result = ::Google::Cloud::TelcoAutomation::V1::Deployment.decode_json response.body, ignore_unknown_fields: true
1266
+
1267
+ yield result, operation if block_given?
1268
+ result
1269
+ end
1270
+
1271
+ ##
1272
+ # Baseline implementation for the get_hydrated_deployment REST call
1273
+ #
1274
+ # @param request_pb [::Google::Cloud::TelcoAutomation::V1::GetHydratedDeploymentRequest]
1275
+ # A request object representing the call parameters. Required.
1276
+ # @param options [::Gapic::CallOptions]
1277
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1278
+ #
1279
+ # @yield [result, operation] Access the result along with the TransportOperation object
1280
+ # @yieldparam result [::Google::Cloud::TelcoAutomation::V1::HydratedDeployment]
1281
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1282
+ #
1283
+ # @return [::Google::Cloud::TelcoAutomation::V1::HydratedDeployment]
1284
+ # A result object deserialized from the server's reply
1285
+ def get_hydrated_deployment request_pb, options = nil
1286
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
1287
+
1288
+ verb, uri, query_string_params, body = ServiceStub.transcode_get_hydrated_deployment_request request_pb
1289
+ query_string_params = if query_string_params.any?
1290
+ query_string_params.to_h { |p| p.split "=", 2 }
1291
+ else
1292
+ {}
1293
+ end
1294
+
1295
+ response = @client_stub.make_http_request(
1296
+ verb,
1297
+ uri: uri,
1298
+ body: body || "",
1299
+ params: query_string_params,
1300
+ options: options
1301
+ )
1302
+ operation = ::Gapic::Rest::TransportOperation.new response
1303
+ result = ::Google::Cloud::TelcoAutomation::V1::HydratedDeployment.decode_json response.body, ignore_unknown_fields: true
1304
+
1305
+ yield result, operation if block_given?
1306
+ result
1307
+ end
1308
+
1309
+ ##
1310
+ # Baseline implementation for the list_hydrated_deployments REST call
1311
+ #
1312
+ # @param request_pb [::Google::Cloud::TelcoAutomation::V1::ListHydratedDeploymentsRequest]
1313
+ # A request object representing the call parameters. Required.
1314
+ # @param options [::Gapic::CallOptions]
1315
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1316
+ #
1317
+ # @yield [result, operation] Access the result along with the TransportOperation object
1318
+ # @yieldparam result [::Google::Cloud::TelcoAutomation::V1::ListHydratedDeploymentsResponse]
1319
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1320
+ #
1321
+ # @return [::Google::Cloud::TelcoAutomation::V1::ListHydratedDeploymentsResponse]
1322
+ # A result object deserialized from the server's reply
1323
+ def list_hydrated_deployments request_pb, options = nil
1324
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
1325
+
1326
+ verb, uri, query_string_params, body = ServiceStub.transcode_list_hydrated_deployments_request request_pb
1327
+ query_string_params = if query_string_params.any?
1328
+ query_string_params.to_h { |p| p.split "=", 2 }
1329
+ else
1330
+ {}
1331
+ end
1332
+
1333
+ response = @client_stub.make_http_request(
1334
+ verb,
1335
+ uri: uri,
1336
+ body: body || "",
1337
+ params: query_string_params,
1338
+ options: options
1339
+ )
1340
+ operation = ::Gapic::Rest::TransportOperation.new response
1341
+ result = ::Google::Cloud::TelcoAutomation::V1::ListHydratedDeploymentsResponse.decode_json response.body, ignore_unknown_fields: true
1342
+
1343
+ yield result, operation if block_given?
1344
+ result
1345
+ end
1346
+
1347
+ ##
1348
+ # Baseline implementation for the update_hydrated_deployment REST call
1349
+ #
1350
+ # @param request_pb [::Google::Cloud::TelcoAutomation::V1::UpdateHydratedDeploymentRequest]
1351
+ # A request object representing the call parameters. Required.
1352
+ # @param options [::Gapic::CallOptions]
1353
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1354
+ #
1355
+ # @yield [result, operation] Access the result along with the TransportOperation object
1356
+ # @yieldparam result [::Google::Cloud::TelcoAutomation::V1::HydratedDeployment]
1357
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1358
+ #
1359
+ # @return [::Google::Cloud::TelcoAutomation::V1::HydratedDeployment]
1360
+ # A result object deserialized from the server's reply
1361
+ def update_hydrated_deployment request_pb, options = nil
1362
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
1363
+
1364
+ verb, uri, query_string_params, body = ServiceStub.transcode_update_hydrated_deployment_request request_pb
1365
+ query_string_params = if query_string_params.any?
1366
+ query_string_params.to_h { |p| p.split "=", 2 }
1367
+ else
1368
+ {}
1369
+ end
1370
+
1371
+ response = @client_stub.make_http_request(
1372
+ verb,
1373
+ uri: uri,
1374
+ body: body || "",
1375
+ params: query_string_params,
1376
+ options: options
1377
+ )
1378
+ operation = ::Gapic::Rest::TransportOperation.new response
1379
+ result = ::Google::Cloud::TelcoAutomation::V1::HydratedDeployment.decode_json response.body, ignore_unknown_fields: true
1380
+
1381
+ yield result, operation if block_given?
1382
+ result
1383
+ end
1384
+
1385
+ ##
1386
+ # Baseline implementation for the apply_hydrated_deployment REST call
1387
+ #
1388
+ # @param request_pb [::Google::Cloud::TelcoAutomation::V1::ApplyHydratedDeploymentRequest]
1389
+ # A request object representing the call parameters. Required.
1390
+ # @param options [::Gapic::CallOptions]
1391
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1392
+ #
1393
+ # @yield [result, operation] Access the result along with the TransportOperation object
1394
+ # @yieldparam result [::Google::Cloud::TelcoAutomation::V1::HydratedDeployment]
1395
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1396
+ #
1397
+ # @return [::Google::Cloud::TelcoAutomation::V1::HydratedDeployment]
1398
+ # A result object deserialized from the server's reply
1399
+ def apply_hydrated_deployment request_pb, options = nil
1400
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
1401
+
1402
+ verb, uri, query_string_params, body = ServiceStub.transcode_apply_hydrated_deployment_request request_pb
1403
+ query_string_params = if query_string_params.any?
1404
+ query_string_params.to_h { |p| p.split "=", 2 }
1405
+ else
1406
+ {}
1407
+ end
1408
+
1409
+ response = @client_stub.make_http_request(
1410
+ verb,
1411
+ uri: uri,
1412
+ body: body || "",
1413
+ params: query_string_params,
1414
+ options: options
1415
+ )
1416
+ operation = ::Gapic::Rest::TransportOperation.new response
1417
+ result = ::Google::Cloud::TelcoAutomation::V1::HydratedDeployment.decode_json response.body, ignore_unknown_fields: true
1418
+
1419
+ yield result, operation if block_given?
1420
+ result
1421
+ end
1422
+
1423
+ ##
1424
+ # @private
1425
+ #
1426
+ # GRPC transcoding helper method for the list_orchestration_clusters REST call
1427
+ #
1428
+ # @param request_pb [::Google::Cloud::TelcoAutomation::V1::ListOrchestrationClustersRequest]
1429
+ # A request object representing the call parameters. Required.
1430
+ # @return [Array(String, [String, nil], Hash{String => String})]
1431
+ # Uri, Body, Query string parameters
1432
+ def self.transcode_list_orchestration_clusters_request request_pb
1433
+ transcoder = Gapic::Rest::GrpcTranscoder.new
1434
+ .with_bindings(
1435
+ uri_method: :get,
1436
+ uri_template: "/v1/{parent}/orchestrationClusters",
1437
+ matches: [
1438
+ ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
1439
+ ]
1440
+ )
1441
+ transcoder.transcode request_pb
1442
+ end
1443
+
1444
+ ##
1445
+ # @private
1446
+ #
1447
+ # GRPC transcoding helper method for the get_orchestration_cluster REST call
1448
+ #
1449
+ # @param request_pb [::Google::Cloud::TelcoAutomation::V1::GetOrchestrationClusterRequest]
1450
+ # A request object representing the call parameters. Required.
1451
+ # @return [Array(String, [String, nil], Hash{String => String})]
1452
+ # Uri, Body, Query string parameters
1453
+ def self.transcode_get_orchestration_cluster_request request_pb
1454
+ transcoder = Gapic::Rest::GrpcTranscoder.new
1455
+ .with_bindings(
1456
+ uri_method: :get,
1457
+ uri_template: "/v1/{name}",
1458
+ matches: [
1459
+ ["name", %r{^projects/[^/]+/locations/[^/]+/orchestrationClusters/[^/]+/?$}, false]
1460
+ ]
1461
+ )
1462
+ transcoder.transcode request_pb
1463
+ end
1464
+
1465
+ ##
1466
+ # @private
1467
+ #
1468
+ # GRPC transcoding helper method for the create_orchestration_cluster REST call
1469
+ #
1470
+ # @param request_pb [::Google::Cloud::TelcoAutomation::V1::CreateOrchestrationClusterRequest]
1471
+ # A request object representing the call parameters. Required.
1472
+ # @return [Array(String, [String, nil], Hash{String => String})]
1473
+ # Uri, Body, Query string parameters
1474
+ def self.transcode_create_orchestration_cluster_request request_pb
1475
+ transcoder = Gapic::Rest::GrpcTranscoder.new
1476
+ .with_bindings(
1477
+ uri_method: :post,
1478
+ uri_template: "/v1/{parent}/orchestrationClusters",
1479
+ body: "orchestration_cluster",
1480
+ matches: [
1481
+ ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
1482
+ ]
1483
+ )
1484
+ transcoder.transcode request_pb
1485
+ end
1486
+
1487
+ ##
1488
+ # @private
1489
+ #
1490
+ # GRPC transcoding helper method for the delete_orchestration_cluster REST call
1491
+ #
1492
+ # @param request_pb [::Google::Cloud::TelcoAutomation::V1::DeleteOrchestrationClusterRequest]
1493
+ # A request object representing the call parameters. Required.
1494
+ # @return [Array(String, [String, nil], Hash{String => String})]
1495
+ # Uri, Body, Query string parameters
1496
+ def self.transcode_delete_orchestration_cluster_request request_pb
1497
+ transcoder = Gapic::Rest::GrpcTranscoder.new
1498
+ .with_bindings(
1499
+ uri_method: :delete,
1500
+ uri_template: "/v1/{name}",
1501
+ matches: [
1502
+ ["name", %r{^projects/[^/]+/locations/[^/]+/orchestrationClusters/[^/]+/?$}, false]
1503
+ ]
1504
+ )
1505
+ transcoder.transcode request_pb
1506
+ end
1507
+
1508
+ ##
1509
+ # @private
1510
+ #
1511
+ # GRPC transcoding helper method for the list_edge_slms REST call
1512
+ #
1513
+ # @param request_pb [::Google::Cloud::TelcoAutomation::V1::ListEdgeSlmsRequest]
1514
+ # A request object representing the call parameters. Required.
1515
+ # @return [Array(String, [String, nil], Hash{String => String})]
1516
+ # Uri, Body, Query string parameters
1517
+ def self.transcode_list_edge_slms_request request_pb
1518
+ transcoder = Gapic::Rest::GrpcTranscoder.new
1519
+ .with_bindings(
1520
+ uri_method: :get,
1521
+ uri_template: "/v1/{parent}/edgeSlms",
1522
+ matches: [
1523
+ ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
1524
+ ]
1525
+ )
1526
+ transcoder.transcode request_pb
1527
+ end
1528
+
1529
+ ##
1530
+ # @private
1531
+ #
1532
+ # GRPC transcoding helper method for the get_edge_slm REST call
1533
+ #
1534
+ # @param request_pb [::Google::Cloud::TelcoAutomation::V1::GetEdgeSlmRequest]
1535
+ # A request object representing the call parameters. Required.
1536
+ # @return [Array(String, [String, nil], Hash{String => String})]
1537
+ # Uri, Body, Query string parameters
1538
+ def self.transcode_get_edge_slm_request request_pb
1539
+ transcoder = Gapic::Rest::GrpcTranscoder.new
1540
+ .with_bindings(
1541
+ uri_method: :get,
1542
+ uri_template: "/v1/{name}",
1543
+ matches: [
1544
+ ["name", %r{^projects/[^/]+/locations/[^/]+/edgeSlms/[^/]+/?$}, false]
1545
+ ]
1546
+ )
1547
+ transcoder.transcode request_pb
1548
+ end
1549
+
1550
+ ##
1551
+ # @private
1552
+ #
1553
+ # GRPC transcoding helper method for the create_edge_slm REST call
1554
+ #
1555
+ # @param request_pb [::Google::Cloud::TelcoAutomation::V1::CreateEdgeSlmRequest]
1556
+ # A request object representing the call parameters. Required.
1557
+ # @return [Array(String, [String, nil], Hash{String => String})]
1558
+ # Uri, Body, Query string parameters
1559
+ def self.transcode_create_edge_slm_request request_pb
1560
+ transcoder = Gapic::Rest::GrpcTranscoder.new
1561
+ .with_bindings(
1562
+ uri_method: :post,
1563
+ uri_template: "/v1/{parent}/edgeSlms",
1564
+ body: "edge_slm",
1565
+ matches: [
1566
+ ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
1567
+ ]
1568
+ )
1569
+ transcoder.transcode request_pb
1570
+ end
1571
+
1572
+ ##
1573
+ # @private
1574
+ #
1575
+ # GRPC transcoding helper method for the delete_edge_slm REST call
1576
+ #
1577
+ # @param request_pb [::Google::Cloud::TelcoAutomation::V1::DeleteEdgeSlmRequest]
1578
+ # A request object representing the call parameters. Required.
1579
+ # @return [Array(String, [String, nil], Hash{String => String})]
1580
+ # Uri, Body, Query string parameters
1581
+ def self.transcode_delete_edge_slm_request request_pb
1582
+ transcoder = Gapic::Rest::GrpcTranscoder.new
1583
+ .with_bindings(
1584
+ uri_method: :delete,
1585
+ uri_template: "/v1/{name}",
1586
+ matches: [
1587
+ ["name", %r{^projects/[^/]+/locations/[^/]+/edgeSlms/[^/]+/?$}, false]
1588
+ ]
1589
+ )
1590
+ transcoder.transcode request_pb
1591
+ end
1592
+
1593
+ ##
1594
+ # @private
1595
+ #
1596
+ # GRPC transcoding helper method for the create_blueprint REST call
1597
+ #
1598
+ # @param request_pb [::Google::Cloud::TelcoAutomation::V1::CreateBlueprintRequest]
1599
+ # A request object representing the call parameters. Required.
1600
+ # @return [Array(String, [String, nil], Hash{String => String})]
1601
+ # Uri, Body, Query string parameters
1602
+ def self.transcode_create_blueprint_request request_pb
1603
+ transcoder = Gapic::Rest::GrpcTranscoder.new
1604
+ .with_bindings(
1605
+ uri_method: :post,
1606
+ uri_template: "/v1/{parent}/blueprints",
1607
+ body: "blueprint",
1608
+ matches: [
1609
+ ["parent", %r{^projects/[^/]+/locations/[^/]+/orchestrationClusters/[^/]+/?$}, false]
1610
+ ]
1611
+ )
1612
+ transcoder.transcode request_pb
1613
+ end
1614
+
1615
+ ##
1616
+ # @private
1617
+ #
1618
+ # GRPC transcoding helper method for the update_blueprint REST call
1619
+ #
1620
+ # @param request_pb [::Google::Cloud::TelcoAutomation::V1::UpdateBlueprintRequest]
1621
+ # A request object representing the call parameters. Required.
1622
+ # @return [Array(String, [String, nil], Hash{String => String})]
1623
+ # Uri, Body, Query string parameters
1624
+ def self.transcode_update_blueprint_request request_pb
1625
+ transcoder = Gapic::Rest::GrpcTranscoder.new
1626
+ .with_bindings(
1627
+ uri_method: :patch,
1628
+ uri_template: "/v1/{blueprint.name}",
1629
+ body: "blueprint",
1630
+ matches: [
1631
+ ["blueprint.name", %r{^projects/[^/]+/locations/[^/]+/orchestrationClusters/[^/]+/blueprints/[^/]+/?$}, false]
1632
+ ]
1633
+ )
1634
+ transcoder.transcode request_pb
1635
+ end
1636
+
1637
+ ##
1638
+ # @private
1639
+ #
1640
+ # GRPC transcoding helper method for the get_blueprint REST call
1641
+ #
1642
+ # @param request_pb [::Google::Cloud::TelcoAutomation::V1::GetBlueprintRequest]
1643
+ # A request object representing the call parameters. Required.
1644
+ # @return [Array(String, [String, nil], Hash{String => String})]
1645
+ # Uri, Body, Query string parameters
1646
+ def self.transcode_get_blueprint_request request_pb
1647
+ transcoder = Gapic::Rest::GrpcTranscoder.new
1648
+ .with_bindings(
1649
+ uri_method: :get,
1650
+ uri_template: "/v1/{name}",
1651
+ matches: [
1652
+ ["name", %r{^projects/[^/]+/locations/[^/]+/orchestrationClusters/[^/]+/blueprints/[^/]+/?$}, false]
1653
+ ]
1654
+ )
1655
+ transcoder.transcode request_pb
1656
+ end
1657
+
1658
+ ##
1659
+ # @private
1660
+ #
1661
+ # GRPC transcoding helper method for the delete_blueprint REST call
1662
+ #
1663
+ # @param request_pb [::Google::Cloud::TelcoAutomation::V1::DeleteBlueprintRequest]
1664
+ # A request object representing the call parameters. Required.
1665
+ # @return [Array(String, [String, nil], Hash{String => String})]
1666
+ # Uri, Body, Query string parameters
1667
+ def self.transcode_delete_blueprint_request request_pb
1668
+ transcoder = Gapic::Rest::GrpcTranscoder.new
1669
+ .with_bindings(
1670
+ uri_method: :delete,
1671
+ uri_template: "/v1/{name}",
1672
+ matches: [
1673
+ ["name", %r{^projects/[^/]+/locations/[^/]+/orchestrationClusters/[^/]+/blueprints/[^/]+/?$}, false]
1674
+ ]
1675
+ )
1676
+ transcoder.transcode request_pb
1677
+ end
1678
+
1679
+ ##
1680
+ # @private
1681
+ #
1682
+ # GRPC transcoding helper method for the list_blueprints REST call
1683
+ #
1684
+ # @param request_pb [::Google::Cloud::TelcoAutomation::V1::ListBlueprintsRequest]
1685
+ # A request object representing the call parameters. Required.
1686
+ # @return [Array(String, [String, nil], Hash{String => String})]
1687
+ # Uri, Body, Query string parameters
1688
+ def self.transcode_list_blueprints_request request_pb
1689
+ transcoder = Gapic::Rest::GrpcTranscoder.new
1690
+ .with_bindings(
1691
+ uri_method: :get,
1692
+ uri_template: "/v1/{parent}/blueprints",
1693
+ matches: [
1694
+ ["parent", %r{^projects/[^/]+/locations/[^/]+/orchestrationClusters/[^/]+/?$}, false]
1695
+ ]
1696
+ )
1697
+ transcoder.transcode request_pb
1698
+ end
1699
+
1700
+ ##
1701
+ # @private
1702
+ #
1703
+ # GRPC transcoding helper method for the approve_blueprint REST call
1704
+ #
1705
+ # @param request_pb [::Google::Cloud::TelcoAutomation::V1::ApproveBlueprintRequest]
1706
+ # A request object representing the call parameters. Required.
1707
+ # @return [Array(String, [String, nil], Hash{String => String})]
1708
+ # Uri, Body, Query string parameters
1709
+ def self.transcode_approve_blueprint_request request_pb
1710
+ transcoder = Gapic::Rest::GrpcTranscoder.new
1711
+ .with_bindings(
1712
+ uri_method: :post,
1713
+ uri_template: "/v1/{name}:approve",
1714
+ body: "*",
1715
+ matches: [
1716
+ ["name", %r{^projects/[^/]+/locations/[^/]+/orchestrationClusters/[^/]+/blueprints/[^/]+/?$}, false]
1717
+ ]
1718
+ )
1719
+ transcoder.transcode request_pb
1720
+ end
1721
+
1722
+ ##
1723
+ # @private
1724
+ #
1725
+ # GRPC transcoding helper method for the propose_blueprint REST call
1726
+ #
1727
+ # @param request_pb [::Google::Cloud::TelcoAutomation::V1::ProposeBlueprintRequest]
1728
+ # A request object representing the call parameters. Required.
1729
+ # @return [Array(String, [String, nil], Hash{String => String})]
1730
+ # Uri, Body, Query string parameters
1731
+ def self.transcode_propose_blueprint_request request_pb
1732
+ transcoder = Gapic::Rest::GrpcTranscoder.new
1733
+ .with_bindings(
1734
+ uri_method: :post,
1735
+ uri_template: "/v1/{name}:propose",
1736
+ body: "*",
1737
+ matches: [
1738
+ ["name", %r{^projects/[^/]+/locations/[^/]+/orchestrationClusters/[^/]+/blueprints/[^/]+/?$}, false]
1739
+ ]
1740
+ )
1741
+ transcoder.transcode request_pb
1742
+ end
1743
+
1744
+ ##
1745
+ # @private
1746
+ #
1747
+ # GRPC transcoding helper method for the reject_blueprint REST call
1748
+ #
1749
+ # @param request_pb [::Google::Cloud::TelcoAutomation::V1::RejectBlueprintRequest]
1750
+ # A request object representing the call parameters. Required.
1751
+ # @return [Array(String, [String, nil], Hash{String => String})]
1752
+ # Uri, Body, Query string parameters
1753
+ def self.transcode_reject_blueprint_request request_pb
1754
+ transcoder = Gapic::Rest::GrpcTranscoder.new
1755
+ .with_bindings(
1756
+ uri_method: :post,
1757
+ uri_template: "/v1/{name}:reject",
1758
+ body: "*",
1759
+ matches: [
1760
+ ["name", %r{^projects/[^/]+/locations/[^/]+/orchestrationClusters/[^/]+/blueprints/[^/]+/?$}, false]
1761
+ ]
1762
+ )
1763
+ transcoder.transcode request_pb
1764
+ end
1765
+
1766
+ ##
1767
+ # @private
1768
+ #
1769
+ # GRPC transcoding helper method for the list_blueprint_revisions REST call
1770
+ #
1771
+ # @param request_pb [::Google::Cloud::TelcoAutomation::V1::ListBlueprintRevisionsRequest]
1772
+ # A request object representing the call parameters. Required.
1773
+ # @return [Array(String, [String, nil], Hash{String => String})]
1774
+ # Uri, Body, Query string parameters
1775
+ def self.transcode_list_blueprint_revisions_request request_pb
1776
+ transcoder = Gapic::Rest::GrpcTranscoder.new
1777
+ .with_bindings(
1778
+ uri_method: :get,
1779
+ uri_template: "/v1/{name}:listRevisions",
1780
+ matches: [
1781
+ ["name", %r{^projects/[^/]+/locations/[^/]+/orchestrationClusters/[^/]+/blueprints/[^/]+/?$}, false]
1782
+ ]
1783
+ )
1784
+ transcoder.transcode request_pb
1785
+ end
1786
+
1787
+ ##
1788
+ # @private
1789
+ #
1790
+ # GRPC transcoding helper method for the search_blueprint_revisions REST call
1791
+ #
1792
+ # @param request_pb [::Google::Cloud::TelcoAutomation::V1::SearchBlueprintRevisionsRequest]
1793
+ # A request object representing the call parameters. Required.
1794
+ # @return [Array(String, [String, nil], Hash{String => String})]
1795
+ # Uri, Body, Query string parameters
1796
+ def self.transcode_search_blueprint_revisions_request request_pb
1797
+ transcoder = Gapic::Rest::GrpcTranscoder.new
1798
+ .with_bindings(
1799
+ uri_method: :get,
1800
+ uri_template: "/v1/{parent}/blueprints:searchRevisions",
1801
+ matches: [
1802
+ ["parent", %r{^projects/[^/]+/locations/[^/]+/orchestrationClusters/[^/]+/?$}, false]
1803
+ ]
1804
+ )
1805
+ transcoder.transcode request_pb
1806
+ end
1807
+
1808
+ ##
1809
+ # @private
1810
+ #
1811
+ # GRPC transcoding helper method for the search_deployment_revisions REST call
1812
+ #
1813
+ # @param request_pb [::Google::Cloud::TelcoAutomation::V1::SearchDeploymentRevisionsRequest]
1814
+ # A request object representing the call parameters. Required.
1815
+ # @return [Array(String, [String, nil], Hash{String => String})]
1816
+ # Uri, Body, Query string parameters
1817
+ def self.transcode_search_deployment_revisions_request request_pb
1818
+ transcoder = Gapic::Rest::GrpcTranscoder.new
1819
+ .with_bindings(
1820
+ uri_method: :get,
1821
+ uri_template: "/v1/{parent}/deployments:searchRevisions",
1822
+ matches: [
1823
+ ["parent", %r{^projects/[^/]+/locations/[^/]+/orchestrationClusters/[^/]+/?$}, false]
1824
+ ]
1825
+ )
1826
+ transcoder.transcode request_pb
1827
+ end
1828
+
1829
+ ##
1830
+ # @private
1831
+ #
1832
+ # GRPC transcoding helper method for the discard_blueprint_changes REST call
1833
+ #
1834
+ # @param request_pb [::Google::Cloud::TelcoAutomation::V1::DiscardBlueprintChangesRequest]
1835
+ # A request object representing the call parameters. Required.
1836
+ # @return [Array(String, [String, nil], Hash{String => String})]
1837
+ # Uri, Body, Query string parameters
1838
+ def self.transcode_discard_blueprint_changes_request request_pb
1839
+ transcoder = Gapic::Rest::GrpcTranscoder.new
1840
+ .with_bindings(
1841
+ uri_method: :post,
1842
+ uri_template: "/v1/{name}:discard",
1843
+ body: "*",
1844
+ matches: [
1845
+ ["name", %r{^projects/[^/]+/locations/[^/]+/orchestrationClusters/[^/]+/blueprints/[^/]+/?$}, false]
1846
+ ]
1847
+ )
1848
+ transcoder.transcode request_pb
1849
+ end
1850
+
1851
+ ##
1852
+ # @private
1853
+ #
1854
+ # GRPC transcoding helper method for the list_public_blueprints REST call
1855
+ #
1856
+ # @param request_pb [::Google::Cloud::TelcoAutomation::V1::ListPublicBlueprintsRequest]
1857
+ # A request object representing the call parameters. Required.
1858
+ # @return [Array(String, [String, nil], Hash{String => String})]
1859
+ # Uri, Body, Query string parameters
1860
+ def self.transcode_list_public_blueprints_request request_pb
1861
+ transcoder = Gapic::Rest::GrpcTranscoder.new
1862
+ .with_bindings(
1863
+ uri_method: :get,
1864
+ uri_template: "/v1/{parent}/publicBlueprints",
1865
+ matches: [
1866
+ ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
1867
+ ]
1868
+ )
1869
+ transcoder.transcode request_pb
1870
+ end
1871
+
1872
+ ##
1873
+ # @private
1874
+ #
1875
+ # GRPC transcoding helper method for the get_public_blueprint REST call
1876
+ #
1877
+ # @param request_pb [::Google::Cloud::TelcoAutomation::V1::GetPublicBlueprintRequest]
1878
+ # A request object representing the call parameters. Required.
1879
+ # @return [Array(String, [String, nil], Hash{String => String})]
1880
+ # Uri, Body, Query string parameters
1881
+ def self.transcode_get_public_blueprint_request request_pb
1882
+ transcoder = Gapic::Rest::GrpcTranscoder.new
1883
+ .with_bindings(
1884
+ uri_method: :get,
1885
+ uri_template: "/v1/{name}",
1886
+ matches: [
1887
+ ["name", %r{^projects/[^/]+/locations/[^/]+/publicBlueprints/[^/]+/?$}, false]
1888
+ ]
1889
+ )
1890
+ transcoder.transcode request_pb
1891
+ end
1892
+
1893
+ ##
1894
+ # @private
1895
+ #
1896
+ # GRPC transcoding helper method for the create_deployment REST call
1897
+ #
1898
+ # @param request_pb [::Google::Cloud::TelcoAutomation::V1::CreateDeploymentRequest]
1899
+ # A request object representing the call parameters. Required.
1900
+ # @return [Array(String, [String, nil], Hash{String => String})]
1901
+ # Uri, Body, Query string parameters
1902
+ def self.transcode_create_deployment_request request_pb
1903
+ transcoder = Gapic::Rest::GrpcTranscoder.new
1904
+ .with_bindings(
1905
+ uri_method: :post,
1906
+ uri_template: "/v1/{parent}/deployments",
1907
+ body: "deployment",
1908
+ matches: [
1909
+ ["parent", %r{^projects/[^/]+/locations/[^/]+/orchestrationClusters/[^/]+/?$}, false]
1910
+ ]
1911
+ )
1912
+ transcoder.transcode request_pb
1913
+ end
1914
+
1915
+ ##
1916
+ # @private
1917
+ #
1918
+ # GRPC transcoding helper method for the update_deployment REST call
1919
+ #
1920
+ # @param request_pb [::Google::Cloud::TelcoAutomation::V1::UpdateDeploymentRequest]
1921
+ # A request object representing the call parameters. Required.
1922
+ # @return [Array(String, [String, nil], Hash{String => String})]
1923
+ # Uri, Body, Query string parameters
1924
+ def self.transcode_update_deployment_request request_pb
1925
+ transcoder = Gapic::Rest::GrpcTranscoder.new
1926
+ .with_bindings(
1927
+ uri_method: :patch,
1928
+ uri_template: "/v1/{deployment.name}",
1929
+ body: "deployment",
1930
+ matches: [
1931
+ ["deployment.name", %r{^projects/[^/]+/locations/[^/]+/orchestrationClusters/[^/]+/deployments/[^/]+/?$}, false]
1932
+ ]
1933
+ )
1934
+ transcoder.transcode request_pb
1935
+ end
1936
+
1937
+ ##
1938
+ # @private
1939
+ #
1940
+ # GRPC transcoding helper method for the get_deployment REST call
1941
+ #
1942
+ # @param request_pb [::Google::Cloud::TelcoAutomation::V1::GetDeploymentRequest]
1943
+ # A request object representing the call parameters. Required.
1944
+ # @return [Array(String, [String, nil], Hash{String => String})]
1945
+ # Uri, Body, Query string parameters
1946
+ def self.transcode_get_deployment_request request_pb
1947
+ transcoder = Gapic::Rest::GrpcTranscoder.new
1948
+ .with_bindings(
1949
+ uri_method: :get,
1950
+ uri_template: "/v1/{name}",
1951
+ matches: [
1952
+ ["name", %r{^projects/[^/]+/locations/[^/]+/orchestrationClusters/[^/]+/deployments/[^/]+/?$}, false]
1953
+ ]
1954
+ )
1955
+ transcoder.transcode request_pb
1956
+ end
1957
+
1958
+ ##
1959
+ # @private
1960
+ #
1961
+ # GRPC transcoding helper method for the remove_deployment REST call
1962
+ #
1963
+ # @param request_pb [::Google::Cloud::TelcoAutomation::V1::RemoveDeploymentRequest]
1964
+ # A request object representing the call parameters. Required.
1965
+ # @return [Array(String, [String, nil], Hash{String => String})]
1966
+ # Uri, Body, Query string parameters
1967
+ def self.transcode_remove_deployment_request request_pb
1968
+ transcoder = Gapic::Rest::GrpcTranscoder.new
1969
+ .with_bindings(
1970
+ uri_method: :post,
1971
+ uri_template: "/v1/{name}:remove",
1972
+ body: "*",
1973
+ matches: [
1974
+ ["name", %r{^projects/[^/]+/locations/[^/]+/orchestrationClusters/[^/]+/deployments/[^/]+/?$}, false]
1975
+ ]
1976
+ )
1977
+ transcoder.transcode request_pb
1978
+ end
1979
+
1980
+ ##
1981
+ # @private
1982
+ #
1983
+ # GRPC transcoding helper method for the list_deployments REST call
1984
+ #
1985
+ # @param request_pb [::Google::Cloud::TelcoAutomation::V1::ListDeploymentsRequest]
1986
+ # A request object representing the call parameters. Required.
1987
+ # @return [Array(String, [String, nil], Hash{String => String})]
1988
+ # Uri, Body, Query string parameters
1989
+ def self.transcode_list_deployments_request request_pb
1990
+ transcoder = Gapic::Rest::GrpcTranscoder.new
1991
+ .with_bindings(
1992
+ uri_method: :get,
1993
+ uri_template: "/v1/{parent}/deployments",
1994
+ matches: [
1995
+ ["parent", %r{^projects/[^/]+/locations/[^/]+/orchestrationClusters/[^/]+/?$}, false]
1996
+ ]
1997
+ )
1998
+ transcoder.transcode request_pb
1999
+ end
2000
+
2001
+ ##
2002
+ # @private
2003
+ #
2004
+ # GRPC transcoding helper method for the list_deployment_revisions REST call
2005
+ #
2006
+ # @param request_pb [::Google::Cloud::TelcoAutomation::V1::ListDeploymentRevisionsRequest]
2007
+ # A request object representing the call parameters. Required.
2008
+ # @return [Array(String, [String, nil], Hash{String => String})]
2009
+ # Uri, Body, Query string parameters
2010
+ def self.transcode_list_deployment_revisions_request request_pb
2011
+ transcoder = Gapic::Rest::GrpcTranscoder.new
2012
+ .with_bindings(
2013
+ uri_method: :get,
2014
+ uri_template: "/v1/{name}:listRevisions",
2015
+ matches: [
2016
+ ["name", %r{^projects/[^/]+/locations/[^/]+/orchestrationClusters/[^/]+/deployments/[^/]+/?$}, false]
2017
+ ]
2018
+ )
2019
+ transcoder.transcode request_pb
2020
+ end
2021
+
2022
+ ##
2023
+ # @private
2024
+ #
2025
+ # GRPC transcoding helper method for the discard_deployment_changes REST call
2026
+ #
2027
+ # @param request_pb [::Google::Cloud::TelcoAutomation::V1::DiscardDeploymentChangesRequest]
2028
+ # A request object representing the call parameters. Required.
2029
+ # @return [Array(String, [String, nil], Hash{String => String})]
2030
+ # Uri, Body, Query string parameters
2031
+ def self.transcode_discard_deployment_changes_request request_pb
2032
+ transcoder = Gapic::Rest::GrpcTranscoder.new
2033
+ .with_bindings(
2034
+ uri_method: :post,
2035
+ uri_template: "/v1/{name}:discard",
2036
+ body: "*",
2037
+ matches: [
2038
+ ["name", %r{^projects/[^/]+/locations/[^/]+/orchestrationClusters/[^/]+/deployments/[^/]+/?$}, false]
2039
+ ]
2040
+ )
2041
+ transcoder.transcode request_pb
2042
+ end
2043
+
2044
+ ##
2045
+ # @private
2046
+ #
2047
+ # GRPC transcoding helper method for the apply_deployment REST call
2048
+ #
2049
+ # @param request_pb [::Google::Cloud::TelcoAutomation::V1::ApplyDeploymentRequest]
2050
+ # A request object representing the call parameters. Required.
2051
+ # @return [Array(String, [String, nil], Hash{String => String})]
2052
+ # Uri, Body, Query string parameters
2053
+ def self.transcode_apply_deployment_request request_pb
2054
+ transcoder = Gapic::Rest::GrpcTranscoder.new
2055
+ .with_bindings(
2056
+ uri_method: :post,
2057
+ uri_template: "/v1/{name}:apply",
2058
+ body: "*",
2059
+ matches: [
2060
+ ["name", %r{^projects/[^/]+/locations/[^/]+/orchestrationClusters/[^/]+/deployments/[^/]+/?$}, false]
2061
+ ]
2062
+ )
2063
+ transcoder.transcode request_pb
2064
+ end
2065
+
2066
+ ##
2067
+ # @private
2068
+ #
2069
+ # GRPC transcoding helper method for the compute_deployment_status REST call
2070
+ #
2071
+ # @param request_pb [::Google::Cloud::TelcoAutomation::V1::ComputeDeploymentStatusRequest]
2072
+ # A request object representing the call parameters. Required.
2073
+ # @return [Array(String, [String, nil], Hash{String => String})]
2074
+ # Uri, Body, Query string parameters
2075
+ def self.transcode_compute_deployment_status_request request_pb
2076
+ transcoder = Gapic::Rest::GrpcTranscoder.new
2077
+ .with_bindings(
2078
+ uri_method: :get,
2079
+ uri_template: "/v1/{name}:computeDeploymentStatus",
2080
+ matches: [
2081
+ ["name", %r{^projects/[^/]+/locations/[^/]+/orchestrationClusters/[^/]+/deployments/[^/]+/?$}, false]
2082
+ ]
2083
+ )
2084
+ transcoder.transcode request_pb
2085
+ end
2086
+
2087
+ ##
2088
+ # @private
2089
+ #
2090
+ # GRPC transcoding helper method for the rollback_deployment REST call
2091
+ #
2092
+ # @param request_pb [::Google::Cloud::TelcoAutomation::V1::RollbackDeploymentRequest]
2093
+ # A request object representing the call parameters. Required.
2094
+ # @return [Array(String, [String, nil], Hash{String => String})]
2095
+ # Uri, Body, Query string parameters
2096
+ def self.transcode_rollback_deployment_request request_pb
2097
+ transcoder = Gapic::Rest::GrpcTranscoder.new
2098
+ .with_bindings(
2099
+ uri_method: :post,
2100
+ uri_template: "/v1/{name}:rollback",
2101
+ body: "*",
2102
+ matches: [
2103
+ ["name", %r{^projects/[^/]+/locations/[^/]+/orchestrationClusters/[^/]+/deployments/[^/]+/?$}, false]
2104
+ ]
2105
+ )
2106
+ transcoder.transcode request_pb
2107
+ end
2108
+
2109
+ ##
2110
+ # @private
2111
+ #
2112
+ # GRPC transcoding helper method for the get_hydrated_deployment REST call
2113
+ #
2114
+ # @param request_pb [::Google::Cloud::TelcoAutomation::V1::GetHydratedDeploymentRequest]
2115
+ # A request object representing the call parameters. Required.
2116
+ # @return [Array(String, [String, nil], Hash{String => String})]
2117
+ # Uri, Body, Query string parameters
2118
+ def self.transcode_get_hydrated_deployment_request request_pb
2119
+ transcoder = Gapic::Rest::GrpcTranscoder.new
2120
+ .with_bindings(
2121
+ uri_method: :get,
2122
+ uri_template: "/v1/{name}",
2123
+ matches: [
2124
+ ["name", %r{^projects/[^/]+/locations/[^/]+/orchestrationClusters/[^/]+/deployments/[^/]+/hydratedDeployments/[^/]+/?$}, false]
2125
+ ]
2126
+ )
2127
+ transcoder.transcode request_pb
2128
+ end
2129
+
2130
+ ##
2131
+ # @private
2132
+ #
2133
+ # GRPC transcoding helper method for the list_hydrated_deployments REST call
2134
+ #
2135
+ # @param request_pb [::Google::Cloud::TelcoAutomation::V1::ListHydratedDeploymentsRequest]
2136
+ # A request object representing the call parameters. Required.
2137
+ # @return [Array(String, [String, nil], Hash{String => String})]
2138
+ # Uri, Body, Query string parameters
2139
+ def self.transcode_list_hydrated_deployments_request request_pb
2140
+ transcoder = Gapic::Rest::GrpcTranscoder.new
2141
+ .with_bindings(
2142
+ uri_method: :get,
2143
+ uri_template: "/v1/{parent}/hydratedDeployments",
2144
+ matches: [
2145
+ ["parent", %r{^projects/[^/]+/locations/[^/]+/orchestrationClusters/[^/]+/deployments/[^/]+/?$}, false]
2146
+ ]
2147
+ )
2148
+ transcoder.transcode request_pb
2149
+ end
2150
+
2151
+ ##
2152
+ # @private
2153
+ #
2154
+ # GRPC transcoding helper method for the update_hydrated_deployment REST call
2155
+ #
2156
+ # @param request_pb [::Google::Cloud::TelcoAutomation::V1::UpdateHydratedDeploymentRequest]
2157
+ # A request object representing the call parameters. Required.
2158
+ # @return [Array(String, [String, nil], Hash{String => String})]
2159
+ # Uri, Body, Query string parameters
2160
+ def self.transcode_update_hydrated_deployment_request request_pb
2161
+ transcoder = Gapic::Rest::GrpcTranscoder.new
2162
+ .with_bindings(
2163
+ uri_method: :patch,
2164
+ uri_template: "/v1/{hydrated_deployment.name}",
2165
+ body: "hydrated_deployment",
2166
+ matches: [
2167
+ ["hydrated_deployment.name", %r{^projects/[^/]+/locations/[^/]+/orchestrationClusters/[^/]+/deployments/[^/]+/hydratedDeployments/[^/]+/?$}, false]
2168
+ ]
2169
+ )
2170
+ transcoder.transcode request_pb
2171
+ end
2172
+
2173
+ ##
2174
+ # @private
2175
+ #
2176
+ # GRPC transcoding helper method for the apply_hydrated_deployment REST call
2177
+ #
2178
+ # @param request_pb [::Google::Cloud::TelcoAutomation::V1::ApplyHydratedDeploymentRequest]
2179
+ # A request object representing the call parameters. Required.
2180
+ # @return [Array(String, [String, nil], Hash{String => String})]
2181
+ # Uri, Body, Query string parameters
2182
+ def self.transcode_apply_hydrated_deployment_request request_pb
2183
+ transcoder = Gapic::Rest::GrpcTranscoder.new
2184
+ .with_bindings(
2185
+ uri_method: :post,
2186
+ uri_template: "/v1/{name}:apply",
2187
+ body: "*",
2188
+ matches: [
2189
+ ["name", %r{^projects/[^/]+/locations/[^/]+/orchestrationClusters/[^/]+/deployments/[^/]+/hydratedDeployments/[^/]+/?$}, false]
2190
+ ]
2191
+ )
2192
+ transcoder.transcode request_pb
2193
+ end
2194
+ end
2195
+ end
2196
+ end
2197
+ end
2198
+ end
2199
+ end
2200
+ end