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

Sign up to get free protection for your applications and to get access to all the features.
Files changed (36) 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/migration_center/v1/bindings_override.rb +102 -0
  6. data/lib/google/cloud/migration_center/v1/migration_center/client.rb +5600 -0
  7. data/lib/google/cloud/migration_center/v1/migration_center/credentials.rb +47 -0
  8. data/lib/google/cloud/migration_center/v1/migration_center/operations.rb +801 -0
  9. data/lib/google/cloud/migration_center/v1/migration_center/paths.rb +244 -0
  10. data/lib/google/cloud/migration_center/v1/migration_center/rest/client.rb +5237 -0
  11. data/lib/google/cloud/migration_center/v1/migration_center/rest/operations.rb +895 -0
  12. data/lib/google/cloud/migration_center/v1/migration_center/rest/service_stub.rb +2913 -0
  13. data/lib/google/cloud/migration_center/v1/migration_center/rest.rb +54 -0
  14. data/lib/google/cloud/migration_center/v1/migration_center.rb +56 -0
  15. data/lib/google/cloud/migration_center/v1/rest.rb +38 -0
  16. data/lib/google/cloud/migration_center/v1/version.rb +7 -2
  17. data/lib/google/cloud/migration_center/v1.rb +45 -0
  18. data/lib/google/cloud/migrationcenter/v1/migrationcenter_pb.rb +267 -0
  19. data/lib/google/cloud/migrationcenter/v1/migrationcenter_services_pb.rb +139 -0
  20. data/lib/google-cloud-migration_center-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/migrationcenter/v1/migrationcenter.rb +3956 -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. data/proto_docs/google/type/date.rb +53 -0
  35. data/proto_docs/google/type/money.rb +43 -0
  36. metadata +212 -13
@@ -0,0 +1,2913 @@
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/migrationcenter/v1/migrationcenter_pb"
20
+
21
+ module Google
22
+ module Cloud
23
+ module MigrationCenter
24
+ module V1
25
+ module MigrationCenter
26
+ module Rest
27
+ ##
28
+ # REST service stub for the MigrationCenter 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_assets REST call
57
+ #
58
+ # @param request_pb [::Google::Cloud::MigrationCenter::V1::ListAssetsRequest]
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::MigrationCenter::V1::ListAssetsResponse]
65
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
66
+ #
67
+ # @return [::Google::Cloud::MigrationCenter::V1::ListAssetsResponse]
68
+ # A result object deserialized from the server's reply
69
+ def list_assets 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_assets_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::MigrationCenter::V1::ListAssetsResponse.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_asset REST call
95
+ #
96
+ # @param request_pb [::Google::Cloud::MigrationCenter::V1::GetAssetRequest]
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::MigrationCenter::V1::Asset]
103
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
104
+ #
105
+ # @return [::Google::Cloud::MigrationCenter::V1::Asset]
106
+ # A result object deserialized from the server's reply
107
+ def get_asset 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_asset_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::MigrationCenter::V1::Asset.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 update_asset REST call
133
+ #
134
+ # @param request_pb [::Google::Cloud::MigrationCenter::V1::UpdateAssetRequest]
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::Cloud::MigrationCenter::V1::Asset]
141
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
142
+ #
143
+ # @return [::Google::Cloud::MigrationCenter::V1::Asset]
144
+ # A result object deserialized from the server's reply
145
+ def update_asset 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_update_asset_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::Cloud::MigrationCenter::V1::Asset.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 batch_update_assets REST call
171
+ #
172
+ # @param request_pb [::Google::Cloud::MigrationCenter::V1::BatchUpdateAssetsRequest]
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::Cloud::MigrationCenter::V1::BatchUpdateAssetsResponse]
179
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
180
+ #
181
+ # @return [::Google::Cloud::MigrationCenter::V1::BatchUpdateAssetsResponse]
182
+ # A result object deserialized from the server's reply
183
+ def batch_update_assets 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_batch_update_assets_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::Cloud::MigrationCenter::V1::BatchUpdateAssetsResponse.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 delete_asset REST call
209
+ #
210
+ # @param request_pb [::Google::Cloud::MigrationCenter::V1::DeleteAssetRequest]
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::Protobuf::Empty]
217
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
218
+ #
219
+ # @return [::Google::Protobuf::Empty]
220
+ # A result object deserialized from the server's reply
221
+ def delete_asset 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_delete_asset_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::Protobuf::Empty.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 batch_delete_assets REST call
247
+ #
248
+ # @param request_pb [::Google::Cloud::MigrationCenter::V1::BatchDeleteAssetsRequest]
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::Protobuf::Empty]
255
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
256
+ #
257
+ # @return [::Google::Protobuf::Empty]
258
+ # A result object deserialized from the server's reply
259
+ def batch_delete_assets 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_batch_delete_assets_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::Protobuf::Empty.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 report_asset_frames REST call
285
+ #
286
+ # @param request_pb [::Google::Cloud::MigrationCenter::V1::ReportAssetFramesRequest]
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::Cloud::MigrationCenter::V1::ReportAssetFramesResponse]
293
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
294
+ #
295
+ # @return [::Google::Cloud::MigrationCenter::V1::ReportAssetFramesResponse]
296
+ # A result object deserialized from the server's reply
297
+ def report_asset_frames 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_report_asset_frames_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::Cloud::MigrationCenter::V1::ReportAssetFramesResponse.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 aggregate_assets_values REST call
323
+ #
324
+ # @param request_pb [::Google::Cloud::MigrationCenter::V1::AggregateAssetsValuesRequest]
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::Cloud::MigrationCenter::V1::AggregateAssetsValuesResponse]
331
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
332
+ #
333
+ # @return [::Google::Cloud::MigrationCenter::V1::AggregateAssetsValuesResponse]
334
+ # A result object deserialized from the server's reply
335
+ def aggregate_assets_values 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_aggregate_assets_values_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::Cloud::MigrationCenter::V1::AggregateAssetsValuesResponse.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_import_job REST call
361
+ #
362
+ # @param request_pb [::Google::Cloud::MigrationCenter::V1::CreateImportJobRequest]
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::Longrunning::Operation]
369
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
370
+ #
371
+ # @return [::Google::Longrunning::Operation]
372
+ # A result object deserialized from the server's reply
373
+ def create_import_job 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_import_job_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::Longrunning::Operation.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 list_import_jobs REST call
399
+ #
400
+ # @param request_pb [::Google::Cloud::MigrationCenter::V1::ListImportJobsRequest]
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::MigrationCenter::V1::ListImportJobsResponse]
407
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
408
+ #
409
+ # @return [::Google::Cloud::MigrationCenter::V1::ListImportJobsResponse]
410
+ # A result object deserialized from the server's reply
411
+ def list_import_jobs 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_list_import_jobs_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::MigrationCenter::V1::ListImportJobsResponse.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_import_job REST call
437
+ #
438
+ # @param request_pb [::Google::Cloud::MigrationCenter::V1::GetImportJobRequest]
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::MigrationCenter::V1::ImportJob]
445
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
446
+ #
447
+ # @return [::Google::Cloud::MigrationCenter::V1::ImportJob]
448
+ # A result object deserialized from the server's reply
449
+ def get_import_job 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_import_job_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::MigrationCenter::V1::ImportJob.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_import_job REST call
475
+ #
476
+ # @param request_pb [::Google::Cloud::MigrationCenter::V1::DeleteImportJobRequest]
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::Longrunning::Operation]
483
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
484
+ #
485
+ # @return [::Google::Longrunning::Operation]
486
+ # A result object deserialized from the server's reply
487
+ def delete_import_job 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_import_job_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::Longrunning::Operation.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 update_import_job REST call
513
+ #
514
+ # @param request_pb [::Google::Cloud::MigrationCenter::V1::UpdateImportJobRequest]
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::Longrunning::Operation]
521
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
522
+ #
523
+ # @return [::Google::Longrunning::Operation]
524
+ # A result object deserialized from the server's reply
525
+ def update_import_job 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_update_import_job_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::Longrunning::Operation.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 validate_import_job REST call
551
+ #
552
+ # @param request_pb [::Google::Cloud::MigrationCenter::V1::ValidateImportJobRequest]
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::Longrunning::Operation]
559
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
560
+ #
561
+ # @return [::Google::Longrunning::Operation]
562
+ # A result object deserialized from the server's reply
563
+ def validate_import_job 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_validate_import_job_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::Longrunning::Operation.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 run_import_job REST call
589
+ #
590
+ # @param request_pb [::Google::Cloud::MigrationCenter::V1::RunImportJobRequest]
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::Longrunning::Operation]
597
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
598
+ #
599
+ # @return [::Google::Longrunning::Operation]
600
+ # A result object deserialized from the server's reply
601
+ def run_import_job 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_run_import_job_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::Longrunning::Operation.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 get_import_data_file REST call
627
+ #
628
+ # @param request_pb [::Google::Cloud::MigrationCenter::V1::GetImportDataFileRequest]
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::MigrationCenter::V1::ImportDataFile]
635
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
636
+ #
637
+ # @return [::Google::Cloud::MigrationCenter::V1::ImportDataFile]
638
+ # A result object deserialized from the server's reply
639
+ def get_import_data_file 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_get_import_data_file_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::MigrationCenter::V1::ImportDataFile.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_import_data_files REST call
665
+ #
666
+ # @param request_pb [::Google::Cloud::MigrationCenter::V1::ListImportDataFilesRequest]
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::MigrationCenter::V1::ListImportDataFilesResponse]
673
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
674
+ #
675
+ # @return [::Google::Cloud::MigrationCenter::V1::ListImportDataFilesResponse]
676
+ # A result object deserialized from the server's reply
677
+ def list_import_data_files 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_import_data_files_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::MigrationCenter::V1::ListImportDataFilesResponse.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 create_import_data_file REST call
703
+ #
704
+ # @param request_pb [::Google::Cloud::MigrationCenter::V1::CreateImportDataFileRequest]
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::Longrunning::Operation]
711
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
712
+ #
713
+ # @return [::Google::Longrunning::Operation]
714
+ # A result object deserialized from the server's reply
715
+ def create_import_data_file 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_create_import_data_file_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::Longrunning::Operation.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 delete_import_data_file REST call
741
+ #
742
+ # @param request_pb [::Google::Cloud::MigrationCenter::V1::DeleteImportDataFileRequest]
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::Longrunning::Operation]
749
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
750
+ #
751
+ # @return [::Google::Longrunning::Operation]
752
+ # A result object deserialized from the server's reply
753
+ def delete_import_data_file 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_delete_import_data_file_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::Longrunning::Operation.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 list_groups REST call
779
+ #
780
+ # @param request_pb [::Google::Cloud::MigrationCenter::V1::ListGroupsRequest]
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::MigrationCenter::V1::ListGroupsResponse]
787
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
788
+ #
789
+ # @return [::Google::Cloud::MigrationCenter::V1::ListGroupsResponse]
790
+ # A result object deserialized from the server's reply
791
+ def list_groups 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_list_groups_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::MigrationCenter::V1::ListGroupsResponse.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 get_group REST call
817
+ #
818
+ # @param request_pb [::Google::Cloud::MigrationCenter::V1::GetGroupRequest]
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::MigrationCenter::V1::Group]
825
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
826
+ #
827
+ # @return [::Google::Cloud::MigrationCenter::V1::Group]
828
+ # A result object deserialized from the server's reply
829
+ def get_group 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_get_group_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::MigrationCenter::V1::Group.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 create_group REST call
855
+ #
856
+ # @param request_pb [::Google::Cloud::MigrationCenter::V1::CreateGroupRequest]
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::Longrunning::Operation]
863
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
864
+ #
865
+ # @return [::Google::Longrunning::Operation]
866
+ # A result object deserialized from the server's reply
867
+ def create_group 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_create_group_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::Longrunning::Operation.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 update_group REST call
893
+ #
894
+ # @param request_pb [::Google::Cloud::MigrationCenter::V1::UpdateGroupRequest]
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::Longrunning::Operation]
901
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
902
+ #
903
+ # @return [::Google::Longrunning::Operation]
904
+ # A result object deserialized from the server's reply
905
+ def update_group 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_update_group_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::Longrunning::Operation.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 delete_group REST call
931
+ #
932
+ # @param request_pb [::Google::Cloud::MigrationCenter::V1::DeleteGroupRequest]
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::Longrunning::Operation]
939
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
940
+ #
941
+ # @return [::Google::Longrunning::Operation]
942
+ # A result object deserialized from the server's reply
943
+ def delete_group 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_delete_group_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::Longrunning::Operation.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 add_assets_to_group REST call
969
+ #
970
+ # @param request_pb [::Google::Cloud::MigrationCenter::V1::AddAssetsToGroupRequest]
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::Longrunning::Operation]
977
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
978
+ #
979
+ # @return [::Google::Longrunning::Operation]
980
+ # A result object deserialized from the server's reply
981
+ def add_assets_to_group 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_add_assets_to_group_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::Longrunning::Operation.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_assets_from_group REST call
1007
+ #
1008
+ # @param request_pb [::Google::Cloud::MigrationCenter::V1::RemoveAssetsFromGroupRequest]
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::Longrunning::Operation]
1015
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1016
+ #
1017
+ # @return [::Google::Longrunning::Operation]
1018
+ # A result object deserialized from the server's reply
1019
+ def remove_assets_from_group 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_assets_from_group_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::Longrunning::Operation.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_error_frames REST call
1045
+ #
1046
+ # @param request_pb [::Google::Cloud::MigrationCenter::V1::ListErrorFramesRequest]
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::MigrationCenter::V1::ListErrorFramesResponse]
1053
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1054
+ #
1055
+ # @return [::Google::Cloud::MigrationCenter::V1::ListErrorFramesResponse]
1056
+ # A result object deserialized from the server's reply
1057
+ def list_error_frames 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_error_frames_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::MigrationCenter::V1::ListErrorFramesResponse.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 get_error_frame REST call
1083
+ #
1084
+ # @param request_pb [::Google::Cloud::MigrationCenter::V1::GetErrorFrameRequest]
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::MigrationCenter::V1::ErrorFrame]
1091
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1092
+ #
1093
+ # @return [::Google::Cloud::MigrationCenter::V1::ErrorFrame]
1094
+ # A result object deserialized from the server's reply
1095
+ def get_error_frame 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_get_error_frame_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::MigrationCenter::V1::ErrorFrame.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 list_sources REST call
1121
+ #
1122
+ # @param request_pb [::Google::Cloud::MigrationCenter::V1::ListSourcesRequest]
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::MigrationCenter::V1::ListSourcesResponse]
1129
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1130
+ #
1131
+ # @return [::Google::Cloud::MigrationCenter::V1::ListSourcesResponse]
1132
+ # A result object deserialized from the server's reply
1133
+ def list_sources 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_list_sources_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::MigrationCenter::V1::ListSourcesResponse.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 get_source REST call
1159
+ #
1160
+ # @param request_pb [::Google::Cloud::MigrationCenter::V1::GetSourceRequest]
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::MigrationCenter::V1::Source]
1167
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1168
+ #
1169
+ # @return [::Google::Cloud::MigrationCenter::V1::Source]
1170
+ # A result object deserialized from the server's reply
1171
+ def get_source 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_get_source_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::MigrationCenter::V1::Source.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 create_source REST call
1197
+ #
1198
+ # @param request_pb [::Google::Cloud::MigrationCenter::V1::CreateSourceRequest]
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::Longrunning::Operation]
1205
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1206
+ #
1207
+ # @return [::Google::Longrunning::Operation]
1208
+ # A result object deserialized from the server's reply
1209
+ def create_source 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_create_source_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::Longrunning::Operation.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 update_source REST call
1235
+ #
1236
+ # @param request_pb [::Google::Cloud::MigrationCenter::V1::UpdateSourceRequest]
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::Longrunning::Operation]
1243
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1244
+ #
1245
+ # @return [::Google::Longrunning::Operation]
1246
+ # A result object deserialized from the server's reply
1247
+ def update_source 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_update_source_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::Longrunning::Operation.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 delete_source REST call
1273
+ #
1274
+ # @param request_pb [::Google::Cloud::MigrationCenter::V1::DeleteSourceRequest]
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::Longrunning::Operation]
1281
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1282
+ #
1283
+ # @return [::Google::Longrunning::Operation]
1284
+ # A result object deserialized from the server's reply
1285
+ def delete_source 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_delete_source_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::Longrunning::Operation.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_preference_sets REST call
1311
+ #
1312
+ # @param request_pb [::Google::Cloud::MigrationCenter::V1::ListPreferenceSetsRequest]
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::MigrationCenter::V1::ListPreferenceSetsResponse]
1319
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1320
+ #
1321
+ # @return [::Google::Cloud::MigrationCenter::V1::ListPreferenceSetsResponse]
1322
+ # A result object deserialized from the server's reply
1323
+ def list_preference_sets 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_preference_sets_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::MigrationCenter::V1::ListPreferenceSetsResponse.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 get_preference_set REST call
1349
+ #
1350
+ # @param request_pb [::Google::Cloud::MigrationCenter::V1::GetPreferenceSetRequest]
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::MigrationCenter::V1::PreferenceSet]
1357
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1358
+ #
1359
+ # @return [::Google::Cloud::MigrationCenter::V1::PreferenceSet]
1360
+ # A result object deserialized from the server's reply
1361
+ def get_preference_set 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_get_preference_set_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::MigrationCenter::V1::PreferenceSet.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 create_preference_set REST call
1387
+ #
1388
+ # @param request_pb [::Google::Cloud::MigrationCenter::V1::CreatePreferenceSetRequest]
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::Longrunning::Operation]
1395
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1396
+ #
1397
+ # @return [::Google::Longrunning::Operation]
1398
+ # A result object deserialized from the server's reply
1399
+ def create_preference_set 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_create_preference_set_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::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
1418
+
1419
+ yield result, operation if block_given?
1420
+ result
1421
+ end
1422
+
1423
+ ##
1424
+ # Baseline implementation for the update_preference_set REST call
1425
+ #
1426
+ # @param request_pb [::Google::Cloud::MigrationCenter::V1::UpdatePreferenceSetRequest]
1427
+ # A request object representing the call parameters. Required.
1428
+ # @param options [::Gapic::CallOptions]
1429
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1430
+ #
1431
+ # @yield [result, operation] Access the result along with the TransportOperation object
1432
+ # @yieldparam result [::Google::Longrunning::Operation]
1433
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1434
+ #
1435
+ # @return [::Google::Longrunning::Operation]
1436
+ # A result object deserialized from the server's reply
1437
+ def update_preference_set request_pb, options = nil
1438
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
1439
+
1440
+ verb, uri, query_string_params, body = ServiceStub.transcode_update_preference_set_request request_pb
1441
+ query_string_params = if query_string_params.any?
1442
+ query_string_params.to_h { |p| p.split "=", 2 }
1443
+ else
1444
+ {}
1445
+ end
1446
+
1447
+ response = @client_stub.make_http_request(
1448
+ verb,
1449
+ uri: uri,
1450
+ body: body || "",
1451
+ params: query_string_params,
1452
+ options: options
1453
+ )
1454
+ operation = ::Gapic::Rest::TransportOperation.new response
1455
+ result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
1456
+
1457
+ yield result, operation if block_given?
1458
+ result
1459
+ end
1460
+
1461
+ ##
1462
+ # Baseline implementation for the delete_preference_set REST call
1463
+ #
1464
+ # @param request_pb [::Google::Cloud::MigrationCenter::V1::DeletePreferenceSetRequest]
1465
+ # A request object representing the call parameters. Required.
1466
+ # @param options [::Gapic::CallOptions]
1467
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1468
+ #
1469
+ # @yield [result, operation] Access the result along with the TransportOperation object
1470
+ # @yieldparam result [::Google::Longrunning::Operation]
1471
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1472
+ #
1473
+ # @return [::Google::Longrunning::Operation]
1474
+ # A result object deserialized from the server's reply
1475
+ def delete_preference_set request_pb, options = nil
1476
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
1477
+
1478
+ verb, uri, query_string_params, body = ServiceStub.transcode_delete_preference_set_request request_pb
1479
+ query_string_params = if query_string_params.any?
1480
+ query_string_params.to_h { |p| p.split "=", 2 }
1481
+ else
1482
+ {}
1483
+ end
1484
+
1485
+ response = @client_stub.make_http_request(
1486
+ verb,
1487
+ uri: uri,
1488
+ body: body || "",
1489
+ params: query_string_params,
1490
+ options: options
1491
+ )
1492
+ operation = ::Gapic::Rest::TransportOperation.new response
1493
+ result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
1494
+
1495
+ yield result, operation if block_given?
1496
+ result
1497
+ end
1498
+
1499
+ ##
1500
+ # Baseline implementation for the get_settings REST call
1501
+ #
1502
+ # @param request_pb [::Google::Cloud::MigrationCenter::V1::GetSettingsRequest]
1503
+ # A request object representing the call parameters. Required.
1504
+ # @param options [::Gapic::CallOptions]
1505
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1506
+ #
1507
+ # @yield [result, operation] Access the result along with the TransportOperation object
1508
+ # @yieldparam result [::Google::Cloud::MigrationCenter::V1::Settings]
1509
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1510
+ #
1511
+ # @return [::Google::Cloud::MigrationCenter::V1::Settings]
1512
+ # A result object deserialized from the server's reply
1513
+ def get_settings request_pb, options = nil
1514
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
1515
+
1516
+ verb, uri, query_string_params, body = ServiceStub.transcode_get_settings_request request_pb
1517
+ query_string_params = if query_string_params.any?
1518
+ query_string_params.to_h { |p| p.split "=", 2 }
1519
+ else
1520
+ {}
1521
+ end
1522
+
1523
+ response = @client_stub.make_http_request(
1524
+ verb,
1525
+ uri: uri,
1526
+ body: body || "",
1527
+ params: query_string_params,
1528
+ options: options
1529
+ )
1530
+ operation = ::Gapic::Rest::TransportOperation.new response
1531
+ result = ::Google::Cloud::MigrationCenter::V1::Settings.decode_json response.body, ignore_unknown_fields: true
1532
+
1533
+ yield result, operation if block_given?
1534
+ result
1535
+ end
1536
+
1537
+ ##
1538
+ # Baseline implementation for the update_settings REST call
1539
+ #
1540
+ # @param request_pb [::Google::Cloud::MigrationCenter::V1::UpdateSettingsRequest]
1541
+ # A request object representing the call parameters. Required.
1542
+ # @param options [::Gapic::CallOptions]
1543
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1544
+ #
1545
+ # @yield [result, operation] Access the result along with the TransportOperation object
1546
+ # @yieldparam result [::Google::Longrunning::Operation]
1547
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1548
+ #
1549
+ # @return [::Google::Longrunning::Operation]
1550
+ # A result object deserialized from the server's reply
1551
+ def update_settings request_pb, options = nil
1552
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
1553
+
1554
+ verb, uri, query_string_params, body = ServiceStub.transcode_update_settings_request request_pb
1555
+ query_string_params = if query_string_params.any?
1556
+ query_string_params.to_h { |p| p.split "=", 2 }
1557
+ else
1558
+ {}
1559
+ end
1560
+
1561
+ response = @client_stub.make_http_request(
1562
+ verb,
1563
+ uri: uri,
1564
+ body: body || "",
1565
+ params: query_string_params,
1566
+ options: options
1567
+ )
1568
+ operation = ::Gapic::Rest::TransportOperation.new response
1569
+ result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
1570
+
1571
+ yield result, operation if block_given?
1572
+ result
1573
+ end
1574
+
1575
+ ##
1576
+ # Baseline implementation for the create_report_config REST call
1577
+ #
1578
+ # @param request_pb [::Google::Cloud::MigrationCenter::V1::CreateReportConfigRequest]
1579
+ # A request object representing the call parameters. Required.
1580
+ # @param options [::Gapic::CallOptions]
1581
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1582
+ #
1583
+ # @yield [result, operation] Access the result along with the TransportOperation object
1584
+ # @yieldparam result [::Google::Longrunning::Operation]
1585
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1586
+ #
1587
+ # @return [::Google::Longrunning::Operation]
1588
+ # A result object deserialized from the server's reply
1589
+ def create_report_config request_pb, options = nil
1590
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
1591
+
1592
+ verb, uri, query_string_params, body = ServiceStub.transcode_create_report_config_request request_pb
1593
+ query_string_params = if query_string_params.any?
1594
+ query_string_params.to_h { |p| p.split "=", 2 }
1595
+ else
1596
+ {}
1597
+ end
1598
+
1599
+ response = @client_stub.make_http_request(
1600
+ verb,
1601
+ uri: uri,
1602
+ body: body || "",
1603
+ params: query_string_params,
1604
+ options: options
1605
+ )
1606
+ operation = ::Gapic::Rest::TransportOperation.new response
1607
+ result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
1608
+
1609
+ yield result, operation if block_given?
1610
+ result
1611
+ end
1612
+
1613
+ ##
1614
+ # Baseline implementation for the get_report_config REST call
1615
+ #
1616
+ # @param request_pb [::Google::Cloud::MigrationCenter::V1::GetReportConfigRequest]
1617
+ # A request object representing the call parameters. Required.
1618
+ # @param options [::Gapic::CallOptions]
1619
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1620
+ #
1621
+ # @yield [result, operation] Access the result along with the TransportOperation object
1622
+ # @yieldparam result [::Google::Cloud::MigrationCenter::V1::ReportConfig]
1623
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1624
+ #
1625
+ # @return [::Google::Cloud::MigrationCenter::V1::ReportConfig]
1626
+ # A result object deserialized from the server's reply
1627
+ def get_report_config request_pb, options = nil
1628
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
1629
+
1630
+ verb, uri, query_string_params, body = ServiceStub.transcode_get_report_config_request request_pb
1631
+ query_string_params = if query_string_params.any?
1632
+ query_string_params.to_h { |p| p.split "=", 2 }
1633
+ else
1634
+ {}
1635
+ end
1636
+
1637
+ response = @client_stub.make_http_request(
1638
+ verb,
1639
+ uri: uri,
1640
+ body: body || "",
1641
+ params: query_string_params,
1642
+ options: options
1643
+ )
1644
+ operation = ::Gapic::Rest::TransportOperation.new response
1645
+ result = ::Google::Cloud::MigrationCenter::V1::ReportConfig.decode_json response.body, ignore_unknown_fields: true
1646
+
1647
+ yield result, operation if block_given?
1648
+ result
1649
+ end
1650
+
1651
+ ##
1652
+ # Baseline implementation for the list_report_configs REST call
1653
+ #
1654
+ # @param request_pb [::Google::Cloud::MigrationCenter::V1::ListReportConfigsRequest]
1655
+ # A request object representing the call parameters. Required.
1656
+ # @param options [::Gapic::CallOptions]
1657
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1658
+ #
1659
+ # @yield [result, operation] Access the result along with the TransportOperation object
1660
+ # @yieldparam result [::Google::Cloud::MigrationCenter::V1::ListReportConfigsResponse]
1661
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1662
+ #
1663
+ # @return [::Google::Cloud::MigrationCenter::V1::ListReportConfigsResponse]
1664
+ # A result object deserialized from the server's reply
1665
+ def list_report_configs request_pb, options = nil
1666
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
1667
+
1668
+ verb, uri, query_string_params, body = ServiceStub.transcode_list_report_configs_request request_pb
1669
+ query_string_params = if query_string_params.any?
1670
+ query_string_params.to_h { |p| p.split "=", 2 }
1671
+ else
1672
+ {}
1673
+ end
1674
+
1675
+ response = @client_stub.make_http_request(
1676
+ verb,
1677
+ uri: uri,
1678
+ body: body || "",
1679
+ params: query_string_params,
1680
+ options: options
1681
+ )
1682
+ operation = ::Gapic::Rest::TransportOperation.new response
1683
+ result = ::Google::Cloud::MigrationCenter::V1::ListReportConfigsResponse.decode_json response.body, ignore_unknown_fields: true
1684
+
1685
+ yield result, operation if block_given?
1686
+ result
1687
+ end
1688
+
1689
+ ##
1690
+ # Baseline implementation for the delete_report_config REST call
1691
+ #
1692
+ # @param request_pb [::Google::Cloud::MigrationCenter::V1::DeleteReportConfigRequest]
1693
+ # A request object representing the call parameters. Required.
1694
+ # @param options [::Gapic::CallOptions]
1695
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1696
+ #
1697
+ # @yield [result, operation] Access the result along with the TransportOperation object
1698
+ # @yieldparam result [::Google::Longrunning::Operation]
1699
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1700
+ #
1701
+ # @return [::Google::Longrunning::Operation]
1702
+ # A result object deserialized from the server's reply
1703
+ def delete_report_config request_pb, options = nil
1704
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
1705
+
1706
+ verb, uri, query_string_params, body = ServiceStub.transcode_delete_report_config_request request_pb
1707
+ query_string_params = if query_string_params.any?
1708
+ query_string_params.to_h { |p| p.split "=", 2 }
1709
+ else
1710
+ {}
1711
+ end
1712
+
1713
+ response = @client_stub.make_http_request(
1714
+ verb,
1715
+ uri: uri,
1716
+ body: body || "",
1717
+ params: query_string_params,
1718
+ options: options
1719
+ )
1720
+ operation = ::Gapic::Rest::TransportOperation.new response
1721
+ result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
1722
+
1723
+ yield result, operation if block_given?
1724
+ result
1725
+ end
1726
+
1727
+ ##
1728
+ # Baseline implementation for the create_report REST call
1729
+ #
1730
+ # @param request_pb [::Google::Cloud::MigrationCenter::V1::CreateReportRequest]
1731
+ # A request object representing the call parameters. Required.
1732
+ # @param options [::Gapic::CallOptions]
1733
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1734
+ #
1735
+ # @yield [result, operation] Access the result along with the TransportOperation object
1736
+ # @yieldparam result [::Google::Longrunning::Operation]
1737
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1738
+ #
1739
+ # @return [::Google::Longrunning::Operation]
1740
+ # A result object deserialized from the server's reply
1741
+ def create_report request_pb, options = nil
1742
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
1743
+
1744
+ verb, uri, query_string_params, body = ServiceStub.transcode_create_report_request request_pb
1745
+ query_string_params = if query_string_params.any?
1746
+ query_string_params.to_h { |p| p.split "=", 2 }
1747
+ else
1748
+ {}
1749
+ end
1750
+
1751
+ response = @client_stub.make_http_request(
1752
+ verb,
1753
+ uri: uri,
1754
+ body: body || "",
1755
+ params: query_string_params,
1756
+ options: options
1757
+ )
1758
+ operation = ::Gapic::Rest::TransportOperation.new response
1759
+ result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
1760
+
1761
+ yield result, operation if block_given?
1762
+ result
1763
+ end
1764
+
1765
+ ##
1766
+ # Baseline implementation for the get_report REST call
1767
+ #
1768
+ # @param request_pb [::Google::Cloud::MigrationCenter::V1::GetReportRequest]
1769
+ # A request object representing the call parameters. Required.
1770
+ # @param options [::Gapic::CallOptions]
1771
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1772
+ #
1773
+ # @yield [result, operation] Access the result along with the TransportOperation object
1774
+ # @yieldparam result [::Google::Cloud::MigrationCenter::V1::Report]
1775
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1776
+ #
1777
+ # @return [::Google::Cloud::MigrationCenter::V1::Report]
1778
+ # A result object deserialized from the server's reply
1779
+ def get_report request_pb, options = nil
1780
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
1781
+
1782
+ verb, uri, query_string_params, body = ServiceStub.transcode_get_report_request request_pb
1783
+ query_string_params = if query_string_params.any?
1784
+ query_string_params.to_h { |p| p.split "=", 2 }
1785
+ else
1786
+ {}
1787
+ end
1788
+
1789
+ response = @client_stub.make_http_request(
1790
+ verb,
1791
+ uri: uri,
1792
+ body: body || "",
1793
+ params: query_string_params,
1794
+ options: options
1795
+ )
1796
+ operation = ::Gapic::Rest::TransportOperation.new response
1797
+ result = ::Google::Cloud::MigrationCenter::V1::Report.decode_json response.body, ignore_unknown_fields: true
1798
+
1799
+ yield result, operation if block_given?
1800
+ result
1801
+ end
1802
+
1803
+ ##
1804
+ # Baseline implementation for the list_reports REST call
1805
+ #
1806
+ # @param request_pb [::Google::Cloud::MigrationCenter::V1::ListReportsRequest]
1807
+ # A request object representing the call parameters. Required.
1808
+ # @param options [::Gapic::CallOptions]
1809
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1810
+ #
1811
+ # @yield [result, operation] Access the result along with the TransportOperation object
1812
+ # @yieldparam result [::Google::Cloud::MigrationCenter::V1::ListReportsResponse]
1813
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1814
+ #
1815
+ # @return [::Google::Cloud::MigrationCenter::V1::ListReportsResponse]
1816
+ # A result object deserialized from the server's reply
1817
+ def list_reports request_pb, options = nil
1818
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
1819
+
1820
+ verb, uri, query_string_params, body = ServiceStub.transcode_list_reports_request request_pb
1821
+ query_string_params = if query_string_params.any?
1822
+ query_string_params.to_h { |p| p.split "=", 2 }
1823
+ else
1824
+ {}
1825
+ end
1826
+
1827
+ response = @client_stub.make_http_request(
1828
+ verb,
1829
+ uri: uri,
1830
+ body: body || "",
1831
+ params: query_string_params,
1832
+ options: options
1833
+ )
1834
+ operation = ::Gapic::Rest::TransportOperation.new response
1835
+ result = ::Google::Cloud::MigrationCenter::V1::ListReportsResponse.decode_json response.body, ignore_unknown_fields: true
1836
+
1837
+ yield result, operation if block_given?
1838
+ result
1839
+ end
1840
+
1841
+ ##
1842
+ # Baseline implementation for the delete_report REST call
1843
+ #
1844
+ # @param request_pb [::Google::Cloud::MigrationCenter::V1::DeleteReportRequest]
1845
+ # A request object representing the call parameters. Required.
1846
+ # @param options [::Gapic::CallOptions]
1847
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1848
+ #
1849
+ # @yield [result, operation] Access the result along with the TransportOperation object
1850
+ # @yieldparam result [::Google::Longrunning::Operation]
1851
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1852
+ #
1853
+ # @return [::Google::Longrunning::Operation]
1854
+ # A result object deserialized from the server's reply
1855
+ def delete_report request_pb, options = nil
1856
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
1857
+
1858
+ verb, uri, query_string_params, body = ServiceStub.transcode_delete_report_request request_pb
1859
+ query_string_params = if query_string_params.any?
1860
+ query_string_params.to_h { |p| p.split "=", 2 }
1861
+ else
1862
+ {}
1863
+ end
1864
+
1865
+ response = @client_stub.make_http_request(
1866
+ verb,
1867
+ uri: uri,
1868
+ body: body || "",
1869
+ params: query_string_params,
1870
+ options: options
1871
+ )
1872
+ operation = ::Gapic::Rest::TransportOperation.new response
1873
+ result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
1874
+
1875
+ yield result, operation if block_given?
1876
+ result
1877
+ end
1878
+
1879
+ ##
1880
+ # @private
1881
+ #
1882
+ # GRPC transcoding helper method for the list_assets REST call
1883
+ #
1884
+ # @param request_pb [::Google::Cloud::MigrationCenter::V1::ListAssetsRequest]
1885
+ # A request object representing the call parameters. Required.
1886
+ # @return [Array(String, [String, nil], Hash{String => String})]
1887
+ # Uri, Body, Query string parameters
1888
+ def self.transcode_list_assets_request request_pb
1889
+ transcoder = Gapic::Rest::GrpcTranscoder.new
1890
+ .with_bindings(
1891
+ uri_method: :get,
1892
+ uri_template: "/v1/{parent}/assets",
1893
+ matches: [
1894
+ ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
1895
+ ]
1896
+ )
1897
+ transcoder.transcode request_pb
1898
+ end
1899
+
1900
+ ##
1901
+ # @private
1902
+ #
1903
+ # GRPC transcoding helper method for the get_asset REST call
1904
+ #
1905
+ # @param request_pb [::Google::Cloud::MigrationCenter::V1::GetAssetRequest]
1906
+ # A request object representing the call parameters. Required.
1907
+ # @return [Array(String, [String, nil], Hash{String => String})]
1908
+ # Uri, Body, Query string parameters
1909
+ def self.transcode_get_asset_request request_pb
1910
+ transcoder = Gapic::Rest::GrpcTranscoder.new
1911
+ .with_bindings(
1912
+ uri_method: :get,
1913
+ uri_template: "/v1/{name}",
1914
+ matches: [
1915
+ ["name", %r{^projects/[^/]+/locations/[^/]+/assets/[^/]+/?$}, false]
1916
+ ]
1917
+ )
1918
+ transcoder.transcode request_pb
1919
+ end
1920
+
1921
+ ##
1922
+ # @private
1923
+ #
1924
+ # GRPC transcoding helper method for the update_asset REST call
1925
+ #
1926
+ # @param request_pb [::Google::Cloud::MigrationCenter::V1::UpdateAssetRequest]
1927
+ # A request object representing the call parameters. Required.
1928
+ # @return [Array(String, [String, nil], Hash{String => String})]
1929
+ # Uri, Body, Query string parameters
1930
+ def self.transcode_update_asset_request request_pb
1931
+ transcoder = Gapic::Rest::GrpcTranscoder.new
1932
+ .with_bindings(
1933
+ uri_method: :patch,
1934
+ uri_template: "/v1/{asset.name}",
1935
+ body: "asset",
1936
+ matches: [
1937
+ ["asset.name", %r{^projects/[^/]+/locations/[^/]+/assets/[^/]+/?$}, false]
1938
+ ]
1939
+ )
1940
+ transcoder.transcode request_pb
1941
+ end
1942
+
1943
+ ##
1944
+ # @private
1945
+ #
1946
+ # GRPC transcoding helper method for the batch_update_assets REST call
1947
+ #
1948
+ # @param request_pb [::Google::Cloud::MigrationCenter::V1::BatchUpdateAssetsRequest]
1949
+ # A request object representing the call parameters. Required.
1950
+ # @return [Array(String, [String, nil], Hash{String => String})]
1951
+ # Uri, Body, Query string parameters
1952
+ def self.transcode_batch_update_assets_request request_pb
1953
+ transcoder = Gapic::Rest::GrpcTranscoder.new
1954
+ .with_bindings(
1955
+ uri_method: :post,
1956
+ uri_template: "/v1/{parent}/assets:batchUpdate",
1957
+ body: "*",
1958
+ matches: [
1959
+ ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
1960
+ ]
1961
+ )
1962
+ transcoder.transcode request_pb
1963
+ end
1964
+
1965
+ ##
1966
+ # @private
1967
+ #
1968
+ # GRPC transcoding helper method for the delete_asset REST call
1969
+ #
1970
+ # @param request_pb [::Google::Cloud::MigrationCenter::V1::DeleteAssetRequest]
1971
+ # A request object representing the call parameters. Required.
1972
+ # @return [Array(String, [String, nil], Hash{String => String})]
1973
+ # Uri, Body, Query string parameters
1974
+ def self.transcode_delete_asset_request request_pb
1975
+ transcoder = Gapic::Rest::GrpcTranscoder.new
1976
+ .with_bindings(
1977
+ uri_method: :delete,
1978
+ uri_template: "/v1/{name}",
1979
+ matches: [
1980
+ ["name", %r{^projects/[^/]+/locations/[^/]+/assets/[^/]+/?$}, false]
1981
+ ]
1982
+ )
1983
+ transcoder.transcode request_pb
1984
+ end
1985
+
1986
+ ##
1987
+ # @private
1988
+ #
1989
+ # GRPC transcoding helper method for the batch_delete_assets REST call
1990
+ #
1991
+ # @param request_pb [::Google::Cloud::MigrationCenter::V1::BatchDeleteAssetsRequest]
1992
+ # A request object representing the call parameters. Required.
1993
+ # @return [Array(String, [String, nil], Hash{String => String})]
1994
+ # Uri, Body, Query string parameters
1995
+ def self.transcode_batch_delete_assets_request request_pb
1996
+ transcoder = Gapic::Rest::GrpcTranscoder.new
1997
+ .with_bindings(
1998
+ uri_method: :post,
1999
+ uri_template: "/v1/{parent}/assets:batchDelete",
2000
+ body: "*",
2001
+ matches: [
2002
+ ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
2003
+ ]
2004
+ )
2005
+ transcoder.transcode request_pb
2006
+ end
2007
+
2008
+ ##
2009
+ # @private
2010
+ #
2011
+ # GRPC transcoding helper method for the report_asset_frames REST call
2012
+ #
2013
+ # @param request_pb [::Google::Cloud::MigrationCenter::V1::ReportAssetFramesRequest]
2014
+ # A request object representing the call parameters. Required.
2015
+ # @return [Array(String, [String, nil], Hash{String => String})]
2016
+ # Uri, Body, Query string parameters
2017
+ def self.transcode_report_asset_frames_request request_pb
2018
+ transcoder = Gapic::Rest::GrpcTranscoder.new
2019
+ .with_bindings(
2020
+ uri_method: :post,
2021
+ uri_template: "/v1/{parent}/assets:reportAssetFrames",
2022
+ body: "frames",
2023
+ matches: [
2024
+ ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
2025
+ ]
2026
+ )
2027
+ transcoder.transcode request_pb
2028
+ end
2029
+
2030
+ ##
2031
+ # @private
2032
+ #
2033
+ # GRPC transcoding helper method for the aggregate_assets_values REST call
2034
+ #
2035
+ # @param request_pb [::Google::Cloud::MigrationCenter::V1::AggregateAssetsValuesRequest]
2036
+ # A request object representing the call parameters. Required.
2037
+ # @return [Array(String, [String, nil], Hash{String => String})]
2038
+ # Uri, Body, Query string parameters
2039
+ def self.transcode_aggregate_assets_values_request request_pb
2040
+ transcoder = Gapic::Rest::GrpcTranscoder.new
2041
+ .with_bindings(
2042
+ uri_method: :post,
2043
+ uri_template: "/v1/{parent}/assets:aggregateValues",
2044
+ body: "*",
2045
+ matches: [
2046
+ ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
2047
+ ]
2048
+ )
2049
+ transcoder.transcode request_pb
2050
+ end
2051
+
2052
+ ##
2053
+ # @private
2054
+ #
2055
+ # GRPC transcoding helper method for the create_import_job REST call
2056
+ #
2057
+ # @param request_pb [::Google::Cloud::MigrationCenter::V1::CreateImportJobRequest]
2058
+ # A request object representing the call parameters. Required.
2059
+ # @return [Array(String, [String, nil], Hash{String => String})]
2060
+ # Uri, Body, Query string parameters
2061
+ def self.transcode_create_import_job_request request_pb
2062
+ transcoder = Gapic::Rest::GrpcTranscoder.new
2063
+ .with_bindings(
2064
+ uri_method: :post,
2065
+ uri_template: "/v1/{parent}/importJobs",
2066
+ body: "import_job",
2067
+ matches: [
2068
+ ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
2069
+ ]
2070
+ )
2071
+ transcoder.transcode request_pb
2072
+ end
2073
+
2074
+ ##
2075
+ # @private
2076
+ #
2077
+ # GRPC transcoding helper method for the list_import_jobs REST call
2078
+ #
2079
+ # @param request_pb [::Google::Cloud::MigrationCenter::V1::ListImportJobsRequest]
2080
+ # A request object representing the call parameters. Required.
2081
+ # @return [Array(String, [String, nil], Hash{String => String})]
2082
+ # Uri, Body, Query string parameters
2083
+ def self.transcode_list_import_jobs_request request_pb
2084
+ transcoder = Gapic::Rest::GrpcTranscoder.new
2085
+ .with_bindings(
2086
+ uri_method: :get,
2087
+ uri_template: "/v1/{parent}/importJobs",
2088
+ matches: [
2089
+ ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
2090
+ ]
2091
+ )
2092
+ transcoder.transcode request_pb
2093
+ end
2094
+
2095
+ ##
2096
+ # @private
2097
+ #
2098
+ # GRPC transcoding helper method for the get_import_job REST call
2099
+ #
2100
+ # @param request_pb [::Google::Cloud::MigrationCenter::V1::GetImportJobRequest]
2101
+ # A request object representing the call parameters. Required.
2102
+ # @return [Array(String, [String, nil], Hash{String => String})]
2103
+ # Uri, Body, Query string parameters
2104
+ def self.transcode_get_import_job_request request_pb
2105
+ transcoder = Gapic::Rest::GrpcTranscoder.new
2106
+ .with_bindings(
2107
+ uri_method: :get,
2108
+ uri_template: "/v1/{name}",
2109
+ matches: [
2110
+ ["name", %r{^projects/[^/]+/locations/[^/]+/importJobs/[^/]+/?$}, false]
2111
+ ]
2112
+ )
2113
+ transcoder.transcode request_pb
2114
+ end
2115
+
2116
+ ##
2117
+ # @private
2118
+ #
2119
+ # GRPC transcoding helper method for the delete_import_job REST call
2120
+ #
2121
+ # @param request_pb [::Google::Cloud::MigrationCenter::V1::DeleteImportJobRequest]
2122
+ # A request object representing the call parameters. Required.
2123
+ # @return [Array(String, [String, nil], Hash{String => String})]
2124
+ # Uri, Body, Query string parameters
2125
+ def self.transcode_delete_import_job_request request_pb
2126
+ transcoder = Gapic::Rest::GrpcTranscoder.new
2127
+ .with_bindings(
2128
+ uri_method: :delete,
2129
+ uri_template: "/v1/{name}",
2130
+ matches: [
2131
+ ["name", %r{^projects/[^/]+/locations/[^/]+/importJobs/[^/]+/?$}, false]
2132
+ ]
2133
+ )
2134
+ transcoder.transcode request_pb
2135
+ end
2136
+
2137
+ ##
2138
+ # @private
2139
+ #
2140
+ # GRPC transcoding helper method for the update_import_job REST call
2141
+ #
2142
+ # @param request_pb [::Google::Cloud::MigrationCenter::V1::UpdateImportJobRequest]
2143
+ # A request object representing the call parameters. Required.
2144
+ # @return [Array(String, [String, nil], Hash{String => String})]
2145
+ # Uri, Body, Query string parameters
2146
+ def self.transcode_update_import_job_request request_pb
2147
+ transcoder = Gapic::Rest::GrpcTranscoder.new
2148
+ .with_bindings(
2149
+ uri_method: :patch,
2150
+ uri_template: "/v1/{import_job.name}",
2151
+ body: "import_job",
2152
+ matches: [
2153
+ ["import_job.name", %r{^projects/[^/]+/locations/[^/]+/importJobs/[^/]+/?$}, false]
2154
+ ]
2155
+ )
2156
+ transcoder.transcode request_pb
2157
+ end
2158
+
2159
+ ##
2160
+ # @private
2161
+ #
2162
+ # GRPC transcoding helper method for the validate_import_job REST call
2163
+ #
2164
+ # @param request_pb [::Google::Cloud::MigrationCenter::V1::ValidateImportJobRequest]
2165
+ # A request object representing the call parameters. Required.
2166
+ # @return [Array(String, [String, nil], Hash{String => String})]
2167
+ # Uri, Body, Query string parameters
2168
+ def self.transcode_validate_import_job_request request_pb
2169
+ transcoder = Gapic::Rest::GrpcTranscoder.new
2170
+ .with_bindings(
2171
+ uri_method: :post,
2172
+ uri_template: "/v1/{name}:validate",
2173
+ body: "*",
2174
+ matches: [
2175
+ ["name", %r{^projects/[^/]+/locations/[^/]+/importJobs/[^/]+/?$}, false]
2176
+ ]
2177
+ )
2178
+ transcoder.transcode request_pb
2179
+ end
2180
+
2181
+ ##
2182
+ # @private
2183
+ #
2184
+ # GRPC transcoding helper method for the run_import_job REST call
2185
+ #
2186
+ # @param request_pb [::Google::Cloud::MigrationCenter::V1::RunImportJobRequest]
2187
+ # A request object representing the call parameters. Required.
2188
+ # @return [Array(String, [String, nil], Hash{String => String})]
2189
+ # Uri, Body, Query string parameters
2190
+ def self.transcode_run_import_job_request request_pb
2191
+ transcoder = Gapic::Rest::GrpcTranscoder.new
2192
+ .with_bindings(
2193
+ uri_method: :post,
2194
+ uri_template: "/v1/{name}:run",
2195
+ body: "*",
2196
+ matches: [
2197
+ ["name", %r{^projects/[^/]+/locations/[^/]+/importJobs/[^/]+/?$}, false]
2198
+ ]
2199
+ )
2200
+ transcoder.transcode request_pb
2201
+ end
2202
+
2203
+ ##
2204
+ # @private
2205
+ #
2206
+ # GRPC transcoding helper method for the get_import_data_file REST call
2207
+ #
2208
+ # @param request_pb [::Google::Cloud::MigrationCenter::V1::GetImportDataFileRequest]
2209
+ # A request object representing the call parameters. Required.
2210
+ # @return [Array(String, [String, nil], Hash{String => String})]
2211
+ # Uri, Body, Query string parameters
2212
+ def self.transcode_get_import_data_file_request request_pb
2213
+ transcoder = Gapic::Rest::GrpcTranscoder.new
2214
+ .with_bindings(
2215
+ uri_method: :get,
2216
+ uri_template: "/v1/{name}",
2217
+ matches: [
2218
+ ["name", %r{^projects/[^/]+/locations/[^/]+/importJobs/[^/]+/importDataFiles/[^/]+/?$}, false]
2219
+ ]
2220
+ )
2221
+ transcoder.transcode request_pb
2222
+ end
2223
+
2224
+ ##
2225
+ # @private
2226
+ #
2227
+ # GRPC transcoding helper method for the list_import_data_files REST call
2228
+ #
2229
+ # @param request_pb [::Google::Cloud::MigrationCenter::V1::ListImportDataFilesRequest]
2230
+ # A request object representing the call parameters. Required.
2231
+ # @return [Array(String, [String, nil], Hash{String => String})]
2232
+ # Uri, Body, Query string parameters
2233
+ def self.transcode_list_import_data_files_request request_pb
2234
+ transcoder = Gapic::Rest::GrpcTranscoder.new
2235
+ .with_bindings(
2236
+ uri_method: :get,
2237
+ uri_template: "/v1/{parent}/importDataFiles",
2238
+ matches: [
2239
+ ["parent", %r{^projects/[^/]+/locations/[^/]+/importJobs/[^/]+/?$}, false]
2240
+ ]
2241
+ )
2242
+ transcoder.transcode request_pb
2243
+ end
2244
+
2245
+ ##
2246
+ # @private
2247
+ #
2248
+ # GRPC transcoding helper method for the create_import_data_file REST call
2249
+ #
2250
+ # @param request_pb [::Google::Cloud::MigrationCenter::V1::CreateImportDataFileRequest]
2251
+ # A request object representing the call parameters. Required.
2252
+ # @return [Array(String, [String, nil], Hash{String => String})]
2253
+ # Uri, Body, Query string parameters
2254
+ def self.transcode_create_import_data_file_request request_pb
2255
+ transcoder = Gapic::Rest::GrpcTranscoder.new
2256
+ .with_bindings(
2257
+ uri_method: :post,
2258
+ uri_template: "/v1/{parent}/importDataFiles",
2259
+ body: "import_data_file",
2260
+ matches: [
2261
+ ["parent", %r{^projects/[^/]+/locations/[^/]+/importJobs/[^/]+/?$}, false]
2262
+ ]
2263
+ )
2264
+ transcoder.transcode request_pb
2265
+ end
2266
+
2267
+ ##
2268
+ # @private
2269
+ #
2270
+ # GRPC transcoding helper method for the delete_import_data_file REST call
2271
+ #
2272
+ # @param request_pb [::Google::Cloud::MigrationCenter::V1::DeleteImportDataFileRequest]
2273
+ # A request object representing the call parameters. Required.
2274
+ # @return [Array(String, [String, nil], Hash{String => String})]
2275
+ # Uri, Body, Query string parameters
2276
+ def self.transcode_delete_import_data_file_request request_pb
2277
+ transcoder = Gapic::Rest::GrpcTranscoder.new
2278
+ .with_bindings(
2279
+ uri_method: :delete,
2280
+ uri_template: "/v1/{name}",
2281
+ matches: [
2282
+ ["name", %r{^projects/[^/]+/locations/[^/]+/importJobs/[^/]+/importDataFiles/[^/]+/?$}, false]
2283
+ ]
2284
+ )
2285
+ transcoder.transcode request_pb
2286
+ end
2287
+
2288
+ ##
2289
+ # @private
2290
+ #
2291
+ # GRPC transcoding helper method for the list_groups REST call
2292
+ #
2293
+ # @param request_pb [::Google::Cloud::MigrationCenter::V1::ListGroupsRequest]
2294
+ # A request object representing the call parameters. Required.
2295
+ # @return [Array(String, [String, nil], Hash{String => String})]
2296
+ # Uri, Body, Query string parameters
2297
+ def self.transcode_list_groups_request request_pb
2298
+ transcoder = Gapic::Rest::GrpcTranscoder.new
2299
+ .with_bindings(
2300
+ uri_method: :get,
2301
+ uri_template: "/v1/{parent}/groups",
2302
+ matches: [
2303
+ ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
2304
+ ]
2305
+ )
2306
+ transcoder.transcode request_pb
2307
+ end
2308
+
2309
+ ##
2310
+ # @private
2311
+ #
2312
+ # GRPC transcoding helper method for the get_group REST call
2313
+ #
2314
+ # @param request_pb [::Google::Cloud::MigrationCenter::V1::GetGroupRequest]
2315
+ # A request object representing the call parameters. Required.
2316
+ # @return [Array(String, [String, nil], Hash{String => String})]
2317
+ # Uri, Body, Query string parameters
2318
+ def self.transcode_get_group_request request_pb
2319
+ transcoder = Gapic::Rest::GrpcTranscoder.new
2320
+ .with_bindings(
2321
+ uri_method: :get,
2322
+ uri_template: "/v1/{name}",
2323
+ matches: [
2324
+ ["name", %r{^projects/[^/]+/locations/[^/]+/groups/[^/]+/?$}, false]
2325
+ ]
2326
+ )
2327
+ transcoder.transcode request_pb
2328
+ end
2329
+
2330
+ ##
2331
+ # @private
2332
+ #
2333
+ # GRPC transcoding helper method for the create_group REST call
2334
+ #
2335
+ # @param request_pb [::Google::Cloud::MigrationCenter::V1::CreateGroupRequest]
2336
+ # A request object representing the call parameters. Required.
2337
+ # @return [Array(String, [String, nil], Hash{String => String})]
2338
+ # Uri, Body, Query string parameters
2339
+ def self.transcode_create_group_request request_pb
2340
+ transcoder = Gapic::Rest::GrpcTranscoder.new
2341
+ .with_bindings(
2342
+ uri_method: :post,
2343
+ uri_template: "/v1/{parent}/groups",
2344
+ body: "group",
2345
+ matches: [
2346
+ ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
2347
+ ]
2348
+ )
2349
+ transcoder.transcode request_pb
2350
+ end
2351
+
2352
+ ##
2353
+ # @private
2354
+ #
2355
+ # GRPC transcoding helper method for the update_group REST call
2356
+ #
2357
+ # @param request_pb [::Google::Cloud::MigrationCenter::V1::UpdateGroupRequest]
2358
+ # A request object representing the call parameters. Required.
2359
+ # @return [Array(String, [String, nil], Hash{String => String})]
2360
+ # Uri, Body, Query string parameters
2361
+ def self.transcode_update_group_request request_pb
2362
+ transcoder = Gapic::Rest::GrpcTranscoder.new
2363
+ .with_bindings(
2364
+ uri_method: :patch,
2365
+ uri_template: "/v1/{group.name}",
2366
+ body: "group",
2367
+ matches: [
2368
+ ["group.name", %r{^projects/[^/]+/locations/[^/]+/groups/[^/]+/?$}, false]
2369
+ ]
2370
+ )
2371
+ transcoder.transcode request_pb
2372
+ end
2373
+
2374
+ ##
2375
+ # @private
2376
+ #
2377
+ # GRPC transcoding helper method for the delete_group REST call
2378
+ #
2379
+ # @param request_pb [::Google::Cloud::MigrationCenter::V1::DeleteGroupRequest]
2380
+ # A request object representing the call parameters. Required.
2381
+ # @return [Array(String, [String, nil], Hash{String => String})]
2382
+ # Uri, Body, Query string parameters
2383
+ def self.transcode_delete_group_request request_pb
2384
+ transcoder = Gapic::Rest::GrpcTranscoder.new
2385
+ .with_bindings(
2386
+ uri_method: :delete,
2387
+ uri_template: "/v1/{name}",
2388
+ matches: [
2389
+ ["name", %r{^projects/[^/]+/locations/[^/]+/groups/[^/]+/?$}, false]
2390
+ ]
2391
+ )
2392
+ transcoder.transcode request_pb
2393
+ end
2394
+
2395
+ ##
2396
+ # @private
2397
+ #
2398
+ # GRPC transcoding helper method for the add_assets_to_group REST call
2399
+ #
2400
+ # @param request_pb [::Google::Cloud::MigrationCenter::V1::AddAssetsToGroupRequest]
2401
+ # A request object representing the call parameters. Required.
2402
+ # @return [Array(String, [String, nil], Hash{String => String})]
2403
+ # Uri, Body, Query string parameters
2404
+ def self.transcode_add_assets_to_group_request request_pb
2405
+ transcoder = Gapic::Rest::GrpcTranscoder.new
2406
+ .with_bindings(
2407
+ uri_method: :post,
2408
+ uri_template: "/v1/{group}:addAssets",
2409
+ body: "*",
2410
+ matches: [
2411
+ ["group", %r{^projects/[^/]+/locations/[^/]+/groups/[^/]+/?$}, false]
2412
+ ]
2413
+ )
2414
+ transcoder.transcode request_pb
2415
+ end
2416
+
2417
+ ##
2418
+ # @private
2419
+ #
2420
+ # GRPC transcoding helper method for the remove_assets_from_group REST call
2421
+ #
2422
+ # @param request_pb [::Google::Cloud::MigrationCenter::V1::RemoveAssetsFromGroupRequest]
2423
+ # A request object representing the call parameters. Required.
2424
+ # @return [Array(String, [String, nil], Hash{String => String})]
2425
+ # Uri, Body, Query string parameters
2426
+ def self.transcode_remove_assets_from_group_request request_pb
2427
+ transcoder = Gapic::Rest::GrpcTranscoder.new
2428
+ .with_bindings(
2429
+ uri_method: :post,
2430
+ uri_template: "/v1/{group}:removeAssets",
2431
+ body: "*",
2432
+ matches: [
2433
+ ["group", %r{^projects/[^/]+/locations/[^/]+/groups/[^/]+/?$}, false]
2434
+ ]
2435
+ )
2436
+ transcoder.transcode request_pb
2437
+ end
2438
+
2439
+ ##
2440
+ # @private
2441
+ #
2442
+ # GRPC transcoding helper method for the list_error_frames REST call
2443
+ #
2444
+ # @param request_pb [::Google::Cloud::MigrationCenter::V1::ListErrorFramesRequest]
2445
+ # A request object representing the call parameters. Required.
2446
+ # @return [Array(String, [String, nil], Hash{String => String})]
2447
+ # Uri, Body, Query string parameters
2448
+ def self.transcode_list_error_frames_request request_pb
2449
+ transcoder = Gapic::Rest::GrpcTranscoder.new
2450
+ .with_bindings(
2451
+ uri_method: :get,
2452
+ uri_template: "/v1/{parent}/errorFrames",
2453
+ matches: [
2454
+ ["parent", %r{^projects/[^/]+/locations/[^/]+/sources/[^/]+/?$}, false]
2455
+ ]
2456
+ )
2457
+ transcoder.transcode request_pb
2458
+ end
2459
+
2460
+ ##
2461
+ # @private
2462
+ #
2463
+ # GRPC transcoding helper method for the get_error_frame REST call
2464
+ #
2465
+ # @param request_pb [::Google::Cloud::MigrationCenter::V1::GetErrorFrameRequest]
2466
+ # A request object representing the call parameters. Required.
2467
+ # @return [Array(String, [String, nil], Hash{String => String})]
2468
+ # Uri, Body, Query string parameters
2469
+ def self.transcode_get_error_frame_request request_pb
2470
+ transcoder = Gapic::Rest::GrpcTranscoder.new
2471
+ .with_bindings(
2472
+ uri_method: :get,
2473
+ uri_template: "/v1/{name}",
2474
+ matches: [
2475
+ ["name", %r{^projects/[^/]+/locations/[^/]+/sources/[^/]+/errorFrames/[^/]+/?$}, false]
2476
+ ]
2477
+ )
2478
+ transcoder.transcode request_pb
2479
+ end
2480
+
2481
+ ##
2482
+ # @private
2483
+ #
2484
+ # GRPC transcoding helper method for the list_sources REST call
2485
+ #
2486
+ # @param request_pb [::Google::Cloud::MigrationCenter::V1::ListSourcesRequest]
2487
+ # A request object representing the call parameters. Required.
2488
+ # @return [Array(String, [String, nil], Hash{String => String})]
2489
+ # Uri, Body, Query string parameters
2490
+ def self.transcode_list_sources_request request_pb
2491
+ transcoder = Gapic::Rest::GrpcTranscoder.new
2492
+ .with_bindings(
2493
+ uri_method: :get,
2494
+ uri_template: "/v1/{parent}/sources",
2495
+ matches: [
2496
+ ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
2497
+ ]
2498
+ )
2499
+ transcoder.transcode request_pb
2500
+ end
2501
+
2502
+ ##
2503
+ # @private
2504
+ #
2505
+ # GRPC transcoding helper method for the get_source REST call
2506
+ #
2507
+ # @param request_pb [::Google::Cloud::MigrationCenter::V1::GetSourceRequest]
2508
+ # A request object representing the call parameters. Required.
2509
+ # @return [Array(String, [String, nil], Hash{String => String})]
2510
+ # Uri, Body, Query string parameters
2511
+ def self.transcode_get_source_request request_pb
2512
+ transcoder = Gapic::Rest::GrpcTranscoder.new
2513
+ .with_bindings(
2514
+ uri_method: :get,
2515
+ uri_template: "/v1/{name}",
2516
+ matches: [
2517
+ ["name", %r{^projects/[^/]+/locations/[^/]+/sources/[^/]+/?$}, false]
2518
+ ]
2519
+ )
2520
+ transcoder.transcode request_pb
2521
+ end
2522
+
2523
+ ##
2524
+ # @private
2525
+ #
2526
+ # GRPC transcoding helper method for the create_source REST call
2527
+ #
2528
+ # @param request_pb [::Google::Cloud::MigrationCenter::V1::CreateSourceRequest]
2529
+ # A request object representing the call parameters. Required.
2530
+ # @return [Array(String, [String, nil], Hash{String => String})]
2531
+ # Uri, Body, Query string parameters
2532
+ def self.transcode_create_source_request request_pb
2533
+ transcoder = Gapic::Rest::GrpcTranscoder.new
2534
+ .with_bindings(
2535
+ uri_method: :post,
2536
+ uri_template: "/v1/{parent}/sources",
2537
+ body: "source",
2538
+ matches: [
2539
+ ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
2540
+ ]
2541
+ )
2542
+ transcoder.transcode request_pb
2543
+ end
2544
+
2545
+ ##
2546
+ # @private
2547
+ #
2548
+ # GRPC transcoding helper method for the update_source REST call
2549
+ #
2550
+ # @param request_pb [::Google::Cloud::MigrationCenter::V1::UpdateSourceRequest]
2551
+ # A request object representing the call parameters. Required.
2552
+ # @return [Array(String, [String, nil], Hash{String => String})]
2553
+ # Uri, Body, Query string parameters
2554
+ def self.transcode_update_source_request request_pb
2555
+ transcoder = Gapic::Rest::GrpcTranscoder.new
2556
+ .with_bindings(
2557
+ uri_method: :patch,
2558
+ uri_template: "/v1/{source.name}",
2559
+ body: "source",
2560
+ matches: [
2561
+ ["source.name", %r{^projects/[^/]+/locations/[^/]+/sources/[^/]+/?$}, false]
2562
+ ]
2563
+ )
2564
+ transcoder.transcode request_pb
2565
+ end
2566
+
2567
+ ##
2568
+ # @private
2569
+ #
2570
+ # GRPC transcoding helper method for the delete_source REST call
2571
+ #
2572
+ # @param request_pb [::Google::Cloud::MigrationCenter::V1::DeleteSourceRequest]
2573
+ # A request object representing the call parameters. Required.
2574
+ # @return [Array(String, [String, nil], Hash{String => String})]
2575
+ # Uri, Body, Query string parameters
2576
+ def self.transcode_delete_source_request request_pb
2577
+ transcoder = Gapic::Rest::GrpcTranscoder.new
2578
+ .with_bindings(
2579
+ uri_method: :delete,
2580
+ uri_template: "/v1/{name}",
2581
+ matches: [
2582
+ ["name", %r{^projects/[^/]+/locations/[^/]+/sources/[^/]+/?$}, false]
2583
+ ]
2584
+ )
2585
+ transcoder.transcode request_pb
2586
+ end
2587
+
2588
+ ##
2589
+ # @private
2590
+ #
2591
+ # GRPC transcoding helper method for the list_preference_sets REST call
2592
+ #
2593
+ # @param request_pb [::Google::Cloud::MigrationCenter::V1::ListPreferenceSetsRequest]
2594
+ # A request object representing the call parameters. Required.
2595
+ # @return [Array(String, [String, nil], Hash{String => String})]
2596
+ # Uri, Body, Query string parameters
2597
+ def self.transcode_list_preference_sets_request request_pb
2598
+ transcoder = Gapic::Rest::GrpcTranscoder.new
2599
+ .with_bindings(
2600
+ uri_method: :get,
2601
+ uri_template: "/v1/{parent}/preferenceSets",
2602
+ matches: [
2603
+ ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
2604
+ ]
2605
+ )
2606
+ transcoder.transcode request_pb
2607
+ end
2608
+
2609
+ ##
2610
+ # @private
2611
+ #
2612
+ # GRPC transcoding helper method for the get_preference_set REST call
2613
+ #
2614
+ # @param request_pb [::Google::Cloud::MigrationCenter::V1::GetPreferenceSetRequest]
2615
+ # A request object representing the call parameters. Required.
2616
+ # @return [Array(String, [String, nil], Hash{String => String})]
2617
+ # Uri, Body, Query string parameters
2618
+ def self.transcode_get_preference_set_request request_pb
2619
+ transcoder = Gapic::Rest::GrpcTranscoder.new
2620
+ .with_bindings(
2621
+ uri_method: :get,
2622
+ uri_template: "/v1/{name}",
2623
+ matches: [
2624
+ ["name", %r{^projects/[^/]+/locations/[^/]+/preferenceSets/[^/]+/?$}, false]
2625
+ ]
2626
+ )
2627
+ transcoder.transcode request_pb
2628
+ end
2629
+
2630
+ ##
2631
+ # @private
2632
+ #
2633
+ # GRPC transcoding helper method for the create_preference_set REST call
2634
+ #
2635
+ # @param request_pb [::Google::Cloud::MigrationCenter::V1::CreatePreferenceSetRequest]
2636
+ # A request object representing the call parameters. Required.
2637
+ # @return [Array(String, [String, nil], Hash{String => String})]
2638
+ # Uri, Body, Query string parameters
2639
+ def self.transcode_create_preference_set_request request_pb
2640
+ transcoder = Gapic::Rest::GrpcTranscoder.new
2641
+ .with_bindings(
2642
+ uri_method: :post,
2643
+ uri_template: "/v1/{parent}/preferenceSets",
2644
+ body: "preference_set",
2645
+ matches: [
2646
+ ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
2647
+ ]
2648
+ )
2649
+ transcoder.transcode request_pb
2650
+ end
2651
+
2652
+ ##
2653
+ # @private
2654
+ #
2655
+ # GRPC transcoding helper method for the update_preference_set REST call
2656
+ #
2657
+ # @param request_pb [::Google::Cloud::MigrationCenter::V1::UpdatePreferenceSetRequest]
2658
+ # A request object representing the call parameters. Required.
2659
+ # @return [Array(String, [String, nil], Hash{String => String})]
2660
+ # Uri, Body, Query string parameters
2661
+ def self.transcode_update_preference_set_request request_pb
2662
+ transcoder = Gapic::Rest::GrpcTranscoder.new
2663
+ .with_bindings(
2664
+ uri_method: :patch,
2665
+ uri_template: "/v1/{preference_set.name}",
2666
+ body: "preference_set",
2667
+ matches: [
2668
+ ["preference_set.name", %r{^projects/[^/]+/locations/[^/]+/preferenceSets/[^/]+/?$}, false]
2669
+ ]
2670
+ )
2671
+ transcoder.transcode request_pb
2672
+ end
2673
+
2674
+ ##
2675
+ # @private
2676
+ #
2677
+ # GRPC transcoding helper method for the delete_preference_set REST call
2678
+ #
2679
+ # @param request_pb [::Google::Cloud::MigrationCenter::V1::DeletePreferenceSetRequest]
2680
+ # A request object representing the call parameters. Required.
2681
+ # @return [Array(String, [String, nil], Hash{String => String})]
2682
+ # Uri, Body, Query string parameters
2683
+ def self.transcode_delete_preference_set_request request_pb
2684
+ transcoder = Gapic::Rest::GrpcTranscoder.new
2685
+ .with_bindings(
2686
+ uri_method: :delete,
2687
+ uri_template: "/v1/{name}",
2688
+ matches: [
2689
+ ["name", %r{^projects/[^/]+/locations/[^/]+/preferenceSets/[^/]+/?$}, false]
2690
+ ]
2691
+ )
2692
+ transcoder.transcode request_pb
2693
+ end
2694
+
2695
+ ##
2696
+ # @private
2697
+ #
2698
+ # GRPC transcoding helper method for the get_settings REST call
2699
+ #
2700
+ # @param request_pb [::Google::Cloud::MigrationCenter::V1::GetSettingsRequest]
2701
+ # A request object representing the call parameters. Required.
2702
+ # @return [Array(String, [String, nil], Hash{String => String})]
2703
+ # Uri, Body, Query string parameters
2704
+ def self.transcode_get_settings_request request_pb
2705
+ transcoder = Gapic::Rest::GrpcTranscoder.new
2706
+ .with_bindings(
2707
+ uri_method: :get,
2708
+ uri_template: "/v1/{name}",
2709
+ matches: [
2710
+ ["name", %r{^projects/[^/]+/locations/[^/]+/settings/?$}, false]
2711
+ ]
2712
+ )
2713
+ transcoder.transcode request_pb
2714
+ end
2715
+
2716
+ ##
2717
+ # @private
2718
+ #
2719
+ # GRPC transcoding helper method for the update_settings REST call
2720
+ #
2721
+ # @param request_pb [::Google::Cloud::MigrationCenter::V1::UpdateSettingsRequest]
2722
+ # A request object representing the call parameters. Required.
2723
+ # @return [Array(String, [String, nil], Hash{String => String})]
2724
+ # Uri, Body, Query string parameters
2725
+ def self.transcode_update_settings_request request_pb
2726
+ transcoder = Gapic::Rest::GrpcTranscoder.new
2727
+ .with_bindings(
2728
+ uri_method: :patch,
2729
+ uri_template: "/v1/{settings.name}",
2730
+ body: "settings",
2731
+ matches: [
2732
+ ["settings.name", %r{^projects/[^/]+/locations/[^/]+/settings/?$}, false]
2733
+ ]
2734
+ )
2735
+ transcoder.transcode request_pb
2736
+ end
2737
+
2738
+ ##
2739
+ # @private
2740
+ #
2741
+ # GRPC transcoding helper method for the create_report_config REST call
2742
+ #
2743
+ # @param request_pb [::Google::Cloud::MigrationCenter::V1::CreateReportConfigRequest]
2744
+ # A request object representing the call parameters. Required.
2745
+ # @return [Array(String, [String, nil], Hash{String => String})]
2746
+ # Uri, Body, Query string parameters
2747
+ def self.transcode_create_report_config_request request_pb
2748
+ transcoder = Gapic::Rest::GrpcTranscoder.new
2749
+ .with_bindings(
2750
+ uri_method: :post,
2751
+ uri_template: "/v1/{parent}/reportConfigs",
2752
+ body: "report_config",
2753
+ matches: [
2754
+ ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
2755
+ ]
2756
+ )
2757
+ transcoder.transcode request_pb
2758
+ end
2759
+
2760
+ ##
2761
+ # @private
2762
+ #
2763
+ # GRPC transcoding helper method for the get_report_config REST call
2764
+ #
2765
+ # @param request_pb [::Google::Cloud::MigrationCenter::V1::GetReportConfigRequest]
2766
+ # A request object representing the call parameters. Required.
2767
+ # @return [Array(String, [String, nil], Hash{String => String})]
2768
+ # Uri, Body, Query string parameters
2769
+ def self.transcode_get_report_config_request request_pb
2770
+ transcoder = Gapic::Rest::GrpcTranscoder.new
2771
+ .with_bindings(
2772
+ uri_method: :get,
2773
+ uri_template: "/v1/{name}",
2774
+ matches: [
2775
+ ["name", %r{^projects/[^/]+/locations/[^/]+/reportConfigs/[^/]+/?$}, false]
2776
+ ]
2777
+ )
2778
+ transcoder.transcode request_pb
2779
+ end
2780
+
2781
+ ##
2782
+ # @private
2783
+ #
2784
+ # GRPC transcoding helper method for the list_report_configs REST call
2785
+ #
2786
+ # @param request_pb [::Google::Cloud::MigrationCenter::V1::ListReportConfigsRequest]
2787
+ # A request object representing the call parameters. Required.
2788
+ # @return [Array(String, [String, nil], Hash{String => String})]
2789
+ # Uri, Body, Query string parameters
2790
+ def self.transcode_list_report_configs_request request_pb
2791
+ transcoder = Gapic::Rest::GrpcTranscoder.new
2792
+ .with_bindings(
2793
+ uri_method: :get,
2794
+ uri_template: "/v1/{parent}/reportConfigs",
2795
+ matches: [
2796
+ ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
2797
+ ]
2798
+ )
2799
+ transcoder.transcode request_pb
2800
+ end
2801
+
2802
+ ##
2803
+ # @private
2804
+ #
2805
+ # GRPC transcoding helper method for the delete_report_config REST call
2806
+ #
2807
+ # @param request_pb [::Google::Cloud::MigrationCenter::V1::DeleteReportConfigRequest]
2808
+ # A request object representing the call parameters. Required.
2809
+ # @return [Array(String, [String, nil], Hash{String => String})]
2810
+ # Uri, Body, Query string parameters
2811
+ def self.transcode_delete_report_config_request request_pb
2812
+ transcoder = Gapic::Rest::GrpcTranscoder.new
2813
+ .with_bindings(
2814
+ uri_method: :delete,
2815
+ uri_template: "/v1/{name}",
2816
+ matches: [
2817
+ ["name", %r{^projects/[^/]+/locations/[^/]+/reportConfigs/[^/]+/?$}, false]
2818
+ ]
2819
+ )
2820
+ transcoder.transcode request_pb
2821
+ end
2822
+
2823
+ ##
2824
+ # @private
2825
+ #
2826
+ # GRPC transcoding helper method for the create_report REST call
2827
+ #
2828
+ # @param request_pb [::Google::Cloud::MigrationCenter::V1::CreateReportRequest]
2829
+ # A request object representing the call parameters. Required.
2830
+ # @return [Array(String, [String, nil], Hash{String => String})]
2831
+ # Uri, Body, Query string parameters
2832
+ def self.transcode_create_report_request request_pb
2833
+ transcoder = Gapic::Rest::GrpcTranscoder.new
2834
+ .with_bindings(
2835
+ uri_method: :post,
2836
+ uri_template: "/v1/{parent}/reports",
2837
+ body: "report",
2838
+ matches: [
2839
+ ["parent", %r{^projects/[^/]+/locations/[^/]+/reportConfigs/[^/]+/?$}, false]
2840
+ ]
2841
+ )
2842
+ transcoder.transcode request_pb
2843
+ end
2844
+
2845
+ ##
2846
+ # @private
2847
+ #
2848
+ # GRPC transcoding helper method for the get_report REST call
2849
+ #
2850
+ # @param request_pb [::Google::Cloud::MigrationCenter::V1::GetReportRequest]
2851
+ # A request object representing the call parameters. Required.
2852
+ # @return [Array(String, [String, nil], Hash{String => String})]
2853
+ # Uri, Body, Query string parameters
2854
+ def self.transcode_get_report_request request_pb
2855
+ transcoder = Gapic::Rest::GrpcTranscoder.new
2856
+ .with_bindings(
2857
+ uri_method: :get,
2858
+ uri_template: "/v1/{name}",
2859
+ matches: [
2860
+ ["name", %r{^projects/[^/]+/locations/[^/]+/reportConfigs/[^/]+/reports/[^/]+/?$}, false]
2861
+ ]
2862
+ )
2863
+ transcoder.transcode request_pb
2864
+ end
2865
+
2866
+ ##
2867
+ # @private
2868
+ #
2869
+ # GRPC transcoding helper method for the list_reports REST call
2870
+ #
2871
+ # @param request_pb [::Google::Cloud::MigrationCenter::V1::ListReportsRequest]
2872
+ # A request object representing the call parameters. Required.
2873
+ # @return [Array(String, [String, nil], Hash{String => String})]
2874
+ # Uri, Body, Query string parameters
2875
+ def self.transcode_list_reports_request request_pb
2876
+ transcoder = Gapic::Rest::GrpcTranscoder.new
2877
+ .with_bindings(
2878
+ uri_method: :get,
2879
+ uri_template: "/v1/{parent}/reports",
2880
+ matches: [
2881
+ ["parent", %r{^projects/[^/]+/locations/[^/]+/reportConfigs/[^/]+/?$}, false]
2882
+ ]
2883
+ )
2884
+ transcoder.transcode request_pb
2885
+ end
2886
+
2887
+ ##
2888
+ # @private
2889
+ #
2890
+ # GRPC transcoding helper method for the delete_report REST call
2891
+ #
2892
+ # @param request_pb [::Google::Cloud::MigrationCenter::V1::DeleteReportRequest]
2893
+ # A request object representing the call parameters. Required.
2894
+ # @return [Array(String, [String, nil], Hash{String => String})]
2895
+ # Uri, Body, Query string parameters
2896
+ def self.transcode_delete_report_request request_pb
2897
+ transcoder = Gapic::Rest::GrpcTranscoder.new
2898
+ .with_bindings(
2899
+ uri_method: :delete,
2900
+ uri_template: "/v1/{name}",
2901
+ matches: [
2902
+ ["name", %r{^projects/[^/]+/locations/[^/]+/reportConfigs/[^/]+/reports/[^/]+/?$}, false]
2903
+ ]
2904
+ )
2905
+ transcoder.transcode request_pb
2906
+ end
2907
+ end
2908
+ end
2909
+ end
2910
+ end
2911
+ end
2912
+ end
2913
+ end