Skip to content

Commit

Permalink
Generated from b90b1c367459cd32fc49a26daf13ff8f46ad79fa (#7760)
Browse files Browse the repository at this point in the history
chore: jsonfmt frontdoor
  • Loading branch information
AutorestCI authored Oct 10, 2019
1 parent 30829aa commit c4d3dbc
Show file tree
Hide file tree
Showing 30 changed files with 2,757 additions and 30 deletions.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,23 @@
# --------------------------------------------------------------------------

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
Expand All @@ -22,7 +39,6 @@
from .front_door_update_parameters_py3 import FrontDoorUpdateParameters
from .purge_parameters_py3 import PurgeParameters
from .routing_rule_list_result_py3 import RoutingRuleListResult
from .sub_resource_py3 import SubResource
from .route_configuration_py3 import RouteConfiguration
from .routing_rule_update_parameters_py3 import RoutingRuleUpdateParameters
from .cache_configuration_py3 import CacheConfiguration
Expand All @@ -39,14 +55,8 @@
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 .error_response_py3 import ErrorResponse, ErrorResponseException
from .check_name_availability_input_py3 import CheckNameAvailabilityInput
from .check_name_availability_output_py3 import CheckNameAvailabilityOutput
from .resource_py3 import Resource
from .error_details_py3 import ErrorDetails
from .error_py3 import Error
from .azure_async_operation_result_py3 import AzureAsyncOperationResult
from .tags_object_py3 import TagsObject
from .policy_settings_py3 import PolicySettings
from .match_condition_py3 import MatchCondition
from .custom_rule_py3 import CustomRule
Expand All @@ -62,6 +72,23 @@
from .managed_rule_group_definition_py3 import ManagedRuleGroupDefinition
from .managed_rule_set_definition_py3 import ManagedRuleSetDefinition
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
Expand All @@ -74,7 +101,6 @@
from .front_door_update_parameters import FrontDoorUpdateParameters
from .purge_parameters import PurgeParameters
from .routing_rule_list_result import RoutingRuleListResult
from .sub_resource import SubResource
from .route_configuration import RouteConfiguration
from .routing_rule_update_parameters import RoutingRuleUpdateParameters
from .cache_configuration import CacheConfiguration
Expand All @@ -91,14 +117,8 @@
from .frontend_endpoint_update_parameters import FrontendEndpointUpdateParameters
from .validate_custom_domain_input import ValidateCustomDomainInput
from .validate_custom_domain_output import ValidateCustomDomainOutput
from .error_response import ErrorResponse, ErrorResponseException
from .check_name_availability_input import CheckNameAvailabilityInput
from .check_name_availability_output import CheckNameAvailabilityOutput
from .resource import Resource
from .error_details import ErrorDetails
from .error import Error
from .azure_async_operation_result import AzureAsyncOperationResult
from .tags_object import TagsObject
from .policy_settings import PolicySettings
from .match_condition import MatchCondition
from .custom_rule import CustomRule
Expand All @@ -113,11 +133,20 @@
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 (
NetworkOperationStatus,
NetworkExperimentResourceState,
State,
AggregationInterval,
TimeseriesType,
EndpointType,
FrontDoorResourceState,
CustomHttpsProvisioningState,
CustomHttpsProvisioningSubstate,
Expand All @@ -139,7 +168,6 @@
SessionAffinityEnabledState,
ResourceType,
Availability,
NetworkOperationStatus,
PolicyEnabledState,
PolicyMode,
CustomRuleEnabledState,
Expand All @@ -152,9 +180,28 @@
ManagedRuleExclusionSelectorMatchOperator,
ManagedRuleEnabledState,
PolicyResourceState,
LatencyScorecardAggregationInterval,
TimeseriesAggregationInterval,
)

__all__ = [
'ErrorDetails',
'Error',
'AzureAsyncOperationResult',
'Resource',
'SubResource',
'TagsObject',
'Profile',
'Endpoint',
'ProfileUpdateModel',
'ExperimentUpdateModel',
'Experiment',
'LatencyMetric',
'LatencyScorecard',
'TimeseriesDataPoint',
'Timeseries',
'PreconfiguredEndpoint',
'ErrorResponse', 'ErrorResponseException',
'FrontDoor',
'RoutingRule',
'LoadBalancingSettingsModel',
Expand All @@ -167,7 +214,6 @@
'FrontDoorUpdateParameters',
'PurgeParameters',
'RoutingRuleListResult',
'SubResource',
'RouteConfiguration',
'RoutingRuleUpdateParameters',
'CacheConfiguration',
Expand All @@ -184,14 +230,8 @@
'FrontendEndpointUpdateParameters',
'ValidateCustomDomainInput',
'ValidateCustomDomainOutput',
'ErrorResponse', 'ErrorResponseException',
'CheckNameAvailabilityInput',
'CheckNameAvailabilityOutput',
'Resource',
'ErrorDetails',
'Error',
'AzureAsyncOperationResult',
'TagsObject',
'PolicySettings',
'MatchCondition',
'CustomRule',
Expand All @@ -206,10 +246,19 @@
'ManagedRuleDefinition',
'ManagedRuleGroupDefinition',
'ManagedRuleSetDefinition',
'ProfilePaged',
'PreconfiguredEndpointPaged',
'ExperimentPaged',
'FrontDoorPaged',
'FrontendEndpointPaged',
'WebApplicationFirewallPolicyPaged',
'ManagedRuleSetDefinitionPaged',
'NetworkOperationStatus',
'NetworkExperimentResourceState',
'State',
'AggregationInterval',
'TimeseriesType',
'EndpointType',
'FrontDoorResourceState',
'CustomHttpsProvisioningState',
'CustomHttpsProvisioningSubstate',
Expand All @@ -231,7 +280,6 @@
'SessionAffinityEnabledState',
'ResourceType',
'Availability',
'NetworkOperationStatus',
'PolicyEnabledState',
'PolicyMode',
'CustomRuleEnabledState',
Expand All @@ -244,4 +292,6 @@
'ManagedRuleExclusionSelectorMatchOperator',
'ManagedRuleEnabledState',
'PolicyResourceState',
'LatencyScorecardAggregationInterval',
'TimeseriesAggregationInterval',
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------

from msrest.serialization import Model


class 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)
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------

from msrest.serialization import Model


class 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
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
# 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
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# 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)
Loading

0 comments on commit c4d3dbc

Please sign in to comment.