Skip to content

Commit 35f1e42

Browse files
[AutoRelease] t2-iothub-2025-08-14-97732(can only be merged by SDK owner) (#42513)
* code and test * update version --------- Co-authored-by: azure-sdk <PythonSdkPipelines> Co-authored-by: ChenxiJiang333 <[email protected]>
1 parent b7a628a commit 35f1e42

File tree

195 files changed

+1639
-42504
lines changed

Some content is hidden

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

195 files changed

+1639
-42504
lines changed

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

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

3+
## 5.0.0b1 (2025-08-14)
4+
5+
### Breaking Changes
6+
7+
- This package now only targets the latest Api-Version available on Azure and removes APIs of other Api-Version. After this change, the package can have much smaller size. If your application requires a specific and non-latest Api-Version, it's recommended to pin this package to the previous released version; If your application always only use latest Api-Version, please ignore this change.
8+
39
## 4.0.0 (2025-04-09)
410

511
### Breaking Changes

sdk/iothub/azure-mgmt-iothub/MANIFEST.in

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
include _meta.json
21
recursive-include tests *.py *.json
32
recursive-include samples *.py *.md
43
include *.md

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

Lines changed: 2 additions & 2 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 IoT Hub Management Client Library.
4-
This package has been tested with Python 3.8+.
4+
This package has been tested with Python 3.9+.
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.8+ is required to use this package.
15+
- Python 3.9+ is required to use this package.
1616
- [Azure subscription](https://azure.microsoft.com/free/)
1717

1818
### Install the package

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

Lines changed: 0 additions & 11 deletions
This file was deleted.
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"commit": "1bdafdbace5d4cc7eb461433adac4a45af87c186",
3+
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
4+
"autorest": "3.10.2",
5+
"use": [
6+
"@autorest/[email protected]",
7+
"@autorest/[email protected]"
8+
],
9+
"autorest_command": "autorest specification/iothub/resource-manager/readme.md --generate-sample=True --generate-test=True --include-x-ms-examples-original-file=True --keep-setup-py=True --python --python-sdks-folder=/mnt/vss/_work/1/azure-sdk-for-python/sdk --tag=package-preview-2023-06 --use=@autorest/[email protected] --use=@autorest/[email protected] --version=3.10.2 --version-tolerant=False",
10+
"readme": "specification/iothub/resource-manager/readme.md"
11+
}
Lines changed: 191 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,191 @@
1+
{
2+
"CrossLanguagePackageId": null,
3+
"CrossLanguageDefinitionId": {
4+
"azure.mgmt.iothub.models.ArmIdentity": null,
5+
"azure.mgmt.iothub.models.ArmUserIdentity": null,
6+
"azure.mgmt.iothub.models.CertificateBodyDescription": null,
7+
"azure.mgmt.iothub.models.CertificateDescription": null,
8+
"azure.mgmt.iothub.models.CertificateListDescription": null,
9+
"azure.mgmt.iothub.models.CertificateProperties": null,
10+
"azure.mgmt.iothub.models.CertificatePropertiesWithNonce": null,
11+
"azure.mgmt.iothub.models.CertificateVerificationDescription": null,
12+
"azure.mgmt.iothub.models.CertificateWithNonceDescription": null,
13+
"azure.mgmt.iothub.models.CloudToDeviceProperties": null,
14+
"azure.mgmt.iothub.models.EncryptionPropertiesDescription": null,
15+
"azure.mgmt.iothub.models.EndpointHealthData": null,
16+
"azure.mgmt.iothub.models.EndpointHealthDataListResult": null,
17+
"azure.mgmt.iothub.models.EnrichmentProperties": null,
18+
"azure.mgmt.iothub.models.ErrorDetails": null,
19+
"azure.mgmt.iothub.models.EventHubConsumerGroupBodyDescription": null,
20+
"azure.mgmt.iothub.models.EventHubConsumerGroupInfo": null,
21+
"azure.mgmt.iothub.models.EventHubConsumerGroupName": null,
22+
"azure.mgmt.iothub.models.EventHubConsumerGroupsListResult": null,
23+
"azure.mgmt.iothub.models.EventHubProperties": null,
24+
"azure.mgmt.iothub.models.ExportDevicesRequest": null,
25+
"azure.mgmt.iothub.models.FailoverInput": null,
26+
"azure.mgmt.iothub.models.FallbackRouteProperties": null,
27+
"azure.mgmt.iothub.models.FeedbackProperties": null,
28+
"azure.mgmt.iothub.models.GroupIdInformation": null,
29+
"azure.mgmt.iothub.models.GroupIdInformationProperties": null,
30+
"azure.mgmt.iothub.models.ImportDevicesRequest": null,
31+
"azure.mgmt.iothub.models.IotHubCapacity": null,
32+
"azure.mgmt.iothub.models.Resource": null,
33+
"azure.mgmt.iothub.models.IotHubDescription": null,
34+
"azure.mgmt.iothub.models.IotHubDescriptionListResult": null,
35+
"azure.mgmt.iothub.models.IotHubLocationDescription": null,
36+
"azure.mgmt.iothub.models.IotHubNameAvailabilityInfo": null,
37+
"azure.mgmt.iothub.models.IotHubProperties": null,
38+
"azure.mgmt.iothub.models.IotHubPropertiesDeviceStreams": null,
39+
"azure.mgmt.iothub.models.IotHubQuotaMetricInfo": null,
40+
"azure.mgmt.iothub.models.IotHubQuotaMetricInfoListResult": null,
41+
"azure.mgmt.iothub.models.IotHubSkuDescription": null,
42+
"azure.mgmt.iothub.models.IotHubSkuDescriptionListResult": null,
43+
"azure.mgmt.iothub.models.IotHubSkuInfo": null,
44+
"azure.mgmt.iothub.models.IpFilterRule": null,
45+
"azure.mgmt.iothub.models.JobResponse": null,
46+
"azure.mgmt.iothub.models.JobResponseListResult": null,
47+
"azure.mgmt.iothub.models.KeyVaultKeyProperties": null,
48+
"azure.mgmt.iothub.models.ManagedIdentity": null,
49+
"azure.mgmt.iothub.models.MatchedRoute": null,
50+
"azure.mgmt.iothub.models.MessagingEndpointProperties": null,
51+
"azure.mgmt.iothub.models.Name": null,
52+
"azure.mgmt.iothub.models.NetworkRuleSetIpRule": null,
53+
"azure.mgmt.iothub.models.NetworkRuleSetProperties": null,
54+
"azure.mgmt.iothub.models.Operation": null,
55+
"azure.mgmt.iothub.models.OperationDisplay": null,
56+
"azure.mgmt.iothub.models.OperationInputs": null,
57+
"azure.mgmt.iothub.models.OperationListResult": null,
58+
"azure.mgmt.iothub.models.PrivateEndpoint": null,
59+
"azure.mgmt.iothub.models.PrivateEndpointConnection": null,
60+
"azure.mgmt.iothub.models.PrivateEndpointConnectionProperties": null,
61+
"azure.mgmt.iothub.models.PrivateLinkResources": null,
62+
"azure.mgmt.iothub.models.PrivateLinkServiceConnectionState": null,
63+
"azure.mgmt.iothub.models.RegistryStatistics": null,
64+
"azure.mgmt.iothub.models.RootCertificateProperties": null,
65+
"azure.mgmt.iothub.models.RouteCompilationError": null,
66+
"azure.mgmt.iothub.models.RouteErrorPosition": null,
67+
"azure.mgmt.iothub.models.RouteErrorRange": null,
68+
"azure.mgmt.iothub.models.RouteProperties": null,
69+
"azure.mgmt.iothub.models.RoutingCosmosDBSqlApiProperties": null,
70+
"azure.mgmt.iothub.models.RoutingEndpoints": null,
71+
"azure.mgmt.iothub.models.RoutingEventHubProperties": null,
72+
"azure.mgmt.iothub.models.RoutingMessage": null,
73+
"azure.mgmt.iothub.models.RoutingProperties": null,
74+
"azure.mgmt.iothub.models.RoutingServiceBusQueueEndpointProperties": null,
75+
"azure.mgmt.iothub.models.RoutingServiceBusTopicEndpointProperties": null,
76+
"azure.mgmt.iothub.models.RoutingStorageContainerProperties": null,
77+
"azure.mgmt.iothub.models.RoutingTwin": null,
78+
"azure.mgmt.iothub.models.RoutingTwinProperties": null,
79+
"azure.mgmt.iothub.models.SharedAccessSignatureAuthorizationRule": null,
80+
"azure.mgmt.iothub.models.SharedAccessSignatureAuthorizationRuleListResult": null,
81+
"azure.mgmt.iothub.models.StorageEndpointProperties": null,
82+
"azure.mgmt.iothub.models.SystemData": null,
83+
"azure.mgmt.iothub.models.TagsResource": null,
84+
"azure.mgmt.iothub.models.TestAllRoutesInput": null,
85+
"azure.mgmt.iothub.models.TestAllRoutesResult": null,
86+
"azure.mgmt.iothub.models.TestRouteInput": null,
87+
"azure.mgmt.iothub.models.TestRouteResult": null,
88+
"azure.mgmt.iothub.models.TestRouteResultDetails": null,
89+
"azure.mgmt.iothub.models.UserSubscriptionQuota": null,
90+
"azure.mgmt.iothub.models.UserSubscriptionQuotaListResult": null,
91+
"azure.mgmt.iothub.models.AccessRights": null,
92+
"azure.mgmt.iothub.models.IpFilterActionType": null,
93+
"azure.mgmt.iothub.models.NetworkRuleIPAction": null,
94+
"azure.mgmt.iothub.models.PrivateLinkServiceConnectionStatus": null,
95+
"azure.mgmt.iothub.models.AuthenticationType": null,
96+
"azure.mgmt.iothub.models.RoutingStorageContainerPropertiesEncoding": null,
97+
"azure.mgmt.iothub.models.RoutingSource": null,
98+
"azure.mgmt.iothub.models.IotHubReplicaRoleType": null,
99+
"azure.mgmt.iothub.models.PublicNetworkAccess": null,
100+
"azure.mgmt.iothub.models.DefaultAction": null,
101+
"azure.mgmt.iothub.models.Capabilities": null,
102+
"azure.mgmt.iothub.models.IpVersion": null,
103+
"azure.mgmt.iothub.models.IotHubSku": null,
104+
"azure.mgmt.iothub.models.IotHubSkuTier": null,
105+
"azure.mgmt.iothub.models.ResourceIdentityType": null,
106+
"azure.mgmt.iothub.models.CreatedByType": null,
107+
"azure.mgmt.iothub.models.IotHubScaleType": null,
108+
"azure.mgmt.iothub.models.JobType": null,
109+
"azure.mgmt.iothub.models.JobStatus": null,
110+
"azure.mgmt.iothub.models.EndpointHealthStatus": null,
111+
"azure.mgmt.iothub.models.RouteErrorSeverity": null,
112+
"azure.mgmt.iothub.models.TestResultStatus": null,
113+
"azure.mgmt.iothub.models.IotHubNameUnavailabilityReason": null,
114+
"azure.mgmt.iothub.operations.Operations.list": null,
115+
"azure.mgmt.iothub.aio.operations.Operations.list": null,
116+
"azure.mgmt.iothub.operations.IotHubResourceOperations.get": null,
117+
"azure.mgmt.iothub.aio.operations.IotHubResourceOperations.get": null,
118+
"azure.mgmt.iothub.operations.IotHubResourceOperations.begin_create_or_update": null,
119+
"azure.mgmt.iothub.aio.operations.IotHubResourceOperations.begin_create_or_update": null,
120+
"azure.mgmt.iothub.operations.IotHubResourceOperations.begin_update": null,
121+
"azure.mgmt.iothub.aio.operations.IotHubResourceOperations.begin_update": null,
122+
"azure.mgmt.iothub.operations.IotHubResourceOperations.begin_delete": null,
123+
"azure.mgmt.iothub.aio.operations.IotHubResourceOperations.begin_delete": null,
124+
"azure.mgmt.iothub.operations.IotHubResourceOperations.list_by_subscription": null,
125+
"azure.mgmt.iothub.aio.operations.IotHubResourceOperations.list_by_subscription": null,
126+
"azure.mgmt.iothub.operations.IotHubResourceOperations.list_by_resource_group": null,
127+
"azure.mgmt.iothub.aio.operations.IotHubResourceOperations.list_by_resource_group": null,
128+
"azure.mgmt.iothub.operations.IotHubResourceOperations.get_stats": null,
129+
"azure.mgmt.iothub.aio.operations.IotHubResourceOperations.get_stats": null,
130+
"azure.mgmt.iothub.operations.IotHubResourceOperations.get_valid_skus": null,
131+
"azure.mgmt.iothub.aio.operations.IotHubResourceOperations.get_valid_skus": null,
132+
"azure.mgmt.iothub.operations.IotHubResourceOperations.list_event_hub_consumer_groups": null,
133+
"azure.mgmt.iothub.aio.operations.IotHubResourceOperations.list_event_hub_consumer_groups": null,
134+
"azure.mgmt.iothub.operations.IotHubResourceOperations.get_event_hub_consumer_group": null,
135+
"azure.mgmt.iothub.aio.operations.IotHubResourceOperations.get_event_hub_consumer_group": null,
136+
"azure.mgmt.iothub.operations.IotHubResourceOperations.create_event_hub_consumer_group": null,
137+
"azure.mgmt.iothub.aio.operations.IotHubResourceOperations.create_event_hub_consumer_group": null,
138+
"azure.mgmt.iothub.operations.IotHubResourceOperations.delete_event_hub_consumer_group": null,
139+
"azure.mgmt.iothub.aio.operations.IotHubResourceOperations.delete_event_hub_consumer_group": null,
140+
"azure.mgmt.iothub.operations.IotHubResourceOperations.list_jobs": null,
141+
"azure.mgmt.iothub.aio.operations.IotHubResourceOperations.list_jobs": null,
142+
"azure.mgmt.iothub.operations.IotHubResourceOperations.get_job": null,
143+
"azure.mgmt.iothub.aio.operations.IotHubResourceOperations.get_job": null,
144+
"azure.mgmt.iothub.operations.IotHubResourceOperations.get_quota_metrics": null,
145+
"azure.mgmt.iothub.aio.operations.IotHubResourceOperations.get_quota_metrics": null,
146+
"azure.mgmt.iothub.operations.IotHubResourceOperations.get_endpoint_health": null,
147+
"azure.mgmt.iothub.aio.operations.IotHubResourceOperations.get_endpoint_health": null,
148+
"azure.mgmt.iothub.operations.IotHubResourceOperations.check_name_availability": null,
149+
"azure.mgmt.iothub.aio.operations.IotHubResourceOperations.check_name_availability": null,
150+
"azure.mgmt.iothub.operations.IotHubResourceOperations.test_all_routes": null,
151+
"azure.mgmt.iothub.aio.operations.IotHubResourceOperations.test_all_routes": null,
152+
"azure.mgmt.iothub.operations.IotHubResourceOperations.test_route": null,
153+
"azure.mgmt.iothub.aio.operations.IotHubResourceOperations.test_route": null,
154+
"azure.mgmt.iothub.operations.IotHubResourceOperations.list_keys": null,
155+
"azure.mgmt.iothub.aio.operations.IotHubResourceOperations.list_keys": null,
156+
"azure.mgmt.iothub.operations.IotHubResourceOperations.get_keys_for_key_name": null,
157+
"azure.mgmt.iothub.aio.operations.IotHubResourceOperations.get_keys_for_key_name": null,
158+
"azure.mgmt.iothub.operations.IotHubResourceOperations.export_devices": null,
159+
"azure.mgmt.iothub.aio.operations.IotHubResourceOperations.export_devices": null,
160+
"azure.mgmt.iothub.operations.IotHubResourceOperations.import_devices": null,
161+
"azure.mgmt.iothub.aio.operations.IotHubResourceOperations.import_devices": null,
162+
"azure.mgmt.iothub.operations.ResourceProviderCommonOperations.get_subscription_quota": null,
163+
"azure.mgmt.iothub.aio.operations.ResourceProviderCommonOperations.get_subscription_quota": null,
164+
"azure.mgmt.iothub.operations.CertificatesOperations.list_by_iot_hub": null,
165+
"azure.mgmt.iothub.aio.operations.CertificatesOperations.list_by_iot_hub": null,
166+
"azure.mgmt.iothub.operations.CertificatesOperations.get": null,
167+
"azure.mgmt.iothub.aio.operations.CertificatesOperations.get": null,
168+
"azure.mgmt.iothub.operations.CertificatesOperations.create_or_update": null,
169+
"azure.mgmt.iothub.aio.operations.CertificatesOperations.create_or_update": null,
170+
"azure.mgmt.iothub.operations.CertificatesOperations.delete": null,
171+
"azure.mgmt.iothub.aio.operations.CertificatesOperations.delete": null,
172+
"azure.mgmt.iothub.operations.CertificatesOperations.generate_verification_code": null,
173+
"azure.mgmt.iothub.aio.operations.CertificatesOperations.generate_verification_code": null,
174+
"azure.mgmt.iothub.operations.CertificatesOperations.verify": null,
175+
"azure.mgmt.iothub.aio.operations.CertificatesOperations.verify": null,
176+
"azure.mgmt.iothub.operations.IotHubOperations.begin_manual_failover": null,
177+
"azure.mgmt.iothub.aio.operations.IotHubOperations.begin_manual_failover": null,
178+
"azure.mgmt.iothub.operations.PrivateLinkResourcesOperations.list": null,
179+
"azure.mgmt.iothub.aio.operations.PrivateLinkResourcesOperations.list": null,
180+
"azure.mgmt.iothub.operations.PrivateLinkResourcesOperations.get": null,
181+
"azure.mgmt.iothub.aio.operations.PrivateLinkResourcesOperations.get": null,
182+
"azure.mgmt.iothub.operations.PrivateEndpointConnectionsOperations.list": null,
183+
"azure.mgmt.iothub.aio.operations.PrivateEndpointConnectionsOperations.list": null,
184+
"azure.mgmt.iothub.operations.PrivateEndpointConnectionsOperations.get": null,
185+
"azure.mgmt.iothub.aio.operations.PrivateEndpointConnectionsOperations.get": null,
186+
"azure.mgmt.iothub.operations.PrivateEndpointConnectionsOperations.begin_update": null,
187+
"azure.mgmt.iothub.aio.operations.PrivateEndpointConnectionsOperations.begin_update": null,
188+
"azure.mgmt.iothub.operations.PrivateEndpointConnectionsOperations.begin_delete": null,
189+
"azure.mgmt.iothub.aio.operations.PrivateEndpointConnectionsOperations.begin_delete": null
190+
}
191+
}

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

Lines changed: 19 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,28 @@
55
# Code generated by Microsoft (R) AutoRest 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 ._iot_hub_client import IotHubClient
10-
__all__ = ['IotHubClient']
10+
from typing import TYPE_CHECKING
1111

12-
try:
13-
from ._patch import patch_sdk # type: ignore
14-
patch_sdk()
15-
except ImportError:
16-
pass
12+
if TYPE_CHECKING:
13+
from ._patch import * # pylint: disable=unused-wildcard-import
1714

15+
from ._iot_hub_client import IotHubClient # type: ignore
1816
from ._version import VERSION
1917

2018
__version__ = VERSION
19+
20+
try:
21+
from ._patch import __all__ as _patch_all
22+
from ._patch import *
23+
except ImportError:
24+
_patch_all = []
25+
from ._patch import patch_sdk as _patch_sdk
26+
27+
__all__ = [
28+
"IotHubClient",
29+
]
30+
__all__.extend([p for p in _patch_all if p not in __all__]) # pyright: ignore
31+
32+
_patch_sdk()

0 commit comments

Comments
 (0)