@nirvana-labs/nirvana 1.57.0 → 1.59.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/package.json +1 -1
- package/resources/api-keys/api-keys.d.mts +86 -1
- package/resources/api-keys/api-keys.d.mts.map +1 -1
- package/resources/api-keys/api-keys.d.ts +86 -1
- package/resources/api-keys/api-keys.d.ts.map +1 -1
- package/resources/api-keys/api-keys.js +7 -0
- package/resources/api-keys/api-keys.js.map +1 -1
- package/resources/api-keys/api-keys.mjs +7 -0
- package/resources/api-keys/api-keys.mjs.map +1 -1
- package/resources/nks/clusters/clusters.d.mts +2 -2
- package/resources/nks/clusters/clusters.d.mts.map +1 -1
- package/resources/nks/clusters/clusters.d.ts +2 -2
- package/resources/nks/clusters/clusters.d.ts.map +1 -1
- package/resources/nks/clusters/clusters.js.map +1 -1
- package/resources/nks/clusters/clusters.mjs.map +1 -1
- package/resources/nks/clusters/index.d.mts +1 -1
- package/resources/nks/clusters/index.d.mts.map +1 -1
- package/resources/nks/clusters/index.d.ts +1 -1
- package/resources/nks/clusters/index.d.ts.map +1 -1
- package/resources/nks/clusters/index.js.map +1 -1
- package/resources/nks/clusters/index.mjs.map +1 -1
- package/resources/nks/clusters/pools/availability.d.mts +4 -4
- package/resources/nks/clusters/pools/availability.d.mts.map +1 -1
- package/resources/nks/clusters/pools/availability.d.ts +4 -4
- package/resources/nks/clusters/pools/availability.d.ts.map +1 -1
- package/resources/nks/clusters/pools/availability.js +3 -3
- package/resources/nks/clusters/pools/availability.mjs +3 -3
- package/resources/nks/clusters/pools/index.d.mts +1 -1
- package/resources/nks/clusters/pools/index.d.mts.map +1 -1
- package/resources/nks/clusters/pools/index.d.ts +1 -1
- package/resources/nks/clusters/pools/index.d.ts.map +1 -1
- package/resources/nks/clusters/pools/index.js.map +1 -1
- package/resources/nks/clusters/pools/index.mjs.map +1 -1
- package/resources/nks/clusters/pools/nodes/volumes.d.mts +4 -0
- package/resources/nks/clusters/pools/nodes/volumes.d.mts.map +1 -1
- package/resources/nks/clusters/pools/nodes/volumes.d.ts +4 -0
- package/resources/nks/clusters/pools/nodes/volumes.d.ts.map +1 -1
- package/resources/nks/clusters/pools/pools.d.mts +103 -40
- package/resources/nks/clusters/pools/pools.d.mts.map +1 -1
- package/resources/nks/clusters/pools/pools.d.ts +103 -40
- package/resources/nks/clusters/pools/pools.d.ts.map +1 -1
- package/resources/nks/clusters/pools/pools.js +3 -3
- package/resources/nks/clusters/pools/pools.js.map +1 -1
- package/resources/nks/clusters/pools/pools.mjs +3 -3
- package/resources/nks/clusters/pools/pools.mjs.map +1 -1
- package/src/resources/api-keys/api-keys.ts +112 -0
- package/src/resources/api-keys/api.md +3 -0
- package/src/resources/nks/api.md +8 -2
- package/src/resources/nks/clusters/clusters.ts +16 -4
- package/src/resources/nks/clusters/index.ts +8 -2
- package/src/resources/nks/clusters/pools/availability.ts +4 -4
- package/src/resources/nks/clusters/pools/index.ts +8 -2
- package/src/resources/nks/clusters/pools/nodes/volumes.ts +5 -0
- package/src/resources/nks/clusters/pools/pools.ts +124 -47
- 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
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
3
|
import { APIResource } from '../../core/resource';
|
|
4
|
+
import * as APIKeysAPI from './api-keys';
|
|
4
5
|
import * as Shared from '../shared';
|
|
5
6
|
import { APIPromise } from '../../core/api-promise';
|
|
6
7
|
import { Cursor, type CursorParams, PagePromise } from '../../core/pagination';
|
|
@@ -17,6 +18,13 @@ export class APIKeys extends APIResource {
|
|
|
17
18
|
* const apiKey = await client.apiKeys.create({
|
|
18
19
|
* expires_at: '2025-12-31T23:59:59Z',
|
|
19
20
|
* name: 'My API Key',
|
|
21
|
+
* permissions: [
|
|
22
|
+
* { permission: 'edit', resource_type: 'vm' },
|
|
23
|
+
* ],
|
|
24
|
+
* project_ids: [
|
|
25
|
+
* '123e4567-e89b-12d3-a456-426614174000',
|
|
26
|
+
* '123e4567-e89b-12d3-a456-426614174001',
|
|
27
|
+
* ],
|
|
20
28
|
* });
|
|
21
29
|
* ```
|
|
22
30
|
*/
|
|
@@ -108,6 +116,16 @@ export interface APIKey {
|
|
|
108
116
|
*/
|
|
109
117
|
name: string;
|
|
110
118
|
|
|
119
|
+
/**
|
|
120
|
+
* Scoped permissions for this API key.
|
|
121
|
+
*/
|
|
122
|
+
permissions: Array<APIKeyPermission>;
|
|
123
|
+
|
|
124
|
+
/**
|
|
125
|
+
* Project IDs this API key is scoped to.
|
|
126
|
+
*/
|
|
127
|
+
project_ids: Array<string>;
|
|
128
|
+
|
|
111
129
|
/**
|
|
112
130
|
* IP filter rules.
|
|
113
131
|
*/
|
|
@@ -148,6 +166,41 @@ export interface APIKeyList {
|
|
|
148
166
|
pagination: Shared.Pagination;
|
|
149
167
|
}
|
|
150
168
|
|
|
169
|
+
/**
|
|
170
|
+
* API Key permission.
|
|
171
|
+
*/
|
|
172
|
+
export interface APIKeyPermission {
|
|
173
|
+
/**
|
|
174
|
+
* Permission level: "read" or "edit".
|
|
175
|
+
*/
|
|
176
|
+
permission: APIPermissionLevel;
|
|
177
|
+
|
|
178
|
+
/**
|
|
179
|
+
* Resource type this permission applies to.
|
|
180
|
+
*/
|
|
181
|
+
resource_type: APIPermissionResourceType;
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
/**
|
|
185
|
+
* Permission level: "read" or "edit".
|
|
186
|
+
*/
|
|
187
|
+
export type APIPermissionLevel = 'read' | 'edit';
|
|
188
|
+
|
|
189
|
+
/**
|
|
190
|
+
* Resource type this permission applies to.
|
|
191
|
+
*/
|
|
192
|
+
export type APIPermissionResourceType =
|
|
193
|
+
| 'vm'
|
|
194
|
+
| 'vpc'
|
|
195
|
+
| 'volume'
|
|
196
|
+
| 'connect_connection'
|
|
197
|
+
| 'rpc_node_dedicated'
|
|
198
|
+
| 'rpc_node_flex'
|
|
199
|
+
| 'nks_cluster'
|
|
200
|
+
| 'nks_node_pool'
|
|
201
|
+
| 'project'
|
|
202
|
+
| 'api_key';
|
|
203
|
+
|
|
151
204
|
export interface APIKeyCreateParams {
|
|
152
205
|
/**
|
|
153
206
|
* When the API Key expires and is no longer valid.
|
|
@@ -159,6 +212,16 @@ export interface APIKeyCreateParams {
|
|
|
159
212
|
*/
|
|
160
213
|
name: string;
|
|
161
214
|
|
|
215
|
+
/**
|
|
216
|
+
* Scoped permissions for this API key. At least one is required.
|
|
217
|
+
*/
|
|
218
|
+
permissions: Array<APIKeyCreateParams.Permission>;
|
|
219
|
+
|
|
220
|
+
/**
|
|
221
|
+
* Project IDs this API key is scoped to. At least one is required.
|
|
222
|
+
*/
|
|
223
|
+
project_ids: Array<string>;
|
|
224
|
+
|
|
162
225
|
/**
|
|
163
226
|
* IP filter rules.
|
|
164
227
|
*/
|
|
@@ -175,12 +238,41 @@ export interface APIKeyCreateParams {
|
|
|
175
238
|
tags?: Array<string>;
|
|
176
239
|
}
|
|
177
240
|
|
|
241
|
+
export namespace APIKeyCreateParams {
|
|
242
|
+
/**
|
|
243
|
+
* API Key permission request.
|
|
244
|
+
*/
|
|
245
|
+
export interface Permission {
|
|
246
|
+
/**
|
|
247
|
+
* Permission level: "read" or "edit".
|
|
248
|
+
*/
|
|
249
|
+
permission: APIKeysAPI.APIPermissionLevel;
|
|
250
|
+
|
|
251
|
+
/**
|
|
252
|
+
* Resource type this permission applies to.
|
|
253
|
+
*/
|
|
254
|
+
resource_type: APIKeysAPI.APIPermissionResourceType;
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
|
|
178
258
|
export interface APIKeyUpdateParams {
|
|
179
259
|
/**
|
|
180
260
|
* API Key name.
|
|
181
261
|
*/
|
|
182
262
|
name?: string;
|
|
183
263
|
|
|
264
|
+
/**
|
|
265
|
+
* Scoped permissions for this API key. When provided, replaces the entire set. At
|
|
266
|
+
* least one is required.
|
|
267
|
+
*/
|
|
268
|
+
permissions?: Array<APIKeyUpdateParams.Permission>;
|
|
269
|
+
|
|
270
|
+
/**
|
|
271
|
+
* Project IDs this API key is scoped to. When provided, replaces the entire set.
|
|
272
|
+
* At least one is required.
|
|
273
|
+
*/
|
|
274
|
+
project_ids?: Array<string>;
|
|
275
|
+
|
|
184
276
|
/**
|
|
185
277
|
* IP filter rules.
|
|
186
278
|
*/
|
|
@@ -192,12 +284,32 @@ export interface APIKeyUpdateParams {
|
|
|
192
284
|
tags?: Array<string>;
|
|
193
285
|
}
|
|
194
286
|
|
|
287
|
+
export namespace APIKeyUpdateParams {
|
|
288
|
+
/**
|
|
289
|
+
* API Key permission request.
|
|
290
|
+
*/
|
|
291
|
+
export interface Permission {
|
|
292
|
+
/**
|
|
293
|
+
* Permission level: "read" or "edit".
|
|
294
|
+
*/
|
|
295
|
+
permission: APIKeysAPI.APIPermissionLevel;
|
|
296
|
+
|
|
297
|
+
/**
|
|
298
|
+
* Resource type this permission applies to.
|
|
299
|
+
*/
|
|
300
|
+
resource_type: APIKeysAPI.APIPermissionResourceType;
|
|
301
|
+
}
|
|
302
|
+
}
|
|
303
|
+
|
|
195
304
|
export interface APIKeyListParams extends CursorParams {}
|
|
196
305
|
|
|
197
306
|
export declare namespace APIKeys {
|
|
198
307
|
export {
|
|
199
308
|
type APIKey as APIKey,
|
|
200
309
|
type APIKeyList as APIKeyList,
|
|
310
|
+
type APIKeyPermission as APIKeyPermission,
|
|
311
|
+
type APIPermissionLevel as APIPermissionLevel,
|
|
312
|
+
type APIPermissionResourceType as APIPermissionResourceType,
|
|
201
313
|
type APIKeysCursor as APIKeysCursor,
|
|
202
314
|
type APIKeyCreateParams as APIKeyCreateParams,
|
|
203
315
|
type APIKeyUpdateParams as APIKeyUpdateParams,
|
|
@@ -4,6 +4,9 @@ Types:
|
|
|
4
4
|
|
|
5
5
|
- <code><a href="./src/resources/api-keys.ts">APIKey</a></code>
|
|
6
6
|
- <code><a href="./src/resources/api-keys.ts">APIKeyList</a></code>
|
|
7
|
+
- <code><a href="./src/resources/api-keys.ts">APIKeyPermission</a></code>
|
|
8
|
+
- <code><a href="./src/resources/api-keys.ts">APIPermissionLevel</a></code>
|
|
9
|
+
- <code><a href="./src/resources/api-keys.ts">APIPermissionResourceType</a></code>
|
|
7
10
|
|
|
8
11
|
Methods:
|
|
9
12
|
|
package/src/resources/nks/api.md
CHANGED
|
@@ -33,10 +33,16 @@ Methods:
|
|
|
33
33
|
|
|
34
34
|
Types:
|
|
35
35
|
|
|
36
|
-
- <code><a href="./src/resources/nks/clusters/pools/pools.ts">NKSNodeConfig</a></code>
|
|
37
|
-
- <code><a href="./src/resources/nks/clusters/pools/pools.ts">NKSNodeConfigResponse</a></code>
|
|
38
36
|
- <code><a href="./src/resources/nks/clusters/pools/pools.ts">NKSNodePool</a></code>
|
|
37
|
+
- <code><a href="./src/resources/nks/clusters/pools/pools.ts">NKSNodePoolBootVolume</a></code>
|
|
38
|
+
- <code><a href="./src/resources/nks/clusters/pools/pools.ts">NKSNodePoolBootVolumeResponse</a></code>
|
|
39
|
+
- <code><a href="./src/resources/nks/clusters/pools/pools.ts">NKSNodePoolCPUConfig</a></code>
|
|
40
|
+
- <code><a href="./src/resources/nks/clusters/pools/pools.ts">NKSNodePoolCPUConfigResponse</a></code>
|
|
39
41
|
- <code><a href="./src/resources/nks/clusters/pools/pools.ts">NKSNodePoolList</a></code>
|
|
42
|
+
- <code><a href="./src/resources/nks/clusters/pools/pools.ts">NKSNodePoolMemoryConfig</a></code>
|
|
43
|
+
- <code><a href="./src/resources/nks/clusters/pools/pools.ts">NKSNodePoolMemoryConfigResponse</a></code>
|
|
44
|
+
- <code><a href="./src/resources/nks/clusters/pools/pools.ts">NKSNodePoolNodeConfig</a></code>
|
|
45
|
+
- <code><a href="./src/resources/nks/clusters/pools/pools.ts">NKSNodePoolNodeConfigResponse</a></code>
|
|
40
46
|
|
|
41
47
|
Methods:
|
|
42
48
|
|
|
@@ -8,10 +8,16 @@ import { Availability, AvailabilityCreateParams, AvailabilityUpdateParams } from
|
|
|
8
8
|
import * as KubeconfigAPI from './kubeconfig';
|
|
9
9
|
import * as PoolsAPI from './pools/pools';
|
|
10
10
|
import {
|
|
11
|
-
NKSNodeConfig,
|
|
12
|
-
NKSNodeConfigResponse,
|
|
13
11
|
NKSNodePool,
|
|
12
|
+
NKSNodePoolBootVolume,
|
|
13
|
+
NKSNodePoolBootVolumeResponse,
|
|
14
|
+
NKSNodePoolCPUConfig,
|
|
15
|
+
NKSNodePoolCPUConfigResponse,
|
|
14
16
|
NKSNodePoolList,
|
|
17
|
+
NKSNodePoolMemoryConfig,
|
|
18
|
+
NKSNodePoolMemoryConfigResponse,
|
|
19
|
+
NKSNodePoolNodeConfig,
|
|
20
|
+
NKSNodePoolNodeConfigResponse,
|
|
15
21
|
NKSNodePoolsCursor,
|
|
16
22
|
PoolCreateParams,
|
|
17
23
|
PoolDeleteParams,
|
|
@@ -261,10 +267,16 @@ export declare namespace Clusters {
|
|
|
261
267
|
|
|
262
268
|
export {
|
|
263
269
|
Pools as Pools,
|
|
264
|
-
type NKSNodeConfig as NKSNodeConfig,
|
|
265
|
-
type NKSNodeConfigResponse as NKSNodeConfigResponse,
|
|
266
270
|
type NKSNodePool as NKSNodePool,
|
|
271
|
+
type NKSNodePoolBootVolume as NKSNodePoolBootVolume,
|
|
272
|
+
type NKSNodePoolBootVolumeResponse as NKSNodePoolBootVolumeResponse,
|
|
273
|
+
type NKSNodePoolCPUConfig as NKSNodePoolCPUConfig,
|
|
274
|
+
type NKSNodePoolCPUConfigResponse as NKSNodePoolCPUConfigResponse,
|
|
267
275
|
type NKSNodePoolList as NKSNodePoolList,
|
|
276
|
+
type NKSNodePoolMemoryConfig as NKSNodePoolMemoryConfig,
|
|
277
|
+
type NKSNodePoolMemoryConfigResponse as NKSNodePoolMemoryConfigResponse,
|
|
278
|
+
type NKSNodePoolNodeConfig as NKSNodePoolNodeConfig,
|
|
279
|
+
type NKSNodePoolNodeConfigResponse as NKSNodePoolNodeConfigResponse,
|
|
268
280
|
type NKSNodePoolsCursor as NKSNodePoolsCursor,
|
|
269
281
|
type PoolCreateParams as PoolCreateParams,
|
|
270
282
|
type PoolUpdateParams as PoolUpdateParams,
|
|
@@ -13,10 +13,16 @@ export {
|
|
|
13
13
|
} from './clusters';
|
|
14
14
|
export {
|
|
15
15
|
Pools,
|
|
16
|
-
type NKSNodeConfig,
|
|
17
|
-
type NKSNodeConfigResponse,
|
|
18
16
|
type NKSNodePool,
|
|
17
|
+
type NKSNodePoolBootVolume,
|
|
18
|
+
type NKSNodePoolBootVolumeResponse,
|
|
19
|
+
type NKSNodePoolCPUConfig,
|
|
20
|
+
type NKSNodePoolCPUConfigResponse,
|
|
19
21
|
type NKSNodePoolList,
|
|
22
|
+
type NKSNodePoolMemoryConfig,
|
|
23
|
+
type NKSNodePoolMemoryConfigResponse,
|
|
24
|
+
type NKSNodePoolNodeConfig,
|
|
25
|
+
type NKSNodePoolNodeConfigResponse,
|
|
20
26
|
type PoolCreateParams,
|
|
21
27
|
type PoolUpdateParams,
|
|
22
28
|
type PoolListParams,
|
|
@@ -18,9 +18,9 @@ export class Availability extends APIResource {
|
|
|
18
18
|
* {
|
|
19
19
|
* name: 'my-node-pool',
|
|
20
20
|
* node_config: {
|
|
21
|
-
*
|
|
22
|
-
*
|
|
23
|
-
*
|
|
21
|
+
* boot_volume: { size: 100, type: 'abs' },
|
|
22
|
+
* cpu_config: { vcpu: 4 },
|
|
23
|
+
* memory_config: { size: 8 },
|
|
24
24
|
* },
|
|
25
25
|
* node_count: 3,
|
|
26
26
|
* },
|
|
@@ -65,7 +65,7 @@ export interface AvailabilityCreateParams {
|
|
|
65
65
|
/**
|
|
66
66
|
* Node configuration.
|
|
67
67
|
*/
|
|
68
|
-
node_config: PoolsAPI.
|
|
68
|
+
node_config: PoolsAPI.NKSNodePoolNodeConfig;
|
|
69
69
|
|
|
70
70
|
/**
|
|
71
71
|
* Number of nodes. Must be between 1 and 100.
|
|
@@ -11,10 +11,16 @@ export {
|
|
|
11
11
|
} from './nodes/index';
|
|
12
12
|
export {
|
|
13
13
|
Pools,
|
|
14
|
-
type NKSNodeConfig,
|
|
15
|
-
type NKSNodeConfigResponse,
|
|
16
14
|
type NKSNodePool,
|
|
15
|
+
type NKSNodePoolBootVolume,
|
|
16
|
+
type NKSNodePoolBootVolumeResponse,
|
|
17
|
+
type NKSNodePoolCPUConfig,
|
|
18
|
+
type NKSNodePoolCPUConfigResponse,
|
|
17
19
|
type NKSNodePoolList,
|
|
20
|
+
type NKSNodePoolMemoryConfig,
|
|
21
|
+
type NKSNodePoolMemoryConfigResponse,
|
|
22
|
+
type NKSNodePoolNodeConfig,
|
|
23
|
+
type NKSNodePoolNodeConfigResponse,
|
|
18
24
|
type PoolCreateParams,
|
|
19
25
|
type PoolUpdateParams,
|
|
20
26
|
type PoolListParams,
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
import { APIResource } from '../../../../core/resource';
|
|
4
4
|
import * as Shared from '../../../shared';
|
|
5
5
|
import * as OperationsAPI from '../../../operations/operations';
|
|
6
|
+
import * as VolumesAPI from '../../../compute/volumes/volumes';
|
|
6
7
|
import * as AvailabilityAPI from './availability';
|
|
7
8
|
import { Availability, AvailabilityCreateParams, AvailabilityUpdateParams } from './availability';
|
|
8
9
|
import * as NodesAPI from './nodes/nodes';
|
|
@@ -26,9 +27,9 @@ export class Pools extends APIResource {
|
|
|
26
27
|
* {
|
|
27
28
|
* name: 'my-node-pool',
|
|
28
29
|
* node_config: {
|
|
29
|
-
*
|
|
30
|
-
*
|
|
31
|
-
*
|
|
30
|
+
* boot_volume: { size: 100, type: 'abs' },
|
|
31
|
+
* cpu_config: { vcpu: 4 },
|
|
32
|
+
* memory_config: { size: 8 },
|
|
32
33
|
* },
|
|
33
34
|
* node_count: 3,
|
|
34
35
|
* },
|
|
@@ -122,46 +123,6 @@ export class Pools extends APIResource {
|
|
|
122
123
|
|
|
123
124
|
export type NKSNodePoolsCursor = Cursor<NKSNodePool>;
|
|
124
125
|
|
|
125
|
-
/**
|
|
126
|
-
* Node configuration.
|
|
127
|
-
*/
|
|
128
|
-
export interface NKSNodeConfig {
|
|
129
|
-
/**
|
|
130
|
-
* RAM size in GiB per node.
|
|
131
|
-
*/
|
|
132
|
-
ram_gi: number;
|
|
133
|
-
|
|
134
|
-
/**
|
|
135
|
-
* Storage size in GiB per node.
|
|
136
|
-
*/
|
|
137
|
-
storage_gi: number;
|
|
138
|
-
|
|
139
|
-
/**
|
|
140
|
-
* Number of virtual CPUs per node.
|
|
141
|
-
*/
|
|
142
|
-
vcpu: number;
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
/**
|
|
146
|
-
* Node configuration.
|
|
147
|
-
*/
|
|
148
|
-
export interface NKSNodeConfigResponse {
|
|
149
|
-
/**
|
|
150
|
-
* RAM size in GiB per node.
|
|
151
|
-
*/
|
|
152
|
-
ram_gi: number;
|
|
153
|
-
|
|
154
|
-
/**
|
|
155
|
-
* Storage size in GiB per node.
|
|
156
|
-
*/
|
|
157
|
-
storage_gi: number;
|
|
158
|
-
|
|
159
|
-
/**
|
|
160
|
-
* Number of virtual CPUs per node.
|
|
161
|
-
*/
|
|
162
|
-
vcpu: number;
|
|
163
|
-
}
|
|
164
|
-
|
|
165
126
|
/**
|
|
166
127
|
* NKS node pool details.
|
|
167
128
|
*/
|
|
@@ -189,7 +150,7 @@ export interface NKSNodePool {
|
|
|
189
150
|
/**
|
|
190
151
|
* Node configuration.
|
|
191
152
|
*/
|
|
192
|
-
node_config:
|
|
153
|
+
node_config: NKSNodePoolNodeConfigResponse;
|
|
193
154
|
|
|
194
155
|
/**
|
|
195
156
|
* Number of nodes.
|
|
@@ -212,6 +173,56 @@ export interface NKSNodePool {
|
|
|
212
173
|
updated_at: string;
|
|
213
174
|
}
|
|
214
175
|
|
|
176
|
+
/**
|
|
177
|
+
* Boot volume configuration.
|
|
178
|
+
*/
|
|
179
|
+
export interface NKSNodePoolBootVolume {
|
|
180
|
+
/**
|
|
181
|
+
* Size of the boot volume in GB.
|
|
182
|
+
*/
|
|
183
|
+
size: number;
|
|
184
|
+
|
|
185
|
+
/**
|
|
186
|
+
* Type of the Volume.
|
|
187
|
+
*/
|
|
188
|
+
type: VolumesAPI.VolumeType;
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
/**
|
|
192
|
+
* Boot volume configuration.
|
|
193
|
+
*/
|
|
194
|
+
export interface NKSNodePoolBootVolumeResponse {
|
|
195
|
+
/**
|
|
196
|
+
* Size of the boot volume in GB.
|
|
197
|
+
*/
|
|
198
|
+
size: number;
|
|
199
|
+
|
|
200
|
+
/**
|
|
201
|
+
* Type of the Volume.
|
|
202
|
+
*/
|
|
203
|
+
type: VolumesAPI.VolumeType;
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
/**
|
|
207
|
+
* CPU configuration.
|
|
208
|
+
*/
|
|
209
|
+
export interface NKSNodePoolCPUConfig {
|
|
210
|
+
/**
|
|
211
|
+
* Number of virtual CPUs.
|
|
212
|
+
*/
|
|
213
|
+
vcpu: number;
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
/**
|
|
217
|
+
* CPU configuration.
|
|
218
|
+
*/
|
|
219
|
+
export interface NKSNodePoolCPUConfigResponse {
|
|
220
|
+
/**
|
|
221
|
+
* Number of virtual CPUs.
|
|
222
|
+
*/
|
|
223
|
+
vcpu: number;
|
|
224
|
+
}
|
|
225
|
+
|
|
215
226
|
export interface NKSNodePoolList {
|
|
216
227
|
items: Array<NKSNodePool>;
|
|
217
228
|
|
|
@@ -221,6 +232,66 @@ export interface NKSNodePoolList {
|
|
|
221
232
|
pagination: Shared.Pagination;
|
|
222
233
|
}
|
|
223
234
|
|
|
235
|
+
/**
|
|
236
|
+
* Memory configuration.
|
|
237
|
+
*/
|
|
238
|
+
export interface NKSNodePoolMemoryConfig {
|
|
239
|
+
/**
|
|
240
|
+
* Size of the memory in GB.
|
|
241
|
+
*/
|
|
242
|
+
size: number;
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
/**
|
|
246
|
+
* Memory configuration.
|
|
247
|
+
*/
|
|
248
|
+
export interface NKSNodePoolMemoryConfigResponse {
|
|
249
|
+
/**
|
|
250
|
+
* Size of the memory in GB.
|
|
251
|
+
*/
|
|
252
|
+
size: number;
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
/**
|
|
256
|
+
* Node configuration.
|
|
257
|
+
*/
|
|
258
|
+
export interface NKSNodePoolNodeConfig {
|
|
259
|
+
/**
|
|
260
|
+
* Boot volume configuration.
|
|
261
|
+
*/
|
|
262
|
+
boot_volume: NKSNodePoolBootVolume;
|
|
263
|
+
|
|
264
|
+
/**
|
|
265
|
+
* CPU configuration.
|
|
266
|
+
*/
|
|
267
|
+
cpu_config: NKSNodePoolCPUConfig;
|
|
268
|
+
|
|
269
|
+
/**
|
|
270
|
+
* Memory configuration.
|
|
271
|
+
*/
|
|
272
|
+
memory_config: NKSNodePoolMemoryConfig;
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
/**
|
|
276
|
+
* Node configuration.
|
|
277
|
+
*/
|
|
278
|
+
export interface NKSNodePoolNodeConfigResponse {
|
|
279
|
+
/**
|
|
280
|
+
* Boot volume configuration.
|
|
281
|
+
*/
|
|
282
|
+
boot_volume: NKSNodePoolBootVolumeResponse;
|
|
283
|
+
|
|
284
|
+
/**
|
|
285
|
+
* CPU configuration.
|
|
286
|
+
*/
|
|
287
|
+
cpu_config: NKSNodePoolCPUConfigResponse;
|
|
288
|
+
|
|
289
|
+
/**
|
|
290
|
+
* Memory configuration.
|
|
291
|
+
*/
|
|
292
|
+
memory_config: NKSNodePoolMemoryConfigResponse;
|
|
293
|
+
}
|
|
294
|
+
|
|
224
295
|
export interface PoolCreateParams {
|
|
225
296
|
/**
|
|
226
297
|
* Name of the node pool.
|
|
@@ -230,7 +301,7 @@ export interface PoolCreateParams {
|
|
|
230
301
|
/**
|
|
231
302
|
* Node configuration.
|
|
232
303
|
*/
|
|
233
|
-
node_config:
|
|
304
|
+
node_config: NKSNodePoolNodeConfig;
|
|
234
305
|
|
|
235
306
|
/**
|
|
236
307
|
* Number of nodes. Must be between 1 and 100.
|
|
@@ -281,10 +352,16 @@ Pools.Nodes = Nodes;
|
|
|
281
352
|
|
|
282
353
|
export declare namespace Pools {
|
|
283
354
|
export {
|
|
284
|
-
type NKSNodeConfig as NKSNodeConfig,
|
|
285
|
-
type NKSNodeConfigResponse as NKSNodeConfigResponse,
|
|
286
355
|
type NKSNodePool as NKSNodePool,
|
|
356
|
+
type NKSNodePoolBootVolume as NKSNodePoolBootVolume,
|
|
357
|
+
type NKSNodePoolBootVolumeResponse as NKSNodePoolBootVolumeResponse,
|
|
358
|
+
type NKSNodePoolCPUConfig as NKSNodePoolCPUConfig,
|
|
359
|
+
type NKSNodePoolCPUConfigResponse as NKSNodePoolCPUConfigResponse,
|
|
287
360
|
type NKSNodePoolList as NKSNodePoolList,
|
|
361
|
+
type NKSNodePoolMemoryConfig as NKSNodePoolMemoryConfig,
|
|
362
|
+
type NKSNodePoolMemoryConfigResponse as NKSNodePoolMemoryConfigResponse,
|
|
363
|
+
type NKSNodePoolNodeConfig as NKSNodePoolNodeConfig,
|
|
364
|
+
type NKSNodePoolNodeConfigResponse as NKSNodePoolNodeConfigResponse,
|
|
288
365
|
type NKSNodePoolsCursor as NKSNodePoolsCursor,
|
|
289
366
|
type PoolCreateParams as PoolCreateParams,
|
|
290
367
|
type PoolUpdateParams as PoolUpdateParams,
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '1.
|
|
1
|
+
export const VERSION = '1.59.0'; // x-release-please-version
|
package/version.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "1.
|
|
1
|
+
export declare const VERSION = "1.59.0";
|
|
2
2
|
//# sourceMappingURL=version.d.mts.map
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "1.
|
|
1
|
+
export declare const VERSION = "1.59.0";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.js
CHANGED
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '1.
|
|
1
|
+
export const VERSION = '1.59.0'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|