Skip to content

Commit 3f5d4fe

Browse files
authored
{Compute} az restore-point collection: Migrate to AAZ (#32295)
1 parent a3bbf27 commit 3f5d4fe

File tree

16 files changed

+7582
-3597
lines changed

16 files changed

+7582
-3597
lines changed

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

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,3 @@ def cf_capacity_reservations(cli_ctx, *_):
161161

162162
def cf_restore_point(cli_ctx, *_):
163163
return cf_vm_cl(cli_ctx).restore_points
164-
165-
166-
def cf_restore_point_collection(cli_ctx, *_):
167-
return cf_vm_cl(cli_ctx).restore_point_collections

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

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -3014,33 +3014,3 @@
30143014
text: |-
30153015
az restore-point collection show --resource-group "myResourceGroup" --collection-name "rpcName"
30163016
"""
3017-
3018-
helps['restore-point collection create'] = """
3019-
type: command
3020-
short-summary: "Create the restore point collection. Please refer to https://aka.ms/RestorePoints \
3021-
for more details. When updating a restore point collection, only tags may be modified."
3022-
examples:
3023-
- name: Create or update a restore point collection.
3024-
text: |-
3025-
az restore-point collection create --location "norwayeast" --source-id "/subscriptions/{subscription-id}\
3026-
/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/myVM" --tags myTag1="tagValue1" \
3027-
--resource-group "myResourceGroup" --collection-name "myRpc"
3028-
"""
3029-
3030-
helps['restore-point collection update'] = """
3031-
type: command
3032-
short-summary: "Update the restore point collection."
3033-
"""
3034-
3035-
helps['restore-point collection wait'] = """
3036-
type: command
3037-
short-summary: Place the CLI in a waiting state until a condition of the restore-point-collection is met.
3038-
parameters:
3039-
- name: --expand
3040-
short-summary: The expand expression to apply on the operation. If expand=restorePoints, server will return all
3041-
contained restore points in the restorePointCollection. "restorePoints" Default value is None.
3042-
examples:
3043-
- name: Pause executing next line of CLI script until the restore-point-collection is successfully deleted.
3044-
text: |-
3045-
az restore-point collection wait --resource-group "myResourceGroup" --collection-name "rpcName" --deleted
3046-
"""

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

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1516,16 +1516,6 @@ def load_arguments(self, _):
15161516
# endRegion
15171517

15181518
# region Restore point collection
1519-
with self.argument_context('restore-point collection create') as c:
1520-
c.argument('location', arg_type=get_location_type(self.cli_ctx), required=False,
1521-
validator=get_default_location_from_resource_group)
1522-
c.argument('tags', tags_type)
1523-
c.argument('source_id', help='Resource Id of the source resource used to create this restore point collection',
1524-
arg_group='Source')
1525-
1526-
with self.argument_context('restore-point collection update') as c:
1527-
c.argument('tags', tags_type)
1528-
15291519
with self.argument_context('restore-point collection show') as c:
15301520
c.argument('expand', help='The expand expression to apply on the operation.',
15311521
deprecate_info=c.deprecate(hide=True))

src/azure-cli/azure/cli/command_modules/vm/aaz/latest/restore_point/collection/__init__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@
99
# flake8: noqa
1010

1111
from .__cmd_group import *
12+
from ._create import *
1213
from ._delete import *
1314
from ._list import *
1415
from ._list_all import *
16+
from ._show import *
17+
from ._update import *
18+
from ._wait import *

0 commit comments

Comments
 (0)