// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. // namespace k8s.Models { using Newtonsoft.Json; using System.Linq; /// /// SubjectAccessReviewStatus /// public partial class V1SubjectAccessReviewStatus { /// /// Initializes a new instance of the V1SubjectAccessReviewStatus /// class. /// public V1SubjectAccessReviewStatus() { CustomInit(); } /// /// Initializes a new instance of the V1SubjectAccessReviewStatus /// class. /// /// Allowed is required. True if the action would /// be allowed, false otherwise. /// Denied is optional. True if the action would /// be denied, otherwise false. If both allowed is false and denied is /// false, then the authorizer has no opinion on whether to authorize /// the action. Denied may not be true if Allowed is true. /// EvaluationError is an indication that /// some error occurred during the authorization check. It is entirely /// possible to get an error and be able to continue determine /// authorization status in spite of it. For instance, RBAC can be /// missing a role, but enough roles are still present and bound to /// reason about the request. /// Reason is optional. It indicates why a /// request was allowed or denied. public V1SubjectAccessReviewStatus(bool allowed, bool? denied = default(bool?), string evaluationError = default(string), string reason = default(string)) { Allowed = allowed; Denied = denied; EvaluationError = evaluationError; Reason = reason; CustomInit(); } /// /// An initialization method that performs custom operations like setting defaults /// partial void CustomInit(); /// /// Gets or sets allowed is required. True if the action would be /// allowed, false otherwise. /// [JsonProperty(PropertyName = "allowed")] public bool Allowed { get; set; } /// /// Gets or sets denied is optional. True if the action would be /// denied, otherwise false. If both allowed is false and denied is /// false, then the authorizer has no opinion on whether to authorize /// the action. Denied may not be true if Allowed is true. /// [JsonProperty(PropertyName = "denied")] public bool? Denied { get; set; } /// /// Gets or sets evaluationError is an indication that some error /// occurred during the authorization check. It is entirely possible to /// get an error and be able to continue determine authorization status /// in spite of it. For instance, RBAC can be missing a role, but /// enough roles are still present and bound to reason about the /// request. /// [JsonProperty(PropertyName = "evaluationError")] public string EvaluationError { get; set; } /// /// Gets or sets reason is optional. It indicates why a request was /// allowed or denied. /// [JsonProperty(PropertyName = "reason")] public string Reason { get; set; } /// /// Validate the object. /// /// /// Thrown if validation fails /// public virtual void Validate() { //Nothing to validate } } }