Skip to content

Commit e6ed744

Browse files
authored
[NetAppFiles] remove breaking changes properties (#31417)
1 parent 77ce1bb commit e6ed744

File tree

1 file changed

+1
-65
lines changed
  • src/azure-cli/azure/cli/command_modules/netappfiles

1 file changed

+1
-65
lines changed

src/azure-cli/azure/cli/command_modules/netappfiles/custom.py

Lines changed: 1 addition & 65 deletions
Original file line numberDiff line numberDiff line change
@@ -318,13 +318,6 @@ def _build_arguments_schema(cls, *args, **kwargs):
318318
# The API does only support setting Basic and Standard
319319
args_schema.network_features.enum = AAZArgEnum({"Basic": "Basic", "Standard": "Standard"}, case_sensitive=False)
320320

321-
# For backwards compat, in next breaking change window, those will be removed
322-
args_schema.is_restoring = AAZBoolArg(
323-
options=["--is-restoring"],
324-
arg_group="Properties",
325-
help="Restoring. Deprecated, do not use will be removed in future version.",
326-
)
327-
328321
return args_schema
329322

330323
def pre_operations(self):
@@ -409,7 +402,7 @@ def pre_operations(self):
409402
class VolumeUpdate(_VolumeUpdate):
410403
@classmethod
411404
def _build_arguments_schema(cls, *args, **kwargs):
412-
from azure.cli.core.aaz import AAZIntArgFormat, AAZStrArg, AAZStrArgFormat, AAZBoolArg
405+
from azure.cli.core.aaz import AAZIntArgFormat, AAZStrArg
413406
args_schema = super()._build_arguments_schema(*args, **kwargs)
414407
args_schema.vnet = AAZStrArg(
415408
options=["--vnet"],
@@ -421,63 +414,6 @@ def _build_arguments_schema(cls, *args, **kwargs):
421414
maximum=2457600,
422415
minimum=50
423416
)
424-
425-
# For backwards compat, in next breaking change window, those will be removed
426-
args_schema.avs_data_store = AAZStrArg(
427-
options=["--avs-data-store"],
428-
arg_group="Properties",
429-
help="Specifies whether the volume is enabled for Azure VMware Solution (AVS) datastore purpose. Deprecated, do not use will be removed in future version.",
430-
nullable=True,
431-
enum={"Disabled": "Disabled", "Enabled": "Enabled"},
432-
)
433-
args_schema.creation_token = AAZStrArg(
434-
options=["--creation-token"],
435-
arg_group="Properties",
436-
help="A unique file path for the volume. Used when creating mount targets",
437-
fmt=AAZStrArgFormat(
438-
pattern="^[a-zA-Z][a-zA-Z0-9\\-]{0,79}$",
439-
max_length=80,
440-
min_length=1,
441-
),
442-
)
443-
args_schema.is_large_volume = AAZBoolArg(
444-
options=["--is-large-volume"],
445-
arg_group="Properties",
446-
help="Specifies whether volume is a Large Volume or Regular Volume.",
447-
nullable=True,
448-
)
449-
args_schema.is_restoring = AAZBoolArg(
450-
options=["--is-restoring"],
451-
arg_group="Properties",
452-
help="Restoring",
453-
nullable=True,
454-
)
455-
args_schema.ldap_enabled = AAZBoolArg(
456-
options=["--ldap-enabled"],
457-
arg_group="Properties",
458-
help="Specifies whether LDAP is enabled or not for a given NFS volume.",
459-
nullable=True,
460-
)
461-
args_schema.network_features = AAZStrArg(
462-
options=["--network-features"],
463-
arg_group="Properties",
464-
help="Basic network, or Standard features available to the volume. hide me",
465-
nullable=True,
466-
enum={"Basic": "Basic", "Basic_Standard": "Basic_Standard", "Standard": "Standard", "Standard_Basic": "Standard_Basic"},
467-
)
468-
args_schema.security_style = AAZStrArg(
469-
options=["--security-style"],
470-
arg_group="Properties",
471-
help="The security style of volume, default unix, defaults to ntfs for dual protocol or CIFS protocol",
472-
nullable=True,
473-
enum={"ntfs": "ntfs", "unix": "unix"},
474-
)
475-
args_schema.volume_type = AAZStrArg(
476-
options=["--volume-type"],
477-
arg_group="Properties",
478-
help="What type of volume is this. For destination volumes in Cross Region Replication, set type to DataProtection",
479-
nullable=True,
480-
)
481417
return args_schema
482418

483419
def pre_operations(self):

0 commit comments

Comments
 (0)