コード例 #1
0
 /// <summary>
 /// Lists all executions in a job agent.
 /// </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='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> > ListByAgentAsync(this IJobExecutionsOperations operations, string resourceGroupName, string serverName, string jobAgentName, 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.ListByAgentWithHttpMessagesAsync(resourceGroupName, serverName, jobAgentName, createTimeMin, createTimeMax, endTimeMin, endTimeMax, isActive, skip, top, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
コード例 #2
0
 /// <summary>
 /// Creates or updates 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 job execution id to create the job execution under.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <JobExecutionInner> BeginCreateOrUpdateAsync(this IJobExecutionsOperations operations, string resourceGroupName, string serverName, string jobAgentName, string jobName, System.Guid jobExecutionId, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.BeginCreateOrUpdateWithHttpMessagesAsync(resourceGroupName, serverName, jobAgentName, jobName, jobExecutionId, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
コード例 #3
0
 /// <summary>
 /// Lists a job's executions.
 /// </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> > ListByJobNextAsync(this IJobExecutionsOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.ListByJobNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
コード例 #4
0
 /// <summary>
 /// Requests cancellation 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.
 /// </param>
 /// <param name='jobExecutionId'>
 /// The id of the job execution to cancel.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task CancelAsync(this IJobExecutionsOperations operations, string resourceGroupName, string serverName, string jobAgentName, string jobName, System.Guid jobExecutionId, CancellationToken cancellationToken = default(CancellationToken))
 {
     (await operations.CancelWithHttpMessagesAsync(resourceGroupName, serverName, jobAgentName, jobName, jobExecutionId, null, cancellationToken).ConfigureAwait(false)).Dispose();
 }
コード例 #5
0
 /// <summary>
 /// Lists all executions in a job agent.
 /// </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='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> ListByAgent(this IJobExecutionsOperations operations, string resourceGroupName, string serverName, string jobAgentName, 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.ListByAgentAsync(resourceGroupName, serverName, jobAgentName, createTimeMin, createTimeMax, endTimeMin, endTimeMax, isActive, skip, top).GetAwaiter().GetResult());
 }
コード例 #6
0
 /// <summary>
 /// Lists a job's executions.
 /// </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> ListByJobNext(this IJobExecutionsOperations operations, string nextPageLink)
 {
     return(operations.ListByJobNextAsync(nextPageLink).GetAwaiter().GetResult());
 }
コード例 #7
0
 /// <summary>
 /// Creates or updates 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 job execution id to create the job execution under.
 /// </param>
 public static JobExecution BeginCreateOrUpdate(this IJobExecutionsOperations operations, string resourceGroupName, string serverName, string jobAgentName, string jobName, System.Guid jobExecutionId)
 {
     return(operations.BeginCreateOrUpdateAsync(resourceGroupName, serverName, jobAgentName, jobName, jobExecutionId).GetAwaiter().GetResult());
 }
コード例 #8
0
 /// <summary>
 /// Starts an elastic 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>
 public static JobExecution Create(this IJobExecutionsOperations operations, string resourceGroupName, string serverName, string jobAgentName, string jobName)
 {
     return(operations.CreateAsync(resourceGroupName, serverName, jobAgentName, jobName).GetAwaiter().GetResult());
 }
コード例 #9
0
 /// <summary>
 /// Requests cancellation 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.
 /// </param>
 /// <param name='jobExecutionId'>
 /// The id of the job execution to cancel.
 /// </param>
 public static void Cancel(this IJobExecutionsOperations operations, string resourceGroupName, string serverName, string jobAgentName, string jobName, System.Guid jobExecutionId)
 {
     operations.CancelAsync(resourceGroupName, serverName, jobAgentName, jobName, jobExecutionId).GetAwaiter().GetResult();
 }