Azure Front Door Rules Engine commands preview (#1432)
* Azure Front Door Rules Engine commands preview * add rules-engine commands * upgrade SDK (swagger) version to 2020-01-01 for front-door * Remove unintentional 'location' from update front-door * Upgrade ext version to 1.0.4 * update azure-cli-extensions.pyproj for front-door * clean-up unused models in vendored_sdks * add test files * Address review comments * refine py versions 3.7, 3.8 * Address review comments * made deepest name param rule-name as --name * add two more rule show/list test cases * additional detail for query parameter help text * add rules_engine link param for create routing rule Co-authored-by: aramesh <aramesh@MININT-T8GHHLB> Co-authored-by: MyronFanQiu <49134743+MyronFanQiu@users.noreply.github.com>
This commit is contained in:
Родитель
77364ecd66
Коммит
0acaec92c0
|
@ -2467,120 +2467,26 @@
|
|||
<Compile Include="src\find\setup.py" />
|
||||
<Compile Include="src\front-door\azext_front_door\commands.py" />
|
||||
<Compile Include="src\front-door\azext_front_door\custom.py" />
|
||||
<Compile Include="src\front-door\azext_front_door\vendored_sdks\front_door_management_client.py" />
|
||||
<Compile Include="src\front-door\azext_front_door\vendored_sdks\models\azure_async_operation_result.py" />
|
||||
<Compile Include="src\front-door\azext_front_door\vendored_sdks\models\azure_async_operation_result_py3.py" />
|
||||
<Compile Include="src\front-door\azext_front_door\vendored_sdks\models\backend.py" />
|
||||
<Compile Include="src\front-door\azext_front_door\vendored_sdks\models\backend_pool.py" />
|
||||
<Compile Include="src\front-door\azext_front_door\vendored_sdks\models\backend_pools_settings.py" />
|
||||
<Compile Include="src\front-door\azext_front_door\vendored_sdks\models\backend_pools_settings_py3.py" />
|
||||
<Compile Include="src\front-door\azext_front_door\vendored_sdks\models\backend_pool_paged.py" />
|
||||
<Compile Include="src\front-door\azext_front_door\vendored_sdks\models\backend_pool_py3.py" />
|
||||
<Compile Include="src\front-door\azext_front_door\vendored_sdks\models\backend_pool_update_parameters.py" />
|
||||
<Compile Include="src\front-door\azext_front_door\vendored_sdks\models\backend_pool_update_parameters_py3.py" />
|
||||
<Compile Include="src\front-door\azext_front_door\vendored_sdks\models\backend_py3.py" />
|
||||
<Compile Include="src\front-door\azext_front_door\vendored_sdks\models\cache_configuration.py" />
|
||||
<Compile Include="src\front-door\azext_front_door\vendored_sdks\models\cache_configuration_py3.py" />
|
||||
<Compile Include="src\front-door\azext_front_door\vendored_sdks\models\check_name_availability_input.py" />
|
||||
<Compile Include="src\front-door\azext_front_door\vendored_sdks\models\check_name_availability_input_py3.py" />
|
||||
<Compile Include="src\front-door\azext_front_door\vendored_sdks\models\check_name_availability_output.py" />
|
||||
<Compile Include="src\front-door\azext_front_door\vendored_sdks\models\check_name_availability_output_py3.py" />
|
||||
<Compile Include="src\front-door\azext_front_door\vendored_sdks\models\custom_https_configuration.py" />
|
||||
<Compile Include="src\front-door\azext_front_door\vendored_sdks\models\custom_https_configuration_py3.py" />
|
||||
<Compile Include="src\front-door\azext_front_door\vendored_sdks\models\custom_rule.py" />
|
||||
<Compile Include="src\front-door\azext_front_door\vendored_sdks\models\custom_rule_list.py" />
|
||||
<Compile Include="src\front-door\azext_front_door\vendored_sdks\models\custom_rule_list_py3.py" />
|
||||
<Compile Include="src\front-door\azext_front_door\vendored_sdks\models\custom_rule_py3.py" />
|
||||
<Compile Include="src\front-door\azext_front_door\vendored_sdks\models\error.py" />
|
||||
<Compile Include="src\front-door\azext_front_door\vendored_sdks\models\error_details.py" />
|
||||
<Compile Include="src\front-door\azext_front_door\vendored_sdks\models\error_details_py3.py" />
|
||||
<Compile Include="src\front-door\azext_front_door\vendored_sdks\models\error_py3.py" />
|
||||
<Compile Include="src\front-door\azext_front_door\vendored_sdks\models\error_response.py" />
|
||||
<Compile Include="src\front-door\azext_front_door\vendored_sdks\models\error_response_py3.py" />
|
||||
<Compile Include="src\front-door\azext_front_door\vendored_sdks\models\forwarding_configuration.py" />
|
||||
<Compile Include="src\front-door\azext_front_door\vendored_sdks\models\forwarding_configuration_py3.py" />
|
||||
<Compile Include="src\front-door\azext_front_door\vendored_sdks\models\frontend_endpoint.py" />
|
||||
<Compile Include="src\front-door\azext_front_door\vendored_sdks\models\frontend_endpoint_link.py" />
|
||||
<Compile Include="src\front-door\azext_front_door\vendored_sdks\models\frontend_endpoint_link_py3.py" />
|
||||
<Compile Include="src\front-door\azext_front_door\vendored_sdks\models\frontend_endpoint_paged.py" />
|
||||
<Compile Include="src\front-door\azext_front_door\vendored_sdks\models\frontend_endpoint_py3.py" />
|
||||
<Compile Include="src\front-door\azext_front_door\vendored_sdks\models\frontend_endpoint_update_parameters.py" />
|
||||
<Compile Include="src\front-door\azext_front_door\vendored_sdks\models\frontend_endpoint_update_parameters_py3.py" />
|
||||
<Compile Include="src\front-door\azext_front_door\vendored_sdks\models\frontend_endpoint_update_parameters_web_application_firewall_policy_link.py" />
|
||||
<Compile Include="src\front-door\azext_front_door\vendored_sdks\models\frontend_endpoint_update_parameters_web_application_firewall_policy_link_py3.py" />
|
||||
<Compile Include="src\front-door\azext_front_door\vendored_sdks\models\front_door.py" />
|
||||
<Compile Include="src\front-door\azext_front_door\vendored_sdks\models\front_door_management_client_enums.py" />
|
||||
<Compile Include="src\front-door\azext_front_door\vendored_sdks\models\front_door_paged.py" />
|
||||
<Compile Include="src\front-door\azext_front_door\vendored_sdks\models\front_door_py3.py" />
|
||||
<Compile Include="src\front-door\azext_front_door\vendored_sdks\models\front_door_update_parameters.py" />
|
||||
<Compile Include="src\front-door\azext_front_door\vendored_sdks\models\front_door_update_parameters_py3.py" />
|
||||
<Compile Include="src\front-door\azext_front_door\vendored_sdks\models\health_probe_settings_model.py" />
|
||||
<Compile Include="src\front-door\azext_front_door\vendored_sdks\models\health_probe_settings_model_paged.py" />
|
||||
<Compile Include="src\front-door\azext_front_door\vendored_sdks\models\health_probe_settings_model_py3.py" />
|
||||
<Compile Include="src\front-door\azext_front_door\vendored_sdks\models\health_probe_settings_update_parameters.py" />
|
||||
<Compile Include="src\front-door\azext_front_door\vendored_sdks\models\health_probe_settings_update_parameters_py3.py" />
|
||||
<Compile Include="src\front-door\azext_front_door\vendored_sdks\models\key_vault_certificate_source_parameters_vault.py" />
|
||||
<Compile Include="src\front-door\azext_front_door\vendored_sdks\models\key_vault_certificate_source_parameters_vault_py3.py" />
|
||||
<Compile Include="src\front-door\azext_front_door\vendored_sdks\models\load_balancing_settings_model.py" />
|
||||
<Compile Include="src\front-door\azext_front_door\vendored_sdks\models\load_balancing_settings_model_paged.py" />
|
||||
<Compile Include="src\front-door\azext_front_door\vendored_sdks\models\load_balancing_settings_model_py3.py" />
|
||||
<Compile Include="src\front-door\azext_front_door\vendored_sdks\models\load_balancing_settings_update_parameters.py" />
|
||||
<Compile Include="src\front-door\azext_front_door\vendored_sdks\models\load_balancing_settings_update_parameters_py3.py" />
|
||||
<Compile Include="src\front-door\azext_front_door\vendored_sdks\models\managed_rule_definition.py" />
|
||||
<Compile Include="src\front-door\azext_front_door\vendored_sdks\models\managed_rule_definition_py3.py" />
|
||||
<Compile Include="src\front-door\azext_front_door\vendored_sdks\models\managed_rule_group_definition.py" />
|
||||
<Compile Include="src\front-door\azext_front_door\vendored_sdks\models\managed_rule_group_definition_py3.py" />
|
||||
<Compile Include="src\front-door\azext_front_door\vendored_sdks\models\managed_rule_group_override.py" />
|
||||
<Compile Include="src\front-door\azext_front_door\vendored_sdks\models\managed_rule_group_override_py3.py" />
|
||||
<Compile Include="src\front-door\azext_front_door\vendored_sdks\models\managed_rule_override.py" />
|
||||
<Compile Include="src\front-door\azext_front_door\vendored_sdks\models\managed_rule_override_py3.py" />
|
||||
<Compile Include="src\front-door\azext_front_door\vendored_sdks\models\managed_rule_set.py" />
|
||||
<Compile Include="src\front-door\azext_front_door\vendored_sdks\models\managed_rule_set_definition.py" />
|
||||
<Compile Include="src\front-door\azext_front_door\vendored_sdks\models\managed_rule_set_definition_paged.py" />
|
||||
<Compile Include="src\front-door\azext_front_door\vendored_sdks\models\managed_rule_set_definition_py3.py" />
|
||||
<Compile Include="src\front-door\azext_front_door\vendored_sdks\models\managed_rule_set_list.py" />
|
||||
<Compile Include="src\front-door\azext_front_door\vendored_sdks\models\managed_rule_set_list_py3.py" />
|
||||
<Compile Include="src\front-door\azext_front_door\vendored_sdks\models\managed_rule_set_py3.py" />
|
||||
<Compile Include="src\front-door\azext_front_door\vendored_sdks\models\match_condition.py" />
|
||||
<Compile Include="src\front-door\azext_front_door\vendored_sdks\models\match_condition_py3.py" />
|
||||
<Compile Include="src\front-door\azext_front_door\vendored_sdks\models\policy_settings.py" />
|
||||
<Compile Include="src\front-door\azext_front_door\vendored_sdks\models\policy_settings_py3.py" />
|
||||
<Compile Include="src\front-door\azext_front_door\vendored_sdks\models\purge_parameters.py" />
|
||||
<Compile Include="src\front-door\azext_front_door\vendored_sdks\models\purge_parameters_py3.py" />
|
||||
<Compile Include="src\front-door\azext_front_door\vendored_sdks\models\redirect_configuration.py" />
|
||||
<Compile Include="src\front-door\azext_front_door\vendored_sdks\models\redirect_configuration_py3.py" />
|
||||
<Compile Include="src\front-door\azext_front_door\vendored_sdks\models\resource.py" />
|
||||
<Compile Include="src\front-door\azext_front_door\vendored_sdks\models\resource_py3.py" />
|
||||
<Compile Include="src\front-door\azext_front_door\vendored_sdks\models\route_configuration.py" />
|
||||
<Compile Include="src\front-door\azext_front_door\vendored_sdks\models\route_configuration_py3.py" />
|
||||
<Compile Include="src\front-door\azext_front_door\vendored_sdks\models\routing_rule.py" />
|
||||
<Compile Include="src\front-door\azext_front_door\vendored_sdks\models\routing_rule_paged.py" />
|
||||
<Compile Include="src\front-door\azext_front_door\vendored_sdks\models\routing_rule_py3.py" />
|
||||
<Compile Include="src\front-door\azext_front_door\vendored_sdks\models\routing_rule_update_parameters.py" />
|
||||
<Compile Include="src\front-door\azext_front_door\vendored_sdks\models\routing_rule_update_parameters_py3.py" />
|
||||
<Compile Include="src\front-door\azext_front_door\vendored_sdks\models\sub_resource.py" />
|
||||
<Compile Include="src\front-door\azext_front_door\vendored_sdks\models\sub_resource_py3.py" />
|
||||
<Compile Include="src\front-door\azext_front_door\vendored_sdks\models\tags_object.py" />
|
||||
<Compile Include="src\front-door\azext_front_door\vendored_sdks\models\tags_object_py3.py" />
|
||||
<Compile Include="src\front-door\azext_front_door\vendored_sdks\models\validate_custom_domain_input.py" />
|
||||
<Compile Include="src\front-door\azext_front_door\vendored_sdks\models\validate_custom_domain_input_py3.py" />
|
||||
<Compile Include="src\front-door\azext_front_door\vendored_sdks\models\validate_custom_domain_output.py" />
|
||||
<Compile Include="src\front-door\azext_front_door\vendored_sdks\models\validate_custom_domain_output_py3.py" />
|
||||
<Compile Include="src\front-door\azext_front_door\vendored_sdks\models\web_application_firewall_policy.py" />
|
||||
<Compile Include="src\front-door\azext_front_door\vendored_sdks\models\web_application_firewall_policy_paged.py" />
|
||||
<Compile Include="src\front-door\azext_front_door\vendored_sdks\models\web_application_firewall_policy_py3.py" />
|
||||
<Compile Include="src\front-door\azext_front_door\vendored_sdks\models\_front_door_management_client_enums.py" />
|
||||
<Compile Include="src\front-door\azext_front_door\vendored_sdks\models\_models.py" />
|
||||
<Compile Include="src\front-door\azext_front_door\vendored_sdks\models\_models_py3.py" />
|
||||
<Compile Include="src\front-door\azext_front_door\vendored_sdks\models\_paged_models.py" />
|
||||
<Compile Include="src\front-door\azext_front_door\vendored_sdks\models\__init__.py" />
|
||||
<Compile Include="src\front-door\azext_front_door\vendored_sdks\operations\backend_pools_operations.py" />
|
||||
<Compile Include="src\front-door\azext_front_door\vendored_sdks\operations\endpoints_operations.py" />
|
||||
<Compile Include="src\front-door\azext_front_door\vendored_sdks\operations\frontend_endpoints_operations.py" />
|
||||
<Compile Include="src\front-door\azext_front_door\vendored_sdks\operations\front_doors_operations.py" />
|
||||
<Compile Include="src\front-door\azext_front_door\vendored_sdks\operations\health_probe_settings_operations.py" />
|
||||
<Compile Include="src\front-door\azext_front_door\vendored_sdks\operations\load_balancing_settings_operations.py" />
|
||||
<Compile Include="src\front-door\azext_front_door\vendored_sdks\operations\managed_rule_sets_operations.py" />
|
||||
<Compile Include="src\front-door\azext_front_door\vendored_sdks\operations\policies_operations.py" />
|
||||
<Compile Include="src\front-door\azext_front_door\vendored_sdks\operations\routing_rules_operations.py" />
|
||||
<Compile Include="src\front-door\azext_front_door\vendored_sdks\operations\_endpoints_operations.py" />
|
||||
<Compile Include="src\front-door\azext_front_door\vendored_sdks\operations\_experiments_operations.py" />
|
||||
<Compile Include="src\front-door\azext_front_door\vendored_sdks\operations\_frontend_endpoints_operations.py" />
|
||||
<Compile Include="src\front-door\azext_front_door\vendored_sdks\operations\_front_doors_operations.py" />
|
||||
<Compile Include="src\front-door\azext_front_door\vendored_sdks\operations\_front_door_management_client_operations.py" />
|
||||
<Compile Include="src\front-door\azext_front_door\vendored_sdks\operations\_managed_rule_sets_operations.py" />
|
||||
<Compile Include="src\front-door\azext_front_door\vendored_sdks\operations\_network_experiment_profiles_operations.py" />
|
||||
<Compile Include="src\front-door\azext_front_door\vendored_sdks\operations\_policies_operations.py" />
|
||||
<Compile Include="src\front-door\azext_front_door\vendored_sdks\operations\_preconfigured_endpoints_operations.py" />
|
||||
<Compile Include="src\front-door\azext_front_door\vendored_sdks\operations\_reports_operations.py" />
|
||||
<Compile Include="src\front-door\azext_front_door\vendored_sdks\operations\_rules_engines_operations.py" />
|
||||
<Compile Include="src\front-door\azext_front_door\vendored_sdks\operations\__init__.py" />
|
||||
<Compile Include="src\front-door\azext_front_door\vendored_sdks\version.py" />
|
||||
<Compile Include="src\front-door\azext_front_door\vendored_sdks\_configuration.py" />
|
||||
<Compile Include="src\front-door\azext_front_door\vendored_sdks\_front_door_management_client.py" />
|
||||
<Compile Include="src\front-door\azext_front_door\vendored_sdks\__init__.py" />
|
||||
<Compile Include="src\front-door\azext_front_door\_client_factory.py" />
|
||||
<Compile Include="src\front-door\azext_front_door\_completers.py" />
|
||||
|
@ -2590,6 +2496,8 @@
|
|||
<Compile Include="src\front-door\azext_front_door\__init__.py" />
|
||||
<Compile Include="src\front-door\azext_front_door\tests\__init__.py" />
|
||||
<Compile Include="src\front-door\azext_front_door\tests\latest\frontdoor_test_util.py" />
|
||||
<Compile Include="src\front-door\azext_front_door\tests\latest\test_route_rule_scenarios.py" />
|
||||
<Compile Include="src\front-door\azext_front_door\tests\latest\test_rules_engine_scenarios.py" />
|
||||
<Compile Include="src\front-door\azext_front_door\tests\latest\test_waf_scenarios.py" />
|
||||
<Compile Include="src\front-door\azext_front_door\tests\latest\__init__.py" />
|
||||
<Compile Include="src\front-door\setup.py" />
|
||||
|
|
|
@ -23,9 +23,9 @@ class FrontDoorCommandsLoader(AzCommandsLoader):
|
|||
load_command_table(self, args)
|
||||
return self.command_table
|
||||
|
||||
def load_arguments(self, args):
|
||||
def load_arguments(self, command):
|
||||
from ._params import load_arguments
|
||||
load_arguments(self, args)
|
||||
load_arguments(self, command)
|
||||
|
||||
|
||||
COMMAND_LOADER_CLS = FrontDoorCommandsLoader
|
||||
|
|
|
@ -22,6 +22,10 @@ def cf_fd_frontend_endpoints(cli_ctx, _):
|
|||
return frontdoor_client_factory(cli_ctx).frontend_endpoints
|
||||
|
||||
|
||||
def cf_fd_rules_engines(cli_ctx, _):
|
||||
return frontdoor_client_factory(cli_ctx).rules_engines
|
||||
|
||||
|
||||
def cf_fd_policies(cli_ctx, _):
|
||||
return frontdoor_client_factory(cli_ctx).policies
|
||||
|
||||
|
|
|
@ -236,6 +236,87 @@ helps['network front-door routing-rule delete'] = """
|
|||
"""
|
||||
# endregion
|
||||
|
||||
# region FrontDoor RulesEngine
|
||||
helps['network front-door rules-engine'] = """
|
||||
type: group
|
||||
short-summary: Manage Front Door rules engines.
|
||||
"""
|
||||
|
||||
helps['network front-door rules-engine rule'] = """
|
||||
type: group
|
||||
short-summary: Manage Rules Engine rules.
|
||||
"""
|
||||
|
||||
helps['network front-door rules-engine rule create'] = """
|
||||
type: command
|
||||
short-summary: Create a Rules Engine rule for a Front Door.
|
||||
long-summary: >
|
||||
This command allows creating Rules Engine configuration with Header
|
||||
action type. To add additional actions like Route overrides,
|
||||
use the `az network front-door rules-engine rule action add` command.
|
||||
"""
|
||||
|
||||
helps['network front-door rules-engine rule update'] = """
|
||||
type: command
|
||||
short-summary: Update Rules Engine configuration of a rule.
|
||||
"""
|
||||
|
||||
helps['network front-door rules-engine rule delete'] = """
|
||||
type: command
|
||||
short-summary: Delete a Rules Engine rule.
|
||||
"""
|
||||
|
||||
helps['network front-door rules-engine rule show'] = """
|
||||
type: command
|
||||
short-summary: Get the details of a Rules Engine rule.
|
||||
"""
|
||||
|
||||
helps['network front-door rules-engine rule list'] = """
|
||||
type: command
|
||||
short-summary: List rules of a Rules Engine configuration.
|
||||
"""
|
||||
|
||||
helps['network front-door rules-engine rule action'] = """
|
||||
type: group
|
||||
short-summary: Manage Rules Engine actions for Front Door.
|
||||
"""
|
||||
|
||||
helps['network front-door rules-engine rule action add'] = """
|
||||
type: command
|
||||
short-summary: Add an action to a Rules Engine rule.
|
||||
"""
|
||||
|
||||
helps['network front-door rules-engine rule action list'] = """
|
||||
type: command
|
||||
short-summary: Show all actions that apply for a Rules Engine rule.
|
||||
"""
|
||||
|
||||
helps['network front-door rules-engine rule action remove'] = """
|
||||
type: command
|
||||
short-summary: Remove an action from a Rules Engine rule.
|
||||
"""
|
||||
|
||||
helps['network front-door rules-engine rule condition'] = """
|
||||
type: group
|
||||
short-summary: Manage Rules Engine match conditions for Front Door.
|
||||
"""
|
||||
|
||||
helps['network front-door rules-engine rule condition add'] = """
|
||||
type: command
|
||||
short-summary: Add a match condition to a Rules Engine rule.
|
||||
"""
|
||||
|
||||
helps['network front-door rules-engine rule condition list'] = """
|
||||
type: command
|
||||
short-summary: Show all match conditions associated with a Rules Engine rule.
|
||||
"""
|
||||
|
||||
helps['network front-door rules-engine rule condition remove'] = """
|
||||
type: command
|
||||
short-summary: Remove a match condition from a Rules Engine rule.
|
||||
"""
|
||||
# endregion
|
||||
|
||||
# region WAFPolicy
|
||||
helps['network front-door waf-policy'] = """
|
||||
type: group
|
||||
|
|
|
@ -17,7 +17,7 @@ from azure.cli.core.commands.validators import get_default_location_from_resourc
|
|||
from ._completers import get_fd_subresource_completion_list
|
||||
from ._validators import (
|
||||
validate_waf_policy, validate_load_balancing_settings, validate_probe_settings,
|
||||
validate_frontend_endpoints, validate_backend_pool)
|
||||
validate_frontend_endpoints, validate_backend_pool, validate_rules_engine)
|
||||
|
||||
|
||||
class RouteType(str, Enum):
|
||||
|
@ -30,11 +30,13 @@ def load_arguments(self, _):
|
|||
|
||||
from azext_front_door.vendored_sdks.models import (
|
||||
PolicyMode, FrontDoorProtocol, FrontDoorHealthProbeMethod, FrontDoorCertificateSource, FrontDoorQuery, ActionType, RuleType, TransformType,
|
||||
FrontDoorRedirectType, FrontDoorRedirectProtocol, MinimumTLSVersion
|
||||
FrontDoorRedirectType, FrontDoorRedirectProtocol, MinimumTLSVersion, Transform, HeaderActionType, RulesEngineOperator, RulesEngineMatchVariable,
|
||||
FrontDoorForwardingProtocol, MatchProcessingBehavior
|
||||
)
|
||||
|
||||
frontdoor_name_type = CLIArgumentType(options_list=['--front-door-name', '-f'], help='Name of the Front Door.', completer=get_resource_name_completion_list('Microsoft.Network/frontdoors'), id_part='name')
|
||||
waf_policy_name_type = CLIArgumentType(options_list='--policy-name', help='Name of the WAF policy.', completer=get_resource_name_completion_list('Microsoft.Network/frontDoorWebApplicationFirewallPolicies'), id_part='name')
|
||||
rules_engine_name_type = CLIArgumentType(options_list=['--rules-engine-name', '-r'], help='Name of the Rules Engine.', completer=get_fd_subresource_completion_list('rules_engines'), id_part='child_name_1')
|
||||
|
||||
# region FrontDoors
|
||||
fd_subresources = [
|
||||
|
@ -127,10 +129,11 @@ def load_arguments(self, _):
|
|||
with self.argument_context('network front-door routing-rule', arg_group=None) as c:
|
||||
c.argument('accepted_protocols', nargs='+', help='Space-separated list of protocols to accept. Default: Http')
|
||||
c.argument('patterns_to_match', options_list='--patterns', nargs='+', help='Space-separated list of patterns to match. Default: \'/*\'.')
|
||||
c.argument('forwarding_protocol', help='Protocol to use for forwarding traffic.')
|
||||
c.argument('backend_pool', help='Name or ID of a backend pool.', validator=validate_backend_pool)
|
||||
c.argument('rules_engine', help='Name or ID of a Rules Engine configuration.', validator=validate_rules_engine)
|
||||
c.argument('frontend_endpoints', help='Space-separated list of frontend endpoint names or IDs.', nargs='+', validator=validate_frontend_endpoints)
|
||||
with self.argument_context('network front-door routing-rule', arg_group='Forward Routing Rule') as c:
|
||||
c.argument('backend_pool', help='Name or ID of a backend pool.', validator=validate_backend_pool)
|
||||
c.argument('forwarding_protocol', help='Protocol to use for forwarding traffic.')
|
||||
c.argument('custom_forwarding_path', help='Custom path used to rewrite resource paths matched by this rule. Leave empty to use incoming path.')
|
||||
c.argument('caching', arg_type=get_three_state_flag(positive_label='Enabled', negative_label='Disabled', return_label=False), help='Whether to enable caching for this route.')
|
||||
c.argument('dynamic_compression', arg_type=get_three_state_flag(positive_label='Enabled', negative_label='Disabled', return_label=True), help='Use dynamic compression for cached content.')
|
||||
|
@ -263,3 +266,55 @@ def load_arguments(self, _):
|
|||
c.argument('rule_name', options_list=['--name', '-n'], help='Name of the custom rule.')
|
||||
c.argument('policy_name', waf_policy_name_type, id_part=None)
|
||||
# endregion
|
||||
|
||||
# region RulesEngine
|
||||
with self.argument_context('network front-door rules-engine') as c:
|
||||
c.argument('front_door_name', frontdoor_name_type, id_part=None)
|
||||
c.argument('rules_engine_name', rules_engine_name_type, options_list=['--name', '-n'], id_part=None)
|
||||
|
||||
with self.argument_context('network front-door rules-engine rule') as c:
|
||||
c.argument('front_door_name', frontdoor_name_type, id_part=None)
|
||||
c.argument('rules_engine_name', rules_engine_name_type, id_part=None)
|
||||
c.argument('rule_name', options_list=['--name', '-n'], help='Name of the rule')
|
||||
c.argument('action_type', arg_group="Action", arg_type=get_enum_type(['RequestHeader', 'ResponseHeader', 'ForwardRouteOverride', 'RedirectRouteOverride']), help='Action type to apply for a rule.')
|
||||
c.argument('header_action', arg_group="Action", arg_type=get_enum_type(HeaderActionType), help='Header action type for the requests.')
|
||||
c.argument('header_name', arg_group="Action", help='Name of the header to modify.')
|
||||
c.argument('header_value', arg_group="Action", help='Value of the header.')
|
||||
c.argument('match_variable', arg_group="Match Condition", arg_type=get_enum_type(RulesEngineMatchVariable), help='Name of the match condition.')
|
||||
c.argument('operator', arg_group="Match Condition", arg_type=get_enum_type(RulesEngineOperator), help='Operator of the match condition.')
|
||||
c.argument('match_values', arg_group="Match Condition", nargs='+', help='Space-separated list of values to match against.')
|
||||
c.argument('selector', arg_group="Match Condition", help='Optional selector for the match condition variable.')
|
||||
c.argument('negate_condition', arg_group="Match Condition", arg_type=get_three_state_flag(), help='Applies "Not" to the operator.')
|
||||
c.argument('transforms', arg_group="Match Condition", nargs='+', arg_type=get_enum_type(Transform), help='Space-separated list of transforms to apply.')
|
||||
c.argument('priority', help='The priority number must start from 0 and consecutive. Rule with greater priority value will be applied later.')
|
||||
c.argument('match_processing_behavior', arg_type=get_enum_type(MatchProcessingBehavior), help='Whether to stop processing rules after conditions in a rule is satisfied.')
|
||||
|
||||
with self.argument_context('network front-door rules-engine rule action', arg_group='Forward Route Override') as c:
|
||||
c.argument('backend_pool', help='Name or ID of a backend pool.', validator=validate_backend_pool)
|
||||
c.argument('forwarding_protocol', arg_type=get_enum_type(FrontDoorForwardingProtocol), help='Protocol to use for forwarding traffic.')
|
||||
c.argument('custom_forwarding_path', help='Custom path used to rewrite resource paths matched by this rule. Leave empty to use incoming path.')
|
||||
c.argument('caching', arg_type=get_three_state_flag(positive_label='Enabled', negative_label='Disabled', return_label=False), help='Whether to enable caching for this route.')
|
||||
c.argument('cache_duration', help='The duration for which the content needs to be cached. Allowed format is ISO 8601 duration')
|
||||
c.argument('dynamic_compression', arg_type=get_three_state_flag(positive_label='Enabled', negative_label='Disabled', return_label=True), help='Use dynamic compression for cached content.')
|
||||
c.argument('query_parameter_strip_directive', arg_type=get_enum_type(FrontDoorQuery), help='Treatment of URL query terms when forming the cache key.')
|
||||
c.argument('query_parameters', help='Query parameters to include or exclude (comma separated) when using query-parameter-strip-directive type StripAllExcept or StripOnly respectively.')
|
||||
|
||||
with self.argument_context('network front-door rules-engine rule action', arg_group='Redirect Route Override') as c:
|
||||
c.argument('redirect_type', arg_type=get_enum_type(FrontDoorRedirectType), help='The redirect type the rule will use when redirecting traffic.')
|
||||
c.argument('redirect_protocol', arg_type=get_enum_type(FrontDoorRedirectProtocol), help='The protocol of the destination to where the traffic is redirected.')
|
||||
c.argument('custom_host', help='Host to redirect. Leave empty to use use the incoming host as the destination host.')
|
||||
c.argument('custom_path', help='The full path to redirect. Path cannot be empty and must start with /. Leave empty to use the incoming path as destination path.')
|
||||
c.argument('custom_fragment', help='Fragment to add to the redirect URL. Fragment is the part of the URL that comes after #. Do not include the #.')
|
||||
c.argument('custom_query_string', help='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 <key>=<value> format. The first ? and & will be added automatically so do not include them in the front, but do separate multiple query strings with &.')
|
||||
|
||||
with self.argument_context('network front-door rules-engine rule condition remove') as c:
|
||||
c.argument('index', type=int, help='0-based index of the match condition to remove')
|
||||
|
||||
with self.argument_context('network front-door rules-engine rule action remove') as c:
|
||||
c.argument('index', type=int, help='0-based index of the request or response header action to remove. Index parameter is not required for "ForwardRouteOverride" or "RedirectRouteOverride" action remove')
|
||||
|
||||
with self.argument_context('network front-door rules-engine rule list') as c:
|
||||
c.argument('front_door_name', frontdoor_name_type, id_part=None)
|
||||
c.argument('rules_engine_name', rules_engine_name_type, options_list=['--name', '-n'], id_part=None)
|
||||
|
||||
# endregion
|
||||
|
|
|
@ -77,6 +77,10 @@ def validate_backend_pool(cmd, namespace):
|
|||
get_name_or_id_validator('backend_pool', 'backendPools')(cmd, namespace)
|
||||
|
||||
|
||||
def validate_rules_engine(cmd, namespace):
|
||||
get_name_or_id_validator('rules_engine', 'rulesEngines')(cmd, namespace)
|
||||
|
||||
|
||||
# pylint: disable=protected-access
|
||||
class MatchConditionAction(argparse._AppendAction):
|
||||
|
||||
|
|
|
@ -8,7 +8,7 @@ from azure.cli.core.commands import CliCommandType
|
|||
|
||||
from .custom import (
|
||||
list_frontdoor_resource_property, get_frontdoor_resource_property_entry, delete_frontdoor_resource_property_entry)
|
||||
from ._client_factory import cf_frontdoor, cf_fd_endpoints, cf_waf_policies
|
||||
from ._client_factory import cf_frontdoor, cf_fd_endpoints, cf_waf_policies, cf_fd_rules_engines
|
||||
|
||||
|
||||
# pylint: disable=too-many-locals, too-many-statements
|
||||
|
@ -17,7 +17,7 @@ def load_command_table(self, _):
|
|||
frontdoor_custom = CliCommandType(operations_tmpl='azext_front_door.custom#{}')
|
||||
|
||||
frontdoor_sdk = CliCommandType(
|
||||
operations_tmpl='azext_front_door.vendored_sdks.operations.front_doors_operations#FrontDoorsOperations.{}',
|
||||
operations_tmpl='azext_front_door.vendored_sdks.operations._front_doors_operations#FrontDoorsOperations.{}',
|
||||
client_factory=cf_frontdoor
|
||||
)
|
||||
|
||||
|
@ -27,7 +27,7 @@ def load_command_table(self, _):
|
|||
# )
|
||||
|
||||
fd_endpoint_sdk = CliCommandType(
|
||||
operations_tmpl='azext_front_door.vendored_sdks.operations.endpoints_operations#EndpointsOperations.{}',
|
||||
operations_tmpl='azext_front_door.vendored_sdks.operations._endpoints_operations#EndpointsOperations.{}',
|
||||
client_factory=cf_fd_endpoints
|
||||
)
|
||||
|
||||
|
@ -51,8 +51,13 @@ def load_command_table(self, _):
|
|||
# client_factory=cf_fd_routing_rules
|
||||
# )
|
||||
|
||||
rules_engine_sdk = CliCommandType(
|
||||
operations_tmpl='azext_front_door.vendored_sdks.operations._rules_engines_operations#RulesEnginesOperations.{}',
|
||||
client_factory=cf_fd_rules_engines
|
||||
)
|
||||
|
||||
waf_policy_sdk = CliCommandType(
|
||||
operations_tmpl='azext_front_door.vendored_sdks.operations.policies_operations#PoliciesOperations.{}',
|
||||
operations_tmpl='azext_front_door.vendored_sdks.operations._policies_operations#PoliciesOperations.{}',
|
||||
client_factory=cf_waf_policies
|
||||
)
|
||||
|
||||
|
@ -170,3 +175,28 @@ def load_command_table(self, _):
|
|||
g.custom_command('remove', 'remove_custom_rule_match_condition')
|
||||
g.custom_command('list', 'list_custom_rule_match_conditions')
|
||||
# endregion
|
||||
|
||||
# region RulesEngine
|
||||
|
||||
with self.command_group('network front-door rules-engine', rules_engine_sdk, is_preview=True) as g:
|
||||
g.show_command('show', 'get')
|
||||
g.command('list', 'list_by_front_door')
|
||||
g.command('delete', 'delete')
|
||||
|
||||
with self.command_group('network front-door rules-engine rule', rules_engine_sdk, is_preview=True) as g:
|
||||
g.custom_command('create', 'create_rules_engine_rule')
|
||||
g.custom_command('delete', 'delete_rules_engine_rule')
|
||||
g.custom_show_command('show', 'show_rules_engine_rule')
|
||||
g.custom_command('list', 'list_rules_engine_rule')
|
||||
g.custom_command('update', 'update_rules_engine_rule')
|
||||
|
||||
with self.command_group('network front-door rules-engine rule condition', rules_engine_sdk, is_preview=True) as g:
|
||||
g.custom_command('add', 'add_rules_engine_condition')
|
||||
g.custom_command('remove', 'remove_rules_engine_condition')
|
||||
g.custom_command('list', 'list_rules_engine_condition')
|
||||
|
||||
with self.command_group('network front-door rules-engine rule action', rules_engine_sdk, is_preview=True) as g:
|
||||
g.custom_command('add', 'add_rules_engine_action')
|
||||
g.custom_command('remove', 'remove_rules_engine_action')
|
||||
g.custom_command('list', 'list_rules_engine_action')
|
||||
# endregion
|
||||
|
|
|
@ -13,8 +13,8 @@ from azure.cli.core.util import sdk_no_wait
|
|||
|
||||
from knack.log import get_logger
|
||||
|
||||
from ._client_factory import cf_frontdoor, cf_waf_policies, cf_waf_managed_rules, cf_fd_frontend_endpoints
|
||||
|
||||
from ._client_factory import (cf_frontdoor, cf_waf_policies, cf_waf_managed_rules,
|
||||
cf_fd_frontend_endpoints, cf_fd_rules_engines)
|
||||
|
||||
logger = get_logger(__name__)
|
||||
|
||||
|
@ -498,15 +498,11 @@ def update_fd_load_balancing_settings(instance, sample_size=None, successful_sam
|
|||
return instance
|
||||
|
||||
|
||||
def create_fd_routing_rules(cmd, resource_group_name, front_door_name, item_name, frontend_endpoints, route_type,
|
||||
backend_pool=None, accepted_protocols=None, patterns_to_match=None,
|
||||
custom_forwarding_path=None, forwarding_protocol=None, disabled=None,
|
||||
caching=None, dynamic_compression=None, query_parameter_strip_directive=None,
|
||||
redirect_type='Moved', redirect_protocol='MatchRequest', custom_host=None, custom_path=None,
|
||||
custom_fragment=None, custom_query_string=None):
|
||||
from azext_front_door.vendored_sdks.models import (CacheConfiguration, RoutingRule, SubResource,
|
||||
ForwardingConfiguration, RedirectConfiguration)
|
||||
|
||||
def routing_rule_usage_helper(route_type, backend_pool=None, custom_forwarding_path=None,
|
||||
forwarding_protocol=None, dynamic_compression=None,
|
||||
query_parameter_strip_directive=None, redirect_type=None,
|
||||
redirect_protocol=None, custom_host=None, custom_path=None,
|
||||
custom_fragment=None, custom_query_string=None):
|
||||
forwarding_usage = ('usage error: [--backend-pool BACKEND_POOL] '
|
||||
'[--custom-forwarding-path CUSTOM_FORWARDING_PATH] '
|
||||
'[--forwarding-protocol FORWARDING_PROTOCOL] '
|
||||
|
@ -519,14 +515,30 @@ def create_fd_routing_rules(cmd, resource_group_name, front_door_name, item_name
|
|||
'[--custom-fragment CUSTOM_FRAGMENT] [--custom-query-string CUSTOM_QUERY_STRING]')
|
||||
|
||||
# pylint: disable=line-too-long
|
||||
if (route_type == 'Forward' and any([custom_host, custom_path, custom_fragment, custom_query_string]) and getattr(redirect_type, 'is_default', None) and getattr(redirect_protocol, 'is_default', None)):
|
||||
if 'Forward' in route_type and any([custom_host, custom_path, custom_fragment, custom_query_string]) and getattr(redirect_type, 'is_default', None) and getattr(redirect_protocol, 'is_default', None):
|
||||
from knack.util import CLIError
|
||||
raise CLIError(forwarding_usage)
|
||||
if route_type == 'Redirect' and any([custom_forwarding_path, forwarding_protocol, backend_pool,
|
||||
if 'Redirect' in route_type and any([custom_forwarding_path, forwarding_protocol, backend_pool,
|
||||
query_parameter_strip_directive, dynamic_compression]):
|
||||
from knack.util import CLIError
|
||||
raise CLIError(redirect_usage)
|
||||
|
||||
|
||||
def create_fd_routing_rules(cmd, resource_group_name, front_door_name, item_name, frontend_endpoints, route_type,
|
||||
backend_pool=None, accepted_protocols=None, patterns_to_match=None,
|
||||
rules_engine=None, custom_forwarding_path=None, forwarding_protocol=None, disabled=None,
|
||||
caching=None, dynamic_compression=None, query_parameter_strip_directive=None,
|
||||
redirect_type='Moved', redirect_protocol='MatchRequest', custom_host=None, custom_path=None,
|
||||
custom_fragment=None, custom_query_string=None):
|
||||
from azext_front_door.vendored_sdks.models import (CacheConfiguration, RoutingRule, SubResource,
|
||||
ForwardingConfiguration, RedirectConfiguration)
|
||||
|
||||
routing_rule_usage_helper(route_type, backend_pool, custom_forwarding_path,
|
||||
forwarding_protocol, dynamic_compression,
|
||||
query_parameter_strip_directive, redirect_type,
|
||||
redirect_protocol, custom_host, custom_path,
|
||||
custom_fragment, custom_query_string)
|
||||
|
||||
if route_type == 'Forward':
|
||||
rule = RoutingRule(
|
||||
name=item_name,
|
||||
|
@ -534,6 +546,7 @@ def create_fd_routing_rules(cmd, resource_group_name, front_door_name, item_name
|
|||
frontend_endpoints=[SubResource(id=x) for x in frontend_endpoints] if frontend_endpoints else None,
|
||||
accepted_protocols=accepted_protocols or ['Http'],
|
||||
patterns_to_match=patterns_to_match or ['/*'],
|
||||
rules_engine=SubResource(id=rules_engine) if rules_engine else None,
|
||||
route_configuration=ForwardingConfiguration(
|
||||
custom_forwarding_path=custom_forwarding_path,
|
||||
forwarding_protocol=forwarding_protocol,
|
||||
|
@ -551,6 +564,7 @@ def create_fd_routing_rules(cmd, resource_group_name, front_door_name, item_name
|
|||
frontend_endpoints=[SubResource(id=x) for x in frontend_endpoints] if frontend_endpoints else None,
|
||||
accepted_protocols=accepted_protocols or ['Http'],
|
||||
patterns_to_match=patterns_to_match or ['/*'],
|
||||
rules_engine=SubResource(id=rules_engine) if rules_engine else None,
|
||||
route_configuration=RedirectConfiguration(
|
||||
redirect_type=redirect_type,
|
||||
redirect_protocol=redirect_protocol,
|
||||
|
@ -565,7 +579,7 @@ def create_fd_routing_rules(cmd, resource_group_name, front_door_name, item_name
|
|||
|
||||
def update_fd_routing_rule(parent, instance, item_name, frontend_endpoints=None, accepted_protocols=None, # pylint: disable=unused-argument
|
||||
patterns_to_match=None, custom_forwarding_path=None, forwarding_protocol=None,
|
||||
backend_pool=None, enabled=None, dynamic_compression=None,
|
||||
backend_pool=None, rules_engine=None, enabled=None, dynamic_compression=None,
|
||||
caching=None, query_parameter_strip_directive=None, redirect_type=None,
|
||||
redirect_protocol=None, custom_host=None, custom_path=None,
|
||||
custom_fragment=None, custom_query_string=None):
|
||||
|
@ -577,6 +591,7 @@ def update_fd_routing_rule(parent, instance, item_name, frontend_endpoints=None,
|
|||
if frontend_endpoints else None, False)
|
||||
c.update_param('accepted_protocols', accepted_protocols, False)
|
||||
c.update_param('patterns_to_match', patterns_to_match, False)
|
||||
c.update_param('rules_engine', SubResource(id=rules_engine) if rules_engine else None, False)
|
||||
c.update_param('enabled_state', enabled, False)
|
||||
with UpdateContext(instance.route_configuration) as c:
|
||||
c.update_param('custom_forwarding_path', custom_forwarding_path, False)
|
||||
|
@ -595,6 +610,7 @@ def update_fd_routing_rule(parent, instance, item_name, frontend_endpoints=None,
|
|||
if frontend_endpoints else None, False)
|
||||
c.update_param('accepted_protocols', accepted_protocols, False)
|
||||
c.update_param('patterns_to_match', patterns_to_match, False)
|
||||
c.update_param('rules_engine', SubResource(id=rules_engine) if rules_engine else None, False)
|
||||
c.update_param('enabled_state', enabled, False)
|
||||
with UpdateContext(instance.route_configuration) as c:
|
||||
c.update_param('redirect_type', redirect_type, False)
|
||||
|
@ -1098,3 +1114,301 @@ def list_custom_rule_match_conditions(cmd, resource_group_name, policy_name, rul
|
|||
from knack.util import CLIError
|
||||
raise CLIError("rule '{}' not found".format(rule_name))
|
||||
# endregion
|
||||
|
||||
|
||||
# region Front Door Rules Engine
|
||||
|
||||
|
||||
# pylint: disable=too-many-locals
|
||||
def create_rules_engine_rule(cmd, resource_group_name, front_door_name, rules_engine_name,
|
||||
priority, rule_name, action_type, header_action=None, header_name=None,
|
||||
header_value=None, match_variable=None, operator=None, match_values=None,
|
||||
selector=None, negate_condition=None, transforms=None,
|
||||
match_processing_behavior=None):
|
||||
from azext_front_door.vendored_sdks.models import (ErrorResponseException, RulesEngineRule,
|
||||
RulesEngineAction, HeaderAction,
|
||||
RulesEngineMatchCondition)
|
||||
client = cf_fd_rules_engines(cmd.cli_ctx, None)
|
||||
|
||||
match_conditions = []
|
||||
condition = RulesEngineMatchCondition(rules_engine_match_variable=match_variable,
|
||||
rules_engine_operator=operator,
|
||||
rules_engine_match_value=match_values,
|
||||
selector=selector,
|
||||
negate_condition=negate_condition, transforms=transforms)
|
||||
if condition is not None:
|
||||
match_conditions.append(condition)
|
||||
|
||||
request_header_actions = []
|
||||
if action_type.lower() == 'requestheader':
|
||||
request_header_actions.append(HeaderAction(
|
||||
header_action_type=header_action,
|
||||
header_name=header_name,
|
||||
value=header_value))
|
||||
|
||||
response_header_actions = []
|
||||
if action_type.lower() == 'responseheader':
|
||||
response_header_actions.append(HeaderAction(
|
||||
header_action_type=header_action,
|
||||
header_name=header_name,
|
||||
value=header_value))
|
||||
|
||||
action = RulesEngineAction(request_header_actions=request_header_actions,
|
||||
response_header_actions=response_header_actions)
|
||||
|
||||
rule = RulesEngineRule(name=rule_name, priority=priority,
|
||||
action=action, match_conditions=match_conditions,
|
||||
match_processing_behavior=match_processing_behavior)
|
||||
|
||||
rules_list = []
|
||||
try:
|
||||
rules_engine = client.get(resource_group_name, front_door_name, rules_engine_name)
|
||||
rules_engine.rules.append(rule)
|
||||
rules_list = rules_engine.rules
|
||||
except ErrorResponseException as e:
|
||||
if e.response.status_code == 404:
|
||||
rules_list = [rule]
|
||||
else:
|
||||
# If the error isn't a 404, rethrow it.
|
||||
raise e
|
||||
|
||||
return client.create_or_update(resource_group_name, front_door_name, rules_engine_name, rules_list)
|
||||
|
||||
|
||||
def delete_rules_engine_rule(cmd, resource_group_name, front_door_name, rules_engine_name, rule_name):
|
||||
client = cf_fd_rules_engines(cmd.cli_ctx, None)
|
||||
rules_engine = client.get(resource_group_name, front_door_name, rules_engine_name)
|
||||
rules_engine.rules = [x for x in rules_engine.rules if x.name.lower() != rule_name.lower()]
|
||||
if not rules_engine.rules:
|
||||
from knack.util import CLIError
|
||||
raise CLIError("Rules Engine must at least contain one rule")
|
||||
|
||||
return client.create_or_update(resource_group_name, front_door_name, rules_engine_name, rules=rules_engine.rules)
|
||||
|
||||
|
||||
def show_rules_engine_rule(cmd, resource_group_name, front_door_name, rules_engine_name, rule_name):
|
||||
client = cf_fd_rules_engines(cmd.cli_ctx, None)
|
||||
rules_engine = client.get(resource_group_name, front_door_name, rules_engine_name)
|
||||
try:
|
||||
return next(x for x in rules_engine.rules if x.name.lower() == rule_name.lower())
|
||||
except StopIteration:
|
||||
from knack.util import CLIError
|
||||
raise CLIError("rule '{}' not found".format(rule_name))
|
||||
|
||||
|
||||
def list_rules_engine_rule(cmd, resource_group_name, front_door_name, rules_engine_name):
|
||||
client = cf_fd_rules_engines(cmd.cli_ctx, None)
|
||||
rules_engine = client.get(resource_group_name, front_door_name, rules_engine_name)
|
||||
return rules_engine.rules
|
||||
|
||||
|
||||
def update_rules_engine_rule(cmd, resource_group_name, front_door_name,
|
||||
rules_engine_name, rule_name, priority=None,
|
||||
match_processing_behavior=None):
|
||||
client = cf_fd_rules_engines(cmd.cli_ctx, None)
|
||||
rules_engine = client.get(resource_group_name, front_door_name, rules_engine_name)
|
||||
|
||||
found_rule = False
|
||||
for rule in rules_engine.rules:
|
||||
if rule.name.lower() == rule_name.lower():
|
||||
found_rule = True
|
||||
with UpdateContext(rule) as c:
|
||||
c.update_param('priority', priority, None)
|
||||
c.update_param('match_processing_behavior', match_processing_behavior, None)
|
||||
break
|
||||
|
||||
if not found_rule:
|
||||
from knack.util import CLIError
|
||||
raise CLIError("rule '{}' not found".format(rule_name))
|
||||
|
||||
return client.create_or_update(resource_group_name, front_door_name, rules_engine_name, rules=rules_engine.rules)
|
||||
|
||||
|
||||
def add_rules_engine_condition(cmd, resource_group_name, front_door_name, rules_engine_name,
|
||||
rule_name, match_variable=None, operator=None, match_values=None,
|
||||
selector=None, negate_condition=None, transforms=None):
|
||||
from azext_front_door.vendored_sdks.models import RulesEngineMatchCondition
|
||||
client = cf_fd_rules_engines(cmd.cli_ctx, None)
|
||||
rules_engine = client.get(resource_group_name, front_door_name, rules_engine_name)
|
||||
|
||||
found_rule = False
|
||||
for rule in rules_engine.rules:
|
||||
if rule.name.upper() == rule_name.upper():
|
||||
found_rule = True
|
||||
condition = RulesEngineMatchCondition(rules_engine_match_variable=match_variable,
|
||||
rules_engine_operator=operator,
|
||||
rules_engine_match_value=match_values,
|
||||
selector=selector, negate_condition=negate_condition,
|
||||
transforms=transforms)
|
||||
if condition is not None:
|
||||
rule.match_conditions.append(condition)
|
||||
|
||||
if not found_rule:
|
||||
from knack.util import CLIError
|
||||
raise CLIError("rule '{}' not found".format(rule_name))
|
||||
|
||||
return client.create_or_update(resource_group_name, front_door_name, rules_engine_name, rules=rules_engine.rules)
|
||||
|
||||
|
||||
def remove_rules_engine_condition(cmd, resource_group_name,
|
||||
front_door_name, rules_engine_name,
|
||||
rule_name, index):
|
||||
client = cf_fd_rules_engines(cmd.cli_ctx, None)
|
||||
rules_engine = client.get(resource_group_name, front_door_name, rules_engine_name)
|
||||
|
||||
found_rule = False
|
||||
for rule in rules_engine.rules:
|
||||
if rule.name.upper() == rule_name.upper():
|
||||
found_rule = True
|
||||
|
||||
if index >= len(rule.match_conditions):
|
||||
from knack.util import CLIError
|
||||
raise CLIError("Index out of bounds")
|
||||
|
||||
rule.match_conditions = [v for (i, v) in enumerate(rule.match_conditions) if i != index]
|
||||
|
||||
if not found_rule:
|
||||
from knack.util import CLIError
|
||||
raise CLIError("rule '{}' not found".format(rule_name))
|
||||
|
||||
return client.create_or_update(resource_group_name, front_door_name, rules_engine_name, rules=rules_engine.rules)
|
||||
|
||||
|
||||
def list_rules_engine_condition(cmd, resource_group_name,
|
||||
front_door_name, rules_engine_name,
|
||||
rule_name):
|
||||
client = cf_fd_rules_engines(cmd.cli_ctx, None)
|
||||
rules_engine = client.get(resource_group_name, front_door_name, rules_engine_name)
|
||||
|
||||
for rule in rules_engine.rules:
|
||||
if rule.name.upper() == rule_name.upper():
|
||||
return rule.match_conditions
|
||||
|
||||
from knack.util import CLIError
|
||||
raise CLIError("rule '{}' not found".format(rule_name))
|
||||
|
||||
|
||||
# pylint: disable=unused-argument
|
||||
def add_rules_engine_action(cmd, resource_group_name, front_door_name, rules_engine_name, rule_name,
|
||||
action_type, header_action=None, header_name=None, header_value=None,
|
||||
custom_forwarding_path=None, forwarding_protocol=None, backend_pool=None,
|
||||
caching=None, dynamic_compression=None, cache_duration=None,
|
||||
query_parameter_strip_directive=None, query_parameters=None, redirect_type='Moved',
|
||||
redirect_protocol='MatchRequest', custom_host=None, custom_path=None,
|
||||
custom_fragment=None, custom_query_string=None):
|
||||
|
||||
def add_action_helper(rule):
|
||||
from azext_front_door.vendored_sdks.models import (HeaderAction, CacheConfiguration, SubResource,
|
||||
ForwardingConfiguration, RedirectConfiguration)
|
||||
if action_type.lower() == 'requestheader':
|
||||
rule.action.request_header_actions.append(HeaderAction(
|
||||
header_action_type=header_action,
|
||||
header_name=header_name,
|
||||
value=header_value))
|
||||
|
||||
if action_type.lower() == 'responseheader':
|
||||
rule.action.response_header_actions.append(HeaderAction(
|
||||
header_action_type=header_action,
|
||||
header_name=header_name,
|
||||
value=header_value))
|
||||
|
||||
if action_type.lower() == 'forwardrouteoverride' or 'redirectrouteoverride':
|
||||
routing_rule_usage_helper(action_type, backend_pool, custom_forwarding_path,
|
||||
forwarding_protocol, dynamic_compression,
|
||||
query_parameter_strip_directive, redirect_type,
|
||||
redirect_protocol, custom_host, custom_path,
|
||||
custom_fragment, custom_query_string)
|
||||
if 'forward' in action_type.lower():
|
||||
rule.action.route_configuration_override = ForwardingConfiguration(
|
||||
custom_forwarding_path=custom_forwarding_path,
|
||||
forwarding_protocol=forwarding_protocol,
|
||||
backend_pool=SubResource(
|
||||
id=backend_pool) if backend_pool else None,
|
||||
cache_configuration=CacheConfiguration(
|
||||
query_parameter_strip_directive=query_parameter_strip_directive,
|
||||
dynamic_compression=dynamic_compression
|
||||
) if caching else None
|
||||
)
|
||||
elif 'redirect' in action_type.lower():
|
||||
rule.action.route_configuration_override = RedirectConfiguration(
|
||||
redirect_type=redirect_type,
|
||||
redirect_protocol=redirect_protocol,
|
||||
custom_host=custom_host,
|
||||
custom_path=custom_path,
|
||||
custom_fragment=custom_fragment,
|
||||
custom_query_string=custom_query_string
|
||||
)
|
||||
|
||||
client = cf_fd_rules_engines(cmd.cli_ctx, None)
|
||||
rules_engine = client.get(resource_group_name, front_door_name, rules_engine_name)
|
||||
|
||||
found_rule = False
|
||||
for rule in rules_engine.rules:
|
||||
if rule.name.upper() == rule_name.upper():
|
||||
found_rule = True
|
||||
add_action_helper(rule)
|
||||
|
||||
if not found_rule:
|
||||
from knack.util import CLIError
|
||||
raise CLIError("rule '{}' not found".format(rule_name))
|
||||
|
||||
return client.create_or_update(resource_group_name, front_door_name, rules_engine_name, rules=rules_engine.rules)
|
||||
|
||||
|
||||
def remove_rules_engine_action(cmd, resource_group_name, front_door_name, rules_engine_name,
|
||||
rule_name, action_type, index=None):
|
||||
def check_index(arr):
|
||||
if index is None or index >= len(arr):
|
||||
from knack.util import CLIError
|
||||
raise CLIError("Index out of bounds")
|
||||
|
||||
def remove_action_helper(rule):
|
||||
if action_type.lower() == 'requestheader':
|
||||
check_index(rule.action.request_header_actions)
|
||||
rule.action.request_header_actions = [v for (i, v) in
|
||||
enumerate(rule.action.request_header_actions) if i != index]
|
||||
|
||||
if action_type.lower() == 'responseheader':
|
||||
check_index(rule.action.response_header_actions)
|
||||
rule.action.response_header_actions = [v for (i, v) in
|
||||
enumerate(rule.action.response_header_actions) if i != index]
|
||||
|
||||
if 'routeoverride' in action_type.lower():
|
||||
rule.action.route_configuration_override = None
|
||||
|
||||
client = cf_fd_rules_engines(cmd.cli_ctx, None)
|
||||
rules_engine = client.get(resource_group_name, front_door_name, rules_engine_name)
|
||||
|
||||
found_rule = False
|
||||
for rule in rules_engine.rules:
|
||||
if rule.name.upper() == rule_name.upper():
|
||||
found_rule = True
|
||||
remove_action_helper(rule)
|
||||
# pylint: disable=len-as-condition
|
||||
if len(rule.action.request_header_actions) <= 0 and \
|
||||
len(rule.action.response_header_actions) <= 0 and \
|
||||
rule.action.route_configuration_override is None:
|
||||
from knack.util import CLIError
|
||||
raise CLIError("Cannot remove all actions from rule '{}'".format(rule_name))
|
||||
|
||||
if not found_rule:
|
||||
from knack.util import CLIError
|
||||
raise CLIError("rule '{}' not found".format(rule_name))
|
||||
|
||||
return client.create_or_update(resource_group_name, front_door_name, rules_engine_name, rules=rules_engine.rules)
|
||||
|
||||
|
||||
def list_rules_engine_action(cmd, resource_group_name,
|
||||
front_door_name, rules_engine_name,
|
||||
rule_name):
|
||||
client = cf_fd_rules_engines(cmd.cli_ctx, None)
|
||||
rules_engine = client.get(resource_group_name, front_door_name, rules_engine_name)
|
||||
|
||||
for rule in rules_engine.rules:
|
||||
if rule.name.upper() == rule_name.upper():
|
||||
return rule.action
|
||||
|
||||
from knack.util import CLIError
|
||||
raise CLIError("rule '{}' not found".format(rule_name))
|
||||
|
||||
# endregion
|
||||
|
|
Разница между файлами не показана из-за своего большого размера
Загрузить разницу
Разница между файлами не показана из-за своего большого размера
Загрузить разницу
|
@ -19,8 +19,8 @@ interactions:
|
|||
ParameterSetName:
|
||||
- -g -n --mode
|
||||
User-Agent:
|
||||
- python/3.6.6 (Windows-10-10.0.18362-SP0) msrest/0.6.8 msrest_azure/0.6.1 azure-mgmt-frontdoor/0.1.0
|
||||
Azure-SDK-For-Python AZURECLI/2.0.68
|
||||
- python/3.7.7 (Windows-10-10.0.18362-SP0) msrest/0.6.11 msrest_azure/0.6.2
|
||||
azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.2.0
|
||||
accept-language:
|
||||
- en-US
|
||||
method: PUT
|
||||
|
@ -41,7 +41,7 @@ interactions:
|
|||
content-type:
|
||||
- application/json; odata.metadata=minimal
|
||||
date:
|
||||
- Wed, 13 Nov 2019 22:16:57 GMT
|
||||
- Sun, 22 Mar 2020 02:43:44 GMT
|
||||
expires:
|
||||
- '-1'
|
||||
odata-version:
|
||||
|
@ -77,8 +77,8 @@ interactions:
|
|||
ParameterSetName:
|
||||
- -g --policy-name --type --version
|
||||
User-Agent:
|
||||
- python/3.6.6 (Windows-10-10.0.18362-SP0) msrest/0.6.8 msrest_azure/0.6.1 azure-mgmt-frontdoor/0.1.0
|
||||
Azure-SDK-For-Python AZURECLI/2.0.68
|
||||
- python/3.7.7 (Windows-10-10.0.18362-SP0) msrest/0.6.11 msrest_azure/0.6.2
|
||||
azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.2.0
|
||||
accept-language:
|
||||
- en-US
|
||||
method: GET
|
||||
|
@ -99,7 +99,7 @@ interactions:
|
|||
content-type:
|
||||
- application/json; odata.metadata=minimal
|
||||
date:
|
||||
- Wed, 13 Nov 2019 22:16:59 GMT
|
||||
- Sun, 22 Mar 2020 02:43:46 GMT
|
||||
expires:
|
||||
- '-1'
|
||||
odata-version:
|
||||
|
@ -143,8 +143,8 @@ interactions:
|
|||
ParameterSetName:
|
||||
- -g --policy-name --type --version
|
||||
User-Agent:
|
||||
- python/3.6.6 (Windows-10-10.0.18362-SP0) msrest/0.6.8 msrest_azure/0.6.1 azure-mgmt-frontdoor/0.1.0
|
||||
Azure-SDK-For-Python AZURECLI/2.0.68
|
||||
- python/3.7.7 (Windows-10-10.0.18362-SP0) msrest/0.6.11 msrest_azure/0.6.2
|
||||
azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.2.0
|
||||
accept-language:
|
||||
- en-US
|
||||
method: PUT
|
||||
|
@ -167,7 +167,7 @@ interactions:
|
|||
content-type:
|
||||
- application/json; odata.metadata=minimal
|
||||
date:
|
||||
- Wed, 13 Nov 2019 22:17:02 GMT
|
||||
- Sun, 22 Mar 2020 02:43:47 GMT
|
||||
expires:
|
||||
- '-1'
|
||||
odata-version:
|
||||
|
@ -187,7 +187,7 @@ interactions:
|
|||
x-content-type-options:
|
||||
- nosniff
|
||||
x-ms-ratelimit-remaining-subscription-writes:
|
||||
- '1195'
|
||||
- '1199'
|
||||
x-powered-by:
|
||||
- ASP.NET
|
||||
status:
|
||||
|
@ -207,8 +207,8 @@ interactions:
|
|||
ParameterSetName:
|
||||
- -g --policy-name --type
|
||||
User-Agent:
|
||||
- python/3.6.6 (Windows-10-10.0.18362-SP0) msrest/0.6.8 msrest_azure/0.6.1 azure-mgmt-frontdoor/0.1.0
|
||||
Azure-SDK-For-Python AZURECLI/2.0.68
|
||||
- python/3.7.7 (Windows-10-10.0.18362-SP0) msrest/0.6.11 msrest_azure/0.6.2
|
||||
azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.2.0
|
||||
accept-language:
|
||||
- en-US
|
||||
method: GET
|
||||
|
@ -231,7 +231,7 @@ interactions:
|
|||
content-type:
|
||||
- application/json; odata.metadata=minimal
|
||||
date:
|
||||
- Wed, 13 Nov 2019 22:17:02 GMT
|
||||
- Sun, 22 Mar 2020 02:43:48 GMT
|
||||
expires:
|
||||
- '-1'
|
||||
odata-version:
|
||||
|
@ -269,8 +269,8 @@ interactions:
|
|||
ParameterSetName:
|
||||
- -g --policy-name --type
|
||||
User-Agent:
|
||||
- python/3.6.6 (Windows-10-10.0.18362-SP0) msrest/0.6.8 msrest_azure/0.6.1 azure-mgmt-frontdoor/0.1.0
|
||||
Azure-SDK-For-Python AZURECLI/2.0.68
|
||||
- python/3.7.7 (Windows-10-10.0.18362-SP0) msrest/0.6.11 msrest_azure/0.6.2
|
||||
azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.2.0
|
||||
accept-language:
|
||||
- en-US
|
||||
method: GET
|
||||
|
@ -293,7 +293,7 @@ interactions:
|
|||
content-type:
|
||||
- application/json; odata.metadata=minimal
|
||||
date:
|
||||
- Wed, 13 Nov 2019 22:17:02 GMT
|
||||
- Sun, 22 Mar 2020 02:43:49 GMT
|
||||
expires:
|
||||
- '-1'
|
||||
odata-version:
|
||||
|
@ -331,8 +331,8 @@ interactions:
|
|||
ParameterSetName:
|
||||
- -g --policy-name --type --match-variable --operator --value
|
||||
User-Agent:
|
||||
- python/3.6.6 (Windows-10-10.0.18362-SP0) msrest/0.6.8 msrest_azure/0.6.1 azure-mgmt-frontdoor/0.1.0
|
||||
Azure-SDK-For-Python AZURECLI/2.0.68
|
||||
- python/3.7.7 (Windows-10-10.0.18362-SP0) msrest/0.6.11 msrest_azure/0.6.2
|
||||
azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.2.0
|
||||
accept-language:
|
||||
- en-US
|
||||
method: GET
|
||||
|
@ -355,7 +355,7 @@ interactions:
|
|||
content-type:
|
||||
- application/json; odata.metadata=minimal
|
||||
date:
|
||||
- Wed, 13 Nov 2019 22:17:03 GMT
|
||||
- Sun, 22 Mar 2020 02:43:50 GMT
|
||||
expires:
|
||||
- '-1'
|
||||
odata-version:
|
||||
|
@ -401,8 +401,8 @@ interactions:
|
|||
ParameterSetName:
|
||||
- -g --policy-name --type --match-variable --operator --value
|
||||
User-Agent:
|
||||
- python/3.6.6 (Windows-10-10.0.18362-SP0) msrest/0.6.8 msrest_azure/0.6.1 azure-mgmt-frontdoor/0.1.0
|
||||
Azure-SDK-For-Python AZURECLI/2.0.68
|
||||
- python/3.7.7 (Windows-10-10.0.18362-SP0) msrest/0.6.11 msrest_azure/0.6.2
|
||||
azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.2.0
|
||||
accept-language:
|
||||
- en-US
|
||||
method: PUT
|
||||
|
@ -425,7 +425,7 @@ interactions:
|
|||
content-type:
|
||||
- application/json; odata.metadata=minimal
|
||||
date:
|
||||
- Wed, 13 Nov 2019 22:17:05 GMT
|
||||
- Sun, 22 Mar 2020 02:43:51 GMT
|
||||
expires:
|
||||
- '-1'
|
||||
odata-version:
|
||||
|
@ -445,7 +445,7 @@ interactions:
|
|||
x-content-type-options:
|
||||
- nosniff
|
||||
x-ms-ratelimit-remaining-subscription-writes:
|
||||
- '1195'
|
||||
- '1198'
|
||||
x-powered-by:
|
||||
- ASP.NET
|
||||
status:
|
||||
|
@ -465,8 +465,8 @@ interactions:
|
|||
ParameterSetName:
|
||||
- -g --policy-name --type
|
||||
User-Agent:
|
||||
- python/3.6.6 (Windows-10-10.0.18362-SP0) msrest/0.6.8 msrest_azure/0.6.1 azure-mgmt-frontdoor/0.1.0
|
||||
Azure-SDK-For-Python AZURECLI/2.0.68
|
||||
- python/3.7.7 (Windows-10-10.0.18362-SP0) msrest/0.6.11 msrest_azure/0.6.2
|
||||
azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.2.0
|
||||
accept-language:
|
||||
- en-US
|
||||
method: GET
|
||||
|
@ -489,7 +489,7 @@ interactions:
|
|||
content-type:
|
||||
- application/json; odata.metadata=minimal
|
||||
date:
|
||||
- Wed, 13 Nov 2019 22:17:06 GMT
|
||||
- Sun, 22 Mar 2020 02:43:53 GMT
|
||||
expires:
|
||||
- '-1'
|
||||
odata-version:
|
||||
|
@ -527,8 +527,8 @@ interactions:
|
|||
ParameterSetName:
|
||||
- -g --policy-name --type
|
||||
User-Agent:
|
||||
- python/3.6.6 (Windows-10-10.0.18362-SP0) msrest/0.6.8 msrest_azure/0.6.1 azure-mgmt-frontdoor/0.1.0
|
||||
Azure-SDK-For-Python AZURECLI/2.0.68
|
||||
- python/3.7.7 (Windows-10-10.0.18362-SP0) msrest/0.6.11 msrest_azure/0.6.2
|
||||
azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.2.0
|
||||
accept-language:
|
||||
- en-US
|
||||
method: GET
|
||||
|
@ -551,7 +551,7 @@ interactions:
|
|||
content-type:
|
||||
- application/json; odata.metadata=minimal
|
||||
date:
|
||||
- Wed, 13 Nov 2019 22:17:07 GMT
|
||||
- Sun, 22 Mar 2020 02:43:53 GMT
|
||||
expires:
|
||||
- '-1'
|
||||
odata-version:
|
||||
|
@ -589,8 +589,8 @@ interactions:
|
|||
ParameterSetName:
|
||||
- -g --policy-name --type --match-variable --operator --value
|
||||
User-Agent:
|
||||
- python/3.6.6 (Windows-10-10.0.18362-SP0) msrest/0.6.8 msrest_azure/0.6.1 azure-mgmt-frontdoor/0.1.0
|
||||
Azure-SDK-For-Python AZURECLI/2.0.68
|
||||
- python/3.7.7 (Windows-10-10.0.18362-SP0) msrest/0.6.11 msrest_azure/0.6.2
|
||||
azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.2.0
|
||||
accept-language:
|
||||
- en-US
|
||||
method: GET
|
||||
|
@ -613,7 +613,7 @@ interactions:
|
|||
content-type:
|
||||
- application/json; odata.metadata=minimal
|
||||
date:
|
||||
- Wed, 13 Nov 2019 22:17:08 GMT
|
||||
- Sun, 22 Mar 2020 02:43:54 GMT
|
||||
expires:
|
||||
- '-1'
|
||||
odata-version:
|
||||
|
@ -658,8 +658,8 @@ interactions:
|
|||
ParameterSetName:
|
||||
- -g --policy-name --type --match-variable --operator --value
|
||||
User-Agent:
|
||||
- python/3.6.6 (Windows-10-10.0.18362-SP0) msrest/0.6.8 msrest_azure/0.6.1 azure-mgmt-frontdoor/0.1.0
|
||||
Azure-SDK-For-Python AZURECLI/2.0.68
|
||||
- python/3.7.7 (Windows-10-10.0.18362-SP0) msrest/0.6.11 msrest_azure/0.6.2
|
||||
azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.2.0
|
||||
accept-language:
|
||||
- en-US
|
||||
method: PUT
|
||||
|
@ -682,7 +682,7 @@ interactions:
|
|||
content-type:
|
||||
- application/json; odata.metadata=minimal
|
||||
date:
|
||||
- Wed, 13 Nov 2019 22:17:09 GMT
|
||||
- Sun, 22 Mar 2020 02:43:55 GMT
|
||||
expires:
|
||||
- '-1'
|
||||
odata-version:
|
||||
|
@ -702,7 +702,7 @@ interactions:
|
|||
x-content-type-options:
|
||||
- nosniff
|
||||
x-ms-ratelimit-remaining-subscription-writes:
|
||||
- '1199'
|
||||
- '1197'
|
||||
x-powered-by:
|
||||
- ASP.NET
|
||||
status:
|
||||
|
@ -722,8 +722,8 @@ interactions:
|
|||
ParameterSetName:
|
||||
- -g --policy-name --type
|
||||
User-Agent:
|
||||
- python/3.6.6 (Windows-10-10.0.18362-SP0) msrest/0.6.8 msrest_azure/0.6.1 azure-mgmt-frontdoor/0.1.0
|
||||
Azure-SDK-For-Python AZURECLI/2.0.68
|
||||
- python/3.7.7 (Windows-10-10.0.18362-SP0) msrest/0.6.11 msrest_azure/0.6.2
|
||||
azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.2.0
|
||||
accept-language:
|
||||
- en-US
|
||||
method: GET
|
||||
|
@ -746,7 +746,7 @@ interactions:
|
|||
content-type:
|
||||
- application/json; odata.metadata=minimal
|
||||
date:
|
||||
- Wed, 13 Nov 2019 22:17:11 GMT
|
||||
- Sun, 22 Mar 2020 02:43:56 GMT
|
||||
expires:
|
||||
- '-1'
|
||||
odata-version:
|
||||
|
@ -784,8 +784,8 @@ interactions:
|
|||
ParameterSetName:
|
||||
- -g --policy-name --type
|
||||
User-Agent:
|
||||
- python/3.6.6 (Windows-10-10.0.18362-SP0) msrest/0.6.8 msrest_azure/0.6.1 azure-mgmt-frontdoor/0.1.0
|
||||
Azure-SDK-For-Python AZURECLI/2.0.68
|
||||
- python/3.7.7 (Windows-10-10.0.18362-SP0) msrest/0.6.11 msrest_azure/0.6.2
|
||||
azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.2.0
|
||||
accept-language:
|
||||
- en-US
|
||||
method: GET
|
||||
|
@ -808,7 +808,7 @@ interactions:
|
|||
content-type:
|
||||
- application/json; odata.metadata=minimal
|
||||
date:
|
||||
- Wed, 13 Nov 2019 22:17:13 GMT
|
||||
- Sun, 22 Mar 2020 02:43:57 GMT
|
||||
expires:
|
||||
- '-1'
|
||||
odata-version:
|
||||
|
@ -846,8 +846,8 @@ interactions:
|
|||
ParameterSetName:
|
||||
- -g --policy-name --type --rule-group-id
|
||||
User-Agent:
|
||||
- python/3.6.6 (Windows-10-10.0.18362-SP0) msrest/0.6.8 msrest_azure/0.6.1 azure-mgmt-frontdoor/0.1.0
|
||||
Azure-SDK-For-Python AZURECLI/2.0.68
|
||||
- python/3.7.7 (Windows-10-10.0.18362-SP0) msrest/0.6.11 msrest_azure/0.6.2
|
||||
azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.2.0
|
||||
accept-language:
|
||||
- en-US
|
||||
method: GET
|
||||
|
@ -870,7 +870,7 @@ interactions:
|
|||
content-type:
|
||||
- application/json; odata.metadata=minimal
|
||||
date:
|
||||
- Wed, 13 Nov 2019 22:17:13 GMT
|
||||
- Sun, 22 Mar 2020 02:43:58 GMT
|
||||
expires:
|
||||
- '-1'
|
||||
odata-version:
|
||||
|
@ -908,8 +908,8 @@ interactions:
|
|||
ParameterSetName:
|
||||
- -g --policy-name --type --rule-group-id
|
||||
User-Agent:
|
||||
- python/3.6.6 (Windows-10-10.0.18362-SP0) msrest/0.6.8 msrest_azure/0.6.1 azure-mgmt-frontdoor/0.1.0
|
||||
Azure-SDK-For-Python AZURECLI/2.0.68
|
||||
- python/3.7.7 (Windows-10-10.0.18362-SP0) msrest/0.6.11 msrest_azure/0.6.2
|
||||
azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.2.0
|
||||
accept-language:
|
||||
- en-US
|
||||
method: GET
|
||||
|
@ -932,7 +932,7 @@ interactions:
|
|||
content-type:
|
||||
- application/json; odata.metadata=minimal
|
||||
date:
|
||||
- Wed, 13 Nov 2019 22:17:15 GMT
|
||||
- Sun, 22 Mar 2020 02:43:59 GMT
|
||||
expires:
|
||||
- '-1'
|
||||
odata-version:
|
||||
|
@ -970,8 +970,8 @@ interactions:
|
|||
ParameterSetName:
|
||||
- -g --policy-name --type --rule-group-id --match-variable --operator --value
|
||||
User-Agent:
|
||||
- python/3.6.6 (Windows-10-10.0.18362-SP0) msrest/0.6.8 msrest_azure/0.6.1 azure-mgmt-frontdoor/0.1.0
|
||||
Azure-SDK-For-Python AZURECLI/2.0.68
|
||||
- python/3.7.7 (Windows-10-10.0.18362-SP0) msrest/0.6.11 msrest_azure/0.6.2
|
||||
azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.2.0
|
||||
accept-language:
|
||||
- en-US
|
||||
method: GET
|
||||
|
@ -994,7 +994,7 @@ interactions:
|
|||
content-type:
|
||||
- application/json; odata.metadata=minimal
|
||||
date:
|
||||
- Wed, 13 Nov 2019 22:17:16 GMT
|
||||
- Sun, 22 Mar 2020 02:43:59 GMT
|
||||
expires:
|
||||
- '-1'
|
||||
odata-version:
|
||||
|
@ -1041,8 +1041,8 @@ interactions:
|
|||
ParameterSetName:
|
||||
- -g --policy-name --type --rule-group-id --match-variable --operator --value
|
||||
User-Agent:
|
||||
- python/3.6.6 (Windows-10-10.0.18362-SP0) msrest/0.6.8 msrest_azure/0.6.1 azure-mgmt-frontdoor/0.1.0
|
||||
Azure-SDK-For-Python AZURECLI/2.0.68
|
||||
- python/3.7.7 (Windows-10-10.0.18362-SP0) msrest/0.6.11 msrest_azure/0.6.2
|
||||
azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.2.0
|
||||
accept-language:
|
||||
- en-US
|
||||
method: PUT
|
||||
|
@ -1068,7 +1068,7 @@ interactions:
|
|||
content-type:
|
||||
- application/json; odata.metadata=minimal
|
||||
date:
|
||||
- Wed, 13 Nov 2019 22:17:17 GMT
|
||||
- Sun, 22 Mar 2020 02:44:01 GMT
|
||||
expires:
|
||||
- '-1'
|
||||
odata-version:
|
||||
|
@ -1088,7 +1088,7 @@ interactions:
|
|||
x-content-type-options:
|
||||
- nosniff
|
||||
x-ms-ratelimit-remaining-subscription-writes:
|
||||
- '1197'
|
||||
- '1199'
|
||||
x-powered-by:
|
||||
- ASP.NET
|
||||
status:
|
||||
|
@ -1108,8 +1108,8 @@ interactions:
|
|||
ParameterSetName:
|
||||
- -g --policy-name --type --rule-group-id
|
||||
User-Agent:
|
||||
- python/3.6.6 (Windows-10-10.0.18362-SP0) msrest/0.6.8 msrest_azure/0.6.1 azure-mgmt-frontdoor/0.1.0
|
||||
Azure-SDK-For-Python AZURECLI/2.0.68
|
||||
- python/3.7.7 (Windows-10-10.0.18362-SP0) msrest/0.6.11 msrest_azure/0.6.2
|
||||
azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.2.0
|
||||
accept-language:
|
||||
- en-US
|
||||
method: GET
|
||||
|
@ -1135,7 +1135,7 @@ interactions:
|
|||
content-type:
|
||||
- application/json; odata.metadata=minimal
|
||||
date:
|
||||
- Wed, 13 Nov 2019 22:17:19 GMT
|
||||
- Sun, 22 Mar 2020 02:44:01 GMT
|
||||
expires:
|
||||
- '-1'
|
||||
odata-version:
|
||||
|
@ -1173,8 +1173,8 @@ interactions:
|
|||
ParameterSetName:
|
||||
- -g --policy-name --type --rule-group-id
|
||||
User-Agent:
|
||||
- python/3.6.6 (Windows-10-10.0.18362-SP0) msrest/0.6.8 msrest_azure/0.6.1 azure-mgmt-frontdoor/0.1.0
|
||||
Azure-SDK-For-Python AZURECLI/2.0.68
|
||||
- python/3.7.7 (Windows-10-10.0.18362-SP0) msrest/0.6.11 msrest_azure/0.6.2
|
||||
azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.2.0
|
||||
accept-language:
|
||||
- en-US
|
||||
method: GET
|
||||
|
@ -1200,7 +1200,7 @@ interactions:
|
|||
content-type:
|
||||
- application/json; odata.metadata=minimal
|
||||
date:
|
||||
- Wed, 13 Nov 2019 22:17:19 GMT
|
||||
- Sun, 22 Mar 2020 02:44:02 GMT
|
||||
expires:
|
||||
- '-1'
|
||||
odata-version:
|
||||
|
@ -1238,8 +1238,8 @@ interactions:
|
|||
ParameterSetName:
|
||||
- -g --policy-name --type --rule-group-id --match-variable --operator --value
|
||||
User-Agent:
|
||||
- python/3.6.6 (Windows-10-10.0.18362-SP0) msrest/0.6.8 msrest_azure/0.6.1 azure-mgmt-frontdoor/0.1.0
|
||||
Azure-SDK-For-Python AZURECLI/2.0.68
|
||||
- python/3.7.7 (Windows-10-10.0.18362-SP0) msrest/0.6.11 msrest_azure/0.6.2
|
||||
azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.2.0
|
||||
accept-language:
|
||||
- en-US
|
||||
method: GET
|
||||
|
@ -1265,7 +1265,7 @@ interactions:
|
|||
content-type:
|
||||
- application/json; odata.metadata=minimal
|
||||
date:
|
||||
- Wed, 13 Nov 2019 22:17:20 GMT
|
||||
- Sun, 22 Mar 2020 02:44:03 GMT
|
||||
expires:
|
||||
- '-1'
|
||||
odata-version:
|
||||
|
@ -1311,8 +1311,8 @@ interactions:
|
|||
ParameterSetName:
|
||||
- -g --policy-name --type --rule-group-id --match-variable --operator --value
|
||||
User-Agent:
|
||||
- python/3.6.6 (Windows-10-10.0.18362-SP0) msrest/0.6.8 msrest_azure/0.6.1 azure-mgmt-frontdoor/0.1.0
|
||||
Azure-SDK-For-Python AZURECLI/2.0.68
|
||||
- python/3.7.7 (Windows-10-10.0.18362-SP0) msrest/0.6.11 msrest_azure/0.6.2
|
||||
azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.2.0
|
||||
accept-language:
|
||||
- en-US
|
||||
method: PUT
|
||||
|
@ -1337,7 +1337,7 @@ interactions:
|
|||
content-type:
|
||||
- application/json; odata.metadata=minimal
|
||||
date:
|
||||
- Wed, 13 Nov 2019 22:17:21 GMT
|
||||
- Sun, 22 Mar 2020 02:44:05 GMT
|
||||
expires:
|
||||
- '-1'
|
||||
odata-version:
|
||||
|
@ -1377,8 +1377,8 @@ interactions:
|
|||
ParameterSetName:
|
||||
- -g --policy-name --type --rule-group-id --rule-id
|
||||
User-Agent:
|
||||
- python/3.6.6 (Windows-10-10.0.18362-SP0) msrest/0.6.8 msrest_azure/0.6.1 azure-mgmt-frontdoor/0.1.0
|
||||
Azure-SDK-For-Python AZURECLI/2.0.68
|
||||
- python/3.7.7 (Windows-10-10.0.18362-SP0) msrest/0.6.11 msrest_azure/0.6.2
|
||||
azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.2.0
|
||||
accept-language:
|
||||
- en-US
|
||||
method: GET
|
||||
|
@ -1403,7 +1403,7 @@ interactions:
|
|||
content-type:
|
||||
- application/json; odata.metadata=minimal
|
||||
date:
|
||||
- Wed, 13 Nov 2019 22:17:23 GMT
|
||||
- Sun, 22 Mar 2020 02:44:05 GMT
|
||||
expires:
|
||||
- '-1'
|
||||
odata-version:
|
||||
|
@ -1441,8 +1441,8 @@ interactions:
|
|||
ParameterSetName:
|
||||
- -g --policy-name --type --rule-group-id --rule-id
|
||||
User-Agent:
|
||||
- python/3.6.6 (Windows-10-10.0.18362-SP0) msrest/0.6.8 msrest_azure/0.6.1 azure-mgmt-frontdoor/0.1.0
|
||||
Azure-SDK-For-Python AZURECLI/2.0.68
|
||||
- python/3.7.7 (Windows-10-10.0.18362-SP0) msrest/0.6.11 msrest_azure/0.6.2
|
||||
azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.2.0
|
||||
accept-language:
|
||||
- en-US
|
||||
method: GET
|
||||
|
@ -1467,7 +1467,7 @@ interactions:
|
|||
content-type:
|
||||
- application/json; odata.metadata=minimal
|
||||
date:
|
||||
- Wed, 13 Nov 2019 22:17:24 GMT
|
||||
- Sun, 22 Mar 2020 02:44:06 GMT
|
||||
expires:
|
||||
- '-1'
|
||||
odata-version:
|
||||
|
@ -1506,8 +1506,8 @@ interactions:
|
|||
- -g --policy-name --type --rule-group-id --rule-id --match-variable --operator
|
||||
--value
|
||||
User-Agent:
|
||||
- python/3.6.6 (Windows-10-10.0.18362-SP0) msrest/0.6.8 msrest_azure/0.6.1 azure-mgmt-frontdoor/0.1.0
|
||||
Azure-SDK-For-Python AZURECLI/2.0.68
|
||||
- python/3.7.7 (Windows-10-10.0.18362-SP0) msrest/0.6.11 msrest_azure/0.6.2
|
||||
azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.2.0
|
||||
accept-language:
|
||||
- en-US
|
||||
method: GET
|
||||
|
@ -1532,7 +1532,7 @@ interactions:
|
|||
content-type:
|
||||
- application/json; odata.metadata=minimal
|
||||
date:
|
||||
- Wed, 13 Nov 2019 22:17:24 GMT
|
||||
- Sun, 22 Mar 2020 02:44:07 GMT
|
||||
expires:
|
||||
- '-1'
|
||||
odata-version:
|
||||
|
@ -1580,8 +1580,8 @@ interactions:
|
|||
- -g --policy-name --type --rule-group-id --rule-id --match-variable --operator
|
||||
--value
|
||||
User-Agent:
|
||||
- python/3.6.6 (Windows-10-10.0.18362-SP0) msrest/0.6.8 msrest_azure/0.6.1 azure-mgmt-frontdoor/0.1.0
|
||||
Azure-SDK-For-Python AZURECLI/2.0.68
|
||||
- python/3.7.7 (Windows-10-10.0.18362-SP0) msrest/0.6.11 msrest_azure/0.6.2
|
||||
azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.2.0
|
||||
accept-language:
|
||||
- en-US
|
||||
method: PUT
|
||||
|
@ -1594,7 +1594,7 @@ interactions:
|
|||
\ },\"customRules\":{\r\n \"rules\":[\r\n \r\n ]\r\n },\"managedRules\":{\r\n
|
||||
\ \"managedRuleSets\":[\r\n {\r\n \"ruleSetType\":\"DefaultRuleSet\",\"ruleSetVersion\":\"1.0\",\"ruleGroupOverrides\":[\r\n
|
||||
\ {\r\n \"ruleGroupName\":\"SQLI\",\"rules\":[\r\n
|
||||
\ {\r\n \"ruleId\":\"942100\",\"enabledState\":null,\"action\":null,\"exclusions\":[\r\n
|
||||
\ {\r\n \"ruleId\":\"942100\",\"enabledState\":\"Enabled\",\"action\":\"Block\",\"exclusions\":[\r\n
|
||||
\ {\r\n \"matchVariable\":\"RequestHeaderNames\",\"selectorMatchOperator\":\"Contains\",\"selector\":\"ignoreme\"\r\n
|
||||
\ }\r\n ]\r\n }\r\n ],\"exclusions\":[\r\n
|
||||
\ \r\n ]\r\n }\r\n ],\"exclusions\":[\r\n
|
||||
|
@ -1604,11 +1604,11 @@ interactions:
|
|||
cache-control:
|
||||
- no-cache
|
||||
content-length:
|
||||
- '1417'
|
||||
- '1425'
|
||||
content-type:
|
||||
- application/json; odata.metadata=minimal
|
||||
date:
|
||||
- Wed, 13 Nov 2019 22:17:26 GMT
|
||||
- Sun, 22 Mar 2020 02:44:08 GMT
|
||||
expires:
|
||||
- '-1'
|
||||
odata-version:
|
||||
|
@ -1628,7 +1628,7 @@ interactions:
|
|||
x-content-type-options:
|
||||
- nosniff
|
||||
x-ms-ratelimit-remaining-subscription-writes:
|
||||
- '1198'
|
||||
- '1197'
|
||||
x-powered-by:
|
||||
- ASP.NET
|
||||
status:
|
||||
|
@ -1648,8 +1648,8 @@ interactions:
|
|||
ParameterSetName:
|
||||
- -g --policy-name --type --rule-group-id --rule-id
|
||||
User-Agent:
|
||||
- python/3.6.6 (Windows-10-10.0.18362-SP0) msrest/0.6.8 msrest_azure/0.6.1 azure-mgmt-frontdoor/0.1.0
|
||||
Azure-SDK-For-Python AZURECLI/2.0.68
|
||||
- python/3.7.7 (Windows-10-10.0.18362-SP0) msrest/0.6.11 msrest_azure/0.6.2
|
||||
azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.2.0
|
||||
accept-language:
|
||||
- en-US
|
||||
method: GET
|
||||
|
@ -1662,7 +1662,7 @@ interactions:
|
|||
\ },\"customRules\":{\r\n \"rules\":[\r\n \r\n ]\r\n },\"managedRules\":{\r\n
|
||||
\ \"managedRuleSets\":[\r\n {\r\n \"ruleSetType\":\"DefaultRuleSet\",\"ruleSetVersion\":\"1.0\",\"ruleGroupOverrides\":[\r\n
|
||||
\ {\r\n \"ruleGroupName\":\"SQLI\",\"rules\":[\r\n
|
||||
\ {\r\n \"ruleId\":\"942100\",\"enabledState\":null,\"action\":null,\"exclusions\":[\r\n
|
||||
\ {\r\n \"ruleId\":\"942100\",\"enabledState\":\"Enabled\",\"action\":\"Block\",\"exclusions\":[\r\n
|
||||
\ {\r\n \"matchVariable\":\"RequestHeaderNames\",\"selectorMatchOperator\":\"Contains\",\"selector\":\"ignoreme\"\r\n
|
||||
\ }\r\n ]\r\n }\r\n ],\"exclusions\":[\r\n
|
||||
\ \r\n ]\r\n }\r\n ],\"exclusions\":[\r\n
|
||||
|
@ -1672,11 +1672,11 @@ interactions:
|
|||
cache-control:
|
||||
- no-cache
|
||||
content-length:
|
||||
- '1417'
|
||||
- '1425'
|
||||
content-type:
|
||||
- application/json; odata.metadata=minimal
|
||||
date:
|
||||
- Wed, 13 Nov 2019 22:17:27 GMT
|
||||
- Sun, 22 Mar 2020 02:44:09 GMT
|
||||
expires:
|
||||
- '-1'
|
||||
odata-version:
|
||||
|
@ -1714,8 +1714,8 @@ interactions:
|
|||
ParameterSetName:
|
||||
- -g --policy-name --type --rule-group-id --rule-id
|
||||
User-Agent:
|
||||
- python/3.6.6 (Windows-10-10.0.18362-SP0) msrest/0.6.8 msrest_azure/0.6.1 azure-mgmt-frontdoor/0.1.0
|
||||
Azure-SDK-For-Python AZURECLI/2.0.68
|
||||
- python/3.7.7 (Windows-10-10.0.18362-SP0) msrest/0.6.11 msrest_azure/0.6.2
|
||||
azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.2.0
|
||||
accept-language:
|
||||
- en-US
|
||||
method: GET
|
||||
|
@ -1728,7 +1728,7 @@ interactions:
|
|||
\ },\"customRules\":{\r\n \"rules\":[\r\n \r\n ]\r\n },\"managedRules\":{\r\n
|
||||
\ \"managedRuleSets\":[\r\n {\r\n \"ruleSetType\":\"DefaultRuleSet\",\"ruleSetVersion\":\"1.0\",\"ruleGroupOverrides\":[\r\n
|
||||
\ {\r\n \"ruleGroupName\":\"SQLI\",\"rules\":[\r\n
|
||||
\ {\r\n \"ruleId\":\"942100\",\"enabledState\":null,\"action\":null,\"exclusions\":[\r\n
|
||||
\ {\r\n \"ruleId\":\"942100\",\"enabledState\":\"Enabled\",\"action\":\"Block\",\"exclusions\":[\r\n
|
||||
\ {\r\n \"matchVariable\":\"RequestHeaderNames\",\"selectorMatchOperator\":\"Contains\",\"selector\":\"ignoreme\"\r\n
|
||||
\ }\r\n ]\r\n }\r\n ],\"exclusions\":[\r\n
|
||||
\ \r\n ]\r\n }\r\n ],\"exclusions\":[\r\n
|
||||
|
@ -1738,11 +1738,11 @@ interactions:
|
|||
cache-control:
|
||||
- no-cache
|
||||
content-length:
|
||||
- '1417'
|
||||
- '1425'
|
||||
content-type:
|
||||
- application/json; odata.metadata=minimal
|
||||
date:
|
||||
- Wed, 13 Nov 2019 22:17:27 GMT
|
||||
- Sun, 22 Mar 2020 02:44:09 GMT
|
||||
expires:
|
||||
- '-1'
|
||||
odata-version:
|
||||
|
@ -1781,8 +1781,8 @@ interactions:
|
|||
- -g --policy-name --type --rule-group-id --rule-id --match-variable --operator
|
||||
--value
|
||||
User-Agent:
|
||||
- python/3.6.6 (Windows-10-10.0.18362-SP0) msrest/0.6.8 msrest_azure/0.6.1 azure-mgmt-frontdoor/0.1.0
|
||||
Azure-SDK-For-Python AZURECLI/2.0.68
|
||||
- python/3.7.7 (Windows-10-10.0.18362-SP0) msrest/0.6.11 msrest_azure/0.6.2
|
||||
azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.2.0
|
||||
accept-language:
|
||||
- en-US
|
||||
method: GET
|
||||
|
@ -1795,7 +1795,7 @@ interactions:
|
|||
\ },\"customRules\":{\r\n \"rules\":[\r\n \r\n ]\r\n },\"managedRules\":{\r\n
|
||||
\ \"managedRuleSets\":[\r\n {\r\n \"ruleSetType\":\"DefaultRuleSet\",\"ruleSetVersion\":\"1.0\",\"ruleGroupOverrides\":[\r\n
|
||||
\ {\r\n \"ruleGroupName\":\"SQLI\",\"rules\":[\r\n
|
||||
\ {\r\n \"ruleId\":\"942100\",\"enabledState\":null,\"action\":null,\"exclusions\":[\r\n
|
||||
\ {\r\n \"ruleId\":\"942100\",\"enabledState\":\"Enabled\",\"action\":\"Block\",\"exclusions\":[\r\n
|
||||
\ {\r\n \"matchVariable\":\"RequestHeaderNames\",\"selectorMatchOperator\":\"Contains\",\"selector\":\"ignoreme\"\r\n
|
||||
\ }\r\n ]\r\n }\r\n ],\"exclusions\":[\r\n
|
||||
\ \r\n ]\r\n }\r\n ],\"exclusions\":[\r\n
|
||||
|
@ -1805,11 +1805,11 @@ interactions:
|
|||
cache-control:
|
||||
- no-cache
|
||||
content-length:
|
||||
- '1417'
|
||||
- '1425'
|
||||
content-type:
|
||||
- application/json; odata.metadata=minimal
|
||||
date:
|
||||
- Wed, 13 Nov 2019 22:17:29 GMT
|
||||
- Sun, 22 Mar 2020 02:44:10 GMT
|
||||
expires:
|
||||
- '-1'
|
||||
odata-version:
|
||||
|
@ -1838,7 +1838,8 @@ interactions:
|
|||
"Enabled", "mode": "Prevention"}, "customRules": {"rules": []}, "managedRules":
|
||||
{"managedRuleSets": [{"ruleSetType": "DefaultRuleSet", "ruleSetVersion": "1.0",
|
||||
"exclusions": [], "ruleGroupOverrides": [{"ruleGroupName": "SQLI", "exclusions":
|
||||
[], "rules": [{"ruleId": "942100", "exclusions": []}]}]}]}}}'
|
||||
[], "rules": [{"ruleId": "942100", "enabledState": "Enabled", "action": "Block",
|
||||
"exclusions": []}]}]}]}}}'
|
||||
headers:
|
||||
Accept:
|
||||
- application/json
|
||||
|
@ -1849,15 +1850,15 @@ interactions:
|
|||
Connection:
|
||||
- keep-alive
|
||||
Content-Length:
|
||||
- '386'
|
||||
- '432'
|
||||
Content-Type:
|
||||
- application/json; charset=utf-8
|
||||
ParameterSetName:
|
||||
- -g --policy-name --type --rule-group-id --rule-id --match-variable --operator
|
||||
--value
|
||||
User-Agent:
|
||||
- python/3.6.6 (Windows-10-10.0.18362-SP0) msrest/0.6.8 msrest_azure/0.6.1 azure-mgmt-frontdoor/0.1.0
|
||||
Azure-SDK-For-Python AZURECLI/2.0.68
|
||||
- python/3.7.7 (Windows-10-10.0.18362-SP0) msrest/0.6.11 msrest_azure/0.6.2
|
||||
azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.2.0
|
||||
accept-language:
|
||||
- en-US
|
||||
method: PUT
|
||||
|
@ -1870,7 +1871,7 @@ interactions:
|
|||
\ },\"customRules\":{\r\n \"rules\":[\r\n \r\n ]\r\n },\"managedRules\":{\r\n
|
||||
\ \"managedRuleSets\":[\r\n {\r\n \"ruleSetType\":\"DefaultRuleSet\",\"ruleSetVersion\":\"1.0\",\"ruleGroupOverrides\":[\r\n
|
||||
\ {\r\n \"ruleGroupName\":\"SQLI\",\"rules\":[\r\n
|
||||
\ {\r\n \"ruleId\":\"942100\",\"enabledState\":null,\"action\":null,\"exclusions\":[\r\n
|
||||
\ {\r\n \"ruleId\":\"942100\",\"enabledState\":\"Enabled\",\"action\":\"Block\",\"exclusions\":[\r\n
|
||||
\ \r\n ]\r\n }\r\n ],\"exclusions\":[\r\n
|
||||
\ \r\n ]\r\n }\r\n ],\"exclusions\":[\r\n
|
||||
\ \r\n ]\r\n }\r\n ]\r\n },\"frontendEndpointLinks\":[\r\n
|
||||
|
@ -1879,11 +1880,11 @@ interactions:
|
|||
cache-control:
|
||||
- no-cache
|
||||
content-length:
|
||||
- '1276'
|
||||
- '1284'
|
||||
content-type:
|
||||
- application/json; odata.metadata=minimal
|
||||
date:
|
||||
- Wed, 13 Nov 2019 22:17:30 GMT
|
||||
- Sun, 22 Mar 2020 02:44:11 GMT
|
||||
expires:
|
||||
- '-1'
|
||||
odata-version:
|
||||
|
@ -1923,8 +1924,8 @@ interactions:
|
|||
ParameterSetName:
|
||||
- -g --policy-name --type --rule-group-id --rule-id
|
||||
User-Agent:
|
||||
- python/3.6.6 (Windows-10-10.0.18362-SP0) msrest/0.6.8 msrest_azure/0.6.1 azure-mgmt-frontdoor/0.1.0
|
||||
Azure-SDK-For-Python AZURECLI/2.0.68
|
||||
- python/3.7.7 (Windows-10-10.0.18362-SP0) msrest/0.6.11 msrest_azure/0.6.2
|
||||
azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.2.0
|
||||
accept-language:
|
||||
- en-US
|
||||
method: GET
|
||||
|
@ -1937,7 +1938,7 @@ interactions:
|
|||
\ },\"customRules\":{\r\n \"rules\":[\r\n \r\n ]\r\n },\"managedRules\":{\r\n
|
||||
\ \"managedRuleSets\":[\r\n {\r\n \"ruleSetType\":\"DefaultRuleSet\",\"ruleSetVersion\":\"1.0\",\"ruleGroupOverrides\":[\r\n
|
||||
\ {\r\n \"ruleGroupName\":\"SQLI\",\"rules\":[\r\n
|
||||
\ {\r\n \"ruleId\":\"942100\",\"enabledState\":null,\"action\":null,\"exclusions\":[\r\n
|
||||
\ {\r\n \"ruleId\":\"942100\",\"enabledState\":\"Enabled\",\"action\":\"Block\",\"exclusions\":[\r\n
|
||||
\ \r\n ]\r\n }\r\n ],\"exclusions\":[\r\n
|
||||
\ \r\n ]\r\n }\r\n ],\"exclusions\":[\r\n
|
||||
\ \r\n ]\r\n }\r\n ]\r\n },\"frontendEndpointLinks\":[\r\n
|
||||
|
@ -1946,11 +1947,11 @@ interactions:
|
|||
cache-control:
|
||||
- no-cache
|
||||
content-length:
|
||||
- '1276'
|
||||
- '1284'
|
||||
content-type:
|
||||
- application/json; odata.metadata=minimal
|
||||
date:
|
||||
- Wed, 13 Nov 2019 22:17:31 GMT
|
||||
- Sun, 22 Mar 2020 02:44:13 GMT
|
||||
expires:
|
||||
- '-1'
|
||||
odata-version:
|
||||
|
@ -1988,8 +1989,8 @@ interactions:
|
|||
ParameterSetName:
|
||||
- -g --policy-name --type --rule-group-id --rule-id
|
||||
User-Agent:
|
||||
- python/3.6.6 (Windows-10-10.0.18362-SP0) msrest/0.6.8 msrest_azure/0.6.1 azure-mgmt-frontdoor/0.1.0
|
||||
Azure-SDK-For-Python AZURECLI/2.0.68
|
||||
- python/3.7.7 (Windows-10-10.0.18362-SP0) msrest/0.6.11 msrest_azure/0.6.2
|
||||
azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.2.0
|
||||
accept-language:
|
||||
- en-US
|
||||
method: GET
|
||||
|
@ -2002,7 +2003,7 @@ interactions:
|
|||
\ },\"customRules\":{\r\n \"rules\":[\r\n \r\n ]\r\n },\"managedRules\":{\r\n
|
||||
\ \"managedRuleSets\":[\r\n {\r\n \"ruleSetType\":\"DefaultRuleSet\",\"ruleSetVersion\":\"1.0\",\"ruleGroupOverrides\":[\r\n
|
||||
\ {\r\n \"ruleGroupName\":\"SQLI\",\"rules\":[\r\n
|
||||
\ {\r\n \"ruleId\":\"942100\",\"enabledState\":null,\"action\":null,\"exclusions\":[\r\n
|
||||
\ {\r\n \"ruleId\":\"942100\",\"enabledState\":\"Enabled\",\"action\":\"Block\",\"exclusions\":[\r\n
|
||||
\ \r\n ]\r\n }\r\n ],\"exclusions\":[\r\n
|
||||
\ \r\n ]\r\n }\r\n ],\"exclusions\":[\r\n
|
||||
\ \r\n ]\r\n }\r\n ]\r\n },\"frontendEndpointLinks\":[\r\n
|
||||
|
@ -2011,11 +2012,11 @@ interactions:
|
|||
cache-control:
|
||||
- no-cache
|
||||
content-length:
|
||||
- '1276'
|
||||
- '1284'
|
||||
content-type:
|
||||
- application/json; odata.metadata=minimal
|
||||
date:
|
||||
- Wed, 13 Nov 2019 22:17:31 GMT
|
||||
- Sun, 22 Mar 2020 02:44:13 GMT
|
||||
expires:
|
||||
- '-1'
|
||||
odata-version:
|
||||
|
|
|
@ -19,8 +19,8 @@ interactions:
|
|||
ParameterSetName:
|
||||
- -g -n --mode
|
||||
User-Agent:
|
||||
- python/3.6.6 (Windows-10-10.0.18362-SP0) msrest/0.6.8 msrest_azure/0.6.1 azure-mgmt-frontdoor/0.1.0
|
||||
Azure-SDK-For-Python AZURECLI/2.0.68
|
||||
- python/3.7.7 (Windows-10-10.0.18362-SP0) msrest/0.6.11 msrest_azure/0.6.2
|
||||
azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.2.0
|
||||
accept-language:
|
||||
- en-US
|
||||
method: PUT
|
||||
|
@ -41,7 +41,7 @@ interactions:
|
|||
content-type:
|
||||
- application/json; odata.metadata=minimal
|
||||
date:
|
||||
- Wed, 13 Nov 2019 22:16:57 GMT
|
||||
- Sun, 22 Mar 2020 02:43:44 GMT
|
||||
expires:
|
||||
- '-1'
|
||||
odata-version:
|
||||
|
@ -57,7 +57,7 @@ interactions:
|
|||
x-content-type-options:
|
||||
- nosniff
|
||||
x-ms-ratelimit-remaining-subscription-writes:
|
||||
- '1197'
|
||||
- '1198'
|
||||
x-powered-by:
|
||||
- ASP.NET
|
||||
status:
|
||||
|
@ -83,8 +83,8 @@ interactions:
|
|||
ParameterSetName:
|
||||
- -g -n --mode --redirect-url
|
||||
User-Agent:
|
||||
- python/3.6.6 (Windows-10-10.0.18362-SP0) msrest/0.6.8 msrest_azure/0.6.1 azure-mgmt-frontdoor/0.1.0
|
||||
Azure-SDK-For-Python AZURECLI/2.0.68
|
||||
- python/3.7.7 (Windows-10-10.0.18362-SP0) msrest/0.6.11 msrest_azure/0.6.2
|
||||
azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.2.0
|
||||
accept-language:
|
||||
- en-US
|
||||
method: PUT
|
||||
|
@ -105,7 +105,7 @@ interactions:
|
|||
content-type:
|
||||
- application/json; odata.metadata=minimal
|
||||
date:
|
||||
- Wed, 13 Nov 2019 22:17:02 GMT
|
||||
- Sun, 22 Mar 2020 02:43:48 GMT
|
||||
expires:
|
||||
- '-1'
|
||||
odata-version:
|
||||
|
@ -121,7 +121,7 @@ interactions:
|
|||
x-content-type-options:
|
||||
- nosniff
|
||||
x-ms-ratelimit-remaining-subscription-writes:
|
||||
- '1196'
|
||||
- '1199'
|
||||
x-powered-by:
|
||||
- ASP.NET
|
||||
status:
|
||||
|
@ -147,8 +147,8 @@ interactions:
|
|||
ParameterSetName:
|
||||
- -g -n --mode --redirect-url --custom-block-response-status-code
|
||||
User-Agent:
|
||||
- python/3.6.6 (Windows-10-10.0.18362-SP0) msrest/0.6.8 msrest_azure/0.6.1 azure-mgmt-frontdoor/0.1.0
|
||||
Azure-SDK-For-Python AZURECLI/2.0.68
|
||||
- python/3.7.7 (Windows-10-10.0.18362-SP0) msrest/0.6.11 msrest_azure/0.6.2
|
||||
azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.2.0
|
||||
accept-language:
|
||||
- en-US
|
||||
method: PUT
|
||||
|
@ -169,7 +169,7 @@ interactions:
|
|||
content-type:
|
||||
- application/json; odata.metadata=minimal
|
||||
date:
|
||||
- Wed, 13 Nov 2019 22:17:07 GMT
|
||||
- Sun, 22 Mar 2020 02:43:51 GMT
|
||||
expires:
|
||||
- '-1'
|
||||
odata-version:
|
||||
|
@ -212,8 +212,8 @@ interactions:
|
|||
ParameterSetName:
|
||||
- -g -n --mode --redirect-url --custom-block-response-status-code --custom-block-response-body
|
||||
User-Agent:
|
||||
- python/3.6.6 (Windows-10-10.0.18362-SP0) msrest/0.6.8 msrest_azure/0.6.1 azure-mgmt-frontdoor/0.1.0
|
||||
Azure-SDK-For-Python AZURECLI/2.0.68
|
||||
- python/3.7.7 (Windows-10-10.0.18362-SP0) msrest/0.6.11 msrest_azure/0.6.2
|
||||
azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.2.0
|
||||
accept-language:
|
||||
- en-US
|
||||
method: PUT
|
||||
|
@ -234,7 +234,7 @@ interactions:
|
|||
content-type:
|
||||
- application/json; odata.metadata=minimal
|
||||
date:
|
||||
- Wed, 13 Nov 2019 22:17:11 GMT
|
||||
- Sun, 22 Mar 2020 02:43:53 GMT
|
||||
expires:
|
||||
- '-1'
|
||||
odata-version:
|
||||
|
@ -250,7 +250,7 @@ interactions:
|
|||
x-content-type-options:
|
||||
- nosniff
|
||||
x-ms-ratelimit-remaining-subscription-writes:
|
||||
- '1194'
|
||||
- '1199'
|
||||
x-powered-by:
|
||||
- ASP.NET
|
||||
status:
|
||||
|
@ -276,8 +276,8 @@ interactions:
|
|||
ParameterSetName:
|
||||
- -g -n --mode --disabled
|
||||
User-Agent:
|
||||
- python/3.6.6 (Windows-10-10.0.18362-SP0) msrest/0.6.8 msrest_azure/0.6.1 azure-mgmt-frontdoor/0.1.0
|
||||
Azure-SDK-For-Python AZURECLI/2.0.68
|
||||
- python/3.7.7 (Windows-10-10.0.18362-SP0) msrest/0.6.11 msrest_azure/0.6.2
|
||||
azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.2.0
|
||||
accept-language:
|
||||
- en-US
|
||||
method: PUT
|
||||
|
@ -298,7 +298,7 @@ interactions:
|
|||
content-type:
|
||||
- application/json; odata.metadata=minimal
|
||||
date:
|
||||
- Wed, 13 Nov 2019 22:17:18 GMT
|
||||
- Sun, 22 Mar 2020 02:43:56 GMT
|
||||
expires:
|
||||
- '-1'
|
||||
odata-version:
|
||||
|
@ -314,7 +314,7 @@ interactions:
|
|||
x-content-type-options:
|
||||
- nosniff
|
||||
x-ms-ratelimit-remaining-subscription-writes:
|
||||
- '1198'
|
||||
- '1197'
|
||||
x-powered-by:
|
||||
- ASP.NET
|
||||
status:
|
||||
|
@ -334,8 +334,8 @@ interactions:
|
|||
ParameterSetName:
|
||||
- -g -n --mode
|
||||
User-Agent:
|
||||
- python/3.6.6 (Windows-10-10.0.18362-SP0) msrest/0.6.8 msrest_azure/0.6.1 azure-mgmt-frontdoor/0.1.0
|
||||
Azure-SDK-For-Python AZURECLI/2.0.68
|
||||
- python/3.7.7 (Windows-10-10.0.18362-SP0) msrest/0.6.11 msrest_azure/0.6.2
|
||||
azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.2.0
|
||||
accept-language:
|
||||
- en-US
|
||||
method: GET
|
||||
|
@ -356,7 +356,7 @@ interactions:
|
|||
content-type:
|
||||
- application/json; odata.metadata=minimal
|
||||
date:
|
||||
- Wed, 13 Nov 2019 22:17:19 GMT
|
||||
- Sun, 22 Mar 2020 02:43:57 GMT
|
||||
expires:
|
||||
- '-1'
|
||||
odata-version:
|
||||
|
@ -400,8 +400,8 @@ interactions:
|
|||
ParameterSetName:
|
||||
- -g -n --mode
|
||||
User-Agent:
|
||||
- python/3.6.6 (Windows-10-10.0.18362-SP0) msrest/0.6.8 msrest_azure/0.6.1 azure-mgmt-frontdoor/0.1.0
|
||||
Azure-SDK-For-Python AZURECLI/2.0.68
|
||||
- python/3.7.7 (Windows-10-10.0.18362-SP0) msrest/0.6.11 msrest_azure/0.6.2
|
||||
azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.2.0
|
||||
accept-language:
|
||||
- en-US
|
||||
method: PUT
|
||||
|
@ -422,7 +422,7 @@ interactions:
|
|||
content-type:
|
||||
- application/json; odata.metadata=minimal
|
||||
date:
|
||||
- Wed, 13 Nov 2019 22:17:20 GMT
|
||||
- Sun, 22 Mar 2020 02:43:59 GMT
|
||||
expires:
|
||||
- '-1'
|
||||
odata-version:
|
||||
|
@ -442,7 +442,7 @@ interactions:
|
|||
x-content-type-options:
|
||||
- nosniff
|
||||
x-ms-ratelimit-remaining-subscription-writes:
|
||||
- '1199'
|
||||
- '1197'
|
||||
x-powered-by:
|
||||
- ASP.NET
|
||||
status:
|
||||
|
@ -462,8 +462,8 @@ interactions:
|
|||
ParameterSetName:
|
||||
- -g -n --tags
|
||||
User-Agent:
|
||||
- python/3.6.6 (Windows-10-10.0.18362-SP0) msrest/0.6.8 msrest_azure/0.6.1 azure-mgmt-frontdoor/0.1.0
|
||||
Azure-SDK-For-Python AZURECLI/2.0.68
|
||||
- python/3.7.7 (Windows-10-10.0.18362-SP0) msrest/0.6.11 msrest_azure/0.6.2
|
||||
azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.2.0
|
||||
accept-language:
|
||||
- en-US
|
||||
method: GET
|
||||
|
@ -484,7 +484,7 @@ interactions:
|
|||
content-type:
|
||||
- application/json; odata.metadata=minimal
|
||||
date:
|
||||
- Wed, 13 Nov 2019 22:17:21 GMT
|
||||
- Sun, 22 Mar 2020 02:44:00 GMT
|
||||
expires:
|
||||
- '-1'
|
||||
odata-version:
|
||||
|
@ -528,8 +528,8 @@ interactions:
|
|||
ParameterSetName:
|
||||
- -g -n --tags
|
||||
User-Agent:
|
||||
- python/3.6.6 (Windows-10-10.0.18362-SP0) msrest/0.6.8 msrest_azure/0.6.1 azure-mgmt-frontdoor/0.1.0
|
||||
Azure-SDK-For-Python AZURECLI/2.0.68
|
||||
- python/3.7.7 (Windows-10-10.0.18362-SP0) msrest/0.6.11 msrest_azure/0.6.2
|
||||
azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.2.0
|
||||
accept-language:
|
||||
- en-US
|
||||
method: PUT
|
||||
|
@ -550,7 +550,7 @@ interactions:
|
|||
content-type:
|
||||
- application/json; odata.metadata=minimal
|
||||
date:
|
||||
- Wed, 13 Nov 2019 22:17:24 GMT
|
||||
- Sun, 22 Mar 2020 02:44:01 GMT
|
||||
expires:
|
||||
- '-1'
|
||||
odata-version:
|
||||
|
@ -570,7 +570,7 @@ interactions:
|
|||
x-content-type-options:
|
||||
- nosniff
|
||||
x-ms-ratelimit-remaining-subscription-writes:
|
||||
- '1196'
|
||||
- '1199'
|
||||
x-powered-by:
|
||||
- ASP.NET
|
||||
status:
|
||||
|
@ -590,8 +590,8 @@ interactions:
|
|||
ParameterSetName:
|
||||
- -g -n --mode
|
||||
User-Agent:
|
||||
- python/3.6.6 (Windows-10-10.0.18362-SP0) msrest/0.6.8 msrest_azure/0.6.1 azure-mgmt-frontdoor/0.1.0
|
||||
Azure-SDK-For-Python AZURECLI/2.0.68
|
||||
- python/3.7.7 (Windows-10-10.0.18362-SP0) msrest/0.6.11 msrest_azure/0.6.2
|
||||
azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.2.0
|
||||
accept-language:
|
||||
- en-US
|
||||
method: GET
|
||||
|
@ -612,7 +612,7 @@ interactions:
|
|||
content-type:
|
||||
- application/json; odata.metadata=minimal
|
||||
date:
|
||||
- Wed, 13 Nov 2019 22:17:24 GMT
|
||||
- Sun, 22 Mar 2020 02:44:02 GMT
|
||||
expires:
|
||||
- '-1'
|
||||
odata-version:
|
||||
|
@ -656,8 +656,8 @@ interactions:
|
|||
ParameterSetName:
|
||||
- -g -n --mode
|
||||
User-Agent:
|
||||
- python/3.6.6 (Windows-10-10.0.18362-SP0) msrest/0.6.8 msrest_azure/0.6.1 azure-mgmt-frontdoor/0.1.0
|
||||
Azure-SDK-For-Python AZURECLI/2.0.68
|
||||
- python/3.7.7 (Windows-10-10.0.18362-SP0) msrest/0.6.11 msrest_azure/0.6.2
|
||||
azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.2.0
|
||||
accept-language:
|
||||
- en-US
|
||||
method: PUT
|
||||
|
@ -678,7 +678,7 @@ interactions:
|
|||
content-type:
|
||||
- application/json; odata.metadata=minimal
|
||||
date:
|
||||
- Wed, 13 Nov 2019 22:17:26 GMT
|
||||
- Sun, 22 Mar 2020 02:44:03 GMT
|
||||
expires:
|
||||
- '-1'
|
||||
odata-version:
|
||||
|
@ -698,7 +698,7 @@ interactions:
|
|||
x-content-type-options:
|
||||
- nosniff
|
||||
x-ms-ratelimit-remaining-subscription-writes:
|
||||
- '1198'
|
||||
- '1197'
|
||||
x-powered-by:
|
||||
- ASP.NET
|
||||
status:
|
||||
|
@ -718,8 +718,8 @@ interactions:
|
|||
ParameterSetName:
|
||||
- -g -n --mode --redirect-url
|
||||
User-Agent:
|
||||
- python/3.6.6 (Windows-10-10.0.18362-SP0) msrest/0.6.8 msrest_azure/0.6.1 azure-mgmt-frontdoor/0.1.0
|
||||
Azure-SDK-For-Python AZURECLI/2.0.68
|
||||
- python/3.7.7 (Windows-10-10.0.18362-SP0) msrest/0.6.11 msrest_azure/0.6.2
|
||||
azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.2.0
|
||||
accept-language:
|
||||
- en-US
|
||||
method: GET
|
||||
|
@ -740,7 +740,7 @@ interactions:
|
|||
content-type:
|
||||
- application/json; odata.metadata=minimal
|
||||
date:
|
||||
- Wed, 13 Nov 2019 22:17:27 GMT
|
||||
- Sun, 22 Mar 2020 02:44:04 GMT
|
||||
expires:
|
||||
- '-1'
|
||||
odata-version:
|
||||
|
@ -784,8 +784,8 @@ interactions:
|
|||
ParameterSetName:
|
||||
- -g -n --mode --redirect-url
|
||||
User-Agent:
|
||||
- python/3.6.6 (Windows-10-10.0.18362-SP0) msrest/0.6.8 msrest_azure/0.6.1 azure-mgmt-frontdoor/0.1.0
|
||||
Azure-SDK-For-Python AZURECLI/2.0.68
|
||||
- python/3.7.7 (Windows-10-10.0.18362-SP0) msrest/0.6.11 msrest_azure/0.6.2
|
||||
azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.2.0
|
||||
accept-language:
|
||||
- en-US
|
||||
method: PUT
|
||||
|
@ -806,7 +806,7 @@ interactions:
|
|||
content-type:
|
||||
- application/json; odata.metadata=minimal
|
||||
date:
|
||||
- Wed, 13 Nov 2019 22:17:29 GMT
|
||||
- Sun, 22 Mar 2020 02:44:05 GMT
|
||||
expires:
|
||||
- '-1'
|
||||
odata-version:
|
||||
|
@ -826,7 +826,7 @@ interactions:
|
|||
x-content-type-options:
|
||||
- nosniff
|
||||
x-ms-ratelimit-remaining-subscription-writes:
|
||||
- '1199'
|
||||
- '1197'
|
||||
x-powered-by:
|
||||
- ASP.NET
|
||||
status:
|
||||
|
@ -846,8 +846,8 @@ interactions:
|
|||
ParameterSetName:
|
||||
- -g -n --custom-block-response-status-code
|
||||
User-Agent:
|
||||
- python/3.6.6 (Windows-10-10.0.18362-SP0) msrest/0.6.8 msrest_azure/0.6.1 azure-mgmt-frontdoor/0.1.0
|
||||
Azure-SDK-For-Python AZURECLI/2.0.68
|
||||
- python/3.7.7 (Windows-10-10.0.18362-SP0) msrest/0.6.11 msrest_azure/0.6.2
|
||||
azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.2.0
|
||||
accept-language:
|
||||
- en-US
|
||||
method: GET
|
||||
|
@ -868,7 +868,7 @@ interactions:
|
|||
content-type:
|
||||
- application/json; odata.metadata=minimal
|
||||
date:
|
||||
- Wed, 13 Nov 2019 22:17:30 GMT
|
||||
- Sun, 22 Mar 2020 02:44:07 GMT
|
||||
expires:
|
||||
- '-1'
|
||||
odata-version:
|
||||
|
@ -913,8 +913,8 @@ interactions:
|
|||
ParameterSetName:
|
||||
- -g -n --custom-block-response-status-code
|
||||
User-Agent:
|
||||
- python/3.6.6 (Windows-10-10.0.18362-SP0) msrest/0.6.8 msrest_azure/0.6.1 azure-mgmt-frontdoor/0.1.0
|
||||
Azure-SDK-For-Python AZURECLI/2.0.68
|
||||
- python/3.7.7 (Windows-10-10.0.18362-SP0) msrest/0.6.11 msrest_azure/0.6.2
|
||||
azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.2.0
|
||||
accept-language:
|
||||
- en-US
|
||||
method: PUT
|
||||
|
@ -935,7 +935,7 @@ interactions:
|
|||
content-type:
|
||||
- application/json; odata.metadata=minimal
|
||||
date:
|
||||
- Wed, 13 Nov 2019 22:17:31 GMT
|
||||
- Sun, 22 Mar 2020 02:44:08 GMT
|
||||
expires:
|
||||
- '-1'
|
||||
odata-version:
|
||||
|
@ -955,7 +955,7 @@ interactions:
|
|||
x-content-type-options:
|
||||
- nosniff
|
||||
x-ms-ratelimit-remaining-subscription-writes:
|
||||
- '1198'
|
||||
- '1199'
|
||||
x-powered-by:
|
||||
- ASP.NET
|
||||
status:
|
||||
|
@ -975,8 +975,8 @@ interactions:
|
|||
ParameterSetName:
|
||||
- -g -n --custom-block-response-status-code --custom-block-response-body
|
||||
User-Agent:
|
||||
- python/3.6.6 (Windows-10-10.0.18362-SP0) msrest/0.6.8 msrest_azure/0.6.1 azure-mgmt-frontdoor/0.1.0
|
||||
Azure-SDK-For-Python AZURECLI/2.0.68
|
||||
- python/3.7.7 (Windows-10-10.0.18362-SP0) msrest/0.6.11 msrest_azure/0.6.2
|
||||
azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.2.0
|
||||
accept-language:
|
||||
- en-US
|
||||
method: GET
|
||||
|
@ -997,7 +997,7 @@ interactions:
|
|||
content-type:
|
||||
- application/json; odata.metadata=minimal
|
||||
date:
|
||||
- Wed, 13 Nov 2019 22:17:32 GMT
|
||||
- Sun, 22 Mar 2020 02:44:09 GMT
|
||||
expires:
|
||||
- '-1'
|
||||
odata-version:
|
||||
|
@ -1042,8 +1042,8 @@ interactions:
|
|||
ParameterSetName:
|
||||
- -g -n --custom-block-response-status-code --custom-block-response-body
|
||||
User-Agent:
|
||||
- python/3.6.6 (Windows-10-10.0.18362-SP0) msrest/0.6.8 msrest_azure/0.6.1 azure-mgmt-frontdoor/0.1.0
|
||||
Azure-SDK-For-Python AZURECLI/2.0.68
|
||||
- python/3.7.7 (Windows-10-10.0.18362-SP0) msrest/0.6.11 msrest_azure/0.6.2
|
||||
azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.2.0
|
||||
accept-language:
|
||||
- en-US
|
||||
method: PUT
|
||||
|
@ -1064,7 +1064,7 @@ interactions:
|
|||
content-type:
|
||||
- application/json; odata.metadata=minimal
|
||||
date:
|
||||
- Wed, 13 Nov 2019 22:17:34 GMT
|
||||
- Sun, 22 Mar 2020 02:44:10 GMT
|
||||
expires:
|
||||
- '-1'
|
||||
odata-version:
|
||||
|
@ -1084,7 +1084,7 @@ interactions:
|
|||
x-content-type-options:
|
||||
- nosniff
|
||||
x-ms-ratelimit-remaining-subscription-writes:
|
||||
- '1196'
|
||||
- '1199'
|
||||
x-powered-by:
|
||||
- ASP.NET
|
||||
status:
|
||||
|
@ -1104,8 +1104,8 @@ interactions:
|
|||
ParameterSetName:
|
||||
- -g -n --disabled
|
||||
User-Agent:
|
||||
- python/3.6.6 (Windows-10-10.0.18362-SP0) msrest/0.6.8 msrest_azure/0.6.1 azure-mgmt-frontdoor/0.1.0
|
||||
Azure-SDK-For-Python AZURECLI/2.0.68
|
||||
- python/3.7.7 (Windows-10-10.0.18362-SP0) msrest/0.6.11 msrest_azure/0.6.2
|
||||
azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.2.0
|
||||
accept-language:
|
||||
- en-US
|
||||
method: GET
|
||||
|
@ -1126,7 +1126,7 @@ interactions:
|
|||
content-type:
|
||||
- application/json; odata.metadata=minimal
|
||||
date:
|
||||
- Wed, 13 Nov 2019 22:17:34 GMT
|
||||
- Sun, 22 Mar 2020 02:44:11 GMT
|
||||
expires:
|
||||
- '-1'
|
||||
odata-version:
|
||||
|
@ -1171,8 +1171,8 @@ interactions:
|
|||
ParameterSetName:
|
||||
- -g -n --disabled
|
||||
User-Agent:
|
||||
- python/3.6.6 (Windows-10-10.0.18362-SP0) msrest/0.6.8 msrest_azure/0.6.1 azure-mgmt-frontdoor/0.1.0
|
||||
Azure-SDK-For-Python AZURECLI/2.0.68
|
||||
- python/3.7.7 (Windows-10-10.0.18362-SP0) msrest/0.6.11 msrest_azure/0.6.2
|
||||
azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.2.0
|
||||
accept-language:
|
||||
- en-US
|
||||
method: PUT
|
||||
|
@ -1193,7 +1193,7 @@ interactions:
|
|||
content-type:
|
||||
- application/json; odata.metadata=minimal
|
||||
date:
|
||||
- Wed, 13 Nov 2019 22:17:52 GMT
|
||||
- Sun, 22 Mar 2020 02:44:13 GMT
|
||||
expires:
|
||||
- '-1'
|
||||
odata-version:
|
||||
|
@ -1213,7 +1213,7 @@ interactions:
|
|||
x-content-type-options:
|
||||
- nosniff
|
||||
x-ms-ratelimit-remaining-subscription-writes:
|
||||
- '1199'
|
||||
- '1198'
|
||||
x-powered-by:
|
||||
- ASP.NET
|
||||
status:
|
||||
|
@ -1233,8 +1233,8 @@ interactions:
|
|||
ParameterSetName:
|
||||
- -g -n
|
||||
User-Agent:
|
||||
- python/3.6.6 (Windows-10-10.0.18362-SP0) msrest/0.6.8 msrest_azure/0.6.1 azure-mgmt-frontdoor/0.1.0
|
||||
Azure-SDK-For-Python AZURECLI/2.0.68
|
||||
- python/3.7.7 (Windows-10-10.0.18362-SP0) msrest/0.6.11 msrest_azure/0.6.2
|
||||
azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.2.0
|
||||
accept-language:
|
||||
- en-US
|
||||
method: GET
|
||||
|
@ -1255,7 +1255,7 @@ interactions:
|
|||
content-type:
|
||||
- application/json; odata.metadata=minimal
|
||||
date:
|
||||
- Wed, 13 Nov 2019 22:17:53 GMT
|
||||
- Sun, 22 Mar 2020 02:44:13 GMT
|
||||
expires:
|
||||
- '-1'
|
||||
odata-version:
|
||||
|
@ -1293,8 +1293,8 @@ interactions:
|
|||
ParameterSetName:
|
||||
- -g
|
||||
User-Agent:
|
||||
- python/3.6.6 (Windows-10-10.0.18362-SP0) msrest/0.6.8 msrest_azure/0.6.1 azure-mgmt-frontdoor/0.1.0
|
||||
Azure-SDK-For-Python AZURECLI/2.0.68
|
||||
- python/3.7.7 (Windows-10-10.0.18362-SP0) msrest/0.6.11 msrest_azure/0.6.2
|
||||
azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.2.0
|
||||
accept-language:
|
||||
- en-US
|
||||
method: GET
|
||||
|
@ -1307,21 +1307,15 @@ interactions:
|
|||
\ },\"customRules\":{\r\n \"rules\":[\r\n \r\n ]\r\n
|
||||
\ },\"managedRules\":{\r\n \"managedRuleSets\":[\r\n \r\n
|
||||
\ ]\r\n },\"frontendEndpointLinks\":[\r\n \r\n ]\r\n
|
||||
\ }\r\n },{\r\n \"name\":\"cli000002\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/cli000002\",\"type\":\"Microsoft.Network/frontdoorwebapplicationfirewallpolicies\",\"tags\":{\r\n
|
||||
\ \r\n },\"location\":\"Global\",\"properties\":{\r\n \"resourceState\":\"Enabled\",\"provisioningState\":\"Succeeded\",\"policySettings\":{\r\n
|
||||
\ \"enabledState\":\"Disabled\",\"mode\":\"Prevention\",\"redirectUrl\":\"http://www.microsoft.com\",\"customBlockResponseStatusCode\":405,\"customBlockResponseBody\":\"YiBvZHk=\"\r\n
|
||||
\ },\"customRules\":{\r\n \"rules\":[\r\n \r\n ]\r\n
|
||||
\ },\"managedRules\":{\r\n \"managedRuleSets\":[\r\n \r\n
|
||||
\ ]\r\n },\"frontendEndpointLinks\":[\r\n \r\n ]\r\n
|
||||
\ }\r\n },{\r\n \"name\":\"cli000005\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/cli000005\",\"type\":\"Microsoft.Network/frontdoorwebapplicationfirewallpolicies\",\"tags\":{\r\n
|
||||
\ \r\n },\"location\":\"Global\",\"properties\":{\r\n \"resourceState\":\"Enabled\",\"provisioningState\":\"Succeeded\",\"policySettings\":{\r\n
|
||||
\ \"enabledState\":\"Enabled\",\"mode\":\"Detection\",\"redirectUrl\":\"http://www.microsoft.com\",\"customBlockResponseStatusCode\":406,\"customBlockResponseBody\":null\r\n
|
||||
\ },\"customRules\":{\r\n \"rules\":[\r\n \r\n ]\r\n
|
||||
\ },\"managedRules\":{\r\n \"managedRuleSets\":[\r\n \r\n
|
||||
\ ]\r\n },\"frontendEndpointLinks\":[\r\n \r\n ]\r\n
|
||||
\ }\r\n },{\r\n \"name\":\"cli000006\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/cli000006\",\"type\":\"Microsoft.Network/frontdoorwebapplicationfirewallpolicies\",\"tags\":{\r\n
|
||||
\ }\r\n },{\r\n \"name\":\"cli000002\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/cli000002\",\"type\":\"Microsoft.Network/frontdoorwebapplicationfirewallpolicies\",\"tags\":{\r\n
|
||||
\ \r\n },\"location\":\"Global\",\"properties\":{\r\n \"resourceState\":\"Enabled\",\"provisioningState\":\"Succeeded\",\"policySettings\":{\r\n
|
||||
\ \"enabledState\":\"Enabled\",\"mode\":\"Detection\",\"redirectUrl\":\"http://www.microsoft.com\",\"customBlockResponseStatusCode\":406,\"customBlockResponseBody\":\"YiBvZHk=\"\r\n
|
||||
\ \"enabledState\":\"Disabled\",\"mode\":\"Prevention\",\"redirectUrl\":\"http://www.microsoft.com\",\"customBlockResponseStatusCode\":405,\"customBlockResponseBody\":\"YiBvZHk=\"\r\n
|
||||
\ },\"customRules\":{\r\n \"rules\":[\r\n \r\n ]\r\n
|
||||
\ },\"managedRules\":{\r\n \"managedRuleSets\":[\r\n \r\n
|
||||
\ ]\r\n },\"frontendEndpointLinks\":[\r\n \r\n ]\r\n
|
||||
|
@ -1331,6 +1325,12 @@ interactions:
|
|||
\ },\"customRules\":{\r\n \"rules\":[\r\n \r\n ]\r\n
|
||||
\ },\"managedRules\":{\r\n \"managedRuleSets\":[\r\n \r\n
|
||||
\ ]\r\n },\"frontendEndpointLinks\":[\r\n \r\n ]\r\n
|
||||
\ }\r\n },{\r\n \"name\":\"cli000006\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/cli000006\",\"type\":\"Microsoft.Network/frontdoorwebapplicationfirewallpolicies\",\"tags\":{\r\n
|
||||
\ \r\n },\"location\":\"Global\",\"properties\":{\r\n \"resourceState\":\"Enabled\",\"provisioningState\":\"Succeeded\",\"policySettings\":{\r\n
|
||||
\ \"enabledState\":\"Enabled\",\"mode\":\"Detection\",\"redirectUrl\":\"http://www.microsoft.com\",\"customBlockResponseStatusCode\":406,\"customBlockResponseBody\":\"YiBvZHk=\"\r\n
|
||||
\ },\"customRules\":{\r\n \"rules\":[\r\n \r\n ]\r\n
|
||||
\ },\"managedRules\":{\r\n \"managedRuleSets\":[\r\n \r\n
|
||||
\ ]\r\n },\"frontendEndpointLinks\":[\r\n \r\n ]\r\n
|
||||
\ }\r\n }\r\n ]\r\n}"
|
||||
headers:
|
||||
cache-control:
|
||||
|
@ -1340,7 +1340,7 @@ interactions:
|
|||
content-type:
|
||||
- application/json; odata.metadata=minimal
|
||||
date:
|
||||
- Wed, 13 Nov 2019 22:17:54 GMT
|
||||
- Sun, 22 Mar 2020 02:44:15 GMT
|
||||
expires:
|
||||
- '-1'
|
||||
odata-version:
|
||||
|
@ -1380,8 +1380,8 @@ interactions:
|
|||
ParameterSetName:
|
||||
- -g -n
|
||||
User-Agent:
|
||||
- python/3.6.6 (Windows-10-10.0.18362-SP0) msrest/0.6.8 msrest_azure/0.6.1 azure-mgmt-frontdoor/0.1.0
|
||||
Azure-SDK-For-Python AZURECLI/2.0.68
|
||||
- python/3.7.7 (Windows-10-10.0.18362-SP0) msrest/0.6.11 msrest_azure/0.6.2
|
||||
azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.2.0
|
||||
accept-language:
|
||||
- en-US
|
||||
method: DELETE
|
||||
|
@ -1393,7 +1393,7 @@ interactions:
|
|||
cache-control:
|
||||
- no-cache
|
||||
date:
|
||||
- Wed, 13 Nov 2019 22:17:58 GMT
|
||||
- Sun, 22 Mar 2020 02:44:17 GMT
|
||||
expires:
|
||||
- '-1'
|
||||
pragma:
|
||||
|
@ -1407,7 +1407,7 @@ interactions:
|
|||
x-content-type-options:
|
||||
- nosniff
|
||||
x-ms-ratelimit-remaining-subscription-deletes:
|
||||
- '14999'
|
||||
- '14998'
|
||||
x-powered-by:
|
||||
- ASP.NET
|
||||
status:
|
||||
|
@ -1427,17 +1427,17 @@ interactions:
|
|||
ParameterSetName:
|
||||
- -g
|
||||
User-Agent:
|
||||
- python/3.6.6 (Windows-10-10.0.18362-SP0) msrest/0.6.8 msrest_azure/0.6.1 azure-mgmt-frontdoor/0.1.0
|
||||
Azure-SDK-For-Python AZURECLI/2.0.68
|
||||
- python/3.7.7 (Windows-10-10.0.18362-SP0) msrest/0.6.11 msrest_azure/0.6.2
|
||||
azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.2.0
|
||||
accept-language:
|
||||
- en-US
|
||||
method: GET
|
||||
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies?api-version=2019-10-01
|
||||
response:
|
||||
body:
|
||||
string: "{\r\n \"value\":[\r\n {\r\n \"name\":\"cli000004\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/cli000004\",\"type\":\"Microsoft.Network/frontdoorwebapplicationfirewallpolicies\",\"tags\":{\r\n
|
||||
string: "{\r\n \"value\":[\r\n {\r\n \"name\":\"cli000007\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/cli000007\",\"type\":\"Microsoft.Network/frontdoorwebapplicationfirewallpolicies\",\"tags\":{\r\n
|
||||
\ \r\n },\"location\":\"Global\",\"properties\":{\r\n \"resourceState\":\"Enabled\",\"provisioningState\":\"Succeeded\",\"policySettings\":{\r\n
|
||||
\ \"enabledState\":\"Enabled\",\"mode\":\"Detection\",\"redirectUrl\":\"http://www.microsoft.com\",\"customBlockResponseStatusCode\":null,\"customBlockResponseBody\":null\r\n
|
||||
\ \"enabledState\":\"Enabled\",\"mode\":\"Detection\",\"redirectUrl\":null,\"customBlockResponseStatusCode\":null,\"customBlockResponseBody\":null\r\n
|
||||
\ },\"customRules\":{\r\n \"rules\":[\r\n \r\n ]\r\n
|
||||
\ },\"managedRules\":{\r\n \"managedRuleSets\":[\r\n \r\n
|
||||
\ ]\r\n },\"frontendEndpointLinks\":[\r\n \r\n ]\r\n
|
||||
|
@ -1453,9 +1453,9 @@ interactions:
|
|||
\ },\"customRules\":{\r\n \"rules\":[\r\n \r\n ]\r\n
|
||||
\ },\"managedRules\":{\r\n \"managedRuleSets\":[\r\n \r\n
|
||||
\ ]\r\n },\"frontendEndpointLinks\":[\r\n \r\n ]\r\n
|
||||
\ }\r\n },{\r\n \"name\":\"cli000007\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/cli000007\",\"type\":\"Microsoft.Network/frontdoorwebapplicationfirewallpolicies\",\"tags\":{\r\n
|
||||
\ }\r\n },{\r\n \"name\":\"cli000004\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Network/frontdoorwebapplicationfirewallpolicies/cli000004\",\"type\":\"Microsoft.Network/frontdoorwebapplicationfirewallpolicies\",\"tags\":{\r\n
|
||||
\ \r\n },\"location\":\"Global\",\"properties\":{\r\n \"resourceState\":\"Enabled\",\"provisioningState\":\"Succeeded\",\"policySettings\":{\r\n
|
||||
\ \"enabledState\":\"Enabled\",\"mode\":\"Detection\",\"redirectUrl\":null,\"customBlockResponseStatusCode\":null,\"customBlockResponseBody\":null\r\n
|
||||
\ \"enabledState\":\"Enabled\",\"mode\":\"Detection\",\"redirectUrl\":\"http://www.microsoft.com\",\"customBlockResponseStatusCode\":null,\"customBlockResponseBody\":null\r\n
|
||||
\ },\"customRules\":{\r\n \"rules\":[\r\n \r\n ]\r\n
|
||||
\ },\"managedRules\":{\r\n \"managedRuleSets\":[\r\n \r\n
|
||||
\ ]\r\n },\"frontendEndpointLinks\":[\r\n \r\n ]\r\n
|
||||
|
@ -1468,7 +1468,7 @@ interactions:
|
|||
content-type:
|
||||
- application/json; odata.metadata=minimal
|
||||
date:
|
||||
- Wed, 13 Nov 2019 22:18:00 GMT
|
||||
- Sun, 22 Mar 2020 02:44:18 GMT
|
||||
expires:
|
||||
- '-1'
|
||||
odata-version:
|
||||
|
|
Разница между файлами не показана из-за своего большого размера
Загрузить разницу
|
@ -19,8 +19,8 @@ interactions:
|
|||
ParameterSetName:
|
||||
- -g -n --mode
|
||||
User-Agent:
|
||||
- python/3.6.6 (Windows-10-10.0.18362-SP0) msrest/0.6.8 msrest_azure/0.6.1 azure-mgmt-frontdoor/0.1.0
|
||||
Azure-SDK-For-Python AZURECLI/2.0.68
|
||||
- python/3.7.7 (Windows-10-10.0.18362-SP0) msrest/0.6.11 msrest_azure/0.6.2
|
||||
azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.2.0
|
||||
accept-language:
|
||||
- en-US
|
||||
method: PUT
|
||||
|
@ -41,7 +41,7 @@ interactions:
|
|||
content-type:
|
||||
- application/json; odata.metadata=minimal
|
||||
date:
|
||||
- Wed, 13 Nov 2019 22:16:57 GMT
|
||||
- Sun, 22 Mar 2020 02:43:45 GMT
|
||||
expires:
|
||||
- '-1'
|
||||
odata-version:
|
||||
|
@ -57,7 +57,7 @@ interactions:
|
|||
x-content-type-options:
|
||||
- nosniff
|
||||
x-ms-ratelimit-remaining-subscription-writes:
|
||||
- '1197'
|
||||
- '1199'
|
||||
x-powered-by:
|
||||
- ASP.NET
|
||||
status:
|
||||
|
@ -78,8 +78,8 @@ interactions:
|
|||
- -g --policy-name -n --priority --action --rule-type --rate-limit-duration
|
||||
--rate-limit-threshold --defer
|
||||
User-Agent:
|
||||
- python/3.6.6 (Windows-10-10.0.18362-SP0) msrest/0.6.8 msrest_azure/0.6.1 azure-mgmt-frontdoor/0.1.0
|
||||
Azure-SDK-For-Python AZURECLI/2.0.68
|
||||
- python/3.7.7 (Windows-10-10.0.18362-SP0) msrest/0.6.11 msrest_azure/0.6.2
|
||||
azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.2.0
|
||||
accept-language:
|
||||
- en-US
|
||||
method: GET
|
||||
|
@ -100,7 +100,7 @@ interactions:
|
|||
content-type:
|
||||
- application/json; odata.metadata=minimal
|
||||
date:
|
||||
- Wed, 13 Nov 2019 22:16:58 GMT
|
||||
- Sun, 22 Mar 2020 02:43:46 GMT
|
||||
expires:
|
||||
- '-1'
|
||||
odata-version:
|
||||
|
@ -155,8 +155,8 @@ interactions:
|
|||
ParameterSetName:
|
||||
- -g --policy-name -n --priority
|
||||
User-Agent:
|
||||
- python/3.6.6 (Windows-10-10.0.18362-SP0) msrest/0.6.8 msrest_azure/0.6.1 azure-mgmt-frontdoor/0.1.0
|
||||
Azure-SDK-For-Python AZURECLI/2.0.68
|
||||
- python/3.7.7 (Windows-10-10.0.18362-SP0) msrest/0.6.11 msrest_azure/0.6.2
|
||||
azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.2.0
|
||||
accept-language:
|
||||
- en-US
|
||||
method: PUT
|
||||
|
@ -176,7 +176,7 @@ interactions:
|
|||
content-type:
|
||||
- application/json; charset=utf-8
|
||||
date:
|
||||
- Wed, 13 Nov 2019 22:17:03 GMT
|
||||
- Sun, 22 Mar 2020 02:43:50 GMT
|
||||
expires:
|
||||
- '-1'
|
||||
pragma:
|
||||
|
@ -226,8 +226,8 @@ interactions:
|
|||
ParameterSetName:
|
||||
- -g --policy-name -n --priority
|
||||
User-Agent:
|
||||
- python/3.6.6 (Windows-10-10.0.18362-SP0) msrest/0.6.8 msrest_azure/0.6.1 azure-mgmt-frontdoor/0.1.0
|
||||
Azure-SDK-For-Python AZURECLI/2.0.68
|
||||
- python/3.7.7 (Windows-10-10.0.18362-SP0) msrest/0.6.11 msrest_azure/0.6.2
|
||||
azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.2.0
|
||||
accept-language:
|
||||
- en-US
|
||||
method: PUT
|
||||
|
@ -259,7 +259,7 @@ interactions:
|
|||
content-type:
|
||||
- application/json; odata.metadata=minimal
|
||||
date:
|
||||
- Wed, 13 Nov 2019 22:17:06 GMT
|
||||
- Sun, 22 Mar 2020 02:43:52 GMT
|
||||
expires:
|
||||
- '-1'
|
||||
odata-version:
|
||||
|
@ -279,7 +279,7 @@ interactions:
|
|||
x-content-type-options:
|
||||
- nosniff
|
||||
x-ms-ratelimit-remaining-subscription-writes:
|
||||
- '1195'
|
||||
- '1198'
|
||||
x-powered-by:
|
||||
- ASP.NET
|
||||
status:
|
||||
|
@ -299,8 +299,8 @@ interactions:
|
|||
ParameterSetName:
|
||||
- -g --policy-name
|
||||
User-Agent:
|
||||
- python/3.6.6 (Windows-10-10.0.18362-SP0) msrest/0.6.8 msrest_azure/0.6.1 azure-mgmt-frontdoor/0.1.0
|
||||
Azure-SDK-For-Python AZURECLI/2.0.68
|
||||
- python/3.7.7 (Windows-10-10.0.18362-SP0) msrest/0.6.11 msrest_azure/0.6.2
|
||||
azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.2.0
|
||||
accept-language:
|
||||
- en-US
|
||||
method: GET
|
||||
|
@ -332,7 +332,7 @@ interactions:
|
|||
content-type:
|
||||
- application/json; odata.metadata=minimal
|
||||
date:
|
||||
- Wed, 13 Nov 2019 22:17:07 GMT
|
||||
- Sun, 22 Mar 2020 02:43:54 GMT
|
||||
expires:
|
||||
- '-1'
|
||||
odata-version:
|
||||
|
@ -370,8 +370,8 @@ interactions:
|
|||
ParameterSetName:
|
||||
- -g --policy-name -n
|
||||
User-Agent:
|
||||
- python/3.6.6 (Windows-10-10.0.18362-SP0) msrest/0.6.8 msrest_azure/0.6.1 azure-mgmt-frontdoor/0.1.0
|
||||
Azure-SDK-For-Python AZURECLI/2.0.68
|
||||
- python/3.7.7 (Windows-10-10.0.18362-SP0) msrest/0.6.11 msrest_azure/0.6.2
|
||||
azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.2.0
|
||||
accept-language:
|
||||
- en-US
|
||||
method: GET
|
||||
|
@ -403,7 +403,7 @@ interactions:
|
|||
content-type:
|
||||
- application/json; odata.metadata=minimal
|
||||
date:
|
||||
- Wed, 13 Nov 2019 22:17:08 GMT
|
||||
- Sun, 22 Mar 2020 02:43:55 GMT
|
||||
expires:
|
||||
- '-1'
|
||||
odata-version:
|
||||
|
@ -454,8 +454,8 @@ interactions:
|
|||
ParameterSetName:
|
||||
- -g --policy-name -n
|
||||
User-Agent:
|
||||
- python/3.6.6 (Windows-10-10.0.18362-SP0) msrest/0.6.8 msrest_azure/0.6.1 azure-mgmt-frontdoor/0.1.0
|
||||
Azure-SDK-For-Python AZURECLI/2.0.68
|
||||
- python/3.7.7 (Windows-10-10.0.18362-SP0) msrest/0.6.11 msrest_azure/0.6.2
|
||||
azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.2.0
|
||||
accept-language:
|
||||
- en-US
|
||||
method: PUT
|
||||
|
@ -483,7 +483,7 @@ interactions:
|
|||
content-type:
|
||||
- application/json; odata.metadata=minimal
|
||||
date:
|
||||
- Wed, 13 Nov 2019 22:17:10 GMT
|
||||
- Sun, 22 Mar 2020 02:43:56 GMT
|
||||
expires:
|
||||
- '-1'
|
||||
odata-version:
|
||||
|
@ -523,8 +523,8 @@ interactions:
|
|||
ParameterSetName:
|
||||
- -g --policy-name -n
|
||||
User-Agent:
|
||||
- python/3.6.6 (Windows-10-10.0.18362-SP0) msrest/0.6.8 msrest_azure/0.6.1 azure-mgmt-frontdoor/0.1.0
|
||||
Azure-SDK-For-Python AZURECLI/2.0.68
|
||||
- python/3.7.7 (Windows-10-10.0.18362-SP0) msrest/0.6.11 msrest_azure/0.6.2
|
||||
azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.2.0
|
||||
accept-language:
|
||||
- en-US
|
||||
method: GET
|
||||
|
@ -552,7 +552,7 @@ interactions:
|
|||
content-type:
|
||||
- application/json; odata.metadata=minimal
|
||||
date:
|
||||
- Wed, 13 Nov 2019 22:17:10 GMT
|
||||
- Sun, 22 Mar 2020 02:43:58 GMT
|
||||
expires:
|
||||
- '-1'
|
||||
odata-version:
|
||||
|
@ -590,8 +590,8 @@ interactions:
|
|||
ParameterSetName:
|
||||
- -g --policy-name
|
||||
User-Agent:
|
||||
- python/3.6.6 (Windows-10-10.0.18362-SP0) msrest/0.6.8 msrest_azure/0.6.1 azure-mgmt-frontdoor/0.1.0
|
||||
Azure-SDK-For-Python AZURECLI/2.0.68
|
||||
- python/3.7.7 (Windows-10-10.0.18362-SP0) msrest/0.6.11 msrest_azure/0.6.2
|
||||
azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.2.0
|
||||
accept-language:
|
||||
- en-US
|
||||
method: GET
|
||||
|
@ -619,7 +619,7 @@ interactions:
|
|||
content-type:
|
||||
- application/json; odata.metadata=minimal
|
||||
date:
|
||||
- Wed, 13 Nov 2019 22:17:12 GMT
|
||||
- Sun, 22 Mar 2020 02:43:58 GMT
|
||||
expires:
|
||||
- '-1'
|
||||
odata-version:
|
||||
|
|
|
@ -18,8 +18,8 @@ interactions:
|
|||
ParameterSetName:
|
||||
- --resource-group --name
|
||||
User-Agent:
|
||||
- python/3.6.6 (Windows-10-10.0.18362-SP0) msrest/0.6.8 msrest_azure/0.6.1 azure-mgmt-frontdoor/0.1.0
|
||||
Azure-SDK-For-Python AZURECLI/2.0.68
|
||||
- python/3.7.7 (Windows-10-10.0.18362-SP0) msrest/0.6.11 msrest_azure/0.6.2
|
||||
azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.2.0
|
||||
accept-language:
|
||||
- en-US
|
||||
method: PUT
|
||||
|
@ -40,7 +40,7 @@ interactions:
|
|||
content-type:
|
||||
- application/json; odata.metadata=minimal
|
||||
date:
|
||||
- Wed, 13 Nov 2019 22:17:11 GMT
|
||||
- Sun, 22 Mar 2020 02:43:44 GMT
|
||||
expires:
|
||||
- '-1'
|
||||
odata-version:
|
||||
|
@ -76,8 +76,8 @@ interactions:
|
|||
ParameterSetName:
|
||||
- -g --policy-name --type --version
|
||||
User-Agent:
|
||||
- python/3.6.6 (Windows-10-10.0.18362-SP0) msrest/0.6.8 msrest_azure/0.6.1 azure-mgmt-frontdoor/0.1.0
|
||||
Azure-SDK-For-Python AZURECLI/2.0.68
|
||||
- python/3.7.7 (Windows-10-10.0.18362-SP0) msrest/0.6.11 msrest_azure/0.6.2
|
||||
azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.2.0
|
||||
accept-language:
|
||||
- en-US
|
||||
method: GET
|
||||
|
@ -98,7 +98,7 @@ interactions:
|
|||
content-type:
|
||||
- application/json; odata.metadata=minimal
|
||||
date:
|
||||
- Wed, 13 Nov 2019 22:17:12 GMT
|
||||
- Sun, 22 Mar 2020 02:43:45 GMT
|
||||
expires:
|
||||
- '-1'
|
||||
odata-version:
|
||||
|
@ -142,8 +142,8 @@ interactions:
|
|||
ParameterSetName:
|
||||
- -g --policy-name --type --version
|
||||
User-Agent:
|
||||
- python/3.6.6 (Windows-10-10.0.18362-SP0) msrest/0.6.8 msrest_azure/0.6.1 azure-mgmt-frontdoor/0.1.0
|
||||
Azure-SDK-For-Python AZURECLI/2.0.68
|
||||
- python/3.7.7 (Windows-10-10.0.18362-SP0) msrest/0.6.11 msrest_azure/0.6.2
|
||||
azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.2.0
|
||||
accept-language:
|
||||
- en-US
|
||||
method: PUT
|
||||
|
@ -166,7 +166,7 @@ interactions:
|
|||
content-type:
|
||||
- application/json; odata.metadata=minimal
|
||||
date:
|
||||
- Wed, 13 Nov 2019 22:17:14 GMT
|
||||
- Sun, 22 Mar 2020 02:43:47 GMT
|
||||
expires:
|
||||
- '-1'
|
||||
odata-version:
|
||||
|
@ -186,7 +186,7 @@ interactions:
|
|||
x-content-type-options:
|
||||
- nosniff
|
||||
x-ms-ratelimit-remaining-subscription-writes:
|
||||
- '1195'
|
||||
- '1199'
|
||||
x-powered-by:
|
||||
- ASP.NET
|
||||
status:
|
||||
|
@ -206,8 +206,8 @@ interactions:
|
|||
ParameterSetName:
|
||||
- -g --policy-name --type --rule-group-id --rule-id --action --disabled
|
||||
User-Agent:
|
||||
- python/3.6.6 (Windows-10-10.0.18362-SP0) msrest/0.6.8 msrest_azure/0.6.1 azure-mgmt-frontdoor/0.1.0
|
||||
Azure-SDK-For-Python AZURECLI/2.0.68
|
||||
- python/3.7.7 (Windows-10-10.0.18362-SP0) msrest/0.6.11 msrest_azure/0.6.2
|
||||
azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.2.0
|
||||
accept-language:
|
||||
- en-US
|
||||
method: GET
|
||||
|
@ -230,7 +230,7 @@ interactions:
|
|||
content-type:
|
||||
- application/json; odata.metadata=minimal
|
||||
date:
|
||||
- Wed, 13 Nov 2019 22:17:15 GMT
|
||||
- Sun, 22 Mar 2020 02:43:49 GMT
|
||||
expires:
|
||||
- '-1'
|
||||
odata-version:
|
||||
|
@ -276,8 +276,8 @@ interactions:
|
|||
ParameterSetName:
|
||||
- -g --policy-name --type --rule-group-id --rule-id --action --disabled
|
||||
User-Agent:
|
||||
- python/3.6.6 (Windows-10-10.0.18362-SP0) msrest/0.6.8 msrest_azure/0.6.1 azure-mgmt-frontdoor/0.1.0
|
||||
Azure-SDK-For-Python AZURECLI/2.0.68
|
||||
- python/3.7.7 (Windows-10-10.0.18362-SP0) msrest/0.6.11 msrest_azure/0.6.2
|
||||
azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.2.0
|
||||
accept-language:
|
||||
- en-US
|
||||
method: PUT
|
||||
|
@ -303,7 +303,7 @@ interactions:
|
|||
content-type:
|
||||
- application/json; odata.metadata=minimal
|
||||
date:
|
||||
- Wed, 13 Nov 2019 22:17:17 GMT
|
||||
- Sun, 22 Mar 2020 02:43:50 GMT
|
||||
expires:
|
||||
- '-1'
|
||||
odata-version:
|
||||
|
@ -323,7 +323,7 @@ interactions:
|
|||
x-content-type-options:
|
||||
- nosniff
|
||||
x-ms-ratelimit-remaining-subscription-writes:
|
||||
- '1196'
|
||||
- '1198'
|
||||
x-powered-by:
|
||||
- ASP.NET
|
||||
status:
|
||||
|
@ -343,8 +343,8 @@ interactions:
|
|||
ParameterSetName:
|
||||
- -g --policy-name --type --rule-group-id --rule-id
|
||||
User-Agent:
|
||||
- python/3.6.6 (Windows-10-10.0.18362-SP0) msrest/0.6.8 msrest_azure/0.6.1 azure-mgmt-frontdoor/0.1.0
|
||||
Azure-SDK-For-Python AZURECLI/2.0.68
|
||||
- python/3.7.7 (Windows-10-10.0.18362-SP0) msrest/0.6.11 msrest_azure/0.6.2
|
||||
azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.2.0
|
||||
accept-language:
|
||||
- en-US
|
||||
method: GET
|
||||
|
@ -370,7 +370,7 @@ interactions:
|
|||
content-type:
|
||||
- application/json; odata.metadata=minimal
|
||||
date:
|
||||
- Wed, 13 Nov 2019 22:17:17 GMT
|
||||
- Sun, 22 Mar 2020 02:43:51 GMT
|
||||
expires:
|
||||
- '-1'
|
||||
odata-version:
|
||||
|
@ -415,8 +415,8 @@ interactions:
|
|||
ParameterSetName:
|
||||
- -g --policy-name --type --rule-group-id --rule-id
|
||||
User-Agent:
|
||||
- python/3.6.6 (Windows-10-10.0.18362-SP0) msrest/0.6.8 msrest_azure/0.6.1 azure-mgmt-frontdoor/0.1.0
|
||||
Azure-SDK-For-Python AZURECLI/2.0.68
|
||||
- python/3.7.7 (Windows-10-10.0.18362-SP0) msrest/0.6.11 msrest_azure/0.6.2
|
||||
azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.2.0
|
||||
accept-language:
|
||||
- en-US
|
||||
method: PUT
|
||||
|
@ -439,7 +439,7 @@ interactions:
|
|||
content-type:
|
||||
- application/json; odata.metadata=minimal
|
||||
date:
|
||||
- Wed, 13 Nov 2019 22:17:20 GMT
|
||||
- Sun, 22 Mar 2020 02:43:52 GMT
|
||||
expires:
|
||||
- '-1'
|
||||
odata-version:
|
||||
|
@ -459,7 +459,7 @@ interactions:
|
|||
x-content-type-options:
|
||||
- nosniff
|
||||
x-ms-ratelimit-remaining-subscription-writes:
|
||||
- '1193'
|
||||
- '1198'
|
||||
x-powered-by:
|
||||
- ASP.NET
|
||||
status:
|
||||
|
@ -479,8 +479,8 @@ interactions:
|
|||
ParameterSetName:
|
||||
- -g --policy-name
|
||||
User-Agent:
|
||||
- python/3.6.6 (Windows-10-10.0.18362-SP0) msrest/0.6.8 msrest_azure/0.6.1 azure-mgmt-frontdoor/0.1.0
|
||||
Azure-SDK-For-Python AZURECLI/2.0.68
|
||||
- python/3.7.7 (Windows-10-10.0.18362-SP0) msrest/0.6.11 msrest_azure/0.6.2
|
||||
azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.2.0
|
||||
accept-language:
|
||||
- en-US
|
||||
method: GET
|
||||
|
@ -503,7 +503,7 @@ interactions:
|
|||
content-type:
|
||||
- application/json; odata.metadata=minimal
|
||||
date:
|
||||
- Wed, 13 Nov 2019 22:17:20 GMT
|
||||
- Sun, 22 Mar 2020 02:43:52 GMT
|
||||
expires:
|
||||
- '-1'
|
||||
odata-version:
|
||||
|
@ -541,8 +541,8 @@ interactions:
|
|||
ParameterSetName:
|
||||
- -g --policy-name --type
|
||||
User-Agent:
|
||||
- python/3.6.6 (Windows-10-10.0.18362-SP0) msrest/0.6.8 msrest_azure/0.6.1 azure-mgmt-frontdoor/0.1.0
|
||||
Azure-SDK-For-Python AZURECLI/2.0.68
|
||||
- python/3.7.7 (Windows-10-10.0.18362-SP0) msrest/0.6.11 msrest_azure/0.6.2
|
||||
azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.2.0
|
||||
accept-language:
|
||||
- en-US
|
||||
method: GET
|
||||
|
@ -565,7 +565,7 @@ interactions:
|
|||
content-type:
|
||||
- application/json; odata.metadata=minimal
|
||||
date:
|
||||
- Wed, 13 Nov 2019 22:17:21 GMT
|
||||
- Sun, 22 Mar 2020 02:43:53 GMT
|
||||
expires:
|
||||
- '-1'
|
||||
odata-version:
|
||||
|
@ -609,8 +609,8 @@ interactions:
|
|||
ParameterSetName:
|
||||
- -g --policy-name --type
|
||||
User-Agent:
|
||||
- python/3.6.6 (Windows-10-10.0.18362-SP0) msrest/0.6.8 msrest_azure/0.6.1 azure-mgmt-frontdoor/0.1.0
|
||||
Azure-SDK-For-Python AZURECLI/2.0.68
|
||||
- python/3.7.7 (Windows-10-10.0.18362-SP0) msrest/0.6.11 msrest_azure/0.6.2
|
||||
azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.2.0
|
||||
accept-language:
|
||||
- en-US
|
||||
method: PUT
|
||||
|
@ -631,7 +631,7 @@ interactions:
|
|||
content-type:
|
||||
- application/json; odata.metadata=minimal
|
||||
date:
|
||||
- Wed, 13 Nov 2019 22:17:23 GMT
|
||||
- Sun, 22 Mar 2020 02:43:54 GMT
|
||||
expires:
|
||||
- '-1'
|
||||
odata-version:
|
||||
|
@ -651,7 +651,7 @@ interactions:
|
|||
x-content-type-options:
|
||||
- nosniff
|
||||
x-ms-ratelimit-remaining-subscription-writes:
|
||||
- '1195'
|
||||
- '1198'
|
||||
x-powered-by:
|
||||
- ASP.NET
|
||||
status:
|
||||
|
@ -669,8 +669,8 @@ interactions:
|
|||
Connection:
|
||||
- keep-alive
|
||||
User-Agent:
|
||||
- python/3.6.6 (Windows-10-10.0.18362-SP0) msrest/0.6.8 msrest_azure/0.6.1 azure-mgmt-frontdoor/0.1.0
|
||||
Azure-SDK-For-Python AZURECLI/2.0.68
|
||||
- python/3.7.7 (Windows-10-10.0.18362-SP0) msrest/0.6.11 msrest_azure/0.6.2
|
||||
azure-mgmt-frontdoor/0.3.0 Azure-SDK-For-Python AZURECLI/2.2.0
|
||||
accept-language:
|
||||
- en-US
|
||||
method: GET
|
||||
|
@ -1424,7 +1424,7 @@ interactions:
|
|||
content-type:
|
||||
- application/json; odata.metadata=minimal
|
||||
date:
|
||||
- Wed, 13 Nov 2019 22:17:23 GMT
|
||||
- Sun, 22 Mar 2020 02:43:55 GMT
|
||||
expires:
|
||||
- '-1'
|
||||
odata-version:
|
||||
|
|
|
@ -22,7 +22,7 @@ class RouteRuleScenarioTests(ScenarioTest):
|
|||
'--patterns /forward2 --caching Disabled',
|
||||
checks=[
|
||||
self.check('patternsToMatch[0]', '/forward2'),
|
||||
self.check('contains(keys(routeConfiguration), "cacheConfiguration")', False)
|
||||
self.check('routeConfiguration.cacheConfiguration', None)
|
||||
])
|
||||
self.cmd('network front-door routing-rule create -f {front_door} -g {rg} -n {rule2} '
|
||||
'--frontend-endpoints DefaultFrontendEndpoint --route-type Redirect '
|
||||
|
|
|
@ -0,0 +1,190 @@
|
|||
# --------------------------------------------------------------------------------------------
|
||||
# Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
# Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
# --------------------------------------------------------------------------------------------
|
||||
from azure.cli.testsdk import (ScenarioTest, ResourceGroupPreparer)
|
||||
|
||||
|
||||
class RulesEngineScenarioTests(ScenarioTest):
|
||||
|
||||
@ResourceGroupPreparer(location='westus')
|
||||
def test_rules_engine_basic(self, resource_group):
|
||||
self.kwargs.update({
|
||||
'front_door': self.create_random_name('clifrontdoor', 20),
|
||||
'rules_engine': self.create_random_name('clirulesengine', length=20),
|
||||
'rule1': 'rule1',
|
||||
'rule2': 'rule2'
|
||||
})
|
||||
|
||||
"""Step 1: Create a Front Door"""
|
||||
self.cmd('network front-door create -g {rg} -n {front_door} --backend-address 202.120.2.3')
|
||||
|
||||
"""Step 2: Create a Rules Engine configuration with one rule in the Front Door"""
|
||||
self.cmd('network front-door rules-engine rule create -f {front_door} -g {rg} '
|
||||
'--rules-engine-name {rules_engine} --name {rule1} --priority 1 '
|
||||
'--action-type RequestHeader --header-action Overwrite --header-name Rewrite '
|
||||
'--header-value True --match-variable RequestFilenameExtension --operator Contains '
|
||||
'--match-values jpg png --transforms Lowercase',
|
||||
checks=[
|
||||
self.check('length(rules)', 1),
|
||||
self.check('length(rules[0].action.requestHeaderActions)', 1),
|
||||
self.check('rules[0].action.requestHeaderActions[0].headerActionType', 'Overwrite'),
|
||||
self.check('rules[0].action.requestHeaderActions[0].headerName', 'Rewrite'),
|
||||
self.check('rules[0].action.requestHeaderActions[0].value', 'True'),
|
||||
self.check('length(rules[0].matchConditions)', 1),
|
||||
self.check('rules[0].matchConditions[0].rulesEngineMatchVariable', 'RequestFilenameExtension'),
|
||||
self.check('rules[0].matchConditions[0].rulesEngineOperator', 'Contains'),
|
||||
self.check('rules[0].matchConditions[0].rulesEngineMatchValue', ['jpg', 'png']),
|
||||
self.check('rules[0].matchConditions[0].negateCondition', False),
|
||||
self.check('rules[0].matchConditions[0].selector', None),
|
||||
self.check('rules[0].matchConditions[0].transforms', ['Lowercase']),
|
||||
self.check('rules[0].matchProcessingBehavior', None),
|
||||
self.check('rules[0].priority', 1)
|
||||
])
|
||||
|
||||
"""Step 3: Create another rule in the Rules Engine configuration"""
|
||||
self.cmd('network front-door rules-engine rule create -f {front_door} -g {rg} '
|
||||
'--rules-engine-name {rules_engine} --name {rule2} --priority 2 '
|
||||
'--action-type ResponseHeader --header-action Append --header-name Security '
|
||||
'--header-value Strict --match-variable RequestPath --operator Contains '
|
||||
'--match-values private',
|
||||
checks=[
|
||||
self.check('length(rules)', 2),
|
||||
self.check('length(rules[1].action.responseHeaderActions)', 1),
|
||||
self.check('length(rules[1].matchConditions)', 1),
|
||||
self.check('rules[1].priority', 2)
|
||||
])
|
||||
|
||||
"""Step 4: Update a rule in the Rules Engine configuration"""
|
||||
self.cmd('network front-door rules-engine rule update -f {front_door} -g {rg} '
|
||||
'--rules-engine-name {rules_engine} --name {rule1} '
|
||||
'--match-processing-behavior Stop',
|
||||
checks=[
|
||||
self.check('rules[0].matchProcessingBehavior', 'Stop')
|
||||
])
|
||||
|
||||
"""Step 5: Get rule2 from Rules Engine configuration"""
|
||||
self.cmd('network front-door rules-engine rule show -f {front_door} -g {rg} '
|
||||
'--rules-engine-name {rules_engine} -n {rule2}',
|
||||
checks=[
|
||||
self.check('name', 'rule2')
|
||||
])
|
||||
|
||||
"""Step 6: List all rules of a Rules Engine configuration"""
|
||||
self.cmd('network front-door rules-engine rule list -f {front_door} -g {rg} '
|
||||
'--name {rules_engine}',
|
||||
checks=[
|
||||
self.check('length(@)', 2)
|
||||
])
|
||||
|
||||
"""Step 7: GET the Rules Engine configuration with two rules"""
|
||||
self.cmd('network front-door rules-engine show -f {front_door} -g {rg} '
|
||||
'--name {rules_engine}',
|
||||
checks=[
|
||||
self.check('length(rules)', 2)
|
||||
])
|
||||
|
||||
"""Step 8: Add a Header action to the rule"""
|
||||
self.cmd('network front-door rules-engine rule action add -f {front_door} -g {rg} '
|
||||
'--rules-engine-name {rules_engine} --name {rule2} --action-type '
|
||||
'ResponseHeader --header-action Delete --header-name Location',
|
||||
checks=[
|
||||
self.check('length(rules[1].action.responseHeaderActions)', 2),
|
||||
self.check('rules[1].action.responseHeaderActions[1].headerActionType', 'Delete'),
|
||||
self.check('rules[1].action.responseHeaderActions[1].headerName', 'Location'),
|
||||
self.check('rules[1].action.responseHeaderActions[1].value', None)
|
||||
])
|
||||
|
||||
"""Step 9: Add a Forward Route Override action to the rule"""
|
||||
self.cmd('network front-door rules-engine rule action add -f {front_door} -g {rg} '
|
||||
'--rules-engine-name {rules_engine} --name {rule1} --action-type '
|
||||
'ForwardRouteOverride --backend-pool DefaultBackendPool --caching Enabled',
|
||||
checks=[
|
||||
self.check('length(rules[0].action.routeConfigurationOverride)', 5),
|
||||
self.check('contains(rules[0].action.routeConfigurationOverride.odatatype, `FrontdoorForwardingConfiguration`)', True),
|
||||
self.check('contains(rules[0].action.routeConfigurationOverride.backendPool.id, `DefaultBackendPool`)', True),
|
||||
self.check('length(rules[0].action.routeConfigurationOverride.cacheConfiguration)', 4)
|
||||
])
|
||||
|
||||
"""Step 10: Add a Redirect Route Override action to the rule"""
|
||||
self.cmd('network front-door rules-engine rule action add -f {front_door} -g {rg} '
|
||||
'-r {rules_engine} --name {rule2} --action-type '
|
||||
'RedirectRouteOverride --custom-path /redirect',
|
||||
checks=[
|
||||
self.check('length(rules[1].action.routeConfigurationOverride)', 7),
|
||||
self.check('contains(rules[1].action.routeConfigurationOverride.odatatype, `FrontdoorRedirectConfiguration`)', True),
|
||||
self.check('rules[1].action.routeConfigurationOverride.redirectProtocol', 'MatchRequest'),
|
||||
self.check('rules[1].action.routeConfigurationOverride.customPath', '/redirect')
|
||||
])
|
||||
|
||||
"""Step 11: List all the actions in rule1"""
|
||||
self.cmd('network front-door rules-engine rule action list -f {front_door} -g {rg} '
|
||||
'-r {rules_engine} --name {rule1}',
|
||||
checks=[
|
||||
self.check('length(@) > `0`', True)
|
||||
])
|
||||
|
||||
"""Step 12: List all the actions in rule2"""
|
||||
self.cmd('network front-door rules-engine rule action list -f {front_door} -g {rg} '
|
||||
'-r {rules_engine} --name {rule2}',
|
||||
checks=[
|
||||
self.check('length(@) > `0`', True)
|
||||
])
|
||||
|
||||
"""Step 13: Add a match condition to the rule"""
|
||||
self.cmd('network front-door rules-engine rule condition add -f {front_door} -g {rg} '
|
||||
'-r {rules_engine} --name {rule1} --match-variable '
|
||||
'RequestHeader --selector x-language --operator Equal '
|
||||
'--match-values en-gb en-th --transforms Lowercase',
|
||||
checks=[
|
||||
self.check('length(rules[0].matchConditions)', 2),
|
||||
self.check('rules[0].matchConditions[1].rulesEngineMatchVariable', 'RequestHeader'),
|
||||
self.check('rules[0].matchConditions[1].rulesEngineOperator', 'Equal'),
|
||||
self.check('rules[0].matchConditions[1].rulesEngineMatchValue', ['en-gb', 'en-th']),
|
||||
self.check('rules[0].matchConditions[1].negateCondition', False),
|
||||
self.check('rules[0].matchConditions[1].selector', 'x-language'),
|
||||
self.check('rules[0].matchConditions[1].transforms', ['Lowercase'])
|
||||
])
|
||||
|
||||
"""Step 14: List all the match conditions in a rule"""
|
||||
self.cmd('network front-door rules-engine rule condition list -f {front_door} -g {rg} '
|
||||
'--rules-engine-name {rules_engine} --name {rule1}',
|
||||
checks=[
|
||||
self.check('length(@)', 2)
|
||||
])
|
||||
|
||||
"""Step 15: Remove a match condition from a rule"""
|
||||
self.cmd('network front-door rules-engine rule condition remove -f {front_door} -g {rg} '
|
||||
'--rules-engine-name {rules_engine} --name {rule1} --index 0',
|
||||
checks=[
|
||||
self.check('length(rules[0].matchConditions)', 1)
|
||||
])
|
||||
|
||||
"""Step 16: Remove a Route Override action from a rule"""
|
||||
self.cmd('network front-door rules-engine rule action remove -f {front_door} -g {rg} '
|
||||
'--rules-engine-name {rules_engine} --name {rule1} --action-type '
|
||||
'ForwardRouteOverride',
|
||||
checks=[
|
||||
self.check('rules[0].routeConfigurationOverride', None)
|
||||
])
|
||||
|
||||
"""Step 17: Remove a Header action from a rule"""
|
||||
self.cmd('network front-door rules-engine rule action remove -f {front_door} -g {rg} '
|
||||
'--rules-engine-name {rules_engine} --name {rule2} --action-type '
|
||||
'ResponseHeader --index 1',
|
||||
checks=[
|
||||
self.check('length(rules[1].action.responseHeaderActions)', 1)
|
||||
])
|
||||
|
||||
"""Step 18: Delete a rule from a Rules Engine configuration"""
|
||||
self.cmd('network front-door rules-engine rule delete -f {front_door} -g {rg} '
|
||||
'--rules-engine-name {rules_engine} --name {rule2}',
|
||||
checks=[
|
||||
self.check('length(rules)', 1)
|
||||
])
|
||||
|
||||
"""Step 19: List all the Rules Engine configurations in a Front Door"""
|
||||
self.cmd('network front-door rules-engine list -f {front_door} -g {rg}',
|
||||
checks=[
|
||||
self.check('length(@)', 1)
|
||||
])
|
|
@ -7,9 +7,9 @@ from azure.cli.testsdk import (ScenarioTest, JMESPathCheck, ResourceGroupPrepare
|
|||
from .frontdoor_test_util import WafScenarioMixin
|
||||
from knack.cli import CLIError
|
||||
try:
|
||||
from azext_front_door.vendored_sdks.models.error_response_py3 import ErrorResponseException
|
||||
from azext_front_door.vendored_sdks.models._models_py3 import ErrorResponseException
|
||||
except (SyntaxError, ImportError):
|
||||
from azext_front_door.vendored_sdks.models.error_response import ErrorResponseException
|
||||
from azext_front_door.vendored_sdks.models._models import ErrorResponseException
|
||||
|
||||
|
||||
class WafTests(WafScenarioMixin, ScenarioTest):
|
||||
|
|
|
@ -9,10 +9,11 @@
|
|||
# regenerated.
|
||||
# --------------------------------------------------------------------------
|
||||
|
||||
from .front_door_management_client import FrontDoorManagementClient
|
||||
from .version import VERSION
|
||||
from ._configuration import FrontDoorManagementClientConfiguration
|
||||
from ._front_door_management_client import FrontDoorManagementClient
|
||||
__all__ = ['FrontDoorManagementClient', 'FrontDoorManagementClientConfiguration']
|
||||
|
||||
__all__ = ['FrontDoorManagementClient']
|
||||
from .version import VERSION
|
||||
|
||||
__version__ = VERSION
|
||||
|
||||
|
|
|
@ -0,0 +1,50 @@
|
|||
# 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 msrestazure import AzureConfiguration
|
||||
|
||||
from .version import VERSION
|
||||
|
||||
|
||||
class FrontDoorManagementClientConfiguration(AzureConfiguration):
|
||||
"""Configuration for FrontDoorManagementClient
|
||||
Note that all parameters used to create this instance are saved as instance
|
||||
attributes.
|
||||
|
||||
:param credentials: Credentials needed for the client to connect to Azure.
|
||||
:type credentials: :mod:`A msrestazure Credentials
|
||||
object<msrestazure.azure_active_directory>`
|
||||
:param subscription_id: The subscription credentials which uniquely
|
||||
identify the Microsoft Azure subscription. The subscription ID forms part
|
||||
of the URI for every service call.
|
||||
:type subscription_id: str
|
||||
:param str base_url: Service URL
|
||||
"""
|
||||
|
||||
def __init__(
|
||||
self, credentials, subscription_id, base_url=None):
|
||||
|
||||
if credentials is None:
|
||||
raise ValueError("Parameter 'credentials' must not be None.")
|
||||
if subscription_id is None:
|
||||
raise ValueError("Parameter 'subscription_id' must not be None.")
|
||||
if not base_url:
|
||||
base_url = 'https://management.azure.com'
|
||||
|
||||
super(FrontDoorManagementClientConfiguration, self).__init__(base_url)
|
||||
|
||||
# Starting Autorest.Python 4.0.64, make connection pool activated by default
|
||||
self.keep_alive = True
|
||||
|
||||
self.add_user_agent('azure-mgmt-frontdoor/{}'.format(VERSION))
|
||||
self.add_user_agent('Azure-SDK-For-Python')
|
||||
|
||||
self.credentials = credentials
|
||||
self.subscription_id = subscription_id
|
|
@ -0,0 +1,96 @@
|
|||
# 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.service_client import SDKClient
|
||||
from msrest import Serializer, Deserializer
|
||||
|
||||
from ._configuration import FrontDoorManagementClientConfiguration
|
||||
from .operations import FrontDoorManagementClientOperationsMixin
|
||||
from .operations import NetworkExperimentProfilesOperations
|
||||
from .operations import PreconfiguredEndpointsOperations
|
||||
from .operations import ExperimentsOperations
|
||||
from .operations import ReportsOperations
|
||||
from .operations import FrontDoorsOperations
|
||||
from .operations import FrontendEndpointsOperations
|
||||
from .operations import EndpointsOperations
|
||||
from .operations import RulesEnginesOperations
|
||||
from .operations import PoliciesOperations
|
||||
from .operations import ManagedRuleSetsOperations
|
||||
from . import models
|
||||
|
||||
|
||||
class FrontDoorManagementClient(FrontDoorManagementClientOperationsMixin, SDKClient):
|
||||
"""FrontDoor Client
|
||||
|
||||
:ivar config: Configuration for client.
|
||||
:vartype config: FrontDoorManagementClientConfiguration
|
||||
|
||||
:ivar network_experiment_profiles: NetworkExperimentProfiles operations
|
||||
:vartype network_experiment_profiles: azure.mgmt.frontdoor.operations.NetworkExperimentProfilesOperations
|
||||
:ivar preconfigured_endpoints: PreconfiguredEndpoints operations
|
||||
:vartype preconfigured_endpoints: azure.mgmt.frontdoor.operations.PreconfiguredEndpointsOperations
|
||||
:ivar experiments: Experiments operations
|
||||
:vartype experiments: azure.mgmt.frontdoor.operations.ExperimentsOperations
|
||||
:ivar reports: Reports operations
|
||||
:vartype reports: azure.mgmt.frontdoor.operations.ReportsOperations
|
||||
:ivar front_doors: FrontDoors operations
|
||||
:vartype front_doors: azure.mgmt.frontdoor.operations.FrontDoorsOperations
|
||||
:ivar frontend_endpoints: FrontendEndpoints operations
|
||||
:vartype frontend_endpoints: azure.mgmt.frontdoor.operations.FrontendEndpointsOperations
|
||||
:ivar endpoints: Endpoints operations
|
||||
:vartype endpoints: azure.mgmt.frontdoor.operations.EndpointsOperations
|
||||
:ivar rules_engines: RulesEngines operations
|
||||
:vartype rules_engines: azure.mgmt.frontdoor.operations.RulesEnginesOperations
|
||||
:ivar policies: Policies operations
|
||||
:vartype policies: azure.mgmt.frontdoor.operations.PoliciesOperations
|
||||
:ivar managed_rule_sets: ManagedRuleSets operations
|
||||
:vartype managed_rule_sets: azure.mgmt.frontdoor.operations.ManagedRuleSetsOperations
|
||||
|
||||
:param credentials: Credentials needed for the client to connect to Azure.
|
||||
:type credentials: :mod:`A msrestazure Credentials
|
||||
object<msrestazure.azure_active_directory>`
|
||||
:param subscription_id: The subscription credentials which uniquely
|
||||
identify the Microsoft Azure subscription. The subscription ID forms part
|
||||
of the URI for every service call.
|
||||
:type subscription_id: str
|
||||
:param str base_url: Service URL
|
||||
"""
|
||||
|
||||
def __init__(
|
||||
self, credentials, subscription_id, base_url=None):
|
||||
|
||||
self.config = FrontDoorManagementClientConfiguration(credentials, subscription_id, base_url)
|
||||
super(FrontDoorManagementClient, self).__init__(self.config.credentials, self.config)
|
||||
|
||||
client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)}
|
||||
self._serialize = Serializer(client_models)
|
||||
self._deserialize = Deserializer(client_models)
|
||||
|
||||
self.network_experiment_profiles = NetworkExperimentProfilesOperations(
|
||||
self._client, self.config, self._serialize, self._deserialize)
|
||||
self.preconfigured_endpoints = PreconfiguredEndpointsOperations(
|
||||
self._client, self.config, self._serialize, self._deserialize)
|
||||
self.experiments = ExperimentsOperations(
|
||||
self._client, self.config, self._serialize, self._deserialize)
|
||||
self.reports = ReportsOperations(
|
||||
self._client, self.config, self._serialize, self._deserialize)
|
||||
self.front_doors = FrontDoorsOperations(
|
||||
self._client, self.config, self._serialize, self._deserialize)
|
||||
self.frontend_endpoints = FrontendEndpointsOperations(
|
||||
self._client, self.config, self._serialize, self._deserialize)
|
||||
self.endpoints = EndpointsOperations(
|
||||
self._client, self.config, self._serialize, self._deserialize)
|
||||
self.rules_engines = RulesEnginesOperations(
|
||||
self._client, self.config, self._serialize, self._deserialize)
|
||||
self.policies = PoliciesOperations(
|
||||
self._client, self.config, self._serialize, self._deserialize)
|
||||
self.managed_rule_sets = ManagedRuleSetsOperations(
|
||||
self._client, self.config, self._serialize, self._deserialize)
|
|
@ -10,137 +10,150 @@
|
|||
# --------------------------------------------------------------------------
|
||||
|
||||
try:
|
||||
from .error_details_py3 import ErrorDetails
|
||||
from .error_py3 import Error
|
||||
from .azure_async_operation_result_py3 import AzureAsyncOperationResult
|
||||
from .resource_py3 import Resource
|
||||
from .sub_resource_py3 import SubResource
|
||||
from .tags_object_py3 import TagsObject
|
||||
from .profile_py3 import Profile
|
||||
from .endpoint_py3 import Endpoint
|
||||
from .profile_update_model_py3 import ProfileUpdateModel
|
||||
from .experiment_update_model_py3 import ExperimentUpdateModel
|
||||
from .experiment_py3 import Experiment
|
||||
from .latency_metric_py3 import LatencyMetric
|
||||
from .latency_scorecard_py3 import LatencyScorecard
|
||||
from .timeseries_data_point_py3 import TimeseriesDataPoint
|
||||
from .timeseries_py3 import Timeseries
|
||||
from .preconfigured_endpoint_py3 import PreconfiguredEndpoint
|
||||
from .error_response_py3 import ErrorResponse, ErrorResponseException
|
||||
from .front_door_py3 import FrontDoor
|
||||
from .routing_rule_py3 import RoutingRule
|
||||
from .load_balancing_settings_model_py3 import LoadBalancingSettingsModel
|
||||
from .health_probe_settings_model_py3 import HealthProbeSettingsModel
|
||||
from .backend_pool_py3 import BackendPool
|
||||
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 .routing_rule_list_result_py3 import RoutingRuleListResult
|
||||
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
|
||||
from .validate_custom_domain_output_py3 import ValidateCustomDomainOutput
|
||||
from .check_name_availability_input_py3 import CheckNameAvailabilityInput
|
||||
from .check_name_availability_output_py3 import CheckNameAvailabilityOutput
|
||||
from .policy_settings_py3 import PolicySettings
|
||||
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
|
||||
from .managed_rule_set_list_py3 import ManagedRuleSetList
|
||||
from .frontend_endpoint_link_py3 import FrontendEndpointLink
|
||||
from .web_application_firewall_policy_py3 import WebApplicationFirewallPolicy
|
||||
from .managed_rule_definition_py3 import ManagedRuleDefinition
|
||||
from .managed_rule_group_definition_py3 import ManagedRuleGroupDefinition
|
||||
from .managed_rule_set_definition_py3 import ManagedRuleSetDefinition
|
||||
from ._models_py3 import AzureAsyncOperationResult
|
||||
from ._models_py3 import Backend
|
||||
from ._models_py3 import BackendPool
|
||||
from ._models_py3 import BackendPoolListResult
|
||||
from ._models_py3 import BackendPoolsSettings
|
||||
from ._models_py3 import BackendPoolUpdateParameters
|
||||
from ._models_py3 import CacheConfiguration
|
||||
from ._models_py3 import CheckNameAvailabilityInput
|
||||
from ._models_py3 import CheckNameAvailabilityOutput
|
||||
from ._models_py3 import CustomHttpsConfiguration
|
||||
from ._models_py3 import CustomRule
|
||||
from ._models_py3 import CustomRuleList
|
||||
from ._models_py3 import Endpoint
|
||||
from ._models_py3 import Error
|
||||
from ._models_py3 import ErrorDetails
|
||||
from ._models_py3 import ErrorResponse, ErrorResponseException
|
||||
from ._models_py3 import Experiment
|
||||
from ._models_py3 import ExperimentUpdateModel
|
||||
from ._models_py3 import ForwardingConfiguration
|
||||
from ._models_py3 import FrontDoor
|
||||
from ._models_py3 import FrontDoorUpdateParameters
|
||||
from ._models_py3 import FrontendEndpoint
|
||||
from ._models_py3 import FrontendEndpointLink
|
||||
from ._models_py3 import FrontendEndpointUpdateParameters
|
||||
from ._models_py3 import FrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink
|
||||
from ._models_py3 import HeaderAction
|
||||
from ._models_py3 import HealthProbeSettingsListResult
|
||||
from ._models_py3 import HealthProbeSettingsModel
|
||||
from ._models_py3 import HealthProbeSettingsUpdateParameters
|
||||
from ._models_py3 import KeyVaultCertificateSourceParametersVault
|
||||
from ._models_py3 import LatencyMetric
|
||||
from ._models_py3 import LatencyScorecard
|
||||
from ._models_py3 import LoadBalancingSettingsListResult
|
||||
from ._models_py3 import LoadBalancingSettingsModel
|
||||
from ._models_py3 import LoadBalancingSettingsUpdateParameters
|
||||
from ._models_py3 import ManagedRuleDefinition
|
||||
from ._models_py3 import ManagedRuleExclusion
|
||||
from ._models_py3 import ManagedRuleGroupDefinition
|
||||
from ._models_py3 import ManagedRuleGroupOverride
|
||||
from ._models_py3 import ManagedRuleOverride
|
||||
from ._models_py3 import ManagedRuleSet
|
||||
from ._models_py3 import ManagedRuleSetDefinition
|
||||
from ._models_py3 import ManagedRuleSetList
|
||||
from ._models_py3 import MatchCondition
|
||||
from ._models_py3 import PolicySettings
|
||||
from ._models_py3 import PreconfiguredEndpoint
|
||||
from ._models_py3 import Profile
|
||||
from ._models_py3 import ProfileUpdateModel
|
||||
from ._models_py3 import PurgeParameters
|
||||
from ._models_py3 import RedirectConfiguration
|
||||
from ._models_py3 import Resource
|
||||
from ._models_py3 import RouteConfiguration
|
||||
from ._models_py3 import RoutingRule
|
||||
from ._models_py3 import RoutingRuleListResult
|
||||
from ._models_py3 import RoutingRuleUpdateParameters
|
||||
from ._models_py3 import RulesEngine
|
||||
from ._models_py3 import RulesEngineAction
|
||||
from ._models_py3 import RulesEngineMatchCondition
|
||||
from ._models_py3 import RulesEngineRule
|
||||
from ._models_py3 import RulesEngineUpdateParameters
|
||||
from ._models_py3 import SubResource
|
||||
from ._models_py3 import TagsObject
|
||||
from ._models_py3 import Timeseries
|
||||
from ._models_py3 import TimeseriesDataPoint
|
||||
from ._models_py3 import ValidateCustomDomainInput
|
||||
from ._models_py3 import ValidateCustomDomainOutput
|
||||
from ._models_py3 import WebApplicationFirewallPolicy
|
||||
except (SyntaxError, ImportError):
|
||||
from .error_details import ErrorDetails
|
||||
from .error import Error
|
||||
from .azure_async_operation_result import AzureAsyncOperationResult
|
||||
from .resource import Resource
|
||||
from .sub_resource import SubResource
|
||||
from .tags_object import TagsObject
|
||||
from .profile import Profile
|
||||
from .endpoint import Endpoint
|
||||
from .profile_update_model import ProfileUpdateModel
|
||||
from .experiment_update_model import ExperimentUpdateModel
|
||||
from .experiment import Experiment
|
||||
from .latency_metric import LatencyMetric
|
||||
from .latency_scorecard import LatencyScorecard
|
||||
from .timeseries_data_point import TimeseriesDataPoint
|
||||
from .timeseries import Timeseries
|
||||
from .preconfigured_endpoint import PreconfiguredEndpoint
|
||||
from .error_response import ErrorResponse, ErrorResponseException
|
||||
from .front_door import FrontDoor
|
||||
from .routing_rule import RoutingRule
|
||||
from .load_balancing_settings_model import LoadBalancingSettingsModel
|
||||
from .health_probe_settings_model import HealthProbeSettingsModel
|
||||
from .backend_pool import BackendPool
|
||||
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 .routing_rule_list_result import RoutingRuleListResult
|
||||
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
|
||||
from .validate_custom_domain_output import ValidateCustomDomainOutput
|
||||
from .check_name_availability_input import CheckNameAvailabilityInput
|
||||
from .check_name_availability_output import CheckNameAvailabilityOutput
|
||||
from .policy_settings import PolicySettings
|
||||
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
|
||||
from .managed_rule_set_list import ManagedRuleSetList
|
||||
from .frontend_endpoint_link import FrontendEndpointLink
|
||||
from .web_application_firewall_policy import WebApplicationFirewallPolicy
|
||||
from .managed_rule_definition import ManagedRuleDefinition
|
||||
from .managed_rule_group_definition import ManagedRuleGroupDefinition
|
||||
from .managed_rule_set_definition import ManagedRuleSetDefinition
|
||||
from .profile_paged import ProfilePaged
|
||||
from .preconfigured_endpoint_paged import PreconfiguredEndpointPaged
|
||||
from .experiment_paged import ExperimentPaged
|
||||
from .front_door_paged import FrontDoorPaged
|
||||
from .frontend_endpoint_paged import FrontendEndpointPaged
|
||||
from .web_application_firewall_policy_paged import WebApplicationFirewallPolicyPaged
|
||||
from .managed_rule_set_definition_paged import ManagedRuleSetDefinitionPaged
|
||||
from .front_door_management_client_enums import (
|
||||
from ._models import AzureAsyncOperationResult
|
||||
from ._models import Backend
|
||||
from ._models import BackendPool
|
||||
from ._models import BackendPoolListResult
|
||||
from ._models import BackendPoolsSettings
|
||||
from ._models import BackendPoolUpdateParameters
|
||||
from ._models import CacheConfiguration
|
||||
from ._models import CheckNameAvailabilityInput
|
||||
from ._models import CheckNameAvailabilityOutput
|
||||
from ._models import CustomHttpsConfiguration
|
||||
from ._models import CustomRule
|
||||
from ._models import CustomRuleList
|
||||
from ._models import Endpoint
|
||||
from ._models import Error
|
||||
from ._models import ErrorDetails
|
||||
from ._models import ErrorResponse, ErrorResponseException
|
||||
from ._models import Experiment
|
||||
from ._models import ExperimentUpdateModel
|
||||
from ._models import ForwardingConfiguration
|
||||
from ._models import FrontDoor
|
||||
from ._models import FrontDoorUpdateParameters
|
||||
from ._models import FrontendEndpoint
|
||||
from ._models import FrontendEndpointLink
|
||||
from ._models import FrontendEndpointUpdateParameters
|
||||
from ._models import FrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink
|
||||
from ._models import HeaderAction
|
||||
from ._models import HealthProbeSettingsListResult
|
||||
from ._models import HealthProbeSettingsModel
|
||||
from ._models import HealthProbeSettingsUpdateParameters
|
||||
from ._models import KeyVaultCertificateSourceParametersVault
|
||||
from ._models import LatencyMetric
|
||||
from ._models import LatencyScorecard
|
||||
from ._models import LoadBalancingSettingsListResult
|
||||
from ._models import LoadBalancingSettingsModel
|
||||
from ._models import LoadBalancingSettingsUpdateParameters
|
||||
from ._models import ManagedRuleDefinition
|
||||
from ._models import ManagedRuleExclusion
|
||||
from ._models import ManagedRuleGroupDefinition
|
||||
from ._models import ManagedRuleGroupOverride
|
||||
from ._models import ManagedRuleOverride
|
||||
from ._models import ManagedRuleSet
|
||||
from ._models import ManagedRuleSetDefinition
|
||||
from ._models import ManagedRuleSetList
|
||||
from ._models import MatchCondition
|
||||
from ._models import PolicySettings
|
||||
from ._models import PreconfiguredEndpoint
|
||||
from ._models import Profile
|
||||
from ._models import ProfileUpdateModel
|
||||
from ._models import PurgeParameters
|
||||
from ._models import RedirectConfiguration
|
||||
from ._models import Resource
|
||||
from ._models import RouteConfiguration
|
||||
from ._models import RoutingRule
|
||||
from ._models import RoutingRuleListResult
|
||||
from ._models import RoutingRuleUpdateParameters
|
||||
from ._models import RulesEngine
|
||||
from ._models import RulesEngineAction
|
||||
from ._models import RulesEngineMatchCondition
|
||||
from ._models import RulesEngineRule
|
||||
from ._models import RulesEngineUpdateParameters
|
||||
from ._models import SubResource
|
||||
from ._models import TagsObject
|
||||
from ._models import Timeseries
|
||||
from ._models import TimeseriesDataPoint
|
||||
from ._models import ValidateCustomDomainInput
|
||||
from ._models import ValidateCustomDomainOutput
|
||||
from ._models import WebApplicationFirewallPolicy
|
||||
from ._paged_models import ExperimentPaged
|
||||
from ._paged_models import FrontDoorPaged
|
||||
from ._paged_models import FrontendEndpointPaged
|
||||
from ._paged_models import ManagedRuleSetDefinitionPaged
|
||||
from ._paged_models import PreconfiguredEndpointPaged
|
||||
from ._paged_models import ProfilePaged
|
||||
from ._paged_models import RulesEnginePaged
|
||||
from ._paged_models import WebApplicationFirewallPolicyPaged
|
||||
from ._front_door_management_client_enums import (
|
||||
NetworkOperationStatus,
|
||||
NetworkExperimentResourceState,
|
||||
State,
|
||||
|
@ -162,10 +175,16 @@ from .front_door_management_client_enums import (
|
|||
DynamicCompressionEnabled,
|
||||
FrontDoorRedirectType,
|
||||
FrontDoorRedirectProtocol,
|
||||
PrivateEndpointStatus,
|
||||
BackendEnabledState,
|
||||
FrontDoorHealthProbeMethod,
|
||||
HealthProbeEnabled,
|
||||
SessionAffinityEnabledState,
|
||||
HeaderActionType,
|
||||
RulesEngineMatchVariable,
|
||||
RulesEngineOperator,
|
||||
Transform,
|
||||
MatchProcessingBehavior,
|
||||
ResourceType,
|
||||
Availability,
|
||||
PolicyEnabledState,
|
||||
|
@ -185,72 +204,79 @@ from .front_door_management_client_enums import (
|
|||
)
|
||||
|
||||
__all__ = [
|
||||
'ErrorDetails',
|
||||
'Error',
|
||||
'AzureAsyncOperationResult',
|
||||
'Resource',
|
||||
'SubResource',
|
||||
'TagsObject',
|
||||
'Profile',
|
||||
'Endpoint',
|
||||
'ProfileUpdateModel',
|
||||
'ExperimentUpdateModel',
|
||||
'Experiment',
|
||||
'LatencyMetric',
|
||||
'LatencyScorecard',
|
||||
'TimeseriesDataPoint',
|
||||
'Timeseries',
|
||||
'PreconfiguredEndpoint',
|
||||
'ErrorResponse', 'ErrorResponseException',
|
||||
'FrontDoor',
|
||||
'RoutingRule',
|
||||
'LoadBalancingSettingsModel',
|
||||
'HealthProbeSettingsModel',
|
||||
'BackendPool',
|
||||
'KeyVaultCertificateSourceParametersVault',
|
||||
'CustomHttpsConfiguration',
|
||||
'FrontendEndpoint',
|
||||
'BackendPoolsSettings',
|
||||
'FrontDoorUpdateParameters',
|
||||
'PurgeParameters',
|
||||
'RoutingRuleListResult',
|
||||
'RouteConfiguration',
|
||||
'RoutingRuleUpdateParameters',
|
||||
'CacheConfiguration',
|
||||
'ForwardingConfiguration',
|
||||
'RedirectConfiguration',
|
||||
'Backend',
|
||||
'LoadBalancingSettingsListResult',
|
||||
'LoadBalancingSettingsUpdateParameters',
|
||||
'HealthProbeSettingsListResult',
|
||||
'HealthProbeSettingsUpdateParameters',
|
||||
'BackendPoolUpdateParameters',
|
||||
'BackendPool',
|
||||
'BackendPoolListResult',
|
||||
'FrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink',
|
||||
'FrontendEndpointUpdateParameters',
|
||||
'ValidateCustomDomainInput',
|
||||
'ValidateCustomDomainOutput',
|
||||
'BackendPoolsSettings',
|
||||
'BackendPoolUpdateParameters',
|
||||
'CacheConfiguration',
|
||||
'CheckNameAvailabilityInput',
|
||||
'CheckNameAvailabilityOutput',
|
||||
'PolicySettings',
|
||||
'MatchCondition',
|
||||
'CustomHttpsConfiguration',
|
||||
'CustomRule',
|
||||
'CustomRuleList',
|
||||
'ManagedRuleExclusion',
|
||||
'ManagedRuleOverride',
|
||||
'ManagedRuleGroupOverride',
|
||||
'ManagedRuleSet',
|
||||
'ManagedRuleSetList',
|
||||
'Endpoint',
|
||||
'Error',
|
||||
'ErrorDetails',
|
||||
'ErrorResponse', 'ErrorResponseException',
|
||||
'Experiment',
|
||||
'ExperimentUpdateModel',
|
||||
'ForwardingConfiguration',
|
||||
'FrontDoor',
|
||||
'FrontDoorUpdateParameters',
|
||||
'FrontendEndpoint',
|
||||
'FrontendEndpointLink',
|
||||
'WebApplicationFirewallPolicy',
|
||||
'FrontendEndpointUpdateParameters',
|
||||
'FrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink',
|
||||
'HeaderAction',
|
||||
'HealthProbeSettingsListResult',
|
||||
'HealthProbeSettingsModel',
|
||||
'HealthProbeSettingsUpdateParameters',
|
||||
'KeyVaultCertificateSourceParametersVault',
|
||||
'LatencyMetric',
|
||||
'LatencyScorecard',
|
||||
'LoadBalancingSettingsListResult',
|
||||
'LoadBalancingSettingsModel',
|
||||
'LoadBalancingSettingsUpdateParameters',
|
||||
'ManagedRuleDefinition',
|
||||
'ManagedRuleExclusion',
|
||||
'ManagedRuleGroupDefinition',
|
||||
'ManagedRuleGroupOverride',
|
||||
'ManagedRuleOverride',
|
||||
'ManagedRuleSet',
|
||||
'ManagedRuleSetDefinition',
|
||||
'ManagedRuleSetList',
|
||||
'MatchCondition',
|
||||
'PolicySettings',
|
||||
'PreconfiguredEndpoint',
|
||||
'Profile',
|
||||
'ProfileUpdateModel',
|
||||
'PurgeParameters',
|
||||
'RedirectConfiguration',
|
||||
'Resource',
|
||||
'RouteConfiguration',
|
||||
'RoutingRule',
|
||||
'RoutingRuleListResult',
|
||||
'RoutingRuleUpdateParameters',
|
||||
'RulesEngine',
|
||||
'RulesEngineAction',
|
||||
'RulesEngineMatchCondition',
|
||||
'RulesEngineRule',
|
||||
'RulesEngineUpdateParameters',
|
||||
'SubResource',
|
||||
'TagsObject',
|
||||
'Timeseries',
|
||||
'TimeseriesDataPoint',
|
||||
'ValidateCustomDomainInput',
|
||||
'ValidateCustomDomainOutput',
|
||||
'WebApplicationFirewallPolicy',
|
||||
'ProfilePaged',
|
||||
'PreconfiguredEndpointPaged',
|
||||
'ExperimentPaged',
|
||||
'FrontDoorPaged',
|
||||
'FrontendEndpointPaged',
|
||||
'RulesEnginePaged',
|
||||
'WebApplicationFirewallPolicyPaged',
|
||||
'ManagedRuleSetDefinitionPaged',
|
||||
'NetworkOperationStatus',
|
||||
|
@ -274,10 +300,16 @@ __all__ = [
|
|||
'DynamicCompressionEnabled',
|
||||
'FrontDoorRedirectType',
|
||||
'FrontDoorRedirectProtocol',
|
||||
'PrivateEndpointStatus',
|
||||
'BackendEnabledState',
|
||||
'FrontDoorHealthProbeMethod',
|
||||
'HealthProbeEnabled',
|
||||
'SessionAffinityEnabledState',
|
||||
'HeaderActionType',
|
||||
'RulesEngineMatchVariable',
|
||||
'RulesEngineOperator',
|
||||
'Transform',
|
||||
'MatchProcessingBehavior',
|
||||
'ResourceType',
|
||||
'Availability',
|
||||
'PolicyEnabledState',
|
||||
|
|
|
@ -142,6 +142,8 @@ class FrontDoorQuery(str, Enum):
|
|||
|
||||
strip_none = "StripNone"
|
||||
strip_all = "StripAll"
|
||||
strip_only = "StripOnly"
|
||||
strip_all_except = "StripAllExcept"
|
||||
|
||||
|
||||
class DynamicCompressionEnabled(str, Enum):
|
||||
|
@ -165,6 +167,15 @@ class FrontDoorRedirectProtocol(str, Enum):
|
|||
match_request = "MatchRequest"
|
||||
|
||||
|
||||
class PrivateEndpointStatus(str, Enum):
|
||||
|
||||
pending = "Pending"
|
||||
approved = "Approved"
|
||||
rejected = "Rejected"
|
||||
disconnected = "Disconnected"
|
||||
timeout = "Timeout"
|
||||
|
||||
|
||||
class BackendEnabledState(str, Enum):
|
||||
|
||||
enabled = "Enabled"
|
||||
|
@ -189,6 +200,60 @@ class SessionAffinityEnabledState(str, Enum):
|
|||
disabled = "Disabled"
|
||||
|
||||
|
||||
class HeaderActionType(str, Enum):
|
||||
|
||||
append = "Append"
|
||||
delete = "Delete"
|
||||
overwrite = "Overwrite"
|
||||
|
||||
|
||||
class RulesEngineMatchVariable(str, Enum):
|
||||
|
||||
is_mobile = "IsMobile"
|
||||
remote_addr = "RemoteAddr"
|
||||
request_method = "RequestMethod"
|
||||
query_string = "QueryString"
|
||||
post_args = "PostArgs"
|
||||
request_uri = "RequestUri"
|
||||
request_path = "RequestPath"
|
||||
request_filename = "RequestFilename"
|
||||
request_filename_extension = "RequestFilenameExtension"
|
||||
request_header = "RequestHeader"
|
||||
request_body = "RequestBody"
|
||||
request_scheme = "RequestScheme"
|
||||
|
||||
|
||||
class RulesEngineOperator(str, Enum):
|
||||
|
||||
any = "Any"
|
||||
ip_match = "IPMatch"
|
||||
geo_match = "GeoMatch"
|
||||
equal = "Equal"
|
||||
contains = "Contains"
|
||||
less_than = "LessThan"
|
||||
greater_than = "GreaterThan"
|
||||
less_than_or_equal = "LessThanOrEqual"
|
||||
greater_than_or_equal = "GreaterThanOrEqual"
|
||||
begins_with = "BeginsWith"
|
||||
ends_with = "EndsWith"
|
||||
|
||||
|
||||
class Transform(str, Enum):
|
||||
|
||||
lowercase = "Lowercase"
|
||||
uppercase = "Uppercase"
|
||||
trim = "Trim"
|
||||
url_decode = "UrlDecode"
|
||||
url_encode = "UrlEncode"
|
||||
remove_nulls = "RemoveNulls"
|
||||
|
||||
|
||||
class MatchProcessingBehavior(str, Enum):
|
||||
|
||||
continue_enum = "Continue"
|
||||
stop = "Stop"
|
||||
|
||||
|
||||
class ResourceType(str, Enum):
|
||||
|
||||
microsoft_networkfront_doors = "Microsoft.Network/frontDoors"
|
Разница между файлами не показана из-за своего большого размера
Загрузить разницу
Разница между файлами не показана из-за своего большого размера
Загрузить разницу
|
@ -0,0 +1,118 @@
|
|||
# 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.paging import Paged
|
||||
|
||||
|
||||
class ProfilePaged(Paged):
|
||||
"""
|
||||
A paging container for iterating over a list of :class:`Profile <azure.mgmt.frontdoor.models.Profile>` object
|
||||
"""
|
||||
|
||||
_attribute_map = {
|
||||
'next_link': {'key': 'nextLink', 'type': 'str'},
|
||||
'current_page': {'key': 'value', 'type': '[Profile]'}
|
||||
}
|
||||
|
||||
def __init__(self, *args, **kwargs):
|
||||
|
||||
super(ProfilePaged, self).__init__(*args, **kwargs)
|
||||
class PreconfiguredEndpointPaged(Paged):
|
||||
"""
|
||||
A paging container for iterating over a list of :class:`PreconfiguredEndpoint <azure.mgmt.frontdoor.models.PreconfiguredEndpoint>` object
|
||||
"""
|
||||
|
||||
_attribute_map = {
|
||||
'next_link': {'key': 'nextLink', 'type': 'str'},
|
||||
'current_page': {'key': 'value', 'type': '[PreconfiguredEndpoint]'}
|
||||
}
|
||||
|
||||
def __init__(self, *args, **kwargs):
|
||||
|
||||
super(PreconfiguredEndpointPaged, self).__init__(*args, **kwargs)
|
||||
class ExperimentPaged(Paged):
|
||||
"""
|
||||
A paging container for iterating over a list of :class:`Experiment <azure.mgmt.frontdoor.models.Experiment>` object
|
||||
"""
|
||||
|
||||
_attribute_map = {
|
||||
'next_link': {'key': 'nextLink', 'type': 'str'},
|
||||
'current_page': {'key': 'value', 'type': '[Experiment]'}
|
||||
}
|
||||
|
||||
def __init__(self, *args, **kwargs):
|
||||
|
||||
super(ExperimentPaged, self).__init__(*args, **kwargs)
|
||||
class FrontDoorPaged(Paged):
|
||||
"""
|
||||
A paging container for iterating over a list of :class:`FrontDoor <azure.mgmt.frontdoor.models.FrontDoor>` object
|
||||
"""
|
||||
|
||||
_attribute_map = {
|
||||
'next_link': {'key': 'nextLink', 'type': 'str'},
|
||||
'current_page': {'key': 'value', 'type': '[FrontDoor]'}
|
||||
}
|
||||
|
||||
def __init__(self, *args, **kwargs):
|
||||
|
||||
super(FrontDoorPaged, self).__init__(*args, **kwargs)
|
||||
class FrontendEndpointPaged(Paged):
|
||||
"""
|
||||
A paging container for iterating over a list of :class:`FrontendEndpoint <azure.mgmt.frontdoor.models.FrontendEndpoint>` object
|
||||
"""
|
||||
|
||||
_attribute_map = {
|
||||
'next_link': {'key': 'nextLink', 'type': 'str'},
|
||||
'current_page': {'key': 'value', 'type': '[FrontendEndpoint]'}
|
||||
}
|
||||
|
||||
def __init__(self, *args, **kwargs):
|
||||
|
||||
super(FrontendEndpointPaged, self).__init__(*args, **kwargs)
|
||||
class RulesEnginePaged(Paged):
|
||||
"""
|
||||
A paging container for iterating over a list of :class:`RulesEngine <azure.mgmt.frontdoor.models.RulesEngine>` object
|
||||
"""
|
||||
|
||||
_attribute_map = {
|
||||
'next_link': {'key': 'nextLink', 'type': 'str'},
|
||||
'current_page': {'key': 'value', 'type': '[RulesEngine]'}
|
||||
}
|
||||
|
||||
def __init__(self, *args, **kwargs):
|
||||
|
||||
super(RulesEnginePaged, self).__init__(*args, **kwargs)
|
||||
class WebApplicationFirewallPolicyPaged(Paged):
|
||||
"""
|
||||
A paging container for iterating over a list of :class:`WebApplicationFirewallPolicy <azure.mgmt.frontdoor.models.WebApplicationFirewallPolicy>` object
|
||||
"""
|
||||
|
||||
_attribute_map = {
|
||||
'next_link': {'key': 'nextLink', 'type': 'str'},
|
||||
'current_page': {'key': 'value', 'type': '[WebApplicationFirewallPolicy]'}
|
||||
}
|
||||
|
||||
def __init__(self, *args, **kwargs):
|
||||
|
||||
super(WebApplicationFirewallPolicyPaged, self).__init__(*args, **kwargs)
|
||||
class ManagedRuleSetDefinitionPaged(Paged):
|
||||
"""
|
||||
A paging container for iterating over a list of :class:`ManagedRuleSetDefinition <azure.mgmt.frontdoor.models.ManagedRuleSetDefinition>` object
|
||||
"""
|
||||
|
||||
_attribute_map = {
|
||||
'next_link': {'key': 'nextLink', 'type': 'str'},
|
||||
'current_page': {'key': 'value', 'type': '[ManagedRuleSetDefinition]'}
|
||||
}
|
||||
|
||||
def __init__(self, *args, **kwargs):
|
||||
|
||||
super(ManagedRuleSetDefinitionPaged, self).__init__(*args, **kwargs)
|
|
@ -1,41 +0,0 @@
|
|||
# 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 AzureAsyncOperationResult(Model):
|
||||
"""The response body contains the status of the specified asynchronous
|
||||
operation, indicating whether it has succeeded, is in progress, or has
|
||||
failed. Note that this status is distinct from the HTTP status code
|
||||
returned for the Get Operation Status operation itself. If the asynchronous
|
||||
operation succeeded, the response body includes the HTTP status code for
|
||||
the successful request. If the asynchronous operation failed, the response
|
||||
body includes the HTTP status code for the failed request and error
|
||||
information regarding the failure.
|
||||
|
||||
:param status: Status of the Azure async operation. Possible values are:
|
||||
'InProgress', 'Succeeded', and 'Failed'. Possible values include:
|
||||
'InProgress', 'Succeeded', 'Failed'
|
||||
:type status: str or ~azure.mgmt.frontdoor.models.NetworkOperationStatus
|
||||
:param error:
|
||||
:type error: ~azure.mgmt.frontdoor.models.Error
|
||||
"""
|
||||
|
||||
_attribute_map = {
|
||||
'status': {'key': 'status', 'type': 'str'},
|
||||
'error': {'key': 'error', 'type': 'Error'},
|
||||
}
|
||||
|
||||
def __init__(self, **kwargs):
|
||||
super(AzureAsyncOperationResult, self).__init__(**kwargs)
|
||||
self.status = kwargs.get('status', None)
|
||||
self.error = kwargs.get('error', None)
|
|
@ -1,41 +0,0 @@
|
|||
# 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 AzureAsyncOperationResult(Model):
|
||||
"""The response body contains the status of the specified asynchronous
|
||||
operation, indicating whether it has succeeded, is in progress, or has
|
||||
failed. Note that this status is distinct from the HTTP status code
|
||||
returned for the Get Operation Status operation itself. If the asynchronous
|
||||
operation succeeded, the response body includes the HTTP status code for
|
||||
the successful request. If the asynchronous operation failed, the response
|
||||
body includes the HTTP status code for the failed request and error
|
||||
information regarding the failure.
|
||||
|
||||
:param status: Status of the Azure async operation. Possible values are:
|
||||
'InProgress', 'Succeeded', and 'Failed'. Possible values include:
|
||||
'InProgress', 'Succeeded', 'Failed'
|
||||
:type status: str or ~azure.mgmt.frontdoor.models.NetworkOperationStatus
|
||||
:param error:
|
||||
:type error: ~azure.mgmt.frontdoor.models.Error
|
||||
"""
|
||||
|
||||
_attribute_map = {
|
||||
'status': {'key': 'status', 'type': 'str'},
|
||||
'error': {'key': 'error', 'type': 'Error'},
|
||||
}
|
||||
|
||||
def __init__(self, *, status=None, error=None, **kwargs) -> None:
|
||||
super(AzureAsyncOperationResult, self).__init__(**kwargs)
|
||||
self.status = status
|
||||
self.error = error
|
|
@ -1,65 +0,0 @@
|
|||
# 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 Backend(Model):
|
||||
"""Backend address of a frontDoor load balancer.
|
||||
|
||||
:param address: Location of the backend (IP address or FQDN)
|
||||
:type address: str
|
||||
:param http_port: The HTTP TCP port number. Must be between 1 and 65535.
|
||||
:type http_port: int
|
||||
:param https_port: The HTTPS TCP port number. Must be between 1 and 65535.
|
||||
:type https_port: int
|
||||
:param enabled_state: Whether to enable use of this backend. Permitted
|
||||
values are 'Enabled' or 'Disabled'. Possible values include: 'Enabled',
|
||||
'Disabled'
|
||||
:type enabled_state: str or
|
||||
~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.
|
||||
:type priority: int
|
||||
:param weight: Weight of this endpoint for load balancing purposes.
|
||||
:type weight: int
|
||||
:param backend_host_header: The value to use as the host header sent to
|
||||
the backend. If blank or unspecified, this defaults to the incoming host.
|
||||
:type backend_host_header: str
|
||||
"""
|
||||
|
||||
_validation = {
|
||||
'http_port': {'maximum': 65535, 'minimum': 1},
|
||||
'https_port': {'maximum': 65535, 'minimum': 1},
|
||||
'priority': {'maximum': 5, 'minimum': 1},
|
||||
'weight': {'maximum': 1000, 'minimum': 1},
|
||||
}
|
||||
|
||||
_attribute_map = {
|
||||
'address': {'key': 'address', 'type': 'str'},
|
||||
'http_port': {'key': 'httpPort', 'type': 'int'},
|
||||
'https_port': {'key': 'httpsPort', 'type': 'int'},
|
||||
'enabled_state': {'key': 'enabledState', 'type': 'str'},
|
||||
'priority': {'key': 'priority', 'type': 'int'},
|
||||
'weight': {'key': 'weight', 'type': 'int'},
|
||||
'backend_host_header': {'key': 'backendHostHeader', 'type': 'str'},
|
||||
}
|
||||
|
||||
def __init__(self, **kwargs):
|
||||
super(Backend, self).__init__(**kwargs)
|
||||
self.address = kwargs.get('address', None)
|
||||
self.http_port = kwargs.get('http_port', None)
|
||||
self.https_port = kwargs.get('https_port', None)
|
||||
self.enabled_state = kwargs.get('enabled_state', None)
|
||||
self.priority = kwargs.get('priority', None)
|
||||
self.weight = kwargs.get('weight', None)
|
||||
self.backend_host_header = kwargs.get('backend_host_header', None)
|
|
@ -1,60 +0,0 @@
|
|||
# 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 .sub_resource import SubResource
|
||||
|
||||
|
||||
class BackendPool(SubResource):
|
||||
"""A backend pool is a collection of backends that can be routed to.
|
||||
|
||||
Variables are only populated by the server, and will be ignored when
|
||||
sending a request.
|
||||
|
||||
:param id: Resource ID.
|
||||
:type id: str
|
||||
:param backends: The set of backends for this pool
|
||||
:type backends: list[~azure.mgmt.frontdoor.models.Backend]
|
||||
:param load_balancing_settings: Load balancing settings for a backend pool
|
||||
:type load_balancing_settings: ~azure.mgmt.frontdoor.models.SubResource
|
||||
:param health_probe_settings: L7 health probe settings for a backend pool
|
||||
:type health_probe_settings: ~azure.mgmt.frontdoor.models.SubResource
|
||||
:param resource_state: Resource status. Possible values include:
|
||||
'Creating', 'Enabling', 'Enabled', 'Disabling', 'Disabled', 'Deleting'
|
||||
:type resource_state: str or
|
||||
~azure.mgmt.frontdoor.models.FrontDoorResourceState
|
||||
:param name: Resource name.
|
||||
:type name: str
|
||||
:ivar type: Resource type.
|
||||
:vartype type: str
|
||||
"""
|
||||
|
||||
_validation = {
|
||||
'type': {'readonly': True},
|
||||
}
|
||||
|
||||
_attribute_map = {
|
||||
'id': {'key': 'id', 'type': 'str'},
|
||||
'backends': {'key': 'properties.backends', 'type': '[Backend]'},
|
||||
'load_balancing_settings': {'key': 'properties.loadBalancingSettings', 'type': 'SubResource'},
|
||||
'health_probe_settings': {'key': 'properties.healthProbeSettings', 'type': 'SubResource'},
|
||||
'resource_state': {'key': 'properties.resourceState', 'type': 'str'},
|
||||
'name': {'key': 'name', 'type': 'str'},
|
||||
'type': {'key': 'type', 'type': 'str'},
|
||||
}
|
||||
|
||||
def __init__(self, **kwargs):
|
||||
super(BackendPool, self).__init__(**kwargs)
|
||||
self.backends = kwargs.get('backends', None)
|
||||
self.load_balancing_settings = kwargs.get('load_balancing_settings', None)
|
||||
self.health_probe_settings = kwargs.get('health_probe_settings', None)
|
||||
self.resource_state = kwargs.get('resource_state', None)
|
||||
self.name = kwargs.get('name', None)
|
||||
self.type = None
|
|
@ -1,41 +0,0 @@
|
|||
# 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)
|
|
@ -1,41 +0,0 @@
|
|||
# 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
|
|
@ -1,60 +0,0 @@
|
|||
# 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 .sub_resource_py3 import SubResource
|
||||
|
||||
|
||||
class BackendPool(SubResource):
|
||||
"""A backend pool is a collection of backends that can be routed to.
|
||||
|
||||
Variables are only populated by the server, and will be ignored when
|
||||
sending a request.
|
||||
|
||||
:param id: Resource ID.
|
||||
:type id: str
|
||||
:param backends: The set of backends for this pool
|
||||
:type backends: list[~azure.mgmt.frontdoor.models.Backend]
|
||||
:param load_balancing_settings: Load balancing settings for a backend pool
|
||||
:type load_balancing_settings: ~azure.mgmt.frontdoor.models.SubResource
|
||||
:param health_probe_settings: L7 health probe settings for a backend pool
|
||||
:type health_probe_settings: ~azure.mgmt.frontdoor.models.SubResource
|
||||
:param resource_state: Resource status. Possible values include:
|
||||
'Creating', 'Enabling', 'Enabled', 'Disabling', 'Disabled', 'Deleting'
|
||||
:type resource_state: str or
|
||||
~azure.mgmt.frontdoor.models.FrontDoorResourceState
|
||||
:param name: Resource name.
|
||||
:type name: str
|
||||
:ivar type: Resource type.
|
||||
:vartype type: str
|
||||
"""
|
||||
|
||||
_validation = {
|
||||
'type': {'readonly': True},
|
||||
}
|
||||
|
||||
_attribute_map = {
|
||||
'id': {'key': 'id', 'type': 'str'},
|
||||
'backends': {'key': 'properties.backends', 'type': '[Backend]'},
|
||||
'load_balancing_settings': {'key': 'properties.loadBalancingSettings', 'type': 'SubResource'},
|
||||
'health_probe_settings': {'key': 'properties.healthProbeSettings', 'type': 'SubResource'},
|
||||
'resource_state': {'key': 'properties.resourceState', 'type': 'str'},
|
||||
'name': {'key': 'name', 'type': 'str'},
|
||||
'type': {'key': 'type', 'type': 'str'},
|
||||
}
|
||||
|
||||
def __init__(self, *, id: str=None, backends=None, load_balancing_settings=None, health_probe_settings=None, resource_state=None, name: str=None, **kwargs) -> None:
|
||||
super(BackendPool, self).__init__(id=id, **kwargs)
|
||||
self.backends = backends
|
||||
self.load_balancing_settings = load_balancing_settings
|
||||
self.health_probe_settings = health_probe_settings
|
||||
self.resource_state = resource_state
|
||||
self.name = name
|
||||
self.type = None
|
|
@ -1,36 +0,0 @@
|
|||
# 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 BackendPoolUpdateParameters(Model):
|
||||
"""A collection of backends that can be routed to.
|
||||
|
||||
:param backends: The set of backends for this pool
|
||||
:type backends: list[~azure.mgmt.frontdoor.models.Backend]
|
||||
:param load_balancing_settings: Load balancing settings for a backend pool
|
||||
:type load_balancing_settings: ~azure.mgmt.frontdoor.models.SubResource
|
||||
:param health_probe_settings: L7 health probe settings for a backend pool
|
||||
:type health_probe_settings: ~azure.mgmt.frontdoor.models.SubResource
|
||||
"""
|
||||
|
||||
_attribute_map = {
|
||||
'backends': {'key': 'backends', 'type': '[Backend]'},
|
||||
'load_balancing_settings': {'key': 'loadBalancingSettings', 'type': 'SubResource'},
|
||||
'health_probe_settings': {'key': 'healthProbeSettings', 'type': 'SubResource'},
|
||||
}
|
||||
|
||||
def __init__(self, **kwargs):
|
||||
super(BackendPoolUpdateParameters, self).__init__(**kwargs)
|
||||
self.backends = kwargs.get('backends', None)
|
||||
self.load_balancing_settings = kwargs.get('load_balancing_settings', None)
|
||||
self.health_probe_settings = kwargs.get('health_probe_settings', None)
|
|
@ -1,36 +0,0 @@
|
|||
# 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 BackendPoolUpdateParameters(Model):
|
||||
"""A collection of backends that can be routed to.
|
||||
|
||||
:param backends: The set of backends for this pool
|
||||
:type backends: list[~azure.mgmt.frontdoor.models.Backend]
|
||||
:param load_balancing_settings: Load balancing settings for a backend pool
|
||||
:type load_balancing_settings: ~azure.mgmt.frontdoor.models.SubResource
|
||||
:param health_probe_settings: L7 health probe settings for a backend pool
|
||||
:type health_probe_settings: ~azure.mgmt.frontdoor.models.SubResource
|
||||
"""
|
||||
|
||||
_attribute_map = {
|
||||
'backends': {'key': 'backends', 'type': '[Backend]'},
|
||||
'load_balancing_settings': {'key': 'loadBalancingSettings', 'type': 'SubResource'},
|
||||
'health_probe_settings': {'key': 'healthProbeSettings', 'type': 'SubResource'},
|
||||
}
|
||||
|
||||
def __init__(self, *, backends=None, load_balancing_settings=None, health_probe_settings=None, **kwargs) -> None:
|
||||
super(BackendPoolUpdateParameters, self).__init__(**kwargs)
|
||||
self.backends = backends
|
||||
self.load_balancing_settings = load_balancing_settings
|
||||
self.health_probe_settings = health_probe_settings
|
|
@ -1,42 +0,0 @@
|
|||
# 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
|
||||
:param send_recv_timeout_seconds: Send and receive timeout on forwarding
|
||||
request to the backend. When timeout is reached, the request fails and
|
||||
returns.
|
||||
:type send_recv_timeout_seconds: int
|
||||
"""
|
||||
|
||||
_validation = {
|
||||
'send_recv_timeout_seconds': {'minimum': 16},
|
||||
}
|
||||
|
||||
_attribute_map = {
|
||||
'enforce_certificate_name_check': {'key': 'enforceCertificateNameCheck', 'type': 'str'},
|
||||
'send_recv_timeout_seconds': {'key': 'sendRecvTimeoutSeconds', 'type': 'int'},
|
||||
}
|
||||
|
||||
def __init__(self, **kwargs):
|
||||
super(BackendPoolsSettings, self).__init__(**kwargs)
|
||||
self.enforce_certificate_name_check = kwargs.get('enforce_certificate_name_check', "Enabled")
|
||||
self.send_recv_timeout_seconds = kwargs.get('send_recv_timeout_seconds', None)
|
|
@ -1,42 +0,0 @@
|
|||
# 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
|
||||
:param send_recv_timeout_seconds: Send and receive timeout on forwarding
|
||||
request to the backend. When timeout is reached, the request fails and
|
||||
returns.
|
||||
:type send_recv_timeout_seconds: int
|
||||
"""
|
||||
|
||||
_validation = {
|
||||
'send_recv_timeout_seconds': {'minimum': 16},
|
||||
}
|
||||
|
||||
_attribute_map = {
|
||||
'enforce_certificate_name_check': {'key': 'enforceCertificateNameCheck', 'type': 'str'},
|
||||
'send_recv_timeout_seconds': {'key': 'sendRecvTimeoutSeconds', 'type': 'int'},
|
||||
}
|
||||
|
||||
def __init__(self, *, enforce_certificate_name_check="Enabled", send_recv_timeout_seconds: int=None, **kwargs) -> None:
|
||||
super(BackendPoolsSettings, self).__init__(**kwargs)
|
||||
self.enforce_certificate_name_check = enforce_certificate_name_check
|
||||
self.send_recv_timeout_seconds = send_recv_timeout_seconds
|
|
@ -1,65 +0,0 @@
|
|||
# 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 Backend(Model):
|
||||
"""Backend address of a frontDoor load balancer.
|
||||
|
||||
:param address: Location of the backend (IP address or FQDN)
|
||||
:type address: str
|
||||
:param http_port: The HTTP TCP port number. Must be between 1 and 65535.
|
||||
:type http_port: int
|
||||
:param https_port: The HTTPS TCP port number. Must be between 1 and 65535.
|
||||
:type https_port: int
|
||||
:param enabled_state: Whether to enable use of this backend. Permitted
|
||||
values are 'Enabled' or 'Disabled'. Possible values include: 'Enabled',
|
||||
'Disabled'
|
||||
:type enabled_state: str or
|
||||
~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.
|
||||
:type priority: int
|
||||
:param weight: Weight of this endpoint for load balancing purposes.
|
||||
:type weight: int
|
||||
:param backend_host_header: The value to use as the host header sent to
|
||||
the backend. If blank or unspecified, this defaults to the incoming host.
|
||||
:type backend_host_header: str
|
||||
"""
|
||||
|
||||
_validation = {
|
||||
'http_port': {'maximum': 65535, 'minimum': 1},
|
||||
'https_port': {'maximum': 65535, 'minimum': 1},
|
||||
'priority': {'maximum': 5, 'minimum': 1},
|
||||
'weight': {'maximum': 1000, 'minimum': 1},
|
||||
}
|
||||
|
||||
_attribute_map = {
|
||||
'address': {'key': 'address', 'type': 'str'},
|
||||
'http_port': {'key': 'httpPort', 'type': 'int'},
|
||||
'https_port': {'key': 'httpsPort', 'type': 'int'},
|
||||
'enabled_state': {'key': 'enabledState', 'type': 'str'},
|
||||
'priority': {'key': 'priority', 'type': 'int'},
|
||||
'weight': {'key': 'weight', 'type': 'int'},
|
||||
'backend_host_header': {'key': 'backendHostHeader', 'type': 'str'},
|
||||
}
|
||||
|
||||
def __init__(self, *, address: str=None, http_port: int=None, https_port: int=None, enabled_state=None, priority: int=None, weight: int=None, backend_host_header: str=None, **kwargs) -> None:
|
||||
super(Backend, self).__init__(**kwargs)
|
||||
self.address = address
|
||||
self.http_port = http_port
|
||||
self.https_port = https_port
|
||||
self.enabled_state = enabled_state
|
||||
self.priority = priority
|
||||
self.weight = weight
|
||||
self.backend_host_header = backend_host_header
|
|
@ -1,37 +0,0 @@
|
|||
# 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 CacheConfiguration(Model):
|
||||
"""Caching settings for a caching-type route. To disable caching, do not
|
||||
provide a cacheConfiguration object.
|
||||
|
||||
:param query_parameter_strip_directive: Treatment of URL query terms when
|
||||
forming the cache key. Possible values include: 'StripNone', 'StripAll'
|
||||
:type query_parameter_strip_directive: str or
|
||||
~azure.mgmt.frontdoor.models.FrontDoorQuery
|
||||
:param dynamic_compression: Whether to use dynamic compression for cached
|
||||
content. Possible values include: 'Enabled', 'Disabled'
|
||||
:type dynamic_compression: str or
|
||||
~azure.mgmt.frontdoor.models.DynamicCompressionEnabled
|
||||
"""
|
||||
|
||||
_attribute_map = {
|
||||
'query_parameter_strip_directive': {'key': 'queryParameterStripDirective', 'type': 'str'},
|
||||
'dynamic_compression': {'key': 'dynamicCompression', 'type': 'str'},
|
||||
}
|
||||
|
||||
def __init__(self, **kwargs):
|
||||
super(CacheConfiguration, self).__init__(**kwargs)
|
||||
self.query_parameter_strip_directive = kwargs.get('query_parameter_strip_directive', None)
|
||||
self.dynamic_compression = kwargs.get('dynamic_compression', None)
|
|
@ -1,37 +0,0 @@
|
|||
# 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 CacheConfiguration(Model):
|
||||
"""Caching settings for a caching-type route. To disable caching, do not
|
||||
provide a cacheConfiguration object.
|
||||
|
||||
:param query_parameter_strip_directive: Treatment of URL query terms when
|
||||
forming the cache key. Possible values include: 'StripNone', 'StripAll'
|
||||
:type query_parameter_strip_directive: str or
|
||||
~azure.mgmt.frontdoor.models.FrontDoorQuery
|
||||
:param dynamic_compression: Whether to use dynamic compression for cached
|
||||
content. Possible values include: 'Enabled', 'Disabled'
|
||||
:type dynamic_compression: str or
|
||||
~azure.mgmt.frontdoor.models.DynamicCompressionEnabled
|
||||
"""
|
||||
|
||||
_attribute_map = {
|
||||
'query_parameter_strip_directive': {'key': 'queryParameterStripDirective', 'type': 'str'},
|
||||
'dynamic_compression': {'key': 'dynamicCompression', 'type': 'str'},
|
||||
}
|
||||
|
||||
def __init__(self, *, query_parameter_strip_directive=None, dynamic_compression=None, **kwargs) -> None:
|
||||
super(CacheConfiguration, self).__init__(**kwargs)
|
||||
self.query_parameter_strip_directive = query_parameter_strip_directive
|
||||
self.dynamic_compression = dynamic_compression
|
|
@ -1,41 +0,0 @@
|
|||
# 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 CheckNameAvailabilityInput(Model):
|
||||
"""Input of CheckNameAvailability API.
|
||||
|
||||
All required parameters must be populated in order to send to Azure.
|
||||
|
||||
:param name: Required. The resource name to validate.
|
||||
:type name: str
|
||||
:param type: Required. The type of the resource whose name is to be
|
||||
validated. Possible values include: 'Microsoft.Network/frontDoors',
|
||||
'Microsoft.Network/frontDoors/frontendEndpoints'
|
||||
:type type: str or ~azure.mgmt.frontdoor.models.ResourceType
|
||||
"""
|
||||
|
||||
_validation = {
|
||||
'name': {'required': True},
|
||||
'type': {'required': True},
|
||||
}
|
||||
|
||||
_attribute_map = {
|
||||
'name': {'key': 'name', 'type': 'str'},
|
||||
'type': {'key': 'type', 'type': 'ResourceType'},
|
||||
}
|
||||
|
||||
def __init__(self, **kwargs):
|
||||
super(CheckNameAvailabilityInput, self).__init__(**kwargs)
|
||||
self.name = kwargs.get('name', None)
|
||||
self.type = kwargs.get('type', None)
|
|
@ -1,41 +0,0 @@
|
|||
# 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 CheckNameAvailabilityInput(Model):
|
||||
"""Input of CheckNameAvailability API.
|
||||
|
||||
All required parameters must be populated in order to send to Azure.
|
||||
|
||||
:param name: Required. The resource name to validate.
|
||||
:type name: str
|
||||
:param type: Required. The type of the resource whose name is to be
|
||||
validated. Possible values include: 'Microsoft.Network/frontDoors',
|
||||
'Microsoft.Network/frontDoors/frontendEndpoints'
|
||||
:type type: str or ~azure.mgmt.frontdoor.models.ResourceType
|
||||
"""
|
||||
|
||||
_validation = {
|
||||
'name': {'required': True},
|
||||
'type': {'required': True},
|
||||
}
|
||||
|
||||
_attribute_map = {
|
||||
'name': {'key': 'name', 'type': 'str'},
|
||||
'type': {'key': 'type', 'type': 'ResourceType'},
|
||||
}
|
||||
|
||||
def __init__(self, *, name: str, type, **kwargs) -> None:
|
||||
super(CheckNameAvailabilityInput, self).__init__(**kwargs)
|
||||
self.name = name
|
||||
self.type = type
|
|
@ -1,48 +0,0 @@
|
|||
# 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 CheckNameAvailabilityOutput(Model):
|
||||
"""Output of check name availability API.
|
||||
|
||||
Variables are only populated by the server, and will be ignored when
|
||||
sending a request.
|
||||
|
||||
:ivar name_availability: Indicates whether the name is available. Possible
|
||||
values include: 'Available', 'Unavailable'
|
||||
:vartype name_availability: str or
|
||||
~azure.mgmt.frontdoor.models.Availability
|
||||
:ivar reason: The reason why the name is not available.
|
||||
:vartype reason: str
|
||||
:ivar message: The detailed error message describing why the name is not
|
||||
available.
|
||||
:vartype message: str
|
||||
"""
|
||||
|
||||
_validation = {
|
||||
'name_availability': {'readonly': True},
|
||||
'reason': {'readonly': True},
|
||||
'message': {'readonly': True},
|
||||
}
|
||||
|
||||
_attribute_map = {
|
||||
'name_availability': {'key': 'nameAvailability', 'type': 'str'},
|
||||
'reason': {'key': 'reason', 'type': 'str'},
|
||||
'message': {'key': 'message', 'type': 'str'},
|
||||
}
|
||||
|
||||
def __init__(self, **kwargs):
|
||||
super(CheckNameAvailabilityOutput, self).__init__(**kwargs)
|
||||
self.name_availability = None
|
||||
self.reason = None
|
||||
self.message = None
|
|
@ -1,48 +0,0 @@
|
|||
# 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 CheckNameAvailabilityOutput(Model):
|
||||
"""Output of check name availability API.
|
||||
|
||||
Variables are only populated by the server, and will be ignored when
|
||||
sending a request.
|
||||
|
||||
:ivar name_availability: Indicates whether the name is available. Possible
|
||||
values include: 'Available', 'Unavailable'
|
||||
:vartype name_availability: str or
|
||||
~azure.mgmt.frontdoor.models.Availability
|
||||
:ivar reason: The reason why the name is not available.
|
||||
:vartype reason: str
|
||||
:ivar message: The detailed error message describing why the name is not
|
||||
available.
|
||||
:vartype message: str
|
||||
"""
|
||||
|
||||
_validation = {
|
||||
'name_availability': {'readonly': True},
|
||||
'reason': {'readonly': True},
|
||||
'message': {'readonly': True},
|
||||
}
|
||||
|
||||
_attribute_map = {
|
||||
'name_availability': {'key': 'nameAvailability', 'type': 'str'},
|
||||
'reason': {'key': 'reason', 'type': 'str'},
|
||||
'message': {'key': 'message', 'type': 'str'},
|
||||
}
|
||||
|
||||
def __init__(self, **kwargs) -> None:
|
||||
super(CheckNameAvailabilityOutput, self).__init__(**kwargs)
|
||||
self.name_availability = None
|
||||
self.reason = None
|
||||
self.message = None
|
|
@ -1,76 +0,0 @@
|
|||
# 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 CustomHttpsConfiguration(Model):
|
||||
"""Https settings for a domain.
|
||||
|
||||
Variables are only populated by the server, and will be ignored when
|
||||
sending a request.
|
||||
|
||||
All required parameters must be populated in order to send to Azure.
|
||||
|
||||
:param certificate_source: Required. Defines the source of the SSL
|
||||
certificate. Possible values include: 'AzureKeyVault', 'FrontDoor'
|
||||
:type certificate_source: str or
|
||||
~azure.mgmt.frontdoor.models.FrontDoorCertificateSource
|
||||
:ivar protocol_type: Required. Defines the TLS extension protocol that is
|
||||
used for secure delivery. Default value: "ServerNameIndication" .
|
||||
:vartype protocol_type: str
|
||||
:param minimum_tls_version: Required. The minimum TLS version required
|
||||
from the clients to establish an SSL handshake with Front Door. Possible
|
||||
values include: '1.0', '1.2'
|
||||
:type minimum_tls_version: str or
|
||||
~azure.mgmt.frontdoor.models.MinimumTLSVersion
|
||||
:param vault: The Key Vault containing the SSL certificate
|
||||
:type vault:
|
||||
~azure.mgmt.frontdoor.models.KeyVaultCertificateSourceParametersVault
|
||||
:param secret_name: The name of the Key Vault secret representing the full
|
||||
certificate PFX
|
||||
:type secret_name: str
|
||||
:param secret_version: The version of the Key Vault secret representing
|
||||
the full certificate PFX
|
||||
:type secret_version: str
|
||||
:param certificate_type: Defines the type of the certificate used for
|
||||
secure connections to a frontendEndpoint. Possible values include:
|
||||
'Dedicated'
|
||||
:type certificate_type: str or
|
||||
~azure.mgmt.frontdoor.models.FrontDoorCertificateType
|
||||
"""
|
||||
|
||||
_validation = {
|
||||
'certificate_source': {'required': True},
|
||||
'protocol_type': {'required': True, 'constant': True},
|
||||
'minimum_tls_version': {'required': True},
|
||||
}
|
||||
|
||||
_attribute_map = {
|
||||
'certificate_source': {'key': 'certificateSource', 'type': 'str'},
|
||||
'protocol_type': {'key': 'protocolType', 'type': 'str'},
|
||||
'minimum_tls_version': {'key': 'minimumTlsVersion', 'type': 'str'},
|
||||
'vault': {'key': 'keyVaultCertificateSourceParameters.vault', 'type': 'KeyVaultCertificateSourceParametersVault'},
|
||||
'secret_name': {'key': 'keyVaultCertificateSourceParameters.secretName', 'type': 'str'},
|
||||
'secret_version': {'key': 'keyVaultCertificateSourceParameters.secretVersion', 'type': 'str'},
|
||||
'certificate_type': {'key': 'frontDoorCertificateSourceParameters.certificateType', 'type': 'str'},
|
||||
}
|
||||
|
||||
protocol_type = "ServerNameIndication"
|
||||
|
||||
def __init__(self, **kwargs):
|
||||
super(CustomHttpsConfiguration, self).__init__(**kwargs)
|
||||
self.certificate_source = kwargs.get('certificate_source', None)
|
||||
self.minimum_tls_version = kwargs.get('minimum_tls_version', None)
|
||||
self.vault = kwargs.get('vault', None)
|
||||
self.secret_name = kwargs.get('secret_name', None)
|
||||
self.secret_version = kwargs.get('secret_version', None)
|
||||
self.certificate_type = kwargs.get('certificate_type', None)
|
|
@ -1,76 +0,0 @@
|
|||
# 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 CustomHttpsConfiguration(Model):
|
||||
"""Https settings for a domain.
|
||||
|
||||
Variables are only populated by the server, and will be ignored when
|
||||
sending a request.
|
||||
|
||||
All required parameters must be populated in order to send to Azure.
|
||||
|
||||
:param certificate_source: Required. Defines the source of the SSL
|
||||
certificate. Possible values include: 'AzureKeyVault', 'FrontDoor'
|
||||
:type certificate_source: str or
|
||||
~azure.mgmt.frontdoor.models.FrontDoorCertificateSource
|
||||
:ivar protocol_type: Required. Defines the TLS extension protocol that is
|
||||
used for secure delivery. Default value: "ServerNameIndication" .
|
||||
:vartype protocol_type: str
|
||||
:param minimum_tls_version: Required. The minimum TLS version required
|
||||
from the clients to establish an SSL handshake with Front Door. Possible
|
||||
values include: '1.0', '1.2'
|
||||
:type minimum_tls_version: str or
|
||||
~azure.mgmt.frontdoor.models.MinimumTLSVersion
|
||||
:param vault: The Key Vault containing the SSL certificate
|
||||
:type vault:
|
||||
~azure.mgmt.frontdoor.models.KeyVaultCertificateSourceParametersVault
|
||||
:param secret_name: The name of the Key Vault secret representing the full
|
||||
certificate PFX
|
||||
:type secret_name: str
|
||||
:param secret_version: The version of the Key Vault secret representing
|
||||
the full certificate PFX
|
||||
:type secret_version: str
|
||||
:param certificate_type: Defines the type of the certificate used for
|
||||
secure connections to a frontendEndpoint. Possible values include:
|
||||
'Dedicated'
|
||||
:type certificate_type: str or
|
||||
~azure.mgmt.frontdoor.models.FrontDoorCertificateType
|
||||
"""
|
||||
|
||||
_validation = {
|
||||
'certificate_source': {'required': True},
|
||||
'protocol_type': {'required': True, 'constant': True},
|
||||
'minimum_tls_version': {'required': True},
|
||||
}
|
||||
|
||||
_attribute_map = {
|
||||
'certificate_source': {'key': 'certificateSource', 'type': 'str'},
|
||||
'protocol_type': {'key': 'protocolType', 'type': 'str'},
|
||||
'minimum_tls_version': {'key': 'minimumTlsVersion', 'type': 'str'},
|
||||
'vault': {'key': 'keyVaultCertificateSourceParameters.vault', 'type': 'KeyVaultCertificateSourceParametersVault'},
|
||||
'secret_name': {'key': 'keyVaultCertificateSourceParameters.secretName', 'type': 'str'},
|
||||
'secret_version': {'key': 'keyVaultCertificateSourceParameters.secretVersion', 'type': 'str'},
|
||||
'certificate_type': {'key': 'frontDoorCertificateSourceParameters.certificateType', 'type': 'str'},
|
||||
}
|
||||
|
||||
protocol_type = "ServerNameIndication"
|
||||
|
||||
def __init__(self, *, certificate_source, minimum_tls_version, vault=None, secret_name: str=None, secret_version: str=None, certificate_type=None, **kwargs) -> None:
|
||||
super(CustomHttpsConfiguration, self).__init__(**kwargs)
|
||||
self.certificate_source = certificate_source
|
||||
self.minimum_tls_version = minimum_tls_version
|
||||
self.vault = vault
|
||||
self.secret_name = secret_name
|
||||
self.secret_version = secret_version
|
||||
self.certificate_type = certificate_type
|
|
@ -1,76 +0,0 @@
|
|||
# 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 CustomRule(Model):
|
||||
"""Defines contents of a web application rule.
|
||||
|
||||
All required parameters must be populated in order to send to Azure.
|
||||
|
||||
:param name: Describes the name of the rule.
|
||||
:type name: str
|
||||
:param priority: Required. Describes priority of the rule. Rules with a
|
||||
lower value will be evaluated before rules with a higher value.
|
||||
:type priority: int
|
||||
:param enabled_state: Describes if the custom rule is in enabled or
|
||||
disabled state. Defaults to Enabled if not specified. Possible values
|
||||
include: 'Disabled', 'Enabled'
|
||||
:type enabled_state: str or
|
||||
~azure.mgmt.frontdoor.models.CustomRuleEnabledState
|
||||
:param rule_type: Required. Describes type of rule. Possible values
|
||||
include: 'MatchRule', 'RateLimitRule'
|
||||
:type rule_type: str or ~azure.mgmt.frontdoor.models.RuleType
|
||||
:param rate_limit_duration_in_minutes: Time window for resetting the rate
|
||||
limit count. Default is 1 minute.
|
||||
:type rate_limit_duration_in_minutes: int
|
||||
:param rate_limit_threshold: Number of allowed requests per client within
|
||||
the time window.
|
||||
:type rate_limit_threshold: int
|
||||
:param match_conditions: Required. List of match conditions.
|
||||
:type match_conditions: list[~azure.mgmt.frontdoor.models.MatchCondition]
|
||||
:param action: Required. Describes what action to be applied when rule
|
||||
matches. Possible values include: 'Allow', 'Block', 'Log', 'Redirect'
|
||||
:type action: str or ~azure.mgmt.frontdoor.models.ActionType
|
||||
"""
|
||||
|
||||
_validation = {
|
||||
'name': {'max_length': 128},
|
||||
'priority': {'required': True},
|
||||
'rule_type': {'required': True},
|
||||
'rate_limit_duration_in_minutes': {'maximum': 5, 'minimum': 0},
|
||||
'rate_limit_threshold': {'minimum': 0},
|
||||
'match_conditions': {'required': True},
|
||||
'action': {'required': True},
|
||||
}
|
||||
|
||||
_attribute_map = {
|
||||
'name': {'key': 'name', 'type': 'str'},
|
||||
'priority': {'key': 'priority', 'type': 'int'},
|
||||
'enabled_state': {'key': 'enabledState', 'type': 'str'},
|
||||
'rule_type': {'key': 'ruleType', 'type': 'str'},
|
||||
'rate_limit_duration_in_minutes': {'key': 'rateLimitDurationInMinutes', 'type': 'int'},
|
||||
'rate_limit_threshold': {'key': 'rateLimitThreshold', 'type': 'int'},
|
||||
'match_conditions': {'key': 'matchConditions', 'type': '[MatchCondition]'},
|
||||
'action': {'key': 'action', 'type': 'str'},
|
||||
}
|
||||
|
||||
def __init__(self, **kwargs):
|
||||
super(CustomRule, self).__init__(**kwargs)
|
||||
self.name = kwargs.get('name', None)
|
||||
self.priority = kwargs.get('priority', None)
|
||||
self.enabled_state = kwargs.get('enabled_state', None)
|
||||
self.rule_type = kwargs.get('rule_type', None)
|
||||
self.rate_limit_duration_in_minutes = kwargs.get('rate_limit_duration_in_minutes', None)
|
||||
self.rate_limit_threshold = kwargs.get('rate_limit_threshold', None)
|
||||
self.match_conditions = kwargs.get('match_conditions', None)
|
||||
self.action = kwargs.get('action', None)
|
|
@ -1,28 +0,0 @@
|
|||
# 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 CustomRuleList(Model):
|
||||
"""Defines contents of custom rules.
|
||||
|
||||
:param rules: List of rules
|
||||
:type rules: list[~azure.mgmt.frontdoor.models.CustomRule]
|
||||
"""
|
||||
|
||||
_attribute_map = {
|
||||
'rules': {'key': 'rules', 'type': '[CustomRule]'},
|
||||
}
|
||||
|
||||
def __init__(self, **kwargs):
|
||||
super(CustomRuleList, self).__init__(**kwargs)
|
||||
self.rules = kwargs.get('rules', None)
|
|
@ -1,28 +0,0 @@
|
|||
# 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 CustomRuleList(Model):
|
||||
"""Defines contents of custom rules.
|
||||
|
||||
:param rules: List of rules
|
||||
:type rules: list[~azure.mgmt.frontdoor.models.CustomRule]
|
||||
"""
|
||||
|
||||
_attribute_map = {
|
||||
'rules': {'key': 'rules', 'type': '[CustomRule]'},
|
||||
}
|
||||
|
||||
def __init__(self, *, rules=None, **kwargs) -> None:
|
||||
super(CustomRuleList, self).__init__(**kwargs)
|
||||
self.rules = rules
|
|
@ -1,76 +0,0 @@
|
|||
# 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 CustomRule(Model):
|
||||
"""Defines contents of a web application rule.
|
||||
|
||||
All required parameters must be populated in order to send to Azure.
|
||||
|
||||
:param name: Describes the name of the rule.
|
||||
:type name: str
|
||||
:param priority: Required. Describes priority of the rule. Rules with a
|
||||
lower value will be evaluated before rules with a higher value.
|
||||
:type priority: int
|
||||
:param enabled_state: Describes if the custom rule is in enabled or
|
||||
disabled state. Defaults to Enabled if not specified. Possible values
|
||||
include: 'Disabled', 'Enabled'
|
||||
:type enabled_state: str or
|
||||
~azure.mgmt.frontdoor.models.CustomRuleEnabledState
|
||||
:param rule_type: Required. Describes type of rule. Possible values
|
||||
include: 'MatchRule', 'RateLimitRule'
|
||||
:type rule_type: str or ~azure.mgmt.frontdoor.models.RuleType
|
||||
:param rate_limit_duration_in_minutes: Time window for resetting the rate
|
||||
limit count. Default is 1 minute.
|
||||
:type rate_limit_duration_in_minutes: int
|
||||
:param rate_limit_threshold: Number of allowed requests per client within
|
||||
the time window.
|
||||
:type rate_limit_threshold: int
|
||||
:param match_conditions: Required. List of match conditions.
|
||||
:type match_conditions: list[~azure.mgmt.frontdoor.models.MatchCondition]
|
||||
:param action: Required. Describes what action to be applied when rule
|
||||
matches. Possible values include: 'Allow', 'Block', 'Log', 'Redirect'
|
||||
:type action: str or ~azure.mgmt.frontdoor.models.ActionType
|
||||
"""
|
||||
|
||||
_validation = {
|
||||
'name': {'max_length': 128},
|
||||
'priority': {'required': True},
|
||||
'rule_type': {'required': True},
|
||||
'rate_limit_duration_in_minutes': {'maximum': 5, 'minimum': 0},
|
||||
'rate_limit_threshold': {'minimum': 0},
|
||||
'match_conditions': {'required': True},
|
||||
'action': {'required': True},
|
||||
}
|
||||
|
||||
_attribute_map = {
|
||||
'name': {'key': 'name', 'type': 'str'},
|
||||
'priority': {'key': 'priority', 'type': 'int'},
|
||||
'enabled_state': {'key': 'enabledState', 'type': 'str'},
|
||||
'rule_type': {'key': 'ruleType', 'type': 'str'},
|
||||
'rate_limit_duration_in_minutes': {'key': 'rateLimitDurationInMinutes', 'type': 'int'},
|
||||
'rate_limit_threshold': {'key': 'rateLimitThreshold', 'type': 'int'},
|
||||
'match_conditions': {'key': 'matchConditions', 'type': '[MatchCondition]'},
|
||||
'action': {'key': 'action', 'type': 'str'},
|
||||
}
|
||||
|
||||
def __init__(self, *, priority: int, rule_type, match_conditions, action, name: str=None, enabled_state=None, rate_limit_duration_in_minutes: int=None, rate_limit_threshold: int=None, **kwargs) -> None:
|
||||
super(CustomRule, self).__init__(**kwargs)
|
||||
self.name = name
|
||||
self.priority = priority
|
||||
self.enabled_state = enabled_state
|
||||
self.rule_type = rule_type
|
||||
self.rate_limit_duration_in_minutes = rate_limit_duration_in_minutes
|
||||
self.rate_limit_threshold = rate_limit_threshold
|
||||
self.match_conditions = match_conditions
|
||||
self.action = action
|
|
@ -1,32 +0,0 @@
|
|||
# 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 Endpoint(Model):
|
||||
"""Defines the endpoint properties.
|
||||
|
||||
:param name: The name of the endpoint
|
||||
:type name: str
|
||||
:param endpoint: The endpoint URL
|
||||
:type endpoint: str
|
||||
"""
|
||||
|
||||
_attribute_map = {
|
||||
'name': {'key': 'name', 'type': 'str'},
|
||||
'endpoint': {'key': 'endpoint', 'type': 'str'},
|
||||
}
|
||||
|
||||
def __init__(self, **kwargs):
|
||||
super(Endpoint, self).__init__(**kwargs)
|
||||
self.name = kwargs.get('name', None)
|
||||
self.endpoint = kwargs.get('endpoint', None)
|
|
@ -1,32 +0,0 @@
|
|||
# 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 Endpoint(Model):
|
||||
"""Defines the endpoint properties.
|
||||
|
||||
:param name: The name of the endpoint
|
||||
:type name: str
|
||||
:param endpoint: The endpoint URL
|
||||
:type endpoint: str
|
||||
"""
|
||||
|
||||
_attribute_map = {
|
||||
'name': {'key': 'name', 'type': 'str'},
|
||||
'endpoint': {'key': 'endpoint', 'type': 'str'},
|
||||
}
|
||||
|
||||
def __init__(self, *, name: str=None, endpoint: str=None, **kwargs) -> None:
|
||||
super(Endpoint, self).__init__(**kwargs)
|
||||
self.name = name
|
||||
self.endpoint = endpoint
|
|
@ -1,44 +0,0 @@
|
|||
# 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 Error(Model):
|
||||
"""Error.
|
||||
|
||||
:param code:
|
||||
:type code: str
|
||||
:param message:
|
||||
:type message: str
|
||||
:param target:
|
||||
:type target: str
|
||||
:param details:
|
||||
:type details: list[~azure.mgmt.frontdoor.models.ErrorDetails]
|
||||
:param inner_error:
|
||||
:type inner_error: str
|
||||
"""
|
||||
|
||||
_attribute_map = {
|
||||
'code': {'key': 'code', 'type': 'str'},
|
||||
'message': {'key': 'message', 'type': 'str'},
|
||||
'target': {'key': 'target', 'type': 'str'},
|
||||
'details': {'key': 'details', 'type': '[ErrorDetails]'},
|
||||
'inner_error': {'key': 'innerError', 'type': 'str'},
|
||||
}
|
||||
|
||||
def __init__(self, **kwargs):
|
||||
super(Error, self).__init__(**kwargs)
|
||||
self.code = kwargs.get('code', None)
|
||||
self.message = kwargs.get('message', None)
|
||||
self.target = kwargs.get('target', None)
|
||||
self.details = kwargs.get('details', None)
|
||||
self.inner_error = kwargs.get('inner_error', None)
|
|
@ -1,36 +0,0 @@
|
|||
# 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 ErrorDetails(Model):
|
||||
"""ErrorDetails.
|
||||
|
||||
:param code:
|
||||
:type code: str
|
||||
:param target:
|
||||
:type target: str
|
||||
:param message:
|
||||
:type message: str
|
||||
"""
|
||||
|
||||
_attribute_map = {
|
||||
'code': {'key': 'code', 'type': 'str'},
|
||||
'target': {'key': 'target', 'type': 'str'},
|
||||
'message': {'key': 'message', 'type': 'str'},
|
||||
}
|
||||
|
||||
def __init__(self, **kwargs):
|
||||
super(ErrorDetails, self).__init__(**kwargs)
|
||||
self.code = kwargs.get('code', None)
|
||||
self.target = kwargs.get('target', None)
|
||||
self.message = kwargs.get('message', None)
|
|
@ -1,36 +0,0 @@
|
|||
# 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 ErrorDetails(Model):
|
||||
"""ErrorDetails.
|
||||
|
||||
:param code:
|
||||
:type code: str
|
||||
:param target:
|
||||
:type target: str
|
||||
:param message:
|
||||
:type message: str
|
||||
"""
|
||||
|
||||
_attribute_map = {
|
||||
'code': {'key': 'code', 'type': 'str'},
|
||||
'target': {'key': 'target', 'type': 'str'},
|
||||
'message': {'key': 'message', 'type': 'str'},
|
||||
}
|
||||
|
||||
def __init__(self, *, code: str=None, target: str=None, message: str=None, **kwargs) -> None:
|
||||
super(ErrorDetails, self).__init__(**kwargs)
|
||||
self.code = code
|
||||
self.target = target
|
||||
self.message = message
|
|
@ -1,44 +0,0 @@
|
|||
# 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 Error(Model):
|
||||
"""Error.
|
||||
|
||||
:param code:
|
||||
:type code: str
|
||||
:param message:
|
||||
:type message: str
|
||||
:param target:
|
||||
:type target: str
|
||||
:param details:
|
||||
:type details: list[~azure.mgmt.frontdoor.models.ErrorDetails]
|
||||
:param inner_error:
|
||||
:type inner_error: str
|
||||
"""
|
||||
|
||||
_attribute_map = {
|
||||
'code': {'key': 'code', 'type': 'str'},
|
||||
'message': {'key': 'message', 'type': 'str'},
|
||||
'target': {'key': 'target', 'type': 'str'},
|
||||
'details': {'key': 'details', 'type': '[ErrorDetails]'},
|
||||
'inner_error': {'key': 'innerError', 'type': 'str'},
|
||||
}
|
||||
|
||||
def __init__(self, *, code: str=None, message: str=None, target: str=None, details=None, inner_error: str=None, **kwargs) -> None:
|
||||
super(Error, self).__init__(**kwargs)
|
||||
self.code = code
|
||||
self.message = message
|
||||
self.target = target
|
||||
self.details = details
|
||||
self.inner_error = inner_error
|
|
@ -1,54 +0,0 @@
|
|||
# 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
|
||||
from msrest.exceptions import HttpOperationError
|
||||
|
||||
|
||||
class ErrorResponse(Model):
|
||||
"""Error response indicates Front Door service is not able to process the
|
||||
incoming request. The reason is provided in the error message.
|
||||
|
||||
Variables are only populated by the server, and will be ignored when
|
||||
sending a request.
|
||||
|
||||
:ivar code: Error code.
|
||||
:vartype code: str
|
||||
:ivar message: Error message indicating why the operation failed.
|
||||
:vartype message: str
|
||||
"""
|
||||
|
||||
_validation = {
|
||||
'code': {'readonly': True},
|
||||
'message': {'readonly': True},
|
||||
}
|
||||
|
||||
_attribute_map = {
|
||||
'code': {'key': 'code', 'type': 'str'},
|
||||
'message': {'key': 'message', 'type': 'str'},
|
||||
}
|
||||
|
||||
def __init__(self, **kwargs):
|
||||
super(ErrorResponse, self).__init__(**kwargs)
|
||||
self.code = None
|
||||
self.message = None
|
||||
|
||||
|
||||
class ErrorResponseException(HttpOperationError):
|
||||
"""Server responsed with exception of type: 'ErrorResponse'.
|
||||
|
||||
:param deserialize: A deserializer
|
||||
:param response: Server response to be deserialized.
|
||||
"""
|
||||
|
||||
def __init__(self, deserialize, response, *args):
|
||||
|
||||
super(ErrorResponseException, self).__init__(deserialize, response, 'ErrorResponse', *args)
|
|
@ -1,54 +0,0 @@
|
|||
# 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
|
||||
from msrest.exceptions import HttpOperationError
|
||||
|
||||
|
||||
class ErrorResponse(Model):
|
||||
"""Error response indicates Front Door service is not able to process the
|
||||
incoming request. The reason is provided in the error message.
|
||||
|
||||
Variables are only populated by the server, and will be ignored when
|
||||
sending a request.
|
||||
|
||||
:ivar code: Error code.
|
||||
:vartype code: str
|
||||
:ivar message: Error message indicating why the operation failed.
|
||||
:vartype message: str
|
||||
"""
|
||||
|
||||
_validation = {
|
||||
'code': {'readonly': True},
|
||||
'message': {'readonly': True},
|
||||
}
|
||||
|
||||
_attribute_map = {
|
||||
'code': {'key': 'code', 'type': 'str'},
|
||||
'message': {'key': 'message', 'type': 'str'},
|
||||
}
|
||||
|
||||
def __init__(self, **kwargs) -> None:
|
||||
super(ErrorResponse, self).__init__(**kwargs)
|
||||
self.code = None
|
||||
self.message = None
|
||||
|
||||
|
||||
class ErrorResponseException(HttpOperationError):
|
||||
"""Server responsed with exception of type: 'ErrorResponse'.
|
||||
|
||||
:param deserialize: A deserializer
|
||||
:param response: Server response to be deserialized.
|
||||
"""
|
||||
|
||||
def __init__(self, deserialize, response, *args):
|
||||
|
||||
super(ErrorResponseException, self).__init__(deserialize, response, 'ErrorResponse', *args)
|
|
@ -1,82 +0,0 @@
|
|||
# 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 .resource import Resource
|
||||
|
||||
|
||||
class Experiment(Resource):
|
||||
"""Defines the properties of an Experiment.
|
||||
|
||||
Variables are only populated by the server, and will be ignored when
|
||||
sending a request.
|
||||
|
||||
:ivar id: Resource ID.
|
||||
:vartype id: str
|
||||
:ivar name: Resource name.
|
||||
:vartype name: str
|
||||
:ivar type: Resource type.
|
||||
:vartype type: str
|
||||
:param location: Resource location.
|
||||
:type location: str
|
||||
:param tags: Resource tags.
|
||||
:type tags: dict[str, str]
|
||||
:param description: The description of the details or intents of the
|
||||
Experiment
|
||||
:type description: str
|
||||
:param endpoint_a: The endpoint A of an experiment
|
||||
:type endpoint_a: ~azure.mgmt.frontdoor.models.Endpoint
|
||||
:param endpoint_b: The endpoint B of an experiment
|
||||
:type endpoint_b: ~azure.mgmt.frontdoor.models.Endpoint
|
||||
:param enabled_state: The state of the Experiment. Possible values
|
||||
include: 'Enabled', 'Disabled'
|
||||
:type enabled_state: str or ~azure.mgmt.frontdoor.models.State
|
||||
:param resource_state: Resource status. Possible values include:
|
||||
'Creating', 'Enabling', 'Enabled', 'Disabling', 'Disabled', 'Deleting'
|
||||
:type resource_state: str or
|
||||
~azure.mgmt.frontdoor.models.NetworkExperimentResourceState
|
||||
:ivar status: The description of Experiment status from the server side
|
||||
:vartype status: str
|
||||
:ivar script_file_uri: The uri to the Script used in the Experiment
|
||||
:vartype script_file_uri: str
|
||||
"""
|
||||
|
||||
_validation = {
|
||||
'id': {'readonly': True},
|
||||
'name': {'readonly': True},
|
||||
'type': {'readonly': True},
|
||||
'status': {'readonly': True},
|
||||
'script_file_uri': {'readonly': True},
|
||||
}
|
||||
|
||||
_attribute_map = {
|
||||
'id': {'key': 'id', 'type': 'str'},
|
||||
'name': {'key': 'name', 'type': 'str'},
|
||||
'type': {'key': 'type', 'type': 'str'},
|
||||
'location': {'key': 'location', 'type': 'str'},
|
||||
'tags': {'key': 'tags', 'type': '{str}'},
|
||||
'description': {'key': 'properties.description', 'type': 'str'},
|
||||
'endpoint_a': {'key': 'properties.endpointA', 'type': 'Endpoint'},
|
||||
'endpoint_b': {'key': 'properties.endpointB', 'type': 'Endpoint'},
|
||||
'enabled_state': {'key': 'properties.enabledState', 'type': 'str'},
|
||||
'resource_state': {'key': 'properties.resourceState', 'type': 'str'},
|
||||
'status': {'key': 'properties.status', 'type': 'str'},
|
||||
'script_file_uri': {'key': 'properties.scriptFileUri', 'type': 'str'},
|
||||
}
|
||||
|
||||
def __init__(self, **kwargs):
|
||||
super(Experiment, self).__init__(**kwargs)
|
||||
self.description = kwargs.get('description', None)
|
||||
self.endpoint_a = kwargs.get('endpoint_a', None)
|
||||
self.endpoint_b = kwargs.get('endpoint_b', None)
|
||||
self.enabled_state = kwargs.get('enabled_state', None)
|
||||
self.resource_state = kwargs.get('resource_state', None)
|
||||
self.status = None
|
||||
self.script_file_uri = None
|
|
@ -1,27 +0,0 @@
|
|||
# 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.paging import Paged
|
||||
|
||||
|
||||
class ExperimentPaged(Paged):
|
||||
"""
|
||||
A paging container for iterating over a list of :class:`Experiment <azure.mgmt.frontdoor.models.Experiment>` object
|
||||
"""
|
||||
|
||||
_attribute_map = {
|
||||
'next_link': {'key': 'nextLink', 'type': 'str'},
|
||||
'current_page': {'key': 'value', 'type': '[Experiment]'}
|
||||
}
|
||||
|
||||
def __init__(self, *args, **kwargs):
|
||||
|
||||
super(ExperimentPaged, self).__init__(*args, **kwargs)
|
|
@ -1,82 +0,0 @@
|
|||
# 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 .resource_py3 import Resource
|
||||
|
||||
|
||||
class Experiment(Resource):
|
||||
"""Defines the properties of an Experiment.
|
||||
|
||||
Variables are only populated by the server, and will be ignored when
|
||||
sending a request.
|
||||
|
||||
:ivar id: Resource ID.
|
||||
:vartype id: str
|
||||
:ivar name: Resource name.
|
||||
:vartype name: str
|
||||
:ivar type: Resource type.
|
||||
:vartype type: str
|
||||
:param location: Resource location.
|
||||
:type location: str
|
||||
:param tags: Resource tags.
|
||||
:type tags: dict[str, str]
|
||||
:param description: The description of the details or intents of the
|
||||
Experiment
|
||||
:type description: str
|
||||
:param endpoint_a: The endpoint A of an experiment
|
||||
:type endpoint_a: ~azure.mgmt.frontdoor.models.Endpoint
|
||||
:param endpoint_b: The endpoint B of an experiment
|
||||
:type endpoint_b: ~azure.mgmt.frontdoor.models.Endpoint
|
||||
:param enabled_state: The state of the Experiment. Possible values
|
||||
include: 'Enabled', 'Disabled'
|
||||
:type enabled_state: str or ~azure.mgmt.frontdoor.models.State
|
||||
:param resource_state: Resource status. Possible values include:
|
||||
'Creating', 'Enabling', 'Enabled', 'Disabling', 'Disabled', 'Deleting'
|
||||
:type resource_state: str or
|
||||
~azure.mgmt.frontdoor.models.NetworkExperimentResourceState
|
||||
:ivar status: The description of Experiment status from the server side
|
||||
:vartype status: str
|
||||
:ivar script_file_uri: The uri to the Script used in the Experiment
|
||||
:vartype script_file_uri: str
|
||||
"""
|
||||
|
||||
_validation = {
|
||||
'id': {'readonly': True},
|
||||
'name': {'readonly': True},
|
||||
'type': {'readonly': True},
|
||||
'status': {'readonly': True},
|
||||
'script_file_uri': {'readonly': True},
|
||||
}
|
||||
|
||||
_attribute_map = {
|
||||
'id': {'key': 'id', 'type': 'str'},
|
||||
'name': {'key': 'name', 'type': 'str'},
|
||||
'type': {'key': 'type', 'type': 'str'},
|
||||
'location': {'key': 'location', 'type': 'str'},
|
||||
'tags': {'key': 'tags', 'type': '{str}'},
|
||||
'description': {'key': 'properties.description', 'type': 'str'},
|
||||
'endpoint_a': {'key': 'properties.endpointA', 'type': 'Endpoint'},
|
||||
'endpoint_b': {'key': 'properties.endpointB', 'type': 'Endpoint'},
|
||||
'enabled_state': {'key': 'properties.enabledState', 'type': 'str'},
|
||||
'resource_state': {'key': 'properties.resourceState', 'type': 'str'},
|
||||
'status': {'key': 'properties.status', 'type': 'str'},
|
||||
'script_file_uri': {'key': 'properties.scriptFileUri', 'type': 'str'},
|
||||
}
|
||||
|
||||
def __init__(self, *, location: str=None, tags=None, description: str=None, endpoint_a=None, endpoint_b=None, enabled_state=None, resource_state=None, **kwargs) -> None:
|
||||
super(Experiment, self).__init__(location=location, tags=tags, **kwargs)
|
||||
self.description = description
|
||||
self.endpoint_a = endpoint_a
|
||||
self.endpoint_b = endpoint_b
|
||||
self.enabled_state = enabled_state
|
||||
self.resource_state = resource_state
|
||||
self.status = None
|
||||
self.script_file_uri = None
|
|
@ -1,38 +0,0 @@
|
|||
# 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 ExperimentUpdateModel(Model):
|
||||
"""Defines modifiable attributes of an Experiment.
|
||||
|
||||
:param tags: Resource tags.
|
||||
:type tags: dict[str, str]
|
||||
:param description: The description of the intent or details of the
|
||||
Experiment
|
||||
:type description: str
|
||||
:param enabled_state: The state of the Experiment. Possible values
|
||||
include: 'Enabled', 'Disabled'
|
||||
:type enabled_state: str or ~azure.mgmt.frontdoor.models.State
|
||||
"""
|
||||
|
||||
_attribute_map = {
|
||||
'tags': {'key': 'tags', 'type': '{str}'},
|
||||
'description': {'key': 'properties.description', 'type': 'str'},
|
||||
'enabled_state': {'key': 'properties.enabledState', 'type': 'str'},
|
||||
}
|
||||
|
||||
def __init__(self, **kwargs):
|
||||
super(ExperimentUpdateModel, self).__init__(**kwargs)
|
||||
self.tags = kwargs.get('tags', None)
|
||||
self.description = kwargs.get('description', None)
|
||||
self.enabled_state = kwargs.get('enabled_state', None)
|
|
@ -1,38 +0,0 @@
|
|||
# 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 ExperimentUpdateModel(Model):
|
||||
"""Defines modifiable attributes of an Experiment.
|
||||
|
||||
:param tags: Resource tags.
|
||||
:type tags: dict[str, str]
|
||||
:param description: The description of the intent or details of the
|
||||
Experiment
|
||||
:type description: str
|
||||
:param enabled_state: The state of the Experiment. Possible values
|
||||
include: 'Enabled', 'Disabled'
|
||||
:type enabled_state: str or ~azure.mgmt.frontdoor.models.State
|
||||
"""
|
||||
|
||||
_attribute_map = {
|
||||
'tags': {'key': 'tags', 'type': '{str}'},
|
||||
'description': {'key': 'properties.description', 'type': 'str'},
|
||||
'enabled_state': {'key': 'properties.enabledState', 'type': 'str'},
|
||||
}
|
||||
|
||||
def __init__(self, *, tags=None, description: str=None, enabled_state=None, **kwargs) -> None:
|
||||
super(ExperimentUpdateModel, self).__init__(**kwargs)
|
||||
self.tags = tags
|
||||
self.description = description
|
||||
self.enabled_state = enabled_state
|
|
@ -1,56 +0,0 @@
|
|||
# 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'
|
|
@ -1,56 +0,0 @@
|
|||
# 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'
|
|
@ -1,107 +0,0 @@
|
|||
# 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 .resource import Resource
|
||||
|
||||
|
||||
class FrontDoor(Resource):
|
||||
"""Front Door represents a collection of backend endpoints to route traffic to
|
||||
along with rules that specify how traffic is sent there.
|
||||
|
||||
Variables are only populated by the server, and will be ignored when
|
||||
sending a request.
|
||||
|
||||
:ivar id: Resource ID.
|
||||
:vartype id: str
|
||||
:ivar name: Resource name.
|
||||
:vartype name: str
|
||||
:ivar type: Resource type.
|
||||
:vartype type: str
|
||||
:param location: Resource location.
|
||||
:type location: str
|
||||
:param tags: Resource tags.
|
||||
:type tags: dict[str, str]
|
||||
:param friendly_name: A friendly name for the frontDoor
|
||||
:type friendly_name: str
|
||||
:param routing_rules: Routing rules associated with this Front Door.
|
||||
:type routing_rules: list[~azure.mgmt.frontdoor.models.RoutingRule]
|
||||
:param load_balancing_settings: Load balancing settings associated with
|
||||
this Front Door instance.
|
||||
:type load_balancing_settings:
|
||||
list[~azure.mgmt.frontdoor.models.LoadBalancingSettingsModel]
|
||||
:param health_probe_settings: Health probe settings associated with this
|
||||
Front Door instance.
|
||||
:type health_probe_settings:
|
||||
list[~azure.mgmt.frontdoor.models.HealthProbeSettingsModel]
|
||||
:param backend_pools: Backend pools available to routing rules.
|
||||
:type backend_pools: list[~azure.mgmt.frontdoor.models.BackendPool]
|
||||
: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'
|
||||
:type enabled_state: str or
|
||||
~azure.mgmt.frontdoor.models.FrontDoorEnabledState
|
||||
:param resource_state: Resource status of the Front Door. Possible values
|
||||
include: 'Creating', 'Enabling', 'Enabled', 'Disabling', 'Disabled',
|
||||
'Deleting'
|
||||
:type resource_state: str or
|
||||
~azure.mgmt.frontdoor.models.FrontDoorResourceState
|
||||
:ivar provisioning_state: Provisioning state of the Front Door.
|
||||
:vartype provisioning_state: str
|
||||
:ivar cname: The host that each frontendEndpoint must CNAME to.
|
||||
:vartype cname: str
|
||||
"""
|
||||
|
||||
_validation = {
|
||||
'id': {'readonly': True},
|
||||
'name': {'readonly': True},
|
||||
'type': {'readonly': True},
|
||||
'provisioning_state': {'readonly': True},
|
||||
'cname': {'readonly': True},
|
||||
}
|
||||
|
||||
_attribute_map = {
|
||||
'id': {'key': 'id', 'type': 'str'},
|
||||
'name': {'key': 'name', 'type': 'str'},
|
||||
'type': {'key': 'type', 'type': 'str'},
|
||||
'location': {'key': 'location', 'type': 'str'},
|
||||
'tags': {'key': 'tags', 'type': '{str}'},
|
||||
'friendly_name': {'key': 'properties.friendlyName', 'type': 'str'},
|
||||
'routing_rules': {'key': 'properties.routingRules', 'type': '[RoutingRule]'},
|
||||
'load_balancing_settings': {'key': 'properties.loadBalancingSettings', 'type': '[LoadBalancingSettingsModel]'},
|
||||
'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, **kwargs):
|
||||
super(FrontDoor, self).__init__(**kwargs)
|
||||
self.friendly_name = kwargs.get('friendly_name', None)
|
||||
self.routing_rules = kwargs.get('routing_rules', None)
|
||||
self.load_balancing_settings = kwargs.get('load_balancing_settings', None)
|
||||
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
|
||||
self.cname = None
|
|
@ -1,27 +0,0 @@
|
|||
# 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.paging import Paged
|
||||
|
||||
|
||||
class FrontDoorPaged(Paged):
|
||||
"""
|
||||
A paging container for iterating over a list of :class:`FrontDoor <azure.mgmt.frontdoor.models.FrontDoor>` object
|
||||
"""
|
||||
|
||||
_attribute_map = {
|
||||
'next_link': {'key': 'nextLink', 'type': 'str'},
|
||||
'current_page': {'key': 'value', 'type': '[FrontDoor]'}
|
||||
}
|
||||
|
||||
def __init__(self, *args, **kwargs):
|
||||
|
||||
super(FrontDoorPaged, self).__init__(*args, **kwargs)
|
|
@ -1,107 +0,0 @@
|
|||
# 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 .resource_py3 import Resource
|
||||
|
||||
|
||||
class FrontDoor(Resource):
|
||||
"""Front Door represents a collection of backend endpoints to route traffic to
|
||||
along with rules that specify how traffic is sent there.
|
||||
|
||||
Variables are only populated by the server, and will be ignored when
|
||||
sending a request.
|
||||
|
||||
:ivar id: Resource ID.
|
||||
:vartype id: str
|
||||
:ivar name: Resource name.
|
||||
:vartype name: str
|
||||
:ivar type: Resource type.
|
||||
:vartype type: str
|
||||
:param location: Resource location.
|
||||
:type location: str
|
||||
:param tags: Resource tags.
|
||||
:type tags: dict[str, str]
|
||||
:param friendly_name: A friendly name for the frontDoor
|
||||
:type friendly_name: str
|
||||
:param routing_rules: Routing rules associated with this Front Door.
|
||||
:type routing_rules: list[~azure.mgmt.frontdoor.models.RoutingRule]
|
||||
:param load_balancing_settings: Load balancing settings associated with
|
||||
this Front Door instance.
|
||||
:type load_balancing_settings:
|
||||
list[~azure.mgmt.frontdoor.models.LoadBalancingSettingsModel]
|
||||
:param health_probe_settings: Health probe settings associated with this
|
||||
Front Door instance.
|
||||
:type health_probe_settings:
|
||||
list[~azure.mgmt.frontdoor.models.HealthProbeSettingsModel]
|
||||
:param backend_pools: Backend pools available to routing rules.
|
||||
:type backend_pools: list[~azure.mgmt.frontdoor.models.BackendPool]
|
||||
: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'
|
||||
:type enabled_state: str or
|
||||
~azure.mgmt.frontdoor.models.FrontDoorEnabledState
|
||||
:param resource_state: Resource status of the Front Door. Possible values
|
||||
include: 'Creating', 'Enabling', 'Enabled', 'Disabling', 'Disabled',
|
||||
'Deleting'
|
||||
:type resource_state: str or
|
||||
~azure.mgmt.frontdoor.models.FrontDoorResourceState
|
||||
:ivar provisioning_state: Provisioning state of the Front Door.
|
||||
:vartype provisioning_state: str
|
||||
:ivar cname: The host that each frontendEndpoint must CNAME to.
|
||||
:vartype cname: str
|
||||
"""
|
||||
|
||||
_validation = {
|
||||
'id': {'readonly': True},
|
||||
'name': {'readonly': True},
|
||||
'type': {'readonly': True},
|
||||
'provisioning_state': {'readonly': True},
|
||||
'cname': {'readonly': True},
|
||||
}
|
||||
|
||||
_attribute_map = {
|
||||
'id': {'key': 'id', 'type': 'str'},
|
||||
'name': {'key': 'name', 'type': 'str'},
|
||||
'type': {'key': 'type', 'type': 'str'},
|
||||
'location': {'key': 'location', 'type': 'str'},
|
||||
'tags': {'key': 'tags', 'type': '{str}'},
|
||||
'friendly_name': {'key': 'properties.friendlyName', 'type': 'str'},
|
||||
'routing_rules': {'key': 'properties.routingRules', 'type': '[RoutingRule]'},
|
||||
'load_balancing_settings': {'key': 'properties.loadBalancingSettings', 'type': '[LoadBalancingSettingsModel]'},
|
||||
'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, 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
|
||||
self.load_balancing_settings = load_balancing_settings
|
||||
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
|
||||
self.cname = None
|
|
@ -1,65 +0,0 @@
|
|||
# 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 FrontDoorUpdateParameters(Model):
|
||||
"""The properties needed to update a Front Door.
|
||||
|
||||
:param friendly_name: A friendly name for the frontDoor
|
||||
:type friendly_name: str
|
||||
:param routing_rules: Routing rules associated with this Front Door.
|
||||
:type routing_rules: list[~azure.mgmt.frontdoor.models.RoutingRule]
|
||||
:param load_balancing_settings: Load balancing settings associated with
|
||||
this Front Door instance.
|
||||
:type load_balancing_settings:
|
||||
list[~azure.mgmt.frontdoor.models.LoadBalancingSettingsModel]
|
||||
:param health_probe_settings: Health probe settings associated with this
|
||||
Front Door instance.
|
||||
:type health_probe_settings:
|
||||
list[~azure.mgmt.frontdoor.models.HealthProbeSettingsModel]
|
||||
:param backend_pools: Backend pools available to routing rules.
|
||||
:type backend_pools: list[~azure.mgmt.frontdoor.models.BackendPool]
|
||||
: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'
|
||||
:type enabled_state: str or
|
||||
~azure.mgmt.frontdoor.models.FrontDoorEnabledState
|
||||
"""
|
||||
|
||||
_attribute_map = {
|
||||
'friendly_name': {'key': 'friendlyName', 'type': 'str'},
|
||||
'routing_rules': {'key': 'routingRules', 'type': '[RoutingRule]'},
|
||||
'load_balancing_settings': {'key': 'loadBalancingSettings', 'type': '[LoadBalancingSettingsModel]'},
|
||||
'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, **kwargs):
|
||||
super(FrontDoorUpdateParameters, self).__init__(**kwargs)
|
||||
self.friendly_name = kwargs.get('friendly_name', None)
|
||||
self.routing_rules = kwargs.get('routing_rules', None)
|
||||
self.load_balancing_settings = kwargs.get('load_balancing_settings', None)
|
||||
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)
|
|
@ -1,65 +0,0 @@
|
|||
# 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 FrontDoorUpdateParameters(Model):
|
||||
"""The properties needed to update a Front Door.
|
||||
|
||||
:param friendly_name: A friendly name for the frontDoor
|
||||
:type friendly_name: str
|
||||
:param routing_rules: Routing rules associated with this Front Door.
|
||||
:type routing_rules: list[~azure.mgmt.frontdoor.models.RoutingRule]
|
||||
:param load_balancing_settings: Load balancing settings associated with
|
||||
this Front Door instance.
|
||||
:type load_balancing_settings:
|
||||
list[~azure.mgmt.frontdoor.models.LoadBalancingSettingsModel]
|
||||
:param health_probe_settings: Health probe settings associated with this
|
||||
Front Door instance.
|
||||
:type health_probe_settings:
|
||||
list[~azure.mgmt.frontdoor.models.HealthProbeSettingsModel]
|
||||
:param backend_pools: Backend pools available to routing rules.
|
||||
:type backend_pools: list[~azure.mgmt.frontdoor.models.BackendPool]
|
||||
: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'
|
||||
:type enabled_state: str or
|
||||
~azure.mgmt.frontdoor.models.FrontDoorEnabledState
|
||||
"""
|
||||
|
||||
_attribute_map = {
|
||||
'friendly_name': {'key': 'friendlyName', 'type': 'str'},
|
||||
'routing_rules': {'key': 'routingRules', 'type': '[RoutingRule]'},
|
||||
'load_balancing_settings': {'key': 'loadBalancingSettings', 'type': '[LoadBalancingSettingsModel]'},
|
||||
'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, backend_pools_settings=None, enabled_state=None, **kwargs) -> None:
|
||||
super(FrontDoorUpdateParameters, self).__init__(**kwargs)
|
||||
self.friendly_name = friendly_name
|
||||
self.routing_rules = routing_rules
|
||||
self.load_balancing_settings = load_balancing_settings
|
||||
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
|
|
@ -1,100 +0,0 @@
|
|||
# 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 .sub_resource import SubResource
|
||||
|
||||
|
||||
class FrontendEndpoint(SubResource):
|
||||
"""A frontend endpoint used for routing.
|
||||
|
||||
Variables are only populated by the server, and will be ignored when
|
||||
sending a request.
|
||||
|
||||
:param id: Resource ID.
|
||||
:type id: str
|
||||
:param host_name: The host name of the frontendEndpoint. Must be a domain
|
||||
name.
|
||||
:type host_name: str
|
||||
:param session_affinity_enabled_state: Whether to allow session affinity
|
||||
on this host. Valid options are 'Enabled' or 'Disabled'. Possible values
|
||||
include: 'Enabled', 'Disabled'
|
||||
:type session_affinity_enabled_state: str or
|
||||
~azure.mgmt.frontdoor.models.SessionAffinityEnabledState
|
||||
:param session_affinity_ttl_seconds: UNUSED. This field will be ignored.
|
||||
The TTL to use in seconds for session affinity, if applicable.
|
||||
:type session_affinity_ttl_seconds: int
|
||||
:param web_application_firewall_policy_link: Defines the Web Application
|
||||
Firewall policy for each host (if applicable)
|
||||
:type web_application_firewall_policy_link:
|
||||
~azure.mgmt.frontdoor.models.FrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink
|
||||
:param resource_state: Resource status. Possible values include:
|
||||
'Creating', 'Enabling', 'Enabled', 'Disabling', 'Disabled', 'Deleting'
|
||||
:type resource_state: str or
|
||||
~azure.mgmt.frontdoor.models.FrontDoorResourceState
|
||||
:ivar custom_https_provisioning_state: Provisioning status of Custom Https
|
||||
of the frontendEndpoint. Possible values include: 'Enabling', 'Enabled',
|
||||
'Disabling', 'Disabled', 'Failed'
|
||||
:vartype custom_https_provisioning_state: str or
|
||||
~azure.mgmt.frontdoor.models.CustomHttpsProvisioningState
|
||||
:ivar custom_https_provisioning_substate: Provisioning substate shows the
|
||||
progress of custom HTTPS enabling/disabling process step by step. Possible
|
||||
values include: 'SubmittingDomainControlValidationRequest',
|
||||
'PendingDomainControlValidationREquestApproval',
|
||||
'DomainControlValidationRequestApproved',
|
||||
'DomainControlValidationRequestRejected',
|
||||
'DomainControlValidationRequestTimedOut', 'IssuingCertificate',
|
||||
'DeployingCertificate', 'CertificateDeployed', 'DeletingCertificate',
|
||||
'CertificateDeleted'
|
||||
:vartype custom_https_provisioning_substate: str or
|
||||
~azure.mgmt.frontdoor.models.CustomHttpsProvisioningSubstate
|
||||
:ivar custom_https_configuration: The configuration specifying how to
|
||||
enable HTTPS
|
||||
:vartype custom_https_configuration:
|
||||
~azure.mgmt.frontdoor.models.CustomHttpsConfiguration
|
||||
:param name: Resource name.
|
||||
:type name: str
|
||||
:ivar type: Resource type.
|
||||
:vartype type: str
|
||||
"""
|
||||
|
||||
_validation = {
|
||||
'custom_https_provisioning_state': {'readonly': True},
|
||||
'custom_https_provisioning_substate': {'readonly': True},
|
||||
'custom_https_configuration': {'readonly': True},
|
||||
'type': {'readonly': True},
|
||||
}
|
||||
|
||||
_attribute_map = {
|
||||
'id': {'key': 'id', 'type': 'str'},
|
||||
'host_name': {'key': 'properties.hostName', 'type': 'str'},
|
||||
'session_affinity_enabled_state': {'key': 'properties.sessionAffinityEnabledState', 'type': 'str'},
|
||||
'session_affinity_ttl_seconds': {'key': 'properties.sessionAffinityTtlSeconds', 'type': 'int'},
|
||||
'web_application_firewall_policy_link': {'key': 'properties.webApplicationFirewallPolicyLink', 'type': 'FrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink'},
|
||||
'resource_state': {'key': 'properties.resourceState', 'type': 'str'},
|
||||
'custom_https_provisioning_state': {'key': 'properties.customHttpsProvisioningState', 'type': 'str'},
|
||||
'custom_https_provisioning_substate': {'key': 'properties.customHttpsProvisioningSubstate', 'type': 'str'},
|
||||
'custom_https_configuration': {'key': 'properties.customHttpsConfiguration', 'type': 'CustomHttpsConfiguration'},
|
||||
'name': {'key': 'name', 'type': 'str'},
|
||||
'type': {'key': 'type', 'type': 'str'},
|
||||
}
|
||||
|
||||
def __init__(self, **kwargs):
|
||||
super(FrontendEndpoint, self).__init__(**kwargs)
|
||||
self.host_name = kwargs.get('host_name', None)
|
||||
self.session_affinity_enabled_state = kwargs.get('session_affinity_enabled_state', None)
|
||||
self.session_affinity_ttl_seconds = kwargs.get('session_affinity_ttl_seconds', None)
|
||||
self.web_application_firewall_policy_link = kwargs.get('web_application_firewall_policy_link', None)
|
||||
self.resource_state = kwargs.get('resource_state', None)
|
||||
self.custom_https_provisioning_state = None
|
||||
self.custom_https_provisioning_substate = None
|
||||
self.custom_https_configuration = None
|
||||
self.name = kwargs.get('name', None)
|
||||
self.type = None
|
|
@ -1,28 +0,0 @@
|
|||
# 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 FrontendEndpointLink(Model):
|
||||
"""Defines the Resource ID for a Frontend Endpoint.
|
||||
|
||||
:param id: Resource ID.
|
||||
:type id: str
|
||||
"""
|
||||
|
||||
_attribute_map = {
|
||||
'id': {'key': 'id', 'type': 'str'},
|
||||
}
|
||||
|
||||
def __init__(self, **kwargs):
|
||||
super(FrontendEndpointLink, self).__init__(**kwargs)
|
||||
self.id = kwargs.get('id', None)
|
|
@ -1,28 +0,0 @@
|
|||
# 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 FrontendEndpointLink(Model):
|
||||
"""Defines the Resource ID for a Frontend Endpoint.
|
||||
|
||||
:param id: Resource ID.
|
||||
:type id: str
|
||||
"""
|
||||
|
||||
_attribute_map = {
|
||||
'id': {'key': 'id', 'type': 'str'},
|
||||
}
|
||||
|
||||
def __init__(self, *, id: str=None, **kwargs) -> None:
|
||||
super(FrontendEndpointLink, self).__init__(**kwargs)
|
||||
self.id = id
|
|
@ -1,27 +0,0 @@
|
|||
# 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.paging import Paged
|
||||
|
||||
|
||||
class FrontendEndpointPaged(Paged):
|
||||
"""
|
||||
A paging container for iterating over a list of :class:`FrontendEndpoint <azure.mgmt.frontdoor.models.FrontendEndpoint>` object
|
||||
"""
|
||||
|
||||
_attribute_map = {
|
||||
'next_link': {'key': 'nextLink', 'type': 'str'},
|
||||
'current_page': {'key': 'value', 'type': '[FrontendEndpoint]'}
|
||||
}
|
||||
|
||||
def __init__(self, *args, **kwargs):
|
||||
|
||||
super(FrontendEndpointPaged, self).__init__(*args, **kwargs)
|
|
@ -1,100 +0,0 @@
|
|||
# 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 .sub_resource_py3 import SubResource
|
||||
|
||||
|
||||
class FrontendEndpoint(SubResource):
|
||||
"""A frontend endpoint used for routing.
|
||||
|
||||
Variables are only populated by the server, and will be ignored when
|
||||
sending a request.
|
||||
|
||||
:param id: Resource ID.
|
||||
:type id: str
|
||||
:param host_name: The host name of the frontendEndpoint. Must be a domain
|
||||
name.
|
||||
:type host_name: str
|
||||
:param session_affinity_enabled_state: Whether to allow session affinity
|
||||
on this host. Valid options are 'Enabled' or 'Disabled'. Possible values
|
||||
include: 'Enabled', 'Disabled'
|
||||
:type session_affinity_enabled_state: str or
|
||||
~azure.mgmt.frontdoor.models.SessionAffinityEnabledState
|
||||
:param session_affinity_ttl_seconds: UNUSED. This field will be ignored.
|
||||
The TTL to use in seconds for session affinity, if applicable.
|
||||
:type session_affinity_ttl_seconds: int
|
||||
:param web_application_firewall_policy_link: Defines the Web Application
|
||||
Firewall policy for each host (if applicable)
|
||||
:type web_application_firewall_policy_link:
|
||||
~azure.mgmt.frontdoor.models.FrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink
|
||||
:param resource_state: Resource status. Possible values include:
|
||||
'Creating', 'Enabling', 'Enabled', 'Disabling', 'Disabled', 'Deleting'
|
||||
:type resource_state: str or
|
||||
~azure.mgmt.frontdoor.models.FrontDoorResourceState
|
||||
:ivar custom_https_provisioning_state: Provisioning status of Custom Https
|
||||
of the frontendEndpoint. Possible values include: 'Enabling', 'Enabled',
|
||||
'Disabling', 'Disabled', 'Failed'
|
||||
:vartype custom_https_provisioning_state: str or
|
||||
~azure.mgmt.frontdoor.models.CustomHttpsProvisioningState
|
||||
:ivar custom_https_provisioning_substate: Provisioning substate shows the
|
||||
progress of custom HTTPS enabling/disabling process step by step. Possible
|
||||
values include: 'SubmittingDomainControlValidationRequest',
|
||||
'PendingDomainControlValidationREquestApproval',
|
||||
'DomainControlValidationRequestApproved',
|
||||
'DomainControlValidationRequestRejected',
|
||||
'DomainControlValidationRequestTimedOut', 'IssuingCertificate',
|
||||
'DeployingCertificate', 'CertificateDeployed', 'DeletingCertificate',
|
||||
'CertificateDeleted'
|
||||
:vartype custom_https_provisioning_substate: str or
|
||||
~azure.mgmt.frontdoor.models.CustomHttpsProvisioningSubstate
|
||||
:ivar custom_https_configuration: The configuration specifying how to
|
||||
enable HTTPS
|
||||
:vartype custom_https_configuration:
|
||||
~azure.mgmt.frontdoor.models.CustomHttpsConfiguration
|
||||
:param name: Resource name.
|
||||
:type name: str
|
||||
:ivar type: Resource type.
|
||||
:vartype type: str
|
||||
"""
|
||||
|
||||
_validation = {
|
||||
'custom_https_provisioning_state': {'readonly': True},
|
||||
'custom_https_provisioning_substate': {'readonly': True},
|
||||
'custom_https_configuration': {'readonly': True},
|
||||
'type': {'readonly': True},
|
||||
}
|
||||
|
||||
_attribute_map = {
|
||||
'id': {'key': 'id', 'type': 'str'},
|
||||
'host_name': {'key': 'properties.hostName', 'type': 'str'},
|
||||
'session_affinity_enabled_state': {'key': 'properties.sessionAffinityEnabledState', 'type': 'str'},
|
||||
'session_affinity_ttl_seconds': {'key': 'properties.sessionAffinityTtlSeconds', 'type': 'int'},
|
||||
'web_application_firewall_policy_link': {'key': 'properties.webApplicationFirewallPolicyLink', 'type': 'FrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink'},
|
||||
'resource_state': {'key': 'properties.resourceState', 'type': 'str'},
|
||||
'custom_https_provisioning_state': {'key': 'properties.customHttpsProvisioningState', 'type': 'str'},
|
||||
'custom_https_provisioning_substate': {'key': 'properties.customHttpsProvisioningSubstate', 'type': 'str'},
|
||||
'custom_https_configuration': {'key': 'properties.customHttpsConfiguration', 'type': 'CustomHttpsConfiguration'},
|
||||
'name': {'key': 'name', 'type': 'str'},
|
||||
'type': {'key': 'type', 'type': 'str'},
|
||||
}
|
||||
|
||||
def __init__(self, *, id: str=None, host_name: str=None, session_affinity_enabled_state=None, session_affinity_ttl_seconds: int=None, web_application_firewall_policy_link=None, resource_state=None, name: str=None, **kwargs) -> None:
|
||||
super(FrontendEndpoint, self).__init__(id=id, **kwargs)
|
||||
self.host_name = host_name
|
||||
self.session_affinity_enabled_state = session_affinity_enabled_state
|
||||
self.session_affinity_ttl_seconds = session_affinity_ttl_seconds
|
||||
self.web_application_firewall_policy_link = web_application_firewall_policy_link
|
||||
self.resource_state = resource_state
|
||||
self.custom_https_provisioning_state = None
|
||||
self.custom_https_provisioning_substate = None
|
||||
self.custom_https_configuration = None
|
||||
self.name = name
|
||||
self.type = None
|
|
@ -1,47 +0,0 @@
|
|||
# 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 FrontendEndpointUpdateParameters(Model):
|
||||
"""Frontend endpoint used in routing rule.
|
||||
|
||||
:param host_name: The host name of the frontendEndpoint. Must be a domain
|
||||
name.
|
||||
:type host_name: str
|
||||
:param session_affinity_enabled_state: Whether to allow session affinity
|
||||
on this host. Valid options are 'Enabled' or 'Disabled'. Possible values
|
||||
include: 'Enabled', 'Disabled'
|
||||
:type session_affinity_enabled_state: str or
|
||||
~azure.mgmt.frontdoor.models.SessionAffinityEnabledState
|
||||
:param session_affinity_ttl_seconds: UNUSED. This field will be ignored.
|
||||
The TTL to use in seconds for session affinity, if applicable.
|
||||
:type session_affinity_ttl_seconds: int
|
||||
:param web_application_firewall_policy_link: Defines the Web Application
|
||||
Firewall policy for each host (if applicable)
|
||||
:type web_application_firewall_policy_link:
|
||||
~azure.mgmt.frontdoor.models.FrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink
|
||||
"""
|
||||
|
||||
_attribute_map = {
|
||||
'host_name': {'key': 'hostName', 'type': 'str'},
|
||||
'session_affinity_enabled_state': {'key': 'sessionAffinityEnabledState', 'type': 'str'},
|
||||
'session_affinity_ttl_seconds': {'key': 'sessionAffinityTtlSeconds', 'type': 'int'},
|
||||
'web_application_firewall_policy_link': {'key': 'webApplicationFirewallPolicyLink', 'type': 'FrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink'},
|
||||
}
|
||||
|
||||
def __init__(self, **kwargs):
|
||||
super(FrontendEndpointUpdateParameters, self).__init__(**kwargs)
|
||||
self.host_name = kwargs.get('host_name', None)
|
||||
self.session_affinity_enabled_state = kwargs.get('session_affinity_enabled_state', None)
|
||||
self.session_affinity_ttl_seconds = kwargs.get('session_affinity_ttl_seconds', None)
|
||||
self.web_application_firewall_policy_link = kwargs.get('web_application_firewall_policy_link', None)
|
|
@ -1,47 +0,0 @@
|
|||
# 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 FrontendEndpointUpdateParameters(Model):
|
||||
"""Frontend endpoint used in routing rule.
|
||||
|
||||
:param host_name: The host name of the frontendEndpoint. Must be a domain
|
||||
name.
|
||||
:type host_name: str
|
||||
:param session_affinity_enabled_state: Whether to allow session affinity
|
||||
on this host. Valid options are 'Enabled' or 'Disabled'. Possible values
|
||||
include: 'Enabled', 'Disabled'
|
||||
:type session_affinity_enabled_state: str or
|
||||
~azure.mgmt.frontdoor.models.SessionAffinityEnabledState
|
||||
:param session_affinity_ttl_seconds: UNUSED. This field will be ignored.
|
||||
The TTL to use in seconds for session affinity, if applicable.
|
||||
:type session_affinity_ttl_seconds: int
|
||||
:param web_application_firewall_policy_link: Defines the Web Application
|
||||
Firewall policy for each host (if applicable)
|
||||
:type web_application_firewall_policy_link:
|
||||
~azure.mgmt.frontdoor.models.FrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink
|
||||
"""
|
||||
|
||||
_attribute_map = {
|
||||
'host_name': {'key': 'hostName', 'type': 'str'},
|
||||
'session_affinity_enabled_state': {'key': 'sessionAffinityEnabledState', 'type': 'str'},
|
||||
'session_affinity_ttl_seconds': {'key': 'sessionAffinityTtlSeconds', 'type': 'int'},
|
||||
'web_application_firewall_policy_link': {'key': 'webApplicationFirewallPolicyLink', 'type': 'FrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink'},
|
||||
}
|
||||
|
||||
def __init__(self, *, host_name: str=None, session_affinity_enabled_state=None, session_affinity_ttl_seconds: int=None, web_application_firewall_policy_link=None, **kwargs) -> None:
|
||||
super(FrontendEndpointUpdateParameters, self).__init__(**kwargs)
|
||||
self.host_name = host_name
|
||||
self.session_affinity_enabled_state = session_affinity_enabled_state
|
||||
self.session_affinity_ttl_seconds = session_affinity_ttl_seconds
|
||||
self.web_application_firewall_policy_link = web_application_firewall_policy_link
|
|
@ -1,28 +0,0 @@
|
|||
# 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 FrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink(Model):
|
||||
"""Defines the Web Application Firewall policy for each host (if applicable).
|
||||
|
||||
:param id: Resource ID.
|
||||
:type id: str
|
||||
"""
|
||||
|
||||
_attribute_map = {
|
||||
'id': {'key': 'id', 'type': 'str'},
|
||||
}
|
||||
|
||||
def __init__(self, **kwargs):
|
||||
super(FrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink, self).__init__(**kwargs)
|
||||
self.id = kwargs.get('id', None)
|
|
@ -1,28 +0,0 @@
|
|||
# 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 FrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink(Model):
|
||||
"""Defines the Web Application Firewall policy for each host (if applicable).
|
||||
|
||||
:param id: Resource ID.
|
||||
:type id: str
|
||||
"""
|
||||
|
||||
_attribute_map = {
|
||||
'id': {'key': 'id', 'type': 'str'},
|
||||
}
|
||||
|
||||
def __init__(self, *, id: str=None, **kwargs) -> None:
|
||||
super(FrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink, self).__init__(**kwargs)
|
||||
self.id = id
|
|
@ -1,42 +0,0 @@
|
|||
# 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)
|
|
@ -1,42 +0,0 @@
|
|||
# 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
|
|
@ -1,76 +0,0 @@
|
|||
# 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 .sub_resource import SubResource
|
||||
|
||||
|
||||
class HealthProbeSettingsModel(SubResource):
|
||||
"""Load balancing settings for a backend pool.
|
||||
|
||||
Variables are only populated by the server, and will be ignored when
|
||||
sending a request.
|
||||
|
||||
:param id: Resource ID.
|
||||
:type id: str
|
||||
:param path: The path to use for the health probe. Default is /
|
||||
:type path: str
|
||||
:param protocol: Protocol scheme to use for this probe. Possible values
|
||||
include: 'Http', 'Https'
|
||||
:type protocol: str or ~azure.mgmt.frontdoor.models.FrontDoorProtocol
|
||||
:param interval_in_seconds: The number of seconds between health probes.
|
||||
:type interval_in_seconds: int
|
||||
:param health_probe_method: Configures which HTTP method to use to probe
|
||||
the backends defined under backendPools. Possible values include: 'GET',
|
||||
'HEAD'. Default value: "HEAD" .
|
||||
:type health_probe_method: str or
|
||||
~azure.mgmt.frontdoor.models.FrontDoorHealthProbeMethod
|
||||
:param enabled_state: Whether to enable health probes to be made against
|
||||
backends defined under backendPools. Health probes can only be disabled if
|
||||
there is a single enabled backend in single enabled backend pool. Possible
|
||||
values include: 'Enabled', 'Disabled'
|
||||
:type enabled_state: str or
|
||||
~azure.mgmt.frontdoor.models.HealthProbeEnabled
|
||||
:param resource_state: Resource status. Possible values include:
|
||||
'Creating', 'Enabling', 'Enabled', 'Disabling', 'Disabled', 'Deleting'
|
||||
:type resource_state: str or
|
||||
~azure.mgmt.frontdoor.models.FrontDoorResourceState
|
||||
:param name: Resource name.
|
||||
:type name: str
|
||||
:ivar type: Resource type.
|
||||
:vartype type: str
|
||||
"""
|
||||
|
||||
_validation = {
|
||||
'type': {'readonly': True},
|
||||
}
|
||||
|
||||
_attribute_map = {
|
||||
'id': {'key': 'id', 'type': 'str'},
|
||||
'path': {'key': 'properties.path', 'type': 'str'},
|
||||
'protocol': {'key': 'properties.protocol', 'type': 'str'},
|
||||
'interval_in_seconds': {'key': 'properties.intervalInSeconds', 'type': 'int'},
|
||||
'health_probe_method': {'key': 'properties.healthProbeMethod', 'type': 'str'},
|
||||
'enabled_state': {'key': 'properties.enabledState', 'type': 'str'},
|
||||
'resource_state': {'key': 'properties.resourceState', 'type': 'str'},
|
||||
'name': {'key': 'name', 'type': 'str'},
|
||||
'type': {'key': 'type', 'type': 'str'},
|
||||
}
|
||||
|
||||
def __init__(self, **kwargs):
|
||||
super(HealthProbeSettingsModel, self).__init__(**kwargs)
|
||||
self.path = kwargs.get('path', None)
|
||||
self.protocol = kwargs.get('protocol', None)
|
||||
self.interval_in_seconds = kwargs.get('interval_in_seconds', None)
|
||||
self.health_probe_method = kwargs.get('health_probe_method', "HEAD")
|
||||
self.enabled_state = kwargs.get('enabled_state', None)
|
||||
self.resource_state = kwargs.get('resource_state', None)
|
||||
self.name = kwargs.get('name', None)
|
||||
self.type = None
|
|
@ -1,76 +0,0 @@
|
|||
# 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 .sub_resource_py3 import SubResource
|
||||
|
||||
|
||||
class HealthProbeSettingsModel(SubResource):
|
||||
"""Load balancing settings for a backend pool.
|
||||
|
||||
Variables are only populated by the server, and will be ignored when
|
||||
sending a request.
|
||||
|
||||
:param id: Resource ID.
|
||||
:type id: str
|
||||
:param path: The path to use for the health probe. Default is /
|
||||
:type path: str
|
||||
:param protocol: Protocol scheme to use for this probe. Possible values
|
||||
include: 'Http', 'Https'
|
||||
:type protocol: str or ~azure.mgmt.frontdoor.models.FrontDoorProtocol
|
||||
:param interval_in_seconds: The number of seconds between health probes.
|
||||
:type interval_in_seconds: int
|
||||
:param health_probe_method: Configures which HTTP method to use to probe
|
||||
the backends defined under backendPools. Possible values include: 'GET',
|
||||
'HEAD'. Default value: "HEAD" .
|
||||
:type health_probe_method: str or
|
||||
~azure.mgmt.frontdoor.models.FrontDoorHealthProbeMethod
|
||||
:param enabled_state: Whether to enable health probes to be made against
|
||||
backends defined under backendPools. Health probes can only be disabled if
|
||||
there is a single enabled backend in single enabled backend pool. Possible
|
||||
values include: 'Enabled', 'Disabled'
|
||||
:type enabled_state: str or
|
||||
~azure.mgmt.frontdoor.models.HealthProbeEnabled
|
||||
:param resource_state: Resource status. Possible values include:
|
||||
'Creating', 'Enabling', 'Enabled', 'Disabling', 'Disabled', 'Deleting'
|
||||
:type resource_state: str or
|
||||
~azure.mgmt.frontdoor.models.FrontDoorResourceState
|
||||
:param name: Resource name.
|
||||
:type name: str
|
||||
:ivar type: Resource type.
|
||||
:vartype type: str
|
||||
"""
|
||||
|
||||
_validation = {
|
||||
'type': {'readonly': True},
|
||||
}
|
||||
|
||||
_attribute_map = {
|
||||
'id': {'key': 'id', 'type': 'str'},
|
||||
'path': {'key': 'properties.path', 'type': 'str'},
|
||||
'protocol': {'key': 'properties.protocol', 'type': 'str'},
|
||||
'interval_in_seconds': {'key': 'properties.intervalInSeconds', 'type': 'int'},
|
||||
'health_probe_method': {'key': 'properties.healthProbeMethod', 'type': 'str'},
|
||||
'enabled_state': {'key': 'properties.enabledState', 'type': 'str'},
|
||||
'resource_state': {'key': 'properties.resourceState', 'type': 'str'},
|
||||
'name': {'key': 'name', 'type': 'str'},
|
||||
'type': {'key': 'type', 'type': 'str'},
|
||||
}
|
||||
|
||||
def __init__(self, *, id: str=None, path: str=None, protocol=None, interval_in_seconds: int=None, health_probe_method="HEAD", enabled_state=None, resource_state=None, name: str=None, **kwargs) -> None:
|
||||
super(HealthProbeSettingsModel, self).__init__(id=id, **kwargs)
|
||||
self.path = path
|
||||
self.protocol = protocol
|
||||
self.interval_in_seconds = interval_in_seconds
|
||||
self.health_probe_method = health_probe_method
|
||||
self.enabled_state = enabled_state
|
||||
self.resource_state = resource_state
|
||||
self.name = name
|
||||
self.type = None
|
|
@ -1,52 +0,0 @@
|
|||
# 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 HealthProbeSettingsUpdateParameters(Model):
|
||||
"""L7 health probe settings for a backend pool.
|
||||
|
||||
:param path: The path to use for the health probe. Default is /
|
||||
:type path: str
|
||||
:param protocol: Protocol scheme to use for this probe. Possible values
|
||||
include: 'Http', 'Https'
|
||||
:type protocol: str or ~azure.mgmt.frontdoor.models.FrontDoorProtocol
|
||||
:param interval_in_seconds: The number of seconds between health probes.
|
||||
:type interval_in_seconds: int
|
||||
:param health_probe_method: Configures which HTTP method to use to probe
|
||||
the backends defined under backendPools. Possible values include: 'GET',
|
||||
'HEAD'. Default value: "HEAD" .
|
||||
:type health_probe_method: str or
|
||||
~azure.mgmt.frontdoor.models.FrontDoorHealthProbeMethod
|
||||
:param enabled_state: Whether to enable health probes to be made against
|
||||
backends defined under backendPools. Health probes can only be disabled if
|
||||
there is a single enabled backend in single enabled backend pool. Possible
|
||||
values include: 'Enabled', 'Disabled'
|
||||
:type enabled_state: str or
|
||||
~azure.mgmt.frontdoor.models.HealthProbeEnabled
|
||||
"""
|
||||
|
||||
_attribute_map = {
|
||||
'path': {'key': 'path', 'type': 'str'},
|
||||
'protocol': {'key': 'protocol', 'type': 'str'},
|
||||
'interval_in_seconds': {'key': 'intervalInSeconds', 'type': 'int'},
|
||||
'health_probe_method': {'key': 'healthProbeMethod', 'type': 'str'},
|
||||
'enabled_state': {'key': 'enabledState', 'type': 'str'},
|
||||
}
|
||||
|
||||
def __init__(self, **kwargs):
|
||||
super(HealthProbeSettingsUpdateParameters, self).__init__(**kwargs)
|
||||
self.path = kwargs.get('path', None)
|
||||
self.protocol = kwargs.get('protocol', None)
|
||||
self.interval_in_seconds = kwargs.get('interval_in_seconds', None)
|
||||
self.health_probe_method = kwargs.get('health_probe_method', "HEAD")
|
||||
self.enabled_state = kwargs.get('enabled_state', None)
|
|
@ -1,52 +0,0 @@
|
|||
# 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 HealthProbeSettingsUpdateParameters(Model):
|
||||
"""L7 health probe settings for a backend pool.
|
||||
|
||||
:param path: The path to use for the health probe. Default is /
|
||||
:type path: str
|
||||
:param protocol: Protocol scheme to use for this probe. Possible values
|
||||
include: 'Http', 'Https'
|
||||
:type protocol: str or ~azure.mgmt.frontdoor.models.FrontDoorProtocol
|
||||
:param interval_in_seconds: The number of seconds between health probes.
|
||||
:type interval_in_seconds: int
|
||||
:param health_probe_method: Configures which HTTP method to use to probe
|
||||
the backends defined under backendPools. Possible values include: 'GET',
|
||||
'HEAD'. Default value: "HEAD" .
|
||||
:type health_probe_method: str or
|
||||
~azure.mgmt.frontdoor.models.FrontDoorHealthProbeMethod
|
||||
:param enabled_state: Whether to enable health probes to be made against
|
||||
backends defined under backendPools. Health probes can only be disabled if
|
||||
there is a single enabled backend in single enabled backend pool. Possible
|
||||
values include: 'Enabled', 'Disabled'
|
||||
:type enabled_state: str or
|
||||
~azure.mgmt.frontdoor.models.HealthProbeEnabled
|
||||
"""
|
||||
|
||||
_attribute_map = {
|
||||
'path': {'key': 'path', 'type': 'str'},
|
||||
'protocol': {'key': 'protocol', 'type': 'str'},
|
||||
'interval_in_seconds': {'key': 'intervalInSeconds', 'type': 'int'},
|
||||
'health_probe_method': {'key': 'healthProbeMethod', 'type': 'str'},
|
||||
'enabled_state': {'key': 'enabledState', 'type': 'str'},
|
||||
}
|
||||
|
||||
def __init__(self, *, path: str=None, protocol=None, interval_in_seconds: int=None, health_probe_method="HEAD", enabled_state=None, **kwargs) -> None:
|
||||
super(HealthProbeSettingsUpdateParameters, self).__init__(**kwargs)
|
||||
self.path = path
|
||||
self.protocol = protocol
|
||||
self.interval_in_seconds = interval_in_seconds
|
||||
self.health_probe_method = health_probe_method
|
||||
self.enabled_state = enabled_state
|
|
@ -1,28 +0,0 @@
|
|||
# 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 KeyVaultCertificateSourceParametersVault(Model):
|
||||
"""The Key Vault containing the SSL certificate.
|
||||
|
||||
:param id: Resource ID.
|
||||
:type id: str
|
||||
"""
|
||||
|
||||
_attribute_map = {
|
||||
'id': {'key': 'id', 'type': 'str'},
|
||||
}
|
||||
|
||||
def __init__(self, **kwargs):
|
||||
super(KeyVaultCertificateSourceParametersVault, self).__init__(**kwargs)
|
||||
self.id = kwargs.get('id', None)
|
|
@ -1,28 +0,0 @@
|
|||
# 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 KeyVaultCertificateSourceParametersVault(Model):
|
||||
"""The Key Vault containing the SSL certificate.
|
||||
|
||||
:param id: Resource ID.
|
||||
:type id: str
|
||||
"""
|
||||
|
||||
_attribute_map = {
|
||||
'id': {'key': 'id', 'type': 'str'},
|
||||
}
|
||||
|
||||
def __init__(self, *, id: str=None, **kwargs) -> None:
|
||||
super(KeyVaultCertificateSourceParametersVault, self).__init__(**kwargs)
|
||||
self.id = id
|
|
@ -1,84 +0,0 @@
|
|||
# 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 LatencyMetric(Model):
|
||||
"""Defines the properties of a latency metric used in the latency scorecard.
|
||||
|
||||
Variables are only populated by the server, and will be ignored when
|
||||
sending a request.
|
||||
|
||||
:ivar name: The name of the Latency Metric
|
||||
:vartype name: str
|
||||
:ivar end_date_time_utc: The end time of the Latency Scorecard in UTC
|
||||
:vartype end_date_time_utc: str
|
||||
:ivar a_value: The metric value of the A endpoint
|
||||
:vartype a_value: float
|
||||
:ivar b_value: The metric value of the B endpoint
|
||||
:vartype b_value: float
|
||||
:ivar delta: The difference in value between endpoint A and B
|
||||
:vartype delta: float
|
||||
:ivar delta_percent: The percent difference between endpoint A and B
|
||||
:vartype delta_percent: float
|
||||
:ivar a_clower95_ci: The lower end of the 95% confidence interval for
|
||||
endpoint A
|
||||
:vartype a_clower95_ci: float
|
||||
:ivar a_hupper95_ci: The upper end of the 95% confidence interval for
|
||||
endpoint A
|
||||
:vartype a_hupper95_ci: float
|
||||
:ivar b_clower95_ci: The lower end of the 95% confidence interval for
|
||||
endpoint B
|
||||
:vartype b_clower95_ci: float
|
||||
:ivar b_upper95_ci: The upper end of the 95% confidence interval for
|
||||
endpoint B
|
||||
:vartype b_upper95_ci: float
|
||||
"""
|
||||
|
||||
_validation = {
|
||||
'name': {'readonly': True},
|
||||
'end_date_time_utc': {'readonly': True},
|
||||
'a_value': {'readonly': True},
|
||||
'b_value': {'readonly': True},
|
||||
'delta': {'readonly': True},
|
||||
'delta_percent': {'readonly': True},
|
||||
'a_clower95_ci': {'readonly': True},
|
||||
'a_hupper95_ci': {'readonly': True},
|
||||
'b_clower95_ci': {'readonly': True},
|
||||
'b_upper95_ci': {'readonly': True},
|
||||
}
|
||||
|
||||
_attribute_map = {
|
||||
'name': {'key': 'name', 'type': 'str'},
|
||||
'end_date_time_utc': {'key': 'endDateTimeUTC', 'type': 'str'},
|
||||
'a_value': {'key': 'aValue', 'type': 'float'},
|
||||
'b_value': {'key': 'bValue', 'type': 'float'},
|
||||
'delta': {'key': 'delta', 'type': 'float'},
|
||||
'delta_percent': {'key': 'deltaPercent', 'type': 'float'},
|
||||
'a_clower95_ci': {'key': 'aCLower95CI', 'type': 'float'},
|
||||
'a_hupper95_ci': {'key': 'aHUpper95CI', 'type': 'float'},
|
||||
'b_clower95_ci': {'key': 'bCLower95CI', 'type': 'float'},
|
||||
'b_upper95_ci': {'key': 'bUpper95CI', 'type': 'float'},
|
||||
}
|
||||
|
||||
def __init__(self, **kwargs):
|
||||
super(LatencyMetric, self).__init__(**kwargs)
|
||||
self.name = None
|
||||
self.end_date_time_utc = None
|
||||
self.a_value = None
|
||||
self.b_value = None
|
||||
self.delta = None
|
||||
self.delta_percent = None
|
||||
self.a_clower95_ci = None
|
||||
self.a_hupper95_ci = None
|
||||
self.b_clower95_ci = None
|
||||
self.b_upper95_ci = None
|
|
@ -1,84 +0,0 @@
|
|||
# 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 LatencyMetric(Model):
|
||||
"""Defines the properties of a latency metric used in the latency scorecard.
|
||||
|
||||
Variables are only populated by the server, and will be ignored when
|
||||
sending a request.
|
||||
|
||||
:ivar name: The name of the Latency Metric
|
||||
:vartype name: str
|
||||
:ivar end_date_time_utc: The end time of the Latency Scorecard in UTC
|
||||
:vartype end_date_time_utc: str
|
||||
:ivar a_value: The metric value of the A endpoint
|
||||
:vartype a_value: float
|
||||
:ivar b_value: The metric value of the B endpoint
|
||||
:vartype b_value: float
|
||||
:ivar delta: The difference in value between endpoint A and B
|
||||
:vartype delta: float
|
||||
:ivar delta_percent: The percent difference between endpoint A and B
|
||||
:vartype delta_percent: float
|
||||
:ivar a_clower95_ci: The lower end of the 95% confidence interval for
|
||||
endpoint A
|
||||
:vartype a_clower95_ci: float
|
||||
:ivar a_hupper95_ci: The upper end of the 95% confidence interval for
|
||||
endpoint A
|
||||
:vartype a_hupper95_ci: float
|
||||
:ivar b_clower95_ci: The lower end of the 95% confidence interval for
|
||||
endpoint B
|
||||
:vartype b_clower95_ci: float
|
||||
:ivar b_upper95_ci: The upper end of the 95% confidence interval for
|
||||
endpoint B
|
||||
:vartype b_upper95_ci: float
|
||||
"""
|
||||
|
||||
_validation = {
|
||||
'name': {'readonly': True},
|
||||
'end_date_time_utc': {'readonly': True},
|
||||
'a_value': {'readonly': True},
|
||||
'b_value': {'readonly': True},
|
||||
'delta': {'readonly': True},
|
||||
'delta_percent': {'readonly': True},
|
||||
'a_clower95_ci': {'readonly': True},
|
||||
'a_hupper95_ci': {'readonly': True},
|
||||
'b_clower95_ci': {'readonly': True},
|
||||
'b_upper95_ci': {'readonly': True},
|
||||
}
|
||||
|
||||
_attribute_map = {
|
||||
'name': {'key': 'name', 'type': 'str'},
|
||||
'end_date_time_utc': {'key': 'endDateTimeUTC', 'type': 'str'},
|
||||
'a_value': {'key': 'aValue', 'type': 'float'},
|
||||
'b_value': {'key': 'bValue', 'type': 'float'},
|
||||
'delta': {'key': 'delta', 'type': 'float'},
|
||||
'delta_percent': {'key': 'deltaPercent', 'type': 'float'},
|
||||
'a_clower95_ci': {'key': 'aCLower95CI', 'type': 'float'},
|
||||
'a_hupper95_ci': {'key': 'aHUpper95CI', 'type': 'float'},
|
||||
'b_clower95_ci': {'key': 'bCLower95CI', 'type': 'float'},
|
||||
'b_upper95_ci': {'key': 'bUpper95CI', 'type': 'float'},
|
||||
}
|
||||
|
||||
def __init__(self, **kwargs) -> None:
|
||||
super(LatencyMetric, self).__init__(**kwargs)
|
||||
self.name = None
|
||||
self.end_date_time_utc = None
|
||||
self.a_value = None
|
||||
self.b_value = None
|
||||
self.delta = None
|
||||
self.delta_percent = None
|
||||
self.a_clower95_ci = None
|
||||
self.a_hupper95_ci = None
|
||||
self.b_clower95_ci = None
|
||||
self.b_upper95_ci = None
|
|
@ -1,94 +0,0 @@
|
|||
# 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 .resource import Resource
|
||||
|
||||
|
||||
class LatencyScorecard(Resource):
|
||||
"""Defines the LatencyScorecard.
|
||||
|
||||
Variables are only populated by the server, and will be ignored when
|
||||
sending a request.
|
||||
|
||||
:ivar id: Resource ID.
|
||||
:vartype id: str
|
||||
:ivar name: Resource name.
|
||||
:vartype name: str
|
||||
:ivar type: Resource type.
|
||||
:vartype type: str
|
||||
:param location: Resource location.
|
||||
:type location: str
|
||||
:param tags: Resource tags.
|
||||
:type tags: dict[str, str]
|
||||
:ivar latency_scorecard_id: The unique identifier of the Latency Scorecard
|
||||
:vartype latency_scorecard_id: str
|
||||
:ivar latency_scorecard_name: The name of the Latency Scorecard
|
||||
:vartype latency_scorecard_name: str
|
||||
:ivar description: The description of the Latency Scorecard
|
||||
:vartype description: str
|
||||
:ivar endpoint_a: The A endpoint in the scorecard
|
||||
:vartype endpoint_a: str
|
||||
:ivar endpoint_b: The B endpoint in the scorecard
|
||||
:vartype endpoint_b: str
|
||||
:ivar start_date_time_utc: The start time of the Latency Scorecard in UTC
|
||||
:vartype start_date_time_utc: datetime
|
||||
:ivar end_date_time_utc: The end time of the Latency Scorecard in UTC
|
||||
:vartype end_date_time_utc: datetime
|
||||
:ivar country: The country associated with the Latency Scorecard. Values
|
||||
are country ISO codes as specified here-
|
||||
https://www.iso.org/iso-3166-country-codes.html
|
||||
:vartype country: str
|
||||
:param latency_metrics: The latency metrics of the Latency Scorecard
|
||||
:type latency_metrics: list[~azure.mgmt.frontdoor.models.LatencyMetric]
|
||||
"""
|
||||
|
||||
_validation = {
|
||||
'id': {'readonly': True},
|
||||
'name': {'readonly': True},
|
||||
'type': {'readonly': True},
|
||||
'latency_scorecard_id': {'readonly': True},
|
||||
'latency_scorecard_name': {'readonly': True},
|
||||
'description': {'readonly': True},
|
||||
'endpoint_a': {'readonly': True},
|
||||
'endpoint_b': {'readonly': True},
|
||||
'start_date_time_utc': {'readonly': True},
|
||||
'end_date_time_utc': {'readonly': True},
|
||||
'country': {'readonly': True},
|
||||
}
|
||||
|
||||
_attribute_map = {
|
||||
'id': {'key': 'id', 'type': 'str'},
|
||||
'name': {'key': 'name', 'type': 'str'},
|
||||
'type': {'key': 'type', 'type': 'str'},
|
||||
'location': {'key': 'location', 'type': 'str'},
|
||||
'tags': {'key': 'tags', 'type': '{str}'},
|
||||
'latency_scorecard_id': {'key': 'properties.id', 'type': 'str'},
|
||||
'latency_scorecard_name': {'key': 'properties.name', 'type': 'str'},
|
||||
'description': {'key': 'properties.description', 'type': 'str'},
|
||||
'endpoint_a': {'key': 'properties.endpointA', 'type': 'str'},
|
||||
'endpoint_b': {'key': 'properties.endpointB', 'type': 'str'},
|
||||
'start_date_time_utc': {'key': 'properties.startDateTimeUTC', 'type': 'iso-8601'},
|
||||
'end_date_time_utc': {'key': 'properties.endDateTimeUTC', 'type': 'iso-8601'},
|
||||
'country': {'key': 'properties.country', 'type': 'str'},
|
||||
'latency_metrics': {'key': 'properties.latencyMetrics', 'type': '[LatencyMetric]'},
|
||||
}
|
||||
|
||||
def __init__(self, **kwargs):
|
||||
super(LatencyScorecard, self).__init__(**kwargs)
|
||||
self.latency_scorecard_id = None
|
||||
self.latency_scorecard_name = None
|
||||
self.description = None
|
||||
self.endpoint_a = None
|
||||
self.endpoint_b = None
|
||||
self.start_date_time_utc = None
|
||||
self.end_date_time_utc = None
|
||||
self.country = None
|
||||
self.latency_metrics = kwargs.get('latency_metrics', None)
|
|
@ -1,94 +0,0 @@
|
|||
# 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 .resource_py3 import Resource
|
||||
|
||||
|
||||
class LatencyScorecard(Resource):
|
||||
"""Defines the LatencyScorecard.
|
||||
|
||||
Variables are only populated by the server, and will be ignored when
|
||||
sending a request.
|
||||
|
||||
:ivar id: Resource ID.
|
||||
:vartype id: str
|
||||
:ivar name: Resource name.
|
||||
:vartype name: str
|
||||
:ivar type: Resource type.
|
||||
:vartype type: str
|
||||
:param location: Resource location.
|
||||
:type location: str
|
||||
:param tags: Resource tags.
|
||||
:type tags: dict[str, str]
|
||||
:ivar latency_scorecard_id: The unique identifier of the Latency Scorecard
|
||||
:vartype latency_scorecard_id: str
|
||||
:ivar latency_scorecard_name: The name of the Latency Scorecard
|
||||
:vartype latency_scorecard_name: str
|
||||
:ivar description: The description of the Latency Scorecard
|
||||
:vartype description: str
|
||||
:ivar endpoint_a: The A endpoint in the scorecard
|
||||
:vartype endpoint_a: str
|
||||
:ivar endpoint_b: The B endpoint in the scorecard
|
||||
:vartype endpoint_b: str
|
||||
:ivar start_date_time_utc: The start time of the Latency Scorecard in UTC
|
||||
:vartype start_date_time_utc: datetime
|
||||
:ivar end_date_time_utc: The end time of the Latency Scorecard in UTC
|
||||
:vartype end_date_time_utc: datetime
|
||||
:ivar country: The country associated with the Latency Scorecard. Values
|
||||
are country ISO codes as specified here-
|
||||
https://www.iso.org/iso-3166-country-codes.html
|
||||
:vartype country: str
|
||||
:param latency_metrics: The latency metrics of the Latency Scorecard
|
||||
:type latency_metrics: list[~azure.mgmt.frontdoor.models.LatencyMetric]
|
||||
"""
|
||||
|
||||
_validation = {
|
||||
'id': {'readonly': True},
|
||||
'name': {'readonly': True},
|
||||
'type': {'readonly': True},
|
||||
'latency_scorecard_id': {'readonly': True},
|
||||
'latency_scorecard_name': {'readonly': True},
|
||||
'description': {'readonly': True},
|
||||
'endpoint_a': {'readonly': True},
|
||||
'endpoint_b': {'readonly': True},
|
||||
'start_date_time_utc': {'readonly': True},
|
||||
'end_date_time_utc': {'readonly': True},
|
||||
'country': {'readonly': True},
|
||||
}
|
||||
|
||||
_attribute_map = {
|
||||
'id': {'key': 'id', 'type': 'str'},
|
||||
'name': {'key': 'name', 'type': 'str'},
|
||||
'type': {'key': 'type', 'type': 'str'},
|
||||
'location': {'key': 'location', 'type': 'str'},
|
||||
'tags': {'key': 'tags', 'type': '{str}'},
|
||||
'latency_scorecard_id': {'key': 'properties.id', 'type': 'str'},
|
||||
'latency_scorecard_name': {'key': 'properties.name', 'type': 'str'},
|
||||
'description': {'key': 'properties.description', 'type': 'str'},
|
||||
'endpoint_a': {'key': 'properties.endpointA', 'type': 'str'},
|
||||
'endpoint_b': {'key': 'properties.endpointB', 'type': 'str'},
|
||||
'start_date_time_utc': {'key': 'properties.startDateTimeUTC', 'type': 'iso-8601'},
|
||||
'end_date_time_utc': {'key': 'properties.endDateTimeUTC', 'type': 'iso-8601'},
|
||||
'country': {'key': 'properties.country', 'type': 'str'},
|
||||
'latency_metrics': {'key': 'properties.latencyMetrics', 'type': '[LatencyMetric]'},
|
||||
}
|
||||
|
||||
def __init__(self, *, location: str=None, tags=None, latency_metrics=None, **kwargs) -> None:
|
||||
super(LatencyScorecard, self).__init__(location=location, tags=tags, **kwargs)
|
||||
self.latency_scorecard_id = None
|
||||
self.latency_scorecard_name = None
|
||||
self.description = None
|
||||
self.endpoint_a = None
|
||||
self.endpoint_b = None
|
||||
self.start_date_time_utc = None
|
||||
self.end_date_time_utc = None
|
||||
self.country = None
|
||||
self.latency_metrics = latency_metrics
|
|
@ -1,43 +0,0 @@
|
|||
# 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 LoadBalancingSettingsListResult(Model):
|
||||
"""Result of the request to list load balancing settings. It contains a list
|
||||
of load balancing settings 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.LoadBalancingSettingsModel]
|
||||
:param next_link: URL to get the next set of LoadBalancingSettings objects
|
||||
if there are any.
|
||||
:type next_link: str
|
||||
"""
|
||||
|
||||
_validation = {
|
||||
'value': {'readonly': True},
|
||||
}
|
||||
|
||||
_attribute_map = {
|
||||
'value': {'key': 'value', 'type': '[LoadBalancingSettingsModel]'},
|
||||
'next_link': {'key': 'nextLink', 'type': 'str'},
|
||||
}
|
||||
|
||||
def __init__(self, **kwargs):
|
||||
super(LoadBalancingSettingsListResult, self).__init__(**kwargs)
|
||||
self.value = None
|
||||
self.next_link = kwargs.get('next_link', None)
|
|
@ -1,43 +0,0 @@
|
|||
# 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 LoadBalancingSettingsListResult(Model):
|
||||
"""Result of the request to list load balancing settings. It contains a list
|
||||
of load balancing settings 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.LoadBalancingSettingsModel]
|
||||
:param next_link: URL to get the next set of LoadBalancingSettings objects
|
||||
if there are any.
|
||||
:type next_link: str
|
||||
"""
|
||||
|
||||
_validation = {
|
||||
'value': {'readonly': True},
|
||||
}
|
||||
|
||||
_attribute_map = {
|
||||
'value': {'key': 'value', 'type': '[LoadBalancingSettingsModel]'},
|
||||
'next_link': {'key': 'nextLink', 'type': 'str'},
|
||||
}
|
||||
|
||||
def __init__(self, *, next_link: str=None, **kwargs) -> None:
|
||||
super(LoadBalancingSettingsListResult, self).__init__(**kwargs)
|
||||
self.value = None
|
||||
self.next_link = next_link
|
|
@ -1,63 +0,0 @@
|
|||
# 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 .sub_resource import SubResource
|
||||
|
||||
|
||||
class LoadBalancingSettingsModel(SubResource):
|
||||
"""Load balancing settings for a backend pool.
|
||||
|
||||
Variables are only populated by the server, and will be ignored when
|
||||
sending a request.
|
||||
|
||||
:param id: Resource ID.
|
||||
:type id: str
|
||||
:param sample_size: The number of samples to consider for load balancing
|
||||
decisions
|
||||
:type sample_size: int
|
||||
:param successful_samples_required: The number of samples within the
|
||||
sample period that must succeed
|
||||
:type successful_samples_required: int
|
||||
:param additional_latency_milliseconds: The additional latency in
|
||||
milliseconds for probes to fall into the lowest latency bucket
|
||||
:type additional_latency_milliseconds: int
|
||||
:param resource_state: Resource status. Possible values include:
|
||||
'Creating', 'Enabling', 'Enabled', 'Disabling', 'Disabled', 'Deleting'
|
||||
:type resource_state: str or
|
||||
~azure.mgmt.frontdoor.models.FrontDoorResourceState
|
||||
:param name: Resource name.
|
||||
:type name: str
|
||||
:ivar type: Resource type.
|
||||
:vartype type: str
|
||||
"""
|
||||
|
||||
_validation = {
|
||||
'type': {'readonly': True},
|
||||
}
|
||||
|
||||
_attribute_map = {
|
||||
'id': {'key': 'id', 'type': 'str'},
|
||||
'sample_size': {'key': 'properties.sampleSize', 'type': 'int'},
|
||||
'successful_samples_required': {'key': 'properties.successfulSamplesRequired', 'type': 'int'},
|
||||
'additional_latency_milliseconds': {'key': 'properties.additionalLatencyMilliseconds', 'type': 'int'},
|
||||
'resource_state': {'key': 'properties.resourceState', 'type': 'str'},
|
||||
'name': {'key': 'name', 'type': 'str'},
|
||||
'type': {'key': 'type', 'type': 'str'},
|
||||
}
|
||||
|
||||
def __init__(self, **kwargs):
|
||||
super(LoadBalancingSettingsModel, self).__init__(**kwargs)
|
||||
self.sample_size = kwargs.get('sample_size', None)
|
||||
self.successful_samples_required = kwargs.get('successful_samples_required', None)
|
||||
self.additional_latency_milliseconds = kwargs.get('additional_latency_milliseconds', None)
|
||||
self.resource_state = kwargs.get('resource_state', None)
|
||||
self.name = kwargs.get('name', None)
|
||||
self.type = None
|
|
@ -1,63 +0,0 @@
|
|||
# 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 .sub_resource_py3 import SubResource
|
||||
|
||||
|
||||
class LoadBalancingSettingsModel(SubResource):
|
||||
"""Load balancing settings for a backend pool.
|
||||
|
||||
Variables are only populated by the server, and will be ignored when
|
||||
sending a request.
|
||||
|
||||
:param id: Resource ID.
|
||||
:type id: str
|
||||
:param sample_size: The number of samples to consider for load balancing
|
||||
decisions
|
||||
:type sample_size: int
|
||||
:param successful_samples_required: The number of samples within the
|
||||
sample period that must succeed
|
||||
:type successful_samples_required: int
|
||||
:param additional_latency_milliseconds: The additional latency in
|
||||
milliseconds for probes to fall into the lowest latency bucket
|
||||
:type additional_latency_milliseconds: int
|
||||
:param resource_state: Resource status. Possible values include:
|
||||
'Creating', 'Enabling', 'Enabled', 'Disabling', 'Disabled', 'Deleting'
|
||||
:type resource_state: str or
|
||||
~azure.mgmt.frontdoor.models.FrontDoorResourceState
|
||||
:param name: Resource name.
|
||||
:type name: str
|
||||
:ivar type: Resource type.
|
||||
:vartype type: str
|
||||
"""
|
||||
|
||||
_validation = {
|
||||
'type': {'readonly': True},
|
||||
}
|
||||
|
||||
_attribute_map = {
|
||||
'id': {'key': 'id', 'type': 'str'},
|
||||
'sample_size': {'key': 'properties.sampleSize', 'type': 'int'},
|
||||
'successful_samples_required': {'key': 'properties.successfulSamplesRequired', 'type': 'int'},
|
||||
'additional_latency_milliseconds': {'key': 'properties.additionalLatencyMilliseconds', 'type': 'int'},
|
||||
'resource_state': {'key': 'properties.resourceState', 'type': 'str'},
|
||||
'name': {'key': 'name', 'type': 'str'},
|
||||
'type': {'key': 'type', 'type': 'str'},
|
||||
}
|
||||
|
||||
def __init__(self, *, id: str=None, sample_size: int=None, successful_samples_required: int=None, additional_latency_milliseconds: int=None, resource_state=None, name: str=None, **kwargs) -> None:
|
||||
super(LoadBalancingSettingsModel, self).__init__(id=id, **kwargs)
|
||||
self.sample_size = sample_size
|
||||
self.successful_samples_required = successful_samples_required
|
||||
self.additional_latency_milliseconds = additional_latency_milliseconds
|
||||
self.resource_state = resource_state
|
||||
self.name = name
|
||||
self.type = None
|
|
@ -1,39 +0,0 @@
|
|||
# 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 LoadBalancingSettingsUpdateParameters(Model):
|
||||
"""Round-Robin load balancing settings for a backend pool.
|
||||
|
||||
:param sample_size: The number of samples to consider for load balancing
|
||||
decisions
|
||||
:type sample_size: int
|
||||
:param successful_samples_required: The number of samples within the
|
||||
sample period that must succeed
|
||||
:type successful_samples_required: int
|
||||
:param additional_latency_milliseconds: The additional latency in
|
||||
milliseconds for probes to fall into the lowest latency bucket
|
||||
:type additional_latency_milliseconds: int
|
||||
"""
|
||||
|
||||
_attribute_map = {
|
||||
'sample_size': {'key': 'sampleSize', 'type': 'int'},
|
||||
'successful_samples_required': {'key': 'successfulSamplesRequired', 'type': 'int'},
|
||||
'additional_latency_milliseconds': {'key': 'additionalLatencyMilliseconds', 'type': 'int'},
|
||||
}
|
||||
|
||||
def __init__(self, **kwargs):
|
||||
super(LoadBalancingSettingsUpdateParameters, self).__init__(**kwargs)
|
||||
self.sample_size = kwargs.get('sample_size', None)
|
||||
self.successful_samples_required = kwargs.get('successful_samples_required', None)
|
||||
self.additional_latency_milliseconds = kwargs.get('additional_latency_milliseconds', None)
|
|
@ -1,39 +0,0 @@
|
|||
# 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 LoadBalancingSettingsUpdateParameters(Model):
|
||||
"""Round-Robin load balancing settings for a backend pool.
|
||||
|
||||
:param sample_size: The number of samples to consider for load balancing
|
||||
decisions
|
||||
:type sample_size: int
|
||||
:param successful_samples_required: The number of samples within the
|
||||
sample period that must succeed
|
||||
:type successful_samples_required: int
|
||||
:param additional_latency_milliseconds: The additional latency in
|
||||
milliseconds for probes to fall into the lowest latency bucket
|
||||
:type additional_latency_milliseconds: int
|
||||
"""
|
||||
|
||||
_attribute_map = {
|
||||
'sample_size': {'key': 'sampleSize', 'type': 'int'},
|
||||
'successful_samples_required': {'key': 'successfulSamplesRequired', 'type': 'int'},
|
||||
'additional_latency_milliseconds': {'key': 'additionalLatencyMilliseconds', 'type': 'int'},
|
||||
}
|
||||
|
||||
def __init__(self, *, sample_size: int=None, successful_samples_required: int=None, additional_latency_milliseconds: int=None, **kwargs) -> None:
|
||||
super(LoadBalancingSettingsUpdateParameters, self).__init__(**kwargs)
|
||||
self.sample_size = sample_size
|
||||
self.successful_samples_required = successful_samples_required
|
||||
self.additional_latency_milliseconds = additional_latency_milliseconds
|
|
@ -1,54 +0,0 @@
|
|||
# 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 ManagedRuleDefinition(Model):
|
||||
"""Describes a managed rule definition.
|
||||
|
||||
Variables are only populated by the server, and will be ignored when
|
||||
sending a request.
|
||||
|
||||
:ivar rule_id: Identifier for the managed rule.
|
||||
:vartype rule_id: str
|
||||
:ivar default_state: Describes the default state for the managed rule.
|
||||
Possible values include: 'Disabled', 'Enabled'
|
||||
:vartype default_state: str or
|
||||
~azure.mgmt.frontdoor.models.ManagedRuleEnabledState
|
||||
:ivar default_action: Describes the default action to be applied when the
|
||||
managed rule matches. Possible values include: 'Allow', 'Block', 'Log',
|
||||
'Redirect'
|
||||
:vartype default_action: str or ~azure.mgmt.frontdoor.models.ActionType
|
||||
:ivar description: Describes the functionality of the managed rule.
|
||||
:vartype description: str
|
||||
"""
|
||||
|
||||
_validation = {
|
||||
'rule_id': {'readonly': True},
|
||||
'default_state': {'readonly': True},
|
||||
'default_action': {'readonly': True},
|
||||
'description': {'readonly': True},
|
||||
}
|
||||
|
||||
_attribute_map = {
|
||||
'rule_id': {'key': 'ruleId', 'type': 'str'},
|
||||
'default_state': {'key': 'defaultState', 'type': 'str'},
|
||||
'default_action': {'key': 'defaultAction', 'type': 'str'},
|
||||
'description': {'key': 'description', 'type': 'str'},
|
||||
}
|
||||
|
||||
def __init__(self, **kwargs):
|
||||
super(ManagedRuleDefinition, self).__init__(**kwargs)
|
||||
self.rule_id = None
|
||||
self.default_state = None
|
||||
self.default_action = None
|
||||
self.description = None
|
|
@ -1,54 +0,0 @@
|
|||
# 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 ManagedRuleDefinition(Model):
|
||||
"""Describes a managed rule definition.
|
||||
|
||||
Variables are only populated by the server, and will be ignored when
|
||||
sending a request.
|
||||
|
||||
:ivar rule_id: Identifier for the managed rule.
|
||||
:vartype rule_id: str
|
||||
:ivar default_state: Describes the default state for the managed rule.
|
||||
Possible values include: 'Disabled', 'Enabled'
|
||||
:vartype default_state: str or
|
||||
~azure.mgmt.frontdoor.models.ManagedRuleEnabledState
|
||||
:ivar default_action: Describes the default action to be applied when the
|
||||
managed rule matches. Possible values include: 'Allow', 'Block', 'Log',
|
||||
'Redirect'
|
||||
:vartype default_action: str or ~azure.mgmt.frontdoor.models.ActionType
|
||||
:ivar description: Describes the functionality of the managed rule.
|
||||
:vartype description: str
|
||||
"""
|
||||
|
||||
_validation = {
|
||||
'rule_id': {'readonly': True},
|
||||
'default_state': {'readonly': True},
|
||||
'default_action': {'readonly': True},
|
||||
'description': {'readonly': True},
|
||||
}
|
||||
|
||||
_attribute_map = {
|
||||
'rule_id': {'key': 'ruleId', 'type': 'str'},
|
||||
'default_state': {'key': 'defaultState', 'type': 'str'},
|
||||
'default_action': {'key': 'defaultAction', 'type': 'str'},
|
||||
'description': {'key': 'description', 'type': 'str'},
|
||||
}
|
||||
|
||||
def __init__(self, **kwargs) -> None:
|
||||
super(ManagedRuleDefinition, self).__init__(**kwargs)
|
||||
self.rule_id = None
|
||||
self.default_state = None
|
||||
self.default_action = None
|
||||
self.description = None
|
|
@ -1,52 +0,0 @@
|
|||
# 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 ManagedRuleExclusion(Model):
|
||||
"""Exclude variables from managed rule evaluation.
|
||||
|
||||
All required parameters must be populated in order to send to Azure.
|
||||
|
||||
:param match_variable: Required. The variable type to be excluded.
|
||||
Possible values include: 'RequestHeaderNames', 'RequestCookieNames',
|
||||
'QueryStringArgNames', 'RequestBodyPostArgNames'
|
||||
:type match_variable: str or
|
||||
~azure.mgmt.frontdoor.models.ManagedRuleExclusionMatchVariable
|
||||
:param selector_match_operator: Required. Comparison operator to apply to
|
||||
the selector when specifying which elements in the collection this
|
||||
exclusion applies to. Possible values include: 'Equals', 'Contains',
|
||||
'StartsWith', 'EndsWith', 'EqualsAny'
|
||||
:type selector_match_operator: str or
|
||||
~azure.mgmt.frontdoor.models.ManagedRuleExclusionSelectorMatchOperator
|
||||
:param selector: Required. Selector value for which elements in the
|
||||
collection this exclusion applies to.
|
||||
:type selector: str
|
||||
"""
|
||||
|
||||
_validation = {
|
||||
'match_variable': {'required': True},
|
||||
'selector_match_operator': {'required': True},
|
||||
'selector': {'required': True},
|
||||
}
|
||||
|
||||
_attribute_map = {
|
||||
'match_variable': {'key': 'matchVariable', 'type': 'str'},
|
||||
'selector_match_operator': {'key': 'selectorMatchOperator', 'type': 'str'},
|
||||
'selector': {'key': 'selector', 'type': 'str'},
|
||||
}
|
||||
|
||||
def __init__(self, **kwargs):
|
||||
super(ManagedRuleExclusion, self).__init__(**kwargs)
|
||||
self.match_variable = kwargs.get('match_variable', None)
|
||||
self.selector_match_operator = kwargs.get('selector_match_operator', None)
|
||||
self.selector = kwargs.get('selector', None)
|
Некоторые файлы не были показаны из-за слишком большого количества измененных файлов Показать больше
Загрузка…
Ссылка в новой задаче