google-cloud-parameter_manager-v1 1.0.0 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (29) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +0 -1
  3. data/lib/google/cloud/parameter_manager/v1/bindings_override.rb +1 -1
  4. data/lib/google/cloud/parameter_manager/v1/parameter_manager/client.rb +1329 -151
  5. data/lib/google/cloud/parameter_manager/v1/parameter_manager/credentials.rb +1 -1
  6. data/lib/google/cloud/parameter_manager/v1/parameter_manager/paths.rb +41 -1
  7. data/lib/google/cloud/parameter_manager/v1/parameter_manager/rest/client.rb +1244 -143
  8. data/lib/google/cloud/parameter_manager/v1/parameter_manager/rest/service_stub.rb +676 -1
  9. data/lib/google/cloud/parameter_manager/v1/parameter_manager/rest.rb +1 -1
  10. data/lib/google/cloud/parameter_manager/v1/parameter_manager.rb +1 -1
  11. data/lib/google/cloud/parameter_manager/v1/rest.rb +1 -1
  12. data/lib/google/cloud/parameter_manager/v1/version.rb +1 -1
  13. data/lib/google/cloud/parameter_manager/v1.rb +1 -1
  14. data/lib/google/cloud/parametermanager/v1/service_pb.rb +20 -1
  15. data/lib/google/cloud/parametermanager/v1/service_services_pb.rb +23 -1
  16. data/lib/google-cloud-parameter_manager-v1.rb +1 -1
  17. data/proto_docs/google/api/client.rb +1 -1
  18. data/proto_docs/google/api/field_behavior.rb +1 -1
  19. data/proto_docs/google/api/field_info.rb +1 -1
  20. data/proto_docs/google/api/launch_stage.rb +1 -1
  21. data/proto_docs/google/api/resource.rb +1 -1
  22. data/proto_docs/google/cloud/parametermanager/v1/service.rb +458 -5
  23. data/proto_docs/google/iam/v1/resource_policy_member.rb +1 -1
  24. data/proto_docs/google/protobuf/duration.rb +1 -1
  25. data/proto_docs/google/protobuf/empty.rb +1 -1
  26. data/proto_docs/google/protobuf/field_mask.rb +1 -1
  27. data/proto_docs/google/protobuf/timestamp.rb +8 -7
  28. metadata +1 -2
  29. data/proto_docs/google/protobuf/any.rb +0 -145
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright 2025 Google LLC
3
+ # Copyright 2026 Google LLC
4
4
  #
5
5
  # Licensed under the Apache License, Version 2.0 (the "License");
6
6
  # you may not use this file except in compliance with the License.
@@ -513,6 +513,446 @@ module Google
513
513
  end
514
514
  end
515
515
 
516
+ ##
517
+ # Baseline implementation for the list_templates REST call
518
+ #
519
+ # @param request_pb [::Google::Cloud::ParameterManager::V1::ListTemplatesRequest]
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::Cloud::ParameterManager::V1::ListTemplatesResponse]
526
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
527
+ #
528
+ # @return [::Google::Cloud::ParameterManager::V1::ListTemplatesResponse]
529
+ # A result object deserialized from the server's reply
530
+ def list_templates 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_list_templates_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: "list_templates",
546
+ options: options
547
+ )
548
+ operation = ::Gapic::Rest::TransportOperation.new response
549
+ result = ::Google::Cloud::ParameterManager::V1::ListTemplatesResponse.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 get_template REST call
558
+ #
559
+ # @param request_pb [::Google::Cloud::ParameterManager::V1::GetTemplateRequest]
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::ParameterManager::V1::Template]
566
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
567
+ #
568
+ # @return [::Google::Cloud::ParameterManager::V1::Template]
569
+ # A result object deserialized from the server's reply
570
+ def get_template 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_get_template_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: "get_template",
586
+ options: options
587
+ )
588
+ operation = ::Gapic::Rest::TransportOperation.new response
589
+ result = ::Google::Cloud::ParameterManager::V1::Template.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 create_template REST call
598
+ #
599
+ # @param request_pb [::Google::Cloud::ParameterManager::V1::CreateTemplateRequest]
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::Cloud::ParameterManager::V1::Template]
606
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
607
+ #
608
+ # @return [::Google::Cloud::ParameterManager::V1::Template]
609
+ # A result object deserialized from the server's reply
610
+ def create_template 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_create_template_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: "create_template",
626
+ options: options
627
+ )
628
+ operation = ::Gapic::Rest::TransportOperation.new response
629
+ result = ::Google::Cloud::ParameterManager::V1::Template.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
+
636
+ ##
637
+ # Baseline implementation for the update_template REST call
638
+ #
639
+ # @param request_pb [::Google::Cloud::ParameterManager::V1::UpdateTemplateRequest]
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::ParameterManager::V1::Template]
646
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
647
+ #
648
+ # @return [::Google::Cloud::ParameterManager::V1::Template]
649
+ # A result object deserialized from the server's reply
650
+ def update_template 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_update_template_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
+ method_name: "update_template",
666
+ options: options
667
+ )
668
+ operation = ::Gapic::Rest::TransportOperation.new response
669
+ result = ::Google::Cloud::ParameterManager::V1::Template.decode_json response.body, ignore_unknown_fields: true
670
+ catch :response do
671
+ yield result, operation if block_given?
672
+ result
673
+ end
674
+ end
675
+
676
+ ##
677
+ # Baseline implementation for the delete_template REST call
678
+ #
679
+ # @param request_pb [::Google::Cloud::ParameterManager::V1::DeleteTemplateRequest]
680
+ # A request object representing the call parameters. Required.
681
+ # @param options [::Gapic::CallOptions]
682
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
683
+ #
684
+ # @yield [result, operation] Access the result along with the TransportOperation object
685
+ # @yieldparam result [::Google::Protobuf::Empty]
686
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
687
+ #
688
+ # @return [::Google::Protobuf::Empty]
689
+ # A result object deserialized from the server's reply
690
+ def delete_template request_pb, options = nil
691
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
692
+
693
+ verb, uri, query_string_params, body = ServiceStub.transcode_delete_template_request request_pb
694
+ query_string_params = if query_string_params.any?
695
+ query_string_params.to_h { |p| p.split "=", 2 }
696
+ else
697
+ {}
698
+ end
699
+
700
+ response = @client_stub.make_http_request(
701
+ verb,
702
+ uri: uri,
703
+ body: body || "",
704
+ params: query_string_params,
705
+ method_name: "delete_template",
706
+ options: options
707
+ )
708
+ operation = ::Gapic::Rest::TransportOperation.new response
709
+ result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true
710
+ catch :response do
711
+ yield result, operation if block_given?
712
+ result
713
+ end
714
+ end
715
+
716
+ ##
717
+ # Baseline implementation for the list_template_versions REST call
718
+ #
719
+ # @param request_pb [::Google::Cloud::ParameterManager::V1::ListTemplateVersionsRequest]
720
+ # A request object representing the call parameters. Required.
721
+ # @param options [::Gapic::CallOptions]
722
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
723
+ #
724
+ # @yield [result, operation] Access the result along with the TransportOperation object
725
+ # @yieldparam result [::Google::Cloud::ParameterManager::V1::ListTemplateVersionsResponse]
726
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
727
+ #
728
+ # @return [::Google::Cloud::ParameterManager::V1::ListTemplateVersionsResponse]
729
+ # A result object deserialized from the server's reply
730
+ def list_template_versions request_pb, options = nil
731
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
732
+
733
+ verb, uri, query_string_params, body = ServiceStub.transcode_list_template_versions_request request_pb
734
+ query_string_params = if query_string_params.any?
735
+ query_string_params.to_h { |p| p.split "=", 2 }
736
+ else
737
+ {}
738
+ end
739
+
740
+ response = @client_stub.make_http_request(
741
+ verb,
742
+ uri: uri,
743
+ body: body || "",
744
+ params: query_string_params,
745
+ method_name: "list_template_versions",
746
+ options: options
747
+ )
748
+ operation = ::Gapic::Rest::TransportOperation.new response
749
+ result = ::Google::Cloud::ParameterManager::V1::ListTemplateVersionsResponse.decode_json response.body, ignore_unknown_fields: true
750
+ catch :response do
751
+ yield result, operation if block_given?
752
+ result
753
+ end
754
+ end
755
+
756
+ ##
757
+ # Baseline implementation for the get_template_version REST call
758
+ #
759
+ # @param request_pb [::Google::Cloud::ParameterManager::V1::GetTemplateVersionRequest]
760
+ # A request object representing the call parameters. Required.
761
+ # @param options [::Gapic::CallOptions]
762
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
763
+ #
764
+ # @yield [result, operation] Access the result along with the TransportOperation object
765
+ # @yieldparam result [::Google::Cloud::ParameterManager::V1::TemplateVersion]
766
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
767
+ #
768
+ # @return [::Google::Cloud::ParameterManager::V1::TemplateVersion]
769
+ # A result object deserialized from the server's reply
770
+ def get_template_version request_pb, options = nil
771
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
772
+
773
+ verb, uri, query_string_params, body = ServiceStub.transcode_get_template_version_request request_pb
774
+ query_string_params = if query_string_params.any?
775
+ query_string_params.to_h { |p| p.split "=", 2 }
776
+ else
777
+ {}
778
+ end
779
+
780
+ response = @client_stub.make_http_request(
781
+ verb,
782
+ uri: uri,
783
+ body: body || "",
784
+ params: query_string_params,
785
+ method_name: "get_template_version",
786
+ options: options
787
+ )
788
+ operation = ::Gapic::Rest::TransportOperation.new response
789
+ result = ::Google::Cloud::ParameterManager::V1::TemplateVersion.decode_json response.body, ignore_unknown_fields: true
790
+ catch :response do
791
+ yield result, operation if block_given?
792
+ result
793
+ end
794
+ end
795
+
796
+ ##
797
+ # Baseline implementation for the create_template_version REST call
798
+ #
799
+ # @param request_pb [::Google::Cloud::ParameterManager::V1::CreateTemplateVersionRequest]
800
+ # A request object representing the call parameters. Required.
801
+ # @param options [::Gapic::CallOptions]
802
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
803
+ #
804
+ # @yield [result, operation] Access the result along with the TransportOperation object
805
+ # @yieldparam result [::Google::Cloud::ParameterManager::V1::TemplateVersion]
806
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
807
+ #
808
+ # @return [::Google::Cloud::ParameterManager::V1::TemplateVersion]
809
+ # A result object deserialized from the server's reply
810
+ def create_template_version request_pb, options = nil
811
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
812
+
813
+ verb, uri, query_string_params, body = ServiceStub.transcode_create_template_version_request request_pb
814
+ query_string_params = if query_string_params.any?
815
+ query_string_params.to_h { |p| p.split "=", 2 }
816
+ else
817
+ {}
818
+ end
819
+
820
+ response = @client_stub.make_http_request(
821
+ verb,
822
+ uri: uri,
823
+ body: body || "",
824
+ params: query_string_params,
825
+ method_name: "create_template_version",
826
+ options: options
827
+ )
828
+ operation = ::Gapic::Rest::TransportOperation.new response
829
+ result = ::Google::Cloud::ParameterManager::V1::TemplateVersion.decode_json response.body, ignore_unknown_fields: true
830
+ catch :response do
831
+ yield result, operation if block_given?
832
+ result
833
+ end
834
+ end
835
+
836
+ ##
837
+ # Baseline implementation for the update_template_version REST call
838
+ #
839
+ # @param request_pb [::Google::Cloud::ParameterManager::V1::UpdateTemplateVersionRequest]
840
+ # A request object representing the call parameters. Required.
841
+ # @param options [::Gapic::CallOptions]
842
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
843
+ #
844
+ # @yield [result, operation] Access the result along with the TransportOperation object
845
+ # @yieldparam result [::Google::Cloud::ParameterManager::V1::TemplateVersion]
846
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
847
+ #
848
+ # @return [::Google::Cloud::ParameterManager::V1::TemplateVersion]
849
+ # A result object deserialized from the server's reply
850
+ def update_template_version request_pb, options = nil
851
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
852
+
853
+ verb, uri, query_string_params, body = ServiceStub.transcode_update_template_version_request request_pb
854
+ query_string_params = if query_string_params.any?
855
+ query_string_params.to_h { |p| p.split "=", 2 }
856
+ else
857
+ {}
858
+ end
859
+
860
+ response = @client_stub.make_http_request(
861
+ verb,
862
+ uri: uri,
863
+ body: body || "",
864
+ params: query_string_params,
865
+ method_name: "update_template_version",
866
+ options: options
867
+ )
868
+ operation = ::Gapic::Rest::TransportOperation.new response
869
+ result = ::Google::Cloud::ParameterManager::V1::TemplateVersion.decode_json response.body, ignore_unknown_fields: true
870
+ catch :response do
871
+ yield result, operation if block_given?
872
+ result
873
+ end
874
+ end
875
+
876
+ ##
877
+ # Baseline implementation for the delete_template_version REST call
878
+ #
879
+ # @param request_pb [::Google::Cloud::ParameterManager::V1::DeleteTemplateVersionRequest]
880
+ # A request object representing the call parameters. Required.
881
+ # @param options [::Gapic::CallOptions]
882
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
883
+ #
884
+ # @yield [result, operation] Access the result along with the TransportOperation object
885
+ # @yieldparam result [::Google::Protobuf::Empty]
886
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
887
+ #
888
+ # @return [::Google::Protobuf::Empty]
889
+ # A result object deserialized from the server's reply
890
+ def delete_template_version request_pb, options = nil
891
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
892
+
893
+ verb, uri, query_string_params, body = ServiceStub.transcode_delete_template_version_request request_pb
894
+ query_string_params = if query_string_params.any?
895
+ query_string_params.to_h { |p| p.split "=", 2 }
896
+ else
897
+ {}
898
+ end
899
+
900
+ response = @client_stub.make_http_request(
901
+ verb,
902
+ uri: uri,
903
+ body: body || "",
904
+ params: query_string_params,
905
+ method_name: "delete_template_version",
906
+ options: options
907
+ )
908
+ operation = ::Gapic::Rest::TransportOperation.new response
909
+ result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true
910
+ catch :response do
911
+ yield result, operation if block_given?
912
+ result
913
+ end
914
+ end
915
+
916
+ ##
917
+ # Baseline implementation for the render_template_version REST call
918
+ #
919
+ # @param request_pb [::Google::Cloud::ParameterManager::V1::RenderTemplateVersionRequest]
920
+ # A request object representing the call parameters. Required.
921
+ # @param options [::Gapic::CallOptions]
922
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
923
+ #
924
+ # @yield [result, operation] Access the result along with the TransportOperation object
925
+ # @yieldparam result [::Google::Cloud::ParameterManager::V1::RenderTemplateVersionResponse]
926
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
927
+ #
928
+ # @return [::Google::Cloud::ParameterManager::V1::RenderTemplateVersionResponse]
929
+ # A result object deserialized from the server's reply
930
+ def render_template_version request_pb, options = nil
931
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
932
+
933
+ verb, uri, query_string_params, body = ServiceStub.transcode_render_template_version_request request_pb
934
+ query_string_params = if query_string_params.any?
935
+ query_string_params.to_h { |p| p.split "=", 2 }
936
+ else
937
+ {}
938
+ end
939
+
940
+ response = @client_stub.make_http_request(
941
+ verb,
942
+ uri: uri,
943
+ body: body || "",
944
+ params: query_string_params,
945
+ method_name: "render_template_version",
946
+ options: options
947
+ )
948
+ operation = ::Gapic::Rest::TransportOperation.new response
949
+ result = ::Google::Cloud::ParameterManager::V1::RenderTemplateVersionResponse.decode_json response.body, ignore_unknown_fields: true
950
+ catch :response do
951
+ yield result, operation if block_given?
952
+ result
953
+ end
954
+ end
955
+
516
956
  ##
517
957
  # @private
518
958
  #
@@ -747,6 +1187,241 @@ module Google
747
1187
  )
748
1188
  transcoder.transcode request_pb
749
1189
  end
1190
+
1191
+ ##
1192
+ # @private
1193
+ #
1194
+ # GRPC transcoding helper method for the list_templates REST call
1195
+ #
1196
+ # @param request_pb [::Google::Cloud::ParameterManager::V1::ListTemplatesRequest]
1197
+ # A request object representing the call parameters. Required.
1198
+ # @return [Array(String, [String, nil], Hash{String => String})]
1199
+ # Uri, Body, Query string parameters
1200
+ def self.transcode_list_templates_request request_pb
1201
+ transcoder = Gapic::Rest::GrpcTranscoder.new
1202
+ .with_bindings(
1203
+ uri_method: :get,
1204
+ uri_template: "/v1/{parent}/templates",
1205
+ matches: [
1206
+ ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
1207
+ ]
1208
+ )
1209
+ transcoder.transcode request_pb
1210
+ end
1211
+
1212
+ ##
1213
+ # @private
1214
+ #
1215
+ # GRPC transcoding helper method for the get_template REST call
1216
+ #
1217
+ # @param request_pb [::Google::Cloud::ParameterManager::V1::GetTemplateRequest]
1218
+ # A request object representing the call parameters. Required.
1219
+ # @return [Array(String, [String, nil], Hash{String => String})]
1220
+ # Uri, Body, Query string parameters
1221
+ def self.transcode_get_template_request request_pb
1222
+ transcoder = Gapic::Rest::GrpcTranscoder.new
1223
+ .with_bindings(
1224
+ uri_method: :get,
1225
+ uri_template: "/v1/{name}",
1226
+ matches: [
1227
+ ["name", %r{^projects/[^/]+/locations/[^/]+/templates/[^/]+/?$}, false]
1228
+ ]
1229
+ )
1230
+ transcoder.transcode request_pb
1231
+ end
1232
+
1233
+ ##
1234
+ # @private
1235
+ #
1236
+ # GRPC transcoding helper method for the create_template REST call
1237
+ #
1238
+ # @param request_pb [::Google::Cloud::ParameterManager::V1::CreateTemplateRequest]
1239
+ # A request object representing the call parameters. Required.
1240
+ # @return [Array(String, [String, nil], Hash{String => String})]
1241
+ # Uri, Body, Query string parameters
1242
+ def self.transcode_create_template_request request_pb
1243
+ transcoder = Gapic::Rest::GrpcTranscoder.new
1244
+ .with_bindings(
1245
+ uri_method: :post,
1246
+ uri_template: "/v1/{parent}/templates",
1247
+ body: "template",
1248
+ matches: [
1249
+ ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
1250
+ ]
1251
+ )
1252
+ transcoder.transcode request_pb
1253
+ end
1254
+
1255
+ ##
1256
+ # @private
1257
+ #
1258
+ # GRPC transcoding helper method for the update_template REST call
1259
+ #
1260
+ # @param request_pb [::Google::Cloud::ParameterManager::V1::UpdateTemplateRequest]
1261
+ # A request object representing the call parameters. Required.
1262
+ # @return [Array(String, [String, nil], Hash{String => String})]
1263
+ # Uri, Body, Query string parameters
1264
+ def self.transcode_update_template_request request_pb
1265
+ transcoder = Gapic::Rest::GrpcTranscoder.new
1266
+ .with_bindings(
1267
+ uri_method: :patch,
1268
+ uri_template: "/v1/{template.name}",
1269
+ body: "template",
1270
+ matches: [
1271
+ ["template.name", %r{^projects/[^/]+/locations/[^/]+/templates/[^/]+/?$}, false]
1272
+ ]
1273
+ )
1274
+ transcoder.transcode request_pb
1275
+ end
1276
+
1277
+ ##
1278
+ # @private
1279
+ #
1280
+ # GRPC transcoding helper method for the delete_template REST call
1281
+ #
1282
+ # @param request_pb [::Google::Cloud::ParameterManager::V1::DeleteTemplateRequest]
1283
+ # A request object representing the call parameters. Required.
1284
+ # @return [Array(String, [String, nil], Hash{String => String})]
1285
+ # Uri, Body, Query string parameters
1286
+ def self.transcode_delete_template_request request_pb
1287
+ transcoder = Gapic::Rest::GrpcTranscoder.new
1288
+ .with_bindings(
1289
+ uri_method: :delete,
1290
+ uri_template: "/v1/{name}",
1291
+ matches: [
1292
+ ["name", %r{^projects/[^/]+/locations/[^/]+/templates/[^/]+/?$}, false]
1293
+ ]
1294
+ )
1295
+ transcoder.transcode request_pb
1296
+ end
1297
+
1298
+ ##
1299
+ # @private
1300
+ #
1301
+ # GRPC transcoding helper method for the list_template_versions REST call
1302
+ #
1303
+ # @param request_pb [::Google::Cloud::ParameterManager::V1::ListTemplateVersionsRequest]
1304
+ # A request object representing the call parameters. Required.
1305
+ # @return [Array(String, [String, nil], Hash{String => String})]
1306
+ # Uri, Body, Query string parameters
1307
+ def self.transcode_list_template_versions_request request_pb
1308
+ transcoder = Gapic::Rest::GrpcTranscoder.new
1309
+ .with_bindings(
1310
+ uri_method: :get,
1311
+ uri_template: "/v1/{parent}/versions",
1312
+ matches: [
1313
+ ["parent", %r{^projects/[^/]+/locations/[^/]+/templates/[^/]+/?$}, false]
1314
+ ]
1315
+ )
1316
+ transcoder.transcode request_pb
1317
+ end
1318
+
1319
+ ##
1320
+ # @private
1321
+ #
1322
+ # GRPC transcoding helper method for the get_template_version REST call
1323
+ #
1324
+ # @param request_pb [::Google::Cloud::ParameterManager::V1::GetTemplateVersionRequest]
1325
+ # A request object representing the call parameters. Required.
1326
+ # @return [Array(String, [String, nil], Hash{String => String})]
1327
+ # Uri, Body, Query string parameters
1328
+ def self.transcode_get_template_version_request request_pb
1329
+ transcoder = Gapic::Rest::GrpcTranscoder.new
1330
+ .with_bindings(
1331
+ uri_method: :get,
1332
+ uri_template: "/v1/{name}",
1333
+ matches: [
1334
+ ["name", %r{^projects/[^/]+/locations/[^/]+/templates/[^/]+/versions/[^/]+/?$}, false]
1335
+ ]
1336
+ )
1337
+ transcoder.transcode request_pb
1338
+ end
1339
+
1340
+ ##
1341
+ # @private
1342
+ #
1343
+ # GRPC transcoding helper method for the create_template_version REST call
1344
+ #
1345
+ # @param request_pb [::Google::Cloud::ParameterManager::V1::CreateTemplateVersionRequest]
1346
+ # A request object representing the call parameters. Required.
1347
+ # @return [Array(String, [String, nil], Hash{String => String})]
1348
+ # Uri, Body, Query string parameters
1349
+ def self.transcode_create_template_version_request request_pb
1350
+ transcoder = Gapic::Rest::GrpcTranscoder.new
1351
+ .with_bindings(
1352
+ uri_method: :post,
1353
+ uri_template: "/v1/{parent}/versions",
1354
+ body: "template_version",
1355
+ matches: [
1356
+ ["parent", %r{^projects/[^/]+/locations/[^/]+/templates/[^/]+/?$}, false]
1357
+ ]
1358
+ )
1359
+ transcoder.transcode request_pb
1360
+ end
1361
+
1362
+ ##
1363
+ # @private
1364
+ #
1365
+ # GRPC transcoding helper method for the update_template_version REST call
1366
+ #
1367
+ # @param request_pb [::Google::Cloud::ParameterManager::V1::UpdateTemplateVersionRequest]
1368
+ # A request object representing the call parameters. Required.
1369
+ # @return [Array(String, [String, nil], Hash{String => String})]
1370
+ # Uri, Body, Query string parameters
1371
+ def self.transcode_update_template_version_request request_pb
1372
+ transcoder = Gapic::Rest::GrpcTranscoder.new
1373
+ .with_bindings(
1374
+ uri_method: :patch,
1375
+ uri_template: "/v1/{template_version.name}",
1376
+ body: "template_version",
1377
+ matches: [
1378
+ ["template_version.name", %r{^projects/[^/]+/locations/[^/]+/templates/[^/]+/versions/[^/]+/?$}, false]
1379
+ ]
1380
+ )
1381
+ transcoder.transcode request_pb
1382
+ end
1383
+
1384
+ ##
1385
+ # @private
1386
+ #
1387
+ # GRPC transcoding helper method for the delete_template_version REST call
1388
+ #
1389
+ # @param request_pb [::Google::Cloud::ParameterManager::V1::DeleteTemplateVersionRequest]
1390
+ # A request object representing the call parameters. Required.
1391
+ # @return [Array(String, [String, nil], Hash{String => String})]
1392
+ # Uri, Body, Query string parameters
1393
+ def self.transcode_delete_template_version_request request_pb
1394
+ transcoder = Gapic::Rest::GrpcTranscoder.new
1395
+ .with_bindings(
1396
+ uri_method: :delete,
1397
+ uri_template: "/v1/{name}",
1398
+ matches: [
1399
+ ["name", %r{^projects/[^/]+/locations/[^/]+/templates/[^/]+/versions/[^/]+/?$}, false]
1400
+ ]
1401
+ )
1402
+ transcoder.transcode request_pb
1403
+ end
1404
+
1405
+ ##
1406
+ # @private
1407
+ #
1408
+ # GRPC transcoding helper method for the render_template_version REST call
1409
+ #
1410
+ # @param request_pb [::Google::Cloud::ParameterManager::V1::RenderTemplateVersionRequest]
1411
+ # A request object representing the call parameters. Required.
1412
+ # @return [Array(String, [String, nil], Hash{String => String})]
1413
+ # Uri, Body, Query string parameters
1414
+ def self.transcode_render_template_version_request request_pb
1415
+ transcoder = Gapic::Rest::GrpcTranscoder.new
1416
+ .with_bindings(
1417
+ uri_method: :get,
1418
+ uri_template: "/v1/{name}:render",
1419
+ matches: [
1420
+ ["name", %r{^projects/[^/]+/locations/[^/]+/templates/[^/]+/versions/[^/]+/?$}, false]
1421
+ ]
1422
+ )
1423
+ transcoder.transcode request_pb
1424
+ end
750
1425
  end
751
1426
  end
752
1427
  end