Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion sdk/appservice/azure-mgmt-web/_meta.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"@autorest/[email protected]",
"@autorest/[email protected]"
],
"commit": "ec2b6d1985ce89c8646276e0806a738338e98bd2",
"commit": "3fd290e6a1929a9b509b0ddba62ff65596e9b50b",
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
"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",
"readme": "specification/web/resource-manager/readme.md"
Expand Down
40 changes: 0 additions & 40 deletions sdk/appservice/azure-mgmt-web/azure/mgmt/web/_operations_mixin.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,46 +76,6 @@ def check_name_availability(
mixin_instance._deserialize = Deserializer(self._models_dict(api_version))
return mixin_instance.check_name_availability(name, type, is_fqdn, **kwargs)

def generate_github_access_token_for_appservice_cli_async(
self,
code, # type: str
state, # type: str
**kwargs # type: Any
):
"""Exchange code for GitHub access token for AppService CLI.

Description for Exchange code for GitHub access token for AppService CLI.

:param code: Code string to exchange for Github Access token.
:type code: str
:param state: State string used for verification.
:type state: str
:keyword callable cls: A custom type or function that will be passed the direct response
:return: AppserviceGithubToken, or the result of cls(response)
:rtype: ~azure.mgmt.web.v2021_02_01.models.AppserviceGithubToken
:raises: ~azure.core.exceptions.HttpResponseError
"""
api_version = self._get_api_version('generate_github_access_token_for_appservice_cli_async')
if api_version == '2020-09-01':
from .v2020_09_01.operations import WebSiteManagementClientOperationsMixin as OperationClass
elif api_version == '2020-12-01':
from .v2020_12_01.operations import WebSiteManagementClientOperationsMixin as OperationClass
elif api_version == '2021-01-01':
from .v2021_01_01.operations import WebSiteManagementClientOperationsMixin as OperationClass
elif api_version == '2021-01-15':
from .v2021_01_15.operations import WebSiteManagementClientOperationsMixin as OperationClass
elif api_version == '2021-02-01':
from .v2021_02_01.operations import WebSiteManagementClientOperationsMixin as OperationClass
else:
raise ValueError("API version {} does not have operation 'generate_github_access_token_for_appservice_cli_async'".format(api_version))
mixin_instance = OperationClass()
mixin_instance._client = self._client
mixin_instance._config = self._config
mixin_instance._serialize = Serializer(self._models_dict(api_version))
mixin_instance._serialize.client_side_validation = False
mixin_instance._deserialize = Deserializer(self._models_dict(api_version))
return mixin_instance.generate_github_access_token_for_appservice_cli_async(code, state, **kwargs)

def get_publishing_user(
self,
**kwargs # type: Any
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,46 +72,6 @@ async def check_name_availability(
mixin_instance._deserialize = Deserializer(self._models_dict(api_version))
return await mixin_instance.check_name_availability(name, type, is_fqdn, **kwargs)

async def generate_github_access_token_for_appservice_cli_async(
self,
code: str,
state: str,
**kwargs: Any
) -> "_models.AppserviceGithubToken":
"""Exchange code for GitHub access token for AppService CLI.

Description for Exchange code for GitHub access token for AppService CLI.

:param code: Code string to exchange for Github Access token.
:type code: str
:param state: State string used for verification.
:type state: str
:keyword callable cls: A custom type or function that will be passed the direct response
:return: AppserviceGithubToken, or the result of cls(response)
:rtype: ~azure.mgmt.web.v2021_02_01.models.AppserviceGithubToken
:raises: ~azure.core.exceptions.HttpResponseError
"""
api_version = self._get_api_version('generate_github_access_token_for_appservice_cli_async')
if api_version == '2020-09-01':
from ..v2020_09_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass
elif api_version == '2020-12-01':
from ..v2020_12_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass
elif api_version == '2021-01-01':
from ..v2021_01_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass
elif api_version == '2021-01-15':
from ..v2021_01_15.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass
elif api_version == '2021-02-01':
from ..v2021_02_01.aio.operations import WebSiteManagementClientOperationsMixin as OperationClass
else:
raise ValueError("API version {} does not have operation 'generate_github_access_token_for_appservice_cli_async'".format(api_version))
mixin_instance = OperationClass()
mixin_instance._client = self._client
mixin_instance._config = self._config
mixin_instance._serialize = Serializer(self._models_dict(api_version))
mixin_instance._serialize.client_side_validation = False
mixin_instance._deserialize = Deserializer(self._models_dict(api_version))
return await mixin_instance.generate_github_access_token_for_appservice_cli_async(code, state, **kwargs)

async def get_publishing_user(
self,
**kwargs: Any
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

VERSION = "5.0.0"
VERSION = "0.42.0"
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

VERSION = "5.0.0"
VERSION = "0.42.0"
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

VERSION = "5.0.0"
VERSION = "0.42.0"
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

VERSION = "5.0.0"
VERSION = "0.42.0"
Original file line number Diff line number Diff line change
Expand Up @@ -9634,8 +9634,8 @@ async def begin_create_or_update_slot(
:param name: Unique name of the app to create or update. To create or update a deployment slot,
use the {slot} parameter.
:type name: str
:param slot: Name of the deployment slot to create or update. By default, this API attempts to
create or modify the production slot.
:param slot: Name of the deployment slot to create or update. The name 'production' is
reserved.
:type slot: str
:param site_envelope: A JSON representation of the app properties. See example.
:type site_envelope: ~azure.mgmt.web.v2016_08_01.models.Site
Expand Down Expand Up @@ -9811,8 +9811,8 @@ async def update_slot(
:param name: Unique name of the app to create or update. To create or update a deployment slot,
use the {slot} parameter.
:type name: str
:param slot: Name of the deployment slot to create or update. By default, this API attempts to
create or modify the production slot.
:param slot: Name of the deployment slot to create or update. The name 'production' is
reserved.
:type slot: str
:param site_envelope: A JSON representation of the app properties. See example.
:type site_envelope: ~azure.mgmt.web.v2016_08_01.models.SitePatchResource
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9782,8 +9782,8 @@ def begin_create_or_update_slot(
:param name: Unique name of the app to create or update. To create or update a deployment slot,
use the {slot} parameter.
:type name: str
:param slot: Name of the deployment slot to create or update. By default, this API attempts to
create or modify the production slot.
:param slot: Name of the deployment slot to create or update. The name 'production' is
reserved.
:type slot: str
:param site_envelope: A JSON representation of the app properties. See example.
:type site_envelope: ~azure.mgmt.web.v2016_08_01.models.Site
Expand Down Expand Up @@ -9961,8 +9961,8 @@ def update_slot(
:param name: Unique name of the app to create or update. To create or update a deployment slot,
use the {slot} parameter.
:type name: str
:param slot: Name of the deployment slot to create or update. By default, this API attempts to
create or modify the production slot.
:param slot: Name of the deployment slot to create or update. The name 'production' is
reserved.
:type slot: str
:param site_envelope: A JSON representation of the app properties. See example.
:type site_envelope: ~azure.mgmt.web.v2016_08_01.models.SitePatchResource
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

VERSION = "5.0.0"
VERSION = "0.42.0"
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

VERSION = "5.0.0"
VERSION = "0.42.0"
Original file line number Diff line number Diff line change
Expand Up @@ -11458,8 +11458,8 @@ async def begin_create_or_update_slot(
:param name: Unique name of the app to create or update. To create or update a deployment slot,
use the {slot} parameter.
:type name: str
:param slot: Name of the deployment slot to create or update. By default, this API attempts to
create or modify the production slot.
:param slot: Name of the deployment slot to create or update. The name 'production' is
reserved.
:type slot: str
:param site_envelope: A JSON representation of the app properties. See example.
:type site_envelope: ~azure.mgmt.web.v2018_02_01.models.Site
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11633,8 +11633,8 @@ def begin_create_or_update_slot(
:param name: Unique name of the app to create or update. To create or update a deployment slot,
use the {slot} parameter.
:type name: str
:param slot: Name of the deployment slot to create or update. By default, this API attempts to
create or modify the production slot.
:param slot: Name of the deployment slot to create or update. The name 'production' is
reserved.
:type slot: str
:param site_envelope: A JSON representation of the app properties. See example.
:type site_envelope: ~azure.mgmt.web.v2018_02_01.models.Site
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

VERSION = "5.0.0"
VERSION = "0.42.0"
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

VERSION = "5.0.0"
VERSION = "0.42.0"
Original file line number Diff line number Diff line change
Expand Up @@ -11920,8 +11920,8 @@ async def begin_create_or_update_slot(
:param name: Unique name of the app to create or update. To create or update a deployment slot,
use the {slot} parameter.
:type name: str
:param slot: Name of the deployment slot to create or update. By default, this API attempts to
create or modify the production slot.
:param slot: Name of the deployment slot to create or update. The name 'production' is
reserved.
:type slot: str
:param site_envelope: A JSON representation of the app properties. See example.
:type site_envelope: ~azure.mgmt.web.v2019_08_01.models.Site
Expand Down Expand Up @@ -12076,8 +12076,8 @@ async def update_slot(
:param name: Unique name of the app to create or update. To create or update a deployment slot,
use the {slot} parameter.
:type name: str
:param slot: Name of the deployment slot to create or update. By default, this API attempts to
create or modify the production slot.
:param slot: Name of the deployment slot to create or update. The name 'production' is
reserved.
:type slot: str
:param site_envelope: A JSON representation of the app properties. See example.
:type site_envelope: ~azure.mgmt.web.v2019_08_01.models.SitePatchResource
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12101,8 +12101,8 @@ def begin_create_or_update_slot(
:param name: Unique name of the app to create or update. To create or update a deployment slot,
use the {slot} parameter.
:type name: str
:param slot: Name of the deployment slot to create or update. By default, this API attempts to
create or modify the production slot.
:param slot: Name of the deployment slot to create or update. The name 'production' is
reserved.
:type slot: str
:param site_envelope: A JSON representation of the app properties. See example.
:type site_envelope: ~azure.mgmt.web.v2019_08_01.models.Site
Expand Down Expand Up @@ -12259,8 +12259,8 @@ def update_slot(
:param name: Unique name of the app to create or update. To create or update a deployment slot,
use the {slot} parameter.
:type name: str
:param slot: Name of the deployment slot to create or update. By default, this API attempts to
create or modify the production slot.
:param slot: Name of the deployment slot to create or update. The name 'production' is
reserved.
:type slot: str
:param site_envelope: A JSON representation of the app properties. See example.
:type site_envelope: ~azure.mgmt.web.v2019_08_01.models.SitePatchResource
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

VERSION = "5.0.0"
VERSION = "0.42.0"
Original file line number Diff line number Diff line change
Expand Up @@ -11925,8 +11925,8 @@ async def begin_create_or_update_slot(
:param name: Unique name of the app to create or update. To create or update a deployment slot,
use the {slot} parameter.
:type name: str
:param slot: Name of the deployment slot to create or update. By default, this API attempts to
create or modify the production slot.
:param slot: Name of the deployment slot to create or update. The name 'production' is
reserved.
:type slot: str
:param site_envelope: A JSON representation of the app properties. See example.
:type site_envelope: ~azure.mgmt.web.v2020_06_01.models.Site
Expand Down Expand Up @@ -12081,8 +12081,8 @@ async def update_slot(
:param name: Unique name of the app to create or update. To create or update a deployment slot,
use the {slot} parameter.
:type name: str
:param slot: Name of the deployment slot to create or update. By default, this API attempts to
create or modify the production slot.
:param slot: Name of the deployment slot to create or update. The name 'production' is
reserved.
:type slot: str
:param site_envelope: A JSON representation of the app properties. See example.
:type site_envelope: ~azure.mgmt.web.v2020_06_01.models.SitePatchResource
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12106,8 +12106,8 @@ def begin_create_or_update_slot(
:param name: Unique name of the app to create or update. To create or update a deployment slot,
use the {slot} parameter.
:type name: str
:param slot: Name of the deployment slot to create or update. By default, this API attempts to
create or modify the production slot.
:param slot: Name of the deployment slot to create or update. The name 'production' is
reserved.
:type slot: str
:param site_envelope: A JSON representation of the app properties. See example.
:type site_envelope: ~azure.mgmt.web.v2020_06_01.models.Site
Expand Down Expand Up @@ -12264,8 +12264,8 @@ def update_slot(
:param name: Unique name of the app to create or update. To create or update a deployment slot,
use the {slot} parameter.
:type name: str
:param slot: Name of the deployment slot to create or update. By default, this API attempts to
create or modify the production slot.
:param slot: Name of the deployment slot to create or update. The name 'production' is
reserved.
:type slot: str
:param site_envelope: A JSON representation of the app properties. See example.
:type site_envelope: ~azure.mgmt.web.v2020_06_01.models.SitePatchResource
Expand Down
Loading