//
// 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;
///
/// PodTemplateSpec describes the data a pod should have when created from
/// a template
///
public partial class V1PodTemplateSpec
{
///
/// Initializes a new instance of the V1PodTemplateSpec class.
///
public V1PodTemplateSpec()
{
CustomInit();
}
///
/// Initializes a new instance of the V1PodTemplateSpec class.
///
/// Standard object's metadata. More info:
/// https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata
/// Specification of the desired behavior of the
/// pod. More info:
/// https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status
public V1PodTemplateSpec(V1ObjectMeta metadata = default(V1ObjectMeta), V1PodSpec spec = default(V1PodSpec))
{
Metadata = metadata;
Spec = spec;
CustomInit();
}
///
/// An initialization method that performs custom operations like setting defaults
///
partial void CustomInit();
///
/// Gets or sets standard object's metadata. More info:
/// https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata
///
[JsonProperty(PropertyName = "metadata")]
public V1ObjectMeta Metadata { get; set; }
///
/// Gets or sets specification of the desired behavior of the pod. More
/// info:
/// https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status
///
[JsonProperty(PropertyName = "spec")]
public V1PodSpec Spec { get; set; }
///
/// Validate the object.
///
///
/// Thrown if validation fails
///
public virtual void Validate()
{
if (Metadata != null)
{
Metadata.Validate();
}
if (Spec != null)
{
Spec.Validate();
}
}
}
}