/// <summary> /// Create a hybrid runbook worker. /// <see href="http://aka.ms/azureautomationsdk/hybridrunbookworkeroperations" /> /// </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='hybridRunbookWorkerId'> /// The hybrid runbook worker id /// </param> /// <param name='hybridRunbookWorkerCreationParameters'> /// The create or update parameters for hybrid runbook worker. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <HybridRunbookWorker> CreateAsync(this IHybridRunbookWorkersOperations operations, string resourceGroupName, string automationAccountName, string hybridRunbookWorkerGroupName, string hybridRunbookWorkerId, HybridRunbookWorkerCreateParameters hybridRunbookWorkerCreationParameters, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.CreateWithHttpMessagesAsync(resourceGroupName, automationAccountName, hybridRunbookWorkerGroupName, hybridRunbookWorkerId, hybridRunbookWorkerCreationParameters, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Initializes client properties. /// </summary> private void Initialize() { PrivateEndpointConnections = new PrivateEndpointConnectionsOperations(this); PrivateLinkResources = new PrivateLinkResourcesOperations(this); Python2Package = new Python2PackageOperations(this); AgentRegistrationInformation = new AgentRegistrationInformationOperations(this); DscNode = new DscNodeOperations(this); NodeReports = new NodeReportsOperations(this); DscNodeConfiguration = new DscNodeConfigurationOperations(this); DscCompilationJob = new DscCompilationJobOperations(this); DscCompilationJobStream = new DscCompilationJobStreamOperations(this); NodeCountInformation = new NodeCountInformationOperations(this); SourceControl = new SourceControlOperations(this); SourceControlSyncJob = new SourceControlSyncJobOperations(this); SourceControlSyncJobStreams = new SourceControlSyncJobStreamsOperations(this); AutomationAccount = new AutomationAccountOperations(this); Statistics = new StatisticsOperations(this); Usages = new UsagesOperations(this); Keys = new KeysOperations(this); Certificate = new CertificateOperations(this); Connection = new ConnectionOperations(this); ConnectionType = new ConnectionTypeOperations(this); Credential = new CredentialOperations(this); HybridRunbookWorkerGroup = new HybridRunbookWorkerGroupOperations(this); JobSchedule = new JobScheduleOperations(this); LinkedWorkspace = new LinkedWorkspaceOperations(this); Activity = new ActivityOperations(this); Module = new ModuleOperations(this); ObjectDataTypes = new ObjectDataTypesOperations(this); Fields = new FieldsOperations(this); Schedule = new ScheduleOperations(this); Variable = new VariableOperations(this); Watcher = new WatcherOperations(this); DscConfiguration = new DscConfigurationOperations(this); Job = new JobOperations(this); JobStream = new JobStreamOperations(this); Operations = new Operations(this); SoftwareUpdateConfigurations = new SoftwareUpdateConfigurationsOperations(this); SoftwareUpdateConfigurationRuns = new SoftwareUpdateConfigurationRunsOperations(this); SoftwareUpdateConfigurationMachineRuns = new SoftwareUpdateConfigurationMachineRunsOperations(this); RunbookDraft = new RunbookDraftOperations(this); Runbook = new RunbookOperations(this); TestJobStreams = new TestJobStreamsOperations(this); TestJob = new TestJobOperations(this); Webhook = new WebhookOperations(this); HybridRunbookWorkers = new HybridRunbookWorkersOperations(this); BaseUri = new System.Uri("https://management.azure.com"); AcceptLanguage = "en-US"; LongRunningOperationRetryTimeout = 30; GenerateClientRequestId = true; SerializationSettings = new JsonSerializerSettings { Formatting = Newtonsoft.Json.Formatting.Indented, DateFormatHandling = Newtonsoft.Json.DateFormatHandling.IsoDateFormat, DateTimeZoneHandling = Newtonsoft.Json.DateTimeZoneHandling.Utc, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore, ReferenceLoopHandling = Newtonsoft.Json.ReferenceLoopHandling.Serialize, ContractResolver = new ReadOnlyJsonContractResolver(), Converters = new List <JsonConverter> { new Iso8601TimeSpanConverter() } }; SerializationSettings.Converters.Add(new TransformationJsonConverter()); DeserializationSettings = new JsonSerializerSettings { DateFormatHandling = Newtonsoft.Json.DateFormatHandling.IsoDateFormat, DateTimeZoneHandling = Newtonsoft.Json.DateTimeZoneHandling.Utc, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore, ReferenceLoopHandling = Newtonsoft.Json.ReferenceLoopHandling.Serialize, ContractResolver = new ReadOnlyJsonContractResolver(), Converters = new List <JsonConverter> { new Iso8601TimeSpanConverter() } }; CustomInitialize(); DeserializationSettings.Converters.Add(new TransformationJsonConverter()); DeserializationSettings.Converters.Add(new CloudErrorJsonConverter()); }
/// <summary> /// Retrieve a hybrid runbook worker. /// <see href="http://aka.ms/azureautomationsdk/hybridrunbookworkeroperations" /> /// </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='hybridRunbookWorkerId'> /// The hybrid runbook worker id /// </param> public static HybridRunbookWorker Get(this IHybridRunbookWorkersOperations operations, string resourceGroupName, string automationAccountName, string hybridRunbookWorkerGroupName, string hybridRunbookWorkerId) { return(operations.GetAsync(resourceGroupName, automationAccountName, hybridRunbookWorkerGroupName, hybridRunbookWorkerId).GetAwaiter().GetResult()); }
/// <summary> /// Delete a hybrid runbook worker. /// <see href="http://aka.ms/azureautomationsdk/hybridrunbookworkeroperations" /> /// </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='hybridRunbookWorkerId'> /// The hybrid runbook worker id /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task DeleteAsync(this IHybridRunbookWorkersOperations operations, string resourceGroupName, string automationAccountName, string hybridRunbookWorkerGroupName, string hybridRunbookWorkerId, CancellationToken cancellationToken = default(CancellationToken)) { (await operations.DeleteWithHttpMessagesAsync(resourceGroupName, automationAccountName, hybridRunbookWorkerGroupName, hybridRunbookWorkerId, null, cancellationToken).ConfigureAwait(false)).Dispose(); }
/// <summary> /// Delete a hybrid runbook worker. /// <see href="http://aka.ms/azureautomationsdk/hybridrunbookworkeroperations" /> /// </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='hybridRunbookWorkerId'> /// The hybrid runbook worker id /// </param> public static void Delete(this IHybridRunbookWorkersOperations operations, string resourceGroupName, string automationAccountName, string hybridRunbookWorkerGroupName, string hybridRunbookWorkerId) { operations.DeleteAsync(resourceGroupName, automationAccountName, hybridRunbookWorkerGroupName, hybridRunbookWorkerId).GetAwaiter().GetResult(); }
/// <summary> /// Retrieve a list of hybrid runbook workers. /// <see href="http://aka.ms/azureautomationsdk/hybridrunbookworkeroperations" /> /// </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 <HybridRunbookWorker> > ListByHybridRunbookWorkerGroupNextAsync(this IHybridRunbookWorkersOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListByHybridRunbookWorkerGroupNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Retrieve a list of hybrid runbook workers. /// <see href="http://aka.ms/azureautomationsdk/hybridrunbookworkeroperations" /> /// </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 <HybridRunbookWorker> ListByHybridRunbookWorkerGroupNext(this IHybridRunbookWorkersOperations operations, string nextPageLink) { return(operations.ListByHybridRunbookWorkerGroupNextAsync(nextPageLink).GetAwaiter().GetResult()); }
/// <summary> /// Retrieve a list of hybrid runbook workers. /// <see href="http://aka.ms/azureautomationsdk/hybridrunbookworkeroperations" /> /// </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='odataQuery'> /// OData parameters to apply to the operation. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <IPage <HybridRunbookWorker> > ListByHybridRunbookWorkerGroupAsync(this IHybridRunbookWorkersOperations operations, string resourceGroupName, string automationAccountName, string hybridRunbookWorkerGroupName, ODataQuery <HybridRunbookWorker> odataQuery = default(ODataQuery <HybridRunbookWorker>), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListByHybridRunbookWorkerGroupWithHttpMessagesAsync(resourceGroupName, automationAccountName, hybridRunbookWorkerGroupName, odataQuery, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Retrieve a list of hybrid runbook workers. /// <see href="http://aka.ms/azureautomationsdk/hybridrunbookworkeroperations" /> /// </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='odataQuery'> /// OData parameters to apply to the operation. /// </param> public static IPage <HybridRunbookWorker> ListByHybridRunbookWorkerGroup(this IHybridRunbookWorkersOperations operations, string resourceGroupName, string automationAccountName, string hybridRunbookWorkerGroupName, ODataQuery <HybridRunbookWorker> odataQuery = default(ODataQuery <HybridRunbookWorker>)) { return(operations.ListByHybridRunbookWorkerGroupAsync(resourceGroupName, automationAccountName, hybridRunbookWorkerGroupName, odataQuery).GetAwaiter().GetResult()); }
/// <summary> /// Move a hybrid worker to a different group. /// <see href="http://aka.ms/azureautomationsdk/hybridrunbookworkeroperations" /> /// </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='hybridRunbookWorkerId'> /// The hybrid runbook worker id /// </param> /// <param name='hybridRunbookWorkerMoveParameters'> /// The hybrid runbook worker move parameters /// </param> public static void Move(this IHybridRunbookWorkersOperations operations, string resourceGroupName, string automationAccountName, string hybridRunbookWorkerGroupName, string hybridRunbookWorkerId, HybridRunbookWorkerMoveParameters hybridRunbookWorkerMoveParameters) { operations.MoveAsync(resourceGroupName, automationAccountName, hybridRunbookWorkerGroupName, hybridRunbookWorkerId, hybridRunbookWorkerMoveParameters).GetAwaiter().GetResult(); }
/// <summary> /// Create a hybrid runbook worker. /// <see href="http://aka.ms/azureautomationsdk/hybridrunbookworkeroperations" /> /// </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='hybridRunbookWorkerId'> /// The hybrid runbook worker id /// </param> /// <param name='hybridRunbookWorkerCreationParameters'> /// The create or update parameters for hybrid runbook worker. /// </param> public static HybridRunbookWorker Create(this IHybridRunbookWorkersOperations operations, string resourceGroupName, string automationAccountName, string hybridRunbookWorkerGroupName, string hybridRunbookWorkerId, HybridRunbookWorkerCreateParameters hybridRunbookWorkerCreationParameters) { return(operations.CreateAsync(resourceGroupName, automationAccountName, hybridRunbookWorkerGroupName, hybridRunbookWorkerId, hybridRunbookWorkerCreationParameters).GetAwaiter().GetResult()); }