Skip to content

Commit 29b7fa9

Browse files
author
SDKAuto
committed
CodeGen from PR 24506 in Azure/azure-rest-api-specs
Merge e741d742e6f1e23440256726787aff49a125a7f4 into eae8ca2f90c2deb68688f5b1bbba9a5efcc0e42e
1 parent 92b1658 commit 29b7fa9

File tree

964 files changed

+26600
-28675
lines changed

Some content is hidden

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

964 files changed

+26600
-28675
lines changed

sdk/sql/azure-mgmt-sql/_meta.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
2-
"commit": "f66499b77cd90144ceb0d118c1bd8bda7dbd4cfc",
2+
"commit": "b0d5f10aea8d2076ab4a0bb0a25075ab9f34ac6e",
33
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
44
"autorest": "3.9.2",
55
"use": [
6-
"@autorest/python@6.4.3",
6+
"@autorest/python@6.6.0",
77
"@autorest/[email protected]"
88
],
9-
"autorest_command": "autorest specification/sql/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/python@6.4.3 --use=@autorest/[email protected] --version=3.9.2 --version-tolerant=False",
9+
"autorest_command": "autorest specification/sql/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/python@6.6.0 --use=@autorest/[email protected] --version=3.9.2 --version-tolerant=False",
1010
"readme": "specification/sql/resource-manager/readme.md"
1111
}

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,17 +29,23 @@ class SqlManagementClientConfiguration(Configuration): # pylint: disable=too-ma
2929
:type credential: ~azure.core.credentials.TokenCredential
3030
:param subscription_id: The subscription ID that identifies an Azure subscription. Required.
3131
:type subscription_id: str
32+
:keyword api_version: Api Version. Default value is "2022-11-01-preview". Note that overriding
33+
this default value may result in unsupported behavior.
34+
:paramtype api_version: str
3235
"""
3336

3437
def __init__(self, credential: "TokenCredential", subscription_id: str, **kwargs: Any) -> None:
3538
super(SqlManagementClientConfiguration, self).__init__(**kwargs)
39+
api_version: str = kwargs.pop("api_version", "2022-11-01-preview")
40+
3641
if credential is None:
3742
raise ValueError("Parameter 'credential' must not be None.")
3843
if subscription_id is None:
3944
raise ValueError("Parameter 'subscription_id' must not be None.")
4045

4146
self.credential = credential
4247
self.subscription_id = subscription_id
48+
self.api_version = api_version
4349
self.credential_scopes = kwargs.pop("credential_scopes", ["https://management.azure.com/.default"])
4450
kwargs.setdefault("sdk_moniker", "mgmt-sql/{}".format(VERSION))
4551
self._configure(**kwargs)

sdk/sql/azure-mgmt-sql/azure/mgmt/sql/_serialization.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -629,7 +629,7 @@ def _serialize(self, target_obj, data_type=None, **kwargs):
629629
if xml_desc.get("attr", False):
630630
if xml_ns:
631631
ET.register_namespace(xml_prefix, xml_ns)
632-
xml_name = "{}{}".format(xml_ns, xml_name)
632+
xml_name = "{{{}}}{}".format(xml_ns, xml_name)
633633
serialized.set(xml_name, new_attr) # type: ignore
634634
continue
635635
if xml_desc.get("text", False):
@@ -1271,7 +1271,7 @@ def _extract_name_from_internal_type(internal_type):
12711271
xml_name = internal_type_xml_map.get("name", internal_type.__name__)
12721272
xml_ns = internal_type_xml_map.get("ns", None)
12731273
if xml_ns:
1274-
xml_name = "{}{}".format(xml_ns, xml_name)
1274+
xml_name = "{{{}}}{}".format(xml_ns, xml_name)
12751275
return xml_name
12761276

12771277

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

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

sdk/sql/azure-mgmt-sql/azure/mgmt/sql/_sql_management_client.py

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

sdk/sql/azure-mgmt-sql/azure/mgmt/sql/_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 = "4.0.0b10"
9+
VERSION = "0.9.0"

sdk/sql/azure-mgmt-sql/azure/mgmt/sql/aio/_configuration.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,17 +29,23 @@ class SqlManagementClientConfiguration(Configuration): # pylint: disable=too-ma
2929
:type credential: ~azure.core.credentials_async.AsyncTokenCredential
3030
:param subscription_id: The subscription ID that identifies an Azure subscription. Required.
3131
:type subscription_id: str
32+
:keyword api_version: Api Version. Default value is "2022-11-01-preview". Note that overriding
33+
this default value may result in unsupported behavior.
34+
:paramtype api_version: str
3235
"""
3336

3437
def __init__(self, credential: "AsyncTokenCredential", subscription_id: str, **kwargs: Any) -> None:
3538
super(SqlManagementClientConfiguration, self).__init__(**kwargs)
39+
api_version: str = kwargs.pop("api_version", "2022-11-01-preview")
40+
3641
if credential is None:
3742
raise ValueError("Parameter 'credential' must not be None.")
3843
if subscription_id is None:
3944
raise ValueError("Parameter 'subscription_id' must not be None.")
4045

4146
self.credential = credential
4247
self.subscription_id = subscription_id
48+
self.api_version = api_version
4349
self.credential_scopes = kwargs.pop("credential_scopes", ["https://management.azure.com/.default"])
4450
kwargs.setdefault("sdk_moniker", "mgmt-sql/{}".format(VERSION))
4551
self._configure(**kwargs)

0 commit comments

Comments
 (0)