9
9
# regenerated.
10
10
# --------------------------------------------------------------------------
11
11
12
- from typing import TYPE_CHECKING
13
-
14
- from msrest import Deserializer, Serializer
12
+ from typing import Any, Optional, TYPE_CHECKING
15
13
16
14
from azure.mgmt.core import ARMPipelineClient
17
15
from azure.profiles import KnownProfiles, ProfileDefinition
18
16
from azure.profiles.multiapiclient import MultiApiClientMixin
19
17
20
18
from ._configuration import NetworkManagementClientConfiguration
21
19
from ._operations_mixin import NetworkManagementClientOperationsMixin
20
+ from ._serialization import Deserializer, Serializer
22
21
23
22
if TYPE_CHECKING:
24
23
# pylint: disable=unused-import,ungrouped-imports
25
- from typing import Any, Optional
26
-
27
24
from azure.core.credentials import TokenCredential
28
25
29
26
class _SDKClient(object):
@@ -44,9 +41,9 @@ class NetworkManagementClient(NetworkManagementClientOperationsMixin, MultiApiCl
44
41
The api-version parameter sets the default API version if the operation
45
42
group is not described in the profile.
46
43
47
- :param credential: Credential needed for the client to connect to Azure.
44
+ :param credential: Credential needed for the client to connect to Azure. Required.
48
45
:type credential: ~azure.core.credentials.TokenCredential
49
- :param subscription_id: The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.
46
+ :param subscription_id: The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. Required.
50
47
:type subscription_id: str
51
48
:param api_version: API version to use if no profile is provided, or if missing in profile.
52
49
:type api_version: str
@@ -73,8 +70,8 @@ class NetworkManagementClient(NetworkManagementClientOperationsMixin, MultiApiCl
73
70
'network_security_perimeters': '2021-02-01-preview',
74
71
'nsp_access_rules': '2021-02-01-preview',
75
72
'nsp_access_rules_reconcile': '2021-02-01-preview',
73
+ 'nsp_association_reconcile': '2021-02-01-preview',
76
74
'nsp_associations': '2021-02-01-preview',
77
- 'nsp_associations_proxy': '2021-02-01-preview',
78
75
'nsp_profiles': '2021-02-01-preview',
79
76
'p2_svpn_server_configurations': '2019-07-01',
80
77
'perimeter_associable_resource_types': '2021-02-01-preview',
@@ -87,10 +84,10 @@ class NetworkManagementClient(NetworkManagementClientOperationsMixin, MultiApiCl
87
84
88
85
def __init__(
89
86
self,
90
- credential, # type : "TokenCredential"
91
- subscription_id, # type : str
87
+ credential: "TokenCredential",
88
+ subscription_id: str,
92
89
api_version=None, # type: Optional[str]
93
- base_url= "https://management.azure.com", # type: str
90
+ base_url: str = "https://management.azure.com",
94
91
profile=KnownProfiles.default, # type: KnownProfiles
95
92
**kwargs # type: Any
96
93
):
@@ -4957,29 +4954,29 @@ def nsp_access_rules_reconcile(self):
4957
4954
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
4958
4955
4959
4956
@property
4960
- def nsp_associations (self):
4957
+ def nsp_association_reconcile (self):
4961
4958
"""Instance depends on the API version:
4962
4959
4963
- * 2021-02-01-preview: :class:`NspAssociationsOperations <azure.mgmt.network.v2021_02_01_preview.operations.NspAssociationsOperations >`
4960
+ * 2021-02-01-preview: :class:`NspAssociationReconcileOperations <azure.mgmt.network.v2021_02_01_preview.operations.NspAssociationReconcileOperations >`
4964
4961
"""
4965
- api_version = self._get_api_version('nsp_associations ')
4962
+ api_version = self._get_api_version('nsp_association_reconcile ')
4966
4963
if api_version == '2021-02-01-preview':
4967
- from .v2021_02_01_preview.operations import NspAssociationsOperations as OperationClass
4964
+ from .v2021_02_01_preview.operations import NspAssociationReconcileOperations as OperationClass
4968
4965
else:
4969
- raise ValueError("API version {} does not have operation group 'nsp_associations '".format(api_version))
4966
+ raise ValueError("API version {} does not have operation group 'nsp_association_reconcile '".format(api_version))
4970
4967
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
4971
4968
4972
4969
@property
4973
- def nsp_associations_proxy (self):
4970
+ def nsp_associations (self):
4974
4971
"""Instance depends on the API version:
4975
4972
4976
- * 2021-02-01-preview: :class:`NspAssociationsProxyOperations <azure.mgmt.network.v2021_02_01_preview.operations.NspAssociationsProxyOperations >`
4973
+ * 2021-02-01-preview: :class:`NspAssociationsOperations <azure.mgmt.network.v2021_02_01_preview.operations.NspAssociationsOperations >`
4977
4974
"""
4978
- api_version = self._get_api_version('nsp_associations_proxy ')
4975
+ api_version = self._get_api_version('nsp_associations ')
4979
4976
if api_version == '2021-02-01-preview':
4980
- from .v2021_02_01_preview.operations import NspAssociationsProxyOperations as OperationClass
4977
+ from .v2021_02_01_preview.operations import NspAssociationsOperations as OperationClass
4981
4978
else:
4982
- raise ValueError("API version {} does not have operation group 'nsp_associations_proxy '".format(api_version))
4979
+ raise ValueError("API version {} does not have operation group 'nsp_associations '".format(api_version))
4983
4980
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
4984
4981
4985
4982
@property
0 commit comments