azure-sdk-for-go: github.com/Azure/azure-sdk-for-go/services/preview/policyinsights/mgmt/2017-12-12-preview/policyinsights Index | Files | Directories

package policyinsights

import "github.com/Azure/azure-sdk-for-go/services/preview/policyinsights/mgmt/2017-12-12-preview/policyinsights"

Package policyinsights implements the Azure ARM Policyinsights service API version 2017-12-12-preview.

Index

Package Files

client.go models.go operations.go policyevents.go policystates.go version.go

Constants

const (
    // DefaultBaseURI is the default URI used for the service Policyinsights
    DefaultBaseURI = "https://management.azure.com"
)

func UserAgent Uses

func UserAgent() string

UserAgent returns the UserAgent string to use when sending http.Requests.

func Version Uses

func Version() string

Version returns the semantic version (see http://semver.org) of the client.

type BaseClient Uses

type BaseClient struct {
    autorest.Client
    BaseURI string
}

BaseClient is the base client for Policyinsights.

func New Uses

func New() BaseClient

New creates an instance of the BaseClient client.

func NewWithBaseURI Uses

func NewWithBaseURI(baseURI string) BaseClient

NewWithBaseURI creates an instance of the BaseClient client.

type Operation Uses

type Operation struct {
    // Name - Operation name.
    Name *string `json:"name,omitempty"`
    // Display - Display metadata associated with the operation.
    Display *OperationDisplay `json:"display,omitempty"`
}

Operation operation definition.

type OperationDisplay Uses

type OperationDisplay struct {
    // Provider - Resource provider name.
    Provider *string `json:"provider,omitempty"`
    // Resource - Resource name on which the operation is performed.
    Resource *string `json:"resource,omitempty"`
    // Operation - Operation name.
    Operation *string `json:"operation,omitempty"`
    // Description - Operation description.
    Description *string `json:"description,omitempty"`
}

OperationDisplay display metadata associated with the operation.

type OperationsClient Uses

type OperationsClient struct {
    BaseClient
}

OperationsClient is the client for the Operations methods of the Policyinsights service.

func NewOperationsClient Uses

func NewOperationsClient() OperationsClient

NewOperationsClient creates an instance of the OperationsClient client.

func NewOperationsClientWithBaseURI Uses

func NewOperationsClientWithBaseURI(baseURI string) OperationsClient

NewOperationsClientWithBaseURI creates an instance of the OperationsClient client.

func (OperationsClient) List Uses

func (client OperationsClient) List(ctx context.Context) (result OperationsListResults, err error)

List lists available operations.

func (OperationsClient) ListPreparer Uses

func (client OperationsClient) ListPreparer(ctx context.Context) (*http.Request, error)

ListPreparer prepares the List request.

func (OperationsClient) ListResponder Uses

func (client OperationsClient) ListResponder(resp *http.Response) (result OperationsListResults, err error)

ListResponder handles the response to the List request. The method always closes the http.Response Body.

func (OperationsClient) ListSender Uses

func (client OperationsClient) ListSender(req *http.Request) (*http.Response, error)

ListSender sends the List request. The method will close the http.Response Body if it receives an error.

type OperationsListResults Uses

type OperationsListResults struct {
    autorest.Response `json:"-"`
    // OdataCount - OData entity count; represents the number of operations returned.
    OdataCount *int32 `json:"@odata.count,omitempty"`
    // Value - List of available operations.
    Value *[]Operation `json:"value,omitempty"`
}

OperationsListResults list of available operations.

type PolicyAssignmentSummary Uses

type PolicyAssignmentSummary struct {
    // PolicyAssignmentID - Policy assignment ID.
    PolicyAssignmentID *string `json:"policyAssignmentId,omitempty"`
    // PolicySetDefinitionID - Policy set definition ID, if the policy assignment is for a policy set.
    PolicySetDefinitionID *string `json:"policySetDefinitionId,omitempty"`
    // Results - Non-compliance summary for the policy assignment.
    Results *SummaryResults `json:"results,omitempty"`
    // PolicyDefinitions - Policy definitions summary.
    PolicyDefinitions *[]PolicyDefinitionSummary `json:"policyDefinitions,omitempty"`
}

PolicyAssignmentSummary policy assignment summary.

type PolicyDefinitionSummary Uses

type PolicyDefinitionSummary struct {
    // PolicyDefinitionID - Policy definition ID.
    PolicyDefinitionID *string `json:"policyDefinitionId,omitempty"`
    // Effect - Policy effect, i.e. policy definition action.
    Effect *string `json:"effect,omitempty"`
    // Results - Non-compliance summary for the policy definition.
    Results *SummaryResults `json:"results,omitempty"`
}

PolicyDefinitionSummary policy definition summary.

type PolicyEvent Uses

type PolicyEvent struct {
    // AdditionalProperties - Unmatched properties from the message are deserialized this collection
    AdditionalProperties map[string]interface{} `json:""`
    // OdataID - OData entity ID; always set to null since policy event records do not have an entity ID.
    OdataID *string `json:"@odata.id,omitempty"`
    // OdataContext - OData context string; used by OData clients to resolve type information based on metadata.
    OdataContext *string `json:"@odata.context,omitempty"`
    // Timestamp - Timestamp for the policy event record.
    Timestamp *date.Time `json:"timestamp,omitempty"`
    // ResourceID - Resource ID.
    ResourceID *string `json:"resourceId,omitempty"`
    // PolicyAssignmentID - Policy assignment ID.
    PolicyAssignmentID *string `json:"policyAssignmentId,omitempty"`
    // PolicyDefinitionID - Policy definition ID.
    PolicyDefinitionID *string `json:"policyDefinitionId,omitempty"`
    // EffectiveParameters - Effective parameters for the policy assignment.
    EffectiveParameters *string `json:"effectiveParameters,omitempty"`
    // IsCompliant - Flag which states whether the resource is compliant against the policy assignment it was evaluated against.
    IsCompliant *bool `json:"isCompliant,omitempty"`
    // SubscriptionID - Subscription ID.
    SubscriptionID *string `json:"subscriptionId,omitempty"`
    // ResourceType - Resource type.
    ResourceType *string `json:"resourceType,omitempty"`
    // ResourceLocation - Resource location.
    ResourceLocation *string `json:"resourceLocation,omitempty"`
    // ResourceGroup - Resource group name.
    ResourceGroup *string `json:"resourceGroup,omitempty"`
    // ResourceTags - List of resource tags.
    ResourceTags *string `json:"resourceTags,omitempty"`
    // PolicyAssignmentName - Policy assignment name.
    PolicyAssignmentName *string `json:"policyAssignmentName,omitempty"`
    // PolicyAssignmentOwner - Policy assignment owner.
    PolicyAssignmentOwner *string `json:"policyAssignmentOwner,omitempty"`
    // PolicyAssignmentParameters - Policy assignment parameters.
    PolicyAssignmentParameters *string `json:"policyAssignmentParameters,omitempty"`
    // PolicyAssignmentScope - Policy assignment scope.
    PolicyAssignmentScope *string `json:"policyAssignmentScope,omitempty"`
    // PolicyDefinitionName - Policy definition name.
    PolicyDefinitionName *string `json:"policyDefinitionName,omitempty"`
    // PolicyDefinitionAction - Policy definition action, i.e. effect.
    PolicyDefinitionAction *string `json:"policyDefinitionAction,omitempty"`
    // PolicyDefinitionCategory - Policy definition category.
    PolicyDefinitionCategory *string `json:"policyDefinitionCategory,omitempty"`
    // PolicySetDefinitionID - Policy set definition ID, if the policy assignment is for a policy set.
    PolicySetDefinitionID *string `json:"policySetDefinitionId,omitempty"`
    // PolicySetDefinitionName - Policy set definition name, if the policy assignment is for a policy set.
    PolicySetDefinitionName *string `json:"policySetDefinitionName,omitempty"`
    // PolicySetDefinitionOwner - Policy set definition owner, if the policy assignment is for a policy set.
    PolicySetDefinitionOwner *string `json:"policySetDefinitionOwner,omitempty"`
    // PolicySetDefinitionCategory - Policy set definition category, if the policy assignment is for a policy set.
    PolicySetDefinitionCategory *string `json:"policySetDefinitionCategory,omitempty"`
    // PolicySetDefinitionParameters - Policy set definition parameters, if the policy assignment is for a policy set.
    PolicySetDefinitionParameters *string `json:"policySetDefinitionParameters,omitempty"`
    // ManagementGroupIds - Comma separated list of management group IDs, which represent the hierarchy of the management groups the resource is under.
    ManagementGroupIds *string `json:"managementGroupIds,omitempty"`
    // PolicyDefinitionReferenceID - Reference ID for the policy definition inside the policy set, if the policy assignment is for a policy set.
    PolicyDefinitionReferenceID *string `json:"policyDefinitionReferenceId,omitempty"`
    // TenantID - Tenant ID for the policy event record.
    TenantID *string `json:"tenantId,omitempty"`
    // PrincipalOid - Principal object ID for the user who initiated the resource operation that triggered the policy event.
    PrincipalOid *string `json:"principalOid,omitempty"`
}

PolicyEvent policy event record.

func (PolicyEvent) MarshalJSON Uses

func (peVar PolicyEvent) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for PolicyEvent.

func (*PolicyEvent) UnmarshalJSON Uses

func (peVar *PolicyEvent) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for PolicyEvent struct.

type PolicyEventsClient Uses

type PolicyEventsClient struct {
    BaseClient
}

PolicyEventsClient is the client for the PolicyEvents methods of the Policyinsights service.

func NewPolicyEventsClient Uses

func NewPolicyEventsClient() PolicyEventsClient

NewPolicyEventsClient creates an instance of the PolicyEventsClient client.

func NewPolicyEventsClientWithBaseURI Uses

func NewPolicyEventsClientWithBaseURI(baseURI string) PolicyEventsClient

NewPolicyEventsClientWithBaseURI creates an instance of the PolicyEventsClient client.

func (PolicyEventsClient) GetMetadata Uses

func (client PolicyEventsClient) GetMetadata(ctx context.Context, scope string) (result String, err error)

GetMetadata gets OData metadata XML document. Parameters: scope - a valid scope, i.e. management group, subscription, resource group, or resource ID. Scope used has no effect on metadata returned.

func (PolicyEventsClient) GetMetadataPreparer Uses

func (client PolicyEventsClient) GetMetadataPreparer(ctx context.Context, scope string) (*http.Request, error)

GetMetadataPreparer prepares the GetMetadata request.

func (PolicyEventsClient) GetMetadataResponder Uses

func (client PolicyEventsClient) GetMetadataResponder(resp *http.Response) (result String, err error)

GetMetadataResponder handles the response to the GetMetadata request. The method always closes the http.Response Body.

func (PolicyEventsClient) GetMetadataSender Uses

func (client PolicyEventsClient) GetMetadataSender(req *http.Request) (*http.Response, error)

GetMetadataSender sends the GetMetadata request. The method will close the http.Response Body if it receives an error.

func (PolicyEventsClient) ListQueryResultsForManagementGroup Uses

func (client PolicyEventsClient) ListQueryResultsForManagementGroup(ctx context.Context, managementGroupName string, top *int32, orderBy string, selectParameter string, from *date.Time, toParameter *date.Time, filter string, apply string) (result PolicyEventsQueryResults, err error)

ListQueryResultsForManagementGroup queries policy events for the resources under the management group. Parameters: managementGroupName - management group name. top - maximum number of records to return. 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". selectParameter - select expression using OData notation. Limits the columns on each record to just those requested, e.g. "$select=PolicyAssignmentId, ResourceId". from - ISO 8601 formatted timestamp specifying the start time of the interval to query. When not specified, the service uses ($to - 1-day). toParameter - ISO 8601 formatted timestamp specifying the end time of the interval to query. When not specified, the service uses request time. filter - oData filter expression. apply - oData apply expression for aggregations.

func (PolicyEventsClient) ListQueryResultsForManagementGroupPreparer Uses

func (client PolicyEventsClient) ListQueryResultsForManagementGroupPreparer(ctx context.Context, managementGroupName string, top *int32, orderBy string, selectParameter string, from *date.Time, toParameter *date.Time, filter string, apply string) (*http.Request, error)

ListQueryResultsForManagementGroupPreparer prepares the ListQueryResultsForManagementGroup request.

func (PolicyEventsClient) ListQueryResultsForManagementGroupResponder Uses

func (client PolicyEventsClient) ListQueryResultsForManagementGroupResponder(resp *http.Response) (result PolicyEventsQueryResults, err error)

ListQueryResultsForManagementGroupResponder handles the response to the ListQueryResultsForManagementGroup request. The method always closes the http.Response Body.

func (PolicyEventsClient) ListQueryResultsForManagementGroupSender Uses

func (client PolicyEventsClient) ListQueryResultsForManagementGroupSender(req *http.Request) (*http.Response, error)

ListQueryResultsForManagementGroupSender sends the ListQueryResultsForManagementGroup request. The method will close the http.Response Body if it receives an error.

func (PolicyEventsClient) ListQueryResultsForPolicyDefinition Uses

func (client PolicyEventsClient) ListQueryResultsForPolicyDefinition(ctx context.Context, subscriptionID string, policyDefinitionName string, top *int32, orderBy string, selectParameter string, from *date.Time, toParameter *date.Time, filter string, apply string) (result PolicyEventsQueryResults, err error)

ListQueryResultsForPolicyDefinition queries policy events for the subscription level policy definition. Parameters: subscriptionID - microsoft Azure subscription ID. policyDefinitionName - policy definition name. top - maximum number of records to return. 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". selectParameter - select expression using OData notation. Limits the columns on each record to just those requested, e.g. "$select=PolicyAssignmentId, ResourceId". from - ISO 8601 formatted timestamp specifying the start time of the interval to query. When not specified, the service uses ($to - 1-day). toParameter - ISO 8601 formatted timestamp specifying the end time of the interval to query. When not specified, the service uses request time. filter - oData filter expression. apply - oData apply expression for aggregations.

func (PolicyEventsClient) ListQueryResultsForPolicyDefinitionPreparer Uses

func (client PolicyEventsClient) ListQueryResultsForPolicyDefinitionPreparer(ctx context.Context, subscriptionID string, policyDefinitionName string, top *int32, orderBy string, selectParameter string, from *date.Time, toParameter *date.Time, filter string, apply string) (*http.Request, error)

ListQueryResultsForPolicyDefinitionPreparer prepares the ListQueryResultsForPolicyDefinition request.

func (PolicyEventsClient) ListQueryResultsForPolicyDefinitionResponder Uses

func (client PolicyEventsClient) ListQueryResultsForPolicyDefinitionResponder(resp *http.Response) (result PolicyEventsQueryResults, err error)

ListQueryResultsForPolicyDefinitionResponder handles the response to the ListQueryResultsForPolicyDefinition request. The method always closes the http.Response Body.

func (PolicyEventsClient) ListQueryResultsForPolicyDefinitionSender Uses

func (client PolicyEventsClient) ListQueryResultsForPolicyDefinitionSender(req *http.Request) (*http.Response, error)

ListQueryResultsForPolicyDefinitionSender sends the ListQueryResultsForPolicyDefinition request. The method will close the http.Response Body if it receives an error.

func (PolicyEventsClient) ListQueryResultsForPolicySetDefinition Uses

func (client PolicyEventsClient) ListQueryResultsForPolicySetDefinition(ctx context.Context, subscriptionID string, policySetDefinitionName string, top *int32, orderBy string, selectParameter string, from *date.Time, toParameter *date.Time, filter string, apply string) (result PolicyEventsQueryResults, err error)

ListQueryResultsForPolicySetDefinition queries policy events for the subscription level policy set definition. Parameters: subscriptionID - microsoft Azure subscription ID. policySetDefinitionName - policy set definition name. top - maximum number of records to return. 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". selectParameter - select expression using OData notation. Limits the columns on each record to just those requested, e.g. "$select=PolicyAssignmentId, ResourceId". from - ISO 8601 formatted timestamp specifying the start time of the interval to query. When not specified, the service uses ($to - 1-day). toParameter - ISO 8601 formatted timestamp specifying the end time of the interval to query. When not specified, the service uses request time. filter - oData filter expression. apply - oData apply expression for aggregations.

func (PolicyEventsClient) ListQueryResultsForPolicySetDefinitionPreparer Uses

func (client PolicyEventsClient) ListQueryResultsForPolicySetDefinitionPreparer(ctx context.Context, subscriptionID string, policySetDefinitionName string, top *int32, orderBy string, selectParameter string, from *date.Time, toParameter *date.Time, filter string, apply string) (*http.Request, error)

ListQueryResultsForPolicySetDefinitionPreparer prepares the ListQueryResultsForPolicySetDefinition request.

func (PolicyEventsClient) ListQueryResultsForPolicySetDefinitionResponder Uses

func (client PolicyEventsClient) ListQueryResultsForPolicySetDefinitionResponder(resp *http.Response) (result PolicyEventsQueryResults, err error)

ListQueryResultsForPolicySetDefinitionResponder handles the response to the ListQueryResultsForPolicySetDefinition request. The method always closes the http.Response Body.

func (PolicyEventsClient) ListQueryResultsForPolicySetDefinitionSender Uses

func (client PolicyEventsClient) ListQueryResultsForPolicySetDefinitionSender(req *http.Request) (*http.Response, error)

ListQueryResultsForPolicySetDefinitionSender sends the ListQueryResultsForPolicySetDefinition request. The method will close the http.Response Body if it receives an error.

func (PolicyEventsClient) ListQueryResultsForResource Uses

func (client PolicyEventsClient) ListQueryResultsForResource(ctx context.Context, resourceID string, top *int32, orderBy string, selectParameter string, from *date.Time, toParameter *date.Time, filter string, apply string) (result PolicyEventsQueryResults, err error)

ListQueryResultsForResource queries policy events for the resource. Parameters: resourceID - resource ID. top - maximum number of records to return. 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". selectParameter - select expression using OData notation. Limits the columns on each record to just those requested, e.g. "$select=PolicyAssignmentId, ResourceId". from - ISO 8601 formatted timestamp specifying the start time of the interval to query. When not specified, the service uses ($to - 1-day). toParameter - ISO 8601 formatted timestamp specifying the end time of the interval to query. When not specified, the service uses request time. filter - oData filter expression. apply - oData apply expression for aggregations.

func (PolicyEventsClient) ListQueryResultsForResourceGroup Uses

func (client PolicyEventsClient) ListQueryResultsForResourceGroup(ctx context.Context, subscriptionID string, resourceGroupName string, top *int32, orderBy string, selectParameter string, from *date.Time, toParameter *date.Time, filter string, apply string) (result PolicyEventsQueryResults, err error)

ListQueryResultsForResourceGroup queries policy events for the resources under the resource group. Parameters: subscriptionID - microsoft Azure subscription ID. resourceGroupName - resource group name. top - maximum number of records to return. 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". selectParameter - select expression using OData notation. Limits the columns on each record to just those requested, e.g. "$select=PolicyAssignmentId, ResourceId". from - ISO 8601 formatted timestamp specifying the start time of the interval to query. When not specified, the service uses ($to - 1-day). toParameter - ISO 8601 formatted timestamp specifying the end time of the interval to query. When not specified, the service uses request time. filter - oData filter expression. apply - oData apply expression for aggregations.

func (PolicyEventsClient) ListQueryResultsForResourceGroupLevelPolicyAssignment Uses

func (client PolicyEventsClient) ListQueryResultsForResourceGroupLevelPolicyAssignment(ctx context.Context, subscriptionID string, resourceGroupName string, policyAssignmentName string, top *int32, orderBy string, selectParameter string, from *date.Time, toParameter *date.Time, filter string, apply string) (result PolicyEventsQueryResults, err error)

ListQueryResultsForResourceGroupLevelPolicyAssignment queries policy events for the resource group level policy assignment. Parameters: subscriptionID - microsoft Azure subscription ID. resourceGroupName - resource group name. policyAssignmentName - policy assignment name. top - maximum number of records to return. 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". selectParameter - select expression using OData notation. Limits the columns on each record to just those requested, e.g. "$select=PolicyAssignmentId, ResourceId". from - ISO 8601 formatted timestamp specifying the start time of the interval to query. When not specified, the service uses ($to - 1-day). toParameter - ISO 8601 formatted timestamp specifying the end time of the interval to query. When not specified, the service uses request time. filter - oData filter expression. apply - oData apply expression for aggregations.

func (PolicyEventsClient) ListQueryResultsForResourceGroupLevelPolicyAssignmentPreparer Uses

func (client PolicyEventsClient) ListQueryResultsForResourceGroupLevelPolicyAssignmentPreparer(ctx context.Context, subscriptionID string, resourceGroupName string, policyAssignmentName string, top *int32, orderBy string, selectParameter string, from *date.Time, toParameter *date.Time, filter string, apply string) (*http.Request, error)

ListQueryResultsForResourceGroupLevelPolicyAssignmentPreparer prepares the ListQueryResultsForResourceGroupLevelPolicyAssignment request.

func (PolicyEventsClient) ListQueryResultsForResourceGroupLevelPolicyAssignmentResponder Uses

func (client PolicyEventsClient) ListQueryResultsForResourceGroupLevelPolicyAssignmentResponder(resp *http.Response) (result PolicyEventsQueryResults, err error)

ListQueryResultsForResourceGroupLevelPolicyAssignmentResponder handles the response to the ListQueryResultsForResourceGroupLevelPolicyAssignment request. The method always closes the http.Response Body.

func (PolicyEventsClient) ListQueryResultsForResourceGroupLevelPolicyAssignmentSender Uses

func (client PolicyEventsClient) ListQueryResultsForResourceGroupLevelPolicyAssignmentSender(req *http.Request) (*http.Response, error)

ListQueryResultsForResourceGroupLevelPolicyAssignmentSender sends the ListQueryResultsForResourceGroupLevelPolicyAssignment request. The method will close the http.Response Body if it receives an error.

func (PolicyEventsClient) ListQueryResultsForResourceGroupPreparer Uses

func (client PolicyEventsClient) ListQueryResultsForResourceGroupPreparer(ctx context.Context, subscriptionID string, resourceGroupName string, top *int32, orderBy string, selectParameter string, from *date.Time, toParameter *date.Time, filter string, apply string) (*http.Request, error)

ListQueryResultsForResourceGroupPreparer prepares the ListQueryResultsForResourceGroup request.

func (PolicyEventsClient) ListQueryResultsForResourceGroupResponder Uses

func (client PolicyEventsClient) ListQueryResultsForResourceGroupResponder(resp *http.Response) (result PolicyEventsQueryResults, err error)

ListQueryResultsForResourceGroupResponder handles the response to the ListQueryResultsForResourceGroup request. The method always closes the http.Response Body.

func (PolicyEventsClient) ListQueryResultsForResourceGroupSender Uses

func (client PolicyEventsClient) ListQueryResultsForResourceGroupSender(req *http.Request) (*http.Response, error)

ListQueryResultsForResourceGroupSender sends the ListQueryResultsForResourceGroup request. The method will close the http.Response Body if it receives an error.

func (PolicyEventsClient) ListQueryResultsForResourcePreparer Uses

func (client PolicyEventsClient) ListQueryResultsForResourcePreparer(ctx context.Context, resourceID string, top *int32, orderBy string, selectParameter string, from *date.Time, toParameter *date.Time, filter string, apply string) (*http.Request, error)

ListQueryResultsForResourcePreparer prepares the ListQueryResultsForResource request.

func (PolicyEventsClient) ListQueryResultsForResourceResponder Uses

func (client PolicyEventsClient) ListQueryResultsForResourceResponder(resp *http.Response) (result PolicyEventsQueryResults, err error)

ListQueryResultsForResourceResponder handles the response to the ListQueryResultsForResource request. The method always closes the http.Response Body.

func (PolicyEventsClient) ListQueryResultsForResourceSender Uses

func (client PolicyEventsClient) ListQueryResultsForResourceSender(req *http.Request) (*http.Response, error)

ListQueryResultsForResourceSender sends the ListQueryResultsForResource request. The method will close the http.Response Body if it receives an error.

func (PolicyEventsClient) ListQueryResultsForSubscription Uses

func (client PolicyEventsClient) ListQueryResultsForSubscription(ctx context.Context, subscriptionID string, top *int32, orderBy string, selectParameter string, from *date.Time, toParameter *date.Time, filter string, apply string) (result PolicyEventsQueryResults, err error)

ListQueryResultsForSubscription queries policy events for the resources under the subscription. Parameters: subscriptionID - microsoft Azure subscription ID. top - maximum number of records to return. 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". selectParameter - select expression using OData notation. Limits the columns on each record to just those requested, e.g. "$select=PolicyAssignmentId, ResourceId". from - ISO 8601 formatted timestamp specifying the start time of the interval to query. When not specified, the service uses ($to - 1-day). toParameter - ISO 8601 formatted timestamp specifying the end time of the interval to query. When not specified, the service uses request time. filter - oData filter expression. apply - oData apply expression for aggregations.

func (PolicyEventsClient) ListQueryResultsForSubscriptionLevelPolicyAssignment Uses

func (client PolicyEventsClient) ListQueryResultsForSubscriptionLevelPolicyAssignment(ctx context.Context, subscriptionID string, policyAssignmentName string, top *int32, orderBy string, selectParameter string, from *date.Time, toParameter *date.Time, filter string, apply string) (result PolicyEventsQueryResults, err error)

ListQueryResultsForSubscriptionLevelPolicyAssignment queries policy events for the subscription level policy assignment. Parameters: subscriptionID - microsoft Azure subscription ID. policyAssignmentName - policy assignment name. top - maximum number of records to return. 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". selectParameter - select expression using OData notation. Limits the columns on each record to just those requested, e.g. "$select=PolicyAssignmentId, ResourceId". from - ISO 8601 formatted timestamp specifying the start time of the interval to query. When not specified, the service uses ($to - 1-day). toParameter - ISO 8601 formatted timestamp specifying the end time of the interval to query. When not specified, the service uses request time. filter - oData filter expression. apply - oData apply expression for aggregations.

func (PolicyEventsClient) ListQueryResultsForSubscriptionLevelPolicyAssignmentPreparer Uses

func (client PolicyEventsClient) ListQueryResultsForSubscriptionLevelPolicyAssignmentPreparer(ctx context.Context, subscriptionID string, policyAssignmentName string, top *int32, orderBy string, selectParameter string, from *date.Time, toParameter *date.Time, filter string, apply string) (*http.Request, error)

ListQueryResultsForSubscriptionLevelPolicyAssignmentPreparer prepares the ListQueryResultsForSubscriptionLevelPolicyAssignment request.

func (PolicyEventsClient) ListQueryResultsForSubscriptionLevelPolicyAssignmentResponder Uses

func (client PolicyEventsClient) ListQueryResultsForSubscriptionLevelPolicyAssignmentResponder(resp *http.Response) (result PolicyEventsQueryResults, err error)

ListQueryResultsForSubscriptionLevelPolicyAssignmentResponder handles the response to the ListQueryResultsForSubscriptionLevelPolicyAssignment request. The method always closes the http.Response Body.

func (PolicyEventsClient) ListQueryResultsForSubscriptionLevelPolicyAssignmentSender Uses

func (client PolicyEventsClient) ListQueryResultsForSubscriptionLevelPolicyAssignmentSender(req *http.Request) (*http.Response, error)

ListQueryResultsForSubscriptionLevelPolicyAssignmentSender sends the ListQueryResultsForSubscriptionLevelPolicyAssignment request. The method will close the http.Response Body if it receives an error.

func (PolicyEventsClient) ListQueryResultsForSubscriptionPreparer Uses

func (client PolicyEventsClient) ListQueryResultsForSubscriptionPreparer(ctx context.Context, subscriptionID string, top *int32, orderBy string, selectParameter string, from *date.Time, toParameter *date.Time, filter string, apply string) (*http.Request, error)

ListQueryResultsForSubscriptionPreparer prepares the ListQueryResultsForSubscription request.

func (PolicyEventsClient) ListQueryResultsForSubscriptionResponder Uses

func (client PolicyEventsClient) ListQueryResultsForSubscriptionResponder(resp *http.Response) (result PolicyEventsQueryResults, err error)

ListQueryResultsForSubscriptionResponder handles the response to the ListQueryResultsForSubscription request. The method always closes the http.Response Body.

func (PolicyEventsClient) ListQueryResultsForSubscriptionSender Uses

func (client PolicyEventsClient) ListQueryResultsForSubscriptionSender(req *http.Request) (*http.Response, error)

ListQueryResultsForSubscriptionSender sends the ListQueryResultsForSubscription request. The method will close the http.Response Body if it receives an error.

type PolicyEventsQueryResults Uses

type PolicyEventsQueryResults struct {
    autorest.Response `json:"-"`
    // OdataContext - OData context string; used by OData clients to resolve type information based on metadata.
    OdataContext *string `json:"@odata.context,omitempty"`
    // OdataCount - OData entity count; represents the number of policy event records returned.
    OdataCount *int32 `json:"@odata.count,omitempty"`
    // Value - Query results.
    Value *[]PolicyEvent `json:"value,omitempty"`
}

PolicyEventsQueryResults query results.

type PolicyState Uses

type PolicyState struct {
    // AdditionalProperties - Unmatched properties from the message are deserialized this collection
    AdditionalProperties map[string]interface{} `json:""`
    // OdataID - OData entity ID; always set to null since policy state records do not have an entity ID.
    OdataID *string `json:"@odata.id,omitempty"`
    // OdataContext - OData context string; used by OData clients to resolve type information based on metadata.
    OdataContext *string `json:"@odata.context,omitempty"`
    // Timestamp - Timestamp for the policy state record.
    Timestamp *date.Time `json:"timestamp,omitempty"`
    // ResourceID - Resource ID.
    ResourceID *string `json:"resourceId,omitempty"`
    // PolicyAssignmentID - Policy assignment ID.
    PolicyAssignmentID *string `json:"policyAssignmentId,omitempty"`
    // PolicyDefinitionID - Policy definition ID.
    PolicyDefinitionID *string `json:"policyDefinitionId,omitempty"`
    // EffectiveParameters - Effective parameters for the policy assignment.
    EffectiveParameters *string `json:"effectiveParameters,omitempty"`
    // IsCompliant - Flag which states whether the resource is compliant against the policy assignment it was evaluated against.
    IsCompliant *bool `json:"isCompliant,omitempty"`
    // SubscriptionID - Subscription ID.
    SubscriptionID *string `json:"subscriptionId,omitempty"`
    // ResourceType - Resource type.
    ResourceType *string `json:"resourceType,omitempty"`
    // ResourceLocation - Resource location.
    ResourceLocation *string `json:"resourceLocation,omitempty"`
    // ResourceGroup - Resource group name.
    ResourceGroup *string `json:"resourceGroup,omitempty"`
    // ResourceTags - List of resource tags.
    ResourceTags *string `json:"resourceTags,omitempty"`
    // PolicyAssignmentName - Policy assignment name.
    PolicyAssignmentName *string `json:"policyAssignmentName,omitempty"`
    // PolicyAssignmentOwner - Policy assignment owner.
    PolicyAssignmentOwner *string `json:"policyAssignmentOwner,omitempty"`
    // PolicyAssignmentParameters - Policy assignment parameters.
    PolicyAssignmentParameters *string `json:"policyAssignmentParameters,omitempty"`
    // PolicyAssignmentScope - Policy assignment scope.
    PolicyAssignmentScope *string `json:"policyAssignmentScope,omitempty"`
    // PolicyDefinitionName - Policy definition name.
    PolicyDefinitionName *string `json:"policyDefinitionName,omitempty"`
    // PolicyDefinitionAction - Policy definition action, i.e. effect.
    PolicyDefinitionAction *string `json:"policyDefinitionAction,omitempty"`
    // PolicyDefinitionCategory - Policy definition category.
    PolicyDefinitionCategory *string `json:"policyDefinitionCategory,omitempty"`
    // PolicySetDefinitionID - Policy set definition ID, if the policy assignment is for a policy set.
    PolicySetDefinitionID *string `json:"policySetDefinitionId,omitempty"`
    // PolicySetDefinitionName - Policy set definition name, if the policy assignment is for a policy set.
    PolicySetDefinitionName *string `json:"policySetDefinitionName,omitempty"`
    // PolicySetDefinitionOwner - Policy set definition owner, if the policy assignment is for a policy set.
    PolicySetDefinitionOwner *string `json:"policySetDefinitionOwner,omitempty"`
    // PolicySetDefinitionCategory - Policy set definition category, if the policy assignment is for a policy set.
    PolicySetDefinitionCategory *string `json:"policySetDefinitionCategory,omitempty"`
    // PolicySetDefinitionParameters - Policy set definition parameters, if the policy assignment is for a policy set.
    PolicySetDefinitionParameters *string `json:"policySetDefinitionParameters,omitempty"`
    // ManagementGroupIds - Comma separated list of management group IDs, which represent the hierarchy of the management groups the resource is under.
    ManagementGroupIds *string `json:"managementGroupIds,omitempty"`
    // PolicyDefinitionReferenceID - Reference ID for the policy definition inside the policy set, if the policy assignment is for a policy set.
    PolicyDefinitionReferenceID *string `json:"policyDefinitionReferenceId,omitempty"`
}

PolicyState policy state record.

func (PolicyState) MarshalJSON Uses

func (ps PolicyState) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for PolicyState.

func (*PolicyState) UnmarshalJSON Uses

func (ps *PolicyState) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for PolicyState struct.

type PolicyStatesClient Uses

type PolicyStatesClient struct {
    BaseClient
}

PolicyStatesClient is the client for the PolicyStates methods of the Policyinsights service.

func NewPolicyStatesClient Uses

func NewPolicyStatesClient() PolicyStatesClient

NewPolicyStatesClient creates an instance of the PolicyStatesClient client.

func NewPolicyStatesClientWithBaseURI Uses

func NewPolicyStatesClientWithBaseURI(baseURI string) PolicyStatesClient

NewPolicyStatesClientWithBaseURI creates an instance of the PolicyStatesClient client.

func (PolicyStatesClient) GetMetadata Uses

func (client PolicyStatesClient) GetMetadata(ctx context.Context, scope string) (result String, err error)

GetMetadata gets OData metadata XML document. Parameters: scope - a valid scope, i.e. management group, subscription, resource group, or resource ID. Scope used has no effect on metadata returned.

func (PolicyStatesClient) GetMetadataPreparer Uses

func (client PolicyStatesClient) GetMetadataPreparer(ctx context.Context, scope string) (*http.Request, error)

GetMetadataPreparer prepares the GetMetadata request.

func (PolicyStatesClient) GetMetadataResponder Uses

func (client PolicyStatesClient) GetMetadataResponder(resp *http.Response) (result String, err error)

GetMetadataResponder handles the response to the GetMetadata request. The method always closes the http.Response Body.

func (PolicyStatesClient) GetMetadataSender Uses

func (client PolicyStatesClient) GetMetadataSender(req *http.Request) (*http.Response, error)

GetMetadataSender sends the GetMetadata request. The method will close the http.Response Body if it receives an error.

func (PolicyStatesClient) ListQueryResultsForManagementGroup Uses

func (client PolicyStatesClient) ListQueryResultsForManagementGroup(ctx context.Context, policyStatesResource PolicyStatesResource, managementGroupName string, top *int32, orderBy string, selectParameter string, from *date.Time, toParameter *date.Time, filter string, apply string) (result PolicyStatesQueryResults, err error)

ListQueryResultsForManagementGroup queries policy states for the resources under the management group. Parameters: 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). managementGroupName - management group name. top - maximum number of records to return. 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". selectParameter - select expression using OData notation. Limits the columns on each record to just those requested, e.g. "$select=PolicyAssignmentId, ResourceId". from - ISO 8601 formatted timestamp specifying the start time of the interval to query. When not specified, the service uses ($to - 1-day). toParameter - ISO 8601 formatted timestamp specifying the end time of the interval to query. When not specified, the service uses request time. filter - oData filter expression. apply - oData apply expression for aggregations.

func (PolicyStatesClient) ListQueryResultsForManagementGroupPreparer Uses

func (client PolicyStatesClient) ListQueryResultsForManagementGroupPreparer(ctx context.Context, policyStatesResource PolicyStatesResource, managementGroupName string, top *int32, orderBy string, selectParameter string, from *date.Time, toParameter *date.Time, filter string, apply string) (*http.Request, error)

ListQueryResultsForManagementGroupPreparer prepares the ListQueryResultsForManagementGroup request.

func (PolicyStatesClient) ListQueryResultsForManagementGroupResponder Uses

func (client PolicyStatesClient) ListQueryResultsForManagementGroupResponder(resp *http.Response) (result PolicyStatesQueryResults, err error)

ListQueryResultsForManagementGroupResponder handles the response to the ListQueryResultsForManagementGroup request. The method always closes the http.Response Body.

func (PolicyStatesClient) ListQueryResultsForManagementGroupSender Uses

func (client PolicyStatesClient) ListQueryResultsForManagementGroupSender(req *http.Request) (*http.Response, error)

ListQueryResultsForManagementGroupSender sends the ListQueryResultsForManagementGroup request. The method will close the http.Response Body if it receives an error.

func (PolicyStatesClient) ListQueryResultsForPolicyDefinition Uses

func (client PolicyStatesClient) ListQueryResultsForPolicyDefinition(ctx context.Context, policyStatesResource PolicyStatesResource, subscriptionID string, policyDefinitionName string, top *int32, orderBy string, selectParameter string, from *date.Time, toParameter *date.Time, filter string, apply string) (result PolicyStatesQueryResults, err error)

ListQueryResultsForPolicyDefinition queries policy states for the subscription level policy definition. Parameters: 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). subscriptionID - microsoft Azure subscription ID. policyDefinitionName - policy definition name. top - maximum number of records to return. 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". selectParameter - select expression using OData notation. Limits the columns on each record to just those requested, e.g. "$select=PolicyAssignmentId, ResourceId". from - ISO 8601 formatted timestamp specifying the start time of the interval to query. When not specified, the service uses ($to - 1-day). toParameter - ISO 8601 formatted timestamp specifying the end time of the interval to query. When not specified, the service uses request time. filter - oData filter expression. apply - oData apply expression for aggregations.

func (PolicyStatesClient) ListQueryResultsForPolicyDefinitionPreparer Uses

func (client PolicyStatesClient) ListQueryResultsForPolicyDefinitionPreparer(ctx context.Context, policyStatesResource PolicyStatesResource, subscriptionID string, policyDefinitionName string, top *int32, orderBy string, selectParameter string, from *date.Time, toParameter *date.Time, filter string, apply string) (*http.Request, error)

ListQueryResultsForPolicyDefinitionPreparer prepares the ListQueryResultsForPolicyDefinition request.

func (PolicyStatesClient) ListQueryResultsForPolicyDefinitionResponder Uses

func (client PolicyStatesClient) ListQueryResultsForPolicyDefinitionResponder(resp *http.Response) (result PolicyStatesQueryResults, err error)

ListQueryResultsForPolicyDefinitionResponder handles the response to the ListQueryResultsForPolicyDefinition request. The method always closes the http.Response Body.

func (PolicyStatesClient) ListQueryResultsForPolicyDefinitionSender Uses

func (client PolicyStatesClient) ListQueryResultsForPolicyDefinitionSender(req *http.Request) (*http.Response, error)

ListQueryResultsForPolicyDefinitionSender sends the ListQueryResultsForPolicyDefinition request. The method will close the http.Response Body if it receives an error.

func (PolicyStatesClient) ListQueryResultsForPolicySetDefinition Uses

func (client PolicyStatesClient) ListQueryResultsForPolicySetDefinition(ctx context.Context, policyStatesResource PolicyStatesResource, subscriptionID string, policySetDefinitionName string, top *int32, orderBy string, selectParameter string, from *date.Time, toParameter *date.Time, filter string, apply string) (result PolicyStatesQueryResults, err error)

ListQueryResultsForPolicySetDefinition queries policy states for the subscription level policy set definition. Parameters: 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). subscriptionID - microsoft Azure subscription ID. policySetDefinitionName - policy set definition name. top - maximum number of records to return. 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". selectParameter - select expression using OData notation. Limits the columns on each record to just those requested, e.g. "$select=PolicyAssignmentId, ResourceId". from - ISO 8601 formatted timestamp specifying the start time of the interval to query. When not specified, the service uses ($to - 1-day). toParameter - ISO 8601 formatted timestamp specifying the end time of the interval to query. When not specified, the service uses request time. filter - oData filter expression. apply - oData apply expression for aggregations.

func (PolicyStatesClient) ListQueryResultsForPolicySetDefinitionPreparer Uses

func (client PolicyStatesClient) ListQueryResultsForPolicySetDefinitionPreparer(ctx context.Context, policyStatesResource PolicyStatesResource, subscriptionID string, policySetDefinitionName string, top *int32, orderBy string, selectParameter string, from *date.Time, toParameter *date.Time, filter string, apply string) (*http.Request, error)

ListQueryResultsForPolicySetDefinitionPreparer prepares the ListQueryResultsForPolicySetDefinition request.

func (PolicyStatesClient) ListQueryResultsForPolicySetDefinitionResponder Uses

func (client PolicyStatesClient) ListQueryResultsForPolicySetDefinitionResponder(resp *http.Response) (result PolicyStatesQueryResults, err error)

ListQueryResultsForPolicySetDefinitionResponder handles the response to the ListQueryResultsForPolicySetDefinition request. The method always closes the http.Response Body.

func (PolicyStatesClient) ListQueryResultsForPolicySetDefinitionSender Uses

func (client PolicyStatesClient) ListQueryResultsForPolicySetDefinitionSender(req *http.Request) (*http.Response, error)

ListQueryResultsForPolicySetDefinitionSender sends the ListQueryResultsForPolicySetDefinition request. The method will close the http.Response Body if it receives an error.

func (PolicyStatesClient) ListQueryResultsForResource Uses

func (client PolicyStatesClient) ListQueryResultsForResource(ctx context.Context, policyStatesResource PolicyStatesResource, resourceID string, top *int32, orderBy string, selectParameter string, from *date.Time, toParameter *date.Time, filter string, apply string) (result PolicyStatesQueryResults, err error)

ListQueryResultsForResource queries policy states for the resource. Parameters: 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). resourceID - resource ID. top - maximum number of records to return. 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". selectParameter - select expression using OData notation. Limits the columns on each record to just those requested, e.g. "$select=PolicyAssignmentId, ResourceId". from - ISO 8601 formatted timestamp specifying the start time of the interval to query. When not specified, the service uses ($to - 1-day). toParameter - ISO 8601 formatted timestamp specifying the end time of the interval to query. When not specified, the service uses request time. filter - oData filter expression. apply - oData apply expression for aggregations.

func (PolicyStatesClient) ListQueryResultsForResourceGroup Uses

func (client PolicyStatesClient) ListQueryResultsForResourceGroup(ctx context.Context, policyStatesResource PolicyStatesResource, subscriptionID string, resourceGroupName string, top *int32, orderBy string, selectParameter string, from *date.Time, toParameter *date.Time, filter string, apply string) (result PolicyStatesQueryResults, err error)

ListQueryResultsForResourceGroup queries policy states for the resources under the resource group. Parameters: 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). subscriptionID - microsoft Azure subscription ID. resourceGroupName - resource group name. top - maximum number of records to return. 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". selectParameter - select expression using OData notation. Limits the columns on each record to just those requested, e.g. "$select=PolicyAssignmentId, ResourceId". from - ISO 8601 formatted timestamp specifying the start time of the interval to query. When not specified, the service uses ($to - 1-day). toParameter - ISO 8601 formatted timestamp specifying the end time of the interval to query. When not specified, the service uses request time. filter - oData filter expression. apply - oData apply expression for aggregations.

func (PolicyStatesClient) ListQueryResultsForResourceGroupLevelPolicyAssignment Uses

func (client PolicyStatesClient) ListQueryResultsForResourceGroupLevelPolicyAssignment(ctx context.Context, policyStatesResource PolicyStatesResource, subscriptionID string, resourceGroupName string, policyAssignmentName string, top *int32, orderBy string, selectParameter string, from *date.Time, toParameter *date.Time, filter string, apply string) (result PolicyStatesQueryResults, err error)

ListQueryResultsForResourceGroupLevelPolicyAssignment queries policy states for the resource group level policy assignment. Parameters: 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). subscriptionID - microsoft Azure subscription ID. resourceGroupName - resource group name. policyAssignmentName - policy assignment name. top - maximum number of records to return. 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". selectParameter - select expression using OData notation. Limits the columns on each record to just those requested, e.g. "$select=PolicyAssignmentId, ResourceId". from - ISO 8601 formatted timestamp specifying the start time of the interval to query. When not specified, the service uses ($to - 1-day). toParameter - ISO 8601 formatted timestamp specifying the end time of the interval to query. When not specified, the service uses request time. filter - oData filter expression. apply - oData apply expression for aggregations.

func (PolicyStatesClient) ListQueryResultsForResourceGroupLevelPolicyAssignmentPreparer Uses

func (client PolicyStatesClient) ListQueryResultsForResourceGroupLevelPolicyAssignmentPreparer(ctx context.Context, policyStatesResource PolicyStatesResource, subscriptionID string, resourceGroupName string, policyAssignmentName string, top *int32, orderBy string, selectParameter string, from *date.Time, toParameter *date.Time, filter string, apply string) (*http.Request, error)

ListQueryResultsForResourceGroupLevelPolicyAssignmentPreparer prepares the ListQueryResultsForResourceGroupLevelPolicyAssignment request.

func (PolicyStatesClient) ListQueryResultsForResourceGroupLevelPolicyAssignmentResponder Uses

func (client PolicyStatesClient) ListQueryResultsForResourceGroupLevelPolicyAssignmentResponder(resp *http.Response) (result PolicyStatesQueryResults, err error)

ListQueryResultsForResourceGroupLevelPolicyAssignmentResponder handles the response to the ListQueryResultsForResourceGroupLevelPolicyAssignment request. The method always closes the http.Response Body.

func (PolicyStatesClient) ListQueryResultsForResourceGroupLevelPolicyAssignmentSender Uses

func (client PolicyStatesClient) ListQueryResultsForResourceGroupLevelPolicyAssignmentSender(req *http.Request) (*http.Response, error)

ListQueryResultsForResourceGroupLevelPolicyAssignmentSender sends the ListQueryResultsForResourceGroupLevelPolicyAssignment request. The method will close the http.Response Body if it receives an error.

func (PolicyStatesClient) ListQueryResultsForResourceGroupPreparer Uses

func (client PolicyStatesClient) ListQueryResultsForResourceGroupPreparer(ctx context.Context, policyStatesResource PolicyStatesResource, subscriptionID string, resourceGroupName string, top *int32, orderBy string, selectParameter string, from *date.Time, toParameter *date.Time, filter string, apply string) (*http.Request, error)

ListQueryResultsForResourceGroupPreparer prepares the ListQueryResultsForResourceGroup request.

func (PolicyStatesClient) ListQueryResultsForResourceGroupResponder Uses

func (client PolicyStatesClient) ListQueryResultsForResourceGroupResponder(resp *http.Response) (result PolicyStatesQueryResults, err error)

ListQueryResultsForResourceGroupResponder handles the response to the ListQueryResultsForResourceGroup request. The method always closes the http.Response Body.

func (PolicyStatesClient) ListQueryResultsForResourceGroupSender Uses

func (client PolicyStatesClient) ListQueryResultsForResourceGroupSender(req *http.Request) (*http.Response, error)

ListQueryResultsForResourceGroupSender sends the ListQueryResultsForResourceGroup request. The method will close the http.Response Body if it receives an error.

func (PolicyStatesClient) ListQueryResultsForResourcePreparer Uses

func (client PolicyStatesClient) ListQueryResultsForResourcePreparer(ctx context.Context, policyStatesResource PolicyStatesResource, resourceID string, top *int32, orderBy string, selectParameter string, from *date.Time, toParameter *date.Time, filter string, apply string) (*http.Request, error)

ListQueryResultsForResourcePreparer prepares the ListQueryResultsForResource request.

func (PolicyStatesClient) ListQueryResultsForResourceResponder Uses

func (client PolicyStatesClient) ListQueryResultsForResourceResponder(resp *http.Response) (result PolicyStatesQueryResults, err error)

ListQueryResultsForResourceResponder handles the response to the ListQueryResultsForResource request. The method always closes the http.Response Body.

func (PolicyStatesClient) ListQueryResultsForResourceSender Uses

func (client PolicyStatesClient) ListQueryResultsForResourceSender(req *http.Request) (*http.Response, error)

ListQueryResultsForResourceSender sends the ListQueryResultsForResource request. The method will close the http.Response Body if it receives an error.

func (PolicyStatesClient) ListQueryResultsForSubscription Uses

func (client PolicyStatesClient) ListQueryResultsForSubscription(ctx context.Context, policyStatesResource PolicyStatesResource, subscriptionID string, top *int32, orderBy string, selectParameter string, from *date.Time, toParameter *date.Time, filter string, apply string) (result PolicyStatesQueryResults, err error)

ListQueryResultsForSubscription queries policy states for the resources under the subscription. Parameters: 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). subscriptionID - microsoft Azure subscription ID. top - maximum number of records to return. 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". selectParameter - select expression using OData notation. Limits the columns on each record to just those requested, e.g. "$select=PolicyAssignmentId, ResourceId". from - ISO 8601 formatted timestamp specifying the start time of the interval to query. When not specified, the service uses ($to - 1-day). toParameter - ISO 8601 formatted timestamp specifying the end time of the interval to query. When not specified, the service uses request time. filter - oData filter expression. apply - oData apply expression for aggregations.

func (PolicyStatesClient) ListQueryResultsForSubscriptionLevelPolicyAssignment Uses

func (client PolicyStatesClient) ListQueryResultsForSubscriptionLevelPolicyAssignment(ctx context.Context, policyStatesResource PolicyStatesResource, subscriptionID string, policyAssignmentName string, top *int32, orderBy string, selectParameter string, from *date.Time, toParameter *date.Time, filter string, apply string) (result PolicyStatesQueryResults, err error)

ListQueryResultsForSubscriptionLevelPolicyAssignment queries policy states for the subscription level policy assignment. Parameters: 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). subscriptionID - microsoft Azure subscription ID. policyAssignmentName - policy assignment name. top - maximum number of records to return. 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". selectParameter - select expression using OData notation. Limits the columns on each record to just those requested, e.g. "$select=PolicyAssignmentId, ResourceId". from - ISO 8601 formatted timestamp specifying the start time of the interval to query. When not specified, the service uses ($to - 1-day). toParameter - ISO 8601 formatted timestamp specifying the end time of the interval to query. When not specified, the service uses request time. filter - oData filter expression. apply - oData apply expression for aggregations.

func (PolicyStatesClient) ListQueryResultsForSubscriptionLevelPolicyAssignmentPreparer Uses

func (client PolicyStatesClient) ListQueryResultsForSubscriptionLevelPolicyAssignmentPreparer(ctx context.Context, policyStatesResource PolicyStatesResource, subscriptionID string, policyAssignmentName string, top *int32, orderBy string, selectParameter string, from *date.Time, toParameter *date.Time, filter string, apply string) (*http.Request, error)

ListQueryResultsForSubscriptionLevelPolicyAssignmentPreparer prepares the ListQueryResultsForSubscriptionLevelPolicyAssignment request.

func (PolicyStatesClient) ListQueryResultsForSubscriptionLevelPolicyAssignmentResponder Uses

func (client PolicyStatesClient) ListQueryResultsForSubscriptionLevelPolicyAssignmentResponder(resp *http.Response) (result PolicyStatesQueryResults, err error)

ListQueryResultsForSubscriptionLevelPolicyAssignmentResponder handles the response to the ListQueryResultsForSubscriptionLevelPolicyAssignment request. The method always closes the http.Response Body.

func (PolicyStatesClient) ListQueryResultsForSubscriptionLevelPolicyAssignmentSender Uses

func (client PolicyStatesClient) ListQueryResultsForSubscriptionLevelPolicyAssignmentSender(req *http.Request) (*http.Response, error)

ListQueryResultsForSubscriptionLevelPolicyAssignmentSender sends the ListQueryResultsForSubscriptionLevelPolicyAssignment request. The method will close the http.Response Body if it receives an error.

func (PolicyStatesClient) ListQueryResultsForSubscriptionPreparer Uses

func (client PolicyStatesClient) ListQueryResultsForSubscriptionPreparer(ctx context.Context, policyStatesResource PolicyStatesResource, subscriptionID string, top *int32, orderBy string, selectParameter string, from *date.Time, toParameter *date.Time, filter string, apply string) (*http.Request, error)

ListQueryResultsForSubscriptionPreparer prepares the ListQueryResultsForSubscription request.

func (PolicyStatesClient) ListQueryResultsForSubscriptionResponder Uses

func (client PolicyStatesClient) ListQueryResultsForSubscriptionResponder(resp *http.Response) (result PolicyStatesQueryResults, err error)

ListQueryResultsForSubscriptionResponder handles the response to the ListQueryResultsForSubscription request. The method always closes the http.Response Body.

func (PolicyStatesClient) ListQueryResultsForSubscriptionSender Uses

func (client PolicyStatesClient) ListQueryResultsForSubscriptionSender(req *http.Request) (*http.Response, error)

ListQueryResultsForSubscriptionSender sends the ListQueryResultsForSubscription request. The method will close the http.Response Body if it receives an error.

func (PolicyStatesClient) SummarizeForManagementGroup Uses

func (client PolicyStatesClient) SummarizeForManagementGroup(ctx context.Context, managementGroupName string, top *int32, from *date.Time, toParameter *date.Time, filter string) (result SummarizeResults, err error)

SummarizeForManagementGroup summarizes policy states for the resources under the management group. Parameters: managementGroupName - management group name. top - maximum number of records to return. from - ISO 8601 formatted timestamp specifying the start time of the interval to query. When not specified, the service uses ($to - 1-day). toParameter - ISO 8601 formatted timestamp specifying the end time of the interval to query. When not specified, the service uses request time. filter - oData filter expression.

func (PolicyStatesClient) SummarizeForManagementGroupPreparer Uses

func (client PolicyStatesClient) SummarizeForManagementGroupPreparer(ctx context.Context, managementGroupName string, top *int32, from *date.Time, toParameter *date.Time, filter string) (*http.Request, error)

SummarizeForManagementGroupPreparer prepares the SummarizeForManagementGroup request.

func (PolicyStatesClient) SummarizeForManagementGroupResponder Uses

func (client PolicyStatesClient) SummarizeForManagementGroupResponder(resp *http.Response) (result SummarizeResults, err error)

SummarizeForManagementGroupResponder handles the response to the SummarizeForManagementGroup request. The method always closes the http.Response Body.

func (PolicyStatesClient) SummarizeForManagementGroupSender Uses

func (client PolicyStatesClient) SummarizeForManagementGroupSender(req *http.Request) (*http.Response, error)

SummarizeForManagementGroupSender sends the SummarizeForManagementGroup request. The method will close the http.Response Body if it receives an error.

func (PolicyStatesClient) SummarizeForPolicyDefinition Uses

func (client PolicyStatesClient) SummarizeForPolicyDefinition(ctx context.Context, subscriptionID string, policyDefinitionName string, top *int32, from *date.Time, toParameter *date.Time, filter string) (result SummarizeResults, err error)

SummarizeForPolicyDefinition summarizes policy states for the subscription level policy definition. Parameters: subscriptionID - microsoft Azure subscription ID. policyDefinitionName - policy definition name. top - maximum number of records to return. from - ISO 8601 formatted timestamp specifying the start time of the interval to query. When not specified, the service uses ($to - 1-day). toParameter - ISO 8601 formatted timestamp specifying the end time of the interval to query. When not specified, the service uses request time. filter - oData filter expression.

func (PolicyStatesClient) SummarizeForPolicyDefinitionPreparer Uses

func (client PolicyStatesClient) SummarizeForPolicyDefinitionPreparer(ctx context.Context, subscriptionID string, policyDefinitionName string, top *int32, from *date.Time, toParameter *date.Time, filter string) (*http.Request, error)

SummarizeForPolicyDefinitionPreparer prepares the SummarizeForPolicyDefinition request.

func (PolicyStatesClient) SummarizeForPolicyDefinitionResponder Uses

func (client PolicyStatesClient) SummarizeForPolicyDefinitionResponder(resp *http.Response) (result SummarizeResults, err error)

SummarizeForPolicyDefinitionResponder handles the response to the SummarizeForPolicyDefinition request. The method always closes the http.Response Body.

func (PolicyStatesClient) SummarizeForPolicyDefinitionSender Uses

func (client PolicyStatesClient) SummarizeForPolicyDefinitionSender(req *http.Request) (*http.Response, error)

SummarizeForPolicyDefinitionSender sends the SummarizeForPolicyDefinition request. The method will close the http.Response Body if it receives an error.

func (PolicyStatesClient) SummarizeForPolicySetDefinition Uses

func (client PolicyStatesClient) SummarizeForPolicySetDefinition(ctx context.Context, subscriptionID string, policySetDefinitionName string, top *int32, from *date.Time, toParameter *date.Time, filter string) (result SummarizeResults, err error)

SummarizeForPolicySetDefinition summarizes policy states for the subscription level policy set definition. Parameters: subscriptionID - microsoft Azure subscription ID. policySetDefinitionName - policy set definition name. top - maximum number of records to return. from - ISO 8601 formatted timestamp specifying the start time of the interval to query. When not specified, the service uses ($to - 1-day). toParameter - ISO 8601 formatted timestamp specifying the end time of the interval to query. When not specified, the service uses request time. filter - oData filter expression.

func (PolicyStatesClient) SummarizeForPolicySetDefinitionPreparer Uses

func (client PolicyStatesClient) SummarizeForPolicySetDefinitionPreparer(ctx context.Context, subscriptionID string, policySetDefinitionName string, top *int32, from *date.Time, toParameter *date.Time, filter string) (*http.Request, error)

SummarizeForPolicySetDefinitionPreparer prepares the SummarizeForPolicySetDefinition request.

func (PolicyStatesClient) SummarizeForPolicySetDefinitionResponder Uses

func (client PolicyStatesClient) SummarizeForPolicySetDefinitionResponder(resp *http.Response) (result SummarizeResults, err error)

SummarizeForPolicySetDefinitionResponder handles the response to the SummarizeForPolicySetDefinition request. The method always closes the http.Response Body.

func (PolicyStatesClient) SummarizeForPolicySetDefinitionSender Uses

func (client PolicyStatesClient) SummarizeForPolicySetDefinitionSender(req *http.Request) (*http.Response, error)

SummarizeForPolicySetDefinitionSender sends the SummarizeForPolicySetDefinition request. The method will close the http.Response Body if it receives an error.

func (PolicyStatesClient) SummarizeForResource Uses

func (client PolicyStatesClient) SummarizeForResource(ctx context.Context, resourceID string, top *int32, from *date.Time, toParameter *date.Time, filter string) (result SummarizeResults, err error)

SummarizeForResource summarizes policy states for the resource. Parameters: resourceID - resource ID. top - maximum number of records to return. from - ISO 8601 formatted timestamp specifying the start time of the interval to query. When not specified, the service uses ($to - 1-day). toParameter - ISO 8601 formatted timestamp specifying the end time of the interval to query. When not specified, the service uses request time. filter - oData filter expression.

func (PolicyStatesClient) SummarizeForResourceGroup Uses

func (client PolicyStatesClient) SummarizeForResourceGroup(ctx context.Context, subscriptionID string, resourceGroupName string, top *int32, from *date.Time, toParameter *date.Time, filter string) (result SummarizeResults, err error)

SummarizeForResourceGroup summarizes policy states for the resources under the resource group. Parameters: subscriptionID - microsoft Azure subscription ID. resourceGroupName - resource group name. top - maximum number of records to return. from - ISO 8601 formatted timestamp specifying the start time of the interval to query. When not specified, the service uses ($to - 1-day). toParameter - ISO 8601 formatted timestamp specifying the end time of the interval to query. When not specified, the service uses request time. filter - oData filter expression.

func (PolicyStatesClient) SummarizeForResourceGroupLevelPolicyAssignment Uses

func (client PolicyStatesClient) SummarizeForResourceGroupLevelPolicyAssignment(ctx context.Context, subscriptionID string, resourceGroupName string, policyAssignmentName string, top *int32, from *date.Time, toParameter *date.Time, filter string) (result SummarizeResults, err error)

SummarizeForResourceGroupLevelPolicyAssignment summarizes policy states for the resource group level policy assignment. Parameters: subscriptionID - microsoft Azure subscription ID. resourceGroupName - resource group name. policyAssignmentName - policy assignment name. top - maximum number of records to return. from - ISO 8601 formatted timestamp specifying the start time of the interval to query. When not specified, the service uses ($to - 1-day). toParameter - ISO 8601 formatted timestamp specifying the end time of the interval to query. When not specified, the service uses request time. filter - oData filter expression.

func (PolicyStatesClient) SummarizeForResourceGroupLevelPolicyAssignmentPreparer Uses

func (client PolicyStatesClient) SummarizeForResourceGroupLevelPolicyAssignmentPreparer(ctx context.Context, subscriptionID string, resourceGroupName string, policyAssignmentName string, top *int32, from *date.Time, toParameter *date.Time, filter string) (*http.Request, error)

SummarizeForResourceGroupLevelPolicyAssignmentPreparer prepares the SummarizeForResourceGroupLevelPolicyAssignment request.

func (PolicyStatesClient) SummarizeForResourceGroupLevelPolicyAssignmentResponder Uses

func (client PolicyStatesClient) SummarizeForResourceGroupLevelPolicyAssignmentResponder(resp *http.Response) (result SummarizeResults, err error)

SummarizeForResourceGroupLevelPolicyAssignmentResponder handles the response to the SummarizeForResourceGroupLevelPolicyAssignment request. The method always closes the http.Response Body.

func (PolicyStatesClient) SummarizeForResourceGroupLevelPolicyAssignmentSender Uses

func (client PolicyStatesClient) SummarizeForResourceGroupLevelPolicyAssignmentSender(req *http.Request) (*http.Response, error)

SummarizeForResourceGroupLevelPolicyAssignmentSender sends the SummarizeForResourceGroupLevelPolicyAssignment request. The method will close the http.Response Body if it receives an error.

func (PolicyStatesClient) SummarizeForResourceGroupPreparer Uses

func (client PolicyStatesClient) SummarizeForResourceGroupPreparer(ctx context.Context, subscriptionID string, resourceGroupName string, top *int32, from *date.Time, toParameter *date.Time, filter string) (*http.Request, error)

SummarizeForResourceGroupPreparer prepares the SummarizeForResourceGroup request.

func (PolicyStatesClient) SummarizeForResourceGroupResponder Uses

func (client PolicyStatesClient) SummarizeForResourceGroupResponder(resp *http.Response) (result SummarizeResults, err error)

SummarizeForResourceGroupResponder handles the response to the SummarizeForResourceGroup request. The method always closes the http.Response Body.

func (PolicyStatesClient) SummarizeForResourceGroupSender Uses

func (client PolicyStatesClient) SummarizeForResourceGroupSender(req *http.Request) (*http.Response, error)

SummarizeForResourceGroupSender sends the SummarizeForResourceGroup request. The method will close the http.Response Body if it receives an error.

func (PolicyStatesClient) SummarizeForResourcePreparer Uses

func (client PolicyStatesClient) SummarizeForResourcePreparer(ctx context.Context, resourceID string, top *int32, from *date.Time, toParameter *date.Time, filter string) (*http.Request, error)

SummarizeForResourcePreparer prepares the SummarizeForResource request.

func (PolicyStatesClient) SummarizeForResourceResponder Uses

func (client PolicyStatesClient) SummarizeForResourceResponder(resp *http.Response) (result SummarizeResults, err error)

SummarizeForResourceResponder handles the response to the SummarizeForResource request. The method always closes the http.Response Body.

func (PolicyStatesClient) SummarizeForResourceSender Uses

func (client PolicyStatesClient) SummarizeForResourceSender(req *http.Request) (*http.Response, error)

SummarizeForResourceSender sends the SummarizeForResource request. The method will close the http.Response Body if it receives an error.

func (PolicyStatesClient) SummarizeForSubscription Uses

func (client PolicyStatesClient) SummarizeForSubscription(ctx context.Context, subscriptionID string, top *int32, from *date.Time, toParameter *date.Time, filter string) (result SummarizeResults, err error)

SummarizeForSubscription summarizes policy states for the resources under the subscription. Parameters: subscriptionID - microsoft Azure subscription ID. top - maximum number of records to return. from - ISO 8601 formatted timestamp specifying the start time of the interval to query. When not specified, the service uses ($to - 1-day). toParameter - ISO 8601 formatted timestamp specifying the end time of the interval to query. When not specified, the service uses request time. filter - oData filter expression.

func (PolicyStatesClient) SummarizeForSubscriptionLevelPolicyAssignment Uses

func (client PolicyStatesClient) SummarizeForSubscriptionLevelPolicyAssignment(ctx context.Context, subscriptionID string, policyAssignmentName string, top *int32, from *date.Time, toParameter *date.Time, filter string) (result SummarizeResults, err error)

SummarizeForSubscriptionLevelPolicyAssignment summarizes policy states for the subscription level policy assignment. Parameters: subscriptionID - microsoft Azure subscription ID. policyAssignmentName - policy assignment name. top - maximum number of records to return. from - ISO 8601 formatted timestamp specifying the start time of the interval to query. When not specified, the service uses ($to - 1-day). toParameter - ISO 8601 formatted timestamp specifying the end time of the interval to query. When not specified, the service uses request time. filter - oData filter expression.

func (PolicyStatesClient) SummarizeForSubscriptionLevelPolicyAssignmentPreparer Uses

func (client PolicyStatesClient) SummarizeForSubscriptionLevelPolicyAssignmentPreparer(ctx context.Context, subscriptionID string, policyAssignmentName string, top *int32, from *date.Time, toParameter *date.Time, filter string) (*http.Request, error)

SummarizeForSubscriptionLevelPolicyAssignmentPreparer prepares the SummarizeForSubscriptionLevelPolicyAssignment request.

func (PolicyStatesClient) SummarizeForSubscriptionLevelPolicyAssignmentResponder Uses

func (client PolicyStatesClient) SummarizeForSubscriptionLevelPolicyAssignmentResponder(resp *http.Response) (result SummarizeResults, err error)

SummarizeForSubscriptionLevelPolicyAssignmentResponder handles the response to the SummarizeForSubscriptionLevelPolicyAssignment request. The method always closes the http.Response Body.

func (PolicyStatesClient) SummarizeForSubscriptionLevelPolicyAssignmentSender Uses

func (client PolicyStatesClient) SummarizeForSubscriptionLevelPolicyAssignmentSender(req *http.Request) (*http.Response, error)

SummarizeForSubscriptionLevelPolicyAssignmentSender sends the SummarizeForSubscriptionLevelPolicyAssignment request. The method will close the http.Response Body if it receives an error.

func (PolicyStatesClient) SummarizeForSubscriptionPreparer Uses

func (client PolicyStatesClient) SummarizeForSubscriptionPreparer(ctx context.Context, subscriptionID string, top *int32, from *date.Time, toParameter *date.Time, filter string) (*http.Request, error)

SummarizeForSubscriptionPreparer prepares the SummarizeForSubscription request.

func (PolicyStatesClient) SummarizeForSubscriptionResponder Uses

func (client PolicyStatesClient) SummarizeForSubscriptionResponder(resp *http.Response) (result SummarizeResults, err error)

SummarizeForSubscriptionResponder handles the response to the SummarizeForSubscription request. The method always closes the http.Response Body.

func (PolicyStatesClient) SummarizeForSubscriptionSender Uses

func (client PolicyStatesClient) SummarizeForSubscriptionSender(req *http.Request) (*http.Response, error)

SummarizeForSubscriptionSender sends the SummarizeForSubscription request. The method will close the http.Response Body if it receives an error.

type PolicyStatesQueryResults Uses

type PolicyStatesQueryResults struct {
    autorest.Response `json:"-"`
    // OdataContext - OData context string; used by OData clients to resolve type information based on metadata.
    OdataContext *string `json:"@odata.context,omitempty"`
    // OdataCount - OData entity count; represents the number of policy state records returned.
    OdataCount *int32 `json:"@odata.count,omitempty"`
    // Value - Query results.
    Value *[]PolicyState `json:"value,omitempty"`
}

PolicyStatesQueryResults query results.

type PolicyStatesResource Uses

type PolicyStatesResource string

PolicyStatesResource enumerates the values for policy states resource.

const (
    // Default ...
    Default PolicyStatesResource = "default"
    // Latest ...
    Latest PolicyStatesResource = "latest"
)

func PossiblePolicyStatesResourceValues Uses

func PossiblePolicyStatesResourceValues() []PolicyStatesResource

PossiblePolicyStatesResourceValues returns an array of possible values for the PolicyStatesResource const type.

type QueryFailure Uses

type QueryFailure struct {
    // Error - Error definition.
    Error *QueryFailureError `json:"error,omitempty"`
}

QueryFailure error response.

type QueryFailureError Uses

type QueryFailureError struct {
    // Code - Service specific error code which serves as the substatus for the HTTP error code.
    Code *string `json:"code,omitempty"`
    // Message - Description of the error.
    Message *string `json:"message,omitempty"`
}

QueryFailureError error definition.

type String Uses

type String struct {
    autorest.Response `json:"-"`
    Value             *string `json:"value,omitempty"`
}

String ...

type SummarizeResults Uses

type SummarizeResults struct {
    autorest.Response `json:"-"`
    // OdataContext - OData context string; used by OData clients to resolve type information based on metadata.
    OdataContext *string `json:"@odata.context,omitempty"`
    // OdataCount - OData entity count; represents the number of summaries returned; always set to 1.
    OdataCount *int32 `json:"@odata.count,omitempty"`
    // Value - Summarize action results.
    Value *[]Summary `json:"value,omitempty"`
}

SummarizeResults summarize action results.

type Summary Uses

type Summary struct {
    // OdataID - OData entity ID; always set to null since summaries do not have an entity ID.
    OdataID *string `json:"@odata.id,omitempty"`
    // OdataContext - OData context string; used by OData clients to resolve type information based on metadata.
    OdataContext *string `json:"@odata.context,omitempty"`
    // Results - Non-compliance summary for all policy assignments.
    Results *SummaryResults `json:"results,omitempty"`
    // PolicyAssignments - Policy assignments summary.
    PolicyAssignments *[]PolicyAssignmentSummary `json:"policyAssignments,omitempty"`
}

Summary summary results.

type SummaryResults Uses

type SummaryResults struct {
    // QueryResultsURI - HTTP POST URI for queryResults action on Microsoft.PolicyInsights to retrieve raw results for the non-compliance summary.
    QueryResultsURI *string `json:"queryResultsUri,omitempty"`
    // NonCompliantResources - Number of non-compliant resources.
    NonCompliantResources *int32 `json:"nonCompliantResources,omitempty"`
    // NonCompliantPolicies - Number of non-compliant policies.
    NonCompliantPolicies *int32 `json:"nonCompliantPolicies,omitempty"`
}

SummaryResults non-compliance summary on a particular summary level.

Directories

PathSynopsis
policyinsightsapi

Package policyinsights imports 9 packages (graph) and is imported by 4 packages. Updated 2019-08-22. Refresh now. Tools for package owners.