Пример #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="V1ResourceQuotaList" /> class.
 /// </summary>
 /// <param name="ApiVersion">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: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources.</param>
 /// <param name="Items">Items is a list of ResourceQuota objects. More info: http://releases.k8s.io/HEAD/docs/design/admission_control_resource_quota.md#admissioncontrol-plugin-resourcequota (required).</param>
 /// <param name="Kind">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: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds.</param>
 /// <param name="Metadata">Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds.</param>
 public V1ResourceQuotaList(string ApiVersion = default(string), List <V1ResourceQuota> Items = default(List <V1ResourceQuota>), string Kind = default(string), UnversionedListMeta Metadata = default(UnversionedListMeta))
 {
     // to ensure "Items" is required (not null)
     if (Items == null)
     {
         throw new InvalidDataException("Items is a required property for V1ResourceQuotaList and cannot be null");
     }
     else
     {
         this.Items = Items;
     }
     this.ApiVersion = ApiVersion;
     this.Kind       = Kind;
     this.Metadata   = Metadata;
 }
Пример #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="UnversionedStatus" /> class.
 /// </summary>
 /// <param name="ApiVersion">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: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources.</param>
 /// <param name="Code">Suggested HTTP return code for this status, 0 if not set..</param>
 /// <param name="Details">Extended data associated with the reason.  Each reason may define its own extended details. This field is optional and the data returned is not guaranteed to conform to any schema except that defined by the reason type..</param>
 /// <param name="Kind">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: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds.</param>
 /// <param name="Message">A human-readable description of the status of this operation..</param>
 /// <param name="Metadata">Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds.</param>
 /// <param name="Reason">A machine-readable description of why this operation is in the \&quot;Failure\&quot; status. If this value is empty there is no information available. A Reason clarifies an HTTP status code but does not override it..</param>
 /// <param name="Status">Status of the operation. One of: \&quot;Success\&quot; or \&quot;Failure\&quot;. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status.</param>
 public UnversionedStatus(string ApiVersion = default(string), int?Code = default(int?), UnversionedStatusDetails Details = default(UnversionedStatusDetails), string Kind = default(string), string Message = default(string), UnversionedListMeta Metadata = default(UnversionedListMeta), string Reason = default(string), string Status = default(string))
 {
     this.ApiVersion = ApiVersion;
     this.Code       = Code;
     this.Details    = Details;
     this.Kind       = Kind;
     this.Message    = Message;
     this.Metadata   = Metadata;
     this.Reason     = Reason;
     this.Status     = Status;
 }