/// <summary> /// Lists the target executions of a job step execution. /// </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='cancellationToken'> /// The cancellation token. /// </param> public static async Task <IPage <JobExecutionInner> > ListByStepNextAsync(this IJobTargetExecutionsOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListByStepNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Gets a target execution. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group that contains the resource. You can obtain /// this value from the Azure Resource Manager API or the portal. /// </param> /// <param name='serverName'> /// The name of the server. /// </param> /// <param name='jobAgentName'> /// The name of the job agent. /// </param> /// <param name='jobName'> /// The name of the job to get. /// </param> /// <param name='jobExecutionId'> /// The unique id of the job execution /// </param> /// <param name='stepName'> /// The name of the step. /// </param> /// <param name='targetId'> /// The target id. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <JobExecutionInner> GetAsync(this IJobTargetExecutionsOperations operations, string resourceGroupName, string serverName, string jobAgentName, string jobName, System.Guid jobExecutionId, string stepName, System.Guid targetId, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, serverName, jobAgentName, jobName, jobExecutionId, stepName, targetId, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Lists the target executions of a job step execution. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group that contains the resource. You can obtain /// this value from the Azure Resource Manager API or the portal. /// </param> /// <param name='serverName'> /// The name of the server. /// </param> /// <param name='jobAgentName'> /// The name of the job agent. /// </param> /// <param name='jobName'> /// The name of the job to get. /// </param> /// <param name='jobExecutionId'> /// The id of the job execution /// </param> /// <param name='stepName'> /// The name of the step. /// </param> /// <param name='createTimeMin'> /// If specified, only job executions created at or after the specified time /// are included. /// </param> /// <param name='createTimeMax'> /// If specified, only job executions created before the specified time are /// included. /// </param> /// <param name='endTimeMin'> /// If specified, only job executions completed at or after the specified time /// are included. /// </param> /// <param name='endTimeMax'> /// If specified, only job executions completed before the specified time are /// included. /// </param> /// <param name='isActive'> /// If specified, only active or only completed job executions are included. /// </param> /// <param name='skip'> /// The number of elements in the collection to skip. /// </param> /// <param name='top'> /// The number of elements to return from the collection. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <IPage <JobExecutionInner> > ListByStepAsync(this IJobTargetExecutionsOperations operations, string resourceGroupName, string serverName, string jobAgentName, string jobName, System.Guid jobExecutionId, string stepName, System.DateTime?createTimeMin = default(System.DateTime?), System.DateTime?createTimeMax = default(System.DateTime?), System.DateTime?endTimeMin = default(System.DateTime?), System.DateTime?endTimeMax = default(System.DateTime?), bool?isActive = default(bool?), int?skip = default(int?), int?top = default(int?), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListByStepWithHttpMessagesAsync(resourceGroupName, serverName, jobAgentName, jobName, jobExecutionId, stepName, createTimeMin, createTimeMax, endTimeMin, endTimeMax, isActive, skip, top, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Lists target executions for all steps of a job execution. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group that contains the resource. You can obtain /// this value from the Azure Resource Manager API or the portal. /// </param> /// <param name='serverName'> /// The name of the server. /// </param> /// <param name='jobAgentName'> /// The name of the job agent. /// </param> /// <param name='jobName'> /// The name of the job to get. /// </param> /// <param name='jobExecutionId'> /// The id of the job execution /// </param> /// <param name='createTimeMin'> /// If specified, only job executions created at or after the specified time /// are included. /// </param> /// <param name='createTimeMax'> /// If specified, only job executions created before the specified time are /// included. /// </param> /// <param name='endTimeMin'> /// If specified, only job executions completed at or after the specified time /// are included. /// </param> /// <param name='endTimeMax'> /// If specified, only job executions completed before the specified time are /// included. /// </param> /// <param name='isActive'> /// If specified, only active or only completed job executions are included. /// </param> /// <param name='skip'> /// The number of elements in the collection to skip. /// </param> /// <param name='top'> /// The number of elements to return from the collection. /// </param> public static IPage <JobExecution> ListByJobExecution(this IJobTargetExecutionsOperations operations, string resourceGroupName, string serverName, string jobAgentName, string jobName, System.Guid jobExecutionId, System.DateTime?createTimeMin = default(System.DateTime?), System.DateTime?createTimeMax = default(System.DateTime?), System.DateTime?endTimeMin = default(System.DateTime?), System.DateTime?endTimeMax = default(System.DateTime?), bool?isActive = default(bool?), int?skip = default(int?), int?top = default(int?)) { return(operations.ListByJobExecutionAsync(resourceGroupName, serverName, jobAgentName, jobName, jobExecutionId, createTimeMin, createTimeMax, endTimeMin, endTimeMax, isActive, skip, top).GetAwaiter().GetResult()); }
/// <summary> /// Lists the target executions of a job step execution. /// </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 <JobExecution> ListByStepNext(this IJobTargetExecutionsOperations operations, string nextPageLink) { return(operations.ListByStepNextAsync(nextPageLink).GetAwaiter().GetResult()); }
/// <summary> /// Gets a target execution. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group that contains the resource. You can obtain /// this value from the Azure Resource Manager API or the portal. /// </param> /// <param name='serverName'> /// The name of the server. /// </param> /// <param name='jobAgentName'> /// The name of the job agent. /// </param> /// <param name='jobName'> /// The name of the job to get. /// </param> /// <param name='jobExecutionId'> /// The unique id of the job execution /// </param> /// <param name='stepName'> /// The name of the step. /// </param> /// <param name='targetId'> /// The target id. /// </param> public static JobExecution Get(this IJobTargetExecutionsOperations operations, string resourceGroupName, string serverName, string jobAgentName, string jobName, System.Guid jobExecutionId, string stepName, System.Guid targetId) { return(operations.GetAsync(resourceGroupName, serverName, jobAgentName, jobName, jobExecutionId, stepName, targetId).GetAwaiter().GetResult()); }