/// <summary> /// For a specified subscription, list the available security controls, their /// assessments, and the max score /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <IPage <SecureScoreControlDefinitionItem> > ListBySubscriptionAsync(this ISecureScoreControlDefinitionsOperations operations, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListBySubscriptionWithHttpMessagesAsync(null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// List the available security controls, their assessments, and the max score /// </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 <SecureScoreControlDefinitionItem> ListNext(this ISecureScoreControlDefinitionsOperations operations, string nextPageLink) { return(operations.ListNextAsync(nextPageLink).GetAwaiter().GetResult()); }
/// <summary> /// For a specified subscription, list the available security controls, their /// assessments, and the max score /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> public static IPage <SecureScoreControlDefinitionItem> ListBySubscription(this ISecureScoreControlDefinitionsOperations operations) { return(operations.ListBySubscriptionAsync().GetAwaiter().GetResult()); }