Sha256: 23c6b650f812294a950aad2c630d7d5e0af00bbfd1b3fe7ae78ef0e0e760f575
Contents?: true
Size: 717 Bytes
Versions: 7
Compression:
Stored size: 717 Bytes
Contents
module Fog module Compute class OpenStack class 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 class 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