Skip to content
Closed
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
26 changes: 26 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 @@ -1325,6 +1325,19 @@ def network_interface_load_balancers(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 network_interface_tap_configurations(self):
"""Instance depends on the API version:

* 2018-08-01: :class:`NetworkInterfaceTapConfigurationsOperations<azure.mgmt.network.v2018_08_01.operations.NetworkInterfaceTapConfigurationsOperations>`
"""
api_version = self._get_api_version('network_interface_tap_configurations')
if api_version == '2018-08-01':
from .v2018_08_01.operations import NetworkInterfaceTapConfigurationsOperations 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 network_interfaces(self):
"""Instance depends on the API version:
Expand Down Expand Up @@ -2236,6 +2249,19 @@ def virtual_network_peerings(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_network_taps(self):
"""Instance depends on the API version:

* 2018-08-01: :class:`VirtualNetworkTapsOperations<azure.mgmt.network.v2018_08_01.operations.VirtualNetworkTapsOperations>`
"""
api_version = self._get_api_version('virtual_network_taps')
if api_version == '2018-08-01':
from .v2018_08_01.operations import VirtualNetworkTapsOperations 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_networks(self):
"""Instance depends on the API version:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,8 @@
# --------------------------------------------------------------------------

try:
from .network_interface_tap_configuration_py3 import NetworkInterfaceTapConfiguration
from .sub_resource_py3 import SubResource
from .backend_address_pool_py3 import BackendAddressPool
from .inbound_nat_rule_py3 import InboundNatRule
from .application_security_group_py3 import ApplicationSecurityGroup
from .security_rule_py3 import SecurityRule
from .network_interface_dns_settings_py3 import NetworkInterfaceDnsSettings
Expand All @@ -30,6 +29,10 @@
from .ip_configuration_py3 import IPConfiguration
from .resource_navigation_link_py3 import ResourceNavigationLink
from .subnet_py3 import Subnet
from .frontend_ip_configuration_py3 import FrontendIPConfiguration
from .virtual_network_tap_py3 import VirtualNetworkTap
from .backend_address_pool_py3 import BackendAddressPool
from .inbound_nat_rule_py3 import InboundNatRule
from .network_interface_ip_configuration_py3 import NetworkInterfaceIPConfiguration
from .application_gateway_backend_address_py3 import ApplicationGatewayBackendAddress
from .application_gateway_backend_address_pool_py3 import ApplicationGatewayBackendAddressPool
Expand Down Expand Up @@ -71,6 +74,9 @@
from .azure_firewall_application_rule_protocol_py3 import AzureFirewallApplicationRuleProtocol
from .azure_firewall_application_rule_py3 import AzureFirewallApplicationRule
from .azure_firewall_application_rule_collection_py3 import AzureFirewallApplicationRuleCollection
from .azure_firewall_nat_rc_action_py3 import AzureFirewallNatRCAction
from .azure_firewall_nat_rule_py3 import AzureFirewallNatRule
from .azure_firewall_nat_rule_collection_py3 import AzureFirewallNatRuleCollection
from .azure_firewall_network_rule_py3 import AzureFirewallNetworkRule
from .azure_firewall_network_rule_collection_py3 import AzureFirewallNetworkRuleCollection
from .azure_firewall_py3 import AzureFirewall
Expand Down Expand Up @@ -103,7 +109,6 @@
from .express_route_cross_connection_peering_py3 import ExpressRouteCrossConnectionPeering
from .express_route_cross_connection_py3 import ExpressRouteCrossConnection
from .load_balancer_sku_py3 import LoadBalancerSku
from .frontend_ip_configuration_py3 import FrontendIPConfiguration
from .load_balancing_rule_py3 import LoadBalancingRule
from .probe_py3 import Probe
from .inbound_nat_pool_py3 import InboundNatPool
Expand Down Expand Up @@ -240,9 +245,8 @@
from .vpn_gateway_py3 import VpnGateway
from .vpn_site_id_py3 import VpnSiteId
except (SyntaxError, ImportError):
from .network_interface_tap_configuration import NetworkInterfaceTapConfiguration
from .sub_resource import SubResource
from .backend_address_pool import BackendAddressPool
from .inbound_nat_rule import InboundNatRule
from .application_security_group import ApplicationSecurityGroup
from .security_rule import SecurityRule
from .network_interface_dns_settings import NetworkInterfaceDnsSettings
Expand All @@ -260,6 +264,10 @@
from .ip_configuration import IPConfiguration
from .resource_navigation_link import ResourceNavigationLink
from .subnet import Subnet
from .frontend_ip_configuration import FrontendIPConfiguration
from .virtual_network_tap import VirtualNetworkTap
from .backend_address_pool import BackendAddressPool
from .inbound_nat_rule import InboundNatRule
from .network_interface_ip_configuration import NetworkInterfaceIPConfiguration
from .application_gateway_backend_address import ApplicationGatewayBackendAddress
from .application_gateway_backend_address_pool import ApplicationGatewayBackendAddressPool
Expand Down Expand Up @@ -301,6 +309,9 @@
from .azure_firewall_application_rule_protocol import AzureFirewallApplicationRuleProtocol
from .azure_firewall_application_rule import AzureFirewallApplicationRule
from .azure_firewall_application_rule_collection import AzureFirewallApplicationRuleCollection
from .azure_firewall_nat_rc_action import AzureFirewallNatRCAction
from .azure_firewall_nat_rule import AzureFirewallNatRule
from .azure_firewall_nat_rule_collection import AzureFirewallNatRuleCollection
from .azure_firewall_network_rule import AzureFirewallNetworkRule
from .azure_firewall_network_rule_collection import AzureFirewallNetworkRuleCollection
from .azure_firewall import AzureFirewall
Expand Down Expand Up @@ -333,7 +344,6 @@
from .express_route_cross_connection_peering import ExpressRouteCrossConnectionPeering
from .express_route_cross_connection import ExpressRouteCrossConnection
from .load_balancer_sku import LoadBalancerSku
from .frontend_ip_configuration import FrontendIPConfiguration
from .load_balancing_rule import LoadBalancingRule
from .probe import Probe
from .inbound_nat_pool import InboundNatPool
Expand Down Expand Up @@ -490,6 +500,7 @@
from .network_interface_paged import NetworkInterfacePaged
from .probe_paged import ProbePaged
from .network_interface_ip_configuration_paged import NetworkInterfaceIPConfigurationPaged
from .network_interface_tap_configuration_paged import NetworkInterfaceTapConfigurationPaged
from .network_security_group_paged import NetworkSecurityGroupPaged
from .security_rule_paged import SecurityRulePaged
from .network_watcher_paged import NetworkWatcherPaged
Expand All @@ -510,6 +521,7 @@
from .virtual_network_usage_paged import VirtualNetworkUsagePaged
from .subnet_paged import SubnetPaged
from .virtual_network_peering_paged import VirtualNetworkPeeringPaged
from .virtual_network_tap_paged import VirtualNetworkTapPaged
from .virtual_network_gateway_paged import VirtualNetworkGatewayPaged
from .virtual_network_gateway_connection_list_entity_paged import VirtualNetworkGatewayConnectionListEntityPaged
from .virtual_network_gateway_connection_paged import VirtualNetworkGatewayConnectionPaged
Expand All @@ -521,14 +533,14 @@
from .vpn_gateway_paged import VpnGatewayPaged
from .vpn_connection_paged import VpnConnectionPaged
from .network_management_client_enums import (
TransportProtocol,
IPAllocationMethod,
IPVersion,
SecurityRuleProtocol,
SecurityRuleAccess,
SecurityRuleDirection,
RouteNextHopType,
PublicIPAddressSkuName,
IPVersion,
TransportProtocol,
ApplicationGatewayProtocol,
ApplicationGatewayCookieBasedAffinity,
ApplicationGatewayBackendHealthServerHealth,
Expand All @@ -545,6 +557,7 @@
ProvisioningState,
AzureFirewallRCActionType,
AzureFirewallApplicationRuleProtocolType,
AzureFirewallNatRCActionType,
AzureFirewallNetworkRuleProtocol,
AuthorizationUseStatus,
ExpressRouteCircuitPeeringAdvertisedPublicPrefixState,
Expand Down Expand Up @@ -603,9 +616,8 @@
)

__all__ = [
'NetworkInterfaceTapConfiguration',
'SubResource',
'BackendAddressPool',
'InboundNatRule',
'ApplicationSecurityGroup',
'SecurityRule',
'NetworkInterfaceDnsSettings',
Expand All @@ -623,6 +635,10 @@
'IPConfiguration',
'ResourceNavigationLink',
'Subnet',
'FrontendIPConfiguration',
'VirtualNetworkTap',
'BackendAddressPool',
'InboundNatRule',
'NetworkInterfaceIPConfiguration',
'ApplicationGatewayBackendAddress',
'ApplicationGatewayBackendAddressPool',
Expand Down Expand Up @@ -664,6 +680,9 @@
'AzureFirewallApplicationRuleProtocol',
'AzureFirewallApplicationRule',
'AzureFirewallApplicationRuleCollection',
'AzureFirewallNatRCAction',
'AzureFirewallNatRule',
'AzureFirewallNatRuleCollection',
'AzureFirewallNetworkRule',
'AzureFirewallNetworkRuleCollection',
'AzureFirewall',
Expand Down Expand Up @@ -696,7 +715,6 @@
'ExpressRouteCrossConnectionPeering',
'ExpressRouteCrossConnection',
'LoadBalancerSku',
'FrontendIPConfiguration',
'LoadBalancingRule',
'Probe',
'InboundNatPool',
Expand Down Expand Up @@ -853,6 +871,7 @@
'NetworkInterfacePaged',
'ProbePaged',
'NetworkInterfaceIPConfigurationPaged',
'NetworkInterfaceTapConfigurationPaged',
'NetworkSecurityGroupPaged',
'SecurityRulePaged',
'NetworkWatcherPaged',
Expand All @@ -873,6 +892,7 @@
'VirtualNetworkUsagePaged',
'SubnetPaged',
'VirtualNetworkPeeringPaged',
'VirtualNetworkTapPaged',
'VirtualNetworkGatewayPaged',
'VirtualNetworkGatewayConnectionListEntityPaged',
'VirtualNetworkGatewayConnectionPaged',
Expand All @@ -883,14 +903,14 @@
'HubVirtualNetworkConnectionPaged',
'VpnGatewayPaged',
'VpnConnectionPaged',
'TransportProtocol',
'IPAllocationMethod',
'IPVersion',
'SecurityRuleProtocol',
'SecurityRuleAccess',
'SecurityRuleDirection',
'RouteNextHopType',
'PublicIPAddressSkuName',
'IPVersion',
'TransportProtocol',
'ApplicationGatewayProtocol',
'ApplicationGatewayCookieBasedAffinity',
'ApplicationGatewayBackendHealthServerHealth',
Expand All @@ -907,6 +927,7 @@
'ProvisioningState',
'AzureFirewallRCActionType',
'AzureFirewallApplicationRuleProtocolType',
'AzureFirewallNatRCActionType',
'AzureFirewallNetworkRuleProtocol',
'AuthorizationUseStatus',
'ExpressRouteCircuitPeeringAdvertisedPublicPrefixState',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,15 @@ class AzureFirewall(Resource):
:param tags: Resource tags.
:type tags: dict[str, str]
:param application_rule_collections: Collection of application rule
collections used by a Azure Firewall.
collections used by Azure Firewall.
:type application_rule_collections:
list[~azure.mgmt.network.v2018_08_01.models.AzureFirewallApplicationRuleCollection]
:param nat_rule_collections: Collection of NAT rule collections used by
Azure Firewall.
:type nat_rule_collections:
list[~azure.mgmt.network.v2018_08_01.models.AzureFirewallNatRuleCollection]
:param network_rule_collections: Collection of network rule collections
used by a Azure Firewall.
used by Azure Firewall.
:type network_rule_collections:
list[~azure.mgmt.network.v2018_08_01.models.AzureFirewallNetworkRuleCollection]
:param ip_configurations: IP configuration of the Azure Firewall resource.
Expand Down Expand Up @@ -61,6 +65,7 @@ class AzureFirewall(Resource):
'location': {'key': 'location', 'type': 'str'},
'tags': {'key': 'tags', 'type': '{str}'},
'application_rule_collections': {'key': 'properties.applicationRuleCollections', 'type': '[AzureFirewallApplicationRuleCollection]'},
'nat_rule_collections': {'key': 'properties.natRuleCollections', 'type': '[AzureFirewallNatRuleCollection]'},
'network_rule_collections': {'key': 'properties.networkRuleCollections', 'type': '[AzureFirewallNetworkRuleCollection]'},
'ip_configurations': {'key': 'properties.ipConfigurations', 'type': '[AzureFirewallIPConfiguration]'},
'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'},
Expand All @@ -70,6 +75,7 @@ class AzureFirewall(Resource):
def __init__(self, **kwargs):
super(AzureFirewall, self).__init__(**kwargs)
self.application_rule_collections = kwargs.get('application_rule_collections', None)
self.nat_rule_collections = kwargs.get('nat_rule_collections', None)
self.network_rule_collections = kwargs.get('network_rule_collections', None)
self.ip_configurations = kwargs.get('ip_configurations', None)
self.provisioning_state = kwargs.get('provisioning_state', None)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@
class AzureFirewallIPConfiguration(SubResource):
"""IP configuration of an Azure Firewall.

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

:param id: Resource ID.
:type id: str
:param private_ip_address: The Firewall Internal Load Balancer IP to be
Expand All @@ -34,11 +37,15 @@ class AzureFirewallIPConfiguration(SubResource):
:param name: Name of the resource that is unique within a resource group.
This name can be used to access the resource.
:type name: str
:param etag: A unique read-only string that changes whenever the resource
:ivar etag: A unique read-only string that changes whenever the resource
is updated.
:type etag: str
:vartype etag: str
"""

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

_attribute_map = {
'id': {'key': 'id', 'type': 'str'},
'private_ip_address': {'key': 'properties.privateIPAddress', 'type': 'str'},
Expand All @@ -56,4 +63,4 @@ def __init__(self, **kwargs):
self.public_ip_address = kwargs.get('public_ip_address', None)
self.provisioning_state = kwargs.get('provisioning_state', None)
self.name = kwargs.get('name', None)
self.etag = kwargs.get('etag', None)
self.etag = None
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@
class AzureFirewallIPConfiguration(SubResource):
"""IP configuration of an Azure Firewall.

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

:param id: Resource ID.
:type id: str
:param private_ip_address: The Firewall Internal Load Balancer IP to be
Expand All @@ -34,11 +37,15 @@ class AzureFirewallIPConfiguration(SubResource):
:param name: Name of the resource that is unique within a resource group.
This name can be used to access the resource.
:type name: str
:param etag: A unique read-only string that changes whenever the resource
:ivar etag: A unique read-only string that changes whenever the resource
is updated.
:type etag: str
:vartype etag: str
"""

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

_attribute_map = {
'id': {'key': 'id', 'type': 'str'},
'private_ip_address': {'key': 'properties.privateIPAddress', 'type': 'str'},
Expand All @@ -49,11 +56,11 @@ class AzureFirewallIPConfiguration(SubResource):
'etag': {'key': 'etag', 'type': 'str'},
}

def __init__(self, *, id: str=None, private_ip_address: str=None, subnet=None, public_ip_address=None, provisioning_state=None, name: str=None, etag: str=None, **kwargs) -> None:
def __init__(self, *, id: str=None, private_ip_address: str=None, subnet=None, public_ip_address=None, provisioning_state=None, name: str=None, **kwargs) -> None:
super(AzureFirewallIPConfiguration, self).__init__(id=id, **kwargs)
self.private_ip_address = private_ip_address
self.subnet = subnet
self.public_ip_address = public_ip_address
self.provisioning_state = provisioning_state
self.name = name
self.etag = etag
self.etag = None
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# 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 AzureFirewallNatRCAction(Model):
"""AzureFirewall NAT Rule Collection Action.

:param type: The type of action. Possible values include: 'Snat', 'Dnat'
:type type: str or
~azure.mgmt.network.v2018_08_01.models.AzureFirewallNatRCActionType
"""

_attribute_map = {
'type': {'key': 'type', 'type': 'str'},
}

def __init__(self, **kwargs):
super(AzureFirewallNatRCAction, self).__init__(**kwargs)
self.type = kwargs.get('type', None)
Loading