Sha256: f14364c02519c70d61895bdde445a88a9ccbf5b9c012f6ec774e42cc83d1367c

Contents?: true

Size: 698 Bytes

Versions: 12

Compression:

Stored size: 698 Bytes

Contents

module Fog
  module Volume
    class OpenStack
      module Real
        def list_zones(options = {})
          request(
            :expects => 200,
            :method  => 'GET',
            :path    => 'os-availability-zone.json',
            :query   => options
          )
        end
      end

      module Mock
        def list_zones(options = {})
          Excon::Response.new(
            :body   => {
              "availabilityZoneInfo" => [
                {
                  "zoneState" => { "available" => true },
                  "zoneName"  => "nova"
                }
              ]
            },
            :status => 200
          )
        end
      end
    end
  end
end

Version data entries

12 entries across 12 versions & 2 rubygems

Version Path
fog-openstack-0.1.10 lib/fog/openstack/requests/volume/list_zones.rb
fog-openstack-0.1.9 lib/fog/openstack/requests/volume/list_zones.rb
fog-openstack-0.1.8 lib/fog/openstack/requests/volume/list_zones.rb
fog-openstack-0.1.7 lib/fog/openstack/requests/volume/list_zones.rb
fog-openstack-0.1.6 lib/fog/openstack/requests/volume/list_zones.rb
fog-openstack-0.1.5 lib/fog/openstack/requests/volume/list_zones.rb
fog-openstack-0.1.4 lib/fog/openstack/requests/volume/list_zones.rb
fog-openstack-0.1.3 lib/fog/openstack/requests/volume/list_zones.rb
fog-openstack-0.1.2 lib/fog/openstack/requests/volume/list_zones.rb
fog-openstack-0.1.1 lib/fog/openstack/requests/volume/list_zones.rb
fog-openstack-0.1.0 lib/fog/openstack/requests/volume/list_zones.rb
fog-1.37.0 lib/fog/openstack/requests/volume/list_zones.rb