Files
csharp/src/KubernetesClient/generated/Models/V1beta1SubjectAccessReviewStatus.cs

104 lines
4.1 KiB
C#
Raw Normal View History

2017-10-19 19:53:02 +00:00
// <auto-generated>
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is
// regenerated.
2017-10-19 19:53:02 +00:00
// </auto-generated>
namespace k8s.Models
{
using Newtonsoft.Json;
using System.Linq;
/// <summary>
/// SubjectAccessReviewStatus
/// </summary>
public partial class V1beta1SubjectAccessReviewStatus
{
/// <summary>
/// Initializes a new instance of the V1beta1SubjectAccessReviewStatus
/// class.
/// </summary>
public V1beta1SubjectAccessReviewStatus()
{
2017-10-19 19:53:02 +00:00
CustomInit();
}
/// <summary>
/// Initializes a new instance of the V1beta1SubjectAccessReviewStatus
/// class.
/// </summary>
2018-01-27 04:25:58 +08:00
/// <param name="allowed">Allowed is required. True if the action would
/// be allowed, false otherwise.</param>
/// <param name="denied">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.</param>
/// <param name="evaluationError">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.</param>
/// <param name="reason">Reason is optional. It indicates why a
/// request was allowed or denied.</param>
2018-01-27 04:25:58 +08:00
public V1beta1SubjectAccessReviewStatus(bool allowed, bool? denied = default(bool?), string evaluationError = default(string), string reason = default(string))
{
Allowed = allowed;
2018-01-27 04:25:58 +08:00
Denied = denied;
EvaluationError = evaluationError;
Reason = reason;
CustomInit();
}
/// <summary>
/// An initialization method that performs custom operations like setting defaults
/// </summary>
partial void CustomInit();
/// <summary>
2018-01-27 04:25:58 +08:00
/// Gets or sets allowed is required. True if the action would be
/// allowed, false otherwise.
/// </summary>
[JsonProperty(PropertyName = "allowed")]
public bool Allowed { get; set; }
2018-01-27 04:25:58 +08:00
/// <summary>
/// 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.
/// </summary>
[JsonProperty(PropertyName = "denied")]
public bool? Denied { get; set; }
/// <summary>
/// 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.
/// </summary>
[JsonProperty(PropertyName = "evaluationError")]
public string EvaluationError { get; set; }
/// <summary>
/// Gets or sets reason is optional. It indicates why a request was
/// allowed or denied.
/// </summary>
[JsonProperty(PropertyName = "reason")]
public string Reason { get; set; }
/// <summary>
/// Validate the object.
/// </summary>
/// <exception cref="Microsoft.Rest.ValidationException">
/// Thrown if validation fails
/// </exception>
public virtual void Validate()
{
//Nothing to validate
}
}
}