Skip to content

Commit 2c807d5

Browse files
author
SDK Automation
committed
Generated from 74b8de8baa826159aff4de582150c5c6cdc9b918
1 parent 79bb773 commit 2c807d5

File tree

123 files changed

+89888
-120
lines changed

Some content is hidden

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

123 files changed

+89888
-120
lines changed

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

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

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

Lines changed: 30 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def check_dns_name_availability(self, location, domain_name_label, custom_header
3131
overrides<msrest:optionsforoperations>`.
3232
:return: DnsNameAvailabilityResult or ClientRawResponse if raw=true
3333
:rtype:
34-
~azure.mgmt.network.v2020_06_01.models.DnsNameAvailabilityResult or
34+
~azure.mgmt.network.v2020_07_01.models.DnsNameAvailabilityResult or
3535
~msrest.pipeline.ClientRawResponse
3636
:raises: :class:`CloudError<msrestazure.azure_exceptions.CloudError>`
3737
@@ -97,6 +97,8 @@ def check_dns_name_availability(self, location, domain_name_label, custom_header
9797
from .v2020_05_01.operations import NetworkManagementClientOperationsMixin as OperationClass
9898
elif api_version == '2020-06-01':
9999
from .v2020_06_01.operations import NetworkManagementClientOperationsMixin as OperationClass
100+
elif api_version == '2020-07-01':
101+
from .v2020_07_01.operations import NetworkManagementClientOperationsMixin as OperationClass
100102
else:
101103
raise NotImplementedError("APIVersion {} is not available".format(api_version))
102104
mixin_instance = OperationClass()
@@ -117,7 +119,7 @@ def delete_bastion_shareable_link(self, resource_group_name, bastion_host_name,
117119
:type bastion_host_name: str
118120
:param vms: List of VM references.
119121
:type vms:
120-
list[~azure.mgmt.network.v2020_06_01.models.BastionShareableLink]
122+
list[~azure.mgmt.network.v2020_07_01.models.BastionShareableLink]
121123
:param dict custom_headers: headers that will be added to the request
122124
:param bool raw: The poller return type is ClientRawResponse, the
123125
direct response alongside the deserialized response
@@ -145,6 +147,8 @@ def delete_bastion_shareable_link(self, resource_group_name, bastion_host_name,
145147
from .v2020_05_01.operations import NetworkManagementClientOperationsMixin as OperationClass
146148
elif api_version == '2020-06-01':
147149
from .v2020_06_01.operations import NetworkManagementClientOperationsMixin as OperationClass
150+
elif api_version == '2020-07-01':
151+
from .v2020_07_01.operations import NetworkManagementClientOperationsMixin as OperationClass
148152
else:
149153
raise NotImplementedError("APIVersion {} is not available".format(api_version))
150154
mixin_instance = OperationClass()
@@ -171,7 +175,7 @@ def disconnect_active_sessions(self, resource_group_name, bastion_host_name, ses
171175
overrides<msrest:optionsforoperations>`.
172176
:return: An iterator like instance of BastionSessionState
173177
:rtype:
174-
~azure.mgmt.network.v2020_06_01.models.BastionSessionStatePaged[~azure.mgmt.network.v2020_06_01.models.BastionSessionState]
178+
~azure.mgmt.network.v2020_07_01.models.BastionSessionStatePaged[~azure.mgmt.network.v2020_07_01.models.BastionSessionState]
175179
:raises: :class:`CloudError<msrestazure.azure_exceptions.CloudError>`
176180
177181
"""
@@ -190,6 +194,8 @@ def disconnect_active_sessions(self, resource_group_name, bastion_host_name, ses
190194
from .v2020_05_01.operations import NetworkManagementClientOperationsMixin as OperationClass
191195
elif api_version == '2020-06-01':
192196
from .v2020_06_01.operations import NetworkManagementClientOperationsMixin as OperationClass
197+
elif api_version == '2020-07-01':
198+
from .v2020_07_01.operations import NetworkManagementClientOperationsMixin as OperationClass
193199
else:
194200
raise NotImplementedError("APIVersion {} is not available".format(api_version))
195201
mixin_instance = OperationClass()
@@ -216,7 +222,7 @@ def generatevirtualwanvpnserverconfigurationvpnprofile(self, resource_group_name
216222
:param authentication_method: VPN client authentication method.
217223
Possible values include: 'EAPTLS', 'EAPMSCHAPv2'
218224
:type authentication_method: str or
219-
~azure.mgmt.network.v2020_06_01.models.AuthenticationMethod
225+
~azure.mgmt.network.v2020_07_01.models.AuthenticationMethod
220226
:param dict custom_headers: headers that will be added to the request
221227
:param bool raw: The poller return type is ClientRawResponse, the
222228
direct response alongside the deserialized response
@@ -225,9 +231,9 @@ def generatevirtualwanvpnserverconfigurationvpnprofile(self, resource_group_name
225231
:return: An instance of LROPoller that returns VpnProfileResponse or
226232
ClientRawResponse<VpnProfileResponse> if raw==True
227233
:rtype:
228-
~msrestazure.azure_operation.AzureOperationPoller[~azure.mgmt.network.v2020_06_01.models.VpnProfileResponse]
234+
~msrestazure.azure_operation.AzureOperationPoller[~azure.mgmt.network.v2020_07_01.models.VpnProfileResponse]
229235
or
230-
~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[~azure.mgmt.network.v2020_06_01.models.VpnProfileResponse]]
236+
~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[~azure.mgmt.network.v2020_07_01.models.VpnProfileResponse]]
231237
:raises: :class:`CloudError<msrestazure.azure_exceptions.CloudError>`
232238
233239
"""
@@ -248,6 +254,8 @@ def generatevirtualwanvpnserverconfigurationvpnprofile(self, resource_group_name
248254
from .v2020_05_01.operations import NetworkManagementClientOperationsMixin as OperationClass
249255
elif api_version == '2020-06-01':
250256
from .v2020_06_01.operations import NetworkManagementClientOperationsMixin as OperationClass
257+
elif api_version == '2020-07-01':
258+
from .v2020_07_01.operations import NetworkManagementClientOperationsMixin as OperationClass
251259
else:
252260
raise NotImplementedError("APIVersion {} is not available".format(api_version))
253261
mixin_instance = OperationClass()
@@ -274,9 +282,9 @@ def get_active_sessions(self, resource_group_name, bastion_host_name, custom_hea
274282
BastionActiveSessionListResult or
275283
ClientRawResponse<BastionActiveSessionListResult> if raw==True
276284
:rtype:
277-
~msrestazure.azure_operation.AzureOperationPoller[~azure.mgmt.network.v2020_06_01.models.BastionActiveSessionListResult]
285+
~msrestazure.azure_operation.AzureOperationPoller[~azure.mgmt.network.v2020_07_01.models.BastionActiveSessionListResult]
278286
or
279-
~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[~azure.mgmt.network.v2020_06_01.models.BastionActiveSessionListResult]]
287+
~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[~azure.mgmt.network.v2020_07_01.models.BastionActiveSessionListResult]]
280288
:raises: :class:`CloudError<msrestazure.azure_exceptions.CloudError>`
281289
282290
"""
@@ -295,6 +303,8 @@ def get_active_sessions(self, resource_group_name, bastion_host_name, custom_hea
295303
from .v2020_05_01.operations import NetworkManagementClientOperationsMixin as OperationClass
296304
elif api_version == '2020-06-01':
297305
from .v2020_06_01.operations import NetworkManagementClientOperationsMixin as OperationClass
306+
elif api_version == '2020-07-01':
307+
from .v2020_07_01.operations import NetworkManagementClientOperationsMixin as OperationClass
298308
else:
299309
raise NotImplementedError("APIVersion {} is not available".format(api_version))
300310
mixin_instance = OperationClass()
@@ -315,15 +325,15 @@ def get_bastion_shareable_link(self, resource_group_name, bastion_host_name, vms
315325
:type bastion_host_name: str
316326
:param vms: List of VM references.
317327
:type vms:
318-
list[~azure.mgmt.network.v2020_06_01.models.BastionShareableLink]
328+
list[~azure.mgmt.network.v2020_07_01.models.BastionShareableLink]
319329
:param dict custom_headers: headers that will be added to the request
320330
:param bool raw: returns the direct response alongside the
321331
deserialized response
322332
:param operation_config: :ref:`Operation configuration
323333
overrides<msrest:optionsforoperations>`.
324334
:return: An iterator like instance of BastionShareableLink
325335
:rtype:
326-
~azure.mgmt.network.v2020_06_01.models.BastionShareableLinkPaged[~azure.mgmt.network.v2020_06_01.models.BastionShareableLink]
336+
~azure.mgmt.network.v2020_07_01.models.BastionShareableLinkPaged[~azure.mgmt.network.v2020_07_01.models.BastionShareableLink]
327337
:raises: :class:`CloudError<msrestazure.azure_exceptions.CloudError>`
328338
329339
"""
@@ -342,6 +352,8 @@ def get_bastion_shareable_link(self, resource_group_name, bastion_host_name, vms
342352
from .v2020_05_01.operations import NetworkManagementClientOperationsMixin as OperationClass
343353
elif api_version == '2020-06-01':
344354
from .v2020_06_01.operations import NetworkManagementClientOperationsMixin as OperationClass
355+
elif api_version == '2020-07-01':
356+
from .v2020_07_01.operations import NetworkManagementClientOperationsMixin as OperationClass
345357
else:
346358
raise NotImplementedError("APIVersion {} is not available".format(api_version))
347359
mixin_instance = OperationClass()
@@ -362,7 +374,7 @@ def put_bastion_shareable_link(self, resource_group_name, bastion_host_name, vms
362374
:type bastion_host_name: str
363375
:param vms: List of VM references.
364376
:type vms:
365-
list[~azure.mgmt.network.v2020_06_01.models.BastionShareableLink]
377+
list[~azure.mgmt.network.v2020_07_01.models.BastionShareableLink]
366378
:param dict custom_headers: headers that will be added to the request
367379
:param bool raw: The poller return type is ClientRawResponse, the
368380
direct response alongside the deserialized response
@@ -372,9 +384,9 @@ def put_bastion_shareable_link(self, resource_group_name, bastion_host_name, vms
372384
BastionShareableLinkListResult or
373385
ClientRawResponse<BastionShareableLinkListResult> if raw==True
374386
:rtype:
375-
~msrestazure.azure_operation.AzureOperationPoller[~azure.mgmt.network.v2020_06_01.models.BastionShareableLinkListResult]
387+
~msrestazure.azure_operation.AzureOperationPoller[~azure.mgmt.network.v2020_07_01.models.BastionShareableLinkListResult]
376388
or
377-
~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[~azure.mgmt.network.v2020_06_01.models.BastionShareableLinkListResult]]
389+
~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[~azure.mgmt.network.v2020_07_01.models.BastionShareableLinkListResult]]
378390
:raises: :class:`CloudError<msrestazure.azure_exceptions.CloudError>`
379391
380392
"""
@@ -393,6 +405,8 @@ def put_bastion_shareable_link(self, resource_group_name, bastion_host_name, vms
393405
from .v2020_05_01.operations import NetworkManagementClientOperationsMixin as OperationClass
394406
elif api_version == '2020-06-01':
395407
from .v2020_06_01.operations import NetworkManagementClientOperationsMixin as OperationClass
408+
elif api_version == '2020-07-01':
409+
from .v2020_07_01.operations import NetworkManagementClientOperationsMixin as OperationClass
396410
else:
397411
raise NotImplementedError("APIVersion {} is not available".format(api_version))
398412
mixin_instance = OperationClass()
@@ -418,7 +432,7 @@ def supported_security_providers(self, resource_group_name, virtual_wan_name, cu
418432
overrides<msrest:optionsforoperations>`.
419433
:return: VirtualWanSecurityProviders or ClientRawResponse if raw=true
420434
:rtype:
421-
~azure.mgmt.network.v2020_06_01.models.VirtualWanSecurityProviders or
435+
~azure.mgmt.network.v2020_07_01.models.VirtualWanSecurityProviders or
422436
~msrest.pipeline.ClientRawResponse
423437
:raises: :class:`CloudError<msrestazure.azure_exceptions.CloudError>`
424438
@@ -456,6 +470,8 @@ def supported_security_providers(self, resource_group_name, virtual_wan_name, cu
456470
from .v2020_05_01.operations import NetworkManagementClientOperationsMixin as OperationClass
457471
elif api_version == '2020-06-01':
458472
from .v2020_06_01.operations import NetworkManagementClientOperationsMixin as OperationClass
473+
elif api_version == '2020-07-01':
474+
from .v2020_07_01.operations import NetworkManagementClientOperationsMixin as OperationClass
459475
else:
460476
raise NotImplementedError("APIVersion {} is not available".format(api_version))
461477
mixin_instance = OperationClass()

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,4 @@
99
from .v2019_07_01.models import *
1010
from .v2020_04_01.models import *
1111
from .v2020_06_01.models import *
12+
from .v2020_07_01.models import *

sdk/network/azure-mgmt-network/azure/mgmt/network/v2020_05_01/models/__init__.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,6 @@
9797
from ._models_py3 import BastionActiveSessionListResult
9898
from ._models_py3 import BastionHost
9999
from ._models_py3 import BastionHostIPConfiguration
100-
from ._models_py3 import BastionHostListResult
101100
from ._models_py3 import BastionSessionState
102101
from ._models_py3 import BastionShareableLink
103102
from ._models_py3 import BastionShareableLinkListRequest
@@ -508,7 +507,6 @@
508507
from ._models import BastionActiveSessionListResult
509508
from ._models import BastionHost
510509
from ._models import BastionHostIPConfiguration
511-
from ._models import BastionHostListResult
512510
from ._models import BastionSessionState
513511
from ._models import BastionShareableLink
514512
from ._models import BastionShareableLinkListRequest
@@ -1134,7 +1132,6 @@
11341132
'BastionActiveSessionListResult',
11351133
'BastionHost',
11361134
'BastionHostIPConfiguration',
1137-
'BastionHostListResult',
11381135
'BastionSessionState',
11391136
'BastionShareableLink',
11401137
'BastionShareableLinkListRequest',

sdk/network/azure-mgmt-network/azure/mgmt/network/v2020_05_01/models/_models.py

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -4066,26 +4066,6 @@ def __init__(self, **kwargs):
40664066
self.type = None
40674067

40684068

4069-
class BastionHostListResult(Model):
4070-
"""Response for ListBastionHosts API service call.
4071-
4072-
:param value: List of Bastion Hosts in a resource group.
4073-
:type value: list[~azure.mgmt.network.v2020_05_01.models.BastionHost]
4074-
:param next_link: URL to get the next set of results.
4075-
:type next_link: str
4076-
"""
4077-
4078-
_attribute_map = {
4079-
'value': {'key': 'value', 'type': '[BastionHost]'},
4080-
'next_link': {'key': 'nextLink', 'type': 'str'},
4081-
}
4082-
4083-
def __init__(self, **kwargs):
4084-
super(BastionHostListResult, self).__init__(**kwargs)
4085-
self.value = kwargs.get('value', None)
4086-
self.next_link = kwargs.get('next_link', None)
4087-
4088-
40894069
class BastionSessionState(Model):
40904070
"""The session state detail for a target.
40914071

sdk/network/azure-mgmt-network/azure/mgmt/network/v2020_05_01/models/_models_py3.py

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -4066,26 +4066,6 @@ def __init__(self, *, subnet, public_ip_address, id: str=None, private_ip_alloca
40664066
self.type = None
40674067

40684068

4069-
class BastionHostListResult(Model):
4070-
"""Response for ListBastionHosts API service call.
4071-
4072-
:param value: List of Bastion Hosts in a resource group.
4073-
:type value: list[~azure.mgmt.network.v2020_05_01.models.BastionHost]
4074-
:param next_link: URL to get the next set of results.
4075-
:type next_link: str
4076-
"""
4077-
4078-
_attribute_map = {
4079-
'value': {'key': 'value', 'type': '[BastionHost]'},
4080-
'next_link': {'key': 'nextLink', 'type': 'str'},
4081-
}
4082-
4083-
def __init__(self, *, value=None, next_link: str=None, **kwargs) -> None:
4084-
super(BastionHostListResult, self).__init__(**kwargs)
4085-
self.value = value
4086-
self.next_link = next_link
4087-
4088-
40894069
class BastionSessionState(Model):
40904070
"""The session state detail for a target.
40914071

sdk/network/azure-mgmt-network/azure/mgmt/network/v2020_05_01/operations/_virtual_networks_operations.py

Lines changed: 0 additions & 61 deletions
Original file line numberDiff line numberDiff line change
@@ -629,64 +629,3 @@ def internal_paging(next_link=None):
629629

630630
return deserialized
631631
list_usage.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/usages'}
632-
633-
def get_bastion_hosts(
634-
self, resource_group_name, virtual_network_name, custom_headers=None, raw=False, **operation_config):
635-
"""Get a list of bastion hosts accessible from the given network.
636-
637-
:param resource_group_name: The name of the resource group.
638-
:type resource_group_name: str
639-
:param virtual_network_name: The name of the virtual network.
640-
:type virtual_network_name: str
641-
:param dict custom_headers: headers that will be added to the request
642-
:param bool raw: returns the direct response alongside the
643-
deserialized response
644-
:param operation_config: :ref:`Operation configuration
645-
overrides<msrest:optionsforoperations>`.
646-
:return: BastionHostListResult or ClientRawResponse if raw=true
647-
:rtype: ~azure.mgmt.network.v2020_05_01.models.BastionHostListResult
648-
or ~msrest.pipeline.ClientRawResponse
649-
:raises: :class:`CloudError<msrestazure.azure_exceptions.CloudError>`
650-
"""
651-
# Construct URL
652-
url = self.get_bastion_hosts.metadata['url']
653-
path_format_arguments = {
654-
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'),
655-
'virtualNetworkName': self._serialize.url("virtual_network_name", virtual_network_name, 'str'),
656-
'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str')
657-
}
658-
url = self._client.format_url(url, **path_format_arguments)
659-
660-
# Construct parameters
661-
query_parameters = {}
662-
query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str')
663-
664-
# Construct headers
665-
header_parameters = {}
666-
header_parameters['Accept'] = 'application/json'
667-
if self.config.generate_client_request_id:
668-
header_parameters['x-ms-client-request-id'] = str(uuid.uuid1())
669-
if custom_headers:
670-
header_parameters.update(custom_headers)
671-
if self.config.accept_language is not None:
672-
header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str')
673-
674-
# Construct and send request
675-
request = self._client.get(url, query_parameters, header_parameters)
676-
response = self._client.send(request, stream=False, **operation_config)
677-
678-
if response.status_code not in [200]:
679-
exp = CloudError(response)
680-
exp.request_id = response.headers.get('x-ms-request-id')
681-
raise exp
682-
683-
deserialized = None
684-
if response.status_code == 200:
685-
deserialized = self._deserialize('BastionHostListResult', response)
686-
687-
if raw:
688-
client_raw_response = ClientRawResponse(deserialized, response)
689-
return client_raw_response
690-
691-
return deserialized
692-
get_bastion_hosts.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/bastionHosts'}
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# coding=utf-8
2+
# --------------------------------------------------------------------------
3+
# Copyright (c) Microsoft Corporation. All rights reserved.
4+
# Licensed under the MIT License. See License.txt in the project root for
5+
# license information.
6+
#
7+
# Code generated by Microsoft (R) AutoRest Code Generator.
8+
# Changes may cause incorrect behavior and will be lost if the code is
9+
# regenerated.
10+
# --------------------------------------------------------------------------
11+
12+
from ._configuration import NetworkManagementClientConfiguration
13+
from ._network_management_client import NetworkManagementClient
14+
__all__ = ['NetworkManagementClient', 'NetworkManagementClientConfiguration']
15+
16+
from .version import VERSION
17+
18+
__version__ = VERSION
19+

0 commit comments

Comments
 (0)