Skip to content

@k8slens/extensions / Exports / Main / K8sApi / PriorityClass

Class: PriorityClass#

Main.K8sApi.PriorityClass

Hierarchy#

PriorityClass

Table of contents#

Constructors#

Properties#

Accessors#

Methods#

Constructors#

constructor#

new PriorityClass(«destructured»)

Parameters#

Name Type
«destructured» PriorityClassData

Overrides#

KubeObject.constructor

Properties#

apiVersion#

apiVersion: string

Inherited from#

KubeObject.apiVersion


description#

Optional description: string


globalDefault#

Optional globalDefault: boolean


kind#

kind: string

Inherited from#

KubeObject.kind


metadata#

metadata: ClusterScopedMetadata

Inherited from#

KubeObject.metadata


preemptionPolicy#

Optional preemptionPolicy: PreemptionPolicy


spec#

spec: void

Inherited from#

KubeObject.spec


status#

Optional status: void

Inherited from#

KubeObject.status


value#

Optional value: number


apiBase#

Static Readonly apiBase: "/apis/scheduling.k8s.io/v1/priorityclasses"

Overrides#

KubeObject.apiBase


create#

Static create: <Metadata, Status, Spec>(data: KubeJsonApiData<Metadata, Status, Spec>) => KubeObject<Metadata, Status, Spec>

Type declaration#

▸ <Metadata, Status, Spec>(data): KubeObject<Metadata, Status, Spec>

Deprecated

Switch to using __type instead

Type parameters#
Name Type
Metadata extends KubeObjectMetadata<KubeObjectScope> = KubeObjectMetadata<KubeObjectScope>
Status unknown
Spec unknown
Parameters#
Name Type
data KubeJsonApiData<Metadata, Status, Spec>
Returns#

KubeObject<Metadata, Status, Spec>

Inherited from#

KubeObject.create


isJsonApiData#

Static isJsonApiData: (object: unknown) => object is KubeJsonApiData<KubeJsonApiObjectMetadata<KubeObjectScope>, unknown, unknown>

Type declaration#

▸ (object): object is KubeJsonApiData<KubeJsonApiObjectMetadata<KubeObjectScope>, unknown, unknown>

Deprecated

Switch to using __type instead

Parameters#
Name Type
object unknown
Returns#

object is KubeJsonApiData<KubeJsonApiObjectMetadata<KubeObjectScope>, unknown, unknown>

Inherited from#

KubeObject.isJsonApiData


isJsonApiDataList#

Static isJsonApiDataList: (object: unknown, verifyItem: (val: unknown) => val is T) => object is KubeJsonApiDataList<T>

Type declaration#

▸ <T>(object, verifyItem): object is KubeJsonApiDataList<T>

Deprecated

Switch to using __type instead

Type parameters#
Name
T
Parameters#
Name Type
object unknown
verifyItem (val: unknown) => val is T
Returns#

object is KubeJsonApiDataList<T>

Inherited from#

KubeObject.isJsonApiDataList


isKubeJsonApiListMetadata#

Static isKubeJsonApiListMetadata: (object: unknown) => object is KubeJsonApiListMetadata

Type declaration#

▸ (object): object is KubeJsonApiListMetadata

Deprecated

Switch to using __type instead

Parameters#
Name Type
object unknown
Returns#

object is KubeJsonApiListMetadata

Inherited from#

KubeObject.isKubeJsonApiListMetadata


isKubeJsonApiMetadata#

Static isKubeJsonApiMetadata: (object: unknown) => object is KubeJsonApiObjectMetadata<KubeObjectScope>

Type declaration#

▸ (object): object is KubeJsonApiObjectMetadata<KubeObjectScope>

Deprecated

Switch to using __type instead

Parameters#
Name Type
object unknown
Returns#

object is KubeJsonApiObjectMetadata<KubeObjectScope>

Inherited from#

KubeObject.isKubeJsonApiMetadata


isNonSystem#

Static isNonSystem: (item: KubeObject<KubeObjectMetadata<KubeObjectScope>, unknown, unknown> | KubeJsonApiData<KubeJsonApiObjectMetadata<KubeObjectScope>, unknown, unknown>) => boolean

Type declaration#

▸ (item): boolean

Deprecated

Switch to using __type instead

Parameters#
Name Type
item KubeObject<KubeObjectMetadata<KubeObjectScope>, unknown, unknown> | KubeJsonApiData<KubeJsonApiObjectMetadata<KubeObjectScope>, unknown, unknown>
Returns#

boolean

Inherited from#

KubeObject.isNonSystem


isPartialJsonApiData#

Static isPartialJsonApiData: (object: unknown) => object is Partial<KubeJsonApiData<KubeJsonApiObjectMetadata<KubeObjectScope>, unknown, unknown>>

Type declaration#

▸ (object): object is Partial<KubeJsonApiData<KubeJsonApiObjectMetadata<KubeObjectScope>, unknown, unknown>>

Deprecated

Switch to using __type instead

Parameters#
Name Type
object unknown
Returns#

object is Partial<KubeJsonApiData<KubeJsonApiObjectMetadata<KubeObjectScope>, unknown, unknown>>

Inherited from#

KubeObject.isPartialJsonApiData


isPartialJsonApiMetadata#

Static isPartialJsonApiMetadata: (object: unknown) => object is Partial<KubeJsonApiObjectMetadata<KubeObjectScope>>

Type declaration#

▸ (object): object is Partial<KubeJsonApiObjectMetadata<KubeObjectScope>>

Deprecated

Switch to using __type instead

Parameters#
Name Type
object unknown
Returns#

object is Partial<KubeJsonApiObjectMetadata<KubeObjectScope>>

Inherited from#

KubeObject.isPartialJsonApiMetadata


kind#

Static Readonly kind: "PriorityClass"

Overrides#

KubeObject.kind


namespaced#

Static Readonly namespaced: false

Overrides#

KubeObject.namespaced


stringifyLabels#

Static stringifyLabels: (labels?: Partial<Record<string, string>>) => string[]

Type declaration#

▸ (labels?): string[]

Deprecated

Switch to using __type instead

Parameters#
Name Type
labels? Partial<Record<string, string>>
Returns#

string[]

Inherited from#

KubeObject.stringifyLabels

Accessors#

get selfLink(): string

Returns#

string

Inherited from#

KubeObject.selfLink

Methods#

delete#

delete(params?): void

Deprecated

use KubeApi.delete instead

Parameters#

Name Type
params? object

Returns#

void

Inherited from#

KubeObject.delete


getAge#

getAge(humanize?, compact?, fromNow?): string | number

Deprecated

This function computes a new "now" on every call might cause subtle issues if called multiple times

NOTE: this function also is not reactive to updates in the current time so it should not be used for rendering

Parameters#

Name Type
humanize? boolean
compact? boolean
fromNow? boolean

Returns#

string | number

Inherited from#

KubeObject.getAge


getAnnotations#

getAnnotations(filter?): string[]

Parameters#

Name Type
filter? boolean

Returns#

string[]

Inherited from#

KubeObject.getAnnotations


getCreationTimestamp#

getCreationTimestamp(): number

This function computes the number of milliseconds from the UNIX EPOCH to the creation timestamp of this object.

Returns#

number

Inherited from#

KubeObject.getCreationTimestamp


getDescription#

getDescription(): string

Returns#

string


getFinalizers#

getFinalizers(): string[]

Returns#

string[]

Inherited from#

KubeObject.getFinalizers


getGlobalDefault#

getGlobalDefault(): string

Returns#

string


getId#

getId(): string

Returns#

string

Inherited from#

KubeObject.getId


getLabels#

getLabels(): string[]

Returns#

string[]

Inherited from#

KubeObject.getLabels


getName#

getName(): string

Returns#

string

Inherited from#

KubeObject.getName


getNs#

getNs(): undefined

Returns#

undefined

Inherited from#

KubeObject.getNs


getOwnerRefs#

getOwnerRefs(): { apiVersion: string ; blockOwnerDeletion?: boolean ; controller?: boolean ; kind: string ; name: string ; namespace: undefined ; uid: string }[]

Returns#

{ apiVersion: string ; blockOwnerDeletion?: boolean ; controller?: boolean ; kind: string ; name: string ; namespace: undefined ; uid: string }[]

Inherited from#

KubeObject.getOwnerRefs


getPreemptionPolicy#

getPreemptionPolicy(): PreemptionPolicy

Returns#

PreemptionPolicy


getResourceVersion#

getResourceVersion(): string

Returns#

string

Inherited from#

KubeObject.getResourceVersion


getScopedName#

getScopedName(): string

Returns#

string

Inherited from#

KubeObject.getScopedName


getSearchFields#

getSearchFields(): (undefined | string)[]

Returns#

(undefined | string)[]

Inherited from#

KubeObject.getSearchFields


getTimeDiffFromNow#

getTimeDiffFromNow(): number

Deprecated

This function computes a new "now". Switch to using getCreationTimestamp instead

Returns#

number

Inherited from#

KubeObject.getTimeDiffFromNow


getValue#

getValue(): undefined | number

Returns#

undefined | number


patch#

patch(patch): Promise<null | KubeJsonApiData<KubeJsonApiObjectMetadata<KubeObjectScope>, unknown, unknown>>

Deprecated

use KubeApi.patch instead

Parameters#

Name Type
patch Patch

Returns#

Promise<null | KubeJsonApiData<KubeJsonApiObjectMetadata<KubeObjectScope>, unknown, unknown>>

Inherited from#

KubeObject.patch


toPlainObject#

toPlainObject(): Record<string, unknown>

Returns#

Record<string, unknown>

Inherited from#

KubeObject.toPlainObject


update#

update(data): Promise<null | KubeJsonApiData<KubeJsonApiObjectMetadata<KubeObjectScope>, unknown, unknown>>

Deprecated

use KubeApi.patch instead

Parameters#

Name Type
data Partial<PriorityClass>

Returns#

Promise<null | KubeJsonApiData<KubeJsonApiObjectMetadata<KubeObjectScope>, unknown, unknown>>

Inherited from#

KubeObject.update