generated/google-apis-cloudresourcemanager_v2beta1/lib/google/apis/cloudresourcemanager_v2beta1/service.rb
# Updates a Folder, changing its display_name. Changes to the folder
# display_name will be rejected if they violate either the display_name
# formatting rules or naming constraints described in the CreateFolder
# documentation. The Folder's display name must start and end with a letter or
# digit, may contain letters, digits, spaces, hyphens and underscores and can be
# between 3 and 30 characters. This is captured by the regular expression: `\p`L`
# \p`N``1,28`[\p`L`\p`N`]`. The caller must have `resourcemanager.folders.update`
# permission on the identified folder. If the update fails due to the unique
# name constraint then a PreconditionFailure explaining this violation will be
# returned in the Status.details field.
# @param [String] name
#   Output only. The resource name of the Folder. Its format is `folders/`
#   folder_id``, for example: "folders/1234".
# @param [Google::Apis::CloudresourcemanagerV2beta1::Folder] folder_object
# @param [String] update_mask
#   Required. Fields to be updated. Only the `display_name` can be updated.
# @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::CloudresourcemanagerV2beta1::Folder] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::CloudresourcemanagerV2beta1::Folder]
#
# @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
Updates a Folder, changing its display_name. Changes to the folder
display_name will be rejected if they violate either the display_name
formatting rules or naming constraints described in the CreateFolder
documentation. The Folder's display name must start and end with a letter or
digit, may contain letters, digits, spaces, hyphens and underscores and can be
between 3 and 30 characters.
Updates a Folder changing its display_name . Changes to the folder display_name will be rejected if they violate either the display_name formatting rules or naming constraints described in the CreateFolder documentation . The Folder ' s display name must start and end with a letter or digit may contain letters digits spaces hyphens and underscores and can be between 3 and 30 characters .
def patch_folder(name, folder_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::CloudresourcemanagerV2beta1::Folder::Representation
          command.request_object = folder_object
          command.response_representation = Google::Apis::CloudresourcemanagerV2beta1::Folder::Representation
          command.response_class = Google::Apis::CloudresourcemanagerV2beta1::Folder
          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_folder ( name , folder_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 :: CloudresourcemanagerV2beta1 :: Folder :: Representation command . request_object = folder_object command . response_representation = Google :: Apis :: CloudresourcemanagerV2beta1 :: Folder :: Representation command . response_class = Google :: Apis :: CloudresourcemanagerV2beta1 :: Folder 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
Updates a Folder, changing its display_name.
Updates a Folder changing its display_name .
None
Google::Apis::CloudresourcemanagerV2beta1::Folder
[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
folder_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