Skip to content

Commit

Permalink
[AutoPR] network/resource-manager (#3246)
Browse files Browse the repository at this point in the history
* Generated from 40a59444fdb1c16031dbb33bcb8c81c12effb1c5 (#3245)

Add network 2018-07-01 API to Go sdk

Also moved Go SDK config to its own config file.

* Generated from aafca9c5d4b05246548aeb1b83ce0f1c96c1f635 (#3273)

CR rename

* [AutoPR network/resource-manager] Local september branch merge to master (#3316)

* Generated from cae1d45d0e97bdb064573cb8cb684b881656e4ff

Merge branch 'master' into Network-September-Release

# Conflicts:
#	package.json
#	specification/authorization/resource-manager/readme.nodejs.md
#	specification/batch/data-plane/Microsoft.Batch/stable/2018-08-01.7.0/BatchService.json
#	specification/batch/data-plane/readme.md
#	specification/batch/data-plane/readme.nodejs.md
#	specification/batchai/resource-manager/readme.nodejs.md
#	specification/dns/resource-manager/readme.nodejs.md
#	specification/network/resource-manager/readme.md
#	specification/notificationhubs/resource-manager/readme.nodejs.md
#	specification/storage/resource-manager/readme.nodejs.md
#	specification/storagesync/resource-manager/readme.nodejs.md

* Generated from ec5a468540d009a1c1a5ea68073816c00baddd5d

fixed api version in azure firewall example

* Packaging update of azure-mgmt-network

* Generated from e4e4d8af1431b33e8cc8dc7a46448c06dd90d7a4

Merge branch 'Network-September-Release' into local-september-branch

* 2.2.0

* Make 2018-08-01 the default
  • Loading branch information
AutorestCI authored and lmazuel committed Sep 11, 2018
1 parent 7351ae0 commit c4c28c7
Show file tree
Hide file tree
Showing 677 changed files with 65,492 additions and 1,447 deletions.
66 changes: 66 additions & 0 deletions azure-mgmt-network/HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,72 @@
Release History
===============

2.2.0 (2018-09-11)
++++++++++++++++++

Default API version is now 2018-08-01

**Features**

- Model AzureFirewall has a new parameter nat_rule_collections
- Model VirtualHub has a new parameter route_table
- Model VirtualHub has a new parameter virtual_network_connections
- Model VirtualHub has a new parameter p2_svpn_gateway
- Model VirtualHub has a new parameter express_route_gateway
- Model VirtualHub has a new parameter vpn_gateway
- Model VirtualWAN has a new parameter allow_vnet_to_vnet_traffic
- Model VirtualWAN has a new parameter p2_svpn_server_configurations
- Model VirtualWAN has a new parameter office365_local_breakout_category
- Model VirtualWAN has a new parameter allow_branch_to_branch_traffic
- Model VirtualWAN has a new parameter security_provider_name
- Model VpnSite has a new parameter is_security_site
- Model VpnConnection has a new parameter connection_bandwidth
- Model VpnConnection has a new parameter enable_internet_security
- Model VpnConnection has a new parameter vpn_connection_protocol_type
- Model VpnConnection has a new parameter enable_rate_limiting
- Model ServiceEndpointPolicy has a new parameter subnets
- Model AzureFirewallApplicationRule has a new parameter fqdn_tags
- Model AzureFirewallApplicationRule has a new parameter target_fqdns
- Model VpnGateway has a new parameter vpn_gateway_scale_unit
- Model ApplicationGatewayBackendHttpSettings has a new parameter trusted_root_certificates
- Model VirtualNetworkGatewayConnection has a new parameter connection_protocol
- Model ExpressRouteCircuitPeering has a new parameter express_route_connection
- Model Subnet has a new parameter delegations
- Model Subnet has a new parameter address_prefixes
- Model Subnet has a new parameter ip_configuration_profiles
- Model Subnet has a new parameter service_association_links
- Model Subnet has a new parameter interface_endpoints
- Model Subnet has a new parameter purpose
- Model ApplicationGateway has a new parameter trusted_root_certificates
- Model NetworkInterface has a new parameter tap_configurations
- Model NetworkInterface has a new parameter hosted_workloads
- Model NetworkInterface has a new parameter interface_endpoint
- Model VirtualNetworkGatewayConnectionListEntity has a new parameter connection_protocol
- Model HubVirtualNetworkConnection has a new parameter enable_internet_security
- Model NetworkInterfaceIPConfiguration has a new parameter virtual_network_taps
- Added operation VirtualNetworkGatewaysOperations.reset_vpn_client_shared_key
- Added operation group ExpressRouteConnectionsOperations
- Added operation group AzureFirewallFqdnTagsOperations
- Added operation group VirtualNetworkTapsOperations
- Added operation group NetworkProfilesOperations
- Added operation group P2sVpnServerConfigurationsOperations
- Added operation group AvailableDelegationsOperations
- Added operation group InterfaceEndpointsOperations
- Added operation group P2sVpnGatewaysOperations
- Added operation group AvailableResourceGroupDelegationsOperations
- Added operation group ExpressRouteGatewaysOperations
- Added operation group NetworkInterfaceTapConfigurationsOperations

**Breaking changes**

- Model VirtualHub no longer has parameter hub_virtual_network_connections
- Model VpnConnection no longer has parameter connection_bandwidth_in_mbps
- Model AzureFirewallApplicationRule no longer has parameter target_urls
- Model VpnGateway no longer has parameter policies
- Model AzureFirewallIPConfiguration no longer has parameter internal_public_ip_address
- Model ApplicationGatewayAutoscaleConfiguration has a new signature
- Renamed virtual_wa_ns to virtual_wans

2.1.0 (2018-08-28)
++++++++++++++++++

Expand Down
2 changes: 1 addition & 1 deletion azure-mgmt-network/azure/mgmt/network/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
# Licensed under the MIT License. See License.txt in the project root for
# license information.
# --------------------------------------------------------------------------
from .v2018_07_01.models import *
from .v2018_08_01.models import *
299 changes: 294 additions & 5 deletions azure-mgmt-network/azure/mgmt/network/network_management_client.py

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -632,6 +632,87 @@ def get_long_running_output(response):
reset.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}/reset'}


def _reset_vpn_client_shared_key_initial(
self, resource_group_name, virtual_network_gateway_name, custom_headers=None, raw=False, **operation_config):
# Construct URL
url = self.reset_vpn_client_shared_key.metadata['url']
path_format_arguments = {
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'),
'virtualNetworkGatewayName': self._serialize.url("virtual_network_gateway_name", virtual_network_gateway_name, 'str'),
'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str')
}
url = self._client.format_url(url, **path_format_arguments)

# Construct parameters
query_parameters = {}
query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str')

# Construct headers
header_parameters = {}
if self.config.generate_client_request_id:
header_parameters['x-ms-client-request-id'] = str(uuid.uuid1())
if custom_headers:
header_parameters.update(custom_headers)
if self.config.accept_language is not None:
header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str')

# Construct and send request
request = self._client.post(url, query_parameters, header_parameters)
response = self._client.send(request, stream=False, **operation_config)

if response.status_code not in [200, 202]:
exp = CloudError(response)
exp.request_id = response.headers.get('x-ms-request-id')
raise exp

if raw:
client_raw_response = ClientRawResponse(None, response)
return client_raw_response

def reset_vpn_client_shared_key(
self, resource_group_name, virtual_network_gateway_name, custom_headers=None, raw=False, polling=True, **operation_config):
"""Resets the VPN client shared key of the virtual network gateway in the
specified resource group.
:param resource_group_name: The name of the resource group.
:type resource_group_name: str
:param virtual_network_gateway_name: The name of the virtual network
gateway.
:type virtual_network_gateway_name: str
: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 None or
ClientRawResponse<None> if raw==True
:rtype: ~msrestazure.azure_operation.AzureOperationPoller[None] or
~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[None]]
:raises: :class:`CloudError<msrestazure.azure_exceptions.CloudError>`
"""
raw_result = self._reset_vpn_client_shared_key_initial(
resource_group_name=resource_group_name,
virtual_network_gateway_name=virtual_network_gateway_name,
custom_headers=custom_headers,
raw=True,
**operation_config
)

def get_long_running_output(response):
if raw:
client_raw_response = ClientRawResponse(None, response)
return client_raw_response

lro_delay = operation_config.get(
'long_running_operation_timeout',
self.config.long_running_operation_timeout)
if polling is True: polling_method = ARMPolling(lro_delay, **operation_config)
elif polling is False: polling_method = NoPolling()
else: polling_method = polling
return LROPoller(self._client, raw_result, get_long_running_output, polling_method)
reset_vpn_client_shared_key.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}/resetvpnclientsharedkey'}


def _generatevpnclientpackage_initial(
self, resource_group_name, virtual_network_gateway_name, parameters, custom_headers=None, raw=False, **operation_config):
# Construct URL
Expand Down
18 changes: 18 additions & 0 deletions azure-mgmt-network/azure/mgmt/network/v2018_08_01/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# 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 .network_management_client import NetworkManagementClient
from .version import VERSION

__all__ = ['NetworkManagementClient']

__version__ = VERSION

Loading

0 comments on commit c4c28c7

Please sign in to comment.