Sha256: 1354e8475d407b36af44b986a251d335ce60f473be7e864e950f773014cff02d

Contents?: true

Size: 650 Bytes

Versions: 32

Compression:

Stored size: 650 Bytes

Contents

module Fog
  module Compute
    class OpenStack
      class Real
        def get_volume_details(volume_id)
          request(
            :expects  => 200,
            :method   => 'GET',
            :path     => "os-volumes/#{volume_id}"
          )
        end
      end

      class Mock
        def get_volume_details(volume_id)
          response = Excon::Response.new
          if data = self.data[:volumes][volume_id]
            response.status = 200
            response.body = { 'volume' => data }
            response
          else
            raise Fog::Compute::OpenStack::NotFound
          end
        end
      end
    end
  end
end

Version data entries

32 entries across 32 versions & 5 rubygems

Version Path
fog-openstack-0.1.2 lib/fog/openstack/requests/compute/get_volume_details.rb
fog-openstack-0.1.1 lib/fog/openstack/requests/compute/get_volume_details.rb
fog-openstack-0.1.0 lib/fog/openstack/requests/compute/get_volume_details.rb
fog-1.37.0 lib/fog/openstack/requests/compute/get_volume_details.rb
fog-1.36.0 lib/fog/openstack/requests/compute/get_volume_details.rb
fog-1.35.0 lib/fog/openstack/requests/compute/get_volume_details.rb
fog-2.0.0.pre.0 lib/fog/openstack/requests/compute/get_volume_details.rb
vagrant-cloudstack-1.2.0 vendor/bundle/gems/fog-1.32.0/lib/fog/openstack/requests/compute/get_volume_details.rb
fog-1.34.0 lib/fog/openstack/requests/compute/get_volume_details.rb
fog-1.33.0 lib/fog/openstack/requests/compute/get_volume_details.rb
fog-1.32.0 lib/fog/openstack/requests/compute/get_volume_details.rb
fog-1.31.0 lib/fog/openstack/requests/compute/get_volume_details.rb
vagrant-cloudstack-1.1.0 vendor/bundle/gems/fog-1.22.1/lib/fog/openstack/requests/compute/get_volume_details.rb
fog-1.30.0 lib/fog/openstack/requests/compute/get_volume_details.rb
fog-1.29.0 lib/fog/openstack/requests/compute/get_volume_details.rb
fog-1.28.0 lib/fog/openstack/requests/compute/get_volume_details.rb
fog-1.27.0 lib/fog/openstack/requests/compute/get_volume_details.rb
fog-1.26.0 lib/fog/openstack/requests/compute/get_volume_details.rb
fog-1.25.0 lib/fog/openstack/requests/compute/get_volume_details.rb
nsidc-fog-1.24.1 lib/fog/openstack/requests/compute/get_volume_details.rb