Sha256: 145cfd157fa39cd460b0edc49c42c1f392bc1723bbea3f44c2de862f169ff4a3

Contents?: true

Size: 594 Bytes

Versions: 55

Compression:

Stored size: 594 Bytes

Contents

module Fog
  module Volume
    class OpenStack
      class Real

        def get_quota_defaults(tenant_id)
          request(
            :expects  => 200,
            :method   => 'GET',
            :path     => "/os-quota-sets/#{tenant_id}/defaults"
          )
        end

      end

      class Mock

        def get_quota_defaults(tenant_id)
          response = Excon::Response.new
          response.status = 200
          response.body = {
            'quota_set' => self.data[:quota].merge({'id' => tenant_id})
          }
          response
        end

      end

    end
  end
end

Version data entries

55 entries across 55 versions & 3 rubygems

Version Path
fog-1.22.0 lib/fog/openstack/requests/volume/get_quota_defaults.rb
fog-1.21.0 lib/fog/openstack/requests/volume/get_quota_defaults.rb
fog-maestrodev-1.20.0.20140305101839 lib/fog/openstack/requests/volume/get_quota_defaults.rb
fog-maestrodev-1.20.0.20140305101305 lib/fog/openstack/requests/volume/get_quota_defaults.rb
fog-maestrodev-1.19.0.20140212012611 lib/fog/openstack/requests/volume/get_quota_defaults.rb
fog-1.20.0 lib/fog/openstack/requests/volume/get_quota_defaults.rb
fog-maestrodev-1.19.0.20140110004459 lib/fog/openstack/requests/volume/get_quota_defaults.rb
fog-maestrodev-1.19.0.20140110003812 lib/fog/openstack/requests/volume/get_quota_defaults.rb
fog-maestrodev-1.19.0.20140109202555 lib/fog/openstack/requests/volume/get_quota_defaults.rb
fog-maestrodev-1.19.0.20140107192102 lib/fog/openstack/requests/volume/get_quota_defaults.rb
fog-maestrodev-1.19.0.20140107142106 lib/fog/openstack/requests/volume/get_quota_defaults.rb
fog-maestrodev-1.19.0.20131219203941 lib/fog/openstack/requests/volume/get_quota_defaults.rb
fog-maestrodev-1.18.0.20131219193542 lib/fog/openstack/requests/volume/get_quota_defaults.rb
fog-1.19.0 lib/fog/openstack/requests/volume/get_quota_defaults.rb
fog-maestrodev-1.18.0.20131219033443 lib/fog/openstack/requests/volume/get_quota_defaults.rb
fog-maestrodev-1.18.0.20131219032002 lib/fog/openstack/requests/volume/get_quota_defaults.rb
fog-maestrodev-1.18.0.20131219030716 lib/fog/openstack/requests/volume/get_quota_defaults.rb
fog-maestrodev-1.18.0.20131219022322 lib/fog/openstack/requests/volume/get_quota_defaults.rb
fog-maestrodev-1.18.0.20131218202447 lib/fog/openstack/requests/volume/get_quota_defaults.rb
fog-maestrodev-1.18.0.20131209091424 lib/fog/openstack/requests/volume/get_quota_defaults.rb