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

[AutoPR network/resource-manager] Adding java tag for 2018-04 network #2851

Merged
merged 1 commit into from
Jun 29, 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
13 changes: 13 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 @@ -327,6 +327,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_firewalls(self):
"""Instance depends on the API version:

* 2018-04-01: :class:`AzureFirewallsOperations<azure.mgmt.network.v2018_04_01.operations.AzureFirewallsOperations>`
"""
api_version = self._get_api_version('azure_firewalls')
if api_version == '2018-04-01':
from .v2018_04_01.operations import AzureFirewallsOperations 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 bgp_service_communities(self):
"""Instance depends on the API version:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,15 @@

try:
from .sub_resource_py3 import SubResource
from .azure_firewall_ip_configuration_py3 import AzureFirewallIPConfiguration
from .azure_firewall_rc_action_py3 import AzureFirewallRCAction
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_network_rule_py3 import AzureFirewallNetworkRule
from .azure_firewall_network_rule_collection_py3 import AzureFirewallNetworkRuleCollection
from .azure_firewall_py3 import AzureFirewall
from .resource_py3 import Resource
from .backend_address_pool_py3 import BackendAddressPool
from .inbound_nat_rule_py3 import InboundNatRule
from .application_security_group_py3 import ApplicationSecurityGroup
Expand Down Expand Up @@ -62,7 +71,6 @@
from .application_gateway_available_waf_rule_sets_result_py3 import ApplicationGatewayAvailableWafRuleSetsResult
from .application_gateway_available_ssl_options_py3 import ApplicationGatewayAvailableSslOptions
from .application_gateway_ssl_predefined_policy_py3 import ApplicationGatewaySslPredefinedPolicy
from .resource_py3 import Resource
from .tags_object_py3 import TagsObject
from .dns_name_availability_result_py3 import DnsNameAvailabilityResult
from .ddos_protection_plan_py3 import DdosProtectionPlan
Expand Down Expand Up @@ -218,6 +226,15 @@
from .vpn_site_id_py3 import VpnSiteId
except (SyntaxError, ImportError):
from .sub_resource import SubResource
from .azure_firewall_ip_configuration import AzureFirewallIPConfiguration
from .azure_firewall_rc_action import AzureFirewallRCAction
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_network_rule import AzureFirewallNetworkRule
from .azure_firewall_network_rule_collection import AzureFirewallNetworkRuleCollection
from .azure_firewall import AzureFirewall
from .resource import Resource
from .backend_address_pool import BackendAddressPool
from .inbound_nat_rule import InboundNatRule
from .application_security_group import ApplicationSecurityGroup
Expand Down Expand Up @@ -269,7 +286,6 @@
from .application_gateway_available_waf_rule_sets_result import ApplicationGatewayAvailableWafRuleSetsResult
from .application_gateway_available_ssl_options import ApplicationGatewayAvailableSslOptions
from .application_gateway_ssl_predefined_policy import ApplicationGatewaySslPredefinedPolicy
from .resource import Resource
from .tags_object import TagsObject
from .dns_name_availability_result import DnsNameAvailabilityResult
from .ddos_protection_plan import DdosProtectionPlan
Expand Down Expand Up @@ -423,6 +439,7 @@
from .policies import Policies
from .vpn_gateway import VpnGateway
from .vpn_site_id import VpnSiteId
from .azure_firewall_paged import AzureFirewallPaged
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 @@ -470,6 +487,10 @@
from .vpn_gateway_paged import VpnGatewayPaged
from .vpn_connection_paged import VpnConnectionPaged
from .network_management_client_enums import (
ProvisioningState,
AzureFirewallRCActionType,
AzureFirewallApplicationRuleProtocolType,
AzureFirewallNetworkRuleProtocol,
TransportProtocol,
IPAllocationMethod,
IPVersion,
Expand Down Expand Up @@ -508,7 +529,6 @@
EffectiveSecurityRuleProtocol,
EffectiveRouteSource,
EffectiveRouteState,
ProvisioningState,
AssociationType,
Direction,
IpFlowProtocol,
Expand Down Expand Up @@ -549,6 +569,15 @@

__all__ = [
'SubResource',
'AzureFirewallIPConfiguration',
'AzureFirewallRCAction',
'AzureFirewallApplicationRuleProtocol',
'AzureFirewallApplicationRule',
'AzureFirewallApplicationRuleCollection',
'AzureFirewallNetworkRule',
'AzureFirewallNetworkRuleCollection',
'AzureFirewall',
'Resource',
'BackendAddressPool',
'InboundNatRule',
'ApplicationSecurityGroup',
Expand Down Expand Up @@ -600,7 +629,6 @@
'ApplicationGatewayAvailableWafRuleSetsResult',
'ApplicationGatewayAvailableSslOptions',
'ApplicationGatewaySslPredefinedPolicy',
'Resource',
'TagsObject',
'DnsNameAvailabilityResult',
'DdosProtectionPlan',
Expand Down Expand Up @@ -754,6 +782,7 @@
'Policies',
'VpnGateway',
'VpnSiteId',
'AzureFirewallPaged',
'ApplicationGatewayPaged',
'ApplicationGatewaySslPredefinedPolicyPaged',
'ApplicationSecurityGroupPaged',
Expand Down Expand Up @@ -800,6 +829,10 @@
'HubVirtualNetworkConnectionPaged',
'VpnGatewayPaged',
'VpnConnectionPaged',
'ProvisioningState',
'AzureFirewallRCActionType',
'AzureFirewallApplicationRuleProtocolType',
'AzureFirewallNetworkRuleProtocol',
'TransportProtocol',
'IPAllocationMethod',
'IPVersion',
Expand Down Expand Up @@ -838,7 +871,6 @@
'EffectiveSecurityRuleProtocol',
'EffectiveRouteSource',
'EffectiveRouteState',
'ProvisioningState',
'AssociationType',
'Direction',
'IpFlowProtocol',
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
# 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 AzureFirewall(Resource):
"""Azure Firewall 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]
:param application_rule_collections: Collection of application rule
collections used by a Azure Firewall.
:type application_rule_collections:
list[~azure.mgmt.network.v2018_04_01.models.AzureFirewallApplicationRuleCollection]
:param network_rule_collections: Collection of network rule collections
used by a Azure Firewall.
:type network_rule_collections:
list[~azure.mgmt.network.v2018_04_01.models.AzureFirewallNetworkRuleCollection]
:param ip_configurations: IP configuration of the Azure Firewall resource.
:type ip_configurations:
list[~azure.mgmt.network.v2018_04_01.models.AzureFirewallIPConfiguration]
: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_04_01.models.ProvisioningState
: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},
'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}'},
'application_rule_collections': {'key': 'properties.applicationRuleCollections', 'type': '[AzureFirewallApplicationRuleCollection]'},
'network_rule_collections': {'key': 'properties.networkRuleCollections', 'type': '[AzureFirewallNetworkRuleCollection]'},
'ip_configurations': {'key': 'properties.ipConfigurations', 'type': '[AzureFirewallIPConfiguration]'},
'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'},
'etag': {'key': 'etag', 'type': 'str'},
}

def __init__(self, **kwargs):
super(AzureFirewall, self).__init__(**kwargs)
self.application_rule_collections = kwargs.get('application_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)
self.etag = None
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
# 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 AzureFirewallApplicationRule(Model):
"""Properties of an application rule.

:param name: Name of the application 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 protocols: Array of ApplicationRuleProtocols.
:type protocols:
list[~azure.mgmt.network.v2018_04_01.models.AzureFirewallApplicationRuleProtocol]
:param target_urls: List of URLs for this rule.
:type target_urls: list[str]
"""

_attribute_map = {
'name': {'key': 'name', 'type': 'str'},
'description': {'key': 'description', 'type': 'str'},
'source_addresses': {'key': 'sourceAddresses', 'type': '[str]'},
'protocols': {'key': 'protocols', 'type': '[AzureFirewallApplicationRuleProtocol]'},
'target_urls': {'key': 'targetUrls', 'type': '[str]'},
}

def __init__(self, **kwargs):
super(AzureFirewallApplicationRule, self).__init__(**kwargs)
self.name = kwargs.get('name', None)
self.description = kwargs.get('description', None)
self.source_addresses = kwargs.get('source_addresses', None)
self.protocols = kwargs.get('protocols', None)
self.target_urls = kwargs.get('target_urls', None)
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
# 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 AzureFirewallApplicationRuleCollection(SubResource):
"""Application 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 application rule collection resource.
:type priority: int
:param action: The action type of a rule collection
:type action: ~azure.mgmt.network.v2018_04_01.models.AzureFirewallRCAction
:param rules: Collection of rules used by a application rule collection.
:type rules:
list[~azure.mgmt.network.v2018_04_01.models.AzureFirewallApplicationRule]
: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_04_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': 'AzureFirewallRCAction'},
'rules': {'key': 'properties.rules', 'type': '[AzureFirewallApplicationRule]'},
'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'},
'name': {'key': 'name', 'type': 'str'},
'etag': {'key': 'etag', 'type': 'str'},
}

def __init__(self, **kwargs):
super(AzureFirewallApplicationRuleCollection, 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
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
# 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_py3 import SubResource


class AzureFirewallApplicationRuleCollection(SubResource):
"""Application 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 application rule collection resource.
:type priority: int
:param action: The action type of a rule collection
:type action: ~azure.mgmt.network.v2018_04_01.models.AzureFirewallRCAction
:param rules: Collection of rules used by a application rule collection.
:type rules:
list[~azure.mgmt.network.v2018_04_01.models.AzureFirewallApplicationRule]
: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_04_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': 'AzureFirewallRCAction'},
'rules': {'key': 'properties.rules', 'type': '[AzureFirewallApplicationRule]'},
'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'},
'name': {'key': 'name', 'type': 'str'},
'etag': {'key': 'etag', 'type': 'str'},
}

def __init__(self, *, id: str=None, priority: int=None, action=None, rules=None, provisioning_state=None, name: str=None, **kwargs) -> None:
super(AzureFirewallApplicationRuleCollection, self).__init__(id=id, **kwargs)
self.priority = priority
self.action = action
self.rules = rules
self.provisioning_state = provisioning_state
self.name = name
self.etag = None
Loading