@cloudfleet/sdk 0.0.1-d8d23ea → 0.0.1-dba2400
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.js → client.gen.js} +82 -23
- package/dist/client/client.gen.js.map +1 -0
- package/dist/client/index.d.ts +8 -7
- package/dist/client/index.d.ts.map +1 -1
- package/dist/client/index.js +6 -4
- package/dist/client/index.js.map +1 -1
- package/dist/client/{types.d.ts → types.gen.d.ts} +19 -14
- 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.d.ts → utils.gen.d.ts} +9 -21
- package/dist/client/utils.gen.d.ts.map +1 -0
- package/dist/client/{utils.js → utils.gen.js} +56 -110
- package/dist/client/utils.gen.js.map +1 -0
- package/dist/client.gen.d.ts +3 -3
- package/dist/client.gen.d.ts.map +1 -1
- package/dist/client.gen.js.map +1 -1
- package/dist/core/{auth.d.ts → auth.gen.d.ts} +1 -1
- package/dist/core/auth.gen.d.ts.map +1 -0
- package/dist/core/{auth.js → auth.gen.js} +2 -1
- package/dist/core/auth.gen.js.map +1 -0
- package/dist/core/{bodySerializer.d.ts → bodySerializer.gen.d.ts} +2 -2
- package/dist/core/bodySerializer.gen.d.ts.map +1 -0
- package/dist/core/{bodySerializer.js → bodySerializer.gen.js} +5 -1
- package/dist/core/bodySerializer.gen.js.map +1 -0
- package/dist/core/{params.d.ts → params.gen.d.ts} +1 -1
- package/dist/core/params.gen.d.ts.map +1 -0
- package/dist/core/{params.js → params.gen.js} +2 -1
- package/dist/core/params.gen.js.map +1 -0
- package/dist/core/{pathSerializer.d.ts → pathSerializer.gen.d.ts} +1 -1
- package/dist/core/pathSerializer.gen.d.ts.map +1 -0
- package/dist/core/{pathSerializer.js → pathSerializer.gen.js} +2 -1
- 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.d.ts → types.gen.d.ts} +15 -15
- 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/schemas.gen.d.ts +7 -7
- package/dist/schemas.gen.js +7 -7
- package/dist/schemas.gen.js.map +1 -1
- package/dist/sdk.gen.d.ts +49 -3
- package/dist/sdk.gen.d.ts.map +1 -1
- package/dist/sdk.gen.js +94 -48
- package/dist/sdk.gen.js.map +1 -1
- package/dist/services/kubernetes/api.d.ts +12 -12
- package/dist/types.gen.d.ts +8 -8
- package/dist/types.gen.d.ts.map +1 -1
- package/dist/zod.gen.d.ts +2257 -3156
- package/dist/zod.gen.d.ts.map +1 -1
- package/dist/zod.gen.js +288 -285
- package/dist/zod.gen.js.map +1 -1
- package/package.json +4 -4
- package/dist/client/client.d.ts +0 -3
- package/dist/client/client.d.ts.map +0 -1
- package/dist/client/client.js.map +0 -1
- package/dist/client/types.d.ts.map +0 -1
- package/dist/client/types.js +0 -2
- package/dist/client/types.js.map +0 -1
- package/dist/client/utils.d.ts.map +0 -1
- package/dist/client/utils.js.map +0 -1
- package/dist/core/auth.d.ts.map +0 -1
- package/dist/core/auth.js.map +0 -1
- package/dist/core/bodySerializer.d.ts.map +0 -1
- package/dist/core/bodySerializer.js.map +0 -1
- package/dist/core/params.d.ts.map +0 -1
- package/dist/core/params.js.map +0 -1
- package/dist/core/pathSerializer.d.ts.map +0 -1
- package/dist/core/pathSerializer.js.map +0 -1
- package/dist/core/types.d.ts.map +0 -1
- package/dist/core/types.js +0 -2
- package/dist/core/types.js.map +0 -1
package/dist/sdk.gen.js
CHANGED
|
@@ -1,90 +1,98 @@
|
|
|
1
1
|
// This file is auto-generated by @hey-api/openapi-ts
|
|
2
|
-
import { client
|
|
2
|
+
import { client } from './client.gen';
|
|
3
3
|
export class BillingService {
|
|
4
4
|
/**
|
|
5
5
|
* Get billing usage information.
|
|
6
|
+
*
|
|
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.
|
|
7
8
|
*
|
|
8
9
|
*/
|
|
9
10
|
static getUsage(options) {
|
|
10
|
-
return (options?.client ??
|
|
11
|
+
return (options?.client ?? client).get({
|
|
11
12
|
url: '/billing/usage',
|
|
12
13
|
...options
|
|
13
14
|
});
|
|
14
15
|
}
|
|
15
16
|
/**
|
|
16
17
|
* Get billing balance information.
|
|
18
|
+
*
|
|
17
19
|
* 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.
|
|
18
20
|
*
|
|
19
21
|
*/
|
|
20
22
|
static getBalance(options) {
|
|
21
|
-
return (options?.client ??
|
|
23
|
+
return (options?.client ?? client).get({
|
|
22
24
|
url: '/billing/balance',
|
|
23
25
|
...options
|
|
24
26
|
});
|
|
25
27
|
}
|
|
26
28
|
/**
|
|
27
29
|
* Get organization payment method information.
|
|
30
|
+
*
|
|
28
31
|
* 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.
|
|
29
32
|
*
|
|
30
33
|
*/
|
|
31
34
|
static getPaymentMethod(options) {
|
|
32
|
-
return (options?.client ??
|
|
35
|
+
return (options?.client ?? client).get({
|
|
33
36
|
url: '/billing/payment-method',
|
|
34
37
|
...options
|
|
35
38
|
});
|
|
36
39
|
}
|
|
37
40
|
/**
|
|
38
41
|
* Get Stripe client secret.
|
|
42
|
+
*
|
|
39
43
|
* 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.
|
|
40
44
|
*
|
|
41
45
|
*/
|
|
42
46
|
static getPaymentMethodSecret(options) {
|
|
43
|
-
return (options?.client ??
|
|
47
|
+
return (options?.client ?? client).put({
|
|
44
48
|
url: '/billing/payment-method',
|
|
45
49
|
...options
|
|
46
50
|
});
|
|
47
51
|
}
|
|
48
52
|
/**
|
|
49
53
|
* List issued invoices.
|
|
54
|
+
*
|
|
50
55
|
* 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.
|
|
51
56
|
*
|
|
52
57
|
*/
|
|
53
58
|
static listInvoices(options) {
|
|
54
|
-
return (options.client ??
|
|
59
|
+
return (options.client ?? client).get({
|
|
55
60
|
url: '/billing/invoices',
|
|
56
61
|
...options
|
|
57
62
|
});
|
|
58
63
|
}
|
|
59
64
|
/**
|
|
60
65
|
* Get invoice information.
|
|
66
|
+
*
|
|
61
67
|
* Returns a single Invoice as HTML referenced by id. This endpoint is available to all users in the organization.
|
|
62
68
|
*
|
|
63
69
|
*/
|
|
64
70
|
static getInvoice(options) {
|
|
65
|
-
return (options.client ??
|
|
71
|
+
return (options.client ?? client).get({
|
|
66
72
|
url: '/billing/invoices/{id}',
|
|
67
73
|
...options
|
|
68
74
|
});
|
|
69
75
|
}
|
|
70
76
|
/**
|
|
71
77
|
* Get organization contact and billing address information.
|
|
78
|
+
*
|
|
72
79
|
* Returns the organization contact and billing address information. This endpoint is available to all users in the organization.
|
|
73
80
|
*
|
|
74
81
|
*/
|
|
75
82
|
static getContact(options) {
|
|
76
|
-
return (options?.client ??
|
|
83
|
+
return (options?.client ?? client).get({
|
|
77
84
|
url: '/billing/contact',
|
|
78
85
|
...options
|
|
79
86
|
});
|
|
80
87
|
}
|
|
81
88
|
/**
|
|
82
89
|
* Update organization contact information and billing address.
|
|
90
|
+
*
|
|
83
91
|
* This endpoint allows you to update organization details with its contact information. This endpoint is available to administrators of the organization only.
|
|
84
92
|
*
|
|
85
93
|
*/
|
|
86
94
|
static updateContact(options) {
|
|
87
|
-
return (options.client ??
|
|
95
|
+
return (options.client ?? client).put({
|
|
88
96
|
url: '/billing/contact',
|
|
89
97
|
...options,
|
|
90
98
|
headers: {
|
|
@@ -95,22 +103,24 @@ export class BillingService {
|
|
|
95
103
|
}
|
|
96
104
|
/**
|
|
97
105
|
* Get applied promotional credits
|
|
106
|
+
*
|
|
98
107
|
* 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.
|
|
99
108
|
*
|
|
100
109
|
*/
|
|
101
110
|
static getCredits(options) {
|
|
102
|
-
return (options?.client ??
|
|
111
|
+
return (options?.client ?? client).get({
|
|
103
112
|
url: '/billing/credits',
|
|
104
113
|
...options
|
|
105
114
|
});
|
|
106
115
|
}
|
|
107
116
|
/**
|
|
108
117
|
* Redeem promotional credits code.
|
|
118
|
+
*
|
|
109
119
|
* 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.
|
|
110
120
|
*
|
|
111
121
|
*/
|
|
112
122
|
static redeemCredits(options) {
|
|
113
|
-
return (options.client ??
|
|
123
|
+
return (options.client ?? client).post({
|
|
114
124
|
url: '/billing/credits',
|
|
115
125
|
...options,
|
|
116
126
|
headers: {
|
|
@@ -123,26 +133,28 @@ export class BillingService {
|
|
|
123
133
|
export class ClustersService {
|
|
124
134
|
/**
|
|
125
135
|
* List charts.
|
|
136
|
+
*
|
|
126
137
|
* Returns a list of charts in the cluster.
|
|
127
138
|
*
|
|
128
139
|
* This endpoint is available to all users in the organization.
|
|
129
140
|
*
|
|
130
141
|
*/
|
|
131
142
|
static listCharts(options) {
|
|
132
|
-
return (options.client ??
|
|
143
|
+
return (options.client ?? client).get({
|
|
133
144
|
url: '/clusters/{cluster_id}/charts',
|
|
134
145
|
...options
|
|
135
146
|
});
|
|
136
147
|
}
|
|
137
148
|
/**
|
|
138
149
|
* Create a new chart.
|
|
150
|
+
*
|
|
139
151
|
* Create a new chart deployment.
|
|
140
152
|
*
|
|
141
153
|
* This endpoint is available to administrators of the organization only.
|
|
142
154
|
*
|
|
143
155
|
*/
|
|
144
156
|
static createChart(options) {
|
|
145
|
-
return (options.client ??
|
|
157
|
+
return (options.client ?? client).post({
|
|
146
158
|
url: '/clusters/{cluster_id}/charts',
|
|
147
159
|
...options,
|
|
148
160
|
headers: {
|
|
@@ -153,39 +165,42 @@ export class ClustersService {
|
|
|
153
165
|
}
|
|
154
166
|
/**
|
|
155
167
|
* Permanently delete the chart deployment from the cluster.
|
|
168
|
+
*
|
|
156
169
|
* This endpoint will permanently delete chart. This operation cannot be undone.
|
|
157
170
|
*
|
|
158
171
|
* This endpoint is available to administrators of the organization only.
|
|
159
172
|
*
|
|
160
173
|
*/
|
|
161
174
|
static deleteChart(options) {
|
|
162
|
-
return (options.client ??
|
|
175
|
+
return (options.client ?? client).delete({
|
|
163
176
|
url: '/clusters/{cluster_id}/charts/{chart_name}',
|
|
164
177
|
...options
|
|
165
178
|
});
|
|
166
179
|
}
|
|
167
180
|
/**
|
|
168
181
|
* Get chart information.
|
|
182
|
+
*
|
|
169
183
|
* Returns the details of the chart deployment.
|
|
170
184
|
*
|
|
171
185
|
* This endpoint is available to all users in the organization.
|
|
172
186
|
*
|
|
173
187
|
*/
|
|
174
188
|
static getChart(options) {
|
|
175
|
-
return (options.client ??
|
|
189
|
+
return (options.client ?? client).get({
|
|
176
190
|
url: '/clusters/{cluster_id}/charts/{chart_name}',
|
|
177
191
|
...options
|
|
178
192
|
});
|
|
179
193
|
}
|
|
180
194
|
/**
|
|
181
195
|
* Update chart information.
|
|
196
|
+
*
|
|
182
197
|
* This endpoint allows you to update the values of a chart deployment.
|
|
183
198
|
*
|
|
184
199
|
* This endpoint is available to administrators of the organization only.
|
|
185
200
|
*
|
|
186
201
|
*/
|
|
187
202
|
static updateChart(options) {
|
|
188
|
-
return (options.client ??
|
|
203
|
+
return (options.client ?? client).put({
|
|
189
204
|
url: '/clusters/{cluster_id}/charts/{chart_name}',
|
|
190
205
|
...options,
|
|
191
206
|
headers: {
|
|
@@ -196,26 +211,28 @@ export class ClustersService {
|
|
|
196
211
|
}
|
|
197
212
|
/**
|
|
198
213
|
* List fleets.
|
|
214
|
+
*
|
|
199
215
|
* Returns a list of fleets belonging to the cluster. For more information, see [Fleets](https://cloudfleet.ai/docs/cloud-infrastructure/fleets/) section of documentaiton.
|
|
200
216
|
*
|
|
201
217
|
* This endpoint is available to all users in the organization.
|
|
202
218
|
*
|
|
203
219
|
*/
|
|
204
220
|
static listFleets(options) {
|
|
205
|
-
return (options.client ??
|
|
221
|
+
return (options.client ?? client).get({
|
|
206
222
|
url: '/clusters/{cluster_id}/fleets',
|
|
207
223
|
...options
|
|
208
224
|
});
|
|
209
225
|
}
|
|
210
226
|
/**
|
|
211
227
|
* Create a new fleet.
|
|
228
|
+
*
|
|
212
229
|
* 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.
|
|
213
230
|
*
|
|
214
231
|
* This endpoint is available to administrators of the organization only.
|
|
215
232
|
*
|
|
216
233
|
*/
|
|
217
234
|
static createFleet(options) {
|
|
218
|
-
return (options.client ??
|
|
235
|
+
return (options.client ?? client).post({
|
|
219
236
|
url: '/clusters/{cluster_id}/fleets',
|
|
220
237
|
...options,
|
|
221
238
|
headers: {
|
|
@@ -226,32 +243,35 @@ export class ClustersService {
|
|
|
226
243
|
}
|
|
227
244
|
/**
|
|
228
245
|
* Permanently delete fleet.
|
|
246
|
+
*
|
|
229
247
|
* 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.
|
|
230
248
|
*
|
|
231
249
|
* This endpoint is available to administrators of the organization only.
|
|
232
250
|
*
|
|
233
251
|
*/
|
|
234
252
|
static deleteFleet(options) {
|
|
235
|
-
return (options.client ??
|
|
253
|
+
return (options.client ?? client).delete({
|
|
236
254
|
url: '/clusters/{cluster_id}/fleets/{fleet_name}',
|
|
237
255
|
...options
|
|
238
256
|
});
|
|
239
257
|
}
|
|
240
258
|
/**
|
|
241
259
|
* Get fleet information.
|
|
260
|
+
*
|
|
242
261
|
* Returns fleet details. For more information, see [Fleets](https://cloudfleet.ai/docs/cloud-infrastructure/fleets/) section of documentaiton.
|
|
243
262
|
*
|
|
244
263
|
* This endpoint is available to all users in the organization.
|
|
245
264
|
*
|
|
246
265
|
*/
|
|
247
266
|
static getFleet(options) {
|
|
248
|
-
return (options.client ??
|
|
267
|
+
return (options.client ?? client).get({
|
|
249
268
|
url: '/clusters/{cluster_id}/fleets/{fleet_name}',
|
|
250
269
|
...options
|
|
251
270
|
});
|
|
252
271
|
}
|
|
253
272
|
/**
|
|
254
273
|
* Update fleet information.
|
|
274
|
+
*
|
|
255
275
|
* This endpoint allows you to update fleet details.
|
|
256
276
|
*
|
|
257
277
|
* 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`.
|
|
@@ -262,7 +282,7 @@ export class ClustersService {
|
|
|
262
282
|
*
|
|
263
283
|
*/
|
|
264
284
|
static updateFleet(options) {
|
|
265
|
-
return (options.client ??
|
|
285
|
+
return (options.client ?? client).put({
|
|
266
286
|
url: '/clusters/{cluster_id}/fleets/{fleet_name}',
|
|
267
287
|
...options,
|
|
268
288
|
headers: {
|
|
@@ -273,36 +293,39 @@ export class ClustersService {
|
|
|
273
293
|
}
|
|
274
294
|
/**
|
|
275
295
|
* Query Kubernetes cluster API
|
|
296
|
+
*
|
|
276
297
|
* 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.
|
|
277
298
|
*/
|
|
278
299
|
static queryCluster(options) {
|
|
279
|
-
return (options.client ??
|
|
300
|
+
return (options.client ?? client).get({
|
|
280
301
|
url: '/clusters/{cluster_id}/query',
|
|
281
302
|
...options
|
|
282
303
|
});
|
|
283
304
|
}
|
|
284
305
|
/**
|
|
285
306
|
* List clusters.
|
|
307
|
+
*
|
|
286
308
|
* 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.
|
|
287
309
|
*
|
|
288
310
|
* This endpoint is available to all users in the organization.
|
|
289
311
|
*
|
|
290
312
|
*/
|
|
291
313
|
static listClusters(options) {
|
|
292
|
-
return (options?.client ??
|
|
314
|
+
return (options?.client ?? client).get({
|
|
293
315
|
url: '/clusters',
|
|
294
316
|
...options
|
|
295
317
|
});
|
|
296
318
|
}
|
|
297
319
|
/**
|
|
298
320
|
* Create a new cluster.
|
|
321
|
+
*
|
|
299
322
|
* 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.
|
|
300
323
|
*
|
|
301
324
|
* This endpoint is available to administrators of the organization only.
|
|
302
325
|
*
|
|
303
326
|
*/
|
|
304
327
|
static createCluster(options) {
|
|
305
|
-
return (options.client ??
|
|
328
|
+
return (options.client ?? client).post({
|
|
306
329
|
url: '/clusters',
|
|
307
330
|
...options,
|
|
308
331
|
headers: {
|
|
@@ -313,39 +336,42 @@ export class ClustersService {
|
|
|
313
336
|
}
|
|
314
337
|
/**
|
|
315
338
|
* Permanently delete cluster.
|
|
339
|
+
*
|
|
316
340
|
* This endpoint will permanently delete the cluster. This operation cannot be undone.
|
|
317
341
|
*
|
|
318
342
|
* This endpoint is available to administrators of the organization only.
|
|
319
343
|
*
|
|
320
344
|
*/
|
|
321
345
|
static deleteCluster(options) {
|
|
322
|
-
return (options.client ??
|
|
346
|
+
return (options.client ?? client).delete({
|
|
323
347
|
url: '/clusters/{cluster_id}',
|
|
324
348
|
...options
|
|
325
349
|
});
|
|
326
350
|
}
|
|
327
351
|
/**
|
|
328
352
|
* Get cluster information.
|
|
353
|
+
*
|
|
329
354
|
* 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.
|
|
330
355
|
*
|
|
331
356
|
* This endpoint is available to all users in the organization.
|
|
332
357
|
*
|
|
333
358
|
*/
|
|
334
359
|
static getCluster(options) {
|
|
335
|
-
return (options.client ??
|
|
360
|
+
return (options.client ?? client).get({
|
|
336
361
|
url: '/clusters/{cluster_id}',
|
|
337
362
|
...options
|
|
338
363
|
});
|
|
339
364
|
}
|
|
340
365
|
/**
|
|
341
366
|
* Update cluster information.
|
|
367
|
+
*
|
|
342
368
|
* 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.
|
|
343
369
|
*
|
|
344
370
|
* This endpoint is available to administrators of the organization only.
|
|
345
371
|
*
|
|
346
372
|
*/
|
|
347
373
|
static updateCluster(options) {
|
|
348
|
-
return (options.client ??
|
|
374
|
+
return (options.client ?? client).put({
|
|
349
375
|
url: '/clusters/{cluster_id}',
|
|
350
376
|
...options,
|
|
351
377
|
headers: {
|
|
@@ -356,11 +382,12 @@ export class ClustersService {
|
|
|
356
382
|
}
|
|
357
383
|
/**
|
|
358
384
|
* Node join information for the cluster
|
|
385
|
+
*
|
|
359
386
|
* 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.
|
|
360
387
|
*
|
|
361
388
|
*/
|
|
362
389
|
static getJoinInformation(options) {
|
|
363
|
-
return (options.client ??
|
|
390
|
+
return (options.client ?? client).post({
|
|
364
391
|
url: '/clusters/{cluster_id}/join_information',
|
|
365
392
|
...options
|
|
366
393
|
});
|
|
@@ -369,22 +396,24 @@ export class ClustersService {
|
|
|
369
396
|
export class InvitesService {
|
|
370
397
|
/**
|
|
371
398
|
* List invites.
|
|
399
|
+
*
|
|
372
400
|
* Returns a list of invites under the current organization. This endpoint is available to all users in the organization.
|
|
373
401
|
*
|
|
374
402
|
*/
|
|
375
403
|
static listInvites(options) {
|
|
376
|
-
return (options?.client ??
|
|
404
|
+
return (options?.client ?? client).get({
|
|
377
405
|
url: '/invites',
|
|
378
406
|
...options
|
|
379
407
|
});
|
|
380
408
|
}
|
|
381
409
|
/**
|
|
382
410
|
* Create a new invite.
|
|
411
|
+
*
|
|
383
412
|
* 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.
|
|
384
413
|
*
|
|
385
414
|
*/
|
|
386
415
|
static createInvite(options) {
|
|
387
|
-
return (options.client ??
|
|
416
|
+
return (options.client ?? client).post({
|
|
388
417
|
url: '/invites',
|
|
389
418
|
...options,
|
|
390
419
|
headers: {
|
|
@@ -395,22 +424,24 @@ export class InvitesService {
|
|
|
395
424
|
}
|
|
396
425
|
/**
|
|
397
426
|
* Get invite information.
|
|
427
|
+
*
|
|
398
428
|
* Returns invite details.
|
|
399
429
|
*
|
|
400
430
|
*/
|
|
401
431
|
static getInvite(options) {
|
|
402
|
-
return (options.client ??
|
|
432
|
+
return (options.client ?? client).get({
|
|
403
433
|
url: '/invites/{code}',
|
|
404
434
|
...options
|
|
405
435
|
});
|
|
406
436
|
}
|
|
407
437
|
/**
|
|
408
438
|
* Permanently delete invite.
|
|
439
|
+
*
|
|
409
440
|
* Permanently deletes invite from the organization. This endpoint is available to administrators of the organization only.
|
|
410
441
|
*
|
|
411
442
|
*/
|
|
412
443
|
static deleteInvite(options) {
|
|
413
|
-
return (options.client ??
|
|
444
|
+
return (options.client ?? client).delete({
|
|
414
445
|
url: '/invites/{email}',
|
|
415
446
|
...options
|
|
416
447
|
});
|
|
@@ -419,26 +450,28 @@ export class InvitesService {
|
|
|
419
450
|
export class ChartsMarketplaceService {
|
|
420
451
|
/**
|
|
421
452
|
* List chart listings available in the marketplace.
|
|
453
|
+
*
|
|
422
454
|
* Returns a list of available charts in the marketplace.
|
|
423
455
|
*
|
|
424
456
|
* This endpoint is available to all users in the organization.
|
|
425
457
|
*
|
|
426
458
|
*/
|
|
427
459
|
static listMarketplaceCharts(options) {
|
|
428
|
-
return (options?.client ??
|
|
460
|
+
return (options?.client ?? client).get({
|
|
429
461
|
url: '/marketplace',
|
|
430
462
|
...options
|
|
431
463
|
});
|
|
432
464
|
}
|
|
433
465
|
/**
|
|
434
466
|
* Get chart listing details.
|
|
467
|
+
*
|
|
435
468
|
* Returns details of the chart listing.
|
|
436
469
|
*
|
|
437
470
|
* This endpoint is available to all users in the organization.
|
|
438
471
|
*
|
|
439
472
|
*/
|
|
440
473
|
static getMarketplaceChart(options) {
|
|
441
|
-
return (options.client ??
|
|
474
|
+
return (options.client ?? client).get({
|
|
442
475
|
url: '/marketplace/{listing_id}',
|
|
443
476
|
...options
|
|
444
477
|
});
|
|
@@ -447,24 +480,26 @@ export class ChartsMarketplaceService {
|
|
|
447
480
|
export class OrganizationService {
|
|
448
481
|
/**
|
|
449
482
|
* Get organization information.
|
|
483
|
+
*
|
|
450
484
|
* Returns organization details including quota. For more information about quotas, see [Quotas and limits](https://cloudfleet.ai/docs/organization/quotas/) section of documentaiton.
|
|
451
485
|
*
|
|
452
486
|
* This endpoint is available to all users in the organization.
|
|
453
487
|
*
|
|
454
488
|
*/
|
|
455
489
|
static getOrganization(options) {
|
|
456
|
-
return (options?.client ??
|
|
490
|
+
return (options?.client ?? client).get({
|
|
457
491
|
url: '/organization',
|
|
458
492
|
...options
|
|
459
493
|
});
|
|
460
494
|
}
|
|
461
495
|
/**
|
|
462
496
|
* Create a new organization / Cloudfleet account signup.
|
|
497
|
+
*
|
|
463
498
|
* This endpoint allows you to create a new Cloudfleet organization and an administrator user.
|
|
464
499
|
*
|
|
465
500
|
*/
|
|
466
501
|
static createOrganization(options) {
|
|
467
|
-
return (options.client ??
|
|
502
|
+
return (options.client ?? client).post({
|
|
468
503
|
url: '/organization',
|
|
469
504
|
...options,
|
|
470
505
|
headers: {
|
|
@@ -477,24 +512,26 @@ export class OrganizationService {
|
|
|
477
512
|
export class TokensService {
|
|
478
513
|
/**
|
|
479
514
|
* List access tokens in organization.
|
|
515
|
+
*
|
|
480
516
|
* 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.
|
|
481
517
|
*
|
|
482
518
|
*/
|
|
483
519
|
static listTokens(options) {
|
|
484
|
-
return (options?.client ??
|
|
520
|
+
return (options?.client ?? client).get({
|
|
485
521
|
url: '/tokens',
|
|
486
522
|
...options
|
|
487
523
|
});
|
|
488
524
|
}
|
|
489
525
|
/**
|
|
490
526
|
* Create a new access token.
|
|
527
|
+
*
|
|
491
528
|
* 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.
|
|
492
529
|
*
|
|
493
530
|
* This endpoint is available to administrators of the organization only.
|
|
494
531
|
*
|
|
495
532
|
*/
|
|
496
533
|
static createToken(options) {
|
|
497
|
-
return (options.client ??
|
|
534
|
+
return (options.client ?? client).post({
|
|
498
535
|
url: '/tokens',
|
|
499
536
|
...options,
|
|
500
537
|
headers: {
|
|
@@ -505,35 +542,38 @@ export class TokensService {
|
|
|
505
542
|
}
|
|
506
543
|
/**
|
|
507
544
|
* Permanently delete access token.
|
|
545
|
+
*
|
|
508
546
|
* 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.
|
|
509
547
|
*
|
|
510
548
|
*/
|
|
511
549
|
static deleteToken(options) {
|
|
512
|
-
return (options.client ??
|
|
550
|
+
return (options.client ?? client).delete({
|
|
513
551
|
url: '/tokens/{token_id}',
|
|
514
552
|
...options
|
|
515
553
|
});
|
|
516
554
|
}
|
|
517
555
|
/**
|
|
518
556
|
* Get access token information.
|
|
557
|
+
*
|
|
519
558
|
* 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.
|
|
520
559
|
*
|
|
521
560
|
*/
|
|
522
561
|
static getToken(options) {
|
|
523
|
-
return (options.client ??
|
|
562
|
+
return (options.client ?? client).get({
|
|
524
563
|
url: '/tokens/{token_id}',
|
|
525
564
|
...options
|
|
526
565
|
});
|
|
527
566
|
}
|
|
528
567
|
/**
|
|
529
568
|
* Update access token information.
|
|
569
|
+
*
|
|
530
570
|
* 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.
|
|
531
571
|
*
|
|
532
572
|
* This endpoint is available to administrators of the organization only.
|
|
533
573
|
*
|
|
534
574
|
*/
|
|
535
575
|
static updateToken(options) {
|
|
536
|
-
return (options.client ??
|
|
576
|
+
return (options.client ?? client).put({
|
|
537
577
|
url: '/tokens/{token_id}',
|
|
538
578
|
...options,
|
|
539
579
|
headers: {
|
|
@@ -544,10 +584,11 @@ export class TokensService {
|
|
|
544
584
|
}
|
|
545
585
|
/**
|
|
546
586
|
* Regenerate access token secret key.
|
|
587
|
+
*
|
|
547
588
|
* Generates a new access token secret. Old secret will not be valid anymore.
|
|
548
589
|
*/
|
|
549
590
|
static regenerateToken(options) {
|
|
550
|
-
return (options.client ??
|
|
591
|
+
return (options.client ?? client).put({
|
|
551
592
|
url: '/tokens/{token_id}/secret',
|
|
552
593
|
...options
|
|
553
594
|
});
|
|
@@ -558,31 +599,33 @@ export class UsersService {
|
|
|
558
599
|
* Get a list of organizations the user belongs to. Used during authentication process.
|
|
559
600
|
*/
|
|
560
601
|
static listUserOrganizations(options) {
|
|
561
|
-
return (options.client ??
|
|
602
|
+
return (options.client ?? client).get({
|
|
562
603
|
url: '/users/organizations/{email}',
|
|
563
604
|
...options
|
|
564
605
|
});
|
|
565
606
|
}
|
|
566
607
|
/**
|
|
567
608
|
* List users in organization.
|
|
609
|
+
*
|
|
568
610
|
* 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.
|
|
569
611
|
*
|
|
570
612
|
* This endpoint is available to all users in the organization.
|
|
571
613
|
*
|
|
572
614
|
*/
|
|
573
615
|
static listUsers(options) {
|
|
574
|
-
return (options?.client ??
|
|
616
|
+
return (options?.client ?? client).get({
|
|
575
617
|
url: '/users',
|
|
576
618
|
...options
|
|
577
619
|
});
|
|
578
620
|
}
|
|
579
621
|
/**
|
|
580
622
|
* Create a new user.
|
|
623
|
+
*
|
|
581
624
|
* 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.
|
|
582
625
|
*
|
|
583
626
|
*/
|
|
584
627
|
static createUser(options) {
|
|
585
|
-
return (options.client ??
|
|
628
|
+
return (options.client ?? client).post({
|
|
586
629
|
url: '/users',
|
|
587
630
|
...options,
|
|
588
631
|
headers: {
|
|
@@ -593,35 +636,38 @@ export class UsersService {
|
|
|
593
636
|
}
|
|
594
637
|
/**
|
|
595
638
|
* Delete user by id.
|
|
639
|
+
*
|
|
596
640
|
* Sets user status to `inactive`. Inactive users cannot log in and manage organization resources. This endpoint is available to administrators of the organization only.
|
|
597
641
|
*
|
|
598
642
|
*/
|
|
599
643
|
static deleteUser(options) {
|
|
600
|
-
return (options.client ??
|
|
644
|
+
return (options.client ?? client).delete({
|
|
601
645
|
url: '/users/{user_id}',
|
|
602
646
|
...options
|
|
603
647
|
});
|
|
604
648
|
}
|
|
605
649
|
/**
|
|
606
650
|
* Get user profile information by id.
|
|
651
|
+
*
|
|
607
652
|
* Returns user details including their roles. For more information on identity access management, see [Users](https://cloudfleet.ai/docs/organization/users/) section of documentaiton.
|
|
608
653
|
*
|
|
609
654
|
* This endpoint is available to all users in the organization.
|
|
610
655
|
*
|
|
611
656
|
*/
|
|
612
657
|
static getUser(options) {
|
|
613
|
-
return (options.client ??
|
|
658
|
+
return (options.client ?? client).get({
|
|
614
659
|
url: '/users/{user_id}',
|
|
615
660
|
...options
|
|
616
661
|
});
|
|
617
662
|
}
|
|
618
663
|
/**
|
|
619
664
|
* Update user profile information.
|
|
665
|
+
*
|
|
620
666
|
* 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.
|
|
621
667
|
*
|
|
622
668
|
*/
|
|
623
669
|
static updateUser(options) {
|
|
624
|
-
return (options.client ??
|
|
670
|
+
return (options.client ?? client).put({
|
|
625
671
|
url: '/users/{user_id}',
|
|
626
672
|
...options,
|
|
627
673
|
headers: {
|