Documentation
¶
Index ¶
- func PossibleValuesForActionType() []string
- func PossibleValuesForManagedRuleEnabledState() []string
- func ValidateSubscriptionID(input interface{}, key string) (warnings []string, errors []error)
- type ActionType
- type ManagedRuleDefinition
- type ManagedRuleEnabledState
- type ManagedRuleGroupDefinition
- type ManagedRuleSetDefinition
- type ManagedRuleSetDefinitionPredicate
- type ManagedRuleSetDefinitionProperties
- type ManagedRuleSetsListCompleteResult
- type ManagedRuleSetsListResponse
- type SubscriptionId
- type WebApplicationFirewallManagedRuleSetsClient
- func (c WebApplicationFirewallManagedRuleSetsClient) ManagedRuleSetsList(ctx context.Context, id SubscriptionId) (resp ManagedRuleSetsListResponse, err error)
- func (c WebApplicationFirewallManagedRuleSetsClient) ManagedRuleSetsListComplete(ctx context.Context, id SubscriptionId) (ManagedRuleSetsListCompleteResult, error)
- func (c WebApplicationFirewallManagedRuleSetsClient) ManagedRuleSetsListCompleteMatchingPredicate(ctx context.Context, id SubscriptionId, ...) (resp ManagedRuleSetsListCompleteResult, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PossibleValuesForActionType ¶
func PossibleValuesForActionType() []string
func PossibleValuesForManagedRuleEnabledState ¶
func PossibleValuesForManagedRuleEnabledState() []string
func ValidateSubscriptionID ¶
ValidateSubscriptionID checks that 'input' can be parsed as a Subscription ID
Types ¶
type ActionType ¶
type ActionType string
const ( ActionTypeAllow ActionType = "Allow" ActionTypeBlock ActionType = "Block" ActionTypeLog ActionType = "Log" ActionTypeRedirect ActionType = "Redirect" )
type ManagedRuleDefinition ¶
type ManagedRuleDefinition struct { DefaultAction *ActionType `json:"defaultAction,omitempty"` DefaultState *ManagedRuleEnabledState `json:"defaultState,omitempty"` Description *string `json:"description,omitempty"` RuleId *string `json:"ruleId,omitempty"` }
type ManagedRuleEnabledState ¶
type ManagedRuleEnabledState string
const ( ManagedRuleEnabledStateDisabled ManagedRuleEnabledState = "Disabled" ManagedRuleEnabledStateEnabled ManagedRuleEnabledState = "Enabled" )
type ManagedRuleGroupDefinition ¶
type ManagedRuleGroupDefinition struct { Description *string `json:"description,omitempty"` RuleGroupName *string `json:"ruleGroupName,omitempty"` Rules *[]ManagedRuleDefinition `json:"rules,omitempty"` }
type ManagedRuleSetDefinition ¶
type ManagedRuleSetDefinition struct { Id *string `json:"id,omitempty"` Location *string `json:"location,omitempty"` Name *string `json:"name,omitempty"` Properties *ManagedRuleSetDefinitionProperties `json:"properties,omitempty"` Tags *map[string]string `json:"tags,omitempty"` Type *string `json:"type,omitempty"` }
type ManagedRuleSetDefinitionPredicate ¶
type ManagedRuleSetDefinitionPredicate struct { Id *string Location *string Name *string Type *string }
func (ManagedRuleSetDefinitionPredicate) Matches ¶
func (p ManagedRuleSetDefinitionPredicate) Matches(input ManagedRuleSetDefinition) bool
type ManagedRuleSetDefinitionProperties ¶
type ManagedRuleSetDefinitionProperties struct { ProvisioningState *string `json:"provisioningState,omitempty"` RuleGroups *[]ManagedRuleGroupDefinition `json:"ruleGroups,omitempty"` RuleSetId *string `json:"ruleSetId,omitempty"` RuleSetType *string `json:"ruleSetType,omitempty"` RuleSetVersion *string `json:"ruleSetVersion,omitempty"` }
type ManagedRuleSetsListCompleteResult ¶
type ManagedRuleSetsListCompleteResult struct {
Items []ManagedRuleSetDefinition
}
type ManagedRuleSetsListResponse ¶
type ManagedRuleSetsListResponse struct { HttpResponse *http.Response Model *[]ManagedRuleSetDefinition // contains filtered or unexported fields }
func (ManagedRuleSetsListResponse) HasMore ¶
func (r ManagedRuleSetsListResponse) HasMore() bool
func (ManagedRuleSetsListResponse) LoadMore ¶
func (r ManagedRuleSetsListResponse) LoadMore(ctx context.Context) (resp ManagedRuleSetsListResponse, err error)
type SubscriptionId ¶
type SubscriptionId struct {
SubscriptionId string
}
SubscriptionId is a struct representing the Resource ID for a Subscription
func NewSubscriptionID ¶
func NewSubscriptionID(subscriptionId string) SubscriptionId
NewSubscriptionID returns a new SubscriptionId struct
func ParseSubscriptionID ¶
func ParseSubscriptionID(input string) (*SubscriptionId, error)
ParseSubscriptionID parses 'input' into a SubscriptionId
func ParseSubscriptionIDInsensitively ¶
func ParseSubscriptionIDInsensitively(input string) (*SubscriptionId, error)
ParseSubscriptionIDInsensitively parses 'input' case-insensitively into a SubscriptionId note: this method should only be used for API response data and not user input
func (SubscriptionId) ID ¶
func (id SubscriptionId) ID() string
ID returns the formatted Subscription ID
func (SubscriptionId) Segments ¶
func (id SubscriptionId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Subscription ID
func (SubscriptionId) String ¶
func (id SubscriptionId) String() string
String returns a human-readable description of this Subscription ID
type WebApplicationFirewallManagedRuleSetsClient ¶
type WebApplicationFirewallManagedRuleSetsClient struct { Client autorest.Client // contains filtered or unexported fields }
func NewWebApplicationFirewallManagedRuleSetsClientWithBaseURI ¶
func NewWebApplicationFirewallManagedRuleSetsClientWithBaseURI(endpoint string) WebApplicationFirewallManagedRuleSetsClient
func (WebApplicationFirewallManagedRuleSetsClient) ManagedRuleSetsList ¶
func (c WebApplicationFirewallManagedRuleSetsClient) ManagedRuleSetsList(ctx context.Context, id SubscriptionId) (resp ManagedRuleSetsListResponse, err error)
ManagedRuleSetsList ...
func (WebApplicationFirewallManagedRuleSetsClient) ManagedRuleSetsListComplete ¶
func (c WebApplicationFirewallManagedRuleSetsClient) ManagedRuleSetsListComplete(ctx context.Context, id SubscriptionId) (ManagedRuleSetsListCompleteResult, error)
ManagedRuleSetsListComplete retrieves all of the results into a single object
func (WebApplicationFirewallManagedRuleSetsClient) ManagedRuleSetsListCompleteMatchingPredicate ¶
func (c WebApplicationFirewallManagedRuleSetsClient) ManagedRuleSetsListCompleteMatchingPredicate(ctx context.Context, id SubscriptionId, predicate ManagedRuleSetDefinitionPredicate) (resp ManagedRuleSetsListCompleteResult, err error)
ManagedRuleSetsListCompleteMatchingPredicate retrieves all of the results and then applied the predicate