1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00
fog--fog/lib/fog/openstack/requests/identity/delete_user_role.rb
Nelvin Driz 4d33ccb7a7 [openstack|compute] General Cleanup and Update
- Focus on adding additional vm actions support
- New request types are not fully tested
2012-04-30 10:34:59 +08:00

26 lines
545 B
Ruby

module Fog
module Identity
class OpenStack
class Real
def delete_user_role(tenant_id, user_id, role_id)
request(
:expects => 200,
:method => 'DELETE',
:path => "/tenants/#{tenant_id}/users/#{user_id}/roles/OS-KSADM/#{role_id}"
)
end
end
class Mock
def delete_user_role(tenant_id, user_id, role_id)
response = Excon::Response.new
response.status = 200
response
end
end
end
end
end