@nirvana-labs/nirvana 1.55.4 → 1.56.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +18 -0
- package/bin/migration-config.json +300 -0
- package/client.d.mts +3 -0
- package/client.d.mts.map +1 -1
- package/client.d.ts +3 -0
- package/client.d.ts.map +1 -1
- package/client.js +3 -0
- package/client.js.map +1 -1
- package/client.mjs +3 -0
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/index.d.mts +1 -0
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +1 -0
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +3 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -0
- package/resources/index.mjs.map +1 -1
- package/resources/nks/clusters/availability.d.mts +65 -0
- package/resources/nks/clusters/availability.d.mts.map +1 -0
- package/resources/nks/clusters/availability.d.ts +65 -0
- package/resources/nks/clusters/availability.d.ts.map +1 -0
- package/resources/nks/clusters/availability.js +46 -0
- package/resources/nks/clusters/availability.js.map +1 -0
- package/resources/nks/clusters/availability.mjs +42 -0
- package/resources/nks/clusters/availability.mjs.map +1 -0
- package/resources/nks/clusters/clusters.d.mts +191 -0
- package/resources/nks/clusters/clusters.d.mts.map +1 -0
- package/resources/nks/clusters/clusters.d.ts +191 -0
- package/resources/nks/clusters/clusters.d.ts.map +1 -0
- package/resources/nks/clusters/clusters.js +96 -0
- package/resources/nks/clusters/clusters.js.map +1 -0
- package/resources/nks/clusters/clusters.mjs +91 -0
- package/resources/nks/clusters/clusters.mjs.map +1 -0
- package/resources/nks/clusters/index.d.mts +4 -0
- package/resources/nks/clusters/index.d.mts.map +1 -0
- package/resources/nks/clusters/index.d.ts +4 -0
- package/resources/nks/clusters/index.d.ts.map +1 -0
- package/resources/nks/clusters/index.js +11 -0
- package/resources/nks/clusters/index.js.map +1 -0
- package/resources/nks/clusters/index.mjs +5 -0
- package/resources/nks/clusters/index.mjs.map +1 -0
- package/resources/nks/clusters/kubeconfig.d.mts +18 -0
- package/resources/nks/clusters/kubeconfig.d.mts.map +1 -0
- package/resources/nks/clusters/kubeconfig.d.ts +18 -0
- package/resources/nks/clusters/kubeconfig.d.ts.map +1 -0
- package/resources/nks/clusters/kubeconfig.js +23 -0
- package/resources/nks/clusters/kubeconfig.js.map +1 -0
- package/resources/nks/clusters/kubeconfig.mjs +19 -0
- package/resources/nks/clusters/kubeconfig.mjs.map +1 -0
- package/resources/nks/clusters/pools/availability.d.mts +74 -0
- package/resources/nks/clusters/pools/availability.d.mts.map +1 -0
- package/resources/nks/clusters/pools/availability.d.ts +74 -0
- package/resources/nks/clusters/pools/availability.d.ts.map +1 -0
- package/resources/nks/clusters/pools/availability.js +56 -0
- package/resources/nks/clusters/pools/availability.js.map +1 -0
- package/resources/nks/clusters/pools/availability.mjs +52 -0
- package/resources/nks/clusters/pools/availability.mjs.map +1 -0
- package/resources/nks/clusters/pools/index.d.mts +4 -0
- package/resources/nks/clusters/pools/index.d.mts.map +1 -0
- package/resources/nks/clusters/pools/index.d.ts +4 -0
- package/resources/nks/clusters/pools/index.d.ts.map +1 -0
- package/resources/nks/clusters/pools/index.js +11 -0
- package/resources/nks/clusters/pools/index.js.map +1 -0
- package/resources/nks/clusters/pools/index.mjs +5 -0
- package/resources/nks/clusters/pools/index.mjs.map +1 -0
- package/resources/nks/clusters/pools/nodes/index.d.mts +3 -0
- package/resources/nks/clusters/pools/nodes/index.d.mts.map +1 -0
- package/resources/nks/clusters/pools/nodes/index.d.ts +3 -0
- package/resources/nks/clusters/pools/nodes/index.d.ts.map +1 -0
- package/resources/nks/clusters/pools/nodes/index.js +9 -0
- package/resources/nks/clusters/pools/nodes/index.js.map +1 -0
- package/resources/nks/clusters/pools/nodes/index.mjs +4 -0
- package/resources/nks/clusters/pools/nodes/index.mjs.map +1 -0
- package/resources/nks/clusters/pools/nodes/nodes.d.mts +95 -0
- package/resources/nks/clusters/pools/nodes/nodes.d.mts.map +1 -0
- package/resources/nks/clusters/pools/nodes/nodes.d.ts +95 -0
- package/resources/nks/clusters/pools/nodes/nodes.d.ts.map +1 -0
- package/resources/nks/clusters/pools/nodes/nodes.js +52 -0
- package/resources/nks/clusters/pools/nodes/nodes.js.map +1 -0
- package/resources/nks/clusters/pools/nodes/nodes.mjs +47 -0
- package/resources/nks/clusters/pools/nodes/nodes.mjs.map +1 -0
- package/resources/nks/clusters/pools/nodes/volumes.d.mts +109 -0
- package/resources/nks/clusters/pools/nodes/volumes.d.mts.map +1 -0
- package/resources/nks/clusters/pools/nodes/volumes.d.ts +109 -0
- package/resources/nks/clusters/pools/nodes/volumes.d.ts.map +1 -0
- package/resources/nks/clusters/pools/nodes/volumes.js +49 -0
- package/resources/nks/clusters/pools/nodes/volumes.js.map +1 -0
- package/resources/nks/clusters/pools/nodes/volumes.mjs +45 -0
- package/resources/nks/clusters/pools/nodes/volumes.mjs.map +1 -0
- package/resources/nks/clusters/pools/nodes.d.mts +2 -0
- package/resources/nks/clusters/pools/nodes.d.mts.map +1 -0
- package/resources/nks/clusters/pools/nodes.d.ts +2 -0
- package/resources/nks/clusters/pools/nodes.d.ts.map +1 -0
- package/resources/nks/clusters/pools/nodes.js +6 -0
- package/resources/nks/clusters/pools/nodes.js.map +1 -0
- package/resources/nks/clusters/pools/nodes.mjs +3 -0
- package/resources/nks/clusters/pools/nodes.mjs.map +1 -0
- package/resources/nks/clusters/pools/pools.d.mts +221 -0
- package/resources/nks/clusters/pools/pools.d.mts.map +1 -0
- package/resources/nks/clusters/pools/pools.d.ts +221 -0
- package/resources/nks/clusters/pools/pools.d.ts.map +1 -0
- package/resources/nks/clusters/pools/pools.js +109 -0
- package/resources/nks/clusters/pools/pools.js.map +1 -0
- package/resources/nks/clusters/pools/pools.mjs +104 -0
- package/resources/nks/clusters/pools/pools.mjs.map +1 -0
- package/resources/nks/clusters/pools.d.mts +2 -0
- package/resources/nks/clusters/pools.d.mts.map +1 -0
- package/resources/nks/clusters/pools.d.ts +2 -0
- package/resources/nks/clusters/pools.d.ts.map +1 -0
- package/resources/nks/clusters/pools.js +6 -0
- package/resources/nks/clusters/pools.js.map +1 -0
- package/resources/nks/clusters/pools.mjs +3 -0
- package/resources/nks/clusters/pools.mjs.map +1 -0
- package/resources/nks/clusters.d.mts +2 -0
- package/resources/nks/clusters.d.mts.map +1 -0
- package/resources/nks/clusters.d.ts +2 -0
- package/resources/nks/clusters.d.ts.map +1 -0
- package/resources/nks/clusters.js +6 -0
- package/resources/nks/clusters.js.map +1 -0
- package/resources/nks/clusters.mjs +3 -0
- package/resources/nks/clusters.mjs.map +1 -0
- package/resources/nks/index.d.mts +3 -0
- package/resources/nks/index.d.mts.map +1 -0
- package/resources/nks/index.d.ts +3 -0
- package/resources/nks/index.d.ts.map +1 -0
- package/resources/nks/index.js +9 -0
- package/resources/nks/index.js.map +1 -0
- package/resources/nks/index.mjs +4 -0
- package/resources/nks/index.mjs.map +1 -0
- package/resources/nks/nks.d.mts +10 -0
- package/resources/nks/nks.d.mts.map +1 -0
- package/resources/nks/nks.d.ts +10 -0
- package/resources/nks/nks.d.ts.map +1 -0
- package/resources/nks/nks.js +17 -0
- package/resources/nks/nks.js.map +1 -0
- package/resources/nks/nks.mjs +12 -0
- package/resources/nks/nks.mjs.map +1 -0
- package/resources/nks.d.mts +2 -0
- package/resources/nks.d.mts.map +1 -0
- package/resources/nks.d.ts +2 -0
- package/resources/nks.d.ts.map +1 -0
- package/resources/nks.js +6 -0
- package/resources/nks.js.map +1 -0
- package/resources/nks.mjs +3 -0
- package/resources/nks.mjs.map +1 -0
- package/resources/operations/operations.d.mts +1 -1
- package/resources/operations/operations.d.mts.map +1 -1
- package/resources/operations/operations.d.ts +1 -1
- package/resources/operations/operations.d.ts.map +1 -1
- package/resources/regions/regions.d.mts +13 -0
- package/resources/regions/regions.d.mts.map +1 -1
- package/resources/regions/regions.d.ts +13 -0
- package/resources/regions/regions.d.ts.map +1 -1
- package/src/client.ts +5 -0
- package/src/resources/index.ts +1 -0
- package/src/resources/nks/api.md +77 -0
- package/src/resources/nks/clusters/availability.ts +93 -0
- package/src/resources/nks/clusters/clusters.ts +273 -0
- package/src/resources/nks/clusters/index.ts +25 -0
- package/src/resources/nks/clusters/kubeconfig.ts +23 -0
- package/src/resources/nks/clusters/pools/availability.ts +103 -0
- package/src/resources/nks/clusters/pools/index.ts +23 -0
- package/src/resources/nks/clusters/pools/nodes/index.ts +18 -0
- package/src/resources/nks/clusters/pools/nodes/nodes.ts +150 -0
- package/src/resources/nks/clusters/pools/nodes/volumes.ts +152 -0
- package/src/resources/nks/clusters/pools/nodes.ts +3 -0
- package/src/resources/nks/clusters/pools/pools.ts +311 -0
- package/src/resources/nks/clusters/pools.ts +3 -0
- package/src/resources/nks/clusters.ts +3 -0
- package/src/resources/nks/index.ts +13 -0
- package/src/resources/nks/nks.ts +33 -0
- package/src/resources/nks.ts +3 -0
- package/src/resources/operations/operations.ts +1 -1
- package/src/resources/regions/regions.ts +15 -0
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { APIResource } from "../../../../core/resource.js";
|
|
2
|
+
import * as PoolsAPI from "./pools.js";
|
|
3
|
+
import { APIPromise } from "../../../../core/api-promise.js";
|
|
4
|
+
import { RequestOptions } from "../../../../internal/request-options.js";
|
|
5
|
+
export declare class Availability extends APIResource {
|
|
6
|
+
/**
|
|
7
|
+
* Check if a node pool can be created in an NKS cluster
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* ```ts
|
|
11
|
+
* await client.nks.clusters.pools.availability.create(
|
|
12
|
+
* 'cluster_id',
|
|
13
|
+
* {
|
|
14
|
+
* name: 'my-node-pool',
|
|
15
|
+
* node_config: {
|
|
16
|
+
* ram_gi: 8,
|
|
17
|
+
* storage_gi: 100,
|
|
18
|
+
* vcpu: 4,
|
|
19
|
+
* },
|
|
20
|
+
* node_count: 3,
|
|
21
|
+
* },
|
|
22
|
+
* );
|
|
23
|
+
* ```
|
|
24
|
+
*/
|
|
25
|
+
create(clusterID: string, body: AvailabilityCreateParams, options?: RequestOptions): APIPromise<void>;
|
|
26
|
+
/**
|
|
27
|
+
* Check if an NKS node pool can be updated
|
|
28
|
+
*
|
|
29
|
+
* @example
|
|
30
|
+
* ```ts
|
|
31
|
+
* await client.nks.clusters.pools.availability.update(
|
|
32
|
+
* 'pool_id',
|
|
33
|
+
* { cluster_id: 'cluster_id' },
|
|
34
|
+
* );
|
|
35
|
+
* ```
|
|
36
|
+
*/
|
|
37
|
+
update(poolID: string, params: AvailabilityUpdateParams, options?: RequestOptions): APIPromise<void>;
|
|
38
|
+
}
|
|
39
|
+
export interface AvailabilityCreateParams {
|
|
40
|
+
/**
|
|
41
|
+
* Name of the node pool.
|
|
42
|
+
*/
|
|
43
|
+
name: string;
|
|
44
|
+
/**
|
|
45
|
+
* Node configuration.
|
|
46
|
+
*/
|
|
47
|
+
node_config: PoolsAPI.NKSNodeConfig;
|
|
48
|
+
/**
|
|
49
|
+
* Number of nodes. Must be between 1 and 100.
|
|
50
|
+
*/
|
|
51
|
+
node_count: number;
|
|
52
|
+
/**
|
|
53
|
+
* Tags to attach to the node pool.
|
|
54
|
+
*/
|
|
55
|
+
tags?: Array<string>;
|
|
56
|
+
}
|
|
57
|
+
export interface AvailabilityUpdateParams {
|
|
58
|
+
/**
|
|
59
|
+
* Path param: Cluster ID
|
|
60
|
+
*/
|
|
61
|
+
cluster_id: string;
|
|
62
|
+
/**
|
|
63
|
+
* Body param: Name of the node pool.
|
|
64
|
+
*/
|
|
65
|
+
name?: string;
|
|
66
|
+
/**
|
|
67
|
+
* Body param: Tags to attach to the node pool.
|
|
68
|
+
*/
|
|
69
|
+
tags?: Array<string>;
|
|
70
|
+
}
|
|
71
|
+
export declare namespace Availability {
|
|
72
|
+
export { type AvailabilityCreateParams as AvailabilityCreateParams, type AvailabilityUpdateParams as AvailabilityUpdateParams, };
|
|
73
|
+
}
|
|
74
|
+
//# sourceMappingURL=availability.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"availability.d.ts","sourceRoot":"","sources":["../../../../src/resources/nks/clusters/pools/availability.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,QAAQ;OACb,EAAE,UAAU,EAAE;OAEd,EAAE,cAAc,EAAE;AAGzB,qBAAa,YAAa,SAAQ,WAAW;IAC3C;;;;;;;;;;;;;;;;;;OAkBG;IACH,MAAM,CAAC,SAAS,EAAE,MAAM,EAAE,IAAI,EAAE,wBAAwB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;IAQrG;;;;;;;;;;OAUG;IACH,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,wBAAwB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;CAQrG;AAED,MAAM,WAAW,wBAAwB;IACvC;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,WAAW,EAAE,QAAQ,CAAC,aAAa,CAAC;IAEpC;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,IAAI,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CACtB;AAED,MAAM,WAAW,wBAAwB;IACvC;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,IAAI,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CACtB;AAED,MAAM,CAAC,OAAO,WAAW,YAAY,CAAC;IACpC,OAAO,EACL,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,wBAAwB,IAAI,wBAAwB,GAC1D,CAAC;CACH"}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.Availability = void 0;
|
|
5
|
+
const resource_1 = require("../../../../core/resource.js");
|
|
6
|
+
const headers_1 = require("../../../../internal/headers.js");
|
|
7
|
+
const path_1 = require("../../../../internal/utils/path.js");
|
|
8
|
+
class Availability extends resource_1.APIResource {
|
|
9
|
+
/**
|
|
10
|
+
* Check if a node pool can be created in an NKS cluster
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* ```ts
|
|
14
|
+
* await client.nks.clusters.pools.availability.create(
|
|
15
|
+
* 'cluster_id',
|
|
16
|
+
* {
|
|
17
|
+
* name: 'my-node-pool',
|
|
18
|
+
* node_config: {
|
|
19
|
+
* ram_gi: 8,
|
|
20
|
+
* storage_gi: 100,
|
|
21
|
+
* vcpu: 4,
|
|
22
|
+
* },
|
|
23
|
+
* node_count: 3,
|
|
24
|
+
* },
|
|
25
|
+
* );
|
|
26
|
+
* ```
|
|
27
|
+
*/
|
|
28
|
+
create(clusterID, body, options) {
|
|
29
|
+
return this._client.post((0, path_1.path) `/v1/nks/clusters/${clusterID}/pools/availability`, {
|
|
30
|
+
body,
|
|
31
|
+
...options,
|
|
32
|
+
headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Check if an NKS node pool can be updated
|
|
37
|
+
*
|
|
38
|
+
* @example
|
|
39
|
+
* ```ts
|
|
40
|
+
* await client.nks.clusters.pools.availability.update(
|
|
41
|
+
* 'pool_id',
|
|
42
|
+
* { cluster_id: 'cluster_id' },
|
|
43
|
+
* );
|
|
44
|
+
* ```
|
|
45
|
+
*/
|
|
46
|
+
update(poolID, params, options) {
|
|
47
|
+
const { cluster_id, ...body } = params;
|
|
48
|
+
return this._client.patch((0, path_1.path) `/v1/nks/clusters/${cluster_id}/pools/${poolID}/availability`, {
|
|
49
|
+
body,
|
|
50
|
+
...options,
|
|
51
|
+
headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
exports.Availability = Availability;
|
|
56
|
+
//# sourceMappingURL=availability.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"availability.js","sourceRoot":"","sources":["../../../../src/resources/nks/clusters/pools/availability.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,2DAAwD;AAGxD,6DAA4D;AAE5D,6DAAuD;AAEvD,MAAa,YAAa,SAAQ,sBAAW;IAC3C;;;;;;;;;;;;;;;;;;OAkBG;IACH,MAAM,CAAC,SAAiB,EAAE,IAA8B,EAAE,OAAwB;QAChF,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,oBAAoB,SAAS,qBAAqB,EAAE;YAC/E,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;OAUG;IACH,MAAM,CAAC,MAAc,EAAE,MAAgC,EAAE,OAAwB;QAC/E,MAAM,EAAE,UAAU,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QACvC,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAA,WAAI,EAAA,oBAAoB,UAAU,UAAU,MAAM,eAAe,EAAE;YAC3F,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;CACF;AA/CD,oCA+CC"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../../../../core/resource.mjs";
|
|
3
|
+
import { buildHeaders } from "../../../../internal/headers.mjs";
|
|
4
|
+
import { path } from "../../../../internal/utils/path.mjs";
|
|
5
|
+
export class Availability extends APIResource {
|
|
6
|
+
/**
|
|
7
|
+
* Check if a node pool can be created in an NKS cluster
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* ```ts
|
|
11
|
+
* await client.nks.clusters.pools.availability.create(
|
|
12
|
+
* 'cluster_id',
|
|
13
|
+
* {
|
|
14
|
+
* name: 'my-node-pool',
|
|
15
|
+
* node_config: {
|
|
16
|
+
* ram_gi: 8,
|
|
17
|
+
* storage_gi: 100,
|
|
18
|
+
* vcpu: 4,
|
|
19
|
+
* },
|
|
20
|
+
* node_count: 3,
|
|
21
|
+
* },
|
|
22
|
+
* );
|
|
23
|
+
* ```
|
|
24
|
+
*/
|
|
25
|
+
create(clusterID, body, options) {
|
|
26
|
+
return this._client.post(path `/v1/nks/clusters/${clusterID}/pools/availability`, {
|
|
27
|
+
body,
|
|
28
|
+
...options,
|
|
29
|
+
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Check if an NKS node pool can be updated
|
|
34
|
+
*
|
|
35
|
+
* @example
|
|
36
|
+
* ```ts
|
|
37
|
+
* await client.nks.clusters.pools.availability.update(
|
|
38
|
+
* 'pool_id',
|
|
39
|
+
* { cluster_id: 'cluster_id' },
|
|
40
|
+
* );
|
|
41
|
+
* ```
|
|
42
|
+
*/
|
|
43
|
+
update(poolID, params, options) {
|
|
44
|
+
const { cluster_id, ...body } = params;
|
|
45
|
+
return this._client.patch(path `/v1/nks/clusters/${cluster_id}/pools/${poolID}/availability`, {
|
|
46
|
+
body,
|
|
47
|
+
...options,
|
|
48
|
+
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
//# sourceMappingURL=availability.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"availability.mjs","sourceRoot":"","sources":["../../../../src/resources/nks/clusters/pools/availability.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAGf,EAAE,YAAY,EAAE;OAEhB,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,YAAa,SAAQ,WAAW;IAC3C;;;;;;;;;;;;;;;;;;OAkBG;IACH,MAAM,CAAC,SAAiB,EAAE,IAA8B,EAAE,OAAwB;QAChF,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,oBAAoB,SAAS,qBAAqB,EAAE;YAC/E,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;OAUG;IACH,MAAM,CAAC,MAAc,EAAE,MAAgC,EAAE,OAAwB;QAC/E,MAAM,EAAE,UAAU,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QACvC,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAA,oBAAoB,UAAU,UAAU,MAAM,eAAe,EAAE;YAC3F,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;CACF"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { Availability, type AvailabilityCreateParams, type AvailabilityUpdateParams } from "./availability.mjs";
|
|
2
|
+
export { Nodes, type NKSNode, type NKSNodeList, type NodeListParams, type NodeGetParams, type NKSNodesCursor, } from "./nodes/index.mjs";
|
|
3
|
+
export { Pools, type NKSNodeConfig, type NKSNodePool, type NKSNodePoolList, type PoolCreateParams, type PoolUpdateParams, type PoolListParams, type PoolDeleteParams, type PoolGetParams, type NKSNodePoolsCursor, } from "./pools.mjs";
|
|
4
|
+
//# sourceMappingURL=index.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../../src/resources/nks/clusters/pools/index.ts"],"names":[],"mappings":"OAEO,EAAE,YAAY,EAAE,KAAK,wBAAwB,EAAE,KAAK,wBAAwB,EAAE;OAC9E,EACL,KAAK,EACL,KAAK,OAAO,EACZ,KAAK,WAAW,EAChB,KAAK,cAAc,EACnB,KAAK,aAAa,EAClB,KAAK,cAAc,GACpB;OACM,EACL,KAAK,EACL,KAAK,aAAa,EAClB,KAAK,WAAW,EAChB,KAAK,eAAe,EACpB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,cAAc,EACnB,KAAK,gBAAgB,EACrB,KAAK,aAAa,EAClB,KAAK,kBAAkB,GACxB"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { Availability, type AvailabilityCreateParams, type AvailabilityUpdateParams } from "./availability.js";
|
|
2
|
+
export { Nodes, type NKSNode, type NKSNodeList, type NodeListParams, type NodeGetParams, type NKSNodesCursor, } from "./nodes/index.js";
|
|
3
|
+
export { Pools, type NKSNodeConfig, type NKSNodePool, type NKSNodePoolList, type PoolCreateParams, type PoolUpdateParams, type PoolListParams, type PoolDeleteParams, type PoolGetParams, type NKSNodePoolsCursor, } from "./pools.js";
|
|
4
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/resources/nks/clusters/pools/index.ts"],"names":[],"mappings":"OAEO,EAAE,YAAY,EAAE,KAAK,wBAAwB,EAAE,KAAK,wBAAwB,EAAE;OAC9E,EACL,KAAK,EACL,KAAK,OAAO,EACZ,KAAK,WAAW,EAChB,KAAK,cAAc,EACnB,KAAK,aAAa,EAClB,KAAK,cAAc,GACpB;OACM,EACL,KAAK,EACL,KAAK,aAAa,EAClB,KAAK,WAAW,EAChB,KAAK,eAAe,EACpB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,cAAc,EACnB,KAAK,gBAAgB,EACrB,KAAK,aAAa,EAClB,KAAK,kBAAkB,GACxB"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.Pools = exports.Nodes = exports.Availability = void 0;
|
|
5
|
+
var availability_1 = require("./availability.js");
|
|
6
|
+
Object.defineProperty(exports, "Availability", { enumerable: true, get: function () { return availability_1.Availability; } });
|
|
7
|
+
var index_1 = require("./nodes/index.js");
|
|
8
|
+
Object.defineProperty(exports, "Nodes", { enumerable: true, get: function () { return index_1.Nodes; } });
|
|
9
|
+
var pools_1 = require("./pools.js");
|
|
10
|
+
Object.defineProperty(exports, "Pools", { enumerable: true, get: function () { return pools_1.Pools; } });
|
|
11
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/resources/nks/clusters/pools/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA4G;AAAnG,4GAAA,YAAY,OAAA;AACrB,0CAOuB;AANrB,8FAAA,KAAK,OAAA;AAOP,oCAWiB;AAVf,8FAAA,KAAK,OAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../../src/resources/nks/clusters/pools/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,YAAY,EAAgE;OAC9E,EACL,KAAK,GAMN;OACM,EACL,KAAK,GAUN"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export { Nodes, type NKSNode, type NKSNodeList, type NodeListParams, type NodeGetParams, type NKSNodesCursor, } from "./nodes.mjs";
|
|
2
|
+
export { Volumes, type NKSNodeVolume, type NKSNodeVolumeList, type VolumeListParams, type VolumeGetParams, type NKSNodeVolumesCursor, } from "./volumes.mjs";
|
|
3
|
+
//# sourceMappingURL=index.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../../../src/resources/nks/clusters/pools/nodes/index.ts"],"names":[],"mappings":"OAEO,EACL,KAAK,EACL,KAAK,OAAO,EACZ,KAAK,WAAW,EAChB,KAAK,cAAc,EACnB,KAAK,aAAa,EAClB,KAAK,cAAc,GACpB;OACM,EACL,OAAO,EACP,KAAK,aAAa,EAClB,KAAK,iBAAiB,EACtB,KAAK,gBAAgB,EACrB,KAAK,eAAe,EACpB,KAAK,oBAAoB,GAC1B"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export { Nodes, type NKSNode, type NKSNodeList, type NodeListParams, type NodeGetParams, type NKSNodesCursor, } from "./nodes.js";
|
|
2
|
+
export { Volumes, type NKSNodeVolume, type NKSNodeVolumeList, type VolumeListParams, type VolumeGetParams, type NKSNodeVolumesCursor, } from "./volumes.js";
|
|
3
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/resources/nks/clusters/pools/nodes/index.ts"],"names":[],"mappings":"OAEO,EACL,KAAK,EACL,KAAK,OAAO,EACZ,KAAK,WAAW,EAChB,KAAK,cAAc,EACnB,KAAK,aAAa,EAClB,KAAK,cAAc,GACpB;OACM,EACL,OAAO,EACP,KAAK,aAAa,EAClB,KAAK,iBAAiB,EACtB,KAAK,gBAAgB,EACrB,KAAK,eAAe,EACpB,KAAK,oBAAoB,GAC1B"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.Volumes = exports.Nodes = void 0;
|
|
5
|
+
var nodes_1 = require("./nodes.js");
|
|
6
|
+
Object.defineProperty(exports, "Nodes", { enumerable: true, get: function () { return nodes_1.Nodes; } });
|
|
7
|
+
var volumes_1 = require("./volumes.js");
|
|
8
|
+
Object.defineProperty(exports, "Volumes", { enumerable: true, get: function () { return volumes_1.Volumes; } });
|
|
9
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/resources/nks/clusters/pools/nodes/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,oCAOiB;AANf,8FAAA,KAAK,OAAA;AAOP,wCAOmB;AANjB,kGAAA,OAAO,OAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../../../src/resources/nks/clusters/pools/nodes/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,KAAK,GAMN;OACM,EACL,OAAO,GAMR"}
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import { APIResource } from "../../../../../core/resource.mjs";
|
|
2
|
+
import * as Shared from "../../../../shared.mjs";
|
|
3
|
+
import * as VolumesAPI from "./volumes.mjs";
|
|
4
|
+
import { NKSNodeVolume, NKSNodeVolumeList, NKSNodeVolumesCursor, VolumeGetParams, VolumeListParams, Volumes } from "./volumes.mjs";
|
|
5
|
+
import { APIPromise } from "../../../../../core/api-promise.mjs";
|
|
6
|
+
import { Cursor, type CursorParams, PagePromise } from "../../../../../core/pagination.mjs";
|
|
7
|
+
import { RequestOptions } from "../../../../../internal/request-options.mjs";
|
|
8
|
+
export declare class Nodes extends APIResource {
|
|
9
|
+
volumes: VolumesAPI.Volumes;
|
|
10
|
+
/**
|
|
11
|
+
* List all nodes in an NKS node pool
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```ts
|
|
15
|
+
* // Automatically fetches more pages as needed.
|
|
16
|
+
* for await (const nksNode of client.nks.clusters.pools.nodes.list(
|
|
17
|
+
* 'pool_id',
|
|
18
|
+
* { cluster_id: 'cluster_id' },
|
|
19
|
+
* )) {
|
|
20
|
+
* // ...
|
|
21
|
+
* }
|
|
22
|
+
* ```
|
|
23
|
+
*/
|
|
24
|
+
list(poolID: string, params: NodeListParams, options?: RequestOptions): PagePromise<NKSNodesCursor, NKSNode>;
|
|
25
|
+
/**
|
|
26
|
+
* Get details about an NKS node
|
|
27
|
+
*
|
|
28
|
+
* @example
|
|
29
|
+
* ```ts
|
|
30
|
+
* const nksNode = await client.nks.clusters.pools.nodes.get(
|
|
31
|
+
* 'node_id',
|
|
32
|
+
* { cluster_id: 'cluster_id', pool_id: 'pool_id' },
|
|
33
|
+
* );
|
|
34
|
+
* ```
|
|
35
|
+
*/
|
|
36
|
+
get(nodeID: string, params: NodeGetParams, options?: RequestOptions): APIPromise<NKSNode>;
|
|
37
|
+
}
|
|
38
|
+
export type NKSNodesCursor = Cursor<NKSNode>;
|
|
39
|
+
/**
|
|
40
|
+
* NKS node details.
|
|
41
|
+
*/
|
|
42
|
+
export interface NKSNode {
|
|
43
|
+
/**
|
|
44
|
+
* Unique identifier for the node.
|
|
45
|
+
*/
|
|
46
|
+
id: string;
|
|
47
|
+
/**
|
|
48
|
+
* When the node was created.
|
|
49
|
+
*/
|
|
50
|
+
created_at: string;
|
|
51
|
+
/**
|
|
52
|
+
* Name of the node.
|
|
53
|
+
*/
|
|
54
|
+
name: string;
|
|
55
|
+
/**
|
|
56
|
+
* Private IP address of the node.
|
|
57
|
+
*/
|
|
58
|
+
private_ip: string | null;
|
|
59
|
+
/**
|
|
60
|
+
* Status of the resource.
|
|
61
|
+
*/
|
|
62
|
+
status: Shared.ResourceStatus;
|
|
63
|
+
/**
|
|
64
|
+
* When the node was last updated.
|
|
65
|
+
*/
|
|
66
|
+
updated_at: string;
|
|
67
|
+
}
|
|
68
|
+
export interface NKSNodeList {
|
|
69
|
+
items: Array<NKSNode>;
|
|
70
|
+
/**
|
|
71
|
+
* Pagination response details.
|
|
72
|
+
*/
|
|
73
|
+
pagination: Shared.Pagination;
|
|
74
|
+
}
|
|
75
|
+
export interface NodeListParams extends CursorParams {
|
|
76
|
+
/**
|
|
77
|
+
* Path param: Cluster ID
|
|
78
|
+
*/
|
|
79
|
+
cluster_id: string;
|
|
80
|
+
}
|
|
81
|
+
export interface NodeGetParams {
|
|
82
|
+
/**
|
|
83
|
+
* Cluster ID
|
|
84
|
+
*/
|
|
85
|
+
cluster_id: string;
|
|
86
|
+
/**
|
|
87
|
+
* Node Pool ID
|
|
88
|
+
*/
|
|
89
|
+
pool_id: string;
|
|
90
|
+
}
|
|
91
|
+
export declare namespace Nodes {
|
|
92
|
+
export { type NKSNode as NKSNode, type NKSNodeList as NKSNodeList, type NKSNodesCursor as NKSNodesCursor, type NodeListParams as NodeListParams, type NodeGetParams as NodeGetParams, };
|
|
93
|
+
export { Volumes as Volumes, type NKSNodeVolume as NKSNodeVolume, type NKSNodeVolumeList as NKSNodeVolumeList, type NKSNodeVolumesCursor as NKSNodeVolumesCursor, type VolumeListParams as VolumeListParams, type VolumeGetParams as VolumeGetParams, };
|
|
94
|
+
}
|
|
95
|
+
//# sourceMappingURL=nodes.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"nodes.d.mts","sourceRoot":"","sources":["../../../../../src/resources/nks/clusters/pools/nodes/nodes.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,MAAM;OACX,KAAK,UAAU;OACf,EACL,aAAa,EACb,iBAAiB,EACjB,oBAAoB,EACpB,eAAe,EACf,gBAAgB,EAChB,OAAO,EACR;OACM,EAAE,UAAU,EAAE;OACd,EAAE,MAAM,EAAE,KAAK,YAAY,EAAE,WAAW,EAAE;OAC1C,EAAE,cAAc,EAAE;AAGzB,qBAAa,KAAM,SAAQ,WAAW;IACpC,OAAO,EAAE,UAAU,CAAC,OAAO,CAAwC;IAEnE;;;;;;;;;;;;;OAaG;IACH,IAAI,CACF,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,cAAc,EACtB,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,cAAc,EAAE,OAAO,CAAC;IASvC;;;;;;;;;;OAUG;IACH,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,aAAa,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,OAAO,CAAC;CAI1F;AAED,MAAM,MAAM,cAAc,GAAG,MAAM,CAAC,OAAO,CAAC,CAAC;AAE7C;;GAEG;AACH,MAAM,WAAW,OAAO;IACtB;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAE1B;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC,cAAc,CAAC;IAE9B;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,WAAW;IAC1B,KAAK,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC;IAEtB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC,UAAU,CAAC;CAC/B;AAED,MAAM,WAAW,cAAe,SAAQ,YAAY;IAClD;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,aAAa;IAC5B;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;CACjB;AAID,MAAM,CAAC,OAAO,WAAW,KAAK,CAAC;IAC7B,OAAO,EACL,KAAK,OAAO,IAAI,OAAO,EACvB,KAAK,WAAW,IAAI,WAAW,EAC/B,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,aAAa,IAAI,aAAa,GACpC,CAAC;IAEF,OAAO,EACL,OAAO,IAAI,OAAO,EAClB,KAAK,aAAa,IAAI,aAAa,EACnC,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,eAAe,IAAI,eAAe,GACxC,CAAC;CACH"}
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import { APIResource } from "../../../../../core/resource.js";
|
|
2
|
+
import * as Shared from "../../../../shared.js";
|
|
3
|
+
import * as VolumesAPI from "./volumes.js";
|
|
4
|
+
import { NKSNodeVolume, NKSNodeVolumeList, NKSNodeVolumesCursor, VolumeGetParams, VolumeListParams, Volumes } from "./volumes.js";
|
|
5
|
+
import { APIPromise } from "../../../../../core/api-promise.js";
|
|
6
|
+
import { Cursor, type CursorParams, PagePromise } from "../../../../../core/pagination.js";
|
|
7
|
+
import { RequestOptions } from "../../../../../internal/request-options.js";
|
|
8
|
+
export declare class Nodes extends APIResource {
|
|
9
|
+
volumes: VolumesAPI.Volumes;
|
|
10
|
+
/**
|
|
11
|
+
* List all nodes in an NKS node pool
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```ts
|
|
15
|
+
* // Automatically fetches more pages as needed.
|
|
16
|
+
* for await (const nksNode of client.nks.clusters.pools.nodes.list(
|
|
17
|
+
* 'pool_id',
|
|
18
|
+
* { cluster_id: 'cluster_id' },
|
|
19
|
+
* )) {
|
|
20
|
+
* // ...
|
|
21
|
+
* }
|
|
22
|
+
* ```
|
|
23
|
+
*/
|
|
24
|
+
list(poolID: string, params: NodeListParams, options?: RequestOptions): PagePromise<NKSNodesCursor, NKSNode>;
|
|
25
|
+
/**
|
|
26
|
+
* Get details about an NKS node
|
|
27
|
+
*
|
|
28
|
+
* @example
|
|
29
|
+
* ```ts
|
|
30
|
+
* const nksNode = await client.nks.clusters.pools.nodes.get(
|
|
31
|
+
* 'node_id',
|
|
32
|
+
* { cluster_id: 'cluster_id', pool_id: 'pool_id' },
|
|
33
|
+
* );
|
|
34
|
+
* ```
|
|
35
|
+
*/
|
|
36
|
+
get(nodeID: string, params: NodeGetParams, options?: RequestOptions): APIPromise<NKSNode>;
|
|
37
|
+
}
|
|
38
|
+
export type NKSNodesCursor = Cursor<NKSNode>;
|
|
39
|
+
/**
|
|
40
|
+
* NKS node details.
|
|
41
|
+
*/
|
|
42
|
+
export interface NKSNode {
|
|
43
|
+
/**
|
|
44
|
+
* Unique identifier for the node.
|
|
45
|
+
*/
|
|
46
|
+
id: string;
|
|
47
|
+
/**
|
|
48
|
+
* When the node was created.
|
|
49
|
+
*/
|
|
50
|
+
created_at: string;
|
|
51
|
+
/**
|
|
52
|
+
* Name of the node.
|
|
53
|
+
*/
|
|
54
|
+
name: string;
|
|
55
|
+
/**
|
|
56
|
+
* Private IP address of the node.
|
|
57
|
+
*/
|
|
58
|
+
private_ip: string | null;
|
|
59
|
+
/**
|
|
60
|
+
* Status of the resource.
|
|
61
|
+
*/
|
|
62
|
+
status: Shared.ResourceStatus;
|
|
63
|
+
/**
|
|
64
|
+
* When the node was last updated.
|
|
65
|
+
*/
|
|
66
|
+
updated_at: string;
|
|
67
|
+
}
|
|
68
|
+
export interface NKSNodeList {
|
|
69
|
+
items: Array<NKSNode>;
|
|
70
|
+
/**
|
|
71
|
+
* Pagination response details.
|
|
72
|
+
*/
|
|
73
|
+
pagination: Shared.Pagination;
|
|
74
|
+
}
|
|
75
|
+
export interface NodeListParams extends CursorParams {
|
|
76
|
+
/**
|
|
77
|
+
* Path param: Cluster ID
|
|
78
|
+
*/
|
|
79
|
+
cluster_id: string;
|
|
80
|
+
}
|
|
81
|
+
export interface NodeGetParams {
|
|
82
|
+
/**
|
|
83
|
+
* Cluster ID
|
|
84
|
+
*/
|
|
85
|
+
cluster_id: string;
|
|
86
|
+
/**
|
|
87
|
+
* Node Pool ID
|
|
88
|
+
*/
|
|
89
|
+
pool_id: string;
|
|
90
|
+
}
|
|
91
|
+
export declare namespace Nodes {
|
|
92
|
+
export { type NKSNode as NKSNode, type NKSNodeList as NKSNodeList, type NKSNodesCursor as NKSNodesCursor, type NodeListParams as NodeListParams, type NodeGetParams as NodeGetParams, };
|
|
93
|
+
export { Volumes as Volumes, type NKSNodeVolume as NKSNodeVolume, type NKSNodeVolumeList as NKSNodeVolumeList, type NKSNodeVolumesCursor as NKSNodeVolumesCursor, type VolumeListParams as VolumeListParams, type VolumeGetParams as VolumeGetParams, };
|
|
94
|
+
}
|
|
95
|
+
//# sourceMappingURL=nodes.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"nodes.d.ts","sourceRoot":"","sources":["../../../../../src/resources/nks/clusters/pools/nodes/nodes.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,MAAM;OACX,KAAK,UAAU;OACf,EACL,aAAa,EACb,iBAAiB,EACjB,oBAAoB,EACpB,eAAe,EACf,gBAAgB,EAChB,OAAO,EACR;OACM,EAAE,UAAU,EAAE;OACd,EAAE,MAAM,EAAE,KAAK,YAAY,EAAE,WAAW,EAAE;OAC1C,EAAE,cAAc,EAAE;AAGzB,qBAAa,KAAM,SAAQ,WAAW;IACpC,OAAO,EAAE,UAAU,CAAC,OAAO,CAAwC;IAEnE;;;;;;;;;;;;;OAaG;IACH,IAAI,CACF,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,cAAc,EACtB,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,cAAc,EAAE,OAAO,CAAC;IASvC;;;;;;;;;;OAUG;IACH,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,aAAa,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,OAAO,CAAC;CAI1F;AAED,MAAM,MAAM,cAAc,GAAG,MAAM,CAAC,OAAO,CAAC,CAAC;AAE7C;;GAEG;AACH,MAAM,WAAW,OAAO;IACtB;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAE1B;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC,cAAc,CAAC;IAE9B;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,WAAW;IAC1B,KAAK,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC;IAEtB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC,UAAU,CAAC;CAC/B;AAED,MAAM,WAAW,cAAe,SAAQ,YAAY;IAClD;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,aAAa;IAC5B;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;CACjB;AAID,MAAM,CAAC,OAAO,WAAW,KAAK,CAAC;IAC7B,OAAO,EACL,KAAK,OAAO,IAAI,OAAO,EACvB,KAAK,WAAW,IAAI,WAAW,EAC/B,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,aAAa,IAAI,aAAa,GACpC,CAAC;IAEF,OAAO,EACL,OAAO,IAAI,OAAO,EAClB,KAAK,aAAa,IAAI,aAAa,EACnC,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,eAAe,IAAI,eAAe,GACxC,CAAC;CACH"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.Nodes = void 0;
|
|
5
|
+
const tslib_1 = require("../../../../../internal/tslib.js");
|
|
6
|
+
const resource_1 = require("../../../../../core/resource.js");
|
|
7
|
+
const VolumesAPI = tslib_1.__importStar(require("./volumes.js"));
|
|
8
|
+
const volumes_1 = require("./volumes.js");
|
|
9
|
+
const pagination_1 = require("../../../../../core/pagination.js");
|
|
10
|
+
const path_1 = require("../../../../../internal/utils/path.js");
|
|
11
|
+
class Nodes extends resource_1.APIResource {
|
|
12
|
+
constructor() {
|
|
13
|
+
super(...arguments);
|
|
14
|
+
this.volumes = new VolumesAPI.Volumes(this._client);
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* List all nodes in an NKS node pool
|
|
18
|
+
*
|
|
19
|
+
* @example
|
|
20
|
+
* ```ts
|
|
21
|
+
* // Automatically fetches more pages as needed.
|
|
22
|
+
* for await (const nksNode of client.nks.clusters.pools.nodes.list(
|
|
23
|
+
* 'pool_id',
|
|
24
|
+
* { cluster_id: 'cluster_id' },
|
|
25
|
+
* )) {
|
|
26
|
+
* // ...
|
|
27
|
+
* }
|
|
28
|
+
* ```
|
|
29
|
+
*/
|
|
30
|
+
list(poolID, params, options) {
|
|
31
|
+
const { cluster_id, ...query } = params;
|
|
32
|
+
return this._client.getAPIList((0, path_1.path) `/v1/nks/clusters/${cluster_id}/pools/${poolID}/nodes`, (pagination_1.Cursor), { query, ...options });
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Get details about an NKS node
|
|
36
|
+
*
|
|
37
|
+
* @example
|
|
38
|
+
* ```ts
|
|
39
|
+
* const nksNode = await client.nks.clusters.pools.nodes.get(
|
|
40
|
+
* 'node_id',
|
|
41
|
+
* { cluster_id: 'cluster_id', pool_id: 'pool_id' },
|
|
42
|
+
* );
|
|
43
|
+
* ```
|
|
44
|
+
*/
|
|
45
|
+
get(nodeID, params, options) {
|
|
46
|
+
const { cluster_id, pool_id } = params;
|
|
47
|
+
return this._client.get((0, path_1.path) `/v1/nks/clusters/${cluster_id}/pools/${pool_id}/nodes/${nodeID}`, options);
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
exports.Nodes = Nodes;
|
|
51
|
+
Nodes.Volumes = volumes_1.Volumes;
|
|
52
|
+
//# sourceMappingURL=nodes.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"nodes.js","sourceRoot":"","sources":["../../../../../src/resources/nks/clusters/pools/nodes/nodes.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,8DAA2D;AAE3D,iEAAwC;AACxC,0CAOmB;AAEnB,kEAAwF;AAExF,gEAA0D;AAE1D,MAAa,KAAM,SAAQ,sBAAW;IAAtC;;QACE,YAAO,GAAuB,IAAI,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IA4CrE,CAAC;IA1CC;;;;;;;;;;;;;OAaG;IACH,IAAI,CACF,MAAc,EACd,MAAsB,EACtB,OAAwB;QAExB,MAAM,EAAE,UAAU,EAAE,GAAG,KAAK,EAAE,GAAG,MAAM,CAAC;QACxC,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAC5B,IAAA,WAAI,EAAA,oBAAoB,UAAU,UAAU,MAAM,QAAQ,EAC1D,CAAA,mBAAe,CAAA,EACf,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CACtB,CAAC;IACJ,CAAC;IAED;;;;;;;;;;OAUG;IACH,GAAG,CAAC,MAAc,EAAE,MAAqB,EAAE,OAAwB;QACjE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,MAAM,CAAC;QACvC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,oBAAoB,UAAU,UAAU,OAAO,UAAU,MAAM,EAAE,EAAE,OAAO,CAAC,CAAC;IAC1G,CAAC;CACF;AA7CD,sBA6CC;AAmED,KAAK,CAAC,OAAO,GAAG,iBAAO,CAAC"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../../../../../core/resource.mjs";
|
|
3
|
+
import * as VolumesAPI from "./volumes.mjs";
|
|
4
|
+
import { Volumes, } from "./volumes.mjs";
|
|
5
|
+
import { Cursor } from "../../../../../core/pagination.mjs";
|
|
6
|
+
import { path } from "../../../../../internal/utils/path.mjs";
|
|
7
|
+
export class Nodes extends APIResource {
|
|
8
|
+
constructor() {
|
|
9
|
+
super(...arguments);
|
|
10
|
+
this.volumes = new VolumesAPI.Volumes(this._client);
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* List all nodes in an NKS node pool
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* ```ts
|
|
17
|
+
* // Automatically fetches more pages as needed.
|
|
18
|
+
* for await (const nksNode of client.nks.clusters.pools.nodes.list(
|
|
19
|
+
* 'pool_id',
|
|
20
|
+
* { cluster_id: 'cluster_id' },
|
|
21
|
+
* )) {
|
|
22
|
+
* // ...
|
|
23
|
+
* }
|
|
24
|
+
* ```
|
|
25
|
+
*/
|
|
26
|
+
list(poolID, params, options) {
|
|
27
|
+
const { cluster_id, ...query } = params;
|
|
28
|
+
return this._client.getAPIList(path `/v1/nks/clusters/${cluster_id}/pools/${poolID}/nodes`, (Cursor), { query, ...options });
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Get details about an NKS node
|
|
32
|
+
*
|
|
33
|
+
* @example
|
|
34
|
+
* ```ts
|
|
35
|
+
* const nksNode = await client.nks.clusters.pools.nodes.get(
|
|
36
|
+
* 'node_id',
|
|
37
|
+
* { cluster_id: 'cluster_id', pool_id: 'pool_id' },
|
|
38
|
+
* );
|
|
39
|
+
* ```
|
|
40
|
+
*/
|
|
41
|
+
get(nodeID, params, options) {
|
|
42
|
+
const { cluster_id, pool_id } = params;
|
|
43
|
+
return this._client.get(path `/v1/nks/clusters/${cluster_id}/pools/${pool_id}/nodes/${nodeID}`, options);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
Nodes.Volumes = Volumes;
|
|
47
|
+
//# sourceMappingURL=nodes.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"nodes.mjs","sourceRoot":"","sources":["../../../../../src/resources/nks/clusters/pools/nodes/nodes.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAEf,KAAK,UAAU;OACf,EAML,OAAO,GACR;OAEM,EAAE,MAAM,EAAkC;OAE1C,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,KAAM,SAAQ,WAAW;IAAtC;;QACE,YAAO,GAAuB,IAAI,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IA4CrE,CAAC;IA1CC;;;;;;;;;;;;;OAaG;IACH,IAAI,CACF,MAAc,EACd,MAAsB,EACtB,OAAwB;QAExB,MAAM,EAAE,UAAU,EAAE,GAAG,KAAK,EAAE,GAAG,MAAM,CAAC;QACxC,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAC5B,IAAI,CAAA,oBAAoB,UAAU,UAAU,MAAM,QAAQ,EAC1D,CAAA,MAAe,CAAA,EACf,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CACtB,CAAC;IACJ,CAAC;IAED;;;;;;;;;;OAUG;IACH,GAAG,CAAC,MAAc,EAAE,MAAqB,EAAE,OAAwB;QACjE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,MAAM,CAAC;QACvC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,oBAAoB,UAAU,UAAU,OAAO,UAAU,MAAM,EAAE,EAAE,OAAO,CAAC,CAAC;IAC1G,CAAC;CACF;AAmED,KAAK,CAAC,OAAO,GAAG,OAAO,CAAC"}
|