Skip to content

Commit 502e587

Browse files
msyycSDKAuto00Kai0
authored
[T2] network 2021 03 12 (Azure#17308)
* CodeGen from PR 13279 in Azure/azure-rest-api-specs Add kind property (Azure#13279) * version,CHANGELOG * test * fix testcases * annotation Co-authored-by: SDKAuto <sdkautomation@microsoft.com> Co-authored-by: PythonSdkPipelines <PythonSdkPipelines> Co-authored-by: 00Kai0 <sunkaihuisos@gmail.com>
1 parent a03784c commit 502e587

File tree

269 files changed

+184248
-30365
lines changed

Some content is hidden

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

269 files changed

+184248
-30365
lines changed

sdk/network/azure-mgmt-network/CHANGELOG.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,26 @@
11
# Release History
22

3+
## 18.0.0 (2021-03-08)
4+
5+
**Features**
6+
7+
- Model VpnConnection has a new parameter traffic_selector_policies
8+
- Model VirtualNetworkGateway has a new parameter virtual_network_extended_location
9+
- Model VirtualNetworkGateway has a new parameter v_net_extended_location_resource_id
10+
- Model VpnClientConfiguration has a new parameter vpn_authentication_types
11+
- Model LoadBalancerBackendAddress has a new parameter subnet
12+
- Model ServiceEndpointPolicy has a new parameter kind
13+
- Model FirewallPolicy has a new parameter snat
14+
- Model FirewallPolicy has a new parameter insights
15+
- Added operation VirtualNetworkGatewayConnectionsOperations.begin_reset_connection
16+
- Added operation VpnLinkConnectionsOperations.begin_get_ike_sas
17+
- Added operation VpnLinkConnectionsOperations.begin_reset_connection
18+
19+
**Breaking changes**
20+
21+
- Model VirtualNetworkGateway no longer has parameter extended_location
22+
- Model VirtualNetworkGateway no longer has parameter virtual_network_extended_location_resource_id
23+
324
## 17.1.0 (2021-01-26)
425

526
**Features**

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

Lines changed: 323 additions & 1 deletion
Large diffs are not rendered by default.

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

Lines changed: 28 additions & 12 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.v2020_08_01.models.BastionShareableLinkListRequest
44+
:type bsl_request: ~azure.mgmt.network.v2020_11_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: True for ARMPolling, False for no polling, or a
@@ -71,6 +71,8 @@ def begin_delete_bastion_shareable_link(
7171
from .v2020_07_01.operations import NetworkManagementClientOperationsMixin as OperationClass
7272
elif api_version == '2020-08-01':
7373
from .v2020_08_01.operations import NetworkManagementClientOperationsMixin as OperationClass
74+
elif api_version == '2020-11-01':
75+
from .v2020_11_01.operations import NetworkManagementClientOperationsMixin as OperationClass
7476
else:
7577
raise ValueError("API version {} does not have operation 'begin_delete_bastion_shareable_link'".format(api_version))
7678
mixin_instance = OperationClass()
@@ -97,15 +99,15 @@ def begin_generatevirtualwanvpnserverconfigurationvpnprofile(
9799
:type virtual_wan_name: str
98100
:param vpn_client_params: Parameters supplied to the generate VirtualWan VPN profile generation
99101
operation.
100-
:type vpn_client_params: ~azure.mgmt.network.v2020_08_01.models.VirtualWanVpnProfileParameters
102+
:type vpn_client_params: ~azure.mgmt.network.v2020_11_01.models.VirtualWanVpnProfileParameters
101103
:keyword callable cls: A custom type or function that will be passed the direct response
102104
:keyword str continuation_token: A continuation token to restart a poller from a saved state.
103105
:keyword polling: True for ARMPolling, False for no polling, or a
104106
polling object for personal polling strategy
105107
:paramtype polling: bool or ~azure.core.polling.PollingMethod
106108
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.
107109
:return: An instance of LROPoller that returns either VpnProfileResponse or the result of cls(response)
108-
:rtype: ~azure.core.polling.LROPoller[~azure.mgmt.network.v2020_08_01.models.VpnProfileResponse]
110+
:rtype: ~azure.core.polling.LROPoller[~azure.mgmt.network.v2020_11_01.models.VpnProfileResponse]
109111
:raises ~azure.core.exceptions.HttpResponseError:
110112
"""
111113
api_version = self._get_api_version('begin_generatevirtualwanvpnserverconfigurationvpnprofile')
@@ -129,6 +131,8 @@ def begin_generatevirtualwanvpnserverconfigurationvpnprofile(
129131
from .v2020_07_01.operations import NetworkManagementClientOperationsMixin as OperationClass
130132
elif api_version == '2020-08-01':
131133
from .v2020_08_01.operations import NetworkManagementClientOperationsMixin as OperationClass
134+
elif api_version == '2020-11-01':
135+
from .v2020_11_01.operations import NetworkManagementClientOperationsMixin as OperationClass
132136
else:
133137
raise ValueError("API version {} does not have operation 'begin_generatevirtualwanvpnserverconfigurationvpnprofile'".format(api_version))
134138
mixin_instance = OperationClass()
@@ -157,7 +161,7 @@ def begin_get_active_sessions(
157161
:paramtype polling: bool or ~azure.core.polling.PollingMethod
158162
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.
159163
:return: An instance of LROPoller that returns an iterator like instance of either BastionActiveSessionListResult or the result of cls(response)
160-
:rtype: ~azure.core.polling.LROPoller[~azure.core.paging.ItemPaged[~azure.mgmt.network.v2020_08_01.models.BastionActiveSessionListResult]]
164+
:rtype: ~azure.core.polling.LROPoller[~azure.core.paging.ItemPaged[~azure.mgmt.network.v2020_11_01.models.BastionActiveSessionListResult]]
161165
:raises ~azure.core.exceptions.HttpResponseError:
162166
"""
163167
api_version = self._get_api_version('begin_get_active_sessions')
@@ -179,6 +183,8 @@ def begin_get_active_sessions(
179183
from .v2020_07_01.operations import NetworkManagementClientOperationsMixin as OperationClass
180184
elif api_version == '2020-08-01':
181185
from .v2020_08_01.operations import NetworkManagementClientOperationsMixin as OperationClass
186+
elif api_version == '2020-11-01':
187+
from .v2020_11_01.operations import NetworkManagementClientOperationsMixin as OperationClass
182188
else:
183189
raise ValueError("API version {} does not have operation 'begin_get_active_sessions'".format(api_version))
184190
mixin_instance = OperationClass()
@@ -202,15 +208,15 @@ def begin_put_bastion_shareable_link(
202208
:param bastion_host_name: The name of the Bastion Host.
203209
:type bastion_host_name: str
204210
:param bsl_request: Post request for all the Bastion Shareable Link endpoints.
205-
:type bsl_request: ~azure.mgmt.network.v2020_08_01.models.BastionShareableLinkListRequest
211+
:type bsl_request: ~azure.mgmt.network.v2020_11_01.models.BastionShareableLinkListRequest
206212
:keyword callable cls: A custom type or function that will be passed the direct response
207213
:keyword str continuation_token: A continuation token to restart a poller from a saved state.
208214
:keyword polling: True for ARMPolling, False for no polling, or a
209215
polling object for personal polling strategy
210216
:paramtype polling: bool or ~azure.core.polling.PollingMethod
211217
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.
212218
:return: An instance of LROPoller that returns an iterator like instance of either BastionShareableLinkListResult or the result of cls(response)
213-
:rtype: ~azure.core.polling.LROPoller[~azure.core.paging.ItemPaged[~azure.mgmt.network.v2020_08_01.models.BastionShareableLinkListResult]]
219+
:rtype: ~azure.core.polling.LROPoller[~azure.core.paging.ItemPaged[~azure.mgmt.network.v2020_11_01.models.BastionShareableLinkListResult]]
214220
:raises ~azure.core.exceptions.HttpResponseError:
215221
"""
216222
api_version = self._get_api_version('begin_put_bastion_shareable_link')
@@ -232,6 +238,8 @@ def begin_put_bastion_shareable_link(
232238
from .v2020_07_01.operations import NetworkManagementClientOperationsMixin as OperationClass
233239
elif api_version == '2020-08-01':
234240
from .v2020_08_01.operations import NetworkManagementClientOperationsMixin as OperationClass
241+
elif api_version == '2020-11-01':
242+
from .v2020_11_01.operations import NetworkManagementClientOperationsMixin as OperationClass
235243
else:
236244
raise ValueError("API version {} does not have operation 'begin_put_bastion_shareable_link'".format(api_version))
237245
mixin_instance = OperationClass()
@@ -256,7 +264,7 @@ def check_dns_name_availability(
256264
:type domain_name_label: str
257265
:keyword callable cls: A custom type or function that will be passed the direct response
258266
:return: DnsNameAvailabilityResult, or the result of cls(response)
259-
:rtype: ~azure.mgmt.network.v2020_08_01.models.DnsNameAvailabilityResult
267+
:rtype: ~azure.mgmt.network.v2020_11_01.models.DnsNameAvailabilityResult
260268
:raises: ~azure.core.exceptions.HttpResponseError
261269
"""
262270
api_version = self._get_api_version('check_dns_name_availability')
@@ -324,6 +332,8 @@ def check_dns_name_availability(
324332
from .v2020_07_01.operations import NetworkManagementClientOperationsMixin as OperationClass
325333
elif api_version == '2020-08-01':
326334
from .v2020_08_01.operations import NetworkManagementClientOperationsMixin as OperationClass
335+
elif api_version == '2020-11-01':
336+
from .v2020_11_01.operations import NetworkManagementClientOperationsMixin as OperationClass
327337
else:
328338
raise ValueError("API version {} does not have operation 'check_dns_name_availability'".format(api_version))
329339
mixin_instance = OperationClass()
@@ -347,10 +357,10 @@ def disconnect_active_sessions(
347357
:param bastion_host_name: The name of the Bastion Host.
348358
:type bastion_host_name: str
349359
:param session_ids: The list of sessionids to disconnect.
350-
:type session_ids: ~azure.mgmt.network.v2020_08_01.models.SessionIds
360+
:type session_ids: ~azure.mgmt.network.v2020_11_01.models.SessionIds
351361
:keyword callable cls: A custom type or function that will be passed the direct response
352362
:return: An iterator like instance of either BastionSessionDeleteResult or the result of cls(response)
353-
:rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.network.v2020_08_01.models.BastionSessionDeleteResult]
363+
:rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.network.v2020_11_01.models.BastionSessionDeleteResult]
354364
:raises: ~azure.core.exceptions.HttpResponseError
355365
"""
356366
api_version = self._get_api_version('disconnect_active_sessions')
@@ -372,6 +382,8 @@ def disconnect_active_sessions(
372382
from .v2020_07_01.operations import NetworkManagementClientOperationsMixin as OperationClass
373383
elif api_version == '2020-08-01':
374384
from .v2020_08_01.operations import NetworkManagementClientOperationsMixin as OperationClass
385+
elif api_version == '2020-11-01':
386+
from .v2020_11_01.operations import NetworkManagementClientOperationsMixin as OperationClass
375387
else:
376388
raise ValueError("API version {} does not have operation 'disconnect_active_sessions'".format(api_version))
377389
mixin_instance = OperationClass()
@@ -395,10 +407,10 @@ def get_bastion_shareable_link(
395407
:param bastion_host_name: The name of the Bastion Host.
396408
:type bastion_host_name: str
397409
:param bsl_request: Post request for all the Bastion Shareable Link endpoints.
398-
:type bsl_request: ~azure.mgmt.network.v2020_08_01.models.BastionShareableLinkListRequest
410+
:type bsl_request: ~azure.mgmt.network.v2020_11_01.models.BastionShareableLinkListRequest
399411
:keyword callable cls: A custom type or function that will be passed the direct response
400412
:return: An iterator like instance of either BastionShareableLinkListResult or the result of cls(response)
401-
:rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.network.v2020_08_01.models.BastionShareableLinkListResult]
413+
:rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.network.v2020_11_01.models.BastionShareableLinkListResult]
402414
:raises: ~azure.core.exceptions.HttpResponseError
403415
"""
404416
api_version = self._get_api_version('get_bastion_shareable_link')
@@ -420,6 +432,8 @@ def get_bastion_shareable_link(
420432
from .v2020_07_01.operations import NetworkManagementClientOperationsMixin as OperationClass
421433
elif api_version == '2020-08-01':
422434
from .v2020_08_01.operations import NetworkManagementClientOperationsMixin as OperationClass
435+
elif api_version == '2020-11-01':
436+
from .v2020_11_01.operations import NetworkManagementClientOperationsMixin as OperationClass
423437
else:
424438
raise ValueError("API version {} does not have operation 'get_bastion_shareable_link'".format(api_version))
425439
mixin_instance = OperationClass()
@@ -444,7 +458,7 @@ def supported_security_providers(
444458
:type virtual_wan_name: str
445459
:keyword callable cls: A custom type or function that will be passed the direct response
446460
:return: VirtualWanSecurityProviders, or the result of cls(response)
447-
:rtype: ~azure.mgmt.network.v2020_08_01.models.VirtualWanSecurityProviders
461+
:rtype: ~azure.mgmt.network.v2020_11_01.models.VirtualWanSecurityProviders
448462
:raises: ~azure.core.exceptions.HttpResponseError
449463
"""
450464
api_version = self._get_api_version('supported_security_providers')
@@ -484,6 +498,8 @@ def supported_security_providers(
484498
from .v2020_07_01.operations import NetworkManagementClientOperationsMixin as OperationClass
485499
elif api_version == '2020-08-01':
486500
from .v2020_08_01.operations import NetworkManagementClientOperationsMixin as OperationClass
501+
elif api_version == '2020-11-01':
502+
from .v2020_11_01.operations import NetworkManagementClientOperationsMixin as OperationClass
487503
else:
488504
raise ValueError("API version {} does not have operation 'supported_security_providers'".format(api_version))
489505
mixin_instance = OperationClass()

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@
55
# license information.
66
# --------------------------------------------------------------------------
77

8-
VERSION = "17.1.0"
8+
VERSION = "18.0.0"

0 commit comments

Comments
 (0)