Documentation ¶
Index ¶
- func PossibleValuesForActionType() []string
- func PossibleValuesForCustomRuleEnabledState() []string
- func PossibleValuesForDefaultCustomBlockResponseStatusCode() []string
- func PossibleValuesForManagedRuleEnabledState() []string
- func PossibleValuesForOperator() []string
- func PossibleValuesForPolicyEnabledState() []string
- func PossibleValuesForPolicyMode() []string
- func PossibleValuesForPolicyResourceState() []string
- func PossibleValuesForProvisioningState() []string
- func PossibleValuesForSkuName() []string
- func PossibleValuesForTransformType() []string
- func PossibleValuesForWafMatchVariable() []string
- func ValidateCdnWebApplicationFirewallPolicyID(input interface{}, key string) (warnings []string, errors []error)
- type ActionType
- type CdnEndpoint
- type CdnWebApplicationFirewallPolicy
- type CdnWebApplicationFirewallPolicyId
- func NewCdnWebApplicationFirewallPolicyID(subscriptionId string, resourceGroupName string, ...) CdnWebApplicationFirewallPolicyId
- func ParseCdnWebApplicationFirewallPolicyID(input string) (*CdnWebApplicationFirewallPolicyId, error)
- func ParseCdnWebApplicationFirewallPolicyIDInsensitively(input string) (*CdnWebApplicationFirewallPolicyId, error)
- type CdnWebApplicationFirewallPolicyOperationPredicate
- type CdnWebApplicationFirewallPolicyPatchParameters
- type CdnWebApplicationFirewallPolicyProperties
- type CustomRule
- type CustomRuleEnabledState
- type CustomRuleList
- type DefaultCustomBlockResponseStatusCode
- type ManagedRuleEnabledState
- type ManagedRuleGroupOverride
- type ManagedRuleOverride
- type ManagedRuleSet
- type ManagedRuleSetList
- type MatchCondition
- type Operator
- type PoliciesCreateOrUpdateOperationResponse
- type PoliciesDeleteOperationResponse
- type PoliciesGetOperationResponse
- type PoliciesListCompleteResult
- type PoliciesListCustomPager
- type PoliciesListOperationResponse
- type PoliciesUpdateOperationResponse
- type PolicyEnabledState
- type PolicyMode
- type PolicyResourceState
- type PolicySettings
- type ProvisioningState
- type RateLimitRule
- type RateLimitRuleList
- type Sku
- type SkuName
- type TransformType
- type WafMatchVariable
- type WebApplicationFirewallPoliciesClient
- func (c WebApplicationFirewallPoliciesClient) PoliciesCreateOrUpdate(ctx context.Context, id CdnWebApplicationFirewallPolicyId, ...) (result PoliciesCreateOrUpdateOperationResponse, err error)
- func (c WebApplicationFirewallPoliciesClient) PoliciesCreateOrUpdateThenPoll(ctx context.Context, id CdnWebApplicationFirewallPolicyId, ...) error
- func (c WebApplicationFirewallPoliciesClient) PoliciesDelete(ctx context.Context, id CdnWebApplicationFirewallPolicyId) (result PoliciesDeleteOperationResponse, err error)
- func (c WebApplicationFirewallPoliciesClient) PoliciesGet(ctx context.Context, id CdnWebApplicationFirewallPolicyId) (result PoliciesGetOperationResponse, err error)
- func (c WebApplicationFirewallPoliciesClient) PoliciesList(ctx context.Context, id commonids.ResourceGroupId) (result PoliciesListOperationResponse, err error)
- func (c WebApplicationFirewallPoliciesClient) PoliciesListComplete(ctx context.Context, id commonids.ResourceGroupId) (PoliciesListCompleteResult, error)
- func (c WebApplicationFirewallPoliciesClient) PoliciesListCompleteMatchingPredicate(ctx context.Context, id commonids.ResourceGroupId, ...) (result PoliciesListCompleteResult, err error)
- func (c WebApplicationFirewallPoliciesClient) PoliciesUpdate(ctx context.Context, id CdnWebApplicationFirewallPolicyId, ...) (result PoliciesUpdateOperationResponse, err error)
- func (c WebApplicationFirewallPoliciesClient) PoliciesUpdateThenPoll(ctx context.Context, id CdnWebApplicationFirewallPolicyId, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PossibleValuesForActionType ¶
func PossibleValuesForActionType() []string
func PossibleValuesForCustomRuleEnabledState ¶
func PossibleValuesForCustomRuleEnabledState() []string
func PossibleValuesForDefaultCustomBlockResponseStatusCode ¶
func PossibleValuesForDefaultCustomBlockResponseStatusCode() []string
func PossibleValuesForManagedRuleEnabledState ¶
func PossibleValuesForManagedRuleEnabledState() []string
func PossibleValuesForOperator ¶
func PossibleValuesForOperator() []string
func PossibleValuesForPolicyEnabledState ¶
func PossibleValuesForPolicyEnabledState() []string
func PossibleValuesForPolicyMode ¶
func PossibleValuesForPolicyMode() []string
func PossibleValuesForPolicyResourceState ¶
func PossibleValuesForPolicyResourceState() []string
func PossibleValuesForProvisioningState ¶
func PossibleValuesForProvisioningState() []string
func PossibleValuesForSkuName ¶
func PossibleValuesForSkuName() []string
func PossibleValuesForTransformType ¶
func PossibleValuesForTransformType() []string
func PossibleValuesForWafMatchVariable ¶
func PossibleValuesForWafMatchVariable() []string
func ValidateCdnWebApplicationFirewallPolicyID ¶
func ValidateCdnWebApplicationFirewallPolicyID(input interface{}, key string) (warnings []string, errors []error)
ValidateCdnWebApplicationFirewallPolicyID checks that 'input' can be parsed as a Cdn Web Application Firewall Policy ID
Types ¶
type ActionType ¶
type ActionType string
const ( ActionTypeAllow ActionType = "Allow" ActionTypeBlock ActionType = "Block" ActionTypeLog ActionType = "Log" ActionTypeRedirect ActionType = "Redirect" )
func (*ActionType) UnmarshalJSON ¶
func (s *ActionType) UnmarshalJSON(bytes []byte) error
type CdnEndpoint ¶
type CdnEndpoint struct {
Id *string `json:"id,omitempty"`
}
type CdnWebApplicationFirewallPolicy ¶
type CdnWebApplicationFirewallPolicy struct { Etag *string `json:"etag,omitempty"` Id *string `json:"id,omitempty"` Location string `json:"location"` Name *string `json:"name,omitempty"` Properties *CdnWebApplicationFirewallPolicyProperties `json:"properties,omitempty"` Sku Sku `json:"sku"` SystemData *systemdata.SystemData `json:"systemData,omitempty"` Tags *map[string]string `json:"tags,omitempty"` Type *string `json:"type,omitempty"` }
type CdnWebApplicationFirewallPolicyId ¶
type CdnWebApplicationFirewallPolicyId struct { SubscriptionId string ResourceGroupName string CdnWebApplicationFirewallPolicyName string }
CdnWebApplicationFirewallPolicyId is a struct representing the Resource ID for a Cdn Web Application Firewall Policy
func NewCdnWebApplicationFirewallPolicyID ¶
func NewCdnWebApplicationFirewallPolicyID(subscriptionId string, resourceGroupName string, cdnWebApplicationFirewallPolicyName string) CdnWebApplicationFirewallPolicyId
NewCdnWebApplicationFirewallPolicyID returns a new CdnWebApplicationFirewallPolicyId struct
func ParseCdnWebApplicationFirewallPolicyID ¶
func ParseCdnWebApplicationFirewallPolicyID(input string) (*CdnWebApplicationFirewallPolicyId, error)
ParseCdnWebApplicationFirewallPolicyID parses 'input' into a CdnWebApplicationFirewallPolicyId
func ParseCdnWebApplicationFirewallPolicyIDInsensitively ¶
func ParseCdnWebApplicationFirewallPolicyIDInsensitively(input string) (*CdnWebApplicationFirewallPolicyId, error)
ParseCdnWebApplicationFirewallPolicyIDInsensitively parses 'input' case-insensitively into a CdnWebApplicationFirewallPolicyId note: this method should only be used for API response data and not user input
func (*CdnWebApplicationFirewallPolicyId) FromParseResult ¶
func (id *CdnWebApplicationFirewallPolicyId) FromParseResult(input resourceids.ParseResult) error
func (CdnWebApplicationFirewallPolicyId) ID ¶
func (id CdnWebApplicationFirewallPolicyId) ID() string
ID returns the formatted Cdn Web Application Firewall Policy ID
func (CdnWebApplicationFirewallPolicyId) Segments ¶
func (id CdnWebApplicationFirewallPolicyId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Cdn Web Application Firewall Policy ID
func (CdnWebApplicationFirewallPolicyId) String ¶
func (id CdnWebApplicationFirewallPolicyId) String() string
String returns a human-readable description of this Cdn Web Application Firewall Policy ID
type CdnWebApplicationFirewallPolicyOperationPredicate ¶
type CdnWebApplicationFirewallPolicyOperationPredicate struct { Etag *string Id *string Location *string Name *string Type *string }
func (CdnWebApplicationFirewallPolicyOperationPredicate) Matches ¶
func (p CdnWebApplicationFirewallPolicyOperationPredicate) Matches(input CdnWebApplicationFirewallPolicy) bool
type CdnWebApplicationFirewallPolicyProperties ¶
type CdnWebApplicationFirewallPolicyProperties struct { CustomRules *CustomRuleList `json:"customRules,omitempty"` EndpointLinks *[]CdnEndpoint `json:"endpointLinks,omitempty"` ExtendedProperties *map[string]string `json:"extendedProperties,omitempty"` ManagedRules *ManagedRuleSetList `json:"managedRules,omitempty"` PolicySettings *PolicySettings `json:"policySettings,omitempty"` ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` RateLimitRules *RateLimitRuleList `json:"rateLimitRules,omitempty"` ResourceState *PolicyResourceState `json:"resourceState,omitempty"` }
type CustomRule ¶
type CustomRule struct { Action ActionType `json:"action"` EnabledState *CustomRuleEnabledState `json:"enabledState,omitempty"` MatchConditions []MatchCondition `json:"matchConditions"` Name string `json:"name"` Priority int64 `json:"priority"` }
type CustomRuleEnabledState ¶
type CustomRuleEnabledState string
const ( CustomRuleEnabledStateDisabled CustomRuleEnabledState = "Disabled" CustomRuleEnabledStateEnabled CustomRuleEnabledState = "Enabled" )
func (*CustomRuleEnabledState) UnmarshalJSON ¶
func (s *CustomRuleEnabledState) UnmarshalJSON(bytes []byte) error
type CustomRuleList ¶
type CustomRuleList struct {
Rules *[]CustomRule `json:"rules,omitempty"`
}
type DefaultCustomBlockResponseStatusCode ¶
type DefaultCustomBlockResponseStatusCode string
const ( DefaultCustomBlockResponseStatusCodeFourTwoNine DefaultCustomBlockResponseStatusCode = "429" DefaultCustomBlockResponseStatusCodeFourZeroFive DefaultCustomBlockResponseStatusCode = "405" DefaultCustomBlockResponseStatusCodeFourZeroSix DefaultCustomBlockResponseStatusCode = "406" DefaultCustomBlockResponseStatusCodeFourZeroThree DefaultCustomBlockResponseStatusCode = "403" DefaultCustomBlockResponseStatusCodeTwoHundred DefaultCustomBlockResponseStatusCode = "200" )
func (*DefaultCustomBlockResponseStatusCode) UnmarshalJSON ¶
func (s *DefaultCustomBlockResponseStatusCode) UnmarshalJSON(bytes []byte) error
type ManagedRuleEnabledState ¶
type ManagedRuleEnabledState string
const ( ManagedRuleEnabledStateDisabled ManagedRuleEnabledState = "Disabled" ManagedRuleEnabledStateEnabled ManagedRuleEnabledState = "Enabled" )
func (*ManagedRuleEnabledState) UnmarshalJSON ¶
func (s *ManagedRuleEnabledState) UnmarshalJSON(bytes []byte) error
type ManagedRuleGroupOverride ¶
type ManagedRuleGroupOverride struct { RuleGroupName string `json:"ruleGroupName"` Rules *[]ManagedRuleOverride `json:"rules,omitempty"` }
type ManagedRuleOverride ¶
type ManagedRuleOverride struct { Action *ActionType `json:"action,omitempty"` EnabledState *ManagedRuleEnabledState `json:"enabledState,omitempty"` RuleId string `json:"ruleId"` }
type ManagedRuleSet ¶
type ManagedRuleSet struct { AnomalyScore *int64 `json:"anomalyScore,omitempty"` RuleGroupOverrides *[]ManagedRuleGroupOverride `json:"ruleGroupOverrides,omitempty"` RuleSetType string `json:"ruleSetType"` RuleSetVersion string `json:"ruleSetVersion"` }
type ManagedRuleSetList ¶
type ManagedRuleSetList struct {
ManagedRuleSets *[]ManagedRuleSet `json:"managedRuleSets,omitempty"`
}
type MatchCondition ¶
type MatchCondition struct { MatchValue []string `json:"matchValue"` MatchVariable WafMatchVariable `json:"matchVariable"` NegateCondition *bool `json:"negateCondition,omitempty"` Operator Operator `json:"operator"` Selector *string `json:"selector,omitempty"` Transforms *[]TransformType `json:"transforms,omitempty"` }
type Operator ¶
type Operator string
const ( OperatorAny Operator = "Any" OperatorBeginsWith Operator = "BeginsWith" OperatorContains Operator = "Contains" OperatorEndsWith Operator = "EndsWith" OperatorEqual Operator = "Equal" OperatorGeoMatch Operator = "GeoMatch" OperatorGreaterThan Operator = "GreaterThan" OperatorGreaterThanOrEqual Operator = "GreaterThanOrEqual" OperatorIPMatch Operator = "IPMatch" OperatorLessThan Operator = "LessThan" OperatorLessThanOrEqual Operator = "LessThanOrEqual" OperatorRegEx Operator = "RegEx" )
func (*Operator) UnmarshalJSON ¶
type PoliciesGetOperationResponse ¶
type PoliciesGetOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *CdnWebApplicationFirewallPolicy }
type PoliciesListCompleteResult ¶
type PoliciesListCompleteResult struct { LatestHttpResponse *http.Response Items []CdnWebApplicationFirewallPolicy }
type PoliciesListCustomPager ¶
func (*PoliciesListCustomPager) NextPageLink ¶
func (p *PoliciesListCustomPager) NextPageLink() *odata.Link
type PoliciesListOperationResponse ¶
type PoliciesListOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *[]CdnWebApplicationFirewallPolicy }
type PolicyEnabledState ¶
type PolicyEnabledState string
const ( PolicyEnabledStateDisabled PolicyEnabledState = "Disabled" PolicyEnabledStateEnabled PolicyEnabledState = "Enabled" )
func (*PolicyEnabledState) UnmarshalJSON ¶
func (s *PolicyEnabledState) UnmarshalJSON(bytes []byte) error
type PolicyMode ¶
type PolicyMode string
const ( PolicyModeDetection PolicyMode = "Detection" PolicyModePrevention PolicyMode = "Prevention" )
func (*PolicyMode) UnmarshalJSON ¶
func (s *PolicyMode) UnmarshalJSON(bytes []byte) error
type PolicyResourceState ¶
type PolicyResourceState string
const ( PolicyResourceStateCreating PolicyResourceState = "Creating" PolicyResourceStateDeleting PolicyResourceState = "Deleting" PolicyResourceStateDisabled PolicyResourceState = "Disabled" PolicyResourceStateDisabling PolicyResourceState = "Disabling" PolicyResourceStateEnabled PolicyResourceState = "Enabled" PolicyResourceStateEnabling PolicyResourceState = "Enabling" )
func (*PolicyResourceState) UnmarshalJSON ¶
func (s *PolicyResourceState) UnmarshalJSON(bytes []byte) error
type PolicySettings ¶
type PolicySettings struct { DefaultCustomBlockResponseBody *string `json:"defaultCustomBlockResponseBody,omitempty"` DefaultCustomBlockResponseStatusCode *DefaultCustomBlockResponseStatusCode `json:"defaultCustomBlockResponseStatusCode,omitempty"` DefaultRedirectURL *string `json:"defaultRedirectUrl,omitempty"` EnabledState *PolicyEnabledState `json:"enabledState,omitempty"` Mode *PolicyMode `json:"mode,omitempty"` }
type ProvisioningState ¶
type ProvisioningState string
const ( ProvisioningStateCreating ProvisioningState = "Creating" ProvisioningStateFailed ProvisioningState = "Failed" ProvisioningStateSucceeded ProvisioningState = "Succeeded" )
func (*ProvisioningState) UnmarshalJSON ¶
func (s *ProvisioningState) UnmarshalJSON(bytes []byte) error
type RateLimitRule ¶
type RateLimitRule struct { Action ActionType `json:"action"` EnabledState *CustomRuleEnabledState `json:"enabledState,omitempty"` MatchConditions []MatchCondition `json:"matchConditions"` Name string `json:"name"` Priority int64 `json:"priority"` RateLimitDurationInMinutes int64 `json:"rateLimitDurationInMinutes"` RateLimitThreshold int64 `json:"rateLimitThreshold"` }
type RateLimitRuleList ¶
type RateLimitRuleList struct {
Rules *[]RateLimitRule `json:"rules,omitempty"`
}
type SkuName ¶
type SkuName string
const ( SkuNameCustomVerizon SkuName = "Custom_Verizon" SkuNamePremiumAzureFrontDoor SkuName = "Premium_AzureFrontDoor" SkuNamePremiumVerizon SkuName = "Premium_Verizon" SkuNameStandardAkamai SkuName = "Standard_Akamai" SkuNameStandardAvgBandWidthChinaCdn SkuName = "Standard_AvgBandWidth_ChinaCdn" SkuNameStandardAzureFrontDoor SkuName = "Standard_AzureFrontDoor" SkuNameStandardChinaCdn SkuName = "Standard_ChinaCdn" SkuNameStandardMicrosoft SkuName = "Standard_Microsoft" SkuNameStandardNineFiveFiveBandWidthChinaCdn SkuName = "Standard_955BandWidth_ChinaCdn" SkuNameStandardPlusAvgBandWidthChinaCdn SkuName = "StandardPlus_AvgBandWidth_ChinaCdn" SkuNameStandardPlusChinaCdn SkuName = "StandardPlus_ChinaCdn" SkuNameStandardPlusNineFiveFiveBandWidthChinaCdn SkuName = "StandardPlus_955BandWidth_ChinaCdn" SkuNameStandardVerizon SkuName = "Standard_Verizon" )
func (*SkuName) UnmarshalJSON ¶
type TransformType ¶
type TransformType string
const ( TransformTypeLowercase TransformType = "Lowercase" TransformTypeRemoveNulls TransformType = "RemoveNulls" TransformTypeTrim TransformType = "Trim" TransformTypeURLDecode TransformType = "UrlDecode" TransformTypeURLEncode TransformType = "UrlEncode" TransformTypeUppercase TransformType = "Uppercase" )
func (*TransformType) UnmarshalJSON ¶
func (s *TransformType) UnmarshalJSON(bytes []byte) error
type WafMatchVariable ¶
type WafMatchVariable string
const ( WafMatchVariableCookies WafMatchVariable = "Cookies" WafMatchVariablePostArgs WafMatchVariable = "PostArgs" WafMatchVariableQueryString WafMatchVariable = "QueryString" WafMatchVariableRemoteAddr WafMatchVariable = "RemoteAddr" WafMatchVariableRequestBody WafMatchVariable = "RequestBody" WafMatchVariableRequestHeader WafMatchVariable = "RequestHeader" WafMatchVariableRequestMethod WafMatchVariable = "RequestMethod" WafMatchVariableRequestUri WafMatchVariable = "RequestUri" WafMatchVariableSocketAddr WafMatchVariable = "SocketAddr" )
func (*WafMatchVariable) UnmarshalJSON ¶
func (s *WafMatchVariable) UnmarshalJSON(bytes []byte) error
type WebApplicationFirewallPoliciesClient ¶
type WebApplicationFirewallPoliciesClient struct {
Client *resourcemanager.Client
}
func NewWebApplicationFirewallPoliciesClientWithBaseURI ¶
func NewWebApplicationFirewallPoliciesClientWithBaseURI(sdkApi sdkEnv.Api) (*WebApplicationFirewallPoliciesClient, error)
func (WebApplicationFirewallPoliciesClient) PoliciesCreateOrUpdate ¶
func (c WebApplicationFirewallPoliciesClient) PoliciesCreateOrUpdate(ctx context.Context, id CdnWebApplicationFirewallPolicyId, input CdnWebApplicationFirewallPolicy) (result PoliciesCreateOrUpdateOperationResponse, err error)
PoliciesCreateOrUpdate ...
func (WebApplicationFirewallPoliciesClient) PoliciesCreateOrUpdateThenPoll ¶
func (c WebApplicationFirewallPoliciesClient) PoliciesCreateOrUpdateThenPoll(ctx context.Context, id CdnWebApplicationFirewallPolicyId, input CdnWebApplicationFirewallPolicy) error
PoliciesCreateOrUpdateThenPoll performs PoliciesCreateOrUpdate then polls until it's completed
func (WebApplicationFirewallPoliciesClient) PoliciesDelete ¶
func (c WebApplicationFirewallPoliciesClient) PoliciesDelete(ctx context.Context, id CdnWebApplicationFirewallPolicyId) (result PoliciesDeleteOperationResponse, err error)
PoliciesDelete ...
func (WebApplicationFirewallPoliciesClient) PoliciesGet ¶
func (c WebApplicationFirewallPoliciesClient) PoliciesGet(ctx context.Context, id CdnWebApplicationFirewallPolicyId) (result PoliciesGetOperationResponse, err error)
PoliciesGet ...
func (WebApplicationFirewallPoliciesClient) PoliciesList ¶
func (c WebApplicationFirewallPoliciesClient) PoliciesList(ctx context.Context, id commonids.ResourceGroupId) (result PoliciesListOperationResponse, err error)
PoliciesList ...
func (WebApplicationFirewallPoliciesClient) PoliciesListComplete ¶
func (c WebApplicationFirewallPoliciesClient) PoliciesListComplete(ctx context.Context, id commonids.ResourceGroupId) (PoliciesListCompleteResult, error)
PoliciesListComplete retrieves all the results into a single object
func (WebApplicationFirewallPoliciesClient) PoliciesListCompleteMatchingPredicate ¶
func (c WebApplicationFirewallPoliciesClient) PoliciesListCompleteMatchingPredicate(ctx context.Context, id commonids.ResourceGroupId, predicate CdnWebApplicationFirewallPolicyOperationPredicate) (result PoliciesListCompleteResult, err error)
PoliciesListCompleteMatchingPredicate retrieves all the results and then applies the predicate
func (WebApplicationFirewallPoliciesClient) PoliciesUpdate ¶
func (c WebApplicationFirewallPoliciesClient) PoliciesUpdate(ctx context.Context, id CdnWebApplicationFirewallPolicyId, input CdnWebApplicationFirewallPolicyPatchParameters) (result PoliciesUpdateOperationResponse, err error)
PoliciesUpdate ...
func (WebApplicationFirewallPoliciesClient) PoliciesUpdateThenPoll ¶
func (c WebApplicationFirewallPoliciesClient) PoliciesUpdateThenPoll(ctx context.Context, id CdnWebApplicationFirewallPolicyId, input CdnWebApplicationFirewallPolicyPatchParameters) error
PoliciesUpdateThenPoll performs PoliciesUpdate then polls until it's completed
Source Files ¶
- client.go
- constants.go
- id_cdnwebapplicationfirewallpolicy.go
- method_policiescreateorupdate.go
- method_policiesdelete.go
- method_policiesget.go
- method_policieslist.go
- method_policiesupdate.go
- model_cdnendpoint.go
- model_cdnwebapplicationfirewallpolicy.go
- model_cdnwebapplicationfirewallpolicypatchparameters.go
- model_cdnwebapplicationfirewallpolicyproperties.go
- model_customrule.go
- model_customrulelist.go
- model_managedrulegroupoverride.go
- model_managedruleoverride.go
- model_managedruleset.go
- model_managedrulesetlist.go
- model_matchcondition.go
- model_policysettings.go
- model_ratelimitrule.go
- model_ratelimitrulelist.go
- model_sku.go
- predicates.go
- version.go