//
// 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;
///
/// JobTemplateSpec describes the data a Job should have when created from
/// a template
///
public partial class V2alpha1JobTemplateSpec
{
///
/// Initializes a new instance of the V2alpha1JobTemplateSpec class.
///
public V2alpha1JobTemplateSpec()
{
CustomInit();
}
///
/// Initializes a new instance of the V2alpha1JobTemplateSpec class.
///
/// Standard object's metadata of the jobs
/// created from this template. More info:
/// https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata
/// Specification of the desired behavior of the
/// job. More info:
/// https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status
public V2alpha1JobTemplateSpec(V1ObjectMeta metadata = default(V1ObjectMeta), V1JobSpec spec = default(V1JobSpec))
{
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 of the jobs created from
/// this template. 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 job. More
/// info:
/// https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status
///
[JsonProperty(PropertyName = "spec")]
public V1JobSpec Spec { get; set; }
///
/// Validate the object.
///
///
/// Thrown if validation fails
///
public virtual void Validate()
{
if (Metadata != null)
{
Metadata.Validate();
}
if (Spec != null)
{
Spec.Validate();
}
}
}
}