// // 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; /// /// LeaseSpec is a specification of a Lease. /// public partial class V1beta1LeaseSpec { /// /// Initializes a new instance of the V1beta1LeaseSpec class. /// public V1beta1LeaseSpec() { CustomInit(); } /// /// Initializes a new instance of the V1beta1LeaseSpec class. /// /// acquireTime is a time when the current /// lease was acquired. /// holderIdentity contains the identity /// of the holder of a current lease. /// 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. /// leaseTransitions is the number of /// transitions of a lease between holders. /// renewTime is a time when the current holder /// of a lease has last updated the lease. 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(); } /// /// An initialization method that performs custom operations like setting defaults /// partial void CustomInit(); /// /// Gets or sets acquireTime is a time when the current lease was /// acquired. /// [JsonProperty(PropertyName = "acquireTime")] public System.DateTime? AcquireTime { get; set; } /// /// Gets or sets holderIdentity contains the identity of the holder of /// a current lease. /// [JsonProperty(PropertyName = "holderIdentity")] public string HolderIdentity { get; set; } /// /// 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. /// [JsonProperty(PropertyName = "leaseDurationSeconds")] public int? LeaseDurationSeconds { get; set; } /// /// Gets or sets leaseTransitions is the number of transitions of a /// lease between holders. /// [JsonProperty(PropertyName = "leaseTransitions")] public int? LeaseTransitions { get; set; } /// /// Gets or sets renewTime is a time when the current holder of a lease /// has last updated the lease. /// [JsonProperty(PropertyName = "renewTime")] public System.DateTime? RenewTime { get; set; } } }