Documentation ¶
Index ¶
- func PossibleValuesForFieldRestrictionResult() []string
- func ValidateManagementGroupID(input interface{}, key string) (warnings []string, errors []error)
- type CheckManagementGroupRestrictionsRequest
- type CheckPolicyRestrictionsClient
- func (c CheckPolicyRestrictionsClient) PolicyRestrictionsCheckAtManagementGroupScope(ctx context.Context, id ManagementGroupId, ...) (result PolicyRestrictionsCheckAtManagementGroupScopeOperationResponse, ...)
- func (c CheckPolicyRestrictionsClient) PolicyRestrictionsCheckAtResourceGroupScope(ctx context.Context, id commonids.ResourceGroupId, ...) (result PolicyRestrictionsCheckAtResourceGroupScopeOperationResponse, err error)
- func (c CheckPolicyRestrictionsClient) PolicyRestrictionsCheckAtSubscriptionScope(ctx context.Context, id commonids.SubscriptionId, ...) (result PolicyRestrictionsCheckAtSubscriptionScopeOperationResponse, err error)
- type CheckRestrictionEvaluationDetails
- type CheckRestrictionsRequest
- type CheckRestrictionsResourceDetails
- type CheckRestrictionsResult
- type CheckRestrictionsResultContentEvaluationResult
- type ExpressionEvaluationDetails
- type FieldRestriction
- type FieldRestrictionResult
- type FieldRestrictions
- type IfNotExistsEvaluationDetails
- type ManagementGroupId
- type PendingField
- type PolicyEffectDetails
- type PolicyEvaluationResult
- type PolicyReference
- type PolicyRestrictionsCheckAtManagementGroupScopeOperationResponse
- type PolicyRestrictionsCheckAtResourceGroupScopeOperationResponse
- type PolicyRestrictionsCheckAtSubscriptionScopeOperationResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PossibleValuesForFieldRestrictionResult ¶
func PossibleValuesForFieldRestrictionResult() []string
func ValidateManagementGroupID ¶
ValidateManagementGroupID checks that 'input' can be parsed as a Management Group ID
Types ¶
type CheckManagementGroupRestrictionsRequest ¶
type CheckManagementGroupRestrictionsRequest struct { PendingFields *[]PendingField `json:"pendingFields,omitempty"` ResourceDetails *CheckRestrictionsResourceDetails `json:"resourceDetails,omitempty"` }
type CheckPolicyRestrictionsClient ¶
type CheckPolicyRestrictionsClient struct {
Client *resourcemanager.Client
}
func NewCheckPolicyRestrictionsClientWithBaseURI ¶
func NewCheckPolicyRestrictionsClientWithBaseURI(sdkApi sdkEnv.Api) (*CheckPolicyRestrictionsClient, error)
func (CheckPolicyRestrictionsClient) PolicyRestrictionsCheckAtManagementGroupScope ¶
func (c CheckPolicyRestrictionsClient) PolicyRestrictionsCheckAtManagementGroupScope(ctx context.Context, id ManagementGroupId, input CheckManagementGroupRestrictionsRequest) (result PolicyRestrictionsCheckAtManagementGroupScopeOperationResponse, err error)
PolicyRestrictionsCheckAtManagementGroupScope ...
func (CheckPolicyRestrictionsClient) PolicyRestrictionsCheckAtResourceGroupScope ¶
func (c CheckPolicyRestrictionsClient) PolicyRestrictionsCheckAtResourceGroupScope(ctx context.Context, id commonids.ResourceGroupId, input CheckRestrictionsRequest) (result PolicyRestrictionsCheckAtResourceGroupScopeOperationResponse, err error)
PolicyRestrictionsCheckAtResourceGroupScope ...
func (CheckPolicyRestrictionsClient) PolicyRestrictionsCheckAtSubscriptionScope ¶
func (c CheckPolicyRestrictionsClient) PolicyRestrictionsCheckAtSubscriptionScope(ctx context.Context, id commonids.SubscriptionId, input CheckRestrictionsRequest) (result PolicyRestrictionsCheckAtSubscriptionScopeOperationResponse, err error)
PolicyRestrictionsCheckAtSubscriptionScope ...
type CheckRestrictionEvaluationDetails ¶
type CheckRestrictionEvaluationDetails struct { EvaluatedExpressions *[]ExpressionEvaluationDetails `json:"evaluatedExpressions,omitempty"` IfNotExistsDetails *IfNotExistsEvaluationDetails `json:"ifNotExistsDetails,omitempty"` Reason *string `json:"reason,omitempty"` }
type CheckRestrictionsRequest ¶
type CheckRestrictionsRequest struct { IncludeAuditEffect *bool `json:"includeAuditEffect,omitempty"` PendingFields *[]PendingField `json:"pendingFields,omitempty"` ResourceDetails CheckRestrictionsResourceDetails `json:"resourceDetails"` }
type CheckRestrictionsResult ¶
type CheckRestrictionsResult struct { ContentEvaluationResult *CheckRestrictionsResultContentEvaluationResult `json:"contentEvaluationResult,omitempty"` FieldRestrictions *[]FieldRestrictions `json:"fieldRestrictions,omitempty"` }
type CheckRestrictionsResultContentEvaluationResult ¶
type CheckRestrictionsResultContentEvaluationResult struct {
PolicyEvaluations *[]PolicyEvaluationResult `json:"policyEvaluations,omitempty"`
}
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 FieldRestriction ¶
type FieldRestriction struct { DefaultValue *string `json:"defaultValue,omitempty"` Policy *PolicyReference `json:"policy,omitempty"` PolicyEffect *string `json:"policyEffect,omitempty"` Reason *string `json:"reason,omitempty"` Result *FieldRestrictionResult `json:"result,omitempty"` Values *[]string `json:"values,omitempty"` }
type FieldRestrictionResult ¶
type FieldRestrictionResult string
const ( FieldRestrictionResultAudit FieldRestrictionResult = "Audit" FieldRestrictionResultDeny FieldRestrictionResult = "Deny" FieldRestrictionResultRemoved FieldRestrictionResult = "Removed" FieldRestrictionResultRequired FieldRestrictionResult = "Required" )
func (*FieldRestrictionResult) UnmarshalJSON ¶ added in v0.20230809.1081239
func (s *FieldRestrictionResult) UnmarshalJSON(bytes []byte) error
type FieldRestrictions ¶
type FieldRestrictions struct { Field *string `json:"field,omitempty"` Restrictions *[]FieldRestriction `json:"restrictions,omitempty"` }
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) 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 PendingField ¶
type PolicyEffectDetails ¶
type PolicyEffectDetails struct {
PolicyEffect *string `json:"policyEffect,omitempty"`
}
type PolicyEvaluationResult ¶
type PolicyEvaluationResult struct { EffectDetails *PolicyEffectDetails `json:"effectDetails,omitempty"` EvaluationDetails *CheckRestrictionEvaluationDetails `json:"evaluationDetails,omitempty"` EvaluationResult *string `json:"evaluationResult,omitempty"` PolicyInfo *PolicyReference `json:"policyInfo,omitempty"` }
type PolicyReference ¶
type PolicyReference struct { PolicyAssignmentId *string `json:"policyAssignmentId,omitempty"` PolicyDefinitionId *string `json:"policyDefinitionId,omitempty"` PolicyDefinitionReferenceId *string `json:"policyDefinitionReferenceId,omitempty"` PolicySetDefinitionId *string `json:"policySetDefinitionId,omitempty"` }
type PolicyRestrictionsCheckAtManagementGroupScopeOperationResponse ¶
type PolicyRestrictionsCheckAtManagementGroupScopeOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *CheckRestrictionsResult }
type PolicyRestrictionsCheckAtResourceGroupScopeOperationResponse ¶
type PolicyRestrictionsCheckAtResourceGroupScopeOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *CheckRestrictionsResult }
type PolicyRestrictionsCheckAtSubscriptionScopeOperationResponse ¶
type PolicyRestrictionsCheckAtSubscriptionScopeOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *CheckRestrictionsResult }
Source Files ¶
- client.go
- constants.go
- id_managementgroup.go
- method_policyrestrictionscheckatmanagementgroupscope.go
- method_policyrestrictionscheckatresourcegroupscope.go
- method_policyrestrictionscheckatsubscriptionscope.go
- model_checkmanagementgrouprestrictionsrequest.go
- model_checkrestrictionevaluationdetails.go
- model_checkrestrictionsrequest.go
- model_checkrestrictionsresourcedetails.go
- model_checkrestrictionsresult.go
- model_checkrestrictionsresultcontentevaluationresult.go
- model_expressionevaluationdetails.go
- model_fieldrestriction.go
- model_fieldrestrictions.go
- model_ifnotexistsevaluationdetails.go
- model_pendingfield.go
- model_policyeffectdetails.go
- model_policyevaluationresult.go
- model_policyreference.go
- version.go