Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions src/azure-cli/azure/cli/command_modules/sql/_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -1337,15 +1337,13 @@ def _configure_security_policy_storage_params(arg_ctx):
c.argument('time_based_immutability',
options_list=['--make-backups-immutable', '--tb-immutability'],
help='Whether to enable time based immutability on the LTR backups. '
'Possible values are: \'True\', \'False\', \'Enabled\', \'Disabled\'.',
is_preview=True)
'Possible values are: \'True\', \'False\', \'Enabled\', \'Disabled\'.')

c.argument('time_based_immutability_mode',
options_list=['--tb-immutability-mode'],
help='The mode of time based immutability to be set on the LTR backups. '
'Possible values are: \'Locked\', \'Unlocked\'. '
'This is only valid if make-backups-immutable is enabled',
is_preview=True)
'This is only valid if make-backups-immutable is enabled')

c.argument('yes',
options_list=['--yes', '-y'],
Expand Down
4 changes: 2 additions & 2 deletions src/azure-cli/azure/cli/command_modules/sql/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -348,8 +348,8 @@ def load_command_table(self, _):
g.show_command('show', 'get')
g.custom_command('list', 'list_long_term_retention_backups')
g.command('delete', 'begin_delete', confirmation=True)
g.custom_command('remove-time-based-immutability', 'remove_time_based_immutability', confirmation="Removing the time-based immutability has the effect of removing the immutability on the backup. The backup will continue to be available for the remainder of the configured duration as usual, without immutability. Are you sure you want to disable time-based immutability for the backup?", is_preview=True)
g.custom_command('lock-time-based-immutability', 'lock_time_based_immutability', confirmation="Locking the time-based immutability enforces immutability for the duration of the configured retention. This action cannot be reversed. Are you sure you want to lock time-based immutability for the backup?", is_preview=True)
g.custom_command('remove-time-based-immutability', 'remove_time_based_immutability', confirmation="Removing the time-based immutability has the effect of removing the immutability on the backup. The backup will continue to be available for the remainder of the configured duration as usual, without immutability. Are you sure you want to disable time-based immutability for the backup?")
g.custom_command('lock-time-based-immutability', 'lock_time_based_immutability', confirmation="Locking the time-based immutability enforces immutability for the duration of the configured retention. This action cannot be reversed. Are you sure you want to lock time-based immutability for the backup?")
g.custom_command('set-legal-hold-immutability', 'set_legal_hold_immutability', confirmation="When you enable Legal hold immutability on the backup, the backup will not be deleted until the legal hold is removed, even if the retention for the backup expires. Are you sure you want to enable legal hold for the backup?", is_preview=True)
g.custom_command('remove-legal-hold-immutability', 'remove_legal_hold_immutability', confirmation="Are you sure you want to disable legal hold for the backup?", is_preview=True)

Expand Down