/// <summary> /// Creates or updates a job. /// </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='parameters'> /// The requested job state. /// </param> public static Job CreateOrUpdate(this IJobsOperations operations, string resourceGroupName, string serverName, string jobAgentName, string jobName, Job parameters) { return(operations.CreateOrUpdateAsync(resourceGroupName, serverName, jobAgentName, jobName, parameters).GetAwaiter().GetResult()); }
/// <summary> /// Gets a list of Jobs within the specified Experiment. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='workspaceName'> /// The name of the workspace. Workspace names can only contain a combination /// of alphanumeric characters along with dash (-) and underscore (_). The name /// must be from 1 through 64 characters long. /// </param> /// <param name='experimentName'> /// The name of the experiment. Experiment names can only contain a combination /// of alphanumeric characters along with dash (-) and underscore (_). The name /// must be from 1 through 64 characters long. /// </param> /// <param name='jobsListByExperimentOptions'> /// Additional parameters for the operation /// </param> public static IPage <Job> ListByExperiment(this IJobsOperations operations, string resourceGroupName, string workspaceName, string experimentName, JobsListByExperimentOptions jobsListByExperimentOptions = default(JobsListByExperimentOptions)) { return(operations.ListByExperimentAsync(resourceGroupName, workspaceName, experimentName, jobsListByExperimentOptions).GetAwaiter().GetResult()); }
/// <summary> /// Terminates a job. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='workspaceName'> /// The name of the workspace. Workspace names can only contain a combination /// of alphanumeric characters along with dash (-) and underscore (_). The name /// must be from 1 through 64 characters long. /// </param> /// <param name='experimentName'> /// The name of the experiment. Experiment names can only contain a combination /// of alphanumeric characters along with dash (-) and underscore (_). The name /// must be from 1 through 64 characters long. /// </param> /// <param name='jobName'> /// The name of the job within the specified resource group. Job names can only /// contain a combination of alphanumeric characters along with dash (-) and /// underscore (_). The name must be from 1 through 64 characters long. /// </param> public static void BeginTerminate(this IJobsOperations operations, string resourceGroupName, string workspaceName, string experimentName, string jobName) { operations.BeginTerminateAsync(resourceGroupName, workspaceName, experimentName, jobName).GetAwaiter().GetResult(); }
/// <summary> /// Gets information about a Job. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='workspaceName'> /// The name of the workspace. Workspace names can only contain a combination /// of alphanumeric characters along with dash (-) and underscore (_). The name /// must be from 1 through 64 characters long. /// </param> /// <param name='experimentName'> /// The name of the experiment. Experiment names can only contain a combination /// of alphanumeric characters along with dash (-) and underscore (_). The name /// must be from 1 through 64 characters long. /// </param> /// <param name='jobName'> /// The name of the job within the specified resource group. Job names can only /// contain a combination of alphanumeric characters along with dash (-) and /// underscore (_). The name must be from 1 through 64 characters long. /// </param> public static Job Get(this IJobsOperations operations, string resourceGroupName, string workspaceName, string experimentName, string jobName) { return(operations.GetAsync(resourceGroupName, workspaceName, experimentName, jobName).GetAwaiter().GetResult()); }
/// <summary> /// Gets a list of currently existing nodes which were used for the Job /// execution. The returned information contains the node ID, its public IP and /// SSH port. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='workspaceName'> /// The name of the workspace. Workspace names can only contain a combination /// of alphanumeric characters along with dash (-) and underscore (_). The name /// must be from 1 through 64 characters long. /// </param> /// <param name='experimentName'> /// The name of the experiment. Experiment names can only contain a combination /// of alphanumeric characters along with dash (-) and underscore (_). The name /// must be from 1 through 64 characters long. /// </param> /// <param name='jobName'> /// The name of the job within the specified resource group. Job names can only /// contain a combination of alphanumeric characters along with dash (-) and /// underscore (_). The name must be from 1 through 64 characters long. /// </param> public static IPage <RemoteLoginInformation> ListRemoteLoginInformation(this IJobsOperations operations, string resourceGroupName, string workspaceName, string experimentName, string jobName) { return(operations.ListRemoteLoginInformationAsync(resourceGroupName, workspaceName, experimentName, jobName).GetAwaiter().GetResult()); }
/// <summary> /// Triggers export of jobs specified by filters and returns an OperationID to /// track. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='vaultName'> /// The name of the recovery services vault. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group where the recovery services vault is /// present. /// </param> /// <param name='odataQuery'> /// OData parameters to apply to the operation. /// </param> public static void Export(this IJobsOperations operations, string vaultName, string resourceGroupName, ODataQuery <JobQueryObject> odataQuery = default(ODataQuery <JobQueryObject>)) { operations.ExportAsync(vaultName, resourceGroupName, odataQuery).GetAwaiter().GetResult(); }
/// <summary> /// Runs a job. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The resource group name. /// </param> /// <param name='jobCollectionName'> /// The job collection name. /// </param> /// <param name='jobName'> /// The job name. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task RunAsync(this IJobsOperations operations, string resourceGroupName, string jobCollectionName, string jobName, CancellationToken cancellationToken = default(CancellationToken)) { (await operations.RunWithHttpMessagesAsync(resourceGroupName, jobCollectionName, jobName, null, cancellationToken).ConfigureAwait(false)).Dispose(); }
/// <summary> /// Lists job history. /// </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 <JobHistoryDefinition> ListJobHistoryNext(this IJobsOperations operations, string nextPageLink) { return(Task.Factory.StartNew(s => ((IJobsOperations)s).ListJobHistoryNextAsync(nextPageLink), operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult()); }
/// <summary> /// Provisions a new job or updates an existing job. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The resource group name. /// </param> /// <param name='jobCollectionName'> /// The job collection name. /// </param> /// <param name='jobName'> /// The job name. /// </param> /// <param name='job'> /// The job definition. /// </param> public static JobDefinition CreateOrUpdate(this IJobsOperations operations, string resourceGroupName, string jobCollectionName, string jobName, JobDefinition job) { return(Task.Factory.StartNew(s => ((IJobsOperations)s).CreateOrUpdateAsync(resourceGroupName, jobCollectionName, jobName, job), operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult()); }
/// <summary> /// Runs a job. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The resource group name. /// </param> /// <param name='jobCollectionName'> /// The job collection name. /// </param> /// <param name='jobName'> /// The job name. /// </param> public static void Run(this IJobsOperations operations, string resourceGroupName, string jobCollectionName, string jobName) { Task.Factory.StartNew(s => ((IJobsOperations)s).RunAsync(resourceGroupName, jobCollectionName, jobName), operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult(); }
/// <summary> /// Lists job history. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The resource group name. /// </param> /// <param name='jobCollectionName'> /// The job collection name. /// </param> /// <param name='jobName'> /// The job name. /// </param> /// <param name='odataQuery'> /// OData parameters to apply to the operation. /// </param> public static IPage <JobHistoryDefinition> ListJobHistory(this IJobsOperations operations, string resourceGroupName, string jobCollectionName, string jobName, ODataQuery <JobHistoryFilter> odataQuery = default(ODataQuery <JobHistoryFilter>)) { return(Task.Factory.StartNew(s => ((IJobsOperations)s).ListJobHistoryAsync(resourceGroupName, jobCollectionName, jobName, odataQuery), operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult()); }
/// <summary> /// Gets a job. /// </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 Job Get(this IJobsOperations operations, string resourceGroupName, string serverName, string jobAgentName, string jobName) { return(operations.GetAsync(resourceGroupName, serverName, jobAgentName, jobName).GetAwaiter().GetResult()); }
/// <summary> /// Deletes a job. /// </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 delete. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task DeleteAsync(this IJobsOperations operations, string resourceGroupName, string serverName, string jobAgentName, string jobName, CancellationToken cancellationToken = default(CancellationToken)) { (await operations.DeleteWithHttpMessagesAsync(resourceGroupName, serverName, jobAgentName, jobName, null, cancellationToken).ConfigureAwait(false)).Dispose(); }
/// <summary> /// Deletes a job. /// </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 delete. /// </param> public static void Delete(this IJobsOperations operations, string resourceGroupName, string serverName, string jobAgentName, string jobName) { operations.DeleteAsync(resourceGroupName, serverName, jobAgentName, jobName).GetAwaiter().GetResult(); }
/// <summary> /// Gets all the jobs for specified device. With optional OData query /// parameters, a filtered set of jobs is returned. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='deviceName'> /// The device name /// </param> /// <param name='resourceGroupName'> /// The resource group name /// </param> /// <param name='managerName'> /// The manager name /// </param> /// <param name='odataQuery'> /// OData parameters to apply to the operation. /// </param> public static IPage <Job> ListByDevice(this IJobsOperations operations, string deviceName, string resourceGroupName, string managerName, ODataQuery <JobFilter> odataQuery = default(ODataQuery <JobFilter>)) { return(operations.ListByDeviceAsync(deviceName, resourceGroupName, managerName, odataQuery).GetAwaiter().GetResult()); }
/// <summary> /// This method gets a data manager job given the jobId. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='dataServiceName'> /// The name of the data service of the job definition. /// </param> /// <param name='jobDefinitionName'> /// The name of the job definition of the job. /// </param> /// <param name='jobId'> /// The job id of the job queried. /// </param> /// <param name='resourceGroupName'> /// The Resource Group Name /// </param> /// <param name='dataManagerName'> /// The name of the DataManager Resource within the specified resource group. /// DataManager names must be between 3 and 24 characters in length and use any /// alphanumeric and underscore only /// </param> /// <param name='expand'> /// $expand is supported on details parameter for job, which provides details /// on the job stages. /// </param> public static Job Get(this IJobsOperations operations, string dataServiceName, string jobDefinitionName, string jobId, string resourceGroupName, string dataManagerName, string expand = default(string)) { return(operations.GetAsync(dataServiceName, jobDefinitionName, jobId, resourceGroupName, dataManagerName, expand).GetAwaiter().GetResult()); }
/// <summary> /// Gets the details of the specified job name. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='deviceName'> /// The device name /// </param> /// <param name='jobName'> /// The job Name. /// </param> /// <param name='resourceGroupName'> /// The resource group name /// </param> /// <param name='managerName'> /// The manager name /// </param> public static Job Get(this IJobsOperations operations, string deviceName, string jobName, string resourceGroupName, string managerName) { return(operations.GetAsync(deviceName, jobName, resourceGroupName, managerName).GetAwaiter().GetResult()); }
/// <summary> /// Resumes the given job. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='dataServiceName'> /// The name of the data service of the job definition. /// </param> /// <param name='jobDefinitionName'> /// The name of the job definition of the job. /// </param> /// <param name='jobId'> /// The job id of the job queried. /// </param> /// <param name='resourceGroupName'> /// The Resource Group Name /// </param> /// <param name='dataManagerName'> /// The name of the DataManager Resource within the specified resource group. /// DataManager names must be between 3 and 24 characters in length and use any /// alphanumeric and underscore only /// </param> public static void BeginResume(this IJobsOperations operations, string dataServiceName, string jobDefinitionName, string jobId, string resourceGroupName, string dataManagerName) { operations.BeginResumeAsync(dataServiceName, jobDefinitionName, jobId, resourceGroupName, dataManagerName).GetAwaiter().GetResult(); }
/// <summary> /// Triggers export of jobs specified by filters and returns an OperationID to /// track. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='vaultName'> /// The name of the recovery services vault. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group where the recovery services vault is /// present. /// </param> /// <param name='odataQuery'> /// OData parameters to apply to the operation. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task ExportAsync(this IJobsOperations operations, string vaultName, string resourceGroupName, ODataQuery <JobQueryObject> odataQuery = default(ODataQuery <JobQueryObject>), CancellationToken cancellationToken = default(CancellationToken)) { (await operations.ExportWithHttpMessagesAsync(vaultName, resourceGroupName, odataQuery, null, cancellationToken).ConfigureAwait(false)).Dispose(); }
/// <summary> /// This method gets all the jobs of a given job definition. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='dataServiceName'> /// The name of the data service of the job definition. /// </param> /// <param name='jobDefinitionName'> /// The name of the job definition for which jobs are needed. /// </param> /// <param name='resourceGroupName'> /// The Resource Group Name /// </param> /// <param name='dataManagerName'> /// The name of the DataManager Resource within the specified resource group. /// DataManager names must be between 3 and 24 characters in length and use any /// alphanumeric and underscore only /// </param> /// <param name='odataQuery'> /// OData parameters to apply to the operation. /// </param> public static IPage <Job> ListByJobDefinition(this IJobsOperations operations, string dataServiceName, string jobDefinitionName, string resourceGroupName, string dataManagerName, ODataQuery <JobFilter> odataQuery = default(ODataQuery <JobFilter>)) { return(operations.ListByJobDefinitionAsync(dataServiceName, jobDefinitionName, resourceGroupName, dataManagerName, odataQuery).GetAwaiter().GetResult()); }
/// <summary> /// Lists job history. /// </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 <JobHistoryDefinition> > ListJobHistoryNextAsync(this IJobsOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListJobHistoryNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Resumes the given job. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='dataServiceName'> /// The name of the data service of the job definition. /// </param> /// <param name='jobDefinitionName'> /// The name of the job definition of the job. /// </param> /// <param name='jobId'> /// The job id of the job queried. /// </param> /// <param name='resourceGroupName'> /// The Resource Group Name /// </param> /// <param name='dataManagerName'> /// The name of the DataManager Resource within the specified resource group. /// DataManager names must be between 3 and 24 characters in length and use any /// alphanumeric and underscore only /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task BeginResumeAsync(this IJobsOperations operations, string dataServiceName, string jobDefinitionName, string jobId, string resourceGroupName, string dataManagerName, CancellationToken cancellationToken = default(CancellationToken)) { (await operations.BeginResumeWithHttpMessagesAsync(dataServiceName, jobDefinitionName, jobId, resourceGroupName, dataManagerName, null, cancellationToken).ConfigureAwait(false)).Dispose(); }
/// <summary> /// List all directories and files inside the given directory of the Job's /// output directory (if the output directory is on Azure File Share or Azure /// Storage Container). /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='workspaceName'> /// The name of the workspace. Workspace names can only contain a combination /// of alphanumeric characters along with dash (-) and underscore (_). The name /// must be from 1 through 64 characters long. /// </param> /// <param name='experimentName'> /// The name of the experiment. Experiment names can only contain a combination /// of alphanumeric characters along with dash (-) and underscore (_). The name /// must be from 1 through 64 characters long. /// </param> /// <param name='jobName'> /// The name of the job within the specified resource group. Job names can only /// contain a combination of alphanumeric characters along with dash (-) and /// underscore (_). The name must be from 1 through 64 characters long. /// </param> /// <param name='jobsListOutputFilesOptions'> /// Additional parameters for the operation /// </param> public static IPage <File> ListOutputFiles(this IJobsOperations operations, string resourceGroupName, string workspaceName, string experimentName, string jobName, JobsListOutputFilesOptions jobsListOutputFilesOptions) { return(operations.ListOutputFilesAsync(resourceGroupName, workspaceName, experimentName, jobName, jobsListOutputFilesOptions).GetAwaiter().GetResult()); }
/// <summary> /// Cancels a job on the device. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='deviceName'> /// The device name /// </param> /// <param name='jobName'> /// The jobName. /// </param> /// <param name='resourceGroupName'> /// The resource group name /// </param> /// <param name='managerName'> /// The manager name /// </param> public static void BeginCancel(this IJobsOperations operations, string deviceName, string jobName, string resourceGroupName, string managerName) { operations.BeginCancelAsync(deviceName, jobName, resourceGroupName, managerName).GetAwaiter().GetResult(); }
/// <summary> /// Gets a list of currently existing nodes which were used for the Job /// execution. The returned information contains the node ID, its public IP and /// SSH port. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='workspaceName'> /// The name of the workspace. Workspace names can only contain a combination /// of alphanumeric characters along with dash (-) and underscore (_). The name /// must be from 1 through 64 characters long. /// </param> /// <param name='experimentName'> /// The name of the experiment. Experiment names can only contain a combination /// of alphanumeric characters along with dash (-) and underscore (_). The name /// must be from 1 through 64 characters long. /// </param> /// <param name='jobName'> /// The name of the job within the specified resource group. Job names can only /// contain a combination of alphanumeric characters along with dash (-) and /// underscore (_). The name must be from 1 through 64 characters long. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <IPage <RemoteLoginInformation> > ListRemoteLoginInformationAsync(this IJobsOperations operations, string resourceGroupName, string workspaceName, string experimentName, string jobName, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListRemoteLoginInformationWithHttpMessagesAsync(resourceGroupName, workspaceName, experimentName, jobName, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Cancels a job on the device. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='deviceName'> /// The device name /// </param> /// <param name='jobName'> /// The jobName. /// </param> /// <param name='resourceGroupName'> /// The resource group name /// </param> /// <param name='managerName'> /// The manager name /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task BeginCancelAsync(this IJobsOperations operations, string deviceName, string jobName, string resourceGroupName, string managerName, CancellationToken cancellationToken = default(CancellationToken)) { await operations.BeginCancelWithHttpMessagesAsync(deviceName, jobName, resourceGroupName, managerName, null, cancellationToken).ConfigureAwait(false); }
/// <summary> /// Creates a Job in the given Experiment. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='workspaceName'> /// The name of the workspace. Workspace names can only contain a combination /// of alphanumeric characters along with dash (-) and underscore (_). The name /// must be from 1 through 64 characters long. /// </param> /// <param name='experimentName'> /// The name of the experiment. Experiment names can only contain a combination /// of alphanumeric characters along with dash (-) and underscore (_). The name /// must be from 1 through 64 characters long. /// </param> /// <param name='jobName'> /// The name of the job within the specified resource group. Job names can only /// contain a combination of alphanumeric characters along with dash (-) and /// underscore (_). The name must be from 1 through 64 characters long. /// </param> /// <param name='parameters'> /// The parameters to provide for job creation. /// </param> public static Job BeginCreate(this IJobsOperations operations, string resourceGroupName, string workspaceName, string experimentName, string jobName, JobCreateParameters parameters) { return(operations.BeginCreateAsync(resourceGroupName, workspaceName, experimentName, jobName, parameters).GetAwaiter().GetResult()); }
/// <summary> /// Gets all the jobs for the specified manager. With optional OData query /// parameters, a filtered set of jobs is returned. /// </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 <Job> ListByManagerNext(this IJobsOperations operations, string nextPageLink) { return(operations.ListByManagerNextAsync(nextPageLink).GetAwaiter().GetResult()); }
/// <summary> /// Terminates a job. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='workspaceName'> /// The name of the workspace. Workspace names can only contain a combination /// of alphanumeric characters along with dash (-) and underscore (_). The name /// must be from 1 through 64 characters long. /// </param> /// <param name='experimentName'> /// The name of the experiment. Experiment names can only contain a combination /// of alphanumeric characters along with dash (-) and underscore (_). The name /// must be from 1 through 64 characters long. /// </param> /// <param name='jobName'> /// The name of the job within the specified resource group. Job names can only /// contain a combination of alphanumeric characters along with dash (-) and /// underscore (_). The name must be from 1 through 64 characters long. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task BeginTerminateAsync(this IJobsOperations operations, string resourceGroupName, string workspaceName, string experimentName, string jobName, CancellationToken cancellationToken = default(CancellationToken)) { (await operations.BeginTerminateWithHttpMessagesAsync(resourceGroupName, workspaceName, experimentName, jobName, null, cancellationToken).ConfigureAwait(false)).Dispose(); }
/// <summary> /// List Jobs /// </summary> /// <remarks> /// Lists all of the Jobs for the Transform. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group within the Azure subscription. /// </param> /// <param name='accountName'> /// The Media Services account name. /// </param> /// <param name='transformName'> /// The Transform name. /// </param> /// <param name='odataQuery'> /// OData parameters to apply to the operation. /// </param> public static IPage <Job> List(this IJobsOperations operations, string resourceGroupName, string accountName, string transformName, ODataQuery <Job> odataQuery = default(ODataQuery <Job>)) { return(operations.ListAsync(resourceGroupName, accountName, transformName, odataQuery).GetAwaiter().GetResult()); }