-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
af67c66
commit 43788d2
Showing
27 changed files
with
927 additions
and
108 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 33 additions & 0 deletions
33
azure-mgmt-trafficmanager/azure/mgmt/trafficmanager/models/heat_map_endpoint.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# 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 HeatMapEndpoint(Model): | ||
"""Class which is a sparse representation of a Traffic Manager endpoint. | ||
:param resource_id: The ARM Resource ID of this Traffic Manager endpoint. | ||
:type resource_id: str | ||
:param endpoint_id: A number uniquely identifying this endpoint in query | ||
experiences. | ||
:type endpoint_id: int | ||
""" | ||
|
||
_attribute_map = { | ||
'resource_id': {'key': 'resourceId', 'type': 'str'}, | ||
'endpoint_id': {'key': 'endpointId', 'type': 'int'}, | ||
} | ||
|
||
def __init__(self, resource_id=None, endpoint_id=None): | ||
super(HeatMapEndpoint, self).__init__() | ||
self.resource_id = resource_id | ||
self.endpoint_id = endpoint_id |
63 changes: 63 additions & 0 deletions
63
azure-mgmt-trafficmanager/azure/mgmt/trafficmanager/models/heat_map_model.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
# 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 .proxy_resource import ProxyResource | ||
|
||
|
||
class HeatMapModel(ProxyResource): | ||
"""Class representing a Traffic Manager HeatMap. | ||
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} | ||
:vartype id: str | ||
:ivar name: The name of the resource | ||
:vartype name: str | ||
:ivar type: The type of the resource. Ex- | ||
Microsoft.Network/trafficmanagerProfiles. | ||
:vartype type: str | ||
:param start_time: The beginning of the time window for this HeatMap, | ||
inclusive. | ||
:type start_time: datetime | ||
:param end_time: The ending of the time window for this HeatMap, | ||
exclusive. | ||
:type end_time: datetime | ||
:param endpoints: The endpoints used in this HeatMap calculation. | ||
:type endpoints: list[~azure.mgmt.trafficmanager.models.HeatMapEndpoint] | ||
:param traffic_flows: The traffic flows produced in this HeatMap | ||
calculation. | ||
: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'}, | ||
'type': {'key': 'type', 'type': 'str'}, | ||
'start_time': {'key': 'properties.startTime', 'type': 'iso-8601'}, | ||
'end_time': {'key': 'properties.endTime', 'type': 'iso-8601'}, | ||
'endpoints': {'key': 'properties.endpoints', 'type': '[HeatMapEndpoint]'}, | ||
'traffic_flows': {'key': 'properties.trafficFlows', 'type': '[TrafficFlow]'}, | ||
} | ||
|
||
def __init__(self, start_time=None, end_time=None, endpoints=None, traffic_flows=None): | ||
super(HeatMapModel, self).__init__() | ||
self.start_time = start_time | ||
self.end_time = end_time | ||
self.endpoints = endpoints | ||
self.traffic_flows = traffic_flows |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
43 changes: 43 additions & 0 deletions
43
azure-mgmt-trafficmanager/azure/mgmt/trafficmanager/models/query_experience.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
# 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 QueryExperience(Model): | ||
"""Class representing a Traffic Manager HeatMap query experience properties. | ||
:param endpoint_id: The id of the endpoint from the 'endpoints' array | ||
which these queries were routed to. | ||
:type endpoint_id: int | ||
:param query_count: The number of queries originating from this location. | ||
:type query_count: int | ||
:param latency: The latency experienced by queries originating from this | ||
location. | ||
:type latency: float | ||
""" | ||
|
||
_validation = { | ||
'endpoint_id': {'required': True}, | ||
'query_count': {'required': True}, | ||
} | ||
|
||
_attribute_map = { | ||
'endpoint_id': {'key': 'endpointId', 'type': 'int'}, | ||
'query_count': {'key': 'queryCount', 'type': 'int'}, | ||
'latency': {'key': 'latency', 'type': 'float'}, | ||
} | ||
|
||
def __init__(self, endpoint_id, query_count, latency=None): | ||
super(QueryExperience, self).__init__() | ||
self.endpoint_id = endpoint_id | ||
self.query_count = query_count | ||
self.latency = latency |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
45 changes: 45 additions & 0 deletions
45
azure-mgmt-trafficmanager/azure/mgmt/trafficmanager/models/traffic_flow.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
# 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 TrafficFlow(Model): | ||
"""Class representing a Traffic Manager HeatMap traffic flow properties. | ||
:param source_ip: The IP address that this query experience originated | ||
from. | ||
:type source_ip: str | ||
:param latitude: The approximate latitude that these queries originated | ||
from. | ||
:type latitude: float | ||
:param longitude: The approximate longitude that these queries originated | ||
from. | ||
:type longitude: float | ||
:param query_experiences: The query experiences produced in this HeatMap | ||
calculation. | ||
:type query_experiences: | ||
list[~azure.mgmt.trafficmanager.models.QueryExperience] | ||
""" | ||
|
||
_attribute_map = { | ||
'source_ip': {'key': 'sourceIp', 'type': 'str'}, | ||
'latitude': {'key': 'latitude', 'type': 'float'}, | ||
'longitude': {'key': 'longitude', 'type': 'float'}, | ||
'query_experiences': {'key': 'queryExperiences', 'type': '[QueryExperience]'}, | ||
} | ||
|
||
def __init__(self, source_ip=None, latitude=None, longitude=None, query_experiences=None): | ||
super(TrafficFlow, self).__init__() | ||
self.source_ip = source_ip | ||
self.latitude = latitude | ||
self.longitude = longitude | ||
self.query_experiences = query_experiences |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.