Skip to content

Commit a0f7a22

Browse files
author
SDKAuto
committed
CodeGen from PR 32248 in Azure/azure-rest-api-specs
Merge 159101a4d53858313723a1d3389b0f41fb716282 into 81330ee21a8300ad377eacbaaf16efabb91d56c0
1 parent 0b50606 commit a0f7a22

File tree

68 files changed

+18375
-5742
lines changed

Some content is hidden

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

68 files changed

+18375
-5742
lines changed

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

Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,13 +98,25 @@
9898
NetworkManagersOperations,
9999
NetworkProfilesOperations,
100100
NetworkSecurityGroupsOperations,
101+
NetworkSecurityPerimetersOperations,
101102
NetworkVirtualApplianceConnectionsOperations,
102103
NetworkVirtualAppliancesOperations,
103104
NetworkWatchersOperations,
105+
NspAccessRulesOperations,
106+
NspAccessRulesReconcileOperations,
107+
NspAssociationReconcileOperations,
108+
NspAssociationsOperations,
109+
NspLinkReferencesOperations,
110+
NspLinksOperations,
111+
NspLoggingConfigurationOperations,
112+
NspLoggingConfigurationsOperations,
113+
NspOperationStatusOperations,
114+
NspProfilesOperations,
104115
Operations,
105116
P2SVpnGatewaysOperations,
106117
PacketCapturesOperations,
107118
PeerExpressRouteCircuitConnectionsOperations,
119+
PerimeterAssociableResourceTypesOperations,
108120
PrivateDnsZoneGroupsOperations,
109121
PrivateEndpointsOperations,
110122
PrivateLinkServicesOperations,
@@ -178,6 +190,37 @@ class NetworkManagementClient(
178190
): # pylint: disable=client-accepts-api-version-keyword,too-many-instance-attributes
179191
"""Network Client.
180192
193+
:ivar network_security_perimeters: NetworkSecurityPerimetersOperations operations
194+
:vartype network_security_perimeters:
195+
azure.mgmt.network.operations.NetworkSecurityPerimetersOperations
196+
:ivar nsp_profiles: NspProfilesOperations operations
197+
:vartype nsp_profiles: azure.mgmt.network.operations.NspProfilesOperations
198+
:ivar nsp_access_rules: NspAccessRulesOperations operations
199+
:vartype nsp_access_rules: azure.mgmt.network.operations.NspAccessRulesOperations
200+
:ivar nsp_associations: NspAssociationsOperations operations
201+
:vartype nsp_associations: azure.mgmt.network.operations.NspAssociationsOperations
202+
:ivar nsp_association_reconcile: NspAssociationReconcileOperations operations
203+
:vartype nsp_association_reconcile:
204+
azure.mgmt.network.operations.NspAssociationReconcileOperations
205+
:ivar perimeter_associable_resource_types: PerimeterAssociableResourceTypesOperations
206+
operations
207+
:vartype perimeter_associable_resource_types:
208+
azure.mgmt.network.operations.PerimeterAssociableResourceTypesOperations
209+
:ivar nsp_access_rules_reconcile: NspAccessRulesReconcileOperations operations
210+
:vartype nsp_access_rules_reconcile:
211+
azure.mgmt.network.operations.NspAccessRulesReconcileOperations
212+
:ivar nsp_links: NspLinksOperations operations
213+
:vartype nsp_links: azure.mgmt.network.operations.NspLinksOperations
214+
:ivar nsp_link_references: NspLinkReferencesOperations operations
215+
:vartype nsp_link_references: azure.mgmt.network.operations.NspLinkReferencesOperations
216+
:ivar nsp_logging_configuration: NspLoggingConfigurationOperations operations
217+
:vartype nsp_logging_configuration:
218+
azure.mgmt.network.operations.NspLoggingConfigurationOperations
219+
:ivar nsp_logging_configurations: NspLoggingConfigurationsOperations operations
220+
:vartype nsp_logging_configurations:
221+
azure.mgmt.network.operations.NspLoggingConfigurationsOperations
222+
:ivar nsp_operation_status: NspOperationStatusOperations operations
223+
:vartype nsp_operation_status: azure.mgmt.network.operations.NspOperationStatusOperations
181224
:ivar application_gateways: ApplicationGatewaysOperations operations
182225
:vartype application_gateways: azure.mgmt.network.operations.ApplicationGatewaysOperations
183226
:ivar application_gateway_private_link_resources:
@@ -605,6 +648,36 @@ def __init__(
605648
self._serialize = Serializer(client_models)
606649
self._deserialize = Deserializer(client_models)
607650
self._serialize.client_side_validation = False
651+
self.network_security_perimeters = NetworkSecurityPerimetersOperations(
652+
self._client, self._config, self._serialize, self._deserialize
653+
)
654+
self.nsp_profiles = NspProfilesOperations(self._client, self._config, self._serialize, self._deserialize)
655+
self.nsp_access_rules = NspAccessRulesOperations(self._client, self._config, self._serialize, self._deserialize)
656+
self.nsp_associations = NspAssociationsOperations(
657+
self._client, self._config, self._serialize, self._deserialize
658+
)
659+
self.nsp_association_reconcile = NspAssociationReconcileOperations(
660+
self._client, self._config, self._serialize, self._deserialize
661+
)
662+
self.perimeter_associable_resource_types = PerimeterAssociableResourceTypesOperations(
663+
self._client, self._config, self._serialize, self._deserialize
664+
)
665+
self.nsp_access_rules_reconcile = NspAccessRulesReconcileOperations(
666+
self._client, self._config, self._serialize, self._deserialize
667+
)
668+
self.nsp_links = NspLinksOperations(self._client, self._config, self._serialize, self._deserialize)
669+
self.nsp_link_references = NspLinkReferencesOperations(
670+
self._client, self._config, self._serialize, self._deserialize
671+
)
672+
self.nsp_logging_configuration = NspLoggingConfigurationOperations(
673+
self._client, self._config, self._serialize, self._deserialize
674+
)
675+
self.nsp_logging_configurations = NspLoggingConfigurationsOperations(
676+
self._client, self._config, self._serialize, self._deserialize
677+
)
678+
self.nsp_operation_status = NspOperationStatusOperations(
679+
self._client, self._config, self._serialize, self._deserialize
680+
)
608681
self.application_gateways = ApplicationGatewaysOperations(
609682
self._client, self._config, self._serialize, self._deserialize
610683
)

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

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ def _create_xml_node(tag, prefix=None, ns=None):
310310
return ET.Element(tag)
311311

312312

313-
class Model(object):
313+
class Model:
314314
"""Mixin for all client request body/response body models to support
315315
serialization and deserialization.
316316
"""
@@ -563,7 +563,7 @@ def _decode_attribute_map_key(key):
563563
return key.replace("\\.", ".")
564564

565565

566-
class Serializer(object): # pylint: disable=too-many-public-methods
566+
class Serializer: # pylint: disable=too-many-public-methods
567567
"""Request object model serializer."""
568568

569569
basic_types = {str: "str", int: "int", bool: "bool", float: "float"}
@@ -1441,7 +1441,7 @@ def xml_key_extractor(attr, attr_desc, data): # pylint: disable=unused-argument
14411441
return children[0]
14421442

14431443

1444-
class Deserializer(object):
1444+
class Deserializer:
14451445
"""Response object model deserializer.
14461446
14471447
:param dict classes: Class type dictionary for deserializing complex types.
@@ -1683,17 +1683,21 @@ def _instantiate_model(self, response, attrs, additional_properties=None):
16831683
subtype = getattr(response, "_subtype_map", {})
16841684
try:
16851685
readonly = [
1686-
k for k, v in response._validation.items() if v.get("readonly") # pylint: disable=protected-access
1686+
k
1687+
for k, v in response._validation.items() # pylint: disable=protected-access # type: ignore
1688+
if v.get("readonly")
16871689
]
16881690
const = [
1689-
k for k, v in response._validation.items() if v.get("constant") # pylint: disable=protected-access
1691+
k
1692+
for k, v in response._validation.items() # pylint: disable=protected-access # type: ignore
1693+
if v.get("constant")
16901694
]
16911695
kwargs = {k: v for k, v in attrs.items() if k not in subtype and k not in readonly + const}
16921696
response_obj = response(**kwargs)
16931697
for attr in readonly:
16941698
setattr(response_obj, attr, attrs.get(attr))
16951699
if additional_properties:
1696-
response_obj.additional_properties = additional_properties
1700+
response_obj.additional_properties = additional_properties # type: ignore
16971701
return response_obj
16981702
except TypeError as err:
16991703
msg = "Unable to deserialize {} into model {}. ".format(kwargs, response) # type: ignore

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 = "28.1.0"
9+
VERSION = "28.0.0"

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

Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,13 +98,25 @@
9898
NetworkManagersOperations,
9999
NetworkProfilesOperations,
100100
NetworkSecurityGroupsOperations,
101+
NetworkSecurityPerimetersOperations,
101102
NetworkVirtualApplianceConnectionsOperations,
102103
NetworkVirtualAppliancesOperations,
103104
NetworkWatchersOperations,
105+
NspAccessRulesOperations,
106+
NspAccessRulesReconcileOperations,
107+
NspAssociationReconcileOperations,
108+
NspAssociationsOperations,
109+
NspLinkReferencesOperations,
110+
NspLinksOperations,
111+
NspLoggingConfigurationOperations,
112+
NspLoggingConfigurationsOperations,
113+
NspOperationStatusOperations,
114+
NspProfilesOperations,
104115
Operations,
105116
P2SVpnGatewaysOperations,
106117
PacketCapturesOperations,
107118
PeerExpressRouteCircuitConnectionsOperations,
119+
PerimeterAssociableResourceTypesOperations,
108120
PrivateDnsZoneGroupsOperations,
109121
PrivateEndpointsOperations,
110122
PrivateLinkServicesOperations,
@@ -178,6 +190,37 @@ class NetworkManagementClient(
178190
): # pylint: disable=client-accepts-api-version-keyword,too-many-instance-attributes
179191
"""Network Client.
180192
193+
:ivar network_security_perimeters: NetworkSecurityPerimetersOperations operations
194+
:vartype network_security_perimeters:
195+
azure.mgmt.network.aio.operations.NetworkSecurityPerimetersOperations
196+
:ivar nsp_profiles: NspProfilesOperations operations
197+
:vartype nsp_profiles: azure.mgmt.network.aio.operations.NspProfilesOperations
198+
:ivar nsp_access_rules: NspAccessRulesOperations operations
199+
:vartype nsp_access_rules: azure.mgmt.network.aio.operations.NspAccessRulesOperations
200+
:ivar nsp_associations: NspAssociationsOperations operations
201+
:vartype nsp_associations: azure.mgmt.network.aio.operations.NspAssociationsOperations
202+
:ivar nsp_association_reconcile: NspAssociationReconcileOperations operations
203+
:vartype nsp_association_reconcile:
204+
azure.mgmt.network.aio.operations.NspAssociationReconcileOperations
205+
:ivar perimeter_associable_resource_types: PerimeterAssociableResourceTypesOperations
206+
operations
207+
:vartype perimeter_associable_resource_types:
208+
azure.mgmt.network.aio.operations.PerimeterAssociableResourceTypesOperations
209+
:ivar nsp_access_rules_reconcile: NspAccessRulesReconcileOperations operations
210+
:vartype nsp_access_rules_reconcile:
211+
azure.mgmt.network.aio.operations.NspAccessRulesReconcileOperations
212+
:ivar nsp_links: NspLinksOperations operations
213+
:vartype nsp_links: azure.mgmt.network.aio.operations.NspLinksOperations
214+
:ivar nsp_link_references: NspLinkReferencesOperations operations
215+
:vartype nsp_link_references: azure.mgmt.network.aio.operations.NspLinkReferencesOperations
216+
:ivar nsp_logging_configuration: NspLoggingConfigurationOperations operations
217+
:vartype nsp_logging_configuration:
218+
azure.mgmt.network.aio.operations.NspLoggingConfigurationOperations
219+
:ivar nsp_logging_configurations: NspLoggingConfigurationsOperations operations
220+
:vartype nsp_logging_configurations:
221+
azure.mgmt.network.aio.operations.NspLoggingConfigurationsOperations
222+
:ivar nsp_operation_status: NspOperationStatusOperations operations
223+
:vartype nsp_operation_status: azure.mgmt.network.aio.operations.NspOperationStatusOperations
181224
:ivar application_gateways: ApplicationGatewaysOperations operations
182225
:vartype application_gateways: azure.mgmt.network.aio.operations.ApplicationGatewaysOperations
183226
:ivar application_gateway_private_link_resources:
@@ -621,6 +664,36 @@ def __init__(
621664
self._serialize = Serializer(client_models)
622665
self._deserialize = Deserializer(client_models)
623666
self._serialize.client_side_validation = False
667+
self.network_security_perimeters = NetworkSecurityPerimetersOperations(
668+
self._client, self._config, self._serialize, self._deserialize
669+
)
670+
self.nsp_profiles = NspProfilesOperations(self._client, self._config, self._serialize, self._deserialize)
671+
self.nsp_access_rules = NspAccessRulesOperations(self._client, self._config, self._serialize, self._deserialize)
672+
self.nsp_associations = NspAssociationsOperations(
673+
self._client, self._config, self._serialize, self._deserialize
674+
)
675+
self.nsp_association_reconcile = NspAssociationReconcileOperations(
676+
self._client, self._config, self._serialize, self._deserialize
677+
)
678+
self.perimeter_associable_resource_types = PerimeterAssociableResourceTypesOperations(
679+
self._client, self._config, self._serialize, self._deserialize
680+
)
681+
self.nsp_access_rules_reconcile = NspAccessRulesReconcileOperations(
682+
self._client, self._config, self._serialize, self._deserialize
683+
)
684+
self.nsp_links = NspLinksOperations(self._client, self._config, self._serialize, self._deserialize)
685+
self.nsp_link_references = NspLinkReferencesOperations(
686+
self._client, self._config, self._serialize, self._deserialize
687+
)
688+
self.nsp_logging_configuration = NspLoggingConfigurationOperations(
689+
self._client, self._config, self._serialize, self._deserialize
690+
)
691+
self.nsp_logging_configurations = NspLoggingConfigurationsOperations(
692+
self._client, self._config, self._serialize, self._deserialize
693+
)
694+
self.nsp_operation_status = NspOperationStatusOperations(
695+
self._client, self._config, self._serialize, self._deserialize
696+
)
624697
self.application_gateways = ApplicationGatewaysOperations(
625698
self._client, self._config, self._serialize, self._deserialize
626699
)

sdk/network/azure-mgmt-network/azure/mgmt/network/aio/operations/__init__.py

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,18 @@
1212
if TYPE_CHECKING:
1313
from ._patch import * # pylint: disable=unused-wildcard-import
1414

15+
from ._operations import NetworkSecurityPerimetersOperations # type: ignore
16+
from ._operations import NspProfilesOperations # type: ignore
17+
from ._operations import NspAccessRulesOperations # type: ignore
18+
from ._operations import NspAssociationsOperations # type: ignore
19+
from ._operations import NspAssociationReconcileOperations # type: ignore
20+
from ._operations import PerimeterAssociableResourceTypesOperations # type: ignore
21+
from ._operations import NspAccessRulesReconcileOperations # type: ignore
22+
from ._operations import NspLinksOperations # type: ignore
23+
from ._operations import NspLinkReferencesOperations # type: ignore
24+
from ._operations import NspLoggingConfigurationOperations # type: ignore
25+
from ._operations import NspLoggingConfigurationsOperations # type: ignore
26+
from ._operations import NspOperationStatusOperations # type: ignore
1527
from ._operations import ApplicationGatewaysOperations # type: ignore
1628
from ._operations import ApplicationGatewayPrivateLinkResourcesOperations # type: ignore
1729
from ._operations import ApplicationGatewayPrivateEndpointConnectionsOperations # type: ignore
@@ -165,6 +177,18 @@
165177
from ._patch import patch_sdk as _patch_sdk
166178

167179
__all__ = [
180+
"NetworkSecurityPerimetersOperations",
181+
"NspProfilesOperations",
182+
"NspAccessRulesOperations",
183+
"NspAssociationsOperations",
184+
"NspAssociationReconcileOperations",
185+
"PerimeterAssociableResourceTypesOperations",
186+
"NspAccessRulesReconcileOperations",
187+
"NspLinksOperations",
188+
"NspLinkReferencesOperations",
189+
"NspLoggingConfigurationOperations",
190+
"NspLoggingConfigurationsOperations",
191+
"NspOperationStatusOperations",
168192
"ApplicationGatewaysOperations",
169193
"ApplicationGatewayPrivateLinkResourcesOperations",
170194
"ApplicationGatewayPrivateEndpointConnectionsOperations",

0 commit comments

Comments
 (0)