2017-10-19 19:53:02 +00:00
|
|
|
// <auto-generated>
|
|
|
|
|
// Code generated by Microsoft (R) AutoRest Code Generator.
|
|
|
|
|
// Changes may cause incorrect behavior and will be lost if the code is
|
|
|
|
|
// regenerated.
|
|
|
|
|
// </auto-generated>
|
|
|
|
|
|
|
|
|
|
namespace k8s.Models
|
|
|
|
|
{
|
|
|
|
|
using Newtonsoft.Json;
|
|
|
|
|
using System.Collections;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// JobStatus represents the current state of a Job.
|
|
|
|
|
/// </summary>
|
2017-11-24 12:10:51 +08:00
|
|
|
public partial class V1JobStatus
|
2017-10-19 19:53:02 +00:00
|
|
|
{
|
|
|
|
|
/// <summary>
|
2017-11-24 12:10:51 +08:00
|
|
|
/// Initializes a new instance of the V1JobStatus class.
|
2017-10-19 19:53:02 +00:00
|
|
|
/// </summary>
|
2017-11-24 12:10:51 +08:00
|
|
|
public V1JobStatus()
|
2017-10-19 19:53:02 +00:00
|
|
|
{
|
|
|
|
|
CustomInit();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
2017-11-24 12:10:51 +08:00
|
|
|
/// Initializes a new instance of the V1JobStatus class.
|
2017-10-19 19:53:02 +00:00
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="active">The number of actively running pods.</param>
|
|
|
|
|
/// <param name="completionTime">Represents time when the job was
|
|
|
|
|
/// completed. It is not guaranteed to be set in happens-before order
|
|
|
|
|
/// across separate operations. It is represented in RFC3339 form and
|
|
|
|
|
/// is in UTC.</param>
|
|
|
|
|
/// <param name="conditions">The latest available observations of an
|
|
|
|
|
/// object's current state. More info:
|
|
|
|
|
/// https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/</param>
|
|
|
|
|
/// <param name="failed">The number of pods which reached phase
|
|
|
|
|
/// Failed.</param>
|
|
|
|
|
/// <param name="startTime">Represents time when the job was
|
|
|
|
|
/// acknowledged by the job controller. It is not guaranteed to be set
|
|
|
|
|
/// in happens-before order across separate operations. It is
|
|
|
|
|
/// represented in RFC3339 form and is in UTC.</param>
|
|
|
|
|
/// <param name="succeeded">The number of pods which reached phase
|
|
|
|
|
/// Succeeded.</param>
|
2017-11-24 12:10:51 +08:00
|
|
|
public V1JobStatus(int? active = default(int?), System.DateTime? completionTime = default(System.DateTime?), IList<V1JobCondition> conditions = default(IList<V1JobCondition>), int? failed = default(int?), System.DateTime? startTime = default(System.DateTime?), int? succeeded = default(int?))
|
2017-10-19 19:53:02 +00:00
|
|
|
{
|
|
|
|
|
Active = active;
|
|
|
|
|
CompletionTime = completionTime;
|
|
|
|
|
Conditions = conditions;
|
|
|
|
|
Failed = failed;
|
|
|
|
|
StartTime = startTime;
|
|
|
|
|
Succeeded = succeeded;
|
|
|
|
|
CustomInit();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// An initialization method that performs custom operations like setting defaults
|
|
|
|
|
/// </summary>
|
|
|
|
|
partial void CustomInit();
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the number of actively running pods.
|
|
|
|
|
/// </summary>
|
|
|
|
|
[JsonProperty(PropertyName = "active")]
|
|
|
|
|
public int? Active { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets represents time when the job was completed. It is not
|
|
|
|
|
/// guaranteed to be set in happens-before order across separate
|
|
|
|
|
/// operations. It is represented in RFC3339 form and is in UTC.
|
|
|
|
|
/// </summary>
|
|
|
|
|
[JsonProperty(PropertyName = "completionTime")]
|
|
|
|
|
public System.DateTime? CompletionTime { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the latest available observations of an object's
|
|
|
|
|
/// current state. More info:
|
|
|
|
|
/// https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/
|
|
|
|
|
/// </summary>
|
|
|
|
|
[JsonProperty(PropertyName = "conditions")]
|
2017-11-24 12:10:51 +08:00
|
|
|
public IList<V1JobCondition> Conditions { get; set; }
|
2017-10-19 19:53:02 +00:00
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the number of pods which reached phase Failed.
|
|
|
|
|
/// </summary>
|
|
|
|
|
[JsonProperty(PropertyName = "failed")]
|
|
|
|
|
public int? Failed { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets represents time when the job was acknowledged by the
|
|
|
|
|
/// job controller. It is not guaranteed to be set in happens-before
|
|
|
|
|
/// order across separate operations. It is represented in RFC3339 form
|
|
|
|
|
/// and is in UTC.
|
|
|
|
|
/// </summary>
|
|
|
|
|
[JsonProperty(PropertyName = "startTime")]
|
|
|
|
|
public System.DateTime? StartTime { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the number of pods which reached phase Succeeded.
|
|
|
|
|
/// </summary>
|
|
|
|
|
[JsonProperty(PropertyName = "succeeded")]
|
|
|
|
|
public int? Succeeded { get; set; }
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|