// // Code generated by https://github.com/kubernetes-client/csharp/tree/master/gen/KubernetesGenerator // 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.Collections.Generic; using System.Collections; using System.Linq; /// /// ControllerRevisionList is a resource containing a list of ControllerRevision /// objects. /// public partial class V1ControllerRevisionList { /// /// Initializes a new instance of the V1ControllerRevisionList class. /// public V1ControllerRevisionList() { CustomInit(); } /// /// Initializes a new instance of the V1ControllerRevisionList class. /// /// /// Items is the list of ControllerRevisions /// /// /// APIVersion defines the versioned schema of this representation of an object. /// Servers should convert recognized schemas to the latest internal value, and may /// reject unrecognized values. More info: /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources /// /// /// Kind is a string value representing the REST resource this object represents. /// Servers may infer this from the endpoint the client submits requests to. Cannot /// be updated. In CamelCase. More info: /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds /// /// /// More info: /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata /// public V1ControllerRevisionList(IList items, string apiVersion = null, string kind = null, V1ListMeta metadata = null) { ApiVersion = apiVersion; Items = items; Kind = kind; Metadata = metadata; CustomInit(); } /// /// An initialization method that performs custom operations like setting defaults /// partial void CustomInit(); /// /// APIVersion defines the versioned schema of this representation of an object. /// Servers should convert recognized schemas to the latest internal value, and may /// reject unrecognized values. More info: /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources /// [JsonProperty(PropertyName = "apiVersion")] public string ApiVersion { get; set; } /// /// Items is the list of ControllerRevisions /// [JsonProperty(PropertyName = "items")] public IList Items { get; set; } /// /// Kind is a string value representing the REST resource this object represents. /// Servers may infer this from the endpoint the client submits requests to. Cannot /// be updated. In CamelCase. More info: /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds /// [JsonProperty(PropertyName = "kind")] public string Kind { get; set; } /// /// More info: /// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata /// [JsonProperty(PropertyName = "metadata")] public V1ListMeta Metadata { get; set; } /// /// Validate the object. /// /// /// Thrown if validation fails /// public virtual void Validate() { foreach(var obj in Items) { obj.Validate(); } Metadata?.Validate(); } } }