Skip to content

Commit 2f1e22a

Browse files
author
SDKAuto
committed
CodeGen from PR 32281 in Azure/azure-rest-api-specs
Merge 1c6f2eca6a0e4c48fd8567e04ca3c4436b7a9956 into bd08745c829484f1bdbce75dee37e30f10ae66e1
1 parent 70470de commit 2f1e22a

File tree

1,068 files changed

+6830
-4722
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,068 files changed

+6830
-4722
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -565,6 +565,8 @@ class NetworkManagementClient(
565565
:param subscription_id: The subscription credentials which uniquely identify the Microsoft
566566
Azure subscription. The subscription ID forms part of the URI for every service call. Required.
567567
:type subscription_id: str
568+
:param base_url: Service URL. Required. Default value is "".
569+
:type base_url: str
568570
:param base_url: Service URL. Default value is "https://management.azure.com".
569571
:type base_url: str
570572
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no
@@ -575,6 +577,7 @@ def __init__(
575577
self,
576578
credential: "TokenCredential",
577579
subscription_id: str,
580+
base_url: str = "",
578581
base_url: str = "https://management.azure.com",
579582
**kwargs: Any
580583
) -> None:

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: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -581,6 +581,8 @@ class NetworkManagementClient(
581581
:param subscription_id: The subscription credentials which uniquely identify the Microsoft
582582
Azure subscription. The subscription ID forms part of the URI for every service call. Required.
583583
:type subscription_id: str
584+
:param base_url: Service URL. Required. Default value is "".
585+
:type base_url: str
584586
:param base_url: Service URL. Default value is "https://management.azure.com".
585587
:type base_url: str
586588
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no
@@ -591,6 +593,7 @@ def __init__(
591593
self,
592594
credential: "AsyncTokenCredential",
593595
subscription_id: str,
596+
base_url: str = "",
594597
base_url: str = "https://management.azure.com",
595598
**kwargs: Any
596599
) -> None:

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

Lines changed: 1366 additions & 948 deletions
Large diffs are not rendered by default.

sdk/network/azure-mgmt-network/azure/mgmt/network/models/__init__.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
AdminRuleCollection,
3131
AdminRuleCollectionListResult,
3232
AdminRuleListResult,
33+
AdvertisedPublicPrefixProperties,
3334
ApplicationGateway,
3435
ApplicationGatewayAuthenticationCertificate,
3536
ApplicationGatewayAutoscaleConfiguration,
@@ -492,8 +493,10 @@
492493
NetworkSecurityGroupResult,
493494
NetworkSecurityRulesEvaluationResult,
494495
NetworkVirtualAppliance,
496+
NetworkVirtualApplianceBootDiagnosticParameters,
495497
NetworkVirtualApplianceConnection,
496498
NetworkVirtualApplianceConnectionList,
499+
NetworkVirtualApplianceInstanceId,
497500
NetworkVirtualApplianceInstanceIds,
498501
NetworkVirtualApplianceListResult,
499502
NetworkVirtualAppliancePropertiesFormatNetworkProfile,
@@ -793,6 +796,7 @@
793796
AddressSpaceAggregationOption,
794797
AdminRuleKind,
795798
AdminState,
799+
AdvertisedPublicPrefixPropertiesValidationState,
796800
ApplicationGatewayBackendHealthServerHealth,
797801
ApplicationGatewayClientRevocationOptions,
798802
ApplicationGatewayCookieBasedAffinity,
@@ -1051,6 +1055,7 @@
10511055
"AdminRuleCollection",
10521056
"AdminRuleCollectionListResult",
10531057
"AdminRuleListResult",
1058+
"AdvertisedPublicPrefixProperties",
10541059
"ApplicationGateway",
10551060
"ApplicationGatewayAuthenticationCertificate",
10561061
"ApplicationGatewayAutoscaleConfiguration",
@@ -1513,8 +1518,10 @@
15131518
"NetworkSecurityGroupResult",
15141519
"NetworkSecurityRulesEvaluationResult",
15151520
"NetworkVirtualAppliance",
1521+
"NetworkVirtualApplianceBootDiagnosticParameters",
15161522
"NetworkVirtualApplianceConnection",
15171523
"NetworkVirtualApplianceConnectionList",
1524+
"NetworkVirtualApplianceInstanceId",
15181525
"NetworkVirtualApplianceInstanceIds",
15191526
"NetworkVirtualApplianceListResult",
15201527
"NetworkVirtualAppliancePropertiesFormatNetworkProfile",
@@ -1811,6 +1818,7 @@
18111818
"AddressSpaceAggregationOption",
18121819
"AdminRuleKind",
18131820
"AdminState",
1821+
"AdvertisedPublicPrefixPropertiesValidationState",
18141822
"ApplicationGatewayBackendHealthServerHealth",
18151823
"ApplicationGatewayClientRevocationOptions",
18161824
"ApplicationGatewayCookieBasedAffinity",

0 commit comments

Comments
 (0)