google-cloud-api_hub-v1 0.5.0 → 0.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (56) hide show
  1. checksums.yaml +4 -4
  2. data/lib/google/cloud/api_hub/v1/api_hub/paths.rb +21 -0
  3. data/lib/google/cloud/api_hub/v1/api_hub/rest/client.rb +497 -9
  4. data/lib/google/cloud/api_hub/v1/api_hub/rest/service_stub.rb +185 -0
  5. data/lib/google/cloud/api_hub/v1/api_hub_collect/credentials.rb +47 -0
  6. data/lib/google/cloud/api_hub/v1/api_hub_collect/paths.rb +218 -0
  7. data/lib/google/cloud/api_hub/v1/api_hub_collect/rest/client.rb +487 -0
  8. data/lib/google/cloud/api_hub/v1/api_hub_collect/rest/operations.rb +914 -0
  9. data/lib/google/cloud/api_hub/v1/api_hub_collect/rest/service_stub.rb +143 -0
  10. data/lib/google/cloud/api_hub/v1/api_hub_collect/rest.rb +56 -0
  11. data/lib/google/cloud/api_hub/v1/api_hub_collect.rb +50 -0
  12. data/lib/google/cloud/api_hub/v1/api_hub_curate/credentials.rb +47 -0
  13. data/lib/google/cloud/api_hub/v1/api_hub_curate/paths.rb +90 -0
  14. data/lib/google/cloud/api_hub/v1/api_hub_curate/rest/client.rb +869 -0
  15. data/lib/google/cloud/api_hub/v1/api_hub_curate/rest/service_stub.rb +388 -0
  16. data/lib/google/cloud/api_hub/v1/api_hub_curate/rest.rb +54 -0
  17. data/lib/google/cloud/api_hub/v1/api_hub_curate.rb +49 -0
  18. data/lib/google/cloud/api_hub/v1/api_hub_discovery/credentials.rb +47 -0
  19. data/lib/google/cloud/api_hub/v1/api_hub_discovery/paths.rb +90 -0
  20. data/lib/google/cloud/api_hub/v1/api_hub_discovery/rest/client.rb +750 -0
  21. data/lib/google/cloud/api_hub/v1/api_hub_discovery/rest/service_stub.rb +325 -0
  22. data/lib/google/cloud/api_hub/v1/api_hub_discovery/rest.rb +54 -0
  23. data/lib/google/cloud/api_hub/v1/api_hub_discovery.rb +49 -0
  24. data/lib/google/cloud/api_hub/v1/api_hub_plugin/paths.rb +74 -0
  25. data/lib/google/cloud/api_hub/v1/api_hub_plugin/rest/client.rb +1265 -98
  26. data/lib/google/cloud/api_hub/v1/api_hub_plugin/rest/operations.rb +914 -0
  27. data/lib/google/cloud/api_hub/v1/api_hub_plugin/rest/service_stub.rb +677 -0
  28. data/lib/google/cloud/api_hub/v1/api_hub_plugin/rest.rb +1 -0
  29. data/lib/google/cloud/api_hub/v1/bindings_override.rb +2 -29
  30. data/lib/google/cloud/api_hub/v1/provisioning/rest/client.rb +96 -0
  31. data/lib/google/cloud/api_hub/v1/provisioning/rest/service_stub.rb +61 -0
  32. data/lib/google/cloud/api_hub/v1/rest.rb +3 -0
  33. data/lib/google/cloud/api_hub/v1/version.rb +1 -1
  34. data/lib/google/cloud/api_hub/v1.rb +3 -0
  35. data/lib/google/cloud/apihub/v1/apihub_service_pb.rb +4 -1
  36. data/lib/google/cloud/apihub/v1/apihub_service_services_pb.rb +35 -2
  37. data/lib/google/cloud/apihub/v1/collect_service_pb.rb +60 -0
  38. data/lib/google/cloud/apihub/v1/collect_service_services_pb.rb +47 -0
  39. data/lib/google/cloud/apihub/v1/common_fields_pb.rb +34 -1
  40. data/lib/google/cloud/apihub/v1/curate_service_pb.rb +63 -0
  41. data/lib/google/cloud/apihub/v1/curate_service_services_pb.rb +64 -0
  42. data/lib/google/cloud/apihub/v1/discovery_service_pb.rb +54 -0
  43. data/lib/google/cloud/apihub/v1/discovery_service_services_pb.rb +55 -0
  44. data/lib/google/cloud/apihub/v1/plugin_service_pb.rb +44 -1
  45. data/lib/google/cloud/apihub/v1/plugin_service_services_pb.rb +43 -1
  46. data/lib/google/cloud/apihub/v1/provisioning_service_pb.rb +3 -1
  47. data/lib/google/cloud/apihub/v1/provisioning_service_services_pb.rb +2 -0
  48. data/proto_docs/google/cloud/apihub/v1/apihub_service.rb +251 -15
  49. data/proto_docs/google/cloud/apihub/v1/collect_service.rb +188 -0
  50. data/proto_docs/google/cloud/apihub/v1/common_fields.rb +819 -28
  51. data/proto_docs/google/cloud/apihub/v1/curate_service.rb +268 -0
  52. data/proto_docs/google/cloud/apihub/v1/discovery_service.rb +124 -0
  53. data/proto_docs/google/cloud/apihub/v1/linting_service.rb +10 -4
  54. data/proto_docs/google/cloud/apihub/v1/plugin_service.rb +799 -1
  55. data/proto_docs/google/cloud/apihub/v1/provisioning_service.rb +13 -0
  56. metadata +33 -4
@@ -193,6 +193,446 @@ module Google
193
193
  end
194
194
  end
195
195
 
196
+ ##
197
+ # Baseline implementation for the create_plugin REST call
198
+ #
199
+ # @param request_pb [::Google::Cloud::ApiHub::V1::CreatePluginRequest]
200
+ # A request object representing the call parameters. Required.
201
+ # @param options [::Gapic::CallOptions]
202
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
203
+ #
204
+ # @yield [result, operation] Access the result along with the TransportOperation object
205
+ # @yieldparam result [::Google::Cloud::ApiHub::V1::Plugin]
206
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
207
+ #
208
+ # @return [::Google::Cloud::ApiHub::V1::Plugin]
209
+ # A result object deserialized from the server's reply
210
+ def create_plugin request_pb, options = nil
211
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
212
+
213
+ verb, uri, query_string_params, body = ServiceStub.transcode_create_plugin_request request_pb
214
+ query_string_params = if query_string_params.any?
215
+ query_string_params.to_h { |p| p.split "=", 2 }
216
+ else
217
+ {}
218
+ end
219
+
220
+ response = @client_stub.make_http_request(
221
+ verb,
222
+ uri: uri,
223
+ body: body || "",
224
+ params: query_string_params,
225
+ method_name: "create_plugin",
226
+ options: options
227
+ )
228
+ operation = ::Gapic::Rest::TransportOperation.new response
229
+ result = ::Google::Cloud::ApiHub::V1::Plugin.decode_json response.body, ignore_unknown_fields: true
230
+ catch :response do
231
+ yield result, operation if block_given?
232
+ result
233
+ end
234
+ end
235
+
236
+ ##
237
+ # Baseline implementation for the list_plugins REST call
238
+ #
239
+ # @param request_pb [::Google::Cloud::ApiHub::V1::ListPluginsRequest]
240
+ # A request object representing the call parameters. Required.
241
+ # @param options [::Gapic::CallOptions]
242
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
243
+ #
244
+ # @yield [result, operation] Access the result along with the TransportOperation object
245
+ # @yieldparam result [::Google::Cloud::ApiHub::V1::ListPluginsResponse]
246
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
247
+ #
248
+ # @return [::Google::Cloud::ApiHub::V1::ListPluginsResponse]
249
+ # A result object deserialized from the server's reply
250
+ def list_plugins request_pb, options = nil
251
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
252
+
253
+ verb, uri, query_string_params, body = ServiceStub.transcode_list_plugins_request request_pb
254
+ query_string_params = if query_string_params.any?
255
+ query_string_params.to_h { |p| p.split "=", 2 }
256
+ else
257
+ {}
258
+ end
259
+
260
+ response = @client_stub.make_http_request(
261
+ verb,
262
+ uri: uri,
263
+ body: body || "",
264
+ params: query_string_params,
265
+ method_name: "list_plugins",
266
+ options: options
267
+ )
268
+ operation = ::Gapic::Rest::TransportOperation.new response
269
+ result = ::Google::Cloud::ApiHub::V1::ListPluginsResponse.decode_json response.body, ignore_unknown_fields: true
270
+ catch :response do
271
+ yield result, operation if block_given?
272
+ result
273
+ end
274
+ end
275
+
276
+ ##
277
+ # Baseline implementation for the delete_plugin REST call
278
+ #
279
+ # @param request_pb [::Google::Cloud::ApiHub::V1::DeletePluginRequest]
280
+ # A request object representing the call parameters. Required.
281
+ # @param options [::Gapic::CallOptions]
282
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
283
+ #
284
+ # @yield [result, operation] Access the result along with the TransportOperation object
285
+ # @yieldparam result [::Google::Longrunning::Operation]
286
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
287
+ #
288
+ # @return [::Google::Longrunning::Operation]
289
+ # A result object deserialized from the server's reply
290
+ def delete_plugin request_pb, options = nil
291
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
292
+
293
+ verb, uri, query_string_params, body = ServiceStub.transcode_delete_plugin_request request_pb
294
+ query_string_params = if query_string_params.any?
295
+ query_string_params.to_h { |p| p.split "=", 2 }
296
+ else
297
+ {}
298
+ end
299
+
300
+ response = @client_stub.make_http_request(
301
+ verb,
302
+ uri: uri,
303
+ body: body || "",
304
+ params: query_string_params,
305
+ method_name: "delete_plugin",
306
+ options: options
307
+ )
308
+ operation = ::Gapic::Rest::TransportOperation.new response
309
+ result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
310
+ catch :response do
311
+ yield result, operation if block_given?
312
+ result
313
+ end
314
+ end
315
+
316
+ ##
317
+ # Baseline implementation for the create_plugin_instance REST call
318
+ #
319
+ # @param request_pb [::Google::Cloud::ApiHub::V1::CreatePluginInstanceRequest]
320
+ # A request object representing the call parameters. Required.
321
+ # @param options [::Gapic::CallOptions]
322
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
323
+ #
324
+ # @yield [result, operation] Access the result along with the TransportOperation object
325
+ # @yieldparam result [::Google::Longrunning::Operation]
326
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
327
+ #
328
+ # @return [::Google::Longrunning::Operation]
329
+ # A result object deserialized from the server's reply
330
+ def create_plugin_instance request_pb, options = nil
331
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
332
+
333
+ verb, uri, query_string_params, body = ServiceStub.transcode_create_plugin_instance_request request_pb
334
+ query_string_params = if query_string_params.any?
335
+ query_string_params.to_h { |p| p.split "=", 2 }
336
+ else
337
+ {}
338
+ end
339
+
340
+ response = @client_stub.make_http_request(
341
+ verb,
342
+ uri: uri,
343
+ body: body || "",
344
+ params: query_string_params,
345
+ method_name: "create_plugin_instance",
346
+ options: options
347
+ )
348
+ operation = ::Gapic::Rest::TransportOperation.new response
349
+ result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
350
+ catch :response do
351
+ yield result, operation if block_given?
352
+ result
353
+ end
354
+ end
355
+
356
+ ##
357
+ # Baseline implementation for the execute_plugin_instance_action REST call
358
+ #
359
+ # @param request_pb [::Google::Cloud::ApiHub::V1::ExecutePluginInstanceActionRequest]
360
+ # A request object representing the call parameters. Required.
361
+ # @param options [::Gapic::CallOptions]
362
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
363
+ #
364
+ # @yield [result, operation] Access the result along with the TransportOperation object
365
+ # @yieldparam result [::Google::Longrunning::Operation]
366
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
367
+ #
368
+ # @return [::Google::Longrunning::Operation]
369
+ # A result object deserialized from the server's reply
370
+ def execute_plugin_instance_action request_pb, options = nil
371
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
372
+
373
+ verb, uri, query_string_params, body = ServiceStub.transcode_execute_plugin_instance_action_request request_pb
374
+ query_string_params = if query_string_params.any?
375
+ query_string_params.to_h { |p| p.split "=", 2 }
376
+ else
377
+ {}
378
+ end
379
+
380
+ response = @client_stub.make_http_request(
381
+ verb,
382
+ uri: uri,
383
+ body: body || "",
384
+ params: query_string_params,
385
+ method_name: "execute_plugin_instance_action",
386
+ options: options
387
+ )
388
+ operation = ::Gapic::Rest::TransportOperation.new response
389
+ result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
390
+ catch :response do
391
+ yield result, operation if block_given?
392
+ result
393
+ end
394
+ end
395
+
396
+ ##
397
+ # Baseline implementation for the get_plugin_instance REST call
398
+ #
399
+ # @param request_pb [::Google::Cloud::ApiHub::V1::GetPluginInstanceRequest]
400
+ # A request object representing the call parameters. Required.
401
+ # @param options [::Gapic::CallOptions]
402
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
403
+ #
404
+ # @yield [result, operation] Access the result along with the TransportOperation object
405
+ # @yieldparam result [::Google::Cloud::ApiHub::V1::PluginInstance]
406
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
407
+ #
408
+ # @return [::Google::Cloud::ApiHub::V1::PluginInstance]
409
+ # A result object deserialized from the server's reply
410
+ def get_plugin_instance request_pb, options = nil
411
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
412
+
413
+ verb, uri, query_string_params, body = ServiceStub.transcode_get_plugin_instance_request request_pb
414
+ query_string_params = if query_string_params.any?
415
+ query_string_params.to_h { |p| p.split "=", 2 }
416
+ else
417
+ {}
418
+ end
419
+
420
+ response = @client_stub.make_http_request(
421
+ verb,
422
+ uri: uri,
423
+ body: body || "",
424
+ params: query_string_params,
425
+ method_name: "get_plugin_instance",
426
+ options: options
427
+ )
428
+ operation = ::Gapic::Rest::TransportOperation.new response
429
+ result = ::Google::Cloud::ApiHub::V1::PluginInstance.decode_json response.body, ignore_unknown_fields: true
430
+ catch :response do
431
+ yield result, operation if block_given?
432
+ result
433
+ end
434
+ end
435
+
436
+ ##
437
+ # Baseline implementation for the list_plugin_instances REST call
438
+ #
439
+ # @param request_pb [::Google::Cloud::ApiHub::V1::ListPluginInstancesRequest]
440
+ # A request object representing the call parameters. Required.
441
+ # @param options [::Gapic::CallOptions]
442
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
443
+ #
444
+ # @yield [result, operation] Access the result along with the TransportOperation object
445
+ # @yieldparam result [::Google::Cloud::ApiHub::V1::ListPluginInstancesResponse]
446
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
447
+ #
448
+ # @return [::Google::Cloud::ApiHub::V1::ListPluginInstancesResponse]
449
+ # A result object deserialized from the server's reply
450
+ def list_plugin_instances request_pb, options = nil
451
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
452
+
453
+ verb, uri, query_string_params, body = ServiceStub.transcode_list_plugin_instances_request request_pb
454
+ query_string_params = if query_string_params.any?
455
+ query_string_params.to_h { |p| p.split "=", 2 }
456
+ else
457
+ {}
458
+ end
459
+
460
+ response = @client_stub.make_http_request(
461
+ verb,
462
+ uri: uri,
463
+ body: body || "",
464
+ params: query_string_params,
465
+ method_name: "list_plugin_instances",
466
+ options: options
467
+ )
468
+ operation = ::Gapic::Rest::TransportOperation.new response
469
+ result = ::Google::Cloud::ApiHub::V1::ListPluginInstancesResponse.decode_json response.body, ignore_unknown_fields: true
470
+ catch :response do
471
+ yield result, operation if block_given?
472
+ result
473
+ end
474
+ end
475
+
476
+ ##
477
+ # Baseline implementation for the enable_plugin_instance_action REST call
478
+ #
479
+ # @param request_pb [::Google::Cloud::ApiHub::V1::EnablePluginInstanceActionRequest]
480
+ # A request object representing the call parameters. Required.
481
+ # @param options [::Gapic::CallOptions]
482
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
483
+ #
484
+ # @yield [result, operation] Access the result along with the TransportOperation object
485
+ # @yieldparam result [::Google::Longrunning::Operation]
486
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
487
+ #
488
+ # @return [::Google::Longrunning::Operation]
489
+ # A result object deserialized from the server's reply
490
+ def enable_plugin_instance_action request_pb, options = nil
491
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
492
+
493
+ verb, uri, query_string_params, body = ServiceStub.transcode_enable_plugin_instance_action_request request_pb
494
+ query_string_params = if query_string_params.any?
495
+ query_string_params.to_h { |p| p.split "=", 2 }
496
+ else
497
+ {}
498
+ end
499
+
500
+ response = @client_stub.make_http_request(
501
+ verb,
502
+ uri: uri,
503
+ body: body || "",
504
+ params: query_string_params,
505
+ method_name: "enable_plugin_instance_action",
506
+ options: options
507
+ )
508
+ operation = ::Gapic::Rest::TransportOperation.new response
509
+ result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
510
+ catch :response do
511
+ yield result, operation if block_given?
512
+ result
513
+ end
514
+ end
515
+
516
+ ##
517
+ # Baseline implementation for the disable_plugin_instance_action REST call
518
+ #
519
+ # @param request_pb [::Google::Cloud::ApiHub::V1::DisablePluginInstanceActionRequest]
520
+ # A request object representing the call parameters. Required.
521
+ # @param options [::Gapic::CallOptions]
522
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
523
+ #
524
+ # @yield [result, operation] Access the result along with the TransportOperation object
525
+ # @yieldparam result [::Google::Longrunning::Operation]
526
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
527
+ #
528
+ # @return [::Google::Longrunning::Operation]
529
+ # A result object deserialized from the server's reply
530
+ def disable_plugin_instance_action request_pb, options = nil
531
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
532
+
533
+ verb, uri, query_string_params, body = ServiceStub.transcode_disable_plugin_instance_action_request request_pb
534
+ query_string_params = if query_string_params.any?
535
+ query_string_params.to_h { |p| p.split "=", 2 }
536
+ else
537
+ {}
538
+ end
539
+
540
+ response = @client_stub.make_http_request(
541
+ verb,
542
+ uri: uri,
543
+ body: body || "",
544
+ params: query_string_params,
545
+ method_name: "disable_plugin_instance_action",
546
+ options: options
547
+ )
548
+ operation = ::Gapic::Rest::TransportOperation.new response
549
+ result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
550
+ catch :response do
551
+ yield result, operation if block_given?
552
+ result
553
+ end
554
+ end
555
+
556
+ ##
557
+ # Baseline implementation for the update_plugin_instance REST call
558
+ #
559
+ # @param request_pb [::Google::Cloud::ApiHub::V1::UpdatePluginInstanceRequest]
560
+ # A request object representing the call parameters. Required.
561
+ # @param options [::Gapic::CallOptions]
562
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
563
+ #
564
+ # @yield [result, operation] Access the result along with the TransportOperation object
565
+ # @yieldparam result [::Google::Cloud::ApiHub::V1::PluginInstance]
566
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
567
+ #
568
+ # @return [::Google::Cloud::ApiHub::V1::PluginInstance]
569
+ # A result object deserialized from the server's reply
570
+ def update_plugin_instance request_pb, options = nil
571
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
572
+
573
+ verb, uri, query_string_params, body = ServiceStub.transcode_update_plugin_instance_request request_pb
574
+ query_string_params = if query_string_params.any?
575
+ query_string_params.to_h { |p| p.split "=", 2 }
576
+ else
577
+ {}
578
+ end
579
+
580
+ response = @client_stub.make_http_request(
581
+ verb,
582
+ uri: uri,
583
+ body: body || "",
584
+ params: query_string_params,
585
+ method_name: "update_plugin_instance",
586
+ options: options
587
+ )
588
+ operation = ::Gapic::Rest::TransportOperation.new response
589
+ result = ::Google::Cloud::ApiHub::V1::PluginInstance.decode_json response.body, ignore_unknown_fields: true
590
+ catch :response do
591
+ yield result, operation if block_given?
592
+ result
593
+ end
594
+ end
595
+
596
+ ##
597
+ # Baseline implementation for the delete_plugin_instance REST call
598
+ #
599
+ # @param request_pb [::Google::Cloud::ApiHub::V1::DeletePluginInstanceRequest]
600
+ # A request object representing the call parameters. Required.
601
+ # @param options [::Gapic::CallOptions]
602
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
603
+ #
604
+ # @yield [result, operation] Access the result along with the TransportOperation object
605
+ # @yieldparam result [::Google::Longrunning::Operation]
606
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
607
+ #
608
+ # @return [::Google::Longrunning::Operation]
609
+ # A result object deserialized from the server's reply
610
+ def delete_plugin_instance request_pb, options = nil
611
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
612
+
613
+ verb, uri, query_string_params, body = ServiceStub.transcode_delete_plugin_instance_request request_pb
614
+ query_string_params = if query_string_params.any?
615
+ query_string_params.to_h { |p| p.split "=", 2 }
616
+ else
617
+ {}
618
+ end
619
+
620
+ response = @client_stub.make_http_request(
621
+ verb,
622
+ uri: uri,
623
+ body: body || "",
624
+ params: query_string_params,
625
+ method_name: "delete_plugin_instance",
626
+ options: options
627
+ )
628
+ operation = ::Gapic::Rest::TransportOperation.new response
629
+ result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
630
+ catch :response do
631
+ yield result, operation if block_given?
632
+ result
633
+ end
634
+ end
635
+
196
636
  ##
197
637
  # @private
198
638
  #
@@ -257,6 +697,243 @@ module Google
257
697
  )
258
698
  transcoder.transcode request_pb
259
699
  end
700
+
701
+ ##
702
+ # @private
703
+ #
704
+ # GRPC transcoding helper method for the create_plugin REST call
705
+ #
706
+ # @param request_pb [::Google::Cloud::ApiHub::V1::CreatePluginRequest]
707
+ # A request object representing the call parameters. Required.
708
+ # @return [Array(String, [String, nil], Hash{String => String})]
709
+ # Uri, Body, Query string parameters
710
+ def self.transcode_create_plugin_request request_pb
711
+ transcoder = Gapic::Rest::GrpcTranscoder.new
712
+ .with_bindings(
713
+ uri_method: :post,
714
+ uri_template: "/v1/{parent}/plugins",
715
+ body: "plugin",
716
+ matches: [
717
+ ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
718
+ ]
719
+ )
720
+ transcoder.transcode request_pb
721
+ end
722
+
723
+ ##
724
+ # @private
725
+ #
726
+ # GRPC transcoding helper method for the list_plugins REST call
727
+ #
728
+ # @param request_pb [::Google::Cloud::ApiHub::V1::ListPluginsRequest]
729
+ # A request object representing the call parameters. Required.
730
+ # @return [Array(String, [String, nil], Hash{String => String})]
731
+ # Uri, Body, Query string parameters
732
+ def self.transcode_list_plugins_request request_pb
733
+ transcoder = Gapic::Rest::GrpcTranscoder.new
734
+ .with_bindings(
735
+ uri_method: :get,
736
+ uri_template: "/v1/{parent}/plugins",
737
+ matches: [
738
+ ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
739
+ ]
740
+ )
741
+ transcoder.transcode request_pb
742
+ end
743
+
744
+ ##
745
+ # @private
746
+ #
747
+ # GRPC transcoding helper method for the delete_plugin REST call
748
+ #
749
+ # @param request_pb [::Google::Cloud::ApiHub::V1::DeletePluginRequest]
750
+ # A request object representing the call parameters. Required.
751
+ # @return [Array(String, [String, nil], Hash{String => String})]
752
+ # Uri, Body, Query string parameters
753
+ def self.transcode_delete_plugin_request request_pb
754
+ transcoder = Gapic::Rest::GrpcTranscoder.new
755
+ .with_bindings(
756
+ uri_method: :delete,
757
+ uri_template: "/v1/{name}",
758
+ matches: [
759
+ ["name", %r{^projects/[^/]+/locations/[^/]+/plugins/[^/]+/?$}, false]
760
+ ]
761
+ )
762
+ transcoder.transcode request_pb
763
+ end
764
+
765
+ ##
766
+ # @private
767
+ #
768
+ # GRPC transcoding helper method for the create_plugin_instance REST call
769
+ #
770
+ # @param request_pb [::Google::Cloud::ApiHub::V1::CreatePluginInstanceRequest]
771
+ # A request object representing the call parameters. Required.
772
+ # @return [Array(String, [String, nil], Hash{String => String})]
773
+ # Uri, Body, Query string parameters
774
+ def self.transcode_create_plugin_instance_request request_pb
775
+ transcoder = Gapic::Rest::GrpcTranscoder.new
776
+ .with_bindings(
777
+ uri_method: :post,
778
+ uri_template: "/v1/{parent}/instances",
779
+ body: "plugin_instance",
780
+ matches: [
781
+ ["parent", %r{^projects/[^/]+/locations/[^/]+/plugins/[^/]+/?$}, false]
782
+ ]
783
+ )
784
+ transcoder.transcode request_pb
785
+ end
786
+
787
+ ##
788
+ # @private
789
+ #
790
+ # GRPC transcoding helper method for the execute_plugin_instance_action REST call
791
+ #
792
+ # @param request_pb [::Google::Cloud::ApiHub::V1::ExecutePluginInstanceActionRequest]
793
+ # A request object representing the call parameters. Required.
794
+ # @return [Array(String, [String, nil], Hash{String => String})]
795
+ # Uri, Body, Query string parameters
796
+ def self.transcode_execute_plugin_instance_action_request request_pb
797
+ transcoder = Gapic::Rest::GrpcTranscoder.new
798
+ .with_bindings(
799
+ uri_method: :post,
800
+ uri_template: "/v1/{name}:executeAction",
801
+ body: "*",
802
+ matches: [
803
+ ["name", %r{^projects/[^/]+/locations/[^/]+/plugins/[^/]+/instances/[^/]+/?$}, false]
804
+ ]
805
+ )
806
+ transcoder.transcode request_pb
807
+ end
808
+
809
+ ##
810
+ # @private
811
+ #
812
+ # GRPC transcoding helper method for the get_plugin_instance REST call
813
+ #
814
+ # @param request_pb [::Google::Cloud::ApiHub::V1::GetPluginInstanceRequest]
815
+ # A request object representing the call parameters. Required.
816
+ # @return [Array(String, [String, nil], Hash{String => String})]
817
+ # Uri, Body, Query string parameters
818
+ def self.transcode_get_plugin_instance_request request_pb
819
+ transcoder = Gapic::Rest::GrpcTranscoder.new
820
+ .with_bindings(
821
+ uri_method: :get,
822
+ uri_template: "/v1/{name}",
823
+ matches: [
824
+ ["name", %r{^projects/[^/]+/locations/[^/]+/plugins/[^/]+/instances/[^/]+/?$}, false]
825
+ ]
826
+ )
827
+ transcoder.transcode request_pb
828
+ end
829
+
830
+ ##
831
+ # @private
832
+ #
833
+ # GRPC transcoding helper method for the list_plugin_instances REST call
834
+ #
835
+ # @param request_pb [::Google::Cloud::ApiHub::V1::ListPluginInstancesRequest]
836
+ # A request object representing the call parameters. Required.
837
+ # @return [Array(String, [String, nil], Hash{String => String})]
838
+ # Uri, Body, Query string parameters
839
+ def self.transcode_list_plugin_instances_request request_pb
840
+ transcoder = Gapic::Rest::GrpcTranscoder.new
841
+ .with_bindings(
842
+ uri_method: :get,
843
+ uri_template: "/v1/{parent}/instances",
844
+ matches: [
845
+ ["parent", %r{^projects/[^/]+/locations/[^/]+/plugins/[^/]+/?$}, false]
846
+ ]
847
+ )
848
+ transcoder.transcode request_pb
849
+ end
850
+
851
+ ##
852
+ # @private
853
+ #
854
+ # GRPC transcoding helper method for the enable_plugin_instance_action REST call
855
+ #
856
+ # @param request_pb [::Google::Cloud::ApiHub::V1::EnablePluginInstanceActionRequest]
857
+ # A request object representing the call parameters. Required.
858
+ # @return [Array(String, [String, nil], Hash{String => String})]
859
+ # Uri, Body, Query string parameters
860
+ def self.transcode_enable_plugin_instance_action_request request_pb
861
+ transcoder = Gapic::Rest::GrpcTranscoder.new
862
+ .with_bindings(
863
+ uri_method: :post,
864
+ uri_template: "/v1/{name}:enableAction",
865
+ body: "*",
866
+ matches: [
867
+ ["name", %r{^projects/[^/]+/locations/[^/]+/plugins/[^/]+/instances/[^/]+/?$}, false]
868
+ ]
869
+ )
870
+ transcoder.transcode request_pb
871
+ end
872
+
873
+ ##
874
+ # @private
875
+ #
876
+ # GRPC transcoding helper method for the disable_plugin_instance_action REST call
877
+ #
878
+ # @param request_pb [::Google::Cloud::ApiHub::V1::DisablePluginInstanceActionRequest]
879
+ # A request object representing the call parameters. Required.
880
+ # @return [Array(String, [String, nil], Hash{String => String})]
881
+ # Uri, Body, Query string parameters
882
+ def self.transcode_disable_plugin_instance_action_request request_pb
883
+ transcoder = Gapic::Rest::GrpcTranscoder.new
884
+ .with_bindings(
885
+ uri_method: :post,
886
+ uri_template: "/v1/{name}:disableAction",
887
+ body: "*",
888
+ matches: [
889
+ ["name", %r{^projects/[^/]+/locations/[^/]+/plugins/[^/]+/instances/[^/]+/?$}, false]
890
+ ]
891
+ )
892
+ transcoder.transcode request_pb
893
+ end
894
+
895
+ ##
896
+ # @private
897
+ #
898
+ # GRPC transcoding helper method for the update_plugin_instance REST call
899
+ #
900
+ # @param request_pb [::Google::Cloud::ApiHub::V1::UpdatePluginInstanceRequest]
901
+ # A request object representing the call parameters. Required.
902
+ # @return [Array(String, [String, nil], Hash{String => String})]
903
+ # Uri, Body, Query string parameters
904
+ def self.transcode_update_plugin_instance_request request_pb
905
+ transcoder = Gapic::Rest::GrpcTranscoder.new
906
+ .with_bindings(
907
+ uri_method: :patch,
908
+ uri_template: "/v1/{plugin_instance.name}",
909
+ body: "plugin_instance",
910
+ matches: [
911
+ ["plugin_instance.name", %r{^projects/[^/]+/locations/[^/]+/plugins/[^/]+/instances/[^/]+/?$}, false]
912
+ ]
913
+ )
914
+ transcoder.transcode request_pb
915
+ end
916
+
917
+ ##
918
+ # @private
919
+ #
920
+ # GRPC transcoding helper method for the delete_plugin_instance REST call
921
+ #
922
+ # @param request_pb [::Google::Cloud::ApiHub::V1::DeletePluginInstanceRequest]
923
+ # A request object representing the call parameters. Required.
924
+ # @return [Array(String, [String, nil], Hash{String => String})]
925
+ # Uri, Body, Query string parameters
926
+ def self.transcode_delete_plugin_instance_request request_pb
927
+ transcoder = Gapic::Rest::GrpcTranscoder.new
928
+ .with_bindings(
929
+ uri_method: :delete,
930
+ uri_template: "/v1/{name}",
931
+ matches: [
932
+ ["name", %r{^projects/[^/]+/locations/[^/]+/plugins/[^/]+/instances/[^/]+/?$}, false]
933
+ ]
934
+ )
935
+ transcoder.transcode request_pb
936
+ end
260
937
  end
261
938
  end
262
939
  end