UNPKG

kubernetes-models

Version:
39 lines (38 loc) 2.26 kB
import { IIoK8sApimachineryPkgApisMetaV1ObjectMeta } from "@kubernetes-models/apimachinery/apis/meta/v1/ObjectMeta"; import { IIoK8sApiResourceV1ResourceClaimSpec } from "./ResourceClaimSpec.js"; import { IIoK8sApiResourceV1ResourceClaimStatus } from "./ResourceClaimStatus.js"; import { ModelData, TypeMeta, Model } from "@kubernetes-models/base"; /** * ResourceClaim describes a request for access to resources in the cluster, for use by workloads. For example, if a workload needs an accelerator device with specific properties, this is how that request is expressed. The status stanza tracks whether this claim has been satisfied and what specific resources have been allocated. */ export interface IResourceClaim extends TypeMeta { "apiVersion": "resource.k8s.io/v1"; "kind": "ResourceClaim"; /** * Standard object metadata */ "metadata"?: IIoK8sApimachineryPkgApisMetaV1ObjectMeta; /** * Spec describes what is being requested and how to configure it. The spec is immutable. */ "spec": IIoK8sApiResourceV1ResourceClaimSpec; /** * Status describes whether the claim is ready to use and what has been allocated. */ "status"?: IIoK8sApiResourceV1ResourceClaimStatus; } /** * ResourceClaim describes a request for access to resources in the cluster, for use by workloads. For example, if a workload needs an accelerator device with specific properties, this is how that request is expressed. The status stanza tracks whether this claim has been satisfied and what specific resources have been allocated. */ export declare class ResourceClaim extends Model<IResourceClaim> implements IResourceClaim { "apiVersion": IResourceClaim["apiVersion"]; "kind": IResourceClaim["kind"]; "metadata"?: IIoK8sApimachineryPkgApisMetaV1ObjectMeta; "spec": IIoK8sApiResourceV1ResourceClaimSpec; "status"?: IIoK8sApiResourceV1ResourceClaimStatus; static apiVersion: IResourceClaim["apiVersion"]; static kind: IResourceClaim["kind"]; static is: import("@kubernetes-models/base").TypeMetaGuard<IResourceClaim>; constructor(data?: ModelData<IResourceClaim>); } export type { IResourceClaim as IIoK8sApiResourceV1ResourceClaim, ResourceClaim as IoK8sApiResourceV1ResourceClaim };