Skip to content

Commit 6acd038

Browse files
authored
[Compute] az sig create/update: Hide --soft-delete parameter in help messages (#29377)
1 parent 1ca24a8 commit 6acd038

File tree

3 files changed

+698
-455
lines changed

3 files changed

+698
-455
lines changed

src/azure-cli/azure/cli/command_modules/vm/_params.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
from argcomplete.completers import FilesCompleter
88

99
from knack.arguments import CLIArgumentType
10+
from knack.deprecation import Deprecated
1011

1112
from azure.cli.core.profiles import ResourceType
1213
from azure.cli.core.commands.parameters import get_datetime_type
@@ -1322,7 +1323,8 @@ def load_arguments(self, _):
13221323
arg_group='Sharing Profile',
13231324
min_api='2020-09-30',
13241325
help='This property allows you to specify the permission of sharing gallery.')
1325-
c.argument('soft_delete', arg_type=get_three_state_flag(), min_api='2021-03-01', is_preview=True,
1326+
c.argument('soft_delete', arg_type=get_three_state_flag(), min_api='2021-03-01',
1327+
deprecate_info=Deprecated(self.cli_ctx, hide=True, message_func=lambda x: "Argument '--soft-delete' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus"),
13261328
help='Enable soft-deletion for resources in this gallery, '
13271329
'allowing them to be recovered within retention time.')
13281330
c.argument('publisher_uri', help='Community gallery publisher uri.')

0 commit comments

Comments
 (0)