Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

[ReleasePR azure-mgmt-frontdoor] Update modelAsString to true for Frondoor APIs 2020-01-01 and 2020-05-01 #11314

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

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 11 additions & 19 deletions sdk/network/azure-mgmt-frontdoor/README.md
Original file line number Diff line number Diff line change
@@ -1,29 +1,21 @@
## Microsoft Azure SDK for Python
# Microsoft Azure SDK for Python

This is the Microsoft Azure Front Door Service Client Library.
This package has been tested with Python 2.7, 3.5, 3.6, 3.7 and 3.8.
For a more complete view of Azure libraries, see the [Github repo](https://github.com/Azure/azure-sdk-for-python/)

Azure Resource Manager (ARM) is the next generation of management APIs
that replace the old Azure Service Management (ASM).

This package has been tested with Python 2.7, 3.5, 3.6 and 3.7.
# Usage

For the older Azure Service Management (ASM) libraries, see
[azure-servicemanagement-legacy](https://pypi.python.org/pypi/azure-servicemanagement-legacy)
library.
For code examples, see [Front Door Service](https://docs.microsoft.com/python/api/overview/azure/)
on docs.microsoft.com.

For a more complete set of Azure libraries, see the
[azure](https://pypi.python.org/pypi/azure) bundle package.

## Usage
# Provide Feedback

For code examples, see [Front Door
Service](https://docs.microsoft.com/python/api/overview/azure/) on
docs.microsoft.com.

## Provide Feedback

If you encounter any bugs or have suggestions, please file an issue in
the [Issues](https://github.com/Azure/azure-sdk-for-python/issues)
If you encounter any bugs or have suggestions, please file an issue in the
[Issues](https://github.com/Azure/azure-sdk-for-python/issues)
section of the project.

![image](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-python%2Fazure-mgmt-frontdoor%2FREADME.png)

![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-python%2Fazure-mgmt-frontdoor%2FREADME.png)
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 @@ -64,6 +65,11 @@
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
Expand Down Expand Up @@ -97,6 +103,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 @@ -126,6 +133,11 @@
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
Expand All @@ -139,6 +151,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,10 +175,16 @@
DynamicCompressionEnabled,
FrontDoorRedirectType,
FrontDoorRedirectProtocol,
PrivateEndpointStatus,
BackendEnabledState,
FrontDoorHealthProbeMethod,
HealthProbeEnabled,
SessionAffinityEnabledState,
HeaderActionType,
RulesEngineMatchVariable,
RulesEngineOperator,
Transform,
MatchProcessingBehavior,
ResourceType,
Availability,
PolicyEnabledState,
Expand Down Expand Up @@ -210,6 +229,7 @@
'FrontendEndpointLink',
'FrontendEndpointUpdateParameters',
'FrontendEndpointUpdateParametersWebApplicationFirewallPolicyLink',
'HeaderAction',
'HealthProbeSettingsListResult',
'HealthProbeSettingsModel',
'HealthProbeSettingsUpdateParameters',
Expand Down Expand Up @@ -239,6 +259,11 @@
'RoutingRule',
'RoutingRuleListResult',
'RoutingRuleUpdateParameters',
'RulesEngine',
'RulesEngineAction',
'RulesEngineMatchCondition',
'RulesEngineRule',
'RulesEngineUpdateParameters',
'SubResource',
'TagsObject',
'Timeseries',
Expand All @@ -251,6 +276,7 @@
'ExperimentPaged',
'FrontDoorPaged',
'FrontendEndpointPaged',
'RulesEnginePaged',
'WebApplicationFirewallPolicyPaged',
'ManagedRuleSetDefinitionPaged',
'NetworkOperationStatus',
Expand All @@ -274,10 +300,16 @@
'DynamicCompressionEnabled',
'FrontDoorRedirectType',
'FrontDoorRedirectProtocol',
'PrivateEndpointStatus',
'BackendEnabledState',
'FrontDoorHealthProbeMethod',
'HealthProbeEnabled',
'SessionAffinityEnabledState',
'HeaderActionType',
'RulesEngineMatchVariable',
'RulesEngineOperator',
'Transform',
'MatchProcessingBehavior',
'ResourceType',
'Availability',
'PolicyEnabledState',
Expand Down
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 Down
Loading