diff --git a/lib/services/networkManagement2/lib/models/applicationGateway.js b/lib/services/networkManagement2/lib/models/applicationGateway.js index 390a89816a..a369ca4821 100644 --- a/lib/services/networkManagement2/lib/models/applicationGateway.js +++ b/lib/services/networkManagement2/lib/models/applicationGateway.js @@ -88,6 +88,13 @@ class ApplicationGateway extends models['Resource'] { * Whether allow WAF to check request Body. * @member {number} [webApplicationFirewallConfiguration.maxRequestBodySize] * Maxium request body size for WAF. + * @member {number} + * [webApplicationFirewallConfiguration.maxRequestBodySizeInKb] Maxium + * request body size in Kb for WAF. + * @member {number} [webApplicationFirewallConfiguration.fileUploadLimitInMb] + * Maxium file upload size in Mb for WAF. + * @member {array} [webApplicationFirewallConfiguration.exclusions] The + * exclusion list. * @member {boolean} [enableHttp2] Whether HTTP2 is enabled on the * application gateway resource. * @member {boolean} [enableFips] Whether FIPS is enabled on the application @@ -100,6 +107,8 @@ class ApplicationGateway extends models['Resource'] { * @member {string} [provisioningState] Provisioning state of the application * gateway resource. Possible values are: 'Updating', 'Deleting', and * 'Failed'. + * @member {array} [customErrorConfiguration] Custom error configurations of + * the application gateway resource. * @member {string} [etag] A unique read-only string that changes whenever * the resource is updated. * @member {array} [zones] A list of availability zones denoting where the @@ -430,6 +439,21 @@ class ApplicationGateway extends models['Resource'] { name: 'String' } }, + customErrorConfiguration: { + required: false, + serializedName: 'properties.customErrorConfiguration', + type: { + name: 'Sequence', + element: { + required: false, + serializedName: 'ApplicationGatewayCustomErrorElementType', + type: { + name: 'Composite', + className: 'ApplicationGatewayCustomError' + } + } + } + }, etag: { required: false, serializedName: 'etag', diff --git a/lib/services/networkManagement2/lib/models/applicationGatewayCustomError.js b/lib/services/networkManagement2/lib/models/applicationGatewayCustomError.js new file mode 100644 index 0000000000..56b8ff1f91 --- /dev/null +++ b/lib/services/networkManagement2/lib/models/applicationGatewayCustomError.js @@ -0,0 +1,62 @@ +/* + * 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'; + +/** + * Customer error of an application gateway. + * + */ +class ApplicationGatewayCustomError { + /** + * Create a ApplicationGatewayCustomError. + * @member {string} [statusCode] Status code of the application gateway + * customer error. Possible values include: '403', '502' + * @member {string} [customErrorPageUrl] Error page URL of the application + * gateway customer error. + */ + constructor() { + } + + /** + * Defines the metadata of ApplicationGatewayCustomError + * + * @returns {object} metadata of ApplicationGatewayCustomError + * + */ + mapper() { + return { + required: false, + serializedName: 'ApplicationGatewayCustomError', + type: { + name: 'Composite', + className: 'ApplicationGatewayCustomError', + modelProperties: { + statusCode: { + required: false, + serializedName: 'statusCode', + type: { + name: 'String' + } + }, + customErrorPageUrl: { + required: false, + serializedName: 'customErrorPageUrl', + type: { + name: 'String' + } + } + } + } + }; + } +} + +module.exports = ApplicationGatewayCustomError; diff --git a/lib/services/networkManagement2/lib/models/applicationGatewayFirewallExclusion.js b/lib/services/networkManagement2/lib/models/applicationGatewayFirewallExclusion.js new file mode 100644 index 0000000000..ee54c2830d --- /dev/null +++ b/lib/services/networkManagement2/lib/models/applicationGatewayFirewallExclusion.js @@ -0,0 +1,72 @@ +/* + * 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'; + +/** + * Allow to exclude some variable satisfy the condition for the WAF check + * + */ +class ApplicationGatewayFirewallExclusion { + /** + * Create a ApplicationGatewayFirewallExclusion. + * @member {string} matchVariable The variable to be excluded. + * @member {string} selectorMatchOperator When matchVariable is a collection, + * operate on the selector to specify which elements in the collection this + * exclusion applies to. + * @member {string} selector When matchVariable is a collection, operator + * used to specify which elements in the collection this exclusion applies + * to. + */ + constructor() { + } + + /** + * Defines the metadata of ApplicationGatewayFirewallExclusion + * + * @returns {object} metadata of ApplicationGatewayFirewallExclusion + * + */ + mapper() { + return { + required: false, + serializedName: 'ApplicationGatewayFirewallExclusion', + type: { + name: 'Composite', + className: 'ApplicationGatewayFirewallExclusion', + modelProperties: { + matchVariable: { + required: true, + serializedName: 'matchVariable', + type: { + name: 'String' + } + }, + selectorMatchOperator: { + required: true, + serializedName: 'selectorMatchOperator', + type: { + name: 'String' + } + }, + selector: { + required: true, + serializedName: 'selector', + type: { + name: 'String' + } + } + } + } + }; + } +} + +module.exports = ApplicationGatewayFirewallExclusion; diff --git a/lib/services/networkManagement2/lib/models/applicationGatewayHttpListener.js b/lib/services/networkManagement2/lib/models/applicationGatewayHttpListener.js index 72b5481ad9..17b6862071 100644 --- a/lib/services/networkManagement2/lib/models/applicationGatewayHttpListener.js +++ b/lib/services/networkManagement2/lib/models/applicationGatewayHttpListener.js @@ -37,6 +37,8 @@ class ApplicationGatewayHttpListener extends models['SubResource'] { * @member {string} [provisioningState] Provisioning state of the HTTP * listener resource. Possible values are: 'Updating', 'Deleting', and * 'Failed'. + * @member {array} [customErrorConfiguration] Custom error configurations of + * the HTTP listener. * @member {string} [name] Name of the HTTP listener that is unique within an * Application Gateway. * @member {string} [etag] A unique read-only string that changes whenever @@ -120,6 +122,21 @@ class ApplicationGatewayHttpListener extends models['SubResource'] { name: 'String' } }, + customErrorConfiguration: { + required: false, + serializedName: 'properties.customErrorConfiguration', + type: { + name: 'Sequence', + element: { + required: false, + serializedName: 'ApplicationGatewayCustomErrorElementType', + type: { + name: 'Composite', + className: 'ApplicationGatewayCustomError' + } + } + } + }, name: { required: false, serializedName: 'name', diff --git a/lib/services/networkManagement2/lib/models/applicationGatewayWebApplicationFirewallConfiguration.js b/lib/services/networkManagement2/lib/models/applicationGatewayWebApplicationFirewallConfiguration.js index 118fc2e172..0c35215bd0 100644 --- a/lib/services/networkManagement2/lib/models/applicationGatewayWebApplicationFirewallConfiguration.js +++ b/lib/services/networkManagement2/lib/models/applicationGatewayWebApplicationFirewallConfiguration.js @@ -28,6 +28,11 @@ class ApplicationGatewayWebApplicationFirewallConfiguration { * @member {boolean} [requestBodyCheck] Whether allow WAF to check request * Body. * @member {number} [maxRequestBodySize] Maxium request body size for WAF. + * @member {number} [maxRequestBodySizeInKb] Maxium request body size in Kb + * for WAF. + * @member {number} [fileUploadLimitInMb] Maxium file upload size in Mb for + * WAF. + * @member {array} [exclusions] The exclusion list. */ constructor() { } @@ -106,6 +111,43 @@ class ApplicationGatewayWebApplicationFirewallConfiguration { type: { name: 'Number' } + }, + maxRequestBodySizeInKb: { + required: false, + serializedName: 'maxRequestBodySizeInKb', + constraints: { + InclusiveMaximum: 128, + InclusiveMinimum: 8 + }, + type: { + name: 'Number' + } + }, + fileUploadLimitInMb: { + required: false, + serializedName: 'fileUploadLimitInMb', + constraints: { + InclusiveMaximum: 500, + InclusiveMinimum: 0 + }, + type: { + name: 'Number' + } + }, + exclusions: { + required: false, + serializedName: 'exclusions', + type: { + name: 'Sequence', + element: { + required: false, + serializedName: 'ApplicationGatewayFirewallExclusionElementType', + type: { + name: 'Composite', + className: 'ApplicationGatewayFirewallExclusion' + } + } + } } } } diff --git a/lib/services/networkManagement2/lib/models/evaluatedNetworkSecurityGroup.js b/lib/services/networkManagement2/lib/models/evaluatedNetworkSecurityGroup.js index 005c15fab9..3eb3d30d22 100644 --- a/lib/services/networkManagement2/lib/models/evaluatedNetworkSecurityGroup.js +++ b/lib/services/networkManagement2/lib/models/evaluatedNetworkSecurityGroup.js @@ -18,6 +18,8 @@ class EvaluatedNetworkSecurityGroup { /** * Create a EvaluatedNetworkSecurityGroup. * @member {string} [networkSecurityGroupId] Network security group ID. + * @member {string} [appliedTo] Resource ID of nic or subnet to which network + * security group is applied. * @member {object} [matchedRule] * @member {string} [matchedRule.ruleName] Name of the matched network * security rule. @@ -50,6 +52,13 @@ class EvaluatedNetworkSecurityGroup { name: 'String' } }, + appliedTo: { + required: false, + serializedName: 'appliedTo', + type: { + name: 'String' + } + }, matchedRule: { required: false, serializedName: 'matchedRule', diff --git a/lib/services/networkManagement2/lib/models/index.d.ts b/lib/services/networkManagement2/lib/models/index.d.ts index 0a9eee3366..2e53b111ef 100644 --- a/lib/services/networkManagement2/lib/models/index.d.ts +++ b/lib/services/networkManagement2/lib/models/index.d.ts @@ -4065,6 +4065,22 @@ export interface ApplicationGatewayFrontendPort extends SubResource { type?: string; } +/** + * @class + * Initializes a new instance of the ApplicationGatewayCustomError class. + * @constructor + * Customer error of an application gateway. + * + * @member {string} [statusCode] Status code of the application gateway + * customer error. Possible values include: '403', '502' + * @member {string} [customErrorPageUrl] Error page URL of the application + * gateway customer error. + */ +export interface ApplicationGatewayCustomError { + statusCode?: string; + customErrorPageUrl?: string; +} + /** * @class * Initializes a new instance of the ApplicationGatewayHttpListener class. @@ -4087,6 +4103,8 @@ export interface ApplicationGatewayFrontendPort extends SubResource { * is https. Enables SNI for multi-hosting. * @member {string} [provisioningState] Provisioning state of the HTTP listener * resource. Possible values are: 'Updating', 'Deleting', and 'Failed'. + * @member {array} [customErrorConfiguration] Custom error configurations of + * the HTTP listener. * @member {string} [name] Name of the HTTP listener that is unique within an * Application Gateway. * @member {string} [etag] A unique read-only string that changes whenever the @@ -4101,6 +4119,7 @@ export interface ApplicationGatewayHttpListener extends SubResource { sslCertificate?: SubResource; requireServerNameIndication?: boolean; provisioningState?: string; + customErrorConfiguration?: ApplicationGatewayCustomError[]; name?: string; etag?: string; type?: string; @@ -4351,6 +4370,25 @@ export interface ApplicationGatewayFirewallDisabledRuleGroup { rules?: number[]; } +/** + * @class + * Initializes a new instance of the ApplicationGatewayFirewallExclusion class. + * @constructor + * Allow to exclude some variable satisfy the condition for the WAF check + * + * @member {string} matchVariable The variable to be excluded. + * @member {string} selectorMatchOperator When matchVariable is a collection, + * operate on the selector to specify which elements in the collection this + * exclusion applies to. + * @member {string} selector When matchVariable is a collection, operator used + * to specify which elements in the collection this exclusion applies to. + */ +export interface ApplicationGatewayFirewallExclusion { + matchVariable: string; + selectorMatchOperator: string; + selector: string; +} + /** * @class * Initializes a new instance of the ApplicationGatewayWebApplicationFirewallConfiguration class. @@ -4368,6 +4406,11 @@ export interface ApplicationGatewayFirewallDisabledRuleGroup { * @member {boolean} [requestBodyCheck] Whether allow WAF to check request * Body. * @member {number} [maxRequestBodySize] Maxium request body size for WAF. + * @member {number} [maxRequestBodySizeInKb] Maxium request body size in Kb for + * WAF. + * @member {number} [fileUploadLimitInMb] Maxium file upload size in Mb for + * WAF. + * @member {array} [exclusions] The exclusion list. */ export interface ApplicationGatewayWebApplicationFirewallConfiguration { enabled: boolean; @@ -4377,6 +4420,9 @@ export interface ApplicationGatewayWebApplicationFirewallConfiguration { disabledRuleGroups?: ApplicationGatewayFirewallDisabledRuleGroup[]; requestBodyCheck?: boolean; maxRequestBodySize?: number; + maxRequestBodySizeInKb?: number; + fileUploadLimitInMb?: number; + exclusions?: ApplicationGatewayFirewallExclusion[]; } /** @@ -4464,6 +4510,13 @@ export interface ApplicationGatewayAutoscaleConfiguration { * Whether allow WAF to check request Body. * @member {number} [webApplicationFirewallConfiguration.maxRequestBodySize] * Maxium request body size for WAF. + * @member {number} + * [webApplicationFirewallConfiguration.maxRequestBodySizeInKb] Maxium request + * body size in Kb for WAF. + * @member {number} [webApplicationFirewallConfiguration.fileUploadLimitInMb] + * Maxium file upload size in Mb for WAF. + * @member {array} [webApplicationFirewallConfiguration.exclusions] The + * exclusion list. * @member {boolean} [enableHttp2] Whether HTTP2 is enabled on the application * gateway resource. * @member {boolean} [enableFips] Whether FIPS is enabled on the application @@ -4475,6 +4528,8 @@ export interface ApplicationGatewayAutoscaleConfiguration { * gateway resource. * @member {string} [provisioningState] Provisioning state of the application * gateway resource. Possible values are: 'Updating', 'Deleting', and 'Failed'. + * @member {array} [customErrorConfiguration] Custom error configurations of + * the application gateway resource. * @member {string} [etag] A unique read-only string that changes whenever the * resource is updated. * @member {array} [zones] A list of availability zones denoting where the @@ -4503,6 +4558,7 @@ export interface ApplicationGateway extends Resource { autoscaleConfiguration?: ApplicationGatewayAutoscaleConfiguration; resourceGuid?: string; provisioningState?: string; + customErrorConfiguration?: ApplicationGatewayCustomError[]; etag?: string; zones?: string[]; } @@ -7776,7 +7832,7 @@ export interface ConnectionMonitorQueryResult { /** * @class - * Initializes a new instance of the TrafficQuery class. + * Initializes a new instance of the NetworkConfigurationDiagnosticProfile class. * @constructor * Parameters to compare with network configuration. * @@ -7791,7 +7847,7 @@ export interface ConnectionMonitorQueryResult { * @member {string} destinationPort Traffice destination port. Accepted values * are '*', port (for example, 3389) and port range (for example, 80-100). */ -export interface TrafficQuery { +export interface NetworkConfigurationDiagnosticProfile { direction: string; protocol: string; source: string; @@ -7808,11 +7864,15 @@ export interface TrafficQuery { * @member {string} targetResourceId The ID of the target resource to perform * network configuration diagnostic. Valid options are VM, NetworkInterface, * VMSS/NetworkInterface and Application Gateway. - * @member {array} queries List of traffic queries. + * @member {string} [verbosityLevel] Verbosity level. Accepted values are + * 'Normal', 'Minimum', 'Full'. Possible values include: 'Normal', 'Minimum', + * 'Full' + * @member {array} profiles List of network configuration diagnostic profiles. */ export interface NetworkConfigurationDiagnosticParameters { targetResourceId: string; - queries: TrafficQuery[]; + verbosityLevel?: string; + profiles: NetworkConfigurationDiagnosticProfile[]; } /** @@ -7864,6 +7924,8 @@ export interface NetworkSecurityRulesEvaluationResult { * Results of network security group evaluation. * * @member {string} [networkSecurityGroupId] Network security group ID. + * @member {string} [appliedTo] Resource ID of nic or subnet to which network + * security group is applied. * @member {object} [matchedRule] * @member {string} [matchedRule.ruleName] Name of the matched network security * rule. @@ -7874,6 +7936,7 @@ export interface NetworkSecurityRulesEvaluationResult { */ export interface EvaluatedNetworkSecurityGroup { networkSecurityGroupId?: string; + appliedTo?: string; matchedRule?: MatchedRule; readonly rulesEvaluationResult?: NetworkSecurityRulesEvaluationResult[]; } @@ -7902,17 +7965,17 @@ export interface NetworkSecurityGroupResult { * Network configuration diagnostic result corresponded to provided traffic * query. * - * @member {object} [trafficQuery] - * @member {string} [trafficQuery.direction] The direction of the traffic. - * Accepted values are 'Inbound' and 'Outbound'. Possible values include: - * 'Inbound', 'Outbound' - * @member {string} [trafficQuery.protocol] Protocol to be verified on. - * Accepted values are '*', TCP, UDP. - * @member {string} [trafficQuery.source] Traffic source. Accepted values are - * '*', IP Address/CIDR, Service Tag. - * @member {string} [trafficQuery.destination] Traffic destination. Accepted - * values are: '*', IP Address/CIDR, Service Tag. - * @member {string} [trafficQuery.destinationPort] Traffice destination port. + * @member {object} [profile] + * @member {string} [profile.direction] The direction of the traffic. Accepted + * values are 'Inbound' and 'Outbound'. Possible values include: 'Inbound', + * 'Outbound' + * @member {string} [profile.protocol] Protocol to be verified on. Accepted + * values are '*', TCP, UDP. + * @member {string} [profile.source] Traffic source. Accepted values are '*', + * IP Address/CIDR, Service Tag. + * @member {string} [profile.destination] Traffic destination. Accepted values + * are: '*', IP Address/CIDR, Service Tag. + * @member {string} [profile.destinationPort] Traffice destination port. * Accepted values are '*', port (for example, 3389) and port range (for * example, 80-100). * @member {object} [networkSecurityGroupResult] @@ -7923,7 +7986,7 @@ export interface NetworkSecurityGroupResult { * List of results network security groups diagnostic. */ export interface NetworkConfigurationDiagnosticResult { - trafficQuery?: TrafficQuery; + profile?: NetworkConfigurationDiagnosticProfile; networkSecurityGroupResult?: NetworkSecurityGroupResult; } diff --git a/lib/services/networkManagement2/lib/models/index.js b/lib/services/networkManagement2/lib/models/index.js index e4968ddb8b..2f80e87933 100644 --- a/lib/services/networkManagement2/lib/models/index.js +++ b/lib/services/networkManagement2/lib/models/index.js @@ -64,6 +64,7 @@ exports.ApplicationGatewayTrustedRootCertificate = require('./applicationGateway exports.ApplicationGatewaySslCertificate = require('./applicationGatewaySslCertificate'); exports.ApplicationGatewayFrontendIPConfiguration = require('./applicationGatewayFrontendIPConfiguration'); exports.ApplicationGatewayFrontendPort = require('./applicationGatewayFrontendPort'); +exports.ApplicationGatewayCustomError = require('./applicationGatewayCustomError'); exports.ApplicationGatewayHttpListener = require('./applicationGatewayHttpListener'); exports.ApplicationGatewayPathRule = require('./applicationGatewayPathRule'); exports.ApplicationGatewayProbeHealthResponseMatch = require('./applicationGatewayProbeHealthResponseMatch'); @@ -72,6 +73,7 @@ exports.ApplicationGatewayRequestRoutingRule = require('./applicationGatewayRequ exports.ApplicationGatewayRedirectConfiguration = require('./applicationGatewayRedirectConfiguration'); exports.ApplicationGatewayUrlPathMap = require('./applicationGatewayUrlPathMap'); exports.ApplicationGatewayFirewallDisabledRuleGroup = require('./applicationGatewayFirewallDisabledRuleGroup'); +exports.ApplicationGatewayFirewallExclusion = require('./applicationGatewayFirewallExclusion'); exports.ApplicationGatewayWebApplicationFirewallConfiguration = require('./applicationGatewayWebApplicationFirewallConfiguration'); exports.ApplicationGatewayAutoscaleConfiguration = require('./applicationGatewayAutoscaleConfiguration'); exports.ApplicationGateway = require('./applicationGateway'); @@ -209,7 +211,7 @@ exports.ConnectionMonitor = require('./connectionMonitor'); exports.ConnectionMonitorResult = require('./connectionMonitorResult'); exports.ConnectionStateSnapshot = require('./connectionStateSnapshot'); exports.ConnectionMonitorQueryResult = require('./connectionMonitorQueryResult'); -exports.TrafficQuery = require('./trafficQuery'); +exports.NetworkConfigurationDiagnosticProfile = require('./networkConfigurationDiagnosticProfile'); exports.NetworkConfigurationDiagnosticParameters = require('./networkConfigurationDiagnosticParameters'); exports.MatchedRule = require('./matchedRule'); exports.NetworkSecurityRulesEvaluationResult = require('./networkSecurityRulesEvaluationResult'); diff --git a/lib/services/networkManagement2/lib/models/networkConfigurationDiagnosticParameters.js b/lib/services/networkManagement2/lib/models/networkConfigurationDiagnosticParameters.js index a419c8e1b6..f1ec723e18 100644 --- a/lib/services/networkManagement2/lib/models/networkConfigurationDiagnosticParameters.js +++ b/lib/services/networkManagement2/lib/models/networkConfigurationDiagnosticParameters.js @@ -20,7 +20,11 @@ class NetworkConfigurationDiagnosticParameters { * @member {string} targetResourceId The ID of the target resource to perform * network configuration diagnostic. Valid options are VM, NetworkInterface, * VMSS/NetworkInterface and Application Gateway. - * @member {array} queries List of traffic queries. + * @member {string} [verbosityLevel] Verbosity level. Accepted values are + * 'Normal', 'Minimum', 'Full'. Possible values include: 'Normal', 'Minimum', + * 'Full' + * @member {array} profiles List of network configuration diagnostic + * profiles. */ constructor() { } @@ -46,17 +50,24 @@ class NetworkConfigurationDiagnosticParameters { name: 'String' } }, - queries: { + verbosityLevel: { + required: false, + serializedName: 'verbosityLevel', + type: { + name: 'String' + } + }, + profiles: { required: true, - serializedName: 'queries', + serializedName: 'profiles', type: { name: 'Sequence', element: { required: false, - serializedName: 'TrafficQueryElementType', + serializedName: 'NetworkConfigurationDiagnosticProfileElementType', type: { name: 'Composite', - className: 'TrafficQuery' + className: 'NetworkConfigurationDiagnosticProfile' } } } diff --git a/lib/services/networkManagement2/lib/models/networkConfigurationDiagnosticProfile.js b/lib/services/networkManagement2/lib/models/networkConfigurationDiagnosticProfile.js new file mode 100644 index 0000000000..8933b6defa --- /dev/null +++ b/lib/services/networkManagement2/lib/models/networkConfigurationDiagnosticProfile.js @@ -0,0 +1,91 @@ +/* + * 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'; + +/** + * Parameters to compare with network configuration. + * + */ +class NetworkConfigurationDiagnosticProfile { + /** + * Create a NetworkConfigurationDiagnosticProfile. + * @member {string} direction The direction of the traffic. Accepted values + * are 'Inbound' and 'Outbound'. Possible values include: 'Inbound', + * 'Outbound' + * @member {string} protocol Protocol to be verified on. Accepted values are + * '*', TCP, UDP. + * @member {string} source Traffic source. Accepted values are '*', IP + * Address/CIDR, Service Tag. + * @member {string} destination Traffic destination. Accepted values are: + * '*', IP Address/CIDR, Service Tag. + * @member {string} destinationPort Traffice destination port. Accepted + * values are '*', port (for example, 3389) and port range (for example, + * 80-100). + */ + constructor() { + } + + /** + * Defines the metadata of NetworkConfigurationDiagnosticProfile + * + * @returns {object} metadata of NetworkConfigurationDiagnosticProfile + * + */ + mapper() { + return { + required: false, + serializedName: 'NetworkConfigurationDiagnosticProfile', + type: { + name: 'Composite', + className: 'NetworkConfigurationDiagnosticProfile', + modelProperties: { + direction: { + required: true, + serializedName: 'direction', + type: { + name: 'String' + } + }, + protocol: { + required: true, + serializedName: 'protocol', + type: { + name: 'String' + } + }, + source: { + required: true, + serializedName: 'source', + type: { + name: 'String' + } + }, + destination: { + required: true, + serializedName: 'destination', + type: { + name: 'String' + } + }, + destinationPort: { + required: true, + serializedName: 'destinationPort', + type: { + name: 'String' + } + } + } + } + }; + } +} + +module.exports = NetworkConfigurationDiagnosticProfile; diff --git a/lib/services/networkManagement2/lib/models/networkConfigurationDiagnosticResult.js b/lib/services/networkManagement2/lib/models/networkConfigurationDiagnosticResult.js index c88c3f725e..7eab355840 100644 --- a/lib/services/networkManagement2/lib/models/networkConfigurationDiagnosticResult.js +++ b/lib/services/networkManagement2/lib/models/networkConfigurationDiagnosticResult.js @@ -18,17 +18,17 @@ class NetworkConfigurationDiagnosticResult { /** * Create a NetworkConfigurationDiagnosticResult. - * @member {object} [trafficQuery] - * @member {string} [trafficQuery.direction] The direction of the traffic. + * @member {object} [profile] + * @member {string} [profile.direction] The direction of the traffic. * Accepted values are 'Inbound' and 'Outbound'. Possible values include: * 'Inbound', 'Outbound' - * @member {string} [trafficQuery.protocol] Protocol to be verified on. - * Accepted values are '*', TCP, UDP. - * @member {string} [trafficQuery.source] Traffic source. Accepted values are - * '*', IP Address/CIDR, Service Tag. - * @member {string} [trafficQuery.destination] Traffic destination. Accepted + * @member {string} [profile.protocol] Protocol to be verified on. Accepted + * values are '*', TCP, UDP. + * @member {string} [profile.source] Traffic source. Accepted values are '*', + * IP Address/CIDR, Service Tag. + * @member {string} [profile.destination] Traffic destination. Accepted * values are: '*', IP Address/CIDR, Service Tag. - * @member {string} [trafficQuery.destinationPort] Traffice destination port. + * @member {string} [profile.destinationPort] Traffice destination port. * Accepted values are '*', port (for example, 3389) and port range (for * example, 80-100). * @member {object} [networkSecurityGroupResult] @@ -56,12 +56,12 @@ class NetworkConfigurationDiagnosticResult { name: 'Composite', className: 'NetworkConfigurationDiagnosticResult', modelProperties: { - trafficQuery: { + profile: { required: false, - serializedName: 'trafficQuery', + serializedName: 'profile', type: { name: 'Composite', - className: 'TrafficQuery' + className: 'NetworkConfigurationDiagnosticProfile' } }, networkSecurityGroupResult: { diff --git a/lib/services/networkManagement2/lib/operations/applicationGateways.js b/lib/services/networkManagement2/lib/operations/applicationGateways.js index 167d4e06ec..a0d560e9e9 100644 --- a/lib/services/networkManagement2/lib/operations/applicationGateways.js +++ b/lib/services/networkManagement2/lib/operations/applicationGateways.js @@ -332,6 +332,17 @@ function _get(resourceGroupName, applicationGatewayName, options, callback) { * [parameters.webApplicationFirewallConfiguration.maxRequestBodySize] Maxium * request body size for WAF. * + * @param {number} + * [parameters.webApplicationFirewallConfiguration.maxRequestBodySizeInKb] + * Maxium request body size in Kb for WAF. + * + * @param {number} + * [parameters.webApplicationFirewallConfiguration.fileUploadLimitInMb] Maxium + * file upload size in Mb for WAF. + * + * @param {array} [parameters.webApplicationFirewallConfiguration.exclusions] + * The exclusion list. + * * @param {boolean} [parameters.enableHttp2] Whether HTTP2 is enabled on the * application gateway resource. * @@ -350,6 +361,9 @@ function _get(resourceGroupName, applicationGatewayName, options, callback) { * application gateway resource. Possible values are: 'Updating', 'Deleting', * and 'Failed'. * + * @param {array} [parameters.customErrorConfiguration] Custom error + * configurations of the application gateway resource. + * * @param {string} [parameters.etag] A unique read-only string that changes * whenever the resource is updated. * @@ -1766,6 +1780,17 @@ function _beginDeleteMethod(resourceGroupName, applicationGatewayName, options, * [parameters.webApplicationFirewallConfiguration.maxRequestBodySize] Maxium * request body size for WAF. * + * @param {number} + * [parameters.webApplicationFirewallConfiguration.maxRequestBodySizeInKb] + * Maxium request body size in Kb for WAF. + * + * @param {number} + * [parameters.webApplicationFirewallConfiguration.fileUploadLimitInMb] Maxium + * file upload size in Mb for WAF. + * + * @param {array} [parameters.webApplicationFirewallConfiguration.exclusions] + * The exclusion list. + * * @param {boolean} [parameters.enableHttp2] Whether HTTP2 is enabled on the * application gateway resource. * @@ -1784,6 +1809,9 @@ function _beginDeleteMethod(resourceGroupName, applicationGatewayName, options, * application gateway resource. Possible values are: 'Updating', 'Deleting', * and 'Failed'. * + * @param {array} [parameters.customErrorConfiguration] Custom error + * configurations of the application gateway resource. + * * @param {string} [parameters.etag] A unique read-only string that changes * whenever the resource is updated. * @@ -3235,6 +3263,17 @@ class ApplicationGateways { * [parameters.webApplicationFirewallConfiguration.maxRequestBodySize] Maxium * request body size for WAF. * + * @param {number} + * [parameters.webApplicationFirewallConfiguration.maxRequestBodySizeInKb] + * Maxium request body size in Kb for WAF. + * + * @param {number} + * [parameters.webApplicationFirewallConfiguration.fileUploadLimitInMb] Maxium + * file upload size in Mb for WAF. + * + * @param {array} [parameters.webApplicationFirewallConfiguration.exclusions] + * The exclusion list. + * * @param {boolean} [parameters.enableHttp2] Whether HTTP2 is enabled on the * application gateway resource. * @@ -3253,6 +3292,9 @@ class ApplicationGateways { * application gateway resource. Possible values are: 'Updating', 'Deleting', * and 'Failed'. * + * @param {array} [parameters.customErrorConfiguration] Custom error + * configurations of the application gateway resource. + * * @param {string} [parameters.etag] A unique read-only string that changes * whenever the resource is updated. * @@ -3401,6 +3443,17 @@ class ApplicationGateways { * [parameters.webApplicationFirewallConfiguration.maxRequestBodySize] Maxium * request body size for WAF. * + * @param {number} + * [parameters.webApplicationFirewallConfiguration.maxRequestBodySizeInKb] + * Maxium request body size in Kb for WAF. + * + * @param {number} + * [parameters.webApplicationFirewallConfiguration.fileUploadLimitInMb] Maxium + * file upload size in Mb for WAF. + * + * @param {array} [parameters.webApplicationFirewallConfiguration.exclusions] + * The exclusion list. + * * @param {boolean} [parameters.enableHttp2] Whether HTTP2 is enabled on the * application gateway resource. * @@ -3419,6 +3472,9 @@ class ApplicationGateways { * application gateway resource. Possible values are: 'Updating', 'Deleting', * and 'Failed'. * + * @param {array} [parameters.customErrorConfiguration] Custom error + * configurations of the application gateway resource. + * * @param {string} [parameters.etag] A unique read-only string that changes * whenever the resource is updated. * @@ -4519,6 +4575,17 @@ class ApplicationGateways { * [parameters.webApplicationFirewallConfiguration.maxRequestBodySize] Maxium * request body size for WAF. * + * @param {number} + * [parameters.webApplicationFirewallConfiguration.maxRequestBodySizeInKb] + * Maxium request body size in Kb for WAF. + * + * @param {number} + * [parameters.webApplicationFirewallConfiguration.fileUploadLimitInMb] Maxium + * file upload size in Mb for WAF. + * + * @param {array} [parameters.webApplicationFirewallConfiguration.exclusions] + * The exclusion list. + * * @param {boolean} [parameters.enableHttp2] Whether HTTP2 is enabled on the * application gateway resource. * @@ -4537,6 +4604,9 @@ class ApplicationGateways { * application gateway resource. Possible values are: 'Updating', 'Deleting', * and 'Failed'. * + * @param {array} [parameters.customErrorConfiguration] Custom error + * configurations of the application gateway resource. + * * @param {string} [parameters.etag] A unique read-only string that changes * whenever the resource is updated. * @@ -4685,6 +4755,17 @@ class ApplicationGateways { * [parameters.webApplicationFirewallConfiguration.maxRequestBodySize] Maxium * request body size for WAF. * + * @param {number} + * [parameters.webApplicationFirewallConfiguration.maxRequestBodySizeInKb] + * Maxium request body size in Kb for WAF. + * + * @param {number} + * [parameters.webApplicationFirewallConfiguration.fileUploadLimitInMb] Maxium + * file upload size in Mb for WAF. + * + * @param {array} [parameters.webApplicationFirewallConfiguration.exclusions] + * The exclusion list. + * * @param {boolean} [parameters.enableHttp2] Whether HTTP2 is enabled on the * application gateway resource. * @@ -4703,6 +4784,9 @@ class ApplicationGateways { * application gateway resource. Possible values are: 'Updating', 'Deleting', * and 'Failed'. * + * @param {array} [parameters.customErrorConfiguration] Custom error + * configurations of the application gateway resource. + * * @param {string} [parameters.etag] A unique read-only string that changes * whenever the resource is updated. * diff --git a/lib/services/networkManagement2/lib/operations/index.d.ts b/lib/services/networkManagement2/lib/operations/index.d.ts index daee4f410a..b77d8f842c 100644 --- a/lib/services/networkManagement2/lib/operations/index.d.ts +++ b/lib/services/networkManagement2/lib/operations/index.d.ts @@ -249,6 +249,17 @@ export interface ApplicationGateways { * [parameters.webApplicationFirewallConfiguration.maxRequestBodySize] Maxium * request body size for WAF. * + * @param {number} + * [parameters.webApplicationFirewallConfiguration.maxRequestBodySizeInKb] + * Maxium request body size in Kb for WAF. + * + * @param {number} + * [parameters.webApplicationFirewallConfiguration.fileUploadLimitInMb] Maxium + * file upload size in Mb for WAF. + * + * @param {array} [parameters.webApplicationFirewallConfiguration.exclusions] + * The exclusion list. + * * @param {boolean} [parameters.enableHttp2] Whether HTTP2 is enabled on the * application gateway resource. * @@ -267,6 +278,9 @@ export interface ApplicationGateways { * application gateway resource. Possible values are: 'Updating', 'Deleting', * and 'Failed'. * + * @param {array} [parameters.customErrorConfiguration] Custom error + * configurations of the application gateway resource. + * * @param {string} [parameters.etag] A unique read-only string that changes * whenever the resource is updated. * @@ -403,6 +417,17 @@ export interface ApplicationGateways { * [parameters.webApplicationFirewallConfiguration.maxRequestBodySize] Maxium * request body size for WAF. * + * @param {number} + * [parameters.webApplicationFirewallConfiguration.maxRequestBodySizeInKb] + * Maxium request body size in Kb for WAF. + * + * @param {number} + * [parameters.webApplicationFirewallConfiguration.fileUploadLimitInMb] Maxium + * file upload size in Mb for WAF. + * + * @param {array} [parameters.webApplicationFirewallConfiguration.exclusions] + * The exclusion list. + * * @param {boolean} [parameters.enableHttp2] Whether HTTP2 is enabled on the * application gateway resource. * @@ -421,6 +446,9 @@ export interface ApplicationGateways { * application gateway resource. Possible values are: 'Updating', 'Deleting', * and 'Failed'. * + * @param {array} [parameters.customErrorConfiguration] Custom error + * configurations of the application gateway resource. + * * @param {string} [parameters.etag] A unique read-only string that changes * whenever the resource is updated. * @@ -1209,6 +1237,17 @@ export interface ApplicationGateways { * [parameters.webApplicationFirewallConfiguration.maxRequestBodySize] Maxium * request body size for WAF. * + * @param {number} + * [parameters.webApplicationFirewallConfiguration.maxRequestBodySizeInKb] + * Maxium request body size in Kb for WAF. + * + * @param {number} + * [parameters.webApplicationFirewallConfiguration.fileUploadLimitInMb] Maxium + * file upload size in Mb for WAF. + * + * @param {array} [parameters.webApplicationFirewallConfiguration.exclusions] + * The exclusion list. + * * @param {boolean} [parameters.enableHttp2] Whether HTTP2 is enabled on the * application gateway resource. * @@ -1227,6 +1266,9 @@ export interface ApplicationGateways { * application gateway resource. Possible values are: 'Updating', 'Deleting', * and 'Failed'. * + * @param {array} [parameters.customErrorConfiguration] Custom error + * configurations of the application gateway resource. + * * @param {string} [parameters.etag] A unique read-only string that changes * whenever the resource is updated. * @@ -1363,6 +1405,17 @@ export interface ApplicationGateways { * [parameters.webApplicationFirewallConfiguration.maxRequestBodySize] Maxium * request body size for WAF. * + * @param {number} + * [parameters.webApplicationFirewallConfiguration.maxRequestBodySizeInKb] + * Maxium request body size in Kb for WAF. + * + * @param {number} + * [parameters.webApplicationFirewallConfiguration.fileUploadLimitInMb] Maxium + * file upload size in Mb for WAF. + * + * @param {array} [parameters.webApplicationFirewallConfiguration.exclusions] + * The exclusion list. + * * @param {boolean} [parameters.enableHttp2] Whether HTTP2 is enabled on the * application gateway resource. * @@ -1381,6 +1434,9 @@ export interface ApplicationGateways { * application gateway resource. Possible values are: 'Updating', 'Deleting', * and 'Failed'. * + * @param {array} [parameters.customErrorConfiguration] Custom error + * configurations of the application gateway resource. + * * @param {string} [parameters.etag] A unique read-only string that changes * whenever the resource is updated. * @@ -21799,7 +21855,12 @@ export interface NetworkWatchers { * perform network configuration diagnostic. Valid options are VM, * NetworkInterface, VMSS/NetworkInterface and Application Gateway. * - * @param {array} parameters.queries List of traffic queries. + * @param {string} [parameters.verbosityLevel] Verbosity level. Accepted values + * are 'Normal', 'Minimum', 'Full'. Possible values include: 'Normal', + * 'Minimum', 'Full' + * + * @param {array} parameters.profiles List of network configuration diagnostic + * profiles. * * @param {object} [options] Optional Parameters. * @@ -21828,7 +21889,12 @@ export interface NetworkWatchers { * perform network configuration diagnostic. Valid options are VM, * NetworkInterface, VMSS/NetworkInterface and Application Gateway. * - * @param {array} parameters.queries List of traffic queries. + * @param {string} [parameters.verbosityLevel] Verbosity level. Accepted values + * are 'Normal', 'Minimum', 'Full'. Possible values include: 'Normal', + * 'Minimum', 'Full' + * + * @param {array} parameters.profiles List of network configuration diagnostic + * profiles. * * @param {object} [options] Optional Parameters. * @@ -22928,7 +22994,12 @@ export interface NetworkWatchers { * perform network configuration diagnostic. Valid options are VM, * NetworkInterface, VMSS/NetworkInterface and Application Gateway. * - * @param {array} parameters.queries List of traffic queries. + * @param {string} [parameters.verbosityLevel] Verbosity level. Accepted values + * are 'Normal', 'Minimum', 'Full'. Possible values include: 'Normal', + * 'Minimum', 'Full' + * + * @param {array} parameters.profiles List of network configuration diagnostic + * profiles. * * @param {object} [options] Optional Parameters. * @@ -22957,7 +23028,12 @@ export interface NetworkWatchers { * perform network configuration diagnostic. Valid options are VM, * NetworkInterface, VMSS/NetworkInterface and Application Gateway. * - * @param {array} parameters.queries List of traffic queries. + * @param {string} [parameters.verbosityLevel] Verbosity level. Accepted values + * are 'Normal', 'Minimum', 'Full'. Possible values include: 'Normal', + * 'Minimum', 'Full' + * + * @param {array} parameters.profiles List of network configuration diagnostic + * profiles. * * @param {object} [options] Optional Parameters. * diff --git a/lib/services/networkManagement2/lib/operations/networkWatchers.js b/lib/services/networkManagement2/lib/operations/networkWatchers.js index 6453949064..f8994335d6 100644 --- a/lib/services/networkManagement2/lib/operations/networkWatchers.js +++ b/lib/services/networkManagement2/lib/operations/networkWatchers.js @@ -2023,7 +2023,12 @@ function _listAvailableProviders(resourceGroupName, networkWatcherName, paramete * perform network configuration diagnostic. Valid options are VM, * NetworkInterface, VMSS/NetworkInterface and Application Gateway. * - * @param {array} parameters.queries List of traffic queries. + * @param {string} [parameters.verbosityLevel] Verbosity level. Accepted values + * are 'Normal', 'Minimum', 'Full'. Possible values include: 'Normal', + * 'Minimum', 'Full' + * + * @param {array} parameters.profiles List of network configuration diagnostic + * profiles. * * @param {object} [options] Optional Parameters. * @@ -4220,7 +4225,12 @@ function _beginListAvailableProviders(resourceGroupName, networkWatcherName, par * perform network configuration diagnostic. Valid options are VM, * NetworkInterface, VMSS/NetworkInterface and Application Gateway. * - * @param {array} parameters.queries List of traffic queries. + * @param {string} [parameters.verbosityLevel] Verbosity level. Accepted values + * are 'Normal', 'Minimum', 'Full'. Possible values include: 'Normal', + * 'Minimum', 'Full' + * + * @param {array} parameters.profiles List of network configuration diagnostic + * profiles. * * @param {object} [options] Optional Parameters. * @@ -6364,7 +6374,12 @@ class NetworkWatchers { * perform network configuration diagnostic. Valid options are VM, * NetworkInterface, VMSS/NetworkInterface and Application Gateway. * - * @param {array} parameters.queries List of traffic queries. + * @param {string} [parameters.verbosityLevel] Verbosity level. Accepted values + * are 'Normal', 'Minimum', 'Full'. Possible values include: 'Normal', + * 'Minimum', 'Full' + * + * @param {array} parameters.profiles List of network configuration diagnostic + * profiles. * * @param {object} [options] Optional Parameters. * @@ -6405,7 +6420,12 @@ class NetworkWatchers { * perform network configuration diagnostic. Valid options are VM, * NetworkInterface, VMSS/NetworkInterface and Application Gateway. * - * @param {array} parameters.queries List of traffic queries. + * @param {string} [parameters.verbosityLevel] Verbosity level. Accepted values + * are 'Normal', 'Minimum', 'Full'. Possible values include: 'Normal', + * 'Minimum', 'Full' + * + * @param {array} parameters.profiles List of network configuration diagnostic + * profiles. * * @param {object} [options] Optional Parameters. * @@ -7817,7 +7837,12 @@ class NetworkWatchers { * perform network configuration diagnostic. Valid options are VM, * NetworkInterface, VMSS/NetworkInterface and Application Gateway. * - * @param {array} parameters.queries List of traffic queries. + * @param {string} [parameters.verbosityLevel] Verbosity level. Accepted values + * are 'Normal', 'Minimum', 'Full'. Possible values include: 'Normal', + * 'Minimum', 'Full' + * + * @param {array} parameters.profiles List of network configuration diagnostic + * profiles. * * @param {object} [options] Optional Parameters. * @@ -7858,7 +7883,12 @@ class NetworkWatchers { * perform network configuration diagnostic. Valid options are VM, * NetworkInterface, VMSS/NetworkInterface and Application Gateway. * - * @param {array} parameters.queries List of traffic queries. + * @param {string} [parameters.verbosityLevel] Verbosity level. Accepted values + * are 'Normal', 'Minimum', 'Full'. Possible values include: 'Normal', + * 'Minimum', 'Full' + * + * @param {array} parameters.profiles List of network configuration diagnostic + * profiles. * * @param {object} [options] Optional Parameters. * diff --git a/lib/services/networkManagement2/package.json b/lib/services/networkManagement2/package.json index 0b57d20d2c..34a6124f83 100644 --- a/lib/services/networkManagement2/package.json +++ b/lib/services/networkManagement2/package.json @@ -14,7 +14,7 @@ "license": "MIT", "main": "./lib/networkManagementClient.js", "types": "./lib/networkManagementClient.d.ts", - "homepage": "https://github.com/azure/azure-sdk-for-node/tree/master/lib/services/networkManagement2", + "homepage": "https://github.com/azure/azure-sdk-for-node", "repository": { "type": "git", "url": "https://github.com/azure/azure-sdk-for-node.git"