/// <summary>
 /// Sends a PUT to '/api/mailsender/default/settings'
 /// </summary>
 /// <param name="model">a body parameter (no description)</param>
 /// <returns></returns>
 public static RestOperation UpdateMailSenderSettings(CreateMailSenderSettings model)
 {
     return new RestOperation("PUT", "api/mailsender/default/settings")
         {
             Content = model
         };
 }
partial         void CopyExtraPropertiesToClone(CreateMailSenderSettings clone, bool includeLocalProperties);
		/// <summary>
        /// Sends a PUT to '/api/mailsender/default/settings'  (asynchronous)
        /// </summary>
        /// <param name="model">a body parameter (no description)</param>
        /// <returns></returns>
        public virtual async Task<MailSenderSettings> UpdateMailSenderSettingsAsync(CreateMailSenderSettings model)
        {
            var operation = Operations.UpdateMailSenderSettings(model);
			var response = await _client.SendAsync(operation.BuildRequest(_client));
			EnsureSuccess(response);
			var result = await response.Content.ReadAsAsync<MailSenderSettings>();
			return result;
						
		}
 public CreateMailSenderSettings Clone(bool includeLocalProperties)
 {
     var c = new CreateMailSenderSettings
             {
                 EmailPrefix = EmailPrefix,
                 Enabled = Enabled,
                 FromAddress = FromAddress,
                 HostName = HostName,
                 Password = Password,
                 Port = Port,
                 SSL = SSL,
                 Timeout = Timeout,
                 Type = Type,
                 UserName = UserName,
             };
     CopyExtraPropertiesToClone(c, includeLocalProperties);
     return c;
 }
        /// <summary>
        /// Sends a PUT to '/api/mailsender/default/settings'
        /// </summary>
        /// <param name="model">a body parameter (no description)</param>
        /// <returns></returns>
        public virtual MailSenderSettings UpdateMailSenderSettings(CreateMailSenderSettings model)
        {
            var operation = Operations.UpdateMailSenderSettings(model);
			var response = _client.SendAsync(operation.BuildRequest(_client)).Result;
			EnsureSuccess(response);
			var result = response.Content.ReadAsAsync<MailSenderSettings>().Result;
			return result;
			
		}