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

[AutoPR network/resource-manager] Suppress RequiredPropertiesMissingInResourceModel for AzureFirewall #3085

Merged
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
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;
Original file line number Diff line number Diff line change
@@ -0,0 +1,125 @@
/*
* 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 rule collection resource
*
* @extends models['SubResource']
*/
class AzureFirewallApplicationRuleCollection extends models['SubResource'] {
/**
* Create a AzureFirewallApplicationRuleCollection.
* @member {number} [priority] Priority of the application rule collection
* resource.
* @member {object} [action] The action type of a rule collection
* @member {string} [action.type] The type of action. Possible values
* include: 'Allow', 'Deny'
* @member {array} [rules] Collection of rules used by a application 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 AzureFirewallApplicationRuleCollection
*
* @returns {object} metadata of AzureFirewallApplicationRuleCollection
*
*/
mapper() {
return {
required: false,
serializedName: 'AzureFirewallApplicationRuleCollection',
type: {
name: 'Composite',
className: 'AzureFirewallApplicationRuleCollection',
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: 'AzureFirewallRCAction'
}
},
rules: {
required: false,
serializedName: 'properties.rules',
type: {
name: 'Sequence',
element: {
required: false,
serializedName: 'AzureFirewallApplicationRuleElementType',
type: {
name: 'Composite',
className: 'AzureFirewallApplicationRule'
}
}
}
},
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 = AzureFirewallApplicationRuleCollection;
Loading