Skip to content

Commit db6dcda

Browse files
[AutoRelease] t2-web-2025-08-22-34981(can only be merged by SDK owner) (#42642)
* code and test * update changelog * update testcases --------- Co-authored-by: azure-sdk <PythonSdkPipelines> Co-authored-by: ChenxiJiang333 <[email protected]>
1 parent eafba5a commit db6dcda

File tree

434 files changed

+8464
-602360
lines changed

Some content is hidden

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

434 files changed

+8464
-602360
lines changed

sdk/appservice/azure-mgmt-web/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+
## 10.0.0 (2025-08-21)
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
## 9.0.0 (2025-06-16)
410

511
### Features Added
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
2-
"commit": "9461a6b83915d6d2d61978e560c938ff90d95aae",
2+
"commit": "b64fe48e383ae6d6841fad0538f05dc82130ebb0",
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/web/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/web/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-2024-11 --use=@autorest/python@6.38.2 --use=@autorest/[email protected] --version=3.10.2 --version-tolerant=False",
1010
"readme": "specification/web/resource-manager/readme.md"
1111
}

sdk/appservice/azure-mgmt-web/apiview-properties.json

Lines changed: 2104 additions & 0 deletions
Large diffs are not rendered by default.

sdk/appservice/azure-mgmt-web/azure/mgmt/web/__init__.py

Lines changed: 18 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +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 ._web_site_management_client import WebSiteManagementClient
10+
from typing import TYPE_CHECKING
1011

11-
__all__ = ["WebSiteManagementClient"]
12+
if TYPE_CHECKING:
13+
from ._patch import * # pylint: disable=unused-wildcard-import
1214

13-
try:
14-
from ._patch import patch_sdk # type: ignore
15+
from ._web_site_management_client import WebSiteManagementClient # type: ignore
16+
from ._version import VERSION
17+
18+
__version__ = VERSION
1519

16-
patch_sdk()
20+
try:
21+
from ._patch import __all__ as _patch_all
22+
from ._patch import *
1723
except ImportError:
18-
pass
24+
_patch_all = []
25+
from ._patch import patch_sdk as _patch_sdk
1926

20-
from ._version import VERSION
27+
__all__ = [
28+
"WebSiteManagementClient",
29+
]
30+
__all__.extend([p for p in _patch_all if p not in __all__]) # pyright: ignore
2131

22-
__version__ = VERSION
32+
_patch_sdk()

sdk/appservice/azure-mgmt-web/azure/mgmt/web/_configuration.py

Lines changed: 16 additions & 12 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,44 +14,50 @@
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

2219

23-
class WebSiteManagementClientConfiguration:
20+
class WebSiteManagementClientConfiguration: # pylint: disable=too-many-instance-attributes
2421
"""Configuration for WebSiteManagementClient.
2522
2623
Note that all parameters used to create this instance are saved as instance
2724
attributes.
2825
2926
:param credential: Credential needed for the client to connect to Azure. Required.
3027
:type credential: ~azure.core.credentials.TokenCredential
31-
:param subscription_id: Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). Required.
28+
:param subscription_id: Your Azure subscription ID. This is a GUID-formatted string (e.g.
29+
00000000-0000-0000-0000-000000000000). Required.
3230
:type subscription_id: str
31+
:keyword api_version: Api Version. Default value is "2024-11-01". Note that overriding this
32+
default value may result in unsupported behavior.
33+
:paramtype api_version: str
3334
"""
3435

35-
def __init__(self, credential: "TokenCredential", subscription_id: str, **kwargs: Any):
36+
def __init__(self, credential: "TokenCredential", subscription_id: str, **kwargs: Any) -> None:
37+
api_version: str = kwargs.pop("api_version", "2024-11-01")
38+
3639
if credential is None:
3740
raise ValueError("Parameter 'credential' must not be None.")
3841
if subscription_id is None:
3942
raise ValueError("Parameter 'subscription_id' must not be None.")
4043

4144
self.credential = credential
4245
self.subscription_id = subscription_id
46+
self.api_version = api_version
4347
self.credential_scopes = kwargs.pop("credential_scopes", ["https://management.azure.com/.default"])
44-
kwargs.setdefault("sdk_moniker", "azure-mgmt-web/{}".format(VERSION))
48+
kwargs.setdefault("sdk_moniker", "mgmt-web/{}".format(VERSION))
4549
self.polling_interval = kwargs.get("polling_interval", 30)
4650
self._configure(**kwargs)
4751

48-
def _configure(self, **kwargs: Any):
52+
def _configure(self, **kwargs: Any) -> None:
4953
self.user_agent_policy = kwargs.get("user_agent_policy") or policies.UserAgentPolicy(**kwargs)
5054
self.headers_policy = kwargs.get("headers_policy") or policies.HeadersPolicy(**kwargs)
5155
self.proxy_policy = kwargs.get("proxy_policy") or policies.ProxyPolicy(**kwargs)
5256
self.logging_policy = kwargs.get("logging_policy") or policies.NetworkTraceLoggingPolicy(**kwargs)
5357
self.http_logging_policy = kwargs.get("http_logging_policy") or ARMHttpLoggingPolicy(**kwargs)
54-
self.retry_policy = kwargs.get("retry_policy") or policies.RetryPolicy(**kwargs)
5558
self.custom_hook_policy = kwargs.get("custom_hook_policy") or policies.CustomHookPolicy(**kwargs)
5659
self.redirect_policy = kwargs.get("redirect_policy") or policies.RedirectPolicy(**kwargs)
60+
self.retry_policy = kwargs.get("retry_policy") or policies.RetryPolicy(**kwargs)
5761
self.authentication_policy = kwargs.get("authentication_policy")
5862
if self.credential and not self.authentication_policy:
5963
self.authentication_policy = ARMChallengeAuthenticationPolicy(

0 commit comments

Comments
 (0)