Skip to main content

Class: ResourceQuota

Extends

  • any

Constructors

new ResourceQuota()

new ResourceQuota(json: KubeResourceQuota): ResourceQuota

Parameters

ParameterType
jsonKubeResourceQuota

Returns

ResourceQuota

Inherited from

makeKubeObject<KubeResourceQuota>('resourceQuota').constructor

Defined in

src/lib/k8s/cluster.ts:337

Properties

PropertyModifierTypeInherited fromDefined in
apiEndpointstaticApiWithNamespaceClient<KubeObjectInterface>-src/lib/k8s/resourceQuota.ts:34
apiListstatic(onList: (arg: any[]) => void, onError?: (err: ApiError) => void, opts?: ApiListSingleNamespaceOptions) => anymakeKubeObject<KubeResourceQuota>('resourceQuota').apiListsrc/lib/k8s/cluster.ts:311
classNamestaticstringmakeKubeObject<KubeResourceQuota>('resourceQuota').classNamesrc/lib/k8s/cluster.ts:338
getAuthorization?static(arg: string, resourceAttrs?: AuthRequestResourceAttrs) => anymakeKubeObject<KubeResourceQuota>('resourceQuota').getAuthorizationsrc/lib/k8s/cluster.ts:340
getErrorMessagestatic(err?: null | ApiError) => null | stringmakeKubeObject<KubeResourceQuota>('resourceQuota').getErrorMessagesrc/lib/k8s/cluster.ts:336
useApiGetstatic(onGet: (...args: any) => void, name: string, namespace?: string, onError?: (err: ApiError) => void) => voidmakeKubeObject<KubeResourceQuota>('resourceQuota').useApiGetsrc/lib/k8s/cluster.ts:321
useApiListstatic(onList: (arg: any[]) => void, onError?: (err: ApiError) => void, opts?: ApiListOptions) => anymakeKubeObject<KubeResourceQuota>('resourceQuota').useApiListsrc/lib/k8s/cluster.ts:316
useGetstatic(name: string, namespace?: string, opts?: object) => [any, null | ApiError] & QueryResponse<any, ApiError>makeKubeObject<KubeResourceQuota>('resourceQuota').useGetsrc/lib/k8s/cluster.ts:328

Accessors

limits

get limits(): string[]

Returns

string[]

Defined in

src/lib/k8s/resourceQuota.ts:60


requests

get requests(): string[]

Returns

string[]

Defined in

src/lib/k8s/resourceQuota.ts:44


resourceStats

get resourceStats(): object[]

Returns

object[]

Defined in

src/lib/k8s/resourceQuota.ts:76


spec

get spec(): spec

Returns

spec

Defined in

src/lib/k8s/resourceQuota.ts:36


status

get status(): status

Returns

status

Defined in

src/lib/k8s/resourceQuota.ts:40

Methods

useList()

static useList(options?: ApiListOptions): [null | any[], null | ApiError] & QueryListResponse<KubeList<any>, any, ApiError>

Parameters

ParameterType
options?ApiListOptions

Returns

[null | any[], null | ApiError] & QueryListResponse<KubeList<any>, any, ApiError>

Inherited from

makeKubeObject<KubeResourceQuota>('resourceQuota').useList

Defined in

src/lib/k8s/cluster.ts:327