/// <summary> /// Updates the properties of the specified Job Schedule. /// </summary> /// <remarks> /// This fully replaces all the updatable properties of the Job Schedule. For /// example, if the schedule property is not specified with this request, then /// the Batch service will remove the existing schedule. Changes to a Job /// Schedule only impact Jobs created by the schedule after the update has /// taken place; currently running Jobs are unaffected. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='jobScheduleId'> /// The ID of the Job Schedule to update. /// </param> /// <param name='jobScheduleUpdateParameter'> /// The parameters for the request. /// </param> /// <param name='jobScheduleUpdateOptions'> /// Additional parameters for the operation /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <JobScheduleUpdateHeaders> UpdateAsync(this IJobScheduleOperations operations, string jobScheduleId, JobScheduleUpdateParameter jobScheduleUpdateParameter, JobScheduleUpdateOptions jobScheduleUpdateOptions = default(JobScheduleUpdateOptions), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.UpdateWithHttpMessagesAsync(jobScheduleId, jobScheduleUpdateParameter, jobScheduleUpdateOptions, null, cancellationToken).ConfigureAwait(false)) { return(_result.Headers); } }