diff --git a/azure-mgmt-frontdoor/azure/mgmt/frontdoor/front_door_management_client.py b/azure-mgmt-frontdoor/azure/mgmt/frontdoor/front_door_management_client.py index 13e11b45e00a..89aa4286479d 100644 --- a/azure-mgmt-frontdoor/azure/mgmt/frontdoor/front_door_management_client.py +++ b/azure-mgmt-frontdoor/azure/mgmt/frontdoor/front_door_management_client.py @@ -151,7 +151,7 @@ def check_front_door_name_availability( """ check_front_door_name_availability_input = models.CheckNameAvailabilityInput(name=name, type=type) - api_version = "2018-08-01" + api_version = "2019-04-01" # Construct URL url = self.check_front_door_name_availability.metadata['url'] @@ -216,7 +216,7 @@ def check_front_door_name_availability_with_subscription( """ check_front_door_name_availability_input = models.CheckNameAvailabilityInput(name=name, type=type) - api_version = "2018-08-01" + api_version = "2019-04-01" # Construct URL url = self.check_front_door_name_availability_with_subscription.metadata['url'] diff --git a/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/__init__.py b/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/__init__.py index 536f363a21e9..f4f564eae7dd 100644 --- a/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/__init__.py +++ b/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/__init__.py @@ -18,11 +18,15 @@ from .key_vault_certificate_source_parameters_vault_py3 import KeyVaultCertificateSourceParametersVault from .custom_https_configuration_py3 import CustomHttpsConfiguration from .frontend_endpoint_py3 import FrontendEndpoint + from .backend_pools_settings_py3 import BackendPoolsSettings from .front_door_update_parameters_py3 import FrontDoorUpdateParameters from .purge_parameters_py3 import PurgeParameters from .sub_resource_py3 import SubResource - from .cache_configuration_py3 import CacheConfiguration + from .route_configuration_py3 import RouteConfiguration from .routing_rule_update_parameters_py3 import RoutingRuleUpdateParameters + from .cache_configuration_py3 import CacheConfiguration + from .forwarding_configuration_py3 import ForwardingConfiguration + from .redirect_configuration_py3 import RedirectConfiguration from .backend_py3 import Backend from .load_balancing_settings_update_parameters_py3 import LoadBalancingSettingsUpdateParameters from .health_probe_settings_update_parameters_py3 import HealthProbeSettingsUpdateParameters @@ -61,11 +65,15 @@ from .key_vault_certificate_source_parameters_vault import KeyVaultCertificateSourceParametersVault from .custom_https_configuration import CustomHttpsConfiguration from .frontend_endpoint import FrontendEndpoint + from .backend_pools_settings import BackendPoolsSettings from .front_door_update_parameters import FrontDoorUpdateParameters from .purge_parameters import PurgeParameters from .sub_resource import SubResource - from .cache_configuration import CacheConfiguration + from .route_configuration import RouteConfiguration from .routing_rule_update_parameters import RoutingRuleUpdateParameters + from .cache_configuration import CacheConfiguration + from .forwarding_configuration import ForwardingConfiguration + from .redirect_configuration import RedirectConfiguration from .backend import Backend from .load_balancing_settings_update_parameters import LoadBalancingSettingsUpdateParameters from .health_probe_settings_update_parameters import HealthProbeSettingsUpdateParameters @@ -110,11 +118,16 @@ FrontDoorCertificateSource, FrontDoorTlsProtocolType, FrontDoorCertificateType, + EnforceCertificateNameCheckEnabledState, FrontDoorEnabledState, FrontDoorProtocol, + RoutingRuleEnabledState, FrontDoorForwardingProtocol, FrontDoorQuery, DynamicCompressionEnabled, + FrontDoorRedirectType, + FrontDoorRedirectProtocol, + BackendEnabledState, SessionAffinityEnabledState, ResourceType, Availability, @@ -140,11 +153,15 @@ 'KeyVaultCertificateSourceParametersVault', 'CustomHttpsConfiguration', 'FrontendEndpoint', + 'BackendPoolsSettings', 'FrontDoorUpdateParameters', 'PurgeParameters', 'SubResource', - 'CacheConfiguration', + 'RouteConfiguration', 'RoutingRuleUpdateParameters', + 'CacheConfiguration', + 'ForwardingConfiguration', + 'RedirectConfiguration', 'Backend', 'LoadBalancingSettingsUpdateParameters', 'HealthProbeSettingsUpdateParameters', @@ -188,11 +205,16 @@ 'FrontDoorCertificateSource', 'FrontDoorTlsProtocolType', 'FrontDoorCertificateType', + 'EnforceCertificateNameCheckEnabledState', 'FrontDoorEnabledState', 'FrontDoorProtocol', + 'RoutingRuleEnabledState', 'FrontDoorForwardingProtocol', 'FrontDoorQuery', 'DynamicCompressionEnabled', + 'FrontDoorRedirectType', + 'FrontDoorRedirectProtocol', + 'BackendEnabledState', 'SessionAffinityEnabledState', 'ResourceType', 'Availability', diff --git a/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/backend.py b/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/backend.py index d15a56194c1a..e2c358de7522 100644 --- a/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/backend.py +++ b/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/backend.py @@ -25,7 +25,7 @@ class Backend(Model): values are 'Enabled' or 'Disabled'. Possible values include: 'Enabled', 'Disabled' :type enabled_state: str or - ~azure.mgmt.frontdoor.models.FrontDoorEnabledState + ~azure.mgmt.frontdoor.models.BackendEnabledState :param priority: Priority to use for load balancing. Higher priorities will not be used for load balancing if any lower priority backend is healthy. diff --git a/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/backend_pools_settings.py b/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/backend_pools_settings.py new file mode 100644 index 000000000000..a0ceb9de5d81 --- /dev/null +++ b/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/backend_pools_settings.py @@ -0,0 +1,32 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class BackendPoolsSettings(Model): + """Settings that apply to all backend pools. + + :param enforce_certificate_name_check: 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" . + :type enforce_certificate_name_check: str or + ~azure.mgmt.frontdoor.models.EnforceCertificateNameCheckEnabledState + """ + + _attribute_map = { + 'enforce_certificate_name_check': {'key': 'enforceCertificateNameCheck', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(BackendPoolsSettings, self).__init__(**kwargs) + self.enforce_certificate_name_check = kwargs.get('enforce_certificate_name_check', "Enabled") diff --git a/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/backend_pools_settings_py3.py b/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/backend_pools_settings_py3.py new file mode 100644 index 000000000000..e903bbc62ef5 --- /dev/null +++ b/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/backend_pools_settings_py3.py @@ -0,0 +1,32 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class BackendPoolsSettings(Model): + """Settings that apply to all backend pools. + + :param enforce_certificate_name_check: 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" . + :type enforce_certificate_name_check: str or + ~azure.mgmt.frontdoor.models.EnforceCertificateNameCheckEnabledState + """ + + _attribute_map = { + 'enforce_certificate_name_check': {'key': 'enforceCertificateNameCheck', 'type': 'str'}, + } + + def __init__(self, *, enforce_certificate_name_check="Enabled", **kwargs) -> None: + super(BackendPoolsSettings, self).__init__(**kwargs) + self.enforce_certificate_name_check = enforce_certificate_name_check diff --git a/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/backend_py3.py b/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/backend_py3.py index eb7427630145..d80e1897d310 100644 --- a/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/backend_py3.py +++ b/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/backend_py3.py @@ -25,7 +25,7 @@ class Backend(Model): values are 'Enabled' or 'Disabled'. Possible values include: 'Enabled', 'Disabled' :type enabled_state: str or - ~azure.mgmt.frontdoor.models.FrontDoorEnabledState + ~azure.mgmt.frontdoor.models.BackendEnabledState :param priority: Priority to use for load balancing. Higher priorities will not be used for load balancing if any lower priority backend is healthy. diff --git a/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/forwarding_configuration.py b/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/forwarding_configuration.py new file mode 100644 index 000000000000..435f7087385f --- /dev/null +++ b/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/forwarding_configuration.py @@ -0,0 +1,56 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .route_configuration import RouteConfiguration + + +class ForwardingConfiguration(RouteConfiguration): + """Describes Forwarding Route. + + All required parameters must be populated in order to send to Azure. + + :param odatatype: Required. Constant filled by server. + :type odatatype: str + :param custom_forwarding_path: A custom path used to rewrite resource + paths matched by this rule. Leave empty to use incoming path. + :type custom_forwarding_path: str + :param forwarding_protocol: Protocol this rule will use when forwarding + traffic to backends. Possible values include: 'HttpOnly', 'HttpsOnly', + 'MatchRequest' + :type forwarding_protocol: str or + ~azure.mgmt.frontdoor.models.FrontDoorForwardingProtocol + :param cache_configuration: The caching configuration associated with this + rule. + :type cache_configuration: ~azure.mgmt.frontdoor.models.CacheConfiguration + :param backend_pool: A reference to the BackendPool which this rule routes + to. + :type backend_pool: ~azure.mgmt.frontdoor.models.SubResource + """ + + _validation = { + 'odatatype': {'required': True}, + } + + _attribute_map = { + 'odatatype': {'key': '@odata\\.type', 'type': 'str'}, + 'custom_forwarding_path': {'key': 'customForwardingPath', 'type': 'str'}, + 'forwarding_protocol': {'key': 'forwardingProtocol', 'type': 'str'}, + 'cache_configuration': {'key': 'cacheConfiguration', 'type': 'CacheConfiguration'}, + 'backend_pool': {'key': 'backendPool', 'type': 'SubResource'}, + } + + def __init__(self, **kwargs): + super(ForwardingConfiguration, self).__init__(**kwargs) + self.custom_forwarding_path = kwargs.get('custom_forwarding_path', None) + self.forwarding_protocol = kwargs.get('forwarding_protocol', None) + self.cache_configuration = kwargs.get('cache_configuration', None) + self.backend_pool = kwargs.get('backend_pool', None) + self.odatatype = '#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration' diff --git a/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/forwarding_configuration_py3.py b/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/forwarding_configuration_py3.py new file mode 100644 index 000000000000..cd8562336477 --- /dev/null +++ b/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/forwarding_configuration_py3.py @@ -0,0 +1,56 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .route_configuration_py3 import RouteConfiguration + + +class ForwardingConfiguration(RouteConfiguration): + """Describes Forwarding Route. + + All required parameters must be populated in order to send to Azure. + + :param odatatype: Required. Constant filled by server. + :type odatatype: str + :param custom_forwarding_path: A custom path used to rewrite resource + paths matched by this rule. Leave empty to use incoming path. + :type custom_forwarding_path: str + :param forwarding_protocol: Protocol this rule will use when forwarding + traffic to backends. Possible values include: 'HttpOnly', 'HttpsOnly', + 'MatchRequest' + :type forwarding_protocol: str or + ~azure.mgmt.frontdoor.models.FrontDoorForwardingProtocol + :param cache_configuration: The caching configuration associated with this + rule. + :type cache_configuration: ~azure.mgmt.frontdoor.models.CacheConfiguration + :param backend_pool: A reference to the BackendPool which this rule routes + to. + :type backend_pool: ~azure.mgmt.frontdoor.models.SubResource + """ + + _validation = { + 'odatatype': {'required': True}, + } + + _attribute_map = { + 'odatatype': {'key': '@odata\\.type', 'type': 'str'}, + 'custom_forwarding_path': {'key': 'customForwardingPath', 'type': 'str'}, + 'forwarding_protocol': {'key': 'forwardingProtocol', 'type': 'str'}, + 'cache_configuration': {'key': 'cacheConfiguration', 'type': 'CacheConfiguration'}, + 'backend_pool': {'key': 'backendPool', 'type': 'SubResource'}, + } + + def __init__(self, *, custom_forwarding_path: str=None, forwarding_protocol=None, cache_configuration=None, backend_pool=None, **kwargs) -> None: + super(ForwardingConfiguration, self).__init__(**kwargs) + self.custom_forwarding_path = custom_forwarding_path + self.forwarding_protocol = forwarding_protocol + self.cache_configuration = cache_configuration + self.backend_pool = backend_pool + self.odatatype = '#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration' diff --git a/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/front_door.py b/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/front_door.py index 2893d3972dd0..513f01aea833 100644 --- a/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/front_door.py +++ b/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/front_door.py @@ -46,6 +46,9 @@ class FrontDoor(Resource): :param frontend_endpoints: Frontend endpoints available to routing rules. :type frontend_endpoints: list[~azure.mgmt.frontdoor.models.FrontendEndpoint] + :param backend_pools_settings: Settings for all backendPools + :type backend_pools_settings: + ~azure.mgmt.frontdoor.models.BackendPoolsSettings :param enabled_state: Operational status of the Front Door load balancer. Permitted values are 'Enabled' or 'Disabled'. Possible values include: 'Enabled', 'Disabled' @@ -82,6 +85,7 @@ class FrontDoor(Resource): 'health_probe_settings': {'key': 'properties.healthProbeSettings', 'type': '[HealthProbeSettingsModel]'}, 'backend_pools': {'key': 'properties.backendPools', 'type': '[BackendPool]'}, 'frontend_endpoints': {'key': 'properties.frontendEndpoints', 'type': '[FrontendEndpoint]'}, + 'backend_pools_settings': {'key': 'properties.backendPoolsSettings', 'type': 'BackendPoolsSettings'}, 'enabled_state': {'key': 'properties.enabledState', 'type': 'str'}, 'resource_state': {'key': 'properties.resourceState', 'type': 'str'}, 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, @@ -96,6 +100,7 @@ def __init__(self, **kwargs): self.health_probe_settings = kwargs.get('health_probe_settings', None) self.backend_pools = kwargs.get('backend_pools', None) self.frontend_endpoints = kwargs.get('frontend_endpoints', None) + self.backend_pools_settings = kwargs.get('backend_pools_settings', None) self.enabled_state = kwargs.get('enabled_state', None) self.resource_state = kwargs.get('resource_state', None) self.provisioning_state = None diff --git a/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/front_door_management_client_enums.py b/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/front_door_management_client_enums.py index c5022ea99196..04dbf18ac020 100644 --- a/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/front_door_management_client_enums.py +++ b/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/front_door_management_client_enums.py @@ -61,6 +61,12 @@ class FrontDoorCertificateType(str, Enum): dedicated = "Dedicated" +class EnforceCertificateNameCheckEnabledState(str, Enum): + + enabled = "Enabled" + disabled = "Disabled" + + class FrontDoorEnabledState(str, Enum): enabled = "Enabled" @@ -73,6 +79,12 @@ class FrontDoorProtocol(str, Enum): https = "Https" +class RoutingRuleEnabledState(str, Enum): + + enabled = "Enabled" + disabled = "Disabled" + + class FrontDoorForwardingProtocol(str, Enum): http_only = "HttpOnly" @@ -92,6 +104,27 @@ class DynamicCompressionEnabled(str, Enum): disabled = "Disabled" +class FrontDoorRedirectType(str, Enum): + + moved = "Moved" + found = "Found" + temporary_redirect = "TemporaryRedirect" + permanent_redirect = "PermanentRedirect" + + +class FrontDoorRedirectProtocol(str, Enum): + + http_only = "HttpOnly" + https_only = "HttpsOnly" + match_request = "MatchRequest" + + +class BackendEnabledState(str, Enum): + + enabled = "Enabled" + disabled = "Disabled" + + class SessionAffinityEnabledState(str, Enum): enabled = "Enabled" diff --git a/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/front_door_py3.py b/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/front_door_py3.py index 1af837e68018..1fbac8455212 100644 --- a/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/front_door_py3.py +++ b/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/front_door_py3.py @@ -46,6 +46,9 @@ class FrontDoor(Resource): :param frontend_endpoints: Frontend endpoints available to routing rules. :type frontend_endpoints: list[~azure.mgmt.frontdoor.models.FrontendEndpoint] + :param backend_pools_settings: Settings for all backendPools + :type backend_pools_settings: + ~azure.mgmt.frontdoor.models.BackendPoolsSettings :param enabled_state: Operational status of the Front Door load balancer. Permitted values are 'Enabled' or 'Disabled'. Possible values include: 'Enabled', 'Disabled' @@ -82,13 +85,14 @@ class FrontDoor(Resource): 'health_probe_settings': {'key': 'properties.healthProbeSettings', 'type': '[HealthProbeSettingsModel]'}, 'backend_pools': {'key': 'properties.backendPools', 'type': '[BackendPool]'}, 'frontend_endpoints': {'key': 'properties.frontendEndpoints', 'type': '[FrontendEndpoint]'}, + 'backend_pools_settings': {'key': 'properties.backendPoolsSettings', 'type': 'BackendPoolsSettings'}, 'enabled_state': {'key': 'properties.enabledState', 'type': 'str'}, 'resource_state': {'key': 'properties.resourceState', 'type': 'str'}, 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, 'cname': {'key': 'properties.cname', 'type': 'str'}, } - def __init__(self, *, location: str=None, tags=None, friendly_name: str=None, routing_rules=None, load_balancing_settings=None, health_probe_settings=None, backend_pools=None, frontend_endpoints=None, enabled_state=None, resource_state=None, **kwargs) -> None: + def __init__(self, *, location: str=None, tags=None, friendly_name: str=None, routing_rules=None, load_balancing_settings=None, health_probe_settings=None, backend_pools=None, frontend_endpoints=None, backend_pools_settings=None, enabled_state=None, resource_state=None, **kwargs) -> None: super(FrontDoor, self).__init__(location=location, tags=tags, **kwargs) self.friendly_name = friendly_name self.routing_rules = routing_rules @@ -96,6 +100,7 @@ def __init__(self, *, location: str=None, tags=None, friendly_name: str=None, ro self.health_probe_settings = health_probe_settings self.backend_pools = backend_pools self.frontend_endpoints = frontend_endpoints + self.backend_pools_settings = backend_pools_settings self.enabled_state = enabled_state self.resource_state = resource_state self.provisioning_state = None diff --git a/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/front_door_update_parameters.py b/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/front_door_update_parameters.py index 9411f5c42c12..f5e1816bd91c 100644 --- a/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/front_door_update_parameters.py +++ b/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/front_door_update_parameters.py @@ -32,6 +32,9 @@ class FrontDoorUpdateParameters(Model): :param frontend_endpoints: Frontend endpoints available to routing rules. :type frontend_endpoints: list[~azure.mgmt.frontdoor.models.FrontendEndpoint] + :param backend_pools_settings: Settings for all backendPools + :type backend_pools_settings: + ~azure.mgmt.frontdoor.models.BackendPoolsSettings :param enabled_state: Operational status of the Front Door load balancer. Permitted values are 'Enabled' or 'Disabled'. Possible values include: 'Enabled', 'Disabled' @@ -46,6 +49,7 @@ class FrontDoorUpdateParameters(Model): 'health_probe_settings': {'key': 'healthProbeSettings', 'type': '[HealthProbeSettingsModel]'}, 'backend_pools': {'key': 'backendPools', 'type': '[BackendPool]'}, 'frontend_endpoints': {'key': 'frontendEndpoints', 'type': '[FrontendEndpoint]'}, + 'backend_pools_settings': {'key': 'backendPoolsSettings', 'type': 'BackendPoolsSettings'}, 'enabled_state': {'key': 'enabledState', 'type': 'str'}, } @@ -57,4 +61,5 @@ def __init__(self, **kwargs): self.health_probe_settings = kwargs.get('health_probe_settings', None) self.backend_pools = kwargs.get('backend_pools', None) self.frontend_endpoints = kwargs.get('frontend_endpoints', None) + self.backend_pools_settings = kwargs.get('backend_pools_settings', None) self.enabled_state = kwargs.get('enabled_state', None) diff --git a/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/front_door_update_parameters_py3.py b/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/front_door_update_parameters_py3.py index 127259641e8c..09b6cded262b 100644 --- a/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/front_door_update_parameters_py3.py +++ b/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/front_door_update_parameters_py3.py @@ -32,6 +32,9 @@ class FrontDoorUpdateParameters(Model): :param frontend_endpoints: Frontend endpoints available to routing rules. :type frontend_endpoints: list[~azure.mgmt.frontdoor.models.FrontendEndpoint] + :param backend_pools_settings: Settings for all backendPools + :type backend_pools_settings: + ~azure.mgmt.frontdoor.models.BackendPoolsSettings :param enabled_state: Operational status of the Front Door load balancer. Permitted values are 'Enabled' or 'Disabled'. Possible values include: 'Enabled', 'Disabled' @@ -46,10 +49,11 @@ class FrontDoorUpdateParameters(Model): 'health_probe_settings': {'key': 'healthProbeSettings', 'type': '[HealthProbeSettingsModel]'}, 'backend_pools': {'key': 'backendPools', 'type': '[BackendPool]'}, 'frontend_endpoints': {'key': 'frontendEndpoints', 'type': '[FrontendEndpoint]'}, + 'backend_pools_settings': {'key': 'backendPoolsSettings', 'type': 'BackendPoolsSettings'}, 'enabled_state': {'key': 'enabledState', 'type': 'str'}, } - def __init__(self, *, friendly_name: str=None, routing_rules=None, load_balancing_settings=None, health_probe_settings=None, backend_pools=None, frontend_endpoints=None, enabled_state=None, **kwargs) -> None: + def __init__(self, *, friendly_name: str=None, routing_rules=None, load_balancing_settings=None, health_probe_settings=None, backend_pools=None, frontend_endpoints=None, backend_pools_settings=None, enabled_state=None, **kwargs) -> None: super(FrontDoorUpdateParameters, self).__init__(**kwargs) self.friendly_name = friendly_name self.routing_rules = routing_rules @@ -57,4 +61,5 @@ def __init__(self, *, friendly_name: str=None, routing_rules=None, load_balancin self.health_probe_settings = health_probe_settings self.backend_pools = backend_pools self.frontend_endpoints = frontend_endpoints + self.backend_pools_settings = backend_pools_settings self.enabled_state = enabled_state diff --git a/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/redirect_configuration.py b/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/redirect_configuration.py new file mode 100644 index 000000000000..06bc5e5902df --- /dev/null +++ b/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/redirect_configuration.py @@ -0,0 +1,73 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .route_configuration import RouteConfiguration + + +class RedirectConfiguration(RouteConfiguration): + """Describes Redirect Route. + + All required parameters must be populated in order to send to Azure. + + :param odatatype: Required. Constant filled by server. + :type odatatype: str + :param redirect_type: The redirect type the rule will use when redirecting + traffic. Possible values include: 'Moved', 'Found', 'TemporaryRedirect', + 'PermanentRedirect' + :type redirect_type: str or + ~azure.mgmt.frontdoor.models.FrontDoorRedirectType + :param redirect_protocol: The protocol of the destination to where the + traffic is redirected. Possible values include: 'HttpOnly', 'HttpsOnly', + 'MatchRequest' + :type redirect_protocol: str or + ~azure.mgmt.frontdoor.models.FrontDoorRedirectProtocol + :param custom_host: Host to redirect. Leave empty to use use the incoming + host as the destination host. + :type custom_host: str + :param custom_path: The full path to redirect. Path cannot be empty and + must start with /. Leave empty to use the incoming path as destination + path. + :type custom_path: str + :param custom_fragment: Fragment to add to the redirect URL. Fragment is + the part of the URL that comes after #. Do not include the #. + :type custom_fragment: str + :param custom_query_string: 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 + &. + :type custom_query_string: str + """ + + _validation = { + 'odatatype': {'required': True}, + } + + _attribute_map = { + 'odatatype': {'key': '@odata\\.type', 'type': 'str'}, + 'redirect_type': {'key': 'redirectType', 'type': 'str'}, + 'redirect_protocol': {'key': 'redirectProtocol', 'type': 'str'}, + 'custom_host': {'key': 'customHost', 'type': 'str'}, + 'custom_path': {'key': 'customPath', 'type': 'str'}, + 'custom_fragment': {'key': 'customFragment', 'type': 'str'}, + 'custom_query_string': {'key': 'customQueryString', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(RedirectConfiguration, self).__init__(**kwargs) + self.redirect_type = kwargs.get('redirect_type', None) + self.redirect_protocol = kwargs.get('redirect_protocol', None) + self.custom_host = kwargs.get('custom_host', None) + self.custom_path = kwargs.get('custom_path', None) + self.custom_fragment = kwargs.get('custom_fragment', None) + self.custom_query_string = kwargs.get('custom_query_string', None) + self.odatatype = '#Microsoft.Azure.FrontDoor.Models.FrontdoorRedirectConfiguration' diff --git a/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/redirect_configuration_py3.py b/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/redirect_configuration_py3.py new file mode 100644 index 000000000000..ad48fb1d4e2a --- /dev/null +++ b/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/redirect_configuration_py3.py @@ -0,0 +1,73 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .route_configuration_py3 import RouteConfiguration + + +class RedirectConfiguration(RouteConfiguration): + """Describes Redirect Route. + + All required parameters must be populated in order to send to Azure. + + :param odatatype: Required. Constant filled by server. + :type odatatype: str + :param redirect_type: The redirect type the rule will use when redirecting + traffic. Possible values include: 'Moved', 'Found', 'TemporaryRedirect', + 'PermanentRedirect' + :type redirect_type: str or + ~azure.mgmt.frontdoor.models.FrontDoorRedirectType + :param redirect_protocol: The protocol of the destination to where the + traffic is redirected. Possible values include: 'HttpOnly', 'HttpsOnly', + 'MatchRequest' + :type redirect_protocol: str or + ~azure.mgmt.frontdoor.models.FrontDoorRedirectProtocol + :param custom_host: Host to redirect. Leave empty to use use the incoming + host as the destination host. + :type custom_host: str + :param custom_path: The full path to redirect. Path cannot be empty and + must start with /. Leave empty to use the incoming path as destination + path. + :type custom_path: str + :param custom_fragment: Fragment to add to the redirect URL. Fragment is + the part of the URL that comes after #. Do not include the #. + :type custom_fragment: str + :param custom_query_string: 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 + &. + :type custom_query_string: str + """ + + _validation = { + 'odatatype': {'required': True}, + } + + _attribute_map = { + 'odatatype': {'key': '@odata\\.type', 'type': 'str'}, + 'redirect_type': {'key': 'redirectType', 'type': 'str'}, + 'redirect_protocol': {'key': 'redirectProtocol', 'type': 'str'}, + 'custom_host': {'key': 'customHost', 'type': 'str'}, + 'custom_path': {'key': 'customPath', 'type': 'str'}, + 'custom_fragment': {'key': 'customFragment', 'type': 'str'}, + 'custom_query_string': {'key': 'customQueryString', 'type': 'str'}, + } + + def __init__(self, *, redirect_type=None, redirect_protocol=None, custom_host: str=None, custom_path: str=None, custom_fragment: str=None, custom_query_string: str=None, **kwargs) -> None: + super(RedirectConfiguration, self).__init__(**kwargs) + self.redirect_type = redirect_type + self.redirect_protocol = redirect_protocol + self.custom_host = custom_host + self.custom_path = custom_path + self.custom_fragment = custom_fragment + self.custom_query_string = custom_query_string + self.odatatype = '#Microsoft.Azure.FrontDoor.Models.FrontdoorRedirectConfiguration' diff --git a/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/route_configuration.py b/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/route_configuration.py new file mode 100644 index 000000000000..c3f93b30b83f --- /dev/null +++ b/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/route_configuration.py @@ -0,0 +1,41 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class RouteConfiguration(Model): + """Base class for all types of Route. + + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: ForwardingConfiguration, RedirectConfiguration + + All required parameters must be populated in order to send to Azure. + + :param odatatype: Required. Constant filled by server. + :type odatatype: str + """ + + _validation = { + 'odatatype': {'required': True}, + } + + _attribute_map = { + 'odatatype': {'key': '@odata\\.type', 'type': 'str'}, + } + + _subtype_map = { + 'odatatype': {'#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration': 'ForwardingConfiguration', '#Microsoft.Azure.FrontDoor.Models.FrontdoorRedirectConfiguration': 'RedirectConfiguration'} + } + + def __init__(self, **kwargs): + super(RouteConfiguration, self).__init__(**kwargs) + self.odatatype = None diff --git a/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/route_configuration_py3.py b/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/route_configuration_py3.py new file mode 100644 index 000000000000..19badfcf9ad0 --- /dev/null +++ b/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/route_configuration_py3.py @@ -0,0 +1,41 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class RouteConfiguration(Model): + """Base class for all types of Route. + + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: ForwardingConfiguration, RedirectConfiguration + + All required parameters must be populated in order to send to Azure. + + :param odatatype: Required. Constant filled by server. + :type odatatype: str + """ + + _validation = { + 'odatatype': {'required': True}, + } + + _attribute_map = { + 'odatatype': {'key': '@odata\\.type', 'type': 'str'}, + } + + _subtype_map = { + 'odatatype': {'#Microsoft.Azure.FrontDoor.Models.FrontdoorForwardingConfiguration': 'ForwardingConfiguration', '#Microsoft.Azure.FrontDoor.Models.FrontdoorRedirectConfiguration': 'RedirectConfiguration'} + } + + def __init__(self, **kwargs) -> None: + super(RouteConfiguration, self).__init__(**kwargs) + self.odatatype = None diff --git a/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/routing_rule.py b/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/routing_rule.py index 90e6d8aa71fd..e5302a8a886b 100644 --- a/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/routing_rule.py +++ b/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/routing_rule.py @@ -28,25 +28,13 @@ class RoutingRule(SubResource): ~azure.mgmt.frontdoor.models.FrontDoorProtocol] :param patterns_to_match: The route patterns of the rule. :type patterns_to_match: list[str] - :param custom_forwarding_path: A custom path used to rewrite resource - paths matched by this rule. Leave empty to use incoming path. - :type custom_forwarding_path: str - :param forwarding_protocol: Protocol this rule will use when forwarding - traffic to backends. Possible values include: 'HttpOnly', 'HttpsOnly', - 'MatchRequest' - :type forwarding_protocol: str or - ~azure.mgmt.frontdoor.models.FrontDoorForwardingProtocol - :param cache_configuration: The caching configuration associated with this - rule. - :type cache_configuration: ~azure.mgmt.frontdoor.models.CacheConfiguration - :param backend_pool: A reference to the BackendPool which this rule routes - to. - :type backend_pool: ~azure.mgmt.frontdoor.models.SubResource :param enabled_state: Whether to enable use of this rule. Permitted values are 'Enabled' or 'Disabled'. Possible values include: 'Enabled', 'Disabled' :type enabled_state: str or - ~azure.mgmt.frontdoor.models.FrontDoorEnabledState + ~azure.mgmt.frontdoor.models.RoutingRuleEnabledState + :param route_configuration: A reference to the routing configuration. + :type route_configuration: ~azure.mgmt.frontdoor.models.RouteConfiguration :param resource_state: Resource status. Possible values include: 'Creating', 'Enabling', 'Enabled', 'Disabling', 'Disabled', 'Deleting' :type resource_state: str or @@ -66,11 +54,8 @@ class RoutingRule(SubResource): 'frontend_endpoints': {'key': 'properties.frontendEndpoints', 'type': '[SubResource]'}, 'accepted_protocols': {'key': 'properties.acceptedProtocols', 'type': '[str]'}, 'patterns_to_match': {'key': 'properties.patternsToMatch', 'type': '[str]'}, - 'custom_forwarding_path': {'key': 'properties.customForwardingPath', 'type': 'str'}, - 'forwarding_protocol': {'key': 'properties.forwardingProtocol', 'type': 'str'}, - 'cache_configuration': {'key': 'properties.cacheConfiguration', 'type': 'CacheConfiguration'}, - 'backend_pool': {'key': 'properties.backendPool', 'type': 'SubResource'}, 'enabled_state': {'key': 'properties.enabledState', 'type': 'str'}, + 'route_configuration': {'key': 'properties.routeConfiguration', 'type': 'RouteConfiguration'}, 'resource_state': {'key': 'properties.resourceState', 'type': 'str'}, 'name': {'key': 'name', 'type': 'str'}, 'type': {'key': 'type', 'type': 'str'}, @@ -81,11 +66,8 @@ def __init__(self, **kwargs): self.frontend_endpoints = kwargs.get('frontend_endpoints', None) self.accepted_protocols = kwargs.get('accepted_protocols', None) self.patterns_to_match = kwargs.get('patterns_to_match', None) - self.custom_forwarding_path = kwargs.get('custom_forwarding_path', None) - self.forwarding_protocol = kwargs.get('forwarding_protocol', None) - self.cache_configuration = kwargs.get('cache_configuration', None) - self.backend_pool = kwargs.get('backend_pool', None) self.enabled_state = kwargs.get('enabled_state', None) + self.route_configuration = kwargs.get('route_configuration', None) self.resource_state = kwargs.get('resource_state', None) self.name = kwargs.get('name', None) self.type = None diff --git a/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/routing_rule_py3.py b/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/routing_rule_py3.py index 75ab2b98b1ce..e104ced5e0ad 100644 --- a/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/routing_rule_py3.py +++ b/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/routing_rule_py3.py @@ -28,25 +28,13 @@ class RoutingRule(SubResource): ~azure.mgmt.frontdoor.models.FrontDoorProtocol] :param patterns_to_match: The route patterns of the rule. :type patterns_to_match: list[str] - :param custom_forwarding_path: A custom path used to rewrite resource - paths matched by this rule. Leave empty to use incoming path. - :type custom_forwarding_path: str - :param forwarding_protocol: Protocol this rule will use when forwarding - traffic to backends. Possible values include: 'HttpOnly', 'HttpsOnly', - 'MatchRequest' - :type forwarding_protocol: str or - ~azure.mgmt.frontdoor.models.FrontDoorForwardingProtocol - :param cache_configuration: The caching configuration associated with this - rule. - :type cache_configuration: ~azure.mgmt.frontdoor.models.CacheConfiguration - :param backend_pool: A reference to the BackendPool which this rule routes - to. - :type backend_pool: ~azure.mgmt.frontdoor.models.SubResource :param enabled_state: Whether to enable use of this rule. Permitted values are 'Enabled' or 'Disabled'. Possible values include: 'Enabled', 'Disabled' :type enabled_state: str or - ~azure.mgmt.frontdoor.models.FrontDoorEnabledState + ~azure.mgmt.frontdoor.models.RoutingRuleEnabledState + :param route_configuration: A reference to the routing configuration. + :type route_configuration: ~azure.mgmt.frontdoor.models.RouteConfiguration :param resource_state: Resource status. Possible values include: 'Creating', 'Enabling', 'Enabled', 'Disabling', 'Disabled', 'Deleting' :type resource_state: str or @@ -66,26 +54,20 @@ class RoutingRule(SubResource): 'frontend_endpoints': {'key': 'properties.frontendEndpoints', 'type': '[SubResource]'}, 'accepted_protocols': {'key': 'properties.acceptedProtocols', 'type': '[str]'}, 'patterns_to_match': {'key': 'properties.patternsToMatch', 'type': '[str]'}, - 'custom_forwarding_path': {'key': 'properties.customForwardingPath', 'type': 'str'}, - 'forwarding_protocol': {'key': 'properties.forwardingProtocol', 'type': 'str'}, - 'cache_configuration': {'key': 'properties.cacheConfiguration', 'type': 'CacheConfiguration'}, - 'backend_pool': {'key': 'properties.backendPool', 'type': 'SubResource'}, 'enabled_state': {'key': 'properties.enabledState', 'type': 'str'}, + 'route_configuration': {'key': 'properties.routeConfiguration', 'type': 'RouteConfiguration'}, 'resource_state': {'key': 'properties.resourceState', 'type': 'str'}, 'name': {'key': 'name', 'type': 'str'}, 'type': {'key': 'type', 'type': 'str'}, } - def __init__(self, *, id: str=None, frontend_endpoints=None, accepted_protocols=None, patterns_to_match=None, custom_forwarding_path: str=None, forwarding_protocol=None, cache_configuration=None, backend_pool=None, enabled_state=None, resource_state=None, name: str=None, **kwargs) -> None: + def __init__(self, *, id: str=None, frontend_endpoints=None, accepted_protocols=None, patterns_to_match=None, enabled_state=None, route_configuration=None, resource_state=None, name: str=None, **kwargs) -> None: super(RoutingRule, self).__init__(id=id, **kwargs) self.frontend_endpoints = frontend_endpoints self.accepted_protocols = accepted_protocols self.patterns_to_match = patterns_to_match - self.custom_forwarding_path = custom_forwarding_path - self.forwarding_protocol = forwarding_protocol - self.cache_configuration = cache_configuration - self.backend_pool = backend_pool self.enabled_state = enabled_state + self.route_configuration = route_configuration self.resource_state = resource_state self.name = name self.type = None diff --git a/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/routing_rule_update_parameters.py b/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/routing_rule_update_parameters.py index 53a05bba5023..5d06877b4647 100644 --- a/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/routing_rule_update_parameters.py +++ b/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/routing_rule_update_parameters.py @@ -22,36 +22,21 @@ class RoutingRuleUpdateParameters(Model): ~azure.mgmt.frontdoor.models.FrontDoorProtocol] :param patterns_to_match: The route patterns of the rule. :type patterns_to_match: list[str] - :param custom_forwarding_path: A custom path used to rewrite resource - paths matched by this rule. Leave empty to use incoming path. - :type custom_forwarding_path: str - :param forwarding_protocol: Protocol this rule will use when forwarding - traffic to backends. Possible values include: 'HttpOnly', 'HttpsOnly', - 'MatchRequest' - :type forwarding_protocol: str or - ~azure.mgmt.frontdoor.models.FrontDoorForwardingProtocol - :param cache_configuration: The caching configuration associated with this - rule. - :type cache_configuration: ~azure.mgmt.frontdoor.models.CacheConfiguration - :param backend_pool: A reference to the BackendPool which this rule routes - to. - :type backend_pool: ~azure.mgmt.frontdoor.models.SubResource :param enabled_state: Whether to enable use of this rule. Permitted values are 'Enabled' or 'Disabled'. Possible values include: 'Enabled', 'Disabled' :type enabled_state: str or - ~azure.mgmt.frontdoor.models.FrontDoorEnabledState + ~azure.mgmt.frontdoor.models.RoutingRuleEnabledState + :param route_configuration: A reference to the routing configuration. + :type route_configuration: ~azure.mgmt.frontdoor.models.RouteConfiguration """ _attribute_map = { 'frontend_endpoints': {'key': 'frontendEndpoints', 'type': '[SubResource]'}, 'accepted_protocols': {'key': 'acceptedProtocols', 'type': '[str]'}, 'patterns_to_match': {'key': 'patternsToMatch', 'type': '[str]'}, - 'custom_forwarding_path': {'key': 'customForwardingPath', 'type': 'str'}, - 'forwarding_protocol': {'key': 'forwardingProtocol', 'type': 'str'}, - 'cache_configuration': {'key': 'cacheConfiguration', 'type': 'CacheConfiguration'}, - 'backend_pool': {'key': 'backendPool', 'type': 'SubResource'}, 'enabled_state': {'key': 'enabledState', 'type': 'str'}, + 'route_configuration': {'key': 'routeConfiguration', 'type': 'RouteConfiguration'}, } def __init__(self, **kwargs): @@ -59,8 +44,5 @@ def __init__(self, **kwargs): self.frontend_endpoints = kwargs.get('frontend_endpoints', None) self.accepted_protocols = kwargs.get('accepted_protocols', None) self.patterns_to_match = kwargs.get('patterns_to_match', None) - self.custom_forwarding_path = kwargs.get('custom_forwarding_path', None) - self.forwarding_protocol = kwargs.get('forwarding_protocol', None) - self.cache_configuration = kwargs.get('cache_configuration', None) - self.backend_pool = kwargs.get('backend_pool', None) self.enabled_state = kwargs.get('enabled_state', None) + self.route_configuration = kwargs.get('route_configuration', None) diff --git a/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/routing_rule_update_parameters_py3.py b/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/routing_rule_update_parameters_py3.py index 473dfd8888c9..098f7552659f 100644 --- a/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/routing_rule_update_parameters_py3.py +++ b/azure-mgmt-frontdoor/azure/mgmt/frontdoor/models/routing_rule_update_parameters_py3.py @@ -22,45 +22,27 @@ class RoutingRuleUpdateParameters(Model): ~azure.mgmt.frontdoor.models.FrontDoorProtocol] :param patterns_to_match: The route patterns of the rule. :type patterns_to_match: list[str] - :param custom_forwarding_path: A custom path used to rewrite resource - paths matched by this rule. Leave empty to use incoming path. - :type custom_forwarding_path: str - :param forwarding_protocol: Protocol this rule will use when forwarding - traffic to backends. Possible values include: 'HttpOnly', 'HttpsOnly', - 'MatchRequest' - :type forwarding_protocol: str or - ~azure.mgmt.frontdoor.models.FrontDoorForwardingProtocol - :param cache_configuration: The caching configuration associated with this - rule. - :type cache_configuration: ~azure.mgmt.frontdoor.models.CacheConfiguration - :param backend_pool: A reference to the BackendPool which this rule routes - to. - :type backend_pool: ~azure.mgmt.frontdoor.models.SubResource :param enabled_state: Whether to enable use of this rule. Permitted values are 'Enabled' or 'Disabled'. Possible values include: 'Enabled', 'Disabled' :type enabled_state: str or - ~azure.mgmt.frontdoor.models.FrontDoorEnabledState + ~azure.mgmt.frontdoor.models.RoutingRuleEnabledState + :param route_configuration: A reference to the routing configuration. + :type route_configuration: ~azure.mgmt.frontdoor.models.RouteConfiguration """ _attribute_map = { 'frontend_endpoints': {'key': 'frontendEndpoints', 'type': '[SubResource]'}, 'accepted_protocols': {'key': 'acceptedProtocols', 'type': '[str]'}, 'patterns_to_match': {'key': 'patternsToMatch', 'type': '[str]'}, - 'custom_forwarding_path': {'key': 'customForwardingPath', 'type': 'str'}, - 'forwarding_protocol': {'key': 'forwardingProtocol', 'type': 'str'}, - 'cache_configuration': {'key': 'cacheConfiguration', 'type': 'CacheConfiguration'}, - 'backend_pool': {'key': 'backendPool', 'type': 'SubResource'}, 'enabled_state': {'key': 'enabledState', 'type': 'str'}, + 'route_configuration': {'key': 'routeConfiguration', 'type': 'RouteConfiguration'}, } - def __init__(self, *, frontend_endpoints=None, accepted_protocols=None, patterns_to_match=None, custom_forwarding_path: str=None, forwarding_protocol=None, cache_configuration=None, backend_pool=None, enabled_state=None, **kwargs) -> None: + def __init__(self, *, frontend_endpoints=None, accepted_protocols=None, patterns_to_match=None, enabled_state=None, route_configuration=None, **kwargs) -> None: super(RoutingRuleUpdateParameters, self).__init__(**kwargs) self.frontend_endpoints = frontend_endpoints self.accepted_protocols = accepted_protocols self.patterns_to_match = patterns_to_match - self.custom_forwarding_path = custom_forwarding_path - self.forwarding_protocol = forwarding_protocol - self.cache_configuration = cache_configuration - self.backend_pool = backend_pool self.enabled_state = enabled_state + self.route_configuration = route_configuration diff --git a/azure-mgmt-frontdoor/azure/mgmt/frontdoor/operations/backend_pools_operations.py b/azure-mgmt-frontdoor/azure/mgmt/frontdoor/operations/backend_pools_operations.py index e7ddae7b45fe..cfc046574d6b 100644 --- a/azure-mgmt-frontdoor/azure/mgmt/frontdoor/operations/backend_pools_operations.py +++ b/azure-mgmt-frontdoor/azure/mgmt/frontdoor/operations/backend_pools_operations.py @@ -24,7 +24,7 @@ class BackendPoolsOperations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: Client API version. Constant value: "2018-08-01". + :ivar api_version: Client API version. Constant value: "2019-04-01". """ models = models @@ -34,7 +34,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2018-08-01" + self.api_version = "2019-04-01" self.config = config diff --git a/azure-mgmt-frontdoor/azure/mgmt/frontdoor/operations/endpoints_operations.py b/azure-mgmt-frontdoor/azure/mgmt/frontdoor/operations/endpoints_operations.py index 16b6fe5722b8..593f746b72e0 100644 --- a/azure-mgmt-frontdoor/azure/mgmt/frontdoor/operations/endpoints_operations.py +++ b/azure-mgmt-frontdoor/azure/mgmt/frontdoor/operations/endpoints_operations.py @@ -24,7 +24,7 @@ class EndpointsOperations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: Client API version. Constant value: "2018-08-01". + :ivar api_version: Client API version. Constant value: "2019-04-01". """ models = models @@ -34,7 +34,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2018-08-01" + self.api_version = "2019-04-01" self.config = config diff --git a/azure-mgmt-frontdoor/azure/mgmt/frontdoor/operations/front_doors_operations.py b/azure-mgmt-frontdoor/azure/mgmt/frontdoor/operations/front_doors_operations.py index 0e7070406164..393d9721e861 100644 --- a/azure-mgmt-frontdoor/azure/mgmt/frontdoor/operations/front_doors_operations.py +++ b/azure-mgmt-frontdoor/azure/mgmt/frontdoor/operations/front_doors_operations.py @@ -24,7 +24,7 @@ class FrontDoorsOperations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: Client API version. Constant value: "2018-08-01". + :ivar api_version: Client API version. Constant value: "2019-04-01". """ models = models @@ -34,7 +34,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2018-08-01" + self.api_version = "2019-04-01" self.config = config diff --git a/azure-mgmt-frontdoor/azure/mgmt/frontdoor/operations/frontend_endpoints_operations.py b/azure-mgmt-frontdoor/azure/mgmt/frontdoor/operations/frontend_endpoints_operations.py index 0e82bdf28f54..8099aab4bcb1 100644 --- a/azure-mgmt-frontdoor/azure/mgmt/frontdoor/operations/frontend_endpoints_operations.py +++ b/azure-mgmt-frontdoor/azure/mgmt/frontdoor/operations/frontend_endpoints_operations.py @@ -24,7 +24,7 @@ class FrontendEndpointsOperations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: Client API version. Constant value: "2018-08-01". + :ivar api_version: Client API version. Constant value: "2019-04-01". """ models = models @@ -34,7 +34,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2018-08-01" + self.api_version = "2019-04-01" self.config = config diff --git a/azure-mgmt-frontdoor/azure/mgmt/frontdoor/operations/health_probe_settings_operations.py b/azure-mgmt-frontdoor/azure/mgmt/frontdoor/operations/health_probe_settings_operations.py index a8e0356a75cc..697c2cf0cb92 100644 --- a/azure-mgmt-frontdoor/azure/mgmt/frontdoor/operations/health_probe_settings_operations.py +++ b/azure-mgmt-frontdoor/azure/mgmt/frontdoor/operations/health_probe_settings_operations.py @@ -24,7 +24,7 @@ class HealthProbeSettingsOperations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: Client API version. Constant value: "2018-08-01". + :ivar api_version: Client API version. Constant value: "2019-04-01". """ models = models @@ -34,7 +34,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2018-08-01" + self.api_version = "2019-04-01" self.config = config diff --git a/azure-mgmt-frontdoor/azure/mgmt/frontdoor/operations/load_balancing_settings_operations.py b/azure-mgmt-frontdoor/azure/mgmt/frontdoor/operations/load_balancing_settings_operations.py index 6813d14f1ec9..7437f51958d1 100644 --- a/azure-mgmt-frontdoor/azure/mgmt/frontdoor/operations/load_balancing_settings_operations.py +++ b/azure-mgmt-frontdoor/azure/mgmt/frontdoor/operations/load_balancing_settings_operations.py @@ -24,7 +24,7 @@ class LoadBalancingSettingsOperations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: Client API version. Constant value: "2018-08-01". + :ivar api_version: Client API version. Constant value: "2019-04-01". """ models = models @@ -34,7 +34,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2018-08-01" + self.api_version = "2019-04-01" self.config = config diff --git a/azure-mgmt-frontdoor/azure/mgmt/frontdoor/operations/routing_rules_operations.py b/azure-mgmt-frontdoor/azure/mgmt/frontdoor/operations/routing_rules_operations.py index 568968537d1a..bf9129a43d97 100644 --- a/azure-mgmt-frontdoor/azure/mgmt/frontdoor/operations/routing_rules_operations.py +++ b/azure-mgmt-frontdoor/azure/mgmt/frontdoor/operations/routing_rules_operations.py @@ -24,7 +24,7 @@ class RoutingRulesOperations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: Client API version. Constant value: "2018-08-01". + :ivar api_version: Client API version. Constant value: "2019-04-01". """ models = models @@ -34,7 +34,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2018-08-01" + self.api_version = "2019-04-01" self.config = config