class Google::Apis::StorageV1::StorageService
def delete_folder(bucket, folder, if_metageneration_match: nil, if_metageneration_not_match: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
-
(Google::Apis::AuthorizationError)
- Authorization is required -
(Google::Apis::ClientError)
- The request is invalid and should not be retried without modification -
(Google::Apis::ServerError)
- An error occurred on the server and the request can be retried
Returns:
-
(void)
-
Other tags:
- Yieldparam: err - error object if request failed
Yieldparam: result - No result returned for this method
Other tags:
- Yield: - Result & error if block supplied
Parameters:
-
options
(Google::Apis::RequestOptions
) -- -
user_ip
(String
) -- -
quota_user
(String
) -- -
fields
(String
) -- -
if_metageneration_not_match
(Fixnum
) -- -
if_metageneration_match
(Fixnum
) -- -
folder
(String
) -- -
bucket
(String
) --
def delete_folder(bucket, folder, if_metageneration_match: nil, if_metageneration_not_match: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:delete, 'b/{bucket}/folders/{folder}', options) command.params['bucket'] = bucket unless bucket.nil? command.params['folder'] = folder unless folder.nil? command.query['ifMetagenerationMatch'] = if_metageneration_match unless if_metageneration_match.nil? command.query['ifMetagenerationNotMatch'] = if_metageneration_not_match unless if_metageneration_not_match.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end