@cloudfleet/sdk 0.0.1-2564786 → 0.0.1-2791829
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/dist/client/client.gen.d.ts +3 -0
- package/dist/client/client.gen.d.ts.map +1 -0
- package/dist/client/client.gen.js +205 -0
- package/dist/client/client.gen.js.map +1 -0
- package/dist/client/index.d.ts +9 -0
- package/dist/client/index.d.ts.map +1 -0
- package/dist/client/index.js +7 -0
- package/dist/client/index.js.map +1 -0
- package/dist/client/types.gen.d.ts +125 -0
- package/dist/client/types.gen.d.ts.map +1 -0
- package/dist/client/types.gen.js +3 -0
- package/dist/client/types.gen.js.map +1 -0
- package/dist/client/utils.gen.d.ts +34 -0
- package/dist/client/utils.gen.d.ts.map +1 -0
- package/dist/client/utils.gen.js +231 -0
- package/dist/client/utils.gen.js.map +1 -0
- package/dist/client.gen.d.ts +13 -0
- package/dist/client.gen.d.ts.map +1 -0
- package/dist/client.gen.js +6 -0
- package/dist/client.gen.js.map +1 -0
- package/dist/core/auth.gen.d.ts +19 -0
- package/dist/core/auth.gen.d.ts.map +1 -0
- package/dist/core/auth.gen.js +15 -0
- package/dist/core/auth.gen.js.map +1 -0
- package/dist/core/bodySerializer.gen.d.ts +18 -0
- package/dist/core/bodySerializer.gen.d.ts.map +1 -0
- package/dist/core/bodySerializer.gen.js +58 -0
- package/dist/core/bodySerializer.gen.js.map +1 -0
- package/dist/core/params.gen.d.ts +34 -0
- package/dist/core/params.gen.d.ts.map +1 -0
- package/dist/core/params.gen.js +89 -0
- package/dist/core/params.gen.js.map +1 -0
- package/dist/core/pathSerializer.gen.d.ts +34 -0
- package/dist/core/pathSerializer.gen.d.ts.map +1 -0
- package/dist/core/pathSerializer.gen.js +115 -0
- package/dist/core/pathSerializer.gen.js.map +1 -0
- package/dist/core/queryKeySerializer.gen.d.ts +19 -0
- package/dist/core/queryKeySerializer.gen.d.ts.map +1 -0
- package/dist/core/queryKeySerializer.gen.js +100 -0
- package/dist/core/queryKeySerializer.gen.js.map +1 -0
- package/dist/core/serverSentEvents.gen.d.ts +72 -0
- package/dist/core/serverSentEvents.gen.d.ts.map +1 -0
- package/dist/core/serverSentEvents.gen.js +136 -0
- package/dist/core/serverSentEvents.gen.js.map +1 -0
- package/dist/core/types.gen.d.ts +79 -0
- package/dist/core/types.gen.d.ts.map +1 -0
- package/dist/core/types.gen.js +3 -0
- package/dist/core/types.gen.js.map +1 -0
- package/dist/core/utils.gen.d.ts +20 -0
- package/dist/core/utils.gen.d.ts.map +1 -0
- package/dist/core/utils.gen.js +88 -0
- package/dist/core/utils.gen.js.map +1 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -0
- package/dist/index.js.map +1 -1
- package/dist/schemas.gen.d.ts +508 -963
- package/dist/schemas.gen.d.ts.map +1 -1
- package/dist/schemas.gen.js +531 -994
- package/dist/schemas.gen.js.map +1 -1
- package/dist/sdk.gen.d.ts +183 -145
- package/dist/sdk.gen.d.ts.map +1 -1
- package/dist/sdk.gen.js +239 -151
- package/dist/sdk.gen.js.map +1 -1
- package/dist/services/kubernetes/api.d.ts +196 -0
- package/dist/services/kubernetes/api.d.ts.map +1 -0
- package/dist/services/kubernetes/api.js +140 -0
- package/dist/services/kubernetes/api.js.map +1 -0
- package/dist/services/kubernetes/index.d.ts +44 -0
- package/dist/services/kubernetes/index.d.ts.map +1 -0
- package/dist/services/kubernetes/index.js +68 -0
- package/dist/services/kubernetes/index.js.map +1 -0
- package/dist/services/kubernetes/types.d.ts +1335 -0
- package/dist/services/kubernetes/types.d.ts.map +1 -0
- package/dist/services/kubernetes/types.js +2 -0
- package/dist/services/kubernetes/types.js.map +1 -0
- package/dist/types.gen.d.ts +531 -1001
- package/dist/types.gen.d.ts.map +1 -1
- package/dist/zod.gen.d.ts +1729 -2829
- package/dist/zod.gen.d.ts.map +1 -1
- package/dist/zod.gen.js +798 -867
- package/dist/zod.gen.js.map +1 -1
- package/package.json +8 -5
package/dist/sdk.gen.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
// This file is auto-generated by @hey-api/openapi-ts
|
|
2
|
-
import {
|
|
3
|
-
export const client = createClient(createConfig());
|
|
2
|
+
import { client } from './client.gen';
|
|
4
3
|
export class BillingService {
|
|
5
4
|
/**
|
|
6
5
|
* Get billing usage information.
|
|
7
|
-
*
|
|
6
|
+
*
|
|
7
|
+
* Returns aggregated usage information for the organization. For more information on billing and payments, see [Billing and pricing](https://cloudfleet.ai/docs/organization/billing/) section of documentaiton. This endpoint is available to all users in the organization.
|
|
8
8
|
*
|
|
9
9
|
*/
|
|
10
10
|
static getUsage(options) {
|
|
@@ -13,19 +13,9 @@ export class BillingService {
|
|
|
13
13
|
...options
|
|
14
14
|
});
|
|
15
15
|
}
|
|
16
|
-
/**
|
|
17
|
-
* Get billing balance information.
|
|
18
|
-
* Returns the current balance of the organization in USD as a floating-point number. For more information on billing and payments, see [Billing and pricing](https://cloudfleet.ai/docs/organization/billing/) section of documentaiton. This endpoint is available to all users in the organization.
|
|
19
|
-
*
|
|
20
|
-
*/
|
|
21
|
-
static getBalance(options) {
|
|
22
|
-
return (options?.client ?? client).get({
|
|
23
|
-
url: '/billing/balance',
|
|
24
|
-
...options
|
|
25
|
-
});
|
|
26
|
-
}
|
|
27
16
|
/**
|
|
28
17
|
* Get organization payment method information.
|
|
18
|
+
*
|
|
29
19
|
* Returns the information about the payment card associated with the organization with sensitive information redacted. Payment details can be updated in the Cloudfleet console only, please visit https://console.cloudfleet.ai. This endpoint is available to all users in the organization.
|
|
30
20
|
*
|
|
31
21
|
*/
|
|
@@ -37,6 +27,7 @@ export class BillingService {
|
|
|
37
27
|
}
|
|
38
28
|
/**
|
|
39
29
|
* Get Stripe client secret.
|
|
30
|
+
*
|
|
40
31
|
* Endpoint returns the Stripe secret key for the organization. This key is used to securely update the payment method in the Cloudfleet console only, please visit https://console.cloudfleet.ai. This endpoint is available to administrators of the organization only.
|
|
41
32
|
*
|
|
42
33
|
*/
|
|
@@ -48,6 +39,7 @@ export class BillingService {
|
|
|
48
39
|
}
|
|
49
40
|
/**
|
|
50
41
|
* List issued invoices.
|
|
42
|
+
*
|
|
51
43
|
* Returns a list of invoices for the organization. For more information on billing and payments, see [Billing and pricing](https://cloudfleet.ai/docs/organization/billing/) section of documentaiton. This endpoint is available to all users in the organization.
|
|
52
44
|
*
|
|
53
45
|
*/
|
|
@@ -58,107 +50,237 @@ export class BillingService {
|
|
|
58
50
|
});
|
|
59
51
|
}
|
|
60
52
|
/**
|
|
61
|
-
* Get
|
|
62
|
-
*
|
|
53
|
+
* Get organization contact and billing address information.
|
|
54
|
+
*
|
|
55
|
+
* Returns the organization contact and billing address information. This endpoint is available to all users in the organization.
|
|
56
|
+
*
|
|
57
|
+
*/
|
|
58
|
+
static getContact(options) {
|
|
59
|
+
return (options?.client ?? client).get({
|
|
60
|
+
url: '/billing/contact',
|
|
61
|
+
...options
|
|
62
|
+
});
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* Update organization contact information and billing address.
|
|
66
|
+
*
|
|
67
|
+
* This endpoint allows you to update organization details with its contact information. This endpoint is available to administrators of the organization only.
|
|
68
|
+
*
|
|
69
|
+
*/
|
|
70
|
+
static updateContact(options) {
|
|
71
|
+
return (options.client ?? client).put({
|
|
72
|
+
url: '/billing/contact',
|
|
73
|
+
...options,
|
|
74
|
+
headers: {
|
|
75
|
+
'Content-Type': 'application/json',
|
|
76
|
+
...options.headers
|
|
77
|
+
}
|
|
78
|
+
});
|
|
79
|
+
}
|
|
80
|
+
/**
|
|
81
|
+
* Get applied promotional credits
|
|
82
|
+
*
|
|
83
|
+
* Returns applied promotional credits for the organization. For more information on billing and payments, see [Billing and pricing](https://cloudfleet.ai/docs/organization/billing/) section of documentaiton. This endpoint is available to all users in the organization.
|
|
63
84
|
*
|
|
64
85
|
*/
|
|
65
|
-
static
|
|
86
|
+
static getCredits(options) {
|
|
66
87
|
return (options?.client ?? client).get({
|
|
67
|
-
url: '/billing/
|
|
88
|
+
url: '/billing/credits',
|
|
68
89
|
...options
|
|
69
90
|
});
|
|
70
91
|
}
|
|
92
|
+
/**
|
|
93
|
+
* Redeem promotional credits code.
|
|
94
|
+
*
|
|
95
|
+
* Applies promotional credits for the organization. For more information on billing and payments, see [Billing and pricing](https://cloudfleet.ai/docs/organization/billing/) section of documentaiton. This endpoint is available to all users in the organization.
|
|
96
|
+
*
|
|
97
|
+
*/
|
|
98
|
+
static redeemCredits(options) {
|
|
99
|
+
return (options.client ?? client).post({
|
|
100
|
+
url: '/billing/credits',
|
|
101
|
+
...options,
|
|
102
|
+
headers: {
|
|
103
|
+
'Content-Type': 'application/json',
|
|
104
|
+
...options.headers
|
|
105
|
+
}
|
|
106
|
+
});
|
|
107
|
+
}
|
|
71
108
|
}
|
|
72
109
|
export class ClustersService {
|
|
110
|
+
/**
|
|
111
|
+
* List charts.
|
|
112
|
+
*
|
|
113
|
+
* Returns a list of charts in the cluster.
|
|
114
|
+
*
|
|
115
|
+
* This endpoint is available to all users in the organization.
|
|
116
|
+
*
|
|
117
|
+
*/
|
|
118
|
+
static listCharts(options) {
|
|
119
|
+
return (options.client ?? client).get({
|
|
120
|
+
url: '/clusters/{cluster_id}/charts',
|
|
121
|
+
...options
|
|
122
|
+
});
|
|
123
|
+
}
|
|
124
|
+
/**
|
|
125
|
+
* Create a new chart.
|
|
126
|
+
*
|
|
127
|
+
* Create a new chart deployment.
|
|
128
|
+
*
|
|
129
|
+
* This endpoint is available to administrators of the organization only.
|
|
130
|
+
*
|
|
131
|
+
*/
|
|
132
|
+
static createChart(options) {
|
|
133
|
+
return (options.client ?? client).post({
|
|
134
|
+
url: '/clusters/{cluster_id}/charts',
|
|
135
|
+
...options,
|
|
136
|
+
headers: {
|
|
137
|
+
'Content-Type': 'application/json',
|
|
138
|
+
...options.headers
|
|
139
|
+
}
|
|
140
|
+
});
|
|
141
|
+
}
|
|
142
|
+
/**
|
|
143
|
+
* Permanently delete the chart deployment from the cluster.
|
|
144
|
+
*
|
|
145
|
+
* This endpoint will permanently delete chart. This operation cannot be undone.
|
|
146
|
+
*
|
|
147
|
+
* This endpoint is available to administrators of the organization only.
|
|
148
|
+
*
|
|
149
|
+
*/
|
|
150
|
+
static deleteChart(options) {
|
|
151
|
+
return (options.client ?? client).delete({
|
|
152
|
+
url: '/clusters/{cluster_id}/charts/{chart_name}',
|
|
153
|
+
...options
|
|
154
|
+
});
|
|
155
|
+
}
|
|
156
|
+
/**
|
|
157
|
+
* Get chart information.
|
|
158
|
+
*
|
|
159
|
+
* Returns the details of the chart deployment.
|
|
160
|
+
*
|
|
161
|
+
* This endpoint is available to all users in the organization.
|
|
162
|
+
*
|
|
163
|
+
*/
|
|
164
|
+
static getChart(options) {
|
|
165
|
+
return (options.client ?? client).get({
|
|
166
|
+
url: '/clusters/{cluster_id}/charts/{chart_name}',
|
|
167
|
+
...options
|
|
168
|
+
});
|
|
169
|
+
}
|
|
170
|
+
/**
|
|
171
|
+
* Update chart information.
|
|
172
|
+
*
|
|
173
|
+
* This endpoint allows you to update the values of a chart deployment.
|
|
174
|
+
*
|
|
175
|
+
* This endpoint is available to administrators of the organization only.
|
|
176
|
+
*
|
|
177
|
+
*/
|
|
178
|
+
static updateChart(options) {
|
|
179
|
+
return (options.client ?? client).put({
|
|
180
|
+
url: '/clusters/{cluster_id}/charts/{chart_name}',
|
|
181
|
+
...options,
|
|
182
|
+
headers: {
|
|
183
|
+
'Content-Type': 'application/json',
|
|
184
|
+
...options.headers
|
|
185
|
+
}
|
|
186
|
+
});
|
|
187
|
+
}
|
|
73
188
|
/**
|
|
74
189
|
* List fleets.
|
|
75
|
-
*
|
|
190
|
+
*
|
|
191
|
+
* Returns a list of fleets belonging to the cluster. For more information, see [Fleets](https://cloudfleet.ai/docs/cloud-infrastructure/fleets/) section of documentaiton.
|
|
76
192
|
*
|
|
77
193
|
* This endpoint is available to all users in the organization.
|
|
78
194
|
*
|
|
79
195
|
*/
|
|
80
196
|
static listFleets(options) {
|
|
81
|
-
return (options
|
|
197
|
+
return (options.client ?? client).get({
|
|
82
198
|
url: '/clusters/{cluster_id}/fleets',
|
|
83
199
|
...options
|
|
84
200
|
});
|
|
85
201
|
}
|
|
86
202
|
/**
|
|
87
203
|
* Create a new fleet.
|
|
88
|
-
*
|
|
204
|
+
*
|
|
205
|
+
* Create a new fleet under the current organization. fleets allow you to to schedule workloads in cloud service provider accounts owned by you. For more information, see [Fleets](https://cloudfleet.ai/docs/cloud-infrastructure/fleets/) section of documentaiton.
|
|
89
206
|
*
|
|
90
207
|
* This endpoint is available to administrators of the organization only.
|
|
91
208
|
*
|
|
92
209
|
*/
|
|
93
210
|
static createFleet(options) {
|
|
94
|
-
return (options
|
|
211
|
+
return (options.client ?? client).post({
|
|
95
212
|
url: '/clusters/{cluster_id}/fleets',
|
|
96
213
|
...options,
|
|
97
214
|
headers: {
|
|
98
215
|
'Content-Type': 'application/json',
|
|
99
|
-
...options
|
|
216
|
+
...options.headers
|
|
100
217
|
}
|
|
101
218
|
});
|
|
102
219
|
}
|
|
103
220
|
/**
|
|
104
221
|
* Permanently delete fleet.
|
|
105
|
-
*
|
|
222
|
+
*
|
|
223
|
+
* This endpoint will permanently delete fleet. This operation cannot be undone. Your subscription will end by the end of the current billing period and you will not be able to receive credit for unused time. If you want to keep using the Fleet until the end of the billing period, set the status to `cancelling`. For more information, see [Fleets](https://cloudfleet.ai/docs/cloud-infrastructure/fleets/) section of documentaiton.
|
|
106
224
|
*
|
|
107
225
|
* This endpoint is available to administrators of the organization only.
|
|
108
226
|
*
|
|
109
227
|
*/
|
|
110
228
|
static deleteFleet(options) {
|
|
111
|
-
return (options
|
|
229
|
+
return (options.client ?? client).delete({
|
|
112
230
|
url: '/clusters/{cluster_id}/fleets/{fleet_name}',
|
|
113
231
|
...options
|
|
114
232
|
});
|
|
115
233
|
}
|
|
116
234
|
/**
|
|
117
235
|
* Get fleet information.
|
|
118
|
-
*
|
|
236
|
+
*
|
|
237
|
+
* Returns fleet details. For more information, see [Fleets](https://cloudfleet.ai/docs/cloud-infrastructure/fleets/) section of documentaiton.
|
|
119
238
|
*
|
|
120
239
|
* This endpoint is available to all users in the organization.
|
|
121
240
|
*
|
|
122
241
|
*/
|
|
123
242
|
static getFleet(options) {
|
|
124
|
-
return (options
|
|
243
|
+
return (options.client ?? client).get({
|
|
125
244
|
url: '/clusters/{cluster_id}/fleets/{fleet_name}',
|
|
126
245
|
...options
|
|
127
246
|
});
|
|
128
247
|
}
|
|
129
248
|
/**
|
|
130
249
|
* Update fleet information.
|
|
250
|
+
*
|
|
131
251
|
* This endpoint allows you to update fleet details.
|
|
132
252
|
*
|
|
133
|
-
* Setting status to `deleted` will permanently delete fleet. This operation cannot be undone. Your subscription will end by the end of the current billing period and you will not be able to receive credit for unused time. If you want to keep using the
|
|
253
|
+
* Setting status to `deleted` will permanently delete fleet. This operation cannot be undone. Your subscription will end by the end of the current billing period and you will not be able to receive credit for unused time. If you want to keep using the Fleet until the end of the billing period, set the status to `cancelling`.
|
|
134
254
|
*
|
|
135
|
-
* For more information, see [Fleets
|
|
255
|
+
* For more information, see [Fleets](https://cloudfleet.ai/docs/cloud-infrastructure/fleets/) section of documentaiton.
|
|
136
256
|
*
|
|
137
257
|
* This endpoint is available to administrators of the organization only.
|
|
138
258
|
*
|
|
139
259
|
*/
|
|
140
260
|
static updateFleet(options) {
|
|
141
|
-
return (options
|
|
261
|
+
return (options.client ?? client).put({
|
|
142
262
|
url: '/clusters/{cluster_id}/fleets/{fleet_name}',
|
|
143
263
|
...options,
|
|
144
264
|
headers: {
|
|
145
265
|
'Content-Type': 'application/json',
|
|
146
|
-
...options
|
|
266
|
+
...options.headers
|
|
147
267
|
}
|
|
148
268
|
});
|
|
149
269
|
}
|
|
150
270
|
/**
|
|
151
271
|
* Query Kubernetes cluster API
|
|
272
|
+
*
|
|
152
273
|
* An API endpoint for directly querying a Kubernetes cluster API without requiring kubectl or other tools. This endpoint is ideal for automation and scripting, as well as for internal use in fetching data for the Cloudfleet Console. It acts as a passthrough to the Kubernetes API, allowing access to any valid Kubernetes API endpoint, including those not exposed in the Cloudfleet Console. The endpoint is strictly read-only, ensuring no modifications to the cluster state. It is accessible to all users within the organization and uses the same authentication mechanisms as other Cloudfleet API endpoints.
|
|
153
274
|
*/
|
|
154
275
|
static queryCluster(options) {
|
|
155
|
-
return (options
|
|
276
|
+
return (options.client ?? client).get({
|
|
156
277
|
url: '/clusters/{cluster_id}/query',
|
|
157
278
|
...options
|
|
158
279
|
});
|
|
159
280
|
}
|
|
160
281
|
/**
|
|
161
282
|
* List clusters.
|
|
283
|
+
*
|
|
162
284
|
* Returns a list of clusters under the current organization, including quota. Quota is a set of filters defined by the admin of the organization that will be applied to all resources created in the cluster. Quota information returned here does not take into account quota set on organization or platform level. For calculated quota applied to this account, use /clusters/{cluster_id}/quota endpoint. For more information about quotas, see [Quotas and limits](https://cloudfleet.ai/docs/organization/quotas/) section of documentaiton.
|
|
163
285
|
*
|
|
164
286
|
* This endpoint is available to all users in the organization.
|
|
@@ -172,122 +294,85 @@ export class ClustersService {
|
|
|
172
294
|
}
|
|
173
295
|
/**
|
|
174
296
|
* Create a new cluster.
|
|
297
|
+
*
|
|
175
298
|
* Create a new cluster under the current organization. Clusters allow you to group resources and you can create multiple clusters under the same organization, with billing delegated to the parent organization.
|
|
176
299
|
*
|
|
177
300
|
* This endpoint is available to administrators of the organization only.
|
|
178
301
|
*
|
|
179
302
|
*/
|
|
180
303
|
static createCluster(options) {
|
|
181
|
-
return (options
|
|
304
|
+
return (options.client ?? client).post({
|
|
182
305
|
url: '/clusters',
|
|
183
306
|
...options,
|
|
184
307
|
headers: {
|
|
185
308
|
'Content-Type': 'application/json',
|
|
186
|
-
...options
|
|
309
|
+
...options.headers
|
|
187
310
|
}
|
|
188
311
|
});
|
|
189
312
|
}
|
|
190
313
|
/**
|
|
191
314
|
* Permanently delete cluster.
|
|
315
|
+
*
|
|
192
316
|
* This endpoint will permanently delete the cluster. This operation cannot be undone.
|
|
193
317
|
*
|
|
194
318
|
* This endpoint is available to administrators of the organization only.
|
|
195
319
|
*
|
|
196
320
|
*/
|
|
197
321
|
static deleteCluster(options) {
|
|
198
|
-
return (options
|
|
322
|
+
return (options.client ?? client).delete({
|
|
199
323
|
url: '/clusters/{cluster_id}',
|
|
200
324
|
...options
|
|
201
325
|
});
|
|
202
326
|
}
|
|
203
327
|
/**
|
|
204
328
|
* Get cluster information.
|
|
329
|
+
*
|
|
205
330
|
* Returns cluster details including quota. Quota is a set of filters defined by the admin of the organization that will be applied to all resources created in the cluster. Quota information returned here does not take into account quota set on organization or platform level. For calculated quota applied to this account, use /clusters/{cluster_id}/quota endpoint. For more information about quotas, see [Quotas and limits](https://cloudfleet.ai/docs/organization/quotas/) section of documentaiton.
|
|
206
331
|
*
|
|
207
332
|
* This endpoint is available to all users in the organization.
|
|
208
333
|
*
|
|
209
334
|
*/
|
|
210
335
|
static getCluster(options) {
|
|
211
|
-
return (options
|
|
336
|
+
return (options.client ?? client).get({
|
|
212
337
|
url: '/clusters/{cluster_id}',
|
|
213
338
|
...options
|
|
214
339
|
});
|
|
215
340
|
}
|
|
216
341
|
/**
|
|
217
342
|
* Update cluster information.
|
|
343
|
+
*
|
|
218
344
|
* This endpoint allows you to update cluster details, including quota and cluster status. For more information about clusters, see [Clusters](https://cloudfleet.ai/docs/cluster-management/cluster-types/) section of documentaiton.
|
|
219
345
|
*
|
|
220
346
|
* This endpoint is available to administrators of the organization only.
|
|
221
347
|
*
|
|
222
348
|
*/
|
|
223
349
|
static updateCluster(options) {
|
|
224
|
-
return (options
|
|
350
|
+
return (options.client ?? client).put({
|
|
225
351
|
url: '/clusters/{cluster_id}',
|
|
226
352
|
...options,
|
|
227
353
|
headers: {
|
|
228
354
|
'Content-Type': 'application/json',
|
|
229
|
-
...options
|
|
355
|
+
...options.headers
|
|
230
356
|
}
|
|
231
357
|
});
|
|
232
358
|
}
|
|
233
359
|
/**
|
|
234
360
|
* Node join information for the cluster
|
|
235
|
-
*
|
|
361
|
+
*
|
|
362
|
+
* Returns the join information for the cluster. This information is used to add a self-managed nodes to the CFKE cluster. This endpoint is available to only admins of the organization.
|
|
236
363
|
*
|
|
237
364
|
*/
|
|
238
365
|
static getJoinInformation(options) {
|
|
239
|
-
return (options
|
|
366
|
+
return (options.client ?? client).post({
|
|
240
367
|
url: '/clusters/{cluster_id}/join_information',
|
|
241
368
|
...options
|
|
242
369
|
});
|
|
243
370
|
}
|
|
244
371
|
}
|
|
245
|
-
export class InfrastructureService {
|
|
246
|
-
/**
|
|
247
|
-
* Search infrastructure catalog.
|
|
248
|
-
* This endpoint is used to search the infrastructure catalog for the right virtual machine / instance type when creating a new task. The search is performed by specifying a set of filters. The filters are combined using the logical AND operator. For example, if you want to find all available instances with Nvidia A100 GPUs in the US, you would use the following query:
|
|
249
|
-
*
|
|
250
|
-
* `GET /infrastructure?accelerator_name=A100®ion=northamerica`
|
|
251
|
-
*
|
|
252
|
-
* Catalog is dynamic and updated regularly to reflect the latest changes in the cloud providers' offerings. Although we try to keep the catalog up to date, it is possible that some instances are missing or that some information is outdated. It is possible that the final price you will see in the billing section will be different from the price shown in the catalog. Additionally, catalog does not account for any limitaitons and quotas set by the cloud providers, as well as current availability of specific instance types.
|
|
253
|
-
*
|
|
254
|
-
* **Note:** This endpoint is available for both authenticated and unauthenticated users. However, unauthenticated users will only see limited results and will be rate limited. To get full access to the catalog, please create a Cloudfleet account and log in.
|
|
255
|
-
*
|
|
256
|
-
* For full documentation of the infrastructure catalog, see [Cloud providers and instance types](https://cloudfleet.ai/docs/cloud-infrastructure/) section of the documentation.
|
|
257
|
-
*
|
|
258
|
-
*/
|
|
259
|
-
static getInfrastructure(options) {
|
|
260
|
-
return (options?.client ?? client).get({
|
|
261
|
-
url: '/infrastructure',
|
|
262
|
-
...options
|
|
263
|
-
});
|
|
264
|
-
}
|
|
265
|
-
/**
|
|
266
|
-
* Infrastructure catalog facets.
|
|
267
|
-
* This endpoint returns calculated search facets from the infrastructure catalog.
|
|
268
|
-
*
|
|
269
|
-
*/
|
|
270
|
-
static getFacets(options) {
|
|
271
|
-
return (options?.client ?? client).get({
|
|
272
|
-
url: '/infrastructure/facets',
|
|
273
|
-
...options
|
|
274
|
-
});
|
|
275
|
-
}
|
|
276
|
-
/**
|
|
277
|
-
* Available Cloudfleet regions and Kubernetes versions.
|
|
278
|
-
* Available Cloudfleet regions and Kubernetes versions.
|
|
279
|
-
*
|
|
280
|
-
*/
|
|
281
|
-
static getRegions(options) {
|
|
282
|
-
return (options?.client ?? client).get({
|
|
283
|
-
url: '/infrastructure/regions',
|
|
284
|
-
...options
|
|
285
|
-
});
|
|
286
|
-
}
|
|
287
|
-
}
|
|
288
372
|
export class InvitesService {
|
|
289
373
|
/**
|
|
290
374
|
* List invites.
|
|
375
|
+
*
|
|
291
376
|
* Returns a list of invites under the current organization. This endpoint is available to all users in the organization.
|
|
292
377
|
*
|
|
293
378
|
*/
|
|
@@ -299,85 +384,103 @@ export class InvitesService {
|
|
|
299
384
|
}
|
|
300
385
|
/**
|
|
301
386
|
* Create a new invite.
|
|
302
|
-
*
|
|
387
|
+
*
|
|
388
|
+
* Invite a new user to your Cloudfleet organization. The user will receive an email with a link to create a new account. This endpoint is available to administrators of the organization only.
|
|
303
389
|
*
|
|
304
390
|
*/
|
|
305
391
|
static createInvite(options) {
|
|
306
|
-
return (options
|
|
392
|
+
return (options.client ?? client).post({
|
|
307
393
|
url: '/invites',
|
|
308
394
|
...options,
|
|
309
395
|
headers: {
|
|
310
396
|
'Content-Type': 'application/json',
|
|
311
|
-
...options
|
|
397
|
+
...options.headers
|
|
312
398
|
}
|
|
313
399
|
});
|
|
314
400
|
}
|
|
315
401
|
/**
|
|
316
402
|
* Get invite information.
|
|
403
|
+
*
|
|
317
404
|
* Returns invite details.
|
|
318
405
|
*
|
|
319
406
|
*/
|
|
320
407
|
static getInvite(options) {
|
|
321
|
-
return (options
|
|
408
|
+
return (options.client ?? client).get({
|
|
322
409
|
url: '/invites/{code}',
|
|
323
410
|
...options
|
|
324
411
|
});
|
|
325
412
|
}
|
|
326
413
|
/**
|
|
327
414
|
* Permanently delete invite.
|
|
415
|
+
*
|
|
328
416
|
* Permanently deletes invite from the organization. This endpoint is available to administrators of the organization only.
|
|
329
417
|
*
|
|
330
418
|
*/
|
|
331
419
|
static deleteInvite(options) {
|
|
332
|
-
return (options
|
|
420
|
+
return (options.client ?? client).delete({
|
|
333
421
|
url: '/invites/{email}',
|
|
334
422
|
...options
|
|
335
423
|
});
|
|
336
424
|
}
|
|
337
425
|
}
|
|
338
|
-
export class
|
|
426
|
+
export class ChartsMarketplaceService {
|
|
339
427
|
/**
|
|
340
|
-
*
|
|
341
|
-
*
|
|
428
|
+
* List chart listings available in the marketplace.
|
|
429
|
+
*
|
|
430
|
+
* Returns a list of available charts in the marketplace.
|
|
342
431
|
*
|
|
343
432
|
* This endpoint is available to all users in the organization.
|
|
344
433
|
*
|
|
345
434
|
*/
|
|
346
|
-
static
|
|
435
|
+
static listMarketplaceCharts(options) {
|
|
347
436
|
return (options?.client ?? client).get({
|
|
348
|
-
url: '/
|
|
437
|
+
url: '/marketplace',
|
|
349
438
|
...options
|
|
350
439
|
});
|
|
351
440
|
}
|
|
352
441
|
/**
|
|
353
|
-
*
|
|
354
|
-
*
|
|
442
|
+
* Get chart listing details.
|
|
443
|
+
*
|
|
444
|
+
* Returns details of the chart listing.
|
|
445
|
+
*
|
|
446
|
+
* This endpoint is available to all users in the organization.
|
|
355
447
|
*
|
|
356
448
|
*/
|
|
357
|
-
static
|
|
358
|
-
return (options
|
|
449
|
+
static getMarketplaceChart(options) {
|
|
450
|
+
return (options.client ?? client).get({
|
|
451
|
+
url: '/marketplace/{listing_id}',
|
|
452
|
+
...options
|
|
453
|
+
});
|
|
454
|
+
}
|
|
455
|
+
}
|
|
456
|
+
export class OrganizationService {
|
|
457
|
+
/**
|
|
458
|
+
* Get organization information.
|
|
459
|
+
*
|
|
460
|
+
* Returns organization details including quota. For more information about quotas, see [Quotas and limits](https://cloudfleet.ai/docs/organization/quotas/) section of documentaiton.
|
|
461
|
+
*
|
|
462
|
+
* This endpoint is available to all users in the organization.
|
|
463
|
+
*
|
|
464
|
+
*/
|
|
465
|
+
static getOrganization(options) {
|
|
466
|
+
return (options?.client ?? client).get({
|
|
359
467
|
url: '/organization',
|
|
360
|
-
...options
|
|
361
|
-
headers: {
|
|
362
|
-
'Content-Type': 'application/json',
|
|
363
|
-
...options?.headers
|
|
364
|
-
}
|
|
468
|
+
...options
|
|
365
469
|
});
|
|
366
470
|
}
|
|
367
471
|
/**
|
|
368
|
-
*
|
|
369
|
-
* This endpoint allows you to update organization details with its contact information. For security reasons, platform quota is controlled by Cloudfleet and can be updated only by Cloudfleet administrators. Please open a support ticket if you need to change the platform quota. For more information about organizations and quotas, see [Quotas and limits](https://cloudfleet.ai/docs/organization/quotas/) section of documentaiton.
|
|
472
|
+
* Create a new organization / Cloudfleet account signup.
|
|
370
473
|
*
|
|
371
|
-
* This endpoint
|
|
474
|
+
* This endpoint allows you to create a new Cloudfleet organization and an administrator user.
|
|
372
475
|
*
|
|
373
476
|
*/
|
|
374
|
-
static
|
|
375
|
-
return (options
|
|
477
|
+
static createOrganization(options) {
|
|
478
|
+
return (options.client ?? client).post({
|
|
376
479
|
url: '/organization',
|
|
377
480
|
...options,
|
|
378
481
|
headers: {
|
|
379
482
|
'Content-Type': 'application/json',
|
|
380
|
-
...options
|
|
483
|
+
...options.headers
|
|
381
484
|
}
|
|
382
485
|
});
|
|
383
486
|
}
|
|
@@ -385,6 +488,7 @@ export class OrganizationService {
|
|
|
385
488
|
export class TokensService {
|
|
386
489
|
/**
|
|
387
490
|
* List access tokens in organization.
|
|
491
|
+
*
|
|
388
492
|
* This endpoint allows you to get a list of all access tokens details in organization. For more information about identity access management and security, see [Service Accounts](https://cloudfleet.ai/docs/organization/api-tokens/) section of documentaiton. This endpoint is available to all users in the organization.
|
|
389
493
|
*
|
|
390
494
|
*/
|
|
@@ -396,66 +500,71 @@ export class TokensService {
|
|
|
396
500
|
}
|
|
397
501
|
/**
|
|
398
502
|
* Create a new access token.
|
|
503
|
+
*
|
|
399
504
|
* This endpoint allows you to create a new access token. For more information about identity access management and security, see [Service Accounts](https://cloudfleet.ai/docs/organization/api-tokens/) section of documentaiton.
|
|
400
505
|
*
|
|
401
506
|
* This endpoint is available to administrators of the organization only.
|
|
402
507
|
*
|
|
403
508
|
*/
|
|
404
509
|
static createToken(options) {
|
|
405
|
-
return (options
|
|
510
|
+
return (options.client ?? client).post({
|
|
406
511
|
url: '/tokens',
|
|
407
512
|
...options,
|
|
408
513
|
headers: {
|
|
409
514
|
'Content-Type': 'application/json',
|
|
410
|
-
...options
|
|
515
|
+
...options.headers
|
|
411
516
|
}
|
|
412
517
|
});
|
|
413
518
|
}
|
|
414
519
|
/**
|
|
415
520
|
* Permanently delete access token.
|
|
521
|
+
*
|
|
416
522
|
* This endpoint allows you to delete an access token. For more information about identity access management and security, see [Service Accounts](https://cloudfleet.ai/docs/organization/api-tokens/) section of documentaiton. This endpoint is available to administrators of the organization only.
|
|
417
523
|
*
|
|
418
524
|
*/
|
|
419
525
|
static deleteToken(options) {
|
|
420
|
-
return (options
|
|
526
|
+
return (options.client ?? client).delete({
|
|
421
527
|
url: '/tokens/{token_id}',
|
|
422
528
|
...options
|
|
423
529
|
});
|
|
424
530
|
}
|
|
425
531
|
/**
|
|
426
532
|
* Get access token information.
|
|
533
|
+
*
|
|
427
534
|
* This endpoint allows you to get access token details. For more information about identity access management and security, see [Service Accounts](https://cloudfleet.ai/docs/organization/api-tokens/) section of documentaiton. This endpoint is available to all users in the organization.
|
|
428
535
|
*
|
|
429
536
|
*/
|
|
430
537
|
static getToken(options) {
|
|
431
|
-
return (options
|
|
538
|
+
return (options.client ?? client).get({
|
|
432
539
|
url: '/tokens/{token_id}',
|
|
433
540
|
...options
|
|
434
541
|
});
|
|
435
542
|
}
|
|
436
543
|
/**
|
|
437
544
|
* Update access token information.
|
|
545
|
+
*
|
|
438
546
|
* This endpoint allows you to update access token details. For more information about identity access management and security, see [Service Accounts](https://cloudfleet.ai/docs/organization/api-tokens/) section of documentaiton.
|
|
439
547
|
*
|
|
440
548
|
* This endpoint is available to administrators of the organization only.
|
|
441
549
|
*
|
|
442
550
|
*/
|
|
443
551
|
static updateToken(options) {
|
|
444
|
-
return (options
|
|
552
|
+
return (options.client ?? client).put({
|
|
445
553
|
url: '/tokens/{token_id}',
|
|
446
554
|
...options,
|
|
447
555
|
headers: {
|
|
448
556
|
'Content-Type': 'application/json',
|
|
449
|
-
...options
|
|
557
|
+
...options.headers
|
|
450
558
|
}
|
|
451
559
|
});
|
|
452
560
|
}
|
|
453
561
|
/**
|
|
454
562
|
* Regenerate access token secret key.
|
|
563
|
+
*
|
|
455
564
|
* Generates a new access token secret. Old secret will not be valid anymore.
|
|
456
565
|
*/
|
|
457
566
|
static regenerateToken(options) {
|
|
458
|
-
return (options
|
|
567
|
+
return (options.client ?? client).put({
|
|
459
568
|
url: '/tokens/{token_id}/secret',
|
|
460
569
|
...options
|
|
461
570
|
});
|
|
@@ -466,14 +575,15 @@ export class UsersService {
|
|
|
466
575
|
* Get a list of organizations the user belongs to. Used during authentication process.
|
|
467
576
|
*/
|
|
468
577
|
static listUserOrganizations(options) {
|
|
469
|
-
return (options
|
|
578
|
+
return (options.client ?? client).get({
|
|
470
579
|
url: '/users/organizations/{email}',
|
|
471
580
|
...options
|
|
472
581
|
});
|
|
473
582
|
}
|
|
474
583
|
/**
|
|
475
584
|
* List users in organization.
|
|
476
|
-
*
|
|
585
|
+
*
|
|
586
|
+
* Returns a list of user details and their roles. For more information on identity access management, see [Users](https://cloudfleet.ai/docs/organization/users/) section of documentaiton.
|
|
477
587
|
*
|
|
478
588
|
* This endpoint is available to all users in the organization.
|
|
479
589
|
*
|
|
@@ -486,81 +596,59 @@ export class UsersService {
|
|
|
486
596
|
}
|
|
487
597
|
/**
|
|
488
598
|
* Create a new user.
|
|
489
|
-
*
|
|
599
|
+
*
|
|
600
|
+
* Create a new user in your Cloudfleet organization. Requires a valid invite code generated by the `invites create` command. The invite code is a unique string that can be used only once to create a new user. The invite code is generated by the `POST /invites` endpoint.
|
|
490
601
|
*
|
|
491
602
|
*/
|
|
492
603
|
static createUser(options) {
|
|
493
|
-
return (options
|
|
604
|
+
return (options.client ?? client).post({
|
|
494
605
|
url: '/users',
|
|
495
606
|
...options,
|
|
496
607
|
headers: {
|
|
497
608
|
'Content-Type': 'application/json',
|
|
498
|
-
...options
|
|
609
|
+
...options.headers
|
|
499
610
|
}
|
|
500
611
|
});
|
|
501
612
|
}
|
|
502
613
|
/**
|
|
503
614
|
* Delete user by id.
|
|
615
|
+
*
|
|
504
616
|
* Sets user status to `inactive`. Inactive users cannot log in and manage organization resources. This endpoint is available to administrators of the organization only.
|
|
505
617
|
*
|
|
506
618
|
*/
|
|
507
619
|
static deleteUser(options) {
|
|
508
|
-
return (options
|
|
620
|
+
return (options.client ?? client).delete({
|
|
509
621
|
url: '/users/{user_id}',
|
|
510
622
|
...options
|
|
511
623
|
});
|
|
512
624
|
}
|
|
513
625
|
/**
|
|
514
626
|
* Get user profile information by id.
|
|
515
|
-
*
|
|
627
|
+
*
|
|
628
|
+
* Returns user details including their roles. For more information on identity access management, see [Users](https://cloudfleet.ai/docs/organization/users/) section of documentaiton.
|
|
516
629
|
*
|
|
517
630
|
* This endpoint is available to all users in the organization.
|
|
518
631
|
*
|
|
519
632
|
*/
|
|
520
633
|
static getUser(options) {
|
|
521
|
-
return (options
|
|
634
|
+
return (options.client ?? client).get({
|
|
522
635
|
url: '/users/{user_id}',
|
|
523
636
|
...options
|
|
524
637
|
});
|
|
525
638
|
}
|
|
526
639
|
/**
|
|
527
640
|
* Update user profile information.
|
|
641
|
+
*
|
|
528
642
|
* Update user profile information: email, first name, last name, role. This endpoint can be accessed by administrators and the user itself. Role and status can be changed by administrators only.
|
|
529
643
|
*
|
|
530
644
|
*/
|
|
531
645
|
static updateUser(options) {
|
|
532
|
-
return (options
|
|
646
|
+
return (options.client ?? client).put({
|
|
533
647
|
url: '/users/{user_id}',
|
|
534
648
|
...options,
|
|
535
649
|
headers: {
|
|
536
650
|
'Content-Type': 'application/json',
|
|
537
|
-
...options
|
|
538
|
-
}
|
|
539
|
-
});
|
|
540
|
-
}
|
|
541
|
-
/**
|
|
542
|
-
* Remove user from cluster.
|
|
543
|
-
* Removes user from the cluster. The user will no longer be able to access the cluster and all its resources. This endpoint is available to administrators of the organization only.
|
|
544
|
-
*
|
|
545
|
-
*/
|
|
546
|
-
static deleteClusterPermissions(options) {
|
|
547
|
-
return (options?.client ?? client).delete({
|
|
548
|
-
url: '/users/{user_id}/clusters/{cluster_id}',
|
|
549
|
-
...options
|
|
550
|
-
});
|
|
551
|
-
}
|
|
552
|
-
/**
|
|
553
|
-
* Add user to cluster and set permissions.
|
|
554
|
-
* Add user to the cluster and set / update access permissions. This endpoint is available to administrators of the organization only.
|
|
555
|
-
*
|
|
556
|
-
*/
|
|
557
|
-
static setClusterPermissions(options) {
|
|
558
|
-
return (options?.client ?? client).put({
|
|
559
|
-
url: '/users/{user_id}/clusters/{cluster_id}',
|
|
560
|
-
...options,
|
|
561
|
-
headers: {
|
|
562
|
-
'Content-Type': 'application/json',
|
|
563
|
-
...options?.headers
|
|
651
|
+
...options.headers
|
|
564
652
|
}
|
|
565
653
|
});
|
|
566
654
|
}
|