google-cloud-eventarc-v1 1.0.0 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (31) hide show
  1. checksums.yaml +4 -4
  2. data/lib/google/cloud/eventarc/v1/bindings_override.rb +96 -0
  3. data/lib/google/cloud/eventarc/v1/channel_pb.rb +1 -1
  4. data/lib/google/cloud/eventarc/v1/enrollment_pb.rb +47 -0
  5. data/lib/google/cloud/eventarc/v1/eventarc/client.rb +2565 -174
  6. data/lib/google/cloud/eventarc/v1/eventarc/paths.rb +112 -0
  7. data/lib/google/cloud/eventarc/v1/eventarc/rest/client.rb +2420 -180
  8. data/lib/google/cloud/eventarc/v1/eventarc/rest/service_stub.rb +1335 -88
  9. data/lib/google/cloud/eventarc/v1/eventarc_pb.rb +35 -1
  10. data/lib/google/cloud/eventarc/v1/eventarc_services_pb.rb +42 -0
  11. data/lib/google/cloud/eventarc/v1/google_api_source_pb.rb +50 -0
  12. data/lib/google/cloud/eventarc/v1/logging_config_pb.rb +45 -0
  13. data/lib/google/cloud/eventarc/v1/message_bus_pb.rb +49 -0
  14. data/lib/google/cloud/eventarc/v1/network_config_pb.rb +45 -0
  15. data/lib/google/cloud/eventarc/v1/pipeline_pb.rb +65 -0
  16. data/lib/google/cloud/eventarc/v1/trigger_pb.rb +4 -1
  17. data/lib/google/cloud/eventarc/v1/version.rb +1 -1
  18. data/proto_docs/google/api/client.rb +51 -10
  19. data/proto_docs/google/api/field_info.rb +88 -0
  20. data/proto_docs/google/api/resource.rb +7 -2
  21. data/proto_docs/google/cloud/eventarc/v1/channel.rb +5 -1
  22. data/proto_docs/google/cloud/eventarc/v1/discovery.rb +8 -7
  23. data/proto_docs/google/cloud/eventarc/v1/enrollment.rb +95 -0
  24. data/proto_docs/google/cloud/eventarc/v1/eventarc.rb +522 -8
  25. data/proto_docs/google/cloud/eventarc/v1/google_api_source.rb +95 -0
  26. data/proto_docs/google/cloud/eventarc/v1/logging_config.rb +78 -0
  27. data/proto_docs/google/cloud/eventarc/v1/message_bus.rb +94 -0
  28. data/proto_docs/google/cloud/eventarc/v1/network_config.rb +37 -0
  29. data/proto_docs/google/cloud/eventarc/v1/pipeline.rb +583 -0
  30. data/proto_docs/google/cloud/eventarc/v1/trigger.rb +76 -35
  31. metadata +16 -3
@@ -745,22 +745,1097 @@ module Google
745
745
  result
746
746
  end
747
747
 
748
+ ##
749
+ # Baseline implementation for the get_message_bus REST call
750
+ #
751
+ # @param request_pb [::Google::Cloud::Eventarc::V1::GetMessageBusRequest]
752
+ # A request object representing the call parameters. Required.
753
+ # @param options [::Gapic::CallOptions]
754
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
755
+ #
756
+ # @yield [result, operation] Access the result along with the TransportOperation object
757
+ # @yieldparam result [::Google::Cloud::Eventarc::V1::MessageBus]
758
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
759
+ #
760
+ # @return [::Google::Cloud::Eventarc::V1::MessageBus]
761
+ # A result object deserialized from the server's reply
762
+ def get_message_bus request_pb, options = nil
763
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
764
+
765
+ verb, uri, query_string_params, body = ServiceStub.transcode_get_message_bus_request request_pb
766
+ query_string_params = if query_string_params.any?
767
+ query_string_params.to_h { |p| p.split "=", 2 }
768
+ else
769
+ {}
770
+ end
771
+
772
+ response = @client_stub.make_http_request(
773
+ verb,
774
+ uri: uri,
775
+ body: body || "",
776
+ params: query_string_params,
777
+ options: options
778
+ )
779
+ operation = ::Gapic::Rest::TransportOperation.new response
780
+ result = ::Google::Cloud::Eventarc::V1::MessageBus.decode_json response.body, ignore_unknown_fields: true
781
+
782
+ yield result, operation if block_given?
783
+ result
784
+ end
785
+
786
+ ##
787
+ # Baseline implementation for the list_message_buses REST call
788
+ #
789
+ # @param request_pb [::Google::Cloud::Eventarc::V1::ListMessageBusesRequest]
790
+ # A request object representing the call parameters. Required.
791
+ # @param options [::Gapic::CallOptions]
792
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
793
+ #
794
+ # @yield [result, operation] Access the result along with the TransportOperation object
795
+ # @yieldparam result [::Google::Cloud::Eventarc::V1::ListMessageBusesResponse]
796
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
797
+ #
798
+ # @return [::Google::Cloud::Eventarc::V1::ListMessageBusesResponse]
799
+ # A result object deserialized from the server's reply
800
+ def list_message_buses request_pb, options = nil
801
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
802
+
803
+ verb, uri, query_string_params, body = ServiceStub.transcode_list_message_buses_request request_pb
804
+ query_string_params = if query_string_params.any?
805
+ query_string_params.to_h { |p| p.split "=", 2 }
806
+ else
807
+ {}
808
+ end
809
+
810
+ response = @client_stub.make_http_request(
811
+ verb,
812
+ uri: uri,
813
+ body: body || "",
814
+ params: query_string_params,
815
+ options: options
816
+ )
817
+ operation = ::Gapic::Rest::TransportOperation.new response
818
+ result = ::Google::Cloud::Eventarc::V1::ListMessageBusesResponse.decode_json response.body, ignore_unknown_fields: true
819
+
820
+ yield result, operation if block_given?
821
+ result
822
+ end
823
+
824
+ ##
825
+ # Baseline implementation for the list_message_bus_enrollments REST call
826
+ #
827
+ # @param request_pb [::Google::Cloud::Eventarc::V1::ListMessageBusEnrollmentsRequest]
828
+ # A request object representing the call parameters. Required.
829
+ # @param options [::Gapic::CallOptions]
830
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
831
+ #
832
+ # @yield [result, operation] Access the result along with the TransportOperation object
833
+ # @yieldparam result [::Google::Cloud::Eventarc::V1::ListMessageBusEnrollmentsResponse]
834
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
835
+ #
836
+ # @return [::Google::Cloud::Eventarc::V1::ListMessageBusEnrollmentsResponse]
837
+ # A result object deserialized from the server's reply
838
+ def list_message_bus_enrollments request_pb, options = nil
839
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
840
+
841
+ verb, uri, query_string_params, body = ServiceStub.transcode_list_message_bus_enrollments_request request_pb
842
+ query_string_params = if query_string_params.any?
843
+ query_string_params.to_h { |p| p.split "=", 2 }
844
+ else
845
+ {}
846
+ end
847
+
848
+ response = @client_stub.make_http_request(
849
+ verb,
850
+ uri: uri,
851
+ body: body || "",
852
+ params: query_string_params,
853
+ options: options
854
+ )
855
+ operation = ::Gapic::Rest::TransportOperation.new response
856
+ result = ::Google::Cloud::Eventarc::V1::ListMessageBusEnrollmentsResponse.decode_json response.body, ignore_unknown_fields: true
857
+
858
+ yield result, operation if block_given?
859
+ result
860
+ end
861
+
862
+ ##
863
+ # Baseline implementation for the create_message_bus REST call
864
+ #
865
+ # @param request_pb [::Google::Cloud::Eventarc::V1::CreateMessageBusRequest]
866
+ # A request object representing the call parameters. Required.
867
+ # @param options [::Gapic::CallOptions]
868
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
869
+ #
870
+ # @yield [result, operation] Access the result along with the TransportOperation object
871
+ # @yieldparam result [::Google::Longrunning::Operation]
872
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
873
+ #
874
+ # @return [::Google::Longrunning::Operation]
875
+ # A result object deserialized from the server's reply
876
+ def create_message_bus request_pb, options = nil
877
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
878
+
879
+ verb, uri, query_string_params, body = ServiceStub.transcode_create_message_bus_request request_pb
880
+ query_string_params = if query_string_params.any?
881
+ query_string_params.to_h { |p| p.split "=", 2 }
882
+ else
883
+ {}
884
+ end
885
+
886
+ response = @client_stub.make_http_request(
887
+ verb,
888
+ uri: uri,
889
+ body: body || "",
890
+ params: query_string_params,
891
+ options: options
892
+ )
893
+ operation = ::Gapic::Rest::TransportOperation.new response
894
+ result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
895
+
896
+ yield result, operation if block_given?
897
+ result
898
+ end
899
+
900
+ ##
901
+ # Baseline implementation for the update_message_bus REST call
902
+ #
903
+ # @param request_pb [::Google::Cloud::Eventarc::V1::UpdateMessageBusRequest]
904
+ # A request object representing the call parameters. Required.
905
+ # @param options [::Gapic::CallOptions]
906
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
907
+ #
908
+ # @yield [result, operation] Access the result along with the TransportOperation object
909
+ # @yieldparam result [::Google::Longrunning::Operation]
910
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
911
+ #
912
+ # @return [::Google::Longrunning::Operation]
913
+ # A result object deserialized from the server's reply
914
+ def update_message_bus request_pb, options = nil
915
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
916
+
917
+ verb, uri, query_string_params, body = ServiceStub.transcode_update_message_bus_request request_pb
918
+ query_string_params = if query_string_params.any?
919
+ query_string_params.to_h { |p| p.split "=", 2 }
920
+ else
921
+ {}
922
+ end
923
+
924
+ response = @client_stub.make_http_request(
925
+ verb,
926
+ uri: uri,
927
+ body: body || "",
928
+ params: query_string_params,
929
+ options: options
930
+ )
931
+ operation = ::Gapic::Rest::TransportOperation.new response
932
+ result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
933
+
934
+ yield result, operation if block_given?
935
+ result
936
+ end
937
+
938
+ ##
939
+ # Baseline implementation for the delete_message_bus REST call
940
+ #
941
+ # @param request_pb [::Google::Cloud::Eventarc::V1::DeleteMessageBusRequest]
942
+ # A request object representing the call parameters. Required.
943
+ # @param options [::Gapic::CallOptions]
944
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
945
+ #
946
+ # @yield [result, operation] Access the result along with the TransportOperation object
947
+ # @yieldparam result [::Google::Longrunning::Operation]
948
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
949
+ #
950
+ # @return [::Google::Longrunning::Operation]
951
+ # A result object deserialized from the server's reply
952
+ def delete_message_bus request_pb, options = nil
953
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
954
+
955
+ verb, uri, query_string_params, body = ServiceStub.transcode_delete_message_bus_request request_pb
956
+ query_string_params = if query_string_params.any?
957
+ query_string_params.to_h { |p| p.split "=", 2 }
958
+ else
959
+ {}
960
+ end
961
+
962
+ response = @client_stub.make_http_request(
963
+ verb,
964
+ uri: uri,
965
+ body: body || "",
966
+ params: query_string_params,
967
+ options: options
968
+ )
969
+ operation = ::Gapic::Rest::TransportOperation.new response
970
+ result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
971
+
972
+ yield result, operation if block_given?
973
+ result
974
+ end
975
+
976
+ ##
977
+ # Baseline implementation for the get_enrollment REST call
978
+ #
979
+ # @param request_pb [::Google::Cloud::Eventarc::V1::GetEnrollmentRequest]
980
+ # A request object representing the call parameters. Required.
981
+ # @param options [::Gapic::CallOptions]
982
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
983
+ #
984
+ # @yield [result, operation] Access the result along with the TransportOperation object
985
+ # @yieldparam result [::Google::Cloud::Eventarc::V1::Enrollment]
986
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
987
+ #
988
+ # @return [::Google::Cloud::Eventarc::V1::Enrollment]
989
+ # A result object deserialized from the server's reply
990
+ def get_enrollment request_pb, options = nil
991
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
992
+
993
+ verb, uri, query_string_params, body = ServiceStub.transcode_get_enrollment_request request_pb
994
+ query_string_params = if query_string_params.any?
995
+ query_string_params.to_h { |p| p.split "=", 2 }
996
+ else
997
+ {}
998
+ end
999
+
1000
+ response = @client_stub.make_http_request(
1001
+ verb,
1002
+ uri: uri,
1003
+ body: body || "",
1004
+ params: query_string_params,
1005
+ options: options
1006
+ )
1007
+ operation = ::Gapic::Rest::TransportOperation.new response
1008
+ result = ::Google::Cloud::Eventarc::V1::Enrollment.decode_json response.body, ignore_unknown_fields: true
1009
+
1010
+ yield result, operation if block_given?
1011
+ result
1012
+ end
1013
+
1014
+ ##
1015
+ # Baseline implementation for the list_enrollments REST call
1016
+ #
1017
+ # @param request_pb [::Google::Cloud::Eventarc::V1::ListEnrollmentsRequest]
1018
+ # A request object representing the call parameters. Required.
1019
+ # @param options [::Gapic::CallOptions]
1020
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1021
+ #
1022
+ # @yield [result, operation] Access the result along with the TransportOperation object
1023
+ # @yieldparam result [::Google::Cloud::Eventarc::V1::ListEnrollmentsResponse]
1024
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1025
+ #
1026
+ # @return [::Google::Cloud::Eventarc::V1::ListEnrollmentsResponse]
1027
+ # A result object deserialized from the server's reply
1028
+ def list_enrollments request_pb, options = nil
1029
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
1030
+
1031
+ verb, uri, query_string_params, body = ServiceStub.transcode_list_enrollments_request request_pb
1032
+ query_string_params = if query_string_params.any?
1033
+ query_string_params.to_h { |p| p.split "=", 2 }
1034
+ else
1035
+ {}
1036
+ end
1037
+
1038
+ response = @client_stub.make_http_request(
1039
+ verb,
1040
+ uri: uri,
1041
+ body: body || "",
1042
+ params: query_string_params,
1043
+ options: options
1044
+ )
1045
+ operation = ::Gapic::Rest::TransportOperation.new response
1046
+ result = ::Google::Cloud::Eventarc::V1::ListEnrollmentsResponse.decode_json response.body, ignore_unknown_fields: true
1047
+
1048
+ yield result, operation if block_given?
1049
+ result
1050
+ end
1051
+
1052
+ ##
1053
+ # Baseline implementation for the create_enrollment REST call
1054
+ #
1055
+ # @param request_pb [::Google::Cloud::Eventarc::V1::CreateEnrollmentRequest]
1056
+ # A request object representing the call parameters. Required.
1057
+ # @param options [::Gapic::CallOptions]
1058
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1059
+ #
1060
+ # @yield [result, operation] Access the result along with the TransportOperation object
1061
+ # @yieldparam result [::Google::Longrunning::Operation]
1062
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1063
+ #
1064
+ # @return [::Google::Longrunning::Operation]
1065
+ # A result object deserialized from the server's reply
1066
+ def create_enrollment request_pb, options = nil
1067
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
1068
+
1069
+ verb, uri, query_string_params, body = ServiceStub.transcode_create_enrollment_request request_pb
1070
+ query_string_params = if query_string_params.any?
1071
+ query_string_params.to_h { |p| p.split "=", 2 }
1072
+ else
1073
+ {}
1074
+ end
1075
+
1076
+ response = @client_stub.make_http_request(
1077
+ verb,
1078
+ uri: uri,
1079
+ body: body || "",
1080
+ params: query_string_params,
1081
+ options: options
1082
+ )
1083
+ operation = ::Gapic::Rest::TransportOperation.new response
1084
+ result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
1085
+
1086
+ yield result, operation if block_given?
1087
+ result
1088
+ end
1089
+
1090
+ ##
1091
+ # Baseline implementation for the update_enrollment REST call
1092
+ #
1093
+ # @param request_pb [::Google::Cloud::Eventarc::V1::UpdateEnrollmentRequest]
1094
+ # A request object representing the call parameters. Required.
1095
+ # @param options [::Gapic::CallOptions]
1096
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1097
+ #
1098
+ # @yield [result, operation] Access the result along with the TransportOperation object
1099
+ # @yieldparam result [::Google::Longrunning::Operation]
1100
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1101
+ #
1102
+ # @return [::Google::Longrunning::Operation]
1103
+ # A result object deserialized from the server's reply
1104
+ def update_enrollment request_pb, options = nil
1105
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
1106
+
1107
+ verb, uri, query_string_params, body = ServiceStub.transcode_update_enrollment_request request_pb
1108
+ query_string_params = if query_string_params.any?
1109
+ query_string_params.to_h { |p| p.split "=", 2 }
1110
+ else
1111
+ {}
1112
+ end
1113
+
1114
+ response = @client_stub.make_http_request(
1115
+ verb,
1116
+ uri: uri,
1117
+ body: body || "",
1118
+ params: query_string_params,
1119
+ options: options
1120
+ )
1121
+ operation = ::Gapic::Rest::TransportOperation.new response
1122
+ result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
1123
+
1124
+ yield result, operation if block_given?
1125
+ result
1126
+ end
1127
+
1128
+ ##
1129
+ # Baseline implementation for the delete_enrollment REST call
1130
+ #
1131
+ # @param request_pb [::Google::Cloud::Eventarc::V1::DeleteEnrollmentRequest]
1132
+ # A request object representing the call parameters. Required.
1133
+ # @param options [::Gapic::CallOptions]
1134
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1135
+ #
1136
+ # @yield [result, operation] Access the result along with the TransportOperation object
1137
+ # @yieldparam result [::Google::Longrunning::Operation]
1138
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1139
+ #
1140
+ # @return [::Google::Longrunning::Operation]
1141
+ # A result object deserialized from the server's reply
1142
+ def delete_enrollment request_pb, options = nil
1143
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
1144
+
1145
+ verb, uri, query_string_params, body = ServiceStub.transcode_delete_enrollment_request request_pb
1146
+ query_string_params = if query_string_params.any?
1147
+ query_string_params.to_h { |p| p.split "=", 2 }
1148
+ else
1149
+ {}
1150
+ end
1151
+
1152
+ response = @client_stub.make_http_request(
1153
+ verb,
1154
+ uri: uri,
1155
+ body: body || "",
1156
+ params: query_string_params,
1157
+ options: options
1158
+ )
1159
+ operation = ::Gapic::Rest::TransportOperation.new response
1160
+ result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
1161
+
1162
+ yield result, operation if block_given?
1163
+ result
1164
+ end
1165
+
1166
+ ##
1167
+ # Baseline implementation for the get_pipeline REST call
1168
+ #
1169
+ # @param request_pb [::Google::Cloud::Eventarc::V1::GetPipelineRequest]
1170
+ # A request object representing the call parameters. Required.
1171
+ # @param options [::Gapic::CallOptions]
1172
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1173
+ #
1174
+ # @yield [result, operation] Access the result along with the TransportOperation object
1175
+ # @yieldparam result [::Google::Cloud::Eventarc::V1::Pipeline]
1176
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1177
+ #
1178
+ # @return [::Google::Cloud::Eventarc::V1::Pipeline]
1179
+ # A result object deserialized from the server's reply
1180
+ def get_pipeline request_pb, options = nil
1181
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
1182
+
1183
+ verb, uri, query_string_params, body = ServiceStub.transcode_get_pipeline_request request_pb
1184
+ query_string_params = if query_string_params.any?
1185
+ query_string_params.to_h { |p| p.split "=", 2 }
1186
+ else
1187
+ {}
1188
+ end
1189
+
1190
+ response = @client_stub.make_http_request(
1191
+ verb,
1192
+ uri: uri,
1193
+ body: body || "",
1194
+ params: query_string_params,
1195
+ options: options
1196
+ )
1197
+ operation = ::Gapic::Rest::TransportOperation.new response
1198
+ result = ::Google::Cloud::Eventarc::V1::Pipeline.decode_json response.body, ignore_unknown_fields: true
1199
+
1200
+ yield result, operation if block_given?
1201
+ result
1202
+ end
1203
+
1204
+ ##
1205
+ # Baseline implementation for the list_pipelines REST call
1206
+ #
1207
+ # @param request_pb [::Google::Cloud::Eventarc::V1::ListPipelinesRequest]
1208
+ # A request object representing the call parameters. Required.
1209
+ # @param options [::Gapic::CallOptions]
1210
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1211
+ #
1212
+ # @yield [result, operation] Access the result along with the TransportOperation object
1213
+ # @yieldparam result [::Google::Cloud::Eventarc::V1::ListPipelinesResponse]
1214
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1215
+ #
1216
+ # @return [::Google::Cloud::Eventarc::V1::ListPipelinesResponse]
1217
+ # A result object deserialized from the server's reply
1218
+ def list_pipelines request_pb, options = nil
1219
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
1220
+
1221
+ verb, uri, query_string_params, body = ServiceStub.transcode_list_pipelines_request request_pb
1222
+ query_string_params = if query_string_params.any?
1223
+ query_string_params.to_h { |p| p.split "=", 2 }
1224
+ else
1225
+ {}
1226
+ end
1227
+
1228
+ response = @client_stub.make_http_request(
1229
+ verb,
1230
+ uri: uri,
1231
+ body: body || "",
1232
+ params: query_string_params,
1233
+ options: options
1234
+ )
1235
+ operation = ::Gapic::Rest::TransportOperation.new response
1236
+ result = ::Google::Cloud::Eventarc::V1::ListPipelinesResponse.decode_json response.body, ignore_unknown_fields: true
1237
+
1238
+ yield result, operation if block_given?
1239
+ result
1240
+ end
1241
+
1242
+ ##
1243
+ # Baseline implementation for the create_pipeline REST call
1244
+ #
1245
+ # @param request_pb [::Google::Cloud::Eventarc::V1::CreatePipelineRequest]
1246
+ # A request object representing the call parameters. Required.
1247
+ # @param options [::Gapic::CallOptions]
1248
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1249
+ #
1250
+ # @yield [result, operation] Access the result along with the TransportOperation object
1251
+ # @yieldparam result [::Google::Longrunning::Operation]
1252
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1253
+ #
1254
+ # @return [::Google::Longrunning::Operation]
1255
+ # A result object deserialized from the server's reply
1256
+ def create_pipeline request_pb, options = nil
1257
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
1258
+
1259
+ verb, uri, query_string_params, body = ServiceStub.transcode_create_pipeline_request request_pb
1260
+ query_string_params = if query_string_params.any?
1261
+ query_string_params.to_h { |p| p.split "=", 2 }
1262
+ else
1263
+ {}
1264
+ end
1265
+
1266
+ response = @client_stub.make_http_request(
1267
+ verb,
1268
+ uri: uri,
1269
+ body: body || "",
1270
+ params: query_string_params,
1271
+ options: options
1272
+ )
1273
+ operation = ::Gapic::Rest::TransportOperation.new response
1274
+ result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
1275
+
1276
+ yield result, operation if block_given?
1277
+ result
1278
+ end
1279
+
1280
+ ##
1281
+ # Baseline implementation for the update_pipeline REST call
1282
+ #
1283
+ # @param request_pb [::Google::Cloud::Eventarc::V1::UpdatePipelineRequest]
1284
+ # A request object representing the call parameters. Required.
1285
+ # @param options [::Gapic::CallOptions]
1286
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1287
+ #
1288
+ # @yield [result, operation] Access the result along with the TransportOperation object
1289
+ # @yieldparam result [::Google::Longrunning::Operation]
1290
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1291
+ #
1292
+ # @return [::Google::Longrunning::Operation]
1293
+ # A result object deserialized from the server's reply
1294
+ def update_pipeline request_pb, options = nil
1295
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
1296
+
1297
+ verb, uri, query_string_params, body = ServiceStub.transcode_update_pipeline_request request_pb
1298
+ query_string_params = if query_string_params.any?
1299
+ query_string_params.to_h { |p| p.split "=", 2 }
1300
+ else
1301
+ {}
1302
+ end
1303
+
1304
+ response = @client_stub.make_http_request(
1305
+ verb,
1306
+ uri: uri,
1307
+ body: body || "",
1308
+ params: query_string_params,
1309
+ options: options
1310
+ )
1311
+ operation = ::Gapic::Rest::TransportOperation.new response
1312
+ result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
1313
+
1314
+ yield result, operation if block_given?
1315
+ result
1316
+ end
1317
+
1318
+ ##
1319
+ # Baseline implementation for the delete_pipeline REST call
1320
+ #
1321
+ # @param request_pb [::Google::Cloud::Eventarc::V1::DeletePipelineRequest]
1322
+ # A request object representing the call parameters. Required.
1323
+ # @param options [::Gapic::CallOptions]
1324
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1325
+ #
1326
+ # @yield [result, operation] Access the result along with the TransportOperation object
1327
+ # @yieldparam result [::Google::Longrunning::Operation]
1328
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1329
+ #
1330
+ # @return [::Google::Longrunning::Operation]
1331
+ # A result object deserialized from the server's reply
1332
+ def delete_pipeline request_pb, options = nil
1333
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
1334
+
1335
+ verb, uri, query_string_params, body = ServiceStub.transcode_delete_pipeline_request request_pb
1336
+ query_string_params = if query_string_params.any?
1337
+ query_string_params.to_h { |p| p.split "=", 2 }
1338
+ else
1339
+ {}
1340
+ end
1341
+
1342
+ response = @client_stub.make_http_request(
1343
+ verb,
1344
+ uri: uri,
1345
+ body: body || "",
1346
+ params: query_string_params,
1347
+ options: options
1348
+ )
1349
+ operation = ::Gapic::Rest::TransportOperation.new response
1350
+ result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
1351
+
1352
+ yield result, operation if block_given?
1353
+ result
1354
+ end
1355
+
1356
+ ##
1357
+ # Baseline implementation for the get_google_api_source REST call
1358
+ #
1359
+ # @param request_pb [::Google::Cloud::Eventarc::V1::GetGoogleApiSourceRequest]
1360
+ # A request object representing the call parameters. Required.
1361
+ # @param options [::Gapic::CallOptions]
1362
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1363
+ #
1364
+ # @yield [result, operation] Access the result along with the TransportOperation object
1365
+ # @yieldparam result [::Google::Cloud::Eventarc::V1::GoogleApiSource]
1366
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1367
+ #
1368
+ # @return [::Google::Cloud::Eventarc::V1::GoogleApiSource]
1369
+ # A result object deserialized from the server's reply
1370
+ def get_google_api_source request_pb, options = nil
1371
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
1372
+
1373
+ verb, uri, query_string_params, body = ServiceStub.transcode_get_google_api_source_request request_pb
1374
+ query_string_params = if query_string_params.any?
1375
+ query_string_params.to_h { |p| p.split "=", 2 }
1376
+ else
1377
+ {}
1378
+ end
1379
+
1380
+ response = @client_stub.make_http_request(
1381
+ verb,
1382
+ uri: uri,
1383
+ body: body || "",
1384
+ params: query_string_params,
1385
+ options: options
1386
+ )
1387
+ operation = ::Gapic::Rest::TransportOperation.new response
1388
+ result = ::Google::Cloud::Eventarc::V1::GoogleApiSource.decode_json response.body, ignore_unknown_fields: true
1389
+
1390
+ yield result, operation if block_given?
1391
+ result
1392
+ end
1393
+
1394
+ ##
1395
+ # Baseline implementation for the list_google_api_sources REST call
1396
+ #
1397
+ # @param request_pb [::Google::Cloud::Eventarc::V1::ListGoogleApiSourcesRequest]
1398
+ # A request object representing the call parameters. Required.
1399
+ # @param options [::Gapic::CallOptions]
1400
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1401
+ #
1402
+ # @yield [result, operation] Access the result along with the TransportOperation object
1403
+ # @yieldparam result [::Google::Cloud::Eventarc::V1::ListGoogleApiSourcesResponse]
1404
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1405
+ #
1406
+ # @return [::Google::Cloud::Eventarc::V1::ListGoogleApiSourcesResponse]
1407
+ # A result object deserialized from the server's reply
1408
+ def list_google_api_sources request_pb, options = nil
1409
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
1410
+
1411
+ verb, uri, query_string_params, body = ServiceStub.transcode_list_google_api_sources_request request_pb
1412
+ query_string_params = if query_string_params.any?
1413
+ query_string_params.to_h { |p| p.split "=", 2 }
1414
+ else
1415
+ {}
1416
+ end
1417
+
1418
+ response = @client_stub.make_http_request(
1419
+ verb,
1420
+ uri: uri,
1421
+ body: body || "",
1422
+ params: query_string_params,
1423
+ options: options
1424
+ )
1425
+ operation = ::Gapic::Rest::TransportOperation.new response
1426
+ result = ::Google::Cloud::Eventarc::V1::ListGoogleApiSourcesResponse.decode_json response.body, ignore_unknown_fields: true
1427
+
1428
+ yield result, operation if block_given?
1429
+ result
1430
+ end
1431
+
1432
+ ##
1433
+ # Baseline implementation for the create_google_api_source REST call
1434
+ #
1435
+ # @param request_pb [::Google::Cloud::Eventarc::V1::CreateGoogleApiSourceRequest]
1436
+ # A request object representing the call parameters. Required.
1437
+ # @param options [::Gapic::CallOptions]
1438
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1439
+ #
1440
+ # @yield [result, operation] Access the result along with the TransportOperation object
1441
+ # @yieldparam result [::Google::Longrunning::Operation]
1442
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1443
+ #
1444
+ # @return [::Google::Longrunning::Operation]
1445
+ # A result object deserialized from the server's reply
1446
+ def create_google_api_source request_pb, options = nil
1447
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
1448
+
1449
+ verb, uri, query_string_params, body = ServiceStub.transcode_create_google_api_source_request request_pb
1450
+ query_string_params = if query_string_params.any?
1451
+ query_string_params.to_h { |p| p.split "=", 2 }
1452
+ else
1453
+ {}
1454
+ end
1455
+
1456
+ response = @client_stub.make_http_request(
1457
+ verb,
1458
+ uri: uri,
1459
+ body: body || "",
1460
+ params: query_string_params,
1461
+ options: options
1462
+ )
1463
+ operation = ::Gapic::Rest::TransportOperation.new response
1464
+ result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
1465
+
1466
+ yield result, operation if block_given?
1467
+ result
1468
+ end
1469
+
1470
+ ##
1471
+ # Baseline implementation for the update_google_api_source REST call
1472
+ #
1473
+ # @param request_pb [::Google::Cloud::Eventarc::V1::UpdateGoogleApiSourceRequest]
1474
+ # A request object representing the call parameters. Required.
1475
+ # @param options [::Gapic::CallOptions]
1476
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1477
+ #
1478
+ # @yield [result, operation] Access the result along with the TransportOperation object
1479
+ # @yieldparam result [::Google::Longrunning::Operation]
1480
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1481
+ #
1482
+ # @return [::Google::Longrunning::Operation]
1483
+ # A result object deserialized from the server's reply
1484
+ def update_google_api_source request_pb, options = nil
1485
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
1486
+
1487
+ verb, uri, query_string_params, body = ServiceStub.transcode_update_google_api_source_request request_pb
1488
+ query_string_params = if query_string_params.any?
1489
+ query_string_params.to_h { |p| p.split "=", 2 }
1490
+ else
1491
+ {}
1492
+ end
1493
+
1494
+ response = @client_stub.make_http_request(
1495
+ verb,
1496
+ uri: uri,
1497
+ body: body || "",
1498
+ params: query_string_params,
1499
+ options: options
1500
+ )
1501
+ operation = ::Gapic::Rest::TransportOperation.new response
1502
+ result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
1503
+
1504
+ yield result, operation if block_given?
1505
+ result
1506
+ end
1507
+
1508
+ ##
1509
+ # Baseline implementation for the delete_google_api_source REST call
1510
+ #
1511
+ # @param request_pb [::Google::Cloud::Eventarc::V1::DeleteGoogleApiSourceRequest]
1512
+ # A request object representing the call parameters. Required.
1513
+ # @param options [::Gapic::CallOptions]
1514
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1515
+ #
1516
+ # @yield [result, operation] Access the result along with the TransportOperation object
1517
+ # @yieldparam result [::Google::Longrunning::Operation]
1518
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1519
+ #
1520
+ # @return [::Google::Longrunning::Operation]
1521
+ # A result object deserialized from the server's reply
1522
+ def delete_google_api_source request_pb, options = nil
1523
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
1524
+
1525
+ verb, uri, query_string_params, body = ServiceStub.transcode_delete_google_api_source_request request_pb
1526
+ query_string_params = if query_string_params.any?
1527
+ query_string_params.to_h { |p| p.split "=", 2 }
1528
+ else
1529
+ {}
1530
+ end
1531
+
1532
+ response = @client_stub.make_http_request(
1533
+ verb,
1534
+ uri: uri,
1535
+ body: body || "",
1536
+ params: query_string_params,
1537
+ options: options
1538
+ )
1539
+ operation = ::Gapic::Rest::TransportOperation.new response
1540
+ result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
1541
+
1542
+ yield result, operation if block_given?
1543
+ result
1544
+ end
1545
+
1546
+ ##
1547
+ # @private
1548
+ #
1549
+ # GRPC transcoding helper method for the get_trigger REST call
1550
+ #
1551
+ # @param request_pb [::Google::Cloud::Eventarc::V1::GetTriggerRequest]
1552
+ # A request object representing the call parameters. Required.
1553
+ # @return [Array(String, [String, nil], Hash{String => String})]
1554
+ # Uri, Body, Query string parameters
1555
+ def self.transcode_get_trigger_request request_pb
1556
+ transcoder = Gapic::Rest::GrpcTranscoder.new
1557
+ .with_bindings(
1558
+ uri_method: :get,
1559
+ uri_template: "/v1/{name}",
1560
+ matches: [
1561
+ ["name", %r{^projects/[^/]+/locations/[^/]+/triggers/[^/]+/?$}, false]
1562
+ ]
1563
+ )
1564
+ transcoder.transcode request_pb
1565
+ end
1566
+
1567
+ ##
1568
+ # @private
1569
+ #
1570
+ # GRPC transcoding helper method for the list_triggers REST call
1571
+ #
1572
+ # @param request_pb [::Google::Cloud::Eventarc::V1::ListTriggersRequest]
1573
+ # A request object representing the call parameters. Required.
1574
+ # @return [Array(String, [String, nil], Hash{String => String})]
1575
+ # Uri, Body, Query string parameters
1576
+ def self.transcode_list_triggers_request request_pb
1577
+ transcoder = Gapic::Rest::GrpcTranscoder.new
1578
+ .with_bindings(
1579
+ uri_method: :get,
1580
+ uri_template: "/v1/{parent}/triggers",
1581
+ matches: [
1582
+ ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
1583
+ ]
1584
+ )
1585
+ transcoder.transcode request_pb
1586
+ end
1587
+
1588
+ ##
1589
+ # @private
1590
+ #
1591
+ # GRPC transcoding helper method for the create_trigger REST call
1592
+ #
1593
+ # @param request_pb [::Google::Cloud::Eventarc::V1::CreateTriggerRequest]
1594
+ # A request object representing the call parameters. Required.
1595
+ # @return [Array(String, [String, nil], Hash{String => String})]
1596
+ # Uri, Body, Query string parameters
1597
+ def self.transcode_create_trigger_request request_pb
1598
+ transcoder = Gapic::Rest::GrpcTranscoder.new
1599
+ .with_bindings(
1600
+ uri_method: :post,
1601
+ uri_template: "/v1/{parent}/triggers",
1602
+ body: "trigger",
1603
+ matches: [
1604
+ ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
1605
+ ]
1606
+ )
1607
+ transcoder.transcode request_pb
1608
+ end
1609
+
1610
+ ##
1611
+ # @private
1612
+ #
1613
+ # GRPC transcoding helper method for the update_trigger REST call
1614
+ #
1615
+ # @param request_pb [::Google::Cloud::Eventarc::V1::UpdateTriggerRequest]
1616
+ # A request object representing the call parameters. Required.
1617
+ # @return [Array(String, [String, nil], Hash{String => String})]
1618
+ # Uri, Body, Query string parameters
1619
+ def self.transcode_update_trigger_request request_pb
1620
+ transcoder = Gapic::Rest::GrpcTranscoder.new
1621
+ .with_bindings(
1622
+ uri_method: :patch,
1623
+ uri_template: "/v1/{trigger.name}",
1624
+ body: "trigger",
1625
+ matches: [
1626
+ ["trigger.name", %r{^projects/[^/]+/locations/[^/]+/triggers/[^/]+/?$}, false]
1627
+ ]
1628
+ )
1629
+ transcoder.transcode request_pb
1630
+ end
1631
+
1632
+ ##
1633
+ # @private
1634
+ #
1635
+ # GRPC transcoding helper method for the delete_trigger REST call
1636
+ #
1637
+ # @param request_pb [::Google::Cloud::Eventarc::V1::DeleteTriggerRequest]
1638
+ # A request object representing the call parameters. Required.
1639
+ # @return [Array(String, [String, nil], Hash{String => String})]
1640
+ # Uri, Body, Query string parameters
1641
+ def self.transcode_delete_trigger_request request_pb
1642
+ transcoder = Gapic::Rest::GrpcTranscoder.new
1643
+ .with_bindings(
1644
+ uri_method: :delete,
1645
+ uri_template: "/v1/{name}",
1646
+ matches: [
1647
+ ["name", %r{^projects/[^/]+/locations/[^/]+/triggers/[^/]+/?$}, false]
1648
+ ]
1649
+ )
1650
+ transcoder.transcode request_pb
1651
+ end
1652
+
1653
+ ##
1654
+ # @private
1655
+ #
1656
+ # GRPC transcoding helper method for the get_channel REST call
1657
+ #
1658
+ # @param request_pb [::Google::Cloud::Eventarc::V1::GetChannelRequest]
1659
+ # A request object representing the call parameters. Required.
1660
+ # @return [Array(String, [String, nil], Hash{String => String})]
1661
+ # Uri, Body, Query string parameters
1662
+ def self.transcode_get_channel_request request_pb
1663
+ transcoder = Gapic::Rest::GrpcTranscoder.new
1664
+ .with_bindings(
1665
+ uri_method: :get,
1666
+ uri_template: "/v1/{name}",
1667
+ matches: [
1668
+ ["name", %r{^projects/[^/]+/locations/[^/]+/channels/[^/]+/?$}, false]
1669
+ ]
1670
+ )
1671
+ transcoder.transcode request_pb
1672
+ end
1673
+
1674
+ ##
1675
+ # @private
1676
+ #
1677
+ # GRPC transcoding helper method for the list_channels REST call
1678
+ #
1679
+ # @param request_pb [::Google::Cloud::Eventarc::V1::ListChannelsRequest]
1680
+ # A request object representing the call parameters. Required.
1681
+ # @return [Array(String, [String, nil], Hash{String => String})]
1682
+ # Uri, Body, Query string parameters
1683
+ def self.transcode_list_channels_request request_pb
1684
+ transcoder = Gapic::Rest::GrpcTranscoder.new
1685
+ .with_bindings(
1686
+ uri_method: :get,
1687
+ uri_template: "/v1/{parent}/channels",
1688
+ matches: [
1689
+ ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
1690
+ ]
1691
+ )
1692
+ transcoder.transcode request_pb
1693
+ end
1694
+
1695
+ ##
1696
+ # @private
1697
+ #
1698
+ # GRPC transcoding helper method for the create_channel REST call
1699
+ #
1700
+ # @param request_pb [::Google::Cloud::Eventarc::V1::CreateChannelRequest]
1701
+ # A request object representing the call parameters. Required.
1702
+ # @return [Array(String, [String, nil], Hash{String => String})]
1703
+ # Uri, Body, Query string parameters
1704
+ def self.transcode_create_channel_request request_pb
1705
+ transcoder = Gapic::Rest::GrpcTranscoder.new
1706
+ .with_bindings(
1707
+ uri_method: :post,
1708
+ uri_template: "/v1/{parent}/channels",
1709
+ body: "channel",
1710
+ matches: [
1711
+ ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
1712
+ ]
1713
+ )
1714
+ transcoder.transcode request_pb
1715
+ end
1716
+
1717
+ ##
1718
+ # @private
1719
+ #
1720
+ # GRPC transcoding helper method for the update_channel REST call
1721
+ #
1722
+ # @param request_pb [::Google::Cloud::Eventarc::V1::UpdateChannelRequest]
1723
+ # A request object representing the call parameters. Required.
1724
+ # @return [Array(String, [String, nil], Hash{String => String})]
1725
+ # Uri, Body, Query string parameters
1726
+ def self.transcode_update_channel_request request_pb
1727
+ transcoder = Gapic::Rest::GrpcTranscoder.new
1728
+ .with_bindings(
1729
+ uri_method: :patch,
1730
+ uri_template: "/v1/{channel.name}",
1731
+ body: "channel",
1732
+ matches: [
1733
+ ["channel.name", %r{^projects/[^/]+/locations/[^/]+/channels/[^/]+/?$}, false]
1734
+ ]
1735
+ )
1736
+ transcoder.transcode request_pb
1737
+ end
1738
+
1739
+ ##
1740
+ # @private
1741
+ #
1742
+ # GRPC transcoding helper method for the delete_channel REST call
1743
+ #
1744
+ # @param request_pb [::Google::Cloud::Eventarc::V1::DeleteChannelRequest]
1745
+ # A request object representing the call parameters. Required.
1746
+ # @return [Array(String, [String, nil], Hash{String => String})]
1747
+ # Uri, Body, Query string parameters
1748
+ def self.transcode_delete_channel_request request_pb
1749
+ transcoder = Gapic::Rest::GrpcTranscoder.new
1750
+ .with_bindings(
1751
+ uri_method: :delete,
1752
+ uri_template: "/v1/{name}",
1753
+ matches: [
1754
+ ["name", %r{^projects/[^/]+/locations/[^/]+/channels/[^/]+/?$}, false]
1755
+ ]
1756
+ )
1757
+ transcoder.transcode request_pb
1758
+ end
1759
+
1760
+ ##
1761
+ # @private
1762
+ #
1763
+ # GRPC transcoding helper method for the get_provider REST call
1764
+ #
1765
+ # @param request_pb [::Google::Cloud::Eventarc::V1::GetProviderRequest]
1766
+ # A request object representing the call parameters. Required.
1767
+ # @return [Array(String, [String, nil], Hash{String => String})]
1768
+ # Uri, Body, Query string parameters
1769
+ def self.transcode_get_provider_request request_pb
1770
+ transcoder = Gapic::Rest::GrpcTranscoder.new
1771
+ .with_bindings(
1772
+ uri_method: :get,
1773
+ uri_template: "/v1/{name}",
1774
+ matches: [
1775
+ ["name", %r{^projects/[^/]+/locations/[^/]+/providers/[^/]+/?$}, false]
1776
+ ]
1777
+ )
1778
+ transcoder.transcode request_pb
1779
+ end
1780
+
1781
+ ##
1782
+ # @private
1783
+ #
1784
+ # GRPC transcoding helper method for the list_providers REST call
1785
+ #
1786
+ # @param request_pb [::Google::Cloud::Eventarc::V1::ListProvidersRequest]
1787
+ # A request object representing the call parameters. Required.
1788
+ # @return [Array(String, [String, nil], Hash{String => String})]
1789
+ # Uri, Body, Query string parameters
1790
+ def self.transcode_list_providers_request request_pb
1791
+ transcoder = Gapic::Rest::GrpcTranscoder.new
1792
+ .with_bindings(
1793
+ uri_method: :get,
1794
+ uri_template: "/v1/{parent}/providers",
1795
+ matches: [
1796
+ ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
1797
+ ]
1798
+ )
1799
+ transcoder.transcode request_pb
1800
+ end
1801
+
1802
+ ##
1803
+ # @private
1804
+ #
1805
+ # GRPC transcoding helper method for the get_channel_connection REST call
1806
+ #
1807
+ # @param request_pb [::Google::Cloud::Eventarc::V1::GetChannelConnectionRequest]
1808
+ # A request object representing the call parameters. Required.
1809
+ # @return [Array(String, [String, nil], Hash{String => String})]
1810
+ # Uri, Body, Query string parameters
1811
+ def self.transcode_get_channel_connection_request request_pb
1812
+ transcoder = Gapic::Rest::GrpcTranscoder.new
1813
+ .with_bindings(
1814
+ uri_method: :get,
1815
+ uri_template: "/v1/{name}",
1816
+ matches: [
1817
+ ["name", %r{^projects/[^/]+/locations/[^/]+/channelConnections/[^/]+/?$}, false]
1818
+ ]
1819
+ )
1820
+ transcoder.transcode request_pb
1821
+ end
1822
+
748
1823
  ##
749
1824
  # @private
750
1825
  #
751
- # GRPC transcoding helper method for the get_trigger REST call
1826
+ # GRPC transcoding helper method for the list_channel_connections REST call
752
1827
  #
753
- # @param request_pb [::Google::Cloud::Eventarc::V1::GetTriggerRequest]
1828
+ # @param request_pb [::Google::Cloud::Eventarc::V1::ListChannelConnectionsRequest]
754
1829
  # A request object representing the call parameters. Required.
755
1830
  # @return [Array(String, [String, nil], Hash{String => String})]
756
1831
  # Uri, Body, Query string parameters
757
- def self.transcode_get_trigger_request request_pb
1832
+ def self.transcode_list_channel_connections_request request_pb
758
1833
  transcoder = Gapic::Rest::GrpcTranscoder.new
759
1834
  .with_bindings(
760
1835
  uri_method: :get,
761
- uri_template: "/v1/{name}",
1836
+ uri_template: "/v1/{parent}/channelConnections",
762
1837
  matches: [
763
- ["name", %r{^projects/[^/]+/locations/[^/]+/triggers/[^/]+/?$}, false]
1838
+ ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
764
1839
  ]
765
1840
  )
766
1841
  transcoder.transcode request_pb
@@ -769,17 +1844,18 @@ module Google
769
1844
  ##
770
1845
  # @private
771
1846
  #
772
- # GRPC transcoding helper method for the list_triggers REST call
1847
+ # GRPC transcoding helper method for the create_channel_connection REST call
773
1848
  #
774
- # @param request_pb [::Google::Cloud::Eventarc::V1::ListTriggersRequest]
1849
+ # @param request_pb [::Google::Cloud::Eventarc::V1::CreateChannelConnectionRequest]
775
1850
  # A request object representing the call parameters. Required.
776
1851
  # @return [Array(String, [String, nil], Hash{String => String})]
777
1852
  # Uri, Body, Query string parameters
778
- def self.transcode_list_triggers_request request_pb
1853
+ def self.transcode_create_channel_connection_request request_pb
779
1854
  transcoder = Gapic::Rest::GrpcTranscoder.new
780
1855
  .with_bindings(
781
- uri_method: :get,
782
- uri_template: "/v1/{parent}/triggers",
1856
+ uri_method: :post,
1857
+ uri_template: "/v1/{parent}/channelConnections",
1858
+ body: "channel_connection",
783
1859
  matches: [
784
1860
  ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
785
1861
  ]
@@ -790,20 +1866,19 @@ module Google
790
1866
  ##
791
1867
  # @private
792
1868
  #
793
- # GRPC transcoding helper method for the create_trigger REST call
1869
+ # GRPC transcoding helper method for the delete_channel_connection REST call
794
1870
  #
795
- # @param request_pb [::Google::Cloud::Eventarc::V1::CreateTriggerRequest]
1871
+ # @param request_pb [::Google::Cloud::Eventarc::V1::DeleteChannelConnectionRequest]
796
1872
  # A request object representing the call parameters. Required.
797
1873
  # @return [Array(String, [String, nil], Hash{String => String})]
798
1874
  # Uri, Body, Query string parameters
799
- def self.transcode_create_trigger_request request_pb
1875
+ def self.transcode_delete_channel_connection_request request_pb
800
1876
  transcoder = Gapic::Rest::GrpcTranscoder.new
801
1877
  .with_bindings(
802
- uri_method: :post,
803
- uri_template: "/v1/{parent}/triggers",
804
- body: "trigger",
1878
+ uri_method: :delete,
1879
+ uri_template: "/v1/{name}",
805
1880
  matches: [
806
- ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
1881
+ ["name", %r{^projects/[^/]+/locations/[^/]+/channelConnections/[^/]+/?$}, false]
807
1882
  ]
808
1883
  )
809
1884
  transcoder.transcode request_pb
@@ -812,20 +1887,19 @@ module Google
812
1887
  ##
813
1888
  # @private
814
1889
  #
815
- # GRPC transcoding helper method for the update_trigger REST call
1890
+ # GRPC transcoding helper method for the get_google_channel_config REST call
816
1891
  #
817
- # @param request_pb [::Google::Cloud::Eventarc::V1::UpdateTriggerRequest]
1892
+ # @param request_pb [::Google::Cloud::Eventarc::V1::GetGoogleChannelConfigRequest]
818
1893
  # A request object representing the call parameters. Required.
819
1894
  # @return [Array(String, [String, nil], Hash{String => String})]
820
1895
  # Uri, Body, Query string parameters
821
- def self.transcode_update_trigger_request request_pb
1896
+ def self.transcode_get_google_channel_config_request request_pb
822
1897
  transcoder = Gapic::Rest::GrpcTranscoder.new
823
1898
  .with_bindings(
824
- uri_method: :patch,
825
- uri_template: "/v1/{trigger.name}",
826
- body: "trigger",
1899
+ uri_method: :get,
1900
+ uri_template: "/v1/{name}",
827
1901
  matches: [
828
- ["trigger.name", %r{^projects/[^/]+/locations/[^/]+/triggers/[^/]+/?$}, false]
1902
+ ["name", %r{^projects/[^/]+/locations/[^/]+/googleChannelConfig/?$}, false]
829
1903
  ]
830
1904
  )
831
1905
  transcoder.transcode request_pb
@@ -834,19 +1908,20 @@ module Google
834
1908
  ##
835
1909
  # @private
836
1910
  #
837
- # GRPC transcoding helper method for the delete_trigger REST call
1911
+ # GRPC transcoding helper method for the update_google_channel_config REST call
838
1912
  #
839
- # @param request_pb [::Google::Cloud::Eventarc::V1::DeleteTriggerRequest]
1913
+ # @param request_pb [::Google::Cloud::Eventarc::V1::UpdateGoogleChannelConfigRequest]
840
1914
  # A request object representing the call parameters. Required.
841
1915
  # @return [Array(String, [String, nil], Hash{String => String})]
842
1916
  # Uri, Body, Query string parameters
843
- def self.transcode_delete_trigger_request request_pb
1917
+ def self.transcode_update_google_channel_config_request request_pb
844
1918
  transcoder = Gapic::Rest::GrpcTranscoder.new
845
1919
  .with_bindings(
846
- uri_method: :delete,
847
- uri_template: "/v1/{name}",
1920
+ uri_method: :patch,
1921
+ uri_template: "/v1/{google_channel_config.name}",
1922
+ body: "google_channel_config",
848
1923
  matches: [
849
- ["name", %r{^projects/[^/]+/locations/[^/]+/triggers/[^/]+/?$}, false]
1924
+ ["google_channel_config.name", %r{^projects/[^/]+/locations/[^/]+/googleChannelConfig/?$}, false]
850
1925
  ]
851
1926
  )
852
1927
  transcoder.transcode request_pb
@@ -855,19 +1930,19 @@ module Google
855
1930
  ##
856
1931
  # @private
857
1932
  #
858
- # GRPC transcoding helper method for the get_channel REST call
1933
+ # GRPC transcoding helper method for the get_message_bus REST call
859
1934
  #
860
- # @param request_pb [::Google::Cloud::Eventarc::V1::GetChannelRequest]
1935
+ # @param request_pb [::Google::Cloud::Eventarc::V1::GetMessageBusRequest]
861
1936
  # A request object representing the call parameters. Required.
862
1937
  # @return [Array(String, [String, nil], Hash{String => String})]
863
1938
  # Uri, Body, Query string parameters
864
- def self.transcode_get_channel_request request_pb
1939
+ def self.transcode_get_message_bus_request request_pb
865
1940
  transcoder = Gapic::Rest::GrpcTranscoder.new
866
1941
  .with_bindings(
867
1942
  uri_method: :get,
868
1943
  uri_template: "/v1/{name}",
869
1944
  matches: [
870
- ["name", %r{^projects/[^/]+/locations/[^/]+/channels/[^/]+/?$}, false]
1945
+ ["name", %r{^projects/[^/]+/locations/[^/]+/messageBuses/[^/]+/?$}, false]
871
1946
  ]
872
1947
  )
873
1948
  transcoder.transcode request_pb
@@ -876,17 +1951,17 @@ module Google
876
1951
  ##
877
1952
  # @private
878
1953
  #
879
- # GRPC transcoding helper method for the list_channels REST call
1954
+ # GRPC transcoding helper method for the list_message_buses REST call
880
1955
  #
881
- # @param request_pb [::Google::Cloud::Eventarc::V1::ListChannelsRequest]
1956
+ # @param request_pb [::Google::Cloud::Eventarc::V1::ListMessageBusesRequest]
882
1957
  # A request object representing the call parameters. Required.
883
1958
  # @return [Array(String, [String, nil], Hash{String => String})]
884
1959
  # Uri, Body, Query string parameters
885
- def self.transcode_list_channels_request request_pb
1960
+ def self.transcode_list_message_buses_request request_pb
886
1961
  transcoder = Gapic::Rest::GrpcTranscoder.new
887
1962
  .with_bindings(
888
1963
  uri_method: :get,
889
- uri_template: "/v1/{parent}/channels",
1964
+ uri_template: "/v1/{parent}/messageBuses",
890
1965
  matches: [
891
1966
  ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
892
1967
  ]
@@ -897,18 +1972,39 @@ module Google
897
1972
  ##
898
1973
  # @private
899
1974
  #
900
- # GRPC transcoding helper method for the create_channel REST call
1975
+ # GRPC transcoding helper method for the list_message_bus_enrollments REST call
901
1976
  #
902
- # @param request_pb [::Google::Cloud::Eventarc::V1::CreateChannelRequest]
1977
+ # @param request_pb [::Google::Cloud::Eventarc::V1::ListMessageBusEnrollmentsRequest]
903
1978
  # A request object representing the call parameters. Required.
904
1979
  # @return [Array(String, [String, nil], Hash{String => String})]
905
1980
  # Uri, Body, Query string parameters
906
- def self.transcode_create_channel_request request_pb
1981
+ def self.transcode_list_message_bus_enrollments_request request_pb
1982
+ transcoder = Gapic::Rest::GrpcTranscoder.new
1983
+ .with_bindings(
1984
+ uri_method: :get,
1985
+ uri_template: "/v1/{parent}:listEnrollments",
1986
+ matches: [
1987
+ ["parent", %r{^projects/[^/]+/locations/[^/]+/messageBuses/[^/]+/?$}, false]
1988
+ ]
1989
+ )
1990
+ transcoder.transcode request_pb
1991
+ end
1992
+
1993
+ ##
1994
+ # @private
1995
+ #
1996
+ # GRPC transcoding helper method for the create_message_bus REST call
1997
+ #
1998
+ # @param request_pb [::Google::Cloud::Eventarc::V1::CreateMessageBusRequest]
1999
+ # A request object representing the call parameters. Required.
2000
+ # @return [Array(String, [String, nil], Hash{String => String})]
2001
+ # Uri, Body, Query string parameters
2002
+ def self.transcode_create_message_bus_request request_pb
907
2003
  transcoder = Gapic::Rest::GrpcTranscoder.new
908
2004
  .with_bindings(
909
2005
  uri_method: :post,
910
- uri_template: "/v1/{parent}/channels",
911
- body: "channel",
2006
+ uri_template: "/v1/{parent}/messageBuses",
2007
+ body: "message_bus",
912
2008
  matches: [
913
2009
  ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
914
2010
  ]
@@ -919,20 +2015,20 @@ module Google
919
2015
  ##
920
2016
  # @private
921
2017
  #
922
- # GRPC transcoding helper method for the update_channel REST call
2018
+ # GRPC transcoding helper method for the update_message_bus REST call
923
2019
  #
924
- # @param request_pb [::Google::Cloud::Eventarc::V1::UpdateChannelRequest]
2020
+ # @param request_pb [::Google::Cloud::Eventarc::V1::UpdateMessageBusRequest]
925
2021
  # A request object representing the call parameters. Required.
926
2022
  # @return [Array(String, [String, nil], Hash{String => String})]
927
2023
  # Uri, Body, Query string parameters
928
- def self.transcode_update_channel_request request_pb
2024
+ def self.transcode_update_message_bus_request request_pb
929
2025
  transcoder = Gapic::Rest::GrpcTranscoder.new
930
2026
  .with_bindings(
931
2027
  uri_method: :patch,
932
- uri_template: "/v1/{channel.name}",
933
- body: "channel",
2028
+ uri_template: "/v1/{message_bus.name}",
2029
+ body: "message_bus",
934
2030
  matches: [
935
- ["channel.name", %r{^projects/[^/]+/locations/[^/]+/channels/[^/]+/?$}, false]
2031
+ ["message_bus.name", %r{^projects/[^/]+/locations/[^/]+/messageBuses/[^/]+/?$}, false]
936
2032
  ]
937
2033
  )
938
2034
  transcoder.transcode request_pb
@@ -941,19 +2037,19 @@ module Google
941
2037
  ##
942
2038
  # @private
943
2039
  #
944
- # GRPC transcoding helper method for the delete_channel REST call
2040
+ # GRPC transcoding helper method for the delete_message_bus REST call
945
2041
  #
946
- # @param request_pb [::Google::Cloud::Eventarc::V1::DeleteChannelRequest]
2042
+ # @param request_pb [::Google::Cloud::Eventarc::V1::DeleteMessageBusRequest]
947
2043
  # A request object representing the call parameters. Required.
948
2044
  # @return [Array(String, [String, nil], Hash{String => String})]
949
2045
  # Uri, Body, Query string parameters
950
- def self.transcode_delete_channel_request request_pb
2046
+ def self.transcode_delete_message_bus_request request_pb
951
2047
  transcoder = Gapic::Rest::GrpcTranscoder.new
952
2048
  .with_bindings(
953
2049
  uri_method: :delete,
954
2050
  uri_template: "/v1/{name}",
955
2051
  matches: [
956
- ["name", %r{^projects/[^/]+/locations/[^/]+/channels/[^/]+/?$}, false]
2052
+ ["name", %r{^projects/[^/]+/locations/[^/]+/messageBuses/[^/]+/?$}, false]
957
2053
  ]
958
2054
  )
959
2055
  transcoder.transcode request_pb
@@ -962,19 +2058,19 @@ module Google
962
2058
  ##
963
2059
  # @private
964
2060
  #
965
- # GRPC transcoding helper method for the get_provider REST call
2061
+ # GRPC transcoding helper method for the get_enrollment REST call
966
2062
  #
967
- # @param request_pb [::Google::Cloud::Eventarc::V1::GetProviderRequest]
2063
+ # @param request_pb [::Google::Cloud::Eventarc::V1::GetEnrollmentRequest]
968
2064
  # A request object representing the call parameters. Required.
969
2065
  # @return [Array(String, [String, nil], Hash{String => String})]
970
2066
  # Uri, Body, Query string parameters
971
- def self.transcode_get_provider_request request_pb
2067
+ def self.transcode_get_enrollment_request request_pb
972
2068
  transcoder = Gapic::Rest::GrpcTranscoder.new
973
2069
  .with_bindings(
974
2070
  uri_method: :get,
975
2071
  uri_template: "/v1/{name}",
976
2072
  matches: [
977
- ["name", %r{^projects/[^/]+/locations/[^/]+/providers/[^/]+/?$}, false]
2073
+ ["name", %r{^projects/[^/]+/locations/[^/]+/enrollments/[^/]+/?$}, false]
978
2074
  ]
979
2075
  )
980
2076
  transcoder.transcode request_pb
@@ -983,17 +2079,17 @@ module Google
983
2079
  ##
984
2080
  # @private
985
2081
  #
986
- # GRPC transcoding helper method for the list_providers REST call
2082
+ # GRPC transcoding helper method for the list_enrollments REST call
987
2083
  #
988
- # @param request_pb [::Google::Cloud::Eventarc::V1::ListProvidersRequest]
2084
+ # @param request_pb [::Google::Cloud::Eventarc::V1::ListEnrollmentsRequest]
989
2085
  # A request object representing the call parameters. Required.
990
2086
  # @return [Array(String, [String, nil], Hash{String => String})]
991
2087
  # Uri, Body, Query string parameters
992
- def self.transcode_list_providers_request request_pb
2088
+ def self.transcode_list_enrollments_request request_pb
993
2089
  transcoder = Gapic::Rest::GrpcTranscoder.new
994
2090
  .with_bindings(
995
2091
  uri_method: :get,
996
- uri_template: "/v1/{parent}/providers",
2092
+ uri_template: "/v1/{parent}/enrollments",
997
2093
  matches: [
998
2094
  ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
999
2095
  ]
@@ -1004,19 +2100,84 @@ module Google
1004
2100
  ##
1005
2101
  # @private
1006
2102
  #
1007
- # GRPC transcoding helper method for the get_channel_connection REST call
2103
+ # GRPC transcoding helper method for the create_enrollment REST call
1008
2104
  #
1009
- # @param request_pb [::Google::Cloud::Eventarc::V1::GetChannelConnectionRequest]
2105
+ # @param request_pb [::Google::Cloud::Eventarc::V1::CreateEnrollmentRequest]
1010
2106
  # A request object representing the call parameters. Required.
1011
2107
  # @return [Array(String, [String, nil], Hash{String => String})]
1012
2108
  # Uri, Body, Query string parameters
1013
- def self.transcode_get_channel_connection_request request_pb
2109
+ def self.transcode_create_enrollment_request request_pb
2110
+ transcoder = Gapic::Rest::GrpcTranscoder.new
2111
+ .with_bindings(
2112
+ uri_method: :post,
2113
+ uri_template: "/v1/{parent}/enrollments",
2114
+ body: "enrollment",
2115
+ matches: [
2116
+ ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
2117
+ ]
2118
+ )
2119
+ transcoder.transcode request_pb
2120
+ end
2121
+
2122
+ ##
2123
+ # @private
2124
+ #
2125
+ # GRPC transcoding helper method for the update_enrollment REST call
2126
+ #
2127
+ # @param request_pb [::Google::Cloud::Eventarc::V1::UpdateEnrollmentRequest]
2128
+ # A request object representing the call parameters. Required.
2129
+ # @return [Array(String, [String, nil], Hash{String => String})]
2130
+ # Uri, Body, Query string parameters
2131
+ def self.transcode_update_enrollment_request request_pb
2132
+ transcoder = Gapic::Rest::GrpcTranscoder.new
2133
+ .with_bindings(
2134
+ uri_method: :patch,
2135
+ uri_template: "/v1/{enrollment.name}",
2136
+ body: "enrollment",
2137
+ matches: [
2138
+ ["enrollment.name", %r{^projects/[^/]+/locations/[^/]+/enrollments/[^/]+/?$}, false]
2139
+ ]
2140
+ )
2141
+ transcoder.transcode request_pb
2142
+ end
2143
+
2144
+ ##
2145
+ # @private
2146
+ #
2147
+ # GRPC transcoding helper method for the delete_enrollment REST call
2148
+ #
2149
+ # @param request_pb [::Google::Cloud::Eventarc::V1::DeleteEnrollmentRequest]
2150
+ # A request object representing the call parameters. Required.
2151
+ # @return [Array(String, [String, nil], Hash{String => String})]
2152
+ # Uri, Body, Query string parameters
2153
+ def self.transcode_delete_enrollment_request request_pb
2154
+ transcoder = Gapic::Rest::GrpcTranscoder.new
2155
+ .with_bindings(
2156
+ uri_method: :delete,
2157
+ uri_template: "/v1/{name}",
2158
+ matches: [
2159
+ ["name", %r{^projects/[^/]+/locations/[^/]+/enrollments/[^/]+/?$}, false]
2160
+ ]
2161
+ )
2162
+ transcoder.transcode request_pb
2163
+ end
2164
+
2165
+ ##
2166
+ # @private
2167
+ #
2168
+ # GRPC transcoding helper method for the get_pipeline REST call
2169
+ #
2170
+ # @param request_pb [::Google::Cloud::Eventarc::V1::GetPipelineRequest]
2171
+ # A request object representing the call parameters. Required.
2172
+ # @return [Array(String, [String, nil], Hash{String => String})]
2173
+ # Uri, Body, Query string parameters
2174
+ def self.transcode_get_pipeline_request request_pb
1014
2175
  transcoder = Gapic::Rest::GrpcTranscoder.new
1015
2176
  .with_bindings(
1016
2177
  uri_method: :get,
1017
2178
  uri_template: "/v1/{name}",
1018
2179
  matches: [
1019
- ["name", %r{^projects/[^/]+/locations/[^/]+/channelConnections/[^/]+/?$}, false]
2180
+ ["name", %r{^projects/[^/]+/locations/[^/]+/pipelines/[^/]+/?$}, false]
1020
2181
  ]
1021
2182
  )
1022
2183
  transcoder.transcode request_pb
@@ -1025,17 +2186,17 @@ module Google
1025
2186
  ##
1026
2187
  # @private
1027
2188
  #
1028
- # GRPC transcoding helper method for the list_channel_connections REST call
2189
+ # GRPC transcoding helper method for the list_pipelines REST call
1029
2190
  #
1030
- # @param request_pb [::Google::Cloud::Eventarc::V1::ListChannelConnectionsRequest]
2191
+ # @param request_pb [::Google::Cloud::Eventarc::V1::ListPipelinesRequest]
1031
2192
  # A request object representing the call parameters. Required.
1032
2193
  # @return [Array(String, [String, nil], Hash{String => String})]
1033
2194
  # Uri, Body, Query string parameters
1034
- def self.transcode_list_channel_connections_request request_pb
2195
+ def self.transcode_list_pipelines_request request_pb
1035
2196
  transcoder = Gapic::Rest::GrpcTranscoder.new
1036
2197
  .with_bindings(
1037
2198
  uri_method: :get,
1038
- uri_template: "/v1/{parent}/channelConnections",
2199
+ uri_template: "/v1/{parent}/pipelines",
1039
2200
  matches: [
1040
2201
  ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
1041
2202
  ]
@@ -1046,18 +2207,18 @@ module Google
1046
2207
  ##
1047
2208
  # @private
1048
2209
  #
1049
- # GRPC transcoding helper method for the create_channel_connection REST call
2210
+ # GRPC transcoding helper method for the create_pipeline REST call
1050
2211
  #
1051
- # @param request_pb [::Google::Cloud::Eventarc::V1::CreateChannelConnectionRequest]
2212
+ # @param request_pb [::Google::Cloud::Eventarc::V1::CreatePipelineRequest]
1052
2213
  # A request object representing the call parameters. Required.
1053
2214
  # @return [Array(String, [String, nil], Hash{String => String})]
1054
2215
  # Uri, Body, Query string parameters
1055
- def self.transcode_create_channel_connection_request request_pb
2216
+ def self.transcode_create_pipeline_request request_pb
1056
2217
  transcoder = Gapic::Rest::GrpcTranscoder.new
1057
2218
  .with_bindings(
1058
2219
  uri_method: :post,
1059
- uri_template: "/v1/{parent}/channelConnections",
1060
- body: "channel_connection",
2220
+ uri_template: "/v1/{parent}/pipelines",
2221
+ body: "pipeline",
1061
2222
  matches: [
1062
2223
  ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
1063
2224
  ]
@@ -1068,19 +2229,41 @@ module Google
1068
2229
  ##
1069
2230
  # @private
1070
2231
  #
1071
- # GRPC transcoding helper method for the delete_channel_connection REST call
2232
+ # GRPC transcoding helper method for the update_pipeline REST call
1072
2233
  #
1073
- # @param request_pb [::Google::Cloud::Eventarc::V1::DeleteChannelConnectionRequest]
2234
+ # @param request_pb [::Google::Cloud::Eventarc::V1::UpdatePipelineRequest]
1074
2235
  # A request object representing the call parameters. Required.
1075
2236
  # @return [Array(String, [String, nil], Hash{String => String})]
1076
2237
  # Uri, Body, Query string parameters
1077
- def self.transcode_delete_channel_connection_request request_pb
2238
+ def self.transcode_update_pipeline_request request_pb
2239
+ transcoder = Gapic::Rest::GrpcTranscoder.new
2240
+ .with_bindings(
2241
+ uri_method: :patch,
2242
+ uri_template: "/v1/{pipeline.name}",
2243
+ body: "pipeline",
2244
+ matches: [
2245
+ ["pipeline.name", %r{^projects/[^/]+/locations/[^/]+/pipelines/[^/]+/?$}, false]
2246
+ ]
2247
+ )
2248
+ transcoder.transcode request_pb
2249
+ end
2250
+
2251
+ ##
2252
+ # @private
2253
+ #
2254
+ # GRPC transcoding helper method for the delete_pipeline REST call
2255
+ #
2256
+ # @param request_pb [::Google::Cloud::Eventarc::V1::DeletePipelineRequest]
2257
+ # A request object representing the call parameters. Required.
2258
+ # @return [Array(String, [String, nil], Hash{String => String})]
2259
+ # Uri, Body, Query string parameters
2260
+ def self.transcode_delete_pipeline_request request_pb
1078
2261
  transcoder = Gapic::Rest::GrpcTranscoder.new
1079
2262
  .with_bindings(
1080
2263
  uri_method: :delete,
1081
2264
  uri_template: "/v1/{name}",
1082
2265
  matches: [
1083
- ["name", %r{^projects/[^/]+/locations/[^/]+/channelConnections/[^/]+/?$}, false]
2266
+ ["name", %r{^projects/[^/]+/locations/[^/]+/pipelines/[^/]+/?$}, false]
1084
2267
  ]
1085
2268
  )
1086
2269
  transcoder.transcode request_pb
@@ -1089,19 +2272,19 @@ module Google
1089
2272
  ##
1090
2273
  # @private
1091
2274
  #
1092
- # GRPC transcoding helper method for the get_google_channel_config REST call
2275
+ # GRPC transcoding helper method for the get_google_api_source REST call
1093
2276
  #
1094
- # @param request_pb [::Google::Cloud::Eventarc::V1::GetGoogleChannelConfigRequest]
2277
+ # @param request_pb [::Google::Cloud::Eventarc::V1::GetGoogleApiSourceRequest]
1095
2278
  # A request object representing the call parameters. Required.
1096
2279
  # @return [Array(String, [String, nil], Hash{String => String})]
1097
2280
  # Uri, Body, Query string parameters
1098
- def self.transcode_get_google_channel_config_request request_pb
2281
+ def self.transcode_get_google_api_source_request request_pb
1099
2282
  transcoder = Gapic::Rest::GrpcTranscoder.new
1100
2283
  .with_bindings(
1101
2284
  uri_method: :get,
1102
2285
  uri_template: "/v1/{name}",
1103
2286
  matches: [
1104
- ["name", %r{^projects/[^/]+/locations/[^/]+/googleChannelConfig/?$}, false]
2287
+ ["name", %r{^projects/[^/]+/locations/[^/]+/googleApiSources/[^/]+/?$}, false]
1105
2288
  ]
1106
2289
  )
1107
2290
  transcoder.transcode request_pb
@@ -1110,20 +2293,84 @@ module Google
1110
2293
  ##
1111
2294
  # @private
1112
2295
  #
1113
- # GRPC transcoding helper method for the update_google_channel_config REST call
2296
+ # GRPC transcoding helper method for the list_google_api_sources REST call
1114
2297
  #
1115
- # @param request_pb [::Google::Cloud::Eventarc::V1::UpdateGoogleChannelConfigRequest]
2298
+ # @param request_pb [::Google::Cloud::Eventarc::V1::ListGoogleApiSourcesRequest]
1116
2299
  # A request object representing the call parameters. Required.
1117
2300
  # @return [Array(String, [String, nil], Hash{String => String})]
1118
2301
  # Uri, Body, Query string parameters
1119
- def self.transcode_update_google_channel_config_request request_pb
2302
+ def self.transcode_list_google_api_sources_request request_pb
2303
+ transcoder = Gapic::Rest::GrpcTranscoder.new
2304
+ .with_bindings(
2305
+ uri_method: :get,
2306
+ uri_template: "/v1/{parent}/googleApiSources",
2307
+ matches: [
2308
+ ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
2309
+ ]
2310
+ )
2311
+ transcoder.transcode request_pb
2312
+ end
2313
+
2314
+ ##
2315
+ # @private
2316
+ #
2317
+ # GRPC transcoding helper method for the create_google_api_source REST call
2318
+ #
2319
+ # @param request_pb [::Google::Cloud::Eventarc::V1::CreateGoogleApiSourceRequest]
2320
+ # A request object representing the call parameters. Required.
2321
+ # @return [Array(String, [String, nil], Hash{String => String})]
2322
+ # Uri, Body, Query string parameters
2323
+ def self.transcode_create_google_api_source_request request_pb
2324
+ transcoder = Gapic::Rest::GrpcTranscoder.new
2325
+ .with_bindings(
2326
+ uri_method: :post,
2327
+ uri_template: "/v1/{parent}/googleApiSources",
2328
+ body: "google_api_source",
2329
+ matches: [
2330
+ ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
2331
+ ]
2332
+ )
2333
+ transcoder.transcode request_pb
2334
+ end
2335
+
2336
+ ##
2337
+ # @private
2338
+ #
2339
+ # GRPC transcoding helper method for the update_google_api_source REST call
2340
+ #
2341
+ # @param request_pb [::Google::Cloud::Eventarc::V1::UpdateGoogleApiSourceRequest]
2342
+ # A request object representing the call parameters. Required.
2343
+ # @return [Array(String, [String, nil], Hash{String => String})]
2344
+ # Uri, Body, Query string parameters
2345
+ def self.transcode_update_google_api_source_request request_pb
1120
2346
  transcoder = Gapic::Rest::GrpcTranscoder.new
1121
2347
  .with_bindings(
1122
2348
  uri_method: :patch,
1123
- uri_template: "/v1/{google_channel_config.name}",
1124
- body: "google_channel_config",
2349
+ uri_template: "/v1/{google_api_source.name}",
2350
+ body: "google_api_source",
1125
2351
  matches: [
1126
- ["google_channel_config.name", %r{^projects/[^/]+/locations/[^/]+/googleChannelConfig/?$}, false]
2352
+ ["google_api_source.name", %r{^projects/[^/]+/locations/[^/]+/googleApiSources/[^/]+/?$}, false]
2353
+ ]
2354
+ )
2355
+ transcoder.transcode request_pb
2356
+ end
2357
+
2358
+ ##
2359
+ # @private
2360
+ #
2361
+ # GRPC transcoding helper method for the delete_google_api_source REST call
2362
+ #
2363
+ # @param request_pb [::Google::Cloud::Eventarc::V1::DeleteGoogleApiSourceRequest]
2364
+ # A request object representing the call parameters. Required.
2365
+ # @return [Array(String, [String, nil], Hash{String => String})]
2366
+ # Uri, Body, Query string parameters
2367
+ def self.transcode_delete_google_api_source_request request_pb
2368
+ transcoder = Gapic::Rest::GrpcTranscoder.new
2369
+ .with_bindings(
2370
+ uri_method: :delete,
2371
+ uri_template: "/v1/{name}",
2372
+ matches: [
2373
+ ["name", %r{^projects/[^/]+/locations/[^/]+/googleApiSources/[^/]+/?$}, false]
1127
2374
  ]
1128
2375
  )
1129
2376
  transcoder.transcode request_pb