/// <summary> /// Initializes a new instance of the PolicyEvaluationResult class. /// </summary> /// <param name="policyInfo">The details of the policy that was /// evaluated.</param> /// <param name="evaluationResult">The result of the policy evaluation /// against the resource. This will typically be 'NonCompliant' but may /// contain other values if errors were encountered.</param> /// <param name="evaluationDetails">The detailed results of the policy /// expressions and values that were evaluated.</param> public PolicyEvaluationResult(PolicyReference policyInfo = default(PolicyReference), string evaluationResult = default(string), PolicyEvaluationDetails evaluationDetails = default(PolicyEvaluationDetails)) { PolicyInfo = policyInfo; EvaluationResult = evaluationResult; EvaluationDetails = evaluationDetails; CustomInit(); }
/// <summary> /// Initializes a new instance of the FieldRestriction class. /// </summary> /// <param name="result">The type of restriction that is imposed on the /// field. Possible values include: 'Required', 'Removed', /// 'Deny'</param> /// <param name="defaultValue">The value that policy will set for the /// field if the user does not provide a value.</param> /// <param name="values">The values that policy either requires or /// denies for the field.</param> /// <param name="policy">The details of the policy that is causing the /// field restriction.</param> public FieldRestriction(string result = default(string), string defaultValue = default(string), IList <string> values = default(IList <string>), PolicyReference policy = default(PolicyReference)) { Result = result; DefaultValue = defaultValue; Values = values; Policy = policy; CustomInit(); }