Skip to content

Commit

Permalink
Network 20190801 (#7715)
Browse files Browse the repository at this point in the history
* changes for network 2019-08-01

* add network 2019_08

* update network recording

* changelog

* Update HISTORY.rst
  • Loading branch information
fengzhou-msft authored Oct 9, 2019
1 parent eb3cdd1 commit a365d9c
Show file tree
Hide file tree
Showing 113 changed files with 74,654 additions and 2,135 deletions.
29 changes: 29 additions & 0 deletions sdk/network/azure-mgmt-network/HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,35 @@
Release History
===============

6.0.0 (2019-10-09)
++++++++++++++++++

**Features**

- Model VirtualNetwork has a new parameter bgp_communities
- Model VirtualHub has a new parameter azure_firewall
- Model VirtualHub has a new parameter security_provider_name
- Model P2SVpnGateway has a new parameter p2s_connection_configurations
- Model P2SVpnGateway has a new parameter vpn_server_configuration
- Model AzureFirewall has a new parameter sku
- Model VirtualNetworkGateway has a new parameter inbound_dns_forwarding_endpoint
- Model VirtualNetworkGateway has a new parameter enable_dns_forwarding
- Added operation P2sVpnGatewaysOperations.get_p2s_vpn_connection_health_detailed
- Added operation NetworkManagementClientOperationsMixin.generatevirtualwanvpnserverconfigurationvpnprofile
- Added operation group VpnServerConfigurationsOperations
- Added operation group VpnServerConfigurationsAssociatedWithVirtualWanOperations
- Added operation group AvailableServiceAliasesOperations

**Breaking changes**

- Model WebApplicationFirewallPolicy has a new required parameter managed_rules
- Model P2SVpnGateway no longer has parameter vpn_client_address_pool
- Model P2SVpnGateway no longer has parameter custom_routes
- Model P2SVpnGateway no longer has parameter p2_svpn_server_configuration
- Model VirtualWAN no longer has parameter security_provider_name
- Model VirtualWAN no longer has parameter p2_svpn_server_configurations
- Model PolicySettings has a new signature

5.1.0 (2019-10-03)
++++++++++++++++++

Expand Down

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.v2019_07_01.models.DnsNameAvailabilityResult or
~azure.mgmt.network.v2019_08_01.models.DnsNameAvailabilityResult or
~msrest.pipeline.ClientRawResponse
:raises: :class:`CloudError<msrestazure.azure_exceptions.CloudError>`
Expand Down Expand Up @@ -81,6 +81,8 @@ def check_dns_name_availability(self, location, domain_name_label, custom_header
from .v2019_06_01.operations import NetworkManagementClientOperationsMixin as OperationClass
elif api_version == '2019-07-01':
from .v2019_07_01.operations import NetworkManagementClientOperationsMixin as OperationClass
elif api_version == '2019-08-01':
from .v2019_08_01.operations import NetworkManagementClientOperationsMixin as OperationClass
else:
raise NotImplementedError("APIVersion {} is not available".format(api_version))
mixin_instance = OperationClass()
Expand All @@ -90,6 +92,49 @@ def check_dns_name_availability(self, location, domain_name_label, custom_header
mixin_instance._deserialize = Deserializer(self._models_dict(api_version))
return mixin_instance.check_dns_name_availability(location, domain_name_label, custom_headers, raw, **operation_config)

def generatevirtualwanvpnserverconfigurationvpnprofile(self, resource_group_name, virtual_wan_name, vpn_server_configuration_resource_id=None, authentication_method=None, custom_headers=None, raw=False, polling=True, **operation_config):
"""Generates a unique VPN profile for P2S clients for VirtualWan and
associated VpnServerConfiguration combination in the specified resource
group.
:param resource_group_name: The resource group name.
:type resource_group_name: str
:param virtual_wan_name: The name of the VirtualWAN whose associated
VpnServerConfigurations is needed.
:type virtual_wan_name: str
:param vpn_server_configuration_resource_id: VpnServerConfiguration
partial resource uri with which VirtualWan is associated to.
:type vpn_server_configuration_resource_id: str
:param authentication_method: VPN client authentication method.
Possible values include: 'EAPTLS', 'EAPMSCHAPv2'
:type authentication_method: str or
~azure.mgmt.network.v2019_08_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
:param polling: True for ARMPolling, False for no polling, or a
polling object for personal polling strategy
:return: An instance of LROPoller that returns VpnProfileResponse or
ClientRawResponse<VpnProfileResponse> if raw==True
:rtype:
~msrestazure.azure_operation.AzureOperationPoller[~azure.mgmt.network.v2019_08_01.models.VpnProfileResponse]
or
~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[~azure.mgmt.network.v2019_08_01.models.VpnProfileResponse]]
:raises: :class:`CloudError<msrestazure.azure_exceptions.CloudError>`
"""
api_version = self._get_api_version('generatevirtualwanvpnserverconfigurationvpnprofile')
if api_version == '2019-08-01':
from .v2019_08_01.operations import NetworkManagementClientOperationsMixin as OperationClass
else:
raise NotImplementedError("APIVersion {} is not available".format(api_version))
mixin_instance = OperationClass()
mixin_instance._client = self._client
mixin_instance.config = self.config
mixin_instance._serialize = Serializer(self._models_dict(api_version))
mixin_instance._deserialize = Deserializer(self._models_dict(api_version))
return mixin_instance.generatevirtualwanvpnserverconfigurationvpnprofile(resource_group_name, virtual_wan_name, vpn_server_configuration_resource_id, authentication_method, custom_headers, raw, polling, **operation_config)

def supported_security_providers(self, resource_group_name, virtual_wan_name, custom_headers=None, raw=False, **operation_config):
"""Gives the supported security providers for the virtual wan.
Expand All @@ -105,10 +150,9 @@ 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.v2019_07_01.models.VirtualWanSecurityProviders or
~azure.mgmt.network.v2019_08_01.models.VirtualWanSecurityProviders or
~msrest.pipeline.ClientRawResponse
:raises:
:class:`ErrorException<azure.mgmt.network.v2019_07_01.models.ErrorException>`
:raises: :class:`CloudError<msrestazure.azure_exceptions.CloudError>`
"""
api_version = self._get_api_version('supported_security_providers')
Expand All @@ -128,6 +172,8 @@ def supported_security_providers(self, resource_group_name, virtual_wan_name, cu
from .v2019_06_01.operations import NetworkManagementClientOperationsMixin as OperationClass
elif api_version == '2019-07-01':
from .v2019_07_01.operations import NetworkManagementClientOperationsMixin as OperationClass
elif api_version == '2019-08-01':
from .v2019_08_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 @@ -6,4 +6,4 @@
# --------------------------------------------------------------------------
from .v2018_07_01.models import *
from .v2019_02_01.models import *
from .v2019_07_01.models import *
from .v2019_08_01.models import *
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

0 comments on commit a365d9c

Please sign in to comment.