Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AutoPR frontdoor/resource-manager] [AFD WAF] Add exclusions to managed rule set configuration (2019-10-01) #7570

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,6 @@
from msrestazure.polling.arm_polling import ARMPolling
import uuid
from .operations.front_doors_operations import FrontDoorsOperations
from .operations.routing_rules_operations import RoutingRulesOperations
from .operations.health_probe_settings_operations import HealthProbeSettingsOperations
from .operations.load_balancing_settings_operations import LoadBalancingSettingsOperations
from .operations.backend_pools_operations import BackendPoolsOperations
from .operations.frontend_endpoints_operations import FrontendEndpointsOperations
from .operations.endpoints_operations import EndpointsOperations
from .operations.policies_operations import PoliciesOperations
Expand Down Expand Up @@ -72,14 +68,6 @@ class FrontDoorManagementClient(SDKClient):

:ivar front_doors: FrontDoors operations
:vartype front_doors: azure.mgmt.frontdoor.operations.FrontDoorsOperations
:ivar routing_rules: RoutingRules operations
:vartype routing_rules: azure.mgmt.frontdoor.operations.RoutingRulesOperations
:ivar health_probe_settings: HealthProbeSettings operations
:vartype health_probe_settings: azure.mgmt.frontdoor.operations.HealthProbeSettingsOperations
:ivar load_balancing_settings: LoadBalancingSettings operations
:vartype load_balancing_settings: azure.mgmt.frontdoor.operations.LoadBalancingSettingsOperations
:ivar backend_pools: BackendPools operations
:vartype backend_pools: azure.mgmt.frontdoor.operations.BackendPoolsOperations
:ivar frontend_endpoints: FrontendEndpoints operations
:vartype frontend_endpoints: azure.mgmt.frontdoor.operations.FrontendEndpointsOperations
:ivar endpoints: Endpoints operations
Expand Down Expand Up @@ -111,14 +99,6 @@ def __init__(

self.front_doors = FrontDoorsOperations(
self._client, self.config, self._serialize, self._deserialize)
self.routing_rules = RoutingRulesOperations(
self._client, self.config, self._serialize, self._deserialize)
self.health_probe_settings = HealthProbeSettingsOperations(
self._client, self.config, self._serialize, self._deserialize)
self.load_balancing_settings = LoadBalancingSettingsOperations(
self._client, self.config, self._serialize, self._deserialize)
self.backend_pools = BackendPoolsOperations(
self._client, self.config, self._serialize, self._deserialize)
self.frontend_endpoints = FrontendEndpointsOperations(
self._client, self.config, self._serialize, self._deserialize)
self.endpoints = EndpointsOperations(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,20 @@
from .backend_pools_settings_py3 import BackendPoolsSettings
from .front_door_update_parameters_py3 import FrontDoorUpdateParameters
from .purge_parameters_py3 import PurgeParameters
from .routing_rule_list_result_py3 import RoutingRuleListResult
from .sub_resource_py3 import SubResource
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_list_result_py3 import LoadBalancingSettingsListResult
from .load_balancing_settings_update_parameters_py3 import LoadBalancingSettingsUpdateParameters
from .health_probe_settings_list_result_py3 import HealthProbeSettingsListResult
from .health_probe_settings_update_parameters_py3 import HealthProbeSettingsUpdateParameters
from .backend_pool_update_parameters_py3 import BackendPoolUpdateParameters
from .backend_pool_list_result_py3 import BackendPoolListResult
from .frontend_endpoint_update_parameters_web_application_firewall_policy_link_py3 import FrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink
from .frontend_endpoint_update_parameters_py3 import FrontendEndpointUpdateParameters
from .validate_custom_domain_input_py3 import ValidateCustomDomainInput
Expand All @@ -47,6 +51,7 @@
from .match_condition_py3 import MatchCondition
from .custom_rule_py3 import CustomRule
from .custom_rule_list_py3 import CustomRuleList
from .managed_rule_exclusion_py3 import ManagedRuleExclusion
from .managed_rule_override_py3 import ManagedRuleOverride
from .managed_rule_group_override_py3 import ManagedRuleGroupOverride
from .managed_rule_set_py3 import ManagedRuleSet
Expand All @@ -68,16 +73,20 @@
from .backend_pools_settings import BackendPoolsSettings
from .front_door_update_parameters import FrontDoorUpdateParameters
from .purge_parameters import PurgeParameters
from .routing_rule_list_result import RoutingRuleListResult
from .sub_resource import SubResource
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_list_result import LoadBalancingSettingsListResult
from .load_balancing_settings_update_parameters import LoadBalancingSettingsUpdateParameters
from .health_probe_settings_list_result import HealthProbeSettingsListResult
from .health_probe_settings_update_parameters import HealthProbeSettingsUpdateParameters
from .backend_pool_update_parameters import BackendPoolUpdateParameters
from .backend_pool_list_result import BackendPoolListResult
from .frontend_endpoint_update_parameters_web_application_firewall_policy_link import FrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink
from .frontend_endpoint_update_parameters import FrontendEndpointUpdateParameters
from .validate_custom_domain_input import ValidateCustomDomainInput
Expand All @@ -94,6 +103,7 @@
from .match_condition import MatchCondition
from .custom_rule import CustomRule
from .custom_rule_list import CustomRuleList
from .managed_rule_exclusion import ManagedRuleExclusion
from .managed_rule_override import ManagedRuleOverride
from .managed_rule_group_override import ManagedRuleGroupOverride
from .managed_rule_set import ManagedRuleSet
Expand All @@ -104,10 +114,6 @@
from .managed_rule_group_definition import ManagedRuleGroupDefinition
from .managed_rule_set_definition import ManagedRuleSetDefinition
from .front_door_paged import FrontDoorPaged
from .routing_rule_paged import RoutingRulePaged
from .health_probe_settings_model_paged import HealthProbeSettingsModelPaged
from .load_balancing_settings_model_paged import LoadBalancingSettingsModelPaged
from .backend_pool_paged import BackendPoolPaged
from .frontend_endpoint_paged import FrontendEndpointPaged
from .web_application_firewall_policy_paged import WebApplicationFirewallPolicyPaged
from .managed_rule_set_definition_paged import ManagedRuleSetDefinitionPaged
Expand Down Expand Up @@ -142,6 +148,8 @@
Operator,
TransformType,
ActionType,
ManagedRuleExclusionMatchVariable,
ManagedRuleExclusionSelectorMatchOperator,
ManagedRuleEnabledState,
PolicyResourceState,
)
Expand All @@ -158,16 +166,20 @@
'BackendPoolsSettings',
'FrontDoorUpdateParameters',
'PurgeParameters',
'RoutingRuleListResult',
'SubResource',
'RouteConfiguration',
'RoutingRuleUpdateParameters',
'CacheConfiguration',
'ForwardingConfiguration',
'RedirectConfiguration',
'Backend',
'LoadBalancingSettingsListResult',
'LoadBalancingSettingsUpdateParameters',
'HealthProbeSettingsListResult',
'HealthProbeSettingsUpdateParameters',
'BackendPoolUpdateParameters',
'BackendPoolListResult',
'FrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink',
'FrontendEndpointUpdateParameters',
'ValidateCustomDomainInput',
Expand All @@ -184,6 +196,7 @@
'MatchCondition',
'CustomRule',
'CustomRuleList',
'ManagedRuleExclusion',
'ManagedRuleOverride',
'ManagedRuleGroupOverride',
'ManagedRuleSet',
Expand All @@ -194,10 +207,6 @@
'ManagedRuleGroupDefinition',
'ManagedRuleSetDefinition',
'FrontDoorPaged',
'RoutingRulePaged',
'HealthProbeSettingsModelPaged',
'LoadBalancingSettingsModelPaged',
'BackendPoolPaged',
'FrontendEndpointPaged',
'WebApplicationFirewallPolicyPaged',
'ManagedRuleSetDefinitionPaged',
Expand Down Expand Up @@ -231,6 +240,8 @@
'Operator',
'TransformType',
'ActionType',
'ManagedRuleExclusionMatchVariable',
'ManagedRuleExclusionSelectorMatchOperator',
'ManagedRuleEnabledState',
'PolicyResourceState',
]
Original file line number Diff line number Diff line change
@@ -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 BackendPoolListResult(Model):
"""Result of the request to list Backend Pools. It contains a list of Backend
Pools objects and a URL link to get the next set of results.

Variables are only populated by the server, and will be ignored when
sending a request.

:ivar value: List of Backend Pools within a Front Door.
:vartype value: list[~azure.mgmt.frontdoor.models.BackendPool]
:param next_link: URL to get the next set of BackendPool objects if there
are any.
:type next_link: str
"""

_validation = {
'value': {'readonly': True},
}

_attribute_map = {
'value': {'key': 'value', 'type': '[BackendPool]'},
'next_link': {'key': 'nextLink', 'type': 'str'},
}

def __init__(self, **kwargs):
super(BackendPoolListResult, self).__init__(**kwargs)
self.value = None
self.next_link = kwargs.get('next_link', None)
Original file line number Diff line number Diff line change
@@ -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 BackendPoolListResult(Model):
"""Result of the request to list Backend Pools. It contains a list of Backend
Pools objects and a URL link to get the next set of results.

Variables are only populated by the server, and will be ignored when
sending a request.

:ivar value: List of Backend Pools within a Front Door.
:vartype value: list[~azure.mgmt.frontdoor.models.BackendPool]
:param next_link: URL to get the next set of BackendPool objects if there
are any.
:type next_link: str
"""

_validation = {
'value': {'readonly': True},
}

_attribute_map = {
'value': {'key': 'value', 'type': '[BackendPool]'},
'next_link': {'key': 'nextLink', 'type': 'str'},
}

def __init__(self, *, next_link: str=None, **kwargs) -> None:
super(BackendPoolListResult, self).__init__(**kwargs)
self.value = None
self.next_link = next_link

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,23 @@ class ActionType(str, Enum):
redirect = "Redirect"


class ManagedRuleExclusionMatchVariable(str, Enum):

request_header_names = "RequestHeaderNames"
request_cookie_names = "RequestCookieNames"
query_string_arg_names = "QueryStringArgNames"
request_body_post_arg_names = "RequestBodyPostArgNames"


class ManagedRuleExclusionSelectorMatchOperator(str, Enum):

equals = "Equals"
contains = "Contains"
starts_with = "StartsWith"
ends_with = "EndsWith"
equals_any = "EqualsAny"


class ManagedRuleEnabledState(str, Enum):

disabled = "Disabled"
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# 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 HealthProbeSettingsListResult(Model):
"""Result of the request to list HealthProbeSettings. It contains a list of
HealthProbeSettings objects and a URL link to get the next set of results.

Variables are only populated by the server, and will be ignored when
sending a request.

:ivar value: List of HealthProbeSettings within a Front Door.
:vartype value:
list[~azure.mgmt.frontdoor.models.HealthProbeSettingsModel]
:param next_link: URL to get the next set of HealthProbeSettings objects
if there are any.
:type next_link: str
"""

_validation = {
'value': {'readonly': True},
}

_attribute_map = {
'value': {'key': 'value', 'type': '[HealthProbeSettingsModel]'},
'next_link': {'key': 'nextLink', 'type': 'str'},
}

def __init__(self, **kwargs):
super(HealthProbeSettingsListResult, self).__init__(**kwargs)
self.value = None
self.next_link = kwargs.get('next_link', None)
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# 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 HealthProbeSettingsListResult(Model):
"""Result of the request to list HealthProbeSettings. It contains a list of
HealthProbeSettings objects and a URL link to get the next set of results.

Variables are only populated by the server, and will be ignored when
sending a request.

:ivar value: List of HealthProbeSettings within a Front Door.
:vartype value:
list[~azure.mgmt.frontdoor.models.HealthProbeSettingsModel]
:param next_link: URL to get the next set of HealthProbeSettings objects
if there are any.
:type next_link: str
"""

_validation = {
'value': {'readonly': True},
}

_attribute_map = {
'value': {'key': 'value', 'type': '[HealthProbeSettingsModel]'},
'next_link': {'key': 'nextLink', 'type': 'str'},
}

def __init__(self, *, next_link: str=None, **kwargs) -> None:
super(HealthProbeSettingsListResult, self).__init__(**kwargs)
self.value = None
self.next_link = next_link
Loading