diff --git a/lib/services/networkManagement2/lib/models/flowLogFormatParameters.js b/lib/services/networkManagement2/lib/models/flowLogFormatParameters.js new file mode 100644 index 0000000000..7364e7131d --- /dev/null +++ b/lib/services/networkManagement2/lib/models/flowLogFormatParameters.js @@ -0,0 +1,63 @@ +/* + * 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 that define the flow log format. + * + */ +class FlowLogFormatParameters { + /** + * Create a FlowLogFormatParameters. + * @member {string} [type] The file type of flow log. Possible values + * include: 'JSON' + * @member {number} [version] The version (revision) of the flow log. Default + * value: 0 . + */ + constructor() { + } + + /** + * Defines the metadata of FlowLogFormatParameters + * + * @returns {object} metadata of FlowLogFormatParameters + * + */ + mapper() { + return { + required: false, + serializedName: 'FlowLogFormatParameters', + type: { + name: 'Composite', + className: 'FlowLogFormatParameters', + modelProperties: { + type: { + required: false, + serializedName: 'type', + type: { + name: 'String' + } + }, + version: { + required: false, + serializedName: 'version', + defaultValue: 0, + type: { + name: 'Number' + } + } + } + } + }; + } +} + +module.exports = FlowLogFormatParameters; diff --git a/lib/services/networkManagement2/lib/models/flowLogInformation.js b/lib/services/networkManagement2/lib/models/flowLogInformation.js index d7161fb690..a3089aecb4 100644 --- a/lib/services/networkManagement2/lib/models/flowLogInformation.js +++ b/lib/services/networkManagement2/lib/models/flowLogInformation.js @@ -28,6 +28,10 @@ class FlowLogInformation { * records. * @member {boolean} [retentionPolicy.enabled] Flag to enable/disable * retention. + * @member {object} [format] + * @member {string} [format.type] The file type of flow log. Possible values + * include: 'JSON' + * @member {number} [format.version] The version (revision) of the flow log. * @member {object} [flowAnalyticsConfiguration] * @member {object} * [flowAnalyticsConfiguration.networkWatcherFlowAnalyticsConfiguration] @@ -90,6 +94,14 @@ class FlowLogInformation { className: 'RetentionPolicyParameters' } }, + format: { + required: false, + serializedName: 'properties.format', + type: { + name: 'Composite', + className: 'FlowLogFormatParameters' + } + }, flowAnalyticsConfiguration: { required: false, serializedName: 'flowAnalyticsConfiguration', diff --git a/lib/services/networkManagement2/lib/models/index.d.ts b/lib/services/networkManagement2/lib/models/index.d.ts index 614594424a..dc5f4e40ee 100644 --- a/lib/services/networkManagement2/lib/models/index.d.ts +++ b/lib/services/networkManagement2/lib/models/index.d.ts @@ -7323,6 +7323,22 @@ export interface RetentionPolicyParameters { enabled?: boolean; } +/** + * @class + * Initializes a new instance of the FlowLogFormatParameters class. + * @constructor + * Parameters that define the flow log format. + * + * @member {string} [type] The file type of flow log. Possible values include: + * 'JSON' + * @member {number} [version] The version (revision) of the flow log. Default + * value: 0 . + */ +export interface FlowLogFormatParameters { + type?: string; + version?: number; +} + /** * @class * Initializes a new instance of the FlowLogStatusParameters class. @@ -7393,6 +7409,10 @@ export interface TrafficAnalyticsProperties { * records. * @member {boolean} [retentionPolicy.enabled] Flag to enable/disable * retention. + * @member {object} [format] + * @member {string} [format.type] The file type of flow log. Possible values + * include: 'JSON' + * @member {number} [format.version] The version (revision) of the flow log. * @member {object} [flowAnalyticsConfiguration] * @member {object} * [flowAnalyticsConfiguration.networkWatcherFlowAnalyticsConfiguration] @@ -7414,6 +7434,7 @@ export interface FlowLogInformation { storageId: string; enabled: boolean; retentionPolicy?: RetentionPolicyParameters; + format?: FlowLogFormatParameters; flowAnalyticsConfiguration?: TrafficAnalyticsProperties; } diff --git a/lib/services/networkManagement2/lib/models/index.js b/lib/services/networkManagement2/lib/models/index.js index db5eceb082..eb46cbe593 100644 --- a/lib/services/networkManagement2/lib/models/index.js +++ b/lib/services/networkManagement2/lib/models/index.js @@ -185,6 +185,7 @@ exports.TroubleshootingRecommendedActions = require('./troubleshootingRecommende exports.TroubleshootingDetails = require('./troubleshootingDetails'); exports.TroubleshootingResult = require('./troubleshootingResult'); exports.RetentionPolicyParameters = require('./retentionPolicyParameters'); +exports.FlowLogFormatParameters = require('./flowLogFormatParameters'); exports.FlowLogStatusParameters = require('./flowLogStatusParameters'); exports.TrafficAnalyticsConfigurationProperties = require('./trafficAnalyticsConfigurationProperties'); exports.TrafficAnalyticsProperties = require('./trafficAnalyticsProperties'); diff --git a/lib/services/networkManagement2/lib/operations/index.d.ts b/lib/services/networkManagement2/lib/operations/index.d.ts index 7386f3d097..79d8a56aac 100644 --- a/lib/services/networkManagement2/lib/operations/index.d.ts +++ b/lib/services/networkManagement2/lib/operations/index.d.ts @@ -22696,6 +22696,14 @@ export interface NetworkWatchers { * @param {boolean} [parameters.retentionPolicy.enabled] Flag to enable/disable * retention. * + * @param {object} [parameters.format] + * + * @param {string} [parameters.format.type] The file type of flow log. Possible + * values include: 'JSON' + * + * @param {number} [parameters.format.version] The version (revision) of the + * flow log. + * * @param {object} [parameters.flowAnalyticsConfiguration] * * @param {object} @@ -22758,6 +22766,14 @@ export interface NetworkWatchers { * @param {boolean} [parameters.retentionPolicy.enabled] Flag to enable/disable * retention. * + * @param {object} [parameters.format] + * + * @param {string} [parameters.format.type] The file type of flow log. Possible + * values include: 'JSON' + * + * @param {number} [parameters.format.version] The version (revision) of the + * flow log. + * * @param {object} [parameters.flowAnalyticsConfiguration] * * @param {object} @@ -23835,6 +23851,14 @@ export interface NetworkWatchers { * @param {boolean} [parameters.retentionPolicy.enabled] Flag to enable/disable * retention. * + * @param {object} [parameters.format] + * + * @param {string} [parameters.format.type] The file type of flow log. Possible + * values include: 'JSON' + * + * @param {number} [parameters.format.version] The version (revision) of the + * flow log. + * * @param {object} [parameters.flowAnalyticsConfiguration] * * @param {object} @@ -23897,6 +23921,14 @@ export interface NetworkWatchers { * @param {boolean} [parameters.retentionPolicy.enabled] Flag to enable/disable * retention. * + * @param {object} [parameters.format] + * + * @param {string} [parameters.format.type] The file type of flow log. Possible + * values include: 'JSON' + * + * @param {number} [parameters.format.version] The version (revision) of the + * flow log. + * * @param {object} [parameters.flowAnalyticsConfiguration] * * @param {object} diff --git a/lib/services/networkManagement2/lib/operations/networkWatchers.js b/lib/services/networkManagement2/lib/operations/networkWatchers.js index 5b0bb50952..0b7a4cdf67 100644 --- a/lib/services/networkManagement2/lib/operations/networkWatchers.js +++ b/lib/services/networkManagement2/lib/operations/networkWatchers.js @@ -1513,6 +1513,14 @@ function _getTroubleshootingResult(resourceGroupName, networkWatcherName, parame * @param {boolean} [parameters.retentionPolicy.enabled] Flag to enable/disable * retention. * + * @param {object} [parameters.format] + * + * @param {string} [parameters.format.type] The file type of flow log. Possible + * values include: 'JSON' + * + * @param {number} [parameters.format.version] The version (revision) of the + * flow log. + * * @param {object} [parameters.flowAnalyticsConfiguration] * * @param {object} @@ -3215,6 +3223,14 @@ function _beginGetTroubleshootingResult(resourceGroupName, networkWatcherName, p * @param {boolean} [parameters.retentionPolicy.enabled] Flag to enable/disable * retention. * + * @param {object} [parameters.format] + * + * @param {string} [parameters.format.type] The file type of flow log. Possible + * values include: 'JSON' + * + * @param {number} [parameters.format.version] The version (revision) of the + * flow log. + * * @param {object} [parameters.flowAnalyticsConfiguration] * * @param {object} @@ -5693,6 +5709,14 @@ class NetworkWatchers { * @param {boolean} [parameters.retentionPolicy.enabled] Flag to enable/disable * retention. * + * @param {object} [parameters.format] + * + * @param {string} [parameters.format.type] The file type of flow log. Possible + * values include: 'JSON' + * + * @param {number} [parameters.format.version] The version (revision) of the + * flow log. + * * @param {object} [parameters.flowAnalyticsConfiguration] * * @param {object} @@ -5767,6 +5791,14 @@ class NetworkWatchers { * @param {boolean} [parameters.retentionPolicy.enabled] Flag to enable/disable * retention. * + * @param {object} [parameters.format] + * + * @param {string} [parameters.format.type] The file type of flow log. Possible + * values include: 'JSON' + * + * @param {number} [parameters.format.version] The version (revision) of the + * flow log. + * * @param {object} [parameters.flowAnalyticsConfiguration] * * @param {object} @@ -7156,6 +7188,14 @@ class NetworkWatchers { * @param {boolean} [parameters.retentionPolicy.enabled] Flag to enable/disable * retention. * + * @param {object} [parameters.format] + * + * @param {string} [parameters.format.type] The file type of flow log. Possible + * values include: 'JSON' + * + * @param {number} [parameters.format.version] The version (revision) of the + * flow log. + * * @param {object} [parameters.flowAnalyticsConfiguration] * * @param {object} @@ -7230,6 +7270,14 @@ class NetworkWatchers { * @param {boolean} [parameters.retentionPolicy.enabled] Flag to enable/disable * retention. * + * @param {object} [parameters.format] + * + * @param {string} [parameters.format.type] The file type of flow log. Possible + * values include: 'JSON' + * + * @param {number} [parameters.format.version] The version (revision) of the + * flow log. + * * @param {object} [parameters.flowAnalyticsConfiguration] * * @param {object}