Skip to content

Commit 147d28e

Browse files
author
SDKAuto
committed
CodeGen from PR 23567 in Azure/azure-rest-api-specs
Merge eb7b549f20c4870d429c1f96229352292af79849 into 7dfc303ee18440ee5eede155bb0d63797fbdc4bb
1 parent 7651331 commit 147d28e

File tree

726 files changed

+27833
-39028
lines changed

Some content is hidden

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

726 files changed

+27833
-39028
lines changed
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
2-
"commit": "969fd0c2634fbcc1975d7abe3749330a5145a97c",
2+
"commit": "dfac8d1606f1186e7eefea6a3864f495f43d6762",
33
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
44
"autorest": "3.9.2",
55
"use": [
6-
"@autorest/[email protected].3",
6+
"@autorest/[email protected].12",
77
"@autorest/[email protected]"
88
],
9-
"autorest_command": "autorest specification/web/resource-manager/readme.md --generate-sample=True --include-x-ms-examples-original-file=True --python --python-sdks-folder=/home/vsts/work/1/azure-sdk-for-python/sdk --use=@autorest/[email protected].3 --use=@autorest/[email protected] --version=3.9.2 --version-tolerant=False",
9+
"autorest_command": "autorest specification/web/resource-manager/readme.md --generate-sample=True --include-x-ms-examples-original-file=True --python --python-sdks-folder=/mnt/vss/_work/1/s/azure-sdk-for-python/sdk --use=@autorest/[email protected].12 --use=@autorest/[email protected] --version=3.9.2 --version-tolerant=False",
1010
"readme": "specification/web/resource-manager/readme.md"
1111
}

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

Lines changed: 59 additions & 58 deletions
Large diffs are not rendered by default.

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -631,7 +631,7 @@ def _serialize(self, target_obj, data_type=None, **kwargs):
631631
if xml_desc.get("attr", False):
632632
if xml_ns:
633633
ET.register_namespace(xml_prefix, xml_ns)
634-
xml_name = "{}{}".format(xml_ns, xml_name)
634+
xml_name = "{{{}}}{}".format(xml_ns, xml_name)
635635
serialized.set(xml_name, new_attr) # type: ignore
636636
continue
637637
if xml_desc.get("text", False):
@@ -1273,7 +1273,7 @@ def _extract_name_from_internal_type(internal_type):
12731273
xml_name = internal_type_xml_map.get("name", internal_type.__name__)
12741274
xml_ns = internal_type_xml_map.get("ns", None)
12751275
if xml_ns:
1276-
xml_name = "{}{}".format(xml_ns, xml_name)
1276+
xml_name = "{{{}}}{}".format(xml_ns, xml_name)
12771277
return xml_name
12781278

12791279

@@ -1297,7 +1297,7 @@ def xml_key_extractor(attr, attr_desc, data):
12971297
# Integrate namespace if necessary
12981298
xml_ns = xml_desc.get("ns", internal_type_xml_map.get("ns", None))
12991299
if xml_ns:
1300-
xml_name = "{}{}".format(xml_ns, xml_name)
1300+
xml_name = "{{{}}}{}".format(xml_ns, xml_name)
13011301

13021302
# If it's an attribute, that's simple
13031303
if xml_desc.get("attr", False):

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@
55
# license information.
66
# --------------------------------------------------------------------------
77

8-
VERSION = "7.1.0"
8+
VERSION = "0.1.0"

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

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

sdk/appservice/azure-mgmt-web/azure/mgmt/web/aio/_operations_mixin.py

Lines changed: 59 additions & 58 deletions
Large diffs are not rendered by default.

sdk/appservice/azure-mgmt-web/azure/mgmt/web/aio/_web_site_management_client.py

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

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@
66
# --------------------------------------------------------------------------
77
from .v2016_03_01.models import *
88
from .v2018_02_01.models import *
9-
from .v2022_09_01.models import *
9+
from .v2022_03_01.models import *

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

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
77
# --------------------------------------------------------------------------
88

9-
import sys
109
from typing import Any, TYPE_CHECKING
1110

1211
from azure.core.configuration import Configuration
@@ -15,11 +14,6 @@
1514

1615
from ._version import VERSION
1716

18-
if sys.version_info >= (3, 8):
19-
from typing import Literal # pylint: disable=no-name-in-module, ungrouped-imports
20-
else:
21-
from typing_extensions import Literal # type: ignore # pylint: disable=ungrouped-imports
22-
2317
if TYPE_CHECKING:
2418
# pylint: disable=unused-import,ungrouped-imports
2519
from azure.core.credentials import TokenCredential
@@ -43,7 +37,7 @@ class WebSiteManagementClientConfiguration(Configuration): # pylint: disable=to
4337

4438
def __init__(self, credential: "TokenCredential", subscription_id: str, **kwargs: Any) -> None:
4539
super(WebSiteManagementClientConfiguration, self).__init__(**kwargs)
46-
api_version: Literal["2015-04-01"] = kwargs.pop("api_version", "2015-04-01")
40+
api_version: str = kwargs.pop("api_version", "2015-04-01")
4741

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

sdk/appservice/azure-mgmt-web/azure/mgmt/web/v2015_04_01/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@
66
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
77
# --------------------------------------------------------------------------
88

9-
VERSION = "7.1.0"
9+
VERSION = "0.42.0"

0 commit comments

Comments
 (0)