/// <summary> /// List all reports for the guest configuration assignment, latest report /// first. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The resource group name. /// </param> /// <param name='guestConfigurationAssignmentName'> /// The guest configuration assignment name. /// </param> /// <param name='machineName'> /// The name of the ARC machine. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <GuestConfigurationAssignmentReportList> ListAsync(this IGuestConfigurationHCRPAssignmentReportsOperations operations, string resourceGroupName, string guestConfigurationAssignmentName, string machineName, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListWithHttpMessagesAsync(resourceGroupName, guestConfigurationAssignmentName, machineName, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Get a report for the guest configuration assignment, by reportId. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The resource group name. /// </param> /// <param name='guestConfigurationAssignmentName'> /// The guest configuration assignment name. /// </param> /// <param name='reportId'> /// The GUID for the guest configuration assignment report. /// </param> /// <param name='machineName'> /// The name of the ARC machine. /// </param> public static GuestConfigurationAssignmentReport Get(this IGuestConfigurationHCRPAssignmentReportsOperations operations, string resourceGroupName, string guestConfigurationAssignmentName, string reportId, string machineName) { return(operations.GetAsync(resourceGroupName, guestConfigurationAssignmentName, reportId, machineName).GetAwaiter().GetResult()); }