class Aws::S3::MultipartUpload

def parts(options = {})

Returns:
  • (MultipartUploadPart::Collection) -

Options Hash: (**options)
  • :sse_customer_key_md5 (String) --
  • :sse_customer_key (String) --
  • :sse_customer_algorithm (String) --
  • :expected_bucket_owner (String) --
  • :request_payer (String) --

Parameters:
  • options (Hash) -- ({})

Other tags:
    Example: Request syntax with placeholder values -
def parts(options = {})
  batches = Enumerator.new do |y|
    options = options.merge(
      bucket: @bucket_name,
      key: @object_key,
      upload_id: @id
    )
    resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
      @client.list_parts(options)
    end
    resp.each_page do |page|
      batch = []
      page.data.parts.each do |p|
        batch << MultipartUploadPart.new(
          bucket_name: options[:bucket],
          object_key: options[:key],
          multipart_upload_id: options[:upload_id],
          part_number: p.part_number,
          data: p,
          client: @client
        )
      end
      y.yield(batch)
    end
  end
  MultipartUploadPart::Collection.new(batches)
end