/// <summary>
 /// Gets OData metadata XML document.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='scope'>
 /// A valid scope, i.e. management group, subscription, resource group, or
 /// resource ID. Scope used has no effect on metadata returned.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <string> GetMetadataAsync(this IPolicyStatesOperations operations, string scope, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.GetMetadataWithHttpMessagesAsync(scope, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
 /// <summary>
 /// Summarizes policy states for the resource.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceId'>
 /// Resource ID.
 /// </param>
 /// <param name='queryOptions'>
 /// Additional parameters for the operation
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <SummarizeResults> SummarizeForResourceAsync(this IPolicyStatesOperations operations, string resourceId, QueryOptions queryOptions = default(QueryOptions), CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.SummarizeForResourceWithHttpMessagesAsync(resourceId, queryOptions, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
 /// <summary>
 /// Summarizes policy states for the resources under the management group.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='managementGroupName'>
 /// Management group name.
 /// </param>
 /// <param name='queryOptions'>
 /// Additional parameters for the operation
 /// </param>
 public static SummarizeResults SummarizeForManagementGroup(this IPolicyStatesOperations operations, string managementGroupName, QueryOptions queryOptions = default(QueryOptions))
 {
     return(operations.SummarizeForManagementGroupAsync(managementGroupName, queryOptions).GetAwaiter().GetResult());
 }
 /// <summary>
 /// Gets OData metadata XML document.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='scope'>
 /// A valid scope, i.e. management group, subscription, resource group, or
 /// resource ID. Scope used has no effect on metadata returned.
 /// </param>
 public static string GetMetadata(this IPolicyStatesOperations operations, string scope)
 {
     return(operations.GetMetadataAsync(scope).GetAwaiter().GetResult());
 }
 /// <summary>
 /// Summarizes policy states for the resource group level policy assignment.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='subscriptionId'>
 /// Microsoft Azure subscription ID.
 /// </param>
 /// <param name='resourceGroupName'>
 /// Resource group name.
 /// </param>
 /// <param name='policyAssignmentName'>
 /// Policy assignment name.
 /// </param>
 /// <param name='queryOptions'>
 /// Additional parameters for the operation
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <SummarizeResults> SummarizeForResourceGroupLevelPolicyAssignmentAsync(this IPolicyStatesOperations operations, string subscriptionId, string resourceGroupName, string policyAssignmentName, QueryOptions queryOptions = default(QueryOptions), CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.SummarizeForResourceGroupLevelPolicyAssignmentWithHttpMessagesAsync(subscriptionId, resourceGroupName, policyAssignmentName, queryOptions, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
 /// <summary>
 /// Summarizes policy states for the resource group level policy assignment.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='subscriptionId'>
 /// Microsoft Azure subscription ID.
 /// </param>
 /// <param name='resourceGroupName'>
 /// Resource group name.
 /// </param>
 /// <param name='policyAssignmentName'>
 /// Policy assignment name.
 /// </param>
 /// <param name='queryOptions'>
 /// Additional parameters for the operation
 /// </param>
 public static SummarizeResults SummarizeForResourceGroupLevelPolicyAssignment(this IPolicyStatesOperations operations, string subscriptionId, string resourceGroupName, string policyAssignmentName, QueryOptions queryOptions = default(QueryOptions))
 {
     return(operations.SummarizeForResourceGroupLevelPolicyAssignmentAsync(subscriptionId, resourceGroupName, policyAssignmentName, queryOptions).GetAwaiter().GetResult());
 }
 /// <summary>
 /// Queries policy states for the resources under the management group.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='policyStatesResource'>
 /// The virtual resource under PolicyStates resource type. In a given time
 /// range, 'latest' represents the latest policy state(s), whereas 'default'
 /// represents all policy state(s). Possible values include: 'default',
 /// 'latest'
 /// </param>
 /// <param name='managementGroupName'>
 /// Management group name.
 /// </param>
 /// <param name='queryOptions'>
 /// Additional parameters for the operation
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <PolicyStatesQueryResults> ListQueryResultsForManagementGroupAsync(this IPolicyStatesOperations operations, string policyStatesResource, string managementGroupName, QueryOptions queryOptions = default(QueryOptions), CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.ListQueryResultsForManagementGroupWithHttpMessagesAsync(policyStatesResource, managementGroupName, queryOptions, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
 /// <summary>
 /// Queries policy states for the subscription level policy assignment.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='policyStatesResource'>
 /// The virtual resource under PolicyStates resource type. In a given time
 /// range, 'latest' represents the latest policy state(s), whereas 'default'
 /// represents all policy state(s). Possible values include: 'default',
 /// 'latest'
 /// </param>
 /// <param name='subscriptionId'>
 /// Microsoft Azure subscription ID.
 /// </param>
 /// <param name='policyAssignmentName'>
 /// Policy assignment name.
 /// </param>
 /// <param name='queryOptions'>
 /// Additional parameters for the operation
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <PolicyStatesQueryResults> ListQueryResultsForSubscriptionLevelPolicyAssignmentAsync(this IPolicyStatesOperations operations, string policyStatesResource, string subscriptionId, string policyAssignmentName, QueryOptions queryOptions = default(QueryOptions), CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.ListQueryResultsForSubscriptionLevelPolicyAssignmentWithHttpMessagesAsync(policyStatesResource, subscriptionId, policyAssignmentName, queryOptions, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
 /// <summary>
 /// Queries policy states for the subscription level policy assignment.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='policyStatesResource'>
 /// The virtual resource under PolicyStates resource type. In a given time
 /// range, 'latest' represents the latest policy state(s), whereas 'default'
 /// represents all policy state(s). Possible values include: 'default',
 /// 'latest'
 /// </param>
 /// <param name='subscriptionId'>
 /// Microsoft Azure subscription ID.
 /// </param>
 /// <param name='policyAssignmentName'>
 /// Policy assignment name.
 /// </param>
 /// <param name='queryOptions'>
 /// Additional parameters for the operation
 /// </param>
 public static PolicyStatesQueryResults ListQueryResultsForSubscriptionLevelPolicyAssignment(this IPolicyStatesOperations operations, string policyStatesResource, string subscriptionId, string policyAssignmentName, QueryOptions queryOptions = default(QueryOptions))
 {
     return(operations.ListQueryResultsForSubscriptionLevelPolicyAssignmentAsync(policyStatesResource, subscriptionId, policyAssignmentName, queryOptions).GetAwaiter().GetResult());
 }
 /// <summary>
 /// Summarizes policy states for the subscription level policy definition.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='subscriptionId'>
 /// Microsoft Azure subscription ID.
 /// </param>
 /// <param name='policyDefinitionName'>
 /// Policy definition name.
 /// </param>
 /// <param name='queryOptions'>
 /// Additional parameters for the operation
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <SummarizeResults> SummarizeForPolicyDefinitionAsync(this IPolicyStatesOperations operations, string subscriptionId, string policyDefinitionName, QueryOptions queryOptions = default(QueryOptions), CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.SummarizeForPolicyDefinitionWithHttpMessagesAsync(subscriptionId, policyDefinitionName, queryOptions, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
 /// <summary>
 /// Summarizes policy states for the subscription level policy definition.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='subscriptionId'>
 /// Microsoft Azure subscription ID.
 /// </param>
 /// <param name='policyDefinitionName'>
 /// Policy definition name.
 /// </param>
 /// <param name='queryOptions'>
 /// Additional parameters for the operation
 /// </param>
 public static SummarizeResults SummarizeForPolicyDefinition(this IPolicyStatesOperations operations, string subscriptionId, string policyDefinitionName, QueryOptions queryOptions = default(QueryOptions))
 {
     return(operations.SummarizeForPolicyDefinitionAsync(subscriptionId, policyDefinitionName, queryOptions).GetAwaiter().GetResult());
 }
 /// <summary>
 /// Queries policy states for the subscription level policy definition.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='policyStatesResource'>
 /// The virtual resource under PolicyStates resource type. In a given time
 /// range, 'latest' represents the latest policy state(s), whereas 'default'
 /// represents all policy state(s). Possible values include: 'default',
 /// 'latest'
 /// </param>
 /// <param name='subscriptionId'>
 /// Microsoft Azure subscription ID.
 /// </param>
 /// <param name='policyDefinitionName'>
 /// Policy definition name.
 /// </param>
 /// <param name='queryOptions'>
 /// Additional parameters for the operation
 /// </param>
 public static PolicyStatesQueryResults ListQueryResultsForPolicyDefinition(this IPolicyStatesOperations operations, string policyStatesResource, string subscriptionId, string policyDefinitionName, QueryOptions queryOptions = default(QueryOptions))
 {
     return(operations.ListQueryResultsForPolicyDefinitionAsync(policyStatesResource, subscriptionId, policyDefinitionName, queryOptions).GetAwaiter().GetResult());
 }
 /// <summary>
 /// Queries policy states for the resources under the management group.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='policyStatesResource'>
 /// The virtual resource under PolicyStates resource type. In a given time
 /// range, 'latest' represents the latest policy state(s), whereas 'default'
 /// represents all policy state(s). Possible values include: 'default',
 /// 'latest'
 /// </param>
 /// <param name='managementGroupName'>
 /// Management group name.
 /// </param>
 /// <param name='queryOptions'>
 /// Additional parameters for the operation
 /// </param>
 public static PolicyStatesQueryResults ListQueryResultsForManagementGroup(this IPolicyStatesOperations operations, string policyStatesResource, string managementGroupName, QueryOptions queryOptions = default(QueryOptions))
 {
     return(operations.ListQueryResultsForManagementGroupAsync(policyStatesResource, managementGroupName, queryOptions).GetAwaiter().GetResult());
 }
 /// <summary>
 /// Summarizes policy states for the resource.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceId'>
 /// Resource ID.
 /// </param>
 /// <param name='queryOptions'>
 /// Additional parameters for the operation
 /// </param>
 public static SummarizeResults SummarizeForResource(this IPolicyStatesOperations operations, string resourceId, QueryOptions queryOptions = default(QueryOptions))
 {
     return(operations.SummarizeForResourceAsync(resourceId, queryOptions).GetAwaiter().GetResult());
 }
 /// <summary>
 /// Queries policy states for the resource.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='policyStatesResource'>
 /// The virtual resource under PolicyStates resource type. In a given time
 /// range, 'latest' represents the latest policy state(s), whereas 'default'
 /// represents all policy state(s). Possible values include: 'default',
 /// 'latest'
 /// </param>
 /// <param name='resourceId'>
 /// Resource ID.
 /// </param>
 /// <param name='queryOptions'>
 /// Additional parameters for the operation
 /// </param>
 public static PolicyStatesQueryResults ListQueryResultsForResource(this IPolicyStatesOperations operations, string policyStatesResource, string resourceId, QueryOptions queryOptions = default(QueryOptions))
 {
     return(operations.ListQueryResultsForResourceAsync(policyStatesResource, resourceId, queryOptions).GetAwaiter().GetResult());
 }