/
heat_map_model.py
54 lines (48 loc) · 2.3 KB
/
heat_map_model.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# 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.
:param 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-
Microsoft.Network/trafficManagerProfiles.
:type 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]
"""
_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, **kwargs):
super(HeatMapModel, self).__init__(**kwargs)
self.start_time = kwargs.get('start_time', None)
self.end_time = kwargs.get('end_time', None)
self.endpoints = kwargs.get('endpoints', None)
self.traffic_flows = kwargs.get('traffic_flows', None)