Skip to content

Commit 23319fa

Browse files
author
SDKAuto
committed
CodeGen from PR 32358 in Azure/azure-rest-api-specs
Merge b6aecc2a6a253e1f5beeea610c5b7a563d5ace3d into 1d34cf7c61a966e2f756217c2fe0dc95fcd5f3b7
1 parent f0ff4e1 commit 23319fa

File tree

1,066 files changed

+6911
-5305
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,066 files changed

+6911
-5305
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: 1362 additions & 1176 deletions
Large diffs are not rendered by default.

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

Lines changed: 16 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,
@@ -201,6 +202,7 @@
201202
ConnectionSharedKeyResult,
202203
ConnectionSharedKeyResultList,
203204
ConnectionStateSnapshot,
205+
ConnectivityCapabilitiesItem,
204206
ConnectivityConfiguration,
205207
ConnectivityConfigurationListResult,
206208
ConnectivityDestination,
@@ -492,8 +494,10 @@
492494
NetworkSecurityGroupResult,
493495
NetworkSecurityRulesEvaluationResult,
494496
NetworkVirtualAppliance,
497+
NetworkVirtualApplianceBootDiagnosticParameters,
495498
NetworkVirtualApplianceConnection,
496499
NetworkVirtualApplianceConnectionList,
500+
NetworkVirtualApplianceInstanceId,
497501
NetworkVirtualApplianceInstanceIds,
498502
NetworkVirtualApplianceListResult,
499503
NetworkVirtualAppliancePropertiesFormatNetworkProfile,
@@ -793,6 +797,7 @@
793797
AddressSpaceAggregationOption,
794798
AdminRuleKind,
795799
AdminState,
800+
AdvertisedPublicPrefixPropertiesValidationState,
796801
ApplicationGatewayBackendHealthServerHealth,
797802
ApplicationGatewayClientRevocationOptions,
798803
ApplicationGatewayCookieBasedAffinity,
@@ -835,6 +840,8 @@
835840
CircuitConnectionStatus,
836841
CommissionedState,
837842
ConfigurationType,
843+
ConnectedGroupAddressOverlap,
844+
ConnectedGroupPrivateEndpointScale,
838845
ConnectionMonitorEndpointFilterItemType,
839846
ConnectionMonitorEndpointFilterType,
840847
ConnectionMonitorSourceStatus,
@@ -947,6 +954,7 @@
947954
PcError,
948955
PcProtocol,
949956
PcStatus,
957+
PeeringEnforcement,
950958
PfsGroup,
951959
PreferredIPVersion,
952960
PreferredRoutingGateway,
@@ -1051,6 +1059,7 @@
10511059
"AdminRuleCollection",
10521060
"AdminRuleCollectionListResult",
10531061
"AdminRuleListResult",
1062+
"AdvertisedPublicPrefixProperties",
10541063
"ApplicationGateway",
10551064
"ApplicationGatewayAuthenticationCertificate",
10561065
"ApplicationGatewayAutoscaleConfiguration",
@@ -1222,6 +1231,7 @@
12221231
"ConnectionSharedKeyResult",
12231232
"ConnectionSharedKeyResultList",
12241233
"ConnectionStateSnapshot",
1234+
"ConnectivityCapabilitiesItem",
12251235
"ConnectivityConfiguration",
12261236
"ConnectivityConfigurationListResult",
12271237
"ConnectivityDestination",
@@ -1513,8 +1523,10 @@
15131523
"NetworkSecurityGroupResult",
15141524
"NetworkSecurityRulesEvaluationResult",
15151525
"NetworkVirtualAppliance",
1526+
"NetworkVirtualApplianceBootDiagnosticParameters",
15161527
"NetworkVirtualApplianceConnection",
15171528
"NetworkVirtualApplianceConnectionList",
1529+
"NetworkVirtualApplianceInstanceId",
15181530
"NetworkVirtualApplianceInstanceIds",
15191531
"NetworkVirtualApplianceListResult",
15201532
"NetworkVirtualAppliancePropertiesFormatNetworkProfile",
@@ -1811,6 +1823,7 @@
18111823
"AddressSpaceAggregationOption",
18121824
"AdminRuleKind",
18131825
"AdminState",
1826+
"AdvertisedPublicPrefixPropertiesValidationState",
18141827
"ApplicationGatewayBackendHealthServerHealth",
18151828
"ApplicationGatewayClientRevocationOptions",
18161829
"ApplicationGatewayCookieBasedAffinity",
@@ -1853,6 +1866,8 @@
18531866
"CircuitConnectionStatus",
18541867
"CommissionedState",
18551868
"ConfigurationType",
1869+
"ConnectedGroupAddressOverlap",
1870+
"ConnectedGroupPrivateEndpointScale",
18561871
"ConnectionMonitorEndpointFilterItemType",
18571872
"ConnectionMonitorEndpointFilterType",
18581873
"ConnectionMonitorSourceStatus",
@@ -1965,6 +1980,7 @@
19651980
"PcError",
19661981
"PcProtocol",
19671982
"PcStatus",
1983+
"PeeringEnforcement",
19681984
"PfsGroup",
19691985
"PreferredIPVersion",
19701986
"PreferredRoutingGateway",

0 commit comments

Comments
 (0)