Skip to content

Commit

Permalink
CodeGen from PR 21040 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
[Hub Generated] Review request for Microsoft.Network to add version preview/2021-02-01-preview (Azure#21040)

* NSP Link API changes

* minor fix

* fix errors

* fix error

* fix error

* fix lint error

* skip location from proxy resource

* fix sdk error

* fix linter check

* immutability flag changes

* removed v2 properties.

* minor fix

* removed default value as it is not supported by swagger

* make outbound profile read only

* minor change

* add x-ms-long-running-operation-options

* Fix review comments

* minor fix
  • Loading branch information
SDKAuto committed Oct 17, 2022
1 parent 0e104a6 commit 5845a21
Show file tree
Hide file tree
Showing 52 changed files with 7,627 additions and 3,357 deletions.
6 changes: 3 additions & 3 deletions sdk/network/azure-mgmt-network/_meta.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"autorest": "3.9.2",
"use": [
"@autorest/python@6.1.9",
"@autorest/python@6.1.11",
"@autorest/modelerfour@4.24.3"
],
"commit": "3bc1226e256cc298617ec2a7da88a5b4f97eba0e",
"commit": "facb3531d9e7c5ff7d47de5890d05277f685cd64",
"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 --python --python-sdks-folder=/mnt/vss/_work/1/s/azure-sdk-for-python/sdk --use=@autorest/python@6.1.11 --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 @@ -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 @@ -6,4 +6,4 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

VERSION = "22.0.0"
VERSION = "1.0.0b1"
Loading

0 comments on commit 5845a21

Please sign in to comment.