Sha256: 860bc415f968bd80f7c0034a86c31bb6b584d649c8ec0d35e10b5b4801769807

Contents?: true

Size: 1002 Bytes

Versions: 67

Compression:

Stored size: 1002 Bytes

Contents

module Fog
  module Storage
    class OpenStack
      class Real

        # List existing storage containers
        #
        # ==== Parameters
        # * options<~Hash>:
        #   * 'limit'<~Integer> - Upper limit to number of results returned
        #   * 'marker'<~String> - Only return objects with name greater than this value
        #
        # ==== Returns
        # * response<~Excon::Response>:
        #   * body<~Array>:
        #     * container<~Hash>:
        #       * 'bytes'<~Integer>: - Number of bytes used by container
        #       * 'count'<~Integer>: - Number of items in container
        #       * 'name'<~String>: - Name of container
        def get_containers(options = {})
          options = options.reject {|key, value| value.nil?}
          request(
            :expects  => [200, 204],
            :method   => 'GET',
            :path     => '',
            :query    => {'format' => 'json'}.merge!(options)
          )
        end

      end
    end
  end
end

Version data entries

67 entries across 67 versions & 7 rubygems

Version Path
fog-1.10.1 lib/fog/openstack/requests/storage/get_containers.rb
fog-test-me-1.10.0 lib/fog/openstack/requests/storage/get_containers.rb
cifrado-0.1.3 vendor/fog/lib/fog/openstack/requests/storage/get_containers.rb
fog-1.10.0 lib/fog/openstack/requests/storage/get_containers.rb
cifrado-0.1.2 vendor/fog/lib/fog/openstack/requests/storage/get_containers.rb
cifrado-0.1.1 vendor/fog/lib/fog/openstack/requests/storage/get_containers.rb
cifrado-0.1 vendor/fog/lib/fog/openstack/requests/storage/get_containers.rb