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) (resp 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, ...) (resp ListCompleteResult, err error)
- func (c PolicyExemptionsClient) ListForManagementGroup(ctx context.Context, id commonids.ManagementGroupId, ...) (resp 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, ...) (resp ListForManagementGroupCompleteResult, err error)
- func (c PolicyExemptionsClient) ListForResource(ctx context.Context, id commonids.ScopeId, ...) (resp 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, ...) (resp ListForResourceCompleteResult, err error)
- func (c PolicyExemptionsClient) ListForResourceGroup(ctx context.Context, id commonids.ResourceGroupId, ...) (resp 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, ...) (resp 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" )
type CreateOrUpdateOperationResponse ¶
type CreateOrUpdateOperationResponse struct { HttpResponse *http.Response Model *PolicyExemption }
type DeleteOperationResponse ¶
type ExemptionCategory ¶
type ExemptionCategory string
const ( ExemptionCategoryMitigated ExemptionCategory = "Mitigated" ExemptionCategoryWaiver ExemptionCategory = "Waiver" )
type GetOperationResponse ¶
type GetOperationResponse struct { HttpResponse *http.Response 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
type ListForManagementGroupOperationResponse ¶
type ListForManagementGroupOperationResponse struct { HttpResponse *http.Response Model *[]PolicyExemption // contains filtered or unexported fields }
func (ListForManagementGroupOperationResponse) HasMore ¶
func (r ListForManagementGroupOperationResponse) HasMore() bool
func (ListForManagementGroupOperationResponse) LoadMore ¶
func (r ListForManagementGroupOperationResponse) LoadMore(ctx context.Context) (resp ListForManagementGroupOperationResponse, err error)
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
type ListForResourceGroupOperationResponse ¶
type ListForResourceGroupOperationResponse struct { HttpResponse *http.Response Model *[]PolicyExemption // contains filtered or unexported fields }
func (ListForResourceGroupOperationResponse) HasMore ¶
func (r ListForResourceGroupOperationResponse) HasMore() bool
func (ListForResourceGroupOperationResponse) LoadMore ¶
func (r ListForResourceGroupOperationResponse) LoadMore(ctx context.Context) (resp ListForResourceGroupOperationResponse, err error)
type ListForResourceOperationOptions ¶
type ListForResourceOperationOptions struct {
Filter *string
}
func DefaultListForResourceOperationOptions ¶
func DefaultListForResourceOperationOptions() ListForResourceOperationOptions
type ListForResourceOperationResponse ¶
type ListForResourceOperationResponse struct { HttpResponse *http.Response Model *[]PolicyExemption // contains filtered or unexported fields }
func (ListForResourceOperationResponse) HasMore ¶
func (r ListForResourceOperationResponse) HasMore() bool
func (ListForResourceOperationResponse) LoadMore ¶
func (r ListForResourceOperationResponse) LoadMore(ctx context.Context) (resp ListForResourceOperationResponse, err error)
type ListOperationOptions ¶
type ListOperationOptions struct {
Filter *string
}
func DefaultListOperationOptions ¶
func DefaultListOperationOptions() ListOperationOptions
type ListOperationResponse ¶
type ListOperationResponse struct { HttpResponse *http.Response Model *[]PolicyExemption // contains filtered or unexported fields }
func (ListOperationResponse) HasMore ¶
func (r ListOperationResponse) HasMore() bool
func (ListOperationResponse) LoadMore ¶
func (r ListOperationResponse) LoadMore(ctx context.Context) (resp ListOperationResponse, err error)
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 autorest.Client // contains filtered or unexported fields }
func NewPolicyExemptionsClientWithBaseURI ¶
func NewPolicyExemptionsClientWithBaseURI(endpoint string) PolicyExemptionsClient
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) (resp ListOperationResponse, err error)
List ...
func (PolicyExemptionsClient) ListComplete ¶
func (c PolicyExemptionsClient) ListComplete(ctx context.Context, id commonids.SubscriptionId, options ListOperationOptions) (ListCompleteResult, error)
ListComplete retrieves all of the results into a single object
func (PolicyExemptionsClient) ListCompleteMatchingPredicate ¶
func (c PolicyExemptionsClient) ListCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, options ListOperationOptions, predicate PolicyExemptionOperationPredicate) (resp ListCompleteResult, err error)
ListCompleteMatchingPredicate retrieves all of the results and then applied the predicate
func (PolicyExemptionsClient) ListForManagementGroup ¶
func (c PolicyExemptionsClient) ListForManagementGroup(ctx context.Context, id commonids.ManagementGroupId, options ListForManagementGroupOperationOptions) (resp ListForManagementGroupOperationResponse, err error)
ListForManagementGroup ...
func (PolicyExemptionsClient) ListForManagementGroupComplete ¶
func (c PolicyExemptionsClient) ListForManagementGroupComplete(ctx context.Context, id commonids.ManagementGroupId, options ListForManagementGroupOperationOptions) (ListForManagementGroupCompleteResult, error)
ListForManagementGroupComplete retrieves all of the results into a single object
func (PolicyExemptionsClient) ListForManagementGroupCompleteMatchingPredicate ¶
func (c PolicyExemptionsClient) ListForManagementGroupCompleteMatchingPredicate(ctx context.Context, id commonids.ManagementGroupId, options ListForManagementGroupOperationOptions, predicate PolicyExemptionOperationPredicate) (resp ListForManagementGroupCompleteResult, err error)
ListForManagementGroupCompleteMatchingPredicate retrieves all of the results and then applied the predicate
func (PolicyExemptionsClient) ListForResource ¶
func (c PolicyExemptionsClient) ListForResource(ctx context.Context, id commonids.ScopeId, options ListForResourceOperationOptions) (resp ListForResourceOperationResponse, err error)
ListForResource ...
func (PolicyExemptionsClient) ListForResourceComplete ¶
func (c PolicyExemptionsClient) ListForResourceComplete(ctx context.Context, id commonids.ScopeId, options ListForResourceOperationOptions) (ListForResourceCompleteResult, error)
ListForResourceComplete retrieves all of the results into a single object
func (PolicyExemptionsClient) ListForResourceCompleteMatchingPredicate ¶
func (c PolicyExemptionsClient) ListForResourceCompleteMatchingPredicate(ctx context.Context, id commonids.ScopeId, options ListForResourceOperationOptions, predicate PolicyExemptionOperationPredicate) (resp ListForResourceCompleteResult, err error)
ListForResourceCompleteMatchingPredicate retrieves all of the results and then applied the predicate
func (PolicyExemptionsClient) ListForResourceGroup ¶
func (c PolicyExemptionsClient) ListForResourceGroup(ctx context.Context, id commonids.ResourceGroupId, options ListForResourceGroupOperationOptions) (resp ListForResourceGroupOperationResponse, err error)
ListForResourceGroup ...
func (PolicyExemptionsClient) ListForResourceGroupComplete ¶
func (c PolicyExemptionsClient) ListForResourceGroupComplete(ctx context.Context, id commonids.ResourceGroupId, options ListForResourceGroupOperationOptions) (ListForResourceGroupCompleteResult, error)
ListForResourceGroupComplete retrieves all of the results into a single object
func (PolicyExemptionsClient) ListForResourceGroupCompleteMatchingPredicate ¶
func (c PolicyExemptionsClient) ListForResourceGroupCompleteMatchingPredicate(ctx context.Context, id commonids.ResourceGroupId, options ListForResourceGroupOperationOptions, predicate PolicyExemptionOperationPredicate) (resp ListForResourceGroupCompleteResult, err error)
ListForResourceGroupCompleteMatchingPredicate retrieves all of the results and then applied 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" )
type UpdateOperationResponse ¶
type UpdateOperationResponse struct { HttpResponse *http.Response Model *PolicyExemption }
Source Files ¶
- client.go
- constants.go
- id_scopedpolicyexemption.go
- method_createorupdate_autorest.go
- method_delete_autorest.go
- method_get_autorest.go
- method_list_autorest.go
- method_listformanagementgroup_autorest.go
- method_listforresource_autorest.go
- method_listforresourcegroup_autorest.go
- method_update_autorest.go
- model_policyexemption.go
- model_policyexemptionproperties.go
- model_policyexemptionupdate.go
- model_policyexemptionupdateproperties.go
- model_resourceselector.go
- model_selector.go
- predicates.go
- version.go