Skip to content

Commit 31fd1c3

Browse files
azure-sdkChenxiJiang333Copilotmsyyc
authored
[AutoPR azure-mgmt-web]-generated-from-SDK Generation - Python-6087407 (#46019)
* Configurations: 'specification/web/resource-manager/Microsoft.Web/AppService/tspconfig.yaml', API Version: 2025-05-01, SDK Release Type: stable, and CommitSHA: 'a83147fe12aece4ded0bd96be212e5242e087cb9' in SpecRepo: 'https://github.com/Azure/azure-rest-api-specs' Pipeline run: https://dev.azure.com/azure-sdk/internal/_build/results?buildId=6087407 Refer to https://eng.ms/docs/products/azure-developer-experience/develop/sdk-release/sdk-release-prerequisites to prepare for SDK release. * Configurations: 'specification/web/resource-manager/Microsoft.Web/AppService/tspconfig.yaml', API Version: 2025-05-01, SDK Release Type: stable, and CommitSHA: '20b78edb12308a566be33a737a79a36662e7f4c3' in SpecRepo: 'https://github.com/Azure/azure-rest-api-specs' Pipeline run: https://dev.azure.com/azure-sdk/internal/_build/results?buildId=6087964 Refer to https://eng.ms/docs/products/azure-developer-experience/develop/sdk-release/sdk-release-prerequisites to prepare for SDK release. * update Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> * update changelog --------- Co-authored-by: ChenxiJiang333 <v-chenjiang@microsoft.com> Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Co-authored-by: Yuchao Yan <yuchaoyan@microsoft.com>
1 parent 2bdb89e commit 31fd1c3

514 files changed

Lines changed: 235667 additions & 227424 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/appservice/azure-mgmt-web/CHANGELOG.md

Lines changed: 243 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
{
2-
"commit": "b50fa8e117938fd72cbb3e66bb49324661dd1dcc",
2+
"apiVersion": "2025-05-01",
3+
"apiVersions": {
4+
"Microsoft.Web": "2025-05-01"
5+
},
6+
"commit": "20b78edb12308a566be33a737a79a36662e7f4c3",
37
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
4-
"autorest": "3.10.2",
5-
"use": [
6-
"@autorest/python@6.42.0",
7-
"@autorest/modelerfour@4.27.0"
8-
],
9-
"autorest_command": "autorest specification/web/resource-manager/Microsoft.Web/AppService/readme.md --generate-sample=True --generate-test=True --include-x-ms-examples-original-file=True --package-mode=azure-mgmt --python --python-sdks-folder=/mnt/vss/_work/1/azure-sdk-for-python/sdk --tag=package-2025-03-python --use=@autorest/python@6.42.0 --use=@autorest/modelerfour@4.27.0 --version=3.10.2 --version-tolerant=False",
10-
"readme": "specification/web/resource-manager/Microsoft.Web/AppService/readme.md"
8+
"typespec_src": "specification/web/resource-manager/Microsoft.Web/AppService",
9+
"emitterVersion": "0.61.2"
1110
}

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

Lines changed: 2014 additions & 2119 deletions
Large diffs are not rendered by default.

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# --------------------------------------------------------------------------
33
# Copyright (c) Microsoft Corporation. All rights reserved.
44
# Licensed under the MIT License. See License.txt in the project root for license information.
5-
# Code generated by Microsoft (R) AutoRest Code Generator.
5+
# Code generated by Microsoft (R) Python Code Generator.
66
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
77
# --------------------------------------------------------------------------
88
# pylint: disable=wrong-import-position
@@ -12,7 +12,7 @@
1212
if TYPE_CHECKING:
1313
from ._patch import * # pylint: disable=unused-wildcard-import
1414

15-
from ._web_site_management_client import WebSiteManagementClient # type: ignore
15+
from ._client import WebSiteManagementClient # type: ignore
1616
from ._version import VERSION
1717

1818
__version__ = VERSION

sdk/appservice/azure-mgmt-web/azure/mgmt/web/_web_site_management_client.py renamed to sdk/appservice/azure-mgmt-web/azure/mgmt/web/_client.py

Lines changed: 63 additions & 96 deletions
Large diffs are not rendered by default.

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

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# --------------------------------------------------------------------------
33
# Copyright (c) Microsoft Corporation. All rights reserved.
44
# Licensed under the MIT License. See License.txt in the project root for license information.
5-
# Code generated by Microsoft (R) AutoRest Code Generator.
5+
# Code generated by Microsoft (R) Python Code Generator.
66
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
77
# --------------------------------------------------------------------------
88

@@ -24,31 +24,41 @@ class WebSiteManagementClientConfiguration: # pylint: disable=too-many-instance
2424
Note that all parameters used to create this instance are saved as instance
2525
attributes.
2626
27-
:param credential: Credential needed for the client to connect to Azure. Required.
27+
:param credential: Credential used to authenticate requests to the service. Required.
2828
:type credential: ~azure.core.credentials.TokenCredential
29-
:param subscription_id: Your Azure subscription ID. This is a GUID-formatted string (e.g.
30-
00000000-0000-0000-0000-000000000000). Required.
29+
:param subscription_id: The ID of the target subscription. The value must be an UUID. Required.
3130
:type subscription_id: str
31+
:param base_url: Service host. Default value is "https://management.azure.com".
32+
:type base_url: str
3233
:param cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is
3334
None.
3435
:type cloud_setting: ~azure.core.AzureClouds
36+
:keyword api_version: The API version to use for this operation. Known values are "2025-05-01".
37+
Default value is "2025-05-01". Note that overriding this default value may result in
38+
unsupported behavior.
39+
:paramtype api_version: str
3540
"""
3641

3742
def __init__(
3843
self,
3944
credential: "TokenCredential",
4045
subscription_id: str,
46+
base_url: str = "https://management.azure.com",
4147
cloud_setting: Optional["AzureClouds"] = None,
4248
**kwargs: Any
4349
) -> None:
50+
api_version: str = kwargs.pop("api_version", "2025-05-01")
51+
4452
if credential is None:
4553
raise ValueError("Parameter 'credential' must not be None.")
4654
if subscription_id is None:
4755
raise ValueError("Parameter 'subscription_id' must not be None.")
4856

4957
self.credential = credential
5058
self.subscription_id = subscription_id
59+
self.base_url = base_url
5160
self.cloud_setting = cloud_setting
61+
self.api_version = api_version
5262
self.credential_scopes = kwargs.pop("credential_scopes", ["https://management.azure.com/.default"])
5363
kwargs.setdefault("sdk_moniker", "mgmt-web/{}".format(VERSION))
5464
self.polling_interval = kwargs.get("polling_interval", 30)

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77
88
Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize
99
"""
10-
from typing import List
1110

12-
__all__: List[str] = [] # Add all objects you want publicly available to users at this package level
11+
12+
__all__: list[str] = [] # Add all objects you want publicly available to users at this package level
1313

1414

1515
def patch_sdk():
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# --------------------------------------------------------------------------
22
# Copyright (c) Microsoft Corporation. All rights reserved.
33
# Licensed under the MIT License. See License.txt in the project root for license information.
4-
# Code generated by Microsoft (R) AutoRest Code Generator.
4+
# Code generated by Microsoft (R) Python Code Generator.
55
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
66
# --------------------------------------------------------------------------

0 commit comments

Comments
 (0)