Sha256: 48d88056f2265c4191a490ea0a3604be1ade07da3bc6ff32dad08fbfc9cf08d9

Contents?: true

Size: 626 Bytes

Versions: 31

Compression:

Stored size: 626 Bytes

Contents

module Fog
  module SharedFileSystem
    class OpenStack
      class Real
        def get_quota(project_id)
          request(
            :expects => 200,
            :method  => 'GET',
            :path    => "#{action_prefix}quota-sets/#{project_id}"
          )
        end
      end

      class Mock
        def get_quota(project_id)
          response = Excon::Response.new
          response.status = 200
          quota_data = data[:quota_updated] || data[:quota]
          quota_data['id'] = project_id
          response.body = {'quota_set' => quota_data}
          response
        end
      end
    end
  end
end

Version data entries

31 entries across 29 versions & 3 rubygems

Version Path
fog-openstack-0.1.27 lib/fog/shared_file_system/openstack/requests/get_quota.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.4.0/gems/fog-openstack-0.1.26/lib/fog/shared_file_system/openstack/requests/get_quota.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.5.0/gems/fog-openstack-0.1.26/lib/fog/shared_file_system/openstack/requests/get_quota.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.3.0/gems/fog-openstack-0.1.26/lib/fog/shared_file_system/openstack/requests/get_quota.rb
fog-openstack-0.1.26 lib/fog/shared_file_system/openstack/requests/get_quota.rb
fog-openstack-0.1.25 lib/fog/shared_file_system/openstack/requests/get_quota.rb
fog-openstack-0.1.24 lib/fog/shared_file_system/openstack/requests/get_quota.rb
fog-openstack-0.1.23 lib/fog/shared_file_system/openstack/requests/get_quota.rb
fog-openstack-0.1.22 lib/fog/shared_file_system/openstack/requests/get_quota.rb
fog-openstack-0.1.21 lib/fog/shared_file_system/openstack/requests/get_quota.rb
fog-openstack-0.1.20 lib/fog/shared_file_system/openstack/requests/get_quota.rb