Documentation ¶
Index ¶
- func PossibleValuesForAssignmentScopeValidation() []string
- func PossibleValuesForExemptionCategory() []string
- func PossibleValuesForSelectorKind() []string
- func ValidateScopedPolicyExemptionID(input interface{}, key string) (warnings []string, errors []error)
- type AssignmentScopeValidation
- type CreateOrUpdateOperationResponse
- type DeleteOperationResponse
- type ExemptionCategory
- type GetOperationResponse
- type ListCompleteResult
- type ListForManagementGroupCompleteResult
- type ListForManagementGroupOperationOptions
- type ListForManagementGroupOperationResponse
- type ListForResourceCompleteResult
- type ListForResourceGroupCompleteResult
- type ListForResourceGroupOperationOptions
- type ListForResourceGroupOperationResponse
- type ListForResourceOperationOptions
- type ListForResourceOperationResponse
- type ListOperationOptions
- type ListOperationResponse
- type PolicyExemption
- type PolicyExemptionOperationPredicate
- type PolicyExemptionProperties
- type PolicyExemptionUpdate
- type PolicyExemptionUpdateProperties
- type PolicyExemptionsClient
- func (c PolicyExemptionsClient) CreateOrUpdate(ctx context.Context, id ScopedPolicyExemptionId, input PolicyExemption) (result CreateOrUpdateOperationResponse, err error)
- func (c PolicyExemptionsClient) Delete(ctx context.Context, id ScopedPolicyExemptionId) (result DeleteOperationResponse, err error)
- func (c PolicyExemptionsClient) Get(ctx context.Context, id ScopedPolicyExemptionId) (result GetOperationResponse, err error)
- func (c PolicyExemptionsClient) List(ctx context.Context, id commonids.SubscriptionId, options ListOperationOptions) (result ListOperationResponse, err error)
- func (c PolicyExemptionsClient) ListComplete(ctx context.Context, id commonids.SubscriptionId, options ListOperationOptions) (ListCompleteResult, error)
- func (c PolicyExemptionsClient) ListCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, options ListOperationOptions, ...) (result ListCompleteResult, err error)
- func (c PolicyExemptionsClient) ListForManagementGroup(ctx context.Context, id commonids.ManagementGroupId, ...) (result ListForManagementGroupOperationResponse, err error)
- func (c PolicyExemptionsClient) ListForManagementGroupComplete(ctx context.Context, id commonids.ManagementGroupId, ...) (ListForManagementGroupCompleteResult, error)
- func (c PolicyExemptionsClient) ListForManagementGroupCompleteMatchingPredicate(ctx context.Context, id commonids.ManagementGroupId, ...) (result ListForManagementGroupCompleteResult, err error)
- func (c PolicyExemptionsClient) ListForResource(ctx context.Context, id commonids.ScopeId, ...) (result ListForResourceOperationResponse, err error)
- func (c PolicyExemptionsClient) ListForResourceComplete(ctx context.Context, id commonids.ScopeId, ...) (ListForResourceCompleteResult, error)
- func (c PolicyExemptionsClient) ListForResourceCompleteMatchingPredicate(ctx context.Context, id commonids.ScopeId, ...) (result ListForResourceCompleteResult, err error)
- func (c PolicyExemptionsClient) ListForResourceGroup(ctx context.Context, id commonids.ResourceGroupId, ...) (result ListForResourceGroupOperationResponse, err error)
- func (c PolicyExemptionsClient) ListForResourceGroupComplete(ctx context.Context, id commonids.ResourceGroupId, ...) (ListForResourceGroupCompleteResult, error)
- func (c PolicyExemptionsClient) ListForResourceGroupCompleteMatchingPredicate(ctx context.Context, id commonids.ResourceGroupId, ...) (result ListForResourceGroupCompleteResult, err error)
- func (c PolicyExemptionsClient) Update(ctx context.Context, id ScopedPolicyExemptionId, input PolicyExemptionUpdate) (result UpdateOperationResponse, err error)
- type ResourceSelector
- type ScopedPolicyExemptionId
- type Selector
- type SelectorKind
- type UpdateOperationResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PossibleValuesForAssignmentScopeValidation ¶
func PossibleValuesForAssignmentScopeValidation() []string
func PossibleValuesForExemptionCategory ¶
func PossibleValuesForExemptionCategory() []string
func PossibleValuesForSelectorKind ¶
func PossibleValuesForSelectorKind() []string
func ValidateScopedPolicyExemptionID ¶
func ValidateScopedPolicyExemptionID(input interface{}, key string) (warnings []string, errors []error)
ValidateScopedPolicyExemptionID checks that 'input' can be parsed as a Scoped Policy Exemption ID
Types ¶
type AssignmentScopeValidation ¶
type AssignmentScopeValidation string
const ( AssignmentScopeValidationDefault AssignmentScopeValidation = "Default" AssignmentScopeValidationDoNotValidate AssignmentScopeValidation = "DoNotValidate" )
func (*AssignmentScopeValidation) UnmarshalJSON ¶ added in v0.20230509.1154719
func (s *AssignmentScopeValidation) UnmarshalJSON(bytes []byte) error
type CreateOrUpdateOperationResponse ¶
type CreateOrUpdateOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *PolicyExemption }
type DeleteOperationResponse ¶
type ExemptionCategory ¶
type ExemptionCategory string
const ( ExemptionCategoryMitigated ExemptionCategory = "Mitigated" ExemptionCategoryWaiver ExemptionCategory = "Waiver" )
func (*ExemptionCategory) UnmarshalJSON ¶ added in v0.20230509.1154719
func (s *ExemptionCategory) UnmarshalJSON(bytes []byte) error
type GetOperationResponse ¶
type GetOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *PolicyExemption }
type ListCompleteResult ¶
type ListCompleteResult struct {
Items []PolicyExemption
}
type ListForManagementGroupCompleteResult ¶
type ListForManagementGroupCompleteResult struct {
Items []PolicyExemption
}
type ListForManagementGroupOperationOptions ¶
type ListForManagementGroupOperationOptions struct {
Filter *string
}
func DefaultListForManagementGroupOperationOptions ¶
func DefaultListForManagementGroupOperationOptions() ListForManagementGroupOperationOptions
func (ListForManagementGroupOperationOptions) ToHeaders ¶ added in v0.20230509.1154719
func (o ListForManagementGroupOperationOptions) ToHeaders() *client.Headers
func (ListForManagementGroupOperationOptions) ToOData ¶ added in v0.20230509.1154719
func (o ListForManagementGroupOperationOptions) ToOData() *odata.Query
func (ListForManagementGroupOperationOptions) ToQuery ¶ added in v0.20230509.1154719
func (o ListForManagementGroupOperationOptions) ToQuery() *client.QueryParams
type ListForManagementGroupOperationResponse ¶
type ListForManagementGroupOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *[]PolicyExemption }
type ListForResourceCompleteResult ¶
type ListForResourceCompleteResult struct {
Items []PolicyExemption
}
type ListForResourceGroupCompleteResult ¶
type ListForResourceGroupCompleteResult struct {
Items []PolicyExemption
}
type ListForResourceGroupOperationOptions ¶
type ListForResourceGroupOperationOptions struct {
Filter *string
}
func DefaultListForResourceGroupOperationOptions ¶
func DefaultListForResourceGroupOperationOptions() ListForResourceGroupOperationOptions
func (ListForResourceGroupOperationOptions) ToHeaders ¶ added in v0.20230509.1154719
func (o ListForResourceGroupOperationOptions) ToHeaders() *client.Headers
func (ListForResourceGroupOperationOptions) ToOData ¶ added in v0.20230509.1154719
func (o ListForResourceGroupOperationOptions) ToOData() *odata.Query
func (ListForResourceGroupOperationOptions) ToQuery ¶ added in v0.20230509.1154719
func (o ListForResourceGroupOperationOptions) ToQuery() *client.QueryParams
type ListForResourceGroupOperationResponse ¶
type ListForResourceGroupOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *[]PolicyExemption }
type ListForResourceOperationOptions ¶
type ListForResourceOperationOptions struct {
Filter *string
}
func DefaultListForResourceOperationOptions ¶
func DefaultListForResourceOperationOptions() ListForResourceOperationOptions
func (ListForResourceOperationOptions) ToHeaders ¶ added in v0.20230509.1154719
func (o ListForResourceOperationOptions) ToHeaders() *client.Headers
func (ListForResourceOperationOptions) ToOData ¶ added in v0.20230509.1154719
func (o ListForResourceOperationOptions) ToOData() *odata.Query
func (ListForResourceOperationOptions) ToQuery ¶ added in v0.20230509.1154719
func (o ListForResourceOperationOptions) ToQuery() *client.QueryParams
type ListForResourceOperationResponse ¶
type ListForResourceOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *[]PolicyExemption }
type ListOperationOptions ¶
type ListOperationOptions struct {
Filter *string
}
func DefaultListOperationOptions ¶
func DefaultListOperationOptions() ListOperationOptions
func (ListOperationOptions) ToHeaders ¶ added in v0.20230509.1154719
func (o ListOperationOptions) ToHeaders() *client.Headers
func (ListOperationOptions) ToOData ¶ added in v0.20230509.1154719
func (o ListOperationOptions) ToOData() *odata.Query
func (ListOperationOptions) ToQuery ¶ added in v0.20230509.1154719
func (o ListOperationOptions) ToQuery() *client.QueryParams
type ListOperationResponse ¶
type ListOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *[]PolicyExemption }
type PolicyExemption ¶
type PolicyExemption struct { Id *string `json:"id,omitempty"` Name *string `json:"name,omitempty"` Properties PolicyExemptionProperties `json:"properties"` SystemData *systemdata.SystemData `json:"systemData,omitempty"` Type *string `json:"type,omitempty"` }
type PolicyExemptionOperationPredicate ¶
func (PolicyExemptionOperationPredicate) Matches ¶
func (p PolicyExemptionOperationPredicate) Matches(input PolicyExemption) bool
type PolicyExemptionProperties ¶
type PolicyExemptionProperties struct { AssignmentScopeValidation *AssignmentScopeValidation `json:"assignmentScopeValidation,omitempty"` Description *string `json:"description,omitempty"` DisplayName *string `json:"displayName,omitempty"` ExemptionCategory ExemptionCategory `json:"exemptionCategory"` ExpiresOn *string `json:"expiresOn,omitempty"` Metadata *interface{} `json:"metadata,omitempty"` PolicyAssignmentId string `json:"policyAssignmentId"` PolicyDefinitionReferenceIds *[]string `json:"policyDefinitionReferenceIds,omitempty"` ResourceSelectors *[]ResourceSelector `json:"resourceSelectors,omitempty"` }
func (*PolicyExemptionProperties) GetExpiresOnAsTime ¶
func (o *PolicyExemptionProperties) GetExpiresOnAsTime() (*time.Time, error)
func (*PolicyExemptionProperties) SetExpiresOnAsTime ¶
func (o *PolicyExemptionProperties) SetExpiresOnAsTime(input time.Time)
type PolicyExemptionUpdate ¶
type PolicyExemptionUpdate struct {
Properties *PolicyExemptionUpdateProperties `json:"properties,omitempty"`
}
type PolicyExemptionUpdateProperties ¶
type PolicyExemptionUpdateProperties struct { AssignmentScopeValidation *AssignmentScopeValidation `json:"assignmentScopeValidation,omitempty"` ResourceSelectors *[]ResourceSelector `json:"resourceSelectors,omitempty"` }
type PolicyExemptionsClient ¶
type PolicyExemptionsClient struct {
Client *resourcemanager.Client
}
func NewPolicyExemptionsClientWithBaseURI ¶
func NewPolicyExemptionsClientWithBaseURI(sdkApi sdkEnv.Api) (*PolicyExemptionsClient, error)
func (PolicyExemptionsClient) CreateOrUpdate ¶
func (c PolicyExemptionsClient) CreateOrUpdate(ctx context.Context, id ScopedPolicyExemptionId, input PolicyExemption) (result CreateOrUpdateOperationResponse, err error)
CreateOrUpdate ...
func (PolicyExemptionsClient) Delete ¶
func (c PolicyExemptionsClient) Delete(ctx context.Context, id ScopedPolicyExemptionId) (result DeleteOperationResponse, err error)
Delete ...
func (PolicyExemptionsClient) Get ¶
func (c PolicyExemptionsClient) Get(ctx context.Context, id ScopedPolicyExemptionId) (result GetOperationResponse, err error)
Get ...
func (PolicyExemptionsClient) List ¶
func (c PolicyExemptionsClient) List(ctx context.Context, id commonids.SubscriptionId, options ListOperationOptions) (result ListOperationResponse, err error)
List ...
func (PolicyExemptionsClient) ListComplete ¶
func (c PolicyExemptionsClient) ListComplete(ctx context.Context, id commonids.SubscriptionId, options ListOperationOptions) (ListCompleteResult, error)
ListComplete retrieves all the results into a single object
func (PolicyExemptionsClient) ListCompleteMatchingPredicate ¶
func (c PolicyExemptionsClient) ListCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, options ListOperationOptions, predicate PolicyExemptionOperationPredicate) (result ListCompleteResult, err error)
ListCompleteMatchingPredicate retrieves all the results and then applies the predicate
func (PolicyExemptionsClient) ListForManagementGroup ¶
func (c PolicyExemptionsClient) ListForManagementGroup(ctx context.Context, id commonids.ManagementGroupId, options ListForManagementGroupOperationOptions) (result ListForManagementGroupOperationResponse, err error)
ListForManagementGroup ...
func (PolicyExemptionsClient) ListForManagementGroupComplete ¶
func (c PolicyExemptionsClient) ListForManagementGroupComplete(ctx context.Context, id commonids.ManagementGroupId, options ListForManagementGroupOperationOptions) (ListForManagementGroupCompleteResult, error)
ListForManagementGroupComplete retrieves all the results into a single object
func (PolicyExemptionsClient) ListForManagementGroupCompleteMatchingPredicate ¶
func (c PolicyExemptionsClient) ListForManagementGroupCompleteMatchingPredicate(ctx context.Context, id commonids.ManagementGroupId, options ListForManagementGroupOperationOptions, predicate PolicyExemptionOperationPredicate) (result ListForManagementGroupCompleteResult, err error)
ListForManagementGroupCompleteMatchingPredicate retrieves all the results and then applies the predicate
func (PolicyExemptionsClient) ListForResource ¶
func (c PolicyExemptionsClient) ListForResource(ctx context.Context, id commonids.ScopeId, options ListForResourceOperationOptions) (result ListForResourceOperationResponse, err error)
ListForResource ...
func (PolicyExemptionsClient) ListForResourceComplete ¶
func (c PolicyExemptionsClient) ListForResourceComplete(ctx context.Context, id commonids.ScopeId, options ListForResourceOperationOptions) (ListForResourceCompleteResult, error)
ListForResourceComplete retrieves all the results into a single object
func (PolicyExemptionsClient) ListForResourceCompleteMatchingPredicate ¶
func (c PolicyExemptionsClient) ListForResourceCompleteMatchingPredicate(ctx context.Context, id commonids.ScopeId, options ListForResourceOperationOptions, predicate PolicyExemptionOperationPredicate) (result ListForResourceCompleteResult, err error)
ListForResourceCompleteMatchingPredicate retrieves all the results and then applies the predicate
func (PolicyExemptionsClient) ListForResourceGroup ¶
func (c PolicyExemptionsClient) ListForResourceGroup(ctx context.Context, id commonids.ResourceGroupId, options ListForResourceGroupOperationOptions) (result ListForResourceGroupOperationResponse, err error)
ListForResourceGroup ...
func (PolicyExemptionsClient) ListForResourceGroupComplete ¶
func (c PolicyExemptionsClient) ListForResourceGroupComplete(ctx context.Context, id commonids.ResourceGroupId, options ListForResourceGroupOperationOptions) (ListForResourceGroupCompleteResult, error)
ListForResourceGroupComplete retrieves all the results into a single object
func (PolicyExemptionsClient) ListForResourceGroupCompleteMatchingPredicate ¶
func (c PolicyExemptionsClient) ListForResourceGroupCompleteMatchingPredicate(ctx context.Context, id commonids.ResourceGroupId, options ListForResourceGroupOperationOptions, predicate PolicyExemptionOperationPredicate) (result ListForResourceGroupCompleteResult, err error)
ListForResourceGroupCompleteMatchingPredicate retrieves all the results and then applies the predicate
func (PolicyExemptionsClient) Update ¶
func (c PolicyExemptionsClient) Update(ctx context.Context, id ScopedPolicyExemptionId, input PolicyExemptionUpdate) (result UpdateOperationResponse, err error)
Update ...
type ResourceSelector ¶
type ScopedPolicyExemptionId ¶
ScopedPolicyExemptionId is a struct representing the Resource ID for a Scoped Policy Exemption
func NewScopedPolicyExemptionID ¶
func NewScopedPolicyExemptionID(scope string, policyExemptionName string) ScopedPolicyExemptionId
NewScopedPolicyExemptionID returns a new ScopedPolicyExemptionId struct
func ParseScopedPolicyExemptionID ¶
func ParseScopedPolicyExemptionID(input string) (*ScopedPolicyExemptionId, error)
ParseScopedPolicyExemptionID parses 'input' into a ScopedPolicyExemptionId
func ParseScopedPolicyExemptionIDInsensitively ¶
func ParseScopedPolicyExemptionIDInsensitively(input string) (*ScopedPolicyExemptionId, error)
ParseScopedPolicyExemptionIDInsensitively parses 'input' case-insensitively into a ScopedPolicyExemptionId note: this method should only be used for API response data and not user input
func (ScopedPolicyExemptionId) ID ¶
func (id ScopedPolicyExemptionId) ID() string
ID returns the formatted Scoped Policy Exemption ID
func (ScopedPolicyExemptionId) Segments ¶
func (id ScopedPolicyExemptionId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Scoped Policy Exemption ID
func (ScopedPolicyExemptionId) String ¶
func (id ScopedPolicyExemptionId) String() string
String returns a human-readable description of this Scoped Policy Exemption ID
type Selector ¶
type Selector struct { In *[]string `json:"in,omitempty"` Kind *SelectorKind `json:"kind,omitempty"` NotIn *[]string `json:"notIn,omitempty"` }
type SelectorKind ¶
type SelectorKind string
const ( SelectorKindPolicyDefinitionReferenceId SelectorKind = "policyDefinitionReferenceId" SelectorKindResourceLocation SelectorKind = "resourceLocation" SelectorKindResourceType SelectorKind = "resourceType" SelectorKindResourceWithoutLocation SelectorKind = "resourceWithoutLocation" )
func (*SelectorKind) UnmarshalJSON ¶ added in v0.20230509.1154719
func (s *SelectorKind) UnmarshalJSON(bytes []byte) error
type UpdateOperationResponse ¶
type UpdateOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *PolicyExemption }
Source Files ¶
- client.go
- constants.go
- id_scopedpolicyexemption.go
- method_createorupdate.go
- method_delete.go
- method_get.go
- method_list.go
- method_listformanagementgroup.go
- method_listforresource.go
- method_listforresourcegroup.go
- method_update.go
- model_policyexemption.go
- model_policyexemptionproperties.go
- model_policyexemptionupdate.go
- model_policyexemptionupdateproperties.go
- model_resourceselector.go
- model_selector.go
- predicates.go
- version.go