93 lines
3.6 KiB
C#
93 lines
3.6 KiB
C#
|
|
// <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.Linq;
|
||
|
|
|
||
|
|
/// <summary>
|
||
|
|
/// LeaseSpec is a specification of a Lease.
|
||
|
|
/// </summary>
|
||
|
|
public partial class V1beta1LeaseSpec
|
||
|
|
{
|
||
|
|
/// <summary>
|
||
|
|
/// Initializes a new instance of the V1beta1LeaseSpec class.
|
||
|
|
/// </summary>
|
||
|
|
public V1beta1LeaseSpec()
|
||
|
|
{
|
||
|
|
CustomInit();
|
||
|
|
}
|
||
|
|
|
||
|
|
/// <summary>
|
||
|
|
/// Initializes a new instance of the V1beta1LeaseSpec class.
|
||
|
|
/// </summary>
|
||
|
|
/// <param name="acquireTime">acquireTime is a time when the current
|
||
|
|
/// lease was acquired.</param>
|
||
|
|
/// <param name="holderIdentity">holderIdentity contains the identity
|
||
|
|
/// of the holder of a current lease.</param>
|
||
|
|
/// <param name="leaseDurationSeconds">leaseDurationSeconds is a
|
||
|
|
/// duration that candidates for a lease need to wait to force acquire
|
||
|
|
/// it. This is measure against time of last observed
|
||
|
|
/// RenewTime.</param>
|
||
|
|
/// <param name="leaseTransitions">leaseTransitions is the number of
|
||
|
|
/// transitions of a lease between holders.</param>
|
||
|
|
/// <param name="renewTime">renewTime is a time when the current holder
|
||
|
|
/// of a lease has last updated the lease.</param>
|
||
|
|
public V1beta1LeaseSpec(System.DateTime? acquireTime = default(System.DateTime?), string holderIdentity = default(string), int? leaseDurationSeconds = default(int?), int? leaseTransitions = default(int?), System.DateTime? renewTime = default(System.DateTime?))
|
||
|
|
{
|
||
|
|
AcquireTime = acquireTime;
|
||
|
|
HolderIdentity = holderIdentity;
|
||
|
|
LeaseDurationSeconds = leaseDurationSeconds;
|
||
|
|
LeaseTransitions = leaseTransitions;
|
||
|
|
RenewTime = renewTime;
|
||
|
|
CustomInit();
|
||
|
|
}
|
||
|
|
|
||
|
|
/// <summary>
|
||
|
|
/// An initialization method that performs custom operations like setting defaults
|
||
|
|
/// </summary>
|
||
|
|
partial void CustomInit();
|
||
|
|
|
||
|
|
/// <summary>
|
||
|
|
/// Gets or sets acquireTime is a time when the current lease was
|
||
|
|
/// acquired.
|
||
|
|
/// </summary>
|
||
|
|
[JsonProperty(PropertyName = "acquireTime")]
|
||
|
|
public System.DateTime? AcquireTime { get; set; }
|
||
|
|
|
||
|
|
/// <summary>
|
||
|
|
/// Gets or sets holderIdentity contains the identity of the holder of
|
||
|
|
/// a current lease.
|
||
|
|
/// </summary>
|
||
|
|
[JsonProperty(PropertyName = "holderIdentity")]
|
||
|
|
public string HolderIdentity { get; set; }
|
||
|
|
|
||
|
|
/// <summary>
|
||
|
|
/// Gets or sets leaseDurationSeconds is a duration that candidates for
|
||
|
|
/// a lease need to wait to force acquire it. This is measure against
|
||
|
|
/// time of last observed RenewTime.
|
||
|
|
/// </summary>
|
||
|
|
[JsonProperty(PropertyName = "leaseDurationSeconds")]
|
||
|
|
public int? LeaseDurationSeconds { get; set; }
|
||
|
|
|
||
|
|
/// <summary>
|
||
|
|
/// Gets or sets leaseTransitions is the number of transitions of a
|
||
|
|
/// lease between holders.
|
||
|
|
/// </summary>
|
||
|
|
[JsonProperty(PropertyName = "leaseTransitions")]
|
||
|
|
public int? LeaseTransitions { get; set; }
|
||
|
|
|
||
|
|
/// <summary>
|
||
|
|
/// Gets or sets renewTime is a time when the current holder of a lease
|
||
|
|
/// has last updated the lease.
|
||
|
|
/// </summary>
|
||
|
|
[JsonProperty(PropertyName = "renewTime")]
|
||
|
|
public System.DateTime? RenewTime { get; set; }
|
||
|
|
|
||
|
|
}
|
||
|
|
}
|