Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AutoPR network/resource-manager] [Networkwatcer] add FlowLogFormatParameters #375

Closed
Closed
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
38 changes: 38 additions & 0 deletions packages/@azure/arm-network/lib/models/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6304,6 +6304,25 @@ export interface RetentionPolicyParameters {
enabled?: boolean;
}

/**
* @interface
* An interface representing FlowLogFormatParameters.
* Parameters that define the flow log format.
*
*/
export interface FlowLogFormatParameters {
/**
* @member {FlowLogFormatType} [type] The file type of flow log. Possible
* values include: 'JSON'
*/
type?: FlowLogFormatType;
/**
* @member {number} [version] The version (revision) of the flow log. Default
* value: 0 .
*/
version?: number;
}

/**
* @interface
* An interface representing FlowLogStatusParameters.
Expand Down Expand Up @@ -6384,6 +6403,10 @@ export interface FlowLogInformation {
* @member {RetentionPolicyParameters} [retentionPolicy]
*/
retentionPolicy?: RetentionPolicyParameters;
/**
* @member {FlowLogFormatParameters} [format]
*/
format?: FlowLogFormatParameters;
/**
* @member {TrafficAnalyticsProperties} [flowAnalyticsConfiguration]
*/
Expand Down Expand Up @@ -12055,6 +12078,21 @@ export enum PcError {
StorageFailed = 'StorageFailed',
}

/**
* Defines values for FlowLogFormatType.
* Possible values include: 'JSON'
* There could be more values for this enum apart from the ones defined here.If
* you want to set a value that is not from the known values then you can do
* the following:
* let param: FlowLogFormatType =
* <FlowLogFormatType>"someUnknownValueThatWillStillBeValid";
* @readonly
* @enum {string}
*/
export enum FlowLogFormatType {
JSON = 'JSON',
}

/**
* Defines values for Protocol.
* Possible values include: 'Tcp', 'Http', 'Https', 'Icmp'
Expand Down
30 changes: 30 additions & 0 deletions packages/@azure/arm-network/lib/models/mappers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8411,6 +8411,29 @@ export const RetentionPolicyParameters: msRest.CompositeMapper = {
}
};

export const FlowLogFormatParameters: msRest.CompositeMapper = {
serializedName: "FlowLogFormatParameters",
type: {
name: "Composite",
className: "FlowLogFormatParameters",
modelProperties: {
type: {
serializedName: "type",
type: {
name: "String"
}
},
version: {
serializedName: "version",
defaultValue: 0,
type: {
name: "Number"
}
}
}
}
};

export const FlowLogStatusParameters: msRest.CompositeMapper = {
serializedName: "FlowLogStatusParameters",
type: {
Expand Down Expand Up @@ -8518,6 +8541,13 @@ export const FlowLogInformation: msRest.CompositeMapper = {
className: "RetentionPolicyParameters"
}
},
format: {
serializedName: "properties.format",
type: {
name: "Composite",
className: "FlowLogFormatParameters"
}
},
flowAnalyticsConfiguration: {
serializedName: "flowAnalyticsConfiguration",
type: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ export {
QueryTroubleshootingParameters,
FlowLogInformation,
RetentionPolicyParameters,
FlowLogFormatParameters,
TrafficAnalyticsProperties,
TrafficAnalyticsConfigurationProperties,
FlowLogStatusParameters,
Expand Down