Skip to content
Merged
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
91 changes: 91 additions & 0 deletions azure-mgmt-network/azure/mgmt/network/network_management_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -674,6 +674,19 @@ def express_route_service_providers(self):
raise NotImplementedError("APIVersion {} is not available".format(api_version))
return OperationClass(self._client, self.config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))

@property
def hub_virtual_network_connections(self):
"""Instance depends on the API version:

* 2018-04-01: :class:`HubVirtualNetworkConnectionsOperations<azure.mgmt.network.v2018_04_01.operations.HubVirtualNetworkConnectionsOperations>`
"""
api_version = self._get_api_version('hub_virtual_network_connections')
if api_version == '2018-04-01':
from .v2018_04_01.operations import HubVirtualNetworkConnectionsOperations as OperationClass
else:
raise NotImplementedError("APIVersion {} is not available".format(api_version))
return OperationClass(self._client, self.config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))

@property
def inbound_nat_rules(self):
"""Instance depends on the API version:
Expand Down Expand Up @@ -1600,6 +1613,19 @@ def usages(self):
raise NotImplementedError("APIVersion {} is not available".format(api_version))
return OperationClass(self._client, self.config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))

@property
def virtual_hubs(self):
"""Instance depends on the API version:

* 2018-04-01: :class:`VirtualHubsOperations<azure.mgmt.network.v2018_04_01.operations.VirtualHubsOperations>`
"""
api_version = self._get_api_version('virtual_hubs')
if api_version == '2018-04-01':
from .v2018_04_01.operations import VirtualHubsOperations as OperationClass
else:
raise NotImplementedError("APIVersion {} is not available".format(api_version))
return OperationClass(self._client, self.config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))

@property
def virtual_network_gateway_connections(self):
"""Instance depends on the API version:
Expand Down Expand Up @@ -1780,3 +1806,68 @@ def virtual_networks(self):
else:
raise NotImplementedError("APIVersion {} is not available".format(api_version))
return OperationClass(self._client, self.config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))

@property
def virtual_wa_ns(self):
"""Instance depends on the API version:

* 2018-04-01: :class:`VirtualWANsOperations<azure.mgmt.network.v2018_04_01.operations.VirtualWANsOperations>`
"""
api_version = self._get_api_version('virtual_wa_ns')
if api_version == '2018-04-01':
from .v2018_04_01.operations import VirtualWANsOperations as OperationClass
else:
raise NotImplementedError("APIVersion {} is not available".format(api_version))
return OperationClass(self._client, self.config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))

@property
def vpn_connections(self):
"""Instance depends on the API version:

* 2018-04-01: :class:`VpnConnectionsOperations<azure.mgmt.network.v2018_04_01.operations.VpnConnectionsOperations>`
"""
api_version = self._get_api_version('vpn_connections')
if api_version == '2018-04-01':
from .v2018_04_01.operations import VpnConnectionsOperations as OperationClass
else:
raise NotImplementedError("APIVersion {} is not available".format(api_version))
return OperationClass(self._client, self.config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))

@property
def vpn_gateways(self):
"""Instance depends on the API version:

* 2018-04-01: :class:`VpnGatewaysOperations<azure.mgmt.network.v2018_04_01.operations.VpnGatewaysOperations>`
"""
api_version = self._get_api_version('vpn_gateways')
if api_version == '2018-04-01':
from .v2018_04_01.operations import VpnGatewaysOperations as OperationClass
else:
raise NotImplementedError("APIVersion {} is not available".format(api_version))
return OperationClass(self._client, self.config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))

@property
def vpn_sites(self):
"""Instance depends on the API version:

* 2018-04-01: :class:`VpnSitesOperations<azure.mgmt.network.v2018_04_01.operations.VpnSitesOperations>`
"""
api_version = self._get_api_version('vpn_sites')
if api_version == '2018-04-01':
from .v2018_04_01.operations import VpnSitesOperations as OperationClass
else:
raise NotImplementedError("APIVersion {} is not available".format(api_version))
return OperationClass(self._client, self.config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))

@property
def vpn_sites_configuration(self):
"""Instance depends on the API version:

* 2018-04-01: :class:`VpnSitesConfigurationOperations<azure.mgmt.network.v2018_04_01.operations.VpnSitesConfigurationOperations>`
"""
api_version = self._get_api_version('vpn_sites_configuration')
if api_version == '2018-04-01':
from .v2018_04_01.operations import VpnSitesConfigurationOperations as OperationClass
else:
raise NotImplementedError("APIVersion {} is not available".format(api_version))
return OperationClass(self._client, self.config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@
from .application_gateway_url_path_map_py3 import ApplicationGatewayUrlPathMap
from .application_gateway_firewall_disabled_rule_group_py3 import ApplicationGatewayFirewallDisabledRuleGroup
from .application_gateway_web_application_firewall_configuration_py3 import ApplicationGatewayWebApplicationFirewallConfiguration
from .application_gateway_autoscale_bounds_py3 import ApplicationGatewayAutoscaleBounds
from .application_gateway_autoscale_configuration_py3 import ApplicationGatewayAutoscaleConfiguration
from .application_gateway_py3 import ApplicationGateway
from .application_gateway_firewall_rule_py3 import ApplicationGatewayFirewallRule
from .application_gateway_firewall_rule_group_py3 import ApplicationGatewayFirewallRuleGroup
Expand Down Expand Up @@ -97,7 +99,7 @@
from .outbound_nat_rule_py3 import OutboundNatRule
from .load_balancer_py3 import LoadBalancer
from .error_details_py3 import ErrorDetails
from .error_py3 import Error
from .error_py3 import Error, ErrorException
from .azure_async_operation_result_py3 import AzureAsyncOperationResult
from .effective_network_security_group_association_py3 import EffectiveNetworkSecurityGroupAssociation
from .effective_network_security_rule_py3 import EffectiveNetworkSecurityRule
Expand Down Expand Up @@ -204,6 +206,16 @@
from .virtual_network_connection_gateway_reference_py3 import VirtualNetworkConnectionGatewayReference
from .virtual_network_gateway_connection_list_entity_py3 import VirtualNetworkGatewayConnectionListEntity
from .vpn_device_script_parameters_py3 import VpnDeviceScriptParameters
from .virtual_wan_py3 import VirtualWAN
from .device_properties_py3 import DeviceProperties
from .vpn_site_py3 import VpnSite
from .get_vpn_sites_configuration_request_py3 import GetVpnSitesConfigurationRequest
from .hub_virtual_network_connection_py3 import HubVirtualNetworkConnection
from .virtual_hub_py3 import VirtualHub
from .vpn_connection_py3 import VpnConnection
from .policies_py3 import Policies
from .vpn_gateway_py3 import VpnGateway
from .vpn_site_id_py3 import VpnSiteId
except (SyntaxError, ImportError):
from .sub_resource import SubResource
from .backend_address_pool import BackendAddressPool
Expand Down Expand Up @@ -248,6 +260,8 @@
from .application_gateway_url_path_map import ApplicationGatewayUrlPathMap
from .application_gateway_firewall_disabled_rule_group import ApplicationGatewayFirewallDisabledRuleGroup
from .application_gateway_web_application_firewall_configuration import ApplicationGatewayWebApplicationFirewallConfiguration
from .application_gateway_autoscale_bounds import ApplicationGatewayAutoscaleBounds
from .application_gateway_autoscale_configuration import ApplicationGatewayAutoscaleConfiguration
from .application_gateway import ApplicationGateway
from .application_gateway_firewall_rule import ApplicationGatewayFirewallRule
from .application_gateway_firewall_rule_group import ApplicationGatewayFirewallRuleGroup
Expand Down Expand Up @@ -292,7 +306,7 @@
from .outbound_nat_rule import OutboundNatRule
from .load_balancer import LoadBalancer
from .error_details import ErrorDetails
from .error import Error
from .error import Error, ErrorException
from .azure_async_operation_result import AzureAsyncOperationResult
from .effective_network_security_group_association import EffectiveNetworkSecurityGroupAssociation
from .effective_network_security_rule import EffectiveNetworkSecurityRule
Expand Down Expand Up @@ -399,6 +413,16 @@
from .virtual_network_connection_gateway_reference import VirtualNetworkConnectionGatewayReference
from .virtual_network_gateway_connection_list_entity import VirtualNetworkGatewayConnectionListEntity
from .vpn_device_script_parameters import VpnDeviceScriptParameters
from .virtual_wan import VirtualWAN
from .device_properties import DeviceProperties
from .vpn_site import VpnSite
from .get_vpn_sites_configuration_request import GetVpnSitesConfigurationRequest
from .hub_virtual_network_connection import HubVirtualNetworkConnection
from .virtual_hub import VirtualHub
from .vpn_connection import VpnConnection
from .policies import Policies
from .vpn_gateway import VpnGateway
from .vpn_site_id import VpnSiteId
from .application_gateway_paged import ApplicationGatewayPaged
from .application_gateway_ssl_predefined_policy_paged import ApplicationGatewaySslPredefinedPolicyPaged
from .application_security_group_paged import ApplicationSecurityGroupPaged
Expand Down Expand Up @@ -439,6 +463,12 @@
from .virtual_network_gateway_connection_list_entity_paged import VirtualNetworkGatewayConnectionListEntityPaged
from .virtual_network_gateway_connection_paged import VirtualNetworkGatewayConnectionPaged
from .local_network_gateway_paged import LocalNetworkGatewayPaged
from .virtual_wan_paged import VirtualWANPaged
from .vpn_site_paged import VpnSitePaged
from .virtual_hub_paged import VirtualHubPaged
from .hub_virtual_network_connection_paged import HubVirtualNetworkConnectionPaged
from .vpn_gateway_paged import VpnGatewayPaged
from .vpn_connection_paged import VpnConnectionPaged
from .network_management_client_enums import (
TransportProtocol,
IPAllocationMethod,
Expand Down Expand Up @@ -512,6 +542,9 @@
AuthenticationMethod,
VirtualNetworkGatewayConnectionStatus,
VirtualNetworkGatewayConnectionType,
VpnConnectionStatus,
TunnelConnectionStatus,
HubVirtualNetworkConnectionStatus,
)

__all__ = [
Expand Down Expand Up @@ -558,6 +591,8 @@
'ApplicationGatewayUrlPathMap',
'ApplicationGatewayFirewallDisabledRuleGroup',
'ApplicationGatewayWebApplicationFirewallConfiguration',
'ApplicationGatewayAutoscaleBounds',
'ApplicationGatewayAutoscaleConfiguration',
'ApplicationGateway',
'ApplicationGatewayFirewallRule',
'ApplicationGatewayFirewallRuleGroup',
Expand Down Expand Up @@ -602,7 +637,7 @@
'OutboundNatRule',
'LoadBalancer',
'ErrorDetails',
'Error',
'Error', 'ErrorException',
'AzureAsyncOperationResult',
'EffectiveNetworkSecurityGroupAssociation',
'EffectiveNetworkSecurityRule',
Expand Down Expand Up @@ -709,6 +744,16 @@
'VirtualNetworkConnectionGatewayReference',
'VirtualNetworkGatewayConnectionListEntity',
'VpnDeviceScriptParameters',
'VirtualWAN',
'DeviceProperties',
'VpnSite',
'GetVpnSitesConfigurationRequest',
'HubVirtualNetworkConnection',
'VirtualHub',
'VpnConnection',
'Policies',
'VpnGateway',
'VpnSiteId',
'ApplicationGatewayPaged',
'ApplicationGatewaySslPredefinedPolicyPaged',
'ApplicationSecurityGroupPaged',
Expand Down Expand Up @@ -749,6 +794,12 @@
'VirtualNetworkGatewayConnectionListEntityPaged',
'VirtualNetworkGatewayConnectionPaged',
'LocalNetworkGatewayPaged',
'VirtualWANPaged',
'VpnSitePaged',
'VirtualHubPaged',
'HubVirtualNetworkConnectionPaged',
'VpnGatewayPaged',
'VpnConnectionPaged',
'TransportProtocol',
'IPAllocationMethod',
'IPVersion',
Expand Down Expand Up @@ -821,4 +872,7 @@
'AuthenticationMethod',
'VirtualNetworkGatewayConnectionStatus',
'VirtualNetworkGatewayConnectionType',
'VpnConnectionStatus',
'TunnelConnectionStatus',
'HubVirtualNetworkConnectionStatus',
]
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,12 @@ class ApplicationGateway(Resource):
:param enable_http2: Whether HTTP2 is enabled on the application gateway
resource.
:type enable_http2: bool
:param enable_fips: Whether FIPS is enabled on the application gateway
resource.
:type enable_fips: bool
:param autoscale_configuration: Autoscale Configuration.
:type autoscale_configuration:
~azure.mgmt.network.v2018_04_01.models.ApplicationGatewayAutoscaleConfiguration
:param resource_guid: Resource GUID property of the application gateway
resource.
:type resource_guid: str
Expand All @@ -98,6 +104,9 @@ class ApplicationGateway(Resource):
:param etag: A unique read-only string that changes whenever the resource
is updated.
:type etag: str
:param zones: A list of availability zones denoting where the resource
needs to come from.
:type zones: list[str]
"""

_validation = {
Expand Down Expand Up @@ -129,9 +138,12 @@ class ApplicationGateway(Resource):
'redirect_configurations': {'key': 'properties.redirectConfigurations', 'type': '[ApplicationGatewayRedirectConfiguration]'},
'web_application_firewall_configuration': {'key': 'properties.webApplicationFirewallConfiguration', 'type': 'ApplicationGatewayWebApplicationFirewallConfiguration'},
'enable_http2': {'key': 'properties.enableHttp2', 'type': 'bool'},
'enable_fips': {'key': 'properties.enableFips', 'type': 'bool'},
'autoscale_configuration': {'key': 'properties.autoscaleConfiguration', 'type': 'ApplicationGatewayAutoscaleConfiguration'},
'resource_guid': {'key': 'properties.resourceGuid', 'type': 'str'},
'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'},
'etag': {'key': 'etag', 'type': 'str'},
'zones': {'key': 'zones', 'type': '[str]'},
}

def __init__(self, **kwargs):
Expand All @@ -153,6 +165,9 @@ def __init__(self, **kwargs):
self.redirect_configurations = kwargs.get('redirect_configurations', None)
self.web_application_firewall_configuration = kwargs.get('web_application_firewall_configuration', None)
self.enable_http2 = kwargs.get('enable_http2', None)
self.enable_fips = kwargs.get('enable_fips', None)
self.autoscale_configuration = kwargs.get('autoscale_configuration', None)
self.resource_guid = kwargs.get('resource_guid', None)
self.provisioning_state = kwargs.get('provisioning_state', None)
self.etag = kwargs.get('etag', None)
self.zones = kwargs.get('zones', None)
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# 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 msrest.serialization import Model


class ApplicationGatewayAutoscaleBounds(Model):
"""Application Gateway autoscale bounds on number of Application Gateway
instance.

All required parameters must be populated in order to send to Azure.

:param min: Required. Lower bound on number of Application Gateway
instances.
:type min: int
:param max: Required. Upper bound on number of Application Gateway
instances.
:type max: int
"""

_validation = {
'min': {'required': True},
'max': {'required': True},
}

_attribute_map = {
'min': {'key': 'min', 'type': 'int'},
'max': {'key': 'max', 'type': 'int'},
}

def __init__(self, **kwargs):
super(ApplicationGatewayAutoscaleBounds, self).__init__(**kwargs)
self.min = kwargs.get('min', None)
self.max = kwargs.get('max', None)
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# 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 msrest.serialization import Model


class ApplicationGatewayAutoscaleBounds(Model):
"""Application Gateway autoscale bounds on number of Application Gateway
instance.

All required parameters must be populated in order to send to Azure.

:param min: Required. Lower bound on number of Application Gateway
instances.
:type min: int
:param max: Required. Upper bound on number of Application Gateway
instances.
:type max: int
"""

_validation = {
'min': {'required': True},
'max': {'required': True},
}

_attribute_map = {
'min': {'key': 'min', 'type': 'int'},
'max': {'key': 'max', 'type': 'int'},
}

def __init__(self, *, min: int, max: int, **kwargs) -> None:
super(ApplicationGatewayAutoscaleBounds, self).__init__(**kwargs)
self.min = min
self.max = max
Loading