/// <summary> /// Return list of software update configuration runs triggered by the software update configuration with the given name /// <see href="http://aka.ms/azureautomationsdk/softwareupdateconfigurationoperations" /> /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='osType'> /// Operating system type /// </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> public static SoftwareUpdateConfigurationRunListResult ListByOsType( this ISoftwareUpdateConfigurationRunsOperations operations, string resourceGroupName, string automationAccountName, string osType, string clientRequestId = default(string), string skip = default(string), string top = default(string)) { return(operations.ListByOsTypeAsync(resourceGroupName, automationAccountName, osType, clientRequestId, skip, top).GetAwaiter().GetResult()); }
/// <summary> /// Get a single software update configuration Run by Id. /// <see href="http://aka.ms/azureautomationsdk/softwareupdateconfigurationrunoperations" /> /// </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='softwareUpdateConfigurationRunId'> /// The Id of the software update configuration run. /// </param> /// <param name='clientRequestId'> /// Identifies this specific client request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <SoftwareUpdateConfigurationRun> GetByIdAsync(this ISoftwareUpdateConfigurationRunsOperations operations, string resourceGroupName, string automationAccountName, System.Guid softwareUpdateConfigurationRunId, string clientRequestId = default(string), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.GetByIdWithHttpMessagesAsync(resourceGroupName, automationAccountName, softwareUpdateConfigurationRunId, clientRequestId, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Return list of software update configuration runs triggered by the software update configuration with the given name /// <see href="http://aka.ms/azureautomationsdk/softwareupdateconfigurationoperations" /> /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='configurationName'> /// Name of the software update configuration triggered this run /// </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 <SoftwareUpdateConfigurationRunListResult> ListByConfigurationNameAsync( this ISoftwareUpdateConfigurationRunsOperations operations, string resourceGroupName, string automationAccountName, string configurationName, string clientRequestId = default(string), string skip = default(string), string top = default(string), CancellationToken cancellationToken = default(CancellationToken)) { var filter = GetConfigurationNameFilter(configurationName); using (var _result = await operations.ListWithHttpMessagesAsync(resourceGroupName, automationAccountName, clientRequestId, filter, skip, top, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Get a single software update configuration Run by Id. /// <see href="http://aka.ms/azureautomationsdk/softwareupdateconfigurationrunoperations" /> /// </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='softwareUpdateConfigurationRunId'> /// The Id of the software update configuration run. /// </param> /// <param name='clientRequestId'> /// Identifies this specific client request. /// </param> public static SoftwareUpdateConfigurationRun GetById(this ISoftwareUpdateConfigurationRunsOperations operations, string resourceGroupName, string automationAccountName, System.Guid softwareUpdateConfigurationRunId, string clientRequestId = default(string)) { return(operations.GetByIdAsync(resourceGroupName, automationAccountName, softwareUpdateConfigurationRunId, clientRequestId).GetAwaiter().GetResult()); }