Skip to content

Commit

Permalink
Reapply "Generated flowlogs related files"
Browse files Browse the repository at this point in the history
This reverts commit 0b7db60.
  • Loading branch information
Mansi Verma committed Jul 30, 2024
1 parent 73ac913 commit b17598d
Show file tree
Hide file tree
Showing 4 changed files with 63 additions and 4 deletions.
16 changes: 15 additions & 1 deletion src/Network/Network.Management.Sdk/Generated/Models/FlowLog.cs
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,11 @@ public FlowLog()
/// <param name="storageId">ID of the storage account which is used to store the flow log.
/// </param>

/// <param name="enabledFilteringCriteria">Optional field to filter network traffic logs based on SrcIP, SrcPort,
/// DstIP, DstPort, Protocol, Encryption, Direction and Action. If not
/// specified, all network traffic will be logged.
/// </param>

/// <param name="enabled">Flag to enable/disable flow logging.
/// </param>

Expand All @@ -69,7 +74,7 @@ public FlowLog()

/// <param name="flowAnalyticsConfiguration">Parameters that define the configuration of traffic analytics.
/// </param>
public FlowLog(string id = default(string), string name = default(string), string type = default(string), string location = default(string), System.Collections.Generic.IDictionary<string, string> tags = default(System.Collections.Generic.IDictionary<string, string>), string etag = default(string), ManagedServiceIdentity identity = default(ManagedServiceIdentity), string provisioningState = default(string), string targetResourceId = default(string), string targetResourceGuid = default(string), string storageId = default(string), bool? enabled = default(bool?), RetentionPolicyParameters retentionPolicy = default(RetentionPolicyParameters), FlowLogFormatParameters format = default(FlowLogFormatParameters), TrafficAnalyticsProperties flowAnalyticsConfiguration = default(TrafficAnalyticsProperties))
public FlowLog(string id = default(string), string name = default(string), string type = default(string), string location = default(string), System.Collections.Generic.IDictionary<string, string> tags = default(System.Collections.Generic.IDictionary<string, string>), string etag = default(string), ManagedServiceIdentity identity = default(ManagedServiceIdentity), string provisioningState = default(string), string targetResourceId = default(string), string targetResourceGuid = default(string), string storageId = default(string), string enabledFilteringCriteria = default(string), bool? enabled = default(bool?), RetentionPolicyParameters retentionPolicy = default(RetentionPolicyParameters), FlowLogFormatParameters format = default(FlowLogFormatParameters), TrafficAnalyticsProperties flowAnalyticsConfiguration = default(TrafficAnalyticsProperties))

: base(id, name, type, location, tags)
{
Expand All @@ -79,6 +84,7 @@ public FlowLog()
this.TargetResourceId = targetResourceId;
this.TargetResourceGuid = targetResourceGuid;
this.StorageId = storageId;
this.EnabledFilteringCriteria = enabledFilteringCriteria;
this.Enabled = enabled;
this.RetentionPolicy = retentionPolicy;
this.Format = format;
Expand Down Expand Up @@ -130,6 +136,14 @@ public FlowLog()
[Newtonsoft.Json.JsonProperty(PropertyName = "properties.storageId")]
public string StorageId {get; set; }

/// <summary>
/// Gets or sets optional field to filter network traffic logs based on SrcIP,
/// SrcPort, DstIP, DstPort, Protocol, Encryption, Direction and Action. If not
/// specified, all network traffic will be logged.
/// </summary>
[Newtonsoft.Json.JsonProperty(PropertyName = "properties.enabledFilteringCriteria")]
public string EnabledFilteringCriteria {get; set; }

/// <summary>
/// Gets or sets flag to enable/disable flow logging.
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,11 @@ public FlowLogInformation()
/// <param name="storageId">ID of the storage account which is used to store the flow log.
/// </param>

/// <param name="enabledFilteringCriteria">Optional field to filter network traffic logs based on SrcIP, SrcPort,
/// DstIP, DstPort, Protocol, Encryption, Direction and Action. If not
/// specified, all network traffic will be logged.
/// </param>

/// <param name="enabled">Flag to enable/disable flow logging.
/// </param>

Expand All @@ -47,13 +52,14 @@ public FlowLogInformation()

/// <param name="format">Parameters that define the flow log format.
/// </param>
public FlowLogInformation(string targetResourceId, string storageId, bool enabled, TrafficAnalyticsProperties flowAnalyticsConfiguration = default(TrafficAnalyticsProperties), ManagedServiceIdentity identity = default(ManagedServiceIdentity), RetentionPolicyParameters retentionPolicy = default(RetentionPolicyParameters), FlowLogFormatParameters format = default(FlowLogFormatParameters))
public FlowLogInformation(string targetResourceId, string storageId, bool enabled, TrafficAnalyticsProperties flowAnalyticsConfiguration = default(TrafficAnalyticsProperties), ManagedServiceIdentity identity = default(ManagedServiceIdentity), string enabledFilteringCriteria = default(string), RetentionPolicyParameters retentionPolicy = default(RetentionPolicyParameters), FlowLogFormatParameters format = default(FlowLogFormatParameters))

{
this.TargetResourceId = targetResourceId;
this.FlowAnalyticsConfiguration = flowAnalyticsConfiguration;
this.Identity = identity;
this.StorageId = storageId;
this.EnabledFilteringCriteria = enabledFilteringCriteria;
this.Enabled = enabled;
this.RetentionPolicy = retentionPolicy;
this.Format = format;
Expand Down Expand Up @@ -91,6 +97,14 @@ public FlowLogInformation()
[Newtonsoft.Json.JsonProperty(PropertyName = "properties.storageId")]
public string StorageId {get; set; }

/// <summary>
/// Gets or sets optional field to filter network traffic logs based on SrcIP,
/// SrcPort, DstIP, DstPort, Protocol, Encryption, Direction and Action. If not
/// specified, all network traffic will be logged.
/// </summary>
[Newtonsoft.Json.JsonProperty(PropertyName = "properties.enabledFilteringCriteria")]
public string EnabledFilteringCriteria {get; set; }

/// <summary>
/// Gets or sets flag to enable/disable flow logging.
/// </summary>
Expand Down Expand Up @@ -130,6 +144,7 @@ public virtual void Validate()




}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,11 @@ public FlowLogProperties()
/// <param name="storageId">ID of the storage account which is used to store the flow log.
/// </param>

/// <param name="enabledFilteringCriteria">Optional field to filter network traffic logs based on SrcIP, SrcPort,
/// DstIP, DstPort, Protocol, Encryption, Direction and Action. If not
/// specified, all network traffic will be logged.
/// </param>

/// <param name="enabled">Flag to enable/disable flow logging.
/// </param>

Expand All @@ -35,10 +40,11 @@ public FlowLogProperties()

/// <param name="format">Parameters that define the flow log format.
/// </param>
public FlowLogProperties(string storageId, bool enabled, RetentionPolicyParameters retentionPolicy = default(RetentionPolicyParameters), FlowLogFormatParameters format = default(FlowLogFormatParameters))
public FlowLogProperties(string storageId, bool enabled, string enabledFilteringCriteria = default(string), RetentionPolicyParameters retentionPolicy = default(RetentionPolicyParameters), FlowLogFormatParameters format = default(FlowLogFormatParameters))

{
this.StorageId = storageId;
this.EnabledFilteringCriteria = enabledFilteringCriteria;
this.Enabled = enabled;
this.RetentionPolicy = retentionPolicy;
this.Format = format;
Expand All @@ -57,6 +63,14 @@ public FlowLogProperties()
[Newtonsoft.Json.JsonProperty(PropertyName = "storageId")]
public string StorageId {get; set; }

/// <summary>
/// Gets or sets optional field to filter network traffic logs based on SrcIP,
/// SrcPort, DstIP, DstPort, Protocol, Encryption, Direction and Action. If not
/// specified, all network traffic will be logged.
/// </summary>
[Newtonsoft.Json.JsonProperty(PropertyName = "enabledFilteringCriteria")]
public string EnabledFilteringCriteria {get; set; }

/// <summary>
/// Gets or sets flag to enable/disable flow logging.
/// </summary>
Expand Down Expand Up @@ -89,6 +103,7 @@ public virtual void Validate()




}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,11 @@ public FlowLogPropertiesFormat()
/// <param name="storageId">ID of the storage account which is used to store the flow log.
/// </param>

/// <param name="enabledFilteringCriteria">Optional field to filter network traffic logs based on SrcIP, SrcPort,
/// DstIP, DstPort, Protocol, Encryption, Direction and Action. If not
/// specified, all network traffic will be logged.
/// </param>

/// <param name="enabled">Flag to enable/disable flow logging.
/// </param>

Expand All @@ -47,12 +52,13 @@ public FlowLogPropertiesFormat()

/// <param name="provisioningState">The provisioning state of the flow log.
/// Possible values include: &#39;Succeeded&#39;, &#39;Updating&#39;, &#39;Deleting&#39;, &#39;Failed&#39;</param>
public FlowLogPropertiesFormat(string targetResourceId, string storageId, string targetResourceGuid = default(string), bool? enabled = default(bool?), RetentionPolicyParameters retentionPolicy = default(RetentionPolicyParameters), FlowLogFormatParameters format = default(FlowLogFormatParameters), TrafficAnalyticsProperties flowAnalyticsConfiguration = default(TrafficAnalyticsProperties), string provisioningState = default(string))
public FlowLogPropertiesFormat(string targetResourceId, string storageId, string targetResourceGuid = default(string), string enabledFilteringCriteria = default(string), bool? enabled = default(bool?), RetentionPolicyParameters retentionPolicy = default(RetentionPolicyParameters), FlowLogFormatParameters format = default(FlowLogFormatParameters), TrafficAnalyticsProperties flowAnalyticsConfiguration = default(TrafficAnalyticsProperties), string provisioningState = default(string))

{
this.TargetResourceId = targetResourceId;
this.TargetResourceGuid = targetResourceGuid;
this.StorageId = storageId;
this.EnabledFilteringCriteria = enabledFilteringCriteria;
this.Enabled = enabled;
this.RetentionPolicy = retentionPolicy;
this.Format = format;
Expand Down Expand Up @@ -86,6 +92,14 @@ public FlowLogPropertiesFormat()
[Newtonsoft.Json.JsonProperty(PropertyName = "storageId")]
public string StorageId {get; set; }

/// <summary>
/// Gets or sets optional field to filter network traffic logs based on SrcIP,
/// SrcPort, DstIP, DstPort, Protocol, Encryption, Direction and Action. If not
/// specified, all network traffic will be logged.
/// </summary>
[Newtonsoft.Json.JsonProperty(PropertyName = "enabledFilteringCriteria")]
public string EnabledFilteringCriteria {get; set; }

/// <summary>
/// Gets or sets flag to enable/disable flow logging.
/// </summary>
Expand Down Expand Up @@ -138,6 +152,7 @@ public virtual void Validate()




}
}
}

0 comments on commit b17598d

Please sign in to comment.