Skip to content

Commit f3f8cf3

Browse files
[AutoRelease] t2-network-2025-09-23-00572(can only be merged by SDK owner) (#43095)
* code and test * update changelog * update changelog * Update CHANGELOG.md --------- Co-authored-by: azure-sdk <PythonSdkPipelines> Co-authored-by: ChenxiJiang333 <[email protected]> Co-authored-by: ChenxiJiang333 <[email protected]>
1 parent 13fa29a commit f3f8cf3

File tree

1,154 files changed

+11469
-6662
lines changed

Some content is hidden

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

1,154 files changed

+11469
-6662
lines changed

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

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

3+
## 30.0.0 (2025-10-24)
4+
5+
### Features Added
6+
7+
- Added operation AzureFirewallsOperations.begin_packet_capture_operation
8+
- Added operation VirtualNetworkGatewaysOperations.list_radius_secrets
9+
- Added operation VpnServerConfigurationsOperations.list_radius_secrets
10+
- Added operation group NetworkSecurityPerimeterServiceTagsOperations
11+
- Model ApplicationGatewayBackendHttpSettings has a new parameter dedicated_backend_connection
12+
- Model ApplicationGatewayBackendHttpSettings has a new parameter sni_name
13+
- Model ApplicationGatewayBackendHttpSettings has a new parameter validate_cert_chain_and_expiry
14+
- Model ApplicationGatewayBackendHttpSettings has a new parameter validate_sni
15+
- Model AzureFirewall has a new parameter extended_location
16+
- Model FirewallPacketCaptureParameters has a new parameter operation
17+
- Model NetworkVirtualAppliance has a new parameter nva_interface_configurations
18+
- Model NetworkVirtualAppliance has a new parameter private_ip_address
19+
20+
### Breaking Changes
21+
22+
- Removed operation group NetworkManagementClientOperationsMixin
23+
324
## 29.0.0 (2025-05-22)
425

526
### Features Added
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
recursive-include tests *.py *.json
2-
recursive-include samples *.py *.md
31
include *.md
4-
include azure/__init__.py
5-
include azure/mgmt/__init__.py
62
include LICENSE
73
include azure/mgmt/network/py.typed
4+
recursive-include tests *.py
5+
recursive-include samples *.py *.md
6+
include azure/__init__.py
7+
include azure/mgmt/__init__.py
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
2-
"commit": "51992c6b3f69eee91a049bd024e4a6efbdc10cd4",
2+
"commit": "34499b0aa7b61a0e96a37d28aa282c9d2c345122",
33
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
44
"autorest": "3.10.2",
55
"use": [
6-
"@autorest/python@6.34.1",
6+
"@autorest/python@6.40.0",
77
"@autorest/[email protected]"
88
],
9-
"autorest_command": "autorest specification/network/resource-manager/readme.md --generate-sample=True --generate-test=True --include-x-ms-examples-original-file=True --python --python-sdks-folder=/mnt/vss/_work/1/azure-sdk-for-python/sdk --use=@autorest/python@6.34.1 --use=@autorest/[email protected] --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.40.0 --use=@autorest/[email protected] --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: 2539 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__path__ = __import__("pkgutil").extend_path(__path__, __name__)
1+
__path__ = __import__("pkgutil").extend_path(__path__, __name__) # type: ignore
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__path__ = __import__("pkgutil").extend_path(__path__, __name__)
1+
__path__ = __import__("pkgutil").extend_path(__path__, __name__) # type: ignore

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

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,15 @@
66
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
77
# --------------------------------------------------------------------------
88

9-
from typing import Any, TYPE_CHECKING
9+
from typing import Any, Optional, TYPE_CHECKING
1010

1111
from azure.core.pipeline import policies
1212
from azure.mgmt.core.policies import ARMChallengeAuthenticationPolicy, ARMHttpLoggingPolicy
1313

1414
from ._version import VERSION
1515

1616
if TYPE_CHECKING:
17+
from azure.core import AzureClouds
1718
from azure.core.credentials import TokenCredential
1819

1920

@@ -28,16 +29,26 @@ class NetworkManagementClientConfiguration: # pylint: disable=too-many-instance
2829
:param subscription_id: The subscription credentials which uniquely identify the Microsoft
2930
Azure subscription. The subscription ID forms part of the URI for every service call. Required.
3031
:type subscription_id: str
32+
:param cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is
33+
None.
34+
:type cloud_setting: ~azure.core.AzureClouds
3135
"""
3236

33-
def __init__(self, credential: "TokenCredential", subscription_id: str, **kwargs: Any) -> None:
37+
def __init__(
38+
self,
39+
credential: "TokenCredential",
40+
subscription_id: str,
41+
cloud_setting: Optional["AzureClouds"] = None,
42+
**kwargs: Any
43+
) -> None:
3444
if credential is None:
3545
raise ValueError("Parameter 'credential' must not be None.")
3646
if subscription_id is None:
3747
raise ValueError("Parameter 'subscription_id' must not be None.")
3848

3949
self.credential = credential
4050
self.subscription_id = subscription_id
51+
self.cloud_setting = cloud_setting
4152
self.credential_scopes = kwargs.pop("credential_scopes", ["https://management.azure.com/.default"])
4253
kwargs.setdefault("sdk_moniker", "mgmt-network/{}".format(VERSION))
4354
self.polling_interval = kwargs.get("polling_interval", 30)

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

Lines changed: 27 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,6 @@
9393
NetworkInterfaceLoadBalancersOperations,
9494
NetworkInterfaceTapConfigurationsOperations,
9595
NetworkInterfacesOperations,
96-
NetworkManagementClientOperationsMixin,
9796
NetworkManagerCommitsOperations,
9897
NetworkManagerDeploymentStatusOperations,
9998
NetworkManagerRoutingConfigurationsOperations,
@@ -108,6 +107,7 @@
108107
NetworkSecurityPerimeterLoggingConfigurationsOperations,
109108
NetworkSecurityPerimeterOperationStatusesOperations,
110109
NetworkSecurityPerimeterProfilesOperations,
110+
NetworkSecurityPerimeterServiceTagsOperations,
111111
NetworkSecurityPerimetersOperations,
112112
NetworkVirtualApplianceConnectionsOperations,
113113
NetworkVirtualAppliancesOperations,
@@ -178,14 +178,16 @@
178178
VpnSitesOperations,
179179
WebApplicationFirewallPoliciesOperations,
180180
WebCategoriesOperations,
181+
_NetworkManagementClientOperationsMixin,
181182
)
182183

183184
if TYPE_CHECKING:
185+
from azure.core import AzureClouds
184186
from azure.core.credentials import TokenCredential
185187

186188

187189
class NetworkManagementClient(
188-
NetworkManagementClientOperationsMixin
190+
_NetworkManagementClientOperationsMixin
189191
): # pylint: disable=client-accepts-api-version-keyword,too-many-instance-attributes
190192
"""Network Client.
191193
@@ -444,6 +446,10 @@ class NetworkManagementClient(
444446
NetworkSecurityPerimeterOperationStatusesOperations operations
445447
:vartype network_security_perimeter_operation_statuses:
446448
azure.mgmt.network.operations.NetworkSecurityPerimeterOperationStatusesOperations
449+
:ivar network_security_perimeter_service_tags: NetworkSecurityPerimeterServiceTagsOperations
450+
operations
451+
:vartype network_security_perimeter_service_tags:
452+
azure.mgmt.network.operations.NetworkSecurityPerimeterServiceTagsOperations
447453
:ivar reachability_analysis_intents: ReachabilityAnalysisIntentsOperations operations
448454
:vartype reachability_analysis_intents:
449455
azure.mgmt.network.operations.ReachabilityAnalysisIntentsOperations
@@ -612,20 +618,33 @@ class NetworkManagementClient(
612618
:type subscription_id: str
613619
:param base_url: Service URL. Default value is None.
614620
:type base_url: str
621+
:keyword cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is
622+
None.
623+
:paramtype cloud_setting: ~azure.core.AzureClouds
615624
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no
616625
Retry-After header is present.
617626
"""
618627

619628
def __init__(
620-
self, credential: "TokenCredential", subscription_id: str, base_url: Optional[str] = None, **kwargs: Any
629+
self,
630+
credential: "TokenCredential",
631+
subscription_id: str,
632+
base_url: Optional[str] = None,
633+
*,
634+
cloud_setting: Optional["AzureClouds"] = None,
635+
**kwargs: Any
621636
) -> None:
622-
_cloud = kwargs.pop("cloud_setting", None) or settings.current.azure_cloud # type: ignore
637+
_cloud = cloud_setting or settings.current.azure_cloud # type: ignore
623638
_endpoints = get_arm_endpoints(_cloud)
624639
if not base_url:
625640
base_url = _endpoints["resource_manager"]
626641
credential_scopes = kwargs.pop("credential_scopes", _endpoints["credential_scopes"])
627642
self._config = NetworkManagementClientConfiguration(
628-
credential=credential, subscription_id=subscription_id, credential_scopes=credential_scopes, **kwargs
643+
credential=credential,
644+
subscription_id=subscription_id,
645+
cloud_setting=cloud_setting,
646+
credential_scopes=credential_scopes,
647+
**kwargs
629648
)
630649

631650
_policies = kwargs.pop("policies", None)
@@ -893,6 +912,9 @@ def __init__(
893912
self.network_security_perimeter_operation_statuses = NetworkSecurityPerimeterOperationStatusesOperations(
894913
self._client, self._config, self._serialize, self._deserialize
895914
)
915+
self.network_security_perimeter_service_tags = NetworkSecurityPerimeterServiceTagsOperations(
916+
self._client, self._config, self._serialize, self._deserialize
917+
)
896918
self.reachability_analysis_intents = ReachabilityAnalysisIntentsOperations(
897919
self._client, self._config, self._serialize, self._deserialize
898920
)

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

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
import sys
2222
import codecs
2323
from typing import (
24-
Dict,
2524
Any,
2625
cast,
2726
Optional,
@@ -31,7 +30,6 @@
3130
Mapping,
3231
Callable,
3332
MutableMapping,
34-
List,
3533
)
3634

3735
try:
@@ -229,12 +227,12 @@ class Model:
229227
serialization and deserialization.
230228
"""
231229

232-
_subtype_map: Dict[str, Dict[str, Any]] = {}
233-
_attribute_map: Dict[str, Dict[str, Any]] = {}
234-
_validation: Dict[str, Dict[str, Any]] = {}
230+
_subtype_map: dict[str, dict[str, Any]] = {}
231+
_attribute_map: dict[str, dict[str, Any]] = {}
232+
_validation: dict[str, dict[str, Any]] = {}
235233

236234
def __init__(self, **kwargs: Any) -> None:
237-
self.additional_properties: Optional[Dict[str, Any]] = {}
235+
self.additional_properties: Optional[dict[str, Any]] = {}
238236
for k in kwargs: # pylint: disable=consider-using-dict-items
239237
if k not in self._attribute_map:
240238
_LOGGER.warning("%s is not a known attribute of class %s and will be ignored", k, self.__class__)
@@ -311,7 +309,7 @@ def serialize(self, keep_readonly: bool = False, **kwargs: Any) -> JSON:
311309
def as_dict(
312310
self,
313311
keep_readonly: bool = True,
314-
key_transformer: Callable[[str, Dict[str, Any], Any], Any] = attribute_transformer,
312+
key_transformer: Callable[[str, dict[str, Any], Any], Any] = attribute_transformer,
315313
**kwargs: Any
316314
) -> JSON:
317315
"""Return a dict that can be serialized using json.dump.
@@ -380,7 +378,7 @@ def deserialize(cls, data: Any, content_type: Optional[str] = None) -> Self:
380378
def from_dict(
381379
cls,
382380
data: Any,
383-
key_extractors: Optional[Callable[[str, Dict[str, Any], Any], Any]] = None,
381+
key_extractors: Optional[Callable[[str, dict[str, Any], Any], Any]] = None,
384382
content_type: Optional[str] = None,
385383
) -> Self:
386384
"""Parse a dict using given key extractor return a model.
@@ -414,7 +412,7 @@ def _flatten_subtype(cls, key, objects):
414412
return {}
415413
result = dict(cls._subtype_map[key])
416414
for valuetype in cls._subtype_map[key].values():
417-
result.update(objects[valuetype]._flatten_subtype(key, objects)) # pylint: disable=protected-access
415+
result |= objects[valuetype]._flatten_subtype(key, objects) # pylint: disable=protected-access
418416
return result
419417

420418
@classmethod
@@ -528,7 +526,7 @@ def __init__(self, classes: Optional[Mapping[str, type]] = None) -> None:
528526
"[]": self.serialize_iter,
529527
"{}": self.serialize_dict,
530528
}
531-
self.dependencies: Dict[str, type] = dict(classes) if classes else {}
529+
self.dependencies: dict[str, type] = dict(classes) if classes else {}
532530
self.key_transformer = full_restapi_key_transformer
533531
self.client_side_validation = True
534532

@@ -579,7 +577,7 @@ def _serialize( # pylint: disable=too-many-nested-blocks, too-many-branches, to
579577

580578
if attr_name == "additional_properties" and attr_desc["key"] == "":
581579
if target_obj.additional_properties is not None:
582-
serialized.update(target_obj.additional_properties)
580+
serialized |= target_obj.additional_properties
583581
continue
584582
try:
585583

@@ -1184,7 +1182,7 @@ def rest_key_extractor(attr, attr_desc, data): # pylint: disable=unused-argumen
11841182

11851183
while "." in key:
11861184
# Need the cast, as for some reasons "split" is typed as list[str | Any]
1187-
dict_keys = cast(List[str], _FLATTEN.split(key))
1185+
dict_keys = cast(list[str], _FLATTEN.split(key))
11881186
if len(dict_keys) == 1:
11891187
key = _decode_attribute_map_key(dict_keys[0])
11901188
break
@@ -1386,7 +1384,7 @@ def __init__(self, classes: Optional[Mapping[str, type]] = None) -> None:
13861384
"duration": (isodate.Duration, datetime.timedelta),
13871385
"iso-8601": (datetime.datetime),
13881386
}
1389-
self.dependencies: Dict[str, type] = dict(classes) if classes else {}
1387+
self.dependencies: dict[str, type] = dict(classes) if classes else {}
13901388
self.key_extractors = [rest_key_extractor, xml_key_extractor]
13911389
# Additional properties only works if the "rest_key_extractor" is used to
13921390
# extract the keys. Making it to work whatever the key extractor is too much

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 = "29.0.0"
9+
VERSION = "30.0.0"

0 commit comments

Comments
 (0)