Sha256: 1a695cc4e310045e4340bffac42477b9551f06c53170c71e4341a49f51fcf36f

Contents?: true

Size: 620 Bytes

Versions: 7

Compression:

Stored size: 620 Bytes

Contents

module Fog
  module Storage
    class OracleCloud
      class Real
      	def get_container(name)
          response = request(
            :expects  => [204],
            :method   => 'HEAD',
            :path     => "/v1/Storage-#{@identity_domain}/#{name}"
          )
          response
        end
        def get_container_with_objects(name)
          response = request(
            :expects  => [204,200],
            :method   => 'GET',
            :path     => "/v1/Storage-#{@identity_domain}/#{name}?format=json"
          )
          response
        end
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
fog-oraclecloud-0.1.7 lib/fog/oraclecloud/requests/storage/get_container.rb
fog-oraclecloud-0.1.6 lib/fog/oraclecloud/requests/storage/get_container.rb
fog-oraclecloud-0.1.5 lib/fog/oraclecloud/requests/storage/get_container.rb
fog-oraclecloud-0.1.4 lib/fog/oraclecloud/requests/storage/get_container.rb
fog-oraclecloud-0.1.3 lib/fog/oraclecloud/requests/storage/get_container.rb
fog-oraclecloud-0.1.2 lib/fog/oraclecloud/requests/storage/get_container.rb
fog-oraclecloud-0.1.1 lib/fog/oraclecloud/requests/storage/get_container.rb