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

Commit

Permalink
[AutoPR network/resource-manager] Azure Firewall FQDN Tag top level r…
Browse files Browse the repository at this point in the history
…esource (#3440)

* Generated from 58fa9bcbcdd59664bcb22cc4ebc875711cf442ec

Name FqdnTags property in AzureFirewallApplicationRule properly

* Generated from d9a5cf352116f00d53dfe07f63b0a130539c1571

Empty commit to trigger new validation
  • Loading branch information
AutorestCI authored Aug 31, 2018
1 parent 0167ae6 commit 83b2379
Show file tree
Hide file tree
Showing 10 changed files with 813 additions and 0 deletions.
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;
31 changes: 31 additions & 0 deletions lib/services/networkManagement2/lib/models/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2643,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 @@ -2757,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 @@ -7364,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

0 comments on commit 83b2379

Please sign in to comment.