File: complete_multipart_upload.rb

package info (click to toggle)
ruby-fog-aliyun 0.4.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 720 kB
  • sloc: ruby: 5,804; makefile: 6; sh: 3
file content (21 lines) | stat: -rw-r--r-- 726 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21

module Fog
  module Aliyun
    class Storage
      class Real
        # Complete a multipart upload
        #
        # @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] parts Array of etag and number as Strings for parts
        #
        # @see https://help.aliyun.com/document_detail/31995.html
        #
        def complete_multipart_upload(bucket_name, object_name, upload_id, parts)
          @oss_protocol.complete_multipart_upload(bucket_name, object_name, upload_id, parts)
        end
      end
    end
  end
end