1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
|
module Fog
module OpenStack
class Compute
class Real
def remove_flavor_access(flavor_ref, tenant_id)
request(
:body => Fog::JSON.encode("removeTenantAccess" => {
"tenant" => tenant_id.to_s
}),
:expects => [200, 203],
:method => 'POST',
:path => "flavors/#{flavor_ref}/action"
)
end
end
class Mock
def remove_flavor_access(_flavor_ref, _tenant_id)
response = Excon::Response.new
response.status = 200
response.body = {
"flavor_access" => []
}
response
end
end
end
end
end
|