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 @@ -15,17 +15,14 @@
class Endpoint(ProxyResource):
"""Class representing a Traffic Manager endpoint.

Variables are only populated by the server, and will be ignored when
sending a request.

:param id: Fully qualified resource Id for the resource. Ex -
/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/trafficManagerProfiles/{resourceName}
:type id: str
:ivar name: The name of the resource
:vartype name: str
:ivar type: The type of the resource. Ex-
:param name: The name of the resource
:type name: str
:param type: The type of the resource. Ex-
Microsoft.Network/trafficmanagerProfiles.
:vartype type: str
:type 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 Down Expand Up @@ -74,11 +71,6 @@ class Endpoint(ProxyResource):
list[~azure.mgmt.trafficmanager.models.EndpointPropertiesCustomHeadersItem]
"""

_validation = {
'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,17 +15,14 @@
class Endpoint(ProxyResource):
"""Class representing a Traffic Manager endpoint.

Variables are only populated by the server, and will be ignored when
sending a request.

:param id: Fully qualified resource Id for the resource. Ex -
/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/trafficManagerProfiles/{resourceName}
:type id: str
:ivar name: The name of the resource
:vartype name: str
:ivar type: The type of the resource. Ex-
:param name: The name of the resource
:type name: str
:param type: The type of the resource. Ex-
Microsoft.Network/trafficmanagerProfiles.
:vartype type: str
:type 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 Down Expand Up @@ -74,11 +71,6 @@ class Endpoint(ProxyResource):
list[~azure.mgmt.trafficmanager.models.EndpointPropertiesCustomHeadersItem]
"""

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

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

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)
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, subnets=None, custom_headers=None, **kwargs) -> None:
super(Endpoint, self).__init__(id=id, name=name, type=type, **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 @@ -15,17 +15,14 @@
class HeatMapModel(ProxyResource):
"""Class representing a Traffic Manager HeatMap.

Variables are only populated by the server, and will be ignored when
sending a request.

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

_validation = {
'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,17 +15,14 @@
class HeatMapModel(ProxyResource):
"""Class representing a Traffic Manager HeatMap.

Variables are only populated by the server, and will be ignored when
sending a request.

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

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

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

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)
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)
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 @@ -15,17 +15,14 @@
class Profile(TrackedResource):
"""Class representing a Traffic Manager profile.

Variables are only populated by the server, and will be ignored when
sending a request.

:param id: Fully qualified resource Id for the resource. Ex -
/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/trafficManagerProfiles/{resourceName}
:type id: str
:ivar name: The name of the resource
:vartype name: str
:ivar type: The type of the resource. Ex-
:param name: The name of the resource
:type name: str
:param type: The type of the resource. Ex-
Microsoft.Network/trafficmanagerProfiles.
:vartype type: str
:type type: str
:param tags: Resource tags.
:type tags: dict[str, str]
:param location: The Azure Region where the resource lives
Expand Down Expand Up @@ -57,11 +54,6 @@ class Profile(TrackedResource):
:type max_return: long
"""

_validation = {
'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,17 +15,14 @@
class Profile(TrackedResource):
"""Class representing a Traffic Manager profile.

Variables are only populated by the server, and will be ignored when
sending a request.

:param id: Fully qualified resource Id for the resource. Ex -
/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/trafficManagerProfiles/{resourceName}
:type id: str
:ivar name: The name of the resource
:vartype name: str
:ivar type: The type of the resource. Ex-
:param name: The name of the resource
:type name: str
:param type: The type of the resource. Ex-
Microsoft.Network/trafficmanagerProfiles.
:vartype type: str
:type type: str
:param tags: Resource tags.
:type tags: dict[str, str]
:param location: The Azure Region where the resource lives
Expand Down Expand Up @@ -57,11 +54,6 @@ class Profile(TrackedResource):
:type max_return: long
"""

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

_attribute_map = {
'id': {'key': 'id', 'type': 'str'},
'name': {'key': 'name', 'type': 'str'},
Expand All @@ -77,8 +69,8 @@ class Profile(TrackedResource):
'max_return': {'key': 'properties.maxReturn', 'type': 'long'},
}

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)
def __init__(self, *, id: str=None, name: str=None, type: 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, name=name, type=type, 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 @@ -16,24 +16,16 @@ class ProxyResource(Resource):
"""The resource model definition for a ARM proxy resource. It will have
everything other than required location and tags.

Variables are only populated by the server, and will be ignored when
sending a request.

:param id: Fully qualified resource Id for the resource. Ex -
/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/trafficManagerProfiles/{resourceName}
:type id: str
:ivar name: The name of the resource
:vartype name: str
:ivar type: The type of the resource. Ex-
:param name: The name of the resource
:type name: str
:param type: The type of the resource. Ex-
Microsoft.Network/trafficmanagerProfiles.
:vartype type: str
:type type: str
"""

_validation = {
'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 @@ -16,29 +16,21 @@ class ProxyResource(Resource):
"""The resource model definition for a ARM proxy resource. It will have
everything other than required location and tags.

Variables are only populated by the server, and will be ignored when
sending a request.

:param id: Fully qualified resource Id for the resource. Ex -
/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/trafficManagerProfiles/{resourceName}
:type id: str
:ivar name: The name of the resource
:vartype name: str
:ivar type: The type of the resource. Ex-
:param name: The name of the resource
:type name: str
:param type: The type of the resource. Ex-
Microsoft.Network/trafficmanagerProfiles.
:vartype type: str
:type type: str
"""

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

_attribute_map = {
'id': {'key': 'id', 'type': 'str'},
'name': {'key': 'name', 'type': 'str'},
'type': {'key': 'type', 'type': 'str'},
}

def __init__(self, *, id: str=None, **kwargs) -> None:
super(ProxyResource, self).__init__(id=id, **kwargs)
def __init__(self, *, id: str=None, name: str=None, type: str=None, **kwargs) -> None:
super(ProxyResource, self).__init__(id=id, name=name, type=type, **kwargs)
Original file line number Diff line number Diff line change
Expand Up @@ -15,24 +15,16 @@
class Resource(Model):
"""The core properties of ARM resources.

Variables are only populated by the server, and will be ignored when
sending a request.

:param id: Fully qualified resource Id for the resource. Ex -
/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/trafficManagerProfiles/{resourceName}
:type id: str
:ivar name: The name of the resource
:vartype name: str
:ivar type: The type of the resource. Ex-
:param name: The name of the resource
:type name: str
:param type: The type of the resource. Ex-
Microsoft.Network/trafficmanagerProfiles.
:vartype type: str
:type type: str
"""

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

_attribute_map = {
'id': {'key': 'id', 'type': 'str'},
'name': {'key': 'name', 'type': 'str'},
Expand All @@ -42,5 +34,5 @@ class Resource(Model):
def __init__(self, **kwargs):
super(Resource, self).__init__(**kwargs)
self.id = kwargs.get('id', None)
self.name = None
self.type = None
self.name = kwargs.get('name', None)
self.type = kwargs.get('type', None)
Original file line number Diff line number Diff line change
Expand Up @@ -15,32 +15,24 @@
class Resource(Model):
"""The core properties of ARM resources.

Variables are only populated by the server, and will be ignored when
sending a request.

:param id: Fully qualified resource Id for the resource. Ex -
/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/trafficManagerProfiles/{resourceName}
:type id: str
:ivar name: The name of the resource
:vartype name: str
:ivar type: The type of the resource. Ex-
:param name: The name of the resource
:type name: str
:param type: The type of the resource. Ex-
Microsoft.Network/trafficmanagerProfiles.
:vartype type: str
:type type: str
"""

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

_attribute_map = {
'id': {'key': 'id', 'type': 'str'},
'name': {'key': 'name', 'type': 'str'},
'type': {'key': 'type', 'type': 'str'},
}

def __init__(self, *, id: str=None, **kwargs) -> None:
def __init__(self, *, id: str=None, name: str=None, type: str=None, **kwargs) -> None:
super(Resource, self).__init__(**kwargs)
self.id = id
self.name = None
self.type = None
self.name = name
self.type = type
Loading