/// <summary> /// Retrieve a list of job schedules. /// <see href="http://aka.ms/azureautomationsdk/jobscheduleoperations" /> /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// Name of an Azure Resource group. /// </param> /// <param name='automationAccountName'> /// The name of the automation account. /// </param> /// <param name='odataQuery'> /// OData parameters to apply to the operation. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <IPage <JobSchedule> > ListByAutomationAccountAsync(this IJobScheduleOperations operations, string resourceGroupName, string automationAccountName, ODataQuery <JobSchedule> odataQuery = default(ODataQuery <JobSchedule>), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListByAutomationAccountWithHttpMessagesAsync(resourceGroupName, automationAccountName, odataQuery, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Initializes a new instance of the AutomationManagementClient class. /// </summary> /// <param name='httpClient'> /// The Http client /// </param> public AutomationManagementClient(HttpClient httpClient) : base(httpClient) { this._activities = new ActivityOperations(this); this._agentRegistrationInformation = new AgentRegistrationOperation(this); this._automationAccounts = new AutomationAccountOperations(this); this._certificates = new CertificateOperations(this); this._connections = new ConnectionOperations(this); this._connectionTypes = new ConnectionTypeOperations(this); this._psCredentials = new CredentialOperations(this); this._compilationJobs = new DscCompilationJobOperations(this); this._configurations = new DscConfigurationOperations(this); this._nodeConfigurations = new DscNodeConfigurationOperations(this); this._nodes = new DscNodeOperations(this); this._nodeReports = new DscNodeReportsOperations(this); this._hybridRunbookWorkerGroups = new HybridRunbookWorkerGroupOperations(this); this._jobs = new JobOperations(this); this._jobSchedules = new JobScheduleOperations(this); this._jobStreams = new JobStreamOperations(this); this._modules = new ModuleOperations(this); this._runbookDraft = new RunbookDraftOperations(this); this._runbooks = new RunbookOperations(this); this._schedules = new ScheduleOperations(this); this._statistics = new StatisticsOperations(this); this._testJobs = new TestJobOperations(this); this._typeFields = new TypeFieldOperations(this); this._usages = new UsageOperations(this); this._variables = new VariableOperations(this); this._webhooks = new WebhookOperations(this); this._resourceNamespace = "Microsoft.Automation"; this._apiVersion = "2014-06-01"; this._longRunningOperationInitialTimeout = -1; this._longRunningOperationRetryTimeout = -1; this.HttpClient.Timeout = TimeSpan.FromSeconds(300); }
/// <summary> /// Create a job schedule. /// <see href="http://aka.ms/azureautomationsdk/jobscheduleoperations" /> /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// Name of an Azure Resource group. /// </param> /// <param name='automationAccountName'> /// The name of the automation account. /// </param> /// <param name='jobScheduleId'> /// The job schedule name. /// </param> /// <param name='parameters'> /// The parameters supplied to the create job schedule operation. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <JobSchedule> CreateAsync(this IJobScheduleOperations operations, string resourceGroupName, string automationAccountName, System.Guid jobScheduleId, JobScheduleCreateParameters parameters, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.CreateWithHttpMessagesAsync(resourceGroupName, automationAccountName, jobScheduleId, parameters, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <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> /// Adds a Job Schedule to the specified Account. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='cloudJobSchedule'> /// The Job Schedule to be added. /// </param> /// <param name='jobScheduleAddOptions'> /// Additional parameters for the operation /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <JobScheduleAddHeaders> AddAsync(this IJobScheduleOperations operations, JobScheduleAddParameter cloudJobSchedule, JobScheduleAddOptions jobScheduleAddOptions = default(JobScheduleAddOptions), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.AddWithHttpMessagesAsync(cloudJobSchedule, jobScheduleAddOptions, null, cancellationToken).ConfigureAwait(false)) { return(_result.Headers); } }
/// <summary> /// Terminates a Job Schedule. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='jobScheduleId'> /// The ID of the Job Schedule to terminates. /// </param> /// <param name='jobScheduleTerminateOptions'> /// Additional parameters for the operation /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <JobScheduleTerminateHeaders> TerminateAsync(this IJobScheduleOperations operations, string jobScheduleId, JobScheduleTerminateOptions jobScheduleTerminateOptions = default(JobScheduleTerminateOptions), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.TerminateWithHttpMessagesAsync(jobScheduleId, jobScheduleTerminateOptions, null, cancellationToken).ConfigureAwait(false)) { return(_result.Headers); } }
/// <summary> /// Lists all of the Job Schedules in the specified Account. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='nextPageLink'> /// The NextLink from the previous successful call to List operation. /// </param> /// <param name='jobScheduleListNextOptions'> /// Additional parameters for the operation /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <IPage <CloudJobSchedule> > ListNextAsync(this IJobScheduleOperations operations, string nextPageLink, JobScheduleListNextOptions jobScheduleListNextOptions = default(JobScheduleListNextOptions), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListNextWithHttpMessagesAsync(nextPageLink, jobScheduleListNextOptions, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Checks the specified Job Schedule exists. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='jobScheduleId'> /// The ID of the Job Schedule which you want to check. /// </param> /// <param name='jobScheduleExistsOptions'> /// Additional parameters for the operation /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <bool> ExistsAsync(this IJobScheduleOperations operations, string jobScheduleId, JobScheduleExistsOptions jobScheduleExistsOptions = default(JobScheduleExistsOptions), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ExistsWithHttpMessagesAsync(jobScheduleId, jobScheduleExistsOptions, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Gets information about 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 get. /// </param> /// <param name='jobScheduleGetOptions'> /// Additional parameters for the operation /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async System.Threading.Tasks.Task <CloudJobSchedule> GetAsync(this IJobScheduleOperations operations, string jobScheduleId, JobScheduleGetOptions jobScheduleGetOptions = default(JobScheduleGetOptions), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { using (var _result = await operations.GetWithHttpMessagesAsync(jobScheduleId, jobScheduleGetOptions, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Initializes a new instance of the AutomationManagementClient class. /// </summary> /// <param name='httpClient'> /// The Http client /// </param> public AutomationManagementClient(HttpClient httpClient) : base(httpClient) { this._activities = new ActivityOperations(this); this._automationAccounts = new AutomationAccountOperations(this); this._certificates = new CertificateOperations(this); this._cloudServices = new CloudServiceOperations(this); this._connections = new ConnectionOperations(this); this._connectionTypes = new ConnectionTypeOperations(this); this._psCredentials = new CredentialOperations(this); this._jobs = new JobOperations(this); this._jobSchedules = new JobScheduleOperations(this); this._jobStreams = new JobStreamOperations(this); this._modules = new ModuleOperations(this); this._runbookDraft = new RunbookDraftOperations(this); this._runbooks = new RunbookOperations(this); this._schedules = new ScheduleOperations(this); this._testJobs = new TestJobOperations(this); this._variables = new VariableOperations(this); this._resourceNamespace = "automation"; this._apiVersion = "2013-06-01"; this._longRunningOperationInitialTimeout = -1; this._longRunningOperationRetryTimeout = -1; this.HttpClient.Timeout = TimeSpan.FromSeconds(300); }
/// <summary> /// Create a job schedule. (see /// http://aka.ms/azureautomationsdk/jobscheduleoperations for more /// information) /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.WindowsAzure.Management.Automation.IJobScheduleOperations. /// </param> /// <param name='automationAccount'> /// Required. The automation account name. /// </param> /// <param name='parameters'> /// Required. The parameters supplied to the create job schedule /// operation. /// </param> /// <returns> /// The response model for the create job schedule operation. /// </returns> public static JobScheduleCreateResponse Create(this IJobScheduleOperations operations, string automationAccount, JobScheduleCreateParameters parameters) { return(Task.Factory.StartNew((object s) => { return ((IJobScheduleOperations)s).CreateAsync(automationAccount, parameters); } , operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult()); }
/// <summary> /// Retrieve next list of schedules. (see /// http://aka.ms/azureautomationsdk/jobscheduleoperations for more /// information) /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.WindowsAzure.Management.Automation.IJobScheduleOperations. /// </param> /// <param name='nextLink'> /// Required. The link to retrieve next set of items. /// </param> /// <returns> /// The response model for the list job schedule operation. /// </returns> public static JobScheduleListResponse ListNext(this IJobScheduleOperations operations, string nextLink) { return(Task.Factory.StartNew((object s) => { return ((IJobScheduleOperations)s).ListNextAsync(nextLink); } , operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult()); }
/// <summary> /// Retrieve the job schedule identified by job schedule name. (see /// http://aka.ms/azureautomationsdk/jobscheduleoperations for more /// information) /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.WindowsAzure.Management.Automation.IJobScheduleOperations. /// </param> /// <param name='automationAccount'> /// Required. The automation account name. /// </param> /// <param name='jobScheduleName'> /// Required. The job schedule name. /// </param> /// <returns> /// The response model for the get job schedule operation. /// </returns> public static JobScheduleGetResponse Get(this IJobScheduleOperations operations, string automationAccount, Guid jobScheduleName) { return(Task.Factory.StartNew((object s) => { return ((IJobScheduleOperations)s).GetAsync(automationAccount, jobScheduleName); } , operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult()); }
/// <summary> /// Retrieve a list of job schedules. (see /// http://aka.ms/azureautomationsdk/jobscheduleoperations for more /// information) /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.Azure.Management.Automation.IJobScheduleOperations. /// </param> /// <param name='resourceGroupName'> /// Required. The name of the resource group /// </param> /// <param name='automationAccount'> /// Required. The automation account name. /// </param> /// <returns> /// The response model for the list job schedule operation. /// </returns> public static JobScheduleListResponse List(this IJobScheduleOperations operations, string resourceGroupName, string automationAccount) { return(Task.Factory.StartNew((object s) => { return ((IJobScheduleOperations)s).ListAsync(resourceGroupName, automationAccount); } , operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult()); }
/// <summary> /// Retrieve the job schedule identified by job schedule name. /// <see href="http://aka.ms/azureautomationsdk/jobscheduleoperations" /> /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// Name of an Azure Resource group. /// </param> /// <param name='automationAccountName'> /// The name of the automation account. /// </param> /// <param name='jobScheduleId'> /// The job schedule name. /// </param> public static JobSchedule Get(this IJobScheduleOperations operations, string resourceGroupName, string automationAccountName, System.Guid jobScheduleId) { return(operations.GetAsync(resourceGroupName, automationAccountName, jobScheduleId).GetAwaiter().GetResult()); }
/// <summary> /// Retrieve a list of job schedules. (see /// http://aka.ms/azureautomationsdk/jobscheduleoperations for more /// information) /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.WindowsAzure.Management.Automation.IJobScheduleOperations. /// </param> /// <param name='automationAccount'> /// Required. The automation account name. /// </param> /// <returns> /// The response model for the list job schedule operation. /// </returns> public static Task <JobScheduleListResponse> ListAsync(this IJobScheduleOperations operations, string automationAccount) { return(operations.ListAsync(automationAccount, CancellationToken.None)); }
/// <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> /// Lists all of the Job Schedules in the specified Account. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='nextPageLink'> /// The NextLink from the previous successful call to List operation. /// </param> /// <param name='jobScheduleListNextOptions'> /// Additional parameters for the operation /// </param> public static IPage <CloudJobSchedule> ListNext(this IJobScheduleOperations operations, string nextPageLink, JobScheduleListNextOptions jobScheduleListNextOptions = default(JobScheduleListNextOptions)) { return(operations.ListNextAsync(nextPageLink, jobScheduleListNextOptions).GetAwaiter().GetResult()); }
/// <summary> /// Retrieve next list of schedules. (see /// http://aka.ms/azureautomationsdk/jobscheduleoperations for more /// information) /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.WindowsAzure.Management.Automation.IJobScheduleOperations. /// </param> /// <param name='nextLink'> /// Required. The link to retrieve next set of items. /// </param> /// <returns> /// The response model for the list job schedule operation. /// </returns> public static Task <JobScheduleListResponse> ListNextAsync(this IJobScheduleOperations operations, string nextLink) { return(operations.ListNextAsync(nextLink, CancellationToken.None)); }
/// <summary> /// Create a job schedule. (see /// http://aka.ms/azureautomationsdk/jobscheduleoperations for more /// information) /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.WindowsAzure.Management.Automation.IJobScheduleOperations. /// </param> /// <param name='automationAccount'> /// Required. The automation account name. /// </param> /// <param name='parameters'> /// Required. The parameters supplied to the create job schedule /// operation. /// </param> /// <returns> /// The response model for the create job schedule operation. /// </returns> public static Task <JobScheduleCreateResponse> CreateAsync(this IJobScheduleOperations operations, string automationAccount, JobScheduleCreateParameters parameters) { return(operations.CreateAsync(automationAccount, parameters, CancellationToken.None)); }
/// <summary> /// Lists all of the Job Schedules in the specified Account. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='jobScheduleListOptions'> /// Additional parameters for the operation /// </param> public static IPage <CloudJobSchedule> List(this IJobScheduleOperations operations, JobScheduleListOptions jobScheduleListOptions = default(JobScheduleListOptions)) { return(operations.ListAsync(jobScheduleListOptions).GetAwaiter().GetResult()); }
/// <summary> /// Create a job schedule. /// <see href="http://aka.ms/azureautomationsdk/jobscheduleoperations" /> /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// Name of an Azure Resource group. /// </param> /// <param name='automationAccountName'> /// The name of the automation account. /// </param> /// <param name='jobScheduleId'> /// The job schedule name. /// </param> /// <param name='parameters'> /// The parameters supplied to the create job schedule operation. /// </param> public static JobSchedule Create(this IJobScheduleOperations operations, string resourceGroupName, string automationAccountName, System.Guid jobScheduleId, JobScheduleCreateParameters parameters) { return(operations.CreateAsync(resourceGroupName, automationAccountName, jobScheduleId, parameters).GetAwaiter().GetResult()); }
/// <summary> /// Adds a Job Schedule to the specified Account. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='cloudJobSchedule'> /// The Job Schedule to be added. /// </param> /// <param name='jobScheduleAddOptions'> /// Additional parameters for the operation /// </param> public static JobScheduleAddHeaders Add(this IJobScheduleOperations operations, JobScheduleAddParameter cloudJobSchedule, JobScheduleAddOptions jobScheduleAddOptions = default(JobScheduleAddOptions)) { return(operations.AddAsync(cloudJobSchedule, jobScheduleAddOptions).GetAwaiter().GetResult()); }
/// <summary> /// Retrieve a list of job schedules. /// <see href="http://aka.ms/azureautomationsdk/jobscheduleoperations" /> /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// Name of an Azure Resource group. /// </param> /// <param name='automationAccountName'> /// The name of the automation account. /// </param> /// <param name='odataQuery'> /// OData parameters to apply to the operation. /// </param> public static IPage <JobSchedule> ListByAutomationAccount(this IJobScheduleOperations operations, string resourceGroupName, string automationAccountName, ODataQuery <JobSchedule> odataQuery = default(ODataQuery <JobSchedule>)) { return(operations.ListByAutomationAccountAsync(resourceGroupName, automationAccountName, odataQuery).GetAwaiter().GetResult()); }
/// <summary> /// Checks the specified Job Schedule exists. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='jobScheduleId'> /// The ID of the Job Schedule which you want to check. /// </param> /// <param name='jobScheduleExistsOptions'> /// Additional parameters for the operation /// </param> public static bool Exists(this IJobScheduleOperations operations, string jobScheduleId, JobScheduleExistsOptions jobScheduleExistsOptions = default(JobScheduleExistsOptions)) { return(operations.ExistsAsync(jobScheduleId, jobScheduleExistsOptions).GetAwaiter().GetResult()); }
/// <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()); }
/// <summary> /// Gets information about 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 get. /// </param> /// <param name='jobScheduleGetOptions'> /// Additional parameters for the operation /// </param> public static CloudJobSchedule Get(this IJobScheduleOperations operations, string jobScheduleId, JobScheduleGetOptions jobScheduleGetOptions = default(JobScheduleGetOptions)) { return(operations.GetAsync(jobScheduleId, jobScheduleGetOptions).GetAwaiter().GetResult()); }
/// <summary> /// Retrieve a list of job schedules. /// <see href="http://aka.ms/azureautomationsdk/jobscheduleoperations" /> /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='nextPageLink'> /// The NextLink from the previous successful call to List operation. /// </param> public static IPage <JobSchedule> ListByAutomationAccountNext(this IJobScheduleOperations operations, string nextPageLink) { return(operations.ListByAutomationAccountNextAsync(nextPageLink).GetAwaiter().GetResult()); }
/// <summary> /// Delete the job schedule identified by job schedule name. /// <see href="http://aka.ms/azureautomationsdk/jobscheduleoperations" /> /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// Name of an Azure Resource group. /// </param> /// <param name='automationAccountName'> /// The name of the automation account. /// </param> /// <param name='jobScheduleId'> /// The job schedule name. /// </param> public static void Delete(this IJobScheduleOperations operations, string resourceGroupName, string automationAccountName, System.Guid jobScheduleId) { operations.DeleteAsync(resourceGroupName, automationAccountName, jobScheduleId).GetAwaiter().GetResult(); }
/// <summary> /// Delete the job schedule identified by job schedule name. /// <see href="http://aka.ms/azureautomationsdk/jobscheduleoperations" /> /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// Name of an Azure Resource group. /// </param> /// <param name='automationAccountName'> /// The name of the automation account. /// </param> /// <param name='jobScheduleId'> /// The job schedule name. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task DeleteAsync(this IJobScheduleOperations operations, string resourceGroupName, string automationAccountName, System.Guid jobScheduleId, CancellationToken cancellationToken = default(CancellationToken)) { (await operations.DeleteWithHttpMessagesAsync(resourceGroupName, automationAccountName, jobScheduleId, null, cancellationToken).ConfigureAwait(false)).Dispose(); }