1111from azure .cli .core .aaz import *
1212
1313
14+ @register_command (
15+ "network vpn-connection list" ,
16+ )
1417class List (AAZCommand ):
1518 """List all VPN connections.
1619
@@ -19,9 +22,9 @@ class List(AAZCommand):
1922 """
2023
2124 _aaz_info = {
22- "version" : "2022-01 -01" ,
25+ "version" : "2024-07 -01" ,
2326 "resources" : [
24- ["mgmt-plane" , "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/connections" , "2022-01 -01" ],
27+ ["mgmt-plane" , "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/connections" , "2024-07 -01" ],
2528 ]
2629 }
2730
@@ -109,7 +112,7 @@ def url_parameters(self):
109112 def query_parameters (self ):
110113 parameters = {
111114 ** self .serialize_query_param (
112- "api-version" , "2022-01 -01" ,
115+ "api-version" , "2024-07 -01" ,
113116 required = True ,
114117 ),
115118 }
@@ -180,6 +183,7 @@ def _build_schema_on_200(cls):
180183 )
181184 properties .connection_status = AAZStrType (
182185 serialized_name = "connectionStatus" ,
186+ flags = {"read_only" : True },
183187 )
184188 properties .connection_type = AAZStrType (
185189 serialized_name = "connectionType" ,
@@ -198,6 +202,9 @@ def _build_schema_on_200(cls):
198202 properties .enable_bgp = AAZBoolType (
199203 serialized_name = "enableBgp" ,
200204 )
205+ properties .enable_private_link_fast_path = AAZBoolType (
206+ serialized_name = "enablePrivateLinkFastPath" ,
207+ )
201208 properties .express_route_gateway_bypass = AAZBoolType (
202209 serialized_name = "expressRouteGatewayBypass" ,
203210 )
@@ -240,6 +247,9 @@ def _build_schema_on_200(cls):
240247 serialized_name = "tunnelConnectionStatus" ,
241248 flags = {"read_only" : True },
242249 )
250+ properties .tunnel_properties = AAZListType (
251+ serialized_name = "tunnelProperties" ,
252+ )
243253 properties .use_local_azure_ip_address = AAZBoolType (
244254 serialized_name = "useLocalAzureIpAddress" ,
245255 )
@@ -348,6 +358,7 @@ def _build_schema_on_200(cls):
348358 _element = cls ._schema_on_200 .value .Element .properties .tunnel_connection_status .Element
349359 _element .connection_status = AAZStrType (
350360 serialized_name = "connectionStatus" ,
361+ flags = {"read_only" : True },
351362 )
352363 _element .egress_bytes_transferred = AAZIntType (
353364 serialized_name = "egressBytesTransferred" ,
@@ -365,6 +376,17 @@ def _build_schema_on_200(cls):
365376 flags = {"read_only" : True },
366377 )
367378
379+ tunnel_properties = cls ._schema_on_200 .value .Element .properties .tunnel_properties
380+ tunnel_properties .Element = AAZObjectType ()
381+
382+ _element = cls ._schema_on_200 .value .Element .properties .tunnel_properties .Element
383+ _element .bgp_peering_address = AAZStrType (
384+ serialized_name = "bgpPeeringAddress" ,
385+ )
386+ _element .tunnel_ip_address = AAZStrType (
387+ serialized_name = "tunnelIpAddress" ,
388+ )
389+
368390 tags = cls ._schema_on_200 .value .Element .tags
369391 tags .Element = AAZStrType ()
370392
@@ -535,6 +557,7 @@ def _build_schema_virtual_network_gateway_read(cls, _schema):
535557 _schema .etag = cls ._schema_virtual_network_gateway_read .etag
536558 _schema .extended_location = cls ._schema_virtual_network_gateway_read .extended_location
537559 _schema .id = cls ._schema_virtual_network_gateway_read .id
560+ _schema .identity = cls ._schema_virtual_network_gateway_read .identity
538561 _schema .location = cls ._schema_virtual_network_gateway_read .location
539562 _schema .name = cls ._schema_virtual_network_gateway_read .name
540563 _schema .properties = cls ._schema_virtual_network_gateway_read .properties
@@ -552,6 +575,7 @@ def _build_schema_virtual_network_gateway_read(cls, _schema):
552575 serialized_name = "extendedLocation" ,
553576 )
554577 virtual_network_gateway_read .id = AAZStrType ()
578+ virtual_network_gateway_read .identity = AAZIdentityObjectType ()
555579 virtual_network_gateway_read .location = AAZStrType ()
556580 virtual_network_gateway_read .name = AAZStrType (
557581 flags = {"read_only" : True },
@@ -568,10 +592,49 @@ def _build_schema_virtual_network_gateway_read(cls, _schema):
568592 extended_location .name = AAZStrType ()
569593 extended_location .type = AAZStrType ()
570594
595+ identity = _schema_virtual_network_gateway_read .identity
596+ identity .principal_id = AAZStrType (
597+ serialized_name = "principalId" ,
598+ flags = {"read_only" : True },
599+ )
600+ identity .tenant_id = AAZStrType (
601+ serialized_name = "tenantId" ,
602+ flags = {"read_only" : True },
603+ )
604+ identity .type = AAZStrType ()
605+ identity .user_assigned_identities = AAZDictType (
606+ serialized_name = "userAssignedIdentities" ,
607+ )
608+
609+ user_assigned_identities = _schema_virtual_network_gateway_read .identity .user_assigned_identities
610+ user_assigned_identities .Element = AAZObjectType ()
611+
612+ _element = _schema_virtual_network_gateway_read .identity .user_assigned_identities .Element
613+ _element .client_id = AAZStrType (
614+ serialized_name = "clientId" ,
615+ flags = {"read_only" : True },
616+ )
617+ _element .principal_id = AAZStrType (
618+ serialized_name = "principalId" ,
619+ flags = {"read_only" : True },
620+ )
621+
571622 properties = _schema_virtual_network_gateway_read .properties
572623 properties .active_active = AAZBoolType (
573624 serialized_name = "activeActive" ,
574625 )
626+ properties .admin_state = AAZStrType (
627+ serialized_name = "adminState" ,
628+ )
629+ properties .allow_remote_vnet_traffic = AAZBoolType (
630+ serialized_name = "allowRemoteVnetTraffic" ,
631+ )
632+ properties .allow_virtual_wan_traffic = AAZBoolType (
633+ serialized_name = "allowVirtualWanTraffic" ,
634+ )
635+ properties .auto_scale_configuration = AAZObjectType (
636+ serialized_name = "autoScaleConfiguration" ,
637+ )
575638 properties .bgp_settings = AAZObjectType (
576639 serialized_name = "bgpSettings" ,
577640 )
@@ -592,6 +655,9 @@ def _build_schema_virtual_network_gateway_read(cls, _schema):
592655 properties .enable_dns_forwarding = AAZBoolType (
593656 serialized_name = "enableDnsForwarding" ,
594657 )
658+ properties .enable_high_bandwidth_vpn_gateway = AAZBoolType (
659+ serialized_name = "enableHighBandwidthVpnGateway" ,
660+ )
595661 properties .enable_private_ip_address = AAZBoolType (
596662 serialized_name = "enablePrivateIpAddress" ,
597663 )
@@ -616,6 +682,9 @@ def _build_schema_virtual_network_gateway_read(cls, _schema):
616682 serialized_name = "provisioningState" ,
617683 flags = {"read_only" : True },
618684 )
685+ properties .resiliency_model = AAZStrType (
686+ serialized_name = "resiliencyModel" ,
687+ )
619688 properties .resource_guid = AAZStrType (
620689 serialized_name = "resourceGuid" ,
621690 flags = {"read_only" : True },
@@ -624,6 +693,12 @@ def _build_schema_virtual_network_gateway_read(cls, _schema):
624693 properties .v_net_extended_location_resource_id = AAZStrType (
625694 serialized_name = "vNetExtendedLocationResourceId" ,
626695 )
696+ properties .virtual_network_gateway_migration_status = AAZObjectType (
697+ serialized_name = "virtualNetworkGatewayMigrationStatus" ,
698+ )
699+ properties .virtual_network_gateway_policy_groups = AAZListType (
700+ serialized_name = "virtualNetworkGatewayPolicyGroups" ,
701+ )
627702 properties .vpn_client_configuration = AAZObjectType (
628703 serialized_name = "vpnClientConfiguration" ,
629704 )
@@ -634,6 +709,13 @@ def _build_schema_virtual_network_gateway_read(cls, _schema):
634709 serialized_name = "vpnType" ,
635710 )
636711
712+ auto_scale_configuration = _schema_virtual_network_gateway_read .properties .auto_scale_configuration
713+ auto_scale_configuration .bounds = AAZObjectType ()
714+
715+ bounds = _schema_virtual_network_gateway_read .properties .auto_scale_configuration .bounds
716+ bounds .max = AAZIntType ()
717+ bounds .min = AAZIntType ()
718+
637719 ip_configurations = _schema_virtual_network_gateway_read .properties .ip_configurations
638720 ip_configurations .Element = AAZObjectType ()
639721
@@ -714,6 +796,63 @@ def _build_schema_virtual_network_gateway_read(cls, _schema):
714796 sku .name = AAZStrType ()
715797 sku .tier = AAZStrType ()
716798
799+ virtual_network_gateway_migration_status = _schema_virtual_network_gateway_read .properties .virtual_network_gateway_migration_status
800+ virtual_network_gateway_migration_status .error_message = AAZStrType (
801+ serialized_name = "errorMessage" ,
802+ )
803+ virtual_network_gateway_migration_status .phase = AAZStrType ()
804+ virtual_network_gateway_migration_status .state = AAZStrType ()
805+
806+ virtual_network_gateway_policy_groups = _schema_virtual_network_gateway_read .properties .virtual_network_gateway_policy_groups
807+ virtual_network_gateway_policy_groups .Element = AAZObjectType ()
808+
809+ _element = _schema_virtual_network_gateway_read .properties .virtual_network_gateway_policy_groups .Element
810+ _element .etag = AAZStrType (
811+ flags = {"read_only" : True },
812+ )
813+ _element .id = AAZStrType ()
814+ _element .name = AAZStrType ()
815+ _element .properties = AAZObjectType (
816+ flags = {"client_flatten" : True },
817+ )
818+
819+ properties = _schema_virtual_network_gateway_read .properties .virtual_network_gateway_policy_groups .Element .properties
820+ properties .is_default = AAZBoolType (
821+ serialized_name = "isDefault" ,
822+ flags = {"required" : True },
823+ )
824+ properties .policy_members = AAZListType (
825+ serialized_name = "policyMembers" ,
826+ flags = {"required" : True },
827+ )
828+ properties .priority = AAZIntType (
829+ flags = {"required" : True },
830+ )
831+ properties .provisioning_state = AAZStrType (
832+ serialized_name = "provisioningState" ,
833+ flags = {"read_only" : True },
834+ )
835+ properties .vng_client_connection_configurations = AAZListType (
836+ serialized_name = "vngClientConnectionConfigurations" ,
837+ flags = {"read_only" : True },
838+ )
839+
840+ policy_members = _schema_virtual_network_gateway_read .properties .virtual_network_gateway_policy_groups .Element .properties .policy_members
841+ policy_members .Element = AAZObjectType ()
842+
843+ _element = _schema_virtual_network_gateway_read .properties .virtual_network_gateway_policy_groups .Element .properties .policy_members .Element
844+ _element .attribute_type = AAZStrType (
845+ serialized_name = "attributeType" ,
846+ )
847+ _element .attribute_value = AAZStrType (
848+ serialized_name = "attributeValue" ,
849+ )
850+ _element .name = AAZStrType ()
851+
852+ vng_client_connection_configurations = _schema_virtual_network_gateway_read .properties .virtual_network_gateway_policy_groups .Element .properties .vng_client_connection_configurations
853+ vng_client_connection_configurations .Element = AAZObjectType ()
854+ cls ._build_schema_sub_resource_read (vng_client_connection_configurations .Element )
855+
717856 vpn_client_configuration = _schema_virtual_network_gateway_read .properties .vpn_client_configuration
718857 vpn_client_configuration .aad_audience = AAZStrType (
719858 serialized_name = "aadAudience" ,
@@ -733,6 +872,9 @@ def _build_schema_virtual_network_gateway_read(cls, _schema):
733872 vpn_client_configuration .radius_servers = AAZListType (
734873 serialized_name = "radiusServers" ,
735874 )
875+ vpn_client_configuration .vng_client_connection_configurations = AAZListType (
876+ serialized_name = "vngClientConnectionConfigurations" ,
877+ )
736878 vpn_client_configuration .vpn_authentication_types = AAZListType (
737879 serialized_name = "vpnAuthenticationTypes" ,
738880 )
@@ -768,6 +910,38 @@ def _build_schema_virtual_network_gateway_read(cls, _schema):
768910 serialized_name = "radiusServerSecret" ,
769911 )
770912
913+ vng_client_connection_configurations = _schema_virtual_network_gateway_read .properties .vpn_client_configuration .vng_client_connection_configurations
914+ vng_client_connection_configurations .Element = AAZObjectType ()
915+
916+ _element = _schema_virtual_network_gateway_read .properties .vpn_client_configuration .vng_client_connection_configurations .Element
917+ _element .etag = AAZStrType (
918+ flags = {"read_only" : True },
919+ )
920+ _element .id = AAZStrType ()
921+ _element .name = AAZStrType ()
922+ _element .properties = AAZObjectType (
923+ flags = {"client_flatten" : True },
924+ )
925+
926+ properties = _schema_virtual_network_gateway_read .properties .vpn_client_configuration .vng_client_connection_configurations .Element .properties
927+ properties .provisioning_state = AAZStrType (
928+ serialized_name = "provisioningState" ,
929+ flags = {"read_only" : True },
930+ )
931+ properties .virtual_network_gateway_policy_groups = AAZListType (
932+ serialized_name = "virtualNetworkGatewayPolicyGroups" ,
933+ flags = {"required" : True },
934+ )
935+ properties .vpn_client_address_pool = AAZObjectType (
936+ serialized_name = "vpnClientAddressPool" ,
937+ flags = {"required" : True },
938+ )
939+ cls ._build_schema_address_space_read (properties .vpn_client_address_pool )
940+
941+ virtual_network_gateway_policy_groups = _schema_virtual_network_gateway_read .properties .vpn_client_configuration .vng_client_connection_configurations .Element .properties .virtual_network_gateway_policy_groups
942+ virtual_network_gateway_policy_groups .Element = AAZObjectType ()
943+ cls ._build_schema_sub_resource_read (virtual_network_gateway_policy_groups .Element )
944+
771945 vpn_authentication_types = _schema_virtual_network_gateway_read .properties .vpn_client_configuration .vpn_authentication_types
772946 vpn_authentication_types .Element = AAZStrType ()
773947
@@ -827,6 +1001,7 @@ def _build_schema_virtual_network_gateway_read(cls, _schema):
8271001 _schema .etag = cls ._schema_virtual_network_gateway_read .etag
8281002 _schema .extended_location = cls ._schema_virtual_network_gateway_read .extended_location
8291003 _schema .id = cls ._schema_virtual_network_gateway_read .id
1004+ _schema .identity = cls ._schema_virtual_network_gateway_read .identity
8301005 _schema .location = cls ._schema_virtual_network_gateway_read .location
8311006 _schema .name = cls ._schema_virtual_network_gateway_read .name
8321007 _schema .properties = cls ._schema_virtual_network_gateway_read .properties
0 commit comments