/// <summary> /// Initializes a new instance of the RoutingRule class. /// </summary> /// <param name="id">Resource ID.</param> /// <param name="frontendEndpoints">Frontend endpoints associated with /// this rule</param> /// <param name="acceptedProtocols">Protocol schemes to match for this /// rule</param> /// <param name="patternsToMatch">The route patterns of the /// rule.</param> /// <param name="customForwardingPath">A custom path used to rewrite /// resource paths matched by this rule. Leave empty to use incoming /// path.</param> /// <param name="forwardingProtocol">Protocol this rule will use when /// forwarding traffic to backends. Possible values include: /// 'HttpOnly', 'HttpsOnly', 'MatchRequest'</param> /// <param name="cacheConfiguration">The caching configuration /// associated with this rule.</param> /// <param name="backendPool">A reference to the BackendPool which this /// rule routes to.</param> /// <param name="enabledState">Whether to enable use of this rule. /// Permitted values are 'Enabled' or 'Disabled'. Possible values /// include: 'Enabled', 'Disabled'</param> /// <param name="resourceState">Resource status. Possible values /// include: 'Creating', 'Enabling', 'Enabled', 'Disabling', /// 'Disabled', 'Deleting'</param> /// <param name="name">Resource name.</param> /// <param name="type">Resource type.</param> public RoutingRule(string id = default(string), IList <SubResource> frontendEndpoints = default(IList <SubResource>), IList <string> acceptedProtocols = default(IList <string>), IList <string> patternsToMatch = default(IList <string>), string customForwardingPath = default(string), string forwardingProtocol = default(string), CacheConfiguration cacheConfiguration = default(CacheConfiguration), SubResource backendPool = default(SubResource), string enabledState = default(string), string resourceState = default(string), string name = default(string), string type = default(string)) : base(id) { FrontendEndpoints = frontendEndpoints; AcceptedProtocols = acceptedProtocols; PatternsToMatch = patternsToMatch; CustomForwardingPath = customForwardingPath; ForwardingProtocol = forwardingProtocol; CacheConfiguration = cacheConfiguration; BackendPool = backendPool; EnabledState = enabledState; ResourceState = resourceState; Name = name; Type = type; CustomInit(); }
/// <summary> /// Initializes a new instance of the RoutingRuleUpdateParameters /// class. /// </summary> /// <param name="frontendEndpoints">Frontend endpoints associated with /// this rule</param> /// <param name="acceptedProtocols">Protocol schemes to match for this /// rule</param> /// <param name="patternsToMatch">The route patterns of the /// rule.</param> /// <param name="enabledState">Whether to enable use of this rule. /// Permitted values are 'Enabled' or 'Disabled'. Possible values /// include: 'Enabled', 'Disabled'</param> /// <param name="routeConfiguration">A reference to the routing /// configuration.</param> /// <param name="rulesEngine">A reference to a specific Rules Engine /// Configuration to apply to this route.</param> /// <param name="webApplicationFirewallPolicyLink">Defines the Web /// Application Firewall policy for each routing rule (if /// applicable)</param> public RoutingRuleUpdateParameters(IList <SubResource> frontendEndpoints = default(IList <SubResource>), IList <string> acceptedProtocols = default(IList <string>), IList <string> patternsToMatch = default(IList <string>), string enabledState = default(string), RouteConfiguration routeConfiguration = default(RouteConfiguration), SubResource rulesEngine = default(SubResource), RoutingRuleUpdateParametersWebApplicationFirewallPolicyLink webApplicationFirewallPolicyLink = default(RoutingRuleUpdateParametersWebApplicationFirewallPolicyLink)) { FrontendEndpoints = frontendEndpoints; AcceptedProtocols = acceptedProtocols; PatternsToMatch = patternsToMatch; EnabledState = enabledState; RouteConfiguration = routeConfiguration; RulesEngine = rulesEngine; WebApplicationFirewallPolicyLink = webApplicationFirewallPolicyLink; CustomInit(); }
/// <summary> /// Initializes a new instance of the RoutingRule class. /// </summary> /// <param name="id">Resource ID.</param> /// <param name="frontendEndpoints">Frontend endpoints associated with /// this rule</param> /// <param name="acceptedProtocols">Protocol schemes to match for this /// rule</param> /// <param name="patternsToMatch">The route patterns of the /// rule.</param> /// <param name="enabledState">Whether to enable use of this rule. /// Permitted values are 'Enabled' or 'Disabled'. Possible values /// include: 'Enabled', 'Disabled'</param> /// <param name="routeConfiguration">A reference to the routing /// configuration.</param> /// <param name="rulesEngine">A reference to a specific Rules Engine /// Configuration to apply to this route.</param> /// <param name="resourceState">Resource status. Possible values /// include: 'Creating', 'Enabling', 'Enabled', 'Disabling', /// 'Disabled', 'Deleting'</param> /// <param name="name">Resource name.</param> /// <param name="type">Resource type.</param> public RoutingRule(string id = default(string), IList <SubResource> frontendEndpoints = default(IList <SubResource>), IList <string> acceptedProtocols = default(IList <string>), IList <string> patternsToMatch = default(IList <string>), string enabledState = default(string), RouteConfiguration routeConfiguration = default(RouteConfiguration), SubResource rulesEngine = default(SubResource), string resourceState = default(string), string name = default(string), string type = default(string)) : base(id) { FrontendEndpoints = frontendEndpoints; AcceptedProtocols = acceptedProtocols; PatternsToMatch = patternsToMatch; EnabledState = enabledState; RouteConfiguration = routeConfiguration; RulesEngine = rulesEngine; ResourceState = resourceState; Name = name; Type = type; CustomInit(); }