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

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,13 @@

try:
from .delete_operation_result_py3 import DeleteOperationResult
from .endpoint_properties_subnets_item_py3 import EndpointPropertiesSubnetsItem
from .endpoint_properties_custom_headers_item_py3 import EndpointPropertiesCustomHeadersItem
from .heat_map_endpoint_py3 import HeatMapEndpoint
from .query_experience_py3 import QueryExperience
from .traffic_flow_py3 import TrafficFlow
from .heat_map_model_py3 import HeatMapModel
from .user_metrics_model_py3 import UserMetricsModel
from .endpoint_py3 import Endpoint
from .check_traffic_manager_relative_dns_name_availability_parameters_py3 import CheckTrafficManagerRelativeDnsNameAvailabilityParameters
from .dns_config_py3 import DnsConfig
Expand All @@ -31,11 +33,13 @@
from .proxy_resource_py3 import ProxyResource
except (SyntaxError, ImportError):
from .delete_operation_result import DeleteOperationResult
from .endpoint_properties_subnets_item import EndpointPropertiesSubnetsItem
from .endpoint_properties_custom_headers_item import EndpointPropertiesCustomHeadersItem
from .heat_map_endpoint import HeatMapEndpoint
from .query_experience import QueryExperience
from .traffic_flow import TrafficFlow
from .heat_map_model import HeatMapModel
from .user_metrics_model import UserMetricsModel
from .endpoint import Endpoint
from .check_traffic_manager_relative_dns_name_availability_parameters import CheckTrafficManagerRelativeDnsNameAvailabilityParameters
from .dns_config import DnsConfig
Expand All @@ -62,11 +66,13 @@

__all__ = [
'DeleteOperationResult',
'EndpointPropertiesSubnetsItem',
'EndpointPropertiesCustomHeadersItem',
'HeatMapEndpoint',
'QueryExperience',
'TrafficFlow',
'HeatMapModel',
'UserMetricsModel',
'Endpoint',
'CheckTrafficManagerRelativeDnsNameAvailabilityParameters',
'DnsConfig',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,17 @@
class Endpoint(ProxyResource):
"""Class representing a Traffic Manager endpoint.

:param id: Fully qualified resource Id for the resource. Ex -
Variables are only populated by the server, and will be ignored when
sending a request.

:ivar id: Fully qualified resource Id for the resource. Ex -
/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/trafficManagerProfiles/{resourceName}
:type id: str
:param name: The name of the resource
:type name: str
:param type: The type of the resource. Ex-
:vartype id: str
:ivar name: The name of the resource
:vartype name: str
:ivar type: The type of the resource. Ex-
Microsoft.Network/trafficmanagerProfiles.
:type type: str
:vartype type: str
:param target_resource_id: The Azure Resource URI of the of the endpoint.
Not applicable to endpoints of type 'ExternalEndpoints'.
:type target_resource_id: str
Expand All @@ -38,14 +41,14 @@ class Endpoint(ProxyResource):
:param weight: The weight of this endpoint when using the 'Weighted'
traffic routing method. Possible values are from 1 to 1000.
:type weight: long
:param priority: The priority of this endpoint when using the Priority
:param priority: The priority of this endpoint when using the 'Priority'
traffic routing method. Possible values are from 1 to 1000, lower values
represent higher priority. This is an optional parameter. If specified,
it must be specified on all endpoints, and no two endpoints can share the
same priority value.
:type priority: long
:param endpoint_location: Specifies the location of the external or nested
endpoints when using the Performance traffic routing method.
endpoints when using the 'Performance' traffic routing method.
:type endpoint_location: str
:param endpoint_monitor_status: The monitoring status of the endpoint.
Possible values include: 'CheckingEndpoint', 'Online', 'Degraded',
Expand All @@ -58,14 +61,25 @@ class Endpoint(ProxyResource):
'NestedEndpoints'.
:type min_child_endpoints: long
:param geo_mapping: The list of countries/regions mapped to this endpoint
when using the Geographic traffic routing method. Please consult Traffic
when using the 'Geographic' traffic routing method. Please consult Traffic
Manager Geographic documentation for a full list of accepted values.
:type geo_mapping: list[str]
:param subnets: The list of subnets, IP addresses, and/or address ranges
mapped to this endpoint when using the 'Subnet' traffic routing method. An
empty list will match all ranges not covered by other endpoints.
:type subnets:
list[~azure.mgmt.trafficmanager.models.EndpointPropertiesSubnetsItem]
:param custom_headers: List of custom headers.
:type custom_headers:
list[~azure.mgmt.trafficmanager.models.EndpointPropertiesCustomHeadersItem]
"""

_validation = {
'id': {'readonly': True},
'name': {'readonly': True},
'type': {'readonly': True},
}

_attribute_map = {
'id': {'key': 'id', 'type': 'str'},
'name': {'key': 'name', 'type': 'str'},
Expand All @@ -79,6 +93,7 @@ class Endpoint(ProxyResource):
'endpoint_monitor_status': {'key': 'properties.endpointMonitorStatus', 'type': 'str'},
'min_child_endpoints': {'key': 'properties.minChildEndpoints', 'type': 'long'},
'geo_mapping': {'key': 'properties.geoMapping', 'type': '[str]'},
'subnets': {'key': 'properties.subnets', 'type': '[EndpointPropertiesSubnetsItem]'},
'custom_headers': {'key': 'properties.customHeaders', 'type': '[EndpointPropertiesCustomHeadersItem]'},
}

Expand All @@ -93,4 +108,5 @@ def __init__(self, **kwargs):
self.endpoint_monitor_status = kwargs.get('endpoint_monitor_status', None)
self.min_child_endpoints = kwargs.get('min_child_endpoints', None)
self.geo_mapping = kwargs.get('geo_mapping', None)
self.subnets = kwargs.get('subnets', None)
self.custom_headers = kwargs.get('custom_headers', None)
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# 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 EndpointPropertiesSubnetsItem(Model):
"""Subnet first address, scope, and/or last address.

:param first: First address in the subnet.
:type first: str
:param last: Last address in the subnet.
:type last: str
:param scope: Block size (number of leading bits in the subnet mask).
:type scope: int
"""

_attribute_map = {
'first': {'key': 'first', 'type': 'str'},
'last': {'key': 'last', 'type': 'str'},
'scope': {'key': 'scope', 'type': 'int'},
}

def __init__(self, **kwargs):
super(EndpointPropertiesSubnetsItem, self).__init__(**kwargs)
self.first = kwargs.get('first', None)
self.last = kwargs.get('last', None)
self.scope = kwargs.get('scope', None)
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# 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 EndpointPropertiesSubnetsItem(Model):
"""Subnet first address, scope, and/or last address.

:param first: First address in the subnet.
:type first: str
:param last: Last address in the subnet.
:type last: str
:param scope: Block size (number of leading bits in the subnet mask).
:type scope: int
"""

_attribute_map = {
'first': {'key': 'first', 'type': 'str'},
'last': {'key': 'last', 'type': 'str'},
'scope': {'key': 'scope', 'type': 'int'},
}

def __init__(self, *, first: str=None, last: str=None, scope: int=None, **kwargs) -> None:
super(EndpointPropertiesSubnetsItem, self).__init__(**kwargs)
self.first = first
self.last = last
self.scope = scope
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,17 @@
class Endpoint(ProxyResource):
"""Class representing a Traffic Manager endpoint.

:param id: Fully qualified resource Id for the resource. Ex -
Variables are only populated by the server, and will be ignored when
sending a request.

:ivar id: Fully qualified resource Id for the resource. Ex -
/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/trafficManagerProfiles/{resourceName}
:type id: str
:param name: The name of the resource
:type name: str
:param type: The type of the resource. Ex-
:vartype id: str
:ivar name: The name of the resource
:vartype name: str
:ivar type: The type of the resource. Ex-
Microsoft.Network/trafficmanagerProfiles.
:type type: str
:vartype type: str
:param target_resource_id: The Azure Resource URI of the of the endpoint.
Not applicable to endpoints of type 'ExternalEndpoints'.
:type target_resource_id: str
Expand All @@ -38,14 +41,14 @@ class Endpoint(ProxyResource):
:param weight: The weight of this endpoint when using the 'Weighted'
traffic routing method. Possible values are from 1 to 1000.
:type weight: long
:param priority: The priority of this endpoint when using the Priority
:param priority: The priority of this endpoint when using the 'Priority'
traffic routing method. Possible values are from 1 to 1000, lower values
represent higher priority. This is an optional parameter. If specified,
it must be specified on all endpoints, and no two endpoints can share the
same priority value.
:type priority: long
:param endpoint_location: Specifies the location of the external or nested
endpoints when using the Performance traffic routing method.
endpoints when using the 'Performance' traffic routing method.
:type endpoint_location: str
:param endpoint_monitor_status: The monitoring status of the endpoint.
Possible values include: 'CheckingEndpoint', 'Online', 'Degraded',
Expand All @@ -58,14 +61,25 @@ class Endpoint(ProxyResource):
'NestedEndpoints'.
:type min_child_endpoints: long
:param geo_mapping: The list of countries/regions mapped to this endpoint
when using the Geographic traffic routing method. Please consult Traffic
when using the 'Geographic' traffic routing method. Please consult Traffic
Manager Geographic documentation for a full list of accepted values.
:type geo_mapping: list[str]
:param subnets: The list of subnets, IP addresses, and/or address ranges
mapped to this endpoint when using the 'Subnet' traffic routing method. An
empty list will match all ranges not covered by other endpoints.
:type subnets:
list[~azure.mgmt.trafficmanager.models.EndpointPropertiesSubnetsItem]
:param custom_headers: List of custom headers.
:type custom_headers:
list[~azure.mgmt.trafficmanager.models.EndpointPropertiesCustomHeadersItem]
"""

_validation = {
'id': {'readonly': True},
'name': {'readonly': True},
'type': {'readonly': True},
}

_attribute_map = {
'id': {'key': 'id', 'type': 'str'},
'name': {'key': 'name', 'type': 'str'},
Expand All @@ -79,11 +93,12 @@ class Endpoint(ProxyResource):
'endpoint_monitor_status': {'key': 'properties.endpointMonitorStatus', 'type': 'str'},
'min_child_endpoints': {'key': 'properties.minChildEndpoints', 'type': 'long'},
'geo_mapping': {'key': 'properties.geoMapping', 'type': '[str]'},
'subnets': {'key': 'properties.subnets', 'type': '[EndpointPropertiesSubnetsItem]'},
'custom_headers': {'key': 'properties.customHeaders', 'type': '[EndpointPropertiesCustomHeadersItem]'},
}

def __init__(self, *, id: str=None, name: str=None, type: str=None, target_resource_id: str=None, target: str=None, endpoint_status=None, weight: int=None, priority: int=None, endpoint_location: str=None, endpoint_monitor_status=None, min_child_endpoints: int=None, geo_mapping=None, custom_headers=None, **kwargs) -> None:
super(Endpoint, self).__init__(id=id, name=name, type=type, **kwargs)
def __init__(self, *, target_resource_id: str=None, target: str=None, endpoint_status=None, weight: int=None, priority: int=None, endpoint_location: str=None, endpoint_monitor_status=None, min_child_endpoints: int=None, geo_mapping=None, subnets=None, custom_headers=None, **kwargs) -> None:
super(Endpoint, self).__init__(**kwargs)
self.target_resource_id = target_resource_id
self.target = target
self.endpoint_status = endpoint_status
Expand All @@ -93,4 +108,5 @@ def __init__(self, *, id: str=None, name: str=None, type: str=None, target_resou
self.endpoint_monitor_status = endpoint_monitor_status
self.min_child_endpoints = min_child_endpoints
self.geo_mapping = geo_mapping
self.subnets = subnets
self.custom_headers = custom_headers
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,17 @@
class HeatMapModel(ProxyResource):
"""Class representing a Traffic Manager HeatMap.

:param id: Fully qualified resource Id for the resource. Ex -
Variables are only populated by the server, and will be ignored when
sending a request.

:ivar id: Fully qualified resource Id for the resource. Ex -
/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/trafficManagerProfiles/{resourceName}
:type id: str
:param name: The name of the resource
:type name: str
:param type: The type of the resource. Ex-
:vartype id: str
:ivar name: The name of the resource
:vartype name: str
:ivar type: The type of the resource. Ex-
Microsoft.Network/trafficmanagerProfiles.
:type type: str
:vartype type: str
:param start_time: The beginning of the time window for this HeatMap,
inclusive.
:type start_time: datetime
Expand All @@ -36,6 +39,12 @@ class HeatMapModel(ProxyResource):
:type traffic_flows: list[~azure.mgmt.trafficmanager.models.TrafficFlow]
"""

_validation = {
'id': {'readonly': True},
'name': {'readonly': True},
'type': {'readonly': True},
}

_attribute_map = {
'id': {'key': 'id', 'type': 'str'},
'name': {'key': 'name', 'type': 'str'},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,17 @@
class HeatMapModel(ProxyResource):
"""Class representing a Traffic Manager HeatMap.

:param id: Fully qualified resource Id for the resource. Ex -
Variables are only populated by the server, and will be ignored when
sending a request.

:ivar id: Fully qualified resource Id for the resource. Ex -
/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/trafficManagerProfiles/{resourceName}
:type id: str
:param name: The name of the resource
:type name: str
:param type: The type of the resource. Ex-
:vartype id: str
:ivar name: The name of the resource
:vartype name: str
:ivar type: The type of the resource. Ex-
Microsoft.Network/trafficmanagerProfiles.
:type type: str
:vartype type: str
:param start_time: The beginning of the time window for this HeatMap,
inclusive.
:type start_time: datetime
Expand All @@ -36,6 +39,12 @@ class HeatMapModel(ProxyResource):
:type traffic_flows: list[~azure.mgmt.trafficmanager.models.TrafficFlow]
"""

_validation = {
'id': {'readonly': True},
'name': {'readonly': True},
'type': {'readonly': True},
}

_attribute_map = {
'id': {'key': 'id', 'type': 'str'},
'name': {'key': 'name', 'type': 'str'},
Expand All @@ -46,8 +55,8 @@ class HeatMapModel(ProxyResource):
'traffic_flows': {'key': 'properties.trafficFlows', 'type': '[TrafficFlow]'},
}

def __init__(self, *, id: str=None, name: str=None, type: str=None, start_time=None, end_time=None, endpoints=None, traffic_flows=None, **kwargs) -> None:
super(HeatMapModel, self).__init__(id=id, name=name, type=type, **kwargs)
def __init__(self, *, start_time=None, end_time=None, endpoints=None, traffic_flows=None, **kwargs) -> None:
super(HeatMapModel, self).__init__(**kwargs)
self.start_time = start_time
self.end_time = end_time
self.endpoints = endpoints
Expand Down
Loading