Skip to content

Commit

Permalink
Generated from cee292ec6bdb6666f99e7829f7048b4d0bb9bda8
Browse files Browse the repository at this point in the history
fix network python sdk
  • Loading branch information
SDK Automation committed Jun 12, 2020
1 parent debbb83 commit 8ccdc34
Show file tree
Hide file tree
Showing 119 changed files with 85,835 additions and 41 deletions.

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_04_01.models.DnsNameAvailabilityResult or
~azure.mgmt.network.v2020_05_01.models.DnsNameAvailabilityResult or
~msrest.pipeline.ClientRawResponse
:raises: :class:`CloudError<msrestazure.azure_exceptions.CloudError>`
Expand Down Expand Up @@ -93,6 +93,8 @@ def check_dns_name_availability(self, location, domain_name_label, custom_header
from .v2020_03_01.operations import NetworkManagementClientOperationsMixin as OperationClass
elif api_version == '2020-04-01':
from .v2020_04_01.operations import NetworkManagementClientOperationsMixin as OperationClass
elif api_version == '2020-05-01':
from .v2020_05_01.operations import NetworkManagementClientOperationsMixin as OperationClass
else:
raise NotImplementedError("APIVersion {} is not available".format(api_version))
mixin_instance = OperationClass()
Expand All @@ -113,7 +115,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_04_01.models.BastionShareableLink]
list[~azure.mgmt.network.v2020_05_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 @@ -137,6 +139,8 @@ def delete_bastion_shareable_link(self, resource_group_name, bastion_host_name,
from .v2020_03_01.operations import NetworkManagementClientOperationsMixin as OperationClass
elif api_version == '2020-04-01':
from .v2020_04_01.operations import NetworkManagementClientOperationsMixin as OperationClass
elif api_version == '2020-05-01':
from .v2020_05_01.operations import NetworkManagementClientOperationsMixin as OperationClass
else:
raise NotImplementedError("APIVersion {} is not available".format(api_version))
mixin_instance = OperationClass()
Expand All @@ -163,7 +167,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_04_01.models.BastionSessionStatePaged[~azure.mgmt.network.v2020_04_01.models.BastionSessionState]
~azure.mgmt.network.v2020_05_01.models.BastionSessionStatePaged[~azure.mgmt.network.v2020_05_01.models.BastionSessionState]
:raises: :class:`CloudError<msrestazure.azure_exceptions.CloudError>`
"""
Expand All @@ -178,6 +182,8 @@ def disconnect_active_sessions(self, resource_group_name, bastion_host_name, ses
from .v2020_03_01.operations import NetworkManagementClientOperationsMixin as OperationClass
elif api_version == '2020-04-01':
from .v2020_04_01.operations import NetworkManagementClientOperationsMixin as OperationClass
elif api_version == '2020-05-01':
from .v2020_05_01.operations import NetworkManagementClientOperationsMixin as OperationClass
else:
raise NotImplementedError("APIVersion {} is not available".format(api_version))
mixin_instance = OperationClass()
Expand All @@ -204,7 +210,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_04_01.models.AuthenticationMethod
~azure.mgmt.network.v2020_05_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 @@ -213,9 +219,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_04_01.models.VpnProfileResponse]
~msrestazure.azure_operation.AzureOperationPoller[~azure.mgmt.network.v2020_05_01.models.VpnProfileResponse]
or
~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[~azure.mgmt.network.v2020_04_01.models.VpnProfileResponse]]
~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[~azure.mgmt.network.v2020_05_01.models.VpnProfileResponse]]
:raises: :class:`CloudError<msrestazure.azure_exceptions.CloudError>`
"""
Expand All @@ -232,6 +238,8 @@ def generatevirtualwanvpnserverconfigurationvpnprofile(self, resource_group_name
from .v2020_03_01.operations import NetworkManagementClientOperationsMixin as OperationClass
elif api_version == '2020-04-01':
from .v2020_04_01.operations import NetworkManagementClientOperationsMixin as OperationClass
elif api_version == '2020-05-01':
from .v2020_05_01.operations import NetworkManagementClientOperationsMixin as OperationClass
else:
raise NotImplementedError("APIVersion {} is not available".format(api_version))
mixin_instance = OperationClass()
Expand All @@ -258,9 +266,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_04_01.models.BastionActiveSessionListResult]
~msrestazure.azure_operation.AzureOperationPoller[~azure.mgmt.network.v2020_05_01.models.BastionActiveSessionListResult]
or
~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[~azure.mgmt.network.v2020_04_01.models.BastionActiveSessionListResult]]
~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[~azure.mgmt.network.v2020_05_01.models.BastionActiveSessionListResult]]
:raises: :class:`CloudError<msrestazure.azure_exceptions.CloudError>`
"""
Expand All @@ -275,6 +283,8 @@ def get_active_sessions(self, resource_group_name, bastion_host_name, custom_hea
from .v2020_03_01.operations import NetworkManagementClientOperationsMixin as OperationClass
elif api_version == '2020-04-01':
from .v2020_04_01.operations import NetworkManagementClientOperationsMixin as OperationClass
elif api_version == '2020-05-01':
from .v2020_05_01.operations import NetworkManagementClientOperationsMixin as OperationClass
else:
raise NotImplementedError("APIVersion {} is not available".format(api_version))
mixin_instance = OperationClass()
Expand All @@ -295,15 +305,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_04_01.models.BastionShareableLink]
list[~azure.mgmt.network.v2020_05_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_04_01.models.BastionShareableLinkPaged[~azure.mgmt.network.v2020_04_01.models.BastionShareableLink]
~azure.mgmt.network.v2020_05_01.models.BastionShareableLinkPaged[~azure.mgmt.network.v2020_05_01.models.BastionShareableLink]
:raises: :class:`CloudError<msrestazure.azure_exceptions.CloudError>`
"""
Expand All @@ -318,6 +328,8 @@ def get_bastion_shareable_link(self, resource_group_name, bastion_host_name, vms
from .v2020_03_01.operations import NetworkManagementClientOperationsMixin as OperationClass
elif api_version == '2020-04-01':
from .v2020_04_01.operations import NetworkManagementClientOperationsMixin as OperationClass
elif api_version == '2020-05-01':
from .v2020_05_01.operations import NetworkManagementClientOperationsMixin as OperationClass
else:
raise NotImplementedError("APIVersion {} is not available".format(api_version))
mixin_instance = OperationClass()
Expand All @@ -338,7 +350,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_04_01.models.BastionShareableLink]
list[~azure.mgmt.network.v2020_05_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 @@ -348,9 +360,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_04_01.models.BastionShareableLinkListResult]
~msrestazure.azure_operation.AzureOperationPoller[~azure.mgmt.network.v2020_05_01.models.BastionShareableLinkListResult]
or
~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[~azure.mgmt.network.v2020_04_01.models.BastionShareableLinkListResult]]
~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[~azure.mgmt.network.v2020_05_01.models.BastionShareableLinkListResult]]
:raises: :class:`CloudError<msrestazure.azure_exceptions.CloudError>`
"""
Expand All @@ -365,6 +377,8 @@ def put_bastion_shareable_link(self, resource_group_name, bastion_host_name, vms
from .v2020_03_01.operations import NetworkManagementClientOperationsMixin as OperationClass
elif api_version == '2020-04-01':
from .v2020_04_01.operations import NetworkManagementClientOperationsMixin as OperationClass
elif api_version == '2020-05-01':
from .v2020_05_01.operations import NetworkManagementClientOperationsMixin as OperationClass
else:
raise NotImplementedError("APIVersion {} is not available".format(api_version))
mixin_instance = OperationClass()
Expand All @@ -390,7 +404,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_04_01.models.VirtualWanSecurityProviders or
~azure.mgmt.network.v2020_05_01.models.VirtualWanSecurityProviders or
~msrest.pipeline.ClientRawResponse
:raises: :class:`CloudError<msrestazure.azure_exceptions.CloudError>`
Expand Down Expand Up @@ -424,6 +438,8 @@ def supported_security_providers(self, resource_group_name, virtual_wan_name, cu
from .v2020_03_01.operations import NetworkManagementClientOperationsMixin as OperationClass
elif api_version == '2020-04-01':
from .v2020_04_01.operations import NetworkManagementClientOperationsMixin as OperationClass
elif api_version == '2020-05-01':
from .v2020_05_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 @@ -8,3 +8,4 @@
from .v2019_02_01.models import *
from .v2019_07_01.models import *
from .v2020_04_01.models import *
from .v2020_05_01.models import *
Original file line number Diff line number Diff line change
Expand Up @@ -921,7 +921,6 @@
RouteNextHopType,
PublicIPAddressSkuName,
DdosSettingsProtectionCoverage,
VirtualNetworkPeeringState,
TransportProtocol,
ApplicationGatewayCookieBasedAffinity,
ApplicationGatewayBackendHealthServerHealth,
Expand Down Expand Up @@ -1004,6 +1003,7 @@
PublicIPPrefixSkuName,
SecurityProviderName,
SecurityPartnerProviderConnectionStatus,
VirtualNetworkPeeringState,
VirtualNetworkGatewayType,
VpnType,
VpnGatewayGeneration,
Expand Down Expand Up @@ -1546,7 +1546,6 @@
'RouteNextHopType',
'PublicIPAddressSkuName',
'DdosSettingsProtectionCoverage',
'VirtualNetworkPeeringState',
'TransportProtocol',
'ApplicationGatewayCookieBasedAffinity',
'ApplicationGatewayBackendHealthServerHealth',
Expand Down Expand Up @@ -1629,6 +1628,7 @@
'PublicIPPrefixSkuName',
'SecurityProviderName',
'SecurityPartnerProviderConnectionStatus',
'VirtualNetworkPeeringState',
'VirtualNetworkGatewayType',
'VpnType',
'VpnGatewayGeneration',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9546,31 +9546,37 @@ def __init__(self, **kwargs):
class LoadBalancerBackendAddress(Model):
"""Load balancer backend addresses.

Variables are only populated by the server, and will be ignored when
sending a request.

:param virtual_network: Reference to an existing virtual network.
:type virtual_network:
~azure.mgmt.network.v2020_04_01.models.VirtualNetwork
:type virtual_network: ~azure.mgmt.network.v2020_04_01.models.SubResource
:param ip_address: IP Address belonging to the referenced virtual network.
:type ip_address: str
:param network_interface_ip_configuration: Reference to IP address defined
:ivar network_interface_ip_configuration: Reference to IP address defined
in network interfaces.
:type network_interface_ip_configuration:
~azure.mgmt.network.v2020_04_01.models.NetworkInterfaceIPConfiguration
:vartype network_interface_ip_configuration:
~azure.mgmt.network.v2020_04_01.models.SubResource
:param name: Name of the backend address.
:type name: str
"""

_validation = {
'network_interface_ip_configuration': {'readonly': True},
}

_attribute_map = {
'virtual_network': {'key': 'properties.virtualNetwork', 'type': 'VirtualNetwork'},
'virtual_network': {'key': 'properties.virtualNetwork', 'type': 'SubResource'},
'ip_address': {'key': 'properties.ipAddress', 'type': 'str'},
'network_interface_ip_configuration': {'key': 'properties.networkInterfaceIPConfiguration', 'type': 'NetworkInterfaceIPConfiguration'},
'network_interface_ip_configuration': {'key': 'properties.networkInterfaceIPConfiguration', 'type': 'SubResource'},
'name': {'key': 'name', 'type': 'str'},
}

def __init__(self, **kwargs):
super(LoadBalancerBackendAddress, self).__init__(**kwargs)
self.virtual_network = kwargs.get('virtual_network', None)
self.ip_address = kwargs.get('ip_address', None)
self.network_interface_ip_configuration = kwargs.get('network_interface_ip_configuration', None)
self.network_interface_ip_configuration = None
self.name = kwargs.get('name', None)


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9546,31 +9546,37 @@ def __init__(self, *, id: str=None, location: str=None, tags=None, sku=None, fro
class LoadBalancerBackendAddress(Model):
"""Load balancer backend addresses.

Variables are only populated by the server, and will be ignored when
sending a request.

:param virtual_network: Reference to an existing virtual network.
:type virtual_network:
~azure.mgmt.network.v2020_04_01.models.VirtualNetwork
:type virtual_network: ~azure.mgmt.network.v2020_04_01.models.SubResource
:param ip_address: IP Address belonging to the referenced virtual network.
:type ip_address: str
:param network_interface_ip_configuration: Reference to IP address defined
:ivar network_interface_ip_configuration: Reference to IP address defined
in network interfaces.
:type network_interface_ip_configuration:
~azure.mgmt.network.v2020_04_01.models.NetworkInterfaceIPConfiguration
:vartype network_interface_ip_configuration:
~azure.mgmt.network.v2020_04_01.models.SubResource
:param name: Name of the backend address.
:type name: str
"""

_validation = {
'network_interface_ip_configuration': {'readonly': True},
}

_attribute_map = {
'virtual_network': {'key': 'properties.virtualNetwork', 'type': 'VirtualNetwork'},
'virtual_network': {'key': 'properties.virtualNetwork', 'type': 'SubResource'},
'ip_address': {'key': 'properties.ipAddress', 'type': 'str'},
'network_interface_ip_configuration': {'key': 'properties.networkInterfaceIPConfiguration', 'type': 'NetworkInterfaceIPConfiguration'},
'network_interface_ip_configuration': {'key': 'properties.networkInterfaceIPConfiguration', 'type': 'SubResource'},
'name': {'key': 'name', 'type': 'str'},
}

def __init__(self, *, virtual_network=None, ip_address: str=None, network_interface_ip_configuration=None, name: str=None, **kwargs) -> None:
def __init__(self, *, virtual_network=None, ip_address: str=None, name: str=None, **kwargs) -> None:
super(LoadBalancerBackendAddress, self).__init__(**kwargs)
self.virtual_network = virtual_network
self.ip_address = ip_address
self.network_interface_ip_configuration = network_interface_ip_configuration
self.network_interface_ip_configuration = None
self.name = name


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,13 +86,6 @@ class DdosSettingsProtectionCoverage(str, Enum):
standard = "Standard"


class VirtualNetworkPeeringState(str, Enum):

initiated = "Initiated"
connected = "Connected"
disconnected = "Disconnected"


class TransportProtocol(str, Enum):

udp = "Udp"
Expand Down Expand Up @@ -678,6 +671,13 @@ class SecurityPartnerProviderConnectionStatus(str, Enum):
not_connected = "NotConnected"


class VirtualNetworkPeeringState(str, Enum):

initiated = "Initiated"
connected = "Connected"
disconnected = "Disconnected"


class VirtualNetworkGatewayType(str, Enum):

vpn = "Vpn"
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

Loading

0 comments on commit 8ccdc34

Please sign in to comment.