Sha256: d2082902ac2a3348b336be9ea646f3666ffd325bda59fba826869350ca14d963
Contents?: true
Size: 718 Bytes
Versions: 7
Compression:
Stored size: 718 Bytes
Contents
module Fog module Volume class OpenStack module Real def update_quota(tenant_id, options = {}) options['tenant_id'] = tenant_id request( :body => Fog::JSON.encode('quota_set' => options), :expects => 200, :method => 'PUT', :path => "/os-quota-sets/#{tenant_id}" ) end end module Mock def update_quota(_tenant_id, options = {}) data[:quota_updated] = data[:quota].merge options response = Excon::Response.new response.status = 200 response.body = {'quota_set' => data[:quota_updated]} response end end end end end
Version data entries
7 entries across 7 versions & 1 rubygems