/// <summary>
 /// Sends a PUT to '/api/user/{id}/password'
 /// </summary>
 /// <param name="id">a path parameter (no description)</param>
 /// <param name="model">a body parameter (no description)</param>
 /// <returns></returns>
 public static RestOperation SetUserPassword(string id, SetPassword model)
 {
     return new RestOperation("PUT", "api/user/" + id + "/password")
         {
             Content = model
         };
 }
partial         void CopyExtraPropertiesToClone(SetPassword clone, bool includeLocalProperties);
		/// <summary>
        /// Sends a PUT to '/api/user/{id}/password'  (asynchronous)
        /// </summary>
        /// <param name="id">a path parameter (no description)</param>
        /// <param name="model">a body parameter (no description)</param>
        /// <returns></returns>
        public virtual async Task<HttpResponseMessage> SetUserPasswordAsync(string id, SetPassword model)
        {
            var operation = Operations.SetUserPassword(id, model);
			var response = await _client.SendAsync(operation.BuildRequest(_client));
			EnsureSuccess(response);
			return response;
						
		}
 public SetPassword Clone(bool includeLocalProperties)
 {
     var c = new SetPassword
             {
                 Password = Password,
             };
     CopyExtraPropertiesToClone(c, includeLocalProperties);
     return c;
 }
        /// <summary>
        /// Sends a PUT to '/api/user/{id}/password'
        /// </summary>
        /// <param name="id">a path parameter (no description)</param>
        /// <param name="model">a body parameter (no description)</param>
        /// <returns></returns>
        public virtual HttpResponseMessage SetUserPassword(string id, SetPassword model)
        {
            var operation = Operations.SetUserPassword(id, model);
			var response = _client.SendAsync(operation.BuildRequest(_client)).Result;
			EnsureSuccess(response);
			return response;
		}