From 202adb040660614bd63cedaa27687c868a8eb18f Mon Sep 17 00:00:00 2001 From: Qingyi Liu <34502364+smile37773@users.noreply.github.com> Date: Tue, 24 May 2022 17:54:21 +0800 Subject: [PATCH] remove preview tags for enterprise tier GA (#4886) --- src/spring/azext_spring/_params.py | 8 ++------ src/spring/azext_spring/commands.py | 12 +++++------- 2 files changed, 7 insertions(+), 13 deletions(-) diff --git a/src/spring/azext_spring/_params.py b/src/spring/azext_spring/_params.py index 9d1a2f7fa77..ced0f787aa7 100644 --- a/src/spring/azext_spring/_params.py +++ b/src/spring/azext_spring/_params.py @@ -117,16 +117,13 @@ def load_arguments(self, _): c.argument('build_pool_size', arg_type=get_enum_type(['S1', 'S2', 'S3', 'S4', 'S5']), validator=validate_build_pool_size, - is_preview=True, help='(Enterprise Tier Only) Size of build agent pool. See https://aka.ms/azure-spring-cloud-build-service-docs for size info.') c.argument('enable_application_configuration_service', action='store_true', - is_preview=True, options_list=['--enable-application-configuration-service', '--enable-acs'], help='(Enterprise Tier Only) Enable Application Configuration Service.') c.argument('enable_service_registry', action='store_true', - is_preview=True, options_list=['--enable-service-registry', '--enable-sr'], help='(Enterprise Tier Only) Enable Service Registry.') c.argument('enable_gateway', @@ -184,7 +181,6 @@ def load_arguments(self, _): hide=True)) c.argument('build_pool_size', arg_type=get_enum_type(['S1', 'S2', 'S3', 'S4', 'S5']), - is_preview=True, help='(Enterprise Tier Only) Size of build agent pool. See https://aka.ms/azure-spring-cloud-build-service-docs for size info.') for scope in ['spring create', 'spring update']: @@ -340,7 +336,7 @@ def prepare_logs_argument(c): c.argument('config_file_patterns', help="(Enterprise Tier Only) Config file patterns separated with \',\' to decide which patterns " "of Application Configuration Service will be used. Use '\"\"' to clear existing configurations.", - validator=validate_config_file_patterns, is_preview=True) + validator=validate_config_file_patterns) with self.argument_context('spring app scale') as c: c.argument('cpu', arg_type=cpu_type) @@ -357,7 +353,7 @@ def prepare_logs_argument(c): c.argument( 'disable_validation', arg_type=get_three_state_flag(), help='If true, disable jar validation.') - c.argument('builder', help='(Enterprise Tier Only) Build service builder used to build the executable.', default='default', is_preview=True) + c.argument('builder', help='(Enterprise Tier Only) Build service builder used to build the executable.', default='default') c.argument( 'main_entry', options_list=[ '--main-entry', '-m'], help="A string containing the path to the .NET executable relative to zip root.") diff --git a/src/spring/azext_spring/commands.py b/src/spring/azext_spring/commands.py index 713d1dd04d3..4ca1680f2f1 100644 --- a/src/spring/azext_spring/commands.py +++ b/src/spring/azext_spring/commands.py @@ -224,8 +224,7 @@ def load_command_table(self, _): with self.command_group('spring service-registry', custom_command_type=service_registry_cmd_group, - exception_handler=handle_asc_exception, - is_preview=True) as g: + exception_handler=handle_asc_exception) as g: g.custom_show_command('show', 'service_registry_show', table_transformer=transform_service_registry_output) g.custom_command('bind', 'service_registry_bind') @@ -233,8 +232,7 @@ def load_command_table(self, _): with self.command_group('spring application-configuration-service', custom_command_type=application_configuration_service_cmd_group, - exception_handler=handle_asc_exception, - is_preview=True) as g: + exception_handler=handle_asc_exception) as g: g.custom_command('clear', 'application_configuration_service_clear') g.custom_show_command('show', 'application_configuration_service_show', table_transformer=transform_application_configuration_service_output) @@ -298,7 +296,7 @@ def load_command_table(self, _): with self.command_group('spring build-service builder', custom_command_type=builder_cmd_group, - exception_handler=handle_asc_exception, is_preview=True) as g: + exception_handler=handle_asc_exception) as g: g.custom_command('create', 'create_or_update_builder', supports_no_wait=True) g.custom_command('update', 'create_or_update_builder', supports_no_wait=True) g.custom_show_command('show', 'builder_show') @@ -306,14 +304,14 @@ def load_command_table(self, _): with self.command_group('spring build-service builder buildpack-binding', custom_command_type=buildpack_binding_cmd_group, - exception_handler=handle_asc_exception, is_preview=True) as g: + exception_handler=handle_asc_exception) as g: g.custom_command('create', 'create_or_update_buildpack_binding') g.custom_command('set', 'create_or_update_buildpack_binding') g.custom_show_command('show', 'buildpack_binding_show') g.custom_command('list', 'buildpack_binding_list') g.custom_command('delete', 'buildpack_binding_delete', confirmation=True) - with self.command_group('spring build-service', exception_handler=handle_asc_exception, is_preview=True): + with self.command_group('spring build-service', exception_handler=handle_asc_exception): pass with self.command_group('spring', exception_handler=handle_asc_exception):