google-apis-eventarc_v1 0.54.0 → 0.55.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.
@@ -765,6 +765,119 @@ module Google
765
765
  execute_or_queue_command(command, &block)
766
766
  end
767
767
 
768
+ # Create a new Enrollment in a particular project and location.
769
+ # @param [String] parent
770
+ # Required. The parent collection in which to add this enrollment.
771
+ # @param [Google::Apis::EventarcV1::Enrollment] enrollment_object
772
+ # @param [String] enrollment_id
773
+ # Required. The user-provided ID to be assigned to the Enrollment. It should
774
+ # match the format (^[a-z]([a-z0-9-]`0,61`[a-z0-9])?$).
775
+ # @param [Boolean] validate_only
776
+ # Optional. If set, validate the request and preview the review, but do not post
777
+ # it.
778
+ # @param [String] fields
779
+ # Selector specifying which fields to include in a partial response.
780
+ # @param [String] quota_user
781
+ # Available to use for quota purposes for server-side applications. Can be any
782
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
783
+ # @param [Google::Apis::RequestOptions] options
784
+ # Request-specific options
785
+ #
786
+ # @yield [result, err] Result & error if block supplied
787
+ # @yieldparam result [Google::Apis::EventarcV1::GoogleLongrunningOperation] parsed result object
788
+ # @yieldparam err [StandardError] error object if request failed
789
+ #
790
+ # @return [Google::Apis::EventarcV1::GoogleLongrunningOperation]
791
+ #
792
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
793
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
794
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
795
+ def create_project_location_enrollment(parent, enrollment_object = nil, enrollment_id: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil, &block)
796
+ command = make_simple_command(:post, 'v1/{+parent}/enrollments', options)
797
+ command.request_representation = Google::Apis::EventarcV1::Enrollment::Representation
798
+ command.request_object = enrollment_object
799
+ command.response_representation = Google::Apis::EventarcV1::GoogleLongrunningOperation::Representation
800
+ command.response_class = Google::Apis::EventarcV1::GoogleLongrunningOperation
801
+ command.params['parent'] = parent unless parent.nil?
802
+ command.query['enrollmentId'] = enrollment_id unless enrollment_id.nil?
803
+ command.query['validateOnly'] = validate_only unless validate_only.nil?
804
+ command.query['fields'] = fields unless fields.nil?
805
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
806
+ execute_or_queue_command(command, &block)
807
+ end
808
+
809
+ # Delete a single Enrollment.
810
+ # @param [String] name
811
+ # Required. The name of the Enrollment to be deleted.
812
+ # @param [Boolean] allow_missing
813
+ # Optional. If set to true, and the Enrollment is not found, the request will
814
+ # succeed but no action will be taken on the server.
815
+ # @param [String] etag
816
+ # Optional. If provided, the Enrollment will only be deleted if the etag matches
817
+ # the current etag on the resource.
818
+ # @param [Boolean] validate_only
819
+ # Optional. If set, validate the request and preview the review, but do not post
820
+ # it.
821
+ # @param [String] fields
822
+ # Selector specifying which fields to include in a partial response.
823
+ # @param [String] quota_user
824
+ # Available to use for quota purposes for server-side applications. Can be any
825
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
826
+ # @param [Google::Apis::RequestOptions] options
827
+ # Request-specific options
828
+ #
829
+ # @yield [result, err] Result & error if block supplied
830
+ # @yieldparam result [Google::Apis::EventarcV1::GoogleLongrunningOperation] parsed result object
831
+ # @yieldparam err [StandardError] error object if request failed
832
+ #
833
+ # @return [Google::Apis::EventarcV1::GoogleLongrunningOperation]
834
+ #
835
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
836
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
837
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
838
+ def delete_project_location_enrollment(name, allow_missing: nil, etag: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil, &block)
839
+ command = make_simple_command(:delete, 'v1/{+name}', options)
840
+ command.response_representation = Google::Apis::EventarcV1::GoogleLongrunningOperation::Representation
841
+ command.response_class = Google::Apis::EventarcV1::GoogleLongrunningOperation
842
+ command.params['name'] = name unless name.nil?
843
+ command.query['allowMissing'] = allow_missing unless allow_missing.nil?
844
+ command.query['etag'] = etag unless etag.nil?
845
+ command.query['validateOnly'] = validate_only unless validate_only.nil?
846
+ command.query['fields'] = fields unless fields.nil?
847
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
848
+ execute_or_queue_command(command, &block)
849
+ end
850
+
851
+ # Get a single Enrollment.
852
+ # @param [String] name
853
+ # Required. The name of the Enrollment to get.
854
+ # @param [String] fields
855
+ # Selector specifying which fields to include in a partial response.
856
+ # @param [String] quota_user
857
+ # Available to use for quota purposes for server-side applications. Can be any
858
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
859
+ # @param [Google::Apis::RequestOptions] options
860
+ # Request-specific options
861
+ #
862
+ # @yield [result, err] Result & error if block supplied
863
+ # @yieldparam result [Google::Apis::EventarcV1::Enrollment] parsed result object
864
+ # @yieldparam err [StandardError] error object if request failed
865
+ #
866
+ # @return [Google::Apis::EventarcV1::Enrollment]
867
+ #
868
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
869
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
870
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
871
+ def get_project_location_enrollment(name, fields: nil, quota_user: nil, options: nil, &block)
872
+ command = make_simple_command(:get, 'v1/{+name}', options)
873
+ command.response_representation = Google::Apis::EventarcV1::Enrollment::Representation
874
+ command.response_class = Google::Apis::EventarcV1::Enrollment
875
+ command.params['name'] = name unless name.nil?
876
+ command.query['fields'] = fields unless fields.nil?
877
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
878
+ execute_or_queue_command(command, &block)
879
+ end
880
+
768
881
  # Gets the access control policy for a resource. Returns an empty policy if the
769
882
  # resource exists and does not have a policy set.
770
883
  # @param [String] resource
@@ -810,6 +923,102 @@ module Google
810
923
  execute_or_queue_command(command, &block)
811
924
  end
812
925
 
926
+ # List Enrollments.
927
+ # @param [String] parent
928
+ # Required. The parent collection to list triggers on.
929
+ # @param [String] filter
930
+ # Optional. The filter field that the list request will filter on. Possible
931
+ # filtersare described in https://google.aip.dev/160.
932
+ # @param [String] order_by
933
+ # Optional. The sorting order of the resources returned. Value should be a comma-
934
+ # separated list of fields. The default sorting order is ascending. To specify
935
+ # descending order for a field, append a `desc` suffix; for example: `name desc,
936
+ # update_time`.
937
+ # @param [Fixnum] page_size
938
+ # Optional. The maximum number of results to return on each page. Note: The
939
+ # service may send fewer.
940
+ # @param [String] page_token
941
+ # Optional. The page token; provide the value from the `next_page_token` field
942
+ # in a previous call to retrieve the subsequent page. When paginating, all other
943
+ # parameters provided must match the previous call that provided the page token.
944
+ # @param [String] fields
945
+ # Selector specifying which fields to include in a partial response.
946
+ # @param [String] quota_user
947
+ # Available to use for quota purposes for server-side applications. Can be any
948
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
949
+ # @param [Google::Apis::RequestOptions] options
950
+ # Request-specific options
951
+ #
952
+ # @yield [result, err] Result & error if block supplied
953
+ # @yieldparam result [Google::Apis::EventarcV1::ListEnrollmentsResponse] parsed result object
954
+ # @yieldparam err [StandardError] error object if request failed
955
+ #
956
+ # @return [Google::Apis::EventarcV1::ListEnrollmentsResponse]
957
+ #
958
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
959
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
960
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
961
+ def list_project_location_enrollments(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
962
+ command = make_simple_command(:get, 'v1/{+parent}/enrollments', options)
963
+ command.response_representation = Google::Apis::EventarcV1::ListEnrollmentsResponse::Representation
964
+ command.response_class = Google::Apis::EventarcV1::ListEnrollmentsResponse
965
+ command.params['parent'] = parent unless parent.nil?
966
+ command.query['filter'] = filter unless filter.nil?
967
+ command.query['orderBy'] = order_by unless order_by.nil?
968
+ command.query['pageSize'] = page_size unless page_size.nil?
969
+ command.query['pageToken'] = page_token unless page_token.nil?
970
+ command.query['fields'] = fields unless fields.nil?
971
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
972
+ execute_or_queue_command(command, &block)
973
+ end
974
+
975
+ # Update a single Enrollment.
976
+ # @param [String] name
977
+ # Identifier. Resource name of the form projects/`project`/locations/`location`/
978
+ # enrollments/`enrollment`
979
+ # @param [Google::Apis::EventarcV1::Enrollment] enrollment_object
980
+ # @param [Boolean] allow_missing
981
+ # Optional. If set to true, and the Enrollment is not found, a new Enrollment
982
+ # will be created. In this situation, `update_mask` is ignored.
983
+ # @param [String] update_mask
984
+ # Optional. The fields to be updated; only fields explicitly provided are
985
+ # updated. If no field mask is provided, all provided fields in the request are
986
+ # updated. To update all fields, provide a field mask of "*".
987
+ # @param [Boolean] validate_only
988
+ # Optional. If set, validate the request and preview the review, but do not post
989
+ # it.
990
+ # @param [String] fields
991
+ # Selector specifying which fields to include in a partial response.
992
+ # @param [String] quota_user
993
+ # Available to use for quota purposes for server-side applications. Can be any
994
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
995
+ # @param [Google::Apis::RequestOptions] options
996
+ # Request-specific options
997
+ #
998
+ # @yield [result, err] Result & error if block supplied
999
+ # @yieldparam result [Google::Apis::EventarcV1::GoogleLongrunningOperation] parsed result object
1000
+ # @yieldparam err [StandardError] error object if request failed
1001
+ #
1002
+ # @return [Google::Apis::EventarcV1::GoogleLongrunningOperation]
1003
+ #
1004
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1005
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1006
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1007
+ def patch_project_location_enrollment(name, enrollment_object = nil, allow_missing: nil, update_mask: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil, &block)
1008
+ command = make_simple_command(:patch, 'v1/{+name}', options)
1009
+ command.request_representation = Google::Apis::EventarcV1::Enrollment::Representation
1010
+ command.request_object = enrollment_object
1011
+ command.response_representation = Google::Apis::EventarcV1::GoogleLongrunningOperation::Representation
1012
+ command.response_class = Google::Apis::EventarcV1::GoogleLongrunningOperation
1013
+ command.params['name'] = name unless name.nil?
1014
+ command.query['allowMissing'] = allow_missing unless allow_missing.nil?
1015
+ command.query['updateMask'] = update_mask unless update_mask.nil?
1016
+ command.query['validateOnly'] = validate_only unless validate_only.nil?
1017
+ command.query['fields'] = fields unless fields.nil?
1018
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1019
+ execute_or_queue_command(command, &block)
1020
+ end
1021
+
813
1022
  # Sets the access control policy on the specified resource. Replaces any
814
1023
  # existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `
815
1024
  # PERMISSION_DENIED` errors.
@@ -886,6 +1095,449 @@ module Google
886
1095
  execute_or_queue_command(command, &block)
887
1096
  end
888
1097
 
1098
+ # Create a new GoogleApiSource in a particular project and location.
1099
+ # @param [String] parent
1100
+ # Required. The parent collection in which to add this google api source.
1101
+ # @param [Google::Apis::EventarcV1::GoogleApiSource] google_api_source_object
1102
+ # @param [String] google_api_source_id
1103
+ # Required. The user-provided ID to be assigned to the GoogleApiSource. It
1104
+ # should match the format (^[a-z]([a-z0-9-]`0,61`[a-z0-9])?$).
1105
+ # @param [Boolean] validate_only
1106
+ # Optional. If set, validate the request and preview the review, but do not post
1107
+ # it.
1108
+ # @param [String] fields
1109
+ # Selector specifying which fields to include in a partial response.
1110
+ # @param [String] quota_user
1111
+ # Available to use for quota purposes for server-side applications. Can be any
1112
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1113
+ # @param [Google::Apis::RequestOptions] options
1114
+ # Request-specific options
1115
+ #
1116
+ # @yield [result, err] Result & error if block supplied
1117
+ # @yieldparam result [Google::Apis::EventarcV1::GoogleLongrunningOperation] parsed result object
1118
+ # @yieldparam err [StandardError] error object if request failed
1119
+ #
1120
+ # @return [Google::Apis::EventarcV1::GoogleLongrunningOperation]
1121
+ #
1122
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1123
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1124
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1125
+ def create_project_location_google_api_source(parent, google_api_source_object = nil, google_api_source_id: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil, &block)
1126
+ command = make_simple_command(:post, 'v1/{+parent}/googleApiSources', options)
1127
+ command.request_representation = Google::Apis::EventarcV1::GoogleApiSource::Representation
1128
+ command.request_object = google_api_source_object
1129
+ command.response_representation = Google::Apis::EventarcV1::GoogleLongrunningOperation::Representation
1130
+ command.response_class = Google::Apis::EventarcV1::GoogleLongrunningOperation
1131
+ command.params['parent'] = parent unless parent.nil?
1132
+ command.query['googleApiSourceId'] = google_api_source_id unless google_api_source_id.nil?
1133
+ command.query['validateOnly'] = validate_only unless validate_only.nil?
1134
+ command.query['fields'] = fields unless fields.nil?
1135
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1136
+ execute_or_queue_command(command, &block)
1137
+ end
1138
+
1139
+ # Delete a single GoogleApiSource.
1140
+ # @param [String] name
1141
+ # Required. The name of the GoogleApiSource to be deleted.
1142
+ # @param [Boolean] allow_missing
1143
+ # Optional. If set to true, and the MessageBus is not found, the request will
1144
+ # succeed but no action will be taken on the server.
1145
+ # @param [String] etag
1146
+ # Optional. If provided, the MessageBus will only be deleted if the etag matches
1147
+ # the current etag on the resource.
1148
+ # @param [Boolean] validate_only
1149
+ # Optional. If set, validate the request and preview the review, but do not post
1150
+ # it.
1151
+ # @param [String] fields
1152
+ # Selector specifying which fields to include in a partial response.
1153
+ # @param [String] quota_user
1154
+ # Available to use for quota purposes for server-side applications. Can be any
1155
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1156
+ # @param [Google::Apis::RequestOptions] options
1157
+ # Request-specific options
1158
+ #
1159
+ # @yield [result, err] Result & error if block supplied
1160
+ # @yieldparam result [Google::Apis::EventarcV1::GoogleLongrunningOperation] parsed result object
1161
+ # @yieldparam err [StandardError] error object if request failed
1162
+ #
1163
+ # @return [Google::Apis::EventarcV1::GoogleLongrunningOperation]
1164
+ #
1165
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1166
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1167
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1168
+ def delete_project_location_google_api_source(name, allow_missing: nil, etag: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil, &block)
1169
+ command = make_simple_command(:delete, 'v1/{+name}', options)
1170
+ command.response_representation = Google::Apis::EventarcV1::GoogleLongrunningOperation::Representation
1171
+ command.response_class = Google::Apis::EventarcV1::GoogleLongrunningOperation
1172
+ command.params['name'] = name unless name.nil?
1173
+ command.query['allowMissing'] = allow_missing unless allow_missing.nil?
1174
+ command.query['etag'] = etag unless etag.nil?
1175
+ command.query['validateOnly'] = validate_only unless validate_only.nil?
1176
+ command.query['fields'] = fields unless fields.nil?
1177
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1178
+ execute_or_queue_command(command, &block)
1179
+ end
1180
+
1181
+ # Get a single GoogleApiSource.
1182
+ # @param [String] name
1183
+ # Required. The name of the google api source to get.
1184
+ # @param [String] fields
1185
+ # Selector specifying which fields to include in a partial response.
1186
+ # @param [String] quota_user
1187
+ # Available to use for quota purposes for server-side applications. Can be any
1188
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1189
+ # @param [Google::Apis::RequestOptions] options
1190
+ # Request-specific options
1191
+ #
1192
+ # @yield [result, err] Result & error if block supplied
1193
+ # @yieldparam result [Google::Apis::EventarcV1::GoogleApiSource] parsed result object
1194
+ # @yieldparam err [StandardError] error object if request failed
1195
+ #
1196
+ # @return [Google::Apis::EventarcV1::GoogleApiSource]
1197
+ #
1198
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1199
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1200
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1201
+ def get_project_location_google_api_source(name, fields: nil, quota_user: nil, options: nil, &block)
1202
+ command = make_simple_command(:get, 'v1/{+name}', options)
1203
+ command.response_representation = Google::Apis::EventarcV1::GoogleApiSource::Representation
1204
+ command.response_class = Google::Apis::EventarcV1::GoogleApiSource
1205
+ command.params['name'] = name unless name.nil?
1206
+ command.query['fields'] = fields unless fields.nil?
1207
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1208
+ execute_or_queue_command(command, &block)
1209
+ end
1210
+
1211
+ # Gets the access control policy for a resource. Returns an empty policy if the
1212
+ # resource exists and does not have a policy set.
1213
+ # @param [String] resource
1214
+ # REQUIRED: The resource for which the policy is being requested. See [Resource
1215
+ # names](https://cloud.google.com/apis/design/resource_names) for the
1216
+ # appropriate value for this field.
1217
+ # @param [Fixnum] options_requested_policy_version
1218
+ # Optional. The maximum policy version that will be used to format the policy.
1219
+ # Valid values are 0, 1, and 3. Requests specifying an invalid value will be
1220
+ # rejected. Requests for policies with any conditional role bindings must
1221
+ # specify version 3. Policies with no conditional role bindings may specify any
1222
+ # valid value or leave the field unset. The policy in the response might use the
1223
+ # policy version that you specified, or it might use a lower policy version. For
1224
+ # example, if you specify version 3, but the policy has no conditional role
1225
+ # bindings, the response uses version 1. To learn which resources support
1226
+ # conditions in their IAM policies, see the [IAM documentation](https://cloud.
1227
+ # google.com/iam/help/conditions/resource-policies).
1228
+ # @param [String] fields
1229
+ # Selector specifying which fields to include in a partial response.
1230
+ # @param [String] quota_user
1231
+ # Available to use for quota purposes for server-side applications. Can be any
1232
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1233
+ # @param [Google::Apis::RequestOptions] options
1234
+ # Request-specific options
1235
+ #
1236
+ # @yield [result, err] Result & error if block supplied
1237
+ # @yieldparam result [Google::Apis::EventarcV1::Policy] parsed result object
1238
+ # @yieldparam err [StandardError] error object if request failed
1239
+ #
1240
+ # @return [Google::Apis::EventarcV1::Policy]
1241
+ #
1242
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1243
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1244
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1245
+ def get_project_location_google_api_source_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block)
1246
+ command = make_simple_command(:get, 'v1/{+resource}:getIamPolicy', options)
1247
+ command.response_representation = Google::Apis::EventarcV1::Policy::Representation
1248
+ command.response_class = Google::Apis::EventarcV1::Policy
1249
+ command.params['resource'] = resource unless resource.nil?
1250
+ command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
1251
+ command.query['fields'] = fields unless fields.nil?
1252
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1253
+ execute_or_queue_command(command, &block)
1254
+ end
1255
+
1256
+ # List GoogleApiSources.
1257
+ # @param [String] parent
1258
+ # Required. The parent collection to list GoogleApiSources on.
1259
+ # @param [String] filter
1260
+ # Optional. The filter field that the list request will filter on. Possible
1261
+ # filtersare described in https://google.aip.dev/160.
1262
+ # @param [String] order_by
1263
+ # Optional. The sorting order of the resources returned. Value should be a comma-
1264
+ # separated list of fields. The default sorting order is ascending. To specify
1265
+ # descending order for a field, append a `desc` suffix; for example: `name desc,
1266
+ # update_time`.
1267
+ # @param [Fixnum] page_size
1268
+ # Optional. The maximum number of results to return on each page. Note: The
1269
+ # service may send fewer.
1270
+ # @param [String] page_token
1271
+ # Optional. The page token; provide the value from the `next_page_token` field
1272
+ # in a previous call to retrieve the subsequent page. When paginating, all other
1273
+ # parameters provided must match the previous call that provided the page token.
1274
+ # @param [String] fields
1275
+ # Selector specifying which fields to include in a partial response.
1276
+ # @param [String] quota_user
1277
+ # Available to use for quota purposes for server-side applications. Can be any
1278
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1279
+ # @param [Google::Apis::RequestOptions] options
1280
+ # Request-specific options
1281
+ #
1282
+ # @yield [result, err] Result & error if block supplied
1283
+ # @yieldparam result [Google::Apis::EventarcV1::ListGoogleApiSourcesResponse] parsed result object
1284
+ # @yieldparam err [StandardError] error object if request failed
1285
+ #
1286
+ # @return [Google::Apis::EventarcV1::ListGoogleApiSourcesResponse]
1287
+ #
1288
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1289
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1290
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1291
+ def list_project_location_google_api_sources(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
1292
+ command = make_simple_command(:get, 'v1/{+parent}/googleApiSources', options)
1293
+ command.response_representation = Google::Apis::EventarcV1::ListGoogleApiSourcesResponse::Representation
1294
+ command.response_class = Google::Apis::EventarcV1::ListGoogleApiSourcesResponse
1295
+ command.params['parent'] = parent unless parent.nil?
1296
+ command.query['filter'] = filter unless filter.nil?
1297
+ command.query['orderBy'] = order_by unless order_by.nil?
1298
+ command.query['pageSize'] = page_size unless page_size.nil?
1299
+ command.query['pageToken'] = page_token unless page_token.nil?
1300
+ command.query['fields'] = fields unless fields.nil?
1301
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1302
+ execute_or_queue_command(command, &block)
1303
+ end
1304
+
1305
+ # Update a single GoogleApiSource.
1306
+ # @param [String] name
1307
+ # Identifier. Resource name of the form projects/`project`/locations/`location`/
1308
+ # googleApiSources/`google_api_source`
1309
+ # @param [Google::Apis::EventarcV1::GoogleApiSource] google_api_source_object
1310
+ # @param [Boolean] allow_missing
1311
+ # Optional. If set to true, and the GoogleApiSource is not found, a new
1312
+ # GoogleApiSource will be created. In this situation, `update_mask` is ignored.
1313
+ # @param [String] update_mask
1314
+ # Optional. The fields to be updated; only fields explicitly provided are
1315
+ # updated. If no field mask is provided, all provided fields in the request are
1316
+ # updated. To update all fields, provide a field mask of "*".
1317
+ # @param [Boolean] validate_only
1318
+ # Optional. If set, validate the request and preview the review, but do not post
1319
+ # it.
1320
+ # @param [String] fields
1321
+ # Selector specifying which fields to include in a partial response.
1322
+ # @param [String] quota_user
1323
+ # Available to use for quota purposes for server-side applications. Can be any
1324
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1325
+ # @param [Google::Apis::RequestOptions] options
1326
+ # Request-specific options
1327
+ #
1328
+ # @yield [result, err] Result & error if block supplied
1329
+ # @yieldparam result [Google::Apis::EventarcV1::GoogleLongrunningOperation] parsed result object
1330
+ # @yieldparam err [StandardError] error object if request failed
1331
+ #
1332
+ # @return [Google::Apis::EventarcV1::GoogleLongrunningOperation]
1333
+ #
1334
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1335
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1336
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1337
+ def patch_project_location_google_api_source(name, google_api_source_object = nil, allow_missing: nil, update_mask: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil, &block)
1338
+ command = make_simple_command(:patch, 'v1/{+name}', options)
1339
+ command.request_representation = Google::Apis::EventarcV1::GoogleApiSource::Representation
1340
+ command.request_object = google_api_source_object
1341
+ command.response_representation = Google::Apis::EventarcV1::GoogleLongrunningOperation::Representation
1342
+ command.response_class = Google::Apis::EventarcV1::GoogleLongrunningOperation
1343
+ command.params['name'] = name unless name.nil?
1344
+ command.query['allowMissing'] = allow_missing unless allow_missing.nil?
1345
+ command.query['updateMask'] = update_mask unless update_mask.nil?
1346
+ command.query['validateOnly'] = validate_only unless validate_only.nil?
1347
+ command.query['fields'] = fields unless fields.nil?
1348
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1349
+ execute_or_queue_command(command, &block)
1350
+ end
1351
+
1352
+ # Sets the access control policy on the specified resource. Replaces any
1353
+ # existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `
1354
+ # PERMISSION_DENIED` errors.
1355
+ # @param [String] resource
1356
+ # REQUIRED: The resource for which the policy is being specified. See [Resource
1357
+ # names](https://cloud.google.com/apis/design/resource_names) for the
1358
+ # appropriate value for this field.
1359
+ # @param [Google::Apis::EventarcV1::SetIamPolicyRequest] set_iam_policy_request_object
1360
+ # @param [String] fields
1361
+ # Selector specifying which fields to include in a partial response.
1362
+ # @param [String] quota_user
1363
+ # Available to use for quota purposes for server-side applications. Can be any
1364
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1365
+ # @param [Google::Apis::RequestOptions] options
1366
+ # Request-specific options
1367
+ #
1368
+ # @yield [result, err] Result & error if block supplied
1369
+ # @yieldparam result [Google::Apis::EventarcV1::Policy] parsed result object
1370
+ # @yieldparam err [StandardError] error object if request failed
1371
+ #
1372
+ # @return [Google::Apis::EventarcV1::Policy]
1373
+ #
1374
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1375
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1376
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1377
+ def set_google_api_source_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1378
+ command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options)
1379
+ command.request_representation = Google::Apis::EventarcV1::SetIamPolicyRequest::Representation
1380
+ command.request_object = set_iam_policy_request_object
1381
+ command.response_representation = Google::Apis::EventarcV1::Policy::Representation
1382
+ command.response_class = Google::Apis::EventarcV1::Policy
1383
+ command.params['resource'] = resource unless resource.nil?
1384
+ command.query['fields'] = fields unless fields.nil?
1385
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1386
+ execute_or_queue_command(command, &block)
1387
+ end
1388
+
1389
+ # Returns permissions that a caller has on the specified resource. If the
1390
+ # resource does not exist, this will return an empty set of permissions, not a `
1391
+ # NOT_FOUND` error. Note: This operation is designed to be used for building
1392
+ # permission-aware UIs and command-line tools, not for authorization checking.
1393
+ # This operation may "fail open" without warning.
1394
+ # @param [String] resource
1395
+ # REQUIRED: The resource for which the policy detail is being requested. See [
1396
+ # Resource names](https://cloud.google.com/apis/design/resource_names) for the
1397
+ # appropriate value for this field.
1398
+ # @param [Google::Apis::EventarcV1::TestIamPermissionsRequest] test_iam_permissions_request_object
1399
+ # @param [String] fields
1400
+ # Selector specifying which fields to include in a partial response.
1401
+ # @param [String] quota_user
1402
+ # Available to use for quota purposes for server-side applications. Can be any
1403
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1404
+ # @param [Google::Apis::RequestOptions] options
1405
+ # Request-specific options
1406
+ #
1407
+ # @yield [result, err] Result & error if block supplied
1408
+ # @yieldparam result [Google::Apis::EventarcV1::TestIamPermissionsResponse] parsed result object
1409
+ # @yieldparam err [StandardError] error object if request failed
1410
+ #
1411
+ # @return [Google::Apis::EventarcV1::TestIamPermissionsResponse]
1412
+ #
1413
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1414
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1415
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1416
+ def test_google_api_source_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1417
+ command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options)
1418
+ command.request_representation = Google::Apis::EventarcV1::TestIamPermissionsRequest::Representation
1419
+ command.request_object = test_iam_permissions_request_object
1420
+ command.response_representation = Google::Apis::EventarcV1::TestIamPermissionsResponse::Representation
1421
+ command.response_class = Google::Apis::EventarcV1::TestIamPermissionsResponse
1422
+ command.params['resource'] = resource unless resource.nil?
1423
+ command.query['fields'] = fields unless fields.nil?
1424
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1425
+ execute_or_queue_command(command, &block)
1426
+ end
1427
+
1428
+ # Create a new MessageBus in a particular project and location.
1429
+ # @param [String] parent
1430
+ # Required. The parent collection in which to add this message bus.
1431
+ # @param [Google::Apis::EventarcV1::MessageBus] message_bus_object
1432
+ # @param [String] message_bus_id
1433
+ # Required. The user-provided ID to be assigned to the MessageBus. It should
1434
+ # match the format (^[a-z]([a-z0-9-]`0,61`[a-z0-9])?$)
1435
+ # @param [Boolean] validate_only
1436
+ # Optional. If set, validate the request and preview the review, but do not post
1437
+ # it.
1438
+ # @param [String] fields
1439
+ # Selector specifying which fields to include in a partial response.
1440
+ # @param [String] quota_user
1441
+ # Available to use for quota purposes for server-side applications. Can be any
1442
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1443
+ # @param [Google::Apis::RequestOptions] options
1444
+ # Request-specific options
1445
+ #
1446
+ # @yield [result, err] Result & error if block supplied
1447
+ # @yieldparam result [Google::Apis::EventarcV1::GoogleLongrunningOperation] parsed result object
1448
+ # @yieldparam err [StandardError] error object if request failed
1449
+ #
1450
+ # @return [Google::Apis::EventarcV1::GoogleLongrunningOperation]
1451
+ #
1452
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1453
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1454
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1455
+ def create_project_location_message_bus(parent, message_bus_object = nil, message_bus_id: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil, &block)
1456
+ command = make_simple_command(:post, 'v1/{+parent}/messageBuses', options)
1457
+ command.request_representation = Google::Apis::EventarcV1::MessageBus::Representation
1458
+ command.request_object = message_bus_object
1459
+ command.response_representation = Google::Apis::EventarcV1::GoogleLongrunningOperation::Representation
1460
+ command.response_class = Google::Apis::EventarcV1::GoogleLongrunningOperation
1461
+ command.params['parent'] = parent unless parent.nil?
1462
+ command.query['messageBusId'] = message_bus_id unless message_bus_id.nil?
1463
+ command.query['validateOnly'] = validate_only unless validate_only.nil?
1464
+ command.query['fields'] = fields unless fields.nil?
1465
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1466
+ execute_or_queue_command(command, &block)
1467
+ end
1468
+
1469
+ # Delete a single message bus.
1470
+ # @param [String] name
1471
+ # Required. The name of the MessageBus to be deleted.
1472
+ # @param [Boolean] allow_missing
1473
+ # Optional. If set to true, and the MessageBus is not found, the request will
1474
+ # succeed but no action will be taken on the server.
1475
+ # @param [String] etag
1476
+ # Optional. If provided, the MessageBus will only be deleted if the etag matches
1477
+ # the current etag on the resource.
1478
+ # @param [Boolean] validate_only
1479
+ # Optional. If set, validate the request and preview the review, but do not post
1480
+ # it.
1481
+ # @param [String] fields
1482
+ # Selector specifying which fields to include in a partial response.
1483
+ # @param [String] quota_user
1484
+ # Available to use for quota purposes for server-side applications. Can be any
1485
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1486
+ # @param [Google::Apis::RequestOptions] options
1487
+ # Request-specific options
1488
+ #
1489
+ # @yield [result, err] Result & error if block supplied
1490
+ # @yieldparam result [Google::Apis::EventarcV1::GoogleLongrunningOperation] parsed result object
1491
+ # @yieldparam err [StandardError] error object if request failed
1492
+ #
1493
+ # @return [Google::Apis::EventarcV1::GoogleLongrunningOperation]
1494
+ #
1495
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1496
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1497
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1498
+ def delete_project_location_message_bus(name, allow_missing: nil, etag: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil, &block)
1499
+ command = make_simple_command(:delete, 'v1/{+name}', options)
1500
+ command.response_representation = Google::Apis::EventarcV1::GoogleLongrunningOperation::Representation
1501
+ command.response_class = Google::Apis::EventarcV1::GoogleLongrunningOperation
1502
+ command.params['name'] = name unless name.nil?
1503
+ command.query['allowMissing'] = allow_missing unless allow_missing.nil?
1504
+ command.query['etag'] = etag unless etag.nil?
1505
+ command.query['validateOnly'] = validate_only unless validate_only.nil?
1506
+ command.query['fields'] = fields unless fields.nil?
1507
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1508
+ execute_or_queue_command(command, &block)
1509
+ end
1510
+
1511
+ # Get a single MessageBus.
1512
+ # @param [String] name
1513
+ # Required. The name of the message bus to get.
1514
+ # @param [String] fields
1515
+ # Selector specifying which fields to include in a partial response.
1516
+ # @param [String] quota_user
1517
+ # Available to use for quota purposes for server-side applications. Can be any
1518
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1519
+ # @param [Google::Apis::RequestOptions] options
1520
+ # Request-specific options
1521
+ #
1522
+ # @yield [result, err] Result & error if block supplied
1523
+ # @yieldparam result [Google::Apis::EventarcV1::MessageBus] parsed result object
1524
+ # @yieldparam err [StandardError] error object if request failed
1525
+ #
1526
+ # @return [Google::Apis::EventarcV1::MessageBus]
1527
+ #
1528
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1529
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1530
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1531
+ def get_project_location_message_bus(name, fields: nil, quota_user: nil, options: nil, &block)
1532
+ command = make_simple_command(:get, 'v1/{+name}', options)
1533
+ command.response_representation = Google::Apis::EventarcV1::MessageBus::Representation
1534
+ command.response_class = Google::Apis::EventarcV1::MessageBus
1535
+ command.params['name'] = name unless name.nil?
1536
+ command.query['fields'] = fields unless fields.nil?
1537
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1538
+ execute_or_queue_command(command, &block)
1539
+ end
1540
+
889
1541
  # Gets the access control policy for a resource. Returns an empty policy if the
890
1542
  # resource exists and does not have a policy set.
891
1543
  # @param [String] resource
@@ -920,7 +1572,7 @@ module Google
920
1572
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
921
1573
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
922
1574
  # @raise [Google::Apis::AuthorizationError] Authorization is required
923
- def get_project_location_google_api_source_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block)
1575
+ def get_project_location_message_bus_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block)
924
1576
  command = make_simple_command(:get, 'v1/{+resource}:getIamPolicy', options)
925
1577
  command.response_representation = Google::Apis::EventarcV1::Policy::Representation
926
1578
  command.response_class = Google::Apis::EventarcV1::Policy
@@ -931,14 +1583,24 @@ module Google
931
1583
  execute_or_queue_command(command, &block)
932
1584
  end
933
1585
 
934
- # Sets the access control policy on the specified resource. Replaces any
935
- # existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `
936
- # PERMISSION_DENIED` errors.
937
- # @param [String] resource
938
- # REQUIRED: The resource for which the policy is being specified. See [Resource
939
- # names](https://cloud.google.com/apis/design/resource_names) for the
940
- # appropriate value for this field.
941
- # @param [Google::Apis::EventarcV1::SetIamPolicyRequest] set_iam_policy_request_object
1586
+ # List message buses.
1587
+ # @param [String] parent
1588
+ # Required. The parent collection to list triggers on.
1589
+ # @param [String] filter
1590
+ # Optional. The filter field that the list request will filter on. Possible
1591
+ # filtersare described in https://google.aip.dev/160.
1592
+ # @param [String] order_by
1593
+ # Optional. The sorting order of the resources returned. Value should be a comma-
1594
+ # separated list of fields. The default sorting order is ascending. To specify
1595
+ # descending order for a field, append a `desc` suffix; for example: `name desc,
1596
+ # update_time`.
1597
+ # @param [Fixnum] page_size
1598
+ # Optional. The maximum number of results to return on each page. Note: The
1599
+ # service may send fewer.
1600
+ # @param [String] page_token
1601
+ # Optional. The page token; provide the value from the `next_page_token` field
1602
+ # in a previous call to retrieve the subsequent page. When paginating, all other
1603
+ # parameters provided must match the previous call that provided the page token.
942
1604
  # @param [String] fields
943
1605
  # Selector specifying which fields to include in a partial response.
944
1606
  # @param [String] quota_user
@@ -948,36 +1610,38 @@ module Google
948
1610
  # Request-specific options
949
1611
  #
950
1612
  # @yield [result, err] Result & error if block supplied
951
- # @yieldparam result [Google::Apis::EventarcV1::Policy] parsed result object
1613
+ # @yieldparam result [Google::Apis::EventarcV1::ListMessageBusesResponse] parsed result object
952
1614
  # @yieldparam err [StandardError] error object if request failed
953
1615
  #
954
- # @return [Google::Apis::EventarcV1::Policy]
1616
+ # @return [Google::Apis::EventarcV1::ListMessageBusesResponse]
955
1617
  #
956
1618
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
957
1619
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
958
1620
  # @raise [Google::Apis::AuthorizationError] Authorization is required
959
- def set_google_api_source_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
960
- command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options)
961
- command.request_representation = Google::Apis::EventarcV1::SetIamPolicyRequest::Representation
962
- command.request_object = set_iam_policy_request_object
963
- command.response_representation = Google::Apis::EventarcV1::Policy::Representation
964
- command.response_class = Google::Apis::EventarcV1::Policy
965
- command.params['resource'] = resource unless resource.nil?
1621
+ def list_project_location_message_buses(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
1622
+ command = make_simple_command(:get, 'v1/{+parent}/messageBuses', options)
1623
+ command.response_representation = Google::Apis::EventarcV1::ListMessageBusesResponse::Representation
1624
+ command.response_class = Google::Apis::EventarcV1::ListMessageBusesResponse
1625
+ command.params['parent'] = parent unless parent.nil?
1626
+ command.query['filter'] = filter unless filter.nil?
1627
+ command.query['orderBy'] = order_by unless order_by.nil?
1628
+ command.query['pageSize'] = page_size unless page_size.nil?
1629
+ command.query['pageToken'] = page_token unless page_token.nil?
966
1630
  command.query['fields'] = fields unless fields.nil?
967
1631
  command.query['quotaUser'] = quota_user unless quota_user.nil?
968
1632
  execute_or_queue_command(command, &block)
969
1633
  end
970
1634
 
971
- # Returns permissions that a caller has on the specified resource. If the
972
- # resource does not exist, this will return an empty set of permissions, not a `
973
- # NOT_FOUND` error. Note: This operation is designed to be used for building
974
- # permission-aware UIs and command-line tools, not for authorization checking.
975
- # This operation may "fail open" without warning.
976
- # @param [String] resource
977
- # REQUIRED: The resource for which the policy detail is being requested. See [
978
- # Resource names](https://cloud.google.com/apis/design/resource_names) for the
979
- # appropriate value for this field.
980
- # @param [Google::Apis::EventarcV1::TestIamPermissionsRequest] test_iam_permissions_request_object
1635
+ # List message bus enrollments.
1636
+ # @param [String] parent
1637
+ # Required. The parent message bus to list enrollments on.
1638
+ # @param [Fixnum] page_size
1639
+ # Optional. The maximum number of results to return on each page. Note: The
1640
+ # service may send fewer.
1641
+ # @param [String] page_token
1642
+ # Optional. The page token; provide the value from the `next_page_token` field
1643
+ # in a previous call to retrieve the subsequent page. When paginating, all other
1644
+ # parameters provided must match the previous call that provided the page token.
981
1645
  # @param [String] fields
982
1646
  # Selector specifying which fields to include in a partial response.
983
1647
  # @param [String] quota_user
@@ -987,43 +1651,41 @@ module Google
987
1651
  # Request-specific options
988
1652
  #
989
1653
  # @yield [result, err] Result & error if block supplied
990
- # @yieldparam result [Google::Apis::EventarcV1::TestIamPermissionsResponse] parsed result object
1654
+ # @yieldparam result [Google::Apis::EventarcV1::ListMessageBusEnrollmentsResponse] parsed result object
991
1655
  # @yieldparam err [StandardError] error object if request failed
992
1656
  #
993
- # @return [Google::Apis::EventarcV1::TestIamPermissionsResponse]
1657
+ # @return [Google::Apis::EventarcV1::ListMessageBusEnrollmentsResponse]
994
1658
  #
995
1659
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
996
1660
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
997
1661
  # @raise [Google::Apis::AuthorizationError] Authorization is required
998
- def test_google_api_source_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
999
- command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options)
1000
- command.request_representation = Google::Apis::EventarcV1::TestIamPermissionsRequest::Representation
1001
- command.request_object = test_iam_permissions_request_object
1002
- command.response_representation = Google::Apis::EventarcV1::TestIamPermissionsResponse::Representation
1003
- command.response_class = Google::Apis::EventarcV1::TestIamPermissionsResponse
1004
- command.params['resource'] = resource unless resource.nil?
1662
+ def list_project_location_message_bus_enrollments(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
1663
+ command = make_simple_command(:get, 'v1/{+parent}:listEnrollments', options)
1664
+ command.response_representation = Google::Apis::EventarcV1::ListMessageBusEnrollmentsResponse::Representation
1665
+ command.response_class = Google::Apis::EventarcV1::ListMessageBusEnrollmentsResponse
1666
+ command.params['parent'] = parent unless parent.nil?
1667
+ command.query['pageSize'] = page_size unless page_size.nil?
1668
+ command.query['pageToken'] = page_token unless page_token.nil?
1005
1669
  command.query['fields'] = fields unless fields.nil?
1006
1670
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1007
1671
  execute_or_queue_command(command, &block)
1008
1672
  end
1009
1673
 
1010
- # Gets the access control policy for a resource. Returns an empty policy if the
1011
- # resource exists and does not have a policy set.
1012
- # @param [String] resource
1013
- # REQUIRED: The resource for which the policy is being requested. See [Resource
1014
- # names](https://cloud.google.com/apis/design/resource_names) for the
1015
- # appropriate value for this field.
1016
- # @param [Fixnum] options_requested_policy_version
1017
- # Optional. The maximum policy version that will be used to format the policy.
1018
- # Valid values are 0, 1, and 3. Requests specifying an invalid value will be
1019
- # rejected. Requests for policies with any conditional role bindings must
1020
- # specify version 3. Policies with no conditional role bindings may specify any
1021
- # valid value or leave the field unset. The policy in the response might use the
1022
- # policy version that you specified, or it might use a lower policy version. For
1023
- # example, if you specify version 3, but the policy has no conditional role
1024
- # bindings, the response uses version 1. To learn which resources support
1025
- # conditions in their IAM policies, see the [IAM documentation](https://cloud.
1026
- # google.com/iam/help/conditions/resource-policies).
1674
+ # Update a single message bus.
1675
+ # @param [String] name
1676
+ # Identifier. Resource name of the form projects/`project`/locations/`location`/
1677
+ # messageBuses/`message_bus`
1678
+ # @param [Google::Apis::EventarcV1::MessageBus] message_bus_object
1679
+ # @param [Boolean] allow_missing
1680
+ # Optional. If set to true, and the MessageBus is not found, a new MessageBus
1681
+ # will be created. In this situation, `update_mask` is ignored.
1682
+ # @param [String] update_mask
1683
+ # Optional. The fields to be updated; only fields explicitly provided are
1684
+ # updated. If no field mask is provided, all provided fields in the request are
1685
+ # updated. To update all fields, provide a field mask of "*".
1686
+ # @param [Boolean] validate_only
1687
+ # Optional. If set, validate the request and preview the review, but do not post
1688
+ # it.
1027
1689
  # @param [String] fields
1028
1690
  # Selector specifying which fields to include in a partial response.
1029
1691
  # @param [String] quota_user
@@ -1033,20 +1695,24 @@ module Google
1033
1695
  # Request-specific options
1034
1696
  #
1035
1697
  # @yield [result, err] Result & error if block supplied
1036
- # @yieldparam result [Google::Apis::EventarcV1::Policy] parsed result object
1698
+ # @yieldparam result [Google::Apis::EventarcV1::GoogleLongrunningOperation] parsed result object
1037
1699
  # @yieldparam err [StandardError] error object if request failed
1038
1700
  #
1039
- # @return [Google::Apis::EventarcV1::Policy]
1701
+ # @return [Google::Apis::EventarcV1::GoogleLongrunningOperation]
1040
1702
  #
1041
1703
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1042
1704
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1043
1705
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1044
- def get_project_location_message_bus_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block)
1045
- command = make_simple_command(:get, 'v1/{+resource}:getIamPolicy', options)
1046
- command.response_representation = Google::Apis::EventarcV1::Policy::Representation
1047
- command.response_class = Google::Apis::EventarcV1::Policy
1048
- command.params['resource'] = resource unless resource.nil?
1049
- command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
1706
+ def patch_project_location_message_bus(name, message_bus_object = nil, allow_missing: nil, update_mask: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil, &block)
1707
+ command = make_simple_command(:patch, 'v1/{+name}', options)
1708
+ command.request_representation = Google::Apis::EventarcV1::MessageBus::Representation
1709
+ command.request_object = message_bus_object
1710
+ command.response_representation = Google::Apis::EventarcV1::GoogleLongrunningOperation::Representation
1711
+ command.response_class = Google::Apis::EventarcV1::GoogleLongrunningOperation
1712
+ command.params['name'] = name unless name.nil?
1713
+ command.query['allowMissing'] = allow_missing unless allow_missing.nil?
1714
+ command.query['updateMask'] = update_mask unless update_mask.nil?
1715
+ command.query['validateOnly'] = validate_only unless validate_only.nil?
1050
1716
  command.query['fields'] = fields unless fields.nil?
1051
1717
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1052
1718
  execute_or_queue_command(command, &block)
@@ -1272,6 +1938,118 @@ module Google
1272
1938
  execute_or_queue_command(command, &block)
1273
1939
  end
1274
1940
 
1941
+ # Create a new Pipeline in a particular project and location.
1942
+ # @param [String] parent
1943
+ # Required. The parent collection in which to add this pipeline.
1944
+ # @param [Google::Apis::EventarcV1::Pipeline] pipeline_object
1945
+ # @param [String] pipeline_id
1946
+ # Required. The user-provided ID to be assigned to the Pipeline.
1947
+ # @param [Boolean] validate_only
1948
+ # Optional. If set, validate the request and preview the review, but do not post
1949
+ # it.
1950
+ # @param [String] fields
1951
+ # Selector specifying which fields to include in a partial response.
1952
+ # @param [String] quota_user
1953
+ # Available to use for quota purposes for server-side applications. Can be any
1954
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1955
+ # @param [Google::Apis::RequestOptions] options
1956
+ # Request-specific options
1957
+ #
1958
+ # @yield [result, err] Result & error if block supplied
1959
+ # @yieldparam result [Google::Apis::EventarcV1::GoogleLongrunningOperation] parsed result object
1960
+ # @yieldparam err [StandardError] error object if request failed
1961
+ #
1962
+ # @return [Google::Apis::EventarcV1::GoogleLongrunningOperation]
1963
+ #
1964
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1965
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1966
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1967
+ def create_project_location_pipeline(parent, pipeline_object = nil, pipeline_id: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil, &block)
1968
+ command = make_simple_command(:post, 'v1/{+parent}/pipelines', options)
1969
+ command.request_representation = Google::Apis::EventarcV1::Pipeline::Representation
1970
+ command.request_object = pipeline_object
1971
+ command.response_representation = Google::Apis::EventarcV1::GoogleLongrunningOperation::Representation
1972
+ command.response_class = Google::Apis::EventarcV1::GoogleLongrunningOperation
1973
+ command.params['parent'] = parent unless parent.nil?
1974
+ command.query['pipelineId'] = pipeline_id unless pipeline_id.nil?
1975
+ command.query['validateOnly'] = validate_only unless validate_only.nil?
1976
+ command.query['fields'] = fields unless fields.nil?
1977
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1978
+ execute_or_queue_command(command, &block)
1979
+ end
1980
+
1981
+ # Delete a single pipeline.
1982
+ # @param [String] name
1983
+ # Required. The name of the Pipeline to be deleted.
1984
+ # @param [Boolean] allow_missing
1985
+ # Optional. If set to true, and the Pipeline is not found, the request will
1986
+ # succeed but no action will be taken on the server.
1987
+ # @param [String] etag
1988
+ # Optional. If provided, the Pipeline will only be deleted if the etag matches
1989
+ # the current etag on the resource.
1990
+ # @param [Boolean] validate_only
1991
+ # Optional. If set, validate the request and preview the review, but do not post
1992
+ # it.
1993
+ # @param [String] fields
1994
+ # Selector specifying which fields to include in a partial response.
1995
+ # @param [String] quota_user
1996
+ # Available to use for quota purposes for server-side applications. Can be any
1997
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1998
+ # @param [Google::Apis::RequestOptions] options
1999
+ # Request-specific options
2000
+ #
2001
+ # @yield [result, err] Result & error if block supplied
2002
+ # @yieldparam result [Google::Apis::EventarcV1::GoogleLongrunningOperation] parsed result object
2003
+ # @yieldparam err [StandardError] error object if request failed
2004
+ #
2005
+ # @return [Google::Apis::EventarcV1::GoogleLongrunningOperation]
2006
+ #
2007
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2008
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2009
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2010
+ def delete_project_location_pipeline(name, allow_missing: nil, etag: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil, &block)
2011
+ command = make_simple_command(:delete, 'v1/{+name}', options)
2012
+ command.response_representation = Google::Apis::EventarcV1::GoogleLongrunningOperation::Representation
2013
+ command.response_class = Google::Apis::EventarcV1::GoogleLongrunningOperation
2014
+ command.params['name'] = name unless name.nil?
2015
+ command.query['allowMissing'] = allow_missing unless allow_missing.nil?
2016
+ command.query['etag'] = etag unless etag.nil?
2017
+ command.query['validateOnly'] = validate_only unless validate_only.nil?
2018
+ command.query['fields'] = fields unless fields.nil?
2019
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2020
+ execute_or_queue_command(command, &block)
2021
+ end
2022
+
2023
+ # Get a single Pipeline.
2024
+ # @param [String] name
2025
+ # Required. The name of the pipeline to get.
2026
+ # @param [String] fields
2027
+ # Selector specifying which fields to include in a partial response.
2028
+ # @param [String] quota_user
2029
+ # Available to use for quota purposes for server-side applications. Can be any
2030
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2031
+ # @param [Google::Apis::RequestOptions] options
2032
+ # Request-specific options
2033
+ #
2034
+ # @yield [result, err] Result & error if block supplied
2035
+ # @yieldparam result [Google::Apis::EventarcV1::Pipeline] parsed result object
2036
+ # @yieldparam err [StandardError] error object if request failed
2037
+ #
2038
+ # @return [Google::Apis::EventarcV1::Pipeline]
2039
+ #
2040
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2041
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2042
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2043
+ def get_project_location_pipeline(name, fields: nil, quota_user: nil, options: nil, &block)
2044
+ command = make_simple_command(:get, 'v1/{+name}', options)
2045
+ command.response_representation = Google::Apis::EventarcV1::Pipeline::Representation
2046
+ command.response_class = Google::Apis::EventarcV1::Pipeline
2047
+ command.params['name'] = name unless name.nil?
2048
+ command.query['fields'] = fields unless fields.nil?
2049
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2050
+ execute_or_queue_command(command, &block)
2051
+ end
2052
+
1275
2053
  # Gets the access control policy for a resource. Returns an empty policy if the
1276
2054
  # resource exists and does not have a policy set.
1277
2055
  # @param [String] resource
@@ -1317,6 +2095,103 @@ module Google
1317
2095
  execute_or_queue_command(command, &block)
1318
2096
  end
1319
2097
 
2098
+ # List pipelines.
2099
+ # @param [String] parent
2100
+ # Required. The parent collection to list pipelines on.
2101
+ # @param [String] filter
2102
+ # Optional. The filter field that the list request will filter on. Possible
2103
+ # filters are described in https://google.aip.dev/160.
2104
+ # @param [String] order_by
2105
+ # Optional. The sorting order of the resources returned. Value should be a comma-
2106
+ # separated list of fields. The default sorting order is ascending. To specify
2107
+ # descending order for a field, append a `desc` suffix; for example: `name desc,
2108
+ # update_time`.
2109
+ # @param [Fixnum] page_size
2110
+ # Optional. The maximum number of results to return on each page. Note: The
2111
+ # service may send fewer.
2112
+ # @param [String] page_token
2113
+ # Optional. The page token; provide the value from the `next_page_token` field
2114
+ # in a previous call to retrieve the subsequent page. When paginating, all other
2115
+ # parameters provided must match the previous call that provided the page token.
2116
+ # @param [String] fields
2117
+ # Selector specifying which fields to include in a partial response.
2118
+ # @param [String] quota_user
2119
+ # Available to use for quota purposes for server-side applications. Can be any
2120
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2121
+ # @param [Google::Apis::RequestOptions] options
2122
+ # Request-specific options
2123
+ #
2124
+ # @yield [result, err] Result & error if block supplied
2125
+ # @yieldparam result [Google::Apis::EventarcV1::ListPipelinesResponse] parsed result object
2126
+ # @yieldparam err [StandardError] error object if request failed
2127
+ #
2128
+ # @return [Google::Apis::EventarcV1::ListPipelinesResponse]
2129
+ #
2130
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2131
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2132
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2133
+ def list_project_location_pipelines(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
2134
+ command = make_simple_command(:get, 'v1/{+parent}/pipelines', options)
2135
+ command.response_representation = Google::Apis::EventarcV1::ListPipelinesResponse::Representation
2136
+ command.response_class = Google::Apis::EventarcV1::ListPipelinesResponse
2137
+ command.params['parent'] = parent unless parent.nil?
2138
+ command.query['filter'] = filter unless filter.nil?
2139
+ command.query['orderBy'] = order_by unless order_by.nil?
2140
+ command.query['pageSize'] = page_size unless page_size.nil?
2141
+ command.query['pageToken'] = page_token unless page_token.nil?
2142
+ command.query['fields'] = fields unless fields.nil?
2143
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2144
+ execute_or_queue_command(command, &block)
2145
+ end
2146
+
2147
+ # Update a single pipeline.
2148
+ # @param [String] name
2149
+ # Identifier. The resource name of the Pipeline. Must be unique within the
2150
+ # location of the project and must be in `projects/`project`/locations/`location`
2151
+ # /pipelines/`pipeline`` format.
2152
+ # @param [Google::Apis::EventarcV1::Pipeline] pipeline_object
2153
+ # @param [Boolean] allow_missing
2154
+ # Optional. If set to true, and the Pipeline is not found, a new Pipeline will
2155
+ # be created. In this situation, `update_mask` is ignored.
2156
+ # @param [String] update_mask
2157
+ # Optional. The fields to be updated; only fields explicitly provided are
2158
+ # updated. If no field mask is provided, all provided fields in the request are
2159
+ # updated. To update all fields, provide a field mask of "*".
2160
+ # @param [Boolean] validate_only
2161
+ # Optional. If set, validate the request and preview the review, but do not post
2162
+ # it.
2163
+ # @param [String] fields
2164
+ # Selector specifying which fields to include in a partial response.
2165
+ # @param [String] quota_user
2166
+ # Available to use for quota purposes for server-side applications. Can be any
2167
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2168
+ # @param [Google::Apis::RequestOptions] options
2169
+ # Request-specific options
2170
+ #
2171
+ # @yield [result, err] Result & error if block supplied
2172
+ # @yieldparam result [Google::Apis::EventarcV1::GoogleLongrunningOperation] parsed result object
2173
+ # @yieldparam err [StandardError] error object if request failed
2174
+ #
2175
+ # @return [Google::Apis::EventarcV1::GoogleLongrunningOperation]
2176
+ #
2177
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2178
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2179
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2180
+ def patch_project_location_pipeline(name, pipeline_object = nil, allow_missing: nil, update_mask: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil, &block)
2181
+ command = make_simple_command(:patch, 'v1/{+name}', options)
2182
+ command.request_representation = Google::Apis::EventarcV1::Pipeline::Representation
2183
+ command.request_object = pipeline_object
2184
+ command.response_representation = Google::Apis::EventarcV1::GoogleLongrunningOperation::Representation
2185
+ command.response_class = Google::Apis::EventarcV1::GoogleLongrunningOperation
2186
+ command.params['name'] = name unless name.nil?
2187
+ command.query['allowMissing'] = allow_missing unless allow_missing.nil?
2188
+ command.query['updateMask'] = update_mask unless update_mask.nil?
2189
+ command.query['validateOnly'] = validate_only unless validate_only.nil?
2190
+ command.query['fields'] = fields unless fields.nil?
2191
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2192
+ execute_or_queue_command(command, &block)
2193
+ end
2194
+
1320
2195
  # Sets the access control policy on the specified resource. Replaces any
1321
2196
  # existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `
1322
2197
  # PERMISSION_DENIED` errors.