Skip to content

Commit 78385bd

Browse files
author
SDKAuto
committed
CodeGen from PR 21341 in Azure/azure-rest-api-specs
Merge 47a1c48f4e2f57183160de14610218fd2d13e74d into 724f0300a1d4fca66cdd99b8114ffb0d84154fa0
1 parent 6726daf commit 78385bd

File tree

272 files changed

+45613
-44628
lines changed

Some content is hidden

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

272 files changed

+45613
-44628
lines changed
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
2-
"commit": "021e5ab6ec840d651d32a2c6bdf832800cdf8eb6",
2+
"commit": "30c343ee6e0942334aa10913867de17769e6a99d",
33
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
44
"autorest": "3.9.2",
55
"use": [
6-
"@autorest/python@6.1.11",
6+
"@autorest/python@6.2.1",
77
"@autorest/[email protected]"
88
],
9-
"autorest_command": "autorest specification/network/resource-manager/readme.md --python --python-sdks-folder=/home/vsts/work/1/azure-sdk-for-python/sdk --use=@autorest/python@6.1.11 --use=@autorest/[email protected] --version=3.9.2 --version-tolerant=False",
9+
"autorest_command": "autorest specification/network/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.2.1 --use=@autorest/[email protected] --version=3.9.2 --version-tolerant=False",
1010
"readme": "specification/network/resource-manager/readme.md"
1111
}

sdk/network/azure-mgmt-network/azure/mgmt/network/v2015_06_15/__init__.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@
1818
_patch_all = []
1919
from ._patch import patch_sdk as _patch_sdk
2020

21-
__all__ = ["NetworkManagementClient"]
21+
__all__ = [
22+
"NetworkManagementClient",
23+
]
2224
__all__.extend([p for p in _patch_all if p not in __all__])
2325

2426
_patch_sdk()

sdk/network/azure-mgmt-network/azure/mgmt/network/v2015_06_15/_configuration.py

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

9+
import sys
910
from typing import Any, TYPE_CHECKING
1011

1112
from azure.core.configuration import Configuration
@@ -14,6 +15,11 @@
1415

1516
from ._version import VERSION
1617

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+
1723
if TYPE_CHECKING:
1824
# pylint: disable=unused-import,ungrouped-imports
1925
from azure.core.credentials import TokenCredential
@@ -37,7 +43,7 @@ class NetworkManagementClientConfiguration(Configuration): # pylint: disable=to
3743

3844
def __init__(self, credential: "TokenCredential", subscription_id: str, **kwargs: Any) -> None:
3945
super(NetworkManagementClientConfiguration, self).__init__(**kwargs)
40-
api_version = kwargs.pop("api_version", "2015-06-15") # type: str
46+
api_version = kwargs.pop("api_version", "2015-06-15") # type: Literal["2015-06-15"]
4147

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

sdk/network/azure-mgmt-network/azure/mgmt/network/v2015_06_15/_metadata.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,4 +135,4 @@
135135
}
136136
}
137137
}
138-
}
138+
}

sdk/network/azure-mgmt-network/azure/mgmt/network/v2015_06_15/_vendor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def _format_url_section(template, **kwargs):
3838
template = "/".join(components)
3939

4040

41-
class MixinABC(ABC):
41+
class NetworkManagementClientMixinABC(ABC):
4242
"""DO NOT use this class. It is for internal typing use only."""
4343

4444
_client: "PipelineClient"

sdk/network/azure-mgmt-network/azure/mgmt/network/v2015_06_15/_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 = "22.1.0"
9+
VERSION = "1.0.0b1"

sdk/network/azure-mgmt-network/azure/mgmt/network/v2015_06_15/aio/__init__.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@
1515
_patch_all = []
1616
from ._patch import patch_sdk as _patch_sdk
1717

18-
__all__ = ["NetworkManagementClient"]
18+
__all__ = [
19+
"NetworkManagementClient",
20+
]
1921
__all__.extend([p for p in _patch_all if p not in __all__])
2022

2123
_patch_sdk()

sdk/network/azure-mgmt-network/azure/mgmt/network/v2015_06_15/aio/_configuration.py

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

9+
import sys
910
from typing import Any, TYPE_CHECKING
1011

1112
from azure.core.configuration import Configuration
@@ -14,6 +15,11 @@
1415

1516
from .._version import VERSION
1617

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+
1723
if TYPE_CHECKING:
1824
# pylint: disable=unused-import,ungrouped-imports
1925
from azure.core.credentials_async import AsyncTokenCredential
@@ -37,7 +43,7 @@ class NetworkManagementClientConfiguration(Configuration): # pylint: disable=to
3743

3844
def __init__(self, credential: "AsyncTokenCredential", subscription_id: str, **kwargs: Any) -> None:
3945
super(NetworkManagementClientConfiguration, self).__init__(**kwargs)
40-
api_version = kwargs.pop("api_version", "2015-06-15") # type: str
46+
api_version = kwargs.pop("api_version", "2015-06-15") # type: Literal["2015-06-15"]
4147

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

sdk/network/azure-mgmt-network/azure/mgmt/network/v2015_06_15/aio/_vendor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
from ..._serialization import Deserializer, Serializer
2020

2121

22-
class MixinABC(ABC):
22+
class NetworkManagementClientMixinABC(ABC):
2323
"""DO NOT use this class. It is for internal typing use only."""
2424

2525
_client: "AsyncPipelineClient"

0 commit comments

Comments
 (0)