Skip to content

Commit

Permalink
Generated from 3fa8f3514a5e14cab1429615541e7f04e8730996
Browse files Browse the repository at this point in the history
Add read-only to defaultAction and defaultState fields
  • Loading branch information
SDK Automation committed Sep 17, 2019
1 parent 4cb1063 commit 16c3cf5
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,19 @@ public ManagedRuleDefinition()
/// Initializes a new instance of the ManagedRuleDefinition class.
/// </summary>
/// <param name="ruleId">Identifier for the managed rule.</param>
/// <param name="defaultState">Describes the default state for the
/// managed rule. Possible values include: 'Disabled',
/// 'Enabled'</param>
/// <param name="defaultAction">Describes the default action to be
/// applied when the managed rule matches. Possible values include:
/// 'Allow', 'Block', 'Log', 'Redirect'</param>
/// <param name="description">Describes the functionality of the
/// managed rule.</param>
public ManagedRuleDefinition(string ruleId = default(string), string description = default(string))
public ManagedRuleDefinition(string ruleId = default(string), string defaultState = default(string), string defaultAction = default(string), string description = default(string))
{
RuleId = ruleId;
DefaultState = defaultState;
DefaultAction = defaultAction;
Description = description;
CustomInit();
}
Expand All @@ -50,6 +58,21 @@ public ManagedRuleDefinition()
[JsonProperty(PropertyName = "ruleId")]
public string RuleId { get; private set; }

/// <summary>
/// Gets or sets describes the default state for the managed rule.
/// Possible values include: 'Disabled', 'Enabled'
/// </summary>
[JsonProperty(PropertyName = "defaultState")]
public string DefaultState { get; set; }

/// <summary>
/// Gets or sets describes the default action to be applied when the
/// managed rule matches. Possible values include: 'Allow', 'Block',
/// 'Log', 'Redirect'
/// </summary>
[JsonProperty(PropertyName = "defaultAction")]
public string DefaultAction { get; set; }

/// <summary>
/// Gets describes the functionality of the managed rule.
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public MatchCondition()
/// <param name="matchVariable">Request variable to compare with.
/// Possible values include: 'RemoteAddr', 'RequestMethod',
/// 'QueryString', 'PostArgs', 'RequestUri', 'RequestHeader',
/// 'RequestBody', 'Cookies'</param>
/// 'RequestBody', 'Cookies', 'SocketAddr'</param>
/// <param name="operatorProperty">Comparison type to use for matching
/// with the variable value. Possible values include: 'Any', 'IPMatch',
/// 'GeoMatch', 'Equal', 'Contains', 'LessThan', 'GreaterThan',
Expand Down Expand Up @@ -67,7 +67,8 @@ public MatchCondition()
/// <summary>
/// Gets or sets request variable to compare with. Possible values
/// include: 'RemoteAddr', 'RequestMethod', 'QueryString', 'PostArgs',
/// 'RequestUri', 'RequestHeader', 'RequestBody', 'Cookies'
/// 'RequestUri', 'RequestHeader', 'RequestBody', 'Cookies',
/// 'SocketAddr'
/// </summary>
[JsonProperty(PropertyName = "matchVariable")]
public string MatchVariable { get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,6 @@ public static class MatchVariable
public const string RequestHeader = "RequestHeader";
public const string RequestBody = "RequestBody";
public const string Cookies = "Cookies";
public const string SocketAddr = "SocketAddr";
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -33,16 +33,5 @@ public static IEnumerable<Tuple<string, string, string>> ApiInfo_FrontDoorManage
}.AsEnumerable();
}
}
// BEGIN: Code Generation Metadata Section
public static readonly String AutoRestVersion = "latest";
public static readonly String AutoRestBootStrapperVersion = "autorest@2.0.4283";
public static readonly String AutoRestCmdExecuted = "cmd.exe /c autorest.cmd https://github.com/Azure/azure-rest-api-specs/blob/master/specification/frontdoor/resource-manager/readme.md --csharp --version=latest --reflect-api-versions --csharp-sdks-folder=C:\\AFD\\azure-sdk-for-net\\sdk";
public static readonly String GithubForkName = "Azure";
public static readonly String GithubBranchName = "master";
public static readonly String GithubCommidId = "59c5761efb6dae1a0cfb624bc1a054e902a855cf";
public static readonly String CodeGenerationErrors = "";
public static readonly String GithubRepoName = "azure-rest-api-specs";
// END: Code Generation Metadata Section
}
}

0 comments on commit 16c3cf5

Please sign in to comment.