diff --git a/packages/@azure/arm-frontdoor/lib/models/backendPoolsMappers.ts b/packages/@azure/arm-frontdoor/lib/models/backendPoolsMappers.ts index dd8a969f9878..22f853070d87 100644 --- a/packages/@azure/arm-frontdoor/lib/models/backendPoolsMappers.ts +++ b/packages/@azure/arm-frontdoor/lib/models/backendPoolsMappers.ts @@ -9,6 +9,7 @@ */ export { + discriminators, BackendPoolListResult, BackendPool, SubResource, @@ -16,13 +17,16 @@ export { Backend, ErrorResponse, RoutingRule, - CacheConfiguration, + RouteConfiguration, LoadBalancingSettingsModel, HealthProbeSettingsModel, FrontendEndpoint, FrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink, CustomHttpsConfiguration, KeyVaultCertificateSourceParametersVault, + ForwardingConfiguration, + CacheConfiguration, + RedirectConfiguration, Resource, WebApplicationFirewallPolicy, PolicySettings, @@ -37,6 +41,7 @@ export { ManagedRuleSetDefinition, ManagedRuleGroupDefinition, ManagedRuleDefinition, - FrontDoor + FrontDoor, + BackendPoolsSettings } from "../models/mappers"; diff --git a/packages/@azure/arm-frontdoor/lib/models/endpointsMappers.ts b/packages/@azure/arm-frontdoor/lib/models/endpointsMappers.ts index d4571be2b756..18eb96ab15e1 100644 --- a/packages/@azure/arm-frontdoor/lib/models/endpointsMappers.ts +++ b/packages/@azure/arm-frontdoor/lib/models/endpointsMappers.ts @@ -9,6 +9,7 @@ */ export { + discriminators, PurgeParameters, ErrorResponse } from "../models/mappers"; diff --git a/packages/@azure/arm-frontdoor/lib/models/frontDoorsMappers.ts b/packages/@azure/arm-frontdoor/lib/models/frontDoorsMappers.ts index b3768ff46ec4..0334cd41e517 100644 --- a/packages/@azure/arm-frontdoor/lib/models/frontDoorsMappers.ts +++ b/packages/@azure/arm-frontdoor/lib/models/frontDoorsMappers.ts @@ -9,13 +9,14 @@ */ export { + discriminators, FrontDoorListResult, FrontDoor, Resource, BaseResource, RoutingRule, SubResource, - CacheConfiguration, + RouteConfiguration, LoadBalancingSettingsModel, HealthProbeSettingsModel, BackendPool, @@ -24,9 +25,13 @@ export { FrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink, CustomHttpsConfiguration, KeyVaultCertificateSourceParametersVault, + BackendPoolsSettings, ErrorResponse, ValidateCustomDomainInput, ValidateCustomDomainOutput, + ForwardingConfiguration, + CacheConfiguration, + RedirectConfiguration, WebApplicationFirewallPolicy, PolicySettings, CustomRuleList, diff --git a/packages/@azure/arm-frontdoor/lib/models/frontendEndpointsMappers.ts b/packages/@azure/arm-frontdoor/lib/models/frontendEndpointsMappers.ts index 40adab81b98a..c0cc148e7c5a 100644 --- a/packages/@azure/arm-frontdoor/lib/models/frontendEndpointsMappers.ts +++ b/packages/@azure/arm-frontdoor/lib/models/frontendEndpointsMappers.ts @@ -9,6 +9,7 @@ */ export { + discriminators, FrontendEndpointsListResult, FrontendEndpoint, SubResource, @@ -18,11 +19,14 @@ export { KeyVaultCertificateSourceParametersVault, ErrorResponse, RoutingRule, - CacheConfiguration, + RouteConfiguration, LoadBalancingSettingsModel, HealthProbeSettingsModel, BackendPool, Backend, + ForwardingConfiguration, + CacheConfiguration, + RedirectConfiguration, Resource, WebApplicationFirewallPolicy, PolicySettings, @@ -37,6 +41,7 @@ export { ManagedRuleSetDefinition, ManagedRuleGroupDefinition, ManagedRuleDefinition, - FrontDoor + FrontDoor, + BackendPoolsSettings } from "../models/mappers"; diff --git a/packages/@azure/arm-frontdoor/lib/models/healthProbeSettingsMappers.ts b/packages/@azure/arm-frontdoor/lib/models/healthProbeSettingsMappers.ts index ad6f14be00ba..7e39522a35ed 100644 --- a/packages/@azure/arm-frontdoor/lib/models/healthProbeSettingsMappers.ts +++ b/packages/@azure/arm-frontdoor/lib/models/healthProbeSettingsMappers.ts @@ -9,13 +9,14 @@ */ export { + discriminators, HealthProbeSettingsListResult, HealthProbeSettingsModel, SubResource, BaseResource, ErrorResponse, RoutingRule, - CacheConfiguration, + RouteConfiguration, LoadBalancingSettingsModel, BackendPool, Backend, @@ -23,6 +24,9 @@ export { FrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink, CustomHttpsConfiguration, KeyVaultCertificateSourceParametersVault, + ForwardingConfiguration, + CacheConfiguration, + RedirectConfiguration, Resource, WebApplicationFirewallPolicy, PolicySettings, @@ -37,6 +41,7 @@ export { ManagedRuleSetDefinition, ManagedRuleGroupDefinition, ManagedRuleDefinition, - FrontDoor + FrontDoor, + BackendPoolsSettings } from "../models/mappers"; diff --git a/packages/@azure/arm-frontdoor/lib/models/index.ts b/packages/@azure/arm-frontdoor/lib/models/index.ts index 132a8258a10c..f70aac0c724f 100644 --- a/packages/@azure/arm-frontdoor/lib/models/index.ts +++ b/packages/@azure/arm-frontdoor/lib/models/index.ts @@ -88,6 +88,11 @@ export interface FrontDoor extends Resource { * available to routing rules. */ frontendEndpoints?: FrontendEndpoint[]; + /** + * @member {BackendPoolsSettings} [backendPoolsSettings] Settings for all + * backendPools + */ + backendPoolsSettings?: BackendPoolsSettings; /** * @member {FrontDoorEnabledState} [enabledState] Operational status of the * Front Door load balancer. Permitted values are 'Enabled' or 'Disabled'. @@ -153,32 +158,16 @@ export interface RoutingRule extends SubResource { */ patternsToMatch?: string[]; /** - * @member {string} [customForwardingPath] A custom path used to rewrite - * resource paths matched by this rule. Leave empty to use incoming path. - */ - customForwardingPath?: string; - /** - * @member {FrontDoorForwardingProtocol} [forwardingProtocol] Protocol this - * rule will use when forwarding traffic to backends. Possible values - * include: 'HttpOnly', 'HttpsOnly', 'MatchRequest' - */ - forwardingProtocol?: FrontDoorForwardingProtocol; - /** - * @member {CacheConfiguration} [cacheConfiguration] The caching - * configuration associated with this rule. - */ - cacheConfiguration?: CacheConfiguration; - /** - * @member {SubResource} [backendPool] A reference to the BackendPool which - * this rule routes to. - */ - backendPool?: SubResource; - /** - * @member {FrontDoorEnabledState} [enabledState] Whether to enable use of + * @member {RoutingRuleEnabledState} [enabledState] Whether to enable use of * this rule. Permitted values are 'Enabled' or 'Disabled'. Possible values * include: 'Enabled', 'Disabled' */ - enabledState?: FrontDoorEnabledState; + enabledState?: RoutingRuleEnabledState; + /** + * @member {RouteConfigurationUnion} [routeConfiguration] A reference to the + * routing configuration. + */ + routeConfiguration?: RouteConfigurationUnion; /** * @member {FrontDoorResourceState} [resourceState] Resource status. Possible * values include: 'Creating', 'Enabling', 'Enabled', 'Disabling', @@ -451,6 +440,22 @@ export interface FrontendEndpoint extends SubResource { readonly type?: string; } +/** + * @interface + * An interface representing BackendPoolsSettings. + * Settings that apply to all backend pools. + * + */ +export interface BackendPoolsSettings { + /** + * @member {EnforceCertificateNameCheckEnabledState} + * [enforceCertificateNameCheck] Whether to enforce certificate name check on + * HTTPS requests to all backend pools. No effect on non-HTTPS requests. + * Possible values include: 'Enabled', 'Disabled'. Default value: 'Enabled' . + */ + enforceCertificateNameCheck?: EnforceCertificateNameCheckEnabledState; +} + /** * @interface * An interface representing FrontDoorUpdateParameters. @@ -487,6 +492,11 @@ export interface FrontDoorUpdateParameters { * available to routing rules. */ frontendEndpoints?: FrontendEndpoint[]; + /** + * @member {BackendPoolsSettings} [backendPoolsSettings] Settings for all + * backendPools + */ + backendPoolsSettings?: BackendPoolsSettings; /** * @member {FrontDoorEnabledState} [enabledState] Operational status of the * Front Door load balancer. Permitted values are 'Enabled' or 'Disabled'. @@ -509,26 +519,22 @@ export interface PurgeParameters { contentPaths: string[]; } +/** + * Contains the possible cases for RouteConfiguration. + */ +export type RouteConfigurationUnion = RouteConfiguration | ForwardingConfiguration | RedirectConfiguration; + /** * @interface - * An interface representing CacheConfiguration. - * Caching settings for a caching-type route. To disable caching, do not - * provide a cacheConfiguration object. + * An interface representing RouteConfiguration. + * Base class for all types of Route. * */ -export interface CacheConfiguration { - /** - * @member {FrontDoorQuery} [queryParameterStripDirective] Treatment of URL - * query terms when forming the cache key. Possible values include: - * 'StripNone', 'StripAll' - */ - queryParameterStripDirective?: FrontDoorQuery; +export interface RouteConfiguration { /** - * @member {DynamicCompressionEnabled} [dynamicCompression] Whether to use - * dynamic compression for cached content. Possible values include: - * 'Enabled', 'Disabled' + * @member {string} odatatype Polymorphic Discriminator */ - dynamicCompression?: DynamicCompressionEnabled; + odatatype: "RouteConfiguration"; } /** @@ -552,6 +558,52 @@ export interface RoutingRuleUpdateParameters { * @member {string[]} [patternsToMatch] The route patterns of the rule. */ patternsToMatch?: string[]; + /** + * @member {RoutingRuleEnabledState} [enabledState] Whether to enable use of + * this rule. Permitted values are 'Enabled' or 'Disabled'. Possible values + * include: 'Enabled', 'Disabled' + */ + enabledState?: RoutingRuleEnabledState; + /** + * @member {RouteConfigurationUnion} [routeConfiguration] A reference to the + * routing configuration. + */ + routeConfiguration?: RouteConfigurationUnion; +} + +/** + * @interface + * An interface representing CacheConfiguration. + * Caching settings for a caching-type route. To disable caching, do not + * provide a cacheConfiguration object. + * + */ +export interface CacheConfiguration { + /** + * @member {FrontDoorQuery} [queryParameterStripDirective] Treatment of URL + * query terms when forming the cache key. Possible values include: + * 'StripNone', 'StripAll' + */ + queryParameterStripDirective?: FrontDoorQuery; + /** + * @member {DynamicCompressionEnabled} [dynamicCompression] Whether to use + * dynamic compression for cached content. Possible values include: + * 'Enabled', 'Disabled' + */ + dynamicCompression?: DynamicCompressionEnabled; +} + +/** + * @interface + * An interface representing ForwardingConfiguration. + * Describes Forwarding Route. + * + */ +export interface ForwardingConfiguration { + /** + * @member {string} odatatype Polymorphic Discriminator + */ + odatatype: "#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration"; /** * @member {string} [customForwardingPath] A custom path used to rewrite * resource paths matched by this rule. Leave empty to use incoming path. @@ -573,12 +625,56 @@ export interface RoutingRuleUpdateParameters { * this rule routes to. */ backendPool?: SubResource; +} + +/** + * @interface + * An interface representing RedirectConfiguration. + * Describes Redirect Route. + * + */ +export interface RedirectConfiguration { /** - * @member {FrontDoorEnabledState} [enabledState] Whether to enable use of - * this rule. Permitted values are 'Enabled' or 'Disabled'. Possible values - * include: 'Enabled', 'Disabled' + * @member {string} odatatype Polymorphic Discriminator */ - enabledState?: FrontDoorEnabledState; + odatatype: "#Microsoft.Azure.FrontDoor.Models.FrontdoorRedirectConfiguration"; + /** + * @member {FrontDoorRedirectType} [redirectType] The redirect type the rule + * will use when redirecting traffic. Possible values include: 'Moved', + * 'Found', 'TemporaryRedirect', 'PermanentRedirect' + */ + redirectType?: FrontDoorRedirectType; + /** + * @member {FrontDoorRedirectProtocol} [redirectProtocol] The protocol of the + * destination to where the traffic is redirected. Possible values include: + * 'HttpOnly', 'HttpsOnly', 'MatchRequest' + */ + redirectProtocol?: FrontDoorRedirectProtocol; + /** + * @member {string} [customHost] Host to redirect. Leave empty to use use the + * incoming host as the destination host. + */ + customHost?: string; + /** + * @member {string} [customPath] The full path to redirect. Path cannot be + * empty and must start with /. Leave empty to use the incoming path as + * destination path. + */ + customPath?: string; + /** + * @member {string} [customFragment] Fragment to add to the redirect URL. + * Fragment is the part of the URL that comes after #. Do not include the #. + */ + customFragment?: string; + /** + * @member {string} [customQueryString] The set of query strings to be placed + * in the redirect URL. Setting this value would replace any existing query + * string; leave empty to preserve the incoming query string. Query string + * must be in = format. The first ? and & will be added + * automatically so do not include them in the front, but do separate + * multiple query strings with &. + */ + customQueryString?: string; } /** @@ -603,11 +699,11 @@ export interface Backend { */ httpsPort?: number; /** - * @member {FrontDoorEnabledState} [enabledState] Whether to enable use of - * this backend. Permitted values are 'Enabled' or 'Disabled'. Possible - * values include: 'Enabled', 'Disabled' + * @member {BackendEnabledState} [enabledState] Whether to enable use of this + * backend. Permitted values are 'Enabled' or 'Disabled'. Possible values + * include: 'Enabled', 'Disabled' */ - enabledState?: FrontDoorEnabledState; + enabledState?: BackendEnabledState; /** * @member {number} [priority] Priority to use for load balancing. Higher * priorities will not be used for load balancing if any lower priority @@ -1501,6 +1597,14 @@ export type FrontDoorTlsProtocolType = 'ServerNameIndication'; */ export type FrontDoorCertificateType = 'Dedicated'; +/** + * Defines values for EnforceCertificateNameCheckEnabledState. + * Possible values include: 'Enabled', 'Disabled' + * @readonly + * @enum {string} + */ +export type EnforceCertificateNameCheckEnabledState = 'Enabled' | 'Disabled'; + /** * Defines values for FrontDoorEnabledState. * Possible values include: 'Enabled', 'Disabled' @@ -1517,6 +1621,14 @@ export type FrontDoorEnabledState = 'Enabled' | 'Disabled'; */ export type FrontDoorProtocol = 'Http' | 'Https'; +/** + * Defines values for RoutingRuleEnabledState. + * Possible values include: 'Enabled', 'Disabled' + * @readonly + * @enum {string} + */ +export type RoutingRuleEnabledState = 'Enabled' | 'Disabled'; + /** * Defines values for FrontDoorForwardingProtocol. * Possible values include: 'HttpOnly', 'HttpsOnly', 'MatchRequest' @@ -1541,6 +1653,30 @@ export type FrontDoorQuery = 'StripNone' | 'StripAll'; */ export type DynamicCompressionEnabled = 'Enabled' | 'Disabled'; +/** + * Defines values for FrontDoorRedirectType. + * Possible values include: 'Moved', 'Found', 'TemporaryRedirect', 'PermanentRedirect' + * @readonly + * @enum {string} + */ +export type FrontDoorRedirectType = 'Moved' | 'Found' | 'TemporaryRedirect' | 'PermanentRedirect'; + +/** + * Defines values for FrontDoorRedirectProtocol. + * Possible values include: 'HttpOnly', 'HttpsOnly', 'MatchRequest' + * @readonly + * @enum {string} + */ +export type FrontDoorRedirectProtocol = 'HttpOnly' | 'HttpsOnly' | 'MatchRequest'; + +/** + * Defines values for BackendEnabledState. + * Possible values include: 'Enabled', 'Disabled' + * @readonly + * @enum {string} + */ +export type BackendEnabledState = 'Enabled' | 'Disabled'; + /** * Defines values for SessionAffinityEnabledState. * Possible values include: 'Enabled', 'Disabled' diff --git a/packages/@azure/arm-frontdoor/lib/models/loadBalancingSettingsMappers.ts b/packages/@azure/arm-frontdoor/lib/models/loadBalancingSettingsMappers.ts index d4e2042f1808..d588a25b8865 100644 --- a/packages/@azure/arm-frontdoor/lib/models/loadBalancingSettingsMappers.ts +++ b/packages/@azure/arm-frontdoor/lib/models/loadBalancingSettingsMappers.ts @@ -9,13 +9,14 @@ */ export { + discriminators, LoadBalancingSettingsListResult, LoadBalancingSettingsModel, SubResource, BaseResource, ErrorResponse, RoutingRule, - CacheConfiguration, + RouteConfiguration, HealthProbeSettingsModel, BackendPool, Backend, @@ -23,6 +24,9 @@ export { FrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink, CustomHttpsConfiguration, KeyVaultCertificateSourceParametersVault, + ForwardingConfiguration, + CacheConfiguration, + RedirectConfiguration, Resource, WebApplicationFirewallPolicy, PolicySettings, @@ -37,6 +41,7 @@ export { ManagedRuleSetDefinition, ManagedRuleGroupDefinition, ManagedRuleDefinition, - FrontDoor + FrontDoor, + BackendPoolsSettings } from "../models/mappers"; diff --git a/packages/@azure/arm-frontdoor/lib/models/managedRuleSetsMappers.ts b/packages/@azure/arm-frontdoor/lib/models/managedRuleSetsMappers.ts index ce520f386d0c..18a97a70c9af 100644 --- a/packages/@azure/arm-frontdoor/lib/models/managedRuleSetsMappers.ts +++ b/packages/@azure/arm-frontdoor/lib/models/managedRuleSetsMappers.ts @@ -9,6 +9,7 @@ */ export { + discriminators, ManagedRuleSetDefinitionList, ManagedRuleSetDefinition, Resource, @@ -19,7 +20,7 @@ export { FrontDoor, RoutingRule, SubResource, - CacheConfiguration, + RouteConfiguration, LoadBalancingSettingsModel, HealthProbeSettingsModel, BackendPool, @@ -28,6 +29,10 @@ export { FrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink, CustomHttpsConfiguration, KeyVaultCertificateSourceParametersVault, + BackendPoolsSettings, + ForwardingConfiguration, + CacheConfiguration, + RedirectConfiguration, WebApplicationFirewallPolicy, PolicySettings, CustomRuleList, diff --git a/packages/@azure/arm-frontdoor/lib/models/mappers.ts b/packages/@azure/arm-frontdoor/lib/models/mappers.ts index 564a80d93eab..2ddfe23f83c3 100644 --- a/packages/@azure/arm-frontdoor/lib/models/mappers.ts +++ b/packages/@azure/arm-frontdoor/lib/models/mappers.ts @@ -135,6 +135,13 @@ export const FrontDoor: msRest.CompositeMapper = { } } }, + backendPoolsSettings: { + serializedName: "properties.backendPoolsSettings", + type: { + name: "Composite", + className: "BackendPoolsSettings" + } + }, enabledState: { serializedName: "properties.enabledState", type: { @@ -222,36 +229,17 @@ export const RoutingRule: msRest.CompositeMapper = { } } }, - customForwardingPath: { - serializedName: "properties.customForwardingPath", - type: { - name: "String" - } - }, - forwardingProtocol: { - serializedName: "properties.forwardingProtocol", + enabledState: { + serializedName: "properties.enabledState", type: { name: "String" } }, - cacheConfiguration: { - serializedName: "properties.cacheConfiguration", + routeConfiguration: { + serializedName: "properties.routeConfiguration", type: { name: "Composite", - className: "CacheConfiguration" - } - }, - backendPool: { - serializedName: "properties.backendPool", - type: { - name: "Composite", - className: "SubResource" - } - }, - enabledState: { - serializedName: "properties.enabledState", - type: { - name: "String" + className: "RouteConfiguration" } }, resourceState: { @@ -569,6 +557,23 @@ export const FrontendEndpoint: msRest.CompositeMapper = { } }; +export const BackendPoolsSettings: msRest.CompositeMapper = { + serializedName: "BackendPoolsSettings", + type: { + name: "Composite", + className: "BackendPoolsSettings", + modelProperties: { + enforceCertificateNameCheck: { + serializedName: "enforceCertificateNameCheck", + defaultValue: 'Enabled', + type: { + name: "String" + } + } + } + } +}; + export const FrontDoorUpdateParameters: msRest.CompositeMapper = { serializedName: "FrontDoorUpdateParameters", type: { @@ -641,6 +646,13 @@ export const FrontDoorUpdateParameters: msRest.CompositeMapper = { } } }, + backendPoolsSettings: { + serializedName: "backendPoolsSettings", + type: { + name: "Composite", + className: "BackendPoolsSettings" + } + }, enabledState: { serializedName: "enabledState", type: { @@ -673,20 +685,20 @@ export const PurgeParameters: msRest.CompositeMapper = { } }; -export const CacheConfiguration: msRest.CompositeMapper = { - serializedName: "CacheConfiguration", +export const RouteConfiguration: msRest.CompositeMapper = { + serializedName: "RouteConfiguration", type: { name: "Composite", - className: "CacheConfiguration", + polymorphicDiscriminator: { + serializedName: "@odata.type", + clientName: "odatatype" + }, + uberParent: "RouteConfiguration", + className: "RouteConfiguration", modelProperties: { - queryParameterStripDirective: { - serializedName: "queryParameterStripDirective", - type: { - name: "String" - } - }, - dynamicCompression: { - serializedName: "dynamicCompression", + odatatype: { + required: true, + serializedName: "@odata\\.type", type: { name: "String" } @@ -735,6 +747,54 @@ export const RoutingRuleUpdateParameters: msRest.CompositeMapper = { } } }, + enabledState: { + serializedName: "enabledState", + type: { + name: "String" + } + }, + routeConfiguration: { + serializedName: "routeConfiguration", + type: { + name: "Composite", + className: "RouteConfiguration" + } + } + } + } +}; + +export const CacheConfiguration: msRest.CompositeMapper = { + serializedName: "CacheConfiguration", + type: { + name: "Composite", + className: "CacheConfiguration", + modelProperties: { + queryParameterStripDirective: { + serializedName: "queryParameterStripDirective", + type: { + name: "String" + } + }, + dynamicCompression: { + serializedName: "dynamicCompression", + type: { + name: "String" + } + } + } + } +}; + +export const ForwardingConfiguration: msRest.CompositeMapper = { + serializedName: "#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration", + type: { + name: "Composite", + polymorphicDiscriminator: RouteConfiguration.type.polymorphicDiscriminator, + uberParent: "RouteConfiguration", + className: "ForwardingConfiguration", + modelProperties: { + ...RouteConfiguration.type.modelProperties, customForwardingPath: { serializedName: "customForwardingPath", type: { @@ -760,9 +820,52 @@ export const RoutingRuleUpdateParameters: msRest.CompositeMapper = { name: "Composite", className: "SubResource" } + } + } + } +}; + +export const RedirectConfiguration: msRest.CompositeMapper = { + serializedName: "#Microsoft.Azure.FrontDoor.Models.FrontdoorRedirectConfiguration", + type: { + name: "Composite", + polymorphicDiscriminator: RouteConfiguration.type.polymorphicDiscriminator, + uberParent: "RouteConfiguration", + className: "RedirectConfiguration", + modelProperties: { + ...RouteConfiguration.type.modelProperties, + redirectType: { + serializedName: "redirectType", + type: { + name: "String" + } }, - enabledState: { - serializedName: "enabledState", + redirectProtocol: { + serializedName: "redirectProtocol", + type: { + name: "String" + } + }, + customHost: { + serializedName: "customHost", + type: { + name: "String" + } + }, + customPath: { + serializedName: "customPath", + type: { + name: "String" + } + }, + customFragment: { + serializedName: "customFragment", + type: { + name: "String" + } + }, + customQueryString: { + serializedName: "customQueryString", type: { name: "String" } @@ -1960,3 +2063,9 @@ export const ManagedRuleSetDefinitionList: msRest.CompositeMapper = { } } }; + +export const discriminators = { + 'RouteConfiguration' : RouteConfiguration, + 'RouteConfiguration.#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration' : ForwardingConfiguration, + 'RouteConfiguration.#Microsoft.Azure.FrontDoor.Models.FrontdoorRedirectConfiguration' : RedirectConfiguration +}; diff --git a/packages/@azure/arm-frontdoor/lib/models/parameters.ts b/packages/@azure/arm-frontdoor/lib/models/parameters.ts index 1ec1933fc5b1..dc7c5bec48df 100644 --- a/packages/@azure/arm-frontdoor/lib/models/parameters.ts +++ b/packages/@azure/arm-frontdoor/lib/models/parameters.ts @@ -26,7 +26,7 @@ export const apiVersion0: msRest.OperationQueryParameter = { required: true, isConstant: true, serializedName: "api-version", - defaultValue: '2018-08-01', + defaultValue: '2019-04-01', type: { name: "String" } diff --git a/packages/@azure/arm-frontdoor/lib/models/policiesMappers.ts b/packages/@azure/arm-frontdoor/lib/models/policiesMappers.ts index 95f9d7dd9ec3..3b8194aefe1b 100644 --- a/packages/@azure/arm-frontdoor/lib/models/policiesMappers.ts +++ b/packages/@azure/arm-frontdoor/lib/models/policiesMappers.ts @@ -9,6 +9,7 @@ */ export { + discriminators, WebApplicationFirewallPolicyList, WebApplicationFirewallPolicy, Resource, @@ -27,7 +28,7 @@ export { FrontDoor, RoutingRule, SubResource, - CacheConfiguration, + RouteConfiguration, LoadBalancingSettingsModel, HealthProbeSettingsModel, BackendPool, @@ -36,6 +37,10 @@ export { FrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink, CustomHttpsConfiguration, KeyVaultCertificateSourceParametersVault, + BackendPoolsSettings, + ForwardingConfiguration, + CacheConfiguration, + RedirectConfiguration, ManagedRuleSetDefinition, ManagedRuleGroupDefinition, ManagedRuleDefinition diff --git a/packages/@azure/arm-frontdoor/lib/models/routingRulesMappers.ts b/packages/@azure/arm-frontdoor/lib/models/routingRulesMappers.ts index 0f6a5706bd59..9d949c86b868 100644 --- a/packages/@azure/arm-frontdoor/lib/models/routingRulesMappers.ts +++ b/packages/@azure/arm-frontdoor/lib/models/routingRulesMappers.ts @@ -9,11 +9,12 @@ */ export { + discriminators, RoutingRuleListResult, RoutingRule, SubResource, BaseResource, - CacheConfiguration, + RouteConfiguration, ErrorResponse, LoadBalancingSettingsModel, HealthProbeSettingsModel, @@ -23,6 +24,9 @@ export { FrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink, CustomHttpsConfiguration, KeyVaultCertificateSourceParametersVault, + ForwardingConfiguration, + CacheConfiguration, + RedirectConfiguration, Resource, WebApplicationFirewallPolicy, PolicySettings, @@ -37,6 +41,7 @@ export { ManagedRuleSetDefinition, ManagedRuleGroupDefinition, ManagedRuleDefinition, - FrontDoor + FrontDoor, + BackendPoolsSettings } from "../models/mappers";