@kubernetes-models/apimachinery
Version:
Types for Kubernetes API objects
35 lines (34 loc) • 1.98 kB
TypeScript
import { IIoK8sApimachineryPkgApisMetaV1APIResource } from "./APIResource.js";
import { ModelData, Model } from "@kubernetes-models/base";
/**
* APIResourceList is a list of APIResource, it is used to expose the name of the resources supported in a specific group and version, and if the resource is namespaced.
*/
export interface IAPIResourceList {
/**
* 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: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
*/
"apiVersion"?: string;
/**
* groupVersion is the group and version this APIResourceList is for.
*/
"groupVersion": string;
/**
* 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: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
*/
"kind"?: string;
/**
* resources contains the name of the resources and if they are namespaced.
*/
"resources": Array<IIoK8sApimachineryPkgApisMetaV1APIResource>;
}
/**
* APIResourceList is a list of APIResource, it is used to expose the name of the resources supported in a specific group and version, and if the resource is namespaced.
*/
export declare class APIResourceList extends Model<IAPIResourceList> implements IAPIResourceList {
"apiVersion"?: IAPIResourceList["apiVersion"];
"groupVersion": string;
"kind"?: IAPIResourceList["kind"];
"resources": Array<IIoK8sApimachineryPkgApisMetaV1APIResource>;
constructor(data?: ModelData<IAPIResourceList>);
}
export type { IAPIResourceList as IIoK8sApimachineryPkgApisMetaV1APIResourceList, APIResourceList as IoK8sApimachineryPkgApisMetaV1APIResourceList };