Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
anton-evseev committed Aug 30, 2019
1 parent db4d87f commit b194174
Showing 1 changed file with 3 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@

namespace Microsoft.Azure.Management.Network.Models
{
using Microsoft.Rest;
using Newtonsoft.Json;
using System.Linq;

Expand Down Expand Up @@ -43,7 +42,7 @@ public TrafficAnalyticsConfigurationProperties()
/// <param name="trafficAnalyticsInterval">The interval in minutes
/// which would decide how frequently TA service should do flow
/// analytics.</param>
public TrafficAnalyticsConfigurationProperties(bool enabled, string workspaceId, string workspaceRegion, string workspaceResourceId, int? trafficAnalyticsInterval = default(int?))
public TrafficAnalyticsConfigurationProperties(bool enabled, string workspaceId = default(string), string workspaceRegion = default(string), string workspaceResourceId = default(string), int? trafficAnalyticsInterval = default(int?))
{
Enabled = enabled;
WorkspaceId = workspaceId;
Expand Down Expand Up @@ -92,23 +91,12 @@ public TrafficAnalyticsConfigurationProperties()
/// <summary>
/// Validate the object.
/// </summary>
/// <exception cref="ValidationException">
/// <exception cref="Rest.ValidationException">
/// Thrown if validation fails
/// </exception>
public virtual void Validate()
{
if (WorkspaceId == null)
{
throw new ValidationException(ValidationRules.CannotBeNull, "WorkspaceId");
}
if (WorkspaceRegion == null)
{
throw new ValidationException(ValidationRules.CannotBeNull, "WorkspaceRegion");
}
if (WorkspaceResourceId == null)
{
throw new ValidationException(ValidationRules.CannotBeNull, "WorkspaceResourceId");
}
//Nothing to validate
}
}
}

0 comments on commit b194174

Please sign in to comment.