class Google::Apis::StorageV1::StorageService
def move_object(bucket, source_object, destination_object, if_generation_match: nil, if_generation_not_match: nil, if_metageneration_match: nil, if_metageneration_not_match: nil, if_source_generation_match: nil, if_source_generation_not_match: nil, if_source_metageneration_match: nil, if_source_metageneration_not_match: nil, projection: nil, user_project: 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:
-
(Google::Apis::StorageV1::Object)
-
Other tags:
- Yieldparam: err - error object if request failed
Yieldparam: result - parsed result object
Other tags:
- Yield: - Result & error if block supplied
Parameters:
-
options
(Google::Apis::RequestOptions
) -- -
user_ip
(String
) -- -
quota_user
(String
) -- -
fields
(String
) -- -
user_project
(String
) -- -
projection
(String
) -- -
if_source_metageneration_not_match
(Fixnum
) -- -
if_source_metageneration_match
(Fixnum
) -- -
if_source_generation_not_match
(Fixnum
) -- -
if_source_generation_match
(Fixnum
) -- -
if_metageneration_not_match
(Fixnum
) -- -
if_metageneration_match
(Fixnum
) -- -
if_generation_not_match
(Fixnum
) -- -
if_generation_match
(Fixnum
) -- -
destination_object
(String
) -- -
source_object
(String
) -- -
bucket
(String
) --
def move_object(bucket, source_object, destination_object, if_generation_match: nil, if_generation_not_match: nil, if_metageneration_match: nil, if_metageneration_not_match: nil, if_source_generation_match: nil, if_source_generation_not_match: nil, if_source_metageneration_match: nil, if_source_metageneration_not_match: nil, projection: nil, user_project: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:post, 'b/{bucket}/o/{sourceObject}/moveTo/o/{destinationObject}', options) command.response_representation = Google::Apis::StorageV1::Object::Representation command.response_class = Google::Apis::StorageV1::Object command.params['bucket'] = bucket unless bucket.nil? command.params['sourceObject'] = source_object unless source_object.nil? command.params['destinationObject'] = destination_object unless destination_object.nil? command.query['ifGenerationMatch'] = if_generation_match unless if_generation_match.nil? command.query['ifGenerationNotMatch'] = if_generation_not_match unless if_generation_not_match.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['ifSourceGenerationMatch'] = if_source_generation_match unless if_source_generation_match.nil? command.query['ifSourceGenerationNotMatch'] = if_source_generation_not_match unless if_source_generation_not_match.nil? command.query['ifSourceMetagenerationMatch'] = if_source_metageneration_match unless if_source_metageneration_match.nil? command.query['ifSourceMetagenerationNotMatch'] = if_source_metageneration_not_match unless if_source_metageneration_not_match.nil? command.query['projection'] = projection unless projection.nil? command.query['userProject'] = user_project unless user_project.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