/// <summary>
        /// Sends a PUT to '/api/automatedtestschedule/{scheduleId}/importconfiguration/{configId}'  (asynchronous)
        /// </summary>
        /// <param name="scheduleId">a path parameter (no description)</param>
        /// <param name="configId">a path parameter (no description)</param>
        /// <param name="dto">a body parameter (no description)</param>
        /// <returns></returns>
        public virtual async Task<ScheduleImportConfiguration> UpdateConfigurationForAutomatedTestScheduleAsync(string scheduleId, string configId, EditScheduleConfigurationDTO dto)
        {
            var operation = Operations.UpdateConfigurationForAutomatedTestSchedule(scheduleId, configId, dto);
			var response = await _client.SendAsync(operation.BuildRequest(_client));
			EnsureSuccess(response);
			var result = await response.Content.ReadAsAsync<ScheduleImportConfiguration>();
			return result;
						
		}
        /// <summary>
        /// Sends a POST to '/api/automatedtestschedule/{id}/importconfigurations'
        /// </summary>
        /// <param name="id">a path parameter (no description)</param>
        /// <param name="dto">a body parameter (no description)</param>
        /// <returns></returns>
        public virtual ScheduleImportConfiguration CreateAutomatedTestScheduleConfiguration(string id, EditScheduleConfigurationDTO dto)
        {
            var operation = Operations.CreateAutomatedTestScheduleConfiguration(id, dto);
			var response = _client.SendAsync(operation.BuildRequest(_client)).Result;
			EnsureSuccess(response);
			var result = response.Content.ReadAsAsync<ScheduleImportConfiguration>().Result;
			return result;
			
		}
partial         void CopyExtraPropertiesToClone(EditScheduleConfigurationDTO clone, bool includeLocalProperties);
 public EditScheduleConfigurationDTO Clone(bool includeLocalProperties)
 {
     var c = new EditScheduleConfigurationDTO
             {
                 CombineResults = CombineResults,
                 ExecutionPackageId = ExecutionPackageId,
                 FieldControlValues = FieldControlValues,
                 FieldValues = FieldValues,
                 Id = Id,
                 MaximumNumberOfResultsRetained = MaximumNumberOfResultsRetained,
                 Name = Name,
                 NameTemplate = NameTemplate,
                 ScheduleId = ScheduleId,
                 ScriptPackageId = ScriptPackageId,
                 SkipIfFilesUnchanged = SkipIfFilesUnchanged,
                 SourcePath = SourcePath,
                 SubType = SubType,
                 Type = Type,
             };
     CopyExtraPropertiesToClone(c, includeLocalProperties);
     return c;
 }
 /// <summary>
 /// Sends a PUT to '/api/automatedtestschedule/{scheduleId}/importconfiguration/{configId}'
 /// </summary>
 /// <param name="scheduleId">a path parameter (no description)</param>
 /// <param name="configId">a path parameter (no description)</param>
 /// <param name="dto">a body parameter (no description)</param>
 /// <returns></returns>
 public static RestOperation UpdateConfigurationForAutomatedTestSchedule(string scheduleId, string configId, EditScheduleConfigurationDTO dto)
 {
     return new RestOperation("PUT", "api/automatedtestschedule/" + scheduleId + "/importconfiguration/" + configId + "")
         {
             Content = dto
         };
 }
 /// <summary>
 /// Sends a POST to '/api/automatedtestschedule/{id}/importconfigurations'
 /// </summary>
 /// <param name="id">a path parameter (no description)</param>
 /// <param name="dto">a body parameter (no description)</param>
 /// <returns></returns>
 public static RestOperation CreateAutomatedTestScheduleConfiguration(string id, EditScheduleConfigurationDTO dto)
 {
     return new RestOperation("POST", "api/automatedtestschedule/" + id + "/importconfigurations")
         {
             Content = dto
         };
 }