Skip to content

Commit 97d8a8d

Browse files
author
SDKAuto
committed
CodeGen from PR 19636 in Azure/azure-rest-api-specs
Merge 1f7e8eff125275401884df73d1eb5a2dbc2f60b0 into 45472ea9fc026c14e8962f78757a589b6586fe9d
1 parent 0fc61e6 commit 97d8a8d

File tree

587 files changed

+341464
-172413
lines changed

Some content is hidden

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

587 files changed

+341464
-172413
lines changed
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
22
"autorest": "3.7.2",
33
"use": [
4-
"@autorest/python@5.12.0",
4+
"@autorest/python@5.16.0",
55
"@autorest/[email protected]"
66
],
7-
"commit": "cf47fa91b882618a1043e3aeb5803b3a7397cd08",
7+
"commit": "17b648f169e038d60b59db7cc78a6e3bfe0f7b21",
88
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
9-
"autorest_command": "autorest specification/web/resource-manager/readme.md --multiapi --python --python-mode=update --python-sdks-folder=/home/vsts/work/1/s/azure-sdk-for-python/sdk --python3-only --track2 --use=@autorest/python@5.12.0 --use=@autorest/[email protected] --version=3.7.2",
9+
"autorest_command": "autorest specification/web/resource-manager/readme.md --python --python-sdks-folder=/mnt/vss/_work/1/s/azure-sdk-for-python/sdk --python3-only --use=@autorest/python@5.16.0 --use=@autorest/[email protected] --version=3.7.2",
1010
"readme": "specification/web/resource-manager/readme.md"
1111
}

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

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

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

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

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

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

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

Lines changed: 184 additions & 2 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 .v2021_03_01.models import *
9+
from .v2022_03_01.models import *

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

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,14 @@
1010
from ._version import VERSION
1111

1212
__version__ = VERSION
13+
14+
try:
15+
from ._patch import __all__ as _patch_all
16+
from ._patch import * # type: ignore # pylint: disable=unused-wildcard-import
17+
except ImportError:
18+
_patch_all = []
19+
from ._patch import patch_sdk as _patch_sdk
1320
__all__ = ['WebSiteManagementClient']
21+
__all__.extend([p for p in _patch_all if p not in __all__])
1422

15-
# `._patch.py` is used for handwritten extensions to the generated code
16-
# Example: https://github.com/Azure/azure-sdk-for-python/blob/main/doc/dev/customize_code/how-to-patch-sdk-code.md
17-
from ._patch import patch_sdk
18-
patch_sdk()
23+
_patch_sdk()

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

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,16 +19,20 @@
1919
from azure.core.credentials import TokenCredential
2020

2121

22-
class WebSiteManagementClientConfiguration(Configuration):
22+
class WebSiteManagementClientConfiguration(Configuration): # pylint: disable=too-many-instance-attributes
2323
"""Configuration for WebSiteManagementClient.
2424
2525
Note that all parameters used to create this instance are saved as instance
2626
attributes.
2727
2828
:param credential: Credential needed for the client to connect to Azure.
2929
:type credential: ~azure.core.credentials.TokenCredential
30-
:param subscription_id: Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000).
30+
:param subscription_id: Your Azure subscription ID. This is a GUID-formatted string (e.g.
31+
00000000-0000-0000-0000-000000000000).
3132
:type subscription_id: str
33+
:keyword api_version: Api Version. Default value is "2015-04-01". Note that overriding this
34+
default value may result in unsupported behavior.
35+
:paramtype api_version: str
3236
"""
3337

3438
def __init__(
@@ -38,14 +42,16 @@ def __init__(
3842
**kwargs: Any
3943
) -> None:
4044
super(WebSiteManagementClientConfiguration, self).__init__(**kwargs)
45+
api_version = kwargs.pop('api_version', "2015-04-01") # type: str
46+
4147
if credential is None:
4248
raise ValueError("Parameter 'credential' must not be None.")
4349
if subscription_id is None:
4450
raise ValueError("Parameter 'subscription_id' must not be None.")
4551

4652
self.credential = credential
4753
self.subscription_id = subscription_id
48-
self.api_version = "2015-04-01"
54+
self.api_version = api_version
4955
self.credential_scopes = kwargs.pop('credential_scopes', ['https://management.azure.com/.default'])
5056
kwargs.setdefault('sdk_moniker', 'mgmt-web/{}'.format(VERSION))
5157
self._configure(**kwargs)

sdk/appservice/azure-mgmt-web/azure/mgmt/web/v2015_04_01/_metadata.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
"azure_arm": true,
1111
"has_lro_operations": true,
1212
"client_side_validation": false,
13-
"sync_imports": "{\"typing\": {\"azurecore\": {\"azure.core.credentials\": [\"TokenCredential\"]}}, \"regular\": {\"azurecore\": {\"azure.profiles\": [\"KnownProfiles\", \"ProfileDefinition\"], \"azure.profiles.multiapiclient\": [\"MultiApiClientMixin\"], \"msrest\": [\"Deserializer\", \"Serializer\"], \"azure.mgmt.core\": [\"ARMPipelineClient\"]}, \"local\": {\"._configuration\": [\"WebSiteManagementClientConfiguration\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Optional\"]}}}",
14-
"async_imports": "{\"typing\": {\"azurecore\": {\"azure.core.credentials_async\": [\"AsyncTokenCredential\"], \"azure.core.credentials\": [\"TokenCredential\"]}}, \"regular\": {\"azurecore\": {\"azure.profiles\": [\"KnownProfiles\", \"ProfileDefinition\"], \"azure.profiles.multiapiclient\": [\"MultiApiClientMixin\"], \"msrest\": [\"Deserializer\", \"Serializer\"], \"azure.mgmt.core\": [\"AsyncARMPipelineClient\"]}, \"local\": {\"._configuration\": [\"WebSiteManagementClientConfiguration\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Optional\"]}}}"
13+
"sync_imports": "{\"typing\": {\"azurecore\": {\"azure.core.credentials\": [\"TokenCredential\"]}}, \"regular\": {\"azurecore\": {\"azure.profiles\": [\"KnownProfiles\", \"ProfileDefinition\"], \"azure.profiles.multiapiclient\": [\"MultiApiClientMixin\"], \"azure.mgmt.core\": [\"ARMPipelineClient\"]}, \"local\": {\"._configuration\": [\"WebSiteManagementClientConfiguration\"]}, \"thirdparty\": {\"msrest\": [\"Deserializer\", \"Serializer\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Optional\"]}}}",
14+
"async_imports": "{\"typing\": {\"azurecore\": {\"azure.core.credentials_async\": [\"AsyncTokenCredential\"], \"azure.core.credentials\": [\"TokenCredential\"]}}, \"regular\": {\"azurecore\": {\"azure.profiles\": [\"KnownProfiles\", \"ProfileDefinition\"], \"azure.profiles.multiapiclient\": [\"MultiApiClientMixin\"], \"azure.mgmt.core\": [\"AsyncARMPipelineClient\"]}, \"local\": {\"._configuration\": [\"WebSiteManagementClientConfiguration\"]}, \"thirdparty\": {\"msrest\": [\"Deserializer\", \"Serializer\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Optional\"]}}}"
1515
},
1616
"global_parameters": {
1717
"sync": {

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 = "6.1.0"
9+
VERSION = "0.42.0"

0 commit comments

Comments
 (0)