lib/google/apis/eventarc_v1/service.rb in google-apis-eventarc_v1-0.25.0 vs lib/google/apis/eventarc_v1/service.rb in google-apis-eventarc_v1-0.26.0
- old
+ new
@@ -120,15 +120,112 @@
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
+ # Create a new ChannelConnection in a particular project and location.
+ # @param [String] parent
+ # Required. The parent collection in which to add this channel connection.
+ # @param [Google::Apis::EventarcV1::ChannelConnection] channel_connection_object
+ # @param [String] channel_connection_id
+ # Required. The user-provided ID to be assigned to the channel connection.
+ # @param [String] fields
+ # Selector specifying which fields to include in a partial response.
+ # @param [String] quota_user
+ # Available to use for quota purposes for server-side applications. Can be any
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
+ # @param [Google::Apis::RequestOptions] options
+ # Request-specific options
+ #
+ # @yield [result, err] Result & error if block supplied
+ # @yieldparam result [Google::Apis::EventarcV1::GoogleLongrunningOperation] parsed result object
+ # @yieldparam err [StandardError] error object if request failed
+ #
+ # @return [Google::Apis::EventarcV1::GoogleLongrunningOperation]
+ #
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
+ def create_project_location_channel_connection(parent, channel_connection_object = nil, channel_connection_id: nil, fields: nil, quota_user: nil, options: nil, &block)
+ command = make_simple_command(:post, 'v1/{+parent}/channelConnections', options)
+ command.request_representation = Google::Apis::EventarcV1::ChannelConnection::Representation
+ command.request_object = channel_connection_object
+ command.response_representation = Google::Apis::EventarcV1::GoogleLongrunningOperation::Representation
+ command.response_class = Google::Apis::EventarcV1::GoogleLongrunningOperation
+ command.params['parent'] = parent unless parent.nil?
+ command.query['channelConnectionId'] = channel_connection_id unless channel_connection_id.nil?
+ command.query['fields'] = fields unless fields.nil?
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
+ execute_or_queue_command(command, &block)
+ end
+
+ # Delete a single ChannelConnection.
+ # @param [String] name
+ # Required. The name of the channel connection to delete.
+ # @param [String] fields
+ # Selector specifying which fields to include in a partial response.
+ # @param [String] quota_user
+ # Available to use for quota purposes for server-side applications. Can be any
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
+ # @param [Google::Apis::RequestOptions] options
+ # Request-specific options
+ #
+ # @yield [result, err] Result & error if block supplied
+ # @yieldparam result [Google::Apis::EventarcV1::GoogleLongrunningOperation] parsed result object
+ # @yieldparam err [StandardError] error object if request failed
+ #
+ # @return [Google::Apis::EventarcV1::GoogleLongrunningOperation]
+ #
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
+ def delete_project_location_channel_connection(name, fields: nil, quota_user: nil, options: nil, &block)
+ command = make_simple_command(:delete, 'v1/{+name}', options)
+ command.response_representation = Google::Apis::EventarcV1::GoogleLongrunningOperation::Representation
+ command.response_class = Google::Apis::EventarcV1::GoogleLongrunningOperation
+ command.params['name'] = name unless name.nil?
+ command.query['fields'] = fields unless fields.nil?
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
+ execute_or_queue_command(command, &block)
+ end
+
+ # Get a single ChannelConnection.
+ # @param [String] name
+ # Required. The name of the channel connection to get.
+ # @param [String] fields
+ # Selector specifying which fields to include in a partial response.
+ # @param [String] quota_user
+ # Available to use for quota purposes for server-side applications. Can be any
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
+ # @param [Google::Apis::RequestOptions] options
+ # Request-specific options
+ #
+ # @yield [result, err] Result & error if block supplied
+ # @yieldparam result [Google::Apis::EventarcV1::ChannelConnection] parsed result object
+ # @yieldparam err [StandardError] error object if request failed
+ #
+ # @return [Google::Apis::EventarcV1::ChannelConnection]
+ #
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
+ def get_project_location_channel_connection(name, fields: nil, quota_user: nil, options: nil, &block)
+ command = make_simple_command(:get, 'v1/{+name}', options)
+ command.response_representation = Google::Apis::EventarcV1::ChannelConnection::Representation
+ command.response_class = Google::Apis::EventarcV1::ChannelConnection
+ command.params['name'] = name unless name.nil?
+ command.query['fields'] = fields unless fields.nil?
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
+ execute_or_queue_command(command, &block)
+ end
+
# Gets the access control policy for a resource. Returns an empty policy if the
# resource exists and does not have a policy set.
# @param [String] resource
- # REQUIRED: The resource for which the policy is being requested. See the
- # operation documentation for the appropriate value for this field.
+ # REQUIRED: The resource for which the policy is being requested. See [Resource
+ # names](https://cloud.google.com/apis/design/resource_names) for the
+ # appropriate value for this field.
# @param [Fixnum] options_requested_policy_version
# Optional. The maximum policy version that will be used to format the policy.
# Valid values are 0, 1, and 3. Requests specifying an invalid value will be
# rejected. Requests for policies with any conditional role bindings must
# specify version 3. Policies with no conditional role bindings may specify any
@@ -164,16 +261,57 @@
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
+ # List channel connections.
+ # @param [String] parent
+ # Required. The parent collection from which to list channel connections.
+ # @param [Fixnum] page_size
+ # The maximum number of channel connections to return on each page. Note: The
+ # service may send fewer responses.
+ # @param [String] page_token
+ # The page token; provide the value from the `next_page_token` field in a
+ # previous `ListChannelConnections` call to retrieve the subsequent page. When
+ # paginating, all other parameters provided to `ListChannelConnetions` match the
+ # call that provided the page token.
+ # @param [String] fields
+ # Selector specifying which fields to include in a partial response.
+ # @param [String] quota_user
+ # Available to use for quota purposes for server-side applications. Can be any
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
+ # @param [Google::Apis::RequestOptions] options
+ # Request-specific options
+ #
+ # @yield [result, err] Result & error if block supplied
+ # @yieldparam result [Google::Apis::EventarcV1::ListChannelConnectionsResponse] parsed result object
+ # @yieldparam err [StandardError] error object if request failed
+ #
+ # @return [Google::Apis::EventarcV1::ListChannelConnectionsResponse]
+ #
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
+ def list_project_location_channel_connections(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
+ command = make_simple_command(:get, 'v1/{+parent}/channelConnections', options)
+ command.response_representation = Google::Apis::EventarcV1::ListChannelConnectionsResponse::Representation
+ command.response_class = Google::Apis::EventarcV1::ListChannelConnectionsResponse
+ command.params['parent'] = parent unless parent.nil?
+ command.query['pageSize'] = page_size unless page_size.nil?
+ command.query['pageToken'] = page_token unless page_token.nil?
+ command.query['fields'] = fields unless fields.nil?
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
+ execute_or_queue_command(command, &block)
+ end
+
# Sets the access control policy on the specified resource. Replaces any
# existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `
# PERMISSION_DENIED` errors.
# @param [String] resource
- # REQUIRED: The resource for which the policy is being specified. See the
- # operation documentation for the appropriate value for this field.
+ # REQUIRED: The resource for which the policy is being specified. See [Resource
+ # names](https://cloud.google.com/apis/design/resource_names) for the
+ # appropriate value for this field.
# @param [Google::Apis::EventarcV1::SetIamPolicyRequest] set_iam_policy_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
@@ -206,12 +344,13 @@
# resource does not exist, this will return an empty set of permissions, not a `
# NOT_FOUND` error. Note: This operation is designed to be used for building
# permission-aware UIs and command-line tools, not for authorization checking.
# This operation may "fail open" without warning.
# @param [String] resource
- # REQUIRED: The resource for which the policy detail is being requested. See the
- # operation documentation for the appropriate value for this field.
+ # REQUIRED: The resource for which the policy detail is being requested. See [
+ # Resource names](https://cloud.google.com/apis/design/resource_names) for the
+ # appropriate value for this field.
# @param [Google::Apis::EventarcV1::TestIamPermissionsRequest] test_iam_permissions_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
@@ -345,12 +484,13 @@
end
# Gets the access control policy for a resource. Returns an empty policy if the
# resource exists and does not have a policy set.
# @param [String] resource
- # REQUIRED: The resource for which the policy is being requested. See the
- # operation documentation for the appropriate value for this field.
+ # REQUIRED: The resource for which the policy is being requested. See [Resource
+ # names](https://cloud.google.com/apis/design/resource_names) for the
+ # appropriate value for this field.
# @param [Fixnum] options_requested_policy_version
# Optional. The maximum policy version that will be used to format the policy.
# Valid values are 0, 1, and 3. Requests specifying an invalid value will be
# rejected. Requests for policies with any conditional role bindings must
# specify version 3. Policies with no conditional role bindings may specify any
@@ -480,12 +620,13 @@
# Sets the access control policy on the specified resource. Replaces any
# existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `
# PERMISSION_DENIED` errors.
# @param [String] resource
- # REQUIRED: The resource for which the policy is being specified. See the
- # operation documentation for the appropriate value for this field.
+ # REQUIRED: The resource for which the policy is being specified. See [Resource
+ # names](https://cloud.google.com/apis/design/resource_names) for the
+ # appropriate value for this field.
# @param [Google::Apis::EventarcV1::SetIamPolicyRequest] set_iam_policy_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
@@ -518,12 +659,13 @@
# resource does not exist, this will return an empty set of permissions, not a `
# NOT_FOUND` error. Note: This operation is designed to be used for building
# permission-aware UIs and command-line tools, not for authorization checking.
# This operation may "fail open" without warning.
# @param [String] resource
- # REQUIRED: The resource for which the policy detail is being requested. See the
- # operation documentation for the appropriate value for this field.
+ # REQUIRED: The resource for which the policy detail is being requested. See [
+ # Resource names](https://cloud.google.com/apis/design/resource_names) for the
+ # appropriate value for this field.
# @param [Google::Apis::EventarcV1::TestIamPermissionsRequest] test_iam_permissions_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
@@ -892,12 +1034,13 @@
end
# Gets the access control policy for a resource. Returns an empty policy if the
# resource exists and does not have a policy set.
# @param [String] resource
- # REQUIRED: The resource for which the policy is being requested. See the
- # operation documentation for the appropriate value for this field.
+ # REQUIRED: The resource for which the policy is being requested. See [Resource
+ # names](https://cloud.google.com/apis/design/resource_names) for the
+ # appropriate value for this field.
# @param [Fixnum] options_requested_policy_version
# Optional. The maximum policy version that will be used to format the policy.
# Valid values are 0, 1, and 3. Requests specifying an invalid value will be
# rejected. Requests for policies with any conditional role bindings must
# specify version 3. Policies with no conditional role bindings may specify any
@@ -1036,12 +1179,13 @@
# Sets the access control policy on the specified resource. Replaces any
# existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `
# PERMISSION_DENIED` errors.
# @param [String] resource
- # REQUIRED: The resource for which the policy is being specified. See the
- # operation documentation for the appropriate value for this field.
+ # REQUIRED: The resource for which the policy is being specified. See [Resource
+ # names](https://cloud.google.com/apis/design/resource_names) for the
+ # appropriate value for this field.
# @param [Google::Apis::EventarcV1::SetIamPolicyRequest] set_iam_policy_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
@@ -1074,11 +1218,12 @@
# resource does not exist, this will return an empty set of permissions, not a `
# NOT_FOUND` error. Note: This operation is designed to be used for building
# permission-aware UIs and command-line tools, not for authorization checking.
# This operation may "fail open" without warning.
# @param [String] resource
- # REQUIRED: The resource for which the policy detail is being requested. See the
- # operation documentation for the appropriate value for this field.
+ # REQUIRED: The resource for which the policy detail is being requested. See [
+ # Resource names](https://cloud.google.com/apis/design/resource_names) for the
+ # appropriate value for this field.
# @param [Google::Apis::EventarcV1::TestIamPermissionsRequest] test_iam_permissions_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any