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 @@ -31,9 +31,9 @@ class Create(AAZCommand):
"""

_aaz_info = {
"version": "2024-03-01",
"version": "2024-07-01",
"resources": [
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/virtualnetworkgateways/{}", "2024-03-01"],
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/virtualnetworkgateways/{}", "2024-07-01"],
]
}

Expand Down Expand Up @@ -88,6 +88,10 @@ def _build_arguments_schema(cls, *args, **kwargs):
options=["--min-scale-unit"],
help="Minimum scale units for auto-scale configuration.",
)
_args_schema.enable_high_bandwidth_vpn_gateway = AAZBoolArg(
options=["--enable-high-bandwidth", "--enable-high-bandwidth-vpn-gateway"],
help="To enable high-bandwidth Advanced Connectivity feature for VPN gateway",
)
_args_schema.enable_private_ip = AAZBoolArg(
options=["--enable-private-ip"],
help="Whether private IP needs to be enabled on this gateway for connections or not.",
Expand Down Expand Up @@ -512,7 +516,7 @@ def url_parameters(self):
def query_parameters(self):
parameters = {
**self.serialize_query_param(
"api-version", "2024-03-01",
"api-version", "2024-07-01",
required=True,
),
}
Expand Down Expand Up @@ -566,6 +570,7 @@ def content(self):
properties.set_prop("bgpSettings", AAZObjectType)
properties.set_prop("customRoutes", AAZObjectType)
properties.set_prop("enableBgp", AAZBoolType, ".enable_bgp")
properties.set_prop("enableHighBandwidthVpnGateway", AAZBoolType, ".enable_high_bandwidth_vpn_gateway")
properties.set_prop("enablePrivateIpAddress", AAZBoolType, ".enable_private_ip")
properties.set_prop("gatewayDefaultSite", AAZObjectType)
properties.set_prop("gatewayType", AAZStrType, ".gateway_type")
Expand Down Expand Up @@ -818,6 +823,9 @@ def _build_schema_on_200_201(cls):
properties.enable_dns_forwarding = AAZBoolType(
serialized_name="enableDnsForwarding",
)
properties.enable_high_bandwidth_vpn_gateway = AAZBoolType(
serialized_name="enableHighBandwidthVpnGateway",
)
properties.enable_private_ip_address = AAZBoolType(
serialized_name="enablePrivateIpAddress",
)
Expand Down Expand Up @@ -853,6 +861,9 @@ def _build_schema_on_200_201(cls):
properties.v_net_extended_location_resource_id = AAZStrType(
serialized_name="vNetExtendedLocationResourceId",
)
properties.virtual_network_gateway_migration_status = AAZObjectType(
serialized_name="virtualNetworkGatewayMigrationStatus",
)
properties.virtual_network_gateway_policy_groups = AAZListType(
serialized_name="virtualNetworkGatewayPolicyGroups",
)
Expand Down Expand Up @@ -993,6 +1004,13 @@ def _build_schema_on_200_201(cls):
sku.name = AAZStrType()
sku.tier = AAZStrType()

virtual_network_gateway_migration_status = cls._schema_on_200_201.properties.virtual_network_gateway_migration_status
virtual_network_gateway_migration_status.error_message = AAZStrType(
serialized_name="errorMessage",
)
virtual_network_gateway_migration_status.phase = AAZStrType()
virtual_network_gateway_migration_status.state = AAZStrType()

virtual_network_gateway_policy_groups = cls._schema_on_200_201.properties.virtual_network_gateway_policy_groups
virtual_network_gateway_policy_groups.Element = AAZObjectType()

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ class Delete(AAZCommand):
"""

_aaz_info = {
"version": "2024-03-01",
"version": "2024-07-01",
"resources": [
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/virtualnetworkgateways/{}", "2024-03-01"],
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/virtualnetworkgateways/{}", "2024-07-01"],
]
}

Expand Down Expand Up @@ -144,7 +144,7 @@ def url_parameters(self):
def query_parameters(self):
parameters = {
**self.serialize_query_param(
"api-version", "2024-03-01",
"api-version", "2024-07-01",
required=True,
),
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ class List(AAZCommand):
"""

_aaz_info = {
"version": "2024-03-01",
"version": "2024-07-01",
"resources": [
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/virtualnetworkgateways", "2024-03-01"],
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/virtualnetworkgateways", "2024-07-01"],
]
}

Expand Down Expand Up @@ -112,7 +112,7 @@ def url_parameters(self):
def query_parameters(self):
parameters = {
**self.serialize_query_param(
"api-version", "2024-03-01",
"api-version", "2024-07-01",
required=True,
),
}
Expand Down Expand Up @@ -241,6 +241,9 @@ def _build_schema_on_200(cls):
properties.enable_dns_forwarding = AAZBoolType(
serialized_name="enableDnsForwarding",
)
properties.enable_high_bandwidth_vpn_gateway = AAZBoolType(
serialized_name="enableHighBandwidthVpnGateway",
)
properties.enable_private_ip_address = AAZBoolType(
serialized_name="enablePrivateIpAddress",
)
Expand Down Expand Up @@ -276,6 +279,9 @@ def _build_schema_on_200(cls):
properties.v_net_extended_location_resource_id = AAZStrType(
serialized_name="vNetExtendedLocationResourceId",
)
properties.virtual_network_gateway_migration_status = AAZObjectType(
serialized_name="virtualNetworkGatewayMigrationStatus",
)
properties.virtual_network_gateway_policy_groups = AAZListType(
serialized_name="virtualNetworkGatewayPolicyGroups",
)
Expand Down Expand Up @@ -416,6 +422,13 @@ def _build_schema_on_200(cls):
sku.name = AAZStrType()
sku.tier = AAZStrType()

virtual_network_gateway_migration_status = cls._schema_on_200.value.Element.properties.virtual_network_gateway_migration_status
virtual_network_gateway_migration_status.error_message = AAZStrType(
serialized_name="errorMessage",
)
virtual_network_gateway_migration_status.phase = AAZStrType()
virtual_network_gateway_migration_status.state = AAZStrType()

virtual_network_gateway_policy_groups = cls._schema_on_200.value.Element.properties.virtual_network_gateway_policy_groups
virtual_network_gateway_policy_groups.Element = AAZObjectType()

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ class Show(AAZCommand):
"""

_aaz_info = {
"version": "2024-03-01",
"version": "2024-07-01",
"resources": [
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/virtualnetworkgateways/{}", "2024-03-01"],
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/virtualnetworkgateways/{}", "2024-07-01"],
]
}

Expand Down Expand Up @@ -120,7 +120,7 @@ def url_parameters(self):
def query_parameters(self):
parameters = {
**self.serialize_query_param(
"api-version", "2024-03-01",
"api-version", "2024-07-01",
required=True,
),
}
Expand Down Expand Up @@ -239,6 +239,9 @@ def _build_schema_on_200(cls):
properties.enable_dns_forwarding = AAZBoolType(
serialized_name="enableDnsForwarding",
)
properties.enable_high_bandwidth_vpn_gateway = AAZBoolType(
serialized_name="enableHighBandwidthVpnGateway",
)
properties.enable_private_ip_address = AAZBoolType(
serialized_name="enablePrivateIpAddress",
)
Expand Down Expand Up @@ -274,6 +277,9 @@ def _build_schema_on_200(cls):
properties.v_net_extended_location_resource_id = AAZStrType(
serialized_name="vNetExtendedLocationResourceId",
)
properties.virtual_network_gateway_migration_status = AAZObjectType(
serialized_name="virtualNetworkGatewayMigrationStatus",
)
properties.virtual_network_gateway_policy_groups = AAZListType(
serialized_name="virtualNetworkGatewayPolicyGroups",
)
Expand Down Expand Up @@ -414,6 +420,13 @@ def _build_schema_on_200(cls):
sku.name = AAZStrType()
sku.tier = AAZStrType()

virtual_network_gateway_migration_status = cls._schema_on_200.properties.virtual_network_gateway_migration_status
virtual_network_gateway_migration_status.error_message = AAZStrType(
serialized_name="errorMessage",
)
virtual_network_gateway_migration_status.phase = AAZStrType()
virtual_network_gateway_migration_status.state = AAZStrType()

virtual_network_gateway_policy_groups = cls._schema_on_200.properties.virtual_network_gateway_policy_groups
virtual_network_gateway_policy_groups.Element = AAZObjectType()

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ class Update(AAZCommand):
"""

_aaz_info = {
"version": "2024-03-01",
"version": "2024-07-01",
"resources": [
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/virtualnetworkgateways/{}", "2024-03-01"],
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/virtualnetworkgateways/{}", "2024-07-01"],
]
}

Expand Down Expand Up @@ -524,7 +524,7 @@ def url_parameters(self):
def query_parameters(self):
parameters = {
**self.serialize_query_param(
"api-version", "2024-03-01",
"api-version", "2024-07-01",
required=True,
),
}
Expand Down Expand Up @@ -623,7 +623,7 @@ def url_parameters(self):
def query_parameters(self):
parameters = {
**self.serialize_query_param(
"api-version", "2024-03-01",
"api-version", "2024-07-01",
required=True,
),
}
Expand Down Expand Up @@ -992,6 +992,9 @@ def _build_schema_virtual_network_gateway_read(cls, _schema):
properties.enable_dns_forwarding = AAZBoolType(
serialized_name="enableDnsForwarding",
)
properties.enable_high_bandwidth_vpn_gateway = AAZBoolType(
serialized_name="enableHighBandwidthVpnGateway",
)
properties.enable_private_ip_address = AAZBoolType(
serialized_name="enablePrivateIpAddress",
)
Expand Down Expand Up @@ -1027,6 +1030,9 @@ def _build_schema_virtual_network_gateway_read(cls, _schema):
properties.v_net_extended_location_resource_id = AAZStrType(
serialized_name="vNetExtendedLocationResourceId",
)
properties.virtual_network_gateway_migration_status = AAZObjectType(
serialized_name="virtualNetworkGatewayMigrationStatus",
)
properties.virtual_network_gateway_policy_groups = AAZListType(
serialized_name="virtualNetworkGatewayPolicyGroups",
)
Expand Down Expand Up @@ -1167,6 +1173,13 @@ def _build_schema_virtual_network_gateway_read(cls, _schema):
sku.name = AAZStrType()
sku.tier = AAZStrType()

virtual_network_gateway_migration_status = _schema_virtual_network_gateway_read.properties.virtual_network_gateway_migration_status
virtual_network_gateway_migration_status.error_message = AAZStrType(
serialized_name="errorMessage",
)
virtual_network_gateway_migration_status.phase = AAZStrType()
virtual_network_gateway_migration_status.state = AAZStrType()

virtual_network_gateway_policy_groups = _schema_virtual_network_gateway_read.properties.virtual_network_gateway_policy_groups
virtual_network_gateway_policy_groups.Element = AAZObjectType()

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class Wait(AAZWaitCommand):

_aaz_info = {
"resources": [
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/virtualnetworkgateways/{}", "2024-03-01"],
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/virtualnetworkgateways/{}", "2024-07-01"],
]
}

Expand Down Expand Up @@ -116,7 +116,7 @@ def url_parameters(self):
def query_parameters(self):
parameters = {
**self.serialize_query_param(
"api-version", "2024-03-01",
"api-version", "2024-07-01",
required=True,
),
}
Expand Down Expand Up @@ -235,6 +235,9 @@ def _build_schema_on_200(cls):
properties.enable_dns_forwarding = AAZBoolType(
serialized_name="enableDnsForwarding",
)
properties.enable_high_bandwidth_vpn_gateway = AAZBoolType(
serialized_name="enableHighBandwidthVpnGateway",
)
properties.enable_private_ip_address = AAZBoolType(
serialized_name="enablePrivateIpAddress",
)
Expand Down Expand Up @@ -270,6 +273,9 @@ def _build_schema_on_200(cls):
properties.v_net_extended_location_resource_id = AAZStrType(
serialized_name="vNetExtendedLocationResourceId",
)
properties.virtual_network_gateway_migration_status = AAZObjectType(
serialized_name="virtualNetworkGatewayMigrationStatus",
)
properties.virtual_network_gateway_policy_groups = AAZListType(
serialized_name="virtualNetworkGatewayPolicyGroups",
)
Expand Down Expand Up @@ -410,6 +416,13 @@ def _build_schema_on_200(cls):
sku.name = AAZStrType()
sku.tier = AAZStrType()

virtual_network_gateway_migration_status = cls._schema_on_200.properties.virtual_network_gateway_migration_status
virtual_network_gateway_migration_status.error_message = AAZStrType(
serialized_name="errorMessage",
)
virtual_network_gateway_migration_status.phase = AAZStrType()
virtual_network_gateway_migration_status.state = AAZStrType()

virtual_network_gateway_policy_groups = cls._schema_on_200.properties.virtual_network_gateway_policy_groups
virtual_network_gateway_policy_groups.Element = AAZObjectType()

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ class Delete(AAZCommand):
"""

_aaz_info = {
"version": "2022-01-01",
"version": "2024-07-01",
"resources": [
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/connections/{}", "2022-01-01"],
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/connections/{}", "2024-07-01"],
]
}

Expand Down Expand Up @@ -142,7 +142,7 @@ def url_parameters(self):
def query_parameters(self):
parameters = {
**self.serialize_query_param(
"api-version", "2022-01-01",
"api-version", "2024-07-01",
required=True,
),
}
Expand Down
Loading
Loading