Versions in this module Expand all Collapse all v0 v0.20241126.2320 Nov 26, 2024 v0.20241126.1723 Nov 26, 2024 Changes in this version + func PossibleValuesForAssignmentType() []string + func PossibleValuesForEnforcementMode() []string + func PossibleValuesForOverrideKind() []string + func PossibleValuesForSelectorKind() []string + func ValidatePolicyAssignmentIdID(input interface{}, key string) (warnings []string, errors []error) + func ValidateScopedPolicyAssignmentID(input interface{}, key string) (warnings []string, errors []error) + type AssignmentType string + const AssignmentTypeCustom + const AssignmentTypeNotSpecified + const AssignmentTypeSystem + const AssignmentTypeSystemHidden + func (s *AssignmentType) UnmarshalJSON(bytes []byte) error + type CreateByIdOperationResponse struct + HttpResponse *http.Response + Model *PolicyAssignment + OData *odata.OData + type CreateOperationResponse struct + HttpResponse *http.Response + Model *PolicyAssignment + OData *odata.OData + type DeleteByIdOperationResponse struct + HttpResponse *http.Response + Model *PolicyAssignment + OData *odata.OData + type DeleteOperationResponse struct + HttpResponse *http.Response + Model *PolicyAssignment + OData *odata.OData + type EnforcementMode string + const EnforcementModeDefault + const EnforcementModeDoNotEnforce + func (s *EnforcementMode) UnmarshalJSON(bytes []byte) error + type GetByIdOperationResponse struct + HttpResponse *http.Response + Model *PolicyAssignment + OData *odata.OData + type GetOperationResponse struct + HttpResponse *http.Response + Model *PolicyAssignment + OData *odata.OData + type ListCompleteResult struct + Items []PolicyAssignment + LatestHttpResponse *http.Response + type ListCustomPager struct + NextLink *odata.Link + func (p *ListCustomPager) NextPageLink() *odata.Link + type ListForManagementGroupCompleteResult struct + Items []PolicyAssignment + LatestHttpResponse *http.Response + type ListForManagementGroupCustomPager struct + NextLink *odata.Link + func (p *ListForManagementGroupCustomPager) NextPageLink() *odata.Link + type ListForManagementGroupOperationOptions struct + Filter *string + Top *int64 + func DefaultListForManagementGroupOperationOptions() ListForManagementGroupOperationOptions + func (o ListForManagementGroupOperationOptions) ToHeaders() *client.Headers + func (o ListForManagementGroupOperationOptions) ToOData() *odata.Query + func (o ListForManagementGroupOperationOptions) ToQuery() *client.QueryParams + type ListForManagementGroupOperationResponse struct + HttpResponse *http.Response + Model *[]PolicyAssignment + OData *odata.OData + type ListForResourceCompleteResult struct + Items []PolicyAssignment + LatestHttpResponse *http.Response + type ListForResourceCustomPager struct + NextLink *odata.Link + func (p *ListForResourceCustomPager) NextPageLink() *odata.Link + type ListForResourceGroupCompleteResult struct + Items []PolicyAssignment + LatestHttpResponse *http.Response + type ListForResourceGroupCustomPager struct + NextLink *odata.Link + func (p *ListForResourceGroupCustomPager) NextPageLink() *odata.Link + type ListForResourceGroupOperationOptions struct + Filter *string + Top *int64 + func DefaultListForResourceGroupOperationOptions() ListForResourceGroupOperationOptions + func (o ListForResourceGroupOperationOptions) ToHeaders() *client.Headers + func (o ListForResourceGroupOperationOptions) ToOData() *odata.Query + func (o ListForResourceGroupOperationOptions) ToQuery() *client.QueryParams + type ListForResourceGroupOperationResponse struct + HttpResponse *http.Response + Model *[]PolicyAssignment + OData *odata.OData + type ListForResourceOperationOptions struct + Filter *string + Top *int64 + func DefaultListForResourceOperationOptions() ListForResourceOperationOptions + func (o ListForResourceOperationOptions) ToHeaders() *client.Headers + func (o ListForResourceOperationOptions) ToOData() *odata.Query + func (o ListForResourceOperationOptions) ToQuery() *client.QueryParams + type ListForResourceOperationResponse struct + HttpResponse *http.Response + Model *[]PolicyAssignment + OData *odata.OData + type ListOperationOptions struct + Filter *string + Top *int64 + func DefaultListOperationOptions() ListOperationOptions + func (o ListOperationOptions) ToHeaders() *client.Headers + func (o ListOperationOptions) ToOData() *odata.Query + func (o ListOperationOptions) ToQuery() *client.QueryParams + type ListOperationResponse struct + HttpResponse *http.Response + Model *[]PolicyAssignment + OData *odata.OData + type NonComplianceMessage struct + Message string + PolicyDefinitionReferenceId *string + type Override struct + Kind *OverrideKind + Selectors *[]Selector + Value *string + type OverrideKind string + const OverrideKindPolicyEffect + func (s *OverrideKind) UnmarshalJSON(bytes []byte) error + type ParameterValuesValue struct + Value *interface{} + type PolicyAssignment struct + Id *string + Identity *identity.SystemOrUserAssignedMap + Location *string + Name *string + Properties *PolicyAssignmentProperties + SystemData *systemdata.SystemData + Type *string + type PolicyAssignmentIdId struct + PolicyAssignmentId string + func NewPolicyAssignmentIdID(policyAssignmentId string) PolicyAssignmentIdId + func ParsePolicyAssignmentIdID(input string) (*PolicyAssignmentIdId, error) + func ParsePolicyAssignmentIdIDInsensitively(input string) (*PolicyAssignmentIdId, error) + func (id *PolicyAssignmentIdId) FromParseResult(input resourceids.ParseResult) error + func (id PolicyAssignmentIdId) ID() string + func (id PolicyAssignmentIdId) Segments() []resourceids.Segment + func (id PolicyAssignmentIdId) String() string + type PolicyAssignmentOperationPredicate struct + Id *string + Location *string + Name *string + Type *string + func (p PolicyAssignmentOperationPredicate) Matches(input PolicyAssignment) bool + type PolicyAssignmentProperties struct + AssignmentType *AssignmentType + DefinitionVersion *string + Description *string + DisplayName *string + EnforcementMode *EnforcementMode + Metadata *interface{} + NonComplianceMessages *[]NonComplianceMessage + NotScopes *[]string + Overrides *[]Override + Parameters *map[string]ParameterValuesValue + PolicyDefinitionId *string + ResourceSelectors *[]ResourceSelector + Scope *string + type PolicyAssignmentUpdate struct + Identity *identity.SystemOrUserAssignedMap + Location *string + Properties *PolicyAssignmentUpdateProperties + type PolicyAssignmentUpdateProperties struct + Overrides *[]Override + ResourceSelectors *[]ResourceSelector + type PolicyAssignmentsClient struct + Client *resourcemanager.Client + func NewPolicyAssignmentsClientWithBaseURI(sdkApi sdkEnv.Api) (*PolicyAssignmentsClient, error) + func (c PolicyAssignmentsClient) Create(ctx context.Context, id ScopedPolicyAssignmentId, input PolicyAssignment) (result CreateOperationResponse, err error) + func (c PolicyAssignmentsClient) CreateById(ctx context.Context, id PolicyAssignmentIdId, input PolicyAssignment) (result CreateByIdOperationResponse, err error) + func (c PolicyAssignmentsClient) Delete(ctx context.Context, id ScopedPolicyAssignmentId) (result DeleteOperationResponse, err error) + func (c PolicyAssignmentsClient) DeleteById(ctx context.Context, id PolicyAssignmentIdId) (result DeleteByIdOperationResponse, err error) + func (c PolicyAssignmentsClient) Get(ctx context.Context, id ScopedPolicyAssignmentId) (result GetOperationResponse, err error) + func (c PolicyAssignmentsClient) GetById(ctx context.Context, id PolicyAssignmentIdId) (result GetByIdOperationResponse, err error) + func (c PolicyAssignmentsClient) List(ctx context.Context, id commonids.SubscriptionId, options ListOperationOptions) (result ListOperationResponse, err error) + func (c PolicyAssignmentsClient) ListComplete(ctx context.Context, id commonids.SubscriptionId, options ListOperationOptions) (ListCompleteResult, error) + func (c PolicyAssignmentsClient) ListCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, options ListOperationOptions, ...) (result ListCompleteResult, err error) + func (c PolicyAssignmentsClient) ListForManagementGroup(ctx context.Context, id commonids.ManagementGroupId, ...) (result ListForManagementGroupOperationResponse, err error) + func (c PolicyAssignmentsClient) ListForManagementGroupComplete(ctx context.Context, id commonids.ManagementGroupId, ...) (ListForManagementGroupCompleteResult, error) + func (c PolicyAssignmentsClient) ListForManagementGroupCompleteMatchingPredicate(ctx context.Context, id commonids.ManagementGroupId, ...) (result ListForManagementGroupCompleteResult, err error) + func (c PolicyAssignmentsClient) ListForResource(ctx context.Context, id commonids.ScopeId, ...) (result ListForResourceOperationResponse, err error) + func (c PolicyAssignmentsClient) ListForResourceComplete(ctx context.Context, id commonids.ScopeId, ...) (ListForResourceCompleteResult, error) + func (c PolicyAssignmentsClient) ListForResourceCompleteMatchingPredicate(ctx context.Context, id commonids.ScopeId, ...) (result ListForResourceCompleteResult, err error) + func (c PolicyAssignmentsClient) ListForResourceGroup(ctx context.Context, id commonids.ResourceGroupId, ...) (result ListForResourceGroupOperationResponse, err error) + func (c PolicyAssignmentsClient) ListForResourceGroupComplete(ctx context.Context, id commonids.ResourceGroupId, ...) (ListForResourceGroupCompleteResult, error) + func (c PolicyAssignmentsClient) ListForResourceGroupCompleteMatchingPredicate(ctx context.Context, id commonids.ResourceGroupId, ...) (result ListForResourceGroupCompleteResult, err error) + func (c PolicyAssignmentsClient) Update(ctx context.Context, id ScopedPolicyAssignmentId, input PolicyAssignmentUpdate) (result UpdateOperationResponse, err error) + func (c PolicyAssignmentsClient) UpdateById(ctx context.Context, id PolicyAssignmentIdId, input PolicyAssignmentUpdate) (result UpdateByIdOperationResponse, err error) + type ResourceSelector struct + Name *string + Selectors *[]Selector + type ScopedPolicyAssignmentId struct + PolicyAssignmentName string + Scope string + func NewScopedPolicyAssignmentID(scope string, policyAssignmentName string) ScopedPolicyAssignmentId + func ParseScopedPolicyAssignmentID(input string) (*ScopedPolicyAssignmentId, error) + func ParseScopedPolicyAssignmentIDInsensitively(input string) (*ScopedPolicyAssignmentId, error) + func (id *ScopedPolicyAssignmentId) FromParseResult(input resourceids.ParseResult) error + func (id ScopedPolicyAssignmentId) ID() string + func (id ScopedPolicyAssignmentId) Segments() []resourceids.Segment + func (id ScopedPolicyAssignmentId) String() string + type Selector struct + In *[]string + Kind *SelectorKind + NotIn *[]string + type SelectorKind string + const SelectorKindPolicyDefinitionReferenceId + const SelectorKindResourceLocation + const SelectorKindResourceType + const SelectorKindResourceWithoutLocation + func (s *SelectorKind) UnmarshalJSON(bytes []byte) error + type UpdateByIdOperationResponse struct + HttpResponse *http.Response + Model *PolicyAssignment + OData *odata.OData + type UpdateOperationResponse struct + HttpResponse *http.Response + Model *PolicyAssignment + OData *odata.OData