Skip to content

Commit

Permalink
[dataprotection] Full support for Soft Delete in V2 (#6639)
Browse files Browse the repository at this point in the history
* Soft delete V2 code

* Accidentally GAed it, reverting

* Code for soft delete should be complete, tests pending

* Added soft delete tests, infra not ready yet

* Test infra setup, new version defined, PR ready

* Remove debug statements

* Update HISTORY.rst as per review recommendation.

Co-authored-by: Yishi Wang <[email protected]>

---------

Co-authored-by: Zubair Abid <[email protected]>
Co-authored-by: Yishi Wang <[email protected]>
  • Loading branch information
3 people authored Aug 17, 2023
1 parent 9598e81 commit d195c72
Show file tree
Hide file tree
Showing 29 changed files with 4,502 additions and 1,196 deletions.
5 changes: 5 additions & 0 deletions src/dataprotection/HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@
Release History
===============
0.10.0
++++++
* Add complete support for Soft Delete
* `az dataprotection backup-instance deleted-backup-instance`: Add support to list, show, and undelete soft deleted backed up instances

0.9.2
++++++
* Updated API version to 2023-05-01 across the board
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
is_experimental=True,
)
class __CMDGroup(AAZCommandGroup):
"""Manage dataprotection
"""Manage dataprotection.
"""
pass

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
is_experimental=True,
)
class __CMDGroup(AAZCommandGroup):
"""Manage backup instance with dataprotection
"""Manage backup instance with dataprotection.
"""
pass

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ class List(AAZCommand):
]
}

AZ_SUPPORT_PAGINATION = True

def _handler(self, command_args):
super()._handler(command_args)
return self.build_paging(self._execute_operations, self._output)
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
#
# Code generated by aaz-dev-tools
# --------------------------------------------------------------------------------------------

# pylint: skip-file
# flake8: noqa

from azure.cli.core.aaz import *


@register_command_group(
"dataprotection backup-instance deleted-backup-instance",
is_experimental=True,
)
class __CMDGroup(AAZCommandGroup):
"""Perform operations on soft-deleted backup instances.
"""
pass


__all__ = ["__CMDGroup"]
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
#
# Code generated by aaz-dev-tools
# --------------------------------------------------------------------------------------------

# pylint: skip-file
# flake8: noqa

from .__cmd_group import *
from ._list import *
from ._show import *
from ._undelete import *
Loading

0 comments on commit d195c72

Please sign in to comment.