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

[AutoPR network/resource-manager] #Network Modified Applicaiton Gateway Autoscale Configuration #3545

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
Original file line number Diff line number Diff line change
Expand Up @@ -93,11 +93,8 @@ class ApplicationGateway extends models['Resource'] {
* @member {boolean} [enableFips] Whether FIPS is enabled on the application
* gateway resource.
* @member {object} [autoscaleConfiguration] Autoscale Configuration.
* @member {object} [autoscaleConfiguration.bounds] Autoscale bounds
* @member {number} [autoscaleConfiguration.bounds.min] Lower bound on number
* of Application Gateway instances.
* @member {number} [autoscaleConfiguration.bounds.max] Upper bound on number
* of Application Gateway instances.
* @member {number} [autoscaleConfiguration.minCapacity] Lower bound on
* number of Application Gateway instances
* @member {string} [resourceGuid] Resource GUID property of the application
* gateway resource.
* @member {string} [provisioningState] Provisioning state of the application
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,20 +10,15 @@

'use strict';

const models = require('./index');

/**
* Application Gateway autoscale configuration.
*
*/
class ApplicationGatewayAutoscaleConfiguration {
/**
* Create a ApplicationGatewayAutoscaleConfiguration.
* @member {object} bounds Autoscale bounds
* @member {number} [bounds.min] Lower bound on number of Application Gateway
* instances.
* @member {number} [bounds.max] Upper bound on number of Application Gateway
* instances.
* @member {number} minCapacity Lower bound on number of Application Gateway
* instances
*/
constructor() {
}
Expand All @@ -42,12 +37,14 @@ class ApplicationGatewayAutoscaleConfiguration {
name: 'Composite',
className: 'ApplicationGatewayAutoscaleConfiguration',
modelProperties: {
bounds: {
minCapacity: {
required: true,
serializedName: 'bounds',
serializedName: 'minCapacity',
constraints: {
InclusiveMinimum: 2
},
type: {
name: 'Composite',
className: 'ApplicationGatewayAutoscaleBounds'
name: 'Number'
}
}
}
Expand Down
34 changes: 8 additions & 26 deletions lib/services/networkManagement2/lib/models/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -912,6 +912,8 @@ export interface NetworkInterfaceDnsSettings {
* that changes whenever the resource is updated.
* @member {array} [ipConfigurations] A list of IPConfigurations of the network
* interface.
* @member {array} [tapConfigurations] A list of TapConfigurations of the
* network interface.
* @member {object} [dnsSettings] The DNS settings in network interface.
* @member {array} [dnsSettings.dnsServers] List of DNS servers IP addresses.
* Use 'AzureProvidedDNS' to switch to azure provided DNS resolution.
Expand Down Expand Up @@ -953,6 +955,7 @@ export interface NetworkInterface extends Resource {
networkSecurityGroup?: NetworkSecurityGroup;
interfaceEndpoint?: InterfaceEndpoint;
ipConfigurations?: NetworkInterfaceIPConfiguration[];
tapConfigurations?: NetworkInterfaceTapConfiguration[];
dnsSettings?: NetworkInterfaceDnsSettings;
macAddress?: string;
primary?: boolean;
Expand Down Expand Up @@ -4027,35 +4030,17 @@ export interface ApplicationGatewayWebApplicationFirewallConfiguration {
maxRequestBodySize?: number;
}

/**
* @class
* Initializes a new instance of the ApplicationGatewayAutoscaleBounds class.
* @constructor
* Application Gateway autoscale bounds on number of Application Gateway
* instance.
*
* @member {number} min Lower bound on number of Application Gateway instances.
* @member {number} max Upper bound on number of Application Gateway instances.
*/
export interface ApplicationGatewayAutoscaleBounds {
min: number;
max: number;
}

/**
* @class
* Initializes a new instance of the ApplicationGatewayAutoscaleConfiguration class.
* @constructor
* Application Gateway autoscale configuration.
*
* @member {object} bounds Autoscale bounds
* @member {number} [bounds.min] Lower bound on number of Application Gateway
* instances.
* @member {number} [bounds.max] Upper bound on number of Application Gateway
* instances.
* @member {number} minCapacity Lower bound on number of Application Gateway
* instances
*/
export interface ApplicationGatewayAutoscaleConfiguration {
bounds: ApplicationGatewayAutoscaleBounds;
minCapacity: number;
}

/**
Expand Down Expand Up @@ -4135,11 +4120,8 @@ export interface ApplicationGatewayAutoscaleConfiguration {
* @member {boolean} [enableFips] Whether FIPS is enabled on the application
* gateway resource.
* @member {object} [autoscaleConfiguration] Autoscale Configuration.
* @member {object} [autoscaleConfiguration.bounds] Autoscale bounds
* @member {number} [autoscaleConfiguration.bounds.min] Lower bound on number
* of Application Gateway instances.
* @member {number} [autoscaleConfiguration.bounds.max] Upper bound on number
* of Application Gateway instances.
* @member {number} [autoscaleConfiguration.minCapacity] Lower bound on number
* of Application Gateway instances
* @member {string} [resourceGuid] Resource GUID property of the application
* gateway resource.
* @member {string} [provisioningState] Provisioning state of the application
Expand Down
1 change: 0 additions & 1 deletion lib/services/networkManagement2/lib/models/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@ exports.ApplicationGatewayRedirectConfiguration = require('./applicationGatewayR
exports.ApplicationGatewayUrlPathMap = require('./applicationGatewayUrlPathMap');
exports.ApplicationGatewayFirewallDisabledRuleGroup = require('./applicationGatewayFirewallDisabledRuleGroup');
exports.ApplicationGatewayWebApplicationFirewallConfiguration = require('./applicationGatewayWebApplicationFirewallConfiguration');
exports.ApplicationGatewayAutoscaleBounds = require('./applicationGatewayAutoscaleBounds');
exports.ApplicationGatewayAutoscaleConfiguration = require('./applicationGatewayAutoscaleConfiguration');
exports.ApplicationGateway = require('./applicationGateway');
exports.ApplicationGatewayFirewallRule = require('./applicationGatewayFirewallRule');
Expand Down
17 changes: 17 additions & 0 deletions lib/services/networkManagement2/lib/models/networkInterface.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@ class NetworkInterface extends models['Resource'] {
* that changes whenever the resource is updated.
* @member {array} [ipConfigurations] A list of IPConfigurations of the
* network interface.
* @member {array} [tapConfigurations] A list of TapConfigurations of the
* network interface.
* @member {object} [dnsSettings] The DNS settings in network interface.
* @member {array} [dnsSettings.dnsServers] List of DNS servers IP addresses.
* Use 'AzureProvidedDNS' to switch to azure provided DNS resolution.
Expand Down Expand Up @@ -196,6 +198,21 @@ class NetworkInterface extends models['Resource'] {
}
}
},
tapConfigurations: {
required: false,
serializedName: 'properties.tapConfigurations',
type: {
name: 'Sequence',
element: {
required: false,
serializedName: 'NetworkInterfaceTapConfigurationElementType',
type: {
name: 'Composite',
className: 'NetworkInterfaceTapConfiguration'
}
}
}
},
dnsSettings: {
required: false,
serializedName: 'properties.dnsSettings',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -340,13 +340,8 @@ function _get(resourceGroupName, applicationGatewayName, options, callback) {
*
* @param {object} [parameters.autoscaleConfiguration] Autoscale Configuration.
*
* @param {object} parameters.autoscaleConfiguration.bounds Autoscale bounds
*
* @param {number} parameters.autoscaleConfiguration.bounds.min Lower bound on
* number of Application Gateway instances.
*
* @param {number} parameters.autoscaleConfiguration.bounds.max Upper bound on
* number of Application Gateway instances.
* @param {number} parameters.autoscaleConfiguration.minCapacity Lower bound on
* number of Application Gateway instances
*
* @param {string} [parameters.resourceGuid] Resource GUID property of the
* application gateway resource.
Expand Down Expand Up @@ -1779,13 +1774,8 @@ function _beginDeleteMethod(resourceGroupName, applicationGatewayName, options,
*
* @param {object} [parameters.autoscaleConfiguration] Autoscale Configuration.
*
* @param {object} parameters.autoscaleConfiguration.bounds Autoscale bounds
*
* @param {number} parameters.autoscaleConfiguration.bounds.min Lower bound on
* number of Application Gateway instances.
*
* @param {number} parameters.autoscaleConfiguration.bounds.max Upper bound on
* number of Application Gateway instances.
* @param {number} parameters.autoscaleConfiguration.minCapacity Lower bound on
* number of Application Gateway instances
*
* @param {string} [parameters.resourceGuid] Resource GUID property of the
* application gateway resource.
Expand Down Expand Up @@ -3253,13 +3243,8 @@ class ApplicationGateways {
*
* @param {object} [parameters.autoscaleConfiguration] Autoscale Configuration.
*
* @param {object} parameters.autoscaleConfiguration.bounds Autoscale bounds
*
* @param {number} parameters.autoscaleConfiguration.bounds.min Lower bound on
* number of Application Gateway instances.
*
* @param {number} parameters.autoscaleConfiguration.bounds.max Upper bound on
* number of Application Gateway instances.
* @param {number} parameters.autoscaleConfiguration.minCapacity Lower bound on
* number of Application Gateway instances
*
* @param {string} [parameters.resourceGuid] Resource GUID property of the
* application gateway resource.
Expand Down Expand Up @@ -3424,13 +3409,8 @@ class ApplicationGateways {
*
* @param {object} [parameters.autoscaleConfiguration] Autoscale Configuration.
*
* @param {object} parameters.autoscaleConfiguration.bounds Autoscale bounds
*
* @param {number} parameters.autoscaleConfiguration.bounds.min Lower bound on
* number of Application Gateway instances.
*
* @param {number} parameters.autoscaleConfiguration.bounds.max Upper bound on
* number of Application Gateway instances.
* @param {number} parameters.autoscaleConfiguration.minCapacity Lower bound on
* number of Application Gateway instances
*
* @param {string} [parameters.resourceGuid] Resource GUID property of the
* application gateway resource.
Expand Down Expand Up @@ -4547,13 +4527,8 @@ class ApplicationGateways {
*
* @param {object} [parameters.autoscaleConfiguration] Autoscale Configuration.
*
* @param {object} parameters.autoscaleConfiguration.bounds Autoscale bounds
*
* @param {number} parameters.autoscaleConfiguration.bounds.min Lower bound on
* number of Application Gateway instances.
*
* @param {number} parameters.autoscaleConfiguration.bounds.max Upper bound on
* number of Application Gateway instances.
* @param {number} parameters.autoscaleConfiguration.minCapacity Lower bound on
* number of Application Gateway instances
*
* @param {string} [parameters.resourceGuid] Resource GUID property of the
* application gateway resource.
Expand Down Expand Up @@ -4718,13 +4693,8 @@ class ApplicationGateways {
*
* @param {object} [parameters.autoscaleConfiguration] Autoscale Configuration.
*
* @param {object} parameters.autoscaleConfiguration.bounds Autoscale bounds
*
* @param {number} parameters.autoscaleConfiguration.bounds.min Lower bound on
* number of Application Gateway instances.
*
* @param {number} parameters.autoscaleConfiguration.bounds.max Upper bound on
* number of Application Gateway instances.
* @param {number} parameters.autoscaleConfiguration.minCapacity Lower bound on
* number of Application Gateway instances
*
* @param {string} [parameters.resourceGuid] Resource GUID property of the
* application gateway resource.
Expand Down
48 changes: 20 additions & 28 deletions lib/services/networkManagement2/lib/operations/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -257,13 +257,8 @@ export interface ApplicationGateways {
*
* @param {object} [parameters.autoscaleConfiguration] Autoscale Configuration.
*
* @param {object} parameters.autoscaleConfiguration.bounds Autoscale bounds
*
* @param {number} parameters.autoscaleConfiguration.bounds.min Lower bound on
* number of Application Gateway instances.
*
* @param {number} parameters.autoscaleConfiguration.bounds.max Upper bound on
* number of Application Gateway instances.
* @param {number} parameters.autoscaleConfiguration.minCapacity Lower bound on
* number of Application Gateway instances
*
* @param {string} [parameters.resourceGuid] Resource GUID property of the
* application gateway resource.
Expand Down Expand Up @@ -416,13 +411,8 @@ export interface ApplicationGateways {
*
* @param {object} [parameters.autoscaleConfiguration] Autoscale Configuration.
*
* @param {object} parameters.autoscaleConfiguration.bounds Autoscale bounds
*
* @param {number} parameters.autoscaleConfiguration.bounds.min Lower bound on
* number of Application Gateway instances.
*
* @param {number} parameters.autoscaleConfiguration.bounds.max Upper bound on
* number of Application Gateway instances.
* @param {number} parameters.autoscaleConfiguration.minCapacity Lower bound on
* number of Application Gateway instances
*
* @param {string} [parameters.resourceGuid] Resource GUID property of the
* application gateway resource.
Expand Down Expand Up @@ -1227,13 +1217,8 @@ export interface ApplicationGateways {
*
* @param {object} [parameters.autoscaleConfiguration] Autoscale Configuration.
*
* @param {object} parameters.autoscaleConfiguration.bounds Autoscale bounds
*
* @param {number} parameters.autoscaleConfiguration.bounds.min Lower bound on
* number of Application Gateway instances.
*
* @param {number} parameters.autoscaleConfiguration.bounds.max Upper bound on
* number of Application Gateway instances.
* @param {number} parameters.autoscaleConfiguration.minCapacity Lower bound on
* number of Application Gateway instances
*
* @param {string} [parameters.resourceGuid] Resource GUID property of the
* application gateway resource.
Expand Down Expand Up @@ -1386,13 +1371,8 @@ export interface ApplicationGateways {
*
* @param {object} [parameters.autoscaleConfiguration] Autoscale Configuration.
*
* @param {object} parameters.autoscaleConfiguration.bounds Autoscale bounds
*
* @param {number} parameters.autoscaleConfiguration.bounds.min Lower bound on
* number of Application Gateway instances.
*
* @param {number} parameters.autoscaleConfiguration.bounds.max Upper bound on
* number of Application Gateway instances.
* @param {number} parameters.autoscaleConfiguration.minCapacity Lower bound on
* number of Application Gateway instances
*
* @param {string} [parameters.resourceGuid] Resource GUID property of the
* application gateway resource.
Expand Down Expand Up @@ -13959,6 +13939,9 @@ export interface NetworkInterfaces {
* @param {array} [parameters.ipConfigurations] A list of IPConfigurations of
* the network interface.
*
* @param {array} [parameters.tapConfigurations] A list of TapConfigurations of
* the network interface.
*
* @param {object} [parameters.dnsSettings] The DNS settings in network
* interface.
*
Expand Down Expand Up @@ -14101,6 +14084,9 @@ export interface NetworkInterfaces {
* @param {array} [parameters.ipConfigurations] A list of IPConfigurations of
* the network interface.
*
* @param {array} [parameters.tapConfigurations] A list of TapConfigurations of
* the network interface.
*
* @param {object} [parameters.dnsSettings] The DNS settings in network
* interface.
*
Expand Down Expand Up @@ -14976,6 +14962,9 @@ export interface NetworkInterfaces {
* @param {array} [parameters.ipConfigurations] A list of IPConfigurations of
* the network interface.
*
* @param {array} [parameters.tapConfigurations] A list of TapConfigurations of
* the network interface.
*
* @param {object} [parameters.dnsSettings] The DNS settings in network
* interface.
*
Expand Down Expand Up @@ -15118,6 +15107,9 @@ export interface NetworkInterfaces {
* @param {array} [parameters.ipConfigurations] A list of IPConfigurations of
* the network interface.
*
* @param {array} [parameters.tapConfigurations] A list of TapConfigurations of
* the network interface.
*
* @param {object} [parameters.dnsSettings] The DNS settings in network
* interface.
*
Expand Down
Loading