Skip to content

Commit c90d3fe

Browse files
author
SDKAuto
committed
CodeGen from PR 16720 in Azure/azure-rest-api-specs
Merge 41d4acbb2d0e6e3330a95bebf87cf2b20bdd30f6 into b280ba2
1 parent aa95b08 commit c90d3fe

File tree

48 files changed

+75
-840
lines changed

Some content is hidden

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

48 files changed

+75
-840
lines changed

sdk/appservice/azure-mgmt-web/_meta.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"@autorest/[email protected]",
55
"@autorest/[email protected]"
66
],
7-
"commit": "ec2b6d1985ce89c8646276e0806a738338e98bd2",
7+
"commit": "3fd290e6a1929a9b509b0ddba62ff65596e9b50b",
88
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
99
"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 --track2 --use=@autorest/[email protected] --use=@autorest/[email protected] --version=3.4.5",
1010
"readme": "specification/web/resource-manager/readme.md"

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

Lines changed: 0 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -76,46 +76,6 @@ def check_name_availability(
7676
mixin_instance._deserialize = Deserializer(self._models_dict(api_version))
7777
return mixin_instance.check_name_availability(name, type, is_fqdn, **kwargs)
7878

79-
def generate_github_access_token_for_appservice_cli_async(
80-
self,
81-
code, # type: str
82-
state, # type: str
83-
**kwargs # type: Any
84-
):
85-
"""Exchange code for GitHub access token for AppService CLI.
86-
87-
Description for Exchange code for GitHub access token for AppService CLI.
88-
89-
:param code: Code string to exchange for Github Access token.
90-
:type code: str
91-
:param state: State string used for verification.
92-
:type state: str
93-
:keyword callable cls: A custom type or function that will be passed the direct response
94-
:return: AppserviceGithubToken, or the result of cls(response)
95-
:rtype: ~azure.mgmt.web.v2021_02_01.models.AppserviceGithubToken
96-
:raises: ~azure.core.exceptions.HttpResponseError
97-
"""
98-
api_version = self._get_api_version('generate_github_access_token_for_appservice_cli_async')
99-
if api_version == '2020-09-01':
100-
from .v2020_09_01.operations import WebSiteManagementClientOperationsMixin as OperationClass
101-
elif api_version == '2020-12-01':
102-
from .v2020_12_01.operations import WebSiteManagementClientOperationsMixin as OperationClass
103-
elif api_version == '2021-01-01':
104-
from .v2021_01_01.operations import WebSiteManagementClientOperationsMixin as OperationClass
105-
elif api_version == '2021-01-15':
106-
from .v2021_01_15.operations import WebSiteManagementClientOperationsMixin as OperationClass
107-
elif api_version == '2021-02-01':
108-
from .v2021_02_01.operations import WebSiteManagementClientOperationsMixin as OperationClass
109-
else:
110-
raise ValueError("API version {} does not have operation 'generate_github_access_token_for_appservice_cli_async'".format(api_version))
111-
mixin_instance = OperationClass()
112-
mixin_instance._client = self._client
113-
mixin_instance._config = self._config
114-
mixin_instance._serialize = Serializer(self._models_dict(api_version))
115-
mixin_instance._serialize.client_side_validation = False
116-
mixin_instance._deserialize = Deserializer(self._models_dict(api_version))
117-
return mixin_instance.generate_github_access_token_for_appservice_cli_async(code, state, **kwargs)
118-
11979
def get_publishing_user(
12080
self,
12181
**kwargs # type: Any

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

Lines changed: 0 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -72,46 +72,6 @@ async def check_name_availability(
7272
mixin_instance._deserialize = Deserializer(self._models_dict(api_version))
7373
return await mixin_instance.check_name_availability(name, type, is_fqdn, **kwargs)
7474

75-
async def generate_github_access_token_for_appservice_cli_async(
76-
self,
77-
code: str,
78-
state: str,
79-
**kwargs: Any
80-
) -> "_models.AppserviceGithubToken":
81-
"""Exchange code for GitHub access token for AppService CLI.
82-
83-
Description for Exchange code for GitHub access token for AppService CLI.
84-
85-
:param code: Code string to exchange for Github Access token.
86-
:type code: str
87-
:param state: State string used for verification.
88-
:type state: str
89-
:keyword callable cls: A custom type or function that will be passed the direct response
90-
:return: AppserviceGithubToken, or the result of cls(response)
91-
:rtype: ~azure.mgmt.web.v2021_02_01.models.AppserviceGithubToken
92-
:raises: ~azure.core.exceptions.HttpResponseError
93-
"""
94-
api_version = self._get_api_version('generate_github_access_token_for_appservice_cli_async')
95-
if api_version == '2020-09-01':
96-
from ..v2020_09_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass
97-
elif api_version == '2020-12-01':
98-
from ..v2020_12_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass
99-
elif api_version == '2021-01-01':
100-
from ..v2021_01_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass
101-
elif api_version == '2021-01-15':
102-
from ..v2021_01_15.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass
103-
elif api_version == '2021-02-01':
104-
from ..v2021_02_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass
105-
else:
106-
raise ValueError("API version {} does not have operation 'generate_github_access_token_for_appservice_cli_async'".format(api_version))
107-
mixin_instance = OperationClass()
108-
mixin_instance._client = self._client
109-
mixin_instance._config = self._config
110-
mixin_instance._serialize = Serializer(self._models_dict(api_version))
111-
mixin_instance._serialize.client_side_validation = False
112-
mixin_instance._deserialize = Deserializer(self._models_dict(api_version))
113-
return await mixin_instance.generate_github_access_token_for_appservice_cli_async(code, state, **kwargs)
114-
11575
async def get_publishing_user(
11676
self,
11777
**kwargs: Any

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

sdk/appservice/azure-mgmt-web/azure/mgmt/web/v2015_08_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 = "5.0.0"
9+
VERSION = "0.42.0"

sdk/appservice/azure-mgmt-web/azure/mgmt/web/v2016_03_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 = "5.0.0"
9+
VERSION = "0.42.0"

sdk/appservice/azure-mgmt-web/azure/mgmt/web/v2016_08_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 = "5.0.0"
9+
VERSION = "0.42.0"

sdk/appservice/azure-mgmt-web/azure/mgmt/web/v2016_08_01/aio/operations/_web_apps_operations.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9634,8 +9634,8 @@ async def begin_create_or_update_slot(
96349634
:param name: Unique name of the app to create or update. To create or update a deployment slot,
96359635
use the {slot} parameter.
96369636
:type name: str
9637-
:param slot: Name of the deployment slot to create or update. By default, this API attempts to
9638-
create or modify the production slot.
9637+
:param slot: Name of the deployment slot to create or update. The name 'production' is
9638+
reserved.
96399639
:type slot: str
96409640
:param site_envelope: A JSON representation of the app properties. See example.
96419641
:type site_envelope: ~azure.mgmt.web.v2016_08_01.models.Site
@@ -9811,8 +9811,8 @@ async def update_slot(
98119811
:param name: Unique name of the app to create or update. To create or update a deployment slot,
98129812
use the {slot} parameter.
98139813
:type name: str
9814-
:param slot: Name of the deployment slot to create or update. By default, this API attempts to
9815-
create or modify the production slot.
9814+
:param slot: Name of the deployment slot to create or update. The name 'production' is
9815+
reserved.
98169816
:type slot: str
98179817
:param site_envelope: A JSON representation of the app properties. See example.
98189818
:type site_envelope: ~azure.mgmt.web.v2016_08_01.models.SitePatchResource

sdk/appservice/azure-mgmt-web/azure/mgmt/web/v2016_08_01/operations/_web_apps_operations.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9782,8 +9782,8 @@ def begin_create_or_update_slot(
97829782
:param name: Unique name of the app to create or update. To create or update a deployment slot,
97839783
use the {slot} parameter.
97849784
:type name: str
9785-
:param slot: Name of the deployment slot to create or update. By default, this API attempts to
9786-
create or modify the production slot.
9785+
:param slot: Name of the deployment slot to create or update. The name 'production' is
9786+
reserved.
97879787
:type slot: str
97889788
:param site_envelope: A JSON representation of the app properties. See example.
97899789
:type site_envelope: ~azure.mgmt.web.v2016_08_01.models.Site
@@ -9961,8 +9961,8 @@ def update_slot(
99619961
:param name: Unique name of the app to create or update. To create or update a deployment slot,
99629962
use the {slot} parameter.
99639963
:type name: str
9964-
:param slot: Name of the deployment slot to create or update. By default, this API attempts to
9965-
create or modify the production slot.
9964+
:param slot: Name of the deployment slot to create or update. The name 'production' is
9965+
reserved.
99669966
:type slot: str
99679967
:param site_envelope: A JSON representation of the app properties. See example.
99689968
:type site_envelope: ~azure.mgmt.web.v2016_08_01.models.SitePatchResource

sdk/appservice/azure-mgmt-web/azure/mgmt/web/v2016_09_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 = "5.0.0"
9+
VERSION = "0.42.0"

0 commit comments

Comments
 (0)