Skip to content

Commit c15aebc

Browse files
author
SDKAuto
committed
CodeGen from PR 18531 in Azure/azure-rest-api-specs
Merge 03ebf212840a798aca17b589028a76fa8e8a82f4 into e7d2d8c48cf6f8f63de7e252c467930449b5fd88
1 parent de2b0fe commit c15aebc

File tree

5,126 files changed

+1325175
-1399781
lines changed

Some content is hidden

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

5,126 files changed

+1325175
-1399781
lines changed
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
2-
"autorest": "3.4.5",
2+
"autorest": "3.7.2",
33
"use": [
4-
"@autorest/python@5.8.4",
5-
"@autorest/modelerfour@4.19.2"
4+
"@autorest/python@5.12.0",
5+
"@autorest/modelerfour@4.19.3"
66
],
7-
"commit": "200370117556209695877b7631afa7d6c100c356",
7+
"commit": "f6209634a2390a05c953f2d6c01d2e0e25dd57db",
88
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
9-
"autorest_command": "autorest specification/network/resource-manager/readme.md --multiapi --python --python-mode=update --python-sdks-folder=/home/vsts/work/1/s/azure-sdk-for-python/sdk --track2 --use=@autorest/python@5.8.4 --use=@autorest/modelerfour@4.19.2 --version=3.4.5",
9+
"autorest_command": "autorest specification/network/resource-manager/readme.md --multiapi --python --python-sdks-folder=/mnt/vss/_work/1/s/azure-sdk-for-python/sdk --python3-only --use=@autorest/python@5.12.0 --use=@autorest/modelerfour@4.19.3 --version=3.7.2",
1010
"readme": "specification/network/resource-manager/readme.md"
1111
}

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
from azure.core.configuration import Configuration
1414
from azure.core.pipeline import policies
15-
from azure.mgmt.core.policies import ARMHttpLoggingPolicy
15+
from azure.mgmt.core.policies import ARMChallengeAuthenticationPolicy, ARMHttpLoggingPolicy
1616

1717
from ._version import VERSION
1818

@@ -68,4 +68,4 @@ def _configure(
6868
self.redirect_policy = kwargs.get('redirect_policy') or policies.RedirectPolicy(**kwargs)
6969
self.authentication_policy = kwargs.get('authentication_policy')
7070
if self.credential and not self.authentication_policy:
71-
self.authentication_policy = policies.BearerTokenCredentialPolicy(self.credential, *self.credential_scopes, **kwargs)
71+
self.authentication_policy = ARMChallengeAuthenticationPolicy(self.credential, *self.credential_scopes, **kwargs)

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

Lines changed: 71 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
from typing import Any, Optional
2525

2626
from azure.core.credentials import TokenCredential
27-
from azure.core.pipeline.transport import HttpRequest, HttpResponse
2827

2928
class _SDKClient(object):
3029
def __init__(self, *args, **kwargs):
@@ -78,6 +77,11 @@ class NetworkManagementClient(NetworkManagementClientOperationsMixin, MultiApiCl
7877
'network_manager_effective_security_admin_rules': '2021-02-01-preview',
7978
'network_managers': '2021-02-01-preview',
8079
'network_security_perimeters': '2021-02-01-preview',
80+
'nsp_access_rules': '2021-02-01-preview',
81+
'nsp_access_rules_reconcile': '2021-02-01-preview',
82+
'nsp_associations': '2021-02-01-preview',
83+
'nsp_associations_proxy': '2021-02-01-preview',
84+
'nsp_profiles': '2021-02-01-preview',
8185
'p2_svpn_server_configurations': '2019-07-01',
8286
'perimeter_associable_resource_types': '2021-02-01-preview',
8387
'security_admin_configurations': '2021-02-01-preview',
@@ -93,12 +97,10 @@ def __init__(
9397
credential, # type: "TokenCredential"
9498
subscription_id, # type: str
9599
api_version=None, # type: Optional[str]
96-
base_url=None, # type: Optional[str]
100+
base_url="https://management.azure.com", # type: str
97101
profile=KnownProfiles.default, # type: KnownProfiles
98102
**kwargs # type: Any
99103
):
100-
if not base_url:
101-
base_url = 'https://management.azure.com'
102104
self._config = NetworkManagementClientConfiguration(credential, subscription_id, **kwargs)
103105
self._client = ARMPipelineClient(base_url=base_url, config=self._config, **kwargs)
104106
super(NetworkManagementClient, self).__init__(
@@ -4862,6 +4864,71 @@ def network_watchers(self):
48624864
raise ValueError("API version {} does not have operation group 'network_watchers'".format(api_version))
48634865
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
48644866

4867+
@property
4868+
def nsp_access_rules(self):
4869+
"""Instance depends on the API version:
4870+
4871+
* 2021-02-01-preview: :class:`NspAccessRulesOperations<azure.mgmt.network.v2021_02_01_preview.operations.NspAccessRulesOperations>`
4872+
"""
4873+
api_version = self._get_api_version('nsp_access_rules')
4874+
if api_version == '2021-02-01-preview':
4875+
from .v2021_02_01_preview.operations import NspAccessRulesOperations as OperationClass
4876+
else:
4877+
raise ValueError("API version {} does not have operation group 'nsp_access_rules'".format(api_version))
4878+
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
4879+
4880+
@property
4881+
def nsp_access_rules_reconcile(self):
4882+
"""Instance depends on the API version:
4883+
4884+
* 2021-02-01-preview: :class:`NspAccessRulesReconcileOperations<azure.mgmt.network.v2021_02_01_preview.operations.NspAccessRulesReconcileOperations>`
4885+
"""
4886+
api_version = self._get_api_version('nsp_access_rules_reconcile')
4887+
if api_version == '2021-02-01-preview':
4888+
from .v2021_02_01_preview.operations import NspAccessRulesReconcileOperations as OperationClass
4889+
else:
4890+
raise ValueError("API version {} does not have operation group 'nsp_access_rules_reconcile'".format(api_version))
4891+
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
4892+
4893+
@property
4894+
def nsp_associations(self):
4895+
"""Instance depends on the API version:
4896+
4897+
* 2021-02-01-preview: :class:`NspAssociationsOperations<azure.mgmt.network.v2021_02_01_preview.operations.NspAssociationsOperations>`
4898+
"""
4899+
api_version = self._get_api_version('nsp_associations')
4900+
if api_version == '2021-02-01-preview':
4901+
from .v2021_02_01_preview.operations import NspAssociationsOperations as OperationClass
4902+
else:
4903+
raise ValueError("API version {} does not have operation group 'nsp_associations'".format(api_version))
4904+
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
4905+
4906+
@property
4907+
def nsp_associations_proxy(self):
4908+
"""Instance depends on the API version:
4909+
4910+
* 2021-02-01-preview: :class:`NspAssociationsProxyOperations<azure.mgmt.network.v2021_02_01_preview.operations.NspAssociationsProxyOperations>`
4911+
"""
4912+
api_version = self._get_api_version('nsp_associations_proxy')
4913+
if api_version == '2021-02-01-preview':
4914+
from .v2021_02_01_preview.operations import NspAssociationsProxyOperations as OperationClass
4915+
else:
4916+
raise ValueError("API version {} does not have operation group 'nsp_associations_proxy'".format(api_version))
4917+
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
4918+
4919+
@property
4920+
def nsp_profiles(self):
4921+
"""Instance depends on the API version:
4922+
4923+
* 2021-02-01-preview: :class:`NspProfilesOperations<azure.mgmt.network.v2021_02_01_preview.operations.NspProfilesOperations>`
4924+
"""
4925+
api_version = self._get_api_version('nsp_profiles')
4926+
if api_version == '2021-02-01-preview':
4927+
from .v2021_02_01_preview.operations import NspProfilesOperations as OperationClass
4928+
else:
4929+
raise ValueError("API version {} does not have operation group 'nsp_profiles'".format(api_version))
4930+
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
4931+
48654932
@property
48664933
def operations(self):
48674934
"""Instance depends on the API version:

0 commit comments

Comments
 (0)