Skip to content

Commit 2550aee

Browse files
author
Zim Kalinowski
authored
Manually generating new network package (#6400)
1 parent 8d804d4 commit 2550aee

File tree

184 files changed

+89398
-9466
lines changed

Some content is hidden

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

184 files changed

+89398
-9466
lines changed

sdk/network/azure-mgmt-network/HISTORY.rst

+37
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,43 @@
33
Release History
44
===============
55

6+
4.0.0 (2019-05-19)
7+
++++++++++++++++++
8+
9+
**Features**
10+
11+
- Model Subnet has a new parameter private_link_service_network_policies
12+
- Model Subnet has a new parameter private_endpoint_network_policies
13+
- Model VpnSite has a new parameter vpn_site_links
14+
- Model LoadBalancingRule has a new parameter type
15+
- Model BackendAddressPool has a new parameter outbound_rules
16+
- Model BackendAddressPool has a new parameter type
17+
- Model InboundNatPool has a new parameter type
18+
- Model OutboundRule has a new parameter type
19+
- Model InboundNatRule has a new parameter type
20+
- Model Probe has a new parameter type
21+
- Model FrontendIPConfiguration has a new parameter private_ip_address_version
22+
- Model FrontendIPConfiguration has a new parameter type
23+
- Model AvailablePrivateEndpointType has a new parameter name
24+
- Model AvailablePrivateEndpointType has a new parameter resource_name
25+
- Model VpnConnection has a new parameter vpn_link_connections
26+
- Added operation AvailablePrivateEndpointTypesOperations.list_by_resource_group
27+
- Added operation AzureFirewallsOperations.update_tags
28+
- Added operation PrivateLinkServicesOperations.check_private_link_service_visibility_by_resource_group
29+
- Added operation PrivateLinkServicesOperations.list_auto_approved_private_link_services
30+
- Added operation PrivateLinkServicesOperations.check_private_link_service_visibility
31+
- Added operation PrivateLinkServicesOperations.list_auto_approved_private_link_services_by_resource_group
32+
- Added operation group VpnLinkConnectionsOperations
33+
- Added operation group VpnSiteLinkConnectionsOperations
34+
- Added operation group VpnSiteLinksOperations
35+
36+
**Breaking changes**
37+
38+
- Operation SubnetsOperations.prepare_network_policies has a new signature
39+
- Model PrepareNetworkPoliciesRequest no longer has parameter resource_group_name
40+
- Model AvailablePrivateEndpointType no longer has parameter service_name
41+
- Removed operation group AvailableResourceGroupPrivateEndpointTypesOperations
42+
643
3.0.0 (2019-05-24)
744
++++++++++++++++++
845

sdk/network/azure-mgmt-network/README.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ This is the Microsoft Azure Network Management Client Library.
66
Azure Resource Manager (ARM) is the next generation of management APIs that
77
replace the old Azure Service Management (ASM).
88

9-
This package has been tested with Python 2.7, 3.4, 3.5, 3.6 and 3.7.
9+
This package has been tested with Python 2.7, 3.5, 3.6 and 3.7.
1010

1111
For the older Azure Service Management (ASM) libraries, see
1212
`azure-servicemanagement-legacy <https://pypi.python.org/pypi/azure-servicemanagement-legacy>`__ library.

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

+269-15
Large diffs are not rendered by default.

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

+7-3
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.v2019_04_01.models.DnsNameAvailabilityResult or
34+
~azure.mgmt.network.v2019_06_01.models.DnsNameAvailabilityResult or
3535
~msrest.pipeline.ClientRawResponse
3636
:raises: :class:`CloudError<msrestazure.azure_exceptions.CloudError>`
3737
@@ -77,6 +77,8 @@ def check_dns_name_availability(self, location, domain_name_label, custom_header
7777
from .v2019_02_01.operations import NetworkManagementClientOperationsMixin as OperationClass
7878
elif api_version == '2019-04-01':
7979
from .v2019_04_01.operations import NetworkManagementClientOperationsMixin as OperationClass
80+
elif api_version == '2019-06-01':
81+
from .v2019_06_01.operations import NetworkManagementClientOperationsMixin as OperationClass
8082
else:
8183
raise NotImplementedError("APIVersion {} is not available".format(api_version))
8284
mixin_instance = OperationClass()
@@ -101,10 +103,10 @@ def supported_security_providers(self, resource_group_name, virtual_wan_name, cu
101103
overrides<msrest:optionsforoperations>`.
102104
:return: VirtualWanSecurityProviders or ClientRawResponse if raw=true
103105
:rtype:
104-
~azure.mgmt.network.v2019_04_01.models.VirtualWanSecurityProviders or
106+
~azure.mgmt.network.v2019_06_01.models.VirtualWanSecurityProviders or
105107
~msrest.pipeline.ClientRawResponse
106108
:raises:
107-
:class:`ErrorException<azure.mgmt.network.v2019_04_01.models.ErrorException>`
109+
:class:`ErrorException<azure.mgmt.network.v2019_06_01.models.ErrorException>`
108110
109111
"""
110112
api_version = self._get_api_version('supported_security_providers')
@@ -120,6 +122,8 @@ def supported_security_providers(self, resource_group_name, virtual_wan_name, cu
120122
from .v2019_02_01.operations import NetworkManagementClientOperationsMixin as OperationClass
121123
elif api_version == '2019-04-01':
122124
from .v2019_04_01.operations import NetworkManagementClientOperationsMixin as OperationClass
125+
elif api_version == '2019-06-01':
126+
from .v2019_06_01.operations import NetworkManagementClientOperationsMixin as OperationClass
123127
else:
124128
raise NotImplementedError("APIVersion {} is not available".format(api_version))
125129
mixin_instance = OperationClass()

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

+1-18
Original file line numberDiff line numberDiff line change
@@ -4,23 +4,6 @@
44
# Licensed under the MIT License. See License.txt in the project root for
55
# license information.
66
# --------------------------------------------------------------------------
7-
from .v2015_06_15.models import *
8-
from .v2016_09_01.models import *
9-
from .v2016_12_01.models import *
10-
from .v2017_03_01.models import *
11-
from .v2017_06_01.models import *
12-
from .v2017_08_01.models import *
13-
from .v2017_09_01.models import *
14-
from .v2017_10_01.models import *
15-
from .v2017_11_01.models import *
16-
from .v2018_01_01.models import *
17-
from .v2018_02_01.models import *
18-
from .v2018_04_01.models import *
19-
from .v2018_06_01.models import *
207
from .v2018_07_01.models import *
21-
from .v2018_08_01.models import *
22-
from .v2018_10_01.models import *
23-
from .v2018_11_01.models import *
24-
from .v2018_12_01.models import *
258
from .v2019_02_01.models import *
26-
from .v2019_04_01.models import *
9+
from .v2019_06_01.models import *

sdk/network/azure-mgmt-network/azure/mgmt/network/v2015_06_15/operations/_virtual_network_gateway_connections_operations.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -465,7 +465,7 @@ def get_long_running_output(response):
465465
lro_delay = operation_config.get(
466466
'long_running_operation_timeout',
467467
self.config.long_running_operation_timeout)
468-
if polling is True: polling_method = ARMPolling(lro_delay, **operation_config)
468+
if polling is True: polling_method = ARMPolling(lro_delay, lro_options={'final-state-via': 'location'}, **operation_config)
469469
elif polling is False: polling_method = NoPolling()
470470
else: polling_method = polling
471471
return LROPoller(self._client, raw_result, get_long_running_output, polling_method)

sdk/network/azure-mgmt-network/azure/mgmt/network/v2015_06_15/operations/_virtual_network_gateways_operations.py

+56-24
Original file line numberDiff line numberDiff line change
@@ -456,36 +456,15 @@ def get_long_running_output(response):
456456
lro_delay = operation_config.get(
457457
'long_running_operation_timeout',
458458
self.config.long_running_operation_timeout)
459-
if polling is True: polling_method = ARMPolling(lro_delay, **operation_config)
459+
if polling is True: polling_method = ARMPolling(lro_delay, lro_options={'final-state-via': 'location'}, **operation_config)
460460
elif polling is False: polling_method = NoPolling()
461461
else: polling_method = polling
462462
return LROPoller(self._client, raw_result, get_long_running_output, polling_method)
463463
reset.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}/reset'}
464464

465-
def generatevpnclientpackage(
466-
self, resource_group_name, virtual_network_gateway_name, processor_architecture=None, custom_headers=None, raw=False, **operation_config):
467-
"""Generates VPN client package for P2S client of the virtual network
468-
gateway in the specified resource group.
469465

470-
:param resource_group_name: The name of the resource group.
471-
:type resource_group_name: str
472-
:param virtual_network_gateway_name: The name of the virtual network
473-
gateway.
474-
:type virtual_network_gateway_name: str
475-
:param processor_architecture: VPN client Processor Architecture.
476-
Possible values are: 'AMD64' and 'X86'. Possible values include:
477-
'Amd64', 'X86'
478-
:type processor_architecture: str or
479-
~azure.mgmt.network.v2015_06_15.models.ProcessorArchitecture
480-
:param dict custom_headers: headers that will be added to the request
481-
:param bool raw: returns the direct response alongside the
482-
deserialized response
483-
:param operation_config: :ref:`Operation configuration
484-
overrides<msrest:optionsforoperations>`.
485-
:return: str or ClientRawResponse if raw=true
486-
:rtype: str or ~msrest.pipeline.ClientRawResponse
487-
:raises: :class:`CloudError<msrestazure.azure_exceptions.CloudError>`
488-
"""
466+
def _generatevpnclientpackage_initial(
467+
self, resource_group_name, virtual_network_gateway_name, processor_architecture=None, custom_headers=None, raw=False, **operation_config):
489468
parameters = models.VpnClientParameters(processor_architecture=processor_architecture)
490469

491470
# Construct URL
@@ -525,6 +504,7 @@ def generatevpnclientpackage(
525504
raise exp
526505

527506
deserialized = None
507+
528508
if response.status_code == 202:
529509
deserialized = self._deserialize('str', response)
530510

@@ -533,4 +513,56 @@ def generatevpnclientpackage(
533513
return client_raw_response
534514

535515
return deserialized
516+
517+
def generatevpnclientpackage(
518+
self, resource_group_name, virtual_network_gateway_name, processor_architecture=None, custom_headers=None, raw=False, polling=True, **operation_config):
519+
"""Generates VPN client package for P2S client of the virtual network
520+
gateway in the specified resource group.
521+
522+
:param resource_group_name: The name of the resource group.
523+
:type resource_group_name: str
524+
:param virtual_network_gateway_name: The name of the virtual network
525+
gateway.
526+
:type virtual_network_gateway_name: str
527+
:param processor_architecture: VPN client Processor Architecture.
528+
Possible values are: 'AMD64' and 'X86'. Possible values include:
529+
'Amd64', 'X86'
530+
:type processor_architecture: str or
531+
~azure.mgmt.network.v2015_06_15.models.ProcessorArchitecture
532+
:param dict custom_headers: headers that will be added to the request
533+
:param bool raw: The poller return type is ClientRawResponse, the
534+
direct response alongside the deserialized response
535+
:param polling: True for ARMPolling, False for no polling, or a
536+
polling object for personal polling strategy
537+
:return: An instance of LROPoller that returns str or
538+
ClientRawResponse<str> if raw==True
539+
:rtype: ~msrestazure.azure_operation.AzureOperationPoller[str] or
540+
~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[str]]
541+
:raises: :class:`CloudError<msrestazure.azure_exceptions.CloudError>`
542+
"""
543+
raw_result = self._generatevpnclientpackage_initial(
544+
resource_group_name=resource_group_name,
545+
virtual_network_gateway_name=virtual_network_gateway_name,
546+
processor_architecture=processor_architecture,
547+
custom_headers=custom_headers,
548+
raw=True,
549+
**operation_config
550+
)
551+
552+
def get_long_running_output(response):
553+
deserialized = self._deserialize('str', response)
554+
555+
if raw:
556+
client_raw_response = ClientRawResponse(deserialized, response)
557+
return client_raw_response
558+
559+
return deserialized
560+
561+
lro_delay = operation_config.get(
562+
'long_running_operation_timeout',
563+
self.config.long_running_operation_timeout)
564+
if polling is True: polling_method = ARMPolling(lro_delay, lro_options={'final-state-via': 'location'}, **operation_config)
565+
elif polling is False: polling_method = NoPolling()
566+
else: polling_method = polling
567+
return LROPoller(self._client, raw_result, get_long_running_output, polling_method)
536568
generatevpnclientpackage.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}/generatevpnclientpackage'}

sdk/network/azure-mgmt-network/azure/mgmt/network/v2016_09_01/operations/_virtual_network_gateway_connections_operations.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -637,7 +637,7 @@ def get_long_running_output(response):
637637
lro_delay = operation_config.get(
638638
'long_running_operation_timeout',
639639
self.config.long_running_operation_timeout)
640-
if polling is True: polling_method = ARMPolling(lro_delay, **operation_config)
640+
if polling is True: polling_method = ARMPolling(lro_delay, lro_options={'final-state-via': 'location'}, **operation_config)
641641
elif polling is False: polling_method = NoPolling()
642642
else: polling_method = polling
643643
return LROPoller(self._client, raw_result, get_long_running_output, polling_method)

0 commit comments

Comments
 (0)