@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.
- package/CHANGELOG.md +30 -0
- package/bin/migration-config.json +300 -0
- package/client.d.mts +4 -0
- package/client.d.mts.map +1 -1
- package/client.d.ts +4 -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/api-keys/api-keys.d.mts +1 -16
- package/resources/api-keys/api-keys.d.mts.map +1 -1
- package/resources/api-keys/api-keys.d.ts +1 -16
- package/resources/api-keys/api-keys.d.ts.map +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 +219 -0
- package/resources/nks/clusters/pools/pools.d.mts.map +1 -0
- package/resources/nks/clusters/pools/pools.d.ts +219 -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/projects/projects.d.mts +54 -50
- package/resources/projects/projects.d.mts.map +1 -1
- package/resources/projects/projects.d.ts +54 -50
- package/resources/projects/projects.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/resources/shared.d.mts +14 -1
- package/resources/shared.d.mts.map +1 -1
- package/resources/shared.d.ts +14 -1
- package/resources/shared.d.ts.map +1 -1
- package/resources/user/security.d.mts +1 -16
- package/resources/user/security.d.mts.map +1 -1
- package/resources/user/security.d.ts +1 -16
- package/resources/user/security.d.ts.map +1 -1
- package/src/client.ts +6 -0
- package/src/resources/api-keys/api-keys.ts +1 -18
- package/src/resources/index.ts +1 -0
- package/src/resources/nks/api.md +78 -0
- package/src/resources/nks/clusters/availability.ts +93 -0
- package/src/resources/nks/clusters/clusters.ts +275 -0
- package/src/resources/nks/clusters/index.ts +26 -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 +24 -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 +310 -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/projects/api.md +3 -0
- package/src/resources/projects/projects.ts +63 -54
- package/src/resources/regions/regions.ts +15 -0
- package/src/resources/shared.ts +16 -8
- package/src/resources/user/security.ts +1 -18
- 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,310 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../../../../core/resource';
|
|
4
|
+
import * as Shared from '../../../shared';
|
|
5
|
+
import * as OperationsAPI from '../../../operations/operations';
|
|
6
|
+
import * as AvailabilityAPI from './availability';
|
|
7
|
+
import { Availability, AvailabilityCreateParams, AvailabilityUpdateParams } from './availability';
|
|
8
|
+
import * as NodesAPI from './nodes/nodes';
|
|
9
|
+
import { NKSNode, NKSNodeList, NKSNodesCursor, NodeGetParams, NodeListParams, Nodes } from './nodes/nodes';
|
|
10
|
+
import { APIPromise } from '../../../../core/api-promise';
|
|
11
|
+
import { Cursor, type CursorParams, PagePromise } from '../../../../core/pagination';
|
|
12
|
+
import { RequestOptions } from '../../../../internal/request-options';
|
|
13
|
+
import { path } from '../../../../internal/utils/path';
|
|
14
|
+
|
|
15
|
+
export class Pools extends APIResource {
|
|
16
|
+
availability: AvailabilityAPI.Availability = new AvailabilityAPI.Availability(this._client);
|
|
17
|
+
nodes: NodesAPI.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(
|
|
39
|
+
clusterID: string,
|
|
40
|
+
body: PoolCreateParams,
|
|
41
|
+
options?: RequestOptions,
|
|
42
|
+
): APIPromise<OperationsAPI.Operation> {
|
|
43
|
+
return this._client.post(path`/v1/nks/clusters/${clusterID}/pools`, { body, ...options });
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* Update an NKS node pool
|
|
48
|
+
*
|
|
49
|
+
* @example
|
|
50
|
+
* ```ts
|
|
51
|
+
* const nksNodePool = await client.nks.clusters.pools.update(
|
|
52
|
+
* 'pool_id',
|
|
53
|
+
* { cluster_id: 'cluster_id' },
|
|
54
|
+
* );
|
|
55
|
+
* ```
|
|
56
|
+
*/
|
|
57
|
+
update(poolID: string, params: PoolUpdateParams, options?: RequestOptions): APIPromise<NKSNodePool> {
|
|
58
|
+
const { cluster_id, ...body } = params;
|
|
59
|
+
return this._client.patch(path`/v1/nks/clusters/${cluster_id}/pools/${poolID}`, { body, ...options });
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* List all node pools in an NKS cluster
|
|
64
|
+
*
|
|
65
|
+
* @example
|
|
66
|
+
* ```ts
|
|
67
|
+
* // Automatically fetches more pages as needed.
|
|
68
|
+
* for await (const nksNodePool of client.nks.clusters.pools.list(
|
|
69
|
+
* 'cluster_id',
|
|
70
|
+
* )) {
|
|
71
|
+
* // ...
|
|
72
|
+
* }
|
|
73
|
+
* ```
|
|
74
|
+
*/
|
|
75
|
+
list(
|
|
76
|
+
clusterID: string,
|
|
77
|
+
query: PoolListParams | null | undefined = {},
|
|
78
|
+
options?: RequestOptions,
|
|
79
|
+
): PagePromise<NKSNodePoolsCursor, NKSNodePool> {
|
|
80
|
+
return this._client.getAPIList(path`/v1/nks/clusters/${clusterID}/pools`, Cursor<NKSNodePool>, {
|
|
81
|
+
query,
|
|
82
|
+
...options,
|
|
83
|
+
});
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
/**
|
|
87
|
+
* Delete an NKS node pool
|
|
88
|
+
*
|
|
89
|
+
* @example
|
|
90
|
+
* ```ts
|
|
91
|
+
* const operation = await client.nks.clusters.pools.delete(
|
|
92
|
+
* 'pool_id',
|
|
93
|
+
* { cluster_id: 'cluster_id' },
|
|
94
|
+
* );
|
|
95
|
+
* ```
|
|
96
|
+
*/
|
|
97
|
+
delete(
|
|
98
|
+
poolID: string,
|
|
99
|
+
params: PoolDeleteParams,
|
|
100
|
+
options?: RequestOptions,
|
|
101
|
+
): APIPromise<OperationsAPI.Operation> {
|
|
102
|
+
const { cluster_id } = params;
|
|
103
|
+
return this._client.delete(path`/v1/nks/clusters/${cluster_id}/pools/${poolID}`, options);
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
/**
|
|
107
|
+
* Get details about an NKS node pool
|
|
108
|
+
*
|
|
109
|
+
* @example
|
|
110
|
+
* ```ts
|
|
111
|
+
* const nksNodePool = await client.nks.clusters.pools.get(
|
|
112
|
+
* 'pool_id',
|
|
113
|
+
* { cluster_id: 'cluster_id' },
|
|
114
|
+
* );
|
|
115
|
+
* ```
|
|
116
|
+
*/
|
|
117
|
+
get(poolID: string, params: PoolGetParams, options?: RequestOptions): APIPromise<NKSNodePool> {
|
|
118
|
+
const { cluster_id } = params;
|
|
119
|
+
return this._client.get(path`/v1/nks/clusters/${cluster_id}/pools/${poolID}`, options);
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
export type NKSNodePoolsCursor = Cursor<NKSNodePool>;
|
|
124
|
+
|
|
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
|
+
/**
|
|
166
|
+
* NKS node pool details.
|
|
167
|
+
*/
|
|
168
|
+
export interface NKSNodePool {
|
|
169
|
+
/**
|
|
170
|
+
* Unique identifier for the node pool.
|
|
171
|
+
*/
|
|
172
|
+
id: string;
|
|
173
|
+
|
|
174
|
+
/**
|
|
175
|
+
* ID of the Cluster this node pool belongs to.
|
|
176
|
+
*/
|
|
177
|
+
cluster_id: string;
|
|
178
|
+
|
|
179
|
+
/**
|
|
180
|
+
* When the node pool was created.
|
|
181
|
+
*/
|
|
182
|
+
created_at: string;
|
|
183
|
+
|
|
184
|
+
/**
|
|
185
|
+
* Name of the node pool.
|
|
186
|
+
*/
|
|
187
|
+
name: string;
|
|
188
|
+
|
|
189
|
+
/**
|
|
190
|
+
* Node configuration.
|
|
191
|
+
*/
|
|
192
|
+
node_config: NKSNodeConfigResponse;
|
|
193
|
+
|
|
194
|
+
/**
|
|
195
|
+
* Number of nodes.
|
|
196
|
+
*/
|
|
197
|
+
node_count: number;
|
|
198
|
+
|
|
199
|
+
/**
|
|
200
|
+
* Status of the resource.
|
|
201
|
+
*/
|
|
202
|
+
status: Shared.ResourceStatus;
|
|
203
|
+
|
|
204
|
+
/**
|
|
205
|
+
* Tags attached to the node pool.
|
|
206
|
+
*/
|
|
207
|
+
tags: Array<string>;
|
|
208
|
+
|
|
209
|
+
/**
|
|
210
|
+
* When the node pool was last updated.
|
|
211
|
+
*/
|
|
212
|
+
updated_at: string;
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
export interface NKSNodePoolList {
|
|
216
|
+
items: Array<NKSNodePool>;
|
|
217
|
+
|
|
218
|
+
/**
|
|
219
|
+
* Pagination response details.
|
|
220
|
+
*/
|
|
221
|
+
pagination: Shared.Pagination;
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
export interface PoolCreateParams {
|
|
225
|
+
/**
|
|
226
|
+
* Name of the node pool.
|
|
227
|
+
*/
|
|
228
|
+
name: string;
|
|
229
|
+
|
|
230
|
+
/**
|
|
231
|
+
* Node configuration.
|
|
232
|
+
*/
|
|
233
|
+
node_config: NKSNodeConfig;
|
|
234
|
+
|
|
235
|
+
/**
|
|
236
|
+
* Number of nodes. Must be between 1 and 100.
|
|
237
|
+
*/
|
|
238
|
+
node_count: number;
|
|
239
|
+
|
|
240
|
+
/**
|
|
241
|
+
* Tags to attach to the node pool.
|
|
242
|
+
*/
|
|
243
|
+
tags?: Array<string>;
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
export interface PoolUpdateParams {
|
|
247
|
+
/**
|
|
248
|
+
* Path param: Cluster ID
|
|
249
|
+
*/
|
|
250
|
+
cluster_id: string;
|
|
251
|
+
|
|
252
|
+
/**
|
|
253
|
+
* Body param: Name of the node pool.
|
|
254
|
+
*/
|
|
255
|
+
name?: string;
|
|
256
|
+
|
|
257
|
+
/**
|
|
258
|
+
* Body param: Tags to attach to the node pool.
|
|
259
|
+
*/
|
|
260
|
+
tags?: Array<string>;
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
export interface PoolListParams extends CursorParams {}
|
|
264
|
+
|
|
265
|
+
export interface PoolDeleteParams {
|
|
266
|
+
/**
|
|
267
|
+
* Cluster ID
|
|
268
|
+
*/
|
|
269
|
+
cluster_id: string;
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
export interface PoolGetParams {
|
|
273
|
+
/**
|
|
274
|
+
* Cluster ID
|
|
275
|
+
*/
|
|
276
|
+
cluster_id: string;
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
Pools.Availability = Availability;
|
|
280
|
+
Pools.Nodes = Nodes;
|
|
281
|
+
|
|
282
|
+
export declare namespace Pools {
|
|
283
|
+
export {
|
|
284
|
+
type NKSNodeConfig as NKSNodeConfig,
|
|
285
|
+
type NKSNodeConfigResponse as NKSNodeConfigResponse,
|
|
286
|
+
type NKSNodePool as NKSNodePool,
|
|
287
|
+
type NKSNodePoolList as NKSNodePoolList,
|
|
288
|
+
type NKSNodePoolsCursor as NKSNodePoolsCursor,
|
|
289
|
+
type PoolCreateParams as PoolCreateParams,
|
|
290
|
+
type PoolUpdateParams as PoolUpdateParams,
|
|
291
|
+
type PoolListParams as PoolListParams,
|
|
292
|
+
type PoolDeleteParams as PoolDeleteParams,
|
|
293
|
+
type PoolGetParams as PoolGetParams,
|
|
294
|
+
};
|
|
295
|
+
|
|
296
|
+
export {
|
|
297
|
+
Availability as Availability,
|
|
298
|
+
type AvailabilityCreateParams as AvailabilityCreateParams,
|
|
299
|
+
type AvailabilityUpdateParams as AvailabilityUpdateParams,
|
|
300
|
+
};
|
|
301
|
+
|
|
302
|
+
export {
|
|
303
|
+
Nodes as Nodes,
|
|
304
|
+
type NKSNode as NKSNode,
|
|
305
|
+
type NKSNodeList as NKSNodeList,
|
|
306
|
+
type NKSNodesCursor as NKSNodesCursor,
|
|
307
|
+
type NodeListParams as NodeListParams,
|
|
308
|
+
type NodeGetParams as NodeGetParams,
|
|
309
|
+
};
|
|
310
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
export {
|
|
4
|
+
Clusters,
|
|
5
|
+
type Kubeconfig,
|
|
6
|
+
type NKSCluster,
|
|
7
|
+
type NKSClusterList,
|
|
8
|
+
type ClusterCreateParams,
|
|
9
|
+
type ClusterUpdateParams,
|
|
10
|
+
type ClusterListParams,
|
|
11
|
+
type NKSClustersCursor,
|
|
12
|
+
} from './clusters/index';
|
|
13
|
+
export { NKS } from './nks';
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../../core/resource';
|
|
4
|
+
import * as ClustersAPI from './clusters/clusters';
|
|
5
|
+
import {
|
|
6
|
+
ClusterCreateParams,
|
|
7
|
+
ClusterListParams,
|
|
8
|
+
ClusterUpdateParams,
|
|
9
|
+
Clusters,
|
|
10
|
+
Kubeconfig,
|
|
11
|
+
NKSCluster,
|
|
12
|
+
NKSClusterList,
|
|
13
|
+
NKSClustersCursor,
|
|
14
|
+
} from './clusters/clusters';
|
|
15
|
+
|
|
16
|
+
export class NKS extends APIResource {
|
|
17
|
+
clusters: ClustersAPI.Clusters = new ClustersAPI.Clusters(this._client);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
NKS.Clusters = Clusters;
|
|
21
|
+
|
|
22
|
+
export declare namespace NKS {
|
|
23
|
+
export {
|
|
24
|
+
Clusters as Clusters,
|
|
25
|
+
type Kubeconfig as Kubeconfig,
|
|
26
|
+
type NKSCluster as NKSCluster,
|
|
27
|
+
type NKSClusterList as NKSClusterList,
|
|
28
|
+
type NKSClustersCursor as NKSClustersCursor,
|
|
29
|
+
type ClusterCreateParams as ClusterCreateParams,
|
|
30
|
+
type ClusterUpdateParams as ClusterUpdateParams,
|
|
31
|
+
type ClusterListParams as ClusterListParams,
|
|
32
|
+
};
|
|
33
|
+
}
|
|
@@ -73,7 +73,7 @@ export interface Operation {
|
|
|
73
73
|
/**
|
|
74
74
|
* Kind of Operation.
|
|
75
75
|
*/
|
|
76
|
-
export type OperationKind = 'vm' | 'volume' | 'vpc' | 'firewall_rule';
|
|
76
|
+
export type OperationKind = 'vm' | 'volume' | 'vpc' | 'firewall_rule' | 'nks_cluster' | 'nks_node_pool';
|
|
77
77
|
|
|
78
78
|
export interface OperationList {
|
|
79
79
|
items: Array<Operation>;
|
|
@@ -3,7 +3,10 @@
|
|
|
3
3
|
Types:
|
|
4
4
|
|
|
5
5
|
- <code><a href="./src/resources/projects.ts">Project</a></code>
|
|
6
|
+
- <code><a href="./src/resources/projects.ts">ProjectBlockchainResources</a></code>
|
|
7
|
+
- <code><a href="./src/resources/projects.ts">ProjectCloudResources</a></code>
|
|
6
8
|
- <code><a href="./src/resources/projects.ts">ProjectList</a></code>
|
|
9
|
+
- <code><a href="./src/resources/projects.ts">ProjectResources</a></code>
|
|
7
10
|
|
|
8
11
|
Methods:
|
|
9
12
|
|
|
@@ -105,7 +105,7 @@ export interface Project {
|
|
|
105
105
|
/**
|
|
106
106
|
* Resource counts for the project.
|
|
107
107
|
*/
|
|
108
|
-
resources:
|
|
108
|
+
resources: ProjectResources;
|
|
109
109
|
|
|
110
110
|
/**
|
|
111
111
|
* Tags attached to the Project.
|
|
@@ -118,63 +118,54 @@ export interface Project {
|
|
|
118
118
|
updated_at: string;
|
|
119
119
|
}
|
|
120
120
|
|
|
121
|
-
|
|
121
|
+
/**
|
|
122
|
+
* Blockchain resources.
|
|
123
|
+
*/
|
|
124
|
+
export interface ProjectBlockchainResources {
|
|
122
125
|
/**
|
|
123
|
-
*
|
|
126
|
+
* Number of dedicated RPC nodes in the project.
|
|
124
127
|
*/
|
|
125
|
-
|
|
126
|
-
/**
|
|
127
|
-
* Blockchain resources.
|
|
128
|
-
*/
|
|
129
|
-
blockchain: Resources.Blockchain;
|
|
128
|
+
rpc_nodes_dedicated: number;
|
|
130
129
|
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
130
|
+
/**
|
|
131
|
+
* Number of flex RPC nodes in the project.
|
|
132
|
+
*/
|
|
133
|
+
rpc_nodes_flex: number;
|
|
134
|
+
}
|
|
136
135
|
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
volumes: number;
|
|
171
|
-
|
|
172
|
-
/**
|
|
173
|
-
* Number of VPCs in the project.
|
|
174
|
-
*/
|
|
175
|
-
vpcs: number;
|
|
176
|
-
}
|
|
177
|
-
}
|
|
136
|
+
/**
|
|
137
|
+
* Cloud infrastructure resources.
|
|
138
|
+
*/
|
|
139
|
+
export interface ProjectCloudResources {
|
|
140
|
+
/**
|
|
141
|
+
* Number of Connect connections in the project.
|
|
142
|
+
*/
|
|
143
|
+
connect_connections: number;
|
|
144
|
+
|
|
145
|
+
/**
|
|
146
|
+
* Number of NKS clusters in the project.
|
|
147
|
+
*/
|
|
148
|
+
nks_clusters: number;
|
|
149
|
+
|
|
150
|
+
/**
|
|
151
|
+
* Number of NKS node pools in the project.
|
|
152
|
+
*/
|
|
153
|
+
nks_node_pools: number;
|
|
154
|
+
|
|
155
|
+
/**
|
|
156
|
+
* Number of VMs in the project.
|
|
157
|
+
*/
|
|
158
|
+
vms: number;
|
|
159
|
+
|
|
160
|
+
/**
|
|
161
|
+
* Number of volumes in the project.
|
|
162
|
+
*/
|
|
163
|
+
volumes: number;
|
|
164
|
+
|
|
165
|
+
/**
|
|
166
|
+
* Number of VPCs in the project.
|
|
167
|
+
*/
|
|
168
|
+
vpcs: number;
|
|
178
169
|
}
|
|
179
170
|
|
|
180
171
|
export interface ProjectList {
|
|
@@ -186,6 +177,21 @@ export interface ProjectList {
|
|
|
186
177
|
pagination: Shared.Pagination;
|
|
187
178
|
}
|
|
188
179
|
|
|
180
|
+
/**
|
|
181
|
+
* Resource counts for the project.
|
|
182
|
+
*/
|
|
183
|
+
export interface ProjectResources {
|
|
184
|
+
/**
|
|
185
|
+
* Blockchain resources.
|
|
186
|
+
*/
|
|
187
|
+
blockchain: ProjectBlockchainResources;
|
|
188
|
+
|
|
189
|
+
/**
|
|
190
|
+
* Cloud infrastructure resources.
|
|
191
|
+
*/
|
|
192
|
+
cloud: ProjectCloudResources;
|
|
193
|
+
}
|
|
194
|
+
|
|
189
195
|
export interface ProjectCreateParams {
|
|
190
196
|
/**
|
|
191
197
|
* Project name.
|
|
@@ -215,7 +221,10 @@ export interface ProjectListParams extends CursorParams {}
|
|
|
215
221
|
export declare namespace Projects {
|
|
216
222
|
export {
|
|
217
223
|
type Project as Project,
|
|
224
|
+
type ProjectBlockchainResources as ProjectBlockchainResources,
|
|
225
|
+
type ProjectCloudResources as ProjectCloudResources,
|
|
218
226
|
type ProjectList as ProjectList,
|
|
227
|
+
type ProjectResources as ProjectResources,
|
|
219
228
|
type ProjectsCursor as ProjectsCursor,
|
|
220
229
|
type ProjectCreateParams as ProjectCreateParams,
|
|
221
230
|
type ProjectUpdateParams as ProjectUpdateParams,
|
|
@@ -65,6 +65,11 @@ export interface Region {
|
|
|
65
65
|
*/
|
|
66
66
|
networking: Region.Networking;
|
|
67
67
|
|
|
68
|
+
/**
|
|
69
|
+
* NKS products available in this region.
|
|
70
|
+
*/
|
|
71
|
+
nks: Region.NKS;
|
|
72
|
+
|
|
68
73
|
/**
|
|
69
74
|
* Storage products available in this region.
|
|
70
75
|
*/
|
|
@@ -97,6 +102,16 @@ export namespace Region {
|
|
|
97
102
|
vpcs: boolean;
|
|
98
103
|
}
|
|
99
104
|
|
|
105
|
+
/**
|
|
106
|
+
* NKS products available in this region.
|
|
107
|
+
*/
|
|
108
|
+
export interface NKS {
|
|
109
|
+
/**
|
|
110
|
+
* Clusters indicates if NKS managed Kubernetes clusters are available.
|
|
111
|
+
*/
|
|
112
|
+
clusters: boolean;
|
|
113
|
+
}
|
|
114
|
+
|
|
100
115
|
/**
|
|
101
116
|
* Storage products available in this region.
|
|
102
117
|
*/
|
package/src/resources/shared.ts
CHANGED
|
@@ -14,14 +14,7 @@ export interface Pagination {
|
|
|
14
14
|
/**
|
|
15
15
|
* Region the resource is in.
|
|
16
16
|
*/
|
|
17
|
-
export type RegionName =
|
|
18
|
-
| 'us-sea-1'
|
|
19
|
-
| 'us-sva-1'
|
|
20
|
-
| 'us-sva-2'
|
|
21
|
-
| 'us-chi-1'
|
|
22
|
-
| 'us-wdc-1'
|
|
23
|
-
| 'eu-frk-1'
|
|
24
|
-
| 'ap-sin-1';
|
|
17
|
+
export type RegionName = 'us-sea-1' | 'us-sva-1' | 'us-sva-2' | 'us-chi-1' | 'us-wdc-1';
|
|
25
18
|
|
|
26
19
|
/**
|
|
27
20
|
* Status of the resource.
|
|
@@ -42,3 +35,18 @@ export interface SourceIPRule {
|
|
|
42
35
|
*/
|
|
43
36
|
blocked?: Array<string>;
|
|
44
37
|
}
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* IP filter rules.
|
|
41
|
+
*/
|
|
42
|
+
export interface SourceIPRuleResponse {
|
|
43
|
+
/**
|
|
44
|
+
* List of IPv4 CIDR addresses to allow.
|
|
45
|
+
*/
|
|
46
|
+
allowed: Array<string>;
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* List of IPv4 CIDR addresses to deny.
|
|
50
|
+
*/
|
|
51
|
+
blocked: Array<string>;
|
|
52
|
+
}
|
|
@@ -28,7 +28,7 @@ export interface UserSecurity {
|
|
|
28
28
|
/**
|
|
29
29
|
* IP filter rules.
|
|
30
30
|
*/
|
|
31
|
-
source_ip_rule:
|
|
31
|
+
source_ip_rule: Shared.SourceIPRuleResponse;
|
|
32
32
|
|
|
33
33
|
/**
|
|
34
34
|
* When the user security settings were created.
|
|
@@ -41,23 +41,6 @@ export interface UserSecurity {
|
|
|
41
41
|
updated_at?: string;
|
|
42
42
|
}
|
|
43
43
|
|
|
44
|
-
export namespace UserSecurity {
|
|
45
|
-
/**
|
|
46
|
-
* IP filter rules.
|
|
47
|
-
*/
|
|
48
|
-
export interface SourceIPRule {
|
|
49
|
-
/**
|
|
50
|
-
* List of IPv4 CIDR addresses to allow.
|
|
51
|
-
*/
|
|
52
|
-
allowed: Array<string>;
|
|
53
|
-
|
|
54
|
-
/**
|
|
55
|
-
* List of IPv4 CIDR addresses to deny.
|
|
56
|
-
*/
|
|
57
|
-
blocked: Array<string>;
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
|
|
61
44
|
export interface SecurityUpdateParams {
|
|
62
45
|
/**
|
|
63
46
|
* IP filter rules.
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '1.
|
|
1
|
+
export const VERSION = '1.57.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.57.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.57.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.57.0'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|