Skip to content
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
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,11 @@
from .resource import Resource
from .tracked_resource import TrackedResource
from .proxy_resource import ProxyResource
from .traffic_manager_user_metrics_key_model import TrafficManagerUserMetricsKeyModel
from .heat_map_endpoint import HeatMapEndpoint
from .query_experience import QueryExperience
from .traffic_flow import TrafficFlow
from .heat_map_model import HeatMapModel
from .profile_paged import ProfilePaged
from .traffic_manager_management_client_enums import (
EndpointStatus,
Expand All @@ -44,6 +49,11 @@
'Resource',
'TrackedResource',
'ProxyResource',
'TrafficManagerUserMetricsKeyModel',
'HeatMapEndpoint',
'QueryExperience',
'TrafficFlow',
'HeatMapModel',
'ProfilePaged',
'EndpointStatus',
'EndpointMonitorStatus',
Expand Down
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 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):
self.resource_id = resource_id
self.endpoint_id = endpoint_id
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
# 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 of :class:`HeatMapEndpoint
<azure.mgmt.trafficmanager.models.HeatMapEndpoint>`
:param traffic_flows: The traffic flows produced in this HeatMap
calculation.
:type traffic_flows: list of :class:`TrafficFlow
<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
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

class ProfilePaged(Paged):
"""
A paging container for iterating over a list of Profile object
A paging container for iterating over a list of :class:`Profile <azure.mgmt.trafficmanager.models.Profile>` object
"""

_attribute_map = {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# 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):
self.endpoint_id = endpoint_id
self.query_count = query_count
self.latency = latency
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# 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 of :class:`QueryExperience
<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):
self.source_ip = source_ip
self.latitude = latitude
self.longitude = longitude
self.query_experiences = query_experiences
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
# 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 TrafficManagerUserMetricsKeyModel(ProxyResource):
"""Class representing a Traffic Manager Real User Metrics key response.

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 key: The key returned by the Realtime User Metrics operation.
:type key: str
"""

_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'},
'key': {'key': 'properties.key', 'type': 'str'},
}

def __init__(self, key=None):
super(TrafficManagerUserMetricsKeyModel, self).__init__()
self.key = key
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,13 @@
from .endpoints_operations import EndpointsOperations
from .profiles_operations import ProfilesOperations
from .geographic_hierarchies_operations import GeographicHierarchiesOperations
from .heat_map_operations import HeatMapOperations
from .traffic_manager_user_metrics_keys_operations import TrafficManagerUserMetricsKeysOperations

__all__ = [
'EndpointsOperations',
'ProfilesOperations',
'GeographicHierarchiesOperations',
'HeatMapOperations',
'TrafficManagerUserMetricsKeysOperations',
]
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
# regenerated.
# --------------------------------------------------------------------------

import uuid
from msrest.pipeline import ClientRawResponse
from msrestazure.azure_exceptions import CloudError
import uuid

from .. import models

Expand Down Expand Up @@ -59,9 +59,11 @@ def update(
deserialized response
:param operation_config: :ref:`Operation configuration
overrides<msrest:optionsforoperations>`.
:return: :class:`Endpoint <azure.mgmt.trafficmanager.models.Endpoint>`
or :class:`ClientRawResponse<msrest.pipeline.ClientRawResponse>` if
raw=true
:rtype: :class:`Endpoint <azure.mgmt.trafficmanager.models.Endpoint>`
:rtype: :class:`ClientRawResponse<msrest.pipeline.ClientRawResponse>`
if raw=true
or :class:`ClientRawResponse<msrest.pipeline.ClientRawResponse>`
:raises: :class:`CloudError<msrestazure.azure_exceptions.CloudError>`
"""
# Construct URL
Expand Down Expand Up @@ -131,9 +133,11 @@ def get(
deserialized response
:param operation_config: :ref:`Operation configuration
overrides<msrest:optionsforoperations>`.
:return: :class:`Endpoint <azure.mgmt.trafficmanager.models.Endpoint>`
or :class:`ClientRawResponse<msrest.pipeline.ClientRawResponse>` if
raw=true
:rtype: :class:`Endpoint <azure.mgmt.trafficmanager.models.Endpoint>`
:rtype: :class:`ClientRawResponse<msrest.pipeline.ClientRawResponse>`
if raw=true
or :class:`ClientRawResponse<msrest.pipeline.ClientRawResponse>`
:raises: :class:`CloudError<msrestazure.azure_exceptions.CloudError>`
"""
# Construct URL
Expand Down Expand Up @@ -205,9 +209,11 @@ def create_or_update(
deserialized response
:param operation_config: :ref:`Operation configuration
overrides<msrest:optionsforoperations>`.
:return: :class:`Endpoint <azure.mgmt.trafficmanager.models.Endpoint>`
or :class:`ClientRawResponse<msrest.pipeline.ClientRawResponse>` if
raw=true
:rtype: :class:`Endpoint <azure.mgmt.trafficmanager.models.Endpoint>`
:rtype: :class:`ClientRawResponse<msrest.pipeline.ClientRawResponse>`
if raw=true
or :class:`ClientRawResponse<msrest.pipeline.ClientRawResponse>`
:raises: :class:`CloudError<msrestazure.azure_exceptions.CloudError>`
"""
# Construct URL
Expand Down Expand Up @@ -281,10 +287,13 @@ def delete(
deserialized response
:param operation_config: :ref:`Operation configuration
overrides<msrest:optionsforoperations>`.
:return: :class:`DeleteOperationResult
<azure.mgmt.trafficmanager.models.DeleteOperationResult>` or
:class:`ClientRawResponse<msrest.pipeline.ClientRawResponse>` if
raw=true
:rtype: :class:`DeleteOperationResult
<azure.mgmt.trafficmanager.models.DeleteOperationResult>`
:rtype: :class:`ClientRawResponse<msrest.pipeline.ClientRawResponse>`
if raw=true
<azure.mgmt.trafficmanager.models.DeleteOperationResult>` or
:class:`ClientRawResponse<msrest.pipeline.ClientRawResponse>`
:raises: :class:`CloudError<msrestazure.azure_exceptions.CloudError>`
"""
# Construct URL
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
# regenerated.
# --------------------------------------------------------------------------

import uuid
from msrest.pipeline import ClientRawResponse
from msrestazure.azure_exceptions import CloudError
import uuid

from .. import models

Expand Down Expand Up @@ -45,10 +45,13 @@ def get_default(
deserialized response
:param operation_config: :ref:`Operation configuration
overrides<msrest:optionsforoperations>`.
:return: :class:`TrafficManagerGeographicHierarchy
<azure.mgmt.trafficmanager.models.TrafficManagerGeographicHierarchy>`
or :class:`ClientRawResponse<msrest.pipeline.ClientRawResponse>` if
raw=true
:rtype: :class:`TrafficManagerGeographicHierarchy
<azure.mgmt.trafficmanager.models.TrafficManagerGeographicHierarchy>`
:rtype: :class:`ClientRawResponse<msrest.pipeline.ClientRawResponse>`
if raw=true
or :class:`ClientRawResponse<msrest.pipeline.ClientRawResponse>`
:raises: :class:`CloudError<msrestazure.azure_exceptions.CloudError>`
"""
# Construct URL
Expand Down
Loading