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/remove_user_from_tenant.rb
Nelvin Driz e47c5eb9c4 [openstack|identity] Update Fog to Accomodate Tenant Deletion Workaround
Workflow

Signed-off-by: Nelvin Driz <nelvindriz@live.com>
2012-04-30 10:35:02 +08:00

20 lines
560 B
Ruby

module Fog
module Identity
class OpenStack
class Real
def remove_user_from_tenant(tenant_id, user_id, role_id)
request(
:expects => [200, 204],
:method => 'DELETE',
:path => "/tenants/#{tenant_id}/users/#{user_id}/roles/OS-KSADM/#{role_id}"
)
end
end # class Real
class Mock
def remove_user_from_tenant(tenant_id, user_id, role_id)
end # def remove_user_from_tenant
end # class Mock
end # class OpenStack
end # module Identity
end