@nirvana-labs/nirvana 1.55.3 → 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 +28 -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,221 @@
|
|
|
1
|
+
import { APIResource } from "../../../../core/resource.js";
|
|
2
|
+
import * as Shared from "../../../shared.js";
|
|
3
|
+
import * as OperationsAPI from "../../../operations/operations.js";
|
|
4
|
+
import * as AvailabilityAPI from "./availability.js";
|
|
5
|
+
import { Availability, AvailabilityCreateParams, AvailabilityUpdateParams } from "./availability.js";
|
|
6
|
+
import * as NodesAPI from "./nodes/nodes.js";
|
|
7
|
+
import { NKSNode, NKSNodeList, NKSNodesCursor, NodeGetParams, NodeListParams, Nodes } from "./nodes/nodes.js";
|
|
8
|
+
import { APIPromise } from "../../../../core/api-promise.js";
|
|
9
|
+
import { Cursor, type CursorParams, PagePromise } from "../../../../core/pagination.js";
|
|
10
|
+
import { RequestOptions } from "../../../../internal/request-options.js";
|
|
11
|
+
export declare class Pools extends APIResource {
|
|
12
|
+
availability: AvailabilityAPI.Availability;
|
|
13
|
+
nodes: NodesAPI.Nodes;
|
|
14
|
+
/**
|
|
15
|
+
* Create a node pool in an NKS cluster
|
|
16
|
+
*
|
|
17
|
+
* @example
|
|
18
|
+
* ```ts
|
|
19
|
+
* const operation = await client.nks.clusters.pools.create(
|
|
20
|
+
* 'cluster_id',
|
|
21
|
+
* {
|
|
22
|
+
* name: 'my-node-pool',
|
|
23
|
+
* node_config: {
|
|
24
|
+
* ram_gi: 8,
|
|
25
|
+
* storage_gi: 100,
|
|
26
|
+
* vcpu: 4,
|
|
27
|
+
* },
|
|
28
|
+
* node_count: 3,
|
|
29
|
+
* },
|
|
30
|
+
* );
|
|
31
|
+
* ```
|
|
32
|
+
*/
|
|
33
|
+
create(clusterID: string, body: PoolCreateParams, options?: RequestOptions): APIPromise<OperationsAPI.Operation>;
|
|
34
|
+
/**
|
|
35
|
+
* Update an NKS node pool
|
|
36
|
+
*
|
|
37
|
+
* @example
|
|
38
|
+
* ```ts
|
|
39
|
+
* const nksNodePool = await client.nks.clusters.pools.update(
|
|
40
|
+
* 'pool_id',
|
|
41
|
+
* { cluster_id: 'cluster_id' },
|
|
42
|
+
* );
|
|
43
|
+
* ```
|
|
44
|
+
*/
|
|
45
|
+
update(poolID: string, params: PoolUpdateParams, options?: RequestOptions): APIPromise<NKSNodePool>;
|
|
46
|
+
/**
|
|
47
|
+
* List all node pools in an NKS cluster
|
|
48
|
+
*
|
|
49
|
+
* @example
|
|
50
|
+
* ```ts
|
|
51
|
+
* // Automatically fetches more pages as needed.
|
|
52
|
+
* for await (const nksNodePool of client.nks.clusters.pools.list(
|
|
53
|
+
* 'cluster_id',
|
|
54
|
+
* )) {
|
|
55
|
+
* // ...
|
|
56
|
+
* }
|
|
57
|
+
* ```
|
|
58
|
+
*/
|
|
59
|
+
list(clusterID: string, query?: PoolListParams | null | undefined, options?: RequestOptions): PagePromise<NKSNodePoolsCursor, NKSNodePool>;
|
|
60
|
+
/**
|
|
61
|
+
* Delete an NKS node pool
|
|
62
|
+
*
|
|
63
|
+
* @example
|
|
64
|
+
* ```ts
|
|
65
|
+
* const operation = await client.nks.clusters.pools.delete(
|
|
66
|
+
* 'pool_id',
|
|
67
|
+
* { cluster_id: 'cluster_id' },
|
|
68
|
+
* );
|
|
69
|
+
* ```
|
|
70
|
+
*/
|
|
71
|
+
delete(poolID: string, params: PoolDeleteParams, options?: RequestOptions): APIPromise<OperationsAPI.Operation>;
|
|
72
|
+
/**
|
|
73
|
+
* Get details about an NKS node pool
|
|
74
|
+
*
|
|
75
|
+
* @example
|
|
76
|
+
* ```ts
|
|
77
|
+
* const nksNodePool = await client.nks.clusters.pools.get(
|
|
78
|
+
* 'pool_id',
|
|
79
|
+
* { cluster_id: 'cluster_id' },
|
|
80
|
+
* );
|
|
81
|
+
* ```
|
|
82
|
+
*/
|
|
83
|
+
get(poolID: string, params: PoolGetParams, options?: RequestOptions): APIPromise<NKSNodePool>;
|
|
84
|
+
}
|
|
85
|
+
export type NKSNodePoolsCursor = Cursor<NKSNodePool>;
|
|
86
|
+
/**
|
|
87
|
+
* Node configuration.
|
|
88
|
+
*/
|
|
89
|
+
export interface NKSNodeConfig {
|
|
90
|
+
/**
|
|
91
|
+
* RAM size in GiB per node.
|
|
92
|
+
*/
|
|
93
|
+
ram_gi: number;
|
|
94
|
+
/**
|
|
95
|
+
* Storage size in GiB per node.
|
|
96
|
+
*/
|
|
97
|
+
storage_gi: number;
|
|
98
|
+
/**
|
|
99
|
+
* Number of virtual CPUs per node.
|
|
100
|
+
*/
|
|
101
|
+
vcpu: number;
|
|
102
|
+
}
|
|
103
|
+
/**
|
|
104
|
+
* NKS node pool details.
|
|
105
|
+
*/
|
|
106
|
+
export interface NKSNodePool {
|
|
107
|
+
/**
|
|
108
|
+
* Unique identifier for the node pool.
|
|
109
|
+
*/
|
|
110
|
+
id: string;
|
|
111
|
+
/**
|
|
112
|
+
* ID of the Cluster this node pool belongs to.
|
|
113
|
+
*/
|
|
114
|
+
cluster_id: string;
|
|
115
|
+
/**
|
|
116
|
+
* When the node pool was created.
|
|
117
|
+
*/
|
|
118
|
+
created_at: string;
|
|
119
|
+
/**
|
|
120
|
+
* Name of the node pool.
|
|
121
|
+
*/
|
|
122
|
+
name: string;
|
|
123
|
+
/**
|
|
124
|
+
* Node configuration.
|
|
125
|
+
*/
|
|
126
|
+
node_config: NKSNodePool.NodeConfig;
|
|
127
|
+
/**
|
|
128
|
+
* Number of nodes.
|
|
129
|
+
*/
|
|
130
|
+
node_count: number;
|
|
131
|
+
/**
|
|
132
|
+
* Status of the resource.
|
|
133
|
+
*/
|
|
134
|
+
status: Shared.ResourceStatus;
|
|
135
|
+
/**
|
|
136
|
+
* Tags attached to the node pool.
|
|
137
|
+
*/
|
|
138
|
+
tags: Array<string>;
|
|
139
|
+
/**
|
|
140
|
+
* When the node pool was last updated.
|
|
141
|
+
*/
|
|
142
|
+
updated_at: string;
|
|
143
|
+
}
|
|
144
|
+
export declare namespace NKSNodePool {
|
|
145
|
+
/**
|
|
146
|
+
* Node configuration.
|
|
147
|
+
*/
|
|
148
|
+
interface NodeConfig {
|
|
149
|
+
/**
|
|
150
|
+
* RAM size in GiB per node.
|
|
151
|
+
*/
|
|
152
|
+
ram_gi: number;
|
|
153
|
+
/**
|
|
154
|
+
* Storage size in GiB per node.
|
|
155
|
+
*/
|
|
156
|
+
storage_gi: number;
|
|
157
|
+
/**
|
|
158
|
+
* Number of virtual CPUs per node.
|
|
159
|
+
*/
|
|
160
|
+
vcpu: number;
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
export interface NKSNodePoolList {
|
|
164
|
+
items: Array<NKSNodePool>;
|
|
165
|
+
/**
|
|
166
|
+
* Pagination response details.
|
|
167
|
+
*/
|
|
168
|
+
pagination: Shared.Pagination;
|
|
169
|
+
}
|
|
170
|
+
export interface PoolCreateParams {
|
|
171
|
+
/**
|
|
172
|
+
* Name of the node pool.
|
|
173
|
+
*/
|
|
174
|
+
name: string;
|
|
175
|
+
/**
|
|
176
|
+
* Node configuration.
|
|
177
|
+
*/
|
|
178
|
+
node_config: NKSNodeConfig;
|
|
179
|
+
/**
|
|
180
|
+
* Number of nodes. Must be between 1 and 100.
|
|
181
|
+
*/
|
|
182
|
+
node_count: number;
|
|
183
|
+
/**
|
|
184
|
+
* Tags to attach to the node pool.
|
|
185
|
+
*/
|
|
186
|
+
tags?: Array<string>;
|
|
187
|
+
}
|
|
188
|
+
export interface PoolUpdateParams {
|
|
189
|
+
/**
|
|
190
|
+
* Path param: Cluster ID
|
|
191
|
+
*/
|
|
192
|
+
cluster_id: string;
|
|
193
|
+
/**
|
|
194
|
+
* Body param: Name of the node pool.
|
|
195
|
+
*/
|
|
196
|
+
name?: string;
|
|
197
|
+
/**
|
|
198
|
+
* Body param: Tags to attach to the node pool.
|
|
199
|
+
*/
|
|
200
|
+
tags?: Array<string>;
|
|
201
|
+
}
|
|
202
|
+
export interface PoolListParams extends CursorParams {
|
|
203
|
+
}
|
|
204
|
+
export interface PoolDeleteParams {
|
|
205
|
+
/**
|
|
206
|
+
* Cluster ID
|
|
207
|
+
*/
|
|
208
|
+
cluster_id: string;
|
|
209
|
+
}
|
|
210
|
+
export interface PoolGetParams {
|
|
211
|
+
/**
|
|
212
|
+
* Cluster ID
|
|
213
|
+
*/
|
|
214
|
+
cluster_id: string;
|
|
215
|
+
}
|
|
216
|
+
export declare namespace Pools {
|
|
217
|
+
export { type NKSNodeConfig as NKSNodeConfig, type NKSNodePool as NKSNodePool, type NKSNodePoolList as NKSNodePoolList, type NKSNodePoolsCursor as NKSNodePoolsCursor, type PoolCreateParams as PoolCreateParams, type PoolUpdateParams as PoolUpdateParams, type PoolListParams as PoolListParams, type PoolDeleteParams as PoolDeleteParams, type PoolGetParams as PoolGetParams, };
|
|
218
|
+
export { Availability as Availability, type AvailabilityCreateParams as AvailabilityCreateParams, type AvailabilityUpdateParams as AvailabilityUpdateParams, };
|
|
219
|
+
export { Nodes as Nodes, type NKSNode as NKSNode, type NKSNodeList as NKSNodeList, type NKSNodesCursor as NKSNodesCursor, type NodeListParams as NodeListParams, type NodeGetParams as NodeGetParams, };
|
|
220
|
+
}
|
|
221
|
+
//# sourceMappingURL=pools.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pools.d.ts","sourceRoot":"","sources":["../../../../src/resources/nks/clusters/pools/pools.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,MAAM;OACX,KAAK,aAAa;OAClB,KAAK,eAAe;OACpB,EAAE,YAAY,EAAE,wBAAwB,EAAE,wBAAwB,EAAE;OACpE,KAAK,QAAQ;OACb,EAAE,OAAO,EAAE,WAAW,EAAE,cAAc,EAAE,aAAa,EAAE,cAAc,EAAE,KAAK,EAAE;OAC9E,EAAE,UAAU,EAAE;OACd,EAAE,MAAM,EAAE,KAAK,YAAY,EAAE,WAAW,EAAE;OAC1C,EAAE,cAAc,EAAE;AAGzB,qBAAa,KAAM,SAAQ,WAAW;IACpC,YAAY,EAAE,eAAe,CAAC,YAAY,CAAkD;IAC5F,KAAK,EAAE,QAAQ,CAAC,KAAK,CAAoC;IAEzD;;;;;;;;;;;;;;;;;;OAkBG;IACH,MAAM,CACJ,SAAS,EAAE,MAAM,EACjB,IAAI,EAAE,gBAAgB,EACtB,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,aAAa,CAAC,SAAS,CAAC;IAItC;;;;;;;;;;OAUG;IACH,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,gBAAgB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,WAAW,CAAC;IAKnG;;;;;;;;;;;;OAYG;IACH,IAAI,CACF,SAAS,EAAE,MAAM,EACjB,KAAK,GAAE,cAAc,GAAG,IAAI,GAAG,SAAc,EAC7C,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,kBAAkB,EAAE,WAAW,CAAC;IAO/C;;;;;;;;;;OAUG;IAC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vB,KAAK,WAAW,IAAI,WAAW,EAC/B,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,aAAa,IAAI,aAAa,GACpC,CAAC;CACH"}
|
|
@@ -0,0 +1,109 @@
|
|
|
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 = void 0;
|
|
5
|
+
const tslib_1 = require("../../../../internal/tslib.js");
|
|
6
|
+
const resource_1 = require("../../../../core/resource.js");
|
|
7
|
+
const AvailabilityAPI = tslib_1.__importStar(require("./availability.js"));
|
|
8
|
+
const availability_1 = require("./availability.js");
|
|
9
|
+
const NodesAPI = tslib_1.__importStar(require("./nodes/nodes.js"));
|
|
10
|
+
const nodes_1 = require("./nodes/nodes.js");
|
|
11
|
+
const pagination_1 = require("../../../../core/pagination.js");
|
|
12
|
+
const path_1 = require("../../../../internal/utils/path.js");
|
|
13
|
+
class Pools extends resource_1.APIResource {
|
|
14
|
+
constructor() {
|
|
15
|
+
super(...arguments);
|
|
16
|
+
this.availability = new AvailabilityAPI.Availability(this._client);
|
|
17
|
+
this.nodes = new NodesAPI.Nodes(this._client);
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Create a node pool in an NKS cluster
|
|
21
|
+
*
|
|
22
|
+
* @example
|
|
23
|
+
* ```ts
|
|
24
|
+
* const operation = await client.nks.clusters.pools.create(
|
|
25
|
+
* 'cluster_id',
|
|
26
|
+
* {
|
|
27
|
+
* name: 'my-node-pool',
|
|
28
|
+
* node_config: {
|
|
29
|
+
* ram_gi: 8,
|
|
30
|
+
* storage_gi: 100,
|
|
31
|
+
* vcpu: 4,
|
|
32
|
+
* },
|
|
33
|
+
* node_count: 3,
|
|
34
|
+
* },
|
|
35
|
+
* );
|
|
36
|
+
* ```
|
|
37
|
+
*/
|
|
38
|
+
create(clusterID, body, options) {
|
|
39
|
+
return this._client.post((0, path_1.path) `/v1/nks/clusters/${clusterID}/pools`, { body, ...options });
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* Update an NKS node pool
|
|
43
|
+
*
|
|
44
|
+
* @example
|
|
45
|
+
* ```ts
|
|
46
|
+
* const nksNodePool = await client.nks.clusters.pools.update(
|
|
47
|
+
* 'pool_id',
|
|
48
|
+
* { cluster_id: 'cluster_id' },
|
|
49
|
+
* );
|
|
50
|
+
* ```
|
|
51
|
+
*/
|
|
52
|
+
update(poolID, params, options) {
|
|
53
|
+
const { cluster_id, ...body } = params;
|
|
54
|
+
return this._client.patch((0, path_1.path) `/v1/nks/clusters/${cluster_id}/pools/${poolID}`, { body, ...options });
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* List all node pools in an NKS cluster
|
|
58
|
+
*
|
|
59
|
+
* @example
|
|
60
|
+
* ```ts
|
|
61
|
+
* // Automatically fetches more pages as needed.
|
|
62
|
+
* for await (const nksNodePool of client.nks.clusters.pools.list(
|
|
63
|
+
* 'cluster_id',
|
|
64
|
+
* )) {
|
|
65
|
+
* // ...
|
|
66
|
+
* }
|
|
67
|
+
* ```
|
|
68
|
+
*/
|
|
69
|
+
list(clusterID, query = {}, options) {
|
|
70
|
+
return this._client.getAPIList((0, path_1.path) `/v1/nks/clusters/${clusterID}/pools`, (pagination_1.Cursor), {
|
|
71
|
+
query,
|
|
72
|
+
...options,
|
|
73
|
+
});
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* Delete an NKS node pool
|
|
77
|
+
*
|
|
78
|
+
* @example
|
|
79
|
+
* ```ts
|
|
80
|
+
* const operation = await client.nks.clusters.pools.delete(
|
|
81
|
+
* 'pool_id',
|
|
82
|
+
* { cluster_id: 'cluster_id' },
|
|
83
|
+
* );
|
|
84
|
+
* ```
|
|
85
|
+
*/
|
|
86
|
+
delete(poolID, params, options) {
|
|
87
|
+
const { cluster_id } = params;
|
|
88
|
+
return this._client.delete((0, path_1.path) `/v1/nks/clusters/${cluster_id}/pools/${poolID}`, options);
|
|
89
|
+
}
|
|
90
|
+
/**
|
|
91
|
+
* Get details about an NKS node pool
|
|
92
|
+
*
|
|
93
|
+
* @example
|
|
94
|
+
* ```ts
|
|
95
|
+
* const nksNodePool = await client.nks.clusters.pools.get(
|
|
96
|
+
* 'pool_id',
|
|
97
|
+
* { cluster_id: 'cluster_id' },
|
|
98
|
+
* );
|
|
99
|
+
* ```
|
|
100
|
+
*/
|
|
101
|
+
get(poolID, params, options) {
|
|
102
|
+
const { cluster_id } = params;
|
|
103
|
+
return this._client.get((0, path_1.path) `/v1/nks/clusters/${cluster_id}/pools/${poolID}`, options);
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
exports.Pools = Pools;
|
|
107
|
+
Pools.Availability = availability_1.Availability;
|
|
108
|
+
Pools.Nodes = nodes_1.Nodes;
|
|
109
|
+
//# sourceMappingURL=pools.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pools.js","sourceRoot":"","sources":["../../../../src/resources/nks/clusters/pools/pools.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,2DAAwD;AAGxD,2EAAkD;AAClD,oDAAkG;AAClG,mEAA0C;AAC1C,4CAA2G;AAE3G,+DAAqF;AAErF,6DAAuD;AAEvD,MAAa,KAAM,SAAQ,sBAAW;IAAtC;;QACE,iBAAY,GAAiC,IAAI,eAAe,CAAC,YAAY,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC5F,UAAK,GAAmB,IAAI,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAwG3D,CAAC;IAtGC;;;;;;;;;;;;;;;;;;OAkBG;IACH,MAAM,CACJ,SAAiB,EACjB,IAAsB,EACtB,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,oBAAoB,SAAS,QAAQ,EAAE,EAA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AC"}
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../../../../core/resource.mjs";
|
|
3
|
+
import * as AvailabilityAPI from "./availability.mjs";
|
|
4
|
+
import { Availability } from "./availability.mjs";
|
|
5
|
+
import * as NodesAPI from "./nodes/nodes.mjs";
|
|
6
|
+
import { Nodes } from "./nodes/nodes.mjs";
|
|
7
|
+
import { Cursor } from "../../../../core/pagination.mjs";
|
|
8
|
+
import { path } from "../../../../internal/utils/path.mjs";
|
|
9
|
+
export class Pools extends APIResource {
|
|
10
|
+
constructor() {
|
|
11
|
+
super(...arguments);
|
|
12
|
+
this.availability = new AvailabilityAPI.Availability(this._client);
|
|
13
|
+
this.nodes = new NodesAPI.Nodes(this._client);
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Create a node pool in an NKS cluster
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
* ```ts
|
|
20
|
+
* const operation = await client.nks.clusters.pools.create(
|
|
21
|
+
* 'cluster_id',
|
|
22
|
+
* {
|
|
23
|
+
* name: 'my-node-pool',
|
|
24
|
+
* node_config: {
|
|
25
|
+
* ram_gi: 8,
|
|
26
|
+
* storage_gi: 100,
|
|
27
|
+
* vcpu: 4,
|
|
28
|
+
* },
|
|
29
|
+
* node_count: 3,
|
|
30
|
+
* },
|
|
31
|
+
* );
|
|
32
|
+
* ```
|
|
33
|
+
*/
|
|
34
|
+
create(clusterID, body, options) {
|
|
35
|
+
return this._client.post(path `/v1/nks/clusters/${clusterID}/pools`, { body, ...options });
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Update an NKS node pool
|
|
39
|
+
*
|
|
40
|
+
* @example
|
|
41
|
+
* ```ts
|
|
42
|
+
* const nksNodePool = await client.nks.clusters.pools.update(
|
|
43
|
+
* 'pool_id',
|
|
44
|
+
* { cluster_id: 'cluster_id' },
|
|
45
|
+
* );
|
|
46
|
+
* ```
|
|
47
|
+
*/
|
|
48
|
+
update(poolID, params, options) {
|
|
49
|
+
const { cluster_id, ...body } = params;
|
|
50
|
+
return this._client.patch(path `/v1/nks/clusters/${cluster_id}/pools/${poolID}`, { body, ...options });
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* List all node pools in an NKS cluster
|
|
54
|
+
*
|
|
55
|
+
* @example
|
|
56
|
+
* ```ts
|
|
57
|
+
* // Automatically fetches more pages as needed.
|
|
58
|
+
* for await (const nksNodePool of client.nks.clusters.pools.list(
|
|
59
|
+
* 'cluster_id',
|
|
60
|
+
* )) {
|
|
61
|
+
* // ...
|
|
62
|
+
* }
|
|
63
|
+
* ```
|
|
64
|
+
*/
|
|
65
|
+
list(clusterID, query = {}, options) {
|
|
66
|
+
return this._client.getAPIList(path `/v1/nks/clusters/${clusterID}/pools`, (Cursor), {
|
|
67
|
+
query,
|
|
68
|
+
...options,
|
|
69
|
+
});
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* Delete an NKS node pool
|
|
73
|
+
*
|
|
74
|
+
* @example
|
|
75
|
+
* ```ts
|
|
76
|
+
* const operation = await client.nks.clusters.pools.delete(
|
|
77
|
+
* 'pool_id',
|
|
78
|
+
* { cluster_id: 'cluster_id' },
|
|
79
|
+
* );
|
|
80
|
+
* ```
|
|
81
|
+
*/
|
|
82
|
+
delete(poolID, params, options) {
|
|
83
|
+
const { cluster_id } = params;
|
|
84
|
+
return this._client.delete(path `/v1/nks/clusters/${cluster_id}/pools/${poolID}`, options);
|
|
85
|
+
}
|
|
86
|
+
/**
|
|
87
|
+
* Get details about an NKS node pool
|
|
88
|
+
*
|
|
89
|
+
* @example
|
|
90
|
+
* ```ts
|
|
91
|
+
* const nksNodePool = await client.nks.clusters.pools.get(
|
|
92
|
+
* 'pool_id',
|
|
93
|
+
* { cluster_id: 'cluster_id' },
|
|
94
|
+
* );
|
|
95
|
+
* ```
|
|
96
|
+
*/
|
|
97
|
+
get(poolID, params, options) {
|
|
98
|
+
const { cluster_id } = params;
|
|
99
|
+
return this._client.get(path `/v1/nks/clusters/${cluster_id}/pools/${poolID}`, options);
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
Pools.Availability = Availability;
|
|
103
|
+
Pools.Nodes = Nodes;
|
|
104
|
+
//# sourceMappingURL=pools.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pools.mjs","sourceRoot":"","sources":["../../../../src/resources/nks/clusters/pools/pools.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAGf,KAAK,eAAe;OACpB,EAAE,YAAY,EAAsD;OACpE,KAAK,QAAQ;OACb,EAAuE,KAAK,EAAE;OAE9E,EAAE,MAAM,EAAkC;OAE1C,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,KAAM,SAAQ,WAAW;IAAtC;;QACE,iBAAY,GAAiC,IAAI,eAAe,CAAC,YAAY,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC5F,UAAK,GAAmB,IAAI,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAwG3D,CAAC;IAtGC;;;;;;;;;;;;;;;;;;OAkBG;IACH,MAAM,CACJ,SAAiB,EACjB,IAAsB,EACtB,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,oBAAoB,SAAS,QAAQ,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC5F,CAAC;IAED;;;;;;;;;;OAUG;IACH,MAAM,CAAC,MAAc,EAAE,MAAwB,EAAE,OAAwB;QACvE,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,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACxG,CAAC;IAED;;;;;;;;;;;;OAYG;IACH,IAAI,CACF,SAAiB,EACjB,QAA2C,EAAE,EAC7C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,IAAI,CAAA,oBAAoB,SAAS,QAAQ,EAAE,CAAA,MAAmB,CAAA,EAAE;YAC7F,KAAK;YACL,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;OAUG;IACH,MAAM,CACJ,MAAc,EACd,MAAwB,EACxB,OAAwB;QAExB,MAAM,EAAE,UAAU,EAAE,GAAG,MAAM,CAAC;QAC9B,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,oBAAoB,UAAU,UAAU,MAAM,EAAE,EAAE,OAAO,CAAC,CAAC;IAC5F,CAAC;IAED;;;;;;;;;;OAUG;IACH,GAAG,CAAC,MAAc,EAAE,MAAqB,EAAE,OAAwB;QACjE,MAAM,EAAE,UAAU,EAAE,GAAG,MAAM,CAAC;QAC9B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,oBAAoB,UAAU,UAAU,MAAM,EAAE,EAAE,OAAO,CAAC,CAAC;IACzF,CAAC;CACF;AAgKD,KAAK,CAAC,YAAY,GAAG,YAAY,CAAC;AAClC,KAAK,CAAC,KAAK,GAAG,KAAK,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pools.d.mts","sourceRoot":"","sources":["../../../src/resources/nks/clusters/pools.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pools.d.ts","sourceRoot":"","sources":["../../../src/resources/nks/clusters/pools.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("./pools/index.js"), exports);
|
|
6
|
+
//# sourceMappingURL=pools.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pools.js","sourceRoot":"","sources":["../../../src/resources/nks/clusters/pools.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,2DAA8B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pools.mjs","sourceRoot":"","sources":["../../../src/resources/nks/clusters/pools.ts"],"names":[],"mappings":"AAAA,sFAAsF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"clusters.d.mts","sourceRoot":"","sources":["../../src/resources/nks/clusters.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"clusters.d.ts","sourceRoot":"","sources":["../../src/resources/nks/clusters.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("./clusters/index.js"), exports);
|
|
6
|
+
//# sourceMappingURL=clusters.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"clusters.js","sourceRoot":"","sources":["../../src/resources/nks/clusters.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,8DAAiC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"clusters.mjs","sourceRoot":"","sources":["../../src/resources/nks/clusters.ts"],"names":[],"mappings":"AAAA,sFAAsF"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export { Clusters, type Kubeconfig, type NKSCluster, type NKSClusterList, type ClusterCreateParams, type ClusterUpdateParams, type ClusterListParams, type NKSClustersCursor, } from "./clusters/index.mjs";
|
|
2
|
+
export { NKS } from "./nks.mjs";
|
|
3
|
+
//# sourceMappingURL=index.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/resources/nks/index.ts"],"names":[],"mappings":"OAEO,EACL,QAAQ,EACR,KAAK,UAAU,EACf,KAAK,UAAU,EACf,KAAK,cAAc,EACnB,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,GACvB;OACM,EAAE,GAAG,EAAE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/nks/index.ts"],"names":[],"mappings":"OAEO,EACL,QAAQ,EACR,KAAK,UAAU,EACf,KAAK,UAAU,EACf,KAAK,cAAc,EACnB,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,GACvB;OACM,EAAE,GAAG,EAAE"}
|
|
@@ -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.NKS = exports.Clusters = void 0;
|
|
5
|
+
var index_1 = require("./clusters/index.js");
|
|
6
|
+
Object.defineProperty(exports, "Clusters", { enumerable: true, get: function () { return index_1.Clusters; } });
|
|
7
|
+
var nks_1 = require("./nks.js");
|
|
8
|
+
Object.defineProperty(exports, "NKS", { enumerable: true, get: function () { return nks_1.NKS; } });
|
|
9
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/nks/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,6CAS0B;AARxB,iGAAA,QAAQ,OAAA;AASV,gCAA4B;AAAnB,0FAAA,GAAG,OAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/nks/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,QAAQ,GAQT;OACM,EAAE,GAAG,EAAE"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { APIResource } from "../../core/resource.mjs";
|
|
2
|
+
import * as ClustersAPI from "./clusters/clusters.mjs";
|
|
3
|
+
import { ClusterCreateParams, ClusterListParams, ClusterUpdateParams, Clusters, Kubeconfig, NKSCluster, NKSClusterList, NKSClustersCursor } from "./clusters/clusters.mjs";
|
|
4
|
+
export declare class NKS extends APIResource {
|
|
5
|
+
clusters: ClustersAPI.Clusters;
|
|
6
|
+
}
|
|
7
|
+
export declare namespace NKS {
|
|
8
|
+
export { Clusters as Clusters, type Kubeconfig as Kubeconfig, type NKSCluster as NKSCluster, type NKSClusterList as NKSClusterList, type NKSClustersCursor as NKSClustersCursor, type ClusterCreateParams as ClusterCreateParams, type ClusterUpdateParams as ClusterUpdateParams, type ClusterListParams as ClusterListParams, };
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=nks.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"nks.d.mts","sourceRoot":"","sources":["../../src/resources/nks/nks.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,WAAW;OAChB,EACL,mBAAmB,EACnB,iBAAiB,EACjB,mBAAmB,EACnB,QAAQ,EACR,UAAU,EACV,UAAU,EACV,cAAc,EACd,iBAAiB,EAClB;AAED,qBAAa,GAAI,SAAQ,WAAW;IAClC,QAAQ,EAAE,WAAW,CAAC,QAAQ,CAA0C;CACzE;AAID,MAAM,CAAC,OAAO,WAAW,GAAG,CAAC;IAC3B,OAAO,EACL,QAAQ,IAAI,QAAQ,EACpB,KAAK,UAAU,IAAI,UAAU,EAC7B,KAAK,UAAU,IAAI,UAAU,EAC7B,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,iBAAiB,IAAI,iBAAiB,GAC5C,CAAC;CACH"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { APIResource } from "../../core/resource.js";
|
|
2
|
+
import * as ClustersAPI from "./clusters/clusters.js";
|
|
3
|
+
import { ClusterCreateParams, ClusterListParams, ClusterUpdateParams, Clusters, Kubeconfig, NKSCluster, NKSClusterList, NKSClustersCursor } from "./clusters/clusters.js";
|
|
4
|
+
export declare class NKS extends APIResource {
|
|
5
|
+
clusters: ClustersAPI.Clusters;
|
|
6
|
+
}
|
|
7
|
+
export declare namespace NKS {
|
|
8
|
+
export { Clusters as Clusters, type Kubeconfig as Kubeconfig, type NKSCluster as NKSCluster, type NKSClusterList as NKSClusterList, type NKSClustersCursor as NKSClustersCursor, type ClusterCreateParams as ClusterCreateParams, type ClusterUpdateParams as ClusterUpdateParams, type ClusterListParams as ClusterListParams, };
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=nks.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"nks.d.ts","sourceRoot":"","sources":["../../src/resources/nks/nks.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,WAAW;OAChB,EACL,mBAAmB,EACnB,iBAAiB,EACjB,mBAAmB,EACnB,QAAQ,EACR,UAAU,EACV,UAAU,EACV,cAAc,EACd,iBAAiB,EAClB;AAED,qBAAa,GAAI,SAAQ,WAAW;IAClC,QAAQ,EAAE,WAAW,CAAC,QAAQ,CAA0C;CACzE;AAID,MAAM,CAAC,OAAO,WAAW,GAAG,CAAC;IAC3B,OAAO,EACL,QAAQ,IAAI,QAAQ,EACpB,KAAK,UAAU,IAAI,UAAU,EAC7B,KAAK,UAAU,IAAI,UAAU,EAC7B,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,iBAAiB,IAAI,iBAAiB,GAC5C,CAAC;CACH"}
|
|
@@ -0,0 +1,17 @@
|
|
|
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.NKS = void 0;
|
|
5
|
+
const tslib_1 = require("../../internal/tslib.js");
|
|
6
|
+
const resource_1 = require("../../core/resource.js");
|
|
7
|
+
const ClustersAPI = tslib_1.__importStar(require("./clusters/clusters.js"));
|
|
8
|
+
const clusters_1 = require("./clusters/clusters.js");
|
|
9
|
+
class NKS extends resource_1.APIResource {
|
|
10
|
+
constructor() {
|
|
11
|
+
super(...arguments);
|
|
12
|
+
this.clusters = new ClustersAPI.Clusters(this._client);
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
exports.NKS = NKS;
|
|
16
|
+
NKS.Clusters = clusters_1.Clusters;
|
|
17
|
+
//# sourceMappingURL=nks.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"nks.js","sourceRoot":"","sources":["../../src/resources/nks/nks.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,qDAAkD;AAClD,4EAAmD;AACnD,qDAS6B;AAE7B,MAAa,GAAI,SAAQ,sBAAW;IAApC;;QACE,aAAQ,GAAyB,IAAI,WAAW,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAC1E,CAAC;CAAA;AAFD,kBAEC;AAED,GAAG,CAAC,QAAQ,GAAG,mBAAQ,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../../core/resource.mjs";
|
|
3
|
+
import * as ClustersAPI from "./clusters/clusters.mjs";
|
|
4
|
+
import { Clusters, } from "./clusters/clusters.mjs";
|
|
5
|
+
export class NKS extends APIResource {
|
|
6
|
+
constructor() {
|
|
7
|
+
super(...arguments);
|
|
8
|
+
this.clusters = new ClustersAPI.Clusters(this._client);
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
NKS.Clusters = Clusters;
|
|
12
|
+
//# sourceMappingURL=nks.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"nks.mjs","sourceRoot":"","sources":["../../src/resources/nks/nks.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,KAAK,WAAW;OAChB,EAIL,QAAQ,GAKT;AAED,MAAM,OAAO,GAAI,SAAQ,WAAW;IAApC;;QACE,aAAQ,GAAyB,IAAI,WAAW,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAC1E,CAAC;CAAA;AAED,GAAG,CAAC,QAAQ,GAAG,QAAQ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"nks.d.mts","sourceRoot":"","sources":["../src/resources/nks.ts"],"names":[],"mappings":""}
|