3 define_request :update_user do
5 meta :provider, :openstack
6 meta :service, :identity
8 meta :endpoint_type, :admin
12 'http://docs.openstack.org/api/openstack-identity-service/2.0/content/POST_updateUser_v2.0_users__userId__.html'
15 'https://bugs.launchpad.net/keystone/+bug/1226475'
17 param :id, :required => true
18 param :name, :required => false
19 param :password, :required => false
20 param :email, :required => false
21 param :enabled, :required => false
22 param :tenantId, :required => false, :alias => :tenant_id
23 param :extras, :required => false
31 optional_params.each do |key|
32 p[:user][key] = params[key] if params[key]
42 unless self.anonymous?
43 h['X-Auth-Token'] = session_data[:body][:access][:token][:id]
56 service_spec = session_data[:body][:access][:serviceCatalog].find { |s| s[:type] == service.to_s }
57 "#{ service_spec[:endpoints][0][:adminURL] }/users/#{ params[:id] }"