Skip to content

Commit

Permalink
CodeGen from PR 19712 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
fix policheck (Azure#19712)

Co-authored-by: [email protected] <[email protected]>
  • Loading branch information
SDKAuto and [email protected] committed Jul 12, 2022
1 parent c639ff1 commit 60cdf83
Show file tree
Hide file tree
Showing 19 changed files with 22 additions and 218 deletions.
4 changes: 2 additions & 2 deletions sdk/appservice/azure-mgmt-web/_meta.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
"@autorest/[email protected]",
"@autorest/[email protected]"
],
"commit": "fbe071bba84e3e724573b3fc4efdeb041174d547",
"commit": "ba4bd66f513ccd4963cf3d8367f18539761c4cce",
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
"autorest_command": "autorest specification/web/resource-manager/readme.md --python --python-sdks-folder=/home/vsts/work/1/azure-sdk-for-python/sdk --python3-only --use=@autorest/[email protected] --use=@autorest/[email protected] --version=3.7.2",
"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/[email protected] --use=@autorest/[email protected] --version=3.7.2",
"readme": "specification/web/resource-manager/readme.md"
}
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,6 @@ def check_name_availability(
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-03-01':
from .v2021_03_01.operations import WebSiteManagementClientOperationsMixin as OperationClass
elif api_version == '2022-03-01':
from .v2022_03_01.operations import WebSiteManagementClientOperationsMixin as OperationClass
else:
Expand Down Expand Up @@ -107,8 +105,6 @@ def get_publishing_user(
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-03-01':
from .v2021_03_01.operations import WebSiteManagementClientOperationsMixin as OperationClass
elif api_version == '2022-03-01':
from .v2022_03_01.operations import WebSiteManagementClientOperationsMixin as OperationClass
else:
Expand Down Expand Up @@ -155,8 +151,6 @@ def get_source_control(
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-03-01':
from .v2021_03_01.operations import WebSiteManagementClientOperationsMixin as OperationClass
elif api_version == '2022-03-01':
from .v2022_03_01.operations import WebSiteManagementClientOperationsMixin as OperationClass
else:
Expand Down Expand Up @@ -200,8 +194,6 @@ def get_subscription_deployment_locations(
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-03-01':
from .v2021_03_01.operations import WebSiteManagementClientOperationsMixin as OperationClass
elif api_version == '2022-03-01':
from .v2022_03_01.operations import WebSiteManagementClientOperationsMixin as OperationClass
else:
Expand Down Expand Up @@ -250,8 +242,6 @@ def list_billing_meters(
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-03-01':
from .v2021_03_01.operations import WebSiteManagementClientOperationsMixin as OperationClass
elif api_version == '2022-03-01':
from .v2022_03_01.operations import WebSiteManagementClientOperationsMixin as OperationClass
else:
Expand Down Expand Up @@ -284,9 +274,7 @@ def list_custom_host_name_sites(
:raises: ~azure.core.exceptions.HttpResponseError
"""
api_version = self._get_api_version('list_custom_host_name_sites')
if api_version == '2021-03-01':
from .v2021_03_01.operations import WebSiteManagementClientOperationsMixin as OperationClass
elif api_version == '2022-03-01':
if api_version == '2022-03-01':
from .v2022_03_01.operations import WebSiteManagementClientOperationsMixin as OperationClass
else:
raise ValueError("API version {} does not have operation 'list_custom_host_name_sites'".format(api_version))
Expand Down Expand Up @@ -344,8 +332,6 @@ def list_geo_regions(
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-03-01':
from .v2021_03_01.operations import WebSiteManagementClientOperationsMixin as OperationClass
elif api_version == '2022-03-01':
from .v2022_03_01.operations import WebSiteManagementClientOperationsMixin as OperationClass
else:
Expand Down Expand Up @@ -391,8 +377,6 @@ def list_premier_add_on_offers(
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-03-01':
from .v2021_03_01.operations import WebSiteManagementClientOperationsMixin as OperationClass
elif api_version == '2022-03-01':
from .v2022_03_01.operations import WebSiteManagementClientOperationsMixin as OperationClass
else:
Expand Down Expand Up @@ -440,8 +424,6 @@ def list_site_identifiers_assigned_to_host_name(
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-03-01':
from .v2021_03_01.operations import WebSiteManagementClientOperationsMixin as OperationClass
elif api_version == '2022-03-01':
from .v2022_03_01.operations import WebSiteManagementClientOperationsMixin as OperationClass
else:
Expand Down Expand Up @@ -485,8 +467,6 @@ def list_skus(
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-03-01':
from .v2021_03_01.operations import WebSiteManagementClientOperationsMixin as OperationClass
elif api_version == '2022-03-01':
from .v2022_03_01.operations import WebSiteManagementClientOperationsMixin as OperationClass
else:
Expand Down Expand Up @@ -532,8 +512,6 @@ def list_source_controls(
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-03-01':
from .v2021_03_01.operations import WebSiteManagementClientOperationsMixin as OperationClass
elif api_version == '2022-03-01':
from .v2022_03_01.operations import WebSiteManagementClientOperationsMixin as OperationClass
else:
Expand Down Expand Up @@ -583,8 +561,6 @@ def move( # pylint: disable=inconsistent-return-statements
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-03-01':
from .v2021_03_01.operations import WebSiteManagementClientOperationsMixin as OperationClass
elif api_version == '2022-03-01':
from .v2022_03_01.operations import WebSiteManagementClientOperationsMixin as OperationClass
else:
Expand Down Expand Up @@ -631,8 +607,6 @@ def update_publishing_user(
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-03-01':
from .v2021_03_01.operations import WebSiteManagementClientOperationsMixin as OperationClass
elif api_version == '2022-03-01':
from .v2022_03_01.operations import WebSiteManagementClientOperationsMixin as OperationClass
else:
Expand Down Expand Up @@ -682,8 +656,6 @@ def update_source_control(
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-03-01':
from .v2021_03_01.operations import WebSiteManagementClientOperationsMixin as OperationClass
elif api_version == '2022-03-01':
from .v2022_03_01.operations import WebSiteManagementClientOperationsMixin as OperationClass
else:
Expand Down Expand Up @@ -733,8 +705,6 @@ def validate(
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-03-01':
from .v2021_03_01.operations import WebSiteManagementClientOperationsMixin as OperationClass
elif api_version == '2022-03-01':
from .v2022_03_01.operations import WebSiteManagementClientOperationsMixin as OperationClass
else:
Expand Down Expand Up @@ -818,8 +788,6 @@ def validate_move( # pylint: disable=inconsistent-return-statements
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-03-01':
from .v2021_03_01.operations import WebSiteManagementClientOperationsMixin as OperationClass
elif api_version == '2022-03-01':
from .v2022_03_01.operations import WebSiteManagementClientOperationsMixin as OperationClass
else:
Expand Down Expand Up @@ -868,8 +836,6 @@ def verify_hosting_environment_vnet(
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-03-01':
from .v2021_03_01.operations import WebSiteManagementClientOperationsMixin as OperationClass
elif api_version == '2022-03-01':
from .v2022_03_01.operations import WebSiteManagementClientOperationsMixin as OperationClass
else:
Expand Down
Loading

0 comments on commit 60cdf83

Please sign in to comment.