/// <summary>
 /// Initializes a new instance of the <see cref="V2alpha1ObjectMetricSource" /> class.
 /// </summary>
 /// <param name="MetricName">metricName is the name of the metric in question. (required).</param>
 /// <param name="Target">target is the described Kubernetes object. (required).</param>
 /// <param name="TargetValue">targetValue is the target value of the metric (as a quantity). (required).</param>
 public V2alpha1ObjectMetricSource(string MetricName = default(string), V2alpha1CrossVersionObjectReference Target = default(V2alpha1CrossVersionObjectReference), string TargetValue = default(string))
 {
     // to ensure "MetricName" is required (not null)
     if (MetricName == null)
     {
         throw new InvalidDataException("MetricName is a required property for V2alpha1ObjectMetricSource and cannot be null");
     }
     else
     {
         this.MetricName = MetricName;
     }
     // to ensure "Target" is required (not null)
     if (Target == null)
     {
         throw new InvalidDataException("Target is a required property for V2alpha1ObjectMetricSource and cannot be null");
     }
     else
     {
         this.Target = Target;
     }
     // to ensure "TargetValue" is required (not null)
     if (TargetValue == null)
     {
         throw new InvalidDataException("TargetValue is a required property for V2alpha1ObjectMetricSource and cannot be null");
     }
     else
     {
         this.TargetValue = TargetValue;
     }
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="V2alpha1HorizontalPodAutoscalerSpec" /> class.
 /// </summary>
 /// <param name="MaxReplicas">maxReplicas is the upper limit for the number of replicas to which the autoscaler can scale up. It cannot be less that minReplicas. (required).</param>
 /// <param name="Metrics">metrics contains the specifications for which to use to calculate the desired replica count (the maximum replica count across all metrics will be used).  The desired replica count is calculated multiplying the ratio between the target value and the current value by the current number of pods.  Ergo, metrics used must decrease as the pod count is increased, and vice-versa.  See the individual metric source types for more information about how each type of metric must respond..</param>
 /// <param name="MinReplicas">minReplicas is the lower limit for the number of replicas to which the autoscaler can scale down. It defaults to 1 pod..</param>
 /// <param name="ScaleTargetRef">scaleTargetRef points to the target resource to scale, and is used to the pods for which metrics should be collected, as well as to actually change the replica count. (required).</param>
 public V2alpha1HorizontalPodAutoscalerSpec(int?MaxReplicas = default(int?), List <V2alpha1MetricSpec> Metrics = default(List <V2alpha1MetricSpec>), int?MinReplicas = default(int?), V2alpha1CrossVersionObjectReference ScaleTargetRef = default(V2alpha1CrossVersionObjectReference))
 {
     // to ensure "MaxReplicas" is required (not null)
     if (MaxReplicas == null)
     {
         throw new InvalidDataException("MaxReplicas is a required property for V2alpha1HorizontalPodAutoscalerSpec and cannot be null");
     }
     else
     {
         this.MaxReplicas = MaxReplicas;
     }
     // to ensure "ScaleTargetRef" is required (not null)
     if (ScaleTargetRef == null)
     {
         throw new InvalidDataException("ScaleTargetRef is a required property for V2alpha1HorizontalPodAutoscalerSpec and cannot be null");
     }
     else
     {
         this.ScaleTargetRef = ScaleTargetRef;
     }
     this.Metrics     = Metrics;
     this.MinReplicas = MinReplicas;
 }