From 0df62c5d8bf7bf27871bdc8cee8682be52c8d073 Mon Sep 17 00:00:00 2001 From: Raphael Yu Date: Thu, 5 Jan 2023 17:12:57 +0800 Subject: [PATCH 1/2] [Spring] Deprecate the subcommand group of service binding. --- src/spring/HISTORY.md | 4 ++++ src/spring/azext_spring/commands.py | 4 +++- src/spring/setup.py | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/src/spring/HISTORY.md b/src/spring/HISTORY.md index 4f42ef10fe6..9283fbd7c73 100644 --- a/src/spring/HISTORY.md +++ b/src/spring/HISTORY.md @@ -1,5 +1,9 @@ Release History =============== +1.7.0 +--- +* Deprecate the subcommand 'spring app binding'. + 1.6.2 --- * Add new arguments `--apm-types`, `--properties` and `--secrets` for command `az spring gateway update`. diff --git a/src/spring/azext_spring/commands.py b/src/spring/azext_spring/commands.py index 8eb78481f97..e9a1e9a5820 100644 --- a/src/spring/azext_spring/commands.py +++ b/src/spring/azext_spring/commands.py @@ -210,7 +210,9 @@ def load_command_table(self, _): g.custom_command('start-jfr', 'deployment_start_jfr') with self.command_group('spring app binding', client_factory=cf_spring_20220101preview, - exception_handler=handle_asc_exception) as g: + exception_handler=handle_asc_exception, deprecate_info=self.deprecate( + target='spring app binding', + redirect='spring connection', hide=True)) as g: g.custom_command('list', 'binding_list') g.custom_show_command('show', 'binding_get') g.custom_command('cosmos add', 'binding_cosmos_add') diff --git a/src/spring/setup.py b/src/spring/setup.py index 20de4e5a33b..d2ab6375d8f 100644 --- a/src/spring/setup.py +++ b/src/spring/setup.py @@ -16,7 +16,7 @@ # TODO: Confirm this is the right version number you want and it matches your # HISTORY.rst entry. -VERSION = '1.6.2' +VERSION = '1.7.0' # The full list of classifiers is available at # https://pypi.python.org/pypi?%3Aaction=list_classifiers From 09e530d4b9d0c32f9bb9da936dbe34c829dd4001 Mon Sep 17 00:00:00 2001 From: Raphael Yu Date: Mon, 9 Jan 2023 16:02:38 +0800 Subject: [PATCH 2/2] change the version. --- src/spring/HISTORY.md | 2 +- src/spring/setup.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/spring/HISTORY.md b/src/spring/HISTORY.md index 9283fbd7c73..415db192df6 100644 --- a/src/spring/HISTORY.md +++ b/src/spring/HISTORY.md @@ -1,6 +1,6 @@ Release History =============== -1.7.0 +1.6.3 --- * Deprecate the subcommand 'spring app binding'. diff --git a/src/spring/setup.py b/src/spring/setup.py index d2ab6375d8f..d1d1964a7f6 100644 --- a/src/spring/setup.py +++ b/src/spring/setup.py @@ -16,7 +16,7 @@ # TODO: Confirm this is the right version number you want and it matches your # HISTORY.rst entry. -VERSION = '1.7.0' +VERSION = '1.6.3' # The full list of classifiers is available at # https://pypi.python.org/pypi?%3Aaction=list_classifiers