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
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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',
Expand Down
Original file line number Diff line number Diff line change
@@ -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;
34 changes: 34 additions & 0 deletions lib/services/networkManagement2/lib/models/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*/
Expand Down Expand Up @@ -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.
*/
Expand Down
1 change: 1 addition & 0 deletions lib/services/networkManagement2/lib/models/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down