lib/google/apis/eventarc_v1/service.rb in google-apis-eventarc_v1-0.27.0 vs lib/google/apis/eventarc_v1/service.rb in google-apis-eventarc_v1-0.28.0
- old
+ new
@@ -77,10 +77,40 @@
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 GoogleChannelConfig
+ # @param [String] name
+ # Required. The name of the config 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::GoogleChannelConfig] parsed result object
+ # @yieldparam err [StandardError] error object if request failed
+ #
+ # @return [Google::Apis::EventarcV1::GoogleChannelConfig]
+ #
+ # @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_google_channel_config(name, fields: nil, quota_user: nil, options: nil, &block)
+ command = make_simple_command(:get, 'v1/{+name}', options)
+ command.response_representation = Google::Apis::EventarcV1::GoogleChannelConfig::Representation
+ command.response_class = Google::Apis::EventarcV1::GoogleChannelConfig
+ 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
+
# Lists information about the supported locations for this service.
# @param [String] name
# The resource that owns the locations collection, if applicable.
# @param [String] filter
# A filter to narrow down results to a preferred subset. The filtering language
@@ -115,9 +145,48 @@
command.response_class = Google::Apis::EventarcV1::ListLocationsResponse
command.params['name'] = name unless name.nil?
command.query['filter'] = filter unless filter.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
+
+ # Update a single GoogleChannelConfig
+ # @param [String] name
+ # Required. The resource name of the config. Must be in the format of, `projects/
+ # `project`/locations/`location`/googleChannelConfig`.
+ # @param [Google::Apis::EventarcV1::GoogleChannelConfig] google_channel_config_object
+ # @param [String] update_mask
+ # The fields to be updated; only fields explicitly provided are updated. If no
+ # field mask is provided, all provided fields in the request are updated. To
+ # update all fields, provide a field mask of "*".
+ # @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::GoogleChannelConfig] parsed result object
+ # @yieldparam err [StandardError] error object if request failed
+ #
+ # @return [Google::Apis::EventarcV1::GoogleChannelConfig]
+ #
+ # @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 update_project_location_google_channel_config(name, google_channel_config_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
+ command = make_simple_command(:patch, 'v1/{+name}', options)
+ command.request_representation = Google::Apis::EventarcV1::GoogleChannelConfig::Representation
+ command.request_object = google_channel_config_object
+ command.response_representation = Google::Apis::EventarcV1::GoogleChannelConfig::Representation
+ command.response_class = Google::Apis::EventarcV1::GoogleChannelConfig
+ command.params['name'] = name unless name.nil?
+ command.query['updateMask'] = update_mask unless update_mask.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end