Skip to content
Prev Previous commit
Next Next commit
Remove volume backup status until it has been moved to backups_operat…
…ions
  • Loading branch information
hodd committed Mar 22, 2021
commit bd9e2fe8bf3881ee87fae28b8e20259ed4df4864
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,3 @@ def backup_policies_mgmt_client_factory(cli_ctx, _):

def vaults_mgmt_client_factory(cli_ctx, _):
return cf_netappfiles(cli_ctx).vaults


def volume_backup_status_mgmt_client_factory(cli_ctx, _):
return cf_netappfiles(cli_ctx).volume_backup_status
22 changes: 0 additions & 22 deletions src/azure-cli/azure/cli/command_modules/netappfiles/_help.py
Original file line number Diff line number Diff line change
Expand Up @@ -921,28 +921,6 @@
"""


helps['netappfiles volume backup status'] = """
type: group
short-summary: See Azure NetApp Files (ANF) Volume Backup Status.
"""

helps['netappfiles volume backup status show'] = """
type: command
short-summary: Update the specified ANF backup with the values provided.
parameters:
- name: --account-name -a
short-summary: The name of the ANF account
- name: --pool-name -p
short-summary: The name of the ANF pool
- name: --name --volume-name -n -v
short-summary: The name of the ANF volume
examples:
- name: Get volume's ANF backup status
text: >
az netappfiles volume backup status show -g mygroup --account-name myaccname --pool-name mypoolname --name myvolname
"""


helps['netappfiles snapshot policy'] = """
type: group
short-summary: Manage Azure NetApp Files (ANF) Snapshot Policy Resources.
Expand Down
15 changes: 1 addition & 14 deletions src/azure-cli/azure/cli/command_modules/netappfiles/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@
account_backups_mgmt_client_factory,
backups_mgmt_client_factory,
backup_policies_mgmt_client_factory,
vaults_mgmt_client_factory,
volume_backup_status_mgmt_client_factory)
vaults_mgmt_client_factory)
from ._exception_handler import netappfiles_exception_handler


Expand Down Expand Up @@ -84,13 +83,6 @@ def load_command_table(self, _):
)
load_vaults_command_groups(self, netappfiles_vaults_sdk)

netappfiles_volume_backup_status_sdk = CliCommandType(
operations_tmpl='azure.mgmt.netapp.operations._volume_backup_status_operations#VolumeBackupStatusOperations.{}',
client_factory=volume_backup_status_mgmt_client_factory,
exception_handler=netappfiles_exception_handler
)
load_volume_backup_status_command_groups(self, netappfiles_volume_backup_status_sdk)

with self.command_group('netappfiles', is_preview=False):
pass

Expand Down Expand Up @@ -269,8 +261,3 @@ def load_snapshots_policies_command_groups(self, netappfiles_snapshot_policies_s
def load_vaults_command_groups(self, netappfiles_vaults_sdk):
with self.command_group('netappfiles vault', netappfiles_vaults_sdk) as g:
g.command('list', 'list')


def load_volume_backup_status_command_groups(self, netappfiles_volume_backup_status_sdk):
with self.command_group('netappfiles volume backup status', netappfiles_volume_backup_status_sdk, is_preview=True) as g:
g.show_command('show', 'get')

This file was deleted.