/// <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> /// Retrieve a list of jobs streams identified by job name. /// <see href="http://aka.ms/azureautomationsdk/jobstreamoperations" /> /// </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='clientRequestId'> /// Identifies this specific client request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <IPage <JobStream> > ListByJobNextAsync(this IJobStreamOperations operations, string nextPageLink, string clientRequestId = default(string), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListByJobNextWithHttpMessagesAsync(nextPageLink, clientRequestId, 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> /// Retrieve the job stream identified by job stream id. /// <see href="http://aka.ms/azureautomationsdk/jobstreamoperations" /> /// </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='jobName'> /// The job name. /// </param> /// <param name='jobStreamId'> /// The job stream id. /// </param> /// <param name='clientRequestId'> /// Identifies this specific client request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <JobStream> GetAsync(this IJobStreamOperations operations, string resourceGroupName, string automationAccountName, string jobName, string jobStreamId, string clientRequestId = default(string), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, automationAccountName, jobName, jobStreamId, clientRequestId, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Gets the next page of job streams using next link. /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.WindowsAzure.Management.Automation.IJobStreamOperations. /// </param> /// <param name='nextLink'> /// Required. NextLink from the previous successful call to List /// operation. /// </param> /// <returns> /// The response model for the list job stream operation. /// </returns> public static JobStreamListResponse ListNext(this IJobStreamOperations operations, string nextLink) { return(Task.Factory.StartNew((object s) => { return ((IJobStreamOperations)s).ListNextAsync(nextLink); } , operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult()); }
/// <summary> /// Retrieve a test job streams identified by runbook name and stream /// id. (see http://aka.ms/azureautomationsdk/jobstreamoperations for /// more information) /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.Azure.Management.Automation.IJobStreamOperations. /// </param> /// <param name='resourceGroupName'> /// Required. The name of the resource group /// </param> /// <param name='automationAccount'> /// Required. The automation account name. /// </param> /// <param name='runbookName'> /// Required. The runbook name. /// </param> /// <param name='jobStreamId'> /// Required. The job stream id. /// </param> /// <returns> /// The response model for the get job stream operation. /// </returns> public static JobStreamGetResponse GetTestJobStream(this IJobStreamOperations operations, string resourceGroupName, string automationAccount, string runbookName, string jobStreamId) { return(Task.Factory.StartNew((object s) => { return ((IJobStreamOperations)s).GetTestJobStreamAsync(resourceGroupName, automationAccount, runbookName, jobStreamId); } , operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult()); }
/// <summary> /// Retrieve the job stream identified by job stream id. (see /// http://aka.ms/azureautomationsdk/jobstreamoperations for more /// information) /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.WindowsAzure.Management.Automation.IJobStreamOperations. /// </param> /// <param name='automationAccount'> /// Required. The automation account name. /// </param> /// <param name='jobId'> /// Required. The job id. /// </param> /// <param name='jobStreamId'> /// Required. The job stream id. /// </param> /// <returns> /// The response model for the get job stream operation. /// </returns> public static JobStreamGetResponse Get(this IJobStreamOperations operations, string automationAccount, Guid jobId, string jobStreamId) { return(Task.Factory.StartNew((object s) => { return ((IJobStreamOperations)s).GetAsync(automationAccount, jobId, jobStreamId); } , operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult()); }
/// <summary> /// Retrieve a list of jobs streams identified by job id. (see /// http://aka.ms/azureautomationsdk/jobstreamoperations for more /// information) /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.Azure.Management.Automation.IJobStreamOperations. /// </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> /// <param name='parameters'> /// Optional. The parameters supplied to the list job stream's stream /// items operation. /// </param> /// <returns> /// The response model for the list job stream operation. /// </returns> public static JobStreamListResponse List(this IJobStreamOperations operations, string resourceGroupName, string automationAccount, Guid jobId, JobStreamListParameters parameters) { return(Task.Factory.StartNew((object s) => { return ((IJobStreamOperations)s).ListAsync(resourceGroupName, automationAccount, jobId, parameters); } , operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult()); }
/// <summary> /// Retrieve a list of test job streams identified by runbook name. /// (see http://aka.ms/azureautomationsdk/jobstreamoperations for /// more information) /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.WindowsAzure.Management.Automation.IJobStreamOperations. /// </param> /// <param name='automationAccount'> /// Required. The automation account name. /// </param> /// <param name='runbookName'> /// Required. The runbook name. /// </param> /// <param name='parameters'> /// Optional. The parameters supplied to the list job stream's stream /// items operation. /// </param> /// <returns> /// The response model for the list job stream operation. /// </returns> public static JobStreamListResponse ListTestJobStreams(this IJobStreamOperations operations, string automationAccount, string runbookName, JobStreamListParameters parameters) { return(Task.Factory.StartNew((object s) => { return ((IJobStreamOperations)s).ListTestJobStreamsAsync(automationAccount, runbookName, parameters); } , operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult()); }
/// <summary> /// Retrieve a list of test job streams identified by runbook name. /// (see http://aka.ms/azureautomationsdk/jobstreamoperations for /// more information) /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.WindowsAzure.Management.Automation.IJobStreamOperations. /// </param> /// <param name='automationAccount'> /// Required. The automation account name. /// </param> /// <param name='runbookName'> /// Required. The runbook name. /// </param> /// <param name='parameters'> /// Optional. The parameters supplied to the list job stream's stream /// items operation. /// </param> /// <returns> /// The response model for the list job stream operation. /// </returns> public static Task <JobStreamListResponse> ListTestJobStreamsAsync(this IJobStreamOperations operations, string automationAccount, string runbookName, JobStreamListParameters parameters) { return(operations.ListTestJobStreamsAsync(automationAccount, runbookName, parameters, CancellationToken.None)); }
/// <summary> /// Retrieve the job stream identified by job stream id. /// <see href="http://aka.ms/azureautomationsdk/jobstreamoperations" /> /// </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='jobName'> /// The job name. /// </param> /// <param name='jobStreamId'> /// The job stream id. /// </param> /// <param name='clientRequestId'> /// Identifies this specific client request. /// </param> public static JobStream Get(this IJobStreamOperations operations, string resourceGroupName, string automationAccountName, string jobName, string jobStreamId, string clientRequestId = default(string)) { return(operations.GetAsync(resourceGroupName, automationAccountName, jobName, jobStreamId, clientRequestId).GetAwaiter().GetResult()); }
/// <summary> /// Retrieve a test job streams identified by runbook name and stream /// id. (see http://aka.ms/azureautomationsdk/jobstreamoperations for /// more information) /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.WindowsAzure.Management.Automation.IJobStreamOperations. /// </param> /// <param name='automationAccount'> /// Required. The automation account name. /// </param> /// <param name='runbookName'> /// Required. The runbook name. /// </param> /// <param name='jobStreamId'> /// Required. The job stream id. /// </param> /// <returns> /// The response model for the get job stream operation. /// </returns> public static Task <JobStreamGetResponse> GetTestJobStreamAsync(this IJobStreamOperations operations, string automationAccount, string runbookName, string jobStreamId) { return(operations.GetTestJobStreamAsync(automationAccount, runbookName, jobStreamId, CancellationToken.None)); }
/// <summary> /// Retrieve a list of jobs streams identified by job name. /// <see href="http://aka.ms/azureautomationsdk/jobstreamoperations" /> /// </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='clientRequestId'> /// Identifies this specific client request. /// </param> public static IPage <JobStream> ListByJobNext(this IJobStreamOperations operations, string nextPageLink, string clientRequestId = default(string)) { return(operations.ListByJobNextAsync(nextPageLink, clientRequestId).GetAwaiter().GetResult()); }
/// <summary> /// Retrieve a list of jobs streams identified by job name. /// <see href="http://aka.ms/azureautomationsdk/jobstreamoperations" /> /// </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='jobName'> /// The job name. /// </param> /// <param name='filter'> /// The filter to apply on the operation. /// </param> /// <param name='clientRequestId'> /// Identifies this specific client request. /// </param> public static IPage <JobStream> ListByJob(this IJobStreamOperations operations, string resourceGroupName, string automationAccountName, string jobName, string filter = default(string), string clientRequestId = default(string)) { return(operations.ListByJobAsync(resourceGroupName, automationAccountName, jobName, filter, clientRequestId).GetAwaiter().GetResult()); }
/// <summary> /// Retrieve a list of jobs streams identified by job id. (see /// http://aka.ms/azureautomationsdk/jobstreamoperations for more /// information) /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.WindowsAzure.Management.Automation.IJobStreamOperations. /// </param> /// <param name='automationAccount'> /// Required. The automation account name. /// </param> /// <param name='jobId'> /// Required. The job Id. /// </param> /// <param name='parameters'> /// Optional. The parameters supplied to the list job stream's stream /// items operation. /// </param> /// <returns> /// The response model for the list job stream operation. /// </returns> public static Task <JobStreamListResponse> ListAsync(this IJobStreamOperations operations, string automationAccount, Guid jobId, JobStreamListParameters parameters) { return(operations.ListAsync(automationAccount, jobId, parameters, CancellationToken.None)); }
/// <summary> /// Retrieve the job stream identified by job stream id. (see /// http://aka.ms/azureautomationsdk/jobstreamoperations for more /// information) /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.WindowsAzure.Management.Automation.IJobStreamOperations. /// </param> /// <param name='automationAccount'> /// Required. The automation account name. /// </param> /// <param name='jobId'> /// Required. The job id. /// </param> /// <param name='jobStreamId'> /// Required. The job stream id. /// </param> /// <returns> /// The response model for the get job stream operation. /// </returns> public static Task <JobStreamGetResponse> GetAsync(this IJobStreamOperations operations, string automationAccount, Guid jobId, string jobStreamId) { return(operations.GetAsync(automationAccount, jobId, jobStreamId, CancellationToken.None)); }
/// <summary> /// Gets the next page of job streams using next link. /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.WindowsAzure.Management.Automation.IJobStreamOperations. /// </param> /// <param name='nextLink'> /// Required. NextLink from the previous successful call to List /// operation. /// </param> /// <returns> /// The response model for the list job stream operation. /// </returns> public static Task <JobStreamListResponse> ListNextAsync(this IJobStreamOperations operations, string nextLink) { return(operations.ListNextAsync(nextLink, CancellationToken.None)); }