1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00

Merge pull request #1412 from westonplatter/aws_docs

[docs] question about how to format AWS nested responses
This commit is contained in:
Wesley Beary 2012-12-24 09:22:11 -08:00
commit 666b832232

View file

@ -7,23 +7,19 @@ module Fog
# Complete a multipart upload
#
# ==== Parameters
# * bucket_name<~String> - Name of bucket to complete multipart upload for
# * object_name<~String> - Name of object to complete multipart upload for
# * upload_id<~String> - Id of upload to add part to
# * parts<~Array>: Array of etags for parts
# * :etag<~String> - Etag for this part
# @param [String] bucket_name Name of bucket to complete multipart upload for
# @param [String] object_name Name of object to complete multipart upload for
# @param [String] upload_id Id of upload to add part to
# @param [Array<String>] parts Array of etags as Strings for parts
#
# ==== Returns
# * response<~Excon::Response>:
# * headers<~Hash>:
# * 'Bucket'<~String> - bucket of new object
# * 'ETag'<~String> - etag of new object (will be needed to complete upload)
# * 'Key'<~String> - key of new object
# * 'Location'<~String> - location of new object
# @return Excon::Response
# * headers (Hash)
# * Bucket (String) -- bucket of new object
# * ETag (String) -- etag of new object (will be needed to complete upload)
# * Key (String) -- key of new object
# * Location (String) -- location of new object
#
# ==== See Also
# http://docs.amazonwebservices.com/AmazonS3/latest/API/mpUploadComplete.html
# @see http://docs.amazonwebservices.com/AmazonS3/latest/API/mpUploadComplete.html
#
def complete_multipart_upload(bucket_name, object_name, upload_id, parts)
data = "<CompleteMultipartUpload>"