Class: NodesApi#
Hierarchy#
↳ NodesApi
Table of contents#
Constructors#
Properties#
- apiBase
 - apiGroup
 - apiPrefix
 - apiResource
 - apiVersion
 - apiVersionPreferred
 - isNamespaced
 - kind
 - objectConstructor
 - options
 - request
 - resourceVersions
 - watchDisposer
 
Accessors#
Methods#
- checkPreferredVersion
 - create
 - delete
 - get
 - getResourceVersion
 - getUrl
 - getWatchUrl
 - list
 - modifyWatchEvent
 - normalizeQuery
 - parseResponse
 - patch
 - refreshResourceVersion
 - setResourceVersion
 - update
 - watch
 
Constructors#
constructor#
• new NodesApi(options)
Parameters#
| Name | Type | 
|---|---|
options | 
IKubeApiOptions<Node> | 
Inherited from#
Properties#
apiBase#
• apiBase: string
Inherited from#
apiGroup#
• apiGroup: string
Inherited from#
apiPrefix#
• apiPrefix: string
Inherited from#
apiResource#
• Readonly apiResource: string
Inherited from#
apiVersion#
• Readonly apiVersion: string
Inherited from#
apiVersionPreferred#
• Optional apiVersionPreferred: string
Inherited from#
isNamespaced#
• Readonly isNamespaced: boolean
Inherited from#
kind#
• Readonly kind: string
Inherited from#
objectConstructor#
• objectConstructor: KubeObjectConstructor<Node>
Inherited from#
options#
• Protected options: IKubeApiOptions<Node>
Inherited from#
request#
• Protected request: KubeJsonApi
Inherited from#
resourceVersions#
• Protected resourceVersions: Map<string, string>
Inherited from#
watchDisposer#
• Protected watchDisposer: () => void
Type declaration#
▸ (): void
Returns#
void
Inherited from#
Accessors#
apiVersionWithGroup#
• get apiVersionWithGroup(): string
Returns#
string
Inherited from#
KubeApi.apiVersionWithGroup
Methods#
checkPreferredVersion#
▸ Protected checkPreferredVersion(): Promise<void>
Returns#
Promise<void>
Inherited from#
create#
▸ create(__namedParameters, data?): Promise<Node>
Parameters#
| Name | Type | 
|---|---|
__namedParameters | 
Partial<ResourceDescriptor> | 
data? | 
PartialKubeObject<Node> | 
Returns#
Promise<Node>
Inherited from#
delete#
▸ delete(__namedParameters): Promise<KubeJsonApiData>
Parameters#
| Name | Type | 
|---|---|
__namedParameters | 
DeleteResourceDescriptor | 
Returns#
Promise<KubeJsonApiData>
Inherited from#
get#
▸ get(desc, query?): Promise<Node>
Parameters#
| Name | Type | 
|---|---|
desc | 
ResourceDescriptor | 
query? | 
IKubeApiQueryParams | 
Returns#
Promise<Node>
Inherited from#
getResourceVersion#
▸ getResourceVersion(namespace?): string
Parameters#
| Name | Type | Default value | 
|---|---|---|
namespace | 
string | 
"" | 
Returns#
string
Inherited from#
getUrl#
▸ getUrl(__namedParameters?, query?): string
Parameters#
| Name | Type | 
|---|---|
__namedParameters | 
Partial<ResourceDescriptor> | 
query? | 
Partial<IKubeApiQueryParams> | 
Returns#
string
Inherited from#
getWatchUrl#
▸ getWatchUrl(namespace?, query?): string
Parameters#
| Name | Type | Default value | 
|---|---|---|
namespace | 
string | 
"" | 
query | 
IKubeApiQueryParams | 
{} | 
Returns#
string
Inherited from#
list#
▸ list(__namedParameters?, query?): Promise<Node[]>
Parameters#
| Name | Type | 
|---|---|
__namedParameters | 
KubeApiListOptions | 
query? | 
IKubeApiQueryParams | 
Returns#
Promise<Node[]>
Inherited from#
modifyWatchEvent#
▸ Protected modifyWatchEvent(event): void
Parameters#
| Name | Type | 
|---|---|
event | 
IKubeWatchEvent<KubeJsonApiData> | 
Returns#
void
Inherited from#
normalizeQuery#
▸ Protected normalizeQuery(query?): Partial<IKubeApiQueryParams>
Parameters#
| Name | Type | 
|---|---|
query | 
Partial<IKubeApiQueryParams> | 
Returns#
Partial<IKubeApiQueryParams>
Inherited from#
parseResponse#
▸ Protected parseResponse(data, namespace?): Node | Node[]
Parameters#
| Name | Type | 
|---|---|
data | 
unknown | 
namespace? | 
string | 
Returns#
Inherited from#
patch#
▸ patch(desc, data?, strategy?): Promise<Node>
Parameters#
| Name | Type | Default value | 
|---|---|---|
desc | 
ResourceDescriptor | 
undefined | 
data? | 
Patch | Partial<Node> | 
undefined | 
strategy | 
KubeApiPatchType | 
"strategic" | 
Returns#
Promise<Node>
Inherited from#
refreshResourceVersion#
▸ refreshResourceVersion(params?): Promise<Node[]>
Parameters#
| Name | Type | 
|---|---|
params? | 
KubeApiListOptions | 
Returns#
Promise<Node[]>
Inherited from#
KubeApi.refreshResourceVersion
setResourceVersion#
▸ setResourceVersion(namespace?, newVersion): void
Parameters#
| Name | Type | Default value | 
|---|---|---|
namespace | 
string | 
"" | 
newVersion | 
string | 
undefined | 
Returns#
void
Inherited from#
update#
▸ update(__namedParameters, data): Promise<Node>
Parameters#
| Name | Type | 
|---|---|
__namedParameters | 
ResourceDescriptor | 
data | 
PartialKubeObject<Node> | 
Returns#
Promise<Node>
Inherited from#
watch#
▸ watch(opts?): () => void
Parameters#
| Name | Type | 
|---|---|
opts | 
KubeApiWatchOptions | 
Returns#
fn
▸ (): void
Returns#
void