Skip to content

Commit 1cf1392

Browse files
committed
Breaking2
1 parent 5f29140 commit 1cf1392

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@
33
# Licensed under the MIT License. See License.txt in the project root for license information.
44
# --------------------------------------------------------------------------------------------
55
from azure.cli.core.breaking_change import register_argument_deprecate
6+
register_argument_deprecate('netappfiles volume create', '--endpoint-type')
67
register_argument_deprecate('netappfiles volume update', '--endpoint-type')

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

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -315,6 +315,15 @@ def _build_arguments_schema(cls, *args, **kwargs):
315315
minimum=50
316316
)
317317

318+
# Removed in API is not needed, added here for backwards compatibility will be removed in breaking change window
319+
args_schema.endpoint_type = AAZStrArg(
320+
options=["--endpoint-type"],
321+
arg_group="Replication",
322+
help="Indicates whether the local volume is the source or destination for the Volume Replication",
323+
nullable=True,
324+
enum={"dst": "dst", "src": "src"},
325+
)
326+
318327
# The API does only support setting Basic and Standard
319328
args_schema.network_features.enum = AAZArgEnum({"Basic": "Basic", "Standard": "Standard"}, case_sensitive=False)
320329

0 commit comments

Comments
 (0)