Skip to content

[AutoPR azure-mgmt-iothub]-generated-from-SDK Generation - Python-6591396 - #48156

Merged
ChenxiJiang333 merged 2 commits into
mainfrom
sdkauto/azure-mgmt-iothub-6589430
Aug 12, 2026
Merged

[AutoPR azure-mgmt-iothub]-generated-from-SDK Generation - Python-6591396#48156
ChenxiJiang333 merged 2 commits into
mainfrom
sdkauto/azure-mgmt-iothub-6589430

Conversation

@azure-sdk-automation

@azure-sdk-automation azure-sdk-automation Bot commented Jul 20, 2026

Copy link
Copy Markdown
Contributor

Configurations: 'specification/iothub/resource-manager/Microsoft.Devices/IoTHub/tspconfig.yaml', SDK Release Type: beta, and CommitSHA: '81261972e09ae6977caf311750928c7a42876ad8' in SpecRepo: 'https://github.com/Azure/azure-rest-api-specs' Pipeline run: https://dev.azure.com/azure-sdk/internal/_build/results?buildId=6591396 Refer to https://eng.ms/docs/products/azure-developer-experience/develop/sdk-release/sdk-release-prerequisites to prepare for SDK release. Release plan link: https://azsdk-releaseplan-dashboard-hveph5aqhhcfhtgu.westus-01.azurewebsites.net/?releaseplan=35394 Submitted by:

Copilot AI review requested due to automatic review settings July 20, 2026 20:01
@azure-sdk-automation azure-sdk-automation Bot added the auto-release When merged to main, release pipelines for this PR's changed packages trigger automatically. label Jul 20, 2026
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).
9 pipeline(s) were filtered out due to trigger conditions.
There may be pipelines that require an authorized user to comment /azp run to run.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Note

Copilot could not run the full agentic suite for this review because it was automatically requested on a bot-authored pull request. Request a review from Copilot under Reviewers to retry with the full agentic suite. Improved support for bot-authored pull requests is coming soon.

Updates the azure-mgmt-iothub Python SDK to a newer IoT Hub preview API version, adding new routing surface area (Event Streams) and regenerating code/tests/samples accordingly.

Changes:

  • Bumped default REST API version to 2026-05-01-preview and refreshed generated samples/tests.
  • Added Event Streams routing support (model + enum) and introduced a public types (TypedDict) surface.
  • Updated serialization/deserialization utilities (duration encodings + XML/header fast paths) and bumped package version to 5.0.0b4.

Reviewed changes

Copilot reviewed 67 out of 68 changed files in this pull request and generated 5 comments.

Show a summary per file
File Description
sdk/iothub/azure-mgmt-iothub/tsp-location.yaml Updates the tracked azure-rest-api-specs commit used for generation.
sdk/iothub/azure-mgmt-iothub/pyproject.toml Adds a Trove classifier for Python 3.14.
sdk/iothub/azure-mgmt-iothub/generated_tests/test_iot_hub_iot_hub_resource_operations_async.py Updates async tests for new request shapes (eventStreams, twin structure).
sdk/iothub/azure-mgmt-iothub/generated_tests/test_iot_hub_iot_hub_resource_operations.py Updates sync tests for new request shapes (eventStreams, twin structure).
sdk/iothub/azure-mgmt-iothub/generated_samples/iothub_usages.py Regenerates sample metadata to 2026-05-01-preview.
sdk/iothub/azure-mgmt-iothub/generated_samples/iothub_updateprivateendpointconnection.py Regenerates sample metadata to 2026-05-01-preview.
sdk/iothub/azure-mgmt-iothub/generated_samples/iothub_testnewroute.py Regenerates sample metadata to 2026-05-01-preview.
sdk/iothub/azure-mgmt-iothub/generated_samples/iothub_testallroutes.py Regenerates sample metadata to 2026-05-01-preview.
sdk/iothub/azure-mgmt-iothub/generated_samples/iothub_stats.py Regenerates sample metadata to 2026-05-01-preview.
sdk/iothub/azure-mgmt-iothub/generated_samples/iothub_routingendpointhealth.py Regenerates sample metadata to 2026-05-01-preview.
sdk/iothub/azure-mgmt-iothub/generated_samples/iothub_quotametrics.py Regenerates sample metadata to 2026-05-01-preview.
sdk/iothub/azure-mgmt-iothub/generated_samples/iothub_patch.py Regenerates sample metadata to 2026-05-01-preview.
sdk/iothub/azure-mgmt-iothub/generated_samples/iothub_operations.py Regenerates sample metadata to 2026-05-01-preview.
sdk/iothub/azure-mgmt-iothub/generated_samples/iothub_listprivatelinkresources.py Regenerates sample metadata to 2026-05-01-preview.
sdk/iothub/azure-mgmt-iothub/generated_samples/iothub_listprivateendpointconnections.py Regenerates sample metadata to 2026-05-01-preview.
sdk/iothub/azure-mgmt-iothub/generated_samples/iothub_listkeys.py Regenerates sample metadata to 2026-05-01-preview.
sdk/iothub/azure-mgmt-iothub/generated_samples/iothub_listjobs.py Regenerates sample metadata to 2026-05-01-preview.
sdk/iothub/azure-mgmt-iothub/generated_samples/iothub_listehgroups.py Regenerates sample metadata to 2026-05-01-preview.
sdk/iothub/azure-mgmt-iothub/generated_samples/iothub_listcertificates.py Regenerates sample metadata to 2026-05-01-preview.
sdk/iothub/azure-mgmt-iothub/generated_samples/iothub_listbysubscription.py Regenerates sample metadata to 2026-05-01-preview.
sdk/iothub/azure-mgmt-iothub/generated_samples/iothub_listbyrg.py Regenerates sample metadata to 2026-05-01-preview.
sdk/iothub/azure-mgmt-iothub/generated_samples/iothub_importdevices.py Regenerates sample metadata to 2026-05-01-preview.
sdk/iothub/azure-mgmt-iothub/generated_samples/iothub_getskus.py Regenerates sample metadata to 2026-05-01-preview.
sdk/iothub/azure-mgmt-iothub/generated_samples/iothub_getprivatelinkresources.py Regenerates sample metadata to 2026-05-01-preview.
sdk/iothub/azure-mgmt-iothub/generated_samples/iothub_getprivateendpointconnection.py Regenerates sample metadata to 2026-05-01-preview.
sdk/iothub/azure-mgmt-iothub/generated_samples/iothub_getkey.py Regenerates sample metadata to 2026-05-01-preview.
sdk/iothub/azure-mgmt-iothub/generated_samples/iothub_getjob.py Regenerates sample metadata to 2026-05-01-preview.
sdk/iothub/azure-mgmt-iothub/generated_samples/iothub_getconsumergroup.py Regenerates sample metadata to 2026-05-01-preview.
sdk/iothub/azure-mgmt-iothub/generated_samples/iothub_getcertificate.py Regenerates sample metadata to 2026-05-01-preview.
sdk/iothub/azure-mgmt-iothub/generated_samples/iothub_get.py Regenerates sample metadata to 2026-05-01-preview.
sdk/iothub/azure-mgmt-iothub/generated_samples/iothub_generateverificationcode.py Regenerates sample metadata to 2026-05-01-preview.
sdk/iothub/azure-mgmt-iothub/generated_samples/iothub_exportdevices.py Regenerates sample metadata to 2026-05-01-preview.
sdk/iothub/azure-mgmt-iothub/generated_samples/iothub_deleteprivateendpointconnection.py Regenerates sample metadata to 2026-05-01-preview.
sdk/iothub/azure-mgmt-iothub/generated_samples/iothub_deleteconsumergroup.py Regenerates sample metadata to 2026-05-01-preview.
sdk/iothub/azure-mgmt-iothub/generated_samples/iothub_delete.py Regenerates sample metadata to 2026-05-01-preview.
sdk/iothub/azure-mgmt-iothub/generated_samples/iothub_createconsumergroup.py Regenerates sample metadata to 2026-05-01-preview.
sdk/iothub/azure-mgmt-iothub/generated_samples/iothub_create_or_update.py Updates sample payload to include identity + eventStreams endpoint.
sdk/iothub/azure-mgmt-iothub/generated_samples/iothub_certverify.py Regenerates sample metadata to 2026-05-01-preview.
sdk/iothub/azure-mgmt-iothub/generated_samples/iothub_certificatesdelete.py Regenerates sample metadata to 2026-05-01-preview.
sdk/iothub/azure-mgmt-iothub/generated_samples/iothub_certificatescreateorupdate.py Regenerates sample metadata to 2026-05-01-preview.
sdk/iothub/azure-mgmt-iothub/generated_samples/iot_hub_manual_failover.py Regenerates sample metadata to 2026-05-01-preview.
sdk/iothub/azure-mgmt-iothub/generated_samples/create_or_replace_io_thub_with_device_registry.py Adds eventStreams to routing endpoints and updates SKU in sample.
sdk/iothub/azure-mgmt-iothub/generated_samples/create_or_replace_certificates_with_device_registry_policy.py Regenerates sample metadata to 2026-05-01-preview.
sdk/iothub/azure-mgmt-iothub/generated_samples/check_name_availability.py Regenerates sample metadata to 2026-05-01-preview.
sdk/iothub/azure-mgmt-iothub/azure/mgmt/iothub/types.py Adds public types module (TypedDict request/shape definitions).
sdk/iothub/azure-mgmt-iothub/azure/mgmt/iothub/operations/_patch.py Minor regeneration formatting (blank line).
sdk/iothub/azure-mgmt-iothub/azure/mgmt/iothub/operations/_operations.py Bumps api-version defaults and shifts request typing to types (TypedDict).
sdk/iothub/azure-mgmt-iothub/azure/mgmt/iothub/models/_patch.py Minor regeneration formatting (blank line).
sdk/iothub/azure-mgmt-iothub/azure/mgmt/iothub/models/_models.py Adds event_streams to RoutingEndpoints + introduces RoutingEventStreamProperties; updates SKU docs and twin typing.
sdk/iothub/azure-mgmt-iothub/azure/mgmt/iothub/models/_enums.py Adds EventStreamAuthenticationType and removes GEN2 / Generation2 enum members.
sdk/iothub/azure-mgmt-iothub/azure/mgmt/iothub/models/init.py Re-exports new Event Streams model/enum.
sdk/iothub/azure-mgmt-iothub/azure/mgmt/iothub/aio/operations/_patch.py Minor regeneration formatting (blank line).
sdk/iothub/azure-mgmt-iothub/azure/mgmt/iothub/aio/operations/_operations.py Async operations updated similarly (api-version + TypedDict inputs).
sdk/iothub/azure-mgmt-iothub/azure/mgmt/iothub/aio/_patch.py Minor regeneration formatting (blank line).
sdk/iothub/azure-mgmt-iothub/azure/mgmt/iothub/aio/_configuration.py Updates default api_version to 2026-05-01-preview.
sdk/iothub/azure-mgmt-iothub/azure/mgmt/iothub/aio/_client.py Updates docs for default api_version to 2026-05-01-preview.
sdk/iothub/azure-mgmt-iothub/azure/mgmt/iothub/_version.py Bumps package version to 5.0.0b4.
sdk/iothub/azure-mgmt-iothub/azure/mgmt/iothub/_utils/serialization.py Adds duration numeric serializers + header scalar fast-path deserialization.
sdk/iothub/azure-mgmt-iothub/azure/mgmt/iothub/_utils/model_base.py Adds duration formats + XML deserialization fast path and rest_field deserializer= hook.
sdk/iothub/azure-mgmt-iothub/azure/mgmt/iothub/_patch.py Minor regeneration formatting (blank line).
sdk/iothub/azure-mgmt-iothub/azure/mgmt/iothub/_configuration.py Updates default api_version to 2026-05-01-preview.
sdk/iothub/azure-mgmt-iothub/azure/mgmt/iothub/_client.py Updates docs for default api_version to 2026-05-01-preview.
sdk/iothub/azure-mgmt-iothub/apiview-properties.json Adds new model/enum mappings for APIView and bumps cross-language hash.
sdk/iothub/azure-mgmt-iothub/api.metadata.yml Adds generation metadata (parser/python version, file hash).
sdk/iothub/azure-mgmt-iothub/_metadata.json Updates API version, commit, emitter info, and adds http client version constraint.
sdk/iothub/azure-mgmt-iothub/README.md Updates auth naming/link to Microsoft Entra documentation.
sdk/iothub/azure-mgmt-iothub/CHANGELOG.md Adds 5.0.0b4 entry describing Event Streams and breaking enum removals.
Comments suppressed due to low confidence (1)

sdk/iothub/azure-mgmt-iothub/pyproject.toml:1

  • Adding the Trove classifier for Python 3.14 may fail packaging validation tooling if PyPI/trove classifiers do not yet recognize it in the target release environment. If this repo's release tooling validates classifiers strictly, consider deferring this until the classifier is officially available, or gating it behind the same version constraints used elsewhere in the repo.

Comment thread sdk/iothub/azure-mgmt-iothub/azure/mgmt/iothub/_utils/model_base.py
Comment thread sdk/iothub/azure-mgmt-iothub/azure/mgmt/iothub/types.py
@ChenxiJiang333

Copy link
Copy Markdown
Member

Hi, the new api version 2026-05-01-preview seems not deployed on portal yet, we recommend making sure the api version to be deployed before releasing the SDK, though we won't block the release in self-serve release flow.

@ChenxiJiang333

ChenxiJiang333 commented Jul 21, 2026

Copy link
Copy Markdown
Member

Hi fazho, we have approved the PR and we will hold the PR merge and release until you explicitly ping us to merge then release.

Copilot AI review requested due to automatic review settings July 21, 2026 02:34
@azure-sdk-automation azure-sdk-automation Bot changed the title [AutoPR azure-mgmt-iothub]-generated-from-SDK Generation - Python-6589430 [AutoPR azure-mgmt-iothub]-generated-from-SDK Generation - Python-6591396 Jul 21, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 67 out of 68 changed files in this pull request and generated 5 comments.

Comment thread sdk/iothub/azure-mgmt-iothub/azure/mgmt/iothub/_utils/model_base.py
Comment thread sdk/iothub/azure-mgmt-iothub/azure/mgmt/iothub/_utils/model_base.py
Comment thread sdk/iothub/azure-mgmt-iothub/azure/mgmt/iothub/_utils/model_base.py
@davidemontanari

Davide Montanari (davidemontanari) commented Aug 12, 2026

Copy link
Copy Markdown
Member

Hi ChenxiJiang333 and Yuchao Yan (@msyyc), f there are no blockers, this can be merged and released. Thanks.

@ChenxiJiang333
ChenxiJiang333 merged commit d59b38d into main Aug 12, 2026
23 checks passed
@ChenxiJiang333
ChenxiJiang333 deleted the sdkauto/azure-mgmt-iothub-6589430 branch August 12, 2026 02:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

auto-release When merged to main, release pipelines for this PR's changed packages trigger automatically.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants