Class: XClarityClient::UserManagement
- Inherits:
-
Services::XClarityService
- Object
- Services::XClarityService
- XClarityClient::UserManagement
- Defined in:
- lib/xclarity_client/services/user_management.rb
Instance Method Summary collapse
Methods inherited from Services::XClarityService
#fetch_all, #get_headers_with_opts, #get_object, #get_object_with_id, #get_object_with_opts, #initialize
Methods included from Services::ResponseBuilderMixin
#build_response_with_resource_list
Methods included from Services::ListNameInterpreterMixin
Constructor Details
This class inherits a constructor from XClarityClient::Services::XClarityService
Instance Method Details
#change_password(current_password, new_password) ⇒ Object
7 8 9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/xclarity_client/services/user_management.rb', line 7 def change_password(current_password, new_password) payload = { password: current_password, newPassword: new_password, confirmPassword: new_password } request_body = JSON.generate(payload) response = @connection.do_put(managed_resource::SUB_URIS[:changePassword], request_body) mount_response_change_password(response) end |