Skip to content

Commit

Permalink
Readme file changes for Routing and NSG
Browse files Browse the repository at this point in the history
  • Loading branch information
ankursood23 committed Aug 13, 2024
1 parent 7a86a5c commit 0ae18ff
Show file tree
Hide file tree
Showing 11 changed files with 428 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
// 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.

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

/// <summary>
/// Defines an application gateway for containers reference.
/// </summary>
public partial class ApplicationGatewayForContainersReferenceDefinition
{
/// <summary>
/// Initializes a new instance of the ApplicationGatewayForContainersReferenceDefinition class.
/// </summary>
public ApplicationGatewayForContainersReferenceDefinition()
{
CustomInit();
}

/// <summary>
/// Initializes a new instance of the ApplicationGatewayForContainersReferenceDefinition class.
/// </summary>

/// <param name="id">Resource Id of the application gateway for containers.
/// </param>
public ApplicationGatewayForContainersReferenceDefinition(string id)

{
this.Id = id;
CustomInit();
}

/// <summary>
/// An initialization method that performs custom operations like setting defaults
/// </summary>
partial void CustomInit();


/// <summary>
/// Gets or sets resource Id of the application gateway for containers.
/// </summary>
[Newtonsoft.Json.JsonProperty(PropertyName = "id")]
public string Id {get; set; }
/// <summary>
/// Validate the object.
/// </summary>
/// <exception cref="Microsoft.Rest.ValidationException">
/// Thrown if validation fails
/// </exception>
public virtual void Validate()
{
if (this.Id == null)
{
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "Id");
}

}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
// 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.

namespace Microsoft.Azure.Management.Network.Models
{

/// <summary>
/// Defines values for ApplicationGatewayWafRuleSensitivityTypes.
/// </summary>


public static class ApplicationGatewayWafRuleSensitivityTypes
{
public const string None = "None";
public const string Low = "Low";
public const string Medium = "Medium";
public const string High = "High";
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
// 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.

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

/// <summary>
/// Azure Firewall Autoscale Configuration parameters.
/// </summary>
public partial class AzureFirewallAutoscaleConfiguration
{
/// <summary>
/// Initializes a new instance of the AzureFirewallAutoscaleConfiguration class.
/// </summary>
public AzureFirewallAutoscaleConfiguration()
{
CustomInit();
}

/// <summary>
/// Initializes a new instance of the AzureFirewallAutoscaleConfiguration class.
/// </summary>

/// <param name="minCapacity">The minimum number of capacity units for this azure firewall. Use null to
/// reset the value to the service default.
/// </param>

/// <param name="maxCapacity">The maximum number of capacity units for this azure firewall. Use null to
/// reset the value to the service default.
/// </param>
public AzureFirewallAutoscaleConfiguration(int? minCapacity = default(int?), int? maxCapacity = default(int?))

{
this.MinCapacity = minCapacity;
this.MaxCapacity = maxCapacity;
CustomInit();
}

/// <summary>
/// An initialization method that performs custom operations like setting defaults
/// </summary>
partial void CustomInit();


/// <summary>
/// Gets or sets the minimum number of capacity units for this azure firewall.
/// Use null to reset the value to the service default.
/// </summary>
[Newtonsoft.Json.JsonProperty(PropertyName = "minCapacity")]
public int? MinCapacity {get; set; }

/// <summary>
/// Gets or sets the maximum number of capacity units for this azure firewall.
/// Use null to reset the value to the service default.
/// </summary>
[Newtonsoft.Json.JsonProperty(PropertyName = "maxCapacity")]
public int? MaxCapacity {get; set; }
/// <summary>
/// Validate the object.
/// </summary>
/// <exception cref="Microsoft.Rest.ValidationException">
/// Thrown if validation fails
/// </exception>
public virtual void Validate()
{
if (this.MinCapacity != null)
{
if (this.MinCapacity < 2)
{
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.InclusiveMinimum, "MinCapacity", 2);
}
}
if (this.MaxCapacity != null)
{
if (this.MaxCapacity < 2)
{
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.InclusiveMinimum, "MaxCapacity", 2);
}
}
}
}
}
135 changes: 135 additions & 0 deletions src/Network/Network.Management.Sdk/Generated/Models/ExceptionEntry.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,135 @@
// 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.

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

/// <summary>
/// Adds exception to allow a request when the condition is satisfied.
/// </summary>
public partial class ExceptionEntry
{
/// <summary>
/// Initializes a new instance of the ExceptionEntry class.
/// </summary>
public ExceptionEntry()
{
CustomInit();
}

/// <summary>
/// Initializes a new instance of the ExceptionEntry class.
/// </summary>

/// <param name="matchVariable">The variable on which we evaluate the exception condition
/// Possible values include: &#39;RequestURI&#39;, &#39;RemoteAddr&#39;, &#39;RequestHeader&#39;</param>

/// <param name="values">Allowed values for the matchVariable
/// </param>

/// <param name="valueMatchOperator">Operates on the allowed values for the matchVariable
/// Possible values include: &#39;Equals&#39;, &#39;Contains&#39;, &#39;StartsWith&#39;, &#39;EndsWith&#39;,
/// &#39;IPMatch&#39;</param>

/// <param name="selectorMatchOperator">When the matchVariable points to a key-value pair (e.g, RequestHeader),
/// this operates on the selector
/// Possible values include: &#39;Equals&#39;, &#39;Contains&#39;, &#39;StartsWith&#39;, &#39;EndsWith&#39;</param>

/// <param name="selector">When the matchVariable points to a key-value pair (e.g, RequestHeader),
/// this identifies the key.
/// </param>

/// <param name="exceptionManagedRuleSets">The managed rule sets that are associated with the exception.
/// </param>
public ExceptionEntry(string matchVariable, string valueMatchOperator, System.Collections.Generic.IList<string> values = default(System.Collections.Generic.IList<string>), string selectorMatchOperator = default(string), string selector = default(string), System.Collections.Generic.IList<ExclusionManagedRuleSet> exceptionManagedRuleSets = default(System.Collections.Generic.IList<ExclusionManagedRuleSet>))

{
this.MatchVariable = matchVariable;
this.Values = values;
this.ValueMatchOperator = valueMatchOperator;
this.SelectorMatchOperator = selectorMatchOperator;
this.Selector = selector;
this.ExceptionManagedRuleSets = exceptionManagedRuleSets;
CustomInit();
}

/// <summary>
/// An initialization method that performs custom operations like setting defaults
/// </summary>
partial void CustomInit();


/// <summary>
/// Gets or sets the variable on which we evaluate the exception condition Possible values include: &#39;RequestURI&#39;, &#39;RemoteAddr&#39;, &#39;RequestHeader&#39;
/// </summary>
[Newtonsoft.Json.JsonProperty(PropertyName = "matchVariable")]
public string MatchVariable {get; set; }

/// <summary>
/// Gets or sets allowed values for the matchVariable
/// </summary>
[Newtonsoft.Json.JsonProperty(PropertyName = "values")]
public System.Collections.Generic.IList<string> Values {get; set; }

/// <summary>
/// Gets or sets operates on the allowed values for the matchVariable Possible values include: &#39;Equals&#39;, &#39;Contains&#39;, &#39;StartsWith&#39;, &#39;EndsWith&#39;, &#39;IPMatch&#39;
/// </summary>
[Newtonsoft.Json.JsonProperty(PropertyName = "valueMatchOperator")]
public string ValueMatchOperator {get; set; }

/// <summary>
/// Gets or sets when the matchVariable points to a key-value pair (e.g,
/// RequestHeader), this operates on the selector Possible values include: &#39;Equals&#39;, &#39;Contains&#39;, &#39;StartsWith&#39;, &#39;EndsWith&#39;
/// </summary>
[Newtonsoft.Json.JsonProperty(PropertyName = "selectorMatchOperator")]
public string SelectorMatchOperator {get; set; }

/// <summary>
/// Gets or sets when the matchVariable points to a key-value pair (e.g,
/// RequestHeader), this identifies the key.
/// </summary>
[Newtonsoft.Json.JsonProperty(PropertyName = "selector")]
public string Selector {get; set; }

/// <summary>
/// Gets or sets the managed rule sets that are associated with the exception.
/// </summary>
[Newtonsoft.Json.JsonProperty(PropertyName = "exceptionManagedRuleSets")]
public System.Collections.Generic.IList<ExclusionManagedRuleSet> ExceptionManagedRuleSets {get; set; }
/// <summary>
/// Validate the object.
/// </summary>
/// <exception cref="Microsoft.Rest.ValidationException">
/// Thrown if validation fails
/// </exception>
public virtual void Validate()
{
if (this.MatchVariable == null)
{
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "MatchVariable");
}
if (this.ValueMatchOperator == null)
{
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "ValueMatchOperator");
}





if (this.ExceptionManagedRuleSets != null)
{
foreach (var element in this.ExceptionManagedRuleSets)
{
if (element != null)
{
element.Validate();
}
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
// 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.

namespace Microsoft.Azure.Management.Network.Models
{

/// <summary>
/// Defines values for ExceptionEntryMatchVariable.
/// </summary>


public static class ExceptionEntryMatchVariable
{
public const string RequestURI = "RequestURI";
public const string RemoteAddr = "RemoteAddr";
public const string RequestHeader = "RequestHeader";
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
// 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.

namespace Microsoft.Azure.Management.Network.Models
{

/// <summary>
/// Defines values for ExceptionEntrySelectorMatchOperator.
/// </summary>


public static class ExceptionEntrySelectorMatchOperator
{
public const string Equals = "Equals";
public const string Contains = "Contains";
public const string StartsWith = "StartsWith";
public const string EndsWith = "EndsWith";
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
// 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.

namespace Microsoft.Azure.Management.Network.Models
{

/// <summary>
/// Defines values for ExceptionEntryValueMatchOperator.
/// </summary>


public static class ExceptionEntryValueMatchOperator
{
public const string Equals = "Equals";
public const string Contains = "Contains";
public const string StartsWith = "StartsWith";
public const string EndsWith = "EndsWith";
public const string IPMatch = "IPMatch";
}
}
Loading

0 comments on commit 0ae18ff

Please sign in to comment.