/// <summary>
 /// Deletes a Job Schedule from the specified Account.
 /// </summary>
 /// <remarks>
 /// When you delete a Job Schedule, this also deletes all Jobs and Tasks under
 /// that schedule. When Tasks are deleted, all the files in their working
 /// directories on the Compute Nodes are also deleted (the retention period is
 /// ignored). The Job Schedule statistics are no longer accessible once the Job
 /// Schedule is deleted, though they are still counted towards Account lifetime
 /// statistics.
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='jobScheduleId'>
 /// The ID of the Job Schedule to delete.
 /// </param>
 /// <param name='jobScheduleDeleteOptions'>
 /// Additional parameters for the operation
 /// </param>
 public static JobScheduleDeleteHeaders Delete(this IJobScheduleOperations operations, string jobScheduleId, JobScheduleDeleteOptions jobScheduleDeleteOptions = default(JobScheduleDeleteOptions))
 {
     return(operations.DeleteAsync(jobScheduleId, jobScheduleDeleteOptions).GetAwaiter().GetResult());
 }
 /// <summary>
 /// Deletes a Job Schedule from the specified Account.
 /// </summary>
 /// <remarks>
 /// When you delete a Job Schedule, this also deletes all Jobs and Tasks under
 /// that schedule. When Tasks are deleted, all the files in their working
 /// directories on the Compute Nodes are also deleted (the retention period is
 /// ignored). The Job Schedule statistics are no longer accessible once the Job
 /// Schedule is deleted, though they are still counted towards Account lifetime
 /// statistics.
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='jobScheduleId'>
 /// The ID of the Job Schedule to delete.
 /// </param>
 /// <param name='jobScheduleDeleteOptions'>
 /// Additional parameters for the operation
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <JobScheduleDeleteHeaders> DeleteAsync(this IJobScheduleOperations operations, string jobScheduleId, JobScheduleDeleteOptions jobScheduleDeleteOptions = default(JobScheduleDeleteOptions), CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.DeleteWithHttpMessagesAsync(jobScheduleId, jobScheduleDeleteOptions, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Headers);
     }
 }
Ejemplo n.º 3
0
 public virtual async Task <Response> DeleteAsync(string jobScheduleId, JobScheduleDeleteOptions jobScheduleDeleteOptions, CancellationToken cancellationToken = default)
 {
     return((await RestClient.DeleteAsync(jobScheduleId, jobScheduleDeleteOptions, cancellationToken).ConfigureAwait(false)).GetRawResponse());
 }
Ejemplo n.º 4
0
 public virtual Response Delete(string jobScheduleId, JobScheduleDeleteOptions jobScheduleDeleteOptions, CancellationToken cancellationToken = default)
 {
     return(RestClient.Delete(jobScheduleId, jobScheduleDeleteOptions, cancellationToken).GetRawResponse());
 }
 /// <summary>
 /// Deletes a job schedule from the specified account.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='jobScheduleId'>
 /// The id of the job schedule to delete.
 /// </param>
 /// <param name='jobScheduleDeleteOptions'>
 /// Additional parameters for the operation
 /// </param>
 public static JobScheduleDeleteHeaders Delete(this IJobScheduleOperations operations, string jobScheduleId, JobScheduleDeleteOptions jobScheduleDeleteOptions = default(JobScheduleDeleteOptions))
 {
     return(System.Threading.Tasks.Task.Factory.StartNew(s => ((IJobScheduleOperations)s).DeleteAsync(jobScheduleId, jobScheduleDeleteOptions), operations, System.Threading.CancellationToken.None, System.Threading.Tasks.TaskCreationOptions.None, System.Threading.Tasks.TaskScheduler.Default).Unwrap().GetAwaiter().GetResult());
 }