@codingame/kubevirt-api
Version:
kubevirt OpenAPI automation for TypeScript
46 lines (45 loc) • 2.46 kB
TypeScript
/**
* Kubernetes
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: unversioned
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
/**
* ResourcePool describes the pool that ResourceSlices belong to.
* @export
* @interface IoK8sApiResourceV1beta1ResourcePool
*/
export interface IoK8sApiResourceV1beta1ResourcePool {
/**
* Generation tracks the change in a pool over time. Whenever a driver changes something about one or more of the resources in a pool, it must change the generation in all ResourceSlices which are part of that pool. Consumers of ResourceSlices should only consider resources from the pool with the highest generation number. The generation may be reset by drivers, which should be fine for consumers, assuming that all ResourceSlices in a pool are updated to match or deleted.
*
* Combined with ResourceSliceCount, this mechanism enables consumers to detect pools which are comprised of multiple ResourceSlices and are in an incomplete state.
* @type {number}
* @memberof IoK8sApiResourceV1beta1ResourcePool
*/
generation: number;
/**
* Name is used to identify the pool. For node-local devices, this is often the node name, but this is not required.
*
* It must not be longer than 253 characters and must consist of one or more DNS sub-domains separated by slashes. This field is immutable.
* @type {string}
* @memberof IoK8sApiResourceV1beta1ResourcePool
*/
name: string;
/**
* ResourceSliceCount is the total number of ResourceSlices in the pool at this generation number. Must be greater than zero.
*
* Consumers can use this to check whether they have seen all ResourceSlices belonging to the same pool.
* @type {number}
* @memberof IoK8sApiResourceV1beta1ResourcePool
*/
resourceSliceCount: number;
}
export declare function IoK8sApiResourceV1beta1ResourcePoolFromJSON(json: any): IoK8sApiResourceV1beta1ResourcePool;
export declare function IoK8sApiResourceV1beta1ResourcePoolFromJSONTyped(json: any, _ignoreDiscriminator: boolean): IoK8sApiResourceV1beta1ResourcePool;
export declare function IoK8sApiResourceV1beta1ResourcePoolToJSON(value?: IoK8sApiResourceV1beta1ResourcePool | null): any;