Skip to content

Commit 907c968

Browse files
authored
{Storage-Preview} az storage account migration: Remove cmd group as it has been GA in main repo, Remove DATA_COSMOS_TABLE and DATA_STORAGE (Azure#8934)
* remove storage account migration as it has been GA in main repo * remove DATA_COSMOS_TABLE and DATA_STORAGE references * style
1 parent 322841e commit 907c968

23 files changed

+701
-1480
lines changed

src/storage-preview/HISTORY.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@
33
Release History
44
===============
55

6+
1.0.0b7
7+
++++++
8+
* Remove DATA_COSMOS_TABLE and DATA_STORAGE references
9+
* `az storage account migration start/show`: Remove since it has been GA in main repo
10+
611
1.0.0b6
712
+++++++
813
* `az storage account task-assignment`: Task-Assignment GA for Storage Action

src/storage-preview/azext_storage_preview/_params.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
tags_type, edge_zone_type, file_type)
88
from azure.cli.core.commands.validators import get_default_location_from_resource_group
99
from azure.cli.core.local_context import LocalContextAttribute, LocalContextAction, ALL
10+
from azure.cli.core.profiles import ResourceType
1011

1112
from ._validators import (get_datetime_type, validate_metadata, validate_bypass, validate_subnet,
1213
validate_azcopy_upload_destination_url, validate_azcopy_download_source_url,
@@ -25,12 +26,12 @@ def load_arguments(self, _): # pylint: disable=too-many-locals, too-many-statem
2526
from knack.arguments import CLIArgumentType
2627
from azure.cli.core.commands.parameters import get_resource_name_completion_list
2728

28-
from .sdkutil import get_table_data_type
2929
from .completers import get_storage_name_completion_list, get_container_name_completions
3030

3131
t_base_blob_service = self.get_sdk('blob.baseblobservice#BaseBlobService')
3232
t_file_service = self.get_sdk('file#FileService')
33-
t_table_service = get_table_data_type(self.cli_ctx, 'table', 'TableService')
33+
t_table_service = self.get_sdk('_table_service_client#TableServiceClient',
34+
resource_type=ResourceType.DATA_STORAGE_TABLE)
3435

3536
acct_name_type = CLIArgumentType(options_list=['--account-name', '-n'], help='The storage account name.',
3637
id_part='name',
@@ -388,7 +389,7 @@ def load_arguments(self, _): # pylint: disable=too-many-locals, too-many-statem
388389
'Possible values include: `Enabled` or `Disabled`.')
389390
c.argument('account_name', acct_name_type, options_list=['--name', '-n'])
390391
c.argument('resource_group_name', required=False, validator=process_resource_group)
391-
c.argument('enable_extended_groups', arg_type=get_three_state_flag(),
392+
c.argument('enable_extended_groups', arg_type=get_three_state_flag(), is_preview=True,
392393
help='Enable extended group support with local users feature, if set to true.')
393394

394395
for scope in ['storage account create', 'storage account update']:

src/storage-preview/azext_storage_preview/aaz/latest/storage/account/migration/__cmd_group.py

Lines changed: 0 additions & 23 deletions
This file was deleted.

src/storage-preview/azext_storage_preview/aaz/latest/storage/account/migration/__init__.py

Lines changed: 0 additions & 13 deletions
This file was deleted.

src/storage-preview/azext_storage_preview/aaz/latest/storage/account/migration/_show.py

Lines changed: 0 additions & 209 deletions
This file was deleted.

0 commit comments

Comments
 (0)