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

[AutoPR network/resource-manager] Update for Get Application Gateway Server Variables APIs #4615

Merged
merged 2 commits into from
Feb 5, 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
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class AzureFirewallNatRule {
* @property {array} [sourceAddresses] List of source IP addresses for this
* rule.
* @property {array} [destinationAddresses] List of destination IP addresses
* for this rule.
* for this rule. Supports IP ranges, prefixes, and service tags.
* @property {array} [destinationPorts] List of destination ports.
* @property {array} [protocols] Array of AzureFirewallNetworkRuleProtocols
* applicable to this NAT rule.
Expand Down
33 changes: 2 additions & 31 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 @@ -2563,7 +2533,8 @@ export interface AzureFirewallNatRule {
*/
sourceAddresses?: string[];
/**
* List of destination IP addresses for this rule.
* List of destination IP addresses for this rule. Supports IP ranges, prefixes, and service
* tags.
*/
destinationAddresses?: 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
Loading