Skip to content

Commit f0b5410

Browse files
[AutoRelease] t2-network-2026-01-27-03038(can only be merged by SDK owner) (#44865)
* code and test * Update CHANGELOG.md --------- Co-authored-by: azure-sdk <PythonSdkPipelines> Co-authored-by: ChenxiJiang333 <119990644+ChenxiJiang333@users.noreply.github.com>
1 parent a5b6075 commit f0b5410

1,173 files changed

Lines changed: 41804 additions & 7504 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

sdk/network/azure-mgmt-network/CHANGELOG.md

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,50 @@
11
# Release History
22

3+
## 30.2.0 (2026-02-11)
4+
5+
### Features Added
6+
7+
- Client `NetworkManagementClient` added operation group `service_gateways`
8+
- Client `NetworkManagementClient` added operation group `virtual_network_appliances`
9+
- Enum `ActionType` added member `CAPTCHA`
10+
- Enum `FirewallPolicyIntrusionDetectionProfileType` added member `CORE`
11+
- Enum `FirewallPolicyIntrusionDetectionProfileType` added member `EMERGING`
12+
- Enum `FirewallPolicyIntrusionDetectionProfileType` added member `OFF`
13+
- Model `NatGateway` added property `service_gateway`
14+
- Model `PolicySettings` added property `captcha_cookie_expiration_in_mins`
15+
- Model `Subnet` added property `service_gateway`
16+
- Enum `WebApplicationFirewallAction` added member `CAPTCHA`
17+
- Added enum `AddressUpdateAction`
18+
- Added model `GetServiceGatewayAddressLocationsResult`
19+
- Added model `GetServiceGatewayServicesResult`
20+
- Added model `RouteTargetAddressPropertiesFormat`
21+
- Added model `ServiceGateway`
22+
- Added model `ServiceGatewayAddress`
23+
- Added model `ServiceGatewayAddressLocation`
24+
- Added model `ServiceGatewayAddressLocationResponse`
25+
- Added model `ServiceGatewayListResult`
26+
- Added model `ServiceGatewayService`
27+
- Added model `ServiceGatewayServiceRequest`
28+
- Added model `ServiceGatewaySku`
29+
- Added enum `ServiceGatewaySkuName`
30+
- Added enum `ServiceGatewaySkuTier`
31+
- Added model `ServiceGatewayUpdateAddressLocationsRequest`
32+
- Added model `ServiceGatewayUpdateServicesRequest`
33+
- Added enum `ServiceType`
34+
- Added enum `ServiceUpdateAction`
35+
- Added enum `UpdateAction`
36+
- Added model `VirtualNetworkAppliance`
37+
- Added model `VirtualNetworkApplianceIpConfiguration`
38+
- Added model `VirtualNetworkApplianceListResult`
39+
- Added operation group `ServiceGatewaysOperations`
40+
- Added operation group `VirtualNetworkAppliancesOperations`
41+
42+
### Breaking Changes
43+
44+
- Deleted or renamed enum value `FirewallPolicyIntrusionDetectionProfileType.ADVANCED`
45+
- Deleted or renamed enum value `FirewallPolicyIntrusionDetectionProfileType.BASIC`
46+
- Deleted or renamed enum value `FirewallPolicyIntrusionDetectionProfileType.STANDARD`
47+
348
## 30.1.0 (2025-11-19)
449

550
### Features Added
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
2-
"commit": "b61ac84b569118b89c1ebce6bdb94600c58e1066",
2+
"commit": "0435ba6a2a8416ab7c623dd3ca88f43526c5e2e4",
33
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
44
"autorest": "3.10.2",
55
"use": [
6-
"@autorest/python@6.42.0",
6+
"@autorest/python@6.48.0",
77
"@autorest/modelerfour@4.27.0"
88
],
9-
"autorest_command": "autorest specification/network/resource-manager/readme.md --generate-sample=True --generate-test=True --include-x-ms-examples-original-file=True --package-mode=azure-mgmt --python --python-sdks-folder=/mnt/vss/_work/1/azure-sdk-for-python/sdk --use=@autorest/python@6.42.0 --use=@autorest/modelerfour@4.27.0 --version=3.10.2 --version-tolerant=False",
9+
"autorest_command": "autorest specification/network/resource-manager/readme.md --generate-sample=True --generate-test=True --include-x-ms-examples-original-file=True --package-mode=azure-mgmt --python --python-sdks-folder=/mnt/vss/_work/1/azure-sdk-for-python/sdk --use=@autorest/python@6.48.0 --use=@autorest/modelerfour@4.27.0 --version=3.10.2 --version-tolerant=False",
1010
"readme": "specification/network/resource-manager/readme.md"
1111
}

sdk/network/azure-mgmt-network/apiview-properties.json

Lines changed: 55 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -357,6 +357,8 @@
357357
"azure.mgmt.network.models.GenerateExpressRoutePortsLOAResult": null,
358358
"azure.mgmt.network.models.GetInboundRoutesParameters": null,
359359
"azure.mgmt.network.models.GetOutboundRoutesParameters": null,
360+
"azure.mgmt.network.models.GetServiceGatewayAddressLocationsResult": null,
361+
"azure.mgmt.network.models.GetServiceGatewayServicesResult": null,
360362
"azure.mgmt.network.models.GetVpnSitesConfigurationRequest": null,
361363
"azure.mgmt.network.models.GroupByUserSession": null,
362364
"azure.mgmt.network.models.GroupByVariable": null,
@@ -639,6 +641,7 @@
639641
"azure.mgmt.network.models.RouteSourceDetails": null,
640642
"azure.mgmt.network.models.RouteTable": null,
641643
"azure.mgmt.network.models.RouteTableListResult": null,
644+
"azure.mgmt.network.models.RouteTargetAddressPropertiesFormat": null,
642645
"azure.mgmt.network.models.RoutingConfiguration": null,
643646
"azure.mgmt.network.models.RoutingIntent": null,
644647
"azure.mgmt.network.models.RoutingPolicy": null,
@@ -675,6 +678,16 @@
675678
"azure.mgmt.network.models.ServiceEndpointPolicyDefinitionListResult": null,
676679
"azure.mgmt.network.models.ServiceEndpointPolicyListResult": null,
677680
"azure.mgmt.network.models.ServiceEndpointPropertiesFormat": null,
681+
"azure.mgmt.network.models.ServiceGateway": null,
682+
"azure.mgmt.network.models.ServiceGatewayAddress": null,
683+
"azure.mgmt.network.models.ServiceGatewayAddressLocation": null,
684+
"azure.mgmt.network.models.ServiceGatewayAddressLocationResponse": null,
685+
"azure.mgmt.network.models.ServiceGatewayListResult": null,
686+
"azure.mgmt.network.models.ServiceGatewayService": null,
687+
"azure.mgmt.network.models.ServiceGatewayServiceRequest": null,
688+
"azure.mgmt.network.models.ServiceGatewaySku": null,
689+
"azure.mgmt.network.models.ServiceGatewayUpdateAddressLocationsRequest": null,
690+
"azure.mgmt.network.models.ServiceGatewayUpdateServicesRequest": null,
678691
"azure.mgmt.network.models.ServiceTagInformation": null,
679692
"azure.mgmt.network.models.ServiceTagInformationListResult": null,
680693
"azure.mgmt.network.models.ServiceTagInformationPropertiesFormat": null,
@@ -746,6 +759,9 @@
746759
"azure.mgmt.network.models.VirtualHubRouteTableV2": null,
747760
"azure.mgmt.network.models.VirtualHubRouteV2": null,
748761
"azure.mgmt.network.models.VirtualNetwork": null,
762+
"azure.mgmt.network.models.VirtualNetworkAppliance": null,
763+
"azure.mgmt.network.models.VirtualNetworkApplianceIpConfiguration": null,
764+
"azure.mgmt.network.models.VirtualNetworkApplianceListResult": null,
749765
"azure.mgmt.network.models.VirtualNetworkBgpCommunities": null,
750766
"azure.mgmt.network.models.VirtualNetworkConnectionGatewayReference": null,
751767
"azure.mgmt.network.models.VirtualNetworkDdosProtectionStatusResult": null,
@@ -999,11 +1015,15 @@
9991015
"azure.mgmt.network.models.RouteFilterRuleType": null,
10001016
"azure.mgmt.network.models.SecurityProviderName": null,
10011017
"azure.mgmt.network.models.SecurityPartnerProviderConnectionStatus": null,
1002-
"azure.mgmt.network.models.UsageUnit": null,
10031018
"azure.mgmt.network.models.VirtualNetworkEncryptionEnforcement": null,
10041019
"azure.mgmt.network.models.VirtualNetworkPeeringState": null,
10051020
"azure.mgmt.network.models.VirtualNetworkPeeringLevel": null,
1021+
"azure.mgmt.network.models.ServiceGatewaySkuName": null,
1022+
"azure.mgmt.network.models.ServiceGatewaySkuTier": null,
10061023
"azure.mgmt.network.models.PrivateEndpointVNetPolicies": null,
1024+
"azure.mgmt.network.models.AddressUpdateAction": null,
1025+
"azure.mgmt.network.models.ServiceType": null,
1026+
"azure.mgmt.network.models.UsageUnit": null,
10071027
"azure.mgmt.network.models.IsWorkloadProtected": null,
10081028
"azure.mgmt.network.models.VpnClientProtocol": null,
10091029
"azure.mgmt.network.models.VpnAuthenticationType": null,
@@ -1085,6 +1105,8 @@
10851105
"azure.mgmt.network.models.ConnectionStatus": null,
10861106
"azure.mgmt.network.models.VerbosityLevel": null,
10871107
"azure.mgmt.network.models.IsRollback": null,
1108+
"azure.mgmt.network.models.UpdateAction": null,
1109+
"azure.mgmt.network.models.ServiceUpdateAction": null,
10881110
"azure.mgmt.network.models.SyncRemoteAddressSpace": null,
10891111
"azure.mgmt.network.models.ProcessorArchitecture": null,
10901112
"azure.mgmt.network.models.AuthenticationMethod": null,
@@ -2123,6 +2145,26 @@
21232145
"azure.mgmt.network.aio.operations.ServiceEndpointPolicyDefinitionsOperations.begin_create_or_update": null,
21242146
"azure.mgmt.network.operations.ServiceEndpointPolicyDefinitionsOperations.list_by_resource_group": null,
21252147
"azure.mgmt.network.aio.operations.ServiceEndpointPolicyDefinitionsOperations.list_by_resource_group": null,
2148+
"azure.mgmt.network.operations.ServiceGatewaysOperations.begin_delete": null,
2149+
"azure.mgmt.network.aio.operations.ServiceGatewaysOperations.begin_delete": null,
2150+
"azure.mgmt.network.operations.ServiceGatewaysOperations.get": null,
2151+
"azure.mgmt.network.aio.operations.ServiceGatewaysOperations.get": null,
2152+
"azure.mgmt.network.operations.ServiceGatewaysOperations.begin_create_or_update": null,
2153+
"azure.mgmt.network.aio.operations.ServiceGatewaysOperations.begin_create_or_update": null,
2154+
"azure.mgmt.network.operations.ServiceGatewaysOperations.update_tags": null,
2155+
"azure.mgmt.network.aio.operations.ServiceGatewaysOperations.update_tags": null,
2156+
"azure.mgmt.network.operations.ServiceGatewaysOperations.list_all": null,
2157+
"azure.mgmt.network.aio.operations.ServiceGatewaysOperations.list_all": null,
2158+
"azure.mgmt.network.operations.ServiceGatewaysOperations.list": null,
2159+
"azure.mgmt.network.aio.operations.ServiceGatewaysOperations.list": null,
2160+
"azure.mgmt.network.operations.ServiceGatewaysOperations.begin_update_address_locations": null,
2161+
"azure.mgmt.network.aio.operations.ServiceGatewaysOperations.begin_update_address_locations": null,
2162+
"azure.mgmt.network.operations.ServiceGatewaysOperations.begin_update_services": null,
2163+
"azure.mgmt.network.aio.operations.ServiceGatewaysOperations.begin_update_services": null,
2164+
"azure.mgmt.network.operations.ServiceGatewaysOperations.get_address_locations": null,
2165+
"azure.mgmt.network.aio.operations.ServiceGatewaysOperations.get_address_locations": null,
2166+
"azure.mgmt.network.operations.ServiceGatewaysOperations.get_services": null,
2167+
"azure.mgmt.network.aio.operations.ServiceGatewaysOperations.get_services": null,
21262168
"azure.mgmt.network.operations.ServiceTagsOperations.list": null,
21272169
"azure.mgmt.network.aio.operations.ServiceTagsOperations.list": null,
21282170
"azure.mgmt.network.operations.ServiceTagInformationOperations.list": null,
@@ -2171,6 +2213,18 @@
21712213
"azure.mgmt.network.aio.operations.VirtualNetworkPeeringsOperations.begin_create_or_update": null,
21722214
"azure.mgmt.network.operations.VirtualNetworkPeeringsOperations.list": null,
21732215
"azure.mgmt.network.aio.operations.VirtualNetworkPeeringsOperations.list": null,
2216+
"azure.mgmt.network.operations.VirtualNetworkAppliancesOperations.begin_delete": null,
2217+
"azure.mgmt.network.aio.operations.VirtualNetworkAppliancesOperations.begin_delete": null,
2218+
"azure.mgmt.network.operations.VirtualNetworkAppliancesOperations.get": null,
2219+
"azure.mgmt.network.aio.operations.VirtualNetworkAppliancesOperations.get": null,
2220+
"azure.mgmt.network.operations.VirtualNetworkAppliancesOperations.begin_create_or_update": null,
2221+
"azure.mgmt.network.aio.operations.VirtualNetworkAppliancesOperations.begin_create_or_update": null,
2222+
"azure.mgmt.network.operations.VirtualNetworkAppliancesOperations.update_tags": null,
2223+
"azure.mgmt.network.aio.operations.VirtualNetworkAppliancesOperations.update_tags": null,
2224+
"azure.mgmt.network.operations.VirtualNetworkAppliancesOperations.list_all": null,
2225+
"azure.mgmt.network.aio.operations.VirtualNetworkAppliancesOperations.list_all": null,
2226+
"azure.mgmt.network.operations.VirtualNetworkAppliancesOperations.list": null,
2227+
"azure.mgmt.network.aio.operations.VirtualNetworkAppliancesOperations.list": null,
21742228
"azure.mgmt.network.operations.VirtualNetworkGatewaysOperations.begin_create_or_update": null,
21752229
"azure.mgmt.network.aio.operations.VirtualNetworkGatewaysOperations.begin_create_or_update": null,
21762230
"azure.mgmt.network.operations.VirtualNetworkGatewaysOperations.get": null,

sdk/network/azure-mgmt-network/azure/mgmt/network/_network_management_client.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,7 @@
142142
ServiceAssociationLinksOperations,
143143
ServiceEndpointPoliciesOperations,
144144
ServiceEndpointPolicyDefinitionsOperations,
145+
ServiceGatewaysOperations,
145146
ServiceTagInformationOperations,
146147
ServiceTagsOperations,
147148
StaticCidrsOperations,
@@ -158,6 +159,7 @@
158159
VirtualHubIpConfigurationOperations,
159160
VirtualHubRouteTableV2SOperations,
160161
VirtualHubsOperations,
162+
VirtualNetworkAppliancesOperations,
161163
VirtualNetworkGatewayConnectionsOperations,
162164
VirtualNetworkGatewayNatRulesOperations,
163165
VirtualNetworkGatewaysOperations,
@@ -508,6 +510,8 @@ class NetworkManagementClient(
508510
operations
509511
:vartype service_endpoint_policy_definitions:
510512
azure.mgmt.network.operations.ServiceEndpointPolicyDefinitionsOperations
513+
:ivar service_gateways: ServiceGatewaysOperations operations
514+
:vartype service_gateways: azure.mgmt.network.operations.ServiceGatewaysOperations
511515
:ivar service_tags: ServiceTagsOperations operations
512516
:vartype service_tags: azure.mgmt.network.operations.ServiceTagsOperations
513517
:ivar service_tag_information: ServiceTagInformationOperations operations
@@ -527,6 +531,9 @@ class NetworkManagementClient(
527531
:ivar virtual_network_peerings: VirtualNetworkPeeringsOperations operations
528532
:vartype virtual_network_peerings:
529533
azure.mgmt.network.operations.VirtualNetworkPeeringsOperations
534+
:ivar virtual_network_appliances: VirtualNetworkAppliancesOperations operations
535+
:vartype virtual_network_appliances:
536+
azure.mgmt.network.operations.VirtualNetworkAppliancesOperations
530537
:ivar virtual_network_gateways: VirtualNetworkGatewaysOperations operations
531538
:vartype virtual_network_gateways:
532539
azure.mgmt.network.operations.VirtualNetworkGatewaysOperations
@@ -978,6 +985,9 @@ def __init__(
978985
self.service_endpoint_policy_definitions = ServiceEndpointPolicyDefinitionsOperations(
979986
self._client, self._config, self._serialize, self._deserialize
980987
)
988+
self.service_gateways = ServiceGatewaysOperations(
989+
self._client, self._config, self._serialize, self._deserialize
990+
)
981991
self.service_tags = ServiceTagsOperations(self._client, self._config, self._serialize, self._deserialize)
982992
self.service_tag_information = ServiceTagInformationOperations(
983993
self._client, self._config, self._serialize, self._deserialize
@@ -996,6 +1006,9 @@ def __init__(
9961006
self.virtual_network_peerings = VirtualNetworkPeeringsOperations(
9971007
self._client, self._config, self._serialize, self._deserialize
9981008
)
1009+
self.virtual_network_appliances = VirtualNetworkAppliancesOperations(
1010+
self._client, self._config, self._serialize, self._deserialize
1011+
)
9991012
self.virtual_network_gateways = VirtualNetworkGatewaysOperations(
10001013
self._client, self._config, self._serialize, self._deserialize
10011014
)

sdk/network/azure-mgmt-network/azure/mgmt/network/_utils/serialization.py

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -821,13 +821,20 @@ def serialize_basic(cls, data, data_type, **kwargs):
821821
:param str data_type: Type of object in the iterable.
822822
:rtype: str, int, float, bool
823823
:return: serialized object
824+
:raises TypeError: raise if data_type is not one of str, int, float, bool.
824825
"""
825826
custom_serializer = cls._get_custom_serializers(data_type, **kwargs)
826827
if custom_serializer:
827828
return custom_serializer(data)
828829
if data_type == "str":
829830
return cls.serialize_unicode(data)
830-
return eval(data_type)(data) # nosec # pylint: disable=eval-used
831+
if data_type == "int":
832+
return int(data)
833+
if data_type == "float":
834+
return float(data)
835+
if data_type == "bool":
836+
return bool(data)
837+
raise TypeError("Unknown basic data type: {}".format(data_type))
831838

832839
@classmethod
833840
def serialize_unicode(cls, data):
@@ -1757,7 +1764,7 @@ def deserialize_basic(self, attr, data_type): # pylint: disable=too-many-return
17571764
:param str data_type: deserialization data type.
17581765
:return: Deserialized basic type.
17591766
:rtype: str, int, float or bool
1760-
:raises TypeError: if string format is not valid.
1767+
:raises TypeError: if string format is not valid or data_type is not one of str, int, float, bool.
17611768
"""
17621769
# If we're here, data is supposed to be a basic type.
17631770
# If it's still an XML node, take the text
@@ -1783,7 +1790,11 @@ def deserialize_basic(self, attr, data_type): # pylint: disable=too-many-return
17831790

17841791
if data_type == "str":
17851792
return self.deserialize_unicode(attr)
1786-
return eval(data_type)(attr) # nosec # pylint: disable=eval-used
1793+
if data_type == "int":
1794+
return int(attr)
1795+
if data_type == "float":
1796+
return float(attr)
1797+
raise TypeError("Unknown basic data type: {}".format(data_type))
17871798

17881799
@staticmethod
17891800
def deserialize_unicode(data):

sdk/network/azure-mgmt-network/azure/mgmt/network/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@
66
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
77
# --------------------------------------------------------------------------
88

9-
VERSION = "30.1.0"
9+
VERSION = "30.2.0"

sdk/network/azure-mgmt-network/azure/mgmt/network/aio/_network_management_client.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,7 @@
142142
ServiceAssociationLinksOperations,
143143
ServiceEndpointPoliciesOperations,
144144
ServiceEndpointPolicyDefinitionsOperations,
145+
ServiceGatewaysOperations,
145146
ServiceTagInformationOperations,
146147
ServiceTagsOperations,
147148
StaticCidrsOperations,
@@ -158,6 +159,7 @@
158159
VirtualHubIpConfigurationOperations,
159160
VirtualHubRouteTableV2SOperations,
160161
VirtualHubsOperations,
162+
VirtualNetworkAppliancesOperations,
161163
VirtualNetworkGatewayConnectionsOperations,
162164
VirtualNetworkGatewayNatRulesOperations,
163165
VirtualNetworkGatewaysOperations,
@@ -519,6 +521,8 @@ class NetworkManagementClient(
519521
operations
520522
:vartype service_endpoint_policy_definitions:
521523
azure.mgmt.network.aio.operations.ServiceEndpointPolicyDefinitionsOperations
524+
:ivar service_gateways: ServiceGatewaysOperations operations
525+
:vartype service_gateways: azure.mgmt.network.aio.operations.ServiceGatewaysOperations
522526
:ivar service_tags: ServiceTagsOperations operations
523527
:vartype service_tags: azure.mgmt.network.aio.operations.ServiceTagsOperations
524528
:ivar service_tag_information: ServiceTagInformationOperations operations
@@ -539,6 +543,9 @@ class NetworkManagementClient(
539543
:ivar virtual_network_peerings: VirtualNetworkPeeringsOperations operations
540544
:vartype virtual_network_peerings:
541545
azure.mgmt.network.aio.operations.VirtualNetworkPeeringsOperations
546+
:ivar virtual_network_appliances: VirtualNetworkAppliancesOperations operations
547+
:vartype virtual_network_appliances:
548+
azure.mgmt.network.aio.operations.VirtualNetworkAppliancesOperations
542549
:ivar virtual_network_gateways: VirtualNetworkGatewaysOperations operations
543550
:vartype virtual_network_gateways:
544551
azure.mgmt.network.aio.operations.VirtualNetworkGatewaysOperations
@@ -996,6 +1003,9 @@ def __init__(
9961003
self.service_endpoint_policy_definitions = ServiceEndpointPolicyDefinitionsOperations(
9971004
self._client, self._config, self._serialize, self._deserialize
9981005
)
1006+
self.service_gateways = ServiceGatewaysOperations(
1007+
self._client, self._config, self._serialize, self._deserialize
1008+
)
9991009
self.service_tags = ServiceTagsOperations(self._client, self._config, self._serialize, self._deserialize)
10001010
self.service_tag_information = ServiceTagInformationOperations(
10011011
self._client, self._config, self._serialize, self._deserialize
@@ -1014,6 +1024,9 @@ def __init__(
10141024
self.virtual_network_peerings = VirtualNetworkPeeringsOperations(
10151025
self._client, self._config, self._serialize, self._deserialize
10161026
)
1027+
self.virtual_network_appliances = VirtualNetworkAppliancesOperations(
1028+
self._client, self._config, self._serialize, self._deserialize
1029+
)
10171030
self.virtual_network_gateways = VirtualNetworkGatewaysOperations(
10181031
self._client, self._config, self._serialize, self._deserialize
10191032
)

0 commit comments

Comments
 (0)