/// <summary> /// Get a stream analytics job. /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.Azure.Management.StreamAnalytics.IJobOperations. /// </param> /// <param name='resourceGroupName'> /// Required. The resource group name of the stream analytics job. /// </param> /// <param name='jobName'> /// Required. The name of the stream analytics job. /// </param> /// <param name='parameters'> /// Required. The parameters required to get a stream analytics job. /// </param> /// <returns> /// The response of the get stream analytics job operation. /// </returns> public static Task <JobGetResponse> GetAsync(this IJobOperations operations, string resourceGroupName, string jobName, JobGetParameters parameters) { return(operations.GetAsync(resourceGroupName, jobName, parameters, CancellationToken.None)); }
/// <summary> /// Get the job details. /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.WindowsAzure.Management.SiteRecovery.IJobOperations. /// </param> /// <param name='jobId'> /// Required. Job ID. /// </param> /// <param name='customRequestHeaders'> /// Optional. Request header parameters. /// </param> /// <returns> /// The response model for the Job details object. /// </returns> public static Task <JobResponse> GetAsync(this IJobOperations operations, string jobId, CustomRequestHeaders customRequestHeaders) { return(operations.GetAsync(jobId, customRequestHeaders, CancellationToken.None)); }
/// <summary> /// Gets information about the specified Job. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='jobId'> /// The ID of the Job. /// </param> /// <param name='jobGetOptions'> /// Additional parameters for the operation /// </param> public static CloudJob Get(this IJobOperations operations, string jobId, JobGetOptions jobGetOptions = default(JobGetOptions)) { return(operations.GetAsync(jobId, jobGetOptions).GetAwaiter().GetResult()); }
/// <summary> /// Get the definition and status of a job. /// </summary> /// <param name='operations'> /// Reference to the Microsoft.WindowsAzure.Scheduler.IJobOperations. /// </param> /// <param name='jobId'> /// Required. Id of the job to get. /// </param> /// <returns> /// The Get Job operation response. /// </returns> public static Task <JobGetResponse> GetAsync(this IJobOperations operations, string jobId) { return(operations.GetAsync(jobId, CancellationToken.None)); }
/// <summary> /// Retrieve the job identified by job id. (see /// http://aka.ms/azureautomationsdk/joboperations for more /// information) /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.Azure.Management.Automation.IJobOperations. /// </param> /// <param name='resourceGroupName'> /// Required. The name of the resource group /// </param> /// <param name='automationAccount'> /// Required. The automation account name. /// </param> /// <param name='jobId'> /// Required. The job id. /// </param> /// <returns> /// The response model for the get job operation. /// </returns> public static Task <JobGetResponse> GetAsync(this IJobOperations operations, string resourceGroupName, string automationAccount, Guid jobId) { return(operations.GetAsync(resourceGroupName, automationAccount, jobId, CancellationToken.None)); }
/// <summary> /// Gets Exteded Info for the job specified by the name passed in the /// arguments. /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.Azure.Management.RecoveryServices.Backup.IJobOperations. /// </param> /// <param name='resourceGroupName'> /// Required. Resource group name of your recovery services vault. /// </param> /// <param name='resourceName'> /// Required. Name of your recovery services vault. /// </param> /// <param name='jobName'> /// Required. Name of the job whose details are to be fetched. /// </param> /// <param name='customRequestHeaders'> /// Optional. Request header parameters. /// </param> /// <returns> /// Job response as returned by the operation result APIs. /// </returns> public static Task <JobResponse> GetAsync(this IJobOperations operations, string resourceGroupName, string resourceName, string jobName, CustomRequestHeaders customRequestHeaders) { return(operations.GetAsync(resourceGroupName, resourceName, jobName, customRequestHeaders, CancellationToken.None)); }