3 define_request :delete_user do
5 meta :provider, :openstack
6 meta :service, :identity
8 meta :endpoint_type, :admin
11 'http://docs.openstack.org/api/openstack-identity-service/2.0/content/DELETE_deleteUser_v2.0_users__userId__.html'
13 param :id, :required => true
19 unless self.anonymous?
20 h['X-Auth-Token'] = session_data[:body][:access][:token][:id]
33 service_spec = session_data[:body][:access][:serviceCatalog].find{|s| s[:type] == service.to_s }
34 "#{ service_spec[:endpoints][0][:adminURL] }/users/#{ params[:id]}"