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

[AutoPR network/resource-manager] Adding LinkedResourceType and HostedWorkloads to Network Interface #3476

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 @@ -22,6 +22,8 @@ class ApplicationGatewayBackendHealthServer {
* @member {string} [address] IP address or FQDN of backend server.
* @member {object} [ipConfiguration] Reference of IP configuration of
* backend server.
* @member {array} [ipConfiguration.virtualNetworkTaps] The reference to
* Virtual Network Taps.
* @member {array} [ipConfiguration.applicationGatewayBackendAddressPools]
* The reference of ApplicationGatewayBackendAddressPool resource.
* @member {array} [ipConfiguration.loadBalancerBackendAddressPools] The
Expand Down
21 changes: 19 additions & 2 deletions lib/services/networkManagement2/lib/models/azureFirewall.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,11 @@ class AzureFirewall extends models['Resource'] {
/**
* Create a AzureFirewall.
* @member {array} [applicationRuleCollections] Collection of application
* rule collections used by a Azure Firewall.
* rule collections used by Azure Firewall.
* @member {array} [natRuleCollections] Collection of NAT rule collections
* used by Azure Firewall.
* @member {array} [networkRuleCollections] Collection of network rule
* collections used by a Azure Firewall.
* collections used by Azure Firewall.
* @member {array} [ipConfigurations] IP configuration of the Azure Firewall
* resource.
* @member {string} [provisioningState] The provisioning state of the
Expand Down Expand Up @@ -109,6 +111,21 @@ class AzureFirewall extends models['Resource'] {
}
}
},
natRuleCollections: {
required: false,
serializedName: 'properties.natRuleCollections',
type: {
name: 'Sequence',
element: {
required: false,
serializedName: 'AzureFirewallNatRuleCollectionElementType',
type: {
name: 'Composite',
className: 'AzureFirewallNatRuleCollection'
}
}
}
},
networkRuleCollections: {
required: false,
serializedName: 'properties.networkRuleCollections',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ class AzureFirewallIPConfiguration extends models['SubResource'] {
},
etag: {
required: false,
readOnly: true,
serializedName: 'etag',
type: {
name: 'String'
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
/*
* 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';

/**
* AzureFirewall NAT Rule Collection Action.
*
*/
class AzureFirewallNatRCAction {
/**
* Create a AzureFirewallNatRCAction.
* @member {string} [type] The type of action. Possible values include:
* 'Snat', 'Dnat'
*/
constructor() {
}

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

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

/**
* Properties of a NAT rule.
*
*/
class AzureFirewallNatRule {
/**
* Create a AzureFirewallNatRule.
* @member {string} [name] Name of the NAT rule.
* @member {string} [description] Description of the rule.
* @member {array} [sourceAddresses] List of source IP addresses for this
* rule.
* @member {array} [destinationAddresses] List of destination IP addresses
* for this rule.
* @member {array} [destinationPorts] List of destination ports.
* @member {array} [protocols] Array of AzureFirewallNetworkRuleProtocols
* applicable to this NAT rule.
* @member {string} [translatedAddress] The translated address for this NAT
* rule.
* @member {string} [translatedPort] The translated port for this NAT rule.
*/
constructor() {
}

/**
* Defines the metadata of AzureFirewallNatRule
*
* @returns {object} metadata of AzureFirewallNatRule
*
*/
mapper() {
return {
required: false,
serializedName: 'AzureFirewallNatRule',
type: {
name: 'Composite',
className: 'AzureFirewallNatRule',
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'
}
}
}
},
destinationAddresses: {
required: false,
serializedName: 'destinationAddresses',
type: {
name: 'Sequence',
element: {
required: false,
serializedName: 'StringElementType',
type: {
name: 'String'
}
}
}
},
destinationPorts: {
required: false,
serializedName: 'destinationPorts',
type: {
name: 'Sequence',
element: {
required: false,
serializedName: 'StringElementType',
type: {
name: 'String'
}
}
}
},
protocols: {
required: false,
serializedName: 'protocols',
type: {
name: 'Sequence',
element: {
required: false,
serializedName: 'AzureFirewallNetworkRuleProtocolElementType',
type: {
name: 'String'
}
}
}
},
translatedAddress: {
required: false,
serializedName: 'translatedAddress',
type: {
name: 'String'
}
},
translatedPort: {
required: false,
serializedName: 'translatedPort',
type: {
name: 'String'
}
}
}
}
};
}
}

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

/**
* NAT rule collection resource
*
* @extends models['SubResource']
*/
class AzureFirewallNatRuleCollection extends models['SubResource'] {
/**
* Create a AzureFirewallNatRuleCollection.
* @member {number} [priority] Priority of the NAT rule collection resource.
* @member {object} [action] The action type of a NAT rule collection
* @member {string} [action.type] The type of action. Possible values
* include: 'Snat', 'Dnat'
* @member {array} [rules] Collection of rules used by a NAT rule collection.
* @member {string} [provisioningState] The provisioning state of the
* resource. Possible values include: 'Succeeded', 'Updating', 'Deleting',
* 'Failed'
* @member {string} [name] Gets name of the resource that is unique within a
* resource group. This name can be used to access the resource.
* @member {string} [etag] Gets a unique read-only string that changes
* whenever the resource is updated.
*/
constructor() {
super();
}

/**
* Defines the metadata of AzureFirewallNatRuleCollection
*
* @returns {object} metadata of AzureFirewallNatRuleCollection
*
*/
mapper() {
return {
required: false,
serializedName: 'AzureFirewallNatRuleCollection',
type: {
name: 'Composite',
className: 'AzureFirewallNatRuleCollection',
modelProperties: {
id: {
required: false,
serializedName: 'id',
type: {
name: 'String'
}
},
priority: {
required: false,
serializedName: 'properties.priority',
constraints: {
InclusiveMaximum: 65000,
InclusiveMinimum: 100
},
type: {
name: 'Number'
}
},
action: {
required: false,
serializedName: 'properties.action',
type: {
name: 'Composite',
className: 'AzureFirewallNatRCAction'
}
},
rules: {
required: false,
serializedName: 'properties.rules',
type: {
name: 'Sequence',
element: {
required: false,
serializedName: 'AzureFirewallNatRuleElementType',
type: {
name: 'Composite',
className: 'AzureFirewallNatRule'
}
}
}
},
provisioningState: {
required: false,
serializedName: 'properties.provisioningState',
type: {
name: 'String'
}
},
name: {
required: false,
serializedName: 'name',
type: {
name: 'String'
}
},
etag: {
required: false,
readOnly: true,
serializedName: 'etag',
type: {
name: 'String'
}
}
}
}
};
}
}

module.exports = AzureFirewallNatRuleCollection;
2 changes: 2 additions & 0 deletions lib/services/networkManagement2/lib/models/inboundNatRule.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ class InboundNatRule extends models['SubResource'] {
* address defined on a network interface of a VM. Traffic sent to the
* frontend port of each of the frontend IP configurations is forwarded to
* the backend IP.
* @member {array} [backendIPConfiguration.virtualNetworkTaps] The reference
* to Virtual Network Taps.
* @member {array}
* [backendIPConfiguration.applicationGatewayBackendAddressPools] The
* reference of ApplicationGatewayBackendAddressPool resource.
Expand Down
Loading