Skip to content

Commit 1849107

Browse files
author
SDKAuto
committed
CodeGen from PR 16618 in Azure/azure-rest-api-specs
Merge f1f66a1da02f23b73f4b2d5ebe8453938e58994a into 8fb0263
1 parent e7ae4e0 commit 1849107

File tree

279 files changed

+166791
-1212
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

279 files changed

+166791
-1212
lines changed

sdk/network/azure-mgmt-network/_meta.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"@autorest/[email protected]",
55
"@autorest/[email protected]"
66
],
7-
"commit": "fbf20b06614f6cfeda0f69abb4893d8bee40ba35",
7+
"commit": "92e9ecdb91287658588e454f8a28f6609b086c50",
88
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
99
"autorest_command": "autorest specification/network/resource-manager/readme.md --multiapi --python --python-mode=update --python-sdks-folder=/home/vsts/work/1/s/azure-sdk-for-python/sdk --track2 --use=@autorest/[email protected] --use=@autorest/[email protected] --version=3.4.5",
1010
"readme": "specification/network/resource-manager/readme.md"

sdk/network/azure-mgmt-network/azure/mgmt/network/_network_management_client.py

Lines changed: 382 additions & 557 deletions
Large diffs are not rendered by default.

sdk/network/azure-mgmt-network/azure/mgmt/network/_operations_mixin.py

Lines changed: 28 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ def begin_delete_bastion_shareable_link(
4141
:param bastion_host_name: The name of the Bastion Host.
4242
:type bastion_host_name: str
4343
:param bsl_request: Post request for all the Bastion Shareable Link endpoints.
44-
:type bsl_request: ~azure.mgmt.network.v2021_03_01.models.BastionShareableLinkListRequest
44+
:type bsl_request: ~azure.mgmt.network.v2021_05_01.models.BastionShareableLinkListRequest
4545
:keyword callable cls: A custom type or function that will be passed the direct response
4646
:keyword str continuation_token: A continuation token to restart a poller from a saved state.
4747
:keyword polling: By default, your polling method will be ARMPolling.
@@ -75,8 +75,8 @@ def begin_delete_bastion_shareable_link(
7575
from .v2020_11_01.operations import NetworkManagementClientOperationsMixin as OperationClass
7676
elif api_version == '2021-02-01':
7777
from .v2021_02_01.operations import NetworkManagementClientOperationsMixin as OperationClass
78-
elif api_version == '2021-03-01':
79-
from .v2021_03_01.operations import NetworkManagementClientOperationsMixin as OperationClass
78+
elif api_version == '2021-05-01':
79+
from .v2021_05_01.operations import NetworkManagementClientOperationsMixin as OperationClass
8080
else:
8181
raise ValueError("API version {} does not have operation 'begin_delete_bastion_shareable_link'".format(api_version))
8282
mixin_instance = OperationClass()
@@ -104,15 +104,15 @@ def begin_generatevirtualwanvpnserverconfigurationvpnprofile(
104104
:type virtual_wan_name: str
105105
:param vpn_client_params: Parameters supplied to the generate VirtualWan VPN profile generation
106106
operation.
107-
:type vpn_client_params: ~azure.mgmt.network.v2021_03_01.models.VirtualWanVpnProfileParameters
107+
:type vpn_client_params: ~azure.mgmt.network.v2021_05_01.models.VirtualWanVpnProfileParameters
108108
:keyword callable cls: A custom type or function that will be passed the direct response
109109
:keyword str continuation_token: A continuation token to restart a poller from a saved state.
110110
:keyword polling: By default, your polling method will be ARMPolling.
111111
Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.
112112
:paramtype polling: bool or ~azure.core.polling.PollingMethod
113113
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.
114114
:return: An instance of LROPoller that returns either VpnProfileResponse or the result of cls(response)
115-
:rtype: ~azure.core.polling.LROPoller[~azure.mgmt.network.v2021_03_01.models.VpnProfileResponse]
115+
:rtype: ~azure.core.polling.LROPoller[~azure.mgmt.network.v2021_05_01.models.VpnProfileResponse]
116116
:raises ~azure.core.exceptions.HttpResponseError:
117117
"""
118118
api_version = self._get_api_version('begin_generatevirtualwanvpnserverconfigurationvpnprofile')
@@ -140,8 +140,8 @@ def begin_generatevirtualwanvpnserverconfigurationvpnprofile(
140140
from .v2020_11_01.operations import NetworkManagementClientOperationsMixin as OperationClass
141141
elif api_version == '2021-02-01':
142142
from .v2021_02_01.operations import NetworkManagementClientOperationsMixin as OperationClass
143-
elif api_version == '2021-03-01':
144-
from .v2021_03_01.operations import NetworkManagementClientOperationsMixin as OperationClass
143+
elif api_version == '2021-05-01':
144+
from .v2021_05_01.operations import NetworkManagementClientOperationsMixin as OperationClass
145145
else:
146146
raise ValueError("API version {} does not have operation 'begin_generatevirtualwanvpnserverconfigurationvpnprofile'".format(api_version))
147147
mixin_instance = OperationClass()
@@ -171,7 +171,7 @@ def begin_get_active_sessions(
171171
:paramtype polling: bool or ~azure.core.polling.PollingMethod
172172
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.
173173
:return: An instance of LROPoller that returns an iterator like instance of either BastionActiveSessionListResult or the result of cls(response)
174-
:rtype: ~azure.core.polling.LROPoller[~azure.core.paging.ItemPaged[~azure.mgmt.network.v2021_03_01.models.BastionActiveSessionListResult]]
174+
:rtype: ~azure.core.polling.LROPoller[~azure.core.paging.ItemPaged[~azure.mgmt.network.v2021_05_01.models.BastionActiveSessionListResult]]
175175
:raises ~azure.core.exceptions.HttpResponseError:
176176
"""
177177
api_version = self._get_api_version('begin_get_active_sessions')
@@ -197,8 +197,8 @@ def begin_get_active_sessions(
197197
from .v2020_11_01.operations import NetworkManagementClientOperationsMixin as OperationClass
198198
elif api_version == '2021-02-01':
199199
from .v2021_02_01.operations import NetworkManagementClientOperationsMixin as OperationClass
200-
elif api_version == '2021-03-01':
201-
from .v2021_03_01.operations import NetworkManagementClientOperationsMixin as OperationClass
200+
elif api_version == '2021-05-01':
201+
from .v2021_05_01.operations import NetworkManagementClientOperationsMixin as OperationClass
202202
else:
203203
raise ValueError("API version {} does not have operation 'begin_get_active_sessions'".format(api_version))
204204
mixin_instance = OperationClass()
@@ -223,15 +223,15 @@ def begin_put_bastion_shareable_link(
223223
:param bastion_host_name: The name of the Bastion Host.
224224
:type bastion_host_name: str
225225
:param bsl_request: Post request for all the Bastion Shareable Link endpoints.
226-
:type bsl_request: ~azure.mgmt.network.v2021_03_01.models.BastionShareableLinkListRequest
226+
:type bsl_request: ~azure.mgmt.network.v2021_05_01.models.BastionShareableLinkListRequest
227227
:keyword callable cls: A custom type or function that will be passed the direct response
228228
:keyword str continuation_token: A continuation token to restart a poller from a saved state.
229229
:keyword polling: By default, your polling method will be ARMPolling.
230230
Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.
231231
:paramtype polling: bool or ~azure.core.polling.PollingMethod
232232
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.
233233
:return: An instance of LROPoller that returns an iterator like instance of either BastionShareableLinkListResult or the result of cls(response)
234-
:rtype: ~azure.core.polling.LROPoller[~azure.core.paging.ItemPaged[~azure.mgmt.network.v2021_03_01.models.BastionShareableLinkListResult]]
234+
:rtype: ~azure.core.polling.LROPoller[~azure.core.paging.ItemPaged[~azure.mgmt.network.v2021_05_01.models.BastionShareableLinkListResult]]
235235
:raises ~azure.core.exceptions.HttpResponseError:
236236
"""
237237
api_version = self._get_api_version('begin_put_bastion_shareable_link')
@@ -257,8 +257,8 @@ def begin_put_bastion_shareable_link(
257257
from .v2020_11_01.operations import NetworkManagementClientOperationsMixin as OperationClass
258258
elif api_version == '2021-02-01':
259259
from .v2021_02_01.operations import NetworkManagementClientOperationsMixin as OperationClass
260-
elif api_version == '2021-03-01':
261-
from .v2021_03_01.operations import NetworkManagementClientOperationsMixin as OperationClass
260+
elif api_version == '2021-05-01':
261+
from .v2021_05_01.operations import NetworkManagementClientOperationsMixin as OperationClass
262262
else:
263263
raise ValueError("API version {} does not have operation 'begin_put_bastion_shareable_link'".format(api_version))
264264
mixin_instance = OperationClass()
@@ -284,7 +284,7 @@ def check_dns_name_availability(
284284
:type domain_name_label: str
285285
:keyword callable cls: A custom type or function that will be passed the direct response
286286
:return: DnsNameAvailabilityResult, or the result of cls(response)
287-
:rtype: ~azure.mgmt.network.v2021_03_01.models.DnsNameAvailabilityResult
287+
:rtype: ~azure.mgmt.network.v2021_05_01.models.DnsNameAvailabilityResult
288288
:raises: ~azure.core.exceptions.HttpResponseError
289289
"""
290290
api_version = self._get_api_version('check_dns_name_availability')
@@ -298,12 +298,8 @@ def check_dns_name_availability(
298298
from .v2017_03_01.operations import NetworkManagementClientOperationsMixin as OperationClass
299299
elif api_version == '2017-06-01':
300300
from .v2017_06_01.operations import NetworkManagementClientOperationsMixin as OperationClass
301-
elif api_version == '2017-09-01':
302-
from .v2017_09_01.operations import NetworkManagementClientOperationsMixin as OperationClass
303301
elif api_version == '2017-10-01':
304302
from .v2017_10_01.operations import NetworkManagementClientOperationsMixin as OperationClass
305-
elif api_version == '2017-11-01':
306-
from .v2017_11_01.operations import NetworkManagementClientOperationsMixin as OperationClass
307303
elif api_version == '2018-01-01':
308304
from .v2018_01_01.operations import NetworkManagementClientOperationsMixin as OperationClass
309305
elif api_version == '2018-02-01':
@@ -354,8 +350,8 @@ def check_dns_name_availability(
354350
from .v2020_11_01.operations import NetworkManagementClientOperationsMixin as OperationClass
355351
elif api_version == '2021-02-01':
356352
from .v2021_02_01.operations import NetworkManagementClientOperationsMixin as OperationClass
357-
elif api_version == '2021-03-01':
358-
from .v2021_03_01.operations import NetworkManagementClientOperationsMixin as OperationClass
353+
elif api_version == '2021-05-01':
354+
from .v2021_05_01.operations import NetworkManagementClientOperationsMixin as OperationClass
359355
else:
360356
raise ValueError("API version {} does not have operation 'check_dns_name_availability'".format(api_version))
361357
mixin_instance = OperationClass()
@@ -380,10 +376,10 @@ def disconnect_active_sessions(
380376
:param bastion_host_name: The name of the Bastion Host.
381377
:type bastion_host_name: str
382378
:param session_ids: The list of sessionids to disconnect.
383-
:type session_ids: ~azure.mgmt.network.v2021_03_01.models.SessionIds
379+
:type session_ids: ~azure.mgmt.network.v2021_05_01.models.SessionIds
384380
:keyword callable cls: A custom type or function that will be passed the direct response
385381
:return: An iterator like instance of either BastionSessionDeleteResult or the result of cls(response)
386-
:rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.network.v2021_03_01.models.BastionSessionDeleteResult]
382+
:rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.network.v2021_05_01.models.BastionSessionDeleteResult]
387383
:raises: ~azure.core.exceptions.HttpResponseError
388384
"""
389385
api_version = self._get_api_version('disconnect_active_sessions')
@@ -409,8 +405,8 @@ def disconnect_active_sessions(
409405
from .v2020_11_01.operations import NetworkManagementClientOperationsMixin as OperationClass
410406
elif api_version == '2021-02-01':
411407
from .v2021_02_01.operations import NetworkManagementClientOperationsMixin as OperationClass
412-
elif api_version == '2021-03-01':
413-
from .v2021_03_01.operations import NetworkManagementClientOperationsMixin as OperationClass
408+
elif api_version == '2021-05-01':
409+
from .v2021_05_01.operations import NetworkManagementClientOperationsMixin as OperationClass
414410
else:
415411
raise ValueError("API version {} does not have operation 'disconnect_active_sessions'".format(api_version))
416412
mixin_instance = OperationClass()
@@ -435,10 +431,10 @@ def get_bastion_shareable_link(
435431
:param bastion_host_name: The name of the Bastion Host.
436432
:type bastion_host_name: str
437433
:param bsl_request: Post request for all the Bastion Shareable Link endpoints.
438-
:type bsl_request: ~azure.mgmt.network.v2021_03_01.models.BastionShareableLinkListRequest
434+
:type bsl_request: ~azure.mgmt.network.v2021_05_01.models.BastionShareableLinkListRequest
439435
:keyword callable cls: A custom type or function that will be passed the direct response
440436
:return: An iterator like instance of either BastionShareableLinkListResult or the result of cls(response)
441-
:rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.network.v2021_03_01.models.BastionShareableLinkListResult]
437+
:rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.network.v2021_05_01.models.BastionShareableLinkListResult]
442438
:raises: ~azure.core.exceptions.HttpResponseError
443439
"""
444440
api_version = self._get_api_version('get_bastion_shareable_link')
@@ -464,8 +460,8 @@ def get_bastion_shareable_link(
464460
from .v2020_11_01.operations import NetworkManagementClientOperationsMixin as OperationClass
465461
elif api_version == '2021-02-01':
466462
from .v2021_02_01.operations import NetworkManagementClientOperationsMixin as OperationClass
467-
elif api_version == '2021-03-01':
468-
from .v2021_03_01.operations import NetworkManagementClientOperationsMixin as OperationClass
463+
elif api_version == '2021-05-01':
464+
from .v2021_05_01.operations import NetworkManagementClientOperationsMixin as OperationClass
469465
else:
470466
raise ValueError("API version {} does not have operation 'get_bastion_shareable_link'".format(api_version))
471467
mixin_instance = OperationClass()
@@ -491,7 +487,7 @@ def supported_security_providers(
491487
:type virtual_wan_name: str
492488
:keyword callable cls: A custom type or function that will be passed the direct response
493489
:return: VirtualWanSecurityProviders, or the result of cls(response)
494-
:rtype: ~azure.mgmt.network.v2021_03_01.models.VirtualWanSecurityProviders
490+
:rtype: ~azure.mgmt.network.v2021_05_01.models.VirtualWanSecurityProviders
495491
:raises: ~azure.core.exceptions.HttpResponseError
496492
"""
497493
api_version = self._get_api_version('supported_security_providers')
@@ -535,8 +531,8 @@ def supported_security_providers(
535531
from .v2020_11_01.operations import NetworkManagementClientOperationsMixin as OperationClass
536532
elif api_version == '2021-02-01':
537533
from .v2021_02_01.operations import NetworkManagementClientOperationsMixin as OperationClass
538-
elif api_version == '2021-03-01':
539-
from .v2021_03_01.operations import NetworkManagementClientOperationsMixin as OperationClass
534+
elif api_version == '2021-05-01':
535+
from .v2021_05_01.operations import NetworkManagementClientOperationsMixin as OperationClass
540536
else:
541537
raise ValueError("API version {} does not have operation 'supported_security_providers'".format(api_version))
542538
mixin_instance = OperationClass()

0 commit comments

Comments
 (0)