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
Original file line number Diff line number Diff line change
Expand Up @@ -74,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 @@ -306,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 @@ -551,6 +557,7 @@
ProvisioningState,
AzureFirewallRCActionType,
AzureFirewallApplicationRuleProtocolType,
AzureFirewallNatRCActionType,
AzureFirewallNetworkRuleProtocol,
AuthorizationUseStatus,
ExpressRouteCircuitPeeringAdvertisedPublicPrefixState,
Expand Down Expand Up @@ -673,6 +680,9 @@
'AzureFirewallApplicationRuleProtocol',
'AzureFirewallApplicationRule',
'AzureFirewallApplicationRuleCollection',
'AzureFirewallNatRCAction',
'AzureFirewallNatRule',
'AzureFirewallNatRuleCollection',
'AzureFirewallNetworkRule',
'AzureFirewallNetworkRuleCollection',
'AzureFirewall',
Expand Down Expand Up @@ -917,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)
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, *, type=None, **kwargs) -> None:
super(AzureFirewallNatRCAction, self).__init__(**kwargs)
self.type = type
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
# 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 AzureFirewallNatRule(Model):
"""Properties of a NAT rule.

:param name: Name of the NAT rule.
:type name: str
:param description: Description of the rule.
:type description: str
:param source_addresses: List of source IP addresses for this rule.
:type source_addresses: list[str]
:param destination_addresses: List of destination IP addresses for this
rule.
:type destination_addresses: list[str]
:param destination_ports: List of destination ports.
:type destination_ports: list[str]
:param protocols: Array of AzureFirewallNetworkRuleProtocols applicable to
this NAT rule.
:type protocols: list[str or
~azure.mgmt.network.v2018_08_01.models.AzureFirewallNetworkRuleProtocol]
:param translated_address: The translated address for this NAT rule.
:type translated_address: str
:param translated_port: The translated port for this NAT rule.
:type translated_port: str
"""

_attribute_map = {
'name': {'key': 'name', 'type': 'str'},
'description': {'key': 'description', 'type': 'str'},
'source_addresses': {'key': 'sourceAddresses', 'type': '[str]'},
'destination_addresses': {'key': 'destinationAddresses', 'type': '[str]'},
'destination_ports': {'key': 'destinationPorts', 'type': '[str]'},
'protocols': {'key': 'protocols', 'type': '[str]'},
'translated_address': {'key': 'translatedAddress', 'type': 'str'},
'translated_port': {'key': 'translatedPort', 'type': 'str'},
}

def __init__(self, **kwargs):
super(AzureFirewallNatRule, self).__init__(**kwargs)
self.name = kwargs.get('name', None)
self.description = kwargs.get('description', None)
self.source_addresses = kwargs.get('source_addresses', None)
self.destination_addresses = kwargs.get('destination_addresses', None)
self.destination_ports = kwargs.get('destination_ports', None)
self.protocols = kwargs.get('protocols', None)
self.translated_address = kwargs.get('translated_address', None)
self.translated_port = kwargs.get('translated_port', None)
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
# 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 .sub_resource import SubResource


class AzureFirewallNatRuleCollection(SubResource):
"""NAT rule collection resource.

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

:param id: Resource ID.
:type id: str
:param priority: Priority of the NAT rule collection resource.
:type priority: int
:param action: The action type of a NAT rule collection
:type action:
~azure.mgmt.network.v2018_08_01.models.AzureFirewallNatRCAction
:param rules: Collection of rules used by a NAT rule collection.
:type rules:
list[~azure.mgmt.network.v2018_08_01.models.AzureFirewallNatRule]
:param provisioning_state: The provisioning state of the resource.
Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed'
:type provisioning_state: str or
~azure.mgmt.network.v2018_08_01.models.ProvisioningState
:param name: Gets name of the resource that is unique within a resource
group. This name can be used to access the resource.
:type name: str
:ivar etag: Gets a unique read-only string that changes whenever the
resource is updated.
:vartype etag: str
"""

_validation = {
'priority': {'maximum': 65000, 'minimum': 100},
'etag': {'readonly': True},
}

_attribute_map = {
'id': {'key': 'id', 'type': 'str'},
'priority': {'key': 'properties.priority', 'type': 'int'},
'action': {'key': 'properties.action', 'type': 'AzureFirewallNatRCAction'},
'rules': {'key': 'properties.rules', 'type': '[AzureFirewallNatRule]'},
'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'},
'name': {'key': 'name', 'type': 'str'},
'etag': {'key': 'etag', 'type': 'str'},
}

def __init__(self, **kwargs):
super(AzureFirewallNatRuleCollection, self).__init__(**kwargs)
self.priority = kwargs.get('priority', None)
self.action = kwargs.get('action', None)
self.rules = kwargs.get('rules', None)
self.provisioning_state = kwargs.get('provisioning_state', None)
self.name = kwargs.get('name', None)
self.etag = None
Loading