2017-10-19 19:53:02 +00:00
|
|
|
// <auto-generated>
|
|
|
|
|
// Code generated by Microsoft (R) AutoRest Code Generator.
|
2017-06-06 23:02:14 -07:00
|
|
|
// Changes may cause incorrect behavior and will be lost if the code is
|
|
|
|
|
// regenerated.
|
2017-10-19 19:53:02 +00:00
|
|
|
// </auto-generated>
|
2017-06-06 23:02:14 -07:00
|
|
|
|
|
|
|
|
namespace k8s.Models
|
|
|
|
|
{
|
|
|
|
|
using Newtonsoft.Json;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// JobTemplateSpec describes the data a Job should have when created from
|
|
|
|
|
/// a template
|
|
|
|
|
/// </summary>
|
2017-11-24 12:10:51 +08:00
|
|
|
public partial class V2alpha1JobTemplateSpec
|
2017-06-06 23:02:14 -07:00
|
|
|
{
|
|
|
|
|
/// <summary>
|
2017-11-24 12:10:51 +08:00
|
|
|
/// Initializes a new instance of the V2alpha1JobTemplateSpec class.
|
2017-06-06 23:02:14 -07:00
|
|
|
/// </summary>
|
2017-11-24 12:10:51 +08:00
|
|
|
public V2alpha1JobTemplateSpec()
|
2017-06-06 23:02:14 -07:00
|
|
|
{
|
2017-10-19 19:53:02 +00:00
|
|
|
CustomInit();
|
2017-06-06 23:02:14 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
2017-11-24 12:10:51 +08:00
|
|
|
/// Initializes a new instance of the V2alpha1JobTemplateSpec class.
|
2017-06-06 23:02:14 -07:00
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="metadata">Standard object's metadata of the jobs
|
|
|
|
|
/// created from this template. More info:
|
2017-10-19 19:53:02 +00:00
|
|
|
/// https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata</param>
|
2017-06-06 23:02:14 -07:00
|
|
|
/// <param name="spec">Specification of the desired behavior of the
|
|
|
|
|
/// job. More info:
|
2017-10-19 19:53:02 +00:00
|
|
|
/// https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status</param>
|
2017-11-24 12:10:51 +08:00
|
|
|
public V2alpha1JobTemplateSpec(V1ObjectMeta metadata = default(V1ObjectMeta), V1JobSpec spec = default(V1JobSpec))
|
2017-06-06 23:02:14 -07:00
|
|
|
{
|
|
|
|
|
Metadata = metadata;
|
|
|
|
|
Spec = spec;
|
|
|
|
|
CustomInit();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// An initialization method that performs custom operations like setting defaults
|
|
|
|
|
/// </summary>
|
|
|
|
|
partial void CustomInit();
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets standard object's metadata of the jobs created from
|
|
|
|
|
/// this template. More info:
|
2017-10-19 19:53:02 +00:00
|
|
|
/// https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata
|
2017-06-06 23:02:14 -07:00
|
|
|
/// </summary>
|
|
|
|
|
[JsonProperty(PropertyName = "metadata")]
|
|
|
|
|
public V1ObjectMeta Metadata { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets specification of the desired behavior of the job. More
|
|
|
|
|
/// info:
|
2017-10-19 19:53:02 +00:00
|
|
|
/// https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status
|
2017-06-06 23:02:14 -07:00
|
|
|
/// </summary>
|
|
|
|
|
[JsonProperty(PropertyName = "spec")]
|
2017-11-24 12:10:51 +08:00
|
|
|
public V1JobSpec Spec { get; set; }
|
2017-06-06 23:02:14 -07:00
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Validate the object.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <exception cref="Microsoft.Rest.ValidationException">
|
|
|
|
|
/// Thrown if validation fails
|
|
|
|
|
/// </exception>
|
|
|
|
|
public virtual void Validate()
|
|
|
|
|
{
|
2017-10-19 19:53:02 +00:00
|
|
|
if (Metadata != null)
|
|
|
|
|
{
|
|
|
|
|
Metadata.Validate();
|
|
|
|
|
}
|
2017-06-06 23:02:14 -07:00
|
|
|
if (Spec != null)
|
|
|
|
|
{
|
|
|
|
|
Spec.Validate();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|