
com.azure.resourcemanager.policyinsights.models.PolicyStates Maven / Gradle / Ivy
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.policyinsights.models;
import com.azure.core.http.rest.PagedIterable;
import com.azure.core.http.rest.Response;
import com.azure.core.util.Context;
import java.time.OffsetDateTime;
/**
* Resource collection API of PolicyStates.
*/
public interface PolicyStates {
/**
* Queries policy states for the resources under the management group.
*
* @param 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).
* @param managementGroupName Management group name.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return query results as paginated response with {@link PagedIterable}.
*/
PagedIterable listQueryResultsForManagementGroup(PolicyStatesResource policyStatesResource,
String managementGroupName);
/**
* Queries policy states for the resources under the management group.
*
* @param 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).
* @param managementGroupName Management group name.
* @param top Maximum number of records to return.
* @param orderBy Ordering expression using OData notation. One or more comma-separated column names with an
* optional "desc" (the default) or "asc", e.g. "$orderby=PolicyAssignmentId, ResourceId asc".
* @param select Select expression using OData notation. Limits the columns on each record to just those requested,
* e.g. "$select=PolicyAssignmentId, ResourceId".
* @param from ISO 8601 formatted timestamp specifying the start time of the interval to query. When not specified,
* the service uses ($to - 1-day).
* @param to ISO 8601 formatted timestamp specifying the end time of the interval to query. When not specified, the
* service uses request time.
* @param filter OData filter expression.
* @param apply OData apply expression for aggregations.
* @param skipToken Skiptoken is only provided if a previous response returned a partial result as a part of
* nextLink element.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return query results as paginated response with {@link PagedIterable}.
*/
PagedIterable listQueryResultsForManagementGroup(PolicyStatesResource policyStatesResource,
String managementGroupName, Integer top, String orderBy, String select, OffsetDateTime from, OffsetDateTime to,
String filter, String apply, String skipToken, Context context);
/**
* Summarizes policy states for the resources under the management group.
*
* @param policyStatesSummaryResource The virtual resource under PolicyStates resource type for summarize action. In
* a given time range, 'latest' represents the latest policy state(s) and is the only allowed value.
* @param managementGroupName Management group name.
* @param top Maximum number of records to return.
* @param from ISO 8601 formatted timestamp specifying the start time of the interval to query. When not specified,
* the service uses ($to - 1-day).
* @param to ISO 8601 formatted timestamp specifying the end time of the interval to query. When not specified, the
* service uses request time.
* @param filter OData filter expression.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return summarize action results along with {@link Response}.
*/
Response summarizeForManagementGroupWithResponse(
PolicyStatesSummaryResourceType policyStatesSummaryResource, String managementGroupName, Integer top,
OffsetDateTime from, OffsetDateTime to, String filter, Context context);
/**
* Summarizes policy states for the resources under the management group.
*
* @param policyStatesSummaryResource The virtual resource under PolicyStates resource type for summarize action. In
* a given time range, 'latest' represents the latest policy state(s) and is the only allowed value.
* @param managementGroupName Management group name.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return summarize action results.
*/
SummarizeResults summarizeForManagementGroup(PolicyStatesSummaryResourceType policyStatesSummaryResource,
String managementGroupName);
/**
* Queries policy states for the resources under the subscription.
*
* @param 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).
* @param subscriptionId Microsoft Azure subscription ID.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return query results as paginated response with {@link PagedIterable}.
*/
PagedIterable listQueryResultsForSubscription(PolicyStatesResource policyStatesResource,
String subscriptionId);
/**
* Queries policy states for the resources under the subscription.
*
* @param 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).
* @param subscriptionId Microsoft Azure subscription ID.
* @param top Maximum number of records to return.
* @param orderBy Ordering expression using OData notation. One or more comma-separated column names with an
* optional "desc" (the default) or "asc", e.g. "$orderby=PolicyAssignmentId, ResourceId asc".
* @param select Select expression using OData notation. Limits the columns on each record to just those requested,
* e.g. "$select=PolicyAssignmentId, ResourceId".
* @param from ISO 8601 formatted timestamp specifying the start time of the interval to query. When not specified,
* the service uses ($to - 1-day).
* @param to ISO 8601 formatted timestamp specifying the end time of the interval to query. When not specified, the
* service uses request time.
* @param filter OData filter expression.
* @param apply OData apply expression for aggregations.
* @param skipToken Skiptoken is only provided if a previous response returned a partial result as a part of
* nextLink element.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return query results as paginated response with {@link PagedIterable}.
*/
PagedIterable listQueryResultsForSubscription(PolicyStatesResource policyStatesResource,
String subscriptionId, Integer top, String orderBy, String select, OffsetDateTime from, OffsetDateTime to,
String filter, String apply, String skipToken, Context context);
/**
* Summarizes policy states for the resources under the subscription.
*
* @param policyStatesSummaryResource The virtual resource under PolicyStates resource type for summarize action. In
* a given time range, 'latest' represents the latest policy state(s) and is the only allowed value.
* @param subscriptionId Microsoft Azure subscription ID.
* @param top Maximum number of records to return.
* @param from ISO 8601 formatted timestamp specifying the start time of the interval to query. When not specified,
* the service uses ($to - 1-day).
* @param to ISO 8601 formatted timestamp specifying the end time of the interval to query. When not specified, the
* service uses request time.
* @param filter OData filter expression.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return summarize action results along with {@link Response}.
*/
Response summarizeForSubscriptionWithResponse(
PolicyStatesSummaryResourceType policyStatesSummaryResource, String subscriptionId, Integer top,
OffsetDateTime from, OffsetDateTime to, String filter, Context context);
/**
* Summarizes policy states for the resources under the subscription.
*
* @param policyStatesSummaryResource The virtual resource under PolicyStates resource type for summarize action. In
* a given time range, 'latest' represents the latest policy state(s) and is the only allowed value.
* @param subscriptionId Microsoft Azure subscription ID.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return summarize action results.
*/
SummarizeResults summarizeForSubscription(PolicyStatesSummaryResourceType policyStatesSummaryResource,
String subscriptionId);
/**
* Queries policy states for the resources under the resource group.
*
* @param 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).
* @param subscriptionId Microsoft Azure subscription ID.
* @param resourceGroupName Resource group name.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return query results as paginated response with {@link PagedIterable}.
*/
PagedIterable listQueryResultsForResourceGroup(PolicyStatesResource policyStatesResource,
String subscriptionId, String resourceGroupName);
/**
* Queries policy states for the resources under the resource group.
*
* @param 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).
* @param subscriptionId Microsoft Azure subscription ID.
* @param resourceGroupName Resource group name.
* @param top Maximum number of records to return.
* @param orderBy Ordering expression using OData notation. One or more comma-separated column names with an
* optional "desc" (the default) or "asc", e.g. "$orderby=PolicyAssignmentId, ResourceId asc".
* @param select Select expression using OData notation. Limits the columns on each record to just those requested,
* e.g. "$select=PolicyAssignmentId, ResourceId".
* @param from ISO 8601 formatted timestamp specifying the start time of the interval to query. When not specified,
* the service uses ($to - 1-day).
* @param to ISO 8601 formatted timestamp specifying the end time of the interval to query. When not specified, the
* service uses request time.
* @param filter OData filter expression.
* @param apply OData apply expression for aggregations.
* @param skipToken Skiptoken is only provided if a previous response returned a partial result as a part of
* nextLink element.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return query results as paginated response with {@link PagedIterable}.
*/
PagedIterable listQueryResultsForResourceGroup(PolicyStatesResource policyStatesResource,
String subscriptionId, String resourceGroupName, Integer top, String orderBy, String select,
OffsetDateTime from, OffsetDateTime to, String filter, String apply, String skipToken, Context context);
/**
* Summarizes policy states for the resources under the resource group.
*
* @param policyStatesSummaryResource The virtual resource under PolicyStates resource type for summarize action. In
* a given time range, 'latest' represents the latest policy state(s) and is the only allowed value.
* @param subscriptionId Microsoft Azure subscription ID.
* @param resourceGroupName Resource group name.
* @param top Maximum number of records to return.
* @param from ISO 8601 formatted timestamp specifying the start time of the interval to query. When not specified,
* the service uses ($to - 1-day).
* @param to ISO 8601 formatted timestamp specifying the end time of the interval to query. When not specified, the
* service uses request time.
* @param filter OData filter expression.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return summarize action results along with {@link Response}.
*/
Response summarizeForResourceGroupWithResponse(
PolicyStatesSummaryResourceType policyStatesSummaryResource, String subscriptionId, String resourceGroupName,
Integer top, OffsetDateTime from, OffsetDateTime to, String filter, Context context);
/**
* Summarizes policy states for the resources under the resource group.
*
* @param policyStatesSummaryResource The virtual resource under PolicyStates resource type for summarize action. In
* a given time range, 'latest' represents the latest policy state(s) and is the only allowed value.
* @param subscriptionId Microsoft Azure subscription ID.
* @param resourceGroupName Resource group name.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return summarize action results.
*/
SummarizeResults summarizeForResourceGroup(PolicyStatesSummaryResourceType policyStatesSummaryResource,
String subscriptionId, String resourceGroupName);
/**
* Queries policy states for the resource.
*
* @param 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).
* @param resourceId Resource ID.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return query results as paginated response with {@link PagedIterable}.
*/
PagedIterable listQueryResultsForResource(PolicyStatesResource policyStatesResource,
String resourceId);
/**
* Queries policy states for the resource.
*
* @param 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).
* @param resourceId Resource ID.
* @param top Maximum number of records to return.
* @param orderBy Ordering expression using OData notation. One or more comma-separated column names with an
* optional "desc" (the default) or "asc", e.g. "$orderby=PolicyAssignmentId, ResourceId asc".
* @param select Select expression using OData notation. Limits the columns on each record to just those requested,
* e.g. "$select=PolicyAssignmentId, ResourceId".
* @param from ISO 8601 formatted timestamp specifying the start time of the interval to query. When not specified,
* the service uses ($to - 1-day).
* @param to ISO 8601 formatted timestamp specifying the end time of the interval to query. When not specified, the
* service uses request time.
* @param filter OData filter expression.
* @param apply OData apply expression for aggregations.
* @param expand The $expand query parameter. For example, to expand components use $expand=components.
* @param skipToken Skiptoken is only provided if a previous response returned a partial result as a part of
* nextLink element.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return query results as paginated response with {@link PagedIterable}.
*/
PagedIterable listQueryResultsForResource(PolicyStatesResource policyStatesResource, String resourceId,
Integer top, String orderBy, String select, OffsetDateTime from, OffsetDateTime to, String filter, String apply,
String expand, String skipToken, Context context);
/**
* Summarizes policy states for the resource.
*
* @param policyStatesSummaryResource The virtual resource under PolicyStates resource type for summarize action. In
* a given time range, 'latest' represents the latest policy state(s) and is the only allowed value.
* @param resourceId Resource ID.
* @param top Maximum number of records to return.
* @param from ISO 8601 formatted timestamp specifying the start time of the interval to query. When not specified,
* the service uses ($to - 1-day).
* @param to ISO 8601 formatted timestamp specifying the end time of the interval to query. When not specified, the
* service uses request time.
* @param filter OData filter expression.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return summarize action results along with {@link Response}.
*/
Response summarizeForResourceWithResponse(
PolicyStatesSummaryResourceType policyStatesSummaryResource, String resourceId, Integer top,
OffsetDateTime from, OffsetDateTime to, String filter, Context context);
/**
* Summarizes policy states for the resource.
*
* @param policyStatesSummaryResource The virtual resource under PolicyStates resource type for summarize action. In
* a given time range, 'latest' represents the latest policy state(s) and is the only allowed value.
* @param resourceId Resource ID.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return summarize action results.
*/
SummarizeResults summarizeForResource(PolicyStatesSummaryResourceType policyStatesSummaryResource,
String resourceId);
/**
* Triggers a policy evaluation scan for all the resources under the subscription.
*
* @param subscriptionId Microsoft Azure subscription ID.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
*/
void triggerSubscriptionEvaluation(String subscriptionId);
/**
* Triggers a policy evaluation scan for all the resources under the subscription.
*
* @param subscriptionId Microsoft Azure subscription ID.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
*/
void triggerSubscriptionEvaluation(String subscriptionId, Context context);
/**
* Triggers a policy evaluation scan for all the resources under the resource group.
*
* @param subscriptionId Microsoft Azure subscription ID.
* @param resourceGroupName Resource group name.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
*/
void triggerResourceGroupEvaluation(String subscriptionId, String resourceGroupName);
/**
* Triggers a policy evaluation scan for all the resources under the resource group.
*
* @param subscriptionId Microsoft Azure subscription ID.
* @param resourceGroupName Resource group name.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
*/
void triggerResourceGroupEvaluation(String subscriptionId, String resourceGroupName, Context context);
/**
* Queries policy states for the subscription level policy set definition.
*
* @param 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).
* @param subscriptionId Microsoft Azure subscription ID.
* @param policySetDefinitionName Policy set definition name.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return query results as paginated response with {@link PagedIterable}.
*/
PagedIterable listQueryResultsForPolicySetDefinition(PolicyStatesResource policyStatesResource,
String subscriptionId, String policySetDefinitionName);
/**
* Queries policy states for the subscription level policy set definition.
*
* @param 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).
* @param subscriptionId Microsoft Azure subscription ID.
* @param policySetDefinitionName Policy set definition name.
* @param top Maximum number of records to return.
* @param orderBy Ordering expression using OData notation. One or more comma-separated column names with an
* optional "desc" (the default) or "asc", e.g. "$orderby=PolicyAssignmentId, ResourceId asc".
* @param select Select expression using OData notation. Limits the columns on each record to just those requested,
* e.g. "$select=PolicyAssignmentId, ResourceId".
* @param from ISO 8601 formatted timestamp specifying the start time of the interval to query. When not specified,
* the service uses ($to - 1-day).
* @param to ISO 8601 formatted timestamp specifying the end time of the interval to query. When not specified, the
* service uses request time.
* @param filter OData filter expression.
* @param apply OData apply expression for aggregations.
* @param skipToken Skiptoken is only provided if a previous response returned a partial result as a part of
* nextLink element.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return query results as paginated response with {@link PagedIterable}.
*/
PagedIterable listQueryResultsForPolicySetDefinition(PolicyStatesResource policyStatesResource,
String subscriptionId, String policySetDefinitionName, Integer top, String orderBy, String select,
OffsetDateTime from, OffsetDateTime to, String filter, String apply, String skipToken, Context context);
/**
* Summarizes policy states for the subscription level policy set definition.
*
* @param policyStatesSummaryResource The virtual resource under PolicyStates resource type for summarize action. In
* a given time range, 'latest' represents the latest policy state(s) and is the only allowed value.
* @param subscriptionId Microsoft Azure subscription ID.
* @param policySetDefinitionName Policy set definition name.
* @param top Maximum number of records to return.
* @param from ISO 8601 formatted timestamp specifying the start time of the interval to query. When not specified,
* the service uses ($to - 1-day).
* @param to ISO 8601 formatted timestamp specifying the end time of the interval to query. When not specified, the
* service uses request time.
* @param filter OData filter expression.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return summarize action results along with {@link Response}.
*/
Response summarizeForPolicySetDefinitionWithResponse(
PolicyStatesSummaryResourceType policyStatesSummaryResource, String subscriptionId,
String policySetDefinitionName, Integer top, OffsetDateTime from, OffsetDateTime to, String filter,
Context context);
/**
* Summarizes policy states for the subscription level policy set definition.
*
* @param policyStatesSummaryResource The virtual resource under PolicyStates resource type for summarize action. In
* a given time range, 'latest' represents the latest policy state(s) and is the only allowed value.
* @param subscriptionId Microsoft Azure subscription ID.
* @param policySetDefinitionName Policy set definition name.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return summarize action results.
*/
SummarizeResults summarizeForPolicySetDefinition(PolicyStatesSummaryResourceType policyStatesSummaryResource,
String subscriptionId, String policySetDefinitionName);
/**
* Queries policy states for the subscription level policy definition.
*
* @param 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).
* @param subscriptionId Microsoft Azure subscription ID.
* @param policyDefinitionName Policy definition name.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return query results as paginated response with {@link PagedIterable}.
*/
PagedIterable listQueryResultsForPolicyDefinition(PolicyStatesResource policyStatesResource,
String subscriptionId, String policyDefinitionName);
/**
* Queries policy states for the subscription level policy definition.
*
* @param 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).
* @param subscriptionId Microsoft Azure subscription ID.
* @param policyDefinitionName Policy definition name.
* @param top Maximum number of records to return.
* @param orderBy Ordering expression using OData notation. One or more comma-separated column names with an
* optional "desc" (the default) or "asc", e.g. "$orderby=PolicyAssignmentId, ResourceId asc".
* @param select Select expression using OData notation. Limits the columns on each record to just those requested,
* e.g. "$select=PolicyAssignmentId, ResourceId".
* @param from ISO 8601 formatted timestamp specifying the start time of the interval to query. When not specified,
* the service uses ($to - 1-day).
* @param to ISO 8601 formatted timestamp specifying the end time of the interval to query. When not specified, the
* service uses request time.
* @param filter OData filter expression.
* @param apply OData apply expression for aggregations.
* @param skipToken Skiptoken is only provided if a previous response returned a partial result as a part of
* nextLink element.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return query results as paginated response with {@link PagedIterable}.
*/
PagedIterable listQueryResultsForPolicyDefinition(PolicyStatesResource policyStatesResource,
String subscriptionId, String policyDefinitionName, Integer top, String orderBy, String select,
OffsetDateTime from, OffsetDateTime to, String filter, String apply, String skipToken, Context context);
/**
* Summarizes policy states for the subscription level policy definition.
*
* @param policyStatesSummaryResource The virtual resource under PolicyStates resource type for summarize action. In
* a given time range, 'latest' represents the latest policy state(s) and is the only allowed value.
* @param subscriptionId Microsoft Azure subscription ID.
* @param policyDefinitionName Policy definition name.
* @param top Maximum number of records to return.
* @param from ISO 8601 formatted timestamp specifying the start time of the interval to query. When not specified,
* the service uses ($to - 1-day).
* @param to ISO 8601 formatted timestamp specifying the end time of the interval to query. When not specified, the
* service uses request time.
* @param filter OData filter expression.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return summarize action results along with {@link Response}.
*/
Response summarizeForPolicyDefinitionWithResponse(
PolicyStatesSummaryResourceType policyStatesSummaryResource, String subscriptionId, String policyDefinitionName,
Integer top, OffsetDateTime from, OffsetDateTime to, String filter, Context context);
/**
* Summarizes policy states for the subscription level policy definition.
*
* @param policyStatesSummaryResource The virtual resource under PolicyStates resource type for summarize action. In
* a given time range, 'latest' represents the latest policy state(s) and is the only allowed value.
* @param subscriptionId Microsoft Azure subscription ID.
* @param policyDefinitionName Policy definition name.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return summarize action results.
*/
SummarizeResults summarizeForPolicyDefinition(PolicyStatesSummaryResourceType policyStatesSummaryResource,
String subscriptionId, String policyDefinitionName);
/**
* Queries policy states for the subscription level policy assignment.
*
* @param 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).
* @param subscriptionId Microsoft Azure subscription ID.
* @param policyAssignmentName Policy assignment name.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return query results as paginated response with {@link PagedIterable}.
*/
PagedIterable listQueryResultsForSubscriptionLevelPolicyAssignment(
PolicyStatesResource policyStatesResource, String subscriptionId, String policyAssignmentName);
/**
* Queries policy states for the subscription level policy assignment.
*
* @param 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).
* @param subscriptionId Microsoft Azure subscription ID.
* @param policyAssignmentName Policy assignment name.
* @param top Maximum number of records to return.
* @param orderBy Ordering expression using OData notation. One or more comma-separated column names with an
* optional "desc" (the default) or "asc", e.g. "$orderby=PolicyAssignmentId, ResourceId asc".
* @param select Select expression using OData notation. Limits the columns on each record to just those requested,
* e.g. "$select=PolicyAssignmentId, ResourceId".
* @param from ISO 8601 formatted timestamp specifying the start time of the interval to query. When not specified,
* the service uses ($to - 1-day).
* @param to ISO 8601 formatted timestamp specifying the end time of the interval to query. When not specified, the
* service uses request time.
* @param filter OData filter expression.
* @param apply OData apply expression for aggregations.
* @param skipToken Skiptoken is only provided if a previous response returned a partial result as a part of
* nextLink element.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return query results as paginated response with {@link PagedIterable}.
*/
PagedIterable listQueryResultsForSubscriptionLevelPolicyAssignment(
PolicyStatesResource policyStatesResource, String subscriptionId, String policyAssignmentName, Integer top,
String orderBy, String select, OffsetDateTime from, OffsetDateTime to, String filter, String apply,
String skipToken, Context context);
/**
* Summarizes policy states for the subscription level policy assignment.
*
* @param policyStatesSummaryResource The virtual resource under PolicyStates resource type for summarize action. In
* a given time range, 'latest' represents the latest policy state(s) and is the only allowed value.
* @param subscriptionId Microsoft Azure subscription ID.
* @param policyAssignmentName Policy assignment name.
* @param top Maximum number of records to return.
* @param from ISO 8601 formatted timestamp specifying the start time of the interval to query. When not specified,
* the service uses ($to - 1-day).
* @param to ISO 8601 formatted timestamp specifying the end time of the interval to query. When not specified, the
* service uses request time.
* @param filter OData filter expression.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return summarize action results along with {@link Response}.
*/
Response summarizeForSubscriptionLevelPolicyAssignmentWithResponse(
PolicyStatesSummaryResourceType policyStatesSummaryResource, String subscriptionId, String policyAssignmentName,
Integer top, OffsetDateTime from, OffsetDateTime to, String filter, Context context);
/**
* Summarizes policy states for the subscription level policy assignment.
*
* @param policyStatesSummaryResource The virtual resource under PolicyStates resource type for summarize action. In
* a given time range, 'latest' represents the latest policy state(s) and is the only allowed value.
* @param subscriptionId Microsoft Azure subscription ID.
* @param policyAssignmentName Policy assignment name.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return summarize action results.
*/
SummarizeResults summarizeForSubscriptionLevelPolicyAssignment(
PolicyStatesSummaryResourceType policyStatesSummaryResource, String subscriptionId,
String policyAssignmentName);
/**
* Queries policy states for the resource group level policy assignment.
*
* @param 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).
* @param subscriptionId Microsoft Azure subscription ID.
* @param resourceGroupName Resource group name.
* @param policyAssignmentName Policy assignment name.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return query results as paginated response with {@link PagedIterable}.
*/
PagedIterable listQueryResultsForResourceGroupLevelPolicyAssignment(
PolicyStatesResource policyStatesResource, String subscriptionId, String resourceGroupName,
String policyAssignmentName);
/**
* Queries policy states for the resource group level policy assignment.
*
* @param 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).
* @param subscriptionId Microsoft Azure subscription ID.
* @param resourceGroupName Resource group name.
* @param policyAssignmentName Policy assignment name.
* @param top Maximum number of records to return.
* @param orderBy Ordering expression using OData notation. One or more comma-separated column names with an
* optional "desc" (the default) or "asc", e.g. "$orderby=PolicyAssignmentId, ResourceId asc".
* @param select Select expression using OData notation. Limits the columns on each record to just those requested,
* e.g. "$select=PolicyAssignmentId, ResourceId".
* @param from ISO 8601 formatted timestamp specifying the start time of the interval to query. When not specified,
* the service uses ($to - 1-day).
* @param to ISO 8601 formatted timestamp specifying the end time of the interval to query. When not specified, the
* service uses request time.
* @param filter OData filter expression.
* @param apply OData apply expression for aggregations.
* @param skipToken Skiptoken is only provided if a previous response returned a partial result as a part of
* nextLink element.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return query results as paginated response with {@link PagedIterable}.
*/
PagedIterable listQueryResultsForResourceGroupLevelPolicyAssignment(
PolicyStatesResource policyStatesResource, String subscriptionId, String resourceGroupName,
String policyAssignmentName, Integer top, String orderBy, String select, OffsetDateTime from, OffsetDateTime to,
String filter, String apply, String skipToken, Context context);
/**
* Summarizes policy states for the resource group level policy assignment.
*
* @param policyStatesSummaryResource The virtual resource under PolicyStates resource type for summarize action. In
* a given time range, 'latest' represents the latest policy state(s) and is the only allowed value.
* @param subscriptionId Microsoft Azure subscription ID.
* @param resourceGroupName Resource group name.
* @param policyAssignmentName Policy assignment name.
* @param top Maximum number of records to return.
* @param from ISO 8601 formatted timestamp specifying the start time of the interval to query. When not specified,
* the service uses ($to - 1-day).
* @param to ISO 8601 formatted timestamp specifying the end time of the interval to query. When not specified, the
* service uses request time.
* @param filter OData filter expression.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return summarize action results along with {@link Response}.
*/
Response summarizeForResourceGroupLevelPolicyAssignmentWithResponse(
PolicyStatesSummaryResourceType policyStatesSummaryResource, String subscriptionId, String resourceGroupName,
String policyAssignmentName, Integer top, OffsetDateTime from, OffsetDateTime to, String filter,
Context context);
/**
* Summarizes policy states for the resource group level policy assignment.
*
* @param policyStatesSummaryResource The virtual resource under PolicyStates resource type for summarize action. In
* a given time range, 'latest' represents the latest policy state(s) and is the only allowed value.
* @param subscriptionId Microsoft Azure subscription ID.
* @param resourceGroupName Resource group name.
* @param policyAssignmentName Policy assignment name.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return summarize action results.
*/
SummarizeResults summarizeForResourceGroupLevelPolicyAssignment(
PolicyStatesSummaryResourceType policyStatesSummaryResource, String subscriptionId, String resourceGroupName,
String policyAssignmentName);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy