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
1 change: 0 additions & 1 deletion azure-mgmt-trafficmanager/MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
include *.rst
include azure_bdist_wheel.py
2 changes: 1 addition & 1 deletion azure-mgmt-trafficmanager/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ This is the Microsoft Azure Traffic Manager Client Library.
Azure Resource Manager (ARM) is the next generation of management APIs that
replace the old Azure Service Management (ASM).

This package has been tested with Python 2.7, 3.4, 3.5 and 3.6.
This package has been tested with Python 2.7, 3.4, 3.5, 3.6 and 3.7.

For the older Azure Service Management (ASM) libraries, see
`azure-servicemanagement-legacy <https://pypi.python.org/pypi/azure-servicemanagement-legacy>`__ library.
Expand Down
2 changes: 1 addition & 1 deletion azure-mgmt-trafficmanager/azure/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__import__('pkg_resources').declare_namespace(__name__)
__path__ = __import__('pkgutil').extend_path(__path__, __name__)
2 changes: 1 addition & 1 deletion azure-mgmt-trafficmanager/azure/mgmt/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__import__('pkg_resources').declare_namespace(__name__)
__path__ = __import__('pkgutil').extend_path(__path__, __name__)
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ class Endpoint(ProxyResource):
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 -
:param id: Fully qualified resource Id for the resource. Ex -
/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/trafficManagerProfiles/{resourceName}
:vartype id: str
:type id: str
:ivar name: The name of the resource
:vartype name: str
:ivar type: The type of the resource. Ex-
Expand Down Expand Up @@ -75,7 +75,6 @@ class Endpoint(ProxyResource):
"""

_validation = {
'id': {'readonly': True},
'name': {'readonly': True},
'type': {'readonly': True},
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ class Endpoint(ProxyResource):
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 -
:param id: Fully qualified resource Id for the resource. Ex -
/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/trafficManagerProfiles/{resourceName}
:vartype id: str
:type id: str
:ivar name: The name of the resource
:vartype name: str
:ivar type: The type of the resource. Ex-
Expand Down Expand Up @@ -75,7 +75,6 @@ class Endpoint(ProxyResource):
"""

_validation = {
'id': {'readonly': True},
'name': {'readonly': True},
'type': {'readonly': True},
}
Expand All @@ -97,8 +96,8 @@ class Endpoint(ProxyResource):
'custom_headers': {'key': 'properties.customHeaders', 'type': '[EndpointPropertiesCustomHeadersItem]'},
}

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)
def __init__(self, *, id: 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, subnets=None, custom_headers=None, **kwargs) -> None:
super(Endpoint, self).__init__(id=id, **kwargs)
self.target_resource_id = target_resource_id
self.target = target
self.endpoint_status = endpoint_status
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ class HeatMapModel(ProxyResource):
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 -
:param id: Fully qualified resource Id for the resource. Ex -
/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/trafficManagerProfiles/{resourceName}
:vartype id: str
:type id: str
:ivar name: The name of the resource
:vartype name: str
:ivar type: The type of the resource. Ex-
Expand All @@ -40,7 +40,6 @@ class HeatMapModel(ProxyResource):
"""

_validation = {
'id': {'readonly': True},
'name': {'readonly': True},
'type': {'readonly': True},
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ class HeatMapModel(ProxyResource):
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 -
:param id: Fully qualified resource Id for the resource. Ex -
/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/trafficManagerProfiles/{resourceName}
:vartype id: str
:type id: str
:ivar name: The name of the resource
:vartype name: str
:ivar type: The type of the resource. Ex-
Expand All @@ -40,7 +40,6 @@ class HeatMapModel(ProxyResource):
"""

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

def __init__(self, *, start_time=None, end_time=None, endpoints=None, traffic_flows=None, **kwargs) -> None:
super(HeatMapModel, self).__init__(**kwargs)
def __init__(self, *, id: str=None, start_time=None, end_time=None, endpoints=None, traffic_flows=None, **kwargs) -> None:
super(HeatMapModel, self).__init__(id=id, **kwargs)
self.start_time = start_time
self.end_time = end_time
self.endpoints = endpoints
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ class Profile(TrackedResource):
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 -
:param id: Fully qualified resource Id for the resource. Ex -
/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/trafficManagerProfiles/{resourceName}
:vartype id: str
:type id: str
:ivar name: The name of the resource
:vartype name: str
:ivar type: The type of the resource. Ex-
Expand Down Expand Up @@ -58,7 +58,6 @@ class Profile(TrackedResource):
"""

_validation = {
'id': {'readonly': True},
'name': {'readonly': True},
'type': {'readonly': True},
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ class Profile(TrackedResource):
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 -
:param id: Fully qualified resource Id for the resource. Ex -
/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/trafficManagerProfiles/{resourceName}
:vartype id: str
:type id: str
:ivar name: The name of the resource
:vartype name: str
:ivar type: The type of the resource. Ex-
Expand Down Expand Up @@ -58,7 +58,6 @@ class Profile(TrackedResource):
"""

_validation = {
'id': {'readonly': True},
'name': {'readonly': True},
'type': {'readonly': True},
}
Expand All @@ -78,8 +77,8 @@ class Profile(TrackedResource):
'max_return': {'key': 'properties.maxReturn', 'type': 'long'},
}

def __init__(self, *, tags=None, location: str=None, profile_status=None, traffic_routing_method=None, dns_config=None, monitor_config=None, endpoints=None, traffic_view_enrollment_status=None, max_return: int=None, **kwargs) -> None:
super(Profile, self).__init__(tags=tags, location=location, **kwargs)
def __init__(self, *, id: str=None, tags=None, location: str=None, profile_status=None, traffic_routing_method=None, dns_config=None, monitor_config=None, endpoints=None, traffic_view_enrollment_status=None, max_return: int=None, **kwargs) -> None:
super(Profile, self).__init__(id=id, tags=tags, location=location, **kwargs)
self.profile_status = profile_status
self.traffic_routing_method = traffic_routing_method
self.dns_config = dns_config
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ class ProxyResource(Resource):
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 -
:param id: Fully qualified resource Id for the resource. Ex -
/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/trafficManagerProfiles/{resourceName}
:vartype id: str
:type id: str
:ivar name: The name of the resource
:vartype name: str
:ivar type: The type of the resource. Ex-
Expand All @@ -30,7 +30,6 @@ class ProxyResource(Resource):
"""

_validation = {
'id': {'readonly': True},
'name': {'readonly': True},
'type': {'readonly': True},
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ class ProxyResource(Resource):
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 -
:param id: Fully qualified resource Id for the resource. Ex -
/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/trafficManagerProfiles/{resourceName}
:vartype id: str
:type id: str
:ivar name: The name of the resource
:vartype name: str
:ivar type: The type of the resource. Ex-
Expand All @@ -30,7 +30,6 @@ class ProxyResource(Resource):
"""

_validation = {
'id': {'readonly': True},
'name': {'readonly': True},
'type': {'readonly': True},
}
Expand All @@ -41,5 +40,5 @@ class ProxyResource(Resource):
'type': {'key': 'type', 'type': 'str'},
}

def __init__(self, **kwargs) -> None:
super(ProxyResource, self).__init__(**kwargs)
def __init__(self, *, id: str=None, **kwargs) -> None:
super(ProxyResource, self).__init__(id=id, **kwargs)
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ class Resource(Model):
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 -
:param id: Fully qualified resource Id for the resource. Ex -
/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/trafficManagerProfiles/{resourceName}
:vartype id: str
:type id: str
:ivar name: The name of the resource
:vartype name: str
:ivar type: The type of the resource. Ex-
Expand All @@ -29,7 +29,6 @@ class Resource(Model):
"""

_validation = {
'id': {'readonly': True},
'name': {'readonly': True},
'type': {'readonly': True},
}
Expand All @@ -42,6 +41,6 @@ class Resource(Model):

def __init__(self, **kwargs):
super(Resource, self).__init__(**kwargs)
self.id = None
self.id = kwargs.get('id', None)
self.name = None
self.type = None
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ class Resource(Model):
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 -
:param id: Fully qualified resource Id for the resource. Ex -
/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/trafficManagerProfiles/{resourceName}
:vartype id: str
:type id: str
:ivar name: The name of the resource
:vartype name: str
:ivar type: The type of the resource. Ex-
Expand All @@ -29,7 +29,6 @@ class Resource(Model):
"""

_validation = {
'id': {'readonly': True},
'name': {'readonly': True},
'type': {'readonly': True},
}
Expand All @@ -40,8 +39,8 @@ class Resource(Model):
'type': {'key': 'type', 'type': 'str'},
}

def __init__(self, **kwargs) -> None:
def __init__(self, *, id: str=None, **kwargs) -> None:
super(Resource, self).__init__(**kwargs)
self.id = None
self.id = id
self.name = None
self.type = None
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ class TrackedResource(Resource):
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 -
:param id: Fully qualified resource Id for the resource. Ex -
/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/trafficManagerProfiles/{resourceName}
:vartype id: str
:type id: str
:ivar name: The name of the resource
:vartype name: str
:ivar type: The type of the resource. Ex-
Expand All @@ -33,7 +33,6 @@ class TrackedResource(Resource):
"""

_validation = {
'id': {'readonly': True},
'name': {'readonly': True},
'type': {'readonly': True},
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ class TrackedResource(Resource):
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 -
:param id: Fully qualified resource Id for the resource. Ex -
/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/trafficManagerProfiles/{resourceName}
:vartype id: str
:type id: str
:ivar name: The name of the resource
:vartype name: str
:ivar type: The type of the resource. Ex-
Expand All @@ -33,7 +33,6 @@ class TrackedResource(Resource):
"""

_validation = {
'id': {'readonly': True},
'name': {'readonly': True},
'type': {'readonly': True},
}
Expand All @@ -46,7 +45,7 @@ class TrackedResource(Resource):
'location': {'key': 'location', 'type': 'str'},
}

def __init__(self, *, tags=None, location: str=None, **kwargs) -> None:
super(TrackedResource, self).__init__(**kwargs)
def __init__(self, *, id: str=None, tags=None, location: str=None, **kwargs) -> None:
super(TrackedResource, self).__init__(id=id, **kwargs)
self.tags = tags
self.location = location
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ class TrafficManagerGeographicHierarchy(ProxyResource):
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 -
:param id: Fully qualified resource Id for the resource. Ex -
/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/trafficManagerProfiles/{resourceName}
:vartype id: str
:type id: str
:ivar name: The name of the resource
:vartype name: str
:ivar type: The type of the resource. Ex-
Expand All @@ -33,7 +33,6 @@ class TrafficManagerGeographicHierarchy(ProxyResource):
"""

_validation = {
'id': {'readonly': True},
'name': {'readonly': True},
'type': {'readonly': True},
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ class TrafficManagerGeographicHierarchy(ProxyResource):
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 -
:param id: Fully qualified resource Id for the resource. Ex -
/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/trafficManagerProfiles/{resourceName}
:vartype id: str
:type id: str
:ivar name: The name of the resource
:vartype name: str
:ivar type: The type of the resource. Ex-
Expand All @@ -33,7 +33,6 @@ class TrafficManagerGeographicHierarchy(ProxyResource):
"""

_validation = {
'id': {'readonly': True},
'name': {'readonly': True},
'type': {'readonly': True},
}
Expand All @@ -45,6 +44,6 @@ class TrafficManagerGeographicHierarchy(ProxyResource):
'geographic_hierarchy': {'key': 'properties.geographicHierarchy', 'type': 'Region'},
}

def __init__(self, *, geographic_hierarchy=None, **kwargs) -> None:
super(TrafficManagerGeographicHierarchy, self).__init__(**kwargs)
def __init__(self, *, id: str=None, geographic_hierarchy=None, **kwargs) -> None:
super(TrafficManagerGeographicHierarchy, self).__init__(id=id, **kwargs)
self.geographic_hierarchy = geographic_hierarchy
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ class UserMetricsModel(ProxyResource):
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 -
:param id: Fully qualified resource Id for the resource. Ex -
/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/trafficManagerProfiles/{resourceName}
:vartype id: str
:type id: str
:ivar name: The name of the resource
:vartype name: str
:ivar type: The type of the resource. Ex-
Expand All @@ -31,7 +31,6 @@ class UserMetricsModel(ProxyResource):
"""

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