diff --git a/lib/services/networkManagement2/lib/models/azureFirewallNatRule.js b/lib/services/networkManagement2/lib/models/azureFirewallNatRule.js index 06e3136e14..a90a663598 100644 --- a/lib/services/networkManagement2/lib/models/azureFirewallNatRule.js +++ b/lib/services/networkManagement2/lib/models/azureFirewallNatRule.js @@ -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. diff --git a/lib/services/networkManagement2/lib/models/index.d.ts b/lib/services/networkManagement2/lib/models/index.d.ts index 03d90a88d2..c28b2a2c88 100644 --- a/lib/services/networkManagement2/lib/models/index.d.ts +++ b/lib/services/networkManagement2/lib/models/index.d.ts @@ -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. */ @@ -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[]; /** diff --git a/lib/services/networkManagement2/lib/models/index.js b/lib/services/networkManagement2/lib/models/index.js index 23ceba7ee2..796a019f0d 100644 --- a/lib/services/networkManagement2/lib/models/index.js +++ b/lib/services/networkManagement2/lib/models/index.js @@ -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'); diff --git a/lib/services/networkManagement2/lib/operations/applicationGateways.js b/lib/services/networkManagement2/lib/operations/applicationGateways.js index ee4760f9a0..38a12efd12 100644 --- a/lib/services/networkManagement2/lib/operations/applicationGateways.js +++ b/lib/services/networkManagement2/lib/operations/applicationGateways.js @@ -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. * @@ -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) { @@ -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. * @@ -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) { @@ -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. * @@ -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) { @@ -4556,7 +4586,7 @@ class ApplicationGateways { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error} - The error object. */ @@ -4589,7 +4619,7 @@ class ApplicationGateways { * * {Promise} A promise is returned * - * @resolve {ApplicationGatewayAvailableServerVariablesResult} - The deserialized result object. + * @resolve {Array} - The deserialized result object. * * @reject {Error} - The error object. * @@ -4597,10 +4627,7 @@ class ApplicationGateways { * * {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. * @@ -4636,7 +4663,7 @@ class ApplicationGateways { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error} - The error object. */ @@ -4669,7 +4696,7 @@ class ApplicationGateways { * * {Promise} A promise is returned * - * @resolve {ApplicationGatewayAvailableRequestHeadersResult} - The deserialized result object. + * @resolve {Array} - The deserialized result object. * * @reject {Error} - The error object. * @@ -4677,10 +4704,7 @@ class ApplicationGateways { * * {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. * @@ -4716,7 +4740,7 @@ class ApplicationGateways { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error} - The error object. */ @@ -4749,7 +4773,7 @@ class ApplicationGateways { * * {Promise} A promise is returned * - * @resolve {ApplicationGatewayAvailableResponseHeadersResult} - The deserialized result object. + * @resolve {Array} - The deserialized result object. * * @reject {Error} - The error object. * @@ -4757,10 +4781,7 @@ class ApplicationGateways { * * {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. * diff --git a/lib/services/networkManagement2/lib/operations/index.d.ts b/lib/services/networkManagement2/lib/operations/index.d.ts index 57419492ed..30c64c75ae 100644 --- a/lib/services/networkManagement2/lib/operations/index.d.ts +++ b/lib/services/networkManagement2/lib/operations/index.d.ts @@ -906,11 +906,11 @@ export interface ApplicationGateways { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - listAvailableServerVariablesWithHttpOperationResponse(options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + listAvailableServerVariablesWithHttpOperationResponse(options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Lists all available server variables. @@ -927,7 +927,7 @@ export interface ApplicationGateways { * * {Promise} A promise is returned. * - * @resolve {ApplicationGatewayAvailableServerVariablesResult} - The deserialized result object. + * @resolve {Array} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -935,18 +935,15 @@ export interface ApplicationGateways { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {ApplicationGatewayAvailableServerVariablesResult} [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. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - listAvailableServerVariables(options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - listAvailableServerVariables(callback: ServiceCallback): void; - listAvailableServerVariables(options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + listAvailableServerVariables(options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + listAvailableServerVariables(callback: ServiceCallback): void; + listAvailableServerVariables(options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** @@ -959,11 +956,11 @@ export interface ApplicationGateways { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - listAvailableRequestHeadersWithHttpOperationResponse(options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + listAvailableRequestHeadersWithHttpOperationResponse(options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Lists all available request headers. @@ -980,7 +977,7 @@ export interface ApplicationGateways { * * {Promise} A promise is returned. * - * @resolve {ApplicationGatewayAvailableRequestHeadersResult} - The deserialized result object. + * @resolve {Array} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -988,18 +985,15 @@ export interface ApplicationGateways { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {ApplicationGatewayAvailableRequestHeadersResult} [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. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - listAvailableRequestHeaders(options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - listAvailableRequestHeaders(callback: ServiceCallback): void; - listAvailableRequestHeaders(options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + listAvailableRequestHeaders(options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + listAvailableRequestHeaders(callback: ServiceCallback): void; + listAvailableRequestHeaders(options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /** @@ -1012,11 +1006,11 @@ export interface ApplicationGateways { * * @returns {Promise} A promise is returned * - * @resolve {HttpOperationResponse} - The deserialized result object. + * @resolve {HttpOperationResponse} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. */ - listAvailableResponseHeadersWithHttpOperationResponse(options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + listAvailableResponseHeadersWithHttpOperationResponse(options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Lists all available response headers. @@ -1033,7 +1027,7 @@ export interface ApplicationGateways { * * {Promise} A promise is returned. * - * @resolve {ApplicationGatewayAvailableResponseHeadersResult} - The deserialized result object. + * @resolve {Array} - The deserialized result object. * * @reject {Error|ServiceError} - The error object. * @@ -1041,18 +1035,15 @@ export interface ApplicationGateways { * * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. * - * {ApplicationGatewayAvailableResponseHeadersResult} [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. * * {WebResource} [request] - The HTTP Request object if an error did not occur. * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - listAvailableResponseHeaders(options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - listAvailableResponseHeaders(callback: ServiceCallback): void; - listAvailableResponseHeaders(options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + listAvailableResponseHeaders(options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + listAvailableResponseHeaders(callback: ServiceCallback): void; + listAvailableResponseHeaders(options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; /**