//
// 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;
///
/// LimitRangeItem defines a min/max usage limit for any resource that
/// matches on kind.
///
public partial class V1LimitRangeItem
{
///
/// Initializes a new instance of the V1LimitRangeItem class.
///
public V1LimitRangeItem()
{
CustomInit();
}
///
/// Initializes a new instance of the V1LimitRangeItem class.
///
/// Default resource requirement limit
/// value by resource name if resource limit is omitted.
/// DefaultRequest is the default resource
/// requirement request value by resource name if resource request is
/// omitted.
/// Max usage constraints on this kind by resource
/// name.
/// MaxLimitRequestRatio if
/// specified, the named resource must have a request and limit that
/// are both non-zero where limit divided by request is less than or
/// equal to the enumerated value; this represents the max burst for
/// the named resource.
/// Min usage constraints on this kind by resource
/// name.
/// Type of resource that this limit applies
/// to.
public V1LimitRangeItem(IDictionary defaultProperty = default(IDictionary), IDictionary defaultRequest = default(IDictionary), IDictionary max = default(IDictionary), IDictionary maxLimitRequestRatio = default(IDictionary), IDictionary min = default(IDictionary), string type = default(string))
{
DefaultProperty = defaultProperty;
DefaultRequest = defaultRequest;
Max = max;
MaxLimitRequestRatio = maxLimitRequestRatio;
Min = min;
Type = type;
CustomInit();
}
///
/// An initialization method that performs custom operations like setting defaults
///
partial void CustomInit();
///
/// Gets or sets default resource requirement limit value by resource
/// name if resource limit is omitted.
///
[JsonProperty(PropertyName = "default")]
public IDictionary DefaultProperty { get; set; }
///
/// Gets or sets defaultRequest is the default resource requirement
/// request value by resource name if resource request is omitted.
///
[JsonProperty(PropertyName = "defaultRequest")]
public IDictionary DefaultRequest { get; set; }
///
/// Gets or sets max usage constraints on this kind by resource name.
///
[JsonProperty(PropertyName = "max")]
public IDictionary Max { get; set; }
///
/// Gets or sets maxLimitRequestRatio if specified, the named resource
/// must have a request and limit that are both non-zero where limit
/// divided by request is less than or equal to the enumerated value;
/// this represents the max burst for the named resource.
///
[JsonProperty(PropertyName = "maxLimitRequestRatio")]
public IDictionary MaxLimitRequestRatio { get; set; }
///
/// Gets or sets min usage constraints on this kind by resource name.
///
[JsonProperty(PropertyName = "min")]
public IDictionary Min { get; set; }
///
/// Gets or sets type of resource that this limit applies to.
///
[JsonProperty(PropertyName = "type")]
public string Type { get; set; }
}
}