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

[AutoPR network/resource-manager] Azure Firewall FQDN Tag top level resource #3440

Merged
merged 2 commits into from
Aug 31, 2018
Merged
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 @@ -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
121 changes: 121 additions & 0 deletions lib/services/networkManagement2/lib/models/azureFirewallFqdnTag.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,121 @@
/*
* 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 FQDN Tag Resource
*
* @extends models['Resource']
*/
class AzureFirewallFqdnTag extends models['Resource'] {
/**
* Create a AzureFirewallFqdnTag.
* @member {string} [provisioningState] The provisioning state of the
* resource.
* @member {string} [fqdnTagName] The name of this FQDN Tag.
* @member {string} [etag] Gets a unique read-only string that changes
* whenever the resource is updated.
*/
constructor() {
super();
}

/**
* Defines the metadata of AzureFirewallFqdnTag
*
* @returns {object} metadata of AzureFirewallFqdnTag
*
*/
mapper() {
return {
required: false,
serializedName: 'AzureFirewallFqdnTag',
type: {
name: 'Composite',
className: 'AzureFirewallFqdnTag',
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'
}
}
}
},
provisioningState: {
required: false,
readOnly: true,
serializedName: 'properties.provisioningState',
type: {
name: 'String'
}
},
fqdnTagName: {
required: false,
readOnly: true,
serializedName: 'properties.fqdnTagName',
type: {
name: 'String'
}
},
etag: {
required: false,
readOnly: true,
serializedName: 'etag',
type: {
name: 'String'
}
}
}
}
};
}
}

module.exports = AzureFirewallFqdnTag;
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';

/**
* Response for ListAzureFirewallFqdnTags API service call.
*/
class AzureFirewallFqdnTagListResult extends Array {
/**
* Create a AzureFirewallFqdnTagListResult.
* @member {string} [nextLink] URL to get the next set of results.
*/
constructor() {
super();
}

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

module.exports = AzureFirewallFqdnTagListResult;
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,8 @@ class AzureFirewallIPConfiguration extends models['SubResource'] {
* @member {object} [subnet] Reference of the subnet resource. This resource
* must be named 'AzureFirewallSubnet'.
* @member {string} [subnet.id] Resource ID.
* @member {object} [internalPublicIpAddress] Reference of the PublicIP
* resource. This field is a mandatory input.
* @member {string} [internalPublicIpAddress.id] Resource ID.
* @member {object} [publicIPAddress] Reference of the PublicIP resource.
* This field is populated in the output.
* This field is a mandatory input if subnet is not null.
* @member {string} [publicIPAddress.id] Resource ID.
* @member {string} [provisioningState] The provisioning state of the
* resource. Possible values include: 'Succeeded', 'Updating', 'Deleting',
Expand Down Expand Up @@ -79,14 +76,6 @@ class AzureFirewallIPConfiguration extends models['SubResource'] {
className: 'SubResource'
}
},
internalPublicIpAddress: {
required: false,
serializedName: 'properties.internalPublicIpAddress',
type: {
name: 'Composite',
className: 'SubResource'
}
},
publicIPAddress: {
required: false,
serializedName: 'properties.publicIPAddress',
Expand Down
37 changes: 32 additions & 5 deletions lib/services/networkManagement2/lib/models/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2584,11 +2584,8 @@ export interface TagsObject {
* @member {object} [subnet] Reference of the subnet resource. This resource
* must be named 'AzureFirewallSubnet'.
* @member {string} [subnet.id] Resource ID.
* @member {object} [internalPublicIpAddress] Reference of the PublicIP
* resource. This field is a mandatory input.
* @member {string} [internalPublicIpAddress.id] Resource ID.
* @member {object} [publicIPAddress] Reference of the PublicIP resource. This
* field is populated in the output.
* field is a mandatory input if subnet is not null.
* @member {string} [publicIPAddress.id] Resource ID.
* @member {string} [provisioningState] The provisioning state of the resource.
* Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed'
Expand All @@ -2600,7 +2597,6 @@ export interface TagsObject {
export interface AzureFirewallIPConfiguration extends SubResource {
privateIPAddress?: string;
subnet?: SubResource;
internalPublicIpAddress?: SubResource;
publicIPAddress?: SubResource;
provisioningState?: string;
name?: string;
Expand Down Expand Up @@ -2647,13 +2643,15 @@ export interface AzureFirewallApplicationRuleProtocol {
* @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.
* @member {array} [fqdnTags] List of FQDN Tags for this rule.
*/
export interface AzureFirewallApplicationRule {
name?: string;
description?: string;
sourceAddresses?: string[];
protocols?: AzureFirewallApplicationRuleProtocol[];
targetUrls?: string[];
fqdnTags?: string[];
}

/**
Expand Down Expand Up @@ -2761,6 +2759,23 @@ export interface AzureFirewall extends Resource {
readonly etag?: string;
}

/**
* @class
* Initializes a new instance of the AzureFirewallFqdnTag class.
* @constructor
* Azure Firewall FQDN Tag Resource
*
* @member {string} [provisioningState] The provisioning state of the resource.
* @member {string} [fqdnTagName] The name of this FQDN Tag.
* @member {string} [etag] Gets a unique read-only string that changes whenever
* the resource is updated.
*/
export interface AzureFirewallFqdnTag extends Resource {
readonly provisioningState?: string;
readonly fqdnTagName?: string;
readonly etag?: string;
}

/**
* @class
* Initializes a new instance of the DnsNameAvailabilityResult class.
Expand Down Expand Up @@ -7368,6 +7383,18 @@ export interface AzureFirewallListResult extends Array<AzureFirewall> {
nextLink?: string;
}

/**
* @class
* Initializes a new instance of the AzureFirewallFqdnTagListResult class.
* @constructor
* Response for ListAzureFirewallFqdnTags API service call.
*
* @member {string} [nextLink] URL to get the next set of results.
*/
export interface AzureFirewallFqdnTagListResult extends Array<AzureFirewallFqdnTag> {
nextLink?: string;
}

/**
* @class
* Initializes a new instance of the DdosProtectionPlanListResult class.
Expand Down
2 changes: 2 additions & 0 deletions lib/services/networkManagement2/lib/models/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ exports.AzureFirewallApplicationRuleCollection = require('./azureFirewallApplica
exports.AzureFirewallNetworkRule = require('./azureFirewallNetworkRule');
exports.AzureFirewallNetworkRuleCollection = require('./azureFirewallNetworkRuleCollection');
exports.AzureFirewall = require('./azureFirewall');
exports.AzureFirewallFqdnTag = require('./azureFirewallFqdnTag');
exports.DnsNameAvailabilityResult = require('./dnsNameAvailabilityResult');
exports.DdosProtectionPlan = require('./ddosProtectionPlan');
exports.EndpointServiceResult = require('./endpointServiceResult');
Expand Down Expand Up @@ -250,6 +251,7 @@ exports.ApplicationGatewayListResult = require('./applicationGatewayListResult')
exports.ApplicationGatewayAvailableSslPredefinedPolicies = require('./applicationGatewayAvailableSslPredefinedPolicies');
exports.ApplicationSecurityGroupListResult = require('./applicationSecurityGroupListResult');
exports.AzureFirewallListResult = require('./azureFirewallListResult');
exports.AzureFirewallFqdnTagListResult = require('./azureFirewallFqdnTagListResult');
exports.DdosProtectionPlanListResult = require('./ddosProtectionPlanListResult');
exports.EndpointServicesListResult = require('./endpointServicesListResult');
exports.AuthorizationListResult = require('./authorizationListResult');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ export default class NetworkManagementClient extends AzureServiceClient {
applicationGateways: operations.ApplicationGateways;
applicationSecurityGroups: operations.ApplicationSecurityGroups;
azureFirewalls: operations.AzureFirewalls;
azureFirewallFqdnTags: operations.AzureFirewallFqdnTags;
ddosProtectionPlans: operations.DdosProtectionPlans;
availableEndpointServices: operations.AvailableEndpointServices;
expressRouteCircuitAuthorizations: operations.ExpressRouteCircuitAuthorizations;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,7 @@ class NetworkManagementClient extends ServiceClient {
this.applicationGateways = new operations.ApplicationGateways(this);
this.applicationSecurityGroups = new operations.ApplicationSecurityGroups(this);
this.azureFirewalls = new operations.AzureFirewalls(this);
this.azureFirewallFqdnTags = new operations.AzureFirewallFqdnTags(this);
this.ddosProtectionPlans = new operations.DdosProtectionPlans(this);
this.availableEndpointServices = new operations.AvailableEndpointServices(this);
this.expressRouteCircuitAuthorizations = new operations.ExpressRouteCircuitAuthorizations(this);
Expand Down
Loading