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
- refreshResourceVersion
- setResourceVersion
- update
- watch
Constructors#
constructor#
• new NodesApi(options
)
Parameters#
Name | Type |
---|---|
options |
IKubeApiOptions <Node> |
Inherited from#
Properties#
apiBase#
• Readonly
apiBase: string
Inherited from#
apiGroup#
• Readonly
apiGroup: string
Inherited from#
apiPrefix#
• Readonly
apiPrefix: string
Inherited from#
apiResource#
• Readonly
apiResource: string
Inherited from#
apiVersion#
• Readonly
apiVersion: string
Inherited from#
apiVersionPreferred#
• Optional
Readonly
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
Methods#
checkPreferredVersion#
▸ Protected
checkPreferredVersion(): Promise
<void>
Returns#
Promise
<void>
Inherited from#
create#
▸ create(__namedParameters?
, data?
): Promise
<Node>
Parameters#
Name | Type |
---|---|
__namedParameters |
Object |
__namedParameters.name |
|
__namedParameters.namespace |
|
data? |
Partial <Node> |
Returns#
Promise
<Node>
Inherited from#
delete#
▸ delete(__namedParameters
): Promise
<KubeJsonApiData>
Parameters#
Name | Type |
---|---|
__namedParameters |
Object |
Returns#
Promise
<KubeJsonApiData>
Inherited from#
get#
▸ get(__namedParameters?
, query?
): Promise
<Node>
Parameters#
Name | Type |
---|---|
__namedParameters |
Object |
__namedParameters.name |
|
__namedParameters.namespace |
|
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 |
Object |
__namedParameters.name |
|
__namedParameters.namespace |
|
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#
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 |
Object |
__namedParameters.name |
|
__namedParameters.namespace |
|
data? |
Partial <Node> |
Returns#
Promise
<Node>
Inherited from#
watch#
▸ watch(opts?
): () => void
Parameters#
Name | Type |
---|---|
opts |
KubeApiWatchOptions |
Returns#
fn
▸ (): void
Returns#
void