Sha256: 8cc23880e92cae411d6281552644dfeb3f0eb469df4f1c1b180768b00499474a

Contents?: true

Size: 753 Bytes

Versions: 2

Compression:

Stored size: 753 Bytes

Contents

# frozen_string_literal: true

module Fog
  module Aliyun
    class Storage
      class Real
        def list_objects(bucket_name, options = {})
          maxKeys = options[:max_keys] || 1000
          maxKeys = maxKeys.to_i
          maxKeys = [maxKeys, 1000].min

          options[:limit] = maxKeys
          options.delete(:max_keys)
          @oss_protocol.list_objects(bucket_name, options)
        end

        def list_multipart_uploads(bucket_name, _options = {})
          @oss_protocol.list_multipart_uploads(bucket_name, _options)
        end

        def list_parts(bucket_name, object_name, upload_id, _options = {})
          @oss_protocol.list_parts(bucket_name, object_name, upload_id, _options)
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
fog-aliyun-0.4.0 lib/fog/aliyun/requests/storage/list_objects.rb
fog-aliyun-0.3.19 lib/fog/aliyun/requests/storage/list_objects.rb