@nirvana-labs/nirvana 1.55.4 → 1.57.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.
Files changed (202) hide show
  1. package/CHANGELOG.md +30 -0
  2. package/bin/migration-config.json +300 -0
  3. package/client.d.mts +4 -0
  4. package/client.d.mts.map +1 -1
  5. package/client.d.ts +4 -0
  6. package/client.d.ts.map +1 -1
  7. package/client.js +3 -0
  8. package/client.js.map +1 -1
  9. package/client.mjs +3 -0
  10. package/client.mjs.map +1 -1
  11. package/package.json +1 -1
  12. package/resources/api-keys/api-keys.d.mts +1 -16
  13. package/resources/api-keys/api-keys.d.mts.map +1 -1
  14. package/resources/api-keys/api-keys.d.ts +1 -16
  15. package/resources/api-keys/api-keys.d.ts.map +1 -1
  16. package/resources/index.d.mts +1 -0
  17. package/resources/index.d.mts.map +1 -1
  18. package/resources/index.d.ts +1 -0
  19. package/resources/index.d.ts.map +1 -1
  20. package/resources/index.js +3 -1
  21. package/resources/index.js.map +1 -1
  22. package/resources/index.mjs +1 -0
  23. package/resources/index.mjs.map +1 -1
  24. package/resources/nks/clusters/availability.d.mts +65 -0
  25. package/resources/nks/clusters/availability.d.mts.map +1 -0
  26. package/resources/nks/clusters/availability.d.ts +65 -0
  27. package/resources/nks/clusters/availability.d.ts.map +1 -0
  28. package/resources/nks/clusters/availability.js +46 -0
  29. package/resources/nks/clusters/availability.js.map +1 -0
  30. package/resources/nks/clusters/availability.mjs +42 -0
  31. package/resources/nks/clusters/availability.mjs.map +1 -0
  32. package/resources/nks/clusters/clusters.d.mts +191 -0
  33. package/resources/nks/clusters/clusters.d.mts.map +1 -0
  34. package/resources/nks/clusters/clusters.d.ts +191 -0
  35. package/resources/nks/clusters/clusters.d.ts.map +1 -0
  36. package/resources/nks/clusters/clusters.js +96 -0
  37. package/resources/nks/clusters/clusters.js.map +1 -0
  38. package/resources/nks/clusters/clusters.mjs +91 -0
  39. package/resources/nks/clusters/clusters.mjs.map +1 -0
  40. package/resources/nks/clusters/index.d.mts +4 -0
  41. package/resources/nks/clusters/index.d.mts.map +1 -0
  42. package/resources/nks/clusters/index.d.ts +4 -0
  43. package/resources/nks/clusters/index.d.ts.map +1 -0
  44. package/resources/nks/clusters/index.js +11 -0
  45. package/resources/nks/clusters/index.js.map +1 -0
  46. package/resources/nks/clusters/index.mjs +5 -0
  47. package/resources/nks/clusters/index.mjs.map +1 -0
  48. package/resources/nks/clusters/kubeconfig.d.mts +18 -0
  49. package/resources/nks/clusters/kubeconfig.d.mts.map +1 -0
  50. package/resources/nks/clusters/kubeconfig.d.ts +18 -0
  51. package/resources/nks/clusters/kubeconfig.d.ts.map +1 -0
  52. package/resources/nks/clusters/kubeconfig.js +23 -0
  53. package/resources/nks/clusters/kubeconfig.js.map +1 -0
  54. package/resources/nks/clusters/kubeconfig.mjs +19 -0
  55. package/resources/nks/clusters/kubeconfig.mjs.map +1 -0
  56. package/resources/nks/clusters/pools/availability.d.mts +74 -0
  57. package/resources/nks/clusters/pools/availability.d.mts.map +1 -0
  58. package/resources/nks/clusters/pools/availability.d.ts +74 -0
  59. package/resources/nks/clusters/pools/availability.d.ts.map +1 -0
  60. package/resources/nks/clusters/pools/availability.js +56 -0
  61. package/resources/nks/clusters/pools/availability.js.map +1 -0
  62. package/resources/nks/clusters/pools/availability.mjs +52 -0
  63. package/resources/nks/clusters/pools/availability.mjs.map +1 -0
  64. package/resources/nks/clusters/pools/index.d.mts +4 -0
  65. package/resources/nks/clusters/pools/index.d.mts.map +1 -0
  66. package/resources/nks/clusters/pools/index.d.ts +4 -0
  67. package/resources/nks/clusters/pools/index.d.ts.map +1 -0
  68. package/resources/nks/clusters/pools/index.js +11 -0
  69. package/resources/nks/clusters/pools/index.js.map +1 -0
  70. package/resources/nks/clusters/pools/index.mjs +5 -0
  71. package/resources/nks/clusters/pools/index.mjs.map +1 -0
  72. package/resources/nks/clusters/pools/nodes/index.d.mts +3 -0
  73. package/resources/nks/clusters/pools/nodes/index.d.mts.map +1 -0
  74. package/resources/nks/clusters/pools/nodes/index.d.ts +3 -0
  75. package/resources/nks/clusters/pools/nodes/index.d.ts.map +1 -0
  76. package/resources/nks/clusters/pools/nodes/index.js +9 -0
  77. package/resources/nks/clusters/pools/nodes/index.js.map +1 -0
  78. package/resources/nks/clusters/pools/nodes/index.mjs +4 -0
  79. package/resources/nks/clusters/pools/nodes/index.mjs.map +1 -0
  80. package/resources/nks/clusters/pools/nodes/nodes.d.mts +95 -0
  81. package/resources/nks/clusters/pools/nodes/nodes.d.mts.map +1 -0
  82. package/resources/nks/clusters/pools/nodes/nodes.d.ts +95 -0
  83. package/resources/nks/clusters/pools/nodes/nodes.d.ts.map +1 -0
  84. package/resources/nks/clusters/pools/nodes/nodes.js +52 -0
  85. package/resources/nks/clusters/pools/nodes/nodes.js.map +1 -0
  86. package/resources/nks/clusters/pools/nodes/nodes.mjs +47 -0
  87. package/resources/nks/clusters/pools/nodes/nodes.mjs.map +1 -0
  88. package/resources/nks/clusters/pools/nodes/volumes.d.mts +109 -0
  89. package/resources/nks/clusters/pools/nodes/volumes.d.mts.map +1 -0
  90. package/resources/nks/clusters/pools/nodes/volumes.d.ts +109 -0
  91. package/resources/nks/clusters/pools/nodes/volumes.d.ts.map +1 -0
  92. package/resources/nks/clusters/pools/nodes/volumes.js +49 -0
  93. package/resources/nks/clusters/pools/nodes/volumes.js.map +1 -0
  94. package/resources/nks/clusters/pools/nodes/volumes.mjs +45 -0
  95. package/resources/nks/clusters/pools/nodes/volumes.mjs.map +1 -0
  96. package/resources/nks/clusters/pools/nodes.d.mts +2 -0
  97. package/resources/nks/clusters/pools/nodes.d.mts.map +1 -0
  98. package/resources/nks/clusters/pools/nodes.d.ts +2 -0
  99. package/resources/nks/clusters/pools/nodes.d.ts.map +1 -0
  100. package/resources/nks/clusters/pools/nodes.js +6 -0
  101. package/resources/nks/clusters/pools/nodes.js.map +1 -0
  102. package/resources/nks/clusters/pools/nodes.mjs +3 -0
  103. package/resources/nks/clusters/pools/nodes.mjs.map +1 -0
  104. package/resources/nks/clusters/pools/pools.d.mts +219 -0
  105. package/resources/nks/clusters/pools/pools.d.mts.map +1 -0
  106. package/resources/nks/clusters/pools/pools.d.ts +219 -0
  107. package/resources/nks/clusters/pools/pools.d.ts.map +1 -0
  108. package/resources/nks/clusters/pools/pools.js +109 -0
  109. package/resources/nks/clusters/pools/pools.js.map +1 -0
  110. package/resources/nks/clusters/pools/pools.mjs +104 -0
  111. package/resources/nks/clusters/pools/pools.mjs.map +1 -0
  112. package/resources/nks/clusters/pools.d.mts +2 -0
  113. package/resources/nks/clusters/pools.d.mts.map +1 -0
  114. package/resources/nks/clusters/pools.d.ts +2 -0
  115. package/resources/nks/clusters/pools.d.ts.map +1 -0
  116. package/resources/nks/clusters/pools.js +6 -0
  117. package/resources/nks/clusters/pools.js.map +1 -0
  118. package/resources/nks/clusters/pools.mjs +3 -0
  119. package/resources/nks/clusters/pools.mjs.map +1 -0
  120. package/resources/nks/clusters.d.mts +2 -0
  121. package/resources/nks/clusters.d.mts.map +1 -0
  122. package/resources/nks/clusters.d.ts +2 -0
  123. package/resources/nks/clusters.d.ts.map +1 -0
  124. package/resources/nks/clusters.js +6 -0
  125. package/resources/nks/clusters.js.map +1 -0
  126. package/resources/nks/clusters.mjs +3 -0
  127. package/resources/nks/clusters.mjs.map +1 -0
  128. package/resources/nks/index.d.mts +3 -0
  129. package/resources/nks/index.d.mts.map +1 -0
  130. package/resources/nks/index.d.ts +3 -0
  131. package/resources/nks/index.d.ts.map +1 -0
  132. package/resources/nks/index.js +9 -0
  133. package/resources/nks/index.js.map +1 -0
  134. package/resources/nks/index.mjs +4 -0
  135. package/resources/nks/index.mjs.map +1 -0
  136. package/resources/nks/nks.d.mts +10 -0
  137. package/resources/nks/nks.d.mts.map +1 -0
  138. package/resources/nks/nks.d.ts +10 -0
  139. package/resources/nks/nks.d.ts.map +1 -0
  140. package/resources/nks/nks.js +17 -0
  141. package/resources/nks/nks.js.map +1 -0
  142. package/resources/nks/nks.mjs +12 -0
  143. package/resources/nks/nks.mjs.map +1 -0
  144. package/resources/nks.d.mts +2 -0
  145. package/resources/nks.d.mts.map +1 -0
  146. package/resources/nks.d.ts +2 -0
  147. package/resources/nks.d.ts.map +1 -0
  148. package/resources/nks.js +6 -0
  149. package/resources/nks.js.map +1 -0
  150. package/resources/nks.mjs +3 -0
  151. package/resources/nks.mjs.map +1 -0
  152. package/resources/operations/operations.d.mts +1 -1
  153. package/resources/operations/operations.d.mts.map +1 -1
  154. package/resources/operations/operations.d.ts +1 -1
  155. package/resources/operations/operations.d.ts.map +1 -1
  156. package/resources/projects/projects.d.mts +54 -50
  157. package/resources/projects/projects.d.mts.map +1 -1
  158. package/resources/projects/projects.d.ts +54 -50
  159. package/resources/projects/projects.d.ts.map +1 -1
  160. package/resources/regions/regions.d.mts +13 -0
  161. package/resources/regions/regions.d.mts.map +1 -1
  162. package/resources/regions/regions.d.ts +13 -0
  163. package/resources/regions/regions.d.ts.map +1 -1
  164. package/resources/shared.d.mts +14 -1
  165. package/resources/shared.d.mts.map +1 -1
  166. package/resources/shared.d.ts +14 -1
  167. package/resources/shared.d.ts.map +1 -1
  168. package/resources/user/security.d.mts +1 -16
  169. package/resources/user/security.d.mts.map +1 -1
  170. package/resources/user/security.d.ts +1 -16
  171. package/resources/user/security.d.ts.map +1 -1
  172. package/src/client.ts +6 -0
  173. package/src/resources/api-keys/api-keys.ts +1 -18
  174. package/src/resources/index.ts +1 -0
  175. package/src/resources/nks/api.md +78 -0
  176. package/src/resources/nks/clusters/availability.ts +93 -0
  177. package/src/resources/nks/clusters/clusters.ts +275 -0
  178. package/src/resources/nks/clusters/index.ts +26 -0
  179. package/src/resources/nks/clusters/kubeconfig.ts +23 -0
  180. package/src/resources/nks/clusters/pools/availability.ts +103 -0
  181. package/src/resources/nks/clusters/pools/index.ts +24 -0
  182. package/src/resources/nks/clusters/pools/nodes/index.ts +18 -0
  183. package/src/resources/nks/clusters/pools/nodes/nodes.ts +150 -0
  184. package/src/resources/nks/clusters/pools/nodes/volumes.ts +152 -0
  185. package/src/resources/nks/clusters/pools/nodes.ts +3 -0
  186. package/src/resources/nks/clusters/pools/pools.ts +310 -0
  187. package/src/resources/nks/clusters/pools.ts +3 -0
  188. package/src/resources/nks/clusters.ts +3 -0
  189. package/src/resources/nks/index.ts +13 -0
  190. package/src/resources/nks/nks.ts +33 -0
  191. package/src/resources/nks.ts +3 -0
  192. package/src/resources/operations/operations.ts +1 -1
  193. package/src/resources/projects/api.md +3 -0
  194. package/src/resources/projects/projects.ts +63 -54
  195. package/src/resources/regions/regions.ts +15 -0
  196. package/src/resources/shared.ts +16 -8
  197. package/src/resources/user/security.ts +1 -18
  198. package/src/version.ts +1 -1
  199. package/version.d.mts +1 -1
  200. package/version.d.ts +1 -1
  201. package/version.js +1 -1
  202. package/version.mjs +1 -1
@@ -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"}
@@ -0,0 +1,109 @@
1
+ import { APIResource } from "../../../../../core/resource.mjs";
2
+ import * as Shared from "../../../../shared.mjs";
3
+ import * as VolumesAPI from "../../../../compute/volumes/volumes.mjs";
4
+ import { APIPromise } from "../../../../../core/api-promise.mjs";
5
+ import { Cursor, type CursorParams, PagePromise } from "../../../../../core/pagination.mjs";
6
+ import { RequestOptions } from "../../../../../internal/request-options.mjs";
7
+ export declare class Volumes extends APIResource {
8
+ /**
9
+ * List all volumes attached to an NKS node
10
+ *
11
+ * @example
12
+ * ```ts
13
+ * // Automatically fetches more pages as needed.
14
+ * for await (const nksNodeVolume of client.nks.clusters.pools.nodes.volumes.list(
15
+ * 'node_id',
16
+ * { cluster_id: 'cluster_id', pool_id: 'pool_id' },
17
+ * )) {
18
+ * // ...
19
+ * }
20
+ * ```
21
+ */
22
+ list(nodeID: string, params: VolumeListParams, options?: RequestOptions): PagePromise<NKSNodeVolumesCursor, NKSNodeVolume>;
23
+ /**
24
+ * Get details about a volume attached to an NKS node
25
+ *
26
+ * @example
27
+ * ```ts
28
+ * const nksNodeVolume =
29
+ * await client.nks.clusters.pools.nodes.volumes.get(
30
+ * 'volume_id',
31
+ * {
32
+ * cluster_id: 'cluster_id',
33
+ * pool_id: 'pool_id',
34
+ * node_id: 'node_id',
35
+ * },
36
+ * );
37
+ * ```
38
+ */
39
+ get(volumeID: string, params: VolumeGetParams, options?: RequestOptions): APIPromise<NKSNodeVolume>;
40
+ }
41
+ export type NKSNodeVolumesCursor = Cursor<NKSNodeVolume>;
42
+ /**
43
+ * NKS node volume details.
44
+ */
45
+ export interface NKSNodeVolume {
46
+ /**
47
+ * Unique identifier for the volume.
48
+ */
49
+ id: string;
50
+ /**
51
+ * When the volume was created.
52
+ */
53
+ created_at: string;
54
+ /**
55
+ * Volume kind.
56
+ */
57
+ kind: VolumesAPI.VolumeKind;
58
+ /**
59
+ * Name of the volume.
60
+ */
61
+ name: string;
62
+ /**
63
+ * Status of the resource.
64
+ */
65
+ status: Shared.ResourceStatus;
66
+ /**
67
+ * Type of the Volume.
68
+ */
69
+ type: VolumesAPI.VolumeType;
70
+ /**
71
+ * When the volume was last updated.
72
+ */
73
+ updated_at: string;
74
+ }
75
+ export interface NKSNodeVolumeList {
76
+ items: Array<NKSNodeVolume>;
77
+ /**
78
+ * Pagination response details.
79
+ */
80
+ pagination: Shared.Pagination;
81
+ }
82
+ export interface VolumeListParams extends CursorParams {
83
+ /**
84
+ * Path param: Cluster ID
85
+ */
86
+ cluster_id: string;
87
+ /**
88
+ * Path param: Node Pool ID
89
+ */
90
+ pool_id: string;
91
+ }
92
+ export interface VolumeGetParams {
93
+ /**
94
+ * Cluster ID
95
+ */
96
+ cluster_id: string;
97
+ /**
98
+ * Node Pool ID
99
+ */
100
+ pool_id: string;
101
+ /**
102
+ * Node ID
103
+ */
104
+ node_id: string;
105
+ }
106
+ export declare namespace Volumes {
107
+ export { type NKSNodeVolume as NKSNodeVolume, type NKSNodeVolumeList as NKSNodeVolumeList, type NKSNodeVolumesCursor as NKSNodeVolumesCursor, type VolumeListParams as VolumeListParams, type VolumeGetParams as VolumeGetParams, };
108
+ }
109
+ //# sourceMappingURL=volumes.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"volumes.d.mts","sourceRoot":"","sources":["../../../../../src/resources/nks/clusters/pools/nodes/volumes.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,MAAM;OACX,KAAK,UAAU;OACf,EAAE,UAAU,EAAE;OACd,EAAE,MAAM,EAAE,KAAK,YAAY,EAAE,WAAW,EAAE;OAC1C,EAAE,cAAc,EAAE;AAGzB,qBAAa,OAAQ,SAAQ,WAAW;IACtC;;;;;;;;;;;;;OAaG;IACH,IAAI,CACF,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,gBAAgB,EACxB,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,oBAAoB,EAAE,aAAa,CAAC;IASnD;;;;;;;;;;;;;;;OAeG;IACH,GAAG,CAAC,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,eAAe,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,aAAa,CAAC;CAOpG;AAED,MAAM,MAAM,oBAAoB,GAAG,MAAM,CAAC,aAAa,CAAC,CAAC;AAEzD;;GAEG;AACH,MAAM,WAAW,aAAa;IAC5B;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,IAAI,EAAE,UAAU,CAAC,UAAU,CAAC;IAE5B;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC,cAAc,CAAC;IAE9B;;OAEG;IACH,IAAI,EAAE,UAAU,CAAC,UAAU,CAAC;IAE5B;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,iBAAiB;IAChC,KAAK,EAAE,KAAK,CAAC,aAAa,CAAC,CAAC;IAE5B;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC,UAAU,CAAC;CAC/B;AAED,MAAM,WAAW,gBAAiB,SAAQ,YAAY;IACpD;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,eAAe;IAC9B;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,CAAC,OAAO,WAAW,OAAO,CAAC;IAC/B,OAAO,EACL,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,109 @@
1
+ import { APIResource } from "../../../../../core/resource.js";
2
+ import * as Shared from "../../../../shared.js";
3
+ import * as VolumesAPI from "../../../../compute/volumes/volumes.js";
4
+ import { APIPromise } from "../../../../../core/api-promise.js";
5
+ import { Cursor, type CursorParams, PagePromise } from "../../../../../core/pagination.js";
6
+ import { RequestOptions } from "../../../../../internal/request-options.js";
7
+ export declare class Volumes extends APIResource {
8
+ /**
9
+ * List all volumes attached to an NKS node
10
+ *
11
+ * @example
12
+ * ```ts
13
+ * // Automatically fetches more pages as needed.
14
+ * for await (const nksNodeVolume of client.nks.clusters.pools.nodes.volumes.list(
15
+ * 'node_id',
16
+ * { cluster_id: 'cluster_id', pool_id: 'pool_id' },
17
+ * )) {
18
+ * // ...
19
+ * }
20
+ * ```
21
+ */
22
+ list(nodeID: string, params: VolumeListParams, options?: RequestOptions): PagePromise<NKSNodeVolumesCursor, NKSNodeVolume>;
23
+ /**
24
+ * Get details about a volume attached to an NKS node
25
+ *
26
+ * @example
27
+ * ```ts
28
+ * const nksNodeVolume =
29
+ * await client.nks.clusters.pools.nodes.volumes.get(
30
+ * 'volume_id',
31
+ * {
32
+ * cluster_id: 'cluster_id',
33
+ * pool_id: 'pool_id',
34
+ * node_id: 'node_id',
35
+ * },
36
+ * );
37
+ * ```
38
+ */
39
+ get(volumeID: string, params: VolumeGetParams, options?: RequestOptions): APIPromise<NKSNodeVolume>;
40
+ }
41
+ export type NKSNodeVolumesCursor = Cursor<NKSNodeVolume>;
42
+ /**
43
+ * NKS node volume details.
44
+ */
45
+ export interface NKSNodeVolume {
46
+ /**
47
+ * Unique identifier for the volume.
48
+ */
49
+ id: string;
50
+ /**
51
+ * When the volume was created.
52
+ */
53
+ created_at: string;
54
+ /**
55
+ * Volume kind.
56
+ */
57
+ kind: VolumesAPI.VolumeKind;
58
+ /**
59
+ * Name of the volume.
60
+ */
61
+ name: string;
62
+ /**
63
+ * Status of the resource.
64
+ */
65
+ status: Shared.ResourceStatus;
66
+ /**
67
+ * Type of the Volume.
68
+ */
69
+ type: VolumesAPI.VolumeType;
70
+ /**
71
+ * When the volume was last updated.
72
+ */
73
+ updated_at: string;
74
+ }
75
+ export interface NKSNodeVolumeList {
76
+ items: Array<NKSNodeVolume>;
77
+ /**
78
+ * Pagination response details.
79
+ */
80
+ pagination: Shared.Pagination;
81
+ }
82
+ export interface VolumeListParams extends CursorParams {
83
+ /**
84
+ * Path param: Cluster ID
85
+ */
86
+ cluster_id: string;
87
+ /**
88
+ * Path param: Node Pool ID
89
+ */
90
+ pool_id: string;
91
+ }
92
+ export interface VolumeGetParams {
93
+ /**
94
+ * Cluster ID
95
+ */
96
+ cluster_id: string;
97
+ /**
98
+ * Node Pool ID
99
+ */
100
+ pool_id: string;
101
+ /**
102
+ * Node ID
103
+ */
104
+ node_id: string;
105
+ }
106
+ export declare namespace Volumes {
107
+ export { type NKSNodeVolume as NKSNodeVolume, type NKSNodeVolumeList as NKSNodeVolumeList, type NKSNodeVolumesCursor as NKSNodeVolumesCursor, type VolumeListParams as VolumeListParams, type VolumeGetParams as VolumeGetParams, };
108
+ }
109
+ //# sourceMappingURL=volumes.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"volumes.d.ts","sourceRoot":"","sources":["../../../../../src/resources/nks/clusters/pools/nodes/volumes.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,MAAM;OACX,KAAK,UAAU;OACf,EAAE,UAAU,EAAE;OACd,EAAE,MAAM,EAAE,KAAK,YAAY,EAAE,WAAW,EAAE;OAC1C,EAAE,cAAc,EAAE;AAGzB,qBAAa,OAAQ,SAAQ,WAAW;IACtC;;;;;;;;;;;;;OAaG;IACH,IAAI,CACF,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,gBAAgB,EACxB,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,oBAAoB,EAAE,aAAa,CAAC;IASnD;;;;;;;;;;;;;;;OAeG;IACH,GAAG,CAAC,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,eAAe,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,aAAa,CAAC;CAOpG;AAED,MAAM,MAAM,oBAAoB,GAAG,MAAM,CAAC,aAAa,CAAC,CAAC;AAEzD;;GAEG;AACH,MAAM,WAAW,aAAa;IAC5B;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,IAAI,EAAE,UAAU,CAAC,UAAU,CAAC;IAE5B;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC,cAAc,CAAC;IAE9B;;OAEG;IACH,IAAI,EAAE,UAAU,CAAC,UAAU,CAAC;IAE5B;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,iBAAiB;IAChC,KAAK,EAAE,KAAK,CAAC,aAAa,CAAC,CAAC;IAE5B;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC,UAAU,CAAC;CAC/B;AAED,MAAM,WAAW,gBAAiB,SAAQ,YAAY;IACpD;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,eAAe;IAC9B;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,CAAC,OAAO,WAAW,OAAO,CAAC;IAC/B,OAAO,EACL,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,49 @@
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 = void 0;
5
+ const resource_1 = require("../../../../../core/resource.js");
6
+ const pagination_1 = require("../../../../../core/pagination.js");
7
+ const path_1 = require("../../../../../internal/utils/path.js");
8
+ class Volumes extends resource_1.APIResource {
9
+ /**
10
+ * List all volumes attached to an NKS node
11
+ *
12
+ * @example
13
+ * ```ts
14
+ * // Automatically fetches more pages as needed.
15
+ * for await (const nksNodeVolume of client.nks.clusters.pools.nodes.volumes.list(
16
+ * 'node_id',
17
+ * { cluster_id: 'cluster_id', pool_id: 'pool_id' },
18
+ * )) {
19
+ * // ...
20
+ * }
21
+ * ```
22
+ */
23
+ list(nodeID, params, options) {
24
+ const { cluster_id, pool_id, ...query } = params;
25
+ return this._client.getAPIList((0, path_1.path) `/v1/nks/clusters/${cluster_id}/pools/${pool_id}/nodes/${nodeID}/volumes`, (pagination_1.Cursor), { query, ...options });
26
+ }
27
+ /**
28
+ * Get details about a volume attached to an NKS node
29
+ *
30
+ * @example
31
+ * ```ts
32
+ * const nksNodeVolume =
33
+ * await client.nks.clusters.pools.nodes.volumes.get(
34
+ * 'volume_id',
35
+ * {
36
+ * cluster_id: 'cluster_id',
37
+ * pool_id: 'pool_id',
38
+ * node_id: 'node_id',
39
+ * },
40
+ * );
41
+ * ```
42
+ */
43
+ get(volumeID, params, options) {
44
+ const { cluster_id, pool_id, node_id } = params;
45
+ return this._client.get((0, path_1.path) `/v1/nks/clusters/${cluster_id}/pools/${pool_id}/nodes/${node_id}/volumes/${volumeID}`, options);
46
+ }
47
+ }
48
+ exports.Volumes = Volumes;
49
+ //# sourceMappingURL=volumes.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"volumes.js","sourceRoot":"","sources":["../../../../../src/resources/nks/clusters/pools/nodes/volumes.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,8DAA2D;AAI3D,kEAAwF;AAExF,gEAA0D;AAE1D,MAAa,OAAQ,SAAQ,sBAAW;IACtC;;;;;;;;;;;;;OAaG;IACH,IAAI,CACF,MAAc,EACd,MAAwB,EACxB,OAAwB;QAExB,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,KAAK,EAAE,GAAG,MAAM,CAAC;QACjD,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAC5B,IAAA,WAAI,EAAA,oBAAoB,UAAU,UAAU,OAAO,UAAU,MAAM,UAAU,EAC7E,CAAA,mBAAqB,CAAA,EACrB,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CACtB,CAAC;IACJ,CAAC;IAED;;;;;;;;;;;;;;;OAeG;IACH,GAAG,CAAC,QAAgB,EAAE,MAAuB,EAAE,OAAwB;QACrE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,OAAO,EAAE,GAAG,MAAM,CAAC;QAChD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CACrB,IAAA,WAAI,EAAA,oBAAoB,UAAU,UAAU,OAAO,UAAU,OAAO,YAAY,QAAQ,EAAE,EAC1F,OAAO,CACR,CAAC;IACJ,CAAC;CACF;AAnDD,0BAmDC"}
@@ -0,0 +1,45 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+ import { APIResource } from "../../../../../core/resource.mjs";
3
+ import { Cursor } from "../../../../../core/pagination.mjs";
4
+ import { path } from "../../../../../internal/utils/path.mjs";
5
+ export class Volumes extends APIResource {
6
+ /**
7
+ * List all volumes attached to an NKS node
8
+ *
9
+ * @example
10
+ * ```ts
11
+ * // Automatically fetches more pages as needed.
12
+ * for await (const nksNodeVolume of client.nks.clusters.pools.nodes.volumes.list(
13
+ * 'node_id',
14
+ * { cluster_id: 'cluster_id', pool_id: 'pool_id' },
15
+ * )) {
16
+ * // ...
17
+ * }
18
+ * ```
19
+ */
20
+ list(nodeID, params, options) {
21
+ const { cluster_id, pool_id, ...query } = params;
22
+ return this._client.getAPIList(path `/v1/nks/clusters/${cluster_id}/pools/${pool_id}/nodes/${nodeID}/volumes`, (Cursor), { query, ...options });
23
+ }
24
+ /**
25
+ * Get details about a volume attached to an NKS node
26
+ *
27
+ * @example
28
+ * ```ts
29
+ * const nksNodeVolume =
30
+ * await client.nks.clusters.pools.nodes.volumes.get(
31
+ * 'volume_id',
32
+ * {
33
+ * cluster_id: 'cluster_id',
34
+ * pool_id: 'pool_id',
35
+ * node_id: 'node_id',
36
+ * },
37
+ * );
38
+ * ```
39
+ */
40
+ get(volumeID, params, options) {
41
+ const { cluster_id, pool_id, node_id } = params;
42
+ return this._client.get(path `/v1/nks/clusters/${cluster_id}/pools/${pool_id}/nodes/${node_id}/volumes/${volumeID}`, options);
43
+ }
44
+ }
45
+ //# sourceMappingURL=volumes.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"volumes.mjs","sourceRoot":"","sources":["../../../../../src/resources/nks/clusters/pools/nodes/volumes.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAIf,EAAE,MAAM,EAAkC;OAE1C,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,OAAQ,SAAQ,WAAW;IACtC;;;;;;;;;;;;;OAaG;IACH,IAAI,CACF,MAAc,EACd,MAAwB,EACxB,OAAwB;QAExB,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,KAAK,EAAE,GAAG,MAAM,CAAC;QACjD,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAC5B,IAAI,CAAA,oBAAoB,UAAU,UAAU,OAAO,UAAU,MAAM,UAAU,EAC7E,CAAA,MAAqB,CAAA,EACrB,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CACtB,CAAC;IACJ,CAAC;IAED;;;;;;;;;;;;;;;OAeG;IACH,GAAG,CAAC,QAAgB,EAAE,MAAuB,EAAE,OAAwB;QACrE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,OAAO,EAAE,GAAG,MAAM,CAAC;QAChD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CACrB,IAAI,CAAA,oBAAoB,UAAU,UAAU,OAAO,UAAU,OAAO,YAAY,QAAQ,EAAE,EAC1F,OAAO,CACR,CAAC;IACJ,CAAC;CACF"}
@@ -0,0 +1,2 @@
1
+ export * from "./nodes/index.mjs";
2
+ //# sourceMappingURL=nodes.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"nodes.d.mts","sourceRoot":"","sources":["../../../../src/resources/nks/clusters/pools/nodes.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export * from "./nodes/index.js";
2
+ //# sourceMappingURL=nodes.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"nodes.d.ts","sourceRoot":"","sources":["../../../../src/resources/nks/clusters/pools/nodes.ts"],"names":[],"mappings":""}
@@ -0,0 +1,6 @@
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
+ const tslib_1 = require("../../../../internal/tslib.js");
5
+ tslib_1.__exportStar(require("./nodes/index.js"), exports);
6
+ //# sourceMappingURL=nodes.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"nodes.js","sourceRoot":"","sources":["../../../../src/resources/nks/clusters/pools/nodes.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,2DAA8B"}
@@ -0,0 +1,3 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+ export * from "./nodes/index.mjs";
3
+ //# sourceMappingURL=nodes.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"nodes.mjs","sourceRoot":"","sources":["../../../../src/resources/nks/clusters/pools/nodes.ts"],"names":[],"mappings":"AAAA,sFAAsF"}