Skip to content

Commit 2c37e59

Browse files
azure-sdkransinha1989CopilotChenxiJiang333Copilot
authored
[AutoPR azure-mgmt-trafficmanager]-generated-from-SDK Generation - Python-6271042 (#46795)
* Configurations: 'specification/trafficmanager/resource-manager/Microsoft.Network/TrafficManager/tspconfig.yaml', API Version: 2024-04-01-preview, SDK Release Type: beta, and CommitSHA: '28e08376806422730d28d8dd90479d0ad68397ac' in SpecRepo: 'https://github.com/Azure/azure-rest-api-specs' Pipeline run: https://dev.azure.com/azure-sdk/internal/_build/results?buildId=6271042 Refer to https://eng.ms/docs/products/azure-developer-experience/develop/sdk-release/sdk-release-prerequisites to prepare for SDK release. * Add aiohttp to dev_requirements.txt for async test imports * Fix traffic manager package description capitalization Agent-Logs-Url: https://github.com/Azure/azure-sdk-for-python/sessions/9c06dcc9-46ca-449e-bafa-71feb4da46c2 Co-authored-by: ransinha1989 <122048968+ransinha1989@users.noreply.github.com> * update Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --------- Co-authored-by: Ranjana Sinha <ranjanasinha@microsoft.com> Co-authored-by: ransinha1989 <122048968+ransinha1989@users.noreply.github.com> Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: Chenxi Jiang (WICRESOFT NORTH AMERICA LTD) <v-chenjiang@microsoft.com> Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Co-authored-by: ChenxiJiang333 <119990644+ChenxiJiang333@users.noreply.github.com>
1 parent 4b183cf commit 2c37e59

98 files changed

Lines changed: 9699 additions & 6312 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

sdk/trafficmanager/azure-mgmt-trafficmanager/CHANGELOG.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,25 @@
11
# Release History
22

3+
## 2.0.0b1 (2026-05-08)
4+
5+
### Features Added
6+
7+
- Client `TrafficManagerManagementClient` added parameter `cloud_setting` in method `__init__`
8+
- Client `TrafficManagerManagementClient` added method `send_request`
9+
- Added model `CloudError`
10+
- Added enum `HeatMapType`
11+
- Added enum `RecordType`
12+
13+
### Breaking Changes
14+
15+
- This version introduces new hybrid models which have dual dictionary and model nature. Please follow https://aka.ms/azsdk/python/migrate/hybrid-models for migration.
16+
- For the method breakings, please refer to https://aka.ms/azsdk/python/migrate/operations for migration.
17+
- Model `HeatMapModel` moved instance variable `start_time`, `end_time`, `endpoints` and `traffic_flows` under property `properties` whose type is `HeatMapProperties`
18+
- Model `TrafficManagerGeographicHierarchy` moved instance variable `geographic_hierarchy` under property `properties` whose type is `GeographicHierarchyProperties`
19+
- Model `UserMetricsModel` moved instance variable `key` under property `properties` whose type is `UserMetricsProperties`
20+
- Method `HeatMapOperations.get` changed its parameter `top_left`/`bot_right` from `positional_or_keyword` to `keyword_only`
21+
- Method `HeatMapOperations.get` inserted a `positional_or_keyword` parameter `heat_map_type`
22+
323
## 1.1.0 (2023-06-16)
424

525
### Features Added
Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1-
include _meta.json
2-
recursive-include tests *.py *.json
3-
recursive-include samples *.py *.md
41
include *.md
5-
include azure/__init__.py
6-
include azure/mgmt/__init__.py
72
include LICENSE
83
include azure/mgmt/trafficmanager/py.typed
4+
recursive-include tests *.py
5+
recursive-include samples *.py *.md
6+
include azure/__init__.py
7+
include azure/mgmt/__init__.py

sdk/trafficmanager/azure-mgmt-trafficmanager/README.md

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Microsoft Azure SDK for Python
22

33
This is the Microsoft Azure Traffic Manager Management Client Library.
4-
This package has been tested with Python 3.7+.
4+
This package has been tested with Python 3.10+.
55
For a more complete view of Azure libraries, see the [azure sdk python release](https://aka.ms/azsdk/python/all).
66

77
## _Disclaimer_
@@ -12,7 +12,7 @@ _Azure SDK Python packages support for Python 2.7 has ended 01 January 2022. For
1212

1313
### Prerequisites
1414

15-
- Python 3.7+ is required to use this package.
15+
- Python 3.10+ is required to use this package.
1616
- [Azure subscription](https://azure.microsoft.com/free/)
1717

1818
### Install the package
@@ -24,7 +24,7 @@ pip install azure-identity
2424

2525
### Authentication
2626

27-
By default, [Azure Active Directory](https://aka.ms/awps/aad) token authentication depends on correct configure of following environment variables.
27+
By default, [Azure Active Directory](https://aka.ms/awps/aad) token authentication depends on correct configuration of the following environment variables.
2828

2929
- `AZURE_CLIENT_ID` for Azure client ID.
3030
- `AZURE_TENANT_ID` for Azure tenant ID.
@@ -59,6 +59,3 @@ Code samples for this package can be found at:
5959
If you encounter any bugs or have suggestions, please file an issue in the
6060
[Issues](https://github.com/Azure/azure-sdk-for-python/issues)
6161
section of the project.
62-
63-
64-

sdk/trafficmanager/azure-mgmt-trafficmanager/_meta.json

Lines changed: 0 additions & 11 deletions
This file was deleted.
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"apiVersion": "2024-04-01-preview",
3+
"apiVersions": {
4+
"Microsoft.Network": "2024-04-01-preview"
5+
},
6+
"commit": "28e08376806422730d28d8dd90479d0ad68397ac",
7+
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
8+
"typespec_src": "specification/trafficmanager/resource-manager/Microsoft.Network/TrafficManager",
9+
"emitterVersion": "0.61.3"
10+
}
Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
{
2+
"CrossLanguagePackageId": "Microsoft.Network",
3+
"CrossLanguageDefinitionId": {
4+
"azure.mgmt.trafficmanager.models.CheckTrafficManagerRelativeDnsNameAvailabilityParameters": "Microsoft.Network.CheckTrafficManagerRelativeDnsNameAvailabilityParameters",
5+
"azure.mgmt.trafficmanager.models.CloudError": "Microsoft.Network.CloudError",
6+
"azure.mgmt.trafficmanager.models.CloudErrorBody": "Microsoft.Network.CloudErrorBody",
7+
"azure.mgmt.trafficmanager.models.DeleteOperationResult": "Microsoft.Network.DeleteOperationResult",
8+
"azure.mgmt.trafficmanager.models.DnsConfig": "Microsoft.Network.DnsConfig",
9+
"azure.mgmt.trafficmanager.models.Resource": "Microsoft.Network.Resource",
10+
"azure.mgmt.trafficmanager.models.ProxyResource": "Microsoft.Network.ProxyResource",
11+
"azure.mgmt.trafficmanager.models.Endpoint": "Microsoft.Network.Endpoint",
12+
"azure.mgmt.trafficmanager.models.EndpointProperties": "Microsoft.Network.EndpointProperties",
13+
"azure.mgmt.trafficmanager.models.EndpointPropertiesCustomHeadersItem": "Microsoft.Network.EndpointPropertiesCustomHeadersItem",
14+
"azure.mgmt.trafficmanager.models.EndpointPropertiesSubnetsItem": "Microsoft.Network.EndpointPropertiesSubnetsItem",
15+
"azure.mgmt.trafficmanager.models.GeographicHierarchyProperties": "Microsoft.Network.GeographicHierarchyProperties",
16+
"azure.mgmt.trafficmanager.models.HeatMapEndpoint": "Microsoft.Network.HeatMapEndpoint",
17+
"azure.mgmt.trafficmanager.models.HeatMapModel": "Microsoft.Network.HeatMapModel",
18+
"azure.mgmt.trafficmanager.models.HeatMapProperties": "Microsoft.Network.HeatMapProperties",
19+
"azure.mgmt.trafficmanager.models.MonitorConfig": "Microsoft.Network.MonitorConfig",
20+
"azure.mgmt.trafficmanager.models.MonitorConfigCustomHeadersItem": "Microsoft.Network.MonitorConfigCustomHeadersItem",
21+
"azure.mgmt.trafficmanager.models.MonitorConfigExpectedStatusCodeRangesItem": "Microsoft.Network.MonitorConfigExpectedStatusCodeRangesItem",
22+
"azure.mgmt.trafficmanager.models.TrackedResource": "Microsoft.Network.TrackedResource",
23+
"azure.mgmt.trafficmanager.models.Profile": "Microsoft.Network.Profile",
24+
"azure.mgmt.trafficmanager.models.ProfileProperties": "Microsoft.Network.ProfileProperties",
25+
"azure.mgmt.trafficmanager.models.QueryExperience": "Microsoft.Network.QueryExperience",
26+
"azure.mgmt.trafficmanager.models.Region": "Microsoft.Network.Region",
27+
"azure.mgmt.trafficmanager.models.TrafficFlow": "Microsoft.Network.TrafficFlow",
28+
"azure.mgmt.trafficmanager.models.TrafficManagerGeographicHierarchy": "Microsoft.Network.TrafficManagerGeographicHierarchy",
29+
"azure.mgmt.trafficmanager.models.TrafficManagerNameAvailability": "Microsoft.Network.TrafficManagerNameAvailability",
30+
"azure.mgmt.trafficmanager.models.UserMetricsModel": "Microsoft.Network.UserMetricsModel",
31+
"azure.mgmt.trafficmanager.models.UserMetricsProperties": "Microsoft.Network.UserMetricsProperties",
32+
"azure.mgmt.trafficmanager.models.EndpointStatus": "Microsoft.Network.EndpointStatus",
33+
"azure.mgmt.trafficmanager.models.EndpointMonitorStatus": "Microsoft.Network.EndpointMonitorStatus",
34+
"azure.mgmt.trafficmanager.models.AlwaysServe": "Microsoft.Network.AlwaysServe",
35+
"azure.mgmt.trafficmanager.models.EndpointType": "Microsoft.Network.EndpointType",
36+
"azure.mgmt.trafficmanager.models.ProfileStatus": "Microsoft.Network.ProfileStatus",
37+
"azure.mgmt.trafficmanager.models.TrafficRoutingMethod": "Microsoft.Network.TrafficRoutingMethod",
38+
"azure.mgmt.trafficmanager.models.ProfileMonitorStatus": "Microsoft.Network.ProfileMonitorStatus",
39+
"azure.mgmt.trafficmanager.models.MonitorProtocol": "Microsoft.Network.MonitorProtocol",
40+
"azure.mgmt.trafficmanager.models.TrafficViewEnrollmentStatus": "Microsoft.Network.TrafficViewEnrollmentStatus",
41+
"azure.mgmt.trafficmanager.models.AllowedEndpointRecordType": "Microsoft.Network.AllowedEndpointRecordType",
42+
"azure.mgmt.trafficmanager.models.RecordType": "Microsoft.Network.RecordType",
43+
"azure.mgmt.trafficmanager.models.HeatMapType": "Microsoft.Network.HeatMapType",
44+
"azure.mgmt.trafficmanager.operations.EndpointsOperations.get": "Microsoft.Network.Endpoints.get",
45+
"azure.mgmt.trafficmanager.aio.operations.EndpointsOperations.get": "Microsoft.Network.Endpoints.get",
46+
"azure.mgmt.trafficmanager.operations.EndpointsOperations.create_or_update": "Microsoft.Network.Endpoints.createOrUpdate",
47+
"azure.mgmt.trafficmanager.aio.operations.EndpointsOperations.create_or_update": "Microsoft.Network.Endpoints.createOrUpdate",
48+
"azure.mgmt.trafficmanager.operations.EndpointsOperations.update": "Microsoft.Network.Endpoints.update",
49+
"azure.mgmt.trafficmanager.aio.operations.EndpointsOperations.update": "Microsoft.Network.Endpoints.update",
50+
"azure.mgmt.trafficmanager.operations.EndpointsOperations.delete": "Microsoft.Network.Endpoints.delete",
51+
"azure.mgmt.trafficmanager.aio.operations.EndpointsOperations.delete": "Microsoft.Network.Endpoints.delete",
52+
"azure.mgmt.trafficmanager.operations.ProfilesOperations.get": "Microsoft.Network.Profiles.get",
53+
"azure.mgmt.trafficmanager.aio.operations.ProfilesOperations.get": "Microsoft.Network.Profiles.get",
54+
"azure.mgmt.trafficmanager.operations.ProfilesOperations.create_or_update": "Microsoft.Network.Profiles.createOrUpdate",
55+
"azure.mgmt.trafficmanager.aio.operations.ProfilesOperations.create_or_update": "Microsoft.Network.Profiles.createOrUpdate",
56+
"azure.mgmt.trafficmanager.operations.ProfilesOperations.update": "Microsoft.Network.Profiles.update",
57+
"azure.mgmt.trafficmanager.aio.operations.ProfilesOperations.update": "Microsoft.Network.Profiles.update",
58+
"azure.mgmt.trafficmanager.operations.ProfilesOperations.delete": "Microsoft.Network.Profiles.delete",
59+
"azure.mgmt.trafficmanager.aio.operations.ProfilesOperations.delete": "Microsoft.Network.Profiles.delete",
60+
"azure.mgmt.trafficmanager.operations.ProfilesOperations.list_by_subscription": "Microsoft.Network.Profiles.listBySubscription",
61+
"azure.mgmt.trafficmanager.aio.operations.ProfilesOperations.list_by_subscription": "Microsoft.Network.Profiles.listBySubscription",
62+
"azure.mgmt.trafficmanager.operations.ProfilesOperations.list_by_resource_group": "Microsoft.Network.Profiles.listByResourceGroup",
63+
"azure.mgmt.trafficmanager.aio.operations.ProfilesOperations.list_by_resource_group": "Microsoft.Network.Profiles.listByResourceGroup",
64+
"azure.mgmt.trafficmanager.operations.ProfilesOperations.check_traffic_manager_relative_dns_name_availability": "Microsoft.Network.ProfilesOperationGroup.checkTrafficManagerRelativeDnsNameAvailability",
65+
"azure.mgmt.trafficmanager.aio.operations.ProfilesOperations.check_traffic_manager_relative_dns_name_availability": "Microsoft.Network.ProfilesOperationGroup.checkTrafficManagerRelativeDnsNameAvailability",
66+
"azure.mgmt.trafficmanager.operations.ProfilesOperations.check_traffic_manager_name_availability_v2": "Microsoft.Network.ProfilesOperationGroup.checkTrafficManagerNameAvailabilityV2",
67+
"azure.mgmt.trafficmanager.aio.operations.ProfilesOperations.check_traffic_manager_name_availability_v2": "Microsoft.Network.ProfilesOperationGroup.checkTrafficManagerNameAvailabilityV2",
68+
"azure.mgmt.trafficmanager.operations.GeographicHierarchiesOperations.get_default": "Microsoft.Network.TrafficManagerGeographicHierarchies.getDefault",
69+
"azure.mgmt.trafficmanager.aio.operations.GeographicHierarchiesOperations.get_default": "Microsoft.Network.TrafficManagerGeographicHierarchies.getDefault",
70+
"azure.mgmt.trafficmanager.operations.HeatMapOperations.get": "Microsoft.Network.HeatMapModels.get",
71+
"azure.mgmt.trafficmanager.aio.operations.HeatMapOperations.get": "Microsoft.Network.HeatMapModels.get",
72+
"azure.mgmt.trafficmanager.operations.TrafficManagerUserMetricsKeysOperations.get": "Microsoft.Network.UserMetricsModels.get",
73+
"azure.mgmt.trafficmanager.aio.operations.TrafficManagerUserMetricsKeysOperations.get": "Microsoft.Network.UserMetricsModels.get",
74+
"azure.mgmt.trafficmanager.operations.TrafficManagerUserMetricsKeysOperations.create_or_update": "Microsoft.Network.UserMetricsModels.createOrUpdate",
75+
"azure.mgmt.trafficmanager.aio.operations.TrafficManagerUserMetricsKeysOperations.create_or_update": "Microsoft.Network.UserMetricsModels.createOrUpdate",
76+
"azure.mgmt.trafficmanager.operations.TrafficManagerUserMetricsKeysOperations.delete": "Microsoft.Network.UserMetricsModels.delete",
77+
"azure.mgmt.trafficmanager.aio.operations.TrafficManagerUserMetricsKeysOperations.delete": "Microsoft.Network.UserMetricsModels.delete"
78+
}
79+
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__path__ = __import__("pkgutil").extend_path(__path__, __name__)
1+
__path__ = __import__("pkgutil").extend_path(__path__, __name__) # type: ignore
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__path__ = __import__("pkgutil").extend_path(__path__, __name__)
1+
__path__ = __import__("pkgutil").extend_path(__path__, __name__) # type: ignore

sdk/trafficmanager/azure-mgmt-trafficmanager/azure/mgmt/trafficmanager/__init__.py

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,25 +2,31 @@
22
# --------------------------------------------------------------------------
33
# Copyright (c) Microsoft Corporation. All rights reserved.
44
# Licensed under the MIT License. See License.txt in the project root for license information.
5-
# Code generated by Microsoft (R) AutoRest Code Generator.
5+
# Code generated by Microsoft (R) Python Code Generator.
66
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
77
# --------------------------------------------------------------------------
8+
# pylint: disable=wrong-import-position
89

9-
from ._traffic_manager_management_client import TrafficManagerManagementClient
10+
from typing import TYPE_CHECKING
11+
12+
if TYPE_CHECKING:
13+
from ._patch import * # pylint: disable=unused-wildcard-import
14+
15+
from ._client import TrafficManagerManagementClient # type: ignore
1016
from ._version import VERSION
1117

1218
__version__ = VERSION
1319

1420
try:
1521
from ._patch import __all__ as _patch_all
16-
from ._patch import * # pylint: disable=unused-wildcard-import
22+
from ._patch import *
1723
except ImportError:
1824
_patch_all = []
1925
from ._patch import patch_sdk as _patch_sdk
2026

2127
__all__ = [
2228
"TrafficManagerManagementClient",
2329
]
24-
__all__.extend([p for p in _patch_all if p not in __all__])
30+
__all__.extend([p for p in _patch_all if p not in __all__]) # pyright: ignore
2531

2632
_patch_sdk()

0 commit comments

Comments
 (0)