Skip to content
This repository was archived by the owner on May 5, 2023. It is now read-only.
Merged
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 @@ -105,7 +105,7 @@ class ApplicationGateway extends models['Resource'] {
* application gateway resource.
* @property {object} [autoscaleConfiguration] Autoscale Configuration.
* @property {number} [autoscaleConfiguration.minCapacity] Lower bound on
* number of Application Gateway capacity
* number of Application Gateway instances
* @property {number} [autoscaleConfiguration.maxCapacity] Upper bound on
* number of Application Gateway capacity
* @property {string} [resourceGuid] Resource GUID property of the
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class ApplicationGatewayAutoscaleConfiguration {
/**
* Create a ApplicationGatewayAutoscaleConfiguration.
* @property {number} minCapacity Lower bound on number of Application
* Gateway capacity
* Gateway instances
* @property {number} [maxCapacity] Upper bound on number of Application
* Gateway capacity
*/
Expand All @@ -43,7 +43,7 @@ class ApplicationGatewayAutoscaleConfiguration {
required: true,
serializedName: 'minCapacity',
constraints: {
InclusiveMinimum: 0
InclusiveMinimum: 2
},
type: {
name: 'Number'
Expand Down
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;
9 changes: 9 additions & 0 deletions lib/services/networkManagement2/lib/models/azureFirewall.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ class AzureFirewall extends models['Resource'] {
* @property {string} [provisioningState] The provisioning state of the
* resource. Possible values include: 'Succeeded', 'Updating', 'Deleting',
* 'Failed'
* @property {string} [threatIntelMode] The operation mode for Threat
* Intelligence. Possible values include: 'Alert', 'Deny', 'Off'
* @property {string} [etag] Gets a unique read-only string that changes
* whenever the resource is updated.
*/
Expand Down Expand Up @@ -163,6 +165,13 @@ class AzureFirewall extends models['Resource'] {
name: 'String'
}
},
threatIntelMode: {
required: false,
serializedName: 'properties.threatIntelMode',
type: {
name: 'String'
}
},
etag: {
required: false,
readOnly: true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class AzureFirewallApplicationRuleCollection extends models['SubResource'] {
* resource.
* @property {object} [action] The action type of a rule collection
* @property {string} [action.type] The type of action. Possible values
* include: 'Allow', 'Deny'
* include: 'Allow', 'Deny', 'Alert'
* @property {array} [rules] Collection of rules used by a application rule
* collection.
* @property {string} [provisioningState] The provisioning state of the
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class AzureFirewallNatRule {
* @property {array} [sourceAddresses] List of source IP addresses for this
* rule.
* @property {array} [destinationAddresses] List of destination IP addresses
* for this rule.
* for this rule. Supports IP ranges, prefixes, and service tags.
* @property {array} [destinationPorts] List of destination ports.
* @property {array} [protocols] Array of AzureFirewallNetworkRuleProtocols
* applicable to this NAT rule.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class AzureFirewallNetworkRuleCollection extends models['SubResource'] {
* resource.
* @property {object} [action] The action type of a rule collection
* @property {string} [action.type] The type of action. Possible values
* include: 'Allow', 'Deny'
* include: 'Allow', 'Deny', 'Alert'
* @property {array} [rules] Collection of rules used by a network rule
* collection.
* @property {string} [provisioningState] The provisioning state of the
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class AzureFirewallRCAction {
/**
* Create a AzureFirewallRCAction.
* @property {string} [type] The type of action. Possible values include:
* 'Allow', 'Deny'
* 'Allow', 'Deny', 'Alert'
*/
constructor() {
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class ConnectionMonitorQueryResult {
/**
* Create a ConnectionMonitorQueryResult.
* @property {string} [sourceStatus] Status of connection monitor source.
* Possible values include: 'Uknown', 'Active', 'Inactive'
* Possible values include: 'Unknown', 'Active', 'Inactive'
* @property {array} [states] Information about connection states.
*/
constructor() {
Expand Down
Loading