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

[AutoPR network/resource-manager] Threat Intel changes for Azure Firewall #4632

Merged
merged 2 commits into from
Feb 11, 2019
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
9 changes: 9 additions & 0 deletions lib/services/networkManagement2/lib/models/azureFirewall.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ class AzureFirewall extends models['Resource'] {
* @property {string} [provisioningState] The provisioning state of the
* resource. Possible values include: 'Succeeded', 'Updating', 'Deleting',
* 'Failed'
* @property {string} [threatIntelMode] The operation mode for Threat
* Intelligence. Possible values include: 'Alert', 'Deny', 'Off'
* @property {string} [etag] Gets a unique read-only string that changes
* whenever the resource is updated.
*/
Expand Down Expand Up @@ -163,6 +165,13 @@ class AzureFirewall extends models['Resource'] {
name: 'String'
}
},
threatIntelMode: {
required: false,
serializedName: 'properties.threatIntelMode',
type: {
name: 'String'
}
},
etag: {
required: false,
readOnly: true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class AzureFirewallApplicationRuleCollection extends models['SubResource'] {
* resource.
* @property {object} [action] The action type of a rule collection
* @property {string} [action.type] The type of action. Possible values
* include: 'Allow', 'Deny'
* include: 'Allow', 'Deny', 'Alert'
* @property {array} [rules] Collection of rules used by a application rule
* collection.
* @property {string} [provisioningState] The provisioning state of the
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class AzureFirewallNetworkRuleCollection extends models['SubResource'] {
* resource.
* @property {object} [action] The action type of a rule collection
* @property {string} [action.type] The type of action. Possible values
* include: 'Allow', 'Deny'
* include: 'Allow', 'Deny', 'Alert'
* @property {array} [rules] Collection of rules used by a network rule
* collection.
* @property {string} [provisioningState] The provisioning state of the
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class AzureFirewallRCAction {
/**
* Create a AzureFirewallRCAction.
* @property {string} [type] The type of action. Possible values include:
* 'Allow', 'Deny'
* 'Allow', 'Deny', 'Alert'
*/
constructor() {
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class ConnectionMonitorQueryResult {
/**
* Create a ConnectionMonitorQueryResult.
* @property {string} [sourceStatus] Status of connection monitor source.
* Possible values include: 'Uknown', 'Active', 'Inactive'
* Possible values include: 'Unknown', 'Active', 'Inactive'
* @property {array} [states] Information about connection states.
*/
constructor() {
Expand Down
38 changes: 6 additions & 32 deletions lib/services/networkManagement2/lib/models/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2232,36 +2232,6 @@ export interface ApplicationGateway extends Resource {
identity?: ManagedServiceIdentity;
}

/**
* Response for ApplicationGatewayAvailableServerVariables API service call.
*/
export interface ApplicationGatewayAvailableServerVariablesResult {
/**
* The list of supported server variables in application gateway.
*/
value?: string[];
}

/**
* Response for ApplicationGatewayAvailableRequestHeaders API service call.
*/
export interface ApplicationGatewayAvailableRequestHeadersResult {
/**
* The list of supported request headers in application gateway.
*/
value?: string[];
}

/**
* Response for ApplicationGatewayAvailableResponeHeaders API service call.
*/
export interface ApplicationGatewayAvailableResponseHeadersResult {
/**
* The list of supported response header in application gateway.
*/
value?: string[];
}

/**
* A web application firewall rule.
*/
Expand Down Expand Up @@ -2455,7 +2425,7 @@ export interface AzureFirewallIPConfiguration extends SubResource {
*/
export interface AzureFirewallRCAction {
/**
* The type of action. Possible values include: 'Allow', 'Deny'
* The type of action. Possible values include: 'Allow', 'Deny', 'Alert'
*/
type?: string;
}
Expand Down Expand Up @@ -2704,6 +2674,10 @@ export interface AzureFirewall extends Resource {
* 'Deleting', 'Failed'
*/
provisioningState?: string;
/**
* The operation mode for Threat Intelligence. Possible values include: 'Alert', 'Deny', 'Off'
*/
threatIntelMode?: string;
/**
* Gets a unique read-only string that changes whenever the resource is updated.
*/
Expand Down Expand Up @@ -5635,7 +5609,7 @@ export interface ConnectionStateSnapshot {
*/
export interface ConnectionMonitorQueryResult {
/**
* Status of connection monitor source. Possible values include: 'Uknown', 'Active', 'Inactive'
* Status of connection monitor source. Possible values include: 'Unknown', 'Active', 'Inactive'
*/
sourceStatus?: string;
/**
Expand Down
3 changes: 0 additions & 3 deletions lib/services/networkManagement2/lib/models/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,6 @@ exports.ApplicationGatewayAutoscaleConfiguration = require('./applicationGateway
exports.ManagedServiceIdentityUserAssignedIdentitiesValue = require('./managedServiceIdentityUserAssignedIdentitiesValue');
exports.ManagedServiceIdentity = require('./managedServiceIdentity');
exports.ApplicationGateway = require('./applicationGateway');
exports.ApplicationGatewayAvailableServerVariablesResult = require('./applicationGatewayAvailableServerVariablesResult');
exports.ApplicationGatewayAvailableRequestHeadersResult = require('./applicationGatewayAvailableRequestHeadersResult');
exports.ApplicationGatewayAvailableResponseHeadersResult = require('./applicationGatewayAvailableResponseHeadersResult');
exports.ApplicationGatewayFirewallRule = require('./applicationGatewayFirewallRule');
exports.ApplicationGatewayFirewallRuleGroup = require('./applicationGatewayFirewallRuleGroup');
exports.ApplicationGatewayFirewallRuleSet = require('./applicationGatewayFirewallRuleSet');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1043,10 +1043,7 @@ function _backendHealth(resourceGroupName, applicationGatewayName, options, call
*
* {Error} err - The Error object if an error occurred, null otherwise.
*
* {object} [result] - The deserialized result object if an error did not occur.
* See {@link
* ApplicationGatewayAvailableServerVariablesResult} for
* more information.
* {array} [result] - The deserialized result object if an error did not occur.
*
* {object} [request] - The HTTP Request object if an error did not occur.
*
Expand Down Expand Up @@ -1148,7 +1145,20 @@ function _listAvailableServerVariables(options, callback) {
parsedResponse = JSON.parse(responseBody);
result = JSON.parse(responseBody);
if (parsedResponse !== null && parsedResponse !== undefined) {
let resultMapper = new client.models['ApplicationGatewayAvailableServerVariablesResult']().mapper();
let resultMapper = {
required: false,
serializedName: 'parsedResponse',
type: {
name: 'Sequence',
element: {
required: false,
serializedName: 'StringElementType',
type: {
name: 'String'
}
}
}
};
result = client.deserialize(resultMapper, parsedResponse, 'result');
}
} catch (error) {
Expand Down Expand Up @@ -1177,10 +1187,7 @@ function _listAvailableServerVariables(options, callback) {
*
* {Error} err - The Error object if an error occurred, null otherwise.
*
* {object} [result] - The deserialized result object if an error did not occur.
* See {@link
* ApplicationGatewayAvailableRequestHeadersResult} for
* more information.
* {array} [result] - The deserialized result object if an error did not occur.
*
* {object} [request] - The HTTP Request object if an error did not occur.
*
Expand Down Expand Up @@ -1282,7 +1289,20 @@ function _listAvailableRequestHeaders(options, callback) {
parsedResponse = JSON.parse(responseBody);
result = JSON.parse(responseBody);
if (parsedResponse !== null && parsedResponse !== undefined) {
let resultMapper = new client.models['ApplicationGatewayAvailableRequestHeadersResult']().mapper();
let resultMapper = {
required: false,
serializedName: 'parsedResponse',
type: {
name: 'Sequence',
element: {
required: false,
serializedName: 'StringElementType',
type: {
name: 'String'
}
}
}
};
result = client.deserialize(resultMapper, parsedResponse, 'result');
}
} catch (error) {
Expand Down Expand Up @@ -1311,10 +1331,7 @@ function _listAvailableRequestHeaders(options, callback) {
*
* {Error} err - The Error object if an error occurred, null otherwise.
*
* {object} [result] - The deserialized result object if an error did not occur.
* See {@link
* ApplicationGatewayAvailableResponseHeadersResult} for
* more information.
* {array} [result] - The deserialized result object if an error did not occur.
*
* {object} [request] - The HTTP Request object if an error did not occur.
*
Expand Down Expand Up @@ -1416,7 +1433,20 @@ function _listAvailableResponseHeaders(options, callback) {
parsedResponse = JSON.parse(responseBody);
result = JSON.parse(responseBody);
if (parsedResponse !== null && parsedResponse !== undefined) {
let resultMapper = new client.models['ApplicationGatewayAvailableResponseHeadersResult']().mapper();
let resultMapper = {
required: false,
serializedName: 'parsedResponse',
type: {
name: 'Sequence',
element: {
required: false,
serializedName: 'StringElementType',
type: {
name: 'String'
}
}
}
};
result = client.deserialize(resultMapper, parsedResponse, 'result');
}
} catch (error) {
Expand Down Expand Up @@ -4556,7 +4586,7 @@ class ApplicationGateways {
*
* @returns {Promise} A promise is returned
*
* @resolve {HttpOperationResponse<ApplicationGatewayAvailableServerVariablesResult>} - The deserialized result object.
* @resolve {HttpOperationResponse<Array>} - The deserialized result object.
*
* @reject {Error} - The error object.
*/
Expand Down Expand Up @@ -4589,18 +4619,15 @@ class ApplicationGateways {
*
* {Promise} A promise is returned
*
* @resolve {ApplicationGatewayAvailableServerVariablesResult} - The deserialized result object.
* @resolve {Array} - The deserialized result object.
*
* @reject {Error} - The error object.
*
* {function} optionalCallback(err, result, request, response)
*
* {Error} err - The Error object if an error occurred, null otherwise.
*
* {object} [result] - The deserialized result object if an error did not occur.
* See {@link
* ApplicationGatewayAvailableServerVariablesResult} for
* more information.
* {array} [result] - The deserialized result object if an error did not occur.
*
* {object} [request] - The HTTP Request object if an error did not occur.
*
Expand Down Expand Up @@ -4636,7 +4663,7 @@ class ApplicationGateways {
*
* @returns {Promise} A promise is returned
*
* @resolve {HttpOperationResponse<ApplicationGatewayAvailableRequestHeadersResult>} - The deserialized result object.
* @resolve {HttpOperationResponse<Array>} - The deserialized result object.
*
* @reject {Error} - The error object.
*/
Expand Down Expand Up @@ -4669,18 +4696,15 @@ class ApplicationGateways {
*
* {Promise} A promise is returned
*
* @resolve {ApplicationGatewayAvailableRequestHeadersResult} - The deserialized result object.
* @resolve {Array} - The deserialized result object.
*
* @reject {Error} - The error object.
*
* {function} optionalCallback(err, result, request, response)
*
* {Error} err - The Error object if an error occurred, null otherwise.
*
* {object} [result] - The deserialized result object if an error did not occur.
* See {@link
* ApplicationGatewayAvailableRequestHeadersResult} for
* more information.
* {array} [result] - The deserialized result object if an error did not occur.
*
* {object} [request] - The HTTP Request object if an error did not occur.
*
Expand Down Expand Up @@ -4716,7 +4740,7 @@ class ApplicationGateways {
*
* @returns {Promise} A promise is returned
*
* @resolve {HttpOperationResponse<ApplicationGatewayAvailableResponseHeadersResult>} - The deserialized result object.
* @resolve {HttpOperationResponse<Array>} - The deserialized result object.
*
* @reject {Error} - The error object.
*/
Expand Down Expand Up @@ -4749,18 +4773,15 @@ class ApplicationGateways {
*
* {Promise} A promise is returned
*
* @resolve {ApplicationGatewayAvailableResponseHeadersResult} - The deserialized result object.
* @resolve {Array} - The deserialized result object.
*
* @reject {Error} - The error object.
*
* {function} optionalCallback(err, result, request, response)
*
* {Error} err - The Error object if an error occurred, null otherwise.
*
* {object} [result] - The deserialized result object if an error did not occur.
* See {@link
* ApplicationGatewayAvailableResponseHeadersResult} for
* more information.
* {array} [result] - The deserialized result object if an error did not occur.
*
* {object} [request] - The HTTP Request object if an error did not occur.
*
Expand Down
18 changes: 18 additions & 0 deletions lib/services/networkManagement2/lib/operations/azureFirewalls.js
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,9 @@ function _get(resourceGroupName, azureFirewallName, options, callback) {
* resource. Possible values include: 'Succeeded', 'Updating', 'Deleting',
* 'Failed'
*
* @param {string} [parameters.threatIntelMode] The operation mode for Threat
* Intelligence. Possible values include: 'Alert', 'Deny', 'Off'
*
* @param {string} [parameters.id] Resource ID.
*
* @param {string} [parameters.location] Resource location.
Expand Down Expand Up @@ -744,6 +747,9 @@ function _beginDeleteMethod(resourceGroupName, azureFirewallName, options, callb
* resource. Possible values include: 'Succeeded', 'Updating', 'Deleting',
* 'Failed'
*
* @param {string} [parameters.threatIntelMode] The operation mode for Threat
* Intelligence. Possible values include: 'Alert', 'Deny', 'Off'
*
* @param {string} [parameters.id] Resource ID.
*
* @param {string} [parameters.location] Resource location.
Expand Down Expand Up @@ -1392,6 +1398,9 @@ class AzureFirewalls {
* resource. Possible values include: 'Succeeded', 'Updating', 'Deleting',
* 'Failed'
*
* @param {string} [parameters.threatIntelMode] The operation mode for Threat
* Intelligence. Possible values include: 'Alert', 'Deny', 'Off'
*
* @param {string} [parameters.id] Resource ID.
*
* @param {string} [parameters.location] Resource location.
Expand Down Expand Up @@ -1449,6 +1458,9 @@ class AzureFirewalls {
* resource. Possible values include: 'Succeeded', 'Updating', 'Deleting',
* 'Failed'
*
* @param {string} [parameters.threatIntelMode] The operation mode for Threat
* Intelligence. Possible values include: 'Alert', 'Deny', 'Off'
*
* @param {string} [parameters.id] Resource ID.
*
* @param {string} [parameters.location] Resource location.
Expand Down Expand Up @@ -1775,6 +1787,9 @@ class AzureFirewalls {
* resource. Possible values include: 'Succeeded', 'Updating', 'Deleting',
* 'Failed'
*
* @param {string} [parameters.threatIntelMode] The operation mode for Threat
* Intelligence. Possible values include: 'Alert', 'Deny', 'Off'
*
* @param {string} [parameters.id] Resource ID.
*
* @param {string} [parameters.location] Resource location.
Expand Down Expand Up @@ -1832,6 +1847,9 @@ class AzureFirewalls {
* resource. Possible values include: 'Succeeded', 'Updating', 'Deleting',
* 'Failed'
*
* @param {string} [parameters.threatIntelMode] The operation mode for Threat
* Intelligence. Possible values include: 'Alert', 'Deny', 'Off'
*
* @param {string} [parameters.id] Resource ID.
*
* @param {string} [parameters.location] Resource location.
Expand Down
Loading