// // 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.Collections; using System.Collections.Generic; using System.Linq; /// /// represents the current status of a scale subresource. /// public partial class Extensionsv1beta1ScaleStatus { /// /// Initializes a new instance of the Extensionsv1beta1ScaleStatus /// class. /// public Extensionsv1beta1ScaleStatus() { CustomInit(); } /// /// Initializes a new instance of the Extensionsv1beta1ScaleStatus /// class. /// /// actual number of observed instances of the /// scaled object. /// label query over pods that should match the /// replicas count. More info: /// http://kubernetes.io/docs/user-guide/labels#label-selectors /// label selector for pods that should /// match the replicas count. This is a serializated version of both /// map-based and more expressive set-based selectors. This is done to /// avoid introspection in the clients. The string will be in the same /// format as the query-param syntax. If the target type only supports /// map-based selectors, both this field and map-based selector field /// are populated. More info: /// https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors public Extensionsv1beta1ScaleStatus(int replicas, IDictionary selector = default(IDictionary), string targetSelector = default(string)) { Replicas = replicas; Selector = selector; TargetSelector = targetSelector; CustomInit(); } /// /// An initialization method that performs custom operations like setting defaults /// partial void CustomInit(); /// /// Gets or sets actual number of observed instances of the scaled /// object. /// [JsonProperty(PropertyName = "replicas")] public int Replicas { get; set; } /// /// Gets or sets label query over pods that should match the replicas /// count. More info: /// http://kubernetes.io/docs/user-guide/labels#label-selectors /// [JsonProperty(PropertyName = "selector")] public IDictionary Selector { get; set; } /// /// Gets or sets label selector for pods that should match the replicas /// count. This is a serializated version of both map-based and more /// expressive set-based selectors. This is done to avoid introspection /// in the clients. The string will be in the same format as the /// query-param syntax. If the target type only supports map-based /// selectors, both this field and map-based selector field are /// populated. More info: /// https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors /// [JsonProperty(PropertyName = "targetSelector")] public string TargetSelector { get; set; } /// /// Validate the object. /// /// /// Thrown if validation fails /// public virtual void Validate() { } } }