/// <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> /// Update a hybrid runbook worker group. /// <see href="http://aka.ms/azureautomationsdk/hybridrunbookworkergroupoperations" /> /// </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='hybridRunbookWorkerGroupName'> /// The hybrid runbook worker group name /// </param> /// <param name='parameters'> /// The hybrid runbook worker group /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <HybridRunbookWorkerGroup> UpdateAsync(this IHybridRunbookWorkerGroupOperations operations, string resourceGroupName, string automationAccountName, string hybridRunbookWorkerGroupName, HybridRunbookWorkerGroupUpdateParameters parameters, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.UpdateWithHttpMessagesAsync(resourceGroupName, automationAccountName, hybridRunbookWorkerGroupName, parameters, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Delete a hybrid runbook worker group. (see /// http://aka.ms/azureautomationsdk/hybridrunbookworkergroupoperations /// for more information) /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.Azure.Management.Automation.IHybridRunbookWorkerGroupOperations. /// </param> /// <param name='resourceGroupName'> /// Required. The name of the resource group /// </param> /// <param name='automationAccount'> /// Required. Automation account name. /// </param> /// <param name='hybridRunbookWorkerGroupName'> /// Required. The hybrid runbook worker group name /// </param> /// <returns> /// A standard service response including an HTTP status code and /// request ID. /// </returns> public static AzureOperationResponse Delete(this IHybridRunbookWorkerGroupOperations operations, string resourceGroupName, string automationAccount, string hybridRunbookWorkerGroupName) { return(Task.Factory.StartNew((object s) => { return ((IHybridRunbookWorkerGroupOperations)s).DeleteAsync(resourceGroupName, automationAccount, hybridRunbookWorkerGroupName); } , operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult()); }
/// <summary> /// Retrieve next list of hybrid runbook worker groups. (see /// http://aka.ms/azureautomationsdk/hybridrunbookworkergroupoperations /// for more information) /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.Azure.Management.Automation.IHybridRunbookWorkerGroupOperations. /// </param> /// <param name='nextLink'> /// Required. The link to retrieve next set of items. /// </param> /// <returns> /// The response model for the list hybrid runbook worker groups. /// </returns> public static HybridRunbookWorkerGroupsListResponse ListNext(this IHybridRunbookWorkerGroupOperations operations, string nextLink) { return(Task.Factory.StartNew((object s) => { return ((IHybridRunbookWorkerGroupOperations)s).ListNextAsync(nextLink); } , operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult()); }
/// <summary> /// Retrieve a hybrid runbook worker group. /// <see href="http://aka.ms/azureautomationsdk/hybridrunbookworkergroupoperations" /> /// </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='hybridRunbookWorkerGroupName'> /// The hybrid runbook worker group name /// </param> public static HybridRunbookWorkerGroup Get(this IHybridRunbookWorkerGroupOperations operations, string resourceGroupName, string automationAccountName, string hybridRunbookWorkerGroupName) { return(operations.GetAsync(resourceGroupName, automationAccountName, hybridRunbookWorkerGroupName).GetAwaiter().GetResult()); }
/// <summary> /// Delete a hybrid runbook worker group. /// <see href="http://aka.ms/azureautomationsdk/hybridrunbookworkergroupoperations" /> /// </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='hybridRunbookWorkerGroupName'> /// The hybrid runbook worker group name /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task DeleteAsync(this IHybridRunbookWorkerGroupOperations operations, string resourceGroupName, string automationAccountName, string hybridRunbookWorkerGroupName, CancellationToken cancellationToken = default(CancellationToken)) { (await operations.DeleteWithHttpMessagesAsync(resourceGroupName, automationAccountName, hybridRunbookWorkerGroupName, null, cancellationToken).ConfigureAwait(false)).Dispose(); }
/// <summary> /// Delete a hybrid runbook worker group. /// <see href="http://aka.ms/azureautomationsdk/hybridrunbookworkergroupoperations" /> /// </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='hybridRunbookWorkerGroupName'> /// The hybrid runbook worker group name /// </param> public static void Delete(this IHybridRunbookWorkerGroupOperations operations, string resourceGroupName, string automationAccountName, string hybridRunbookWorkerGroupName) { operations.DeleteAsync(resourceGroupName, automationAccountName, hybridRunbookWorkerGroupName).GetAwaiter().GetResult(); }
/// <summary> /// Retrieve a list of hybrid runbook worker groups. /// <see href="http://aka.ms/azureautomationsdk/hybridrunbookworkergroupoperations" /> /// </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 <HybridRunbookWorkerGroup> > ListByAutomationAccountNextAsync(this IHybridRunbookWorkerGroupOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListByAutomationAccountNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Retrieve a list of hybrid runbook worker groups. /// <see href="http://aka.ms/azureautomationsdk/hybridrunbookworkergroupoperations" /> /// </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 <HybridRunbookWorkerGroup> ListByAutomationAccountNext(this IHybridRunbookWorkerGroupOperations operations, string nextPageLink) { return(operations.ListByAutomationAccountNextAsync(nextPageLink).GetAwaiter().GetResult()); }
/// <summary> /// Retrieve a list of hybrid runbook worker groups. /// <see href="http://aka.ms/azureautomationsdk/hybridrunbookworkergroupoperations" /> /// </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='odataQuery'> /// OData parameters to apply to the operation. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <IPage <HybridRunbookWorkerGroup> > ListByAutomationAccountAsync(this IHybridRunbookWorkerGroupOperations operations, string resourceGroupName, string automationAccountName, ODataQuery <HybridRunbookWorkerGroup> odataQuery = default(ODataQuery <HybridRunbookWorkerGroup>), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListByAutomationAccountWithHttpMessagesAsync(resourceGroupName, automationAccountName, odataQuery, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Retrieve a list of hybrid runbook worker groups. /// <see href="http://aka.ms/azureautomationsdk/hybridrunbookworkergroupoperations" /> /// </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='odataQuery'> /// OData parameters to apply to the operation. /// </param> public static IPage <HybridRunbookWorkerGroup> ListByAutomationAccount(this IHybridRunbookWorkerGroupOperations operations, string resourceGroupName, string automationAccountName, ODataQuery <HybridRunbookWorkerGroup> odataQuery = default(ODataQuery <HybridRunbookWorkerGroup>)) { return(operations.ListByAutomationAccountAsync(resourceGroupName, automationAccountName, odataQuery).GetAwaiter().GetResult()); }
/// <summary> /// Update a hybrid runbook worker group. /// <see href="http://aka.ms/azureautomationsdk/hybridrunbookworkergroupoperations" /> /// </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='hybridRunbookWorkerGroupName'> /// The hybrid runbook worker group name /// </param> /// <param name='parameters'> /// The hybrid runbook worker group /// </param> public static HybridRunbookWorkerGroup Update(this IHybridRunbookWorkerGroupOperations operations, string resourceGroupName, string automationAccountName, string hybridRunbookWorkerGroupName, HybridRunbookWorkerGroupUpdateParameters parameters) { return(operations.UpdateAsync(resourceGroupName, automationAccountName, hybridRunbookWorkerGroupName, parameters).GetAwaiter().GetResult()); }
/// <summary> /// Delete a hybrid runbook worker group. (see /// http://aka.ms/azureautomationsdk/hybridrunbookworkergroupoperations /// for more information) /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.Azure.Management.Automation.IHybridRunbookWorkerGroupOperations. /// </param> /// <param name='resourceGroupName'> /// Required. The name of the resource group /// </param> /// <param name='automationAccount'> /// Required. Automation account name. /// </param> /// <param name='hybridRunbookWorkerGroupName'> /// Required. The hybrid runbook worker group name /// </param> /// <returns> /// A standard service response including an HTTP status code and /// request ID. /// </returns> public static Task <AzureOperationResponse> DeleteAsync(this IHybridRunbookWorkerGroupOperations operations, string resourceGroupName, string automationAccount, string hybridRunbookWorkerGroupName) { return(operations.DeleteAsync(resourceGroupName, automationAccount, hybridRunbookWorkerGroupName, CancellationToken.None)); }
/// <summary> /// Update a hybrid runbook worker group. (see /// http://aka.ms/azureautomationsdk/hybridrunbookworkergroupoperations /// for more information) /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.Azure.Management.Automation.IHybridRunbookWorkerGroupOperations. /// </param> /// <param name='resourceGroupName'> /// Required. The name of the resource group /// </param> /// <param name='automationAccount'> /// Required. The automation account name. /// </param> /// <param name='hybridRunbookWorkerGroupName'> /// Required. The hybrid runbook worker group name /// </param> /// <param name='parameters'> /// Required. The hybrid runbook worker group /// </param> /// <returns> /// The response model for the patch hybrid runbook worker group /// operation. /// </returns> public static Task <HybridRunbookWorkerGroupPatchResponse> PatchAsync(this IHybridRunbookWorkerGroupOperations operations, string resourceGroupName, string automationAccount, string hybridRunbookWorkerGroupName, HybridRunbookWorkerGroupPatchParameters parameters) { return(operations.PatchAsync(resourceGroupName, automationAccount, hybridRunbookWorkerGroupName, parameters, CancellationToken.None)); }
/// <summary> /// Retrieve next list of hybrid runbook worker groups. (see /// http://aka.ms/azureautomationsdk/hybridrunbookworkergroupoperations /// for more information) /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.Azure.Management.Automation.IHybridRunbookWorkerGroupOperations. /// </param> /// <param name='nextLink'> /// Required. The link to retrieve next set of items. /// </param> /// <returns> /// The response model for the list hybrid runbook worker groups. /// </returns> public static Task <HybridRunbookWorkerGroupsListResponse> ListNextAsync(this IHybridRunbookWorkerGroupOperations operations, string nextLink) { return(operations.ListNextAsync(nextLink, CancellationToken.None)); }
/// <summary> /// Retrieve a list of hybrid runbook worker groups. (see /// http://aka.ms/azureautomationsdk/hybridrunbookworkergroupoperations /// for more information) /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.Azure.Management.Automation.IHybridRunbookWorkerGroupOperations. /// </param> /// <param name='resourceGroupName'> /// Required. The name of the resource group /// </param> /// <param name='automationAccount'> /// Required. The automation account name. /// </param> /// <returns> /// The response model for the list hybrid runbook worker groups. /// </returns> public static Task <HybridRunbookWorkerGroupsListResponse> ListAsync(this IHybridRunbookWorkerGroupOperations operations, string resourceGroupName, string automationAccount) { return(operations.ListAsync(resourceGroupName, automationAccount, CancellationToken.None)); }