Skip to content
This repository was archived by the owner on May 5, 2023. It is now read-only.
Closed
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
24 changes: 24 additions & 0 deletions lib/services/networkManagement2/lib/models/applicationGateway.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,13 @@ class ApplicationGateway extends models['Resource'] {
* Whether allow WAF to check request Body.
* @member {number} [webApplicationFirewallConfiguration.maxRequestBodySize]
* Maxium request body size for WAF.
* @member {number}
* [webApplicationFirewallConfiguration.maxRequestBodySizeInKb] Maxium
* request body size in Kb for WAF.
* @member {number} [webApplicationFirewallConfiguration.fileUploadLimitInMb]
* Maxium file upload size in Mb for WAF.
* @member {array} [webApplicationFirewallConfiguration.exclusions] The
* exclusion list.
* @member {boolean} [enableHttp2] Whether HTTP2 is enabled on the
* application gateway resource.
* @member {boolean} [enableFips] Whether FIPS is enabled on the application
Expand All @@ -100,6 +107,8 @@ class ApplicationGateway extends models['Resource'] {
* @member {string} [provisioningState] Provisioning state of the application
* gateway resource. Possible values are: 'Updating', 'Deleting', and
* 'Failed'.
* @member {array} [customErrorConfiguration] Custom error configurations of
* the application gateway resource.
* @member {string} [etag] A unique read-only string that changes whenever
* the resource is updated.
* @member {array} [zones] A list of availability zones denoting where the
Expand Down Expand Up @@ -430,6 +439,21 @@ class ApplicationGateway extends models['Resource'] {
name: 'String'
}
},
customErrorConfiguration: {
required: false,
serializedName: 'properties.customErrorConfiguration',
type: {
name: 'Sequence',
element: {
required: false,
serializedName: 'ApplicationGatewayCustomErrorElementType',
type: {
name: 'Composite',
className: 'ApplicationGatewayCustomError'
}
}
}
},
etag: {
required: false,
serializedName: 'etag',
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
/*
* 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.
*/

'use strict';

/**
* Customer error of an application gateway.
*
*/
class ApplicationGatewayCustomError {
/**
* Create a ApplicationGatewayCustomError.
* @member {string} [statusCode] Status code of the application gateway
* customer error. Possible values include: '403', '502'
* @member {string} [customErrorPageUrl] Error page URL of the application
* gateway customer error.
*/
constructor() {
}

/**
* Defines the metadata of ApplicationGatewayCustomError
*
* @returns {object} metadata of ApplicationGatewayCustomError
*
*/
mapper() {
return {
required: false,
serializedName: 'ApplicationGatewayCustomError',
type: {
name: 'Composite',
className: 'ApplicationGatewayCustomError',
modelProperties: {
statusCode: {
required: false,
serializedName: 'statusCode',
type: {
name: 'String'
}
},
customErrorPageUrl: {
required: false,
serializedName: 'customErrorPageUrl',
type: {
name: 'String'
}
}
}
}
};
}
}

module.exports = ApplicationGatewayCustomError;
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
/*
* 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.
*/

'use strict';

/**
* Allow to exclude some variable satisfy the condition for the WAF check
*
*/
class ApplicationGatewayFirewallExclusion {
/**
* Create a ApplicationGatewayFirewallExclusion.
* @member {string} matchVariable The variable to be excluded.
* @member {string} selectorMatchOperator When matchVariable is a collection,
* operate on the selector to specify which elements in the collection this
* exclusion applies to.
* @member {string} selector When matchVariable is a collection, operator
* used to specify which elements in the collection this exclusion applies
* to.
*/
constructor() {
}

/**
* Defines the metadata of ApplicationGatewayFirewallExclusion
*
* @returns {object} metadata of ApplicationGatewayFirewallExclusion
*
*/
mapper() {
return {
required: false,
serializedName: 'ApplicationGatewayFirewallExclusion',
type: {
name: 'Composite',
className: 'ApplicationGatewayFirewallExclusion',
modelProperties: {
matchVariable: {
required: true,
serializedName: 'matchVariable',
type: {
name: 'String'
}
},
selectorMatchOperator: {
required: true,
serializedName: 'selectorMatchOperator',
type: {
name: 'String'
}
},
selector: {
required: true,
serializedName: 'selector',
type: {
name: 'String'
}
}
}
}
};
}
}

module.exports = ApplicationGatewayFirewallExclusion;
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ class ApplicationGatewayHttpListener extends models['SubResource'] {
* @member {string} [provisioningState] Provisioning state of the HTTP
* listener resource. Possible values are: 'Updating', 'Deleting', and
* 'Failed'.
* @member {array} [customErrorConfiguration] Custom error configurations of
* the HTTP listener.
* @member {string} [name] Name of the HTTP listener that is unique within an
* Application Gateway.
* @member {string} [etag] A unique read-only string that changes whenever
Expand Down Expand Up @@ -120,6 +122,21 @@ class ApplicationGatewayHttpListener extends models['SubResource'] {
name: 'String'
}
},
customErrorConfiguration: {
required: false,
serializedName: 'properties.customErrorConfiguration',
type: {
name: 'Sequence',
element: {
required: false,
serializedName: 'ApplicationGatewayCustomErrorElementType',
type: {
name: 'Composite',
className: 'ApplicationGatewayCustomError'
}
}
}
},
name: {
required: false,
serializedName: 'name',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@ class ApplicationGatewayWebApplicationFirewallConfiguration {
* @member {boolean} [requestBodyCheck] Whether allow WAF to check request
* Body.
* @member {number} [maxRequestBodySize] Maxium request body size for WAF.
* @member {number} [maxRequestBodySizeInKb] Maxium request body size in Kb
* for WAF.
* @member {number} [fileUploadLimitInMb] Maxium file upload size in Mb for
* WAF.
* @member {array} [exclusions] The exclusion list.
*/
constructor() {
}
Expand Down Expand Up @@ -106,6 +111,43 @@ class ApplicationGatewayWebApplicationFirewallConfiguration {
type: {
name: 'Number'
}
},
maxRequestBodySizeInKb: {
required: false,
serializedName: 'maxRequestBodySizeInKb',
constraints: {
InclusiveMaximum: 128,
InclusiveMinimum: 8
},
type: {
name: 'Number'
}
},
fileUploadLimitInMb: {
required: false,
serializedName: 'fileUploadLimitInMb',
constraints: {
InclusiveMaximum: 500,
InclusiveMinimum: 0
},
type: {
name: 'Number'
}
},
exclusions: {
required: false,
serializedName: 'exclusions',
type: {
name: 'Sequence',
element: {
required: false,
serializedName: 'ApplicationGatewayFirewallExclusionElementType',
type: {
name: 'Composite',
className: 'ApplicationGatewayFirewallExclusion'
}
}
}
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ class EvaluatedNetworkSecurityGroup {
/**
* Create a EvaluatedNetworkSecurityGroup.
* @member {string} [networkSecurityGroupId] Network security group ID.
* @member {string} [appliedTo] Resource ID of nic or subnet to which network
* security group is applied.
* @member {object} [matchedRule]
* @member {string} [matchedRule.ruleName] Name of the matched network
* security rule.
Expand Down Expand Up @@ -50,6 +52,13 @@ class EvaluatedNetworkSecurityGroup {
name: 'String'
}
},
appliedTo: {
required: false,
serializedName: 'appliedTo',
type: {
name: 'String'
}
},
matchedRule: {
required: false,
serializedName: 'matchedRule',
Expand Down
Loading