google-cloud-orchestration-airflow-service-v1 0.9.2 → 0.11.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.
@@ -367,6 +367,424 @@ module Google
367
367
  result
368
368
  end
369
369
 
370
+ ##
371
+ # Baseline implementation for the list_workloads REST call
372
+ #
373
+ # @param request_pb [::Google::Cloud::Orchestration::Airflow::Service::V1::ListWorkloadsRequest]
374
+ # A request object representing the call parameters. Required.
375
+ # @param options [::Gapic::CallOptions]
376
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
377
+ #
378
+ # @yield [result, operation] Access the result along with the TransportOperation object
379
+ # @yieldparam result [::Google::Cloud::Orchestration::Airflow::Service::V1::ListWorkloadsResponse]
380
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
381
+ #
382
+ # @return [::Google::Cloud::Orchestration::Airflow::Service::V1::ListWorkloadsResponse]
383
+ # A result object deserialized from the server's reply
384
+ def list_workloads request_pb, options = nil
385
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
386
+
387
+ verb, uri, query_string_params, body = ServiceStub.transcode_list_workloads_request request_pb
388
+ query_string_params = if query_string_params.any?
389
+ query_string_params.to_h { |p| p.split "=", 2 }
390
+ else
391
+ {}
392
+ end
393
+
394
+ response = @client_stub.make_http_request(
395
+ verb,
396
+ uri: uri,
397
+ body: body || "",
398
+ params: query_string_params,
399
+ options: options
400
+ )
401
+ operation = ::Gapic::Rest::TransportOperation.new response
402
+ result = ::Google::Cloud::Orchestration::Airflow::Service::V1::ListWorkloadsResponse.decode_json response.body, ignore_unknown_fields: true
403
+
404
+ yield result, operation if block_given?
405
+ result
406
+ end
407
+
408
+ ##
409
+ # Baseline implementation for the create_user_workloads_secret REST call
410
+ #
411
+ # @param request_pb [::Google::Cloud::Orchestration::Airflow::Service::V1::CreateUserWorkloadsSecretRequest]
412
+ # A request object representing the call parameters. Required.
413
+ # @param options [::Gapic::CallOptions]
414
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
415
+ #
416
+ # @yield [result, operation] Access the result along with the TransportOperation object
417
+ # @yieldparam result [::Google::Cloud::Orchestration::Airflow::Service::V1::UserWorkloadsSecret]
418
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
419
+ #
420
+ # @return [::Google::Cloud::Orchestration::Airflow::Service::V1::UserWorkloadsSecret]
421
+ # A result object deserialized from the server's reply
422
+ def create_user_workloads_secret request_pb, options = nil
423
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
424
+
425
+ verb, uri, query_string_params, body = ServiceStub.transcode_create_user_workloads_secret_request request_pb
426
+ query_string_params = if query_string_params.any?
427
+ query_string_params.to_h { |p| p.split "=", 2 }
428
+ else
429
+ {}
430
+ end
431
+
432
+ response = @client_stub.make_http_request(
433
+ verb,
434
+ uri: uri,
435
+ body: body || "",
436
+ params: query_string_params,
437
+ options: options
438
+ )
439
+ operation = ::Gapic::Rest::TransportOperation.new response
440
+ result = ::Google::Cloud::Orchestration::Airflow::Service::V1::UserWorkloadsSecret.decode_json response.body, ignore_unknown_fields: true
441
+
442
+ yield result, operation if block_given?
443
+ result
444
+ end
445
+
446
+ ##
447
+ # Baseline implementation for the get_user_workloads_secret REST call
448
+ #
449
+ # @param request_pb [::Google::Cloud::Orchestration::Airflow::Service::V1::GetUserWorkloadsSecretRequest]
450
+ # A request object representing the call parameters. Required.
451
+ # @param options [::Gapic::CallOptions]
452
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
453
+ #
454
+ # @yield [result, operation] Access the result along with the TransportOperation object
455
+ # @yieldparam result [::Google::Cloud::Orchestration::Airflow::Service::V1::UserWorkloadsSecret]
456
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
457
+ #
458
+ # @return [::Google::Cloud::Orchestration::Airflow::Service::V1::UserWorkloadsSecret]
459
+ # A result object deserialized from the server's reply
460
+ def get_user_workloads_secret request_pb, options = nil
461
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
462
+
463
+ verb, uri, query_string_params, body = ServiceStub.transcode_get_user_workloads_secret_request request_pb
464
+ query_string_params = if query_string_params.any?
465
+ query_string_params.to_h { |p| p.split "=", 2 }
466
+ else
467
+ {}
468
+ end
469
+
470
+ response = @client_stub.make_http_request(
471
+ verb,
472
+ uri: uri,
473
+ body: body || "",
474
+ params: query_string_params,
475
+ options: options
476
+ )
477
+ operation = ::Gapic::Rest::TransportOperation.new response
478
+ result = ::Google::Cloud::Orchestration::Airflow::Service::V1::UserWorkloadsSecret.decode_json response.body, ignore_unknown_fields: true
479
+
480
+ yield result, operation if block_given?
481
+ result
482
+ end
483
+
484
+ ##
485
+ # Baseline implementation for the list_user_workloads_secrets REST call
486
+ #
487
+ # @param request_pb [::Google::Cloud::Orchestration::Airflow::Service::V1::ListUserWorkloadsSecretsRequest]
488
+ # A request object representing the call parameters. Required.
489
+ # @param options [::Gapic::CallOptions]
490
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
491
+ #
492
+ # @yield [result, operation] Access the result along with the TransportOperation object
493
+ # @yieldparam result [::Google::Cloud::Orchestration::Airflow::Service::V1::ListUserWorkloadsSecretsResponse]
494
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
495
+ #
496
+ # @return [::Google::Cloud::Orchestration::Airflow::Service::V1::ListUserWorkloadsSecretsResponse]
497
+ # A result object deserialized from the server's reply
498
+ def list_user_workloads_secrets request_pb, options = nil
499
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
500
+
501
+ verb, uri, query_string_params, body = ServiceStub.transcode_list_user_workloads_secrets_request request_pb
502
+ query_string_params = if query_string_params.any?
503
+ query_string_params.to_h { |p| p.split "=", 2 }
504
+ else
505
+ {}
506
+ end
507
+
508
+ response = @client_stub.make_http_request(
509
+ verb,
510
+ uri: uri,
511
+ body: body || "",
512
+ params: query_string_params,
513
+ options: options
514
+ )
515
+ operation = ::Gapic::Rest::TransportOperation.new response
516
+ result = ::Google::Cloud::Orchestration::Airflow::Service::V1::ListUserWorkloadsSecretsResponse.decode_json response.body, ignore_unknown_fields: true
517
+
518
+ yield result, operation if block_given?
519
+ result
520
+ end
521
+
522
+ ##
523
+ # Baseline implementation for the update_user_workloads_secret REST call
524
+ #
525
+ # @param request_pb [::Google::Cloud::Orchestration::Airflow::Service::V1::UpdateUserWorkloadsSecretRequest]
526
+ # A request object representing the call parameters. Required.
527
+ # @param options [::Gapic::CallOptions]
528
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
529
+ #
530
+ # @yield [result, operation] Access the result along with the TransportOperation object
531
+ # @yieldparam result [::Google::Cloud::Orchestration::Airflow::Service::V1::UserWorkloadsSecret]
532
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
533
+ #
534
+ # @return [::Google::Cloud::Orchestration::Airflow::Service::V1::UserWorkloadsSecret]
535
+ # A result object deserialized from the server's reply
536
+ def update_user_workloads_secret request_pb, options = nil
537
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
538
+
539
+ verb, uri, query_string_params, body = ServiceStub.transcode_update_user_workloads_secret_request request_pb
540
+ query_string_params = if query_string_params.any?
541
+ query_string_params.to_h { |p| p.split "=", 2 }
542
+ else
543
+ {}
544
+ end
545
+
546
+ response = @client_stub.make_http_request(
547
+ verb,
548
+ uri: uri,
549
+ body: body || "",
550
+ params: query_string_params,
551
+ options: options
552
+ )
553
+ operation = ::Gapic::Rest::TransportOperation.new response
554
+ result = ::Google::Cloud::Orchestration::Airflow::Service::V1::UserWorkloadsSecret.decode_json response.body, ignore_unknown_fields: true
555
+
556
+ yield result, operation if block_given?
557
+ result
558
+ end
559
+
560
+ ##
561
+ # Baseline implementation for the delete_user_workloads_secret REST call
562
+ #
563
+ # @param request_pb [::Google::Cloud::Orchestration::Airflow::Service::V1::DeleteUserWorkloadsSecretRequest]
564
+ # A request object representing the call parameters. Required.
565
+ # @param options [::Gapic::CallOptions]
566
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
567
+ #
568
+ # @yield [result, operation] Access the result along with the TransportOperation object
569
+ # @yieldparam result [::Google::Protobuf::Empty]
570
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
571
+ #
572
+ # @return [::Google::Protobuf::Empty]
573
+ # A result object deserialized from the server's reply
574
+ def delete_user_workloads_secret request_pb, options = nil
575
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
576
+
577
+ verb, uri, query_string_params, body = ServiceStub.transcode_delete_user_workloads_secret_request request_pb
578
+ query_string_params = if query_string_params.any?
579
+ query_string_params.to_h { |p| p.split "=", 2 }
580
+ else
581
+ {}
582
+ end
583
+
584
+ response = @client_stub.make_http_request(
585
+ verb,
586
+ uri: uri,
587
+ body: body || "",
588
+ params: query_string_params,
589
+ options: options
590
+ )
591
+ operation = ::Gapic::Rest::TransportOperation.new response
592
+ result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true
593
+
594
+ yield result, operation if block_given?
595
+ result
596
+ end
597
+
598
+ ##
599
+ # Baseline implementation for the create_user_workloads_config_map REST call
600
+ #
601
+ # @param request_pb [::Google::Cloud::Orchestration::Airflow::Service::V1::CreateUserWorkloadsConfigMapRequest]
602
+ # A request object representing the call parameters. Required.
603
+ # @param options [::Gapic::CallOptions]
604
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
605
+ #
606
+ # @yield [result, operation] Access the result along with the TransportOperation object
607
+ # @yieldparam result [::Google::Cloud::Orchestration::Airflow::Service::V1::UserWorkloadsConfigMap]
608
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
609
+ #
610
+ # @return [::Google::Cloud::Orchestration::Airflow::Service::V1::UserWorkloadsConfigMap]
611
+ # A result object deserialized from the server's reply
612
+ def create_user_workloads_config_map request_pb, options = nil
613
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
614
+
615
+ verb, uri, query_string_params, body = ServiceStub.transcode_create_user_workloads_config_map_request request_pb
616
+ query_string_params = if query_string_params.any?
617
+ query_string_params.to_h { |p| p.split "=", 2 }
618
+ else
619
+ {}
620
+ end
621
+
622
+ response = @client_stub.make_http_request(
623
+ verb,
624
+ uri: uri,
625
+ body: body || "",
626
+ params: query_string_params,
627
+ options: options
628
+ )
629
+ operation = ::Gapic::Rest::TransportOperation.new response
630
+ result = ::Google::Cloud::Orchestration::Airflow::Service::V1::UserWorkloadsConfigMap.decode_json response.body, ignore_unknown_fields: true
631
+
632
+ yield result, operation if block_given?
633
+ result
634
+ end
635
+
636
+ ##
637
+ # Baseline implementation for the get_user_workloads_config_map REST call
638
+ #
639
+ # @param request_pb [::Google::Cloud::Orchestration::Airflow::Service::V1::GetUserWorkloadsConfigMapRequest]
640
+ # A request object representing the call parameters. Required.
641
+ # @param options [::Gapic::CallOptions]
642
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
643
+ #
644
+ # @yield [result, operation] Access the result along with the TransportOperation object
645
+ # @yieldparam result [::Google::Cloud::Orchestration::Airflow::Service::V1::UserWorkloadsConfigMap]
646
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
647
+ #
648
+ # @return [::Google::Cloud::Orchestration::Airflow::Service::V1::UserWorkloadsConfigMap]
649
+ # A result object deserialized from the server's reply
650
+ def get_user_workloads_config_map request_pb, options = nil
651
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
652
+
653
+ verb, uri, query_string_params, body = ServiceStub.transcode_get_user_workloads_config_map_request request_pb
654
+ query_string_params = if query_string_params.any?
655
+ query_string_params.to_h { |p| p.split "=", 2 }
656
+ else
657
+ {}
658
+ end
659
+
660
+ response = @client_stub.make_http_request(
661
+ verb,
662
+ uri: uri,
663
+ body: body || "",
664
+ params: query_string_params,
665
+ options: options
666
+ )
667
+ operation = ::Gapic::Rest::TransportOperation.new response
668
+ result = ::Google::Cloud::Orchestration::Airflow::Service::V1::UserWorkloadsConfigMap.decode_json response.body, ignore_unknown_fields: true
669
+
670
+ yield result, operation if block_given?
671
+ result
672
+ end
673
+
674
+ ##
675
+ # Baseline implementation for the list_user_workloads_config_maps REST call
676
+ #
677
+ # @param request_pb [::Google::Cloud::Orchestration::Airflow::Service::V1::ListUserWorkloadsConfigMapsRequest]
678
+ # A request object representing the call parameters. Required.
679
+ # @param options [::Gapic::CallOptions]
680
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
681
+ #
682
+ # @yield [result, operation] Access the result along with the TransportOperation object
683
+ # @yieldparam result [::Google::Cloud::Orchestration::Airflow::Service::V1::ListUserWorkloadsConfigMapsResponse]
684
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
685
+ #
686
+ # @return [::Google::Cloud::Orchestration::Airflow::Service::V1::ListUserWorkloadsConfigMapsResponse]
687
+ # A result object deserialized from the server's reply
688
+ def list_user_workloads_config_maps request_pb, options = nil
689
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
690
+
691
+ verb, uri, query_string_params, body = ServiceStub.transcode_list_user_workloads_config_maps_request request_pb
692
+ query_string_params = if query_string_params.any?
693
+ query_string_params.to_h { |p| p.split "=", 2 }
694
+ else
695
+ {}
696
+ end
697
+
698
+ response = @client_stub.make_http_request(
699
+ verb,
700
+ uri: uri,
701
+ body: body || "",
702
+ params: query_string_params,
703
+ options: options
704
+ )
705
+ operation = ::Gapic::Rest::TransportOperation.new response
706
+ result = ::Google::Cloud::Orchestration::Airflow::Service::V1::ListUserWorkloadsConfigMapsResponse.decode_json response.body, ignore_unknown_fields: true
707
+
708
+ yield result, operation if block_given?
709
+ result
710
+ end
711
+
712
+ ##
713
+ # Baseline implementation for the update_user_workloads_config_map REST call
714
+ #
715
+ # @param request_pb [::Google::Cloud::Orchestration::Airflow::Service::V1::UpdateUserWorkloadsConfigMapRequest]
716
+ # A request object representing the call parameters. Required.
717
+ # @param options [::Gapic::CallOptions]
718
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
719
+ #
720
+ # @yield [result, operation] Access the result along with the TransportOperation object
721
+ # @yieldparam result [::Google::Cloud::Orchestration::Airflow::Service::V1::UserWorkloadsConfigMap]
722
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
723
+ #
724
+ # @return [::Google::Cloud::Orchestration::Airflow::Service::V1::UserWorkloadsConfigMap]
725
+ # A result object deserialized from the server's reply
726
+ def update_user_workloads_config_map request_pb, options = nil
727
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
728
+
729
+ verb, uri, query_string_params, body = ServiceStub.transcode_update_user_workloads_config_map_request request_pb
730
+ query_string_params = if query_string_params.any?
731
+ query_string_params.to_h { |p| p.split "=", 2 }
732
+ else
733
+ {}
734
+ end
735
+
736
+ response = @client_stub.make_http_request(
737
+ verb,
738
+ uri: uri,
739
+ body: body || "",
740
+ params: query_string_params,
741
+ options: options
742
+ )
743
+ operation = ::Gapic::Rest::TransportOperation.new response
744
+ result = ::Google::Cloud::Orchestration::Airflow::Service::V1::UserWorkloadsConfigMap.decode_json response.body, ignore_unknown_fields: true
745
+
746
+ yield result, operation if block_given?
747
+ result
748
+ end
749
+
750
+ ##
751
+ # Baseline implementation for the delete_user_workloads_config_map REST call
752
+ #
753
+ # @param request_pb [::Google::Cloud::Orchestration::Airflow::Service::V1::DeleteUserWorkloadsConfigMapRequest]
754
+ # A request object representing the call parameters. Required.
755
+ # @param options [::Gapic::CallOptions]
756
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
757
+ #
758
+ # @yield [result, operation] Access the result along with the TransportOperation object
759
+ # @yieldparam result [::Google::Protobuf::Empty]
760
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
761
+ #
762
+ # @return [::Google::Protobuf::Empty]
763
+ # A result object deserialized from the server's reply
764
+ def delete_user_workloads_config_map request_pb, options = nil
765
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
766
+
767
+ verb, uri, query_string_params, body = ServiceStub.transcode_delete_user_workloads_config_map_request request_pb
768
+ query_string_params = if query_string_params.any?
769
+ query_string_params.to_h { |p| p.split "=", 2 }
770
+ else
771
+ {}
772
+ end
773
+
774
+ response = @client_stub.make_http_request(
775
+ verb,
776
+ uri: uri,
777
+ body: body || "",
778
+ params: query_string_params,
779
+ options: options
780
+ )
781
+ operation = ::Gapic::Rest::TransportOperation.new response
782
+ result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true
783
+
784
+ yield result, operation if block_given?
785
+ result
786
+ end
787
+
370
788
  ##
371
789
  # Baseline implementation for the save_snapshot REST call
372
790
  #
@@ -692,6 +1110,241 @@ module Google
692
1110
  transcoder.transcode request_pb
693
1111
  end
694
1112
 
1113
+ ##
1114
+ # @private
1115
+ #
1116
+ # GRPC transcoding helper method for the list_workloads REST call
1117
+ #
1118
+ # @param request_pb [::Google::Cloud::Orchestration::Airflow::Service::V1::ListWorkloadsRequest]
1119
+ # A request object representing the call parameters. Required.
1120
+ # @return [Array(String, [String, nil], Hash{String => String})]
1121
+ # Uri, Body, Query string parameters
1122
+ def self.transcode_list_workloads_request request_pb
1123
+ transcoder = Gapic::Rest::GrpcTranscoder.new
1124
+ .with_bindings(
1125
+ uri_method: :get,
1126
+ uri_template: "/v1/{parent}/workloads",
1127
+ matches: [
1128
+ ["parent", %r{^projects/[^/]+/locations/[^/]+/environments/[^/]+/?$}, false]
1129
+ ]
1130
+ )
1131
+ transcoder.transcode request_pb
1132
+ end
1133
+
1134
+ ##
1135
+ # @private
1136
+ #
1137
+ # GRPC transcoding helper method for the create_user_workloads_secret REST call
1138
+ #
1139
+ # @param request_pb [::Google::Cloud::Orchestration::Airflow::Service::V1::CreateUserWorkloadsSecretRequest]
1140
+ # A request object representing the call parameters. Required.
1141
+ # @return [Array(String, [String, nil], Hash{String => String})]
1142
+ # Uri, Body, Query string parameters
1143
+ def self.transcode_create_user_workloads_secret_request request_pb
1144
+ transcoder = Gapic::Rest::GrpcTranscoder.new
1145
+ .with_bindings(
1146
+ uri_method: :post,
1147
+ uri_template: "/v1/{parent}/userWorkloadsSecrets",
1148
+ body: "user_workloads_secret",
1149
+ matches: [
1150
+ ["parent", %r{^projects/[^/]+/locations/[^/]+/environments/[^/]+/?$}, false]
1151
+ ]
1152
+ )
1153
+ transcoder.transcode request_pb
1154
+ end
1155
+
1156
+ ##
1157
+ # @private
1158
+ #
1159
+ # GRPC transcoding helper method for the get_user_workloads_secret REST call
1160
+ #
1161
+ # @param request_pb [::Google::Cloud::Orchestration::Airflow::Service::V1::GetUserWorkloadsSecretRequest]
1162
+ # A request object representing the call parameters. Required.
1163
+ # @return [Array(String, [String, nil], Hash{String => String})]
1164
+ # Uri, Body, Query string parameters
1165
+ def self.transcode_get_user_workloads_secret_request request_pb
1166
+ transcoder = Gapic::Rest::GrpcTranscoder.new
1167
+ .with_bindings(
1168
+ uri_method: :get,
1169
+ uri_template: "/v1/{name}",
1170
+ matches: [
1171
+ ["name", %r{^projects/[^/]+/locations/[^/]+/environments/[^/]+/userWorkloadsSecrets/[^/]+/?$}, false]
1172
+ ]
1173
+ )
1174
+ transcoder.transcode request_pb
1175
+ end
1176
+
1177
+ ##
1178
+ # @private
1179
+ #
1180
+ # GRPC transcoding helper method for the list_user_workloads_secrets REST call
1181
+ #
1182
+ # @param request_pb [::Google::Cloud::Orchestration::Airflow::Service::V1::ListUserWorkloadsSecretsRequest]
1183
+ # A request object representing the call parameters. Required.
1184
+ # @return [Array(String, [String, nil], Hash{String => String})]
1185
+ # Uri, Body, Query string parameters
1186
+ def self.transcode_list_user_workloads_secrets_request request_pb
1187
+ transcoder = Gapic::Rest::GrpcTranscoder.new
1188
+ .with_bindings(
1189
+ uri_method: :get,
1190
+ uri_template: "/v1/{parent}/userWorkloadsSecrets",
1191
+ matches: [
1192
+ ["parent", %r{^projects/[^/]+/locations/[^/]+/environments/[^/]+/?$}, false]
1193
+ ]
1194
+ )
1195
+ transcoder.transcode request_pb
1196
+ end
1197
+
1198
+ ##
1199
+ # @private
1200
+ #
1201
+ # GRPC transcoding helper method for the update_user_workloads_secret REST call
1202
+ #
1203
+ # @param request_pb [::Google::Cloud::Orchestration::Airflow::Service::V1::UpdateUserWorkloadsSecretRequest]
1204
+ # A request object representing the call parameters. Required.
1205
+ # @return [Array(String, [String, nil], Hash{String => String})]
1206
+ # Uri, Body, Query string parameters
1207
+ def self.transcode_update_user_workloads_secret_request request_pb
1208
+ transcoder = Gapic::Rest::GrpcTranscoder.new
1209
+ .with_bindings(
1210
+ uri_method: :put,
1211
+ uri_template: "/v1/{user_workloads_secret.name}",
1212
+ body: "user_workloads_secret",
1213
+ matches: [
1214
+ ["user_workloads_secret.name", %r{^projects/[^/]+/locations/[^/]+/environments/[^/]+/userWorkloadsSecrets/[^/]+/?$}, false]
1215
+ ]
1216
+ )
1217
+ transcoder.transcode request_pb
1218
+ end
1219
+
1220
+ ##
1221
+ # @private
1222
+ #
1223
+ # GRPC transcoding helper method for the delete_user_workloads_secret REST call
1224
+ #
1225
+ # @param request_pb [::Google::Cloud::Orchestration::Airflow::Service::V1::DeleteUserWorkloadsSecretRequest]
1226
+ # A request object representing the call parameters. Required.
1227
+ # @return [Array(String, [String, nil], Hash{String => String})]
1228
+ # Uri, Body, Query string parameters
1229
+ def self.transcode_delete_user_workloads_secret_request request_pb
1230
+ transcoder = Gapic::Rest::GrpcTranscoder.new
1231
+ .with_bindings(
1232
+ uri_method: :delete,
1233
+ uri_template: "/v1/{name}",
1234
+ matches: [
1235
+ ["name", %r{^projects/[^/]+/locations/[^/]+/environments/[^/]+/userWorkloadsSecrets/[^/]+/?$}, false]
1236
+ ]
1237
+ )
1238
+ transcoder.transcode request_pb
1239
+ end
1240
+
1241
+ ##
1242
+ # @private
1243
+ #
1244
+ # GRPC transcoding helper method for the create_user_workloads_config_map REST call
1245
+ #
1246
+ # @param request_pb [::Google::Cloud::Orchestration::Airflow::Service::V1::CreateUserWorkloadsConfigMapRequest]
1247
+ # A request object representing the call parameters. Required.
1248
+ # @return [Array(String, [String, nil], Hash{String => String})]
1249
+ # Uri, Body, Query string parameters
1250
+ def self.transcode_create_user_workloads_config_map_request request_pb
1251
+ transcoder = Gapic::Rest::GrpcTranscoder.new
1252
+ .with_bindings(
1253
+ uri_method: :post,
1254
+ uri_template: "/v1/{parent}/userWorkloadsConfigMaps",
1255
+ body: "user_workloads_config_map",
1256
+ matches: [
1257
+ ["parent", %r{^projects/[^/]+/locations/[^/]+/environments/[^/]+/?$}, false]
1258
+ ]
1259
+ )
1260
+ transcoder.transcode request_pb
1261
+ end
1262
+
1263
+ ##
1264
+ # @private
1265
+ #
1266
+ # GRPC transcoding helper method for the get_user_workloads_config_map REST call
1267
+ #
1268
+ # @param request_pb [::Google::Cloud::Orchestration::Airflow::Service::V1::GetUserWorkloadsConfigMapRequest]
1269
+ # A request object representing the call parameters. Required.
1270
+ # @return [Array(String, [String, nil], Hash{String => String})]
1271
+ # Uri, Body, Query string parameters
1272
+ def self.transcode_get_user_workloads_config_map_request request_pb
1273
+ transcoder = Gapic::Rest::GrpcTranscoder.new
1274
+ .with_bindings(
1275
+ uri_method: :get,
1276
+ uri_template: "/v1/{name}",
1277
+ matches: [
1278
+ ["name", %r{^projects/[^/]+/locations/[^/]+/environments/[^/]+/userWorkloadsConfigMaps/[^/]+/?$}, false]
1279
+ ]
1280
+ )
1281
+ transcoder.transcode request_pb
1282
+ end
1283
+
1284
+ ##
1285
+ # @private
1286
+ #
1287
+ # GRPC transcoding helper method for the list_user_workloads_config_maps REST call
1288
+ #
1289
+ # @param request_pb [::Google::Cloud::Orchestration::Airflow::Service::V1::ListUserWorkloadsConfigMapsRequest]
1290
+ # A request object representing the call parameters. Required.
1291
+ # @return [Array(String, [String, nil], Hash{String => String})]
1292
+ # Uri, Body, Query string parameters
1293
+ def self.transcode_list_user_workloads_config_maps_request request_pb
1294
+ transcoder = Gapic::Rest::GrpcTranscoder.new
1295
+ .with_bindings(
1296
+ uri_method: :get,
1297
+ uri_template: "/v1/{parent}/userWorkloadsConfigMaps",
1298
+ matches: [
1299
+ ["parent", %r{^projects/[^/]+/locations/[^/]+/environments/[^/]+/?$}, false]
1300
+ ]
1301
+ )
1302
+ transcoder.transcode request_pb
1303
+ end
1304
+
1305
+ ##
1306
+ # @private
1307
+ #
1308
+ # GRPC transcoding helper method for the update_user_workloads_config_map REST call
1309
+ #
1310
+ # @param request_pb [::Google::Cloud::Orchestration::Airflow::Service::V1::UpdateUserWorkloadsConfigMapRequest]
1311
+ # A request object representing the call parameters. Required.
1312
+ # @return [Array(String, [String, nil], Hash{String => String})]
1313
+ # Uri, Body, Query string parameters
1314
+ def self.transcode_update_user_workloads_config_map_request request_pb
1315
+ transcoder = Gapic::Rest::GrpcTranscoder.new
1316
+ .with_bindings(
1317
+ uri_method: :put,
1318
+ uri_template: "/v1/{user_workloads_config_map.name}",
1319
+ body: "user_workloads_config_map",
1320
+ matches: [
1321
+ ["user_workloads_config_map.name", %r{^projects/[^/]+/locations/[^/]+/environments/[^/]+/userWorkloadsConfigMaps/[^/]+/?$}, false]
1322
+ ]
1323
+ )
1324
+ transcoder.transcode request_pb
1325
+ end
1326
+
1327
+ ##
1328
+ # @private
1329
+ #
1330
+ # GRPC transcoding helper method for the delete_user_workloads_config_map REST call
1331
+ #
1332
+ # @param request_pb [::Google::Cloud::Orchestration::Airflow::Service::V1::DeleteUserWorkloadsConfigMapRequest]
1333
+ # A request object representing the call parameters. Required.
1334
+ # @return [Array(String, [String, nil], Hash{String => String})]
1335
+ # Uri, Body, Query string parameters
1336
+ def self.transcode_delete_user_workloads_config_map_request request_pb
1337
+ transcoder = Gapic::Rest::GrpcTranscoder.new
1338
+ .with_bindings(
1339
+ uri_method: :delete,
1340
+ uri_template: "/v1/{name}",
1341
+ matches: [
1342
+ ["name", %r{^projects/[^/]+/locations/[^/]+/environments/[^/]+/userWorkloadsConfigMaps/[^/]+/?$}, false]
1343
+ ]
1344
+ )
1345
+ transcoder.transcode request_pb
1346
+ end
1347
+
695
1348
  ##
696
1349
  # @private
697
1350
  #