Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions sdk/network/azure-mgmt-network/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Release History

## 0.0.0 (it should be stable) (2022-10-26)



## 22.0.0 (2022-10-12)

### Features Added
Expand Down
8 changes: 4 additions & 4 deletions sdk/network/azure-mgmt-network/_meta.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"commit": "6bf1d95b79b7ad55011bcc69dc6e887d5e002fa6",
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
"autorest": "3.9.2",
"use": [
"@autorest/python@6.1.9",
"@autorest/python@6.2.1",
"@autorest/modelerfour@4.24.3"
],
"commit": "3bc1226e256cc298617ec2a7da88a5b4f97eba0e",
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
"autorest_command": "autorest specification/network/resource-manager/readme.md --python --python-sdks-folder=/home/vsts/work/1/azure-sdk-for-python/sdk --use=@autorest/python@6.1.9 --use=@autorest/modelerfour@4.24.3 --version=3.9.2 --version-tolerant=False",
"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.2.1 --use=@autorest/modelerfour@4.24.3 --version=3.9.2 --version-tolerant=False",
"readme": "specification/network/resource-manager/readme.md"
}
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,10 @@ class NetworkManagementClient(NetworkManagementClientOperationsMixin, MultiApiCl
'nsp_access_rules_reconcile': '2021-02-01-preview',
'nsp_association_reconcile': '2021-02-01-preview',
'nsp_associations': '2021-02-01-preview',
'nsp_link_reconcile': '2021-02-01-preview',
'nsp_link_reference_reconcile': '2021-02-01-preview',
'nsp_link_references': '2021-02-01-preview',
'nsp_links': '2021-02-01-preview',
'nsp_profiles': '2021-02-01-preview',
'p2_svpn_server_configurations': '2019-07-01',
'perimeter_associable_resource_types': '2021-02-01-preview',
Expand Down Expand Up @@ -5092,6 +5096,62 @@ def nsp_associations(self):
self._config.api_version = api_version
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))

@property
def nsp_link_reconcile(self):
"""Instance depends on the API version:

* 2021-02-01-preview: :class:`NspLinkReconcileOperations<azure.mgmt.network.v2021_02_01_preview.operations.NspLinkReconcileOperations>`
"""
api_version = self._get_api_version('nsp_link_reconcile')
if api_version == '2021-02-01-preview':
from .v2021_02_01_preview.operations import NspLinkReconcileOperations as OperationClass
else:
raise ValueError("API version {} does not have operation group 'nsp_link_reconcile'".format(api_version))
self._config.api_version = api_version
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))

@property
def nsp_link_reference_reconcile(self):
"""Instance depends on the API version:

* 2021-02-01-preview: :class:`NspLinkReferenceReconcileOperations<azure.mgmt.network.v2021_02_01_preview.operations.NspLinkReferenceReconcileOperations>`
"""
api_version = self._get_api_version('nsp_link_reference_reconcile')
if api_version == '2021-02-01-preview':
from .v2021_02_01_preview.operations import NspLinkReferenceReconcileOperations as OperationClass
else:
raise ValueError("API version {} does not have operation group 'nsp_link_reference_reconcile'".format(api_version))
self._config.api_version = api_version
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))

@property
def nsp_link_references(self):
"""Instance depends on the API version:

* 2021-02-01-preview: :class:`NspLinkReferencesOperations<azure.mgmt.network.v2021_02_01_preview.operations.NspLinkReferencesOperations>`
"""
api_version = self._get_api_version('nsp_link_references')
if api_version == '2021-02-01-preview':
from .v2021_02_01_preview.operations import NspLinkReferencesOperations as OperationClass
else:
raise ValueError("API version {} does not have operation group 'nsp_link_references'".format(api_version))
self._config.api_version = api_version
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))

@property
def nsp_links(self):
"""Instance depends on the API version:

* 2021-02-01-preview: :class:`NspLinksOperations<azure.mgmt.network.v2021_02_01_preview.operations.NspLinksOperations>`
"""
api_version = self._get_api_version('nsp_links')
if api_version == '2021-02-01-preview':
from .v2021_02_01_preview.operations import NspLinksOperations as OperationClass
else:
raise ValueError("API version {} does not have operation group 'nsp_links'".format(api_version))
self._config.api_version = api_version
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))

@property
def nsp_profiles(self):
"""Instance depends on the API version:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
# license information.
# --------------------------------------------------------------------------

VERSION = "22.0.0"
VERSION = "0.0.0 (it should be stable)"
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,10 @@ class NetworkManagementClient(NetworkManagementClientOperationsMixin, MultiApiCl
'nsp_access_rules_reconcile': '2021-02-01-preview',
'nsp_association_reconcile': '2021-02-01-preview',
'nsp_associations': '2021-02-01-preview',
'nsp_link_reconcile': '2021-02-01-preview',
'nsp_link_reference_reconcile': '2021-02-01-preview',
'nsp_link_references': '2021-02-01-preview',
'nsp_links': '2021-02-01-preview',
'nsp_profiles': '2021-02-01-preview',
'p2_svpn_server_configurations': '2019-07-01',
'perimeter_associable_resource_types': '2021-02-01-preview',
Expand Down Expand Up @@ -5092,6 +5096,62 @@ def nsp_associations(self):
self._config.api_version = api_version
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))

@property
def nsp_link_reconcile(self):
"""Instance depends on the API version:

* 2021-02-01-preview: :class:`NspLinkReconcileOperations<azure.mgmt.network.v2021_02_01_preview.aio.operations.NspLinkReconcileOperations>`
"""
api_version = self._get_api_version('nsp_link_reconcile')
if api_version == '2021-02-01-preview':
from ..v2021_02_01_preview.aio.operations import NspLinkReconcileOperations as OperationClass
else:
raise ValueError("API version {} does not have operation group 'nsp_link_reconcile'".format(api_version))
self._config.api_version = api_version
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))

@property
def nsp_link_reference_reconcile(self):
"""Instance depends on the API version:

* 2021-02-01-preview: :class:`NspLinkReferenceReconcileOperations<azure.mgmt.network.v2021_02_01_preview.aio.operations.NspLinkReferenceReconcileOperations>`
"""
api_version = self._get_api_version('nsp_link_reference_reconcile')
if api_version == '2021-02-01-preview':
from ..v2021_02_01_preview.aio.operations import NspLinkReferenceReconcileOperations as OperationClass
else:
raise ValueError("API version {} does not have operation group 'nsp_link_reference_reconcile'".format(api_version))
self._config.api_version = api_version
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))

@property
def nsp_link_references(self):
"""Instance depends on the API version:

* 2021-02-01-preview: :class:`NspLinkReferencesOperations<azure.mgmt.network.v2021_02_01_preview.aio.operations.NspLinkReferencesOperations>`
"""
api_version = self._get_api_version('nsp_link_references')
if api_version == '2021-02-01-preview':
from ..v2021_02_01_preview.aio.operations import NspLinkReferencesOperations as OperationClass
else:
raise ValueError("API version {} does not have operation group 'nsp_link_references'".format(api_version))
self._config.api_version = api_version
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))

@property
def nsp_links(self):
"""Instance depends on the API version:

* 2021-02-01-preview: :class:`NspLinksOperations<azure.mgmt.network.v2021_02_01_preview.aio.operations.NspLinksOperations>`
"""
api_version = self._get_api_version('nsp_links')
if api_version == '2021-02-01-preview':
from ..v2021_02_01_preview.aio.operations import NspLinksOperations as OperationClass
else:
raise ValueError("API version {} does not have operation group 'nsp_links'".format(api_version))
self._config.api_version = api_version
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))

@property
def nsp_profiles(self):
"""Instance depends on the API version:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@
_patch_all = []
from ._patch import patch_sdk as _patch_sdk

__all__ = ["NetworkManagementClient"]
__all__ = [
"NetworkManagementClient",
]
__all__.extend([p for p in _patch_all if p not in __all__])

_patch_sdk()
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

import sys
from typing import Any, TYPE_CHECKING

from azure.core.configuration import Configuration
Expand All @@ -14,6 +15,11 @@

from ._version import VERSION

if sys.version_info >= (3, 8):
from typing import Literal # pylint: disable=no-name-in-module, ungrouped-imports
else:
from typing_extensions import Literal # type: ignore # pylint: disable=ungrouped-imports

if TYPE_CHECKING:
# pylint: disable=unused-import,ungrouped-imports
from azure.core.credentials import TokenCredential
Expand All @@ -37,7 +43,7 @@ class NetworkManagementClientConfiguration(Configuration): # pylint: disable=to

def __init__(self, credential: "TokenCredential", subscription_id: str, **kwargs: Any) -> None:
super(NetworkManagementClientConfiguration, self).__init__(**kwargs)
api_version = kwargs.pop("api_version", "2015-06-15") # type: str
api_version = kwargs.pop("api_version", "2015-06-15") # type: Literal["2015-06-15"]

if credential is None:
raise ValueError("Parameter 'credential' must not be None.")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -135,4 +135,4 @@
}
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def _format_url_section(template, **kwargs):
template = "/".join(components)


class MixinABC(ABC):
class NetworkManagementClientMixinABC(ABC):
"""DO NOT use this class. It is for internal typing use only."""

_client: "PipelineClient"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

VERSION = "22.0.0"
VERSION = "0.0.0 (it should be stable)"
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@
_patch_all = []
from ._patch import patch_sdk as _patch_sdk

__all__ = ["NetworkManagementClient"]
__all__ = [
"NetworkManagementClient",
]
__all__.extend([p for p in _patch_all if p not in __all__])

_patch_sdk()
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

import sys
from typing import Any, TYPE_CHECKING

from azure.core.configuration import Configuration
Expand All @@ -14,6 +15,11 @@

from .._version import VERSION

if sys.version_info >= (3, 8):
from typing import Literal # pylint: disable=no-name-in-module, ungrouped-imports
else:
from typing_extensions import Literal # type: ignore # pylint: disable=ungrouped-imports

if TYPE_CHECKING:
# pylint: disable=unused-import,ungrouped-imports
from azure.core.credentials_async import AsyncTokenCredential
Expand All @@ -37,7 +43,7 @@ class NetworkManagementClientConfiguration(Configuration): # pylint: disable=to

def __init__(self, credential: "AsyncTokenCredential", subscription_id: str, **kwargs: Any) -> None:
super(NetworkManagementClientConfiguration, self).__init__(**kwargs)
api_version = kwargs.pop("api_version", "2015-06-15") # type: str
api_version = kwargs.pop("api_version", "2015-06-15") # type: Literal["2015-06-15"]

if credential is None:
raise ValueError("Parameter 'credential' must not be None.")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
from ..._serialization import Deserializer, Serializer


class MixinABC(ABC):
class NetworkManagementClientMixinABC(ABC):
"""DO NOT use this class. It is for internal typing use only."""

_client: "AsyncPipelineClient"
Expand Down
Loading