mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
changed x-amz- to x-goo- in some requests
This commit is contained in:
parent
f810d6b194
commit
80a22a3d6b
2 changed files with 8 additions and 8 deletions
|
@ -13,11 +13,11 @@ module Fog
|
|||
# * target_bucket_name<~String> - Name of bucket to create copy in
|
||||
# * target_object_name<~String> - Name for new copy of object
|
||||
# * options<~Hash>:
|
||||
# * 'x-amz-metadata-directive'<~String> - Specifies whether to copy metadata from source or replace with data in request. Must be in ['COPY', 'REPLACE']
|
||||
# * 'x-amz-copy_source-if-match'<~String> - Copies object if its etag matches this value
|
||||
# * 'x-amz-copy_source-if-modified_since'<~Time> - Copies object it it has been modified since this time
|
||||
# * 'x-amz-copy_source-if-none-match'<~String> - Copies object if its etag does not match this value
|
||||
# * 'x-amz-copy_source-if-unmodified-since'<~Time> - Copies object it it has not been modified since this time
|
||||
# * 'x-goog-metadata-directive'<~String> - Specifies whether to copy metadata from source or replace with data in request. Must be in ['COPY', 'REPLACE']
|
||||
# * 'x-goog-copy_source-if-match'<~String> - Copies object if its etag matches this value
|
||||
# * 'x-goog-copy_source-if-modified_since'<~Time> - Copies object it it has been modified since this time
|
||||
# * 'x-goog-copy_source-if-none-match'<~String> - Copies object if its etag does not match this value
|
||||
# * 'x-goog-copy_source-if-unmodified-since'<~Time> - Copies object it it has not been modified since this time
|
||||
#
|
||||
# ==== Returns
|
||||
# * response<~Excon::Response>:
|
||||
|
@ -26,7 +26,7 @@ module Fog
|
|||
# * 'LastModified'<~Time> - date object was last modified
|
||||
#
|
||||
def copy_object(source_bucket_name, source_object_name, target_bucket_name, target_object_name, options = {})
|
||||
headers = { 'x-amz-copy-source' => "/#{source_bucket_name}/#{source_object_name}" }.merge!(options)
|
||||
headers = { 'x-goog-copy-source' => "/#{source_bucket_name}/#{source_object_name}" }.merge!(options)
|
||||
request({
|
||||
:expects => 200,
|
||||
:headers => headers,
|
||||
|
|
|
@ -16,8 +16,8 @@ module Fog
|
|||
# * 'Content-Length'<~String> - Size of object in bytes (defaults to object.read.length)
|
||||
# * 'Content-MD5'<~String> - Base64 encoded 128-bit MD5 digest of message (defaults to Base64 encoded MD5 of object.read)
|
||||
# * 'Content-Type'<~String> - Standard MIME type describing contents (defaults to MIME::Types.of.first)
|
||||
# * 'x-amz-acl'<~String> - Permissions, must be in ['private', 'public-read', 'public-read-write', 'authenticated-read']
|
||||
# * "x-amz-meta-#{name}" - Headers to be returned with object, note total size of request without body must be less than 8 KB.
|
||||
# * 'x-goog-acl'<~String> - Permissions, must be in ['private', 'public-read', 'public-read-write', 'authenticated-read']
|
||||
# * "x-goog-meta-#{name}" - Headers to be returned with object, note total size of request without body must be less than 8 KB.
|
||||
#
|
||||
# ==== Returns
|
||||
# * response<~Excon::Response>:
|
||||
|
|
Loading…
Reference in a new issue