// Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0 // Changes may cause incorrect behavior and will be lost if the code is // regenerated. namespace k8s.Models { using Newtonsoft.Json; using System.Linq; /// /// Handler defines a specific action that should be taken /// public partial class V1Handler { /// /// Initializes a new instance of the V1Handler class. /// public V1Handler() { CustomInit(); } /// /// Initializes a new instance of the V1Handler class. /// /// One and only one of the following should be /// specified. Exec specifies the action to take. /// HTTPGet specifies the http request to /// perform. /// TCPSocket specifies an action involving a /// TCP port. TCP hooks not yet supported public V1Handler(V1ExecAction exec = default(V1ExecAction), V1HTTPGetAction httpGet = default(V1HTTPGetAction), V1TCPSocketAction tcpSocket = default(V1TCPSocketAction)) { Exec = exec; HttpGet = httpGet; TcpSocket = tcpSocket; CustomInit(); } /// /// An initialization method that performs custom operations like setting defaults /// partial void CustomInit(); /// /// Gets or sets one and only one of the following should be specified. /// Exec specifies the action to take. /// [JsonProperty(PropertyName = "exec")] public V1ExecAction Exec { get; set; } /// /// Gets or sets hTTPGet specifies the http request to perform. /// [JsonProperty(PropertyName = "httpGet")] public V1HTTPGetAction HttpGet { get; set; } /// /// Gets or sets tCPSocket specifies an action involving a TCP port. /// TCP hooks not yet supported /// [JsonProperty(PropertyName = "tcpSocket")] public V1TCPSocketAction TcpSocket { get; set; } /// /// Validate the object. /// /// /// Thrown if validation fails /// public virtual void Validate() { if (HttpGet != null) { HttpGet.Validate(); } if (TcpSocket != null) { TcpSocket.Validate(); } } } }