Sha256: 954bce1911bac5d948c08cf4e95fb40a643e0532dc55cf33cccd427b114032e1

Contents?: true

Size: 737 Bytes

Versions: 61

Compression:

Stored size: 737 Bytes

Contents

module Fog
  module Volume
    class OpenStack
      class Real
        def get_volume_type_details(volume_type_id)
          request(
            :expects  => 200,
            :method   => 'GET',
            :path     => "types/#{volume_type_id}"
          )
        end
      end

      class Mock
        def get_volume_details(volume_type_id)
          response = Excon::Response.new
          response.status = 200
          response.body = {
            "volume_type" => {
              "id" => "1",
              "name" => "type 1",
              "extra_specs" => {
                "volume_backend_name" => "type 1 backend name"
              }
            }
          }
          response
        end
      end
    end
  end
end

Version data entries

61 entries across 61 versions & 5 rubygems

Version Path
fog-maestrodev-1.18.0.20131219032002 lib/fog/openstack/requests/volume/get_volume_type_details.rb
fog-maestrodev-1.18.0.20131219030716 lib/fog/openstack/requests/volume/get_volume_type_details.rb
fog-maestrodev-1.18.0.20131219022322 lib/fog/openstack/requests/volume/get_volume_type_details.rb
fog-maestrodev-1.18.0.20131218202447 lib/fog/openstack/requests/volume/get_volume_type_details.rb
fog-maestrodev-1.18.0.20131209091424 lib/fog/openstack/requests/volume/get_volume_type_details.rb
fog-maestrodev-1.18.0.20131209090811 lib/fog/openstack/requests/volume/get_volume_type_details.rb
fog-maestrodev-1.18.0.20131206115947 lib/fog/openstack/requests/volume/get_volume_type_details.rb
fog-maestrodev-1.18.0.20131205181604 lib/fog/openstack/requests/volume/get_volume_type_details.rb
fog-maestrodev-1.18.0.20131127194823 lib/fog/openstack/requests/volume/get_volume_type_details.rb
fog-maestrodev-1.18.0.20131126183714 lib/fog/openstack/requests/volume/get_volume_type_details.rb
fog-maestrodev-1.18.0.20131126122111 lib/fog/openstack/requests/volume/get_volume_type_details.rb
fog-maestrodev-1.18.0.20131125111730 lib/fog/openstack/requests/volume/get_volume_type_details.rb
fog-maestrodev-1.18.0.20131125083406 lib/fog/openstack/requests/volume/get_volume_type_details.rb
fog-maestrodev-1.18.0.20131123105121 lib/fog/openstack/requests/volume/get_volume_type_details.rb
fog-maestrodev-1.18.0.20131122203507 lib/fog/openstack/requests/volume/get_volume_type_details.rb
fog-maestrodev-1.18.0.20131121075022 lib/fog/openstack/requests/volume/get_volume_type_details.rb
fog-maestrodev-1.18.0.20131118164830 lib/fog/openstack/requests/volume/get_volume_type_details.rb
fog-maestrodev-1.18.0.20131115184302 lib/fog/openstack/requests/volume/get_volume_type_details.rb
fog-maestrodev-1.18.0.20131114200144 lib/fog/openstack/requests/volume/get_volume_type_details.rb
fog-maestrodev-1.18.0.20131112185232 lib/fog/openstack/requests/volume/get_volume_type_details.rb