Skip to content

Commit

Permalink
{App Service}: Updating websites extension to the latest Python SDK v…
Browse files Browse the repository at this point in the history
…ersion 0.48.0 (#15514)

* Updating websites extension to the latest Python SDK version

* style check fixes

* Adding recording

Co-authored-by: Sisira Panchagnula <sisirapanchagnula@aarorayoga2.redmond.corp.microsoft.com>
  • Loading branch information
panchagnula and Sisira Panchagnula authored Oct 15, 2020
1 parent 9139e6a commit 6ae23ae
Show file tree
Hide file tree
Showing 142 changed files with 18,952 additions and 66,681 deletions.
5 changes: 2 additions & 3 deletions src/azure-cli/azure/cli/command_modules/appservice/_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,7 @@ def load_arguments(self, _):
local_context_attribute=LocalContextAttribute(name='ase_name', actions=[LocalContextAction.GET]))
c.argument('sku', arg_type=sku_arg_type)
c.argument('is_linux', action='store_true', required=False, help='host web app on Linux worker')
c.argument('hyper_v', action='store_true', required=False, help='Host web app on Windows container',
is_preview=True)
c.argument('hyper_v', action='store_true', required=False, help='Host web app on Windows container')
c.argument('per_site_scaling', action='store_true', required=False, help='Enable per-app scaling at the '
'App Service plan level to allow for '
'scaling an app independently from '
Expand Down Expand Up @@ -320,7 +319,7 @@ def load_arguments(self, _):
c.argument('python_version', help='The version used to run your web app if using Python, e.g., 2.7, 3.4')
c.argument('net_framework_version', help="The version used to run your web app if using .NET Framework, e.g., 'v4.0' for .NET 4.6 and 'v3.0' for .NET 3.5")
c.argument('linux_fx_version', help="The runtime stack used for your linux-based webapp, e.g., \"RUBY|2.5.5\", \"NODE|10.14\", \"PHP|7.2\", \"DOTNETCORE|2.1\". See https://aka.ms/linux-stacks for more info.")
c.argument('windows_fx_version', help="A docker image name used for your windows container web app, e.g., microsoft/nanoserver:ltsc2016", is_preview=True)
c.argument('windows_fx_version', help="A docker image name used for your windows container web app, e.g., microsoft/nanoserver:ltsc2016")
if scope == 'functionapp':
c.ignore('windows_fx_version')
c.argument('pre_warmed_instance_count', options_list=['--prewarmed-instance-count'],
Expand Down
22 changes: 11 additions & 11 deletions src/azure-cli/azure/cli/command_modules/appservice/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ def load_command_table(self, _):
g.custom_command('bind', 'bind_ssl_cert', exception_handler=ex_handler_factory(), validator=validate_app_or_slot_exists_in_rg)
g.custom_command('unbind', 'unbind_ssl_cert', validator=validate_app_or_slot_exists_in_rg)
g.custom_command('delete', 'delete_ssl_cert', exception_handler=ex_handler_factory())
g.custom_command('import', 'import_ssl_cert', exception_handler=ex_handler_factory(), is_preview=True)
g.custom_command('import', 'import_ssl_cert', exception_handler=ex_handler_factory())
g.custom_command('create', 'create_managed_ssl_cert', exception_handler=ex_handler_factory(), is_preview=True)

with self.command_group('webapp config backup') as g:
Expand Down Expand Up @@ -225,25 +225,25 @@ def load_command_table(self, _):
g.custom_command('list', 'list_deleted_webapp')
g.custom_command('restore', 'restore_deleted_webapp')

with self.command_group('webapp hybrid-connection', is_preview=True) as g:
with self.command_group('webapp hybrid-connection') as g:
g.custom_command('list', 'list_hc')
g.custom_command('add', 'add_hc')
g.custom_command('remove', 'remove_hc')

with self.command_group('functionapp hybrid-connection', is_preview=True) as g:
with self.command_group('functionapp hybrid-connection') as g:
g.custom_command('list', 'list_hc')
g.custom_command('add', 'add_hc')
g.custom_command('remove', 'remove_hc')

with self.command_group('appservice hybrid-connection', is_preview=True) as g:
with self.command_group('appservice hybrid-connection') as g:
g.custom_command('set-key', 'set_hc_key')

with self.command_group('webapp vnet-integration', is_preview=True) as g:
with self.command_group('webapp vnet-integration') as g:
g.custom_command('add', 'add_vnet_integration')
g.custom_command('list', 'list_vnet_integration')
g.custom_command('remove', 'remove_vnet_integration')

with self.command_group('functionapp vnet-integration', is_preview=True) as g:
with self.command_group('functionapp vnet-integration') as g:
g.custom_command('add', 'add_vnet_integration')
g.custom_command('list', 'list_vnet_integration')
g.custom_command('remove', 'remove_vnet_integration')
Expand All @@ -260,7 +260,7 @@ def load_command_table(self, _):
with self.command_group('appservice') as g:
g.custom_command('list-locations', 'list_locations', transform=transform_list_location_output)

with self.command_group('appservice vnet-integration', is_preview=True) as g:
with self.command_group('appservice vnet-integration') as g:
g.custom_command('list', 'appservice_list_vnet')

with self.command_group('functionapp') as g:
Expand Down Expand Up @@ -299,7 +299,7 @@ def load_command_table(self, _):
g.custom_command('bind', 'bind_ssl_cert', exception_handler=ex_handler_factory())
g.custom_command('unbind', 'unbind_ssl_cert')
g.custom_command('delete', 'delete_ssl_cert')
g.custom_command('import', 'import_ssl_cert', exception_handler=ex_handler_factory(), is_preview=True)
g.custom_command('import', 'import_ssl_cert', exception_handler=ex_handler_factory())
g.custom_command('create', 'create_managed_ssl_cert', exception_handler=ex_handler_factory(), is_preview=True)

with self.command_group('functionapp deployment source') as g:
Expand Down Expand Up @@ -365,19 +365,19 @@ def load_command_table(self, _):
g.custom_command('list', 'list_function_keys')
g.custom_command('delete', 'delete_function_key')

with self.command_group('webapp config access-restriction', custom_command_type=webapp_access_restrictions, is_preview=True) as g:
with self.command_group('webapp config access-restriction', custom_command_type=webapp_access_restrictions) as g:
g.custom_show_command('show', 'show_webapp_access_restrictions')
g.custom_command('add', 'add_webapp_access_restriction')
g.custom_command('remove', 'remove_webapp_access_restriction')
g.custom_command('set', 'set_webapp_access_restriction')

with self.command_group('functionapp config access-restriction', custom_command_type=webapp_access_restrictions, is_preview=True) as g:
with self.command_group('functionapp config access-restriction', custom_command_type=webapp_access_restrictions) as g:
g.custom_show_command('show', 'show_webapp_access_restrictions')
g.custom_command('add', 'add_webapp_access_restriction')
g.custom_command('remove', 'remove_webapp_access_restriction')
g.custom_command('set', 'set_webapp_access_restriction')

with self.command_group('appservice ase', custom_command_type=appservice_environment, is_preview=True) as g:
with self.command_group('appservice ase', custom_command_type=appservice_environment) as g:
g.custom_command('list', 'list_appserviceenvironments')
g.custom_command('list-addresses', 'list_appserviceenvironment_addresses')
g.custom_command('list-plans', 'list_appserviceenvironment_plans')
Expand Down
Loading

0 comments on commit 6ae23ae

Please sign in to comment.