Skip to content

Commit

Permalink
CodeGen from PR 12391 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Merge 02966b2b37af93259a7d4a28eb912db59865f89d into 8a09ea0
  • Loading branch information
SDKAuto committed Jan 12, 2021
1 parent 6f142b0 commit e14fcc2
Show file tree
Hide file tree
Showing 16 changed files with 1,566 additions and 179 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,20 +13,22 @@
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 FrontDoorNameAvailabilityOperations
from .operations import FrontDoorNameAvailabilityWithSubscriptionOperations
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):
class FrontDoorManagementClient(SDKClient):
"""FrontDoor Client
:ivar config: Configuration for client.
Expand All @@ -40,12 +42,18 @@ class FrontDoorManagementClient(FrontDoorManagementClientOperationsMixin, SDKCli
:vartype experiments: azure.mgmt.frontdoor.operations.ExperimentsOperations
:ivar reports: Reports operations
:vartype reports: azure.mgmt.frontdoor.operations.ReportsOperations
:ivar front_door_name_availability: FrontDoorNameAvailability operations
:vartype front_door_name_availability: azure.mgmt.frontdoor.operations.FrontDoorNameAvailabilityOperations
:ivar front_door_name_availability_with_subscription: FrontDoorNameAvailabilityWithSubscription operations
:vartype front_door_name_availability_with_subscription: azure.mgmt.frontdoor.operations.FrontDoorNameAvailabilityWithSubscriptionOperations
: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
Expand Down Expand Up @@ -79,12 +87,18 @@ def __init__(
self._client, self.config, self._serialize, self._deserialize)
self.reports = ReportsOperations(
self._client, self.config, self._serialize, self._deserialize)
self.front_door_name_availability = FrontDoorNameAvailabilityOperations(
self._client, self.config, self._serialize, self._deserialize)
self.front_door_name_availability_with_subscription = FrontDoorNameAvailabilityWithSubscriptionOperations(
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(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
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
Expand Down Expand Up @@ -62,8 +63,16 @@
from ._models_py3 import Resource
from ._models_py3 import RouteConfiguration
from ._models_py3 import RoutingRule
from ._models_py3 import RoutingRuleLink
from ._models_py3 import RoutingRuleListResult
from ._models_py3 import RoutingRuleUpdateParameters
from ._models_py3 import RoutingRuleUpdateParametersWebApplicationFirewallPolicyLink
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 Sku
from ._models_py3 import SubResource
from ._models_py3 import TagsObject
from ._models_py3 import Timeseries
Expand Down Expand Up @@ -97,6 +106,7 @@
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
Expand Down Expand Up @@ -124,8 +134,16 @@
from ._models import Resource
from ._models import RouteConfiguration
from ._models import RoutingRule
from ._models import RoutingRuleLink
from ._models import RoutingRuleListResult
from ._models import RoutingRuleUpdateParameters
from ._models import RoutingRuleUpdateParametersWebApplicationFirewallPolicyLink
from ._models import RulesEngine
from ._models import RulesEngineAction
from ._models import RulesEngineMatchCondition
from ._models import RulesEngineRule
from ._models import RulesEngineUpdateParameters
from ._models import Sku
from ._models import SubResource
from ._models import TagsObject
from ._models import Timeseries
Expand All @@ -139,6 +157,7 @@
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,
Expand All @@ -162,24 +181,33 @@
DynamicCompressionEnabled,
FrontDoorRedirectType,
FrontDoorRedirectProtocol,
PrivateEndpointStatus,
BackendEnabledState,
FrontDoorHealthProbeMethod,
HealthProbeEnabled,
SessionAffinityEnabledState,
HeaderActionType,
RulesEngineMatchVariable,
RulesEngineOperator,
Transform,
MatchProcessingBehavior,
ResourceType,
Availability,
PolicyEnabledState,
PolicyMode,
PolicyRequestBodyCheck,
CustomRuleEnabledState,
RuleType,
MatchVariable,
Operator,
TransformType,
ActionType,
ManagedRuleSetActionType,
ManagedRuleExclusionMatchVariable,
ManagedRuleExclusionSelectorMatchOperator,
ManagedRuleEnabledState,
PolicyResourceState,
SkuName,
LatencyScorecardAggregationInterval,
TimeseriesAggregationInterval,
)
Expand Down Expand Up @@ -210,6 +238,7 @@
'FrontendEndpointLink',
'FrontendEndpointUpdateParameters',
'FrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink',
'HeaderAction',
'HealthProbeSettingsListResult',
'HealthProbeSettingsModel',
'HealthProbeSettingsUpdateParameters',
Expand Down Expand Up @@ -237,8 +266,16 @@
'Resource',
'RouteConfiguration',
'RoutingRule',
'RoutingRuleLink',
'RoutingRuleListResult',
'RoutingRuleUpdateParameters',
'RoutingRuleUpdateParametersWebApplicationFirewallPolicyLink',
'RulesEngine',
'RulesEngineAction',
'RulesEngineMatchCondition',
'RulesEngineRule',
'RulesEngineUpdateParameters',
'Sku',
'SubResource',
'TagsObject',
'Timeseries',
Expand All @@ -251,6 +288,7 @@
'ExperimentPaged',
'FrontDoorPaged',
'FrontendEndpointPaged',
'RulesEnginePaged',
'WebApplicationFirewallPolicyPaged',
'ManagedRuleSetDefinitionPaged',
'NetworkOperationStatus',
Expand All @@ -274,24 +312,33 @@
'DynamicCompressionEnabled',
'FrontDoorRedirectType',
'FrontDoorRedirectProtocol',
'PrivateEndpointStatus',
'BackendEnabledState',
'FrontDoorHealthProbeMethod',
'HealthProbeEnabled',
'SessionAffinityEnabledState',
'HeaderActionType',
'RulesEngineMatchVariable',
'RulesEngineOperator',
'Transform',
'MatchProcessingBehavior',
'ResourceType',
'Availability',
'PolicyEnabledState',
'PolicyMode',
'PolicyRequestBodyCheck',
'CustomRuleEnabledState',
'RuleType',
'MatchVariable',
'Operator',
'TransformType',
'ActionType',
'ManagedRuleSetActionType',
'ManagedRuleExclusionMatchVariable',
'ManagedRuleExclusionSelectorMatchOperator',
'ManagedRuleEnabledState',
'PolicyResourceState',
'SkuName',
'LatencyScorecardAggregationInterval',
'TimeseriesAggregationInterval',
]
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand All @@ -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"
Expand All @@ -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"
Expand All @@ -213,6 +278,12 @@ class PolicyMode(str, Enum):
detection = "Detection"


class PolicyRequestBodyCheck(str, Enum):

disabled = "Disabled"
enabled = "Enabled"


class CustomRuleEnabledState(str, Enum):

disabled = "Disabled"
Expand Down Expand Up @@ -272,6 +343,13 @@ class ActionType(str, Enum):
redirect = "Redirect"


class ManagedRuleSetActionType(str, Enum):

block = "Block"
log = "Log"
redirect = "Redirect"


class ManagedRuleExclusionMatchVariable(str, Enum):

request_header_names = "RequestHeaderNames"
Expand Down Expand Up @@ -305,6 +383,13 @@ class PolicyResourceState(str, Enum):
deleting = "Deleting"


class SkuName(str, Enum):

classic_azure_front_door = "Classic_AzureFrontDoor"
standard_azure_front_door = "Standard_AzureFrontDoor"
premium_azure_front_door = "Premium_AzureFrontDoor"


class LatencyScorecardAggregationInterval(str, Enum):

daily = "Daily"
Expand Down
Loading

0 comments on commit e14fcc2

Please sign in to comment.