Skip to content

Commit be5ea0b

Browse files
author
SDKAuto
committed
CodeGen from PR 32156 in Azure/azure-rest-api-specs
Merge 4a9b52a53c300195b549dbe32a018331ec950724 into 7bc0f31bd47a5b9133dd71691146c8e97e00e96c
1 parent 5c6c44a commit be5ea0b

File tree

7 files changed

+187
-13
lines changed

7 files changed

+187
-13
lines changed

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/models/__init__.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -435,6 +435,7 @@
435435
LocalNetworkGateway,
436436
LocalNetworkGatewayListResult,
437437
LogSpecification,
438+
ManagedIdentityInfo,
438439
ManagedRuleGroupOverride,
439440
ManagedRuleOverride,
440441
ManagedRuleSet,
@@ -531,6 +532,7 @@
531532
PacketCaptureResultProperties,
532533
PacketCaptureSettings,
533534
PacketCaptureStorageLocation,
535+
PacketCaptureStorageSettings,
534536
Parameter,
535537
PartnerManagedResourceProperties,
536538
PatchObject,
@@ -659,6 +661,7 @@
659661
StaticMemberListResult,
660662
StaticRoute,
661663
StaticRoutesConfig,
664+
StorageAuthentication,
662665
SubResource,
663666
Subnet,
664667
SubnetAssociation,
@@ -1456,6 +1459,7 @@
14561459
"LocalNetworkGateway",
14571460
"LocalNetworkGatewayListResult",
14581461
"LogSpecification",
1462+
"ManagedIdentityInfo",
14591463
"ManagedRuleGroupOverride",
14601464
"ManagedRuleOverride",
14611465
"ManagedRuleSet",
@@ -1552,6 +1556,7 @@
15521556
"PacketCaptureResultProperties",
15531557
"PacketCaptureSettings",
15541558
"PacketCaptureStorageLocation",
1559+
"PacketCaptureStorageSettings",
15551560
"Parameter",
15561561
"PartnerManagedResourceProperties",
15571562
"PatchObject",
@@ -1680,6 +1685,7 @@
16801685
"StaticMemberListResult",
16811686
"StaticRoute",
16821687
"StaticRoutesConfig",
1688+
"StorageAuthentication",
16831689
"SubResource",
16841690
"Subnet",
16851691
"SubnetAssociation",

0 commit comments

Comments
 (0)