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
@@ -0,0 +1,63 @@
/*
* 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';

/**
* Application Gateway autoscale bounds on number of Application Gateway
* instance.
*
*/
class ApplicationGatewayAutoscaleBounds {
/**
* Create a ApplicationGatewayAutoscaleBounds.
* @member {number} min Lower bound on number of Application Gateway
* instances.
* @member {number} max Upper bound on number of Application Gateway
* instances.
*/
constructor() {
}

/**
* Defines the metadata of ApplicationGatewayAutoscaleBounds
*
* @returns {object} metadata of ApplicationGatewayAutoscaleBounds
*
*/
mapper() {
return {
required: false,
serializedName: 'ApplicationGatewayAutoscaleBounds',
type: {
name: 'Composite',
className: 'ApplicationGatewayAutoscaleBounds',
modelProperties: {
min: {
required: true,
serializedName: 'min',
type: {
name: 'Number'
}
},
max: {
required: true,
serializedName: 'max',
type: {
name: 'Number'
}
}
}
}
};
}
}

module.exports = ApplicationGatewayAutoscaleBounds;
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
/*
* 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';

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.
*/
constructor() {
}

/**
* Defines the metadata of ApplicationGatewayAutoscaleConfiguration
*
* @returns {object} metadata of ApplicationGatewayAutoscaleConfiguration
*
*/
mapper() {
return {
required: false,
serializedName: 'ApplicationGatewayAutoscaleConfiguration',
type: {
name: 'Composite',
className: 'ApplicationGatewayAutoscaleConfiguration',
modelProperties: {
bounds: {
required: true,
serializedName: 'bounds',
type: {
name: 'Composite',
className: 'ApplicationGatewayAutoscaleBounds'
}
}
}
}
};
}
}

module.exports = ApplicationGatewayAutoscaleConfiguration;
163 changes: 163 additions & 0 deletions lib/services/networkManagement2/lib/models/azureFirewall.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,163 @@
/*
* 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';

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

/**
* Azure Firewall resource
*
* @extends models['Resource']
*/
class AzureFirewall extends models['Resource'] {
/**
* Create a AzureFirewall.
* @member {array} [applicationRuleCollections] Collection of application
* rule collections used by a Azure Firewall.
* @member {array} [networkRuleCollections] Collection of network rule
* collections used by a Azure Firewall.
* @member {array} [ipConfigurations] IP configuration of the Azure Firewall
* resource.
* @member {string} [provisioningState] The provisioning state of the
* resource. Possible values include: 'Succeeded', 'Updating', 'Deleting',
* 'Failed'
* @member {string} [etag] Gets a unique read-only string that changes
* whenever the resource is updated.
*/
constructor() {
super();
}

/**
* Defines the metadata of AzureFirewall
*
* @returns {object} metadata of AzureFirewall
*
*/
mapper() {
return {
required: false,
serializedName: 'AzureFirewall',
type: {
name: 'Composite',
className: 'AzureFirewall',
modelProperties: {
id: {
required: false,
serializedName: 'id',
type: {
name: 'String'
}
},
name: {
required: false,
readOnly: true,
serializedName: 'name',
type: {
name: 'String'
}
},
type: {
required: false,
readOnly: true,
serializedName: 'type',
type: {
name: 'String'
}
},
location: {
required: false,
serializedName: 'location',
type: {
name: 'String'
}
},
tags: {
required: false,
serializedName: 'tags',
type: {
name: 'Dictionary',
value: {
required: false,
serializedName: 'StringElementType',
type: {
name: 'String'
}
}
}
},
applicationRuleCollections: {
required: false,
serializedName: 'properties.applicationRuleCollections',
type: {
name: 'Sequence',
element: {
required: false,
serializedName: 'AzureFirewallApplicationRuleCollectionElementType',
type: {
name: 'Composite',
className: 'AzureFirewallApplicationRuleCollection'
}
}
}
},
networkRuleCollections: {
required: false,
serializedName: 'properties.networkRuleCollections',
type: {
name: 'Sequence',
element: {
required: false,
serializedName: 'AzureFirewallNetworkRuleCollectionElementType',
type: {
name: 'Composite',
className: 'AzureFirewallNetworkRuleCollection'
}
}
}
},
ipConfigurations: {
required: false,
serializedName: 'properties.ipConfigurations',
type: {
name: 'Sequence',
element: {
required: false,
serializedName: 'AzureFirewallIPConfigurationElementType',
type: {
name: 'Composite',
className: 'AzureFirewallIPConfiguration'
}
}
}
},
provisioningState: {
required: false,
serializedName: 'properties.provisioningState',
type: {
name: 'String'
}
},
etag: {
required: false,
readOnly: true,
serializedName: 'etag',
type: {
name: 'String'
}
}
}
}
};
}
}

module.exports = AzureFirewall;
Original file line number Diff line number Diff line change
@@ -0,0 +1,109 @@
/*
* 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';

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

/**
* Properties of an application rule.
*
*/
class AzureFirewallApplicationRule {
/**
* Create a AzureFirewallApplicationRule.
* @member {string} [name] Name of the application rule.
* @member {string} [description] Description of the rule.
* @member {array} [sourceAddresses] List of source IP addresses for this
* rule.
* @member {array} [protocols] Array of ApplicationRuleProtocols.
* @member {array} [targetUrls] List of URLs for this rule.
*/
constructor() {
}

/**
* Defines the metadata of AzureFirewallApplicationRule
*
* @returns {object} metadata of AzureFirewallApplicationRule
*
*/
mapper() {
return {
required: false,
serializedName: 'AzureFirewallApplicationRule',
type: {
name: 'Composite',
className: 'AzureFirewallApplicationRule',
modelProperties: {
name: {
required: false,
serializedName: 'name',
type: {
name: 'String'
}
},
description: {
required: false,
serializedName: 'description',
type: {
name: 'String'
}
},
sourceAddresses: {
required: false,
serializedName: 'sourceAddresses',
type: {
name: 'Sequence',
element: {
required: false,
serializedName: 'StringElementType',
type: {
name: 'String'
}
}
}
},
protocols: {
required: false,
serializedName: 'protocols',
type: {
name: 'Sequence',
element: {
required: false,
serializedName: 'AzureFirewallApplicationRuleProtocolElementType',
type: {
name: 'Composite',
className: 'AzureFirewallApplicationRuleProtocol'
}
}
}
},
targetUrls: {
required: false,
serializedName: 'targetUrls',
type: {
name: 'Sequence',
element: {
required: false,
serializedName: 'StringElementType',
type: {
name: 'String'
}
}
}
}
}
}
};
}
}

module.exports = AzureFirewallApplicationRule;
Loading