policystates

package
v0.20241118.1115603 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 18, 2024 License: MPL-2.0 Imports: 15 Imported by: 1

README

github.com/hashicorp/go-azure-sdk/resource-manager/policyinsights/2024-10-01/policystates Documentation

The policystates SDK allows for interaction with Azure Resource Manager policyinsights (API Version 2024-10-01).

This readme covers example usages, but further information on using this SDK can be found in the project root.

Import Path

import "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids"
import "github.com/hashicorp/go-azure-sdk/resource-manager/policyinsights/2024-10-01/policystates"

Client Initialization

client := policystates.NewPolicyStatesClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: PolicyStatesClient.ListQueryResultsForManagementGroup

ctx := context.TODO()
id := policystates.NewProviders2PolicyStatePolicyStatesResourceID("managementGroupName", "default")

// alternatively `client.ListQueryResultsForManagementGroup(ctx, id, policystates.DefaultListQueryResultsForManagementGroupOperationOptions())` can be used to do batched pagination
items, err := client.ListQueryResultsForManagementGroupComplete(ctx, id, policystates.DefaultListQueryResultsForManagementGroupOperationOptions())
if err != nil {
	// handle the error
}
for _, item := range items {
	// do something
}

Example Usage: PolicyStatesClient.ListQueryResultsForPolicyDefinition

ctx := context.TODO()
id := policystates.NewPolicyDefinitionProviders2PolicyStatePolicyStatesResourceID("12345678-1234-9876-4563-123456789012", "policyDefinitionName", "default")

// alternatively `client.ListQueryResultsForPolicyDefinition(ctx, id, policystates.DefaultListQueryResultsForPolicyDefinitionOperationOptions())` can be used to do batched pagination
items, err := client.ListQueryResultsForPolicyDefinitionComplete(ctx, id, policystates.DefaultListQueryResultsForPolicyDefinitionOperationOptions())
if err != nil {
	// handle the error
}
for _, item := range items {
	// do something
}

Example Usage: PolicyStatesClient.ListQueryResultsForPolicySetDefinition

ctx := context.TODO()
id := policystates.NewPolicySetDefinitionProviders2PolicyStatePolicyStatesResourceID("12345678-1234-9876-4563-123456789012", "policySetDefinitionName", "default")

// alternatively `client.ListQueryResultsForPolicySetDefinition(ctx, id, policystates.DefaultListQueryResultsForPolicySetDefinitionOperationOptions())` can be used to do batched pagination
items, err := client.ListQueryResultsForPolicySetDefinitionComplete(ctx, id, policystates.DefaultListQueryResultsForPolicySetDefinitionOperationOptions())
if err != nil {
	// handle the error
}
for _, item := range items {
	// do something
}

Example Usage: PolicyStatesClient.ListQueryResultsForResource

ctx := context.TODO()
id := policystates.NewScopedPolicyStatesResourceID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "default")

// alternatively `client.ListQueryResultsForResource(ctx, id, policystates.DefaultListQueryResultsForResourceOperationOptions())` can be used to do batched pagination
items, err := client.ListQueryResultsForResourceComplete(ctx, id, policystates.DefaultListQueryResultsForResourceOperationOptions())
if err != nil {
	// handle the error
}
for _, item := range items {
	// do something
}

Example Usage: PolicyStatesClient.ListQueryResultsForResourceGroup

ctx := context.TODO()
id := policystates.NewPolicyStatePolicyStatesResourceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "default")

// alternatively `client.ListQueryResultsForResourceGroup(ctx, id, policystates.DefaultListQueryResultsForResourceGroupOperationOptions())` can be used to do batched pagination
items, err := client.ListQueryResultsForResourceGroupComplete(ctx, id, policystates.DefaultListQueryResultsForResourceGroupOperationOptions())
if err != nil {
	// handle the error
}
for _, item := range items {
	// do something
}

Example Usage: PolicyStatesClient.ListQueryResultsForResourceGroupLevelPolicyAssignment

ctx := context.TODO()
id := policystates.NewAuthorizationNamespacePolicyAssignmentProviders2PolicyStatePolicyStatesResourceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "policyAssignmentName", "default")

// alternatively `client.ListQueryResultsForResourceGroupLevelPolicyAssignment(ctx, id, policystates.DefaultListQueryResultsForResourceGroupLevelPolicyAssignmentOperationOptions())` can be used to do batched pagination
items, err := client.ListQueryResultsForResourceGroupLevelPolicyAssignmentComplete(ctx, id, policystates.DefaultListQueryResultsForResourceGroupLevelPolicyAssignmentOperationOptions())
if err != nil {
	// handle the error
}
for _, item := range items {
	// do something
}

Example Usage: PolicyStatesClient.ListQueryResultsForSubscription

ctx := context.TODO()
id := policystates.NewPolicyStatesResourceID("12345678-1234-9876-4563-123456789012", "default")

// alternatively `client.ListQueryResultsForSubscription(ctx, id, policystates.DefaultListQueryResultsForSubscriptionOperationOptions())` can be used to do batched pagination
items, err := client.ListQueryResultsForSubscriptionComplete(ctx, id, policystates.DefaultListQueryResultsForSubscriptionOperationOptions())
if err != nil {
	// handle the error
}
for _, item := range items {
	// do something
}

Example Usage: PolicyStatesClient.ListQueryResultsForSubscriptionLevelPolicyAssignment

ctx := context.TODO()
id := policystates.NewPolicyAssignmentProviders2PolicyStatePolicyStatesResourceID("12345678-1234-9876-4563-123456789012", "policyAssignmentName", "default")

// alternatively `client.ListQueryResultsForSubscriptionLevelPolicyAssignment(ctx, id, policystates.DefaultListQueryResultsForSubscriptionLevelPolicyAssignmentOperationOptions())` can be used to do batched pagination
items, err := client.ListQueryResultsForSubscriptionLevelPolicyAssignmentComplete(ctx, id, policystates.DefaultListQueryResultsForSubscriptionLevelPolicyAssignmentOperationOptions())
if err != nil {
	// handle the error
}
for _, item := range items {
	// do something
}

Example Usage: PolicyStatesClient.SummarizeForManagementGroup

ctx := context.TODO()
id := policystates.NewManagementGroupID("managementGroupId")

read, err := client.SummarizeForManagementGroup(ctx, id, policystates.DefaultSummarizeForManagementGroupOperationOptions())
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: PolicyStatesClient.SummarizeForPolicyDefinition

ctx := context.TODO()
id := policystates.NewPolicyDefinitionID("12345678-1234-9876-4563-123456789012", "policyDefinitionName")

read, err := client.SummarizeForPolicyDefinition(ctx, id, policystates.DefaultSummarizeForPolicyDefinitionOperationOptions())
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: PolicyStatesClient.SummarizeForPolicySetDefinition

ctx := context.TODO()
id := policystates.NewPolicySetDefinitionID("12345678-1234-9876-4563-123456789012", "policySetDefinitionName")

read, err := client.SummarizeForPolicySetDefinition(ctx, id, policystates.DefaultSummarizeForPolicySetDefinitionOperationOptions())
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: PolicyStatesClient.SummarizeForResource

ctx := context.TODO()
id := commonids.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group")

read, err := client.SummarizeForResource(ctx, id, policystates.DefaultSummarizeForResourceOperationOptions())
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: PolicyStatesClient.SummarizeForResourceGroup

ctx := context.TODO()
id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group")

read, err := client.SummarizeForResourceGroup(ctx, id, policystates.DefaultSummarizeForResourceGroupOperationOptions())
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: PolicyStatesClient.SummarizeForResourceGroupLevelPolicyAssignment

ctx := context.TODO()
id := policystates.NewAuthorizationNamespacePolicyAssignmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "policyAssignmentName")

read, err := client.SummarizeForResourceGroupLevelPolicyAssignment(ctx, id, policystates.DefaultSummarizeForResourceGroupLevelPolicyAssignmentOperationOptions())
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: PolicyStatesClient.SummarizeForSubscription

ctx := context.TODO()
id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012")

read, err := client.SummarizeForSubscription(ctx, id, policystates.DefaultSummarizeForSubscriptionOperationOptions())
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: PolicyStatesClient.SummarizeForSubscriptionLevelPolicyAssignment

ctx := context.TODO()
id := policystates.NewPolicyAssignmentID("12345678-1234-9876-4563-123456789012", "policyAssignmentName")

read, err := client.SummarizeForSubscriptionLevelPolicyAssignment(ctx, id, policystates.DefaultSummarizeForSubscriptionLevelPolicyAssignmentOperationOptions())
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: PolicyStatesClient.TriggerResourceGroupEvaluation

ctx := context.TODO()
id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group")

if err := client.TriggerResourceGroupEvaluationThenPoll(ctx, id); err != nil {
	// handle the error
}

Example Usage: PolicyStatesClient.TriggerSubscriptionEvaluation

ctx := context.TODO()
id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012")

if err := client.TriggerSubscriptionEvaluationThenPoll(ctx, id); err != nil {
	// handle the error
}

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PossibleValuesForPolicyStatesResource

func PossibleValuesForPolicyStatesResource() []string

func ValidateAuthorizationNamespacePolicyAssignmentID

func ValidateAuthorizationNamespacePolicyAssignmentID(input interface{}, key string) (warnings []string, errors []error)

ValidateAuthorizationNamespacePolicyAssignmentID checks that 'input' can be parsed as a Authorization Namespace Policy Assignment ID

func ValidateAuthorizationNamespacePolicyAssignmentProviders2PolicyStatePolicyStatesResourceID

func ValidateAuthorizationNamespacePolicyAssignmentProviders2PolicyStatePolicyStatesResourceID(input interface{}, key string) (warnings []string, errors []error)

ValidateAuthorizationNamespacePolicyAssignmentProviders2PolicyStatePolicyStatesResourceID checks that 'input' can be parsed as a Authorization Namespace Policy Assignment Providers 2 Policy State Policy States Resource ID

func ValidateManagementGroupID

func ValidateManagementGroupID(input interface{}, key string) (warnings []string, errors []error)

ValidateManagementGroupID checks that 'input' can be parsed as a Management Group ID

func ValidatePolicyAssignmentID

func ValidatePolicyAssignmentID(input interface{}, key string) (warnings []string, errors []error)

ValidatePolicyAssignmentID checks that 'input' can be parsed as a Policy Assignment ID

func ValidatePolicyAssignmentProviders2PolicyStatePolicyStatesResourceID

func ValidatePolicyAssignmentProviders2PolicyStatePolicyStatesResourceID(input interface{}, key string) (warnings []string, errors []error)

ValidatePolicyAssignmentProviders2PolicyStatePolicyStatesResourceID checks that 'input' can be parsed as a Policy Assignment Providers 2 Policy State Policy States Resource ID

func ValidatePolicyDefinitionID

func ValidatePolicyDefinitionID(input interface{}, key string) (warnings []string, errors []error)

ValidatePolicyDefinitionID checks that 'input' can be parsed as a Policy Definition ID

func ValidatePolicyDefinitionProviders2PolicyStatePolicyStatesResourceID

func ValidatePolicyDefinitionProviders2PolicyStatePolicyStatesResourceID(input interface{}, key string) (warnings []string, errors []error)

ValidatePolicyDefinitionProviders2PolicyStatePolicyStatesResourceID checks that 'input' can be parsed as a Policy Definition Providers 2 Policy State Policy States Resource ID

func ValidatePolicySetDefinitionID

func ValidatePolicySetDefinitionID(input interface{}, key string) (warnings []string, errors []error)

ValidatePolicySetDefinitionID checks that 'input' can be parsed as a Policy Set Definition ID

func ValidatePolicySetDefinitionProviders2PolicyStatePolicyStatesResourceID

func ValidatePolicySetDefinitionProviders2PolicyStatePolicyStatesResourceID(input interface{}, key string) (warnings []string, errors []error)

ValidatePolicySetDefinitionProviders2PolicyStatePolicyStatesResourceID checks that 'input' can be parsed as a Policy Set Definition Providers 2 Policy State Policy States Resource ID

func ValidatePolicyStatePolicyStatesResourceID

func ValidatePolicyStatePolicyStatesResourceID(input interface{}, key string) (warnings []string, errors []error)

ValidatePolicyStatePolicyStatesResourceID checks that 'input' can be parsed as a Policy State Policy States Resource ID

func ValidatePolicyStatesResourceID

func ValidatePolicyStatesResourceID(input interface{}, key string) (warnings []string, errors []error)

ValidatePolicyStatesResourceID checks that 'input' can be parsed as a Policy States Resource ID

func ValidateProviders2PolicyStatePolicyStatesResourceID

func ValidateProviders2PolicyStatePolicyStatesResourceID(input interface{}, key string) (warnings []string, errors []error)

ValidateProviders2PolicyStatePolicyStatesResourceID checks that 'input' can be parsed as a Providers 2 Policy State Policy States Resource ID

func ValidateScopedPolicyStatesResourceID

func ValidateScopedPolicyStatesResourceID(input interface{}, key string) (warnings []string, errors []error)

ValidateScopedPolicyStatesResourceID checks that 'input' can be parsed as a Scoped Policy States Resource ID

Types

type AuthorizationNamespacePolicyAssignmentId

type AuthorizationNamespacePolicyAssignmentId struct {
	SubscriptionId       string
	ResourceGroupName    string
	PolicyAssignmentName string
}

AuthorizationNamespacePolicyAssignmentId is a struct representing the Resource ID for a Authorization Namespace Policy Assignment

func NewAuthorizationNamespacePolicyAssignmentID

func NewAuthorizationNamespacePolicyAssignmentID(subscriptionId string, resourceGroupName string, policyAssignmentName string) AuthorizationNamespacePolicyAssignmentId

NewAuthorizationNamespacePolicyAssignmentID returns a new AuthorizationNamespacePolicyAssignmentId struct

func ParseAuthorizationNamespacePolicyAssignmentID

func ParseAuthorizationNamespacePolicyAssignmentID(input string) (*AuthorizationNamespacePolicyAssignmentId, error)

ParseAuthorizationNamespacePolicyAssignmentID parses 'input' into a AuthorizationNamespacePolicyAssignmentId

func ParseAuthorizationNamespacePolicyAssignmentIDInsensitively

func ParseAuthorizationNamespacePolicyAssignmentIDInsensitively(input string) (*AuthorizationNamespacePolicyAssignmentId, error)

ParseAuthorizationNamespacePolicyAssignmentIDInsensitively parses 'input' case-insensitively into a AuthorizationNamespacePolicyAssignmentId note: this method should only be used for API response data and not user input

func (*AuthorizationNamespacePolicyAssignmentId) FromParseResult

func (AuthorizationNamespacePolicyAssignmentId) ID

ID returns the formatted Authorization Namespace Policy Assignment ID

func (AuthorizationNamespacePolicyAssignmentId) Segments

Segments returns a slice of Resource ID Segments which comprise this Authorization Namespace Policy Assignment ID

func (AuthorizationNamespacePolicyAssignmentId) String

String returns a human-readable description of this Authorization Namespace Policy Assignment ID

type AuthorizationNamespacePolicyAssignmentProviders2PolicyStatePolicyStatesResourceId

type AuthorizationNamespacePolicyAssignmentProviders2PolicyStatePolicyStatesResourceId struct {
	SubscriptionId       string
	ResourceGroupName    string
	PolicyAssignmentName string
	PolicyStatesResource PolicyStatesResource
}

AuthorizationNamespacePolicyAssignmentProviders2PolicyStatePolicyStatesResourceId is a struct representing the Resource ID for a Authorization Namespace Policy Assignment Providers 2 Policy State Policy States Resource

func NewAuthorizationNamespacePolicyAssignmentProviders2PolicyStatePolicyStatesResourceID

func NewAuthorizationNamespacePolicyAssignmentProviders2PolicyStatePolicyStatesResourceID(subscriptionId string, resourceGroupName string, policyAssignmentName string, policyStatesResource PolicyStatesResource) AuthorizationNamespacePolicyAssignmentProviders2PolicyStatePolicyStatesResourceId

NewAuthorizationNamespacePolicyAssignmentProviders2PolicyStatePolicyStatesResourceID returns a new AuthorizationNamespacePolicyAssignmentProviders2PolicyStatePolicyStatesResourceId struct

func ParseAuthorizationNamespacePolicyAssignmentProviders2PolicyStatePolicyStatesResourceID

func ParseAuthorizationNamespacePolicyAssignmentProviders2PolicyStatePolicyStatesResourceID(input string) (*AuthorizationNamespacePolicyAssignmentProviders2PolicyStatePolicyStatesResourceId, error)

ParseAuthorizationNamespacePolicyAssignmentProviders2PolicyStatePolicyStatesResourceID parses 'input' into a AuthorizationNamespacePolicyAssignmentProviders2PolicyStatePolicyStatesResourceId

func ParseAuthorizationNamespacePolicyAssignmentProviders2PolicyStatePolicyStatesResourceIDInsensitively

func ParseAuthorizationNamespacePolicyAssignmentProviders2PolicyStatePolicyStatesResourceIDInsensitively(input string) (*AuthorizationNamespacePolicyAssignmentProviders2PolicyStatePolicyStatesResourceId, error)

ParseAuthorizationNamespacePolicyAssignmentProviders2PolicyStatePolicyStatesResourceIDInsensitively parses 'input' case-insensitively into a AuthorizationNamespacePolicyAssignmentProviders2PolicyStatePolicyStatesResourceId note: this method should only be used for API response data and not user input

func (*AuthorizationNamespacePolicyAssignmentProviders2PolicyStatePolicyStatesResourceId) FromParseResult

func (AuthorizationNamespacePolicyAssignmentProviders2PolicyStatePolicyStatesResourceId) ID

ID returns the formatted Authorization Namespace Policy Assignment Providers 2 Policy State Policy States Resource ID

func (AuthorizationNamespacePolicyAssignmentProviders2PolicyStatePolicyStatesResourceId) Segments

Segments returns a slice of Resource ID Segments which comprise this Authorization Namespace Policy Assignment Providers 2 Policy State Policy States Resource ID

func (AuthorizationNamespacePolicyAssignmentProviders2PolicyStatePolicyStatesResourceId) String

String returns a human-readable description of this Authorization Namespace Policy Assignment Providers 2 Policy State Policy States Resource ID

type ComplianceDetail

type ComplianceDetail struct {
	ComplianceState *string `json:"complianceState,omitempty"`
	Count           *int64  `json:"count,omitempty"`
}

type ComponentStateDetails

type ComponentStateDetails struct {
	ComplianceState *string `json:"complianceState,omitempty"`
	Id              *string `json:"id,omitempty"`
	Name            *string `json:"name,omitempty"`
	Timestamp       *string `json:"timestamp,omitempty"`
	Type            *string `json:"type,omitempty"`
}

func (*ComponentStateDetails) GetTimestampAsTime

func (o *ComponentStateDetails) GetTimestampAsTime() (*time.Time, error)

func (*ComponentStateDetails) SetTimestampAsTime

func (o *ComponentStateDetails) SetTimestampAsTime(input time.Time)

type ExpressionEvaluationDetails

type ExpressionEvaluationDetails struct {
	Expression      *string      `json:"expression,omitempty"`
	ExpressionKind  *string      `json:"expressionKind,omitempty"`
	ExpressionValue *interface{} `json:"expressionValue,omitempty"`
	Operator        *string      `json:"operator,omitempty"`
	Path            *string      `json:"path,omitempty"`
	Result          *string      `json:"result,omitempty"`
	TargetValue     *interface{} `json:"targetValue,omitempty"`
}

type IfNotExistsEvaluationDetails

type IfNotExistsEvaluationDetails struct {
	ResourceId     *string `json:"resourceId,omitempty"`
	TotalResources *int64  `json:"totalResources,omitempty"`
}

type ListQueryResultsForManagementGroupCompleteResult

type ListQueryResultsForManagementGroupCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []PolicyState
}

type ListQueryResultsForManagementGroupCustomPager

type ListQueryResultsForManagementGroupCustomPager struct {
	NextLink *odata.Link `json:"@odata.nextLink"`
}

type ListQueryResultsForManagementGroupOperationOptions

type ListQueryResultsForManagementGroupOperationOptions struct {
	Apply   *string
	Filter  *string
	From    *string
	Orderby *string
	Select  *string
	To      *string
	Top     *int64
}

func DefaultListQueryResultsForManagementGroupOperationOptions

func DefaultListQueryResultsForManagementGroupOperationOptions() ListQueryResultsForManagementGroupOperationOptions

func (ListQueryResultsForManagementGroupOperationOptions) ToHeaders

func (ListQueryResultsForManagementGroupOperationOptions) ToOData

func (ListQueryResultsForManagementGroupOperationOptions) ToQuery

type ListQueryResultsForManagementGroupOperationResponse

type ListQueryResultsForManagementGroupOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]PolicyState
}

type ListQueryResultsForPolicyDefinitionCompleteResult

type ListQueryResultsForPolicyDefinitionCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []PolicyState
}

type ListQueryResultsForPolicyDefinitionCustomPager

type ListQueryResultsForPolicyDefinitionCustomPager struct {
	NextLink *odata.Link `json:"@odata.nextLink"`
}

type ListQueryResultsForPolicyDefinitionOperationOptions

type ListQueryResultsForPolicyDefinitionOperationOptions struct {
	Apply   *string
	Filter  *string
	From    *string
	Orderby *string
	Select  *string
	To      *string
	Top     *int64
}

func DefaultListQueryResultsForPolicyDefinitionOperationOptions

func DefaultListQueryResultsForPolicyDefinitionOperationOptions() ListQueryResultsForPolicyDefinitionOperationOptions

func (ListQueryResultsForPolicyDefinitionOperationOptions) ToHeaders

func (ListQueryResultsForPolicyDefinitionOperationOptions) ToOData

func (ListQueryResultsForPolicyDefinitionOperationOptions) ToQuery

type ListQueryResultsForPolicyDefinitionOperationResponse

type ListQueryResultsForPolicyDefinitionOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]PolicyState
}

type ListQueryResultsForPolicySetDefinitionCompleteResult

type ListQueryResultsForPolicySetDefinitionCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []PolicyState
}

type ListQueryResultsForPolicySetDefinitionCustomPager

type ListQueryResultsForPolicySetDefinitionCustomPager struct {
	NextLink *odata.Link `json:"@odata.nextLink"`
}

type ListQueryResultsForPolicySetDefinitionOperationOptions

type ListQueryResultsForPolicySetDefinitionOperationOptions struct {
	Apply   *string
	Filter  *string
	From    *string
	Orderby *string
	Select  *string
	To      *string
	Top     *int64
}

func DefaultListQueryResultsForPolicySetDefinitionOperationOptions

func DefaultListQueryResultsForPolicySetDefinitionOperationOptions() ListQueryResultsForPolicySetDefinitionOperationOptions

func (ListQueryResultsForPolicySetDefinitionOperationOptions) ToHeaders

func (ListQueryResultsForPolicySetDefinitionOperationOptions) ToOData

func (ListQueryResultsForPolicySetDefinitionOperationOptions) ToQuery

type ListQueryResultsForPolicySetDefinitionOperationResponse

type ListQueryResultsForPolicySetDefinitionOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]PolicyState
}

type ListQueryResultsForResourceCompleteResult

type ListQueryResultsForResourceCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []PolicyState
}

type ListQueryResultsForResourceCustomPager

type ListQueryResultsForResourceCustomPager struct {
	NextLink *odata.Link `json:"@odata.nextLink"`
}

type ListQueryResultsForResourceGroupCompleteResult

type ListQueryResultsForResourceGroupCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []PolicyState
}

type ListQueryResultsForResourceGroupCustomPager

type ListQueryResultsForResourceGroupCustomPager struct {
	NextLink *odata.Link `json:"@odata.nextLink"`
}

type ListQueryResultsForResourceGroupLevelPolicyAssignmentCompleteResult

type ListQueryResultsForResourceGroupLevelPolicyAssignmentCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []PolicyState
}

type ListQueryResultsForResourceGroupLevelPolicyAssignmentCustomPager

type ListQueryResultsForResourceGroupLevelPolicyAssignmentCustomPager struct {
	NextLink *odata.Link `json:"@odata.nextLink"`
}

type ListQueryResultsForResourceGroupLevelPolicyAssignmentOperationOptions

type ListQueryResultsForResourceGroupLevelPolicyAssignmentOperationOptions struct {
	Apply   *string
	Filter  *string
	From    *string
	Orderby *string
	Select  *string
	To      *string
	Top     *int64
}

func (ListQueryResultsForResourceGroupLevelPolicyAssignmentOperationOptions) ToHeaders

func (ListQueryResultsForResourceGroupLevelPolicyAssignmentOperationOptions) ToOData

func (ListQueryResultsForResourceGroupLevelPolicyAssignmentOperationOptions) ToQuery

type ListQueryResultsForResourceGroupLevelPolicyAssignmentOperationResponse

type ListQueryResultsForResourceGroupLevelPolicyAssignmentOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]PolicyState
}

type ListQueryResultsForResourceGroupOperationOptions

type ListQueryResultsForResourceGroupOperationOptions struct {
	Apply   *string
	Filter  *string
	From    *string
	Orderby *string
	Select  *string
	To      *string
	Top     *int64
}

func DefaultListQueryResultsForResourceGroupOperationOptions

func DefaultListQueryResultsForResourceGroupOperationOptions() ListQueryResultsForResourceGroupOperationOptions

func (ListQueryResultsForResourceGroupOperationOptions) ToHeaders

func (ListQueryResultsForResourceGroupOperationOptions) ToOData

func (ListQueryResultsForResourceGroupOperationOptions) ToQuery

type ListQueryResultsForResourceGroupOperationResponse

type ListQueryResultsForResourceGroupOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]PolicyState
}

type ListQueryResultsForResourceOperationOptions

type ListQueryResultsForResourceOperationOptions struct {
	Apply   *string
	Expand  *string
	Filter  *string
	From    *string
	Orderby *string
	Select  *string
	To      *string
	Top     *int64
}

func DefaultListQueryResultsForResourceOperationOptions

func DefaultListQueryResultsForResourceOperationOptions() ListQueryResultsForResourceOperationOptions

func (ListQueryResultsForResourceOperationOptions) ToHeaders

func (ListQueryResultsForResourceOperationOptions) ToOData

func (ListQueryResultsForResourceOperationOptions) ToQuery

type ListQueryResultsForResourceOperationResponse

type ListQueryResultsForResourceOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]PolicyState
}

type ListQueryResultsForSubscriptionCompleteResult

type ListQueryResultsForSubscriptionCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []PolicyState
}

type ListQueryResultsForSubscriptionCustomPager

type ListQueryResultsForSubscriptionCustomPager struct {
	NextLink *odata.Link `json:"@odata.nextLink"`
}

type ListQueryResultsForSubscriptionLevelPolicyAssignmentCompleteResult

type ListQueryResultsForSubscriptionLevelPolicyAssignmentCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []PolicyState
}

type ListQueryResultsForSubscriptionLevelPolicyAssignmentCustomPager

type ListQueryResultsForSubscriptionLevelPolicyAssignmentCustomPager struct {
	NextLink *odata.Link `json:"@odata.nextLink"`
}

type ListQueryResultsForSubscriptionLevelPolicyAssignmentOperationOptions

type ListQueryResultsForSubscriptionLevelPolicyAssignmentOperationOptions struct {
	Apply   *string
	Filter  *string
	From    *string
	Orderby *string
	Select  *string
	To      *string
	Top     *int64
}

func (ListQueryResultsForSubscriptionLevelPolicyAssignmentOperationOptions) ToHeaders

func (ListQueryResultsForSubscriptionLevelPolicyAssignmentOperationOptions) ToOData

func (ListQueryResultsForSubscriptionLevelPolicyAssignmentOperationOptions) ToQuery

type ListQueryResultsForSubscriptionLevelPolicyAssignmentOperationResponse

type ListQueryResultsForSubscriptionLevelPolicyAssignmentOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]PolicyState
}

type ListQueryResultsForSubscriptionOperationOptions

type ListQueryResultsForSubscriptionOperationOptions struct {
	Apply   *string
	Filter  *string
	From    *string
	Orderby *string
	Select  *string
	To      *string
	Top     *int64
}

func DefaultListQueryResultsForSubscriptionOperationOptions

func DefaultListQueryResultsForSubscriptionOperationOptions() ListQueryResultsForSubscriptionOperationOptions

func (ListQueryResultsForSubscriptionOperationOptions) ToHeaders

func (ListQueryResultsForSubscriptionOperationOptions) ToOData

func (ListQueryResultsForSubscriptionOperationOptions) ToQuery

type ListQueryResultsForSubscriptionOperationResponse

type ListQueryResultsForSubscriptionOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]PolicyState
}

type ManagementGroupId

type ManagementGroupId struct {
	ManagementGroupId string
}

ManagementGroupId is a struct representing the Resource ID for a Management Group

func NewManagementGroupID

func NewManagementGroupID(managementGroupId string) ManagementGroupId

NewManagementGroupID returns a new ManagementGroupId struct

func ParseManagementGroupID

func ParseManagementGroupID(input string) (*ManagementGroupId, error)

ParseManagementGroupID parses 'input' into a ManagementGroupId

func ParseManagementGroupIDInsensitively

func ParseManagementGroupIDInsensitively(input string) (*ManagementGroupId, error)

ParseManagementGroupIDInsensitively parses 'input' case-insensitively into a ManagementGroupId note: this method should only be used for API response data and not user input

func (*ManagementGroupId) FromParseResult

func (id *ManagementGroupId) FromParseResult(input resourceids.ParseResult) error

func (ManagementGroupId) ID

func (id ManagementGroupId) ID() string

ID returns the formatted Management Group ID

func (ManagementGroupId) Segments

func (id ManagementGroupId) Segments() []resourceids.Segment

Segments returns a slice of Resource ID Segments which comprise this Management Group ID

func (ManagementGroupId) String

func (id ManagementGroupId) String() string

String returns a human-readable description of this Management Group ID

type PolicyAssignmentId

type PolicyAssignmentId struct {
	SubscriptionId       string
	PolicyAssignmentName string
}

PolicyAssignmentId is a struct representing the Resource ID for a Policy Assignment

func NewPolicyAssignmentID

func NewPolicyAssignmentID(subscriptionId string, policyAssignmentName string) PolicyAssignmentId

NewPolicyAssignmentID returns a new PolicyAssignmentId struct

func ParsePolicyAssignmentID

func ParsePolicyAssignmentID(input string) (*PolicyAssignmentId, error)

ParsePolicyAssignmentID parses 'input' into a PolicyAssignmentId

func ParsePolicyAssignmentIDInsensitively

func ParsePolicyAssignmentIDInsensitively(input string) (*PolicyAssignmentId, error)

ParsePolicyAssignmentIDInsensitively parses 'input' case-insensitively into a PolicyAssignmentId note: this method should only be used for API response data and not user input

func (*PolicyAssignmentId) FromParseResult

func (id *PolicyAssignmentId) FromParseResult(input resourceids.ParseResult) error

func (PolicyAssignmentId) ID

func (id PolicyAssignmentId) ID() string

ID returns the formatted Policy Assignment ID

func (PolicyAssignmentId) Segments

func (id PolicyAssignmentId) Segments() []resourceids.Segment

Segments returns a slice of Resource ID Segments which comprise this Policy Assignment ID

func (PolicyAssignmentId) String

func (id PolicyAssignmentId) String() string

String returns a human-readable description of this Policy Assignment ID

type PolicyAssignmentProviders2PolicyStatePolicyStatesResourceId

type PolicyAssignmentProviders2PolicyStatePolicyStatesResourceId struct {
	SubscriptionId       string
	PolicyAssignmentName string
	PolicyStatesResource PolicyStatesResource
}

PolicyAssignmentProviders2PolicyStatePolicyStatesResourceId is a struct representing the Resource ID for a Policy Assignment Providers 2 Policy State Policy States Resource

func NewPolicyAssignmentProviders2PolicyStatePolicyStatesResourceID

func NewPolicyAssignmentProviders2PolicyStatePolicyStatesResourceID(subscriptionId string, policyAssignmentName string, policyStatesResource PolicyStatesResource) PolicyAssignmentProviders2PolicyStatePolicyStatesResourceId

NewPolicyAssignmentProviders2PolicyStatePolicyStatesResourceID returns a new PolicyAssignmentProviders2PolicyStatePolicyStatesResourceId struct

func ParsePolicyAssignmentProviders2PolicyStatePolicyStatesResourceID

func ParsePolicyAssignmentProviders2PolicyStatePolicyStatesResourceID(input string) (*PolicyAssignmentProviders2PolicyStatePolicyStatesResourceId, error)

ParsePolicyAssignmentProviders2PolicyStatePolicyStatesResourceID parses 'input' into a PolicyAssignmentProviders2PolicyStatePolicyStatesResourceId

func ParsePolicyAssignmentProviders2PolicyStatePolicyStatesResourceIDInsensitively

func ParsePolicyAssignmentProviders2PolicyStatePolicyStatesResourceIDInsensitively(input string) (*PolicyAssignmentProviders2PolicyStatePolicyStatesResourceId, error)

ParsePolicyAssignmentProviders2PolicyStatePolicyStatesResourceIDInsensitively parses 'input' case-insensitively into a PolicyAssignmentProviders2PolicyStatePolicyStatesResourceId note: this method should only be used for API response data and not user input

func (*PolicyAssignmentProviders2PolicyStatePolicyStatesResourceId) FromParseResult

func (PolicyAssignmentProviders2PolicyStatePolicyStatesResourceId) ID

ID returns the formatted Policy Assignment Providers 2 Policy State Policy States Resource ID

func (PolicyAssignmentProviders2PolicyStatePolicyStatesResourceId) Segments

Segments returns a slice of Resource ID Segments which comprise this Policy Assignment Providers 2 Policy State Policy States Resource ID

func (PolicyAssignmentProviders2PolicyStatePolicyStatesResourceId) String

String returns a human-readable description of this Policy Assignment Providers 2 Policy State Policy States Resource ID

type PolicyAssignmentSummary

type PolicyAssignmentSummary struct {
	PolicyAssignmentId    *string                    `json:"policyAssignmentId,omitempty"`
	PolicyDefinitions     *[]PolicyDefinitionSummary `json:"policyDefinitions,omitempty"`
	PolicyGroups          *[]PolicyGroupSummary      `json:"policyGroups,omitempty"`
	PolicySetDefinitionId *string                    `json:"policySetDefinitionId,omitempty"`
	Results               *SummaryResults            `json:"results,omitempty"`
}

type PolicyDefinitionId

type PolicyDefinitionId struct {
	SubscriptionId       string
	PolicyDefinitionName string
}

PolicyDefinitionId is a struct representing the Resource ID for a Policy Definition

func NewPolicyDefinitionID

func NewPolicyDefinitionID(subscriptionId string, policyDefinitionName string) PolicyDefinitionId

NewPolicyDefinitionID returns a new PolicyDefinitionId struct

func ParsePolicyDefinitionID

func ParsePolicyDefinitionID(input string) (*PolicyDefinitionId, error)

ParsePolicyDefinitionID parses 'input' into a PolicyDefinitionId

func ParsePolicyDefinitionIDInsensitively

func ParsePolicyDefinitionIDInsensitively(input string) (*PolicyDefinitionId, error)

ParsePolicyDefinitionIDInsensitively parses 'input' case-insensitively into a PolicyDefinitionId note: this method should only be used for API response data and not user input

func (*PolicyDefinitionId) FromParseResult

func (id *PolicyDefinitionId) FromParseResult(input resourceids.ParseResult) error

func (PolicyDefinitionId) ID

func (id PolicyDefinitionId) ID() string

ID returns the formatted Policy Definition ID

func (PolicyDefinitionId) Segments

func (id PolicyDefinitionId) Segments() []resourceids.Segment

Segments returns a slice of Resource ID Segments which comprise this Policy Definition ID

func (PolicyDefinitionId) String

func (id PolicyDefinitionId) String() string

String returns a human-readable description of this Policy Definition ID

type PolicyDefinitionProviders2PolicyStatePolicyStatesResourceId

type PolicyDefinitionProviders2PolicyStatePolicyStatesResourceId struct {
	SubscriptionId       string
	PolicyDefinitionName string
	PolicyStatesResource PolicyStatesResource
}

PolicyDefinitionProviders2PolicyStatePolicyStatesResourceId is a struct representing the Resource ID for a Policy Definition Providers 2 Policy State Policy States Resource

func NewPolicyDefinitionProviders2PolicyStatePolicyStatesResourceID

func NewPolicyDefinitionProviders2PolicyStatePolicyStatesResourceID(subscriptionId string, policyDefinitionName string, policyStatesResource PolicyStatesResource) PolicyDefinitionProviders2PolicyStatePolicyStatesResourceId

NewPolicyDefinitionProviders2PolicyStatePolicyStatesResourceID returns a new PolicyDefinitionProviders2PolicyStatePolicyStatesResourceId struct

func ParsePolicyDefinitionProviders2PolicyStatePolicyStatesResourceID

func ParsePolicyDefinitionProviders2PolicyStatePolicyStatesResourceID(input string) (*PolicyDefinitionProviders2PolicyStatePolicyStatesResourceId, error)

ParsePolicyDefinitionProviders2PolicyStatePolicyStatesResourceID parses 'input' into a PolicyDefinitionProviders2PolicyStatePolicyStatesResourceId

func ParsePolicyDefinitionProviders2PolicyStatePolicyStatesResourceIDInsensitively

func ParsePolicyDefinitionProviders2PolicyStatePolicyStatesResourceIDInsensitively(input string) (*PolicyDefinitionProviders2PolicyStatePolicyStatesResourceId, error)

ParsePolicyDefinitionProviders2PolicyStatePolicyStatesResourceIDInsensitively parses 'input' case-insensitively into a PolicyDefinitionProviders2PolicyStatePolicyStatesResourceId note: this method should only be used for API response data and not user input

func (*PolicyDefinitionProviders2PolicyStatePolicyStatesResourceId) FromParseResult

func (PolicyDefinitionProviders2PolicyStatePolicyStatesResourceId) ID

ID returns the formatted Policy Definition Providers 2 Policy State Policy States Resource ID

func (PolicyDefinitionProviders2PolicyStatePolicyStatesResourceId) Segments

Segments returns a slice of Resource ID Segments which comprise this Policy Definition Providers 2 Policy State Policy States Resource ID

func (PolicyDefinitionProviders2PolicyStatePolicyStatesResourceId) String

String returns a human-readable description of this Policy Definition Providers 2 Policy State Policy States Resource ID

type PolicyDefinitionSummary

type PolicyDefinitionSummary struct {
	Effect                      *string         `json:"effect,omitempty"`
	PolicyDefinitionGroupNames  *[]string       `json:"policyDefinitionGroupNames,omitempty"`
	PolicyDefinitionId          *string         `json:"policyDefinitionId,omitempty"`
	PolicyDefinitionReferenceId *string         `json:"policyDefinitionReferenceId,omitempty"`
	Results                     *SummaryResults `json:"results,omitempty"`
}

type PolicyEvaluationDetails

type PolicyEvaluationDetails struct {
	EvaluatedExpressions *[]ExpressionEvaluationDetails `json:"evaluatedExpressions,omitempty"`
	IfNotExistsDetails   *IfNotExistsEvaluationDetails  `json:"ifNotExistsDetails,omitempty"`
}

type PolicyGroupSummary

type PolicyGroupSummary struct {
	PolicyGroupName *string         `json:"policyGroupName,omitempty"`
	Results         *SummaryResults `json:"results,omitempty"`
}

type PolicySetDefinitionId

type PolicySetDefinitionId struct {
	SubscriptionId          string
	PolicySetDefinitionName string
}

PolicySetDefinitionId is a struct representing the Resource ID for a Policy Set Definition

func NewPolicySetDefinitionID

func NewPolicySetDefinitionID(subscriptionId string, policySetDefinitionName string) PolicySetDefinitionId

NewPolicySetDefinitionID returns a new PolicySetDefinitionId struct

func ParsePolicySetDefinitionID

func ParsePolicySetDefinitionID(input string) (*PolicySetDefinitionId, error)

ParsePolicySetDefinitionID parses 'input' into a PolicySetDefinitionId

func ParsePolicySetDefinitionIDInsensitively

func ParsePolicySetDefinitionIDInsensitively(input string) (*PolicySetDefinitionId, error)

ParsePolicySetDefinitionIDInsensitively parses 'input' case-insensitively into a PolicySetDefinitionId note: this method should only be used for API response data and not user input

func (*PolicySetDefinitionId) FromParseResult

func (id *PolicySetDefinitionId) FromParseResult(input resourceids.ParseResult) error

func (PolicySetDefinitionId) ID

func (id PolicySetDefinitionId) ID() string

ID returns the formatted Policy Set Definition ID

func (PolicySetDefinitionId) Segments

func (id PolicySetDefinitionId) Segments() []resourceids.Segment

Segments returns a slice of Resource ID Segments which comprise this Policy Set Definition ID

func (PolicySetDefinitionId) String

func (id PolicySetDefinitionId) String() string

String returns a human-readable description of this Policy Set Definition ID

type PolicySetDefinitionProviders2PolicyStatePolicyStatesResourceId

type PolicySetDefinitionProviders2PolicyStatePolicyStatesResourceId struct {
	SubscriptionId          string
	PolicySetDefinitionName string
	PolicyStatesResource    PolicyStatesResource
}

PolicySetDefinitionProviders2PolicyStatePolicyStatesResourceId is a struct representing the Resource ID for a Policy Set Definition Providers 2 Policy State Policy States Resource

func NewPolicySetDefinitionProviders2PolicyStatePolicyStatesResourceID

func NewPolicySetDefinitionProviders2PolicyStatePolicyStatesResourceID(subscriptionId string, policySetDefinitionName string, policyStatesResource PolicyStatesResource) PolicySetDefinitionProviders2PolicyStatePolicyStatesResourceId

NewPolicySetDefinitionProviders2PolicyStatePolicyStatesResourceID returns a new PolicySetDefinitionProviders2PolicyStatePolicyStatesResourceId struct

func ParsePolicySetDefinitionProviders2PolicyStatePolicyStatesResourceID

func ParsePolicySetDefinitionProviders2PolicyStatePolicyStatesResourceID(input string) (*PolicySetDefinitionProviders2PolicyStatePolicyStatesResourceId, error)

ParsePolicySetDefinitionProviders2PolicyStatePolicyStatesResourceID parses 'input' into a PolicySetDefinitionProviders2PolicyStatePolicyStatesResourceId

func ParsePolicySetDefinitionProviders2PolicyStatePolicyStatesResourceIDInsensitively

func ParsePolicySetDefinitionProviders2PolicyStatePolicyStatesResourceIDInsensitively(input string) (*PolicySetDefinitionProviders2PolicyStatePolicyStatesResourceId, error)

ParsePolicySetDefinitionProviders2PolicyStatePolicyStatesResourceIDInsensitively parses 'input' case-insensitively into a PolicySetDefinitionProviders2PolicyStatePolicyStatesResourceId note: this method should only be used for API response data and not user input

func (*PolicySetDefinitionProviders2PolicyStatePolicyStatesResourceId) FromParseResult

func (PolicySetDefinitionProviders2PolicyStatePolicyStatesResourceId) ID

ID returns the formatted Policy Set Definition Providers 2 Policy State Policy States Resource ID

func (PolicySetDefinitionProviders2PolicyStatePolicyStatesResourceId) Segments

Segments returns a slice of Resource ID Segments which comprise this Policy Set Definition Providers 2 Policy State Policy States Resource ID

func (PolicySetDefinitionProviders2PolicyStatePolicyStatesResourceId) String

String returns a human-readable description of this Policy Set Definition Providers 2 Policy State Policy States Resource ID

type PolicyState

type PolicyState struct {
	ComplianceState               *string                  `json:"complianceState,omitempty"`
	Components                    *[]ComponentStateDetails `json:"components,omitempty"`
	EffectiveParameters           *string                  `json:"effectiveParameters,omitempty"`
	IsCompliant                   *bool                    `json:"isCompliant,omitempty"`
	ManagementGroupIds            *string                  `json:"managementGroupIds,omitempty"`
	OdataContext                  *string                  `json:"@odata.context,omitempty"`
	OdataId                       *string                  `json:"@odata.id,omitempty"`
	PolicyAssignmentId            *string                  `json:"policyAssignmentId,omitempty"`
	PolicyAssignmentName          *string                  `json:"policyAssignmentName,omitempty"`
	PolicyAssignmentOwner         *string                  `json:"policyAssignmentOwner,omitempty"`
	PolicyAssignmentParameters    *string                  `json:"policyAssignmentParameters,omitempty"`
	PolicyAssignmentScope         *string                  `json:"policyAssignmentScope,omitempty"`
	PolicyAssignmentVersion       *string                  `json:"policyAssignmentVersion,omitempty"`
	PolicyDefinitionAction        *string                  `json:"policyDefinitionAction,omitempty"`
	PolicyDefinitionCategory      *string                  `json:"policyDefinitionCategory,omitempty"`
	PolicyDefinitionGroupNames    *[]string                `json:"policyDefinitionGroupNames,omitempty"`
	PolicyDefinitionId            *string                  `json:"policyDefinitionId,omitempty"`
	PolicyDefinitionName          *string                  `json:"policyDefinitionName,omitempty"`
	PolicyDefinitionReferenceId   *string                  `json:"policyDefinitionReferenceId,omitempty"`
	PolicyDefinitionVersion       *string                  `json:"policyDefinitionVersion,omitempty"`
	PolicyEvaluationDetails       *PolicyEvaluationDetails `json:"policyEvaluationDetails,omitempty"`
	PolicySetDefinitionCategory   *string                  `json:"policySetDefinitionCategory,omitempty"`
	PolicySetDefinitionId         *string                  `json:"policySetDefinitionId,omitempty"`
	PolicySetDefinitionName       *string                  `json:"policySetDefinitionName,omitempty"`
	PolicySetDefinitionOwner      *string                  `json:"policySetDefinitionOwner,omitempty"`
	PolicySetDefinitionParameters *string                  `json:"policySetDefinitionParameters,omitempty"`
	PolicySetDefinitionVersion    *string                  `json:"policySetDefinitionVersion,omitempty"`
	ResourceGroup                 *string                  `json:"resourceGroup,omitempty"`
	ResourceId                    *string                  `json:"resourceId,omitempty"`
	ResourceLocation              *string                  `json:"resourceLocation,omitempty"`
	ResourceTags                  *string                  `json:"resourceTags,omitempty"`
	ResourceType                  *string                  `json:"resourceType,omitempty"`
	SubscriptionId                *string                  `json:"subscriptionId,omitempty"`
	Timestamp                     *string                  `json:"timestamp,omitempty"`
}

func (*PolicyState) GetTimestampAsTime

func (o *PolicyState) GetTimestampAsTime() (*time.Time, error)

func (*PolicyState) SetTimestampAsTime

func (o *PolicyState) SetTimestampAsTime(input time.Time)

type PolicyStateOperationPredicate

type PolicyStateOperationPredicate struct {
	ComplianceState               *string
	EffectiveParameters           *string
	IsCompliant                   *bool
	ManagementGroupIds            *string
	OdataContext                  *string
	OdataId                       *string
	PolicyAssignmentId            *string
	PolicyAssignmentName          *string
	PolicyAssignmentOwner         *string
	PolicyAssignmentParameters    *string
	PolicyAssignmentScope         *string
	PolicyAssignmentVersion       *string
	PolicyDefinitionAction        *string
	PolicyDefinitionCategory      *string
	PolicyDefinitionId            *string
	PolicyDefinitionName          *string
	PolicyDefinitionReferenceId   *string
	PolicyDefinitionVersion       *string
	PolicySetDefinitionCategory   *string
	PolicySetDefinitionId         *string
	PolicySetDefinitionName       *string
	PolicySetDefinitionOwner      *string
	PolicySetDefinitionParameters *string
	PolicySetDefinitionVersion    *string
	ResourceGroup                 *string
	ResourceId                    *string
	ResourceLocation              *string
	ResourceTags                  *string
	ResourceType                  *string
	SubscriptionId                *string
	Timestamp                     *string
}

func (PolicyStateOperationPredicate) Matches

type PolicyStatePolicyStatesResourceId

type PolicyStatePolicyStatesResourceId struct {
	SubscriptionId       string
	ResourceGroupName    string
	PolicyStatesResource PolicyStatesResource
}

PolicyStatePolicyStatesResourceId is a struct representing the Resource ID for a Policy State Policy States Resource

func NewPolicyStatePolicyStatesResourceID

func NewPolicyStatePolicyStatesResourceID(subscriptionId string, resourceGroupName string, policyStatesResource PolicyStatesResource) PolicyStatePolicyStatesResourceId

NewPolicyStatePolicyStatesResourceID returns a new PolicyStatePolicyStatesResourceId struct

func ParsePolicyStatePolicyStatesResourceID

func ParsePolicyStatePolicyStatesResourceID(input string) (*PolicyStatePolicyStatesResourceId, error)

ParsePolicyStatePolicyStatesResourceID parses 'input' into a PolicyStatePolicyStatesResourceId

func ParsePolicyStatePolicyStatesResourceIDInsensitively

func ParsePolicyStatePolicyStatesResourceIDInsensitively(input string) (*PolicyStatePolicyStatesResourceId, error)

ParsePolicyStatePolicyStatesResourceIDInsensitively parses 'input' case-insensitively into a PolicyStatePolicyStatesResourceId note: this method should only be used for API response data and not user input

func (*PolicyStatePolicyStatesResourceId) FromParseResult

func (PolicyStatePolicyStatesResourceId) ID

ID returns the formatted Policy State Policy States Resource ID

func (PolicyStatePolicyStatesResourceId) Segments

Segments returns a slice of Resource ID Segments which comprise this Policy State Policy States Resource ID

func (PolicyStatePolicyStatesResourceId) String

String returns a human-readable description of this Policy State Policy States Resource ID

type PolicyStatesClient

type PolicyStatesClient struct {
	Client *resourcemanager.Client
}

func NewPolicyStatesClientWithBaseURI

func NewPolicyStatesClientWithBaseURI(sdkApi sdkEnv.Api) (*PolicyStatesClient, error)

func (PolicyStatesClient) ListQueryResultsForManagementGroup

ListQueryResultsForManagementGroup ...

func (PolicyStatesClient) ListQueryResultsForManagementGroupComplete

ListQueryResultsForManagementGroupComplete retrieves all the results into a single object

func (PolicyStatesClient) ListQueryResultsForManagementGroupCompleteMatchingPredicate

ListQueryResultsForManagementGroupCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (PolicyStatesClient) ListQueryResultsForPolicyDefinitionComplete

ListQueryResultsForPolicyDefinitionComplete retrieves all the results into a single object

func (PolicyStatesClient) ListQueryResultsForPolicyDefinitionCompleteMatchingPredicate

ListQueryResultsForPolicyDefinitionCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (PolicyStatesClient) ListQueryResultsForPolicySetDefinitionComplete

ListQueryResultsForPolicySetDefinitionComplete retrieves all the results into a single object

func (PolicyStatesClient) ListQueryResultsForPolicySetDefinitionCompleteMatchingPredicate

ListQueryResultsForPolicySetDefinitionCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (PolicyStatesClient) ListQueryResultsForResource

ListQueryResultsForResource ...

func (PolicyStatesClient) ListQueryResultsForResourceComplete

ListQueryResultsForResourceComplete retrieves all the results into a single object

func (PolicyStatesClient) ListQueryResultsForResourceCompleteMatchingPredicate

ListQueryResultsForResourceCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (PolicyStatesClient) ListQueryResultsForResourceGroup

ListQueryResultsForResourceGroup ...

func (PolicyStatesClient) ListQueryResultsForResourceGroupComplete

ListQueryResultsForResourceGroupComplete retrieves all the results into a single object

func (PolicyStatesClient) ListQueryResultsForResourceGroupCompleteMatchingPredicate

ListQueryResultsForResourceGroupCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (PolicyStatesClient) ListQueryResultsForResourceGroupLevelPolicyAssignmentComplete

ListQueryResultsForResourceGroupLevelPolicyAssignmentComplete retrieves all the results into a single object

func (PolicyStatesClient) ListQueryResultsForResourceGroupLevelPolicyAssignmentCompleteMatchingPredicate

ListQueryResultsForResourceGroupLevelPolicyAssignmentCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (PolicyStatesClient) ListQueryResultsForSubscription

ListQueryResultsForSubscription ...

func (PolicyStatesClient) ListQueryResultsForSubscriptionComplete

ListQueryResultsForSubscriptionComplete retrieves all the results into a single object

func (PolicyStatesClient) ListQueryResultsForSubscriptionCompleteMatchingPredicate

ListQueryResultsForSubscriptionCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (PolicyStatesClient) ListQueryResultsForSubscriptionLevelPolicyAssignmentComplete

ListQueryResultsForSubscriptionLevelPolicyAssignmentComplete retrieves all the results into a single object

func (PolicyStatesClient) ListQueryResultsForSubscriptionLevelPolicyAssignmentCompleteMatchingPredicate

ListQueryResultsForSubscriptionLevelPolicyAssignmentCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (PolicyStatesClient) SummarizeForManagementGroup

SummarizeForManagementGroup ...

func (PolicyStatesClient) SummarizeForPolicyDefinition

SummarizeForPolicyDefinition ...

func (PolicyStatesClient) SummarizeForPolicySetDefinition

SummarizeForPolicySetDefinition ...

func (PolicyStatesClient) SummarizeForResource

SummarizeForResource ...

func (PolicyStatesClient) SummarizeForResourceGroup

SummarizeForResourceGroup ...

func (PolicyStatesClient) SummarizeForResourceGroupLevelPolicyAssignment

SummarizeForResourceGroupLevelPolicyAssignment ...

func (PolicyStatesClient) SummarizeForSubscription

SummarizeForSubscription ...

func (PolicyStatesClient) SummarizeForSubscriptionLevelPolicyAssignment

SummarizeForSubscriptionLevelPolicyAssignment ...

func (PolicyStatesClient) TriggerResourceGroupEvaluation

TriggerResourceGroupEvaluation ...

func (PolicyStatesClient) TriggerResourceGroupEvaluationThenPoll

func (c PolicyStatesClient) TriggerResourceGroupEvaluationThenPoll(ctx context.Context, id commonids.ResourceGroupId) error

TriggerResourceGroupEvaluationThenPoll performs TriggerResourceGroupEvaluation then polls until it's completed

func (PolicyStatesClient) TriggerSubscriptionEvaluation

TriggerSubscriptionEvaluation ...

func (PolicyStatesClient) TriggerSubscriptionEvaluationThenPoll

func (c PolicyStatesClient) TriggerSubscriptionEvaluationThenPoll(ctx context.Context, id commonids.SubscriptionId) error

TriggerSubscriptionEvaluationThenPoll performs TriggerSubscriptionEvaluation then polls until it's completed

type PolicyStatesResource

type PolicyStatesResource string
const (
	PolicyStatesResourceDefault PolicyStatesResource = "default"
	PolicyStatesResourceLatest  PolicyStatesResource = "latest"
)

func (*PolicyStatesResource) UnmarshalJSON

func (s *PolicyStatesResource) UnmarshalJSON(bytes []byte) error

type PolicyStatesResourceId

type PolicyStatesResourceId struct {
	SubscriptionId       string
	PolicyStatesResource PolicyStatesResource
}

PolicyStatesResourceId is a struct representing the Resource ID for a Policy States Resource

func NewPolicyStatesResourceID

func NewPolicyStatesResourceID(subscriptionId string, policyStatesResource PolicyStatesResource) PolicyStatesResourceId

NewPolicyStatesResourceID returns a new PolicyStatesResourceId struct

func ParsePolicyStatesResourceID

func ParsePolicyStatesResourceID(input string) (*PolicyStatesResourceId, error)

ParsePolicyStatesResourceID parses 'input' into a PolicyStatesResourceId

func ParsePolicyStatesResourceIDInsensitively

func ParsePolicyStatesResourceIDInsensitively(input string) (*PolicyStatesResourceId, error)

ParsePolicyStatesResourceIDInsensitively parses 'input' case-insensitively into a PolicyStatesResourceId note: this method should only be used for API response data and not user input

func (*PolicyStatesResourceId) FromParseResult

func (id *PolicyStatesResourceId) FromParseResult(input resourceids.ParseResult) error

func (PolicyStatesResourceId) ID

ID returns the formatted Policy States Resource ID

func (PolicyStatesResourceId) Segments

func (id PolicyStatesResourceId) Segments() []resourceids.Segment

Segments returns a slice of Resource ID Segments which comprise this Policy States Resource ID

func (PolicyStatesResourceId) String

func (id PolicyStatesResourceId) String() string

String returns a human-readable description of this Policy States Resource ID

type Providers2PolicyStatePolicyStatesResourceId

type Providers2PolicyStatePolicyStatesResourceId struct {
	ManagementGroupName  string
	PolicyStatesResource PolicyStatesResource
}

Providers2PolicyStatePolicyStatesResourceId is a struct representing the Resource ID for a Providers 2 Policy State Policy States Resource

func NewProviders2PolicyStatePolicyStatesResourceID

func NewProviders2PolicyStatePolicyStatesResourceID(managementGroupName string, policyStatesResource PolicyStatesResource) Providers2PolicyStatePolicyStatesResourceId

NewProviders2PolicyStatePolicyStatesResourceID returns a new Providers2PolicyStatePolicyStatesResourceId struct

func ParseProviders2PolicyStatePolicyStatesResourceID

func ParseProviders2PolicyStatePolicyStatesResourceID(input string) (*Providers2PolicyStatePolicyStatesResourceId, error)

ParseProviders2PolicyStatePolicyStatesResourceID parses 'input' into a Providers2PolicyStatePolicyStatesResourceId

func ParseProviders2PolicyStatePolicyStatesResourceIDInsensitively

func ParseProviders2PolicyStatePolicyStatesResourceIDInsensitively(input string) (*Providers2PolicyStatePolicyStatesResourceId, error)

ParseProviders2PolicyStatePolicyStatesResourceIDInsensitively parses 'input' case-insensitively into a Providers2PolicyStatePolicyStatesResourceId note: this method should only be used for API response data and not user input

func (*Providers2PolicyStatePolicyStatesResourceId) FromParseResult

func (Providers2PolicyStatePolicyStatesResourceId) ID

ID returns the formatted Providers 2 Policy State Policy States Resource ID

func (Providers2PolicyStatePolicyStatesResourceId) Segments

Segments returns a slice of Resource ID Segments which comprise this Providers 2 Policy State Policy States Resource ID

func (Providers2PolicyStatePolicyStatesResourceId) String

String returns a human-readable description of this Providers 2 Policy State Policy States Resource ID

type ScopedPolicyStatesResourceId

type ScopedPolicyStatesResourceId struct {
	ResourceId           string
	PolicyStatesResource PolicyStatesResource
}

ScopedPolicyStatesResourceId is a struct representing the Resource ID for a Scoped Policy States Resource

func NewScopedPolicyStatesResourceID

func NewScopedPolicyStatesResourceID(resourceId string, policyStatesResource PolicyStatesResource) ScopedPolicyStatesResourceId

NewScopedPolicyStatesResourceID returns a new ScopedPolicyStatesResourceId struct

func ParseScopedPolicyStatesResourceID

func ParseScopedPolicyStatesResourceID(input string) (*ScopedPolicyStatesResourceId, error)

ParseScopedPolicyStatesResourceID parses 'input' into a ScopedPolicyStatesResourceId

func ParseScopedPolicyStatesResourceIDInsensitively

func ParseScopedPolicyStatesResourceIDInsensitively(input string) (*ScopedPolicyStatesResourceId, error)

ParseScopedPolicyStatesResourceIDInsensitively parses 'input' case-insensitively into a ScopedPolicyStatesResourceId note: this method should only be used for API response data and not user input

func (*ScopedPolicyStatesResourceId) FromParseResult

func (id *ScopedPolicyStatesResourceId) FromParseResult(input resourceids.ParseResult) error

func (ScopedPolicyStatesResourceId) ID

ID returns the formatted Scoped Policy States Resource ID

func (ScopedPolicyStatesResourceId) Segments

Segments returns a slice of Resource ID Segments which comprise this Scoped Policy States Resource ID

func (ScopedPolicyStatesResourceId) String

String returns a human-readable description of this Scoped Policy States Resource ID

type SummarizeForManagementGroupOperationOptions

type SummarizeForManagementGroupOperationOptions struct {
	Filter *string
	From   *string
	To     *string
	Top    *int64
}

func DefaultSummarizeForManagementGroupOperationOptions

func DefaultSummarizeForManagementGroupOperationOptions() SummarizeForManagementGroupOperationOptions

func (SummarizeForManagementGroupOperationOptions) ToHeaders

func (SummarizeForManagementGroupOperationOptions) ToOData

func (SummarizeForManagementGroupOperationOptions) ToQuery

type SummarizeForManagementGroupOperationResponse

type SummarizeForManagementGroupOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *SummarizeResults
}

type SummarizeForPolicyDefinitionOperationOptions

type SummarizeForPolicyDefinitionOperationOptions struct {
	Filter *string
	From   *string
	To     *string
	Top    *int64
}

func DefaultSummarizeForPolicyDefinitionOperationOptions

func DefaultSummarizeForPolicyDefinitionOperationOptions() SummarizeForPolicyDefinitionOperationOptions

func (SummarizeForPolicyDefinitionOperationOptions) ToHeaders

func (SummarizeForPolicyDefinitionOperationOptions) ToOData

func (SummarizeForPolicyDefinitionOperationOptions) ToQuery

type SummarizeForPolicyDefinitionOperationResponse

type SummarizeForPolicyDefinitionOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *SummarizeResults
}

type SummarizeForPolicySetDefinitionOperationOptions

type SummarizeForPolicySetDefinitionOperationOptions struct {
	Filter *string
	From   *string
	To     *string
	Top    *int64
}

func DefaultSummarizeForPolicySetDefinitionOperationOptions

func DefaultSummarizeForPolicySetDefinitionOperationOptions() SummarizeForPolicySetDefinitionOperationOptions

func (SummarizeForPolicySetDefinitionOperationOptions) ToHeaders

func (SummarizeForPolicySetDefinitionOperationOptions) ToOData

func (SummarizeForPolicySetDefinitionOperationOptions) ToQuery

type SummarizeForPolicySetDefinitionOperationResponse

type SummarizeForPolicySetDefinitionOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *SummarizeResults
}

type SummarizeForResourceGroupLevelPolicyAssignmentOperationOptions

type SummarizeForResourceGroupLevelPolicyAssignmentOperationOptions struct {
	Filter *string
	From   *string
	To     *string
	Top    *int64
}

func (SummarizeForResourceGroupLevelPolicyAssignmentOperationOptions) ToHeaders

func (SummarizeForResourceGroupLevelPolicyAssignmentOperationOptions) ToOData

func (SummarizeForResourceGroupLevelPolicyAssignmentOperationOptions) ToQuery

type SummarizeForResourceGroupLevelPolicyAssignmentOperationResponse

type SummarizeForResourceGroupLevelPolicyAssignmentOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *SummarizeResults
}

type SummarizeForResourceGroupOperationOptions

type SummarizeForResourceGroupOperationOptions struct {
	Filter *string
	From   *string
	To     *string
	Top    *int64
}

func DefaultSummarizeForResourceGroupOperationOptions

func DefaultSummarizeForResourceGroupOperationOptions() SummarizeForResourceGroupOperationOptions

func (SummarizeForResourceGroupOperationOptions) ToHeaders

func (SummarizeForResourceGroupOperationOptions) ToOData

func (SummarizeForResourceGroupOperationOptions) ToQuery

type SummarizeForResourceGroupOperationResponse

type SummarizeForResourceGroupOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *SummarizeResults
}

type SummarizeForResourceOperationOptions

type SummarizeForResourceOperationOptions struct {
	Filter *string
	From   *string
	To     *string
	Top    *int64
}

func DefaultSummarizeForResourceOperationOptions

func DefaultSummarizeForResourceOperationOptions() SummarizeForResourceOperationOptions

func (SummarizeForResourceOperationOptions) ToHeaders

func (SummarizeForResourceOperationOptions) ToOData

func (SummarizeForResourceOperationOptions) ToQuery

type SummarizeForResourceOperationResponse

type SummarizeForResourceOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *SummarizeResults
}

type SummarizeForSubscriptionLevelPolicyAssignmentOperationOptions

type SummarizeForSubscriptionLevelPolicyAssignmentOperationOptions struct {
	Filter *string
	From   *string
	To     *string
	Top    *int64
}

func (SummarizeForSubscriptionLevelPolicyAssignmentOperationOptions) ToHeaders

func (SummarizeForSubscriptionLevelPolicyAssignmentOperationOptions) ToOData

func (SummarizeForSubscriptionLevelPolicyAssignmentOperationOptions) ToQuery

type SummarizeForSubscriptionLevelPolicyAssignmentOperationResponse

type SummarizeForSubscriptionLevelPolicyAssignmentOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *SummarizeResults
}

type SummarizeForSubscriptionOperationOptions

type SummarizeForSubscriptionOperationOptions struct {
	Filter *string
	From   *string
	To     *string
	Top    *int64
}

func DefaultSummarizeForSubscriptionOperationOptions

func DefaultSummarizeForSubscriptionOperationOptions() SummarizeForSubscriptionOperationOptions

func (SummarizeForSubscriptionOperationOptions) ToHeaders

func (SummarizeForSubscriptionOperationOptions) ToOData

func (SummarizeForSubscriptionOperationOptions) ToQuery

type SummarizeForSubscriptionOperationResponse

type SummarizeForSubscriptionOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *SummarizeResults
}

type SummarizeResults

type SummarizeResults struct {
	OdataContext *string    `json:"@odata.context,omitempty"`
	OdataCount   *int64     `json:"@odata.count,omitempty"`
	Value        *[]Summary `json:"value,omitempty"`
}

type Summary

type Summary struct {
	OdataContext      *string                    `json:"@odata.context,omitempty"`
	OdataId           *string                    `json:"@odata.id,omitempty"`
	PolicyAssignments *[]PolicyAssignmentSummary `json:"policyAssignments,omitempty"`
	Results           *SummaryResults            `json:"results,omitempty"`
}

type SummaryResults

type SummaryResults struct {
	NonCompliantPolicies  *int64              `json:"nonCompliantPolicies,omitempty"`
	NonCompliantResources *int64              `json:"nonCompliantResources,omitempty"`
	PolicyDetails         *[]ComplianceDetail `json:"policyDetails,omitempty"`
	PolicyGroupDetails    *[]ComplianceDetail `json:"policyGroupDetails,omitempty"`
	QueryResultsUri       *string             `json:"queryResultsUri,omitempty"`
	ResourceDetails       *[]ComplianceDetail `json:"resourceDetails,omitempty"`
}

type TriggerResourceGroupEvaluationOperationResponse

type TriggerResourceGroupEvaluationOperationResponse struct {
	Poller       pollers.Poller
	HttpResponse *http.Response
	OData        *odata.OData
}

type TriggerSubscriptionEvaluationOperationResponse

type TriggerSubscriptionEvaluationOperationResponse struct {
	Poller       pollers.Poller
	HttpResponse *http.Response
	OData        *odata.OData
}

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL