Sha256: a856ba86c6adfd0d0ec2891c3df9b889b1ded709e5fd7813e8817eeca2b70364

Contents?: true

Size: 601 Bytes

Versions: 39

Compression:

Stored size: 601 Bytes

Contents

module Fog
  module Storage
    class OpenStack
      class Real
        # List number of containers and total bytes stored
        #
        # ==== Returns
        # * response<~Excon::Response>:
        #   * headers<~Hash>:
        #     * 'X-Account-Container-Count'<~String> - Count of containers
        #     * 'X-Account-Bytes-Used'<~String> - Bytes used
        def head_containers
          request(
            :expects => 200..299,
            :method  => 'HEAD',
            :path    => '',
            :query   => {'format' => 'json'}
          )
        end
      end
    end
  end
end

Version data entries

39 entries across 37 versions & 3 rubygems

Version Path
fog-openstack-0.1.31 lib/fog/storage/openstack/requests/head_containers.rb
fog-openstack-0.3.10 lib/fog/storage/openstack/requests/head_containers.rb
fog-openstack-0.1.30 lib/fog/storage/openstack/requests/head_containers.rb
fog-openstack-0.1.29 lib/fog/storage/openstack/requests/head_containers.rb
fog-openstack-0.3.9 lib/fog/storage/openstack/requests/head_containers.rb
fog-openstack-0.1.28 lib/fog/storage/openstack/requests/head_containers.rb
fog-openstack-0.3.8 lib/fog/storage/openstack/requests/head_containers.rb
fog-openstack-0.3.7 lib/fog/storage/openstack/requests/head_containers.rb
fog-openstack-0.3.6 lib/fog/storage/openstack/requests/head_containers.rb
fog-openstack-0.3.5 lib/fog/storage/openstack/requests/head_containers.rb
fog-openstack-0.3.4 lib/fog/storage/openstack/requests/head_containers.rb
fog-openstack-0.3.3 lib/fog/storage/openstack/requests/head_containers.rb
fog-openstack-0.3.2 lib/fog/storage/openstack/requests/head_containers.rb
fog-openstack-0.3.0 lib/fog/storage/openstack/requests/head_containers.rb
fog-openstack-0.2.4 lib/fog/storage/openstack/requests/head_containers.rb
fog-openstack-0.2.3 lib/fog/storage/openstack/requests/head_containers.rb
fog-openstack-0.2.2 lib/fog/storage/openstack/requests/head_containers.rb
fog-openstack-0.2.1 lib/fog/storage/openstack/requests/head_containers.rb
fog-openstack-0.2.0 lib/fog/storage/openstack/requests/head_containers.rb
fog-zj-0.1.28 lib/fog/storage/openstack/requests/head_containers.rb