Skip to content
This repository has been archived by the owner on May 5, 2023. It is now read-only.

[AutoPR network/resource-manager] added links to applicattion gateway limits #4681

Closed
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
46 changes: 30 additions & 16 deletions lib/services/networkManagement2/lib/models/applicationGateway.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,33 +45,47 @@ class ApplicationGateway extends models['Resource'] {
* @property {string} [operationalState] Operational state of the application
* gateway resource. Possible values include: 'Stopped', 'Starting',
* 'Running', 'Stopping'
* @property {array} [gatewayIPConfigurations] Subnets of application the
* gateway resource.
* @property {array} [gatewayIPConfigurations] Subnets of the application
* gateway resource. For default limits, see [Application Gateway
* limits](https://docs.microsoft.com/azure/azure-subscription-service-limits#application-gateway-limits).
* @property {array} [authenticationCertificates] Authentication certificates
* of the application gateway resource.
* of the application gateway resource. For default limits, see [Application
* Gateway
* limits](https://docs.microsoft.com/azure/azure-subscription-service-limits#application-gateway-limits).
* @property {array} [trustedRootCertificates] Trusted Root certificates of
* the application gateway resource.
* the application gateway resource. For default limits, see [Application
* Gateway
* limits](https://docs.microsoft.com/azure/azure-subscription-service-limits#application-gateway-limits).
* @property {array} [sslCertificates] SSL certificates of the application
* gateway resource.
* gateway resource. For default limits, see [Application Gateway
* limits](https://docs.microsoft.com/azure/azure-subscription-service-limits#application-gateway-limits).
* @property {array} [frontendIPConfigurations] Frontend IP addresses of the
* application gateway resource.
* application gateway resource. For default limits, see [Application Gateway
* limits](https://docs.microsoft.com/azure/azure-subscription-service-limits#application-gateway-limits).
* @property {array} [frontendPorts] Frontend ports of the application
* gateway resource.
* gateway resource. For default limits, see [Application Gateway
* limits](https://docs.microsoft.com/azure/azure-subscription-service-limits#application-gateway-limits).
* @property {array} [probes] Probes of the application gateway resource.
* @property {array} [backendAddressPools] Backend address pool of the
* application gateway resource.
* application gateway resource. For default limits, see [Application Gateway
* limits](https://docs.microsoft.com/azure/azure-subscription-service-limits#application-gateway-limits).
* @property {array} [backendHttpSettingsCollection] Backend http settings of
* the application gateway resource.
* the application gateway resource. For default limits, see [Application
* Gateway
* limits](https://docs.microsoft.com/azure/azure-subscription-service-limits#application-gateway-limits).
* @property {array} [httpListeners] Http listeners of the application
* gateway resource.
* gateway resource. For default limits, see [Application Gateway
* limits](https://docs.microsoft.com/azure/azure-subscription-service-limits#application-gateway-limits).
* @property {array} [urlPathMaps] URL path map of the application gateway
* resource.
* resource. For default limits, see [Application Gateway
* limits](https://docs.microsoft.com/azure/azure-subscription-service-limits#application-gateway-limits).
* @property {array} [requestRoutingRules] Request routing rules of the
* application gateway resource.
* @property {array} [rewriteRuleSets] Rewrite rules for the application
* gateway resource.
* @property {array} [redirectConfigurations] Redirect configurations of the
* application gateway resource.
* application gateway resource. For default limits, see [Application Gateway
* limits](https://docs.microsoft.com/azure/azure-subscription-service-limits#application-gateway-limits).
* @property {object} [webApplicationFirewallConfiguration] Web application
* firewall configuration.
* @property {boolean} [webApplicationFirewallConfiguration.enabled] Whether
Expand All @@ -89,13 +103,13 @@ class ApplicationGateway extends models['Resource'] {
* @property {boolean} [webApplicationFirewallConfiguration.requestBodyCheck]
* Whether allow WAF to check request Body.
* @property {number}
* [webApplicationFirewallConfiguration.maxRequestBodySize] Maximum request
* [webApplicationFirewallConfiguration.maxRequestBodySize] Maxium request
* body size for WAF.
* @property {number}
* [webApplicationFirewallConfiguration.maxRequestBodySizeInKb] Maximum
* [webApplicationFirewallConfiguration.maxRequestBodySizeInKb] Maxium
* request body size in Kb for WAF.
* @property {number}
* [webApplicationFirewallConfiguration.fileUploadLimitInMb] Maximum file
* [webApplicationFirewallConfiguration.fileUploadLimitInMb] Maxium file
* upload size in Mb for WAF.
* @property {array} [webApplicationFirewallConfiguration.exclusions] The
* exclusion list.
Expand All @@ -105,7 +119,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;
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@ class ApplicationGatewayWebApplicationFirewallConfiguration {
* @property {array} [disabledRuleGroups] The disabled rule groups.
* @property {boolean} [requestBodyCheck] Whether allow WAF to check request
* Body.
* @property {number} [maxRequestBodySize] Maximum request body size for WAF.
* @property {number} [maxRequestBodySizeInKb] Maximum request body size in
* Kb for WAF.
* @property {number} [fileUploadLimitInMb] Maximum file upload size in Mb
* @property {number} [maxRequestBodySize] Maxium request body size for WAF.
* @property {number} [maxRequestBodySizeInKb] Maxium request body size in Kb
* for WAF.
* @property {number} [fileUploadLimitInMb] Maxium file upload size in Mb for
* WAF.
* @property {array} [exclusions] The exclusion list.
*/
constructor() {
Expand Down
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
Original file line number Diff line number Diff line change
Expand Up @@ -26,20 +26,20 @@ class EffectiveNetworkSecurityRule {
* @property {string} [destinationPortRange] The destination port or range.
* @property {array} [sourcePortRanges] The source port ranges. Expected
* values include a single integer between 0 and 65535, a range using '-' as
* separator (e.g. 100-400), or an asterisk (*)
* separator (e.g. 100-400), or an asterix (*)
* @property {array} [destinationPortRanges] The destination port ranges.
* Expected values include a single integer between 0 and 65535, a range
* using '-' as separator (e.g. 100-400), or an asterisk (*)
* using '-' as separator (e.g. 100-400), or an asterix (*)
* @property {string} [sourceAddressPrefix] The source address prefix.
* @property {string} [destinationAddressPrefix] The destination address
* prefix.
* @property {array} [sourceAddressPrefixes] The source address prefixes.
* Expected values include CIDR IP ranges, Default Tags (VirtualNetwork,
* AzureLoadBalancer, Internet), System Tags, and the asterisk (*).
* AzureLoadBalancer, Internet), System Tags, and the asterix (*).
* @property {array} [destinationAddressPrefixes] The destination address
* prefixes. Expected values include CIDR IP ranges, Default Tags
* (VirtualNetwork, AzureLoadBalancer, Internet), System Tags, and the
* asterisk (*).
* asterix (*).
* @property {array} [expandedSourceAddressPrefix] The expanded source
* address prefix.
* @property {array} [expandedDestinationAddressPrefix] Expanded destination
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class ExpressRoutePort extends models['Resource'] {
* pair(s)
* @property {string} [encapsulation] Encapsulation method on physical ports.
* Possible values include: 'Dot1Q', 'QinQ'
* @property {string} [etherType] Ether type of the physical port.
* @property {string} [etherType] Ethertype of the physical port.
* @property {string} [allocationDate] Date of the physical port allocation
* to be used in Letter of Authorization.
* @property {array} [links] ExpressRouteLink Sub-Resources. The set of
Expand Down
Loading