rules

package
v0.20241126.2320 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 26, 2024 License: MPL-2.0 Imports: 13 Imported by: 0

README

github.com/hashicorp/go-azure-sdk/resource-manager/cdn/2024-09-01/rules Documentation

The rules SDK allows for interaction with Azure Resource Manager cdn (API Version 2024-09-01).

This readme covers example usages, but further information on using this SDK can be found in the project root.

Import Path

import "github.com/hashicorp/go-azure-sdk/resource-manager/cdn/2024-09-01/rules"

Client Initialization

client := rules.NewRulesClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: RulesClient.Create

ctx := context.TODO()
id := rules.NewRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "profileName", "ruleSetName", "ruleName")

payload := rules.Rule{
	// ...
}


if err := client.CreateThenPoll(ctx, id, payload); err != nil {
	// handle the error
}

Example Usage: RulesClient.Delete

ctx := context.TODO()
id := rules.NewRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "profileName", "ruleSetName", "ruleName")

if err := client.DeleteThenPoll(ctx, id); err != nil {
	// handle the error
}

Example Usage: RulesClient.Get

ctx := context.TODO()
id := rules.NewRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "profileName", "ruleSetName", "ruleName")

read, err := client.Get(ctx, id)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: RulesClient.ListByRuleSet

ctx := context.TODO()
id := rules.NewRuleSetID("12345678-1234-9876-4563-123456789012", "example-resource-group", "profileName", "ruleSetName")

// alternatively `client.ListByRuleSet(ctx, id)` can be used to do batched pagination
items, err := client.ListByRuleSetComplete(ctx, id)
if err != nil {
	// handle the error
}
for _, item := range items {
	// do something
}

Example Usage: RulesClient.Update

ctx := context.TODO()
id := rules.NewRuleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "profileName", "ruleSetName", "ruleName")

payload := rules.RuleUpdateParameters{
	// ...
}


if err := client.UpdateThenPoll(ctx, id, payload); err != nil {
	// handle the error
}

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PossibleValuesForAfdProvisioningState

func PossibleValuesForAfdProvisioningState() []string

func PossibleValuesForAlgorithm

func PossibleValuesForAlgorithm() []string

func PossibleValuesForCacheBehavior

func PossibleValuesForCacheBehavior() []string

func PossibleValuesForCacheType

func PossibleValuesForCacheType() []string

func PossibleValuesForClientPortOperator

func PossibleValuesForClientPortOperator() []string

func PossibleValuesForCookiesOperator

func PossibleValuesForCookiesOperator() []string

func PossibleValuesForDeliveryRuleActionName

func PossibleValuesForDeliveryRuleActionName() []string

func PossibleValuesForDeliveryRuleActionParametersType

func PossibleValuesForDeliveryRuleActionParametersType() []string

func PossibleValuesForDeliveryRuleConditionParametersType

func PossibleValuesForDeliveryRuleConditionParametersType() []string

func PossibleValuesForDeploymentStatus

func PossibleValuesForDeploymentStatus() []string

func PossibleValuesForDestinationProtocol

func PossibleValuesForDestinationProtocol() []string

func PossibleValuesForForwardingProtocol

func PossibleValuesForForwardingProtocol() []string

func PossibleValuesForHTTPVersionOperator

func PossibleValuesForHTTPVersionOperator() []string

func PossibleValuesForHeaderAction

func PossibleValuesForHeaderAction() []string

func PossibleValuesForHostNameOperator

func PossibleValuesForHostNameOperator() []string

func PossibleValuesForIsDeviceMatchValue

func PossibleValuesForIsDeviceMatchValue() []string

func PossibleValuesForIsDeviceOperator

func PossibleValuesForIsDeviceOperator() []string

func PossibleValuesForMatchProcessingBehavior

func PossibleValuesForMatchProcessingBehavior() []string

func PossibleValuesForMatchVariable

func PossibleValuesForMatchVariable() []string

func PossibleValuesForOperator

func PossibleValuesForOperator() []string

func PossibleValuesForParamIndicator

func PossibleValuesForParamIndicator() []string

func PossibleValuesForPostArgsOperator

func PossibleValuesForPostArgsOperator() []string

func PossibleValuesForQueryStringBehavior

func PossibleValuesForQueryStringBehavior() []string

func PossibleValuesForQueryStringOperator

func PossibleValuesForQueryStringOperator() []string

func PossibleValuesForRedirectType

func PossibleValuesForRedirectType() []string

func PossibleValuesForRemoteAddressOperator

func PossibleValuesForRemoteAddressOperator() []string

func PossibleValuesForRequestBodyOperator

func PossibleValuesForRequestBodyOperator() []string

func PossibleValuesForRequestHeaderOperator

func PossibleValuesForRequestHeaderOperator() []string

func PossibleValuesForRequestMethodMatchValue

func PossibleValuesForRequestMethodMatchValue() []string

func PossibleValuesForRequestMethodOperator

func PossibleValuesForRequestMethodOperator() []string

func PossibleValuesForRequestSchemeMatchValue

func PossibleValuesForRequestSchemeMatchValue() []string

func PossibleValuesForRequestUriOperator

func PossibleValuesForRequestUriOperator() []string

func PossibleValuesForRuleCacheBehavior

func PossibleValuesForRuleCacheBehavior() []string

func PossibleValuesForRuleIsCompressionEnabled

func PossibleValuesForRuleIsCompressionEnabled() []string

func PossibleValuesForRuleQueryStringCachingBehavior

func PossibleValuesForRuleQueryStringCachingBehavior() []string

func PossibleValuesForServerPortOperator

func PossibleValuesForServerPortOperator() []string

func PossibleValuesForSocketAddrOperator

func PossibleValuesForSocketAddrOperator() []string

func PossibleValuesForSslProtocol

func PossibleValuesForSslProtocol() []string

func PossibleValuesForSslProtocolOperator

func PossibleValuesForSslProtocolOperator() []string

func PossibleValuesForTransform

func PossibleValuesForTransform() []string

func PossibleValuesForURLFileExtensionOperator

func PossibleValuesForURLFileExtensionOperator() []string

func PossibleValuesForURLFileNameOperator

func PossibleValuesForURLFileNameOperator() []string

func PossibleValuesForURLPathOperator

func PossibleValuesForURLPathOperator() []string

func ValidateRuleID

func ValidateRuleID(input interface{}, key string) (warnings []string, errors []error)

ValidateRuleID checks that 'input' can be parsed as a Rule ID

func ValidateRuleSetID

func ValidateRuleSetID(input interface{}, key string) (warnings []string, errors []error)

ValidateRuleSetID checks that 'input' can be parsed as a Rule Set ID

Types

type AfdProvisioningState

type AfdProvisioningState string
const (
	AfdProvisioningStateCreating  AfdProvisioningState = "Creating"
	AfdProvisioningStateDeleting  AfdProvisioningState = "Deleting"
	AfdProvisioningStateFailed    AfdProvisioningState = "Failed"
	AfdProvisioningStateSucceeded AfdProvisioningState = "Succeeded"
	AfdProvisioningStateUpdating  AfdProvisioningState = "Updating"
)

func (*AfdProvisioningState) UnmarshalJSON

func (s *AfdProvisioningState) UnmarshalJSON(bytes []byte) error

type Algorithm

type Algorithm string
const (
	AlgorithmSHATwoFiveSix Algorithm = "SHA256"
)

func (*Algorithm) UnmarshalJSON

func (s *Algorithm) UnmarshalJSON(bytes []byte) error

type BaseDeliveryRuleActionImpl

type BaseDeliveryRuleActionImpl struct {
	Name DeliveryRuleActionName `json:"name"`
}

func (BaseDeliveryRuleActionImpl) DeliveryRuleAction

type BaseDeliveryRuleActionParametersImpl

type BaseDeliveryRuleActionParametersImpl struct {
	TypeName DeliveryRuleActionParametersType `json:"typeName"`
}

func (BaseDeliveryRuleActionParametersImpl) DeliveryRuleActionParameters

type BaseDeliveryRuleConditionImpl

type BaseDeliveryRuleConditionImpl struct {
	Name MatchVariable `json:"name"`
}

func (BaseDeliveryRuleConditionImpl) DeliveryRuleCondition

type BaseDeliveryRuleConditionParametersImpl

type BaseDeliveryRuleConditionParametersImpl struct {
	TypeName DeliveryRuleConditionParametersType `json:"typeName"`
}

func (BaseDeliveryRuleConditionParametersImpl) DeliveryRuleConditionParameters

type CacheBehavior

type CacheBehavior string
const (
	CacheBehaviorBypassCache  CacheBehavior = "BypassCache"
	CacheBehaviorOverride     CacheBehavior = "Override"
	CacheBehaviorSetIfMissing CacheBehavior = "SetIfMissing"
)

func (*CacheBehavior) UnmarshalJSON

func (s *CacheBehavior) UnmarshalJSON(bytes []byte) error

type CacheConfiguration

type CacheConfiguration struct {
	CacheBehavior              *RuleCacheBehavior              `json:"cacheBehavior,omitempty"`
	CacheDuration              *string                         `json:"cacheDuration,omitempty"`
	IsCompressionEnabled       *RuleIsCompressionEnabled       `json:"isCompressionEnabled,omitempty"`
	QueryParameters            *string                         `json:"queryParameters,omitempty"`
	QueryStringCachingBehavior *RuleQueryStringCachingBehavior `json:"queryStringCachingBehavior,omitempty"`
}

type CacheExpirationActionParameters

type CacheExpirationActionParameters struct {
	CacheBehavior CacheBehavior `json:"cacheBehavior"`
	CacheDuration *string       `json:"cacheDuration,omitempty"`
	CacheType     CacheType     `json:"cacheType"`

	TypeName DeliveryRuleActionParametersType `json:"typeName"`
}

func (CacheExpirationActionParameters) DeliveryRuleActionParameters

func (CacheExpirationActionParameters) MarshalJSON

func (s CacheExpirationActionParameters) MarshalJSON() ([]byte, error)

type CacheKeyQueryStringActionParameters

type CacheKeyQueryStringActionParameters struct {
	QueryParameters     *string             `json:"queryParameters,omitempty"`
	QueryStringBehavior QueryStringBehavior `json:"queryStringBehavior"`

	TypeName DeliveryRuleActionParametersType `json:"typeName"`
}

func (CacheKeyQueryStringActionParameters) DeliveryRuleActionParameters

func (CacheKeyQueryStringActionParameters) MarshalJSON

func (s CacheKeyQueryStringActionParameters) MarshalJSON() ([]byte, error)

type CacheType

type CacheType string
const (
	CacheTypeAll CacheType = "All"
)

func (*CacheType) UnmarshalJSON

func (s *CacheType) UnmarshalJSON(bytes []byte) error

type ClientPortMatchConditionParameters

type ClientPortMatchConditionParameters struct {
	MatchValues     *[]string          `json:"matchValues,omitempty"`
	NegateCondition *bool              `json:"negateCondition,omitempty"`
	Operator        ClientPortOperator `json:"operator"`
	Transforms      *[]Transform       `json:"transforms,omitempty"`

	TypeName DeliveryRuleConditionParametersType `json:"typeName"`
}

func (ClientPortMatchConditionParameters) DeliveryRuleConditionParameters

func (ClientPortMatchConditionParameters) MarshalJSON

func (s ClientPortMatchConditionParameters) MarshalJSON() ([]byte, error)

type ClientPortOperator

type ClientPortOperator string
const (
	ClientPortOperatorAny                ClientPortOperator = "Any"
	ClientPortOperatorBeginsWith         ClientPortOperator = "BeginsWith"
	ClientPortOperatorContains           ClientPortOperator = "Contains"
	ClientPortOperatorEndsWith           ClientPortOperator = "EndsWith"
	ClientPortOperatorEqual              ClientPortOperator = "Equal"
	ClientPortOperatorGreaterThan        ClientPortOperator = "GreaterThan"
	ClientPortOperatorGreaterThanOrEqual ClientPortOperator = "GreaterThanOrEqual"
	ClientPortOperatorLessThan           ClientPortOperator = "LessThan"
	ClientPortOperatorLessThanOrEqual    ClientPortOperator = "LessThanOrEqual"
	ClientPortOperatorRegEx              ClientPortOperator = "RegEx"
)

func (*ClientPortOperator) UnmarshalJSON

func (s *ClientPortOperator) UnmarshalJSON(bytes []byte) error

type CookiesMatchConditionParameters

type CookiesMatchConditionParameters struct {
	MatchValues     *[]string       `json:"matchValues,omitempty"`
	NegateCondition *bool           `json:"negateCondition,omitempty"`
	Operator        CookiesOperator `json:"operator"`
	Selector        *string         `json:"selector,omitempty"`
	Transforms      *[]Transform    `json:"transforms,omitempty"`

	TypeName DeliveryRuleConditionParametersType `json:"typeName"`
}

func (CookiesMatchConditionParameters) DeliveryRuleConditionParameters

func (CookiesMatchConditionParameters) MarshalJSON

func (s CookiesMatchConditionParameters) MarshalJSON() ([]byte, error)

type CookiesOperator

type CookiesOperator string
const (
	CookiesOperatorAny                CookiesOperator = "Any"
	CookiesOperatorBeginsWith         CookiesOperator = "BeginsWith"
	CookiesOperatorContains           CookiesOperator = "Contains"
	CookiesOperatorEndsWith           CookiesOperator = "EndsWith"
	CookiesOperatorEqual              CookiesOperator = "Equal"
	CookiesOperatorGreaterThan        CookiesOperator = "GreaterThan"
	CookiesOperatorGreaterThanOrEqual CookiesOperator = "GreaterThanOrEqual"
	CookiesOperatorLessThan           CookiesOperator = "LessThan"
	CookiesOperatorLessThanOrEqual    CookiesOperator = "LessThanOrEqual"
	CookiesOperatorRegEx              CookiesOperator = "RegEx"
)

func (*CookiesOperator) UnmarshalJSON

func (s *CookiesOperator) UnmarshalJSON(bytes []byte) error

type CreateOperationResponse

type CreateOperationResponse struct {
	Poller       pollers.Poller
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *Rule
}

type DeleteOperationResponse

type DeleteOperationResponse struct {
	Poller       pollers.Poller
	HttpResponse *http.Response
	OData        *odata.OData
}

type DeliveryRuleAction

type DeliveryRuleAction interface {
	DeliveryRuleAction() BaseDeliveryRuleActionImpl
}

func UnmarshalDeliveryRuleActionImplementation

func UnmarshalDeliveryRuleActionImplementation(input []byte) (DeliveryRuleAction, error)

type DeliveryRuleActionName

type DeliveryRuleActionName string
const (
	DeliveryRuleActionNameCacheExpiration            DeliveryRuleActionName = "CacheExpiration"
	DeliveryRuleActionNameCacheKeyQueryString        DeliveryRuleActionName = "CacheKeyQueryString"
	DeliveryRuleActionNameModifyRequestHeader        DeliveryRuleActionName = "ModifyRequestHeader"
	DeliveryRuleActionNameModifyResponseHeader       DeliveryRuleActionName = "ModifyResponseHeader"
	DeliveryRuleActionNameOriginGroupOverride        DeliveryRuleActionName = "OriginGroupOverride"
	DeliveryRuleActionNameRouteConfigurationOverride DeliveryRuleActionName = "RouteConfigurationOverride"
	DeliveryRuleActionNameURLRedirect                DeliveryRuleActionName = "UrlRedirect"
	DeliveryRuleActionNameURLRewrite                 DeliveryRuleActionName = "UrlRewrite"
	DeliveryRuleActionNameURLSigning                 DeliveryRuleActionName = "UrlSigning"
)

func (*DeliveryRuleActionName) UnmarshalJSON

func (s *DeliveryRuleActionName) UnmarshalJSON(bytes []byte) error

type DeliveryRuleActionParameters

type DeliveryRuleActionParameters interface {
	DeliveryRuleActionParameters() BaseDeliveryRuleActionParametersImpl
}

func UnmarshalDeliveryRuleActionParametersImplementation

func UnmarshalDeliveryRuleActionParametersImplementation(input []byte) (DeliveryRuleActionParameters, error)

type DeliveryRuleActionParametersType

type DeliveryRuleActionParametersType string
const (
	DeliveryRuleActionParametersTypeDeliveryRuleCacheExpirationActionParameters             DeliveryRuleActionParametersType = "DeliveryRuleCacheExpirationActionParameters"
	DeliveryRuleActionParametersTypeDeliveryRuleCacheKeyQueryStringBehaviorActionParameters DeliveryRuleActionParametersType = "DeliveryRuleCacheKeyQueryStringBehaviorActionParameters"
	DeliveryRuleActionParametersTypeDeliveryRuleHeaderActionParameters                      DeliveryRuleActionParametersType = "DeliveryRuleHeaderActionParameters"
	DeliveryRuleActionParametersTypeDeliveryRuleOriginGroupOverrideActionParameters         DeliveryRuleActionParametersType = "DeliveryRuleOriginGroupOverrideActionParameters"
	DeliveryRuleActionParametersTypeDeliveryRuleRouteConfigurationOverrideActionParameters  DeliveryRuleActionParametersType = "DeliveryRuleRouteConfigurationOverrideActionParameters"
	DeliveryRuleActionParametersTypeDeliveryRuleURLRedirectActionParameters                 DeliveryRuleActionParametersType = "DeliveryRuleUrlRedirectActionParameters"
	DeliveryRuleActionParametersTypeDeliveryRuleURLRewriteActionParameters                  DeliveryRuleActionParametersType = "DeliveryRuleUrlRewriteActionParameters"
	DeliveryRuleActionParametersTypeDeliveryRuleURLSigningActionParameters                  DeliveryRuleActionParametersType = "DeliveryRuleUrlSigningActionParameters"
)

func (*DeliveryRuleActionParametersType) UnmarshalJSON

func (s *DeliveryRuleActionParametersType) UnmarshalJSON(bytes []byte) error

type DeliveryRuleCacheExpirationAction

type DeliveryRuleCacheExpirationAction struct {
	Parameters CacheExpirationActionParameters `json:"parameters"`

	Name DeliveryRuleActionName `json:"name"`
}

func (DeliveryRuleCacheExpirationAction) DeliveryRuleAction

func (DeliveryRuleCacheExpirationAction) MarshalJSON

func (s DeliveryRuleCacheExpirationAction) MarshalJSON() ([]byte, error)

type DeliveryRuleCacheKeyQueryStringAction

type DeliveryRuleCacheKeyQueryStringAction struct {
	Parameters CacheKeyQueryStringActionParameters `json:"parameters"`

	Name DeliveryRuleActionName `json:"name"`
}

func (DeliveryRuleCacheKeyQueryStringAction) DeliveryRuleAction

func (DeliveryRuleCacheKeyQueryStringAction) MarshalJSON

func (s DeliveryRuleCacheKeyQueryStringAction) MarshalJSON() ([]byte, error)

type DeliveryRuleClientPortCondition

type DeliveryRuleClientPortCondition struct {
	Parameters ClientPortMatchConditionParameters `json:"parameters"`

	Name MatchVariable `json:"name"`
}

func (DeliveryRuleClientPortCondition) DeliveryRuleCondition

func (DeliveryRuleClientPortCondition) MarshalJSON

func (s DeliveryRuleClientPortCondition) MarshalJSON() ([]byte, error)

type DeliveryRuleCondition

type DeliveryRuleCondition interface {
	DeliveryRuleCondition() BaseDeliveryRuleConditionImpl
}

func UnmarshalDeliveryRuleConditionImplementation

func UnmarshalDeliveryRuleConditionImplementation(input []byte) (DeliveryRuleCondition, error)

type DeliveryRuleConditionParameters

type DeliveryRuleConditionParameters interface {
	DeliveryRuleConditionParameters() BaseDeliveryRuleConditionParametersImpl
}

func UnmarshalDeliveryRuleConditionParametersImplementation

func UnmarshalDeliveryRuleConditionParametersImplementation(input []byte) (DeliveryRuleConditionParameters, error)

type DeliveryRuleConditionParametersType

type DeliveryRuleConditionParametersType string
const (
	DeliveryRuleConditionParametersTypeDeliveryRuleClientPortConditionParameters            DeliveryRuleConditionParametersType = "DeliveryRuleClientPortConditionParameters"
	DeliveryRuleConditionParametersTypeDeliveryRuleCookiesConditionParameters               DeliveryRuleConditionParametersType = "DeliveryRuleCookiesConditionParameters"
	DeliveryRuleConditionParametersTypeDeliveryRuleHTTPVersionConditionParameters           DeliveryRuleConditionParametersType = "DeliveryRuleHttpVersionConditionParameters"
	DeliveryRuleConditionParametersTypeDeliveryRuleHostNameConditionParameters              DeliveryRuleConditionParametersType = "DeliveryRuleHostNameConditionParameters"
	DeliveryRuleConditionParametersTypeDeliveryRuleIsDeviceConditionParameters              DeliveryRuleConditionParametersType = "DeliveryRuleIsDeviceConditionParameters"
	DeliveryRuleConditionParametersTypeDeliveryRulePostArgsConditionParameters              DeliveryRuleConditionParametersType = "DeliveryRulePostArgsConditionParameters"
	DeliveryRuleConditionParametersTypeDeliveryRuleQueryStringConditionParameters           DeliveryRuleConditionParametersType = "DeliveryRuleQueryStringConditionParameters"
	DeliveryRuleConditionParametersTypeDeliveryRuleRemoteAddressConditionParameters         DeliveryRuleConditionParametersType = "DeliveryRuleRemoteAddressConditionParameters"
	DeliveryRuleConditionParametersTypeDeliveryRuleRequestBodyConditionParameters           DeliveryRuleConditionParametersType = "DeliveryRuleRequestBodyConditionParameters"
	DeliveryRuleConditionParametersTypeDeliveryRuleRequestHeaderConditionParameters         DeliveryRuleConditionParametersType = "DeliveryRuleRequestHeaderConditionParameters"
	DeliveryRuleConditionParametersTypeDeliveryRuleRequestMethodConditionParameters         DeliveryRuleConditionParametersType = "DeliveryRuleRequestMethodConditionParameters"
	DeliveryRuleConditionParametersTypeDeliveryRuleRequestSchemeConditionParameters         DeliveryRuleConditionParametersType = "DeliveryRuleRequestSchemeConditionParameters"
	DeliveryRuleConditionParametersTypeDeliveryRuleRequestUriConditionParameters            DeliveryRuleConditionParametersType = "DeliveryRuleRequestUriConditionParameters"
	DeliveryRuleConditionParametersTypeDeliveryRuleServerPortConditionParameters            DeliveryRuleConditionParametersType = "DeliveryRuleServerPortConditionParameters"
	DeliveryRuleConditionParametersTypeDeliveryRuleSocketAddrConditionParameters            DeliveryRuleConditionParametersType = "DeliveryRuleSocketAddrConditionParameters"
	DeliveryRuleConditionParametersTypeDeliveryRuleSslProtocolConditionParameters           DeliveryRuleConditionParametersType = "DeliveryRuleSslProtocolConditionParameters"
	DeliveryRuleConditionParametersTypeDeliveryRuleURLFileExtensionMatchConditionParameters DeliveryRuleConditionParametersType = "DeliveryRuleUrlFileExtensionMatchConditionParameters"
	DeliveryRuleConditionParametersTypeDeliveryRuleURLFilenameConditionParameters           DeliveryRuleConditionParametersType = "DeliveryRuleUrlFilenameConditionParameters"
	DeliveryRuleConditionParametersTypeDeliveryRuleURLPathMatchConditionParameters          DeliveryRuleConditionParametersType = "DeliveryRuleUrlPathMatchConditionParameters"
)

func (*DeliveryRuleConditionParametersType) UnmarshalJSON

func (s *DeliveryRuleConditionParametersType) UnmarshalJSON(bytes []byte) error

type DeliveryRuleCookiesCondition

type DeliveryRuleCookiesCondition struct {
	Parameters CookiesMatchConditionParameters `json:"parameters"`

	Name MatchVariable `json:"name"`
}

func (DeliveryRuleCookiesCondition) DeliveryRuleCondition

func (DeliveryRuleCookiesCondition) MarshalJSON

func (s DeliveryRuleCookiesCondition) MarshalJSON() ([]byte, error)

type DeliveryRuleHTTPVersionCondition

type DeliveryRuleHTTPVersionCondition struct {
	Parameters HTTPVersionMatchConditionParameters `json:"parameters"`

	Name MatchVariable `json:"name"`
}

func (DeliveryRuleHTTPVersionCondition) DeliveryRuleCondition

func (DeliveryRuleHTTPVersionCondition) MarshalJSON

func (s DeliveryRuleHTTPVersionCondition) MarshalJSON() ([]byte, error)

type DeliveryRuleHostNameCondition

type DeliveryRuleHostNameCondition struct {
	Parameters HostNameMatchConditionParameters `json:"parameters"`

	Name MatchVariable `json:"name"`
}

func (DeliveryRuleHostNameCondition) DeliveryRuleCondition

func (DeliveryRuleHostNameCondition) MarshalJSON

func (s DeliveryRuleHostNameCondition) MarshalJSON() ([]byte, error)

type DeliveryRuleIsDeviceCondition

type DeliveryRuleIsDeviceCondition struct {
	Parameters IsDeviceMatchConditionParameters `json:"parameters"`

	Name MatchVariable `json:"name"`
}

func (DeliveryRuleIsDeviceCondition) DeliveryRuleCondition

func (DeliveryRuleIsDeviceCondition) MarshalJSON

func (s DeliveryRuleIsDeviceCondition) MarshalJSON() ([]byte, error)

type DeliveryRulePostArgsCondition

type DeliveryRulePostArgsCondition struct {
	Parameters PostArgsMatchConditionParameters `json:"parameters"`

	Name MatchVariable `json:"name"`
}

func (DeliveryRulePostArgsCondition) DeliveryRuleCondition

func (DeliveryRulePostArgsCondition) MarshalJSON

func (s DeliveryRulePostArgsCondition) MarshalJSON() ([]byte, error)

type DeliveryRuleQueryStringCondition

type DeliveryRuleQueryStringCondition struct {
	Parameters QueryStringMatchConditionParameters `json:"parameters"`

	Name MatchVariable `json:"name"`
}

func (DeliveryRuleQueryStringCondition) DeliveryRuleCondition

func (DeliveryRuleQueryStringCondition) MarshalJSON

func (s DeliveryRuleQueryStringCondition) MarshalJSON() ([]byte, error)

type DeliveryRuleRemoteAddressCondition

type DeliveryRuleRemoteAddressCondition struct {
	Parameters RemoteAddressMatchConditionParameters `json:"parameters"`

	Name MatchVariable `json:"name"`
}

func (DeliveryRuleRemoteAddressCondition) DeliveryRuleCondition

func (DeliveryRuleRemoteAddressCondition) MarshalJSON

func (s DeliveryRuleRemoteAddressCondition) MarshalJSON() ([]byte, error)

type DeliveryRuleRequestBodyCondition

type DeliveryRuleRequestBodyCondition struct {
	Parameters RequestBodyMatchConditionParameters `json:"parameters"`

	Name MatchVariable `json:"name"`
}

func (DeliveryRuleRequestBodyCondition) DeliveryRuleCondition

func (DeliveryRuleRequestBodyCondition) MarshalJSON

func (s DeliveryRuleRequestBodyCondition) MarshalJSON() ([]byte, error)

type DeliveryRuleRequestHeaderAction

type DeliveryRuleRequestHeaderAction struct {
	Parameters HeaderActionParameters `json:"parameters"`

	Name DeliveryRuleActionName `json:"name"`
}

func (DeliveryRuleRequestHeaderAction) DeliveryRuleAction

func (DeliveryRuleRequestHeaderAction) MarshalJSON

func (s DeliveryRuleRequestHeaderAction) MarshalJSON() ([]byte, error)

type DeliveryRuleRequestHeaderCondition

type DeliveryRuleRequestHeaderCondition struct {
	Parameters RequestHeaderMatchConditionParameters `json:"parameters"`

	Name MatchVariable `json:"name"`
}

func (DeliveryRuleRequestHeaderCondition) DeliveryRuleCondition

func (DeliveryRuleRequestHeaderCondition) MarshalJSON

func (s DeliveryRuleRequestHeaderCondition) MarshalJSON() ([]byte, error)

type DeliveryRuleRequestMethodCondition

type DeliveryRuleRequestMethodCondition struct {
	Parameters RequestMethodMatchConditionParameters `json:"parameters"`

	Name MatchVariable `json:"name"`
}

func (DeliveryRuleRequestMethodCondition) DeliveryRuleCondition

func (DeliveryRuleRequestMethodCondition) MarshalJSON

func (s DeliveryRuleRequestMethodCondition) MarshalJSON() ([]byte, error)

type DeliveryRuleRequestSchemeCondition

type DeliveryRuleRequestSchemeCondition struct {
	Parameters RequestSchemeMatchConditionParameters `json:"parameters"`

	Name MatchVariable `json:"name"`
}

func (DeliveryRuleRequestSchemeCondition) DeliveryRuleCondition

func (DeliveryRuleRequestSchemeCondition) MarshalJSON

func (s DeliveryRuleRequestSchemeCondition) MarshalJSON() ([]byte, error)

type DeliveryRuleRequestUriCondition

type DeliveryRuleRequestUriCondition struct {
	Parameters RequestUriMatchConditionParameters `json:"parameters"`

	Name MatchVariable `json:"name"`
}

func (DeliveryRuleRequestUriCondition) DeliveryRuleCondition

func (DeliveryRuleRequestUriCondition) MarshalJSON

func (s DeliveryRuleRequestUriCondition) MarshalJSON() ([]byte, error)

type DeliveryRuleResponseHeaderAction

type DeliveryRuleResponseHeaderAction struct {
	Parameters HeaderActionParameters `json:"parameters"`

	Name DeliveryRuleActionName `json:"name"`
}

func (DeliveryRuleResponseHeaderAction) DeliveryRuleAction

func (DeliveryRuleResponseHeaderAction) MarshalJSON

func (s DeliveryRuleResponseHeaderAction) MarshalJSON() ([]byte, error)

type DeliveryRuleRouteConfigurationOverrideAction

type DeliveryRuleRouteConfigurationOverrideAction struct {
	Parameters RouteConfigurationOverrideActionParameters `json:"parameters"`

	Name DeliveryRuleActionName `json:"name"`
}

func (DeliveryRuleRouteConfigurationOverrideAction) DeliveryRuleAction

func (DeliveryRuleRouteConfigurationOverrideAction) MarshalJSON

type DeliveryRuleServerPortCondition

type DeliveryRuleServerPortCondition struct {
	Parameters ServerPortMatchConditionParameters `json:"parameters"`

	Name MatchVariable `json:"name"`
}

func (DeliveryRuleServerPortCondition) DeliveryRuleCondition

func (DeliveryRuleServerPortCondition) MarshalJSON

func (s DeliveryRuleServerPortCondition) MarshalJSON() ([]byte, error)

type DeliveryRuleSocketAddrCondition

type DeliveryRuleSocketAddrCondition struct {
	Parameters SocketAddrMatchConditionParameters `json:"parameters"`

	Name MatchVariable `json:"name"`
}

func (DeliveryRuleSocketAddrCondition) DeliveryRuleCondition

func (DeliveryRuleSocketAddrCondition) MarshalJSON

func (s DeliveryRuleSocketAddrCondition) MarshalJSON() ([]byte, error)

type DeliveryRuleSslProtocolCondition

type DeliveryRuleSslProtocolCondition struct {
	Parameters SslProtocolMatchConditionParameters `json:"parameters"`

	Name MatchVariable `json:"name"`
}

func (DeliveryRuleSslProtocolCondition) DeliveryRuleCondition

func (DeliveryRuleSslProtocolCondition) MarshalJSON

func (s DeliveryRuleSslProtocolCondition) MarshalJSON() ([]byte, error)

type DeliveryRuleURLFileExtensionCondition

type DeliveryRuleURLFileExtensionCondition struct {
	Parameters URLFileExtensionMatchConditionParameters `json:"parameters"`

	Name MatchVariable `json:"name"`
}

func (DeliveryRuleURLFileExtensionCondition) DeliveryRuleCondition

func (DeliveryRuleURLFileExtensionCondition) MarshalJSON

func (s DeliveryRuleURLFileExtensionCondition) MarshalJSON() ([]byte, error)

type DeliveryRuleURLFileNameCondition

type DeliveryRuleURLFileNameCondition struct {
	Parameters URLFileNameMatchConditionParameters `json:"parameters"`

	Name MatchVariable `json:"name"`
}

func (DeliveryRuleURLFileNameCondition) DeliveryRuleCondition

func (DeliveryRuleURLFileNameCondition) MarshalJSON

func (s DeliveryRuleURLFileNameCondition) MarshalJSON() ([]byte, error)

type DeliveryRuleURLPathCondition

type DeliveryRuleURLPathCondition struct {
	Parameters URLPathMatchConditionParameters `json:"parameters"`

	Name MatchVariable `json:"name"`
}

func (DeliveryRuleURLPathCondition) DeliveryRuleCondition

func (DeliveryRuleURLPathCondition) MarshalJSON

func (s DeliveryRuleURLPathCondition) MarshalJSON() ([]byte, error)

type DeploymentStatus

type DeploymentStatus string
const (
	DeploymentStatusFailed     DeploymentStatus = "Failed"
	DeploymentStatusInProgress DeploymentStatus = "InProgress"
	DeploymentStatusNotStarted DeploymentStatus = "NotStarted"
	DeploymentStatusSucceeded  DeploymentStatus = "Succeeded"
)

func (*DeploymentStatus) UnmarshalJSON

func (s *DeploymentStatus) UnmarshalJSON(bytes []byte) error

type DestinationProtocol

type DestinationProtocol string
const (
	DestinationProtocolHTTP         DestinationProtocol = "Http"
	DestinationProtocolHTTPS        DestinationProtocol = "Https"
	DestinationProtocolMatchRequest DestinationProtocol = "MatchRequest"
)

func (*DestinationProtocol) UnmarshalJSON

func (s *DestinationProtocol) UnmarshalJSON(bytes []byte) error

type ForwardingProtocol

type ForwardingProtocol string
const (
	ForwardingProtocolHTTPOnly     ForwardingProtocol = "HttpOnly"
	ForwardingProtocolHTTPSOnly    ForwardingProtocol = "HttpsOnly"
	ForwardingProtocolMatchRequest ForwardingProtocol = "MatchRequest"
)

func (*ForwardingProtocol) UnmarshalJSON

func (s *ForwardingProtocol) UnmarshalJSON(bytes []byte) error

type GetOperationResponse

type GetOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *Rule
}

type HTTPVersionMatchConditionParameters

type HTTPVersionMatchConditionParameters struct {
	MatchValues     *[]string           `json:"matchValues,omitempty"`
	NegateCondition *bool               `json:"negateCondition,omitempty"`
	Operator        HTTPVersionOperator `json:"operator"`
	Transforms      *[]Transform        `json:"transforms,omitempty"`

	TypeName DeliveryRuleConditionParametersType `json:"typeName"`
}

func (HTTPVersionMatchConditionParameters) DeliveryRuleConditionParameters

func (HTTPVersionMatchConditionParameters) MarshalJSON

func (s HTTPVersionMatchConditionParameters) MarshalJSON() ([]byte, error)

type HTTPVersionOperator

type HTTPVersionOperator string
const (
	HTTPVersionOperatorEqual HTTPVersionOperator = "Equal"
)

func (*HTTPVersionOperator) UnmarshalJSON

func (s *HTTPVersionOperator) UnmarshalJSON(bytes []byte) error

type HeaderAction

type HeaderAction string
const (
	HeaderActionAppend    HeaderAction = "Append"
	HeaderActionDelete    HeaderAction = "Delete"
	HeaderActionOverwrite HeaderAction = "Overwrite"
)

func (*HeaderAction) UnmarshalJSON

func (s *HeaderAction) UnmarshalJSON(bytes []byte) error

type HeaderActionParameters

type HeaderActionParameters struct {
	HeaderAction HeaderAction `json:"headerAction"`
	HeaderName   string       `json:"headerName"`
	Value        *string      `json:"value,omitempty"`

	TypeName DeliveryRuleActionParametersType `json:"typeName"`
}

func (HeaderActionParameters) DeliveryRuleActionParameters

func (s HeaderActionParameters) DeliveryRuleActionParameters() BaseDeliveryRuleActionParametersImpl

func (HeaderActionParameters) MarshalJSON

func (s HeaderActionParameters) MarshalJSON() ([]byte, error)

type HostNameMatchConditionParameters

type HostNameMatchConditionParameters struct {
	MatchValues     *[]string        `json:"matchValues,omitempty"`
	NegateCondition *bool            `json:"negateCondition,omitempty"`
	Operator        HostNameOperator `json:"operator"`
	Transforms      *[]Transform     `json:"transforms,omitempty"`

	TypeName DeliveryRuleConditionParametersType `json:"typeName"`
}

func (HostNameMatchConditionParameters) DeliveryRuleConditionParameters

func (HostNameMatchConditionParameters) MarshalJSON

func (s HostNameMatchConditionParameters) MarshalJSON() ([]byte, error)

type HostNameOperator

type HostNameOperator string
const (
	HostNameOperatorAny                HostNameOperator = "Any"
	HostNameOperatorBeginsWith         HostNameOperator = "BeginsWith"
	HostNameOperatorContains           HostNameOperator = "Contains"
	HostNameOperatorEndsWith           HostNameOperator = "EndsWith"
	HostNameOperatorEqual              HostNameOperator = "Equal"
	HostNameOperatorGreaterThan        HostNameOperator = "GreaterThan"
	HostNameOperatorGreaterThanOrEqual HostNameOperator = "GreaterThanOrEqual"
	HostNameOperatorLessThan           HostNameOperator = "LessThan"
	HostNameOperatorLessThanOrEqual    HostNameOperator = "LessThanOrEqual"
	HostNameOperatorRegEx              HostNameOperator = "RegEx"
)

func (*HostNameOperator) UnmarshalJSON

func (s *HostNameOperator) UnmarshalJSON(bytes []byte) error

type IsDeviceMatchConditionParameters

type IsDeviceMatchConditionParameters struct {
	MatchValues     *[]IsDeviceMatchValue `json:"matchValues,omitempty"`
	NegateCondition *bool                 `json:"negateCondition,omitempty"`
	Operator        IsDeviceOperator      `json:"operator"`
	Transforms      *[]Transform          `json:"transforms,omitempty"`

	TypeName DeliveryRuleConditionParametersType `json:"typeName"`
}

func (IsDeviceMatchConditionParameters) DeliveryRuleConditionParameters

func (IsDeviceMatchConditionParameters) MarshalJSON

func (s IsDeviceMatchConditionParameters) MarshalJSON() ([]byte, error)

type IsDeviceMatchValue

type IsDeviceMatchValue string
const (
	IsDeviceMatchValueDesktop IsDeviceMatchValue = "Desktop"
	IsDeviceMatchValueMobile  IsDeviceMatchValue = "Mobile"
)

func (*IsDeviceMatchValue) UnmarshalJSON

func (s *IsDeviceMatchValue) UnmarshalJSON(bytes []byte) error

type IsDeviceOperator

type IsDeviceOperator string
const (
	IsDeviceOperatorEqual IsDeviceOperator = "Equal"
)

func (*IsDeviceOperator) UnmarshalJSON

func (s *IsDeviceOperator) UnmarshalJSON(bytes []byte) error

type ListByRuleSetCompleteResult

type ListByRuleSetCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []Rule
}

type ListByRuleSetCustomPager

type ListByRuleSetCustomPager struct {
	NextLink *odata.Link `json:"nextLink"`
}
func (p *ListByRuleSetCustomPager) NextPageLink() *odata.Link

type ListByRuleSetOperationResponse

type ListByRuleSetOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]Rule
}

type MatchProcessingBehavior

type MatchProcessingBehavior string
const (
	MatchProcessingBehaviorContinue MatchProcessingBehavior = "Continue"
	MatchProcessingBehaviorStop     MatchProcessingBehavior = "Stop"
)

func (*MatchProcessingBehavior) UnmarshalJSON

func (s *MatchProcessingBehavior) UnmarshalJSON(bytes []byte) error

type MatchVariable

type MatchVariable string
const (
	MatchVariableClientPort       MatchVariable = "ClientPort"
	MatchVariableCookies          MatchVariable = "Cookies"
	MatchVariableHTTPVersion      MatchVariable = "HttpVersion"
	MatchVariableHostName         MatchVariable = "HostName"
	MatchVariableIsDevice         MatchVariable = "IsDevice"
	MatchVariablePostArgs         MatchVariable = "PostArgs"
	MatchVariableQueryString      MatchVariable = "QueryString"
	MatchVariableRemoteAddress    MatchVariable = "RemoteAddress"
	MatchVariableRequestBody      MatchVariable = "RequestBody"
	MatchVariableRequestHeader    MatchVariable = "RequestHeader"
	MatchVariableRequestMethod    MatchVariable = "RequestMethod"
	MatchVariableRequestScheme    MatchVariable = "RequestScheme"
	MatchVariableRequestUri       MatchVariable = "RequestUri"
	MatchVariableServerPort       MatchVariable = "ServerPort"
	MatchVariableSocketAddr       MatchVariable = "SocketAddr"
	MatchVariableSslProtocol      MatchVariable = "SslProtocol"
	MatchVariableURLFileExtension MatchVariable = "UrlFileExtension"
	MatchVariableURLFileName      MatchVariable = "UrlFileName"
	MatchVariableURLPath          MatchVariable = "UrlPath"
)

func (*MatchVariable) UnmarshalJSON

func (s *MatchVariable) UnmarshalJSON(bytes []byte) error

type Operator

type Operator string
const (
	OperatorEqual Operator = "Equal"
)

func (*Operator) UnmarshalJSON

func (s *Operator) UnmarshalJSON(bytes []byte) error

type OriginGroupOverride

type OriginGroupOverride struct {
	ForwardingProtocol *ForwardingProtocol `json:"forwardingProtocol,omitempty"`
	OriginGroup        *ResourceReference  `json:"originGroup,omitempty"`
}

type OriginGroupOverrideAction

type OriginGroupOverrideAction struct {
	Parameters OriginGroupOverrideActionParameters `json:"parameters"`

	Name DeliveryRuleActionName `json:"name"`
}

func (OriginGroupOverrideAction) DeliveryRuleAction

func (OriginGroupOverrideAction) MarshalJSON

func (s OriginGroupOverrideAction) MarshalJSON() ([]byte, error)

type OriginGroupOverrideActionParameters

type OriginGroupOverrideActionParameters struct {
	OriginGroup ResourceReference `json:"originGroup"`

	TypeName DeliveryRuleActionParametersType `json:"typeName"`
}

func (OriginGroupOverrideActionParameters) DeliveryRuleActionParameters

func (OriginGroupOverrideActionParameters) MarshalJSON

func (s OriginGroupOverrideActionParameters) MarshalJSON() ([]byte, error)

type ParamIndicator

type ParamIndicator string
const (
	ParamIndicatorExpires   ParamIndicator = "Expires"
	ParamIndicatorKeyId     ParamIndicator = "KeyId"
	ParamIndicatorSignature ParamIndicator = "Signature"
)

func (*ParamIndicator) UnmarshalJSON

func (s *ParamIndicator) UnmarshalJSON(bytes []byte) error

type PostArgsMatchConditionParameters

type PostArgsMatchConditionParameters struct {
	MatchValues     *[]string        `json:"matchValues,omitempty"`
	NegateCondition *bool            `json:"negateCondition,omitempty"`
	Operator        PostArgsOperator `json:"operator"`
	Selector        *string          `json:"selector,omitempty"`
	Transforms      *[]Transform     `json:"transforms,omitempty"`

	TypeName DeliveryRuleConditionParametersType `json:"typeName"`
}

func (PostArgsMatchConditionParameters) DeliveryRuleConditionParameters

func (PostArgsMatchConditionParameters) MarshalJSON

func (s PostArgsMatchConditionParameters) MarshalJSON() ([]byte, error)

type PostArgsOperator

type PostArgsOperator string
const (
	PostArgsOperatorAny                PostArgsOperator = "Any"
	PostArgsOperatorBeginsWith         PostArgsOperator = "BeginsWith"
	PostArgsOperatorContains           PostArgsOperator = "Contains"
	PostArgsOperatorEndsWith           PostArgsOperator = "EndsWith"
	PostArgsOperatorEqual              PostArgsOperator = "Equal"
	PostArgsOperatorGreaterThan        PostArgsOperator = "GreaterThan"
	PostArgsOperatorGreaterThanOrEqual PostArgsOperator = "GreaterThanOrEqual"
	PostArgsOperatorLessThan           PostArgsOperator = "LessThan"
	PostArgsOperatorLessThanOrEqual    PostArgsOperator = "LessThanOrEqual"
	PostArgsOperatorRegEx              PostArgsOperator = "RegEx"
)

func (*PostArgsOperator) UnmarshalJSON

func (s *PostArgsOperator) UnmarshalJSON(bytes []byte) error

type QueryStringBehavior

type QueryStringBehavior string
const (
	QueryStringBehaviorExclude    QueryStringBehavior = "Exclude"
	QueryStringBehaviorExcludeAll QueryStringBehavior = "ExcludeAll"
	QueryStringBehaviorInclude    QueryStringBehavior = "Include"
	QueryStringBehaviorIncludeAll QueryStringBehavior = "IncludeAll"
)

func (*QueryStringBehavior) UnmarshalJSON

func (s *QueryStringBehavior) UnmarshalJSON(bytes []byte) error

type QueryStringMatchConditionParameters

type QueryStringMatchConditionParameters struct {
	MatchValues     *[]string           `json:"matchValues,omitempty"`
	NegateCondition *bool               `json:"negateCondition,omitempty"`
	Operator        QueryStringOperator `json:"operator"`
	Transforms      *[]Transform        `json:"transforms,omitempty"`

	TypeName DeliveryRuleConditionParametersType `json:"typeName"`
}

func (QueryStringMatchConditionParameters) DeliveryRuleConditionParameters

func (QueryStringMatchConditionParameters) MarshalJSON

func (s QueryStringMatchConditionParameters) MarshalJSON() ([]byte, error)

type QueryStringOperator

type QueryStringOperator string
const (
	QueryStringOperatorAny                QueryStringOperator = "Any"
	QueryStringOperatorBeginsWith         QueryStringOperator = "BeginsWith"
	QueryStringOperatorContains           QueryStringOperator = "Contains"
	QueryStringOperatorEndsWith           QueryStringOperator = "EndsWith"
	QueryStringOperatorEqual              QueryStringOperator = "Equal"
	QueryStringOperatorGreaterThan        QueryStringOperator = "GreaterThan"
	QueryStringOperatorGreaterThanOrEqual QueryStringOperator = "GreaterThanOrEqual"
	QueryStringOperatorLessThan           QueryStringOperator = "LessThan"
	QueryStringOperatorLessThanOrEqual    QueryStringOperator = "LessThanOrEqual"
	QueryStringOperatorRegEx              QueryStringOperator = "RegEx"
)

func (*QueryStringOperator) UnmarshalJSON

func (s *QueryStringOperator) UnmarshalJSON(bytes []byte) error

type RawDeliveryRuleActionImpl

type RawDeliveryRuleActionImpl struct {
	Type   string
	Values map[string]interface{}
	// contains filtered or unexported fields
}

RawDeliveryRuleActionImpl is returned when the Discriminated Value doesn't match any of the defined types NOTE: this should only be used when a type isn't defined for this type of Object (as a workaround) and is used only for Deserialization (e.g. this cannot be used as a Request Payload).

func (RawDeliveryRuleActionImpl) DeliveryRuleAction

type RawDeliveryRuleActionParametersImpl

type RawDeliveryRuleActionParametersImpl struct {
	Type   string
	Values map[string]interface{}
	// contains filtered or unexported fields
}

RawDeliveryRuleActionParametersImpl is returned when the Discriminated Value doesn't match any of the defined types NOTE: this should only be used when a type isn't defined for this type of Object (as a workaround) and is used only for Deserialization (e.g. this cannot be used as a Request Payload).

func (RawDeliveryRuleActionParametersImpl) DeliveryRuleActionParameters

type RawDeliveryRuleConditionImpl

type RawDeliveryRuleConditionImpl struct {
	Type   string
	Values map[string]interface{}
	// contains filtered or unexported fields
}

RawDeliveryRuleConditionImpl is returned when the Discriminated Value doesn't match any of the defined types NOTE: this should only be used when a type isn't defined for this type of Object (as a workaround) and is used only for Deserialization (e.g. this cannot be used as a Request Payload).

func (RawDeliveryRuleConditionImpl) DeliveryRuleCondition

type RawDeliveryRuleConditionParametersImpl

type RawDeliveryRuleConditionParametersImpl struct {
	Type   string
	Values map[string]interface{}
	// contains filtered or unexported fields
}

RawDeliveryRuleConditionParametersImpl is returned when the Discriminated Value doesn't match any of the defined types NOTE: this should only be used when a type isn't defined for this type of Object (as a workaround) and is used only for Deserialization (e.g. this cannot be used as a Request Payload).

func (RawDeliveryRuleConditionParametersImpl) DeliveryRuleConditionParameters

type RedirectType

type RedirectType string
const (
	RedirectTypeFound             RedirectType = "Found"
	RedirectTypeMoved             RedirectType = "Moved"
	RedirectTypePermanentRedirect RedirectType = "PermanentRedirect"
	RedirectTypeTemporaryRedirect RedirectType = "TemporaryRedirect"
)

func (*RedirectType) UnmarshalJSON

func (s *RedirectType) UnmarshalJSON(bytes []byte) error

type RemoteAddressMatchConditionParameters

type RemoteAddressMatchConditionParameters struct {
	MatchValues     *[]string             `json:"matchValues,omitempty"`
	NegateCondition *bool                 `json:"negateCondition,omitempty"`
	Operator        RemoteAddressOperator `json:"operator"`
	Transforms      *[]Transform          `json:"transforms,omitempty"`

	TypeName DeliveryRuleConditionParametersType `json:"typeName"`
}

func (RemoteAddressMatchConditionParameters) DeliveryRuleConditionParameters

func (RemoteAddressMatchConditionParameters) MarshalJSON

func (s RemoteAddressMatchConditionParameters) MarshalJSON() ([]byte, error)

type RemoteAddressOperator

type RemoteAddressOperator string
const (
	RemoteAddressOperatorAny      RemoteAddressOperator = "Any"
	RemoteAddressOperatorGeoMatch RemoteAddressOperator = "GeoMatch"
	RemoteAddressOperatorIPMatch  RemoteAddressOperator = "IPMatch"
)

func (*RemoteAddressOperator) UnmarshalJSON

func (s *RemoteAddressOperator) UnmarshalJSON(bytes []byte) error

type RequestBodyMatchConditionParameters

type RequestBodyMatchConditionParameters struct {
	MatchValues     *[]string           `json:"matchValues,omitempty"`
	NegateCondition *bool               `json:"negateCondition,omitempty"`
	Operator        RequestBodyOperator `json:"operator"`
	Transforms      *[]Transform        `json:"transforms,omitempty"`

	TypeName DeliveryRuleConditionParametersType `json:"typeName"`
}

func (RequestBodyMatchConditionParameters) DeliveryRuleConditionParameters

func (RequestBodyMatchConditionParameters) MarshalJSON

func (s RequestBodyMatchConditionParameters) MarshalJSON() ([]byte, error)

type RequestBodyOperator

type RequestBodyOperator string
const (
	RequestBodyOperatorAny                RequestBodyOperator = "Any"
	RequestBodyOperatorBeginsWith         RequestBodyOperator = "BeginsWith"
	RequestBodyOperatorContains           RequestBodyOperator = "Contains"
	RequestBodyOperatorEndsWith           RequestBodyOperator = "EndsWith"
	RequestBodyOperatorEqual              RequestBodyOperator = "Equal"
	RequestBodyOperatorGreaterThan        RequestBodyOperator = "GreaterThan"
	RequestBodyOperatorGreaterThanOrEqual RequestBodyOperator = "GreaterThanOrEqual"
	RequestBodyOperatorLessThan           RequestBodyOperator = "LessThan"
	RequestBodyOperatorLessThanOrEqual    RequestBodyOperator = "LessThanOrEqual"
	RequestBodyOperatorRegEx              RequestBodyOperator = "RegEx"
)

func (*RequestBodyOperator) UnmarshalJSON

func (s *RequestBodyOperator) UnmarshalJSON(bytes []byte) error

type RequestHeaderMatchConditionParameters

type RequestHeaderMatchConditionParameters struct {
	MatchValues     *[]string             `json:"matchValues,omitempty"`
	NegateCondition *bool                 `json:"negateCondition,omitempty"`
	Operator        RequestHeaderOperator `json:"operator"`
	Selector        *string               `json:"selector,omitempty"`
	Transforms      *[]Transform          `json:"transforms,omitempty"`

	TypeName DeliveryRuleConditionParametersType `json:"typeName"`
}

func (RequestHeaderMatchConditionParameters) DeliveryRuleConditionParameters

func (RequestHeaderMatchConditionParameters) MarshalJSON

func (s RequestHeaderMatchConditionParameters) MarshalJSON() ([]byte, error)

type RequestHeaderOperator

type RequestHeaderOperator string
const (
	RequestHeaderOperatorAny                RequestHeaderOperator = "Any"
	RequestHeaderOperatorBeginsWith         RequestHeaderOperator = "BeginsWith"
	RequestHeaderOperatorContains           RequestHeaderOperator = "Contains"
	RequestHeaderOperatorEndsWith           RequestHeaderOperator = "EndsWith"
	RequestHeaderOperatorEqual              RequestHeaderOperator = "Equal"
	RequestHeaderOperatorGreaterThan        RequestHeaderOperator = "GreaterThan"
	RequestHeaderOperatorGreaterThanOrEqual RequestHeaderOperator = "GreaterThanOrEqual"
	RequestHeaderOperatorLessThan           RequestHeaderOperator = "LessThan"
	RequestHeaderOperatorLessThanOrEqual    RequestHeaderOperator = "LessThanOrEqual"
	RequestHeaderOperatorRegEx              RequestHeaderOperator = "RegEx"
)

func (*RequestHeaderOperator) UnmarshalJSON

func (s *RequestHeaderOperator) UnmarshalJSON(bytes []byte) error

type RequestMethodMatchConditionParameters

type RequestMethodMatchConditionParameters struct {
	MatchValues     *[]RequestMethodMatchValue `json:"matchValues,omitempty"`
	NegateCondition *bool                      `json:"negateCondition,omitempty"`
	Operator        RequestMethodOperator      `json:"operator"`
	Transforms      *[]Transform               `json:"transforms,omitempty"`

	TypeName DeliveryRuleConditionParametersType `json:"typeName"`
}

func (RequestMethodMatchConditionParameters) DeliveryRuleConditionParameters

func (RequestMethodMatchConditionParameters) MarshalJSON

func (s RequestMethodMatchConditionParameters) MarshalJSON() ([]byte, error)

type RequestMethodMatchValue

type RequestMethodMatchValue string
const (
	RequestMethodMatchValueDELETE  RequestMethodMatchValue = "DELETE"
	RequestMethodMatchValueGET     RequestMethodMatchValue = "GET"
	RequestMethodMatchValueHEAD    RequestMethodMatchValue = "HEAD"
	RequestMethodMatchValueOPTIONS RequestMethodMatchValue = "OPTIONS"
	RequestMethodMatchValuePOST    RequestMethodMatchValue = "POST"
	RequestMethodMatchValuePUT     RequestMethodMatchValue = "PUT"
	RequestMethodMatchValueTRACE   RequestMethodMatchValue = "TRACE"
)

func (*RequestMethodMatchValue) UnmarshalJSON

func (s *RequestMethodMatchValue) UnmarshalJSON(bytes []byte) error

type RequestMethodOperator

type RequestMethodOperator string
const (
	RequestMethodOperatorEqual RequestMethodOperator = "Equal"
)

func (*RequestMethodOperator) UnmarshalJSON

func (s *RequestMethodOperator) UnmarshalJSON(bytes []byte) error

type RequestSchemeMatchConditionParameters

type RequestSchemeMatchConditionParameters struct {
	MatchValues     *[]RequestSchemeMatchValue `json:"matchValues,omitempty"`
	NegateCondition *bool                      `json:"negateCondition,omitempty"`
	Operator        Operator                   `json:"operator"`
	Transforms      *[]Transform               `json:"transforms,omitempty"`

	TypeName DeliveryRuleConditionParametersType `json:"typeName"`
}

func (RequestSchemeMatchConditionParameters) DeliveryRuleConditionParameters

func (RequestSchemeMatchConditionParameters) MarshalJSON

func (s RequestSchemeMatchConditionParameters) MarshalJSON() ([]byte, error)

type RequestSchemeMatchValue

type RequestSchemeMatchValue string
const (
	RequestSchemeMatchValueHTTP  RequestSchemeMatchValue = "HTTP"
	RequestSchemeMatchValueHTTPS RequestSchemeMatchValue = "HTTPS"
)

func (*RequestSchemeMatchValue) UnmarshalJSON

func (s *RequestSchemeMatchValue) UnmarshalJSON(bytes []byte) error

type RequestUriMatchConditionParameters

type RequestUriMatchConditionParameters struct {
	MatchValues     *[]string          `json:"matchValues,omitempty"`
	NegateCondition *bool              `json:"negateCondition,omitempty"`
	Operator        RequestUriOperator `json:"operator"`
	Transforms      *[]Transform       `json:"transforms,omitempty"`

	TypeName DeliveryRuleConditionParametersType `json:"typeName"`
}

func (RequestUriMatchConditionParameters) DeliveryRuleConditionParameters

func (RequestUriMatchConditionParameters) MarshalJSON

func (s RequestUriMatchConditionParameters) MarshalJSON() ([]byte, error)

type RequestUriOperator

type RequestUriOperator string
const (
	RequestUriOperatorAny                RequestUriOperator = "Any"
	RequestUriOperatorBeginsWith         RequestUriOperator = "BeginsWith"
	RequestUriOperatorContains           RequestUriOperator = "Contains"
	RequestUriOperatorEndsWith           RequestUriOperator = "EndsWith"
	RequestUriOperatorEqual              RequestUriOperator = "Equal"
	RequestUriOperatorGreaterThan        RequestUriOperator = "GreaterThan"
	RequestUriOperatorGreaterThanOrEqual RequestUriOperator = "GreaterThanOrEqual"
	RequestUriOperatorLessThan           RequestUriOperator = "LessThan"
	RequestUriOperatorLessThanOrEqual    RequestUriOperator = "LessThanOrEqual"
	RequestUriOperatorRegEx              RequestUriOperator = "RegEx"
)

func (*RequestUriOperator) UnmarshalJSON

func (s *RequestUriOperator) UnmarshalJSON(bytes []byte) error

type ResourceReference

type ResourceReference struct {
	Id *string `json:"id,omitempty"`
}

type RouteConfigurationOverrideActionParameters

type RouteConfigurationOverrideActionParameters struct {
	CacheConfiguration  *CacheConfiguration  `json:"cacheConfiguration,omitempty"`
	OriginGroupOverride *OriginGroupOverride `json:"originGroupOverride,omitempty"`

	TypeName DeliveryRuleActionParametersType `json:"typeName"`
}

func (RouteConfigurationOverrideActionParameters) DeliveryRuleActionParameters

func (RouteConfigurationOverrideActionParameters) MarshalJSON

type Rule

type Rule struct {
	Id         *string                `json:"id,omitempty"`
	Name       *string                `json:"name,omitempty"`
	Properties *RuleProperties        `json:"properties,omitempty"`
	SystemData *systemdata.SystemData `json:"systemData,omitempty"`
	Type       *string                `json:"type,omitempty"`
}

type RuleCacheBehavior

type RuleCacheBehavior string
const (
	RuleCacheBehaviorHonorOrigin             RuleCacheBehavior = "HonorOrigin"
	RuleCacheBehaviorOverrideAlways          RuleCacheBehavior = "OverrideAlways"
	RuleCacheBehaviorOverrideIfOriginMissing RuleCacheBehavior = "OverrideIfOriginMissing"
)

func (*RuleCacheBehavior) UnmarshalJSON

func (s *RuleCacheBehavior) UnmarshalJSON(bytes []byte) error

type RuleId

type RuleId struct {
	SubscriptionId    string
	ResourceGroupName string
	ProfileName       string
	RuleSetName       string
	RuleName          string
}

RuleId is a struct representing the Resource ID for a Rule

func NewRuleID

func NewRuleID(subscriptionId string, resourceGroupName string, profileName string, ruleSetName string, ruleName string) RuleId

NewRuleID returns a new RuleId struct

func ParseRuleID

func ParseRuleID(input string) (*RuleId, error)

ParseRuleID parses 'input' into a RuleId

func ParseRuleIDInsensitively

func ParseRuleIDInsensitively(input string) (*RuleId, error)

ParseRuleIDInsensitively parses 'input' case-insensitively into a RuleId note: this method should only be used for API response data and not user input

func (*RuleId) FromParseResult

func (id *RuleId) FromParseResult(input resourceids.ParseResult) error

func (RuleId) ID

func (id RuleId) ID() string

ID returns the formatted Rule ID

func (RuleId) Segments

func (id RuleId) Segments() []resourceids.Segment

Segments returns a slice of Resource ID Segments which comprise this Rule ID

func (RuleId) String

func (id RuleId) String() string

String returns a human-readable description of this Rule ID

type RuleIsCompressionEnabled

type RuleIsCompressionEnabled string
const (
	RuleIsCompressionEnabledDisabled RuleIsCompressionEnabled = "Disabled"
	RuleIsCompressionEnabledEnabled  RuleIsCompressionEnabled = "Enabled"
)

func (*RuleIsCompressionEnabled) UnmarshalJSON

func (s *RuleIsCompressionEnabled) UnmarshalJSON(bytes []byte) error

type RuleOperationPredicate

type RuleOperationPredicate struct {
	Id   *string
	Name *string
	Type *string
}

func (RuleOperationPredicate) Matches

func (p RuleOperationPredicate) Matches(input Rule) bool

type RuleProperties

type RuleProperties struct {
	Actions                 *[]DeliveryRuleAction    `json:"actions,omitempty"`
	Conditions              *[]DeliveryRuleCondition `json:"conditions,omitempty"`
	DeploymentStatus        *DeploymentStatus        `json:"deploymentStatus,omitempty"`
	MatchProcessingBehavior *MatchProcessingBehavior `json:"matchProcessingBehavior,omitempty"`
	Order                   *int64                   `json:"order,omitempty"`
	ProvisioningState       *AfdProvisioningState    `json:"provisioningState,omitempty"`
	RuleSetName             *string                  `json:"ruleSetName,omitempty"`
}

func (*RuleProperties) UnmarshalJSON

func (s *RuleProperties) UnmarshalJSON(bytes []byte) error

type RuleQueryStringCachingBehavior

type RuleQueryStringCachingBehavior string
const (
	RuleQueryStringCachingBehaviorIgnoreQueryString            RuleQueryStringCachingBehavior = "IgnoreQueryString"
	RuleQueryStringCachingBehaviorIgnoreSpecifiedQueryStrings  RuleQueryStringCachingBehavior = "IgnoreSpecifiedQueryStrings"
	RuleQueryStringCachingBehaviorIncludeSpecifiedQueryStrings RuleQueryStringCachingBehavior = "IncludeSpecifiedQueryStrings"
	RuleQueryStringCachingBehaviorUseQueryString               RuleQueryStringCachingBehavior = "UseQueryString"
)

func (*RuleQueryStringCachingBehavior) UnmarshalJSON

func (s *RuleQueryStringCachingBehavior) UnmarshalJSON(bytes []byte) error

type RuleSetId

type RuleSetId struct {
	SubscriptionId    string
	ResourceGroupName string
	ProfileName       string
	RuleSetName       string
}

RuleSetId is a struct representing the Resource ID for a Rule Set

func NewRuleSetID

func NewRuleSetID(subscriptionId string, resourceGroupName string, profileName string, ruleSetName string) RuleSetId

NewRuleSetID returns a new RuleSetId struct

func ParseRuleSetID

func ParseRuleSetID(input string) (*RuleSetId, error)

ParseRuleSetID parses 'input' into a RuleSetId

func ParseRuleSetIDInsensitively

func ParseRuleSetIDInsensitively(input string) (*RuleSetId, error)

ParseRuleSetIDInsensitively parses 'input' case-insensitively into a RuleSetId note: this method should only be used for API response data and not user input

func (*RuleSetId) FromParseResult

func (id *RuleSetId) FromParseResult(input resourceids.ParseResult) error

func (RuleSetId) ID

func (id RuleSetId) ID() string

ID returns the formatted Rule Set ID

func (RuleSetId) Segments

func (id RuleSetId) Segments() []resourceids.Segment

Segments returns a slice of Resource ID Segments which comprise this Rule Set ID

func (RuleSetId) String

func (id RuleSetId) String() string

String returns a human-readable description of this Rule Set ID

type RuleUpdateParameters

type RuleUpdateParameters struct {
	Properties *RuleUpdatePropertiesParameters `json:"properties,omitempty"`
}

type RuleUpdatePropertiesParameters

type RuleUpdatePropertiesParameters struct {
	Actions                 *[]DeliveryRuleAction    `json:"actions,omitempty"`
	Conditions              *[]DeliveryRuleCondition `json:"conditions,omitempty"`
	MatchProcessingBehavior *MatchProcessingBehavior `json:"matchProcessingBehavior,omitempty"`
	Order                   *int64                   `json:"order,omitempty"`
	RuleSetName             *string                  `json:"ruleSetName,omitempty"`
}

func (*RuleUpdatePropertiesParameters) UnmarshalJSON

func (s *RuleUpdatePropertiesParameters) UnmarshalJSON(bytes []byte) error

type RulesClient

type RulesClient struct {
	Client *resourcemanager.Client
}

func NewRulesClientWithBaseURI

func NewRulesClientWithBaseURI(sdkApi sdkEnv.Api) (*RulesClient, error)

func (RulesClient) Create

func (c RulesClient) Create(ctx context.Context, id RuleId, input Rule) (result CreateOperationResponse, err error)

Create ...

func (RulesClient) CreateThenPoll

func (c RulesClient) CreateThenPoll(ctx context.Context, id RuleId, input Rule) error

CreateThenPoll performs Create then polls until it's completed

func (RulesClient) Delete

func (c RulesClient) Delete(ctx context.Context, id RuleId) (result DeleteOperationResponse, err error)

Delete ...

func (RulesClient) DeleteThenPoll

func (c RulesClient) DeleteThenPoll(ctx context.Context, id RuleId) error

DeleteThenPoll performs Delete then polls until it's completed

func (RulesClient) Get

func (c RulesClient) Get(ctx context.Context, id RuleId) (result GetOperationResponse, err error)

Get ...

func (RulesClient) ListByRuleSet

func (c RulesClient) ListByRuleSet(ctx context.Context, id RuleSetId) (result ListByRuleSetOperationResponse, err error)

ListByRuleSet ...

func (RulesClient) ListByRuleSetComplete

func (c RulesClient) ListByRuleSetComplete(ctx context.Context, id RuleSetId) (ListByRuleSetCompleteResult, error)

ListByRuleSetComplete retrieves all the results into a single object

func (RulesClient) ListByRuleSetCompleteMatchingPredicate

func (c RulesClient) ListByRuleSetCompleteMatchingPredicate(ctx context.Context, id RuleSetId, predicate RuleOperationPredicate) (result ListByRuleSetCompleteResult, err error)

ListByRuleSetCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (RulesClient) Update

func (c RulesClient) Update(ctx context.Context, id RuleId, input RuleUpdateParameters) (result UpdateOperationResponse, err error)

Update ...

func (RulesClient) UpdateThenPoll

func (c RulesClient) UpdateThenPoll(ctx context.Context, id RuleId, input RuleUpdateParameters) error

UpdateThenPoll performs Update then polls until it's completed

type ServerPortMatchConditionParameters

type ServerPortMatchConditionParameters struct {
	MatchValues     *[]string          `json:"matchValues,omitempty"`
	NegateCondition *bool              `json:"negateCondition,omitempty"`
	Operator        ServerPortOperator `json:"operator"`
	Transforms      *[]Transform       `json:"transforms,omitempty"`

	TypeName DeliveryRuleConditionParametersType `json:"typeName"`
}

func (ServerPortMatchConditionParameters) DeliveryRuleConditionParameters

func (ServerPortMatchConditionParameters) MarshalJSON

func (s ServerPortMatchConditionParameters) MarshalJSON() ([]byte, error)

type ServerPortOperator

type ServerPortOperator string
const (
	ServerPortOperatorAny                ServerPortOperator = "Any"
	ServerPortOperatorBeginsWith         ServerPortOperator = "BeginsWith"
	ServerPortOperatorContains           ServerPortOperator = "Contains"
	ServerPortOperatorEndsWith           ServerPortOperator = "EndsWith"
	ServerPortOperatorEqual              ServerPortOperator = "Equal"
	ServerPortOperatorGreaterThan        ServerPortOperator = "GreaterThan"
	ServerPortOperatorGreaterThanOrEqual ServerPortOperator = "GreaterThanOrEqual"
	ServerPortOperatorLessThan           ServerPortOperator = "LessThan"
	ServerPortOperatorLessThanOrEqual    ServerPortOperator = "LessThanOrEqual"
	ServerPortOperatorRegEx              ServerPortOperator = "RegEx"
)

func (*ServerPortOperator) UnmarshalJSON

func (s *ServerPortOperator) UnmarshalJSON(bytes []byte) error

type SocketAddrMatchConditionParameters

type SocketAddrMatchConditionParameters struct {
	MatchValues     *[]string          `json:"matchValues,omitempty"`
	NegateCondition *bool              `json:"negateCondition,omitempty"`
	Operator        SocketAddrOperator `json:"operator"`
	Transforms      *[]Transform       `json:"transforms,omitempty"`

	TypeName DeliveryRuleConditionParametersType `json:"typeName"`
}

func (SocketAddrMatchConditionParameters) DeliveryRuleConditionParameters

func (SocketAddrMatchConditionParameters) MarshalJSON

func (s SocketAddrMatchConditionParameters) MarshalJSON() ([]byte, error)

type SocketAddrOperator

type SocketAddrOperator string
const (
	SocketAddrOperatorAny     SocketAddrOperator = "Any"
	SocketAddrOperatorIPMatch SocketAddrOperator = "IPMatch"
)

func (*SocketAddrOperator) UnmarshalJSON

func (s *SocketAddrOperator) UnmarshalJSON(bytes []byte) error

type SslProtocol

type SslProtocol string
const (
	SslProtocolTLSvOne         SslProtocol = "TLSv1"
	SslProtocolTLSvOnePointOne SslProtocol = "TLSv1.1"
	SslProtocolTLSvOnePointTwo SslProtocol = "TLSv1.2"
)

func (*SslProtocol) UnmarshalJSON

func (s *SslProtocol) UnmarshalJSON(bytes []byte) error

type SslProtocolMatchConditionParameters

type SslProtocolMatchConditionParameters struct {
	MatchValues     *[]SslProtocol      `json:"matchValues,omitempty"`
	NegateCondition *bool               `json:"negateCondition,omitempty"`
	Operator        SslProtocolOperator `json:"operator"`
	Transforms      *[]Transform        `json:"transforms,omitempty"`

	TypeName DeliveryRuleConditionParametersType `json:"typeName"`
}

func (SslProtocolMatchConditionParameters) DeliveryRuleConditionParameters

func (SslProtocolMatchConditionParameters) MarshalJSON

func (s SslProtocolMatchConditionParameters) MarshalJSON() ([]byte, error)

type SslProtocolOperator

type SslProtocolOperator string
const (
	SslProtocolOperatorEqual SslProtocolOperator = "Equal"
)

func (*SslProtocolOperator) UnmarshalJSON

func (s *SslProtocolOperator) UnmarshalJSON(bytes []byte) error

type Transform

type Transform string
const (
	TransformLowercase   Transform = "Lowercase"
	TransformRemoveNulls Transform = "RemoveNulls"
	TransformTrim        Transform = "Trim"
	TransformURLDecode   Transform = "UrlDecode"
	TransformURLEncode   Transform = "UrlEncode"
	TransformUppercase   Transform = "Uppercase"
)

func (*Transform) UnmarshalJSON

func (s *Transform) UnmarshalJSON(bytes []byte) error

type URLFileExtensionMatchConditionParameters

type URLFileExtensionMatchConditionParameters struct {
	MatchValues     *[]string                `json:"matchValues,omitempty"`
	NegateCondition *bool                    `json:"negateCondition,omitempty"`
	Operator        URLFileExtensionOperator `json:"operator"`
	Transforms      *[]Transform             `json:"transforms,omitempty"`

	TypeName DeliveryRuleConditionParametersType `json:"typeName"`
}

func (URLFileExtensionMatchConditionParameters) DeliveryRuleConditionParameters

func (URLFileExtensionMatchConditionParameters) MarshalJSON

type URLFileExtensionOperator

type URLFileExtensionOperator string
const (
	URLFileExtensionOperatorAny                URLFileExtensionOperator = "Any"
	URLFileExtensionOperatorBeginsWith         URLFileExtensionOperator = "BeginsWith"
	URLFileExtensionOperatorContains           URLFileExtensionOperator = "Contains"
	URLFileExtensionOperatorEndsWith           URLFileExtensionOperator = "EndsWith"
	URLFileExtensionOperatorEqual              URLFileExtensionOperator = "Equal"
	URLFileExtensionOperatorGreaterThan        URLFileExtensionOperator = "GreaterThan"
	URLFileExtensionOperatorGreaterThanOrEqual URLFileExtensionOperator = "GreaterThanOrEqual"
	URLFileExtensionOperatorLessThan           URLFileExtensionOperator = "LessThan"
	URLFileExtensionOperatorLessThanOrEqual    URLFileExtensionOperator = "LessThanOrEqual"
	URLFileExtensionOperatorRegEx              URLFileExtensionOperator = "RegEx"
)

func (*URLFileExtensionOperator) UnmarshalJSON

func (s *URLFileExtensionOperator) UnmarshalJSON(bytes []byte) error

type URLFileNameMatchConditionParameters

type URLFileNameMatchConditionParameters struct {
	MatchValues     *[]string           `json:"matchValues,omitempty"`
	NegateCondition *bool               `json:"negateCondition,omitempty"`
	Operator        URLFileNameOperator `json:"operator"`
	Transforms      *[]Transform        `json:"transforms,omitempty"`

	TypeName DeliveryRuleConditionParametersType `json:"typeName"`
}

func (URLFileNameMatchConditionParameters) DeliveryRuleConditionParameters

func (URLFileNameMatchConditionParameters) MarshalJSON

func (s URLFileNameMatchConditionParameters) MarshalJSON() ([]byte, error)

type URLFileNameOperator

type URLFileNameOperator string
const (
	URLFileNameOperatorAny                URLFileNameOperator = "Any"
	URLFileNameOperatorBeginsWith         URLFileNameOperator = "BeginsWith"
	URLFileNameOperatorContains           URLFileNameOperator = "Contains"
	URLFileNameOperatorEndsWith           URLFileNameOperator = "EndsWith"
	URLFileNameOperatorEqual              URLFileNameOperator = "Equal"
	URLFileNameOperatorGreaterThan        URLFileNameOperator = "GreaterThan"
	URLFileNameOperatorGreaterThanOrEqual URLFileNameOperator = "GreaterThanOrEqual"
	URLFileNameOperatorLessThan           URLFileNameOperator = "LessThan"
	URLFileNameOperatorLessThanOrEqual    URLFileNameOperator = "LessThanOrEqual"
	URLFileNameOperatorRegEx              URLFileNameOperator = "RegEx"
)

func (*URLFileNameOperator) UnmarshalJSON

func (s *URLFileNameOperator) UnmarshalJSON(bytes []byte) error

type URLPathMatchConditionParameters

type URLPathMatchConditionParameters struct {
	MatchValues     *[]string       `json:"matchValues,omitempty"`
	NegateCondition *bool           `json:"negateCondition,omitempty"`
	Operator        URLPathOperator `json:"operator"`
	Transforms      *[]Transform    `json:"transforms,omitempty"`

	TypeName DeliveryRuleConditionParametersType `json:"typeName"`
}

func (URLPathMatchConditionParameters) DeliveryRuleConditionParameters

func (URLPathMatchConditionParameters) MarshalJSON

func (s URLPathMatchConditionParameters) MarshalJSON() ([]byte, error)

type URLPathOperator

type URLPathOperator string
const (
	URLPathOperatorAny                URLPathOperator = "Any"
	URLPathOperatorBeginsWith         URLPathOperator = "BeginsWith"
	URLPathOperatorContains           URLPathOperator = "Contains"
	URLPathOperatorEndsWith           URLPathOperator = "EndsWith"
	URLPathOperatorEqual              URLPathOperator = "Equal"
	URLPathOperatorGreaterThan        URLPathOperator = "GreaterThan"
	URLPathOperatorGreaterThanOrEqual URLPathOperator = "GreaterThanOrEqual"
	URLPathOperatorLessThan           URLPathOperator = "LessThan"
	URLPathOperatorLessThanOrEqual    URLPathOperator = "LessThanOrEqual"
	URLPathOperatorRegEx              URLPathOperator = "RegEx"
	URLPathOperatorWildcard           URLPathOperator = "Wildcard"
)

func (*URLPathOperator) UnmarshalJSON

func (s *URLPathOperator) UnmarshalJSON(bytes []byte) error

type URLRedirectAction

type URLRedirectAction struct {
	Parameters URLRedirectActionParameters `json:"parameters"`

	Name DeliveryRuleActionName `json:"name"`
}

func (URLRedirectAction) DeliveryRuleAction

func (s URLRedirectAction) DeliveryRuleAction() BaseDeliveryRuleActionImpl

func (URLRedirectAction) MarshalJSON

func (s URLRedirectAction) MarshalJSON() ([]byte, error)

type URLRedirectActionParameters

type URLRedirectActionParameters struct {
	CustomFragment      *string              `json:"customFragment,omitempty"`
	CustomHostname      *string              `json:"customHostname,omitempty"`
	CustomPath          *string              `json:"customPath,omitempty"`
	CustomQueryString   *string              `json:"customQueryString,omitempty"`
	DestinationProtocol *DestinationProtocol `json:"destinationProtocol,omitempty"`
	RedirectType        RedirectType         `json:"redirectType"`

	TypeName DeliveryRuleActionParametersType `json:"typeName"`
}

func (URLRedirectActionParameters) DeliveryRuleActionParameters

func (s URLRedirectActionParameters) DeliveryRuleActionParameters() BaseDeliveryRuleActionParametersImpl

func (URLRedirectActionParameters) MarshalJSON

func (s URLRedirectActionParameters) MarshalJSON() ([]byte, error)

type URLRewriteAction

type URLRewriteAction struct {
	Parameters URLRewriteActionParameters `json:"parameters"`

	Name DeliveryRuleActionName `json:"name"`
}

func (URLRewriteAction) DeliveryRuleAction

func (s URLRewriteAction) DeliveryRuleAction() BaseDeliveryRuleActionImpl

func (URLRewriteAction) MarshalJSON

func (s URLRewriteAction) MarshalJSON() ([]byte, error)

type URLRewriteActionParameters

type URLRewriteActionParameters struct {
	Destination           string `json:"destination"`
	PreserveUnmatchedPath *bool  `json:"preserveUnmatchedPath,omitempty"`
	SourcePattern         string `json:"sourcePattern"`

	TypeName DeliveryRuleActionParametersType `json:"typeName"`
}

func (URLRewriteActionParameters) DeliveryRuleActionParameters

func (s URLRewriteActionParameters) DeliveryRuleActionParameters() BaseDeliveryRuleActionParametersImpl

func (URLRewriteActionParameters) MarshalJSON

func (s URLRewriteActionParameters) MarshalJSON() ([]byte, error)

type URLSigningAction

type URLSigningAction struct {
	Parameters URLSigningActionParameters `json:"parameters"`

	Name DeliveryRuleActionName `json:"name"`
}

func (URLSigningAction) DeliveryRuleAction

func (s URLSigningAction) DeliveryRuleAction() BaseDeliveryRuleActionImpl

func (URLSigningAction) MarshalJSON

func (s URLSigningAction) MarshalJSON() ([]byte, error)

type URLSigningActionParameters

type URLSigningActionParameters struct {
	Algorithm             *Algorithm                   `json:"algorithm,omitempty"`
	ParameterNameOverride *[]URLSigningParamIdentifier `json:"parameterNameOverride,omitempty"`

	TypeName DeliveryRuleActionParametersType `json:"typeName"`
}

func (URLSigningActionParameters) DeliveryRuleActionParameters

func (s URLSigningActionParameters) DeliveryRuleActionParameters() BaseDeliveryRuleActionParametersImpl

func (URLSigningActionParameters) MarshalJSON

func (s URLSigningActionParameters) MarshalJSON() ([]byte, error)

type URLSigningParamIdentifier

type URLSigningParamIdentifier struct {
	ParamIndicator ParamIndicator `json:"paramIndicator"`
	ParamName      string         `json:"paramName"`
}

type UpdateOperationResponse

type UpdateOperationResponse struct {
	Poller       pollers.Poller
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *Rule
}

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL