Method: OpenStack::Identity::ConnectionV3#update_user

Defined in:
lib/openstack/identity/connection_v3.rb

#update_user(user_id, options) ⇒ Object

update_user(1, ‘user1’, password: ‘password1’, email: ‘[email protected]’)



40
41
42
43
44
# File 'lib/openstack/identity/connection_v3.rb', line 40

def update_user(user_id, options)
  req_body = JSON.generate('user' => options)
  response = @connection.req('PATCH', "/users/#{user_id}", data: req_body)
  OpenStack::Identity::User.new(JSON.parse(response.body)['user'])
end