/// <summary>
 /// Updates the properties of the specified Job Schedule.
 /// </summary>
 /// <remarks>
 /// This replaces only the Job Schedule properties specified in the request.
 /// For example, if the schedule property is not specified with this request,
 /// then the Batch service will keep 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='jobSchedulePatchParameter'>
 /// The parameters for the request.
 /// </param>
 /// <param name='jobSchedulePatchOptions'>
 /// Additional parameters for the operation
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <JobSchedulePatchHeaders> PatchAsync(this IJobScheduleOperations operations, string jobScheduleId, JobSchedulePatchParameter jobSchedulePatchParameter, JobSchedulePatchOptions jobSchedulePatchOptions = default(JobSchedulePatchOptions), CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.PatchWithHttpMessagesAsync(jobScheduleId, jobSchedulePatchParameter, jobSchedulePatchOptions, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Headers);
     }
 }
 /// <summary>
 /// Updates the properties of the specified Job Schedule.
 /// </summary>
 /// <remarks>
 /// This replaces only the Job Schedule properties specified in the request.
 /// For example, if the schedule property is not specified with this request,
 /// then the Batch service will keep 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='jobSchedulePatchParameter'>
 /// The parameters for the request.
 /// </param>
 /// <param name='jobSchedulePatchOptions'>
 /// Additional parameters for the operation
 /// </param>
 public static JobSchedulePatchHeaders Patch(this IJobScheduleOperations operations, string jobScheduleId, JobSchedulePatchParameter jobSchedulePatchParameter, JobSchedulePatchOptions jobSchedulePatchOptions = default(JobSchedulePatchOptions))
 {
     return(operations.PatchAsync(jobScheduleId, jobSchedulePatchParameter, jobSchedulePatchOptions).GetAwaiter().GetResult());
 }
Beispiel #3
0
 public virtual Response Patch(string jobScheduleId, JobSchedulePatchParameter jobSchedulePatchParameter, JobSchedulePatchOptions jobSchedulePatchOptions, CancellationToken cancellationToken = default)
 {
     return(RestClient.Patch(jobScheduleId, jobSchedulePatchParameter, jobSchedulePatchOptions, cancellationToken).GetRawResponse());
 }
Beispiel #4
0
 public virtual async Task <Response> PatchAsync(string jobScheduleId, JobSchedulePatchParameter jobSchedulePatchParameter, JobSchedulePatchOptions jobSchedulePatchOptions, CancellationToken cancellationToken = default)
 {
     return((await RestClient.PatchAsync(jobScheduleId, jobSchedulePatchParameter, jobSchedulePatchOptions, cancellationToken).ConfigureAwait(false)).GetRawResponse());
 }
 /// <summary>
 /// Updates the properties of the specified job schedule.
 /// </summary>
 /// <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='jobSchedulePatchParameter'>
 /// The parameters for the request.
 /// </param>
 /// <param name='jobSchedulePatchOptions'>
 /// Additional parameters for the operation
 /// </param>
 public static JobSchedulePatchHeaders Patch(this IJobScheduleOperations operations, string jobScheduleId, JobSchedulePatchParameter jobSchedulePatchParameter, JobSchedulePatchOptions jobSchedulePatchOptions = default(JobSchedulePatchOptions))
 {
     return(System.Threading.Tasks.Task.Factory.StartNew(s => ((IJobScheduleOperations)s).PatchAsync(jobScheduleId, jobSchedulePatchParameter, jobSchedulePatchOptions), operations, System.Threading.CancellationToken.None, System.Threading.Tasks.TaskCreationOptions.None, System.Threading.Tasks.TaskScheduler.Default).Unwrap().GetAwaiter().GetResult());
 }