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
11 changes: 7 additions & 4 deletions sdk/trafficmanager/azure-mgmt-trafficmanager/_meta.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
{
"autorest": "3.3.0",
"use": "@autorest/python@5.6.6",
"commit": "6e765382bb72623e7f5d9a11b53954c586ab8663",
"autorest": "3.4.5",
"use": [
"@autorest/python@5.8.4",
"@autorest/modelerfour@4.19.2"
],
"commit": "c8b2609b154c78d061c1cd178c6a8a129fd594b4",
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
"autorest_command": "autorest specification/trafficmanager/resource-manager/readme.md --multiapi --python --python-mode=update --python-sdks-folder=/home/vsts/work/1/s/azure-sdk-for-python/sdk --track2 --use=@autorest/python@5.6.6 --version=3.3.0",
"autorest_command": "autorest specification/trafficmanager/resource-manager/readme.md --multiapi --python --python-mode=update --python-sdks-folder=/home/vsts/work/1/s/azure-sdk-for-python/sdk --track2 --use=@autorest/python@5.8.4 --use=@autorest/modelerfour@4.19.2 --version=3.4.5",
"readme": "specification/trafficmanager/resource-manager/readme.md"
}
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,10 @@ async def update(
self,
resource_group_name: str,
profile_name: str,
endpoint_type: str,
endpoint_type: Union[str, "_models.EndpointType"],
endpoint_name: str,
parameters: "_models.Endpoint",
**kwargs
**kwargs: Any
) -> "_models.Endpoint":
"""Update a Traffic Manager endpoint.

Expand All @@ -57,7 +57,7 @@ async def update(
:param profile_name: The name of the Traffic Manager profile.
:type profile_name: str
:param endpoint_type: The type of the Traffic Manager endpoint to be updated.
:type endpoint_type: str
:type endpoint_type: str or ~azure.mgmt.trafficmanager.models.EndpointType
:param endpoint_name: The name of the Traffic Manager endpoint to be updated.
:type endpoint_name: str
:param parameters: The Traffic Manager endpoint parameters supplied to the Update operation.
Expand Down Expand Up @@ -119,9 +119,9 @@ async def get(
self,
resource_group_name: str,
profile_name: str,
endpoint_type: str,
endpoint_type: Union[str, "_models.EndpointType"],
endpoint_name: str,
**kwargs
**kwargs: Any
) -> "_models.Endpoint":
"""Gets a Traffic Manager endpoint.

Expand All @@ -131,7 +131,7 @@ async def get(
:param profile_name: The name of the Traffic Manager profile.
:type profile_name: str
:param endpoint_type: The type of the Traffic Manager endpoint.
:type endpoint_type: str
:type endpoint_type: str or ~azure.mgmt.trafficmanager.models.EndpointType
:param endpoint_name: The name of the Traffic Manager endpoint.
:type endpoint_name: str
:keyword callable cls: A custom type or function that will be passed the direct response
Expand Down Expand Up @@ -186,10 +186,10 @@ async def create_or_update(
self,
resource_group_name: str,
profile_name: str,
endpoint_type: str,
endpoint_type: Union[str, "_models.EndpointType"],
endpoint_name: str,
parameters: "_models.Endpoint",
**kwargs
**kwargs: Any
) -> "_models.Endpoint":
"""Create or update a Traffic Manager endpoint.

Expand All @@ -199,7 +199,7 @@ async def create_or_update(
:param profile_name: The name of the Traffic Manager profile.
:type profile_name: str
:param endpoint_type: The type of the Traffic Manager endpoint to be created or updated.
:type endpoint_type: str
:type endpoint_type: str or ~azure.mgmt.trafficmanager.models.EndpointType
:param endpoint_name: The name of the Traffic Manager endpoint to be created or updated.
:type endpoint_name: str
:param parameters: The Traffic Manager endpoint parameters supplied to the CreateOrUpdate
Expand Down Expand Up @@ -266,9 +266,9 @@ async def delete(
self,
resource_group_name: str,
profile_name: str,
endpoint_type: str,
endpoint_type: Union[str, "_models.EndpointType"],
endpoint_name: str,
**kwargs
**kwargs: Any
) -> Optional["_models.DeleteOperationResult"]:
"""Deletes a Traffic Manager endpoint.

Expand All @@ -278,7 +278,7 @@ async def delete(
:param profile_name: The name of the Traffic Manager profile.
:type profile_name: str
:param endpoint_type: The type of the Traffic Manager endpoint to be deleted.
:type endpoint_type: str
:type endpoint_type: str or ~azure.mgmt.trafficmanager.models.EndpointType
:param endpoint_name: The name of the Traffic Manager endpoint to be deleted.
:type endpoint_name: str
:keyword callable cls: A custom type or function that will be passed the direct response
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def __init__(self, client, config, serializer, deserializer) -> None:

async def get_default(
self,
**kwargs
**kwargs: Any
) -> "_models.TrafficManagerGeographicHierarchy":
"""Gets the default Geographic Hierarchy used by the Geographic traffic routing method.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ async def get(
profile_name: str,
top_left: Optional[List[float]] = None,
bot_right: Optional[List[float]] = None,
**kwargs
**kwargs: Any
) -> "_models.HeatMapModel":
"""Gets latest heatmap for Traffic Manager profile.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def __init__(self, client, config, serializer, deserializer) -> None:
async def check_traffic_manager_relative_dns_name_availability(
self,
parameters: "_models.CheckTrafficManagerRelativeDnsNameAvailabilityParameters",
**kwargs
**kwargs: Any
) -> "_models.TrafficManagerNameAvailability":
"""Checks the availability of a Traffic Manager Relative DNS name.

Expand Down Expand Up @@ -99,7 +99,7 @@ async def check_traffic_manager_relative_dns_name_availability(
def list_by_resource_group(
self,
resource_group_name: str,
**kwargs
**kwargs: Any
) -> AsyncIterable["_models.ProfileListResult"]:
"""Lists all Traffic Manager profiles within a resource group.

Expand Down Expand Up @@ -169,7 +169,7 @@ async def get_next(next_link=None):

def list_by_subscription(
self,
**kwargs
**kwargs: Any
) -> AsyncIterable["_models.ProfileListResult"]:
"""Lists all Traffic Manager profiles within a subscription.

Expand Down Expand Up @@ -237,7 +237,7 @@ async def get(
self,
resource_group_name: str,
profile_name: str,
**kwargs
**kwargs: Any
) -> "_models.Profile":
"""Gets a Traffic Manager profile.

Expand Down Expand Up @@ -297,7 +297,7 @@ async def create_or_update(
resource_group_name: str,
profile_name: str,
parameters: "_models.Profile",
**kwargs
**kwargs: Any
) -> "_models.Profile":
"""Create or update a Traffic Manager profile.

Expand Down Expand Up @@ -368,7 +368,7 @@ async def delete(
self,
resource_group_name: str,
profile_name: str,
**kwargs
**kwargs: Any
) -> Optional["_models.DeleteOperationResult"]:
"""Deletes a Traffic Manager profile.

Expand Down Expand Up @@ -430,7 +430,7 @@ async def update(
resource_group_name: str,
profile_name: str,
parameters: "_models.Profile",
**kwargs
**kwargs: Any
) -> "_models.Profile":
"""Update a Traffic Manager profile.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def __init__(self, client, config, serializer, deserializer) -> None:

async def get(
self,
**kwargs
**kwargs: Any
) -> "_models.UserMetricsModel":
"""Get the subscription-level key used for Real User Metrics collection.

Expand Down Expand Up @@ -92,7 +92,7 @@ async def get(

async def create_or_update(
self,
**kwargs
**kwargs: Any
) -> "_models.UserMetricsModel":
"""Create or update a subscription-level key used for Real User Metrics collection.

Expand Down Expand Up @@ -142,7 +142,7 @@ async def create_or_update(

async def delete(
self,
**kwargs
**kwargs: Any
) -> "_models.DeleteOperationResult":
"""Delete a subscription-level key used for Real User Metrics collection.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@
AllowedEndpointRecordType,
EndpointMonitorStatus,
EndpointStatus,
EndpointType,
MonitorProtocol,
ProfileMonitorStatus,
ProfileStatus,
Expand Down Expand Up @@ -93,6 +94,7 @@
'AllowedEndpointRecordType',
'EndpointMonitorStatus',
'EndpointStatus',
'EndpointType',
'MonitorProtocol',
'ProfileMonitorStatus',
'ProfileStatus',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,12 @@ class EndpointStatus(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
ENABLED = "Enabled"
DISABLED = "Disabled"

class EndpointType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):

AZURE_ENDPOINTS = "AzureEndpoints"
EXTERNAL_ENDPOINTS = "ExternalEndpoints"
NESTED_ENDPOINTS = "NestedEndpoints"

class MonitorProtocol(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
"""The protocol (HTTP, HTTPS or TCP) used to probe for endpoint health.
"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def update(
self,
resource_group_name, # type: str
profile_name, # type: str
endpoint_type, # type: str
endpoint_type, # type: Union[str, "_models.EndpointType"]
endpoint_name, # type: str
parameters, # type: "_models.Endpoint"
**kwargs # type: Any
Expand All @@ -62,7 +62,7 @@ def update(
:param profile_name: The name of the Traffic Manager profile.
:type profile_name: str
:param endpoint_type: The type of the Traffic Manager endpoint to be updated.
:type endpoint_type: str
:type endpoint_type: str or ~azure.mgmt.trafficmanager.models.EndpointType
:param endpoint_name: The name of the Traffic Manager endpoint to be updated.
:type endpoint_name: str
:param parameters: The Traffic Manager endpoint parameters supplied to the Update operation.
Expand Down Expand Up @@ -124,7 +124,7 @@ def get(
self,
resource_group_name, # type: str
profile_name, # type: str
endpoint_type, # type: str
endpoint_type, # type: Union[str, "_models.EndpointType"]
endpoint_name, # type: str
**kwargs # type: Any
):
Expand All @@ -137,7 +137,7 @@ def get(
:param profile_name: The name of the Traffic Manager profile.
:type profile_name: str
:param endpoint_type: The type of the Traffic Manager endpoint.
:type endpoint_type: str
:type endpoint_type: str or ~azure.mgmt.trafficmanager.models.EndpointType
:param endpoint_name: The name of the Traffic Manager endpoint.
:type endpoint_name: str
:keyword callable cls: A custom type or function that will be passed the direct response
Expand Down Expand Up @@ -192,7 +192,7 @@ def create_or_update(
self,
resource_group_name, # type: str
profile_name, # type: str
endpoint_type, # type: str
endpoint_type, # type: Union[str, "_models.EndpointType"]
endpoint_name, # type: str
parameters, # type: "_models.Endpoint"
**kwargs # type: Any
Expand All @@ -206,7 +206,7 @@ def create_or_update(
:param profile_name: The name of the Traffic Manager profile.
:type profile_name: str
:param endpoint_type: The type of the Traffic Manager endpoint to be created or updated.
:type endpoint_type: str
:type endpoint_type: str or ~azure.mgmt.trafficmanager.models.EndpointType
:param endpoint_name: The name of the Traffic Manager endpoint to be created or updated.
:type endpoint_name: str
:param parameters: The Traffic Manager endpoint parameters supplied to the CreateOrUpdate
Expand Down Expand Up @@ -273,7 +273,7 @@ def delete(
self,
resource_group_name, # type: str
profile_name, # type: str
endpoint_type, # type: str
endpoint_type, # type: Union[str, "_models.EndpointType"]
endpoint_name, # type: str
**kwargs # type: Any
):
Expand All @@ -286,7 +286,7 @@ def delete(
:param profile_name: The name of the Traffic Manager profile.
:type profile_name: str
:param endpoint_type: The type of the Traffic Manager endpoint to be deleted.
:type endpoint_type: str
:type endpoint_type: str or ~azure.mgmt.trafficmanager.models.EndpointType
:param endpoint_name: The name of the Traffic Manager endpoint to be deleted.
:type endpoint_name: str
:keyword callable cls: A custom type or function that will be passed the direct response
Expand Down