/// <summary> /// Return list of software update configuration machine runs corresponding to the software update configuration run with the given correlation id /// <see href="http://aka.ms/azureautomationsdk/softwareupdateconfigurationoperations" /> /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='correlationId'> /// Id of the parent software update configuration 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> public static SoftwareUpdateConfigurationMachineRunListResult ListByCorrelationId( this ISoftwareUpdateConfigurationMachineRunsOperations operations, string resourceGroupName, string automationAccountName, Guid correlationId, string clientRequestId = default(string), string skip = default(string), string top = default(string)) { return(operations.ListByCorrelationIdAsync(resourceGroupName, automationAccountName, correlationId, clientRequestId, skip, top).GetAwaiter().GetResult()); }
/// <summary> /// Return list of software update configuration machine runs with the given the status /// <see href="http://aka.ms/azureautomationsdk/softwareupdateconfigurationoperations" /> /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='status'> /// Status of the machine 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 <SoftwareUpdateConfigurationMachineRunListResult> ListByStatusAsync( this ISoftwareUpdateConfigurationMachineRunsOperations operations, string resourceGroupName, string automationAccountName, string status, string clientRequestId = default(string), string skip = default(string), string top = default(string), CancellationToken cancellationToken = default(CancellationToken)) { var filter = GetStatusFilter(status); 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 machine run by Id. /// <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='softwareUpdateConfigurationMachineRunId'> /// The Id of the software update configuration machine run. /// </param> /// <param name='clientRequestId'> /// Identifies this specific client request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <SoftwareUpdateConfigurationMachineRun> GetByIdAsync(this ISoftwareUpdateConfigurationMachineRunsOperations operations, string resourceGroupName, string automationAccountName, System.Guid softwareUpdateConfigurationMachineRunId, string clientRequestId = default(string), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.GetByIdWithHttpMessagesAsync(resourceGroupName, automationAccountName, softwareUpdateConfigurationMachineRunId, clientRequestId, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Get a single software update configuration machine run by Id. /// <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='softwareUpdateConfigurationMachineRunId'> /// The Id of the software update configuration machine run. /// </param> /// <param name='clientRequestId'> /// Identifies this specific client request. /// </param> public static SoftwareUpdateConfigurationMachineRun GetById(this ISoftwareUpdateConfigurationMachineRunsOperations operations, string resourceGroupName, string automationAccountName, System.Guid softwareUpdateConfigurationMachineRunId, string clientRequestId = default(string)) { return(operations.GetByIdAsync(resourceGroupName, automationAccountName, softwareUpdateConfigurationMachineRunId, clientRequestId).GetAwaiter().GetResult()); }