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 @@ -36,6 +36,7 @@
MonitorProtocol,
ProfileStatus,
TrafficRoutingMethod,
TrafficViewEnrollmentStatus,
)

__all__ = [
Expand Down Expand Up @@ -65,4 +66,5 @@
'MonitorProtocol',
'ProfileStatus',
'TrafficRoutingMethod',
'TrafficViewEnrollmentStatus',
]
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,12 @@ class Profile(TrackedResource):
:type monitor_config: ~azure.mgmt.trafficmanager.models.MonitorConfig
:param endpoints: The list of endpoints in the Traffic Manager profile.
:type endpoints: list[~azure.mgmt.trafficmanager.models.Endpoint]
:param traffic_view_enrollment_status: Indicates whether Traffic View is
'Enabled' or 'Disabled' for the Traffic Manager profile. Null, indicates
'Disabled'. Enabling this feature will increase the cost of the Traffic
Manage profile. Possible values include: 'Enabled', 'Disabled'
:type traffic_view_enrollment_status: str or
~azure.mgmt.trafficmanager.models.TrafficViewEnrollmentStatus
"""

_attribute_map = {
Expand All @@ -56,12 +62,14 @@ class Profile(TrackedResource):
'dns_config': {'key': 'properties.dnsConfig', 'type': 'DnsConfig'},
'monitor_config': {'key': 'properties.monitorConfig', 'type': 'MonitorConfig'},
'endpoints': {'key': 'properties.endpoints', 'type': '[Endpoint]'},
'traffic_view_enrollment_status': {'key': 'properties.trafficViewEnrollmentStatus', 'type': 'str'},
}

def __init__(self, id=None, name=None, type=None, tags=None, location=None, profile_status=None, traffic_routing_method=None, dns_config=None, monitor_config=None, endpoints=None):
def __init__(self, id=None, name=None, type=None, tags=None, location=None, profile_status=None, traffic_routing_method=None, dns_config=None, monitor_config=None, endpoints=None, traffic_view_enrollment_status=None):
super(Profile, self).__init__(id=id, name=name, type=type, tags=tags, location=location)
self.profile_status = profile_status
self.traffic_routing_method = traffic_routing_method
self.dns_config = dns_config
self.monitor_config = monitor_config
self.endpoints = endpoints
self.traffic_view_enrollment_status = traffic_view_enrollment_status
Original file line number Diff line number Diff line change
Expand Up @@ -56,3 +56,9 @@ class TrafficRoutingMethod(Enum):
priority = "Priority"
weighted = "Weighted"
geographic = "Geographic"


class TrafficViewEnrollmentStatus(Enum):

enabled = "Enabled"
disabled = "Disabled"