共用方式為


ArmCdnModelFactory.FrontDoorRoutePatch Method

Definition

Initializes a new instance of FrontDoorRoutePatch.

public static Azure.ResourceManager.Cdn.Models.FrontDoorRoutePatch FrontDoorRoutePatch(string endpointName = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.Cdn.Models.FrontDoorActivatedResourceInfo> customDomains = default, Azure.Core.ResourceIdentifier originGroupId = default, string originPath = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.Resources.Models.WritableSubResource> ruleSets = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.Cdn.Models.FrontDoorEndpointProtocol> supportedProtocols = default, System.Collections.Generic.IEnumerable<string> patternsToMatch = default, Azure.ResourceManager.Cdn.Models.FrontDoorRouteCacheConfiguration cacheConfiguration = default, Azure.ResourceManager.Cdn.Models.ForwardingProtocol? forwardingProtocol = default, Azure.ResourceManager.Cdn.Models.LinkToDefaultDomain? linkToDefaultDomain = default, Azure.ResourceManager.Cdn.Models.HttpsRedirect? httpsRedirect = default, Azure.ResourceManager.Cdn.Models.EnabledState? enabledState = default);
static member FrontDoorRoutePatch : string * seq<Azure.ResourceManager.Cdn.Models.FrontDoorActivatedResourceInfo> * Azure.Core.ResourceIdentifier * string * seq<Azure.ResourceManager.Resources.Models.WritableSubResource> * seq<Azure.ResourceManager.Cdn.Models.FrontDoorEndpointProtocol> * seq<string> * Azure.ResourceManager.Cdn.Models.FrontDoorRouteCacheConfiguration * Nullable<Azure.ResourceManager.Cdn.Models.ForwardingProtocol> * Nullable<Azure.ResourceManager.Cdn.Models.LinkToDefaultDomain> * Nullable<Azure.ResourceManager.Cdn.Models.HttpsRedirect> * Nullable<Azure.ResourceManager.Cdn.Models.EnabledState> -> Azure.ResourceManager.Cdn.Models.FrontDoorRoutePatch
Public Shared Function FrontDoorRoutePatch (Optional endpointName As String = Nothing, Optional customDomains As IEnumerable(Of FrontDoorActivatedResourceInfo) = Nothing, Optional originGroupId As ResourceIdentifier = Nothing, Optional originPath As String = Nothing, Optional ruleSets As IEnumerable(Of WritableSubResource) = Nothing, Optional supportedProtocols As IEnumerable(Of FrontDoorEndpointProtocol) = Nothing, Optional patternsToMatch As IEnumerable(Of String) = Nothing, Optional cacheConfiguration As FrontDoorRouteCacheConfiguration = Nothing, Optional forwardingProtocol As Nullable(Of ForwardingProtocol) = Nothing, Optional linkToDefaultDomain As Nullable(Of LinkToDefaultDomain) = Nothing, Optional httpsRedirect As Nullable(Of HttpsRedirect) = Nothing, Optional enabledState As Nullable(Of EnabledState) = Nothing) As FrontDoorRoutePatch

Parameters

endpointName
String

The name of the endpoint which holds the route. Serialized Name: RouteUpdateParameters.properties.endpointName

customDomains
IEnumerable<FrontDoorActivatedResourceInfo>

Domains referenced by this endpoint. Serialized Name: RouteUpdateParameters.properties.customDomains

originGroupId
ResourceIdentifier

A reference to the origin group. Serialized Name: RouteUpdateParameters.properties.originGroup

originPath
String

A directory path on the origin that AzureFrontDoor can use to retrieve content from, e.g. contoso.cloudapp.net/originpath. Serialized Name: RouteUpdateParameters.properties.originPath

ruleSets
IEnumerable<WritableSubResource>

rule sets referenced by this endpoint. Serialized Name: RouteUpdateParameters.properties.ruleSets

supportedProtocols
IEnumerable<FrontDoorEndpointProtocol>

List of supported protocols for this route. Serialized Name: RouteUpdateParameters.properties.supportedProtocols

patternsToMatch
IEnumerable<String>

The route patterns of the rule. Serialized Name: RouteUpdateParameters.properties.patternsToMatch

cacheConfiguration
FrontDoorRouteCacheConfiguration

The caching configuration for this route. To disable caching, do not provide a cacheConfiguration object. Serialized Name: RouteUpdateParameters.properties.cacheConfiguration

forwardingProtocol
Nullable<ForwardingProtocol>

Protocol this rule will use when forwarding traffic to backends. Serialized Name: RouteUpdateParameters.properties.forwardingProtocol

linkToDefaultDomain
Nullable<LinkToDefaultDomain>

whether this route will be linked to the default endpoint domain. Serialized Name: RouteUpdateParameters.properties.linkToDefaultDomain

httpsRedirect
Nullable<HttpsRedirect>

Whether to automatically redirect HTTP traffic to HTTPS traffic. Note that this is a easy way to set up this rule and it will be the first rule that gets executed. Serialized Name: RouteUpdateParameters.properties.httpsRedirect

enabledState
Nullable<EnabledState>

Whether to enable use of this rule. Permitted values are 'Enabled' or 'Disabled' Serialized Name: RouteUpdateParameters.properties.enabledState

Returns

A new FrontDoorRoutePatch instance for mocking.

Applies to