-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Generated from 26fc76cf7c2ed2ae5289bd4946513351880d32ff
add customer error spec for Application Gateway (#3985) * add customer error spec for Application Gateway * fix property name issue
- Loading branch information
1 parent
1d27e71
commit 54365b5
Showing
8 changed files
with
107 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 35 additions & 0 deletions
35
azure-mgmt-network/azure/mgmt/network/v2018_08_01/models/application_gateway_custom_error.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
# 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 ApplicationGatewayCustomError(Model): | ||
"""Customer error of an application gateway. | ||
:param status_code: Status code of the application gateway customer error. | ||
Possible values include: '403', '502' | ||
:type status_code: str or | ||
~azure.mgmt.network.v2018_08_01.models.ApplicationGatewayCustomErrorStatusCode | ||
:param custom_error_page_url: Error page URL of the application gateway | ||
customer error. | ||
:type custom_error_page_url: str | ||
""" | ||
|
||
_attribute_map = { | ||
'status_code': {'key': 'statusCode', 'type': 'str'}, | ||
'custom_error_page_url': {'key': 'customErrorPageUrl', 'type': 'str'}, | ||
} | ||
|
||
def __init__(self, **kwargs): | ||
super(ApplicationGatewayCustomError, self).__init__(**kwargs) | ||
self.status_code = kwargs.get('status_code', None) | ||
self.custom_error_page_url = kwargs.get('custom_error_page_url', None) |
35 changes: 35 additions & 0 deletions
35
...gmt-network/azure/mgmt/network/v2018_08_01/models/application_gateway_custom_error_py3.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
# 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 ApplicationGatewayCustomError(Model): | ||
"""Customer error of an application gateway. | ||
:param status_code: Status code of the application gateway customer error. | ||
Possible values include: '403', '502' | ||
:type status_code: str or | ||
~azure.mgmt.network.v2018_08_01.models.ApplicationGatewayCustomErrorStatusCode | ||
:param custom_error_page_url: Error page URL of the application gateway | ||
customer error. | ||
:type custom_error_page_url: str | ||
""" | ||
|
||
_attribute_map = { | ||
'status_code': {'key': 'statusCode', 'type': 'str'}, | ||
'custom_error_page_url': {'key': 'customErrorPageUrl', 'type': 'str'}, | ||
} | ||
|
||
def __init__(self, *, status_code=None, custom_error_page_url: str=None, **kwargs) -> None: | ||
super(ApplicationGatewayCustomError, self).__init__(**kwargs) | ||
self.status_code = status_code | ||
self.custom_error_page_url = custom_error_page_url |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters