From d9a3af34891cc703ecc3ba298fc737d6cc3e0fc0 Mon Sep 17 00:00:00 2001 From: Kai-Chi Lin Date: Wed, 19 Sep 2018 13:47:16 -0700 Subject: [PATCH 1/2] add customer error spec for Application Gateway --- .../stable/2018-08-01/applicationGateway.json | 39 ++++++++++++++++++- 1 file changed, 37 insertions(+), 2 deletions(-) diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-08-01/applicationGateway.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-08-01/applicationGateway.json index 9900270e7ce6..fe64447cd971 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-08-01/applicationGateway.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-08-01/applicationGateway.json @@ -1217,7 +1217,14 @@ "provisioningState": { "type": "string", "description": "Provisioning state of the HTTP listener resource. Possible values are: 'Updating', 'Deleting', and 'Failed'." - } + }, + "CustomErrorConfiguration": { + "type": "array", + "items": { + "$ref": "#/definitions/ApplicationGatewayCustomError" + }, + "description": "Custom error configurations of the HTTP listener." + } }, "description": "Properties of HTTP listener of an application gateway." }, @@ -1683,7 +1690,14 @@ "provisioningState": { "type": "string", "description": "Provisioning state of the application gateway resource. Possible values are: 'Updating', 'Deleting', and 'Failed'." - } + }, + "CustomErrorConfiguration": { + "type": "array", + "items": { + "$ref": "#/definitions/ApplicationGatewayCustomError" + }, + "description": "Custom error configurations of the application gateway resource." + } }, "description": "Properties of the application gateway." }, @@ -2084,6 +2098,27 @@ } }, "description": "Properties of ApplicationGatewaySslPredefinedPolicy" + }, + "ApplicationGatewayCustomError": { + "properties": { + "StatusCode": { + "type": "string", + "description": "Status code of the application gateway customer error.", + "enum": [ + "403", + "502" + ], + "x-ms-enum": { + "name": "ApplicationGatewayCustomErrorStatusCode", + "modelAsString": true + } + }, + "CustomErrorPageUrl": { + "type": "string", + "description": "Error page URL of the application gateway customer error." + } + }, + "description": "Customer error of an application gateway." }, "PolicyNameEnum": { "type": "string", From 26299b453a6b2f99683899a78c4c302d39b7de03 Mon Sep 17 00:00:00 2001 From: Kai-Chi Lin Date: Fri, 21 Sep 2018 15:02:06 -0700 Subject: [PATCH 2/2] fix property name issue --- .../stable/2018-08-01/applicationGateway.json | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2018-08-01/applicationGateway.json b/specification/network/resource-manager/Microsoft.Network/stable/2018-08-01/applicationGateway.json index fe64447cd971..56dca5dc7a08 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2018-08-01/applicationGateway.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2018-08-01/applicationGateway.json @@ -1218,7 +1218,7 @@ "type": "string", "description": "Provisioning state of the HTTP listener resource. Possible values are: 'Updating', 'Deleting', and 'Failed'." }, - "CustomErrorConfiguration": { + "customErrorConfiguration": { "type": "array", "items": { "$ref": "#/definitions/ApplicationGatewayCustomError" @@ -1691,7 +1691,7 @@ "type": "string", "description": "Provisioning state of the application gateway resource. Possible values are: 'Updating', 'Deleting', and 'Failed'." }, - "CustomErrorConfiguration": { + "customErrorConfiguration": { "type": "array", "items": { "$ref": "#/definitions/ApplicationGatewayCustomError" @@ -2101,7 +2101,7 @@ }, "ApplicationGatewayCustomError": { "properties": { - "StatusCode": { + "statusCode": { "type": "string", "description": "Status code of the application gateway customer error.", "enum": [ @@ -2113,7 +2113,7 @@ "modelAsString": true } }, - "CustomErrorPageUrl": { + "customErrorPageUrl": { "type": "string", "description": "Error page URL of the application gateway customer error." }