From fd99d70afaec92f6a68291569b0db22f61c2e7ba Mon Sep 17 00:00:00 2001 From: pensh Date: Wed, 5 Jan 2022 11:03:14 +0800 Subject: [PATCH] add java 17 support --- src/spring-cloud/azext_spring_cloud/_params.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/spring-cloud/azext_spring_cloud/_params.py b/src/spring-cloud/azext_spring_cloud/_params.py index c7b21564ff4..5748d491cb9 100644 --- a/src/spring-cloud/azext_spring_cloud/_params.py +++ b/src/spring-cloud/azext_spring_cloud/_params.py @@ -20,7 +20,7 @@ validate_cpu, validate_memory) from ._utils import ApiType -from .vendored_sdks.appplatform.v2020_07_01.models import RuntimeVersion, TestKeyType +from .vendored_sdks.appplatform.v2022_01_01_preview.models._app_platform_management_client_enums import SupportedRuntimeValue, TestKeyType name_type = CLIArgumentType(options_list=[ '--name', '-n'], help='The primary resource name', validator=validate_name) @@ -205,7 +205,7 @@ def prepare_logs_argument(c): for scope in ['spring-cloud app update', 'spring-cloud app deployment create', 'spring-cloud app deploy', 'spring-cloud app create']: with self.argument_context(scope) as c: - c.argument('runtime_version', arg_type=get_enum_type(RuntimeVersion), + c.argument('runtime_version', arg_type=get_enum_type(SupportedRuntimeValue), help='Runtime version of used language') c.argument('jvm_options', type=str, validator=validate_jvm_options, help="A string containing jvm options, use '=' instead of ' ' for this argument to avoid bash parse error, eg: --jvm-options='-Xms1024m -Xmx2048m'")