Skip to content

Commit c498602

Browse files
azure-sdkSiongithubCopilotChenxiJiang333
authored
[AutoPR azure-mgmt-deviceregistry]-generated-from-SDK Generation - Python-6073555 (#45965)
* Configurations: 'specification/deviceregistry/DeviceRegistry.Management/tspconfig.yaml', API Version: 2026-03-01-preview, SDK Release Type: beta, and CommitSHA: '5038b362fae5e6f54bb6fe7e0a0d18370a946acf' in SpecRepo: 'https://github.com/Azure/azure-rest-api-specs' Pipeline run: https://dev.azure.com/azure-sdk/internal/_build/results?buildId=6073555 Refer to https://eng.ms/docs/products/azure-developer-experience/develop/sdk-release/sdk-release-prerequisites to prepare for SDK release. * Add CMS end-to-end scenario test for credentials and policies flow * Fix deserialize_basic bool handling: preserve existing bools without casting Agent-Logs-Url: https://github.com/Azure/azure-sdk-for-python/sessions/ef8ee488-f209-4457-8b6d-a236b0728844 Co-authored-by: Siongithub <22284770+Siongithub@users.noreply.github.com> * update --------- Co-authored-by: Suat Iskender <suatiskender@microsoft.com> Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: Siongithub <22284770+Siongithub@users.noreply.github.com> Co-authored-by: SIongithub <siskend@yahoo.com> Co-authored-by: ChenxiJiang333 <v-chenjiang@microsoft.com> Co-authored-by: ChenxiJiang333 <119990644+ChenxiJiang333@users.noreply.github.com>
1 parent e7fd302 commit c498602

109 files changed

Lines changed: 11310 additions & 2543 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/deviceregistry/azure-mgmt-deviceregistry/CHANGELOG.md

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

3+
## 1.2.0b1 (2026-03-27)
4+
5+
### Features Added
6+
7+
- Client `DeviceRegistryMgmtClient` added operation group `credentials`
8+
- Client `DeviceRegistryMgmtClient` added operation group `policies`
9+
- Model `NamespaceDeviceProperties` added property `policy`
10+
- Model `NamespaceDeviceUpdateProperties` added property `policy`
11+
- Added model `ActivateBringYourOwnRootRequest`
12+
- Added model `BringYourOwnRoot`
13+
- Added enum `BringYourOwnRootStatus`
14+
- Added model `CertificateAuthorityConfiguration`
15+
- Added model `CertificateConfiguration`
16+
- Added model `Credential`
17+
- Added model `CredentialProperties`
18+
- Added model `CredentialUpdate`
19+
- Added model `DeviceCredentialPolicy`
20+
- Added model `DeviceCredentialsRevokeRequest`
21+
- Added model `LeafCertificateConfiguration`
22+
- Added model `Policy`
23+
- Added model `PolicyProperties`
24+
- Added model `PolicyUpdate`
25+
- Added model `PolicyUpdateProperties`
26+
- Added enum `SupportedKeyType`
27+
- Operation group `NamespaceDevicesOperations` added method `begin_revoke`
28+
- Added operation group `CredentialsOperations`
29+
- Added operation group `PoliciesOperations`
30+
331
## 1.1.0 (2025-10-23)
432

533
### Features Added

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

Lines changed: 3 additions & 3 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 Deviceregistry 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
@@ -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.
Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
{
2-
"apiVersion": "2025-10-01",
3-
"commit": "b562b95b6429f78f6c8629d5751bfeef1be7cacd",
2+
"apiVersion": "2026-03-01-preview",
3+
"apiVersions": {
4+
"Microsoft.DeviceRegistry": "2026-03-01-preview"
5+
},
6+
"commit": "5038b362fae5e6f54bb6fe7e0a0d18370a946acf",
47
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
58
"typespec_src": "specification/deviceregistry/DeviceRegistry.Management",
6-
"emitterVersion": "0.52.1"
9+
"emitterVersion": "0.61.2"
710
}

sdk/deviceregistry/azure-mgmt-deviceregistry/apiview-properties.json

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"CrossLanguagePackageId": "Microsoft.DeviceRegistry",
33
"CrossLanguageDefinitionId": {
4+
"azure.mgmt.deviceregistry.models.ActivateBringYourOwnRootRequest": "Microsoft.DeviceRegistry.ActivateBringYourOwnRootRequest",
45
"azure.mgmt.deviceregistry.models.Resource": "Azure.ResourceManager.CommonTypes.Resource",
56
"azure.mgmt.deviceregistry.models.TrackedResource": "Azure.ResourceManager.CommonTypes.TrackedResource",
67
"azure.mgmt.deviceregistry.models.Asset": "Microsoft.DeviceRegistry.Asset",
@@ -21,14 +22,22 @@
2122
"azure.mgmt.deviceregistry.models.ProxyResource": "Azure.ResourceManager.CommonTypes.ProxyResource",
2223
"azure.mgmt.deviceregistry.models.BillingContainer": "Microsoft.DeviceRegistry.BillingContainer",
2324
"azure.mgmt.deviceregistry.models.BillingContainerProperties": "Microsoft.DeviceRegistry.BillingContainerProperties",
25+
"azure.mgmt.deviceregistry.models.BringYourOwnRoot": "Microsoft.DeviceRegistry.BringYourOwnRoot",
2426
"azure.mgmt.deviceregistry.models.BrokerStateStoreDestinationConfiguration": "Microsoft.DeviceRegistry.BrokerStateStoreDestinationConfiguration",
27+
"azure.mgmt.deviceregistry.models.CertificateAuthorityConfiguration": "Microsoft.DeviceRegistry.CertificateAuthorityConfiguration",
28+
"azure.mgmt.deviceregistry.models.CertificateConfiguration": "Microsoft.DeviceRegistry.CertificateConfiguration",
29+
"azure.mgmt.deviceregistry.models.Credential": "Microsoft.DeviceRegistry.Credential",
30+
"azure.mgmt.deviceregistry.models.CredentialProperties": "Microsoft.DeviceRegistry.CredentialProperties",
31+
"azure.mgmt.deviceregistry.models.CredentialUpdate": "Azure.ResourceManager.Foundations.ResourceUpdateModel",
2532
"azure.mgmt.deviceregistry.models.DataPointBase": "Microsoft.DeviceRegistry.DataPointBase",
2633
"azure.mgmt.deviceregistry.models.DataPoint": "Microsoft.DeviceRegistry.DataPoint",
2734
"azure.mgmt.deviceregistry.models.Dataset": "Microsoft.DeviceRegistry.Dataset",
2835
"azure.mgmt.deviceregistry.models.DatasetDestination": "Microsoft.DeviceRegistry.DatasetDestination",
2936
"azure.mgmt.deviceregistry.models.DatasetBrokerStateStoreDestination": "Microsoft.DeviceRegistry.DatasetBrokerStateStoreDestination",
3037
"azure.mgmt.deviceregistry.models.DatasetMqttDestination": "Microsoft.DeviceRegistry.DatasetMqttDestination",
3138
"azure.mgmt.deviceregistry.models.DatasetStorageDestination": "Microsoft.DeviceRegistry.DatasetStorageDestination",
39+
"azure.mgmt.deviceregistry.models.DeviceCredentialPolicy": "Microsoft.DeviceRegistry.DeviceCredentialPolicy",
40+
"azure.mgmt.deviceregistry.models.DeviceCredentialsRevokeRequest": "Microsoft.DeviceRegistry.DeviceCredentialsRevokeRequest",
3241
"azure.mgmt.deviceregistry.models.DeviceMessagingEndpoint": "Microsoft.DeviceRegistry.DeviceMessagingEndpoint",
3342
"azure.mgmt.deviceregistry.models.DeviceRef": "Microsoft.DeviceRegistry.DeviceRef",
3443
"azure.mgmt.deviceregistry.models.DeviceStatus": "Microsoft.DeviceRegistry.DeviceStatus",
@@ -49,6 +58,7 @@
4958
"azure.mgmt.deviceregistry.models.ExtendedLocation": "Microsoft.DeviceRegistry.ExtendedLocation",
5059
"azure.mgmt.deviceregistry.models.HostAuthentication": "Microsoft.DeviceRegistry.HostAuthentication",
5160
"azure.mgmt.deviceregistry.models.InboundEndpoints": "Microsoft.DeviceRegistry.InboundEndpoints",
61+
"azure.mgmt.deviceregistry.models.LeafCertificateConfiguration": "Microsoft.DeviceRegistry.LeafCertificateConfiguration",
5262
"azure.mgmt.deviceregistry.models.ManagementAction": "Microsoft.DeviceRegistry.ManagementAction",
5363
"azure.mgmt.deviceregistry.models.ManagementGroup": "Microsoft.DeviceRegistry.ManagementGroup",
5464
"azure.mgmt.deviceregistry.models.MessageSchemaReference": "Microsoft.DeviceRegistry.MessageSchemaReference",
@@ -101,6 +111,10 @@
101111
"azure.mgmt.deviceregistry.models.OperationDisplay": "Azure.ResourceManager.CommonTypes.OperationDisplay",
102112
"azure.mgmt.deviceregistry.models.OperationStatusResult": "Azure.ResourceManager.CommonTypes.OperationStatusResult",
103113
"azure.mgmt.deviceregistry.models.OutboundEndpoints": "Microsoft.DeviceRegistry.OutboundEndpoints",
114+
"azure.mgmt.deviceregistry.models.Policy": "Microsoft.DeviceRegistry.Policy",
115+
"azure.mgmt.deviceregistry.models.PolicyProperties": "Microsoft.DeviceRegistry.PolicyProperties",
116+
"azure.mgmt.deviceregistry.models.PolicyUpdate": "Azure.ResourceManager.Foundations.ResourceUpdateModel",
117+
"azure.mgmt.deviceregistry.models.PolicyUpdateProperties": "Azure.ResourceManager.Foundations.ResourceUpdateModelProperties",
104118
"azure.mgmt.deviceregistry.models.Schema": "Microsoft.DeviceRegistry.Schema",
105119
"azure.mgmt.deviceregistry.models.SchemaProperties": "Microsoft.DeviceRegistry.SchemaProperties",
106120
"azure.mgmt.deviceregistry.models.SchemaRegistry": "Microsoft.DeviceRegistry.SchemaRegistry",
@@ -132,6 +146,8 @@
132146
"azure.mgmt.deviceregistry.models.AuthenticationMethod": "Microsoft.DeviceRegistry.AuthenticationMethod",
133147
"azure.mgmt.deviceregistry.models.SystemAssignedServiceIdentityType": "Azure.ResourceManager.CommonTypes.SystemAssignedServiceIdentityType",
134148
"azure.mgmt.deviceregistry.models.Scope": "Microsoft.DeviceRegistry.Scope",
149+
"azure.mgmt.deviceregistry.models.SupportedKeyType": "Microsoft.DeviceRegistry.SupportedKeyType",
150+
"azure.mgmt.deviceregistry.models.BringYourOwnRootStatus": "Microsoft.DeviceRegistry.BringYourOwnRootStatus",
135151
"azure.mgmt.deviceregistry.models.DatasetDestinationTarget": "Microsoft.DeviceRegistry.DatasetDestinationTarget",
136152
"azure.mgmt.deviceregistry.models.MqttDestinationQos": "Microsoft.DeviceRegistry.MqttDestinationQos",
137153
"azure.mgmt.deviceregistry.models.EventDestinationTarget": "Microsoft.DeviceRegistry.EventDestinationTarget",
@@ -186,6 +202,32 @@
186202
"azure.mgmt.deviceregistry.aio.operations.NamespacesOperations.list_by_subscription": "Microsoft.DeviceRegistry.Namespaces.listBySubscription",
187203
"azure.mgmt.deviceregistry.operations.NamespacesOperations.begin_migrate": "Microsoft.DeviceRegistry.Namespaces.migrate",
188204
"azure.mgmt.deviceregistry.aio.operations.NamespacesOperations.begin_migrate": "Microsoft.DeviceRegistry.Namespaces.migrate",
205+
"azure.mgmt.deviceregistry.operations.CredentialsOperations.get": "Microsoft.DeviceRegistry.Credentials.get",
206+
"azure.mgmt.deviceregistry.aio.operations.CredentialsOperations.get": "Microsoft.DeviceRegistry.Credentials.get",
207+
"azure.mgmt.deviceregistry.operations.CredentialsOperations.begin_create_or_update": "Microsoft.DeviceRegistry.Credentials.createOrUpdate",
208+
"azure.mgmt.deviceregistry.aio.operations.CredentialsOperations.begin_create_or_update": "Microsoft.DeviceRegistry.Credentials.createOrUpdate",
209+
"azure.mgmt.deviceregistry.operations.CredentialsOperations.begin_delete": "Microsoft.DeviceRegistry.Credentials.delete",
210+
"azure.mgmt.deviceregistry.aio.operations.CredentialsOperations.begin_delete": "Microsoft.DeviceRegistry.Credentials.delete",
211+
"azure.mgmt.deviceregistry.operations.CredentialsOperations.begin_update": "Microsoft.DeviceRegistry.Credentials.update",
212+
"azure.mgmt.deviceregistry.aio.operations.CredentialsOperations.begin_update": "Microsoft.DeviceRegistry.Credentials.update",
213+
"azure.mgmt.deviceregistry.operations.CredentialsOperations.list_by_resource_group": "Microsoft.DeviceRegistry.Credentials.listByResourceGroup",
214+
"azure.mgmt.deviceregistry.aio.operations.CredentialsOperations.list_by_resource_group": "Microsoft.DeviceRegistry.Credentials.listByResourceGroup",
215+
"azure.mgmt.deviceregistry.operations.CredentialsOperations.begin_synchronize": "Microsoft.DeviceRegistry.Credentials.synchronize",
216+
"azure.mgmt.deviceregistry.aio.operations.CredentialsOperations.begin_synchronize": "Microsoft.DeviceRegistry.Credentials.synchronize",
217+
"azure.mgmt.deviceregistry.operations.PoliciesOperations.get": "Microsoft.DeviceRegistry.Policies.get",
218+
"azure.mgmt.deviceregistry.aio.operations.PoliciesOperations.get": "Microsoft.DeviceRegistry.Policies.get",
219+
"azure.mgmt.deviceregistry.operations.PoliciesOperations.begin_create_or_update": "Microsoft.DeviceRegistry.Policies.createOrUpdate",
220+
"azure.mgmt.deviceregistry.aio.operations.PoliciesOperations.begin_create_or_update": "Microsoft.DeviceRegistry.Policies.createOrUpdate",
221+
"azure.mgmt.deviceregistry.operations.PoliciesOperations.begin_delete": "Microsoft.DeviceRegistry.Policies.delete",
222+
"azure.mgmt.deviceregistry.aio.operations.PoliciesOperations.begin_delete": "Microsoft.DeviceRegistry.Policies.delete",
223+
"azure.mgmt.deviceregistry.operations.PoliciesOperations.begin_update": "Microsoft.DeviceRegistry.Policies.update",
224+
"azure.mgmt.deviceregistry.aio.operations.PoliciesOperations.begin_update": "Microsoft.DeviceRegistry.Policies.update",
225+
"azure.mgmt.deviceregistry.operations.PoliciesOperations.list_by_resource_group": "Microsoft.DeviceRegistry.Policies.listByResourceGroup",
226+
"azure.mgmt.deviceregistry.aio.operations.PoliciesOperations.list_by_resource_group": "Microsoft.DeviceRegistry.Policies.listByResourceGroup",
227+
"azure.mgmt.deviceregistry.operations.PoliciesOperations.begin_revoke_issuer": "Microsoft.DeviceRegistry.Policies.revokeIssuer",
228+
"azure.mgmt.deviceregistry.aio.operations.PoliciesOperations.begin_revoke_issuer": "Microsoft.DeviceRegistry.Policies.revokeIssuer",
229+
"azure.mgmt.deviceregistry.operations.PoliciesOperations.begin_activate_bring_your_own_root": "Microsoft.DeviceRegistry.Policies.activateBringYourOwnRoot",
230+
"azure.mgmt.deviceregistry.aio.operations.PoliciesOperations.begin_activate_bring_your_own_root": "Microsoft.DeviceRegistry.Policies.activateBringYourOwnRoot",
189231
"azure.mgmt.deviceregistry.operations.NamespaceAssetsOperations.get": "Microsoft.DeviceRegistry.NamespaceAssets.get",
190232
"azure.mgmt.deviceregistry.aio.operations.NamespaceAssetsOperations.get": "Microsoft.DeviceRegistry.NamespaceAssets.get",
191233
"azure.mgmt.deviceregistry.operations.NamespaceAssetsOperations.begin_create_or_replace": "Microsoft.DeviceRegistry.NamespaceAssets.createOrReplace",
@@ -206,6 +248,8 @@
206248
"azure.mgmt.deviceregistry.aio.operations.NamespaceDevicesOperations.begin_delete": "Microsoft.DeviceRegistry.NamespaceDevices.delete",
207249
"azure.mgmt.deviceregistry.operations.NamespaceDevicesOperations.list_by_resource_group": "Microsoft.DeviceRegistry.NamespaceDevices.listByResourceGroup",
208250
"azure.mgmt.deviceregistry.aio.operations.NamespaceDevicesOperations.list_by_resource_group": "Microsoft.DeviceRegistry.NamespaceDevices.listByResourceGroup",
251+
"azure.mgmt.deviceregistry.operations.NamespaceDevicesOperations.begin_revoke": "Microsoft.DeviceRegistry.NamespaceDevices.revoke",
252+
"azure.mgmt.deviceregistry.aio.operations.NamespaceDevicesOperations.begin_revoke": "Microsoft.DeviceRegistry.NamespaceDevices.revoke",
209253
"azure.mgmt.deviceregistry.operations.NamespaceDiscoveredAssetsOperations.get": "Microsoft.DeviceRegistry.NamespaceDiscoveredAssets.get",
210254
"azure.mgmt.deviceregistry.aio.operations.NamespaceDiscoveredAssetsOperations.get": "Microsoft.DeviceRegistry.NamespaceDiscoveredAssets.get",
211255
"azure.mgmt.deviceregistry.operations.NamespaceDiscoveredAssetsOperations.begin_create_or_replace": "Microsoft.DeviceRegistry.NamespaceDiscoveredAssets.createOrReplace",

sdk/deviceregistry/azure-mgmt-deviceregistry/azure/mgmt/deviceregistry/_client.py

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,15 @@
2323
AssetEndpointProfilesOperations,
2424
AssetsOperations,
2525
BillingContainersOperations,
26+
CredentialsOperations,
2627
NamespaceAssetsOperations,
2728
NamespaceDevicesOperations,
2829
NamespaceDiscoveredAssetsOperations,
2930
NamespaceDiscoveredDevicesOperations,
3031
NamespacesOperations,
3132
OperationStatusOperations,
3233
Operations,
34+
PoliciesOperations,
3335
SchemaRegistriesOperations,
3436
SchemaVersionsOperations,
3537
SchemasOperations,
@@ -56,6 +58,10 @@ class DeviceRegistryMgmtClient: # pylint: disable=too-many-instance-attributes
5658
:vartype billing_containers: azure.mgmt.deviceregistry.operations.BillingContainersOperations
5759
:ivar namespaces: NamespacesOperations operations
5860
:vartype namespaces: azure.mgmt.deviceregistry.operations.NamespacesOperations
61+
:ivar credentials: CredentialsOperations operations
62+
:vartype credentials: azure.mgmt.deviceregistry.operations.CredentialsOperations
63+
:ivar policies: PoliciesOperations operations
64+
:vartype policies: azure.mgmt.deviceregistry.operations.PoliciesOperations
5965
:ivar namespace_assets: NamespaceAssetsOperations operations
6066
:vartype namespace_assets: azure.mgmt.deviceregistry.operations.NamespaceAssetsOperations
6167
:ivar namespace_devices: NamespaceDevicesOperations operations
@@ -81,8 +87,9 @@ class DeviceRegistryMgmtClient: # pylint: disable=too-many-instance-attributes
8187
:keyword cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is
8288
None.
8389
:paramtype cloud_setting: ~azure.core.AzureClouds
84-
:keyword api_version: The API version to use for this operation. Default value is "2025-10-01".
85-
Note that overriding this default value may result in unsupported behavior.
90+
:keyword api_version: The API version to use for this operation. Known values are
91+
"2026-03-01-preview". Default value is "2026-03-01-preview". Note that overriding this default
92+
value may result in unsupported behavior.
8693
:paramtype api_version: str
8794
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no
8895
Retry-After header is present.
@@ -147,6 +154,8 @@ def __init__(
147154
self._client, self._config, self._serialize, self._deserialize
148155
)
149156
self.namespaces = NamespacesOperations(self._client, self._config, self._serialize, self._deserialize)
157+
self.credentials = CredentialsOperations(self._client, self._config, self._serialize, self._deserialize)
158+
self.policies = PoliciesOperations(self._client, self._config, self._serialize, self._deserialize)
150159
self.namespace_assets = NamespaceAssetsOperations(
151160
self._client, self._config, self._serialize, self._deserialize
152161
)

sdk/deviceregistry/azure-mgmt-deviceregistry/azure/mgmt/deviceregistry/_configuration.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,9 @@ class DeviceRegistryMgmtClientConfiguration: # pylint: disable=too-many-instanc
3333
:param cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is
3434
None.
3535
:type cloud_setting: ~azure.core.AzureClouds
36-
:keyword api_version: The API version to use for this operation. Default value is "2025-10-01".
37-
Note that overriding this default value may result in unsupported behavior.
36+
:keyword api_version: The API version to use for this operation. Known values are
37+
"2026-03-01-preview". Default value is "2026-03-01-preview". Note that overriding this default
38+
value may result in unsupported behavior.
3839
:paramtype api_version: str
3940
"""
4041

@@ -46,7 +47,7 @@ def __init__(
4647
cloud_setting: Optional["AzureClouds"] = None,
4748
**kwargs: Any
4849
) -> None:
49-
api_version: str = kwargs.pop("api_version", "2025-10-01")
50+
api_version: str = kwargs.pop("api_version", "2026-03-01-preview")
5051

5152
if credential is None:
5253
raise ValueError("Parameter 'credential' must not be None.")

0 commit comments

Comments
 (0)