Skip to content

Commit b4394d3

Browse files
azure-sdkChenxiJiang333msyyc
authored
[AutoRelease] t2-msi-2025-08-15-48533(can only be merged by SDK owner) (#42537)
* code and test * update changelog * Update sdk/resources/azure-mgmt-msi/CHANGELOG.md * Update sdk/resources/azure-mgmt-msi/azure/mgmt/msi/_version.py * update * add changelog --------- Co-authored-by: azure-sdk <PythonSdkPipelines> Co-authored-by: ChenxiJiang333 <[email protected]> Co-authored-by: Yuchao Yan <[email protected]>
1 parent 0baf1f2 commit b4394d3

File tree

149 files changed

+484
-20791
lines changed

Some content is hidden

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

149 files changed

+484
-20791
lines changed

sdk/resources/azure-mgmt-msi/CHANGELOG.md

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

3+
## 8.0.0b1 (2025-08-15)
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+
- Model `Identity` deleted or renamed its instance variable `isolation_scope`
9+
- Model `IdentityUpdate` deleted or renamed its instance variable `isolation_scope`
10+
- Deleted or renamed model `IsolationScope`
11+
312
## 7.1.0 (2025-07-21)
413

514
### Features Added
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
2-
"commit": "d98af308da690a9e62df88188b6563b0d588dafd",
2+
"commit": "aa762a31f1e82f62dcc60784f8ebc89c9a1a39e1",
33
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
44
"autorest": "3.10.2",
55
"use": [
6-
"@autorest/python@6.35.0",
6+
"@autorest/python@6.38.2",
77
"@autorest/[email protected]"
88
],
9-
"autorest_command": "autorest specification/msi/resource-manager/readme.md --generate-sample=True --generate-test=True --include-x-ms-examples-original-file=True --python --python-sdks-folder=/mnt/vss/_work/1/azure-sdk-for-python/sdk --use=@autorest/python@6.35.0 --use=@autorest/[email protected] --version=3.10.2 --version-tolerant=False",
9+
"autorest_command": "autorest specification/msi/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-2023-01-31 --use=@autorest/python@6.38.2 --use=@autorest/[email protected] --version=3.10.2 --version-tolerant=False",
1010
"readme": "specification/msi/resource-manager/readme.md"
1111
}
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
{
2+
"CrossLanguagePackageId": null,
3+
"CrossLanguageDefinitionId": {
4+
"azure.mgmt.msi.models.CloudErrorBody": null,
5+
"azure.mgmt.msi.models.Resource": null,
6+
"azure.mgmt.msi.models.ProxyResource": null,
7+
"azure.mgmt.msi.models.FederatedIdentityCredential": null,
8+
"azure.mgmt.msi.models.FederatedIdentityCredentialsListResult": null,
9+
"azure.mgmt.msi.models.TrackedResource": null,
10+
"azure.mgmt.msi.models.Identity": null,
11+
"azure.mgmt.msi.models.IdentityUpdate": null,
12+
"azure.mgmt.msi.models.Operation": null,
13+
"azure.mgmt.msi.models.OperationDisplay": null,
14+
"azure.mgmt.msi.models.OperationListResult": null,
15+
"azure.mgmt.msi.models.SystemAssignedIdentity": null,
16+
"azure.mgmt.msi.models.SystemData": null,
17+
"azure.mgmt.msi.models.UserAssignedIdentitiesListResult": null,
18+
"azure.mgmt.msi.models.CreatedByType": null,
19+
"azure.mgmt.msi.operations.SystemAssignedIdentitiesOperations.get_by_scope": null,
20+
"azure.mgmt.msi.aio.operations.SystemAssignedIdentitiesOperations.get_by_scope": null,
21+
"azure.mgmt.msi.operations.Operations.list": null,
22+
"azure.mgmt.msi.aio.operations.Operations.list": null,
23+
"azure.mgmt.msi.operations.UserAssignedIdentitiesOperations.list_by_subscription": null,
24+
"azure.mgmt.msi.aio.operations.UserAssignedIdentitiesOperations.list_by_subscription": null,
25+
"azure.mgmt.msi.operations.UserAssignedIdentitiesOperations.list_by_resource_group": null,
26+
"azure.mgmt.msi.aio.operations.UserAssignedIdentitiesOperations.list_by_resource_group": null,
27+
"azure.mgmt.msi.operations.UserAssignedIdentitiesOperations.create_or_update": null,
28+
"azure.mgmt.msi.aio.operations.UserAssignedIdentitiesOperations.create_or_update": null,
29+
"azure.mgmt.msi.operations.UserAssignedIdentitiesOperations.update": null,
30+
"azure.mgmt.msi.aio.operations.UserAssignedIdentitiesOperations.update": null,
31+
"azure.mgmt.msi.operations.UserAssignedIdentitiesOperations.get": null,
32+
"azure.mgmt.msi.aio.operations.UserAssignedIdentitiesOperations.get": null,
33+
"azure.mgmt.msi.operations.UserAssignedIdentitiesOperations.delete": null,
34+
"azure.mgmt.msi.aio.operations.UserAssignedIdentitiesOperations.delete": null,
35+
"azure.mgmt.msi.operations.FederatedIdentityCredentialsOperations.list": null,
36+
"azure.mgmt.msi.aio.operations.FederatedIdentityCredentialsOperations.list": null,
37+
"azure.mgmt.msi.operations.FederatedIdentityCredentialsOperations.create_or_update": null,
38+
"azure.mgmt.msi.aio.operations.FederatedIdentityCredentialsOperations.create_or_update": null,
39+
"azure.mgmt.msi.operations.FederatedIdentityCredentialsOperations.get": null,
40+
"azure.mgmt.msi.aio.operations.FederatedIdentityCredentialsOperations.get": null,
41+
"azure.mgmt.msi.operations.FederatedIdentityCredentialsOperations.delete": null,
42+
"azure.mgmt.msi.aio.operations.FederatedIdentityCredentialsOperations.delete": null
43+
}
44+
}

sdk/resources/azure-mgmt-msi/azure/mgmt/msi/__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 ._managed_service_identity_client import ManagedServiceIdentityClient
10-
__all__ = ['ManagedServiceIdentityClient']
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 ._managed_service_identity_client import ManagedServiceIdentityClient # 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+
"ManagedServiceIdentityClient",
29+
]
30+
__all__.extend([p for p in _patch_all if p not in __all__]) # pyright: ignore
31+
32+
_patch_sdk()
Lines changed: 27 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
11
# coding=utf-8
22
# --------------------------------------------------------------------------
33
# Copyright (c) Microsoft Corporation. All rights reserved.
4-
# Licensed under the MIT License. See License.txt in the project root for
5-
# license information.
6-
#
4+
# Licensed under the MIT License. See License.txt in the project root for license information.
75
# Code generated by Microsoft (R) AutoRest Code Generator.
8-
# Changes may cause incorrect behavior and will be lost if the code is
9-
# regenerated.
6+
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
107
# --------------------------------------------------------------------------
8+
119
from typing import Any, TYPE_CHECKING
1210

1311
from azure.core.pipeline import policies
@@ -16,10 +14,10 @@
1614
from ._version import VERSION
1715

1816
if TYPE_CHECKING:
19-
# pylint: disable=unused-import,ungrouped-imports
2017
from azure.core.credentials import TokenCredential
2118

22-
class ManagedServiceIdentityClientConfiguration:
19+
20+
class ManagedServiceIdentityClientConfiguration: # pylint: disable=too-many-instance-attributes,name-too-long
2321
"""Configuration for ManagedServiceIdentityClient.
2422
2523
Note that all parameters used to create this instance are saved as instance
@@ -29,38 +27,38 @@ class ManagedServiceIdentityClientConfiguration:
2927
:type credential: ~azure.core.credentials.TokenCredential
3028
:param subscription_id: The Id of the Subscription to which the identity belongs. Required.
3129
:type subscription_id: str
30+
:keyword api_version: Api Version. Default value is "2023-01-31". Note that overriding this
31+
default value may result in unsupported behavior.
32+
:paramtype api_version: str
3233
"""
3334

34-
def __init__(
35-
self,
36-
credential: "TokenCredential",
37-
subscription_id: str,
38-
**kwargs: Any
39-
):
35+
def __init__(self, credential: "TokenCredential", subscription_id: str, **kwargs: Any) -> None:
36+
api_version: str = kwargs.pop("api_version", "2023-01-31")
37+
4038
if credential is None:
4139
raise ValueError("Parameter 'credential' must not be None.")
4240
if subscription_id is None:
4341
raise ValueError("Parameter 'subscription_id' must not be None.")
4442

4543
self.credential = credential
4644
self.subscription_id = subscription_id
47-
self.credential_scopes = kwargs.pop('credential_scopes', ['https://management.azure.com/.default'])
48-
kwargs.setdefault('sdk_moniker', 'azure-mgmt-msi/{}'.format(VERSION))
45+
self.api_version = api_version
46+
self.credential_scopes = kwargs.pop("credential_scopes", ["https://management.azure.com/.default"])
47+
kwargs.setdefault("sdk_moniker", "mgmt-msi/{}".format(VERSION))
4948
self.polling_interval = kwargs.get("polling_interval", 30)
5049
self._configure(**kwargs)
5150

52-
def _configure(
53-
self,
54-
**kwargs: Any
55-
):
56-
self.user_agent_policy = kwargs.get('user_agent_policy') or policies.UserAgentPolicy(**kwargs)
57-
self.headers_policy = kwargs.get('headers_policy') or policies.HeadersPolicy(**kwargs)
58-
self.proxy_policy = kwargs.get('proxy_policy') or policies.ProxyPolicy(**kwargs)
59-
self.logging_policy = kwargs.get('logging_policy') or policies.NetworkTraceLoggingPolicy(**kwargs)
60-
self.http_logging_policy = kwargs.get('http_logging_policy') or ARMHttpLoggingPolicy(**kwargs)
61-
self.retry_policy = kwargs.get('retry_policy') or policies.RetryPolicy(**kwargs)
62-
self.custom_hook_policy = kwargs.get('custom_hook_policy') or policies.CustomHookPolicy(**kwargs)
63-
self.redirect_policy = kwargs.get('redirect_policy') or policies.RedirectPolicy(**kwargs)
64-
self.authentication_policy = kwargs.get('authentication_policy')
51+
def _configure(self, **kwargs: Any) -> None:
52+
self.user_agent_policy = kwargs.get("user_agent_policy") or policies.UserAgentPolicy(**kwargs)
53+
self.headers_policy = kwargs.get("headers_policy") or policies.HeadersPolicy(**kwargs)
54+
self.proxy_policy = kwargs.get("proxy_policy") or policies.ProxyPolicy(**kwargs)
55+
self.logging_policy = kwargs.get("logging_policy") or policies.NetworkTraceLoggingPolicy(**kwargs)
56+
self.http_logging_policy = kwargs.get("http_logging_policy") or ARMHttpLoggingPolicy(**kwargs)
57+
self.custom_hook_policy = kwargs.get("custom_hook_policy") or policies.CustomHookPolicy(**kwargs)
58+
self.redirect_policy = kwargs.get("redirect_policy") or policies.RedirectPolicy(**kwargs)
59+
self.retry_policy = kwargs.get("retry_policy") or policies.RetryPolicy(**kwargs)
60+
self.authentication_policy = kwargs.get("authentication_policy")
6561
if self.credential and not self.authentication_policy:
66-
self.authentication_policy = ARMChallengeAuthenticationPolicy(self.credential, *self.credential_scopes, **kwargs)
62+
self.authentication_policy = ARMChallengeAuthenticationPolicy(
63+
self.credential, *self.credential_scopes, **kwargs
64+
)

0 commit comments

Comments
 (0)