Skip to content

Commit 874ca27

Browse files
AutorestCIlmazuel
authored andcommitted
[AutoPR] network/resource-manager (Azure#4491)
* Generated from 7a1a804ddec54df851f99278968fbd7da76f28e5 (Azure#4420) added links to limits for application gateway * Packaging update of azure-mgmt-network * Rebuild by Azure#4491 * Rebuild by Azure#4491 * 2.6.0 * 2018-12-01 tests
1 parent b678123 commit 874ca27

File tree

64 files changed

+6169
-3166
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

64 files changed

+6169
-3166
lines changed

azure-mgmt-network/HISTORY.rst

+18
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,24 @@
33
Release History
44
===============
55

6+
2.6.0 (2019-03-21)
7+
++++++++++++++++++
8+
9+
**Features**
10+
11+
- Model ApplicationGateway has a new parameter firewall_policy
12+
- Model ApplicationGatewayBackendHealthServer has a new parameter health_probe_log
13+
- Model ExpressRouteCircuitPeering has a new parameter peered_connections
14+
- Model ExpressRouteCircuit has a new parameter global_reach_enabled
15+
- Added operation group PeerExpressRouteCircuitConnectionsOperations
16+
- Added operation group WebApplicationFirewallPoliciesOperations
17+
18+
**Bugfixes**
19+
20+
- Fix incorrect operation ApplicationGatewaysOperations.list_available_request_headers
21+
- Fix incorrect operation ApplicationGatewaysOperations.list_available_server_variables
22+
- Fix incorrect operation ApplicationGatewaysOperations.list_available_response_headers
23+
624
2.6.0rc1 (2019-02-15)
725
+++++++++++++++++++++
826

azure-mgmt-network/MANIFEST.in

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
recursive-include tests *.py *.yaml
12
include *.rst
23
include azure/__init__.py
34
include azure/mgmt/__init__.py

azure-mgmt-network/azure/mgmt/network/network_management_client.py

+27-1
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ class NetworkManagementClient(MultiApiClientMixin, SDKClient):
7979
:type profile: azure.profiles.KnownProfiles
8080
"""
8181

82-
DEFAULT_API_VERSION = '2018-11-01'
82+
DEFAULT_API_VERSION = '2018-12-01'
8383
_PROFILE_TAG = "azure.mgmt.network.NetworkManagementClient"
8484
LATEST_PROFILE = ProfileDefinition({
8585
_PROFILE_TAG: {
@@ -2142,6 +2142,19 @@ def packet_captures(self):
21422142
raise NotImplementedError("APIVersion {} is not available".format(api_version))
21432143
return OperationClass(self._client, self.config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
21442144

2145+
@property
2146+
def peer_express_route_circuit_connections(self):
2147+
"""Instance depends on the API version:
2148+
2149+
* 2018-12-01: :class:`PeerExpressRouteCircuitConnectionsOperations<azure.mgmt.network.v2018_12_01.operations.PeerExpressRouteCircuitConnectionsOperations>`
2150+
"""
2151+
api_version = self._get_api_version('peer_express_route_circuit_connections')
2152+
if api_version == '2018-12-01':
2153+
from .v2018_12_01.operations import PeerExpressRouteCircuitConnectionsOperations as OperationClass
2154+
else:
2155+
raise NotImplementedError("APIVersion {} is not available".format(api_version))
2156+
return OperationClass(self._client, self.config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
2157+
21452158
@property
21462159
def public_ip_addresses(self):
21472160
"""Instance depends on the API version:
@@ -3187,3 +3200,16 @@ def vpn_sites_configuration(self):
31873200
else:
31883201
raise NotImplementedError("APIVersion {} is not available".format(api_version))
31893202
return OperationClass(self._client, self.config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
3203+
3204+
@property
3205+
def web_application_firewall_policies(self):
3206+
"""Instance depends on the API version:
3207+
3208+
* 2018-12-01: :class:`WebApplicationFirewallPoliciesOperations<azure.mgmt.network.v2018_12_01.operations.WebApplicationFirewallPoliciesOperations>`
3209+
"""
3210+
api_version = self._get_api_version('web_application_firewall_policies')
3211+
if api_version == '2018-12-01':
3212+
from .v2018_12_01.operations import WebApplicationFirewallPoliciesOperations as OperationClass
3213+
else:
3214+
raise NotImplementedError("APIVersion {} is not available".format(api_version))
3215+
return OperationClass(self._client, self.config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))

azure-mgmt-network/azure/mgmt/network/v2018_12_01/models/__init__.py

+38
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@
110110
from .express_route_circuit_stats_py3 import ExpressRouteCircuitStats
111111
from .express_route_connection_id_py3 import ExpressRouteConnectionId
112112
from .express_route_circuit_connection_py3 import ExpressRouteCircuitConnection
113+
from .peer_express_route_circuit_connection_py3 import PeerExpressRouteCircuitConnection
113114
from .express_route_circuit_peering_py3 import ExpressRouteCircuitPeering
114115
from .route_filter_py3 import RouteFilter
115116
from .ipv6_express_route_circuit_peering_config_py3 import Ipv6ExpressRouteCircuitPeeringConfig
@@ -296,6 +297,11 @@
296297
from .p2_svpn_gateway_py3 import P2SVpnGateway
297298
from .p2_svpn_profile_parameters_py3 import P2SVpnProfileParameters
298299
from .vpn_profile_response_py3 import VpnProfileResponse
300+
from .policy_settings_py3 import PolicySettings
301+
from .match_variable_py3 import MatchVariable
302+
from .match_condition_py3 import MatchCondition
303+
from .web_application_firewall_custom_rule_py3 import WebApplicationFirewallCustomRule
304+
from .web_application_firewall_policy_py3 import WebApplicationFirewallPolicy
299305
except (SyntaxError, ImportError):
300306
from .network_interface_tap_configuration import NetworkInterfaceTapConfiguration
301307
from .sub_resource import SubResource
@@ -397,6 +403,7 @@
397403
from .express_route_circuit_stats import ExpressRouteCircuitStats
398404
from .express_route_connection_id import ExpressRouteConnectionId
399405
from .express_route_circuit_connection import ExpressRouteCircuitConnection
406+
from .peer_express_route_circuit_connection import PeerExpressRouteCircuitConnection
400407
from .express_route_circuit_peering import ExpressRouteCircuitPeering
401408
from .route_filter import RouteFilter
402409
from .ipv6_express_route_circuit_peering_config import Ipv6ExpressRouteCircuitPeeringConfig
@@ -583,6 +590,11 @@
583590
from .p2_svpn_gateway import P2SVpnGateway
584591
from .p2_svpn_profile_parameters import P2SVpnProfileParameters
585592
from .vpn_profile_response import VpnProfileResponse
593+
from .policy_settings import PolicySettings
594+
from .match_variable import MatchVariable
595+
from .match_condition import MatchCondition
596+
from .web_application_firewall_custom_rule import WebApplicationFirewallCustomRule
597+
from .web_application_firewall_policy import WebApplicationFirewallPolicy
586598
from .application_gateway_paged import ApplicationGatewayPaged
587599
from .application_gateway_ssl_predefined_policy_paged import ApplicationGatewaySslPredefinedPolicyPaged
588600
from .application_security_group_paged import ApplicationSecurityGroupPaged
@@ -594,6 +606,7 @@
594606
from .express_route_circuit_authorization_paged import ExpressRouteCircuitAuthorizationPaged
595607
from .express_route_circuit_peering_paged import ExpressRouteCircuitPeeringPaged
596608
from .express_route_circuit_connection_paged import ExpressRouteCircuitConnectionPaged
609+
from .peer_express_route_circuit_connection_paged import PeerExpressRouteCircuitConnectionPaged
597610
from .express_route_circuit_paged import ExpressRouteCircuitPaged
598611
from .express_route_service_provider_paged import ExpressRouteServiceProviderPaged
599612
from .express_route_cross_connection_paged import ExpressRouteCrossConnectionPaged
@@ -646,6 +659,7 @@
646659
from .vpn_connection_paged import VpnConnectionPaged
647660
from .p2_svpn_server_configuration_paged import P2SVpnServerConfigurationPaged
648661
from .p2_svpn_gateway_paged import P2SVpnGatewayPaged
662+
from .web_application_firewall_policy_paged import WebApplicationFirewallPolicyPaged
649663
from .network_management_client_enums import (
650664
IPAllocationMethod,
651665
SecurityRuleProtocol,
@@ -741,6 +755,14 @@
741755
VirtualWanSecurityProviderType,
742756
TunnelConnectionStatus,
743757
HubVirtualNetworkConnectionStatus,
758+
WebApplicationFirewallEnabledState,
759+
WebApplicationFirewallMode,
760+
WebApplicationFirewallRuleType,
761+
WebApplicationFirewallMatchVariable,
762+
WebApplicationFirewallOperator,
763+
WebApplicationFirewallTransform,
764+
WebApplicationFirewallAction,
765+
WebApplicationFirewallPolicyResourceState,
744766
)
745767

746768
__all__ = [
@@ -844,6 +866,7 @@
844866
'ExpressRouteCircuitStats',
845867
'ExpressRouteConnectionId',
846868
'ExpressRouteCircuitConnection',
869+
'PeerExpressRouteCircuitConnection',
847870
'ExpressRouteCircuitPeering',
848871
'RouteFilter',
849872
'Ipv6ExpressRouteCircuitPeeringConfig',
@@ -1030,6 +1053,11 @@
10301053
'P2SVpnGateway',
10311054
'P2SVpnProfileParameters',
10321055
'VpnProfileResponse',
1056+
'PolicySettings',
1057+
'MatchVariable',
1058+
'MatchCondition',
1059+
'WebApplicationFirewallCustomRule',
1060+
'WebApplicationFirewallPolicy',
10331061
'ApplicationGatewayPaged',
10341062
'ApplicationGatewaySslPredefinedPolicyPaged',
10351063
'ApplicationSecurityGroupPaged',
@@ -1041,6 +1069,7 @@
10411069
'ExpressRouteCircuitAuthorizationPaged',
10421070
'ExpressRouteCircuitPeeringPaged',
10431071
'ExpressRouteCircuitConnectionPaged',
1072+
'PeerExpressRouteCircuitConnectionPaged',
10441073
'ExpressRouteCircuitPaged',
10451074
'ExpressRouteServiceProviderPaged',
10461075
'ExpressRouteCrossConnectionPaged',
@@ -1093,6 +1122,7 @@
10931122
'VpnConnectionPaged',
10941123
'P2SVpnServerConfigurationPaged',
10951124
'P2SVpnGatewayPaged',
1125+
'WebApplicationFirewallPolicyPaged',
10961126
'IPAllocationMethod',
10971127
'SecurityRuleProtocol',
10981128
'SecurityRuleAccess',
@@ -1187,4 +1217,12 @@
11871217
'VirtualWanSecurityProviderType',
11881218
'TunnelConnectionStatus',
11891219
'HubVirtualNetworkConnectionStatus',
1220+
'WebApplicationFirewallEnabledState',
1221+
'WebApplicationFirewallMode',
1222+
'WebApplicationFirewallRuleType',
1223+
'WebApplicationFirewallMatchVariable',
1224+
'WebApplicationFirewallOperator',
1225+
'WebApplicationFirewallTransform',
1226+
'WebApplicationFirewallAction',
1227+
'WebApplicationFirewallPolicyResourceState',
11901228
]

azure-mgmt-network/azure/mgmt/network/v2018_12_01/models/application_gateway.py

+27-9
Original file line numberDiff line numberDiff line change
@@ -38,44 +38,57 @@ class ApplicationGateway(Resource):
3838
'Stopping'
3939
:vartype operational_state: str or
4040
~azure.mgmt.network.v2018_12_01.models.ApplicationGatewayOperationalState
41-
:param gateway_ip_configurations: Subnets of application the gateway
42-
resource.
41+
:param gateway_ip_configurations: Subnets of the application gateway
42+
resource. For default limits, see [Application Gateway
43+
limits](https://docs.microsoft.com/azure/azure-subscription-service-limits#application-gateway-limits).
4344
:type gateway_ip_configurations:
4445
list[~azure.mgmt.network.v2018_12_01.models.ApplicationGatewayIPConfiguration]
4546
:param authentication_certificates: Authentication certificates of the
46-
application gateway resource.
47+
application gateway resource. For default limits, see [Application Gateway
48+
limits](https://docs.microsoft.com/azure/azure-subscription-service-limits#application-gateway-limits).
4749
:type authentication_certificates:
4850
list[~azure.mgmt.network.v2018_12_01.models.ApplicationGatewayAuthenticationCertificate]
4951
:param trusted_root_certificates: Trusted Root certificates of the
50-
application gateway resource.
52+
application gateway resource. For default limits, see [Application Gateway
53+
limits](https://docs.microsoft.com/azure/azure-subscription-service-limits#application-gateway-limits).
5154
:type trusted_root_certificates:
5255
list[~azure.mgmt.network.v2018_12_01.models.ApplicationGatewayTrustedRootCertificate]
5356
:param ssl_certificates: SSL certificates of the application gateway
54-
resource.
57+
resource. For default limits, see [Application Gateway
58+
limits](https://docs.microsoft.com/azure/azure-subscription-service-limits#application-gateway-limits).
5559
:type ssl_certificates:
5660
list[~azure.mgmt.network.v2018_12_01.models.ApplicationGatewaySslCertificate]
5761
:param frontend_ip_configurations: Frontend IP addresses of the
58-
application gateway resource.
62+
application gateway resource. For default limits, see [Application Gateway
63+
limits](https://docs.microsoft.com/azure/azure-subscription-service-limits#application-gateway-limits).
5964
:type frontend_ip_configurations:
6065
list[~azure.mgmt.network.v2018_12_01.models.ApplicationGatewayFrontendIPConfiguration]
6166
:param frontend_ports: Frontend ports of the application gateway resource.
67+
For default limits, see [Application Gateway
68+
limits](https://docs.microsoft.com/azure/azure-subscription-service-limits#application-gateway-limits).
6269
:type frontend_ports:
6370
list[~azure.mgmt.network.v2018_12_01.models.ApplicationGatewayFrontendPort]
6471
:param probes: Probes of the application gateway resource.
6572
:type probes:
6673
list[~azure.mgmt.network.v2018_12_01.models.ApplicationGatewayProbe]
6774
:param backend_address_pools: Backend address pool of the application
68-
gateway resource.
75+
gateway resource. For default limits, see [Application Gateway
76+
limits](https://docs.microsoft.com/azure/azure-subscription-service-limits#application-gateway-limits).
6977
:type backend_address_pools:
7078
list[~azure.mgmt.network.v2018_12_01.models.ApplicationGatewayBackendAddressPool]
7179
:param backend_http_settings_collection: Backend http settings of the
72-
application gateway resource.
80+
application gateway resource. For default limits, see [Application Gateway
81+
limits](https://docs.microsoft.com/azure/azure-subscription-service-limits#application-gateway-limits).
7382
:type backend_http_settings_collection:
7483
list[~azure.mgmt.network.v2018_12_01.models.ApplicationGatewayBackendHttpSettings]
7584
:param http_listeners: Http listeners of the application gateway resource.
85+
For default limits, see [Application Gateway
86+
limits](https://docs.microsoft.com/azure/azure-subscription-service-limits#application-gateway-limits).
7687
:type http_listeners:
7788
list[~azure.mgmt.network.v2018_12_01.models.ApplicationGatewayHttpListener]
7889
:param url_path_maps: URL path map of the application gateway resource.
90+
For default limits, see [Application Gateway
91+
limits](https://docs.microsoft.com/azure/azure-subscription-service-limits#application-gateway-limits).
7992
:type url_path_maps:
8093
list[~azure.mgmt.network.v2018_12_01.models.ApplicationGatewayUrlPathMap]
8194
:param request_routing_rules: Request routing rules of the application
@@ -87,13 +100,16 @@ class ApplicationGateway(Resource):
87100
:type rewrite_rule_sets:
88101
list[~azure.mgmt.network.v2018_12_01.models.ApplicationGatewayRewriteRuleSet]
89102
:param redirect_configurations: Redirect configurations of the application
90-
gateway resource.
103+
gateway resource. For default limits, see [Application Gateway
104+
limits](https://docs.microsoft.com/azure/azure-subscription-service-limits#application-gateway-limits).
91105
:type redirect_configurations:
92106
list[~azure.mgmt.network.v2018_12_01.models.ApplicationGatewayRedirectConfiguration]
93107
:param web_application_firewall_configuration: Web application firewall
94108
configuration.
95109
:type web_application_firewall_configuration:
96110
~azure.mgmt.network.v2018_12_01.models.ApplicationGatewayWebApplicationFirewallConfiguration
111+
:param firewall_policy: Reference of the FirewallPolicy resource.
112+
:type firewall_policy: ~azure.mgmt.network.v2018_12_01.models.SubResource
97113
:param enable_http2: Whether HTTP2 is enabled on the application gateway
98114
resource.
99115
:type enable_http2: bool
@@ -154,6 +170,7 @@ class ApplicationGateway(Resource):
154170
'rewrite_rule_sets': {'key': 'properties.rewriteRuleSets', 'type': '[ApplicationGatewayRewriteRuleSet]'},
155171
'redirect_configurations': {'key': 'properties.redirectConfigurations', 'type': '[ApplicationGatewayRedirectConfiguration]'},
156172
'web_application_firewall_configuration': {'key': 'properties.webApplicationFirewallConfiguration', 'type': 'ApplicationGatewayWebApplicationFirewallConfiguration'},
173+
'firewall_policy': {'key': 'properties.firewallPolicy', 'type': 'SubResource'},
157174
'enable_http2': {'key': 'properties.enableHttp2', 'type': 'bool'},
158175
'enable_fips': {'key': 'properties.enableFips', 'type': 'bool'},
159176
'autoscale_configuration': {'key': 'properties.autoscaleConfiguration', 'type': 'ApplicationGatewayAutoscaleConfiguration'},
@@ -185,6 +202,7 @@ def __init__(self, **kwargs):
185202
self.rewrite_rule_sets = kwargs.get('rewrite_rule_sets', None)
186203
self.redirect_configurations = kwargs.get('redirect_configurations', None)
187204
self.web_application_firewall_configuration = kwargs.get('web_application_firewall_configuration', None)
205+
self.firewall_policy = kwargs.get('firewall_policy', None)
188206
self.enable_http2 = kwargs.get('enable_http2', None)
189207
self.enable_fips = kwargs.get('enable_fips', None)
190208
self.autoscale_configuration = kwargs.get('autoscale_configuration', None)

azure-mgmt-network/azure/mgmt/network/v2018_12_01/models/application_gateway_backend_health_server.py

+4
Original file line numberDiff line numberDiff line change
@@ -24,16 +24,20 @@ class ApplicationGatewayBackendHealthServer(Model):
2424
'Unknown', 'Up', 'Down', 'Partial', 'Draining'
2525
:type health: str or
2626
~azure.mgmt.network.v2018_12_01.models.ApplicationGatewayBackendHealthServerHealth
27+
:param health_probe_log: Health Probe Log.
28+
:type health_probe_log: str
2729
"""
2830

2931
_attribute_map = {
3032
'address': {'key': 'address', 'type': 'str'},
3133
'ip_configuration': {'key': 'ipConfiguration', 'type': 'NetworkInterfaceIPConfiguration'},
3234
'health': {'key': 'health', 'type': 'str'},
35+
'health_probe_log': {'key': 'healthProbeLog', 'type': 'str'},
3336
}
3437

3538
def __init__(self, **kwargs):
3639
super(ApplicationGatewayBackendHealthServer, self).__init__(**kwargs)
3740
self.address = kwargs.get('address', None)
3841
self.ip_configuration = kwargs.get('ip_configuration', None)
3942
self.health = kwargs.get('health', None)
43+
self.health_probe_log = kwargs.get('health_probe_log', None)

azure-mgmt-network/azure/mgmt/network/v2018_12_01/models/application_gateway_backend_health_server_py3.py

+5-1
Original file line numberDiff line numberDiff line change
@@ -24,16 +24,20 @@ class ApplicationGatewayBackendHealthServer(Model):
2424
'Unknown', 'Up', 'Down', 'Partial', 'Draining'
2525
:type health: str or
2626
~azure.mgmt.network.v2018_12_01.models.ApplicationGatewayBackendHealthServerHealth
27+
:param health_probe_log: Health Probe Log.
28+
:type health_probe_log: str
2729
"""
2830

2931
_attribute_map = {
3032
'address': {'key': 'address', 'type': 'str'},
3133
'ip_configuration': {'key': 'ipConfiguration', 'type': 'NetworkInterfaceIPConfiguration'},
3234
'health': {'key': 'health', 'type': 'str'},
35+
'health_probe_log': {'key': 'healthProbeLog', 'type': 'str'},
3336
}
3437

35-
def __init__(self, *, address: str=None, ip_configuration=None, health=None, **kwargs) -> None:
38+
def __init__(self, *, address: str=None, ip_configuration=None, health=None, health_probe_log: str=None, **kwargs) -> None:
3639
super(ApplicationGatewayBackendHealthServer, self).__init__(**kwargs)
3740
self.address = address
3841
self.ip_configuration = ip_configuration
3942
self.health = health
43+
self.health_probe_log = health_probe_log

azure-mgmt-network/azure/mgmt/network/v2018_12_01/models/application_gateway_probe.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ class ApplicationGatewayProbe(SubResource):
3030
interval between two consecutive probes. Acceptable values are from 1
3131
second to 86400 seconds.
3232
:type interval: int
33-
:param timeout: the probe timeout in seconds. Probe marked as failed if
33+
:param timeout: The probe timeout in seconds. Probe marked as failed if
3434
valid response is not received with this timeout period. Acceptable values
3535
are from 1 second to 86400 seconds.
3636
:type timeout: int

azure-mgmt-network/azure/mgmt/network/v2018_12_01/models/application_gateway_probe_py3.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ class ApplicationGatewayProbe(SubResource):
3030
interval between two consecutive probes. Acceptable values are from 1
3131
second to 86400 seconds.
3232
:type interval: int
33-
:param timeout: the probe timeout in seconds. Probe marked as failed if
33+
:param timeout: The probe timeout in seconds. Probe marked as failed if
3434
valid response is not received with this timeout period. Acceptable values
3535
are from 1 second to 86400 seconds.
3636
:type timeout: int

0 commit comments

Comments
 (0)