diff --git a/lib/services/networkManagement2/lib/models/applicationGatewayRewriteRule.js b/lib/services/networkManagement2/lib/models/applicationGatewayRewriteRule.js index c0732abf80..47700ed5ae 100644 --- a/lib/services/networkManagement2/lib/models/applicationGatewayRewriteRule.js +++ b/lib/services/networkManagement2/lib/models/applicationGatewayRewriteRule.js @@ -19,6 +19,11 @@ class ApplicationGatewayRewriteRule { * Create a ApplicationGatewayRewriteRule. * @property {string} [name] Name of the rewrite rule that is unique within * an Application Gateway. + * @property {number} [ruleSequence] Rule Sequence of the rewrite rule that + * determines the order of execution of a particular rule in a + * RewriteRuleSet. + * @property {array} [conditions] Conditions based on which the action set + * execution will be evaluated. * @property {object} [actionSet] Set of actions to be done as part of the * rewrite Rule. * @property {array} [actionSet.requestHeaderConfigurations] Request Header @@ -50,6 +55,28 @@ class ApplicationGatewayRewriteRule { name: 'String' } }, + ruleSequence: { + required: false, + serializedName: 'ruleSequence', + type: { + name: 'Number' + } + }, + conditions: { + required: false, + serializedName: 'conditions', + type: { + name: 'Sequence', + element: { + required: false, + serializedName: 'ApplicationGatewayRewriteRuleConditionElementType', + type: { + name: 'Composite', + className: 'ApplicationGatewayRewriteRuleCondition' + } + } + } + }, actionSet: { required: false, serializedName: 'actionSet', diff --git a/lib/services/networkManagement2/lib/models/applicationGatewayRewriteRuleCondition.js b/lib/services/networkManagement2/lib/models/applicationGatewayRewriteRuleCondition.js new file mode 100644 index 0000000000..a1ac0c0376 --- /dev/null +++ b/lib/services/networkManagement2/lib/models/applicationGatewayRewriteRuleCondition.js @@ -0,0 +1,80 @@ +/* + * 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'; + +/** + * Set of conditions in the Rewrite Rule in Application Gateway. + * + */ +class ApplicationGatewayRewriteRuleCondition { + /** + * Create a ApplicationGatewayRewriteRuleCondition. + * @property {string} [variable] The condition parameter of the + * RewriteRuleCondition. + * @property {string} [pattern] The pattern, either fixed string or regular + * expression, that evaluates the truthfulness of the condition + * @property {boolean} [ignoreCase] Setting this paramter to truth value with + * force the pattern to do a case in-sensitive comparison. + * @property {boolean} [negate] Setting this value as truth will force to + * check the negation of the condition given by the user. + */ + constructor() { + } + + /** + * Defines the metadata of ApplicationGatewayRewriteRuleCondition + * + * @returns {object} metadata of ApplicationGatewayRewriteRuleCondition + * + */ + mapper() { + return { + required: false, + serializedName: 'ApplicationGatewayRewriteRuleCondition', + type: { + name: 'Composite', + className: 'ApplicationGatewayRewriteRuleCondition', + modelProperties: { + variable: { + required: false, + serializedName: 'variable', + type: { + name: 'String' + } + }, + pattern: { + required: false, + serializedName: 'pattern', + type: { + name: 'String' + } + }, + ignoreCase: { + required: false, + serializedName: 'ignoreCase', + type: { + name: 'Boolean' + } + }, + negate: { + required: false, + serializedName: 'negate', + type: { + name: 'Boolean' + } + } + } + } + }; + } +} + +module.exports = ApplicationGatewayRewriteRuleCondition; diff --git a/lib/services/networkManagement2/lib/models/index.d.ts b/lib/services/networkManagement2/lib/models/index.d.ts index 4b5a99b2cb..18afe44e1d 100644 --- a/lib/services/networkManagement2/lib/models/index.d.ts +++ b/lib/services/networkManagement2/lib/models/index.d.ts @@ -1787,6 +1787,31 @@ export interface ApplicationGatewayRequestRoutingRule extends SubResource { type?: string; } +/** + * Set of conditions in the Rewrite Rule in Application Gateway. +*/ +export interface ApplicationGatewayRewriteRuleCondition { + /** + * The condition parameter of the RewriteRuleCondition. + */ + variable?: string; + /** + * The pattern, either fixed string or regular expression, that evaluates the truthfulness of the + * condition + */ + pattern?: string; + /** + * Setting this paramter to truth value with force the pattern to do a case in-sensitive + * comparison. + */ + ignoreCase?: boolean; + /** + * Setting this value as truth will force to check the negation of the condition given by the + * user. + */ + negate?: boolean; +} + /** * Header configuration of the Actions set in Application Gateway. */ @@ -1823,6 +1848,15 @@ export interface ApplicationGatewayRewriteRule { * Name of the rewrite rule that is unique within an Application Gateway. */ name?: string; + /** + * Rule Sequence of the rewrite rule that determines the order of execution of a particular rule + * in a RewriteRuleSet. + */ + ruleSequence?: number; + /** + * Conditions based on which the action set execution will be evaluated. + */ + conditions?: ApplicationGatewayRewriteRuleCondition[]; /** * Set of actions to be done as part of the rewrite Rule. */ diff --git a/lib/services/networkManagement2/lib/models/index.js b/lib/services/networkManagement2/lib/models/index.js index 04cff88c29..f42f45285f 100644 --- a/lib/services/networkManagement2/lib/models/index.js +++ b/lib/services/networkManagement2/lib/models/index.js @@ -71,6 +71,7 @@ exports.ApplicationGatewayPathRule = require('./applicationGatewayPathRule'); exports.ApplicationGatewayProbeHealthResponseMatch = require('./applicationGatewayProbeHealthResponseMatch'); exports.ApplicationGatewayProbe = require('./applicationGatewayProbe'); exports.ApplicationGatewayRequestRoutingRule = require('./applicationGatewayRequestRoutingRule'); +exports.ApplicationGatewayRewriteRuleCondition = require('./applicationGatewayRewriteRuleCondition'); exports.ApplicationGatewayHeaderConfiguration = require('./applicationGatewayHeaderConfiguration'); exports.ApplicationGatewayRewriteRuleActionSet = require('./applicationGatewayRewriteRuleActionSet'); exports.ApplicationGatewayRewriteRule = require('./applicationGatewayRewriteRule');