//
// 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 Microsoft.Rest;
using Newtonsoft.Json;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
///
/// Policy defines the configuration of how audit events are logged
///
public partial class V1alpha1Policy
{
///
/// Initializes a new instance of the V1alpha1Policy class.
///
public V1alpha1Policy()
{
CustomInit();
}
///
/// Initializes a new instance of the V1alpha1Policy class.
///
/// The Level that all requests are recorded at.
/// available options: None, Metadata, Request, RequestResponse
/// required
/// Stages is a list of stages for which events
/// are created.
public V1alpha1Policy(string level, IList stages = default(IList))
{
Level = level;
Stages = stages;
CustomInit();
}
///
/// An initialization method that performs custom operations like setting defaults
///
partial void CustomInit();
///
/// Gets or sets the Level that all requests are recorded at. available
/// options: None, Metadata, Request, RequestResponse required
///
[JsonProperty(PropertyName = "level")]
public string Level { get; set; }
///
/// Gets or sets stages is a list of stages for which events are
/// created.
///
[JsonProperty(PropertyName = "stages")]
public IList Stages { get; set; }
///
/// Validate the object.
///
///
/// Thrown if validation fails
///
public virtual void Validate()
{
if (Level == null)
{
throw new ValidationException(ValidationRules.CannotBeNull, "Level");
}
}
}
}