Skip to content

Commit e2ecd2e

Browse files
author
SDKAuto
committed
CodeGen from PR 32556 in Azure/azure-rest-api-specs
Merge bfba04b3ff58fdfd5772e559eaf1ae4e16fdc669 into 3ecf309eccd4fc9e3b507047bb2162f1a19e079d
1 parent 34c4350 commit e2ecd2e

File tree

1,125 files changed

+38080
-23952
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,125 files changed

+38080
-23952
lines changed

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

Lines changed: 76 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,
@@ -399,6 +411,37 @@ class NetworkManagementClient(
399411
:vartype security_rules: azure.mgmt.network.operations.SecurityRulesOperations
400412
:ivar default_security_rules: DefaultSecurityRulesOperations operations
401413
:vartype default_security_rules: azure.mgmt.network.operations.DefaultSecurityRulesOperations
414+
:ivar network_security_perimeters: NetworkSecurityPerimetersOperations operations
415+
:vartype network_security_perimeters:
416+
azure.mgmt.network.operations.NetworkSecurityPerimetersOperations
417+
:ivar nsp_profiles: NspProfilesOperations operations
418+
:vartype nsp_profiles: azure.mgmt.network.operations.NspProfilesOperations
419+
:ivar nsp_access_rules: NspAccessRulesOperations operations
420+
:vartype nsp_access_rules: azure.mgmt.network.operations.NspAccessRulesOperations
421+
:ivar nsp_associations: NspAssociationsOperations operations
422+
:vartype nsp_associations: azure.mgmt.network.operations.NspAssociationsOperations
423+
:ivar nsp_association_reconcile: NspAssociationReconcileOperations operations
424+
:vartype nsp_association_reconcile:
425+
azure.mgmt.network.operations.NspAssociationReconcileOperations
426+
:ivar perimeter_associable_resource_types: PerimeterAssociableResourceTypesOperations
427+
operations
428+
:vartype perimeter_associable_resource_types:
429+
azure.mgmt.network.operations.PerimeterAssociableResourceTypesOperations
430+
:ivar nsp_access_rules_reconcile: NspAccessRulesReconcileOperations operations
431+
:vartype nsp_access_rules_reconcile:
432+
azure.mgmt.network.operations.NspAccessRulesReconcileOperations
433+
:ivar nsp_links: NspLinksOperations operations
434+
:vartype nsp_links: azure.mgmt.network.operations.NspLinksOperations
435+
:ivar nsp_link_references: NspLinkReferencesOperations operations
436+
:vartype nsp_link_references: azure.mgmt.network.operations.NspLinkReferencesOperations
437+
:ivar nsp_logging_configuration: NspLoggingConfigurationOperations operations
438+
:vartype nsp_logging_configuration:
439+
azure.mgmt.network.operations.NspLoggingConfigurationOperations
440+
:ivar nsp_logging_configurations: NspLoggingConfigurationsOperations operations
441+
:vartype nsp_logging_configurations:
442+
azure.mgmt.network.operations.NspLoggingConfigurationsOperations
443+
:ivar nsp_operation_status: NspOperationStatusOperations operations
444+
:vartype nsp_operation_status: azure.mgmt.network.operations.NspOperationStatusOperations
402445
:ivar reachability_analysis_intents: ReachabilityAnalysisIntentsOperations operations
403446
:vartype reachability_analysis_intents:
404447
azure.mgmt.network.operations.ReachabilityAnalysisIntentsOperations
@@ -565,6 +608,8 @@ class NetworkManagementClient(
565608
:param subscription_id: The subscription credentials which uniquely identify the Microsoft
566609
Azure subscription. The subscription ID forms part of the URI for every service call. Required.
567610
:type subscription_id: str
611+
:param base_url: Service URL. Required. Default value is "".
612+
:type base_url: str
568613
:param base_url: Service URL. Default value is "https://management.azure.com".
569614
:type base_url: str
570615
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no
@@ -575,6 +620,7 @@ def __init__(
575620
self,
576621
credential: "TokenCredential",
577622
subscription_id: str,
623+
base_url: str = "",
578624
base_url: str = "https://management.azure.com",
579625
**kwargs: Any
580626
) -> None:
@@ -815,6 +861,36 @@ def __init__(
815861
self.default_security_rules = DefaultSecurityRulesOperations(
816862
self._client, self._config, self._serialize, self._deserialize
817863
)
864+
self.network_security_perimeters = NetworkSecurityPerimetersOperations(
865+
self._client, self._config, self._serialize, self._deserialize
866+
)
867+
self.nsp_profiles = NspProfilesOperations(self._client, self._config, self._serialize, self._deserialize)
868+
self.nsp_access_rules = NspAccessRulesOperations(self._client, self._config, self._serialize, self._deserialize)
869+
self.nsp_associations = NspAssociationsOperations(
870+
self._client, self._config, self._serialize, self._deserialize
871+
)
872+
self.nsp_association_reconcile = NspAssociationReconcileOperations(
873+
self._client, self._config, self._serialize, self._deserialize
874+
)
875+
self.perimeter_associable_resource_types = PerimeterAssociableResourceTypesOperations(
876+
self._client, self._config, self._serialize, self._deserialize
877+
)
878+
self.nsp_access_rules_reconcile = NspAccessRulesReconcileOperations(
879+
self._client, self._config, self._serialize, self._deserialize
880+
)
881+
self.nsp_links = NspLinksOperations(self._client, self._config, self._serialize, self._deserialize)
882+
self.nsp_link_references = NspLinkReferencesOperations(
883+
self._client, self._config, self._serialize, self._deserialize
884+
)
885+
self.nsp_logging_configuration = NspLoggingConfigurationOperations(
886+
self._client, self._config, self._serialize, self._deserialize
887+
)
888+
self.nsp_logging_configurations = NspLoggingConfigurationsOperations(
889+
self._client, self._config, self._serialize, self._deserialize
890+
)
891+
self.nsp_operation_status = NspOperationStatusOperations(
892+
self._client, self._config, self._serialize, self._deserialize
893+
)
818894
self.reachability_analysis_intents = ReachabilityAnalysisIntentsOperations(
819895
self._client, self._config, self._serialize, self._deserialize
820896
)

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: 76 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,
@@ -406,6 +418,37 @@ class NetworkManagementClient(
406418
:ivar default_security_rules: DefaultSecurityRulesOperations operations
407419
:vartype default_security_rules:
408420
azure.mgmt.network.aio.operations.DefaultSecurityRulesOperations
421+
:ivar network_security_perimeters: NetworkSecurityPerimetersOperations operations
422+
:vartype network_security_perimeters:
423+
azure.mgmt.network.aio.operations.NetworkSecurityPerimetersOperations
424+
:ivar nsp_profiles: NspProfilesOperations operations
425+
:vartype nsp_profiles: azure.mgmt.network.aio.operations.NspProfilesOperations
426+
:ivar nsp_access_rules: NspAccessRulesOperations operations
427+
:vartype nsp_access_rules: azure.mgmt.network.aio.operations.NspAccessRulesOperations
428+
:ivar nsp_associations: NspAssociationsOperations operations
429+
:vartype nsp_associations: azure.mgmt.network.aio.operations.NspAssociationsOperations
430+
:ivar nsp_association_reconcile: NspAssociationReconcileOperations operations
431+
:vartype nsp_association_reconcile:
432+
azure.mgmt.network.aio.operations.NspAssociationReconcileOperations
433+
:ivar perimeter_associable_resource_types: PerimeterAssociableResourceTypesOperations
434+
operations
435+
:vartype perimeter_associable_resource_types:
436+
azure.mgmt.network.aio.operations.PerimeterAssociableResourceTypesOperations
437+
:ivar nsp_access_rules_reconcile: NspAccessRulesReconcileOperations operations
438+
:vartype nsp_access_rules_reconcile:
439+
azure.mgmt.network.aio.operations.NspAccessRulesReconcileOperations
440+
:ivar nsp_links: NspLinksOperations operations
441+
:vartype nsp_links: azure.mgmt.network.aio.operations.NspLinksOperations
442+
:ivar nsp_link_references: NspLinkReferencesOperations operations
443+
:vartype nsp_link_references: azure.mgmt.network.aio.operations.NspLinkReferencesOperations
444+
:ivar nsp_logging_configuration: NspLoggingConfigurationOperations operations
445+
:vartype nsp_logging_configuration:
446+
azure.mgmt.network.aio.operations.NspLoggingConfigurationOperations
447+
:ivar nsp_logging_configurations: NspLoggingConfigurationsOperations operations
448+
:vartype nsp_logging_configurations:
449+
azure.mgmt.network.aio.operations.NspLoggingConfigurationsOperations
450+
:ivar nsp_operation_status: NspOperationStatusOperations operations
451+
:vartype nsp_operation_status: azure.mgmt.network.aio.operations.NspOperationStatusOperations
409452
:ivar reachability_analysis_intents: ReachabilityAnalysisIntentsOperations operations
410453
:vartype reachability_analysis_intents:
411454
azure.mgmt.network.aio.operations.ReachabilityAnalysisIntentsOperations
@@ -581,6 +624,8 @@ class NetworkManagementClient(
581624
:param subscription_id: The subscription credentials which uniquely identify the Microsoft
582625
Azure subscription. The subscription ID forms part of the URI for every service call. Required.
583626
:type subscription_id: str
627+
:param base_url: Service URL. Required. Default value is "".
628+
:type base_url: str
584629
:param base_url: Service URL. Default value is "https://management.azure.com".
585630
:type base_url: str
586631
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no
@@ -591,6 +636,7 @@ def __init__(
591636
self,
592637
credential: "AsyncTokenCredential",
593638
subscription_id: str,
639+
base_url: str = "",
594640
base_url: str = "https://management.azure.com",
595641
**kwargs: Any
596642
) -> None:
@@ -831,6 +877,36 @@ def __init__(
831877
self.default_security_rules = DefaultSecurityRulesOperations(
832878
self._client, self._config, self._serialize, self._deserialize
833879
)
880+
self.network_security_perimeters = NetworkSecurityPerimetersOperations(
881+
self._client, self._config, self._serialize, self._deserialize
882+
)
883+
self.nsp_profiles = NspProfilesOperations(self._client, self._config, self._serialize, self._deserialize)
884+
self.nsp_access_rules = NspAccessRulesOperations(self._client, self._config, self._serialize, self._deserialize)
885+
self.nsp_associations = NspAssociationsOperations(
886+
self._client, self._config, self._serialize, self._deserialize
887+
)
888+
self.nsp_association_reconcile = NspAssociationReconcileOperations(
889+
self._client, self._config, self._serialize, self._deserialize
890+
)
891+
self.perimeter_associable_resource_types = PerimeterAssociableResourceTypesOperations(
892+
self._client, self._config, self._serialize, self._deserialize
893+
)
894+
self.nsp_access_rules_reconcile = NspAccessRulesReconcileOperations(
895+
self._client, self._config, self._serialize, self._deserialize
896+
)
897+
self.nsp_links = NspLinksOperations(self._client, self._config, self._serialize, self._deserialize)
898+
self.nsp_link_references = NspLinkReferencesOperations(
899+
self._client, self._config, self._serialize, self._deserialize
900+
)
901+
self.nsp_logging_configuration = NspLoggingConfigurationOperations(
902+
self._client, self._config, self._serialize, self._deserialize
903+
)
904+
self.nsp_logging_configurations = NspLoggingConfigurationsOperations(
905+
self._client, self._config, self._serialize, self._deserialize
906+
)
907+
self.nsp_operation_status = NspOperationStatusOperations(
908+
self._client, self._config, self._serialize, self._deserialize
909+
)
834910
self.reachability_analysis_intents = ReachabilityAnalysisIntentsOperations(
835911
self._client, self._config, self._serialize, self._deserialize
836912
)

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
@@ -93,6 +93,18 @@
9393
from ._operations import NetworkSecurityGroupsOperations # type: ignore
9494
from ._operations import SecurityRulesOperations # type: ignore
9595
from ._operations import DefaultSecurityRulesOperations # type: ignore
96+
from ._operations import NetworkSecurityPerimetersOperations # type: ignore
97+
from ._operations import NspProfilesOperations # type: ignore
98+
from ._operations import NspAccessRulesOperations # type: ignore
99+
from ._operations import NspAssociationsOperations # type: ignore
100+
from ._operations import NspAssociationReconcileOperations # type: ignore
101+
from ._operations import PerimeterAssociableResourceTypesOperations # type: ignore
102+
from ._operations import NspAccessRulesReconcileOperations # type: ignore
103+
from ._operations import NspLinksOperations # type: ignore
104+
from ._operations import NspLinkReferencesOperations # type: ignore
105+
from ._operations import NspLoggingConfigurationOperations # type: ignore
106+
from ._operations import NspLoggingConfigurationsOperations # type: ignore
107+
from ._operations import NspOperationStatusOperations # type: ignore
96108
from ._operations import ReachabilityAnalysisIntentsOperations # type: ignore
97109
from ._operations import ReachabilityAnalysisRunsOperations # type: ignore
98110
from ._operations import VerifierWorkspacesOperations # type: ignore
@@ -246,6 +258,18 @@
246258
"NetworkSecurityGroupsOperations",
247259
"SecurityRulesOperations",
248260
"DefaultSecurityRulesOperations",
261+
"NetworkSecurityPerimetersOperations",
262+
"NspProfilesOperations",
263+
"NspAccessRulesOperations",
264+
"NspAssociationsOperations",
265+
"NspAssociationReconcileOperations",
266+
"PerimeterAssociableResourceTypesOperations",
267+
"NspAccessRulesReconcileOperations",
268+
"NspLinksOperations",
269+
"NspLinkReferencesOperations",
270+
"NspLoggingConfigurationOperations",
271+
"NspLoggingConfigurationsOperations",
272+
"NspOperationStatusOperations",
249273
"ReachabilityAnalysisIntentsOperations",
250274
"ReachabilityAnalysisRunsOperations",
251275
"VerifierWorkspacesOperations",

0 commit comments

Comments
 (0)