forked from Azure/azure-sdk-for-net
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
.NET SDK Resource Provider:'PolicyInsights'
REST Spec PR 'Azure/azure-rest-api-specs#5389' REST Spec PR Author 'sarangan12' REST Spec PR Last commit
- Loading branch information
Showing
12 changed files
with
295 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
<!--This file and it's contents are updated at build time moving or editing might result in build failure. Take due deligence while editing this file--> | ||
<PropertyGroup> | ||
<AzureApiTag>PolicyInsights_2018-04-04;PolicyInsights_2018-07-01-preview;</AzureApiTag> | ||
<AzureApiTag>PolicyInsights_2018-07-01-preview;PolicyInsights_2018-04-04;</AzureApiTag> | ||
<PackageTags>$(PackageTags);$(CommonTags);$(AzureApiTag);</PackageTags> | ||
</PropertyGroup> | ||
</Project> |
98 changes: 98 additions & 0 deletions
98
...ghts/Management/Management.PolicyInsights/Generated/Models/ExpressionEvaluationDetails.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,98 @@ | ||
// <auto-generated> | ||
// 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. | ||
// </auto-generated> | ||
|
||
namespace Microsoft.Azure.Management.PolicyInsights.Models | ||
{ | ||
using Newtonsoft.Json; | ||
using System.Linq; | ||
|
||
/// <summary> | ||
/// Evaluation details of policy language expressions. | ||
/// </summary> | ||
public partial class ExpressionEvaluationDetails | ||
{ | ||
/// <summary> | ||
/// Initializes a new instance of the ExpressionEvaluationDetails | ||
/// class. | ||
/// </summary> | ||
public ExpressionEvaluationDetails() | ||
{ | ||
CustomInit(); | ||
} | ||
|
||
/// <summary> | ||
/// Initializes a new instance of the ExpressionEvaluationDetails | ||
/// class. | ||
/// </summary> | ||
/// <param name="result">Evaluation result.</param> | ||
/// <param name="expression">Expression evaluated.</param> | ||
/// <param name="path">Property path if the expression is a field or an | ||
/// alias.</param> | ||
/// <param name="expressionValue">Value of the expression.</param> | ||
/// <param name="targetValue">Target value to be compared with the | ||
/// expression value.</param> | ||
/// <param name="operatorProperty">Operator to compare the expression | ||
/// value and the target value.</param> | ||
public ExpressionEvaluationDetails(string result = default(string), string expression = default(string), string path = default(string), string expressionValue = default(string), string targetValue = default(string), string operatorProperty = default(string)) | ||
{ | ||
Result = result; | ||
Expression = expression; | ||
Path = path; | ||
ExpressionValue = expressionValue; | ||
TargetValue = targetValue; | ||
OperatorProperty = operatorProperty; | ||
CustomInit(); | ||
} | ||
|
||
/// <summary> | ||
/// An initialization method that performs custom operations like setting defaults | ||
/// </summary> | ||
partial void CustomInit(); | ||
|
||
/// <summary> | ||
/// Gets or sets evaluation result. | ||
/// </summary> | ||
[JsonProperty(PropertyName = "result")] | ||
public string Result { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets expression evaluated. | ||
/// </summary> | ||
[JsonProperty(PropertyName = "expression")] | ||
public string Expression { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets property path if the expression is a field or an | ||
/// alias. | ||
/// </summary> | ||
[JsonProperty(PropertyName = "path")] | ||
public string Path { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets value of the expression. | ||
/// </summary> | ||
[JsonProperty(PropertyName = "expressionValue")] | ||
public string ExpressionValue { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets target value to be compared with the expression value. | ||
/// </summary> | ||
[JsonProperty(PropertyName = "targetValue")] | ||
public string TargetValue { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets operator to compare the expression value and the | ||
/// target value. | ||
/// </summary> | ||
[JsonProperty(PropertyName = "operator")] | ||
public string OperatorProperty { get; set; } | ||
|
||
} | ||
} |
65 changes: 65 additions & 0 deletions
65
...hts/Management/Management.PolicyInsights/Generated/Models/IfNotExistsEvaluationDetails.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
// <auto-generated> | ||
// 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. | ||
// </auto-generated> | ||
|
||
namespace Microsoft.Azure.Management.PolicyInsights.Models | ||
{ | ||
using Newtonsoft.Json; | ||
using System.Linq; | ||
|
||
/// <summary> | ||
/// Evaluation details of IfNotExists effect. | ||
/// </summary> | ||
public partial class IfNotExistsEvaluationDetails | ||
{ | ||
/// <summary> | ||
/// Initializes a new instance of the IfNotExistsEvaluationDetails | ||
/// class. | ||
/// </summary> | ||
public IfNotExistsEvaluationDetails() | ||
{ | ||
CustomInit(); | ||
} | ||
|
||
/// <summary> | ||
/// Initializes a new instance of the IfNotExistsEvaluationDetails | ||
/// class. | ||
/// </summary> | ||
/// <param name="resourceId">ID of the last evaluated resource for | ||
/// IfNotExists effect.</param> | ||
/// <param name="totalResources">Total number of resources to which the | ||
/// existence condition is applicable.</param> | ||
public IfNotExistsEvaluationDetails(string resourceId = default(string), int? totalResources = default(int?)) | ||
{ | ||
ResourceId = resourceId; | ||
TotalResources = totalResources; | ||
CustomInit(); | ||
} | ||
|
||
/// <summary> | ||
/// An initialization method that performs custom operations like setting defaults | ||
/// </summary> | ||
partial void CustomInit(); | ||
|
||
/// <summary> | ||
/// Gets or sets ID of the last evaluated resource for IfNotExists | ||
/// effect. | ||
/// </summary> | ||
[JsonProperty(PropertyName = "resourceId")] | ||
public string ResourceId { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets total number of resources to which the existence | ||
/// condition is applicable. | ||
/// </summary> | ||
[JsonProperty(PropertyName = "totalResources")] | ||
public int? TotalResources { get; set; } | ||
|
||
} | ||
} |
63 changes: 63 additions & 0 deletions
63
...Insights/Management/Management.PolicyInsights/Generated/Models/PolicyEvaluationDetails.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
// <auto-generated> | ||
// 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. | ||
// </auto-generated> | ||
|
||
namespace Microsoft.Azure.Management.PolicyInsights.Models | ||
{ | ||
using Newtonsoft.Json; | ||
using System.Collections; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
|
||
/// <summary> | ||
/// Policy evaluation details. | ||
/// </summary> | ||
public partial class PolicyEvaluationDetails | ||
{ | ||
/// <summary> | ||
/// Initializes a new instance of the PolicyEvaluationDetails class. | ||
/// </summary> | ||
public PolicyEvaluationDetails() | ||
{ | ||
CustomInit(); | ||
} | ||
|
||
/// <summary> | ||
/// Initializes a new instance of the PolicyEvaluationDetails class. | ||
/// </summary> | ||
/// <param name="evaluatedExpressions">Details of the evaluated | ||
/// expressions.</param> | ||
/// <param name="ifNotExistsDetails">Evaluation details of IfNotExists | ||
/// effect.</param> | ||
public PolicyEvaluationDetails(IList<ExpressionEvaluationDetails> evaluatedExpressions = default(IList<ExpressionEvaluationDetails>), IfNotExistsEvaluationDetails ifNotExistsDetails = default(IfNotExistsEvaluationDetails)) | ||
{ | ||
EvaluatedExpressions = evaluatedExpressions; | ||
IfNotExistsDetails = ifNotExistsDetails; | ||
CustomInit(); | ||
} | ||
|
||
/// <summary> | ||
/// An initialization method that performs custom operations like setting defaults | ||
/// </summary> | ||
partial void CustomInit(); | ||
|
||
/// <summary> | ||
/// Gets or sets details of the evaluated expressions. | ||
/// </summary> | ||
[JsonProperty(PropertyName = "evaluatedExpressions")] | ||
public IList<ExpressionEvaluationDetails> EvaluatedExpressions { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets evaluation details of IfNotExists effect. | ||
/// </summary> | ||
[JsonProperty(PropertyName = "ifNotExistsDetails")] | ||
public IfNotExistsEvaluationDetails IfNotExistsDetails { get; set; } | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.