/// <summary> /// Create a new software update configuration with the name given in the URI. /// <see href="http://aka.ms/azureautomationsdk/softwareupdateconfigurationoperations" /> /// </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='softwareUpdateConfigurationName'> /// The name of the software update configuration to be created. /// </param> /// <param name='parameters'> /// Request body. /// </param> /// <param name='clientRequestId'> /// Identifies this specific client request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <SoftwareUpdateConfiguration> CreateAsync(this ISoftwareUpdateConfigurationsOperations operations, string resourceGroupName, string automationAccountName, string softwareUpdateConfigurationName, SoftwareUpdateConfiguration parameters, string clientRequestId = default(string), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.CreateWithHttpMessagesAsync(resourceGroupName, automationAccountName, softwareUpdateConfigurationName, parameters, clientRequestId, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Return list of software update configurations targetting the given virtual machine /// <see href="http://aka.ms/azureautomationsdk/softwareupdateconfigurationoperations" /> /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='virtualMachineId'> /// Azure resource manager Id of the virtual machine /// </param> public static SoftwareUpdateConfigurationListResult ListByAzureVirtualMachine( this ISoftwareUpdateConfigurationsOperations operations, string resourceGroupName, string automationAccountName, string virtualMachineId, string clientRequestId = default(string)) { return(operations.ListByAzureVirtualMachineAsync(resourceGroupName, automationAccountName, virtualMachineId, clientRequestId).GetAwaiter().GetResult()); }
/// <summary> /// Get all software update configurations for the account. /// <see href="http://aka.ms/azureautomationsdk/softwareupdateconfigurationoperations" /> /// </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='clientRequestId'> /// Identifies this specific client request. /// </param> /// <param name='filter'> /// The filter to apply on the operation. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <SoftwareUpdateConfigurationListResult> ListAsync(this ISoftwareUpdateConfigurationsOperations operations, string resourceGroupName, string automationAccountName, string clientRequestId = default(string), string filter = default(string), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListWithHttpMessagesAsync(resourceGroupName, automationAccountName, clientRequestId, filter, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Return list of software update configurations targetting the given virtual machine /// <see href="http://aka.ms/azureautomationsdk/softwareupdateconfigurationoperations" /> /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='virtualMachineId'> /// Azure resource manager Id of the virtual machine /// </param> /// <param name='skip'> /// number of entries you skip before returning results /// </param> /// <param name='top'> /// Maximum number of entries returned in the results collection /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <SoftwareUpdateConfigurationListResult> ListByAzureVirtualMachineAsync( this ISoftwareUpdateConfigurationsOperations operations, string resourceGroupName, string automationAccountName, string virtualMachineId, string clientRequestId = default(string), string skip = default(string), string top = default(string), CancellationToken cancellationToken = default(CancellationToken)) { var filter = string.Format(LambdaFilterFormat, AzureVirtualMachinesProperty, virtualMachineId); using (var _result = await operations.ListWithHttpMessagesAsync(resourceGroupName, automationAccountName, clientRequestId, filter, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Create a new software update configuration with the name given in the URI. /// <see href="http://aka.ms/azureautomationsdk/softwareupdateconfigurationoperations" /> /// </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='softwareUpdateConfigurationName'> /// The name of the software update configuration to be created. /// </param> /// <param name='parameters'> /// Request body. /// </param> /// <param name='clientRequestId'> /// Identifies this specific client request. /// </param> public static SoftwareUpdateConfiguration Create(this ISoftwareUpdateConfigurationsOperations operations, string resourceGroupName, string automationAccountName, string softwareUpdateConfigurationName, SoftwareUpdateConfiguration parameters, string clientRequestId = default(string)) { return(operations.CreateAsync(resourceGroupName, automationAccountName, softwareUpdateConfigurationName, parameters, clientRequestId).GetAwaiter().GetResult()); }
/// <summary> /// Get all software update configurations for the account. /// <see href="http://aka.ms/azureautomationsdk/softwareupdateconfigurationoperations" /> /// </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='clientRequestId'> /// Identifies this specific client request. /// </param> /// <param name='filter'> /// The filter to apply on the operation. /// </param> public static SoftwareUpdateConfigurationListResult List(this ISoftwareUpdateConfigurationsOperations operations, string resourceGroupName, string automationAccountName, string clientRequestId = default(string), string filter = default(string)) { return(operations.ListAsync(resourceGroupName, automationAccountName, clientRequestId, filter).GetAwaiter().GetResult()); }
/// <summary> /// delete a specific software update configuration. /// <see href="http://aka.ms/azureautomationsdk/softwareupdateconfigurationoperations" /> /// </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='softwareUpdateConfigurationName'> /// The name of the software update configuration to be created. /// </param> /// <param name='clientRequestId'> /// Identifies this specific client request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task DeleteAsync(this ISoftwareUpdateConfigurationsOperations operations, string resourceGroupName, string automationAccountName, string softwareUpdateConfigurationName, string clientRequestId = default(string), CancellationToken cancellationToken = default(CancellationToken)) { (await operations.DeleteWithHttpMessagesAsync(resourceGroupName, automationAccountName, softwareUpdateConfigurationName, clientRequestId, null, cancellationToken).ConfigureAwait(false)).Dispose(); }
/// <summary> /// delete a specific software update configuration. /// <see href="http://aka.ms/azureautomationsdk/softwareupdateconfigurationoperations" /> /// </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='softwareUpdateConfigurationName'> /// The name of the software update configuration to be created. /// </param> /// <param name='clientRequestId'> /// Identifies this specific client request. /// </param> public static void Delete(this ISoftwareUpdateConfigurationsOperations operations, string resourceGroupName, string automationAccountName, string softwareUpdateConfigurationName, string clientRequestId = default(string)) { operations.DeleteAsync(resourceGroupName, automationAccountName, softwareUpdateConfigurationName, clientRequestId).GetAwaiter().GetResult(); }