Skip to content

Commit

Permalink
CodeGen from PR 19412 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Mitryakh/network 2022 01 01 (Azure#19412)

* Adds base for updating Microsoft.Network from version stable/2021-08-01 to version 2022-01-01

* Updates readme

* Updates API version in new specs and examples

* Updated Explicit proxy settings by adding one boolean field to it (Azure#19011)

* API for provider port (Azure#19041)

* Update readme.md

* Create expressRouteProviderPort.json

* Create expressRouteProviderPortList.json

* Create expressRouteProviderPort.json

* Update custom-words.txt

* Update expressRouteProviderPort.json

* Update expressRouteProviderPortList.json

* Update expressRouteProviderPort.json

* Add WAF match variable operators (Azure#18925)

### webapplicationfirewall.json
* Add GreaterThanOrEquals operator and Any operator to custom rule
  match conditions in WAF policy spec

* Add VirtualHub Router autoscale configuration (Azure#19131)

Co-authored-by: Andrii Kalinichenko <[email protected]>

* Adding rule priority to Tls Proxy routing rule object model (Azure#19135)

Co-authored-by: Vinay Mundada <[email protected]>

* swagger changes for new ssl policies (Azure#19183)

* Update Swagger Spec for VMSS Packet Capture (Azure#19202)

* Update Swagger Spec for VMSS Packet Capture

* Remove extra line

* Update Swagger spec for Connection Monitor VMSS (Azure#19203)

* Adding new endpoint in ConnectionMonitor

* Changing ConnectionMonitor endpoints order

* Add flushConnection to NSG (Azure#19085)

* Merge NetworkManger into 2022-01-01 (Azure#19169)

* Merge NetworkManger into 2022-01-01

* Remove EffectiveVnet APIs

* Remove SecurityUser Resource

* update readme

* Fix as comments

* fix as comments

* remove network group type

* Add new parameter noInternetAdvertise to CustomIPPrefix (Azure#19340)

* fix

* fix

Co-authored-by: Weiheng Li <[email protected]>

* Route Server Integration feature swagger changes (Azure#19215)

* Route Server Integration feature swagger changes

* prettier run changes

* updating api version in examples file

* fixing test errors

* fixing test errors

* fixing modelvalidation errors

* fixing test errors

* fixing modelvalidation errors

* changes based on review comments

* fixing lintdiff failure

* updating examples

* update wrong enum value for customipprefix (Azure#19382)

* fix

* fix

* fix

Co-authored-by: Weiheng Li <[email protected]>

* Updated ExplicitProxySettings to ExplicitProxy on Firewall Policy ver2022-01-01 (Azure#19299)

Co-authored-by: Gizachew Eshetie <[email protected]>

* Add resource type (Azure#19434)

Co-authored-by: Andrii Kalinichenko <[email protected]>

* Fix prettier errors (Azure#19462)

Co-authored-by: Andrii Kalinichenko <[email protected]>

Co-authored-by: uditmisra52 <[email protected]>
Co-authored-by: jashsing-mic <[email protected]>
Co-authored-by: Anurag Kishore <[email protected]>
Co-authored-by: AndriiKalinichenko <[email protected]>
Co-authored-by: Andrii Kalinichenko <[email protected]>
Co-authored-by: Vinay Jayant Mundada <[email protected]>
Co-authored-by: Vinay Mundada <[email protected]>
Co-authored-by: kaushik-ms <[email protected]>
Co-authored-by: snagpal99 <[email protected]>
Co-authored-by: kumaam <[email protected]>
Co-authored-by: Satya-anshu <[email protected]>
Co-authored-by: yanfa317 <[email protected]>
Co-authored-by: Weiheng Li <[email protected]>
Co-authored-by: Weiheng Li <[email protected]>
Co-authored-by: Anchal Kapoor <[email protected]>
Co-authored-by: Gizachew-Eshetie <[email protected]>
Co-authored-by: Gizachew Eshetie <[email protected]>
  • Loading branch information
18 people committed Jun 23, 2022
1 parent 92291c9 commit 271f23e
Show file tree
Hide file tree
Showing 599 changed files with 670,787 additions and 431,005 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.7.2",
"use": [
"@autorest/python@5.13.0",
"@autorest/python@5.16.0",
"@autorest/[email protected]"
],
"commit": "0baca05c851c1749e92beb0d2134cd958827dd54",
"commit": "61e9487f7f04bd8efde07819f723dd502a57f229",
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
"autorest_command": "autorest specification/network/resource-manager/readme.md --multiapi --python --python-sdks-folder=/home/vsts/work/1/azure-sdk-for-python/sdk --python3-only --use=@autorest/python@5.13.0 --use=@autorest/[email protected] --version=3.7.2",
"autorest_command": "autorest specification/network/resource-manager/readme.md --python --python-sdks-folder=/mnt/vss/_work/1/s/azure-sdk-for-python/sdk --python3-only --use=@autorest/python@5.16.0 --use=@autorest/[email protected] --version=3.7.2",
"readme": "specification/network/resource-manager/readme.md"
}
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,9 @@ class NetworkManagementClient(NetworkManagementClientOperationsMixin, MultiApiCl
'network_managers': '2021-02-01-preview',
'network_security_perimeters': '2021-02-01-preview',
'nsp_access_rules': '2021-02-01-preview',
'nsp_access_rules_reconcile': '2021-02-01-preview',
'nsp_associations': '2021-02-01-preview',
'nsp_associations_proxy': '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 @@ -4902,6 +4904,19 @@ def nsp_access_rules(self):
raise ValueError("API version {} does not have operation group 'nsp_access_rules'".format(api_version))
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))

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

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

@property
def nsp_associations(self):
"""Instance depends on the API version:
Expand All @@ -4915,6 +4930,19 @@ def nsp_associations(self):
raise ValueError("API version {} does not have operation group 'nsp_associations'".format(api_version))
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))

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

* 2021-02-01-preview: :class:`NspAssociationsProxyOperations<azure.mgmt.network.v2021_02_01_preview.operations.NspAssociationsProxyOperations>`
"""
api_version = self._get_api_version('nsp_associations_proxy')
if api_version == '2021-02-01-preview':
from .v2021_02_01_preview.operations import NspAssociationsProxyOperations as OperationClass
else:
raise ValueError("API version {} does not have operation group 'nsp_associations_proxy'".format(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 @@ -11,6 +11,8 @@
from msrest import Serializer, Deserializer
from typing import TYPE_CHECKING

from . import models as _models

if TYPE_CHECKING:
# pylint: disable=unused-import,ungrouped-imports
from typing import Any, Iterable, Optional
Expand All @@ -25,7 +27,7 @@ def begin_delete_bastion_shareable_link( # pylint: disable=inconsistent-return-
self,
resource_group_name, # type: str
bastion_host_name, # type: str
bsl_request, # type: "_models.BastionShareableLinkListRequest"
bsl_request, # type: _models.BastionShareableLinkListRequest
**kwargs # type: Any
):
# type: (...) -> LROPoller[None]
Expand All @@ -37,9 +39,6 @@ def begin_delete_bastion_shareable_link( # pylint: disable=inconsistent-return-
:type bastion_host_name: str
:param bsl_request: Post request for all the Bastion Shareable Link endpoints.
:type bsl_request: ~azure.mgmt.network.v2021_08_01.models.BastionShareableLinkListRequest
:keyword api_version: Api Version. Default value is "2021-08-01". Note that overriding this
default value may result in unsupported behavior.
:paramtype api_version: str
:keyword callable cls: A custom type or function that will be passed the direct response
:keyword str continuation_token: A continuation token to restart a poller from a saved state.
:keyword polling: By default, your polling method will be ARMPolling. Pass in False for this
Expand Down Expand Up @@ -91,10 +90,10 @@ def begin_generatevirtualwanvpnserverconfigurationvpnprofile(
self,
resource_group_name, # type: str
virtual_wan_name, # type: str
vpn_client_params, # type: "_models.VirtualWanVpnProfileParameters"
vpn_client_params, # type: _models.VirtualWanVpnProfileParameters
**kwargs # type: Any
):
# type: (...) -> LROPoller["_models.VpnProfileResponse"]
# type: (...) -> LROPoller[_models.VpnProfileResponse]
"""Generates a unique VPN profile for P2S clients for VirtualWan and associated
VpnServerConfiguration combination in the specified resource group.
Expand All @@ -106,9 +105,6 @@ def begin_generatevirtualwanvpnserverconfigurationvpnprofile(
:param vpn_client_params: Parameters supplied to the generate VirtualWan VPN profile generation
operation.
:type vpn_client_params: ~azure.mgmt.network.v2021_08_01.models.VirtualWanVpnProfileParameters
:keyword api_version: Api Version. Default value is "2021-08-01". Note that overriding this
default value may result in unsupported behavior.
:paramtype api_version: str
:keyword callable cls: A custom type or function that will be passed the direct response
:keyword str continuation_token: A continuation token to restart a poller from a saved state.
:keyword polling: By default, your polling method will be ARMPolling. Pass in False for this
Expand Down Expand Up @@ -166,16 +162,13 @@ def begin_get_active_sessions(
bastion_host_name, # type: str
**kwargs # type: Any
):
# type: (...) -> LROPoller[ItemPaged["_models.BastionActiveSessionListResult"]]
# type: (...) -> LROPoller[ItemPaged[_models.BastionActiveSessionListResult]]
"""Returns the list of currently active sessions on the Bastion.
:param resource_group_name: The name of the resource group.
:type resource_group_name: str
:param bastion_host_name: The name of the Bastion Host.
:type bastion_host_name: str
:keyword api_version: Api Version. Default value is "2021-08-01". Note that overriding this
default value may result in unsupported behavior.
:paramtype api_version: str
:keyword callable cls: A custom type or function that will be passed the direct response
:keyword str continuation_token: A continuation token to restart a poller from a saved state.
:keyword polling: By default, your polling method will be ARMPolling. Pass in False for this
Expand Down Expand Up @@ -229,10 +222,10 @@ def begin_put_bastion_shareable_link(
self,
resource_group_name, # type: str
bastion_host_name, # type: str
bsl_request, # type: "_models.BastionShareableLinkListRequest"
bsl_request, # type: _models.BastionShareableLinkListRequest
**kwargs # type: Any
):
# type: (...) -> LROPoller[ItemPaged["_models.BastionShareableLinkListResult"]]
# type: (...) -> LROPoller[ItemPaged[_models.BastionShareableLinkListResult]]
"""Creates a Bastion Shareable Links for all the VMs specified in the request.
:param resource_group_name: The name of the resource group.
Expand All @@ -241,9 +234,6 @@ def begin_put_bastion_shareable_link(
:type bastion_host_name: str
:param bsl_request: Post request for all the Bastion Shareable Link endpoints.
:type bsl_request: ~azure.mgmt.network.v2021_08_01.models.BastionShareableLinkListRequest
:keyword api_version: Api Version. Default value is "2021-08-01". Note that overriding this
default value may result in unsupported behavior.
:paramtype api_version: str
:keyword callable cls: A custom type or function that will be passed the direct response
:keyword str continuation_token: A continuation token to restart a poller from a saved state.
:keyword polling: By default, your polling method will be ARMPolling. Pass in False for this
Expand Down Expand Up @@ -299,17 +289,14 @@ def check_dns_name_availability(
domain_name_label, # type: str
**kwargs # type: Any
):
# type: (...) -> "_models.DnsNameAvailabilityResult"
# type: (...) -> _models.DnsNameAvailabilityResult
"""Checks whether a domain name in the cloudapp.azure.com zone is available for use.
:param location: The location of the domain name.
:type location: str
:param domain_name_label: The domain name to be verified. It must conform to the following
regular expression: ^[a-z][a-z0-9-]{1,61}[a-z0-9]$.
:type domain_name_label: str
:keyword api_version: Api Version. Default value is "2021-08-01". Note that overriding this
default value may result in unsupported behavior.
:paramtype api_version: str
:keyword callable cls: A custom type or function that will be passed the direct response
:return: DnsNameAvailabilityResult, or the result of cls(response)
:rtype: ~azure.mgmt.network.v2021_08_01.models.DnsNameAvailabilityResult
Expand Down Expand Up @@ -394,10 +381,10 @@ def disconnect_active_sessions(
self,
resource_group_name, # type: str
bastion_host_name, # type: str
session_ids, # type: "_models.SessionIds"
session_ids, # type: _models.SessionIds
**kwargs # type: Any
):
# type: (...) -> Iterable["_models.BastionSessionDeleteResult"]
# type: (...) -> Iterable[_models.BastionSessionDeleteResult]
"""Returns the list of currently active sessions on the Bastion.
:param resource_group_name: The name of the resource group.
Expand All @@ -406,9 +393,6 @@ def disconnect_active_sessions(
:type bastion_host_name: str
:param session_ids: The list of sessionids to disconnect.
:type session_ids: ~azure.mgmt.network.v2021_08_01.models.SessionIds
:keyword api_version: Api Version. Default value is "2021-08-01". Note that overriding this
default value may result in unsupported behavior.
:paramtype api_version: str
:keyword callable cls: A custom type or function that will be passed the direct response
:return: An iterator like instance of either BastionSessionDeleteResult or the result of
cls(response)
Expand Down Expand Up @@ -455,10 +439,10 @@ def get_bastion_shareable_link(
self,
resource_group_name, # type: str
bastion_host_name, # type: str
bsl_request, # type: "_models.BastionShareableLinkListRequest"
bsl_request, # type: _models.BastionShareableLinkListRequest
**kwargs # type: Any
):
# type: (...) -> Iterable["_models.BastionShareableLinkListResult"]
# type: (...) -> Iterable[_models.BastionShareableLinkListResult]
"""Return the Bastion Shareable Links for all the VMs specified in the request.
:param resource_group_name: The name of the resource group.
Expand All @@ -467,9 +451,6 @@ def get_bastion_shareable_link(
:type bastion_host_name: str
:param bsl_request: Post request for all the Bastion Shareable Link endpoints.
:type bsl_request: ~azure.mgmt.network.v2021_08_01.models.BastionShareableLinkListRequest
:keyword api_version: Api Version. Default value is "2021-08-01". Note that overriding this
default value may result in unsupported behavior.
:paramtype api_version: str
:keyword callable cls: A custom type or function that will be passed the direct response
:return: An iterator like instance of either BastionShareableLinkListResult or the result of
cls(response)
Expand Down Expand Up @@ -518,17 +499,14 @@ def supported_security_providers(
virtual_wan_name, # type: str
**kwargs # type: Any
):
# type: (...) -> "_models.VirtualWanSecurityProviders"
# type: (...) -> _models.VirtualWanSecurityProviders
"""Gives the supported security providers for the virtual wan.
:param resource_group_name: The resource group name.
:type resource_group_name: str
:param virtual_wan_name: The name of the VirtualWAN for which supported security providers are
needed.
:type virtual_wan_name: str
:keyword api_version: Api Version. Default value is "2021-08-01". Note that overriding this
default value may result in unsupported behavior.
:paramtype api_version: str
:keyword callable cls: A custom type or function that will be passed the direct response
:return: VirtualWanSecurityProviders, or the result of cls(response)
:rtype: ~azure.mgmt.network.v2021_08_01.models.VirtualWanSecurityProviders
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,9 @@ class NetworkManagementClient(NetworkManagementClientOperationsMixin, MultiApiCl
'network_managers': '2021-02-01-preview',
'network_security_perimeters': '2021-02-01-preview',
'nsp_access_rules': '2021-02-01-preview',
'nsp_access_rules_reconcile': '2021-02-01-preview',
'nsp_associations': '2021-02-01-preview',
'nsp_associations_proxy': '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 @@ -4901,6 +4903,19 @@ def nsp_access_rules(self):
raise ValueError("API version {} does not have operation group 'nsp_access_rules'".format(api_version))
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))

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

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

@property
def nsp_associations(self):
"""Instance depends on the API version:
Expand All @@ -4914,6 +4929,19 @@ def nsp_associations(self):
raise ValueError("API version {} does not have operation group 'nsp_associations'".format(api_version))
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))

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

* 2021-02-01-preview: :class:`NspAssociationsProxyOperations<azure.mgmt.network.v2021_02_01_preview.aio.operations.NspAssociationsProxyOperations>`
"""
api_version = self._get_api_version('nsp_associations_proxy')
if api_version == '2021-02-01-preview':
from ..v2021_02_01_preview.aio.operations import NspAssociationsProxyOperations as OperationClass
else:
raise ValueError("API version {} does not have operation group 'nsp_associations_proxy'".format(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
Loading

0 comments on commit 271f23e

Please sign in to comment.