// // 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 Microsoft.Rest; using Newtonsoft.Json; using System.Linq; /// /// Info contains versioning information. how we'll want to distribute that /// information. /// public partial class VersionInfo { /// /// Initializes a new instance of the VersionInfo class. /// public VersionInfo() { CustomInit(); } /// /// Initializes a new instance of the VersionInfo class. /// public VersionInfo(string buildDate, string compiler, string gitCommit, string gitTreeState, string gitVersion, string goVersion, string major, string minor, string platform) { BuildDate = buildDate; Compiler = compiler; GitCommit = gitCommit; GitTreeState = gitTreeState; GitVersion = gitVersion; GoVersion = goVersion; Major = major; Minor = minor; Platform = platform; CustomInit(); } /// /// An initialization method that performs custom operations like setting defaults /// partial void CustomInit(); /// /// [JsonProperty(PropertyName = "buildDate")] public string BuildDate { get; set; } /// /// [JsonProperty(PropertyName = "compiler")] public string Compiler { get; set; } /// /// [JsonProperty(PropertyName = "gitCommit")] public string GitCommit { get; set; } /// /// [JsonProperty(PropertyName = "gitTreeState")] public string GitTreeState { get; set; } /// /// [JsonProperty(PropertyName = "gitVersion")] public string GitVersion { get; set; } /// /// [JsonProperty(PropertyName = "goVersion")] public string GoVersion { get; set; } /// /// [JsonProperty(PropertyName = "major")] public string Major { get; set; } /// /// [JsonProperty(PropertyName = "minor")] public string Minor { get; set; } /// /// [JsonProperty(PropertyName = "platform")] public string Platform { get; set; } /// /// Validate the object. /// /// /// Thrown if validation fails /// public virtual void Validate() { if (BuildDate == null) { throw new ValidationException(ValidationRules.CannotBeNull, "BuildDate"); } if (Compiler == null) { throw new ValidationException(ValidationRules.CannotBeNull, "Compiler"); } if (GitCommit == null) { throw new ValidationException(ValidationRules.CannotBeNull, "GitCommit"); } if (GitTreeState == null) { throw new ValidationException(ValidationRules.CannotBeNull, "GitTreeState"); } if (GitVersion == null) { throw new ValidationException(ValidationRules.CannotBeNull, "GitVersion"); } if (GoVersion == null) { throw new ValidationException(ValidationRules.CannotBeNull, "GoVersion"); } if (Major == null) { throw new ValidationException(ValidationRules.CannotBeNull, "Major"); } if (Minor == null) { throw new ValidationException(ValidationRules.CannotBeNull, "Minor"); } if (Platform == null) { throw new ValidationException(ValidationRules.CannotBeNull, "Platform"); } } } }