policyevents

package
v0.20241029.1112340 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2024 License: MPL-2.0 Imports: 13 Imported by: 1

README

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

The policyevents 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/policyevents"

Client Initialization

client := policyevents.NewPolicyEventsClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: PolicyEventsClient.ListQueryResultsForManagementGroup

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

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

Example Usage: PolicyEventsClient.ListQueryResultsForPolicyDefinition

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

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

Example Usage: PolicyEventsClient.ListQueryResultsForPolicySetDefinition

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

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

Example Usage: PolicyEventsClient.ListQueryResultsForResource

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

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

Example Usage: PolicyEventsClient.ListQueryResultsForResourceGroup

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

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

Example Usage: PolicyEventsClient.ListQueryResultsForResourceGroupLevelPolicyAssignment

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

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

Example Usage: PolicyEventsClient.ListQueryResultsForSubscription

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

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

Example Usage: PolicyEventsClient.ListQueryResultsForSubscriptionLevelPolicyAssignment

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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 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 ValidatePolicyDefinitionID

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

ValidatePolicyDefinitionID checks that 'input' can be parsed as a Policy Definition 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

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 ComponentEventDetails

type ComponentEventDetails struct {
	Id                     *string `json:"id,omitempty"`
	Name                   *string `json:"name,omitempty"`
	PolicyDefinitionAction *string `json:"policyDefinitionAction,omitempty"`
	PrincipalOid           *string `json:"principalOid,omitempty"`
	TenantId               *string `json:"tenantId,omitempty"`
	Timestamp              *string `json:"timestamp,omitempty"`
	Type                   *string `json:"type,omitempty"`
}

func (*ComponentEventDetails) GetTimestampAsTime

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

func (*ComponentEventDetails) SetTimestampAsTime

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

type ListQueryResultsForManagementGroupCompleteResult

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

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        *[]PolicyEvent
}

type ListQueryResultsForPolicyDefinitionCompleteResult

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

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        *[]PolicyEvent
}

type ListQueryResultsForPolicySetDefinitionCompleteResult

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

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        *[]PolicyEvent
}

type ListQueryResultsForResourceCompleteResult

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

type ListQueryResultsForResourceCustomPager

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

type ListQueryResultsForResourceGroupCompleteResult

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

type ListQueryResultsForResourceGroupCustomPager

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

type ListQueryResultsForResourceGroupLevelPolicyAssignmentCompleteResult

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

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        *[]PolicyEvent
}

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        *[]PolicyEvent
}

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        *[]PolicyEvent
}

type ListQueryResultsForSubscriptionCompleteResult

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

type ListQueryResultsForSubscriptionCustomPager

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

type ListQueryResultsForSubscriptionLevelPolicyAssignmentCompleteResult

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

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        *[]PolicyEvent
}

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        *[]PolicyEvent
}

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 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 PolicyEvent

type PolicyEvent struct {
	ComplianceState               *string                  `json:"complianceState,omitempty"`
	Components                    *[]ComponentEventDetails `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"`
	PolicyDefinitionAction        *string                  `json:"policyDefinitionAction,omitempty"`
	PolicyDefinitionCategory      *string                  `json:"policyDefinitionCategory,omitempty"`
	PolicyDefinitionId            *string                  `json:"policyDefinitionId,omitempty"`
	PolicyDefinitionName          *string                  `json:"policyDefinitionName,omitempty"`
	PolicyDefinitionReferenceId   *string                  `json:"policyDefinitionReferenceId,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"`
	PrincipalOid                  *string                  `json:"principalOid,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"`
	TenantId                      *string                  `json:"tenantId,omitempty"`
	Timestamp                     *string                  `json:"timestamp,omitempty"`
}

func (*PolicyEvent) GetTimestampAsTime

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

func (*PolicyEvent) SetTimestampAsTime

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

type PolicyEventOperationPredicate

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

func (PolicyEventOperationPredicate) Matches

type PolicyEventsClient

type PolicyEventsClient struct {
	Client *resourcemanager.Client
}

func NewPolicyEventsClientWithBaseURI

func NewPolicyEventsClientWithBaseURI(sdkApi sdkEnv.Api) (*PolicyEventsClient, error)

func (PolicyEventsClient) ListQueryResultsForManagementGroup

ListQueryResultsForManagementGroup ...

func (PolicyEventsClient) ListQueryResultsForManagementGroupComplete

ListQueryResultsForManagementGroupComplete retrieves all the results into a single object

func (PolicyEventsClient) ListQueryResultsForManagementGroupCompleteMatchingPredicate

func (c PolicyEventsClient) ListQueryResultsForManagementGroupCompleteMatchingPredicate(ctx context.Context, id ManagementGroupId, options ListQueryResultsForManagementGroupOperationOptions, predicate PolicyEventOperationPredicate) (result ListQueryResultsForManagementGroupCompleteResult, err error)

ListQueryResultsForManagementGroupCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (PolicyEventsClient) ListQueryResultsForPolicyDefinition

ListQueryResultsForPolicyDefinition ...

func (PolicyEventsClient) ListQueryResultsForPolicyDefinitionComplete

ListQueryResultsForPolicyDefinitionComplete retrieves all the results into a single object

func (PolicyEventsClient) ListQueryResultsForPolicyDefinitionCompleteMatchingPredicate

ListQueryResultsForPolicyDefinitionCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (PolicyEventsClient) ListQueryResultsForPolicySetDefinition

ListQueryResultsForPolicySetDefinition ...

func (PolicyEventsClient) ListQueryResultsForPolicySetDefinitionComplete

ListQueryResultsForPolicySetDefinitionComplete retrieves all the results into a single object

func (PolicyEventsClient) ListQueryResultsForPolicySetDefinitionCompleteMatchingPredicate

ListQueryResultsForPolicySetDefinitionCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (PolicyEventsClient) ListQueryResultsForResource

ListQueryResultsForResource ...

func (PolicyEventsClient) ListQueryResultsForResourceComplete

ListQueryResultsForResourceComplete retrieves all the results into a single object

func (PolicyEventsClient) ListQueryResultsForResourceCompleteMatchingPredicate

func (c PolicyEventsClient) ListQueryResultsForResourceCompleteMatchingPredicate(ctx context.Context, id commonids.ScopeId, options ListQueryResultsForResourceOperationOptions, predicate PolicyEventOperationPredicate) (result ListQueryResultsForResourceCompleteResult, err error)

ListQueryResultsForResourceCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (PolicyEventsClient) ListQueryResultsForResourceGroup

ListQueryResultsForResourceGroup ...

func (PolicyEventsClient) ListQueryResultsForResourceGroupComplete

ListQueryResultsForResourceGroupComplete retrieves all the results into a single object

func (PolicyEventsClient) ListQueryResultsForResourceGroupCompleteMatchingPredicate

ListQueryResultsForResourceGroupCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (PolicyEventsClient) ListQueryResultsForResourceGroupLevelPolicyAssignment

ListQueryResultsForResourceGroupLevelPolicyAssignment ...

func (PolicyEventsClient) ListQueryResultsForResourceGroupLevelPolicyAssignmentComplete

ListQueryResultsForResourceGroupLevelPolicyAssignmentComplete retrieves all the results into a single object

func (PolicyEventsClient) ListQueryResultsForResourceGroupLevelPolicyAssignmentCompleteMatchingPredicate

ListQueryResultsForResourceGroupLevelPolicyAssignmentCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (PolicyEventsClient) ListQueryResultsForSubscription

ListQueryResultsForSubscription ...

func (PolicyEventsClient) ListQueryResultsForSubscriptionComplete

ListQueryResultsForSubscriptionComplete retrieves all the results into a single object

func (PolicyEventsClient) ListQueryResultsForSubscriptionCompleteMatchingPredicate

ListQueryResultsForSubscriptionCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (PolicyEventsClient) ListQueryResultsForSubscriptionLevelPolicyAssignment

ListQueryResultsForSubscriptionLevelPolicyAssignment ...

func (PolicyEventsClient) ListQueryResultsForSubscriptionLevelPolicyAssignmentComplete

ListQueryResultsForSubscriptionLevelPolicyAssignmentComplete retrieves all the results into a single object

func (PolicyEventsClient) ListQueryResultsForSubscriptionLevelPolicyAssignmentCompleteMatchingPredicate

ListQueryResultsForSubscriptionLevelPolicyAssignmentCompleteMatchingPredicate retrieves all the results and then applies the predicate

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

Jump to

Keyboard shortcuts

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