Skip to content

Commit 303d984

Browse files
AutorestCIlmazuel
authored andcommitted
[AutoPR] network/resource-manager (#3617)
* [AutoPR network/resource-manager] Remove error code from swagger (#3507) * Generated from 82c4e9010292ed02c88fd64f6d3b7e17bd417eb9 Remove error code from swagger * Packaging update of azure-mgmt-network * [AutoPR network/resource-manager] Move parameter to keep order in SDK (#3731) * Generated from 911ebf46a4a178cdcc6aaa9695f6792f4c64ab89 Move parameter to keep order in SDK * Packaging update of azure-mgmt-network * [AutoPR network/resource-manager] Network october release (#3463) * Generated from bd2aca0 Update ADHybridHealthService.json (#3874) * Generated from 4b3ae81daaddc6079ec4a6a8ebeebccc019703e6 Updated NetworkConfigurationDiagnostic API + example (#3905) * Generated from c90c5d14e7b0b169a8cde763860d15aa48a0d37c (#3395) address the comments * Generated from 26fc76cf7c2ed2ae5289bd4946513351880d32ff add customer error spec for Application Gateway (#3985) * add customer error spec for Application Gateway * fix property name issue * [AutoPR network/resource-manager] add customer error spec for Application Gateway (#3409) * Generated from d9a3af34891cc703ecc3ba298fc737d6cc3e0fc0 add customer error spec for Application Gateway * Generated from 26299b453a6b2f99683899a78c4c302d39b7de03 fix property name issue * Generated from 19e41e2e7bb38120b813ad2314dc7c4f422b48c4 (#3417) Add ICMP to the list of supported protocols * Generated from ef5d8181e1a9f148a35d1b4467af2427a0afa29d Merge remote-tracking branch 'origin/master' into network-october-release * Packaging update of azure-mgmt-network * Packaging update of azure-mgmt-adhybridhealthservice * Generated from 7d9b9a991b92bfdbc31be3bf5fd2bd16bbb742a1 (#3478) change appgw custom error status code enum and fix a typo of customErrorConfiguration * Generated from 758c143eae019925ae9e021fbcd6821af918d000 Add ExpressRoutePort swagger (#4104) * Add ExpressRoutePort details to readme.md * ExpressRoutePort swagger * Refer SubscriptionIdParameter and ApiVersionParameter from network.json * Generated from b232daf214b1a03e32b14427be20bbca4ac805ac (#3509) ExpressRoutePort swagger * Generated from 6c4312edb758be23c2bdd7f8c2da0b8b76541187 Cherry pick NRP's changes from master to October branch (#4251) * Remove error code from swagger (#4103) * Modifying example templates : enabling Ipv6 support for Private Peering (#4232) * Modifying example templates : enabling Ipv6 support for Private Peering * Resolving oav validation error * [AutoPR network/resource-manager] Cherry pick NRP's changes from master to October branch (#3632) * Generated from 9ef9c433f66560956a610961c0e2a5ec70360064 Modifying example templates : enabling Ipv6 support for Private Peering (#4232) * Modifying example templates : enabling Ipv6 support for Private Peering * Resolving oav validation error * Packaging update of azure-mgmt-network * Packaging update of azure-mgmt-adhybridhealthservice * Generated from e8f2b491e5b1732d9e57cdf9ddd16907ba04920e Changes to add operation id for outbound rules (#4320) * Changes to add operation id for outbound rules * Changes to make outbound rule similar to load balancing rule * fix failures - add example json files * fix failures * Fixed line endings, specs, examples * [AutoPR network/resource-manager] Changes to add operation id for outbound rules (#3687) * Generated from fb767531a15f75017f43f44004a2aa75c1b13b9f fix failures * Generated from a9023fbd65049681b0ccc49d42a1c4276b0cd159 Merge pull request #1 from EvgenyAgafonchikov/fix-lb Fixed line endings, specs, examples * [AutoPR network/resource-manager] Change one parameter (#3700) * Generated from 9392c40ae5bf6575a8fdf47d0609226fdd8da689 Change one parameter * Generated from 084957762078dc07cce7c40e0d5358081f090e2a Change parameter in most recent version * Generated from 1f46c7babbbcc3379f21c6f5e3d16f693fe23111 Fix example * Generated from d0417082c41cfae8f0234ee02fe32b506bf4e605 New SKU for ER (#4342) * Packaging update of azure-mgmt-network * Rebuild by #3617 * Remove azure-mgmt-adhybridhealthservice by mistake on Network service PR * Network 2.3.0
1 parent bb7509f commit 303d984

File tree

49 files changed

+2286
-54
lines changed

Some content is hidden

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

49 files changed

+2286
-54
lines changed

azure-mgmt-network/HISTORY.rst

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

6+
2.3.0 (2018-11-07)
7+
++++++++++++++++++
8+
9+
**Features**
10+
11+
- Model ApplicationGatewayWebApplicationFirewallConfiguration has a new parameter exclusions
12+
- Model ApplicationGatewayWebApplicationFirewallConfiguration has a new parameter file_upload_limit_in_mb
13+
- Model ApplicationGatewayWebApplicationFirewallConfiguration has a new parameter max_request_body_size_in_kb
14+
- Model ApplicationGatewayHttpListener has a new parameter custom_error_configurations
15+
- Model ExpressRouteCircuit has a new parameter bandwidth_in_gbps
16+
- Model ExpressRouteCircuit has a new parameter stag
17+
- Model ExpressRouteCircuit has a new parameter express_route_port
18+
- Model EvaluatedNetworkSecurityGroup has a new parameter applied_to
19+
- Model NetworkConfigurationDiagnosticResult has a new parameter profile
20+
- Model ApplicationGateway has a new parameter custom_error_configurations
21+
- Added operation group LoadBalancerOutboundRulesOperations
22+
- Added operation group ExpressRouteLinksOperations
23+
- Added operation group ExpressRoutePortsOperations
24+
- Added operation group ExpressRoutePortsLocationsOperations
25+
26+
**Breaking changes**
27+
28+
- Model NetworkConfigurationDiagnosticResult no longer has parameter traffic_query
29+
- Operation NetworkWatchersOperations.get_network_configuration_diagnostic has a new signature (no longer takes target_resource_id, queries, but a NetworkConfigurationDiagnosticParameters instance)
30+
631
2.2.1 (2018-09-14)
732
++++++++++++++++++
833

azure-mgmt-network/MANIFEST.in

+3
Original file line numberDiff line numberDiff line change
@@ -1 +1,4 @@
11
include *.rst
2+
include azure/__init__.py
3+
include azure/mgmt/__init__.py
4+

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

+52
Original file line numberDiff line numberDiff line change
@@ -848,6 +848,45 @@ def express_route_gateways(self):
848848
raise NotImplementedError("APIVersion {} is not available".format(api_version))
849849
return OperationClass(self._client, self.config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
850850

851+
@property
852+
def express_route_links(self):
853+
"""Instance depends on the API version:
854+
855+
* 2018-08-01: :class:`ExpressRouteLinksOperations<azure.mgmt.network.v2018_08_01.operations.ExpressRouteLinksOperations>`
856+
"""
857+
api_version = self._get_api_version('express_route_links')
858+
if api_version == '2018-08-01':
859+
from .v2018_08_01.operations import ExpressRouteLinksOperations as OperationClass
860+
else:
861+
raise NotImplementedError("APIVersion {} is not available".format(api_version))
862+
return OperationClass(self._client, self.config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
863+
864+
@property
865+
def express_route_ports(self):
866+
"""Instance depends on the API version:
867+
868+
* 2018-08-01: :class:`ExpressRoutePortsOperations<azure.mgmt.network.v2018_08_01.operations.ExpressRoutePortsOperations>`
869+
"""
870+
api_version = self._get_api_version('express_route_ports')
871+
if api_version == '2018-08-01':
872+
from .v2018_08_01.operations import ExpressRoutePortsOperations as OperationClass
873+
else:
874+
raise NotImplementedError("APIVersion {} is not available".format(api_version))
875+
return OperationClass(self._client, self.config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
876+
877+
@property
878+
def express_route_ports_locations(self):
879+
"""Instance depends on the API version:
880+
881+
* 2018-08-01: :class:`ExpressRoutePortsLocationsOperations<azure.mgmt.network.v2018_08_01.operations.ExpressRoutePortsLocationsOperations>`
882+
"""
883+
api_version = self._get_api_version('express_route_ports_locations')
884+
if api_version == '2018-08-01':
885+
from .v2018_08_01.operations import ExpressRoutePortsLocationsOperations as OperationClass
886+
else:
887+
raise NotImplementedError("APIVersion {} is not available".format(api_version))
888+
return OperationClass(self._client, self.config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
889+
851890
@property
852891
def express_route_service_providers(self):
853892
"""Instance depends on the API version:
@@ -1153,6 +1192,19 @@ def load_balancer_network_interfaces(self):
11531192
raise NotImplementedError("APIVersion {} is not available".format(api_version))
11541193
return OperationClass(self._client, self.config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
11551194

1195+
@property
1196+
def load_balancer_outbound_rules(self):
1197+
"""Instance depends on the API version:
1198+
1199+
* 2018-08-01: :class:`LoadBalancerOutboundRulesOperations<azure.mgmt.network.v2018_08_01.operations.LoadBalancerOutboundRulesOperations>`
1200+
"""
1201+
api_version = self._get_api_version('load_balancer_outbound_rules')
1202+
if api_version == '2018-08-01':
1203+
from .v2018_08_01.operations import LoadBalancerOutboundRulesOperations as OperationClass
1204+
else:
1205+
raise NotImplementedError("APIVersion {} is not available".format(api_version))
1206+
return OperationClass(self._client, self.config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
1207+
11561208
@property
11571209
def load_balancer_probes(self):
11581210
"""Instance depends on the API version:

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

+39-3
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@
5555
from .application_gateway_ssl_certificate_py3 import ApplicationGatewaySslCertificate
5656
from .application_gateway_frontend_ip_configuration_py3 import ApplicationGatewayFrontendIPConfiguration
5757
from .application_gateway_frontend_port_py3 import ApplicationGatewayFrontendPort
58+
from .application_gateway_custom_error_py3 import ApplicationGatewayCustomError
5859
from .application_gateway_http_listener_py3 import ApplicationGatewayHttpListener
5960
from .application_gateway_path_rule_py3 import ApplicationGatewayPathRule
6061
from .application_gateway_probe_health_response_match_py3 import ApplicationGatewayProbeHealthResponseMatch
@@ -63,6 +64,7 @@
6364
from .application_gateway_redirect_configuration_py3 import ApplicationGatewayRedirectConfiguration
6465
from .application_gateway_url_path_map_py3 import ApplicationGatewayUrlPathMap
6566
from .application_gateway_firewall_disabled_rule_group_py3 import ApplicationGatewayFirewallDisabledRuleGroup
67+
from .application_gateway_firewall_exclusion_py3 import ApplicationGatewayFirewallExclusion
6668
from .application_gateway_web_application_firewall_configuration_py3 import ApplicationGatewayWebApplicationFirewallConfiguration
6769
from .application_gateway_autoscale_configuration_py3 import ApplicationGatewayAutoscaleConfiguration
6870
from .application_gateway_py3 import ApplicationGateway
@@ -123,6 +125,10 @@
123125
from .express_route_gateway_py3 import ExpressRouteGateway
124126
from .express_route_gateway_list_py3 import ExpressRouteGatewayList
125127
from .express_route_connection_list_py3 import ExpressRouteConnectionList
128+
from .express_route_ports_location_bandwidths_py3 import ExpressRoutePortsLocationBandwidths
129+
from .express_route_ports_location_py3 import ExpressRoutePortsLocation
130+
from .express_route_link_py3 import ExpressRouteLink
131+
from .express_route_port_py3 import ExpressRoutePort
126132
from .load_balancer_sku_py3 import LoadBalancerSku
127133
from .load_balancing_rule_py3 import LoadBalancingRule
128134
from .probe_py3 import Probe
@@ -201,7 +207,7 @@
201207
from .connection_monitor_result_py3 import ConnectionMonitorResult
202208
from .connection_state_snapshot_py3 import ConnectionStateSnapshot
203209
from .connection_monitor_query_result_py3 import ConnectionMonitorQueryResult
204-
from .traffic_query_py3 import TrafficQuery
210+
from .network_configuration_diagnostic_profile_py3 import NetworkConfigurationDiagnosticProfile
205211
from .network_configuration_diagnostic_parameters_py3 import NetworkConfigurationDiagnosticParameters
206212
from .matched_rule_py3 import MatchedRule
207213
from .network_security_rules_evaluation_result_py3 import NetworkSecurityRulesEvaluationResult
@@ -322,6 +328,7 @@
322328
from .application_gateway_ssl_certificate import ApplicationGatewaySslCertificate
323329
from .application_gateway_frontend_ip_configuration import ApplicationGatewayFrontendIPConfiguration
324330
from .application_gateway_frontend_port import ApplicationGatewayFrontendPort
331+
from .application_gateway_custom_error import ApplicationGatewayCustomError
325332
from .application_gateway_http_listener import ApplicationGatewayHttpListener
326333
from .application_gateway_path_rule import ApplicationGatewayPathRule
327334
from .application_gateway_probe_health_response_match import ApplicationGatewayProbeHealthResponseMatch
@@ -330,6 +337,7 @@
330337
from .application_gateway_redirect_configuration import ApplicationGatewayRedirectConfiguration
331338
from .application_gateway_url_path_map import ApplicationGatewayUrlPathMap
332339
from .application_gateway_firewall_disabled_rule_group import ApplicationGatewayFirewallDisabledRuleGroup
340+
from .application_gateway_firewall_exclusion import ApplicationGatewayFirewallExclusion
333341
from .application_gateway_web_application_firewall_configuration import ApplicationGatewayWebApplicationFirewallConfiguration
334342
from .application_gateway_autoscale_configuration import ApplicationGatewayAutoscaleConfiguration
335343
from .application_gateway import ApplicationGateway
@@ -390,6 +398,10 @@
390398
from .express_route_gateway import ExpressRouteGateway
391399
from .express_route_gateway_list import ExpressRouteGatewayList
392400
from .express_route_connection_list import ExpressRouteConnectionList
401+
from .express_route_ports_location_bandwidths import ExpressRoutePortsLocationBandwidths
402+
from .express_route_ports_location import ExpressRoutePortsLocation
403+
from .express_route_link import ExpressRouteLink
404+
from .express_route_port import ExpressRoutePort
393405
from .load_balancer_sku import LoadBalancerSku
394406
from .load_balancing_rule import LoadBalancingRule
395407
from .probe import Probe
@@ -468,7 +480,7 @@
468480
from .connection_monitor_result import ConnectionMonitorResult
469481
from .connection_state_snapshot import ConnectionStateSnapshot
470482
from .connection_monitor_query_result import ConnectionMonitorQueryResult
471-
from .traffic_query import TrafficQuery
483+
from .network_configuration_diagnostic_profile import NetworkConfigurationDiagnosticProfile
472484
from .network_configuration_diagnostic_parameters import NetworkConfigurationDiagnosticParameters
473485
from .matched_rule import MatchedRule
474486
from .network_security_rules_evaluation_result import NetworkSecurityRulesEvaluationResult
@@ -557,12 +569,16 @@
557569
from .express_route_service_provider_paged import ExpressRouteServiceProviderPaged
558570
from .express_route_cross_connection_paged import ExpressRouteCrossConnectionPaged
559571
from .express_route_cross_connection_peering_paged import ExpressRouteCrossConnectionPeeringPaged
572+
from .express_route_ports_location_paged import ExpressRoutePortsLocationPaged
573+
from .express_route_port_paged import ExpressRoutePortPaged
574+
from .express_route_link_paged import ExpressRouteLinkPaged
560575
from .interface_endpoint_paged import InterfaceEndpointPaged
561576
from .load_balancer_paged import LoadBalancerPaged
562577
from .backend_address_pool_paged import BackendAddressPoolPaged
563578
from .frontend_ip_configuration_paged import FrontendIPConfigurationPaged
564579
from .inbound_nat_rule_paged import InboundNatRulePaged
565580
from .load_balancing_rule_paged import LoadBalancingRulePaged
581+
from .outbound_rule_paged import OutboundRulePaged
566582
from .network_interface_paged import NetworkInterfacePaged
567583
from .probe_paged import ProbePaged
568584
from .network_interface_ip_configuration_paged import NetworkInterfaceIPConfigurationPaged
@@ -619,6 +635,7 @@
619635
ApplicationGatewaySslPolicyType,
620636
ApplicationGatewaySslPolicyName,
621637
ApplicationGatewaySslCipherSuite,
638+
ApplicationGatewayCustomErrorStatusCode,
622639
ApplicationGatewayRequestRoutingRuleType,
623640
ApplicationGatewayRedirectType,
624641
ApplicationGatewayOperationalState,
@@ -638,6 +655,9 @@
638655
ExpressRouteCircuitSkuTier,
639656
ExpressRouteCircuitSkuFamily,
640657
ServiceProviderProvisioningState,
658+
ExpressRouteLinkConnectorType,
659+
ExpressRouteLinkAdminState,
660+
ExpressRoutePortsEncapsulation,
641661
LoadBalancerSkuName,
642662
LoadDistribution,
643663
ProbeProtocol,
@@ -661,6 +681,7 @@
661681
ConnectionMonitorSourceStatus,
662682
ConnectionState,
663683
EvaluationState,
684+
VerbosityLevel,
664685
PublicIPPrefixSkuName,
665686
VirtualNetworkPeeringState,
666687
VirtualNetworkGatewayType,
@@ -734,6 +755,7 @@
734755
'ApplicationGatewaySslCertificate',
735756
'ApplicationGatewayFrontendIPConfiguration',
736757
'ApplicationGatewayFrontendPort',
758+
'ApplicationGatewayCustomError',
737759
'ApplicationGatewayHttpListener',
738760
'ApplicationGatewayPathRule',
739761
'ApplicationGatewayProbeHealthResponseMatch',
@@ -742,6 +764,7 @@
742764
'ApplicationGatewayRedirectConfiguration',
743765
'ApplicationGatewayUrlPathMap',
744766
'ApplicationGatewayFirewallDisabledRuleGroup',
767+
'ApplicationGatewayFirewallExclusion',
745768
'ApplicationGatewayWebApplicationFirewallConfiguration',
746769
'ApplicationGatewayAutoscaleConfiguration',
747770
'ApplicationGateway',
@@ -802,6 +825,10 @@
802825
'ExpressRouteGateway',
803826
'ExpressRouteGatewayList',
804827
'ExpressRouteConnectionList',
828+
'ExpressRoutePortsLocationBandwidths',
829+
'ExpressRoutePortsLocation',
830+
'ExpressRouteLink',
831+
'ExpressRoutePort',
805832
'LoadBalancerSku',
806833
'LoadBalancingRule',
807834
'Probe',
@@ -880,7 +907,7 @@
880907
'ConnectionMonitorResult',
881908
'ConnectionStateSnapshot',
882909
'ConnectionMonitorQueryResult',
883-
'TrafficQuery',
910+
'NetworkConfigurationDiagnosticProfile',
884911
'NetworkConfigurationDiagnosticParameters',
885912
'MatchedRule',
886913
'NetworkSecurityRulesEvaluationResult',
@@ -969,12 +996,16 @@
969996
'ExpressRouteServiceProviderPaged',
970997
'ExpressRouteCrossConnectionPaged',
971998
'ExpressRouteCrossConnectionPeeringPaged',
999+
'ExpressRoutePortsLocationPaged',
1000+
'ExpressRoutePortPaged',
1001+
'ExpressRouteLinkPaged',
9721002
'InterfaceEndpointPaged',
9731003
'LoadBalancerPaged',
9741004
'BackendAddressPoolPaged',
9751005
'FrontendIPConfigurationPaged',
9761006
'InboundNatRulePaged',
9771007
'LoadBalancingRulePaged',
1008+
'OutboundRulePaged',
9781009
'NetworkInterfacePaged',
9791010
'ProbePaged',
9801011
'NetworkInterfaceIPConfigurationPaged',
@@ -1030,6 +1061,7 @@
10301061
'ApplicationGatewaySslPolicyType',
10311062
'ApplicationGatewaySslPolicyName',
10321063
'ApplicationGatewaySslCipherSuite',
1064+
'ApplicationGatewayCustomErrorStatusCode',
10331065
'ApplicationGatewayRequestRoutingRuleType',
10341066
'ApplicationGatewayRedirectType',
10351067
'ApplicationGatewayOperationalState',
@@ -1049,6 +1081,9 @@
10491081
'ExpressRouteCircuitSkuTier',
10501082
'ExpressRouteCircuitSkuFamily',
10511083
'ServiceProviderProvisioningState',
1084+
'ExpressRouteLinkConnectorType',
1085+
'ExpressRouteLinkAdminState',
1086+
'ExpressRoutePortsEncapsulation',
10521087
'LoadBalancerSkuName',
10531088
'LoadDistribution',
10541089
'ProbeProtocol',
@@ -1072,6 +1107,7 @@
10721107
'ConnectionMonitorSourceStatus',
10731108
'ConnectionState',
10741109
'EvaluationState',
1110+
'VerbosityLevel',
10751111
'PublicIPPrefixSkuName',
10761112
'VirtualNetworkPeeringState',
10771113
'VirtualNetworkGatewayType',

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

+6
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,10 @@ class ApplicationGateway(Resource):
105105
:param provisioning_state: Provisioning state of the application gateway
106106
resource. Possible values are: 'Updating', 'Deleting', and 'Failed'.
107107
:type provisioning_state: str
108+
:param custom_error_configurations: Custom error configurations of the
109+
application gateway resource.
110+
:type custom_error_configurations:
111+
list[~azure.mgmt.network.v2018_08_01.models.ApplicationGatewayCustomError]
108112
:param etag: A unique read-only string that changes whenever the resource
109113
is updated.
110114
:type etag: str
@@ -147,6 +151,7 @@ class ApplicationGateway(Resource):
147151
'autoscale_configuration': {'key': 'properties.autoscaleConfiguration', 'type': 'ApplicationGatewayAutoscaleConfiguration'},
148152
'resource_guid': {'key': 'properties.resourceGuid', 'type': 'str'},
149153
'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'},
154+
'custom_error_configurations': {'key': 'properties.customErrorConfigurations', 'type': '[ApplicationGatewayCustomError]'},
150155
'etag': {'key': 'etag', 'type': 'str'},
151156
'zones': {'key': 'zones', 'type': '[str]'},
152157
}
@@ -175,5 +180,6 @@ def __init__(self, **kwargs):
175180
self.autoscale_configuration = kwargs.get('autoscale_configuration', None)
176181
self.resource_guid = kwargs.get('resource_guid', None)
177182
self.provisioning_state = kwargs.get('provisioning_state', None)
183+
self.custom_error_configurations = kwargs.get('custom_error_configurations', None)
178184
self.etag = kwargs.get('etag', None)
179185
self.zones = kwargs.get('zones', None)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# coding=utf-8
2+
# --------------------------------------------------------------------------
3+
# Copyright (c) Microsoft Corporation. All rights reserved.
4+
# Licensed under the MIT License. See License.txt in the project root for
5+
# license information.
6+
#
7+
# Code generated by Microsoft (R) AutoRest Code Generator.
8+
# Changes may cause incorrect behavior and will be lost if the code is
9+
# regenerated.
10+
# --------------------------------------------------------------------------
11+
12+
from msrest.serialization import Model
13+
14+
15+
class ApplicationGatewayCustomError(Model):
16+
"""Customer error of an application gateway.
17+
18+
:param status_code: Status code of the application gateway customer error.
19+
Possible values include: 'HttpStatus403', 'HttpStatus502'
20+
:type status_code: str or
21+
~azure.mgmt.network.v2018_08_01.models.ApplicationGatewayCustomErrorStatusCode
22+
:param custom_error_page_url: Error page URL of the application gateway
23+
customer error.
24+
:type custom_error_page_url: str
25+
"""
26+
27+
_attribute_map = {
28+
'status_code': {'key': 'statusCode', 'type': 'str'},
29+
'custom_error_page_url': {'key': 'customErrorPageUrl', 'type': 'str'},
30+
}
31+
32+
def __init__(self, **kwargs):
33+
super(ApplicationGatewayCustomError, self).__init__(**kwargs)
34+
self.status_code = kwargs.get('status_code', None)
35+
self.custom_error_page_url = kwargs.get('custom_error_page_url', None)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# coding=utf-8
2+
# --------------------------------------------------------------------------
3+
# Copyright (c) Microsoft Corporation. All rights reserved.
4+
# Licensed under the MIT License. See License.txt in the project root for
5+
# license information.
6+
#
7+
# Code generated by Microsoft (R) AutoRest Code Generator.
8+
# Changes may cause incorrect behavior and will be lost if the code is
9+
# regenerated.
10+
# --------------------------------------------------------------------------
11+
12+
from msrest.serialization import Model
13+
14+
15+
class ApplicationGatewayCustomError(Model):
16+
"""Customer error of an application gateway.
17+
18+
:param status_code: Status code of the application gateway customer error.
19+
Possible values include: 'HttpStatus403', 'HttpStatus502'
20+
:type status_code: str or
21+
~azure.mgmt.network.v2018_08_01.models.ApplicationGatewayCustomErrorStatusCode
22+
:param custom_error_page_url: Error page URL of the application gateway
23+
customer error.
24+
:type custom_error_page_url: str
25+
"""
26+
27+
_attribute_map = {
28+
'status_code': {'key': 'statusCode', 'type': 'str'},
29+
'custom_error_page_url': {'key': 'customErrorPageUrl', 'type': 'str'},
30+
}
31+
32+
def __init__(self, *, status_code=None, custom_error_page_url: str=None, **kwargs) -> None:
33+
super(ApplicationGatewayCustomError, self).__init__(**kwargs)
34+
self.status_code = status_code
35+
self.custom_error_page_url = custom_error_page_url

0 commit comments

Comments
 (0)