예제 #1
0
 /// <summary>
 /// Updates the properties of a job.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='jobId'>
 /// The id of the job whose properties you want to update.
 /// </param>
 /// <param name='jobPatchParameter'>
 /// The parameters for the request.
 /// </param>
 /// <param name='jobPatchOptions'>
 /// Additional parameters for the operation
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async System.Threading.Tasks.Task <JobPatchHeaders> PatchAsync(this IJobOperations operations, string jobId, JobPatchParameter jobPatchParameter, JobPatchOptions jobPatchOptions = default(JobPatchOptions), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
 {
     using (var _result = await operations.PatchWithHttpMessagesAsync(jobId, jobPatchParameter, jobPatchOptions, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Headers);
     }
 }
예제 #2
0
 /// <summary>
 /// Updates the properties of a job.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='jobId'>
 /// The id of the job whose properties you want to update.
 /// </param>
 /// <param name='jobPatchParameter'>
 /// The parameters for the request.
 /// </param>
 /// <param name='jobPatchOptions'>
 /// Additional parameters for the operation
 /// </param>
 public static JobPatchHeaders Patch(this IJobOperations operations, string jobId, JobPatchParameter jobPatchParameter, JobPatchOptions jobPatchOptions = default(JobPatchOptions))
 {
     return(System.Threading.Tasks.Task.Factory.StartNew(s => ((IJobOperations)s).PatchAsync(jobId, jobPatchParameter, jobPatchOptions), operations, System.Threading.CancellationToken.None, System.Threading.Tasks.TaskCreationOptions.None, System.Threading.Tasks.TaskScheduler.Default).Unwrap().GetAwaiter().GetResult());
 }
예제 #3
0
 public virtual async Task <Response> PatchAsync(string jobId, JobPatchParameter jobPatchParameter, JobPatchOptions jobPatchOptions, CancellationToken cancellationToken = default)
 {
     return((await RestClient.PatchAsync(jobId, jobPatchParameter, jobPatchOptions, cancellationToken).ConfigureAwait(false)).GetRawResponse());
 }
예제 #4
0
 /// <summary>
 /// Updates the properties of the specified Job.
 /// </summary>
 /// <remarks>
 /// This replaces only the Job properties specified in the request. For
 /// example, if the Job has constraints, and a request does not specify the
 /// constraints element, then the Job keeps the existing constraints.
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='jobId'>
 /// The ID of the Job whose properties you want to update.
 /// </param>
 /// <param name='jobPatchParameter'>
 /// The parameters for the request.
 /// </param>
 /// <param name='jobPatchOptions'>
 /// Additional parameters for the operation
 /// </param>
 public static JobPatchHeaders Patch(this IJobOperations operations, string jobId, JobPatchParameter jobPatchParameter, JobPatchOptions jobPatchOptions = default(JobPatchOptions))
 {
     return(operations.PatchAsync(jobId, jobPatchParameter, jobPatchOptions).GetAwaiter().GetResult());
 }
예제 #5
0
 public virtual Response Patch(string jobId, JobPatchParameter jobPatchParameter, JobPatchOptions jobPatchOptions, CancellationToken cancellationToken = default)
 {
     return(RestClient.Patch(jobId, jobPatchParameter, jobPatchOptions, cancellationToken).GetRawResponse());
 }