Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def check_dns_name_availability(self, location, domain_name_label, custom_header
overrides<msrest:optionsforoperations>`.
:return: DnsNameAvailabilityResult or ClientRawResponse if raw=true
:rtype:
~azure.mgmt.network.v2020_03_01.models.DnsNameAvailabilityResult or
~azure.mgmt.network.v2020_04_01.models.DnsNameAvailabilityResult or
~msrest.pipeline.ClientRawResponse
:raises: :class:`CloudError<msrestazure.azure_exceptions.CloudError>`

Expand Down Expand Up @@ -91,6 +91,8 @@ def check_dns_name_availability(self, location, domain_name_label, custom_header
from .v2019_12_01.operations import NetworkManagementClientOperationsMixin as OperationClass
elif api_version == '2020-03-01':
from .v2020_03_01.operations import NetworkManagementClientOperationsMixin as OperationClass
elif api_version == '2020-04-01':
from .v2020_04_01.operations import NetworkManagementClientOperationsMixin as OperationClass
else:
raise NotImplementedError("APIVersion {} is not available".format(api_version))
mixin_instance = OperationClass()
Expand All @@ -111,7 +113,7 @@ def delete_bastion_shareable_link(self, resource_group_name, bastion_host_name,
:type bastion_host_name: str
:param vms: List of VM references.
:type vms:
list[~azure.mgmt.network.v2020_03_01.models.BastionShareableLink]
list[~azure.mgmt.network.v2020_04_01.models.BastionShareableLink]
:param dict custom_headers: headers that will be added to the request
:param bool raw: The poller return type is ClientRawResponse, the
direct response alongside the deserialized response
Expand All @@ -133,6 +135,8 @@ def delete_bastion_shareable_link(self, resource_group_name, bastion_host_name,
from .v2019_12_01.operations import NetworkManagementClientOperationsMixin as OperationClass
elif api_version == '2020-03-01':
from .v2020_03_01.operations import NetworkManagementClientOperationsMixin as OperationClass
elif api_version == '2020-04-01':
from .v2020_04_01.operations import NetworkManagementClientOperationsMixin as OperationClass
else:
raise NotImplementedError("APIVersion {} is not available".format(api_version))
mixin_instance = OperationClass()
Expand All @@ -159,7 +163,7 @@ def disconnect_active_sessions(self, resource_group_name, bastion_host_name, ses
overrides<msrest:optionsforoperations>`.
:return: An iterator like instance of BastionSessionState
:rtype:
~azure.mgmt.network.v2020_03_01.models.BastionSessionStatePaged[~azure.mgmt.network.v2020_03_01.models.BastionSessionState]
~azure.mgmt.network.v2020_04_01.models.BastionSessionStatePaged[~azure.mgmt.network.v2020_04_01.models.BastionSessionState]
:raises: :class:`CloudError<msrestazure.azure_exceptions.CloudError>`

"""
Expand All @@ -172,6 +176,8 @@ def disconnect_active_sessions(self, resource_group_name, bastion_host_name, ses
from .v2019_12_01.operations import NetworkManagementClientOperationsMixin as OperationClass
elif api_version == '2020-03-01':
from .v2020_03_01.operations import NetworkManagementClientOperationsMixin as OperationClass
elif api_version == '2020-04-01':
from .v2020_04_01.operations import NetworkManagementClientOperationsMixin as OperationClass
else:
raise NotImplementedError("APIVersion {} is not available".format(api_version))
mixin_instance = OperationClass()
Expand All @@ -198,7 +204,7 @@ def generatevirtualwanvpnserverconfigurationvpnprofile(self, resource_group_name
:param authentication_method: VPN client authentication method.
Possible values include: 'EAPTLS', 'EAPMSCHAPv2'
:type authentication_method: str or
~azure.mgmt.network.v2020_03_01.models.AuthenticationMethod
~azure.mgmt.network.v2020_04_01.models.AuthenticationMethod
:param dict custom_headers: headers that will be added to the request
:param bool raw: The poller return type is ClientRawResponse, the
direct response alongside the deserialized response
Expand All @@ -207,9 +213,9 @@ def generatevirtualwanvpnserverconfigurationvpnprofile(self, resource_group_name
:return: An instance of LROPoller that returns VpnProfileResponse or
ClientRawResponse<VpnProfileResponse> if raw==True
:rtype:
~msrestazure.azure_operation.AzureOperationPoller[~azure.mgmt.network.v2020_03_01.models.VpnProfileResponse]
~msrestazure.azure_operation.AzureOperationPoller[~azure.mgmt.network.v2020_04_01.models.VpnProfileResponse]
or
~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[~azure.mgmt.network.v2020_03_01.models.VpnProfileResponse]]
~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[~azure.mgmt.network.v2020_04_01.models.VpnProfileResponse]]
:raises: :class:`CloudError<msrestazure.azure_exceptions.CloudError>`

"""
Expand All @@ -224,6 +230,8 @@ def generatevirtualwanvpnserverconfigurationvpnprofile(self, resource_group_name
from .v2019_12_01.operations import NetworkManagementClientOperationsMixin as OperationClass
elif api_version == '2020-03-01':
from .v2020_03_01.operations import NetworkManagementClientOperationsMixin as OperationClass
elif api_version == '2020-04-01':
from .v2020_04_01.operations import NetworkManagementClientOperationsMixin as OperationClass
else:
raise NotImplementedError("APIVersion {} is not available".format(api_version))
mixin_instance = OperationClass()
Expand All @@ -250,9 +258,9 @@ def get_active_sessions(self, resource_group_name, bastion_host_name, custom_hea
BastionActiveSessionListResult or
ClientRawResponse<BastionActiveSessionListResult> if raw==True
:rtype:
~msrestazure.azure_operation.AzureOperationPoller[~azure.mgmt.network.v2020_03_01.models.BastionActiveSessionListResult]
~msrestazure.azure_operation.AzureOperationPoller[~azure.mgmt.network.v2020_04_01.models.BastionActiveSessionListResult]
or
~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[~azure.mgmt.network.v2020_03_01.models.BastionActiveSessionListResult]]
~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[~azure.mgmt.network.v2020_04_01.models.BastionActiveSessionListResult]]
:raises: :class:`CloudError<msrestazure.azure_exceptions.CloudError>`

"""
Expand All @@ -265,6 +273,8 @@ def get_active_sessions(self, resource_group_name, bastion_host_name, custom_hea
from .v2019_12_01.operations import NetworkManagementClientOperationsMixin as OperationClass
elif api_version == '2020-03-01':
from .v2020_03_01.operations import NetworkManagementClientOperationsMixin as OperationClass
elif api_version == '2020-04-01':
from .v2020_04_01.operations import NetworkManagementClientOperationsMixin as OperationClass
else:
raise NotImplementedError("APIVersion {} is not available".format(api_version))
mixin_instance = OperationClass()
Expand All @@ -285,15 +295,15 @@ def get_bastion_shareable_link(self, resource_group_name, bastion_host_name, vms
:type bastion_host_name: str
:param vms: List of VM references.
:type vms:
list[~azure.mgmt.network.v2020_03_01.models.BastionShareableLink]
list[~azure.mgmt.network.v2020_04_01.models.BastionShareableLink]
:param dict custom_headers: headers that will be added to the request
:param bool raw: returns the direct response alongside the
deserialized response
:param operation_config: :ref:`Operation configuration
overrides<msrest:optionsforoperations>`.
:return: An iterator like instance of BastionShareableLink
:rtype:
~azure.mgmt.network.v2020_03_01.models.BastionShareableLinkPaged[~azure.mgmt.network.v2020_03_01.models.BastionShareableLink]
~azure.mgmt.network.v2020_04_01.models.BastionShareableLinkPaged[~azure.mgmt.network.v2020_04_01.models.BastionShareableLink]
:raises: :class:`CloudError<msrestazure.azure_exceptions.CloudError>`

"""
Expand All @@ -306,6 +316,8 @@ def get_bastion_shareable_link(self, resource_group_name, bastion_host_name, vms
from .v2019_12_01.operations import NetworkManagementClientOperationsMixin as OperationClass
elif api_version == '2020-03-01':
from .v2020_03_01.operations import NetworkManagementClientOperationsMixin as OperationClass
elif api_version == '2020-04-01':
from .v2020_04_01.operations import NetworkManagementClientOperationsMixin as OperationClass
else:
raise NotImplementedError("APIVersion {} is not available".format(api_version))
mixin_instance = OperationClass()
Expand All @@ -326,7 +338,7 @@ def put_bastion_shareable_link(self, resource_group_name, bastion_host_name, vms
:type bastion_host_name: str
:param vms: List of VM references.
:type vms:
list[~azure.mgmt.network.v2020_03_01.models.BastionShareableLink]
list[~azure.mgmt.network.v2020_04_01.models.BastionShareableLink]
:param dict custom_headers: headers that will be added to the request
:param bool raw: The poller return type is ClientRawResponse, the
direct response alongside the deserialized response
Expand All @@ -336,9 +348,9 @@ def put_bastion_shareable_link(self, resource_group_name, bastion_host_name, vms
BastionShareableLinkListResult or
ClientRawResponse<BastionShareableLinkListResult> if raw==True
:rtype:
~msrestazure.azure_operation.AzureOperationPoller[~azure.mgmt.network.v2020_03_01.models.BastionShareableLinkListResult]
~msrestazure.azure_operation.AzureOperationPoller[~azure.mgmt.network.v2020_04_01.models.BastionShareableLinkListResult]
or
~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[~azure.mgmt.network.v2020_03_01.models.BastionShareableLinkListResult]]
~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[~azure.mgmt.network.v2020_04_01.models.BastionShareableLinkListResult]]
:raises: :class:`CloudError<msrestazure.azure_exceptions.CloudError>`

"""
Expand All @@ -351,6 +363,8 @@ def put_bastion_shareable_link(self, resource_group_name, bastion_host_name, vms
from .v2019_12_01.operations import NetworkManagementClientOperationsMixin as OperationClass
elif api_version == '2020-03-01':
from .v2020_03_01.operations import NetworkManagementClientOperationsMixin as OperationClass
elif api_version == '2020-04-01':
from .v2020_04_01.operations import NetworkManagementClientOperationsMixin as OperationClass
else:
raise NotImplementedError("APIVersion {} is not available".format(api_version))
mixin_instance = OperationClass()
Expand All @@ -376,7 +390,7 @@ def supported_security_providers(self, resource_group_name, virtual_wan_name, cu
overrides<msrest:optionsforoperations>`.
:return: VirtualWanSecurityProviders or ClientRawResponse if raw=true
:rtype:
~azure.mgmt.network.v2020_03_01.models.VirtualWanSecurityProviders or
~azure.mgmt.network.v2020_04_01.models.VirtualWanSecurityProviders or
~msrest.pipeline.ClientRawResponse
:raises: :class:`CloudError<msrestazure.azure_exceptions.CloudError>`

Expand Down Expand Up @@ -408,6 +422,8 @@ def supported_security_providers(self, resource_group_name, virtual_wan_name, cu
from .v2019_12_01.operations import NetworkManagementClientOperationsMixin as OperationClass
elif api_version == '2020-03-01':
from .v2020_03_01.operations import NetworkManagementClientOperationsMixin as OperationClass
elif api_version == '2020-04-01':
from .v2020_04_01.operations import NetworkManagementClientOperationsMixin as OperationClass
else:
raise NotImplementedError("APIVersion {} is not available".format(api_version))
mixin_instance = OperationClass()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@
from .v2018_07_01.models import *
from .v2019_02_01.models import *
from .v2019_07_01.models import *
from .v2020_03_01.models import *
from .v2020_04_01.models import *
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class ConnectionMonitorsOperations(object):
:param config: Configuration of service client.
:param serializer: An object model serializer.
:param deserializer: An object model deserializer.
:ivar api_version: Client API version. Constant value: "2019-06-01".
:ivar api_version: Client API version. Constant value: "2019-07-01".
"""

models = models
Expand All @@ -36,7 +36,7 @@ def __init__(self, client, config, serializer, deserializer):
self._client = client
self._serialize = serializer
self._deserialize = deserializer
self.api_version = "2019-06-01"
self.api_version = "2019-07-01"

self.config = config

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class ConnectionMonitorsOperations(object):
:param config: Configuration of service client.
:param serializer: An object model serializer.
:param deserializer: An object model deserializer.
:ivar api_version: Client API version. Constant value: "2019-06-01".
:ivar api_version: Client API version. Constant value: "2019-08-01".
"""

models = models
Expand All @@ -36,7 +36,7 @@ def __init__(self, client, config, serializer, deserializer):
self._client = client
self._serialize = serializer
self._deserialize = deserializer
self.api_version = "2019-06-01"
self.api_version = "2019-08-01"

self.config = config

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class ConnectionMonitorsOperations(object):
:param config: Configuration of service client.
:param serializer: An object model serializer.
:param deserializer: An object model deserializer.
:ivar api_version: Client API version. Constant value: "2019-06-01".
:ivar api_version: Client API version. Constant value: "2019-09-01".
"""

models = models
Expand All @@ -36,7 +36,7 @@ def __init__(self, client, config, serializer, deserializer):
self._client = client
self._serialize = serializer
self._deserialize = deserializer
self.api_version = "2019-06-01"
self.api_version = "2019-09-01"

self.config = config

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------

from ._configuration import NetworkManagementClientConfiguration
from ._network_management_client import NetworkManagementClient
__all__ = ['NetworkManagementClient', 'NetworkManagementClientConfiguration']

from .version import VERSION

__version__ = VERSION

Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------
from msrestazure import AzureConfiguration

from .version import VERSION


class NetworkManagementClientConfiguration(AzureConfiguration):
"""Configuration for NetworkManagementClient
Note that all parameters used to create this instance are saved as instance
attributes.

:param credentials: Credentials needed for the client to connect to Azure.
:type credentials: :mod:`A msrestazure Credentials
object<msrestazure.azure_active_directory>`
:param subscription_id: The subscription credentials which uniquely
identify the Microsoft Azure subscription. The subscription ID forms part
of the URI for every service call.
:type subscription_id: str
:param str base_url: Service URL
"""

def __init__(
self, credentials, subscription_id, base_url=None):

if credentials is None:
raise ValueError("Parameter 'credentials' must not be None.")
if subscription_id is None:
raise ValueError("Parameter 'subscription_id' must not be None.")
if not base_url:
base_url = 'https://management.azure.com'

super(NetworkManagementClientConfiguration, self).__init__(base_url)

# Starting Autorest.Python 4.0.64, make connection pool activated by default
self.keep_alive = True

self.add_user_agent('azure-mgmt-network/{}'.format(VERSION))
self.add_user_agent('Azure-SDK-For-Python')

self.credentials = credentials
self.subscription_id = subscription_id
Loading