Skip to content
Draft
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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
705 changes: 112 additions & 593 deletions sdk/network/azure-mgmt-network/CHANGELOG.md

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions sdk/network/azure-mgmt-network/_metadata.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"apiVersions": {
"Microsoft.Compute": "2018-10-01",
"Microsoft.Network": "2025-07-01"
"Microsoft.Network": "2025-09-01"
},
"commit": "f26746d404d4f24f3a85820aec9d78a10a708a39",
"commit": "bd92126f09e7e3caa74f10fa1c944d1e451813ac",
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
"typespec_src": "specification/network/resource-manager/Microsoft.Network/Network",
"emitterVersion": "0.63.2",
"httpClientPythonVersion": "^0.33.0"
"emitterVersion": "0.63.5",
"httpClientPythonVersion": "^0.36.0"
}
11,945 changes: 11,358 additions & 587 deletions sdk/network/azure-mgmt-network/api.md

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions sdk/network/azure-mgmt-network/api.metadata.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
apiMdSha256: fec7e082754b6f8af61000d977404d1853edc5b94adb921a10bfe4fd63f57f40
parserVersion: 0.3.28
pythonVersion: 3.13.13
apiMdSha256: 2c6eb1e5367f42096179ad128a671fd5ea09d317309f669bf22eab902c3bfd26
parserVersion: 0.3.31
pythonVersion: 3.13.14
141 changes: 134 additions & 7 deletions sdk/network/azure-mgmt-network/apiview-properties.json

Large diffs are not rendered by default.

31 changes: 29 additions & 2 deletions sdk/network/azure-mgmt-network/azure/mgmt/network/_client.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# pylint: disable=too-many-lines
# pylint: disable=line-too-long,useless-suppression,too-many-lines
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
Expand All @@ -21,6 +21,7 @@
from ._configuration import NetworkManagementClientConfiguration
from ._utils.serialization import Deserializer, Serializer
from .operations import (
AddressPrefixSetsOperations,
AdminRuleCollectionsOperations,
AdminRulesOperations,
ApplicationGatewayPrivateEndpointConnectionsOperations,
Expand Down Expand Up @@ -56,6 +57,7 @@
ExpressRouteCrossConnectionPeeringsOperations,
ExpressRouteCrossConnectionsOperations,
ExpressRouteGatewaysOperations,
ExpressRouteLagsOperations,
ExpressRouteLinksOperations,
ExpressRoutePortAuthorizationsOperations,
ExpressRoutePortsLocationsOperations,
Expand All @@ -68,8 +70,10 @@
FirewallPolicyIdpsSignaturesFilterValuesOperations,
FirewallPolicyIdpsSignaturesOperations,
FirewallPolicyIdpsSignaturesOverridesOperations,
FirewallPolicyKubeSelectorGroupsOperations,
FirewallPolicyRuleCollectionGroupDraftsOperations,
FirewallPolicyRuleCollectionGroupsOperations,
FirstPartyServiceTagsOperations,
FlowLogsOperations,
HubRouteTablesOperations,
HubVirtualNetworkConnectionsOperations,
Expand Down Expand Up @@ -198,7 +202,7 @@

class NetworkManagementClient(
_NetworkManagementClientOperationsMixin
): # pylint: disable=client-accepts-api-version-keyword,too-many-instance-attributes
): # pylint: disable=client-accepts-api-version-keyword,too-many-instance-attributes,docstring-keyword-should-match-keyword-only
"""NetworkManagementClient.

:ivar operations: Operations operations
Expand Down Expand Up @@ -251,12 +255,18 @@ class NetworkManagementClient(
:ivar express_route_port_authorizations: ExpressRoutePortAuthorizationsOperations operations
:vartype express_route_port_authorizations:
azure.mgmt.network.operations.ExpressRoutePortAuthorizationsOperations
:ivar express_route_lags: ExpressRouteLagsOperations operations
:vartype express_route_lags: azure.mgmt.network.operations.ExpressRouteLagsOperations
:ivar firewall_policies: FirewallPoliciesOperations operations
:vartype firewall_policies: azure.mgmt.network.operations.FirewallPoliciesOperations
:ivar firewall_policy_rule_collection_groups: FirewallPolicyRuleCollectionGroupsOperations
operations
:vartype firewall_policy_rule_collection_groups:
azure.mgmt.network.operations.FirewallPolicyRuleCollectionGroupsOperations
:ivar firewall_policy_kube_selector_groups: FirewallPolicyKubeSelectorGroupsOperations
operations
:vartype firewall_policy_kube_selector_groups:
azure.mgmt.network.operations.FirewallPolicyKubeSelectorGroupsOperations
:ivar firewall_policy_idps_signatures_overrides:
FirewallPolicyIdpsSignaturesOverridesOperations operations
:vartype firewall_policy_idps_signatures_overrides:
Expand Down Expand Up @@ -445,6 +455,11 @@ class NetworkManagementClient(
:vartype interconnect_groups: azure.mgmt.network.operations.InterconnectGroupsOperations
:ivar subgroups: SubgroupsOperations operations
:vartype subgroups: azure.mgmt.network.operations.SubgroupsOperations
:ivar first_party_service_tags: FirstPartyServiceTagsOperations operations
:vartype first_party_service_tags:
azure.mgmt.network.operations.FirstPartyServiceTagsOperations
:ivar address_prefix_sets: AddressPrefixSetsOperations operations
:vartype address_prefix_sets: azure.mgmt.network.operations.AddressPrefixSetsOperations
:ivar application_gateway_private_link_resources:
ApplicationGatewayPrivateLinkResourcesOperations operations
:vartype application_gateway_private_link_resources:
Expand Down Expand Up @@ -745,12 +760,18 @@ def __init__(
self.express_route_port_authorizations = ExpressRoutePortAuthorizationsOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.express_route_lags = ExpressRouteLagsOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.firewall_policies = FirewallPoliciesOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.firewall_policy_rule_collection_groups = FirewallPolicyRuleCollectionGroupsOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.firewall_policy_kube_selector_groups = FirewallPolicyKubeSelectorGroupsOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.firewall_policy_idps_signatures_overrides = FirewallPolicyIdpsSignaturesOverridesOperations(
self._client, self._config, self._serialize, self._deserialize
)
Expand Down Expand Up @@ -927,6 +948,12 @@ def __init__(
self._client, self._config, self._serialize, self._deserialize
)
self.subgroups = SubgroupsOperations(self._client, self._config, self._serialize, self._deserialize)
self.first_party_service_tags = FirstPartyServiceTagsOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.address_prefix_sets = AddressPrefixSetsOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.application_gateway_private_link_resources = ApplicationGatewayPrivateLinkResourcesOperations(
self._client, self._config, self._serialize, self._deserialize
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize
"""


__all__: list[str] = [] # Add all objects you want publicly available to users at this package level


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,15 @@ def _is_readonly(p):


class SdkJSONEncoder(JSONEncoder):
"""A JSON encoder that's capable of serializing datetime objects and bytes."""
"""A JSON encoder that's capable of serializing datetime objects and bytes.

:param args: Additional positional arguments passed to the base ``JSONEncoder``.
:type args: typing.Any
:keyword exclude_readonly: Whether to exclude readonly properties. Defaults to False.
:paramtype exclude_readonly: bool
:keyword format: The format to use for serialization. Defaults to None.
:paramtype format: typing.Optional[str]
"""

def __init__(self, *args, exclude_readonly: bool = False, format: typing.Optional[str] = None, **kwargs):
super().__init__(*args, **kwargs)
Expand Down Expand Up @@ -342,6 +350,12 @@ def _deserialize_int_as_str(attr):
return int(attr)


def _deserialize_bool_as_str(attr):
if isinstance(attr, bool):
return attr
return attr.lower() == "true"


_DESERIALIZE_MAPPING = {
datetime: _deserialize_datetime,
date: _deserialize_date,
Expand Down Expand Up @@ -369,6 +383,8 @@ def _deserialize_int_as_str(attr):
def get_deserializer(annotation: typing.Any, rf: typing.Optional["_RestField"] = None):
if annotation is int and rf and rf._format == "str":
return _deserialize_int_as_str
if annotation is bool and rf and rf._format == "str":
return _deserialize_bool_as_str
if annotation is str and rf and rf._format in _ARRAY_ENCODE_MAPPING:
return functools.partial(_deserialize_array_encoded, _ARRAY_ENCODE_MAPPING[rf._format])
if rf and rf._format:
Expand Down Expand Up @@ -458,21 +474,21 @@ def __ne__(self, other: typing.Any) -> bool:

def keys(self) -> typing.KeysView[str]:
"""
:returns: a set-like object providing a view on D's keys
:returns: a set-like object providing a view on the mapping's keys
:rtype: ~typing.KeysView
"""
return self._data.keys()

def values(self) -> typing.ValuesView[typing.Any]:
"""
:returns: an object providing a view on D's values
:returns: an object providing a view on the mapping's values
:rtype: ~typing.ValuesView
"""
return self._data.values()

def items(self) -> typing.ItemsView[str, typing.Any]:
"""
:returns: set-like object providing a view on D's items
:returns: a set-like object providing a view on the mapping's items
:rtype: ~typing.ItemsView
"""
return self._data.items()
Expand All @@ -482,7 +498,7 @@ def get(self, key: str, default: typing.Any = None) -> typing.Any:
Get the value for key if key is in the dictionary, else default.
:param str key: The key to look up.
:param any default: The value to return if key is not in the dictionary. Defaults to None
:returns: D[k] if k in D, else d.
:returns: The value for key if key is in the dictionary, else default.
:rtype: any
"""
try:
Expand Down Expand Up @@ -517,19 +533,19 @@ def popitem(self) -> tuple[str, typing.Any]:
Removes and returns some (key, value) pair
:returns: The (key, value) pair.
:rtype: tuple
:raises KeyError: if D is empty.
:raises KeyError: if the dictionary is empty.
"""
return self._data.popitem()

def clear(self) -> None:
"""
Remove all items from D.
Remove all items from the dictionary.
"""
self._data.clear()

def update(self, *args: typing.Any, **kwargs: typing.Any) -> None: # pylint: disable=arguments-differ
"""
Updates D from mapping/iterable E and F.
Update the dictionary from a mapping or an iterable of key-value pairs.
:param any args: Either a mapping object or an iterable of key-value pairs.
"""
self._data.update(*args, **kwargs)
Expand All @@ -542,10 +558,11 @@ def setdefault(self, key: str, default: typing.Any) -> typing.Any: ... # pylint

def setdefault(self, key: str, default: typing.Any = _UNSET) -> typing.Any:
"""
Same as calling D.get(k, d), and setting D[k]=d if k not found
Return the value for key if key is in the dictionary; otherwise set the key to
default and return default.
:param str key: The key to look up.
:param any default: The value to set if key is not in the dictionary
:returns: D[k] if k in D, else d.
:returns: The value for key if key is in the dictionary, else default.
:rtype: any
"""
if default is _UNSET:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -480,7 +480,11 @@ def _decode_attribute_map_key(key):


class Serializer: # pylint: disable=too-many-public-methods
"""Request object model serializer."""
"""Request object model serializer.

:param classes: Mapping of model names to model types, used to resolve models during serialization.
:type classes: typing.Optional[typing.Mapping[str, type]]
"""

basic_types = {str: "str", int: "int", bool: "bool", float: "float"}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

VERSION = "31.0.1"
VERSION = "32.0.0b1"
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# pylint: disable=too-many-lines
# pylint: disable=line-too-long,useless-suppression,too-many-lines
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
Expand All @@ -21,6 +21,7 @@
from .._utils.serialization import Deserializer, Serializer
from ._configuration import NetworkManagementClientConfiguration
from .operations import (
AddressPrefixSetsOperations,
AdminRuleCollectionsOperations,
AdminRulesOperations,
ApplicationGatewayPrivateEndpointConnectionsOperations,
Expand Down Expand Up @@ -56,6 +57,7 @@
ExpressRouteCrossConnectionPeeringsOperations,
ExpressRouteCrossConnectionsOperations,
ExpressRouteGatewaysOperations,
ExpressRouteLagsOperations,
ExpressRouteLinksOperations,
ExpressRoutePortAuthorizationsOperations,
ExpressRoutePortsLocationsOperations,
Expand All @@ -68,8 +70,10 @@
FirewallPolicyIdpsSignaturesFilterValuesOperations,
FirewallPolicyIdpsSignaturesOperations,
FirewallPolicyIdpsSignaturesOverridesOperations,
FirewallPolicyKubeSelectorGroupsOperations,
FirewallPolicyRuleCollectionGroupDraftsOperations,
FirewallPolicyRuleCollectionGroupsOperations,
FirstPartyServiceTagsOperations,
FlowLogsOperations,
HubRouteTablesOperations,
HubVirtualNetworkConnectionsOperations,
Expand Down Expand Up @@ -198,7 +202,7 @@

class NetworkManagementClient(
_NetworkManagementClientOperationsMixin
): # pylint: disable=client-accepts-api-version-keyword,too-many-instance-attributes
): # pylint: disable=client-accepts-api-version-keyword,too-many-instance-attributes,docstring-keyword-should-match-keyword-only
"""NetworkManagementClient.

:ivar operations: Operations operations
Expand Down Expand Up @@ -252,12 +256,18 @@ class NetworkManagementClient(
:ivar express_route_port_authorizations: ExpressRoutePortAuthorizationsOperations operations
:vartype express_route_port_authorizations:
azure.mgmt.network.aio.operations.ExpressRoutePortAuthorizationsOperations
:ivar express_route_lags: ExpressRouteLagsOperations operations
:vartype express_route_lags: azure.mgmt.network.aio.operations.ExpressRouteLagsOperations
:ivar firewall_policies: FirewallPoliciesOperations operations
:vartype firewall_policies: azure.mgmt.network.aio.operations.FirewallPoliciesOperations
:ivar firewall_policy_rule_collection_groups: FirewallPolicyRuleCollectionGroupsOperations
operations
:vartype firewall_policy_rule_collection_groups:
azure.mgmt.network.aio.operations.FirewallPolicyRuleCollectionGroupsOperations
:ivar firewall_policy_kube_selector_groups: FirewallPolicyKubeSelectorGroupsOperations
operations
:vartype firewall_policy_kube_selector_groups:
azure.mgmt.network.aio.operations.FirewallPolicyKubeSelectorGroupsOperations
:ivar firewall_policy_idps_signatures_overrides:
FirewallPolicyIdpsSignaturesOverridesOperations operations
:vartype firewall_policy_idps_signatures_overrides:
Expand Down Expand Up @@ -454,6 +464,11 @@ class NetworkManagementClient(
:vartype interconnect_groups: azure.mgmt.network.aio.operations.InterconnectGroupsOperations
:ivar subgroups: SubgroupsOperations operations
:vartype subgroups: azure.mgmt.network.aio.operations.SubgroupsOperations
:ivar first_party_service_tags: FirstPartyServiceTagsOperations operations
:vartype first_party_service_tags:
azure.mgmt.network.aio.operations.FirstPartyServiceTagsOperations
:ivar address_prefix_sets: AddressPrefixSetsOperations operations
:vartype address_prefix_sets: azure.mgmt.network.aio.operations.AddressPrefixSetsOperations
:ivar application_gateway_private_link_resources:
ApplicationGatewayPrivateLinkResourcesOperations operations
:vartype application_gateway_private_link_resources:
Expand Down Expand Up @@ -763,12 +778,18 @@ def __init__(
self.express_route_port_authorizations = ExpressRoutePortAuthorizationsOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.express_route_lags = ExpressRouteLagsOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.firewall_policies = FirewallPoliciesOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.firewall_policy_rule_collection_groups = FirewallPolicyRuleCollectionGroupsOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.firewall_policy_kube_selector_groups = FirewallPolicyKubeSelectorGroupsOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.firewall_policy_idps_signatures_overrides = FirewallPolicyIdpsSignaturesOverridesOperations(
self._client, self._config, self._serialize, self._deserialize
)
Expand Down Expand Up @@ -945,6 +966,12 @@ def __init__(
self._client, self._config, self._serialize, self._deserialize
)
self.subgroups = SubgroupsOperations(self._client, self._config, self._serialize, self._deserialize)
self.first_party_service_tags = FirstPartyServiceTagsOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.address_prefix_sets = AddressPrefixSetsOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.application_gateway_private_link_resources = ApplicationGatewayPrivateLinkResourcesOperations(
self._client, self._config, self._serialize, self._deserialize
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize
"""


__all__: list[str] = [] # Add all objects you want publicly available to users at this package level


Expand Down
Loading
Loading