Skip to content

Commit a3dd5a4

Browse files
committed
remove is_preview tags for params that have been GA already
1 parent a029fcf commit a3dd5a4

File tree

1 file changed

+13
-14
lines changed
  • src/storage-preview/azext_storage_preview

1 file changed

+13
-14
lines changed

src/storage-preview/azext_storage_preview/_params.py

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -84,11 +84,10 @@ def load_arguments(self, _): # pylint: disable=too-many-locals, too-many-statem
8484
help="Specify the security identifier (SID) for Azure Storage. "
8585
"Required when --enable-files-adds is set to True")
8686
sam_account_name_type = CLIArgumentType(min_api='2021-08-01', arg_group="Azure Active Directory Properties",
87-
help="Specify the Active Directory SAMAccountName for Azure Storage.",
88-
is_preview=True)
87+
help="Specify the Active Directory SAMAccountName for Azure Storage.")
8988
t_account_type = self.get_models('ActiveDirectoryPropertiesAccountType', resource_type=CUSTOM_MGMT_STORAGE)
9089
account_type_type = CLIArgumentType(min_api='2021-08-01', arg_group="Azure Active Directory Properties",
91-
arg_type=get_enum_type(t_account_type), is_preview=True,
90+
arg_type=get_enum_type(t_account_type),
9291
help="Specify the Active Directory account type for Azure Storage.")
9392
t_routing_choice = self.get_models('RoutingChoice', resource_type=CUSTOM_MGMT_STORAGE)
9493
routing_choice_type = CLIArgumentType(
@@ -159,7 +158,7 @@ def load_arguments(self, _): # pylint: disable=too-many-locals, too-many-statem
159158
resource_type=CUSTOM_MGMT_STORAGE
160159
)
161160
dns_endpoint_type_type = CLIArgumentType(
162-
arg_type=get_enum_type(dns_endpoint_type_enum), is_preview=True,
161+
arg_type=get_enum_type(dns_endpoint_type_enum),
163162
options_list=['--dns-endpoint-type', '--endpoint'], min_api='2021-09-01',
164163
help='Allow you to specify the type of endpoint. Set this to AzureDNSZone to create a large number of '
165164
'accounts in a single subscription, which creates accounts in an Azure DNS Zone and the endpoint URL '
@@ -228,9 +227,9 @@ def load_arguments(self, _): # pylint: disable=too-many-locals, too-many-statem
228227
c.argument('custom_domain', help='User domain assigned to the storage account. Name is the CNAME source.')
229228
c.argument('sku', help='The storage account SKU.', arg_type=get_enum_type(t_sku_name, default='standard_ragrs'))
230229
c.argument('enable_sftp', arg_type=get_three_state_flag(), min_api='2021-08-01',
231-
is_preview=True, help='Enable Secure File Transfer Protocol.')
230+
help='Enable Secure File Transfer Protocol.')
232231
c.argument('enable_local_user', arg_type=get_three_state_flag(), min_api='2021-08-01',
233-
is_preview=True, help='Enable local user features.')
232+
help='Enable local user features.')
234233
c.argument('enable_files_aadds', aadds_type)
235234
c.argument('enable_files_adds', adds_type)
236235
c.argument('enable_files_aadkerb', aadkerb_type)
@@ -286,7 +285,7 @@ def load_arguments(self, _): # pylint: disable=too-many-locals, too-many-statem
286285
c.argument('sas_expiration_period', sas_expiration_period_type, is_preview=True)
287286
c.argument('allow_cross_tenant_replication', allow_cross_tenant_replication_type)
288287
c.argument('default_share_permission', default_share_permission_type)
289-
c.argument('enable_nfs_v3', arg_type=get_three_state_flag(), is_preview=True, min_api='2021-01-01',
288+
c.argument('enable_nfs_v3', arg_type=get_three_state_flag(), min_api='2021-01-01',
290289
help='NFS 3.0 protocol support enabled if sets to true.')
291290
c.argument('enable_alw', arg_type=get_three_state_flag(), min_api='2021-06-01',
292291
help='The account level immutability property. The property is immutable and can only be set to true'
@@ -315,7 +314,7 @@ def load_arguments(self, _): # pylint: disable=too-many-locals, too-many-statem
315314
c.argument('public_network_access', arg_type=get_enum_type(public_network_access_enum), min_api='2021-06-01',
316315
help='Enable or disable public network access to the storage account. '
317316
'Possible values include: `Enabled` or `Disabled`.')
318-
c.argument('enable_extended_groups', arg_type=get_three_state_flag(),
317+
c.argument('enable_extended_groups', arg_type=get_three_state_flag(), is_preview=True,
319318
help='Enable extended group support with local users feature, if set to true.')
320319

321320
with self.argument_context('storage account update', resource_type=CUSTOM_MGMT_STORAGE) as c:
@@ -333,9 +332,9 @@ def load_arguments(self, _): # pylint: disable=too-many-locals, too-many-statem
333332
arg_type=get_enum_type(['true', 'false']))
334333
c.argument('tags', tags_type, default=None)
335334
c.argument('enable_sftp', arg_type=get_three_state_flag(), min_api='2021-08-01',
336-
is_preview=True, help='Enable Secure File Transfer Protocol.')
335+
help='Enable Secure File Transfer Protocol.')
337336
c.argument('enable_local_user', arg_type=get_three_state_flag(), min_api='2021-08-01',
338-
is_preview=True, help='Enable local user features.')
337+
help='Enable local user features.')
339338
c.argument('enable_files_aadds', aadds_type)
340339
c.argument('enable_files_adds', adds_type)
341340
c.argument('enable_files_aadkerb', aadkerb_type)
@@ -894,24 +893,24 @@ def load_arguments(self, _): # pylint: disable=too-many-locals, too-many-statem
894893

895894
for cmd in ['list-handle', 'close-handle']:
896895
with self.argument_context('storage share ' + cmd) as c:
897-
c.extra('disallow_trailing_dot', arg_type=get_three_state_flag(), default=False, is_preview=True,
896+
c.extra('disallow_trailing_dot', arg_type=get_three_state_flag(), default=False,
898897
help="If true, the trailing dot will be trimmed from the target URI. Default to False")
899898

900899
for cmd in ['create', 'delete', 'show', 'exists', 'metadata show', 'metadata update', 'list']:
901900
with self.argument_context('storage directory ' + cmd) as c:
902-
c.extra('disallow_trailing_dot', arg_type=get_three_state_flag(), default=False, is_preview=True,
901+
c.extra('disallow_trailing_dot', arg_type=get_three_state_flag(), default=False,
903902
help="If true, the trailing dot will be trimmed from the target URI. Default to False")
904903

905904
for cmd in ['list', 'delete', 'delete-batch', 'resize', 'url', 'generate-sas', 'show', 'update',
906905
'exists', 'metadata show', 'metadata update', 'copy start', 'copy cancel', 'copy start-batch',
907906
'upload', 'upload-batch', 'download', 'download-batch']:
908907
with self.argument_context('storage file ' + cmd) as c:
909-
c.extra('disallow_trailing_dot', arg_type=get_three_state_flag(), default=False, is_preview=True,
908+
c.extra('disallow_trailing_dot', arg_type=get_three_state_flag(), default=False,
910909
help="If true, the trailing dot will be trimmed from the target URI. Default to False")
911910

912911
for cmd in ['start', 'start-batch']:
913912
with self.argument_context('storage file copy ' + cmd) as c:
914-
c.extra('disallow_source_trailing_dot', arg_type=get_three_state_flag(), default=False, is_preview=True,
913+
c.extra('disallow_source_trailing_dot', arg_type=get_three_state_flag(), default=False,
915914
options_list=["--disallow-source-trailing-dot", "--disallow-src-trailing"],
916915
help="If true, the trailing dot will be trimmed from the source URI. Default to False")
917916

0 commit comments

Comments
 (0)