Skip to content

Commit

Permalink
[AutoPR Microsoft.Azure.Management.FrontDoor] [AFD WAF] Add defaultSt…
Browse files Browse the repository at this point in the history
…ate and defaultAction to managed rule set definitions (#204)

* Generated from 25369344fbeb2f169b5bc40b9c4a8a99c42503e7 (#194)

chore: jsonfmt servicebus

* Generated from 7a35ba99fa36d4a95daf9c4f7c88ae0867cb0825 (#195)

Remove common from examples.

* Generated from 7cd1aa92499c42947998cf1570e19ac0087fda19 (#193)

missing section for compute 2019-07-01

* Generated from aafad88743ef7a4dcd7bbfa6afd4591ba4e327bb (#196)

new source

* [AutoPR Microsoft.Azure.ApplicationInsights] Add purge API details. (#184)

* Generated from 25369344fbeb2f169b5bc40b9c4a8a99c42503e7 (#194)

chore: jsonfmt servicebus

* Generated from 7a35ba99fa36d4a95daf9c4f7c88ae0867cb0825 (#195)

Remove common from examples.

* Generated from cf0d03934bcbc56858cf3696b0a3c7fa481c12ac

Fix example

* [AutoPR Microsoft.Azure.Management.Billing] Amaga/update customer policy (#202)

* Generated from 25369344fbeb2f169b5bc40b9c4a8a99c42503e7 (#194)

chore: jsonfmt servicebus

* Generated from 7a35ba99fa36d4a95daf9c4f7c88ae0867cb0825 (#195)

Remove common from examples.

* Generated from 7cd1aa92499c42947998cf1570e19ac0087fda19 (#193)

missing section for compute 2019-07-01

* Generated from aafad88743ef7a4dcd7bbfa6afd4591ba4e327bb (#196)

new source

* [AutoPR Microsoft.Azure.ApplicationInsights] Add purge API details. (#184)

* Generated from 25369344fbeb2f169b5bc40b9c4a8a99c42503e7 (#194)

chore: jsonfmt servicebus

* Generated from 7a35ba99fa36d4a95daf9c4f7c88ae0867cb0825 (#195)

Remove common from examples.

* Generated from cf0d03934bcbc56858cf3696b0a3c7fa481c12ac

Fix example

* Generated from a48d205a68ab63fdafa5dcb79e013c6946d92a43

Applying Code review feedbacks

* Generated from 7a0a386b7bb4042100e0d4a5c9aed5ac4374ab3d (#208)

Network: add java readme

* Generated from 3fa8f3514a5e14cab1429615541e7f04e8730996

Add read-only to defaultAction and defaultState fields
  • Loading branch information
openapi-sdkautomation[bot] authored and azuresdkci committed Sep 26, 2019
1 parent acbab48 commit 1385750
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 1385750

Please sign in to comment.