Skip to content
Merged
Show file tree
Hide file tree
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
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,3 @@
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------------------------------
from azure.cli.core.breaking_change import register_argument_deprecate


register_argument_deprecate('az network vnet subnet create', '--default-outbound', target_version='2.73.0')
register_argument_deprecate('az network vnet subnet update', '--default-outbound', target_version='2.73.0')
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def _build_arguments_schema(cls, *args, **kwargs):
)
_args_schema.default_outbound_access = AAZBoolArg(
options=["--default-outbound", "--default-outbound-access"],
help="Set this property to false to disable default outbound connectivity for all VMs in the subnet. This property can only be set at the time of subnet creation and cannot be updated for an existing subnet.",
help="Set this property to false to disable default outbound connectivity for all VMs in the subnet.",
)
_args_schema.delegated_services = AAZListArg(
options=["--delegated-services"],
Expand Down Expand Up @@ -1562,7 +1562,7 @@ def _build_schema_network_security_group_read(cls, _schema):
flags={"read_only": True},
)
_element.id = AAZStrType()
_element.identity = AAZObjectType()
_element.identity = AAZIdentityObjectType()
_element.location = AAZStrType()
_element.name = AAZStrType(
flags={"read_only": True},
Expand Down Expand Up @@ -2495,6 +2495,7 @@ def _build_schema_subnet_read(cls, _schema):
)
properties.has_bgp_override = AAZBoolType(
serialized_name="hasBgpOverride",
flags={"read_only": True},
)
properties.next_hop_ip_address = AAZStrType(
serialized_name="nextHopIpAddress",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ def _build_arguments_schema(cls, *args, **kwargs):
)
_args_schema.default_outbound_access = AAZBoolArg(
options=["--default-outbound", "--default-outbound-access"],
help="Set this property to false to disable default outbound connectivity for all VMs in the subnet. This property can only be set at the time of subnet creation and cannot be updated for an existing subnet.",
help="Set this property to false to disable default outbound connectivity for all VMs in the subnet.",
nullable=True,
)
_args_schema.delegated_services = AAZListArg(
Expand Down Expand Up @@ -191,9 +191,6 @@ def _build_arguments_schema(cls, *args, **kwargs):
options=["l", "location"],
help="Resource location.",
nullable=True,
fmt=AAZResourceLocationArgFormat(
resource_group_arg="resource_group",
),
)
_element.contextual_service_endpoint_policies = AAZListArg(
options=["contextual-service-endpoint-policies"],
Expand Down Expand Up @@ -325,9 +322,6 @@ def _build_args_application_security_group_update(cls, _schema):
options=["l", "location"],
help="Resource location.",
nullable=True,
fmt=AAZResourceLocationArgFormat(
resource_group_arg="resource_group",
),
)
application_security_group_update.tags = AAZDictArg(
options=["tags"],
Expand Down Expand Up @@ -1749,7 +1743,7 @@ def _build_schema_network_security_group_read(cls, _schema):
flags={"read_only": True},
)
_element.id = AAZStrType()
_element.identity = AAZObjectType()
_element.identity = AAZIdentityObjectType()
_element.location = AAZStrType()
_element.name = AAZStrType(
flags={"read_only": True},
Expand Down Expand Up @@ -2682,6 +2676,7 @@ def _build_schema_subnet_read(cls, _schema):
)
properties.has_bgp_override = AAZBoolType(
serialized_name="hasBgpOverride",
flags={"read_only": True},
)
properties.next_hop_ip_address = AAZStrType(
serialized_name="nextHopIpAddress",
Expand Down