Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VTAP from c5b3e4ea206a68363d349f476e86c5b943983b84 #3216

Merged
merged 2 commits into from
Aug 30, 2018
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
39 changes: 39 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 @@ -368,6 +368,19 @@ def available_endpoint_services(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 azure_firewall_fqdn_tags(self):
"""Instance depends on the API version:

* 2018-08-01: :class:`AzureFirewallFqdnTagsOperations<azure.mgmt.network.v2018_08_01.operations.AzureFirewallFqdnTagsOperations>`
"""
api_version = self._get_api_version('azure_firewall_fqdn_tags')
if api_version == '2018-08-01':
from .v2018_08_01.operations import AzureFirewallFqdnTagsOperations 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 azure_firewalls(self):
"""Instance depends on the API version:
Expand Down Expand Up @@ -1312,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 @@ -2223,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 @@ -74,6 +77,7 @@
from .azure_firewall_network_rule_py3 import AzureFirewallNetworkRule
from .azure_firewall_network_rule_collection_py3 import AzureFirewallNetworkRuleCollection
from .azure_firewall_py3 import AzureFirewall
from .azure_firewall_fqdn_tag_py3 import AzureFirewallFqdnTag
from .dns_name_availability_result_py3 import DnsNameAvailabilityResult
from .ddos_protection_plan_py3 import DdosProtectionPlan
from .endpoint_service_result_py3 import EndpointServiceResult
Expand Down Expand Up @@ -102,7 +106,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 @@ -239,9 +242,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 @@ -259,6 +261,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 @@ -303,6 +309,7 @@
from .azure_firewall_network_rule import AzureFirewallNetworkRule
from .azure_firewall_network_rule_collection import AzureFirewallNetworkRuleCollection
from .azure_firewall import AzureFirewall
from .azure_firewall_fqdn_tag import AzureFirewallFqdnTag
from .dns_name_availability_result import DnsNameAvailabilityResult
from .ddos_protection_plan import DdosProtectionPlan
from .endpoint_service_result import EndpointServiceResult
Expand Down Expand Up @@ -331,7 +338,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 @@ -471,6 +477,7 @@
from .application_gateway_ssl_predefined_policy_paged import ApplicationGatewaySslPredefinedPolicyPaged
from .application_security_group_paged import ApplicationSecurityGroupPaged
from .azure_firewall_paged import AzureFirewallPaged
from .azure_firewall_fqdn_tag_paged import AzureFirewallFqdnTagPaged
from .ddos_protection_plan_paged import DdosProtectionPlanPaged
from .endpoint_service_result_paged import EndpointServiceResultPaged
from .express_route_circuit_authorization_paged import ExpressRouteCircuitAuthorizationPaged
Expand All @@ -487,6 +494,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 @@ -507,6 +515,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 @@ -518,14 +527,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 Down Expand Up @@ -600,9 +609,8 @@
)

__all__ = [
'NetworkInterfaceTapConfiguration',
'SubResource',
'BackendAddressPool',
'InboundNatRule',
'ApplicationSecurityGroup',
'SecurityRule',
'NetworkInterfaceDnsSettings',
Expand All @@ -620,6 +628,10 @@
'IPConfiguration',
'ResourceNavigationLink',
'Subnet',
'FrontendIPConfiguration',
'VirtualNetworkTap',
'BackendAddressPool',
'InboundNatRule',
'NetworkInterfaceIPConfiguration',
'ApplicationGatewayBackendAddress',
'ApplicationGatewayBackendAddressPool',
Expand Down Expand Up @@ -664,6 +676,7 @@
'AzureFirewallNetworkRule',
'AzureFirewallNetworkRuleCollection',
'AzureFirewall',
'AzureFirewallFqdnTag',
'DnsNameAvailabilityResult',
'DdosProtectionPlan',
'EndpointServiceResult',
Expand Down Expand Up @@ -692,7 +705,6 @@
'ExpressRouteCrossConnectionPeering',
'ExpressRouteCrossConnection',
'LoadBalancerSku',
'FrontendIPConfiguration',
'LoadBalancingRule',
'Probe',
'InboundNatPool',
Expand Down Expand Up @@ -832,6 +844,7 @@
'ApplicationGatewaySslPredefinedPolicyPaged',
'ApplicationSecurityGroupPaged',
'AzureFirewallPaged',
'AzureFirewallFqdnTagPaged',
'DdosProtectionPlanPaged',
'EndpointServiceResultPaged',
'ExpressRouteCircuitAuthorizationPaged',
Expand All @@ -848,6 +861,7 @@
'NetworkInterfacePaged',
'ProbePaged',
'NetworkInterfaceIPConfigurationPaged',
'NetworkInterfaceTapConfigurationPaged',
'NetworkSecurityGroupPaged',
'SecurityRulePaged',
'NetworkWatcherPaged',
Expand All @@ -868,6 +882,7 @@
'VirtualNetworkUsagePaged',
'SubnetPaged',
'VirtualNetworkPeeringPaged',
'VirtualNetworkTapPaged',
'VirtualNetworkGatewayPaged',
'VirtualNetworkGatewayConnectionListEntityPaged',
'VirtualNetworkGatewayConnectionPaged',
Expand All @@ -878,14 +893,14 @@
'HubVirtualNetworkConnectionPaged',
'VpnGatewayPaged',
'VpnConnectionPaged',
'TransportProtocol',
'IPAllocationMethod',
'IPVersion',
'SecurityRuleProtocol',
'SecurityRuleAccess',
'SecurityRuleDirection',
'RouteNextHopType',
'PublicIPAddressSkuName',
'IPVersion',
'TransportProtocol',
'ApplicationGatewayProtocol',
'ApplicationGatewayCookieBasedAffinity',
'ApplicationGatewayBackendHealthServerHealth',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ class AzureFirewallApplicationRule(Model):
list[~azure.mgmt.network.v2018_08_01.models.AzureFirewallApplicationRuleProtocol]
:param target_urls: List of URLs for this rule.
:type target_urls: list[str]
:param fqdn_tags: List of FQDN Tags for this rule.
:type fqdn_tags: list[str]
"""

_attribute_map = {
Expand All @@ -34,6 +36,7 @@ class AzureFirewallApplicationRule(Model):
'source_addresses': {'key': 'sourceAddresses', 'type': '[str]'},
'protocols': {'key': 'protocols', 'type': '[AzureFirewallApplicationRuleProtocol]'},
'target_urls': {'key': 'targetUrls', 'type': '[str]'},
'fqdn_tags': {'key': 'fqdnTags', 'type': '[str]'},
}

def __init__(self, **kwargs):
Expand All @@ -43,3 +46,4 @@ def __init__(self, **kwargs):
self.source_addresses = kwargs.get('source_addresses', None)
self.protocols = kwargs.get('protocols', None)
self.target_urls = kwargs.get('target_urls', None)
self.fqdn_tags = kwargs.get('fqdn_tags', None)
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ class AzureFirewallApplicationRule(Model):
list[~azure.mgmt.network.v2018_08_01.models.AzureFirewallApplicationRuleProtocol]
:param target_urls: List of URLs for this rule.
:type target_urls: list[str]
:param fqdn_tags: List of FQDN Tags for this rule.
:type fqdn_tags: list[str]
"""

_attribute_map = {
Expand All @@ -34,12 +36,14 @@ class AzureFirewallApplicationRule(Model):
'source_addresses': {'key': 'sourceAddresses', 'type': '[str]'},
'protocols': {'key': 'protocols', 'type': '[AzureFirewallApplicationRuleProtocol]'},
'target_urls': {'key': 'targetUrls', 'type': '[str]'},
'fqdn_tags': {'key': 'fqdnTags', 'type': '[str]'},
}

def __init__(self, *, name: str=None, description: str=None, source_addresses=None, protocols=None, target_urls=None, **kwargs) -> None:
def __init__(self, *, name: str=None, description: str=None, source_addresses=None, protocols=None, target_urls=None, fqdn_tags=None, **kwargs) -> None:
super(AzureFirewallApplicationRule, self).__init__(**kwargs)
self.name = name
self.description = description
self.source_addresses = source_addresses
self.protocols = protocols
self.target_urls = target_urls
self.fqdn_tags = fqdn_tags
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
# 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 .resource import Resource


class AzureFirewallFqdnTag(Resource):
"""Azure Firewall FQDN Tag Resource.

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

:param id: Resource ID.
:type id: str
:ivar name: Resource name.
:vartype name: str
:ivar type: Resource type.
:vartype type: str
:param location: Resource location.
:type location: str
:param tags: Resource tags.
:type tags: dict[str, str]
:ivar provisioning_state: The provisioning state of the resource.
:vartype provisioning_state: str
:ivar fqdn_tag_name: The name of this FQDN Tag.
:vartype fqdn_tag_name: str
:ivar etag: Gets a unique read-only string that changes whenever the
resource is updated.
:vartype etag: str
"""

_validation = {
'name': {'readonly': True},
'type': {'readonly': True},
'provisioning_state': {'readonly': True},
'fqdn_tag_name': {'readonly': True},
'etag': {'readonly': True},
}

_attribute_map = {
'id': {'key': 'id', 'type': 'str'},
'name': {'key': 'name', 'type': 'str'},
'type': {'key': 'type', 'type': 'str'},
'location': {'key': 'location', 'type': 'str'},
'tags': {'key': 'tags', 'type': '{str}'},
'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'},
'fqdn_tag_name': {'key': 'properties.fqdnTagName', 'type': 'str'},
'etag': {'key': 'etag', 'type': 'str'},
}

def __init__(self, **kwargs):
super(AzureFirewallFqdnTag, self).__init__(**kwargs)
self.provisioning_state = None
self.fqdn_tag_name = None
self.etag = None
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# 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.paging import Paged


class AzureFirewallFqdnTagPaged(Paged):
"""
A paging container for iterating over a list of :class:`AzureFirewallFqdnTag <azure.mgmt.network.v2018_08_01.models.AzureFirewallFqdnTag>` object
"""

_attribute_map = {
'next_link': {'key': 'nextLink', 'type': 'str'},
'current_page': {'key': 'value', 'type': '[AzureFirewallFqdnTag]'}
}

def __init__(self, *args, **kwargs):

super(AzureFirewallFqdnTagPaged, self).__init__(*args, **kwargs)
Loading