1010# --------------------------------------------------------------------------
1111from msrest import Serializer , Deserializer
1212from typing import TYPE_CHECKING
13- import warnings
14-
15- from azure .core .exceptions import ClientAuthenticationError , HttpResponseError , ResourceExistsError , ResourceNotFoundError , map_error
16- from azure .core .paging import ItemPaged
17- from azure .core .pipeline import PipelineResponse
18- from azure .core .pipeline .transport import HttpRequest , HttpResponse
19- from azure .core .polling import LROPoller , NoPolling , PollingMethod
20- from azure .mgmt .core .exceptions import ARMErrorFormat
21- from azure .mgmt .core .polling .arm_polling import ARMPolling
2213
2314if TYPE_CHECKING :
2415 # pylint: disable=unused-import,ungrouped-imports
25- from typing import Any , Callable , Dict , Generic , Iterable , Optional , TypeVar , Union
16+ from typing import Any , Iterable , Optional
2617
2718 from azure .core .paging import ItemPaged
2819 from azure .core .polling import LROPoller
@@ -46,9 +37,6 @@ def begin_delete_bastion_shareable_link( # pylint: disable=inconsistent-return-
4637 :type bastion_host_name: str
4738 :param bsl_request: Post request for all the Bastion Shareable Link endpoints.
4839 :type bsl_request: ~azure.mgmt.network.v2021_08_01.models.BastionShareableLinkListRequest
49- :keyword api_version: Api Version. Default value is "2021-08-01". Note that overriding this
50- default value may result in unsupported behavior.
51- :paramtype api_version: str
5240 :keyword callable cls: A custom type or function that will be passed the direct response
5341 :keyword str continuation_token: A continuation token to restart a poller from a saved state.
5442 :keyword polling: By default, your polling method will be ARMPolling. Pass in False for this
@@ -84,8 +72,6 @@ def begin_delete_bastion_shareable_link( # pylint: disable=inconsistent-return-
8472 from .v2020_11_01 .operations import NetworkManagementClientOperationsMixin as OperationClass
8573 elif api_version == '2021-02-01' :
8674 from .v2021_02_01 .operations import NetworkManagementClientOperationsMixin as OperationClass
87- elif api_version == '2021-05-01' :
88- from .v2021_05_01 .operations import NetworkManagementClientOperationsMixin as OperationClass
8975 elif api_version == '2021-08-01' :
9076 from .v2021_08_01 .operations import NetworkManagementClientOperationsMixin as OperationClass
9177 else :
@@ -117,9 +103,6 @@ def begin_generatevirtualwanvpnserverconfigurationvpnprofile(
117103 :param vpn_client_params: Parameters supplied to the generate VirtualWan VPN profile generation
118104 operation.
119105 :type vpn_client_params: ~azure.mgmt.network.v2021_08_01.models.VirtualWanVpnProfileParameters
120- :keyword api_version: Api Version. Default value is "2021-08-01". Note that overriding this
121- default value may result in unsupported behavior.
122- :paramtype api_version: str
123106 :keyword callable cls: A custom type or function that will be passed the direct response
124107 :keyword str continuation_token: A continuation token to restart a poller from a saved state.
125108 :keyword polling: By default, your polling method will be ARMPolling. Pass in False for this
@@ -159,8 +142,6 @@ def begin_generatevirtualwanvpnserverconfigurationvpnprofile(
159142 from .v2020_11_01 .operations import NetworkManagementClientOperationsMixin as OperationClass
160143 elif api_version == '2021-02-01' :
161144 from .v2021_02_01 .operations import NetworkManagementClientOperationsMixin as OperationClass
162- elif api_version == '2021-05-01' :
163- from .v2021_05_01 .operations import NetworkManagementClientOperationsMixin as OperationClass
164145 elif api_version == '2021-08-01' :
165146 from .v2021_08_01 .operations import NetworkManagementClientOperationsMixin as OperationClass
166147 else :
@@ -186,9 +167,6 @@ def begin_get_active_sessions(
186167 :type resource_group_name: str
187168 :param bastion_host_name: The name of the Bastion Host.
188169 :type bastion_host_name: str
189- :keyword api_version: Api Version. Default value is "2021-08-01". Note that overriding this
190- default value may result in unsupported behavior.
191- :paramtype api_version: str
192170 :keyword callable cls: A custom type or function that will be passed the direct response
193171 :keyword str continuation_token: A continuation token to restart a poller from a saved state.
194172 :keyword polling: By default, your polling method will be ARMPolling. Pass in False for this
@@ -226,8 +204,6 @@ def begin_get_active_sessions(
226204 from .v2020_11_01 .operations import NetworkManagementClientOperationsMixin as OperationClass
227205 elif api_version == '2021-02-01' :
228206 from .v2021_02_01 .operations import NetworkManagementClientOperationsMixin as OperationClass
229- elif api_version == '2021-05-01' :
230- from .v2021_05_01 .operations import NetworkManagementClientOperationsMixin as OperationClass
231207 elif api_version == '2021-08-01' :
232208 from .v2021_08_01 .operations import NetworkManagementClientOperationsMixin as OperationClass
233209 else :
@@ -256,9 +232,6 @@ def begin_put_bastion_shareable_link(
256232 :type bastion_host_name: str
257233 :param bsl_request: Post request for all the Bastion Shareable Link endpoints.
258234 :type bsl_request: ~azure.mgmt.network.v2021_08_01.models.BastionShareableLinkListRequest
259- :keyword api_version: Api Version. Default value is "2021-08-01". Note that overriding this
260- default value may result in unsupported behavior.
261- :paramtype api_version: str
262235 :keyword callable cls: A custom type or function that will be passed the direct response
263236 :keyword str continuation_token: A continuation token to restart a poller from a saved state.
264237 :keyword polling: By default, your polling method will be ARMPolling. Pass in False for this
@@ -296,8 +269,6 @@ def begin_put_bastion_shareable_link(
296269 from .v2020_11_01 .operations import NetworkManagementClientOperationsMixin as OperationClass
297270 elif api_version == '2021-02-01' :
298271 from .v2021_02_01 .operations import NetworkManagementClientOperationsMixin as OperationClass
299- elif api_version == '2021-05-01' :
300- from .v2021_05_01 .operations import NetworkManagementClientOperationsMixin as OperationClass
301272 elif api_version == '2021-08-01' :
302273 from .v2021_08_01 .operations import NetworkManagementClientOperationsMixin as OperationClass
303274 else :
@@ -324,9 +295,6 @@ def check_dns_name_availability(
324295 :param domain_name_label: The domain name to be verified. It must conform to the following
325296 regular expression: ^[a-z][a-z0-9-]{1,61}[a-z0-9]$.
326297 :type domain_name_label: str
327- :keyword api_version: Api Version. Default value is "2021-08-01". Note that overriding this
328- default value may result in unsupported behavior.
329- :paramtype api_version: str
330298 :keyword callable cls: A custom type or function that will be passed the direct response
331299 :return: DnsNameAvailabilityResult, or the result of cls(response)
332300 :rtype: ~azure.mgmt.network.v2021_08_01.models.DnsNameAvailabilityResult
@@ -395,8 +363,6 @@ def check_dns_name_availability(
395363 from .v2020_11_01 .operations import NetworkManagementClientOperationsMixin as OperationClass
396364 elif api_version == '2021-02-01' :
397365 from .v2021_02_01 .operations import NetworkManagementClientOperationsMixin as OperationClass
398- elif api_version == '2021-05-01' :
399- from .v2021_05_01 .operations import NetworkManagementClientOperationsMixin as OperationClass
400366 elif api_version == '2021-08-01' :
401367 from .v2021_08_01 .operations import NetworkManagementClientOperationsMixin as OperationClass
402368 else :
@@ -425,9 +391,6 @@ def disconnect_active_sessions(
425391 :type bastion_host_name: str
426392 :param session_ids: The list of sessionids to disconnect.
427393 :type session_ids: ~azure.mgmt.network.v2021_08_01.models.SessionIds
428- :keyword api_version: Api Version. Default value is "2021-08-01". Note that overriding this
429- default value may result in unsupported behavior.
430- :paramtype api_version: str
431394 :keyword callable cls: A custom type or function that will be passed the direct response
432395 :return: An iterator like instance of either BastionSessionDeleteResult or the result of
433396 cls(response)
@@ -458,8 +421,6 @@ def disconnect_active_sessions(
458421 from .v2020_11_01 .operations import NetworkManagementClientOperationsMixin as OperationClass
459422 elif api_version == '2021-02-01' :
460423 from .v2021_02_01 .operations import NetworkManagementClientOperationsMixin as OperationClass
461- elif api_version == '2021-05-01' :
462- from .v2021_05_01 .operations import NetworkManagementClientOperationsMixin as OperationClass
463424 elif api_version == '2021-08-01' :
464425 from .v2021_08_01 .operations import NetworkManagementClientOperationsMixin as OperationClass
465426 else :
@@ -488,9 +449,6 @@ def get_bastion_shareable_link(
488449 :type bastion_host_name: str
489450 :param bsl_request: Post request for all the Bastion Shareable Link endpoints.
490451 :type bsl_request: ~azure.mgmt.network.v2021_08_01.models.BastionShareableLinkListRequest
491- :keyword api_version: Api Version. Default value is "2021-08-01". Note that overriding this
492- default value may result in unsupported behavior.
493- :paramtype api_version: str
494452 :keyword callable cls: A custom type or function that will be passed the direct response
495453 :return: An iterator like instance of either BastionShareableLinkListResult or the result of
496454 cls(response)
@@ -521,8 +479,6 @@ def get_bastion_shareable_link(
521479 from .v2020_11_01 .operations import NetworkManagementClientOperationsMixin as OperationClass
522480 elif api_version == '2021-02-01' :
523481 from .v2021_02_01 .operations import NetworkManagementClientOperationsMixin as OperationClass
524- elif api_version == '2021-05-01' :
525- from .v2021_05_01 .operations import NetworkManagementClientOperationsMixin as OperationClass
526482 elif api_version == '2021-08-01' :
527483 from .v2021_08_01 .operations import NetworkManagementClientOperationsMixin as OperationClass
528484 else :
@@ -549,9 +505,6 @@ def supported_security_providers(
549505 :param virtual_wan_name: The name of the VirtualWAN for which supported security providers are
550506 needed.
551507 :type virtual_wan_name: str
552- :keyword api_version: Api Version. Default value is "2021-08-01". Note that overriding this
553- default value may result in unsupported behavior.
554- :paramtype api_version: str
555508 :keyword callable cls: A custom type or function that will be passed the direct response
556509 :return: VirtualWanSecurityProviders, or the result of cls(response)
557510 :rtype: ~azure.mgmt.network.v2021_08_01.models.VirtualWanSecurityProviders
@@ -598,8 +551,6 @@ def supported_security_providers(
598551 from .v2020_11_01 .operations import NetworkManagementClientOperationsMixin as OperationClass
599552 elif api_version == '2021-02-01' :
600553 from .v2021_02_01 .operations import NetworkManagementClientOperationsMixin as OperationClass
601- elif api_version == '2021-05-01' :
602- from .v2021_05_01 .operations import NetworkManagementClientOperationsMixin as OperationClass
603554 elif api_version == '2021-08-01' :
604555 from .v2021_08_01 .operations import NetworkManagementClientOperationsMixin as OperationClass
605556 else :
0 commit comments