Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
66 changes: 1 addition & 65 deletions src/azure-cli/azure/cli/command_modules/netappfiles/custom.py
Original file line number Diff line number Diff line change
Expand Up @@ -318,13 +318,6 @@ def _build_arguments_schema(cls, *args, **kwargs):
# The API does only support setting Basic and Standard
args_schema.network_features.enum = AAZArgEnum({"Basic": "Basic", "Standard": "Standard"}, case_sensitive=False)

# For backwards compat, in next breaking change window, those will be removed
args_schema.is_restoring = AAZBoolArg(
options=["--is-restoring"],
arg_group="Properties",
help="Restoring. Deprecated, do not use will be removed in future version.",
)

return args_schema

def pre_operations(self):
Expand Down Expand Up @@ -409,7 +402,7 @@ def pre_operations(self):
class VolumeUpdate(_VolumeUpdate):
@classmethod
def _build_arguments_schema(cls, *args, **kwargs):
from azure.cli.core.aaz import AAZIntArgFormat, AAZStrArg, AAZStrArgFormat, AAZBoolArg
from azure.cli.core.aaz import AAZIntArgFormat, AAZStrArg
args_schema = super()._build_arguments_schema(*args, **kwargs)
args_schema.vnet = AAZStrArg(
options=["--vnet"],
Expand All @@ -421,63 +414,6 @@ def _build_arguments_schema(cls, *args, **kwargs):
maximum=2457600,
minimum=50
)

# For backwards compat, in next breaking change window, those will be removed
args_schema.avs_data_store = AAZStrArg(
options=["--avs-data-store"],
arg_group="Properties",
help="Specifies whether the volume is enabled for Azure VMware Solution (AVS) datastore purpose. Deprecated, do not use will be removed in future version.",
nullable=True,
enum={"Disabled": "Disabled", "Enabled": "Enabled"},
)
args_schema.creation_token = AAZStrArg(
options=["--creation-token"],
arg_group="Properties",
help="A unique file path for the volume. Used when creating mount targets",
fmt=AAZStrArgFormat(
pattern="^[a-zA-Z][a-zA-Z0-9\\-]{0,79}$",
max_length=80,
min_length=1,
),
)
args_schema.is_large_volume = AAZBoolArg(
options=["--is-large-volume"],
arg_group="Properties",
help="Specifies whether volume is a Large Volume or Regular Volume.",
nullable=True,
)
args_schema.is_restoring = AAZBoolArg(
options=["--is-restoring"],
arg_group="Properties",
help="Restoring",
nullable=True,
)
args_schema.ldap_enabled = AAZBoolArg(
options=["--ldap-enabled"],
arg_group="Properties",
help="Specifies whether LDAP is enabled or not for a given NFS volume.",
nullable=True,
)
args_schema.network_features = AAZStrArg(
options=["--network-features"],
arg_group="Properties",
help="Basic network, or Standard features available to the volume. hide me",
nullable=True,
enum={"Basic": "Basic", "Basic_Standard": "Basic_Standard", "Standard": "Standard", "Standard_Basic": "Standard_Basic"},
)
args_schema.security_style = AAZStrArg(
options=["--security-style"],
arg_group="Properties",
help="The security style of volume, default unix, defaults to ntfs for dual protocol or CIFS protocol",
nullable=True,
enum={"ntfs": "ntfs", "unix": "unix"},
)
args_schema.volume_type = AAZStrArg(
options=["--volume-type"],
arg_group="Properties",
help="What type of volume is this. For destination volumes in Cross Region Replication, set type to DataProtection",
nullable=True,
)
return args_schema

def pre_operations(self):
Expand Down