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

[AutoPR migrate/resource-manager/network/resource-manager] Adding support for delegations on a subnet #3393

Closed
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 All @@ -41,6 +43,8 @@ class ApplicationGatewayBackendHealthServer {
* configuration.
* @member {string} [ipConfiguration.subnet.addressPrefix] The address prefix
* for the subnet.
* @member {array} [ipConfiguration.subnet.addressPrefixes] List of address
* prefixes for the subnet.
* @member {object} [ipConfiguration.subnet.networkSecurityGroup] The
* reference of the NetworkSecurityGroup resource.
* @member {array}
Expand Down Expand Up @@ -82,10 +86,17 @@ class ApplicationGatewayBackendHealthServer {
* service endpoints.
* @member {array} [ipConfiguration.subnet.serviceEndpointPolicies] An array
* of service endpoint policies.
* @member {array} [ipConfiguration.subnet.interfaceEndpoints] An array of
* references to interface endpoints
* @member {array} [ipConfiguration.subnet.ipConfigurations] Gets an array of
* references to the network interface IP configurations using subnet.
* @member {array} [ipConfiguration.subnet.resourceNavigationLinks] Gets an
* array of references to the external resources using subnet.
* @member {array} [ipConfiguration.subnet.delegations] Gets an array of
* references to the delegations on the subnet.
* @member {string} [ipConfiguration.subnet.purpose] A read-only string
* identifying the intention of use for this subnet based on delegations and
* other user-defined properties.
* @member {string} [ipConfiguration.subnet.provisioningState] The
* provisioning state of the resource.
* @member {string} [ipConfiguration.subnet.name] The name of the resource
Expand Down Expand Up @@ -122,6 +133,9 @@ class ApplicationGatewayBackendHealthServer {
* @member {string}
* [ipConfiguration.publicIPAddress.ipConfiguration.subnet.addressPrefix] The
* address prefix for the subnet.
* @member {array}
* [ipConfiguration.publicIPAddress.ipConfiguration.subnet.addressPrefixes]
* List of address prefixes for the subnet.
* @member {object}
* [ipConfiguration.publicIPAddress.ipConfiguration.subnet.networkSecurityGroup]
* The reference of the NetworkSecurityGroup resource.
Expand Down Expand Up @@ -175,12 +189,22 @@ class ApplicationGatewayBackendHealthServer {
* [ipConfiguration.publicIPAddress.ipConfiguration.subnet.serviceEndpointPolicies]
* An array of service endpoint policies.
* @member {array}
* [ipConfiguration.publicIPAddress.ipConfiguration.subnet.interfaceEndpoints]
* An array of references to interface endpoints
* @member {array}
* [ipConfiguration.publicIPAddress.ipConfiguration.subnet.ipConfigurations]
* Gets an array of references to the network interface IP configurations
* using subnet.
* @member {array}
* [ipConfiguration.publicIPAddress.ipConfiguration.subnet.resourceNavigationLinks]
* Gets an array of references to the external resources using subnet.
* @member {array}
* [ipConfiguration.publicIPAddress.ipConfiguration.subnet.delegations] Gets
* an array of references to the delegations on the subnet.
* @member {string}
* [ipConfiguration.publicIPAddress.ipConfiguration.subnet.purpose] A
* read-only string identifying the intention of use for this subnet based on
* delegations and other user-defined properties.
* @member {string}
* [ipConfiguration.publicIPAddress.ipConfiguration.subnet.provisioningState]
* The provisioning state of the resource.
Expand Down
94 changes: 94 additions & 0 deletions lib/services/networkManagement2/lib/models/availableDelegation.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,94 @@
/*
* 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';

/**
* The serviceName of an AvailableDelegation indicates a possible delegation
* for a subnet.
*
*/
class AvailableDelegation {
/**
* Create a AvailableDelegation.
* @member {string} [name] The name of the AvailableDelegation resource.
* @member {string} [id] A unique identifier of the AvailableDelegation
* resource.
* @member {string} [type] Resource type.
* @member {string} [serviceName] The name of the service and resource
* @member {array} [actions] Describes the actions permitted to the service
* upon delegation
*/
constructor() {
}

/**
* Defines the metadata of AvailableDelegation
*
* @returns {object} metadata of AvailableDelegation
*
*/
mapper() {
return {
required: false,
serializedName: 'AvailableDelegation',
type: {
name: 'Composite',
className: 'AvailableDelegation',
modelProperties: {
name: {
required: false,
serializedName: 'name',
type: {
name: 'String'
}
},
id: {
required: false,
serializedName: 'id',
type: {
name: 'String'
}
},
type: {
required: false,
serializedName: 'type',
type: {
name: 'String'
}
},
serviceName: {
required: false,
serializedName: 'serviceName',
type: {
name: 'String'
}
},
actions: {
required: false,
serializedName: 'actions',
type: {
name: 'Sequence',
element: {
required: false,
serializedName: 'StringElementType',
type: {
name: 'String'
}
}
}
}
}
}
};
}
}

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

/**
* An array of available delegations.
*/
class AvailableDelegationsResult extends Array {
/**
* Create a AvailableDelegationsResult.
* @member {string} [nextLink] The URL to get the next set of results.
*/
constructor() {
super();
}

/**
* Defines the metadata of AvailableDelegationsResult
*
* @returns {object} metadata of AvailableDelegationsResult
*
*/
mapper() {
return {
required: false,
serializedName: 'AvailableDelegationsResult',
type: {
name: 'Composite',
className: 'AvailableDelegationsResult',
modelProperties: {
value: {
required: false,
serializedName: '',
type: {
name: 'Sequence',
element: {
required: false,
serializedName: 'AvailableDelegationElementType',
type: {
name: 'Composite',
className: 'AvailableDelegation'
}
}
}
},
nextLink: {
required: false,
serializedName: 'nextLink',
type: {
name: 'String'
}
}
}
}
};
}
}

module.exports = AvailableDelegationsResult;
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 @@ -25,6 +25,7 @@ class AzureFirewallApplicationRule {
* rule.
* @member {array} [protocols] Array of ApplicationRuleProtocols.
* @member {array} [targetUrls] List of URLs for this rule.
* @member {array} [fqdnTags] List of FQDN Tags for this rule.
*/
constructor() {
}
Expand Down Expand Up @@ -99,6 +100,20 @@ class AzureFirewallApplicationRule {
}
}
}
},
fqdnTags: {
required: false,
serializedName: 'fqdnTags',
type: {
name: 'Sequence',
element: {
required: false,
serializedName: 'StringElementType',
type: {
name: 'String'
}
}
}
}
}
}
Expand Down
Loading