generated/google-apis-apikeys_v2/lib/google/apis/apikeys_v2/service.rb
def patch_project_location_key(name, v2_key_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
          command = make_simple_command(:patch, 'v2/{+name}', options)
          command.request_representation = Google::Apis::ApikeysV2::V2Key::Representation
          command.request_object = v2_key_object
          command.response_representation = Google::Apis::ApikeysV2::Operation::Representation
          command.response_class = Google::Apis::ApikeysV2::Operation
          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
# Patches the modifiable fields of an API key. The key string of the API key isn'
# t included in the response. NOTE: Key is a global resource; hence the only
# supported value for location is `global`.
# @param [String] name
#   Output only. The resource name of the key. The `name` has the form: `projects//
#   locations/global/keys/`. For example: `projects/123456867718/locations/global/
#   keys/b7ff1f9f-8275-410a-94dd-3855ee9b5dd2` NOTE: Key is a global resource;
#   hence the only supported value for location is `global`.
# @param [Google::Apis::ApikeysV2::V2Key] v2_key_object
# @param [String] update_mask
#   The field mask specifies which fields to be updated as part of this request.
#   All other fields are ignored. Mutable fields are: `display_name` and `
#   restrictions`. If an update mask is not provided, the service treats it as an
#   implied mask equivalent to all allowed fields that are set on the wire. If the
#   field mask has a special value "*", the service treats it equivalent to
#   replace all allowed mutable fields.
# @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::ApikeysV2::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ApikeysV2::Operation]
#
# @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
Patches the modifiable fields of an API key. The key string of the API key isn'
t included in the response. NOTE: Key is a global resource; hence the only
supported value for location is `global`.
Patches the modifiable fields of an API key . The key string of the API key isn ' t included in the response . NOTE : Key is a global resource ; hence the only supported value for location is ` global ` .
def patch_project_location_key(name, v2_key_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
          command = make_simple_command(:patch, 'v2/{+name}', options)
          command.request_representation = Google::Apis::ApikeysV2::V2Key::Representation
          command.request_object = v2_key_object
          command.response_representation = Google::Apis::ApikeysV2::Operation::Representation
          command.response_class = Google::Apis::ApikeysV2::Operation
          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
def patch_project_location_key ( name , v2_key_object = nil , update_mask : nil , fields : nil , quota_user : nil , options : nil , & block ) command = make_simple_command ( :patch , 'v2/{+name}' , options ) command . request_representation = Google :: Apis :: ApikeysV2 :: V2Key :: Representation command . request_object = v2_key_object command . response_representation = Google :: Apis :: ApikeysV2 :: Operation :: Representation command . response_class = Google :: Apis :: ApikeysV2 :: Operation 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
Patches the modifiable fields of an API key.
Patches the modifiable fields of an API key .
None
Google::Apis::ApikeysV2::Operation
[Google::Apis::ServerError] An error occurred on the server and the request can be retried
[ Google :: Apis :: ServerError ] An error occurred on the server and the request can be retried
[Google::Apis::ClientError] The request is invalid and should not be retried without modification
[ Google :: Apis :: ClientError ] The request is invalid and should not be retried without modification
[Google::Apis::AuthorizationError] Authorization is required
[ Google :: Apis :: AuthorizationError ] Authorization is required
name
v2_key_object
update_mask
fields
quota_user
options
block
options Request-specific options
options Request - specific options
]
Result & error if block supplied
Result & error if block supplied
result
parsed result object
parsed result object
err
error object if request failed
error object if request failed