Skip to content

Commit 5def01a

Browse files
author
SDKAuto
committed
CodeGen from PR 25590 in Azure/azure-rest-api-specs
Merge 5ab1439bde2fb46028c3a8f5ff37e72806acad0d into 9cff12e5e7e09f9f4479de7b626b856da501d665
1 parent 350bab5 commit 5def01a

File tree

717 files changed

+228512
-3573
lines changed

Some content is hidden

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

717 files changed

+228512
-3573
lines changed

sdk/network/azure-mgmt-network/_meta.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
{
2-
"commit": "0baf811c3c76c87b3c127d098519bd97141222dd",
2+
"commit": "d582fb474f135d269768efe17aacfd68ea1fa23e",
33
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
44
"autorest": "3.9.7",
55
"use": [
66
"@autorest/python@6.7.1",
77
"@autorest/modelerfour@4.26.2"
88
],
9-
"autorest_command": "autorest specification/network/resource-manager/readme.md --generate-sample=True --include-x-ms-examples-original-file=True --python --python-sdks-folder=/home/vsts/work/1/azure-sdk-for-python/sdk --use=@autorest/python@6.7.1 --use=@autorest/modelerfour@4.26.2 --version=3.9.7 --version-tolerant=False",
9+
"autorest_command": "autorest specification/network/resource-manager/readme.md --generate-sample=True --include-x-ms-examples-original-file=True --python --python-sdks-folder=/mnt/vss/_work/1/s/azure-sdk-for-python/sdk --use=@autorest/python@6.7.1 --use=@autorest/modelerfour@4.26.2 --version=3.9.7 --version-tolerant=False",
1010
"readme": "specification/network/resource-manager/readme.md",
1111
"package-2023-02": "2023-06-19 07:26:19 +0530 0b4a0a3f4bfc198df608f373784505e42e248c2c Microsoft.Network/stable/2023-02-01/networkVirtualAppliance.json",
1212
"package-2021-02": "2021-09-14 19:30:27 -0700 54f1c87938269d4706629dc04c26ee1f3634585a Microsoft.Network/stable/2021-02-01/privateLinkService.json",
@@ -31,5 +31,6 @@
3131
"package-2018-04": "2019-06-13 02:23:37 +0300 e19543a6a361096e5ca11a42424a39025fd008fa Microsoft.Network/stable/2018-04-01/applicationGateway.json",
3232
"package-2017-10": "2019-06-13 02:23:37 +0300 e19543a6a361096e5ca11a42424a39025fd008fa Microsoft.Network/stable/2017-10-01/applicationGateway.json",
3333
"package-2015-06split": "2019-06-13 02:17:06 +0300 f0f79bfa8191ac30cfb0f87665411769bd2063a6 Microsoft.Network/stable/2015-06-15/virtualNetworkGateway.json",
34-
"package-2023-04": "2023-07-28 12:53:34 -0400 2a4fc9da93229e16716dc34ec5275ed94a918ac4 Microsoft.Network/stable/2023-04-01/applicationGateway.json"
34+
"package-2023-04": "2023-07-28 12:53:34 -0400 2a4fc9da93229e16716dc34ec5275ed94a918ac4 Microsoft.Network/stable/2023-04-01/applicationGateway.json",
35+
"package-2023-05": "2023-08-21 17:49:33 -0400 bcfe02ef3ec205b5e52d927680d5c5f261c20a7a Microsoft.Network/stable/2023-05-01/webapplicationfirewall.json"
3536
}

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

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

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 = "25.0.0"
9+
VERSION = "1.0.0b1"

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

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

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

Lines changed: 1005 additions & 1005 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
@@ -758,6 +758,10 @@
758758
WebApplicationFirewallScrubbingRules,
759759
MigrateLoadBalancerToIpBasedRequest,
760760
MigratedPools,
761+
BastionHostPropertiesFormatNetworkAcls,
762+
IPRule,
763+
VirtualNetworkGatewayAutoScaleBounds,
764+
VirtualNetworkGatewayAutoScaleConfiguration,
761765
)
762766

763767
from ._enums import (
@@ -1759,6 +1763,10 @@
17591763
"WebApplicationFirewallScrubbingRules",
17601764
"MigrateLoadBalancerToIpBasedRequest",
17611765
"MigratedPools",
1766+
"BastionHostPropertiesFormatNetworkAcls",
1767+
"IPRule",
1768+
"VirtualNetworkGatewayAutoScaleBounds",
1769+
"VirtualNetworkGatewayAutoScaleConfiguration",
17621770
"ApplicationGatewayCookieBasedAffinity",
17631771
"ApplicationGatewayOperationalState",
17641772
"ApplicationGatewayProtocol",

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

Lines changed: 146 additions & 1 deletion
Large diffs are not rendered by default.

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

Lines changed: 1616 additions & 1616 deletions
Large diffs are not rendered by default.
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# coding=utf-8
2+
# --------------------------------------------------------------------------
3+
# Copyright (c) Microsoft Corporation. All rights reserved.
4+
# Licensed under the MIT License. See License.txt in the project root for license information.
5+
# Code generated by Microsoft (R) AutoRest Code Generator.
6+
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
7+
# --------------------------------------------------------------------------
8+
9+
from ._network_management_client import NetworkManagementClient
10+
from ._version import VERSION
11+
12+
__version__ = VERSION
13+
14+
try:
15+
from ._patch import __all__ as _patch_all
16+
from ._patch import * # pylint: disable=unused-wildcard-import
17+
except ImportError:
18+
_patch_all = []
19+
from ._patch import patch_sdk as _patch_sdk
20+
21+
__all__ = [
22+
"NetworkManagementClient",
23+
]
24+
__all__.extend([p for p in _patch_all if p not in __all__])
25+
26+
_patch_sdk()
Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
# coding=utf-8
2+
# --------------------------------------------------------------------------
3+
# Copyright (c) Microsoft Corporation. All rights reserved.
4+
# Licensed under the MIT License. See License.txt in the project root for license information.
5+
# Code generated by Microsoft (R) AutoRest Code Generator.
6+
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
7+
# --------------------------------------------------------------------------
8+
9+
from typing import Any, TYPE_CHECKING
10+
11+
from azure.core.configuration import Configuration
12+
from azure.core.pipeline import policies
13+
from azure.mgmt.core.policies import ARMChallengeAuthenticationPolicy, ARMHttpLoggingPolicy
14+
15+
from ._version import VERSION
16+
17+
if TYPE_CHECKING:
18+
# pylint: disable=unused-import,ungrouped-imports
19+
from azure.core.credentials import TokenCredential
20+
21+
22+
class NetworkManagementClientConfiguration(Configuration): # pylint: disable=too-many-instance-attributes
23+
"""Configuration for NetworkManagementClient.
24+
25+
Note that all parameters used to create this instance are saved as instance
26+
attributes.
27+
28+
:param credential: Credential needed for the client to connect to Azure. Required.
29+
:type credential: ~azure.core.credentials.TokenCredential
30+
:param subscription_id: The subscription credentials which uniquely identify the Microsoft
31+
Azure subscription. The subscription ID forms part of the URI for every service call. Required.
32+
:type subscription_id: str
33+
"""
34+
35+
def __init__(self, credential: "TokenCredential", subscription_id: str, **kwargs: Any) -> None:
36+
super(NetworkManagementClientConfiguration, self).__init__(**kwargs)
37+
if credential is None:
38+
raise ValueError("Parameter 'credential' must not be None.")
39+
if subscription_id is None:
40+
raise ValueError("Parameter 'subscription_id' must not be None.")
41+
42+
self.credential = credential
43+
self.subscription_id = subscription_id
44+
self.credential_scopes = kwargs.pop("credential_scopes", ["https://management.azure.com/.default"])
45+
kwargs.setdefault("sdk_moniker", "mgmt-network/{}".format(VERSION))
46+
self._configure(**kwargs)
47+
48+
def _configure(self, **kwargs: Any) -> None:
49+
self.user_agent_policy = kwargs.get("user_agent_policy") or policies.UserAgentPolicy(**kwargs)
50+
self.headers_policy = kwargs.get("headers_policy") or policies.HeadersPolicy(**kwargs)
51+
self.proxy_policy = kwargs.get("proxy_policy") or policies.ProxyPolicy(**kwargs)
52+
self.logging_policy = kwargs.get("logging_policy") or policies.NetworkTraceLoggingPolicy(**kwargs)
53+
self.http_logging_policy = kwargs.get("http_logging_policy") or ARMHttpLoggingPolicy(**kwargs)
54+
self.retry_policy = kwargs.get("retry_policy") or policies.RetryPolicy(**kwargs)
55+
self.custom_hook_policy = kwargs.get("custom_hook_policy") or policies.CustomHookPolicy(**kwargs)
56+
self.redirect_policy = kwargs.get("redirect_policy") or policies.RedirectPolicy(**kwargs)
57+
self.authentication_policy = kwargs.get("authentication_policy")
58+
if self.credential and not self.authentication_policy:
59+
self.authentication_policy = ARMChallengeAuthenticationPolicy(
60+
self.credential, *self.credential_scopes, **kwargs
61+
)

0 commit comments

Comments
 (0)