Files
csharp/src/KubernetesClient.Models/KubeConfigModels/ExecCredentialResponse.cs

29 lines
881 B
C#
Raw Normal View History

namespace k8s.KubeConfigModels
{
public class ExecCredentialResponse
{
public class ExecStatus
{
#nullable enable
public DateTime? ExpirationTimestamp { get; set; }
public string? Token { get; set; }
public string? ClientCertificateData { get; set; }
public string? ClientKeyData { get; set; }
#nullable disable
public bool IsValid()
{
return !string.IsNullOrEmpty(Token) ||
(!string.IsNullOrEmpty(ClientCertificateData) && !string.IsNullOrEmpty(ClientKeyData));
}
}
[JsonPropertyName("apiVersion")]
public string ApiVersion { get; set; }
[JsonPropertyName("kind")]
public string Kind { get; set; }
[JsonPropertyName("status")]
public ExecStatus Status { get; set; }
}
}