Skip to content
This repository was archived by the owner on May 5, 2023. It is now read-only.
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
@@ -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;
12 changes: 12 additions & 0 deletions lib/services/networkManagement2/lib/models/flowLogInformation.js
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down Expand Up @@ -90,6 +94,14 @@ class FlowLogInformation {
className: 'RetentionPolicyParameters'
}
},
format: {
required: false,
serializedName: 'properties.format',
type: {
name: 'Composite',
className: 'FlowLogFormatParameters'
}
},
flowAnalyticsConfiguration: {
required: false,
serializedName: 'flowAnalyticsConfiguration',
Expand Down
21 changes: 21 additions & 0 deletions lib/services/networkManagement2/lib/models/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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]
Expand All @@ -7414,6 +7434,7 @@ export interface FlowLogInformation {
storageId: string;
enabled: boolean;
retentionPolicy?: RetentionPolicyParameters;
format?: FlowLogFormatParameters;
flowAnalyticsConfiguration?: TrafficAnalyticsProperties;
}

Expand Down
1 change: 1 addition & 0 deletions lib/services/networkManagement2/lib/models/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
32 changes: 32 additions & 0 deletions lib/services/networkManagement2/lib/operations/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down Expand Up @@ -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}
Expand Down Expand Up @@ -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}
Expand Down Expand Up @@ -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}
Expand Down
48 changes: 48 additions & 0 deletions lib/services/networkManagement2/lib/operations/networkWatchers.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down Expand Up @@ -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}
Expand Down Expand Up @@ -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}
Expand Down Expand Up @@ -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}
Expand Down Expand Up @@ -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}
Expand Down Expand Up @@ -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}
Expand Down