@cloudfleet/sdk 0.0.1-13073f9 → 0.0.1-1569b1f
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/README.md +26 -2
- package/dist/@tanstack/react-query.gen.d.ts +1084 -0
- package/dist/@tanstack/react-query.gen.d.ts.map +1 -0
- package/dist/@tanstack/react-query.gen.js +1305 -0
- package/dist/@tanstack/react-query.gen.js.map +1 -0
- package/dist/client/client.gen.d.ts.map +1 -1
- package/dist/client/client.gen.js +114 -102
- package/dist/client/client.gen.js.map +1 -1
- package/dist/client/index.d.ts +1 -1
- package/dist/client/index.d.ts.map +1 -1
- package/dist/client/index.js.map +1 -1
- package/dist/client/types.gen.d.ts +9 -13
- package/dist/client/types.gen.d.ts.map +1 -1
- package/dist/client/utils.gen.d.ts +8 -4
- package/dist/client/utils.gen.d.ts.map +1 -1
- package/dist/client/utils.gen.js +13 -15
- package/dist/client/utils.gen.js.map +1 -1
- package/dist/client.gen.d.ts.map +1 -1
- package/dist/client.gen.js +1 -3
- package/dist/client.gen.js.map +1 -1
- package/dist/core/auth.gen.d.ts.map +1 -1
- package/dist/core/auth.gen.js.map +1 -1
- package/dist/core/bodySerializer.gen.d.ts +16 -8
- package/dist/core/bodySerializer.gen.d.ts.map +1 -1
- package/dist/core/bodySerializer.gen.js +1 -1
- package/dist/core/bodySerializer.gen.js.map +1 -1
- package/dist/core/params.gen.d.ts +10 -0
- package/dist/core/params.gen.d.ts.map +1 -1
- package/dist/core/params.gen.js +22 -10
- package/dist/core/params.gen.js.map +1 -1
- package/dist/core/pathSerializer.gen.d.ts.map +1 -1
- package/dist/core/pathSerializer.gen.js +3 -11
- package/dist/core/pathSerializer.gen.js.map +1 -1
- package/dist/core/queryKeySerializer.gen.d.ts.map +1 -1
- package/dist/core/queryKeySerializer.gen.js +4 -11
- package/dist/core/queryKeySerializer.gen.js.map +1 -1
- package/dist/core/serverSentEvents.gen.d.ts +1 -1
- package/dist/core/serverSentEvents.gen.d.ts.map +1 -1
- package/dist/core/serverSentEvents.gen.js +6 -9
- package/dist/core/serverSentEvents.gen.js.map +1 -1
- package/dist/core/types.gen.d.ts +1 -1
- package/dist/core/types.gen.d.ts.map +1 -1
- package/dist/core/utils.gen.d.ts.map +1 -1
- package/dist/core/utils.gen.js +1 -1
- package/dist/core/utils.gen.js.map +1 -1
- package/dist/schemas.gen.d.ts +1414 -171
- package/dist/schemas.gen.d.ts.map +1 -1
- package/dist/schemas.gen.js +2895 -238
- package/dist/schemas.gen.js.map +1 -1
- package/dist/sdk.gen.d.ts +296 -184
- package/dist/sdk.gen.d.ts.map +1 -1
- package/dist/sdk.gen.js +451 -376
- package/dist/sdk.gen.js.map +1 -1
- package/dist/services/kubernetes/api.d.ts +8 -8
- package/dist/types.gen.d.ts +1814 -685
- package/dist/types.gen.d.ts.map +1 -1
- package/dist/zod.gen.d.ts +3751 -1415
- package/dist/zod.gen.d.ts.map +1 -1
- package/dist/zod.gen.js +1532 -616
- package/dist/zod.gen.js.map +1 -1
- package/package.json +28 -8
package/dist/sdk.gen.js
CHANGED
|
@@ -1,103 +1,69 @@
|
|
|
1
1
|
// This file is auto-generated by @hey-api/openapi-ts
|
|
2
|
+
import { formDataBodySerializer } from './client';
|
|
2
3
|
import { client } from './client.gen';
|
|
3
|
-
export class
|
|
4
|
+
export class UsersService {
|
|
4
5
|
/**
|
|
5
|
-
* Get
|
|
6
|
-
*
|
|
7
|
-
* Returns aggregated usage information for the organization with facets for filtering. 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
|
-
*
|
|
6
|
+
* Get a list of organizations the user belongs to. Used during authentication process.
|
|
9
7
|
*/
|
|
10
|
-
static
|
|
11
|
-
return (options
|
|
12
|
-
url: '/billing/usage',
|
|
13
|
-
...options
|
|
14
|
-
});
|
|
8
|
+
static listUserOrganizations(options) {
|
|
9
|
+
return (options.client ?? client).get({ url: '/users/organizations/{email}', ...options });
|
|
15
10
|
}
|
|
16
11
|
/**
|
|
17
|
-
*
|
|
18
|
-
*
|
|
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.
|
|
12
|
+
* List users in organization.
|
|
20
13
|
*
|
|
21
|
-
|
|
22
|
-
static getPaymentMethod(options) {
|
|
23
|
-
return (options?.client ?? client).get({
|
|
24
|
-
url: '/billing/payment-method',
|
|
25
|
-
...options
|
|
26
|
-
});
|
|
27
|
-
}
|
|
28
|
-
/**
|
|
29
|
-
* Get Stripe client secret.
|
|
14
|
+
* 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.
|
|
30
15
|
*
|
|
31
|
-
*
|
|
16
|
+
* This endpoint is available to all users in the organization.
|
|
32
17
|
*
|
|
33
18
|
*/
|
|
34
|
-
static
|
|
35
|
-
return (options?.client ?? client).
|
|
36
|
-
url: '/billing/payment-method',
|
|
37
|
-
...options
|
|
38
|
-
});
|
|
19
|
+
static listUsers(options) {
|
|
20
|
+
return (options?.client ?? client).get({ url: '/users', ...options });
|
|
39
21
|
}
|
|
40
22
|
/**
|
|
41
|
-
*
|
|
23
|
+
* Create a new user.
|
|
42
24
|
*
|
|
43
|
-
*
|
|
25
|
+
* 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.
|
|
44
26
|
*
|
|
45
27
|
*/
|
|
46
|
-
static
|
|
47
|
-
return (options
|
|
48
|
-
url: '/
|
|
49
|
-
...options
|
|
28
|
+
static createUser(options) {
|
|
29
|
+
return (options.client ?? client).post({
|
|
30
|
+
url: '/users',
|
|
31
|
+
...options,
|
|
32
|
+
headers: {
|
|
33
|
+
'Content-Type': 'application/json',
|
|
34
|
+
...options.headers
|
|
35
|
+
}
|
|
50
36
|
});
|
|
51
37
|
}
|
|
52
38
|
/**
|
|
53
|
-
*
|
|
39
|
+
* Delete user by id.
|
|
54
40
|
*
|
|
55
|
-
*
|
|
41
|
+
* Sets user status to `inactive`. Inactive users cannot log in and manage organization resources. This endpoint is available to administrators of the organization only.
|
|
56
42
|
*
|
|
57
43
|
*/
|
|
58
|
-
static
|
|
59
|
-
return (options
|
|
60
|
-
url: '/billing/contact',
|
|
61
|
-
...options
|
|
62
|
-
});
|
|
44
|
+
static deleteUser(options) {
|
|
45
|
+
return (options.client ?? client).delete({ url: '/users/{user_id}', ...options });
|
|
63
46
|
}
|
|
64
47
|
/**
|
|
65
|
-
*
|
|
66
|
-
*
|
|
67
|
-
* This endpoint allows you to update organization details with its contact information. This endpoint is available to administrators of the organization only.
|
|
48
|
+
* Get user profile information by id.
|
|
68
49
|
*
|
|
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
|
|
50
|
+
* Returns user details including their roles. For more information on identity access management, see [Users](https://cloudfleet.ai/docs/organization/users/) section of documentaiton.
|
|
82
51
|
*
|
|
83
|
-
*
|
|
52
|
+
* This endpoint is available to all users in the organization.
|
|
84
53
|
*
|
|
85
54
|
*/
|
|
86
|
-
static
|
|
87
|
-
return (options
|
|
88
|
-
url: '/billing/credits',
|
|
89
|
-
...options
|
|
90
|
-
});
|
|
55
|
+
static getUser(options) {
|
|
56
|
+
return (options.client ?? client).get({ url: '/users/{user_id}', ...options });
|
|
91
57
|
}
|
|
92
58
|
/**
|
|
93
|
-
*
|
|
59
|
+
* Update user profile information.
|
|
94
60
|
*
|
|
95
|
-
*
|
|
61
|
+
* 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.
|
|
96
62
|
*
|
|
97
63
|
*/
|
|
98
|
-
static
|
|
99
|
-
return (options.client ?? client).
|
|
100
|
-
url: '/
|
|
64
|
+
static updateUser(options) {
|
|
65
|
+
return (options.client ?? client).put({
|
|
66
|
+
url: '/users/{user_id}',
|
|
101
67
|
...options,
|
|
102
68
|
headers: {
|
|
103
69
|
'Content-Type': 'application/json',
|
|
@@ -106,32 +72,27 @@ export class BillingService {
|
|
|
106
72
|
});
|
|
107
73
|
}
|
|
108
74
|
}
|
|
109
|
-
export class
|
|
75
|
+
export class TokensService {
|
|
110
76
|
/**
|
|
111
|
-
* List
|
|
112
|
-
*
|
|
113
|
-
* Returns a list of charts in the cluster.
|
|
77
|
+
* List access tokens in organization.
|
|
114
78
|
*
|
|
115
|
-
* This endpoint is available to all users in the organization.
|
|
79
|
+
* 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.
|
|
116
80
|
*
|
|
117
81
|
*/
|
|
118
|
-
static
|
|
119
|
-
return (options
|
|
120
|
-
url: '/clusters/{cluster_id}/charts',
|
|
121
|
-
...options
|
|
122
|
-
});
|
|
82
|
+
static listTokens(options) {
|
|
83
|
+
return (options?.client ?? client).get({ url: '/tokens', ...options });
|
|
123
84
|
}
|
|
124
85
|
/**
|
|
125
|
-
* Create a new
|
|
86
|
+
* Create a new access token.
|
|
126
87
|
*
|
|
127
|
-
*
|
|
88
|
+
* 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.
|
|
128
89
|
*
|
|
129
90
|
* This endpoint is available to administrators of the organization only.
|
|
130
91
|
*
|
|
131
92
|
*/
|
|
132
|
-
static
|
|
93
|
+
static createToken(options) {
|
|
133
94
|
return (options.client ?? client).post({
|
|
134
|
-
url: '/
|
|
95
|
+
url: '/tokens',
|
|
135
96
|
...options,
|
|
136
97
|
headers: {
|
|
137
98
|
'Content-Type': 'application/json',
|
|
@@ -140,44 +101,34 @@ export class ClustersService {
|
|
|
140
101
|
});
|
|
141
102
|
}
|
|
142
103
|
/**
|
|
143
|
-
* Permanently delete
|
|
144
|
-
*
|
|
145
|
-
* This endpoint will permanently delete chart. This operation cannot be undone.
|
|
104
|
+
* Permanently delete access token.
|
|
146
105
|
*
|
|
147
|
-
* This endpoint is available to administrators of the organization only.
|
|
106
|
+
* 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.
|
|
148
107
|
*
|
|
149
108
|
*/
|
|
150
|
-
static
|
|
151
|
-
return (options.client ?? client).delete({
|
|
152
|
-
url: '/clusters/{cluster_id}/charts/{chart_name}',
|
|
153
|
-
...options
|
|
154
|
-
});
|
|
109
|
+
static deleteToken(options) {
|
|
110
|
+
return (options.client ?? client).delete({ url: '/tokens/{token_id}', ...options });
|
|
155
111
|
}
|
|
156
112
|
/**
|
|
157
|
-
* Get
|
|
158
|
-
*
|
|
159
|
-
* Returns the details of the chart deployment.
|
|
113
|
+
* Get access token information.
|
|
160
114
|
*
|
|
161
|
-
* This endpoint is available to all users in the organization.
|
|
115
|
+
* 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.
|
|
162
116
|
*
|
|
163
117
|
*/
|
|
164
|
-
static
|
|
165
|
-
return (options.client ?? client).get({
|
|
166
|
-
url: '/clusters/{cluster_id}/charts/{chart_name}',
|
|
167
|
-
...options
|
|
168
|
-
});
|
|
118
|
+
static getToken(options) {
|
|
119
|
+
return (options.client ?? client).get({ url: '/tokens/{token_id}', ...options });
|
|
169
120
|
}
|
|
170
121
|
/**
|
|
171
|
-
* Update
|
|
122
|
+
* Update access token information.
|
|
172
123
|
*
|
|
173
|
-
* This endpoint allows you to update
|
|
124
|
+
* 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.
|
|
174
125
|
*
|
|
175
126
|
* This endpoint is available to administrators of the organization only.
|
|
176
127
|
*
|
|
177
128
|
*/
|
|
178
|
-
static
|
|
129
|
+
static updateToken(options) {
|
|
179
130
|
return (options.client ?? client).put({
|
|
180
|
-
url: '/
|
|
131
|
+
url: '/tokens/{token_id}',
|
|
181
132
|
...options,
|
|
182
133
|
headers: {
|
|
183
134
|
'Content-Type': 'application/json',
|
|
@@ -186,123 +137,108 @@ export class ClustersService {
|
|
|
186
137
|
});
|
|
187
138
|
}
|
|
188
139
|
/**
|
|
189
|
-
*
|
|
140
|
+
* Regenerate access token secret key.
|
|
190
141
|
*
|
|
191
|
-
*
|
|
142
|
+
* Generates a new access token secret. Old secret will not be valid anymore.
|
|
143
|
+
*/
|
|
144
|
+
static regenerateToken(options) {
|
|
145
|
+
return (options.client ?? client).put({ url: '/tokens/{token_id}/secret', ...options });
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
export class TicketsService {
|
|
149
|
+
/**
|
|
150
|
+
* List tickets for the current organization.
|
|
192
151
|
*
|
|
193
|
-
*
|
|
152
|
+
* Returns all tickets belonging to the caller's organization, newest first.
|
|
194
153
|
*
|
|
195
154
|
*/
|
|
196
|
-
static
|
|
197
|
-
return (options
|
|
198
|
-
url: '/clusters/{cluster_id}/fleets',
|
|
199
|
-
...options
|
|
200
|
-
});
|
|
155
|
+
static listTickets(options) {
|
|
156
|
+
return (options?.client ?? client).get({ url: '/tickets', ...options });
|
|
201
157
|
}
|
|
202
158
|
/**
|
|
203
|
-
* Create a new
|
|
159
|
+
* Create a new support ticket.
|
|
204
160
|
*
|
|
205
|
-
*
|
|
206
|
-
*
|
|
207
|
-
* This endpoint is available to administrators of the organization only.
|
|
161
|
+
* Creates a new support ticket with an initial customer message. The request is `multipart/form-data` with a JSON-encoded `payload` field carrying `category`, `body`, and optional `properties` and `grant_support_access`, plus up to 3 `attachments` files (10 MB max each).
|
|
208
162
|
*
|
|
209
163
|
*/
|
|
210
|
-
static
|
|
164
|
+
static createTicket(options) {
|
|
211
165
|
return (options.client ?? client).post({
|
|
212
|
-
|
|
166
|
+
...formDataBodySerializer,
|
|
167
|
+
url: '/tickets',
|
|
213
168
|
...options,
|
|
214
169
|
headers: {
|
|
215
|
-
'Content-Type':
|
|
170
|
+
'Content-Type': null,
|
|
216
171
|
...options.headers
|
|
217
172
|
}
|
|
218
173
|
});
|
|
219
174
|
}
|
|
220
175
|
/**
|
|
221
|
-
*
|
|
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.
|
|
176
|
+
* Close a ticket (soft close).
|
|
224
177
|
*
|
|
225
|
-
*
|
|
178
|
+
* Marks the ticket as closed. Closed is a terminal state — users cannot reply to a closed ticket; a new ticket must be opened instead.
|
|
226
179
|
*
|
|
227
180
|
*/
|
|
228
|
-
static
|
|
229
|
-
return (options.client ?? client).delete({
|
|
230
|
-
url: '/clusters/{cluster_id}/fleets/{fleet_name}',
|
|
231
|
-
...options
|
|
232
|
-
});
|
|
181
|
+
static closeTicket(options) {
|
|
182
|
+
return (options.client ?? client).delete({ url: '/tickets/{ticket_id}', ...options });
|
|
233
183
|
}
|
|
234
184
|
/**
|
|
235
|
-
* Get
|
|
236
|
-
*
|
|
237
|
-
* Returns fleet details. For more information, see [Fleets](https://cloudfleet.ai/docs/cloud-infrastructure/fleets/) section of documentaiton.
|
|
238
|
-
*
|
|
239
|
-
* This endpoint is available to all users in the organization.
|
|
240
|
-
*
|
|
185
|
+
* Get a ticket and its messages.
|
|
241
186
|
*/
|
|
242
|
-
static
|
|
243
|
-
return (options.client ?? client).get({
|
|
244
|
-
url: '/clusters/{cluster_id}/fleets/{fleet_name}',
|
|
245
|
-
...options
|
|
246
|
-
});
|
|
187
|
+
static getTicket(options) {
|
|
188
|
+
return (options.client ?? client).get({ url: '/tickets/{ticket_id}', ...options });
|
|
247
189
|
}
|
|
248
190
|
/**
|
|
249
|
-
*
|
|
250
|
-
*
|
|
251
|
-
* This endpoint allows you to update fleet details.
|
|
191
|
+
* Grant Cloudfleet support access for a ticket.
|
|
252
192
|
*
|
|
253
|
-
*
|
|
193
|
+
* Grants Cloudfleet support staff access to the organization's resources while the ticket is open. Access cannot be revoked; it ends when the ticket is closed. Idempotent: granting again keeps the original grant. Returns 409 if the ticket is closed.
|
|
254
194
|
*
|
|
255
|
-
|
|
195
|
+
*/
|
|
196
|
+
static grantTicketSupportAccess(options) {
|
|
197
|
+
return (options.client ?? client).put({ url: '/tickets/{ticket_id}/support-access', ...options });
|
|
198
|
+
}
|
|
199
|
+
/**
|
|
200
|
+
* Append a customer reply to a ticket.
|
|
256
201
|
*
|
|
257
|
-
*
|
|
202
|
+
* Multipart form-data with a JSON-encoded `payload` field carrying `body`, plus up to 3 `attachments` files. Returns 409 if the ticket is closed.
|
|
258
203
|
*
|
|
259
204
|
*/
|
|
260
|
-
static
|
|
261
|
-
return (options.client ?? client).
|
|
262
|
-
|
|
205
|
+
static replyTicket(options) {
|
|
206
|
+
return (options.client ?? client).post({
|
|
207
|
+
...formDataBodySerializer,
|
|
208
|
+
url: '/tickets/{ticket_id}/messages',
|
|
263
209
|
...options,
|
|
264
210
|
headers: {
|
|
265
|
-
'Content-Type':
|
|
211
|
+
'Content-Type': null,
|
|
266
212
|
...options.headers
|
|
267
213
|
}
|
|
268
214
|
});
|
|
269
215
|
}
|
|
270
216
|
/**
|
|
271
|
-
*
|
|
272
|
-
*
|
|
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.
|
|
217
|
+
* Download a ticket attachment.
|
|
274
218
|
*/
|
|
275
|
-
static
|
|
276
|
-
return (options.client ?? client).get({
|
|
277
|
-
url: '/clusters/{cluster_id}/query',
|
|
278
|
-
...options
|
|
279
|
-
});
|
|
219
|
+
static getTicketAttachment(options) {
|
|
220
|
+
return (options.client ?? client).get({ url: '/tickets/{ticket_id}/attachments/{attachment_id}', ...options });
|
|
280
221
|
}
|
|
222
|
+
}
|
|
223
|
+
export class RoadmapService {
|
|
281
224
|
/**
|
|
282
|
-
* List
|
|
283
|
-
*
|
|
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.
|
|
225
|
+
* List roadmap items.
|
|
285
226
|
*
|
|
286
|
-
*
|
|
227
|
+
* Returns the published roadmap items, newest first, each with your own vote. Votes of other users are not returned.
|
|
287
228
|
*
|
|
288
229
|
*/
|
|
289
|
-
static
|
|
290
|
-
return (options?.client ?? client).get({
|
|
291
|
-
url: '/clusters',
|
|
292
|
-
...options
|
|
293
|
-
});
|
|
230
|
+
static listRoadmap(options) {
|
|
231
|
+
return (options?.client ?? client).get({ url: '/roadmap', ...options });
|
|
294
232
|
}
|
|
295
233
|
/**
|
|
296
|
-
*
|
|
297
|
-
*
|
|
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.
|
|
234
|
+
* Suggest a new roadmap item.
|
|
299
235
|
*
|
|
300
|
-
*
|
|
236
|
+
* Submits a suggestion in one or two sentences, with your up vote on it. Suggestions are reviewed by the Cloudfleet team before they appear on the roadmap.
|
|
301
237
|
*
|
|
302
238
|
*/
|
|
303
|
-
static
|
|
239
|
+
static suggestRoadmap(options) {
|
|
304
240
|
return (options.client ?? client).post({
|
|
305
|
-
url: '/
|
|
241
|
+
url: '/roadmap',
|
|
306
242
|
...options,
|
|
307
243
|
headers: {
|
|
308
244
|
'Content-Type': 'application/json',
|
|
@@ -311,44 +247,20 @@ export class ClustersService {
|
|
|
311
247
|
});
|
|
312
248
|
}
|
|
313
249
|
/**
|
|
314
|
-
*
|
|
315
|
-
*
|
|
316
|
-
* This endpoint will permanently delete the cluster. This operation cannot be undone.
|
|
317
|
-
*
|
|
318
|
-
* This endpoint is available to administrators of the organization only.
|
|
319
|
-
*
|
|
320
|
-
*/
|
|
321
|
-
static deleteCluster(options) {
|
|
322
|
-
return (options.client ?? client).delete({
|
|
323
|
-
url: '/clusters/{cluster_id}',
|
|
324
|
-
...options
|
|
325
|
-
});
|
|
326
|
-
}
|
|
327
|
-
/**
|
|
328
|
-
* Get cluster information.
|
|
329
|
-
*
|
|
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.
|
|
331
|
-
*
|
|
332
|
-
* This endpoint is available to all users in the organization.
|
|
333
|
-
*
|
|
250
|
+
* Remove your vote from a roadmap item.
|
|
334
251
|
*/
|
|
335
|
-
static
|
|
336
|
-
return (options.client ?? client).
|
|
337
|
-
url: '/clusters/{cluster_id}',
|
|
338
|
-
...options
|
|
339
|
-
});
|
|
252
|
+
static unvoteRoadmap(options) {
|
|
253
|
+
return (options.client ?? client).delete({ url: '/roadmap/{item_id}/vote', ...options });
|
|
340
254
|
}
|
|
341
255
|
/**
|
|
342
|
-
*
|
|
343
|
-
*
|
|
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.
|
|
256
|
+
* Vote on a roadmap item.
|
|
345
257
|
*
|
|
346
|
-
*
|
|
258
|
+
* Sets your vote on a roadmap item: -1 (down), 1 (up), or 2 (double up). Replaces any previous vote you cast on the item.
|
|
347
259
|
*
|
|
348
260
|
*/
|
|
349
|
-
static
|
|
261
|
+
static voteRoadmap(options) {
|
|
350
262
|
return (options.client ?? client).put({
|
|
351
|
-
url: '/
|
|
263
|
+
url: '/roadmap/{item_id}/vote',
|
|
352
264
|
...options,
|
|
353
265
|
headers: {
|
|
354
266
|
'Content-Type': 'application/json',
|
|
@@ -356,70 +268,88 @@ export class ClustersService {
|
|
|
356
268
|
}
|
|
357
269
|
});
|
|
358
270
|
}
|
|
271
|
+
}
|
|
272
|
+
export class RegistryService {
|
|
359
273
|
/**
|
|
360
|
-
*
|
|
274
|
+
* List repositories
|
|
361
275
|
*
|
|
362
|
-
* Returns
|
|
276
|
+
* Returns a list of repositories in the registry across all regions. This endpoint is available to all users in the organization.
|
|
363
277
|
*
|
|
364
278
|
*/
|
|
365
|
-
static
|
|
366
|
-
return (options
|
|
367
|
-
url: '/clusters/{cluster_id}/join_information',
|
|
368
|
-
...options
|
|
369
|
-
});
|
|
279
|
+
static listRepositories(options) {
|
|
280
|
+
return (options?.client ?? client).get({ url: '/registry', ...options });
|
|
370
281
|
}
|
|
371
|
-
}
|
|
372
|
-
export class InvitesService {
|
|
373
282
|
/**
|
|
374
|
-
* List
|
|
283
|
+
* List tags for a repository
|
|
375
284
|
*
|
|
376
|
-
* Returns a list of
|
|
285
|
+
* Returns a list of tags for a specific repository, including size and metadata for each tag. This endpoint is available to all users in the organization.
|
|
377
286
|
*
|
|
378
287
|
*/
|
|
379
|
-
static
|
|
380
|
-
return (options
|
|
381
|
-
url: '/invites',
|
|
382
|
-
...options
|
|
383
|
-
});
|
|
288
|
+
static listTags(options) {
|
|
289
|
+
return (options.client ?? client).get({ url: '/registry/{region}/{repository}', ...options });
|
|
384
290
|
}
|
|
385
291
|
/**
|
|
386
|
-
*
|
|
292
|
+
* Delete tag
|
|
387
293
|
*
|
|
388
|
-
*
|
|
294
|
+
* Permanently deletes a specific tag from a repository. This endpoint is available to administrators of the organization only.
|
|
389
295
|
*
|
|
390
296
|
*/
|
|
391
|
-
static
|
|
392
|
-
return (options.client ?? client).
|
|
393
|
-
url: '/invites',
|
|
394
|
-
...options,
|
|
395
|
-
headers: {
|
|
396
|
-
'Content-Type': 'application/json',
|
|
397
|
-
...options.headers
|
|
398
|
-
}
|
|
399
|
-
});
|
|
297
|
+
static deleteTag(options) {
|
|
298
|
+
return (options.client ?? client).delete({ url: '/registry/{region}/{repository}/{tag}', ...options });
|
|
400
299
|
}
|
|
401
300
|
/**
|
|
402
|
-
* Get
|
|
301
|
+
* Get tag details
|
|
403
302
|
*
|
|
404
|
-
* Returns
|
|
303
|
+
* Returns detailed information for a specific tag in a repository, including manifest details, size, and URI. This endpoint is available to all users in the organization.
|
|
405
304
|
*
|
|
406
305
|
*/
|
|
407
|
-
static
|
|
408
|
-
return (options.client ?? client).get({
|
|
409
|
-
url: '/invites/{code}',
|
|
410
|
-
...options
|
|
411
|
-
});
|
|
306
|
+
static getTag(options) {
|
|
307
|
+
return (options.client ?? client).get({ url: '/registry/{region}/{repository}/{tag}', ...options });
|
|
412
308
|
}
|
|
309
|
+
}
|
|
310
|
+
export class OrganizationService {
|
|
413
311
|
/**
|
|
414
|
-
*
|
|
312
|
+
* Get organization information.
|
|
415
313
|
*
|
|
416
|
-
*
|
|
314
|
+
* Returns organization details including quota. For more information about quotas, see [Quotas and limits](https://cloudfleet.ai/docs/organization/quotas/) section of documentaiton.
|
|
315
|
+
*
|
|
316
|
+
* This endpoint is available to all users in the organization.
|
|
417
317
|
*
|
|
418
318
|
*/
|
|
419
|
-
static
|
|
420
|
-
return (options
|
|
421
|
-
|
|
422
|
-
|
|
319
|
+
static getOrganization(options) {
|
|
320
|
+
return (options?.client ?? client).get({ url: '/organization', ...options });
|
|
321
|
+
}
|
|
322
|
+
/**
|
|
323
|
+
* Create a new organization / Cloudfleet account signup.
|
|
324
|
+
*
|
|
325
|
+
* This endpoint allows you to create a new Cloudfleet organization and an administrator user.
|
|
326
|
+
*
|
|
327
|
+
*/
|
|
328
|
+
static createOrganization(options) {
|
|
329
|
+
return (options.client ?? client).post({
|
|
330
|
+
url: '/organization',
|
|
331
|
+
...options,
|
|
332
|
+
headers: {
|
|
333
|
+
'Content-Type': 'application/json',
|
|
334
|
+
...options.headers
|
|
335
|
+
}
|
|
336
|
+
});
|
|
337
|
+
}
|
|
338
|
+
}
|
|
339
|
+
export class McpService {
|
|
340
|
+
/**
|
|
341
|
+
* MCP endpoint
|
|
342
|
+
*
|
|
343
|
+
* MCP endpoint for handling Model Context Protocol JSON-RPC 2.0 messages.
|
|
344
|
+
*/
|
|
345
|
+
static postMcp(options) {
|
|
346
|
+
return (options.client ?? client).post({
|
|
347
|
+
url: '/mcp',
|
|
348
|
+
...options,
|
|
349
|
+
headers: {
|
|
350
|
+
'Content-Type': 'application/json',
|
|
351
|
+
...options.headers
|
|
352
|
+
}
|
|
423
353
|
});
|
|
424
354
|
}
|
|
425
355
|
}
|
|
@@ -433,35 +363,41 @@ export class ChartsMarketplaceService {
|
|
|
433
363
|
*
|
|
434
364
|
*/
|
|
435
365
|
static listMarketplaceCharts(options) {
|
|
436
|
-
return (options?.client ?? client).get({
|
|
437
|
-
url: '/marketplace',
|
|
438
|
-
...options
|
|
439
|
-
});
|
|
366
|
+
return (options?.client ?? client).get({ url: '/marketplace', ...options });
|
|
440
367
|
}
|
|
441
368
|
/**
|
|
442
|
-
* Get chart
|
|
369
|
+
* Get chart files for a specific version channel.
|
|
443
370
|
*
|
|
444
|
-
* Returns
|
|
371
|
+
* Returns the Chart.yaml, values.yaml, and values.schema.json files for the latest version matching the specified version channel.
|
|
372
|
+
*
|
|
373
|
+
* Version channels use patterns like "1.31.x-cfke.x" to match the latest patch version, or "1.x.x-cfke.x" to match the latest minor version.
|
|
445
374
|
*
|
|
446
375
|
* This endpoint is available to all users in the organization.
|
|
447
376
|
*
|
|
448
377
|
*/
|
|
449
|
-
static
|
|
450
|
-
return (options.client ?? client).get({
|
|
451
|
-
url: '/marketplace/{listing_id}',
|
|
452
|
-
...options
|
|
453
|
-
});
|
|
378
|
+
static getMarketplaceChartFiles(options) {
|
|
379
|
+
return (options.client ?? client).get({ url: '/marketplace/{chart_name}/files/{version_channel}', ...options });
|
|
454
380
|
}
|
|
455
381
|
}
|
|
456
|
-
export class
|
|
382
|
+
export class InvitesService {
|
|
457
383
|
/**
|
|
458
|
-
*
|
|
384
|
+
* List invites.
|
|
385
|
+
*
|
|
386
|
+
* Returns a list of pending (non-expired) invites under the current organization. This endpoint is available to administrators of the organization only.
|
|
459
387
|
*
|
|
460
|
-
* MCP endpoint for handling Model Context Protocol JSON-RPC 2.0 messages.
|
|
461
388
|
*/
|
|
462
|
-
static
|
|
389
|
+
static listInvites(options) {
|
|
390
|
+
return (options?.client ?? client).get({ url: '/invites', ...options });
|
|
391
|
+
}
|
|
392
|
+
/**
|
|
393
|
+
* Create a new invite.
|
|
394
|
+
*
|
|
395
|
+
* 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.
|
|
396
|
+
*
|
|
397
|
+
*/
|
|
398
|
+
static createInvite(options) {
|
|
463
399
|
return (options.client ?? client).post({
|
|
464
|
-
url: '/
|
|
400
|
+
url: '/invites',
|
|
465
401
|
...options,
|
|
466
402
|
headers: {
|
|
467
403
|
'Content-Type': 'application/json',
|
|
@@ -469,31 +405,35 @@ export class McpService {
|
|
|
469
405
|
}
|
|
470
406
|
});
|
|
471
407
|
}
|
|
472
|
-
}
|
|
473
|
-
export class OrganizationService {
|
|
474
408
|
/**
|
|
475
|
-
* Get
|
|
409
|
+
* Get invite information.
|
|
476
410
|
*
|
|
477
|
-
*
|
|
411
|
+
* Validates an invitation code and returns the email address it was issued to (to pre-fill the signup form) and the organization it grants access to. This endpoint is unauthenticated, so no other invite details (such as the invited role) are disclosed.
|
|
478
412
|
*
|
|
479
|
-
|
|
413
|
+
*/
|
|
414
|
+
static getInvite(options) {
|
|
415
|
+
return (options.client ?? client).get({ url: '/invites/{code}', ...options });
|
|
416
|
+
}
|
|
417
|
+
/**
|
|
418
|
+
* Permanently delete invite.
|
|
419
|
+
*
|
|
420
|
+
* Permanently deletes invite from the organization. This endpoint is available to administrators of the organization only.
|
|
480
421
|
*
|
|
481
422
|
*/
|
|
482
|
-
static
|
|
483
|
-
return (options
|
|
484
|
-
url: '/organization',
|
|
485
|
-
...options
|
|
486
|
-
});
|
|
423
|
+
static deleteInvite(options) {
|
|
424
|
+
return (options.client ?? client).delete({ url: '/invites/{email}', ...options });
|
|
487
425
|
}
|
|
426
|
+
}
|
|
427
|
+
export class FeedbackService {
|
|
488
428
|
/**
|
|
489
|
-
*
|
|
429
|
+
* Send feedback to the Cloudfleet team
|
|
490
430
|
*
|
|
491
|
-
*
|
|
431
|
+
* Sends feedback about Cloudfleet: what was useful, confusing, wrong or missing. Feedback is read by the Cloudfleet team but gets no reply and has no status. This is not a support channel: for anything that needs an answer, open a support ticket with `POST /tickets` instead.
|
|
492
432
|
*
|
|
493
433
|
*/
|
|
494
|
-
static
|
|
434
|
+
static sendFeedback(options) {
|
|
495
435
|
return (options.client ?? client).post({
|
|
496
|
-
url: '/
|
|
436
|
+
url: '/feedback',
|
|
497
437
|
...options,
|
|
498
438
|
headers: {
|
|
499
439
|
'Content-Type': 'application/json',
|
|
@@ -502,80 +442,114 @@ export class OrganizationService {
|
|
|
502
442
|
});
|
|
503
443
|
}
|
|
504
444
|
}
|
|
505
|
-
export class
|
|
445
|
+
export class ClustersService {
|
|
506
446
|
/**
|
|
507
|
-
*
|
|
447
|
+
* Query Kubernetes cluster API
|
|
508
448
|
*
|
|
509
|
-
*
|
|
449
|
+
* 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.
|
|
450
|
+
*/
|
|
451
|
+
static queryCluster(options) {
|
|
452
|
+
return (options.client ?? client).get({ url: '/clusters/{cluster_id}/query', ...options });
|
|
453
|
+
}
|
|
454
|
+
/**
|
|
455
|
+
* List fleets.
|
|
456
|
+
*
|
|
457
|
+
* Returns a list of fleets belonging to the cluster. For more information, see [Fleets](https://cloudfleet.ai/docs/cloud-infrastructure/fleets/) section of documentaiton.
|
|
458
|
+
*
|
|
459
|
+
* This endpoint is available to all users in the organization.
|
|
510
460
|
*
|
|
511
461
|
*/
|
|
512
|
-
static
|
|
513
|
-
return (options
|
|
514
|
-
url: '/registry',
|
|
515
|
-
...options
|
|
516
|
-
});
|
|
462
|
+
static listFleets(options) {
|
|
463
|
+
return (options.client ?? client).get({ url: '/clusters/{cluster_id}/fleets', ...options });
|
|
517
464
|
}
|
|
518
465
|
/**
|
|
519
|
-
*
|
|
466
|
+
* Create a new fleet.
|
|
520
467
|
*
|
|
521
|
-
*
|
|
468
|
+
* 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.
|
|
469
|
+
*
|
|
470
|
+
* The cluster must be ready (status `deployed`) before a fleet can be added. Adding a fleet while the cluster is still provisioning returns `409`.
|
|
471
|
+
*
|
|
472
|
+
* This endpoint is available to administrators of the organization only.
|
|
522
473
|
*
|
|
523
474
|
*/
|
|
524
|
-
static
|
|
525
|
-
return (options.client ?? client).
|
|
526
|
-
url: '/
|
|
527
|
-
...options
|
|
475
|
+
static createFleet(options) {
|
|
476
|
+
return (options.client ?? client).post({
|
|
477
|
+
url: '/clusters/{cluster_id}/fleets',
|
|
478
|
+
...options,
|
|
479
|
+
headers: {
|
|
480
|
+
'Content-Type': 'application/json',
|
|
481
|
+
...options.headers
|
|
482
|
+
}
|
|
528
483
|
});
|
|
529
484
|
}
|
|
530
485
|
/**
|
|
531
|
-
*
|
|
486
|
+
* Permanently delete fleet.
|
|
532
487
|
*
|
|
533
|
-
*
|
|
488
|
+
* 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. For more information, see [Fleets](https://cloudfleet.ai/docs/cloud-infrastructure/fleets/) section of documentaiton.
|
|
489
|
+
*
|
|
490
|
+
* Deleting a fleet does not deprovision the cloud infrastructure it provisioned: nodes and other resources keep running. Scale the cluster down first, or remove the infrastructure manually, to avoid orphaned resources.
|
|
491
|
+
*
|
|
492
|
+
* This endpoint is available to administrators of the organization only.
|
|
534
493
|
*
|
|
535
494
|
*/
|
|
536
|
-
static
|
|
537
|
-
return (options.client ?? client).delete({
|
|
538
|
-
url: '/registry/{region}/{repository}/{tag}',
|
|
539
|
-
...options
|
|
540
|
-
});
|
|
495
|
+
static deleteFleet(options) {
|
|
496
|
+
return (options.client ?? client).delete({ url: '/clusters/{cluster_id}/fleets/{fleet_name}', ...options });
|
|
541
497
|
}
|
|
542
498
|
/**
|
|
543
|
-
* Get
|
|
499
|
+
* Get fleet information.
|
|
544
500
|
*
|
|
545
|
-
* Returns
|
|
501
|
+
* Returns fleet details. For more information, see [Fleets](https://cloudfleet.ai/docs/cloud-infrastructure/fleets/) section of documentaiton.
|
|
502
|
+
*
|
|
503
|
+
* This endpoint is available to all users in the organization.
|
|
546
504
|
*
|
|
547
505
|
*/
|
|
548
|
-
static
|
|
549
|
-
return (options.client ?? client).get({
|
|
550
|
-
url: '/registry/{region}/{repository}/{tag}',
|
|
551
|
-
...options
|
|
552
|
-
});
|
|
506
|
+
static getFleet(options) {
|
|
507
|
+
return (options.client ?? client).get({ url: '/clusters/{cluster_id}/fleets/{fleet_name}', ...options });
|
|
553
508
|
}
|
|
554
|
-
}
|
|
555
|
-
export class TokensService {
|
|
556
509
|
/**
|
|
557
|
-
*
|
|
510
|
+
* Update fleet information.
|
|
558
511
|
*
|
|
559
|
-
* This endpoint allows you to
|
|
512
|
+
* This endpoint allows you to update fleet details.
|
|
513
|
+
*
|
|
514
|
+
* For more information, see [Fleets](https://cloudfleet.ai/docs/cloud-infrastructure/fleets/) section of documentaiton.
|
|
515
|
+
*
|
|
516
|
+
* This is a full overwrite: any field omitted from the request is reset to its default rather than left unchanged. The Hetzner API key is the exception: it is kept when omitted (send a new value to rotate it).
|
|
517
|
+
*
|
|
518
|
+
* This endpoint is available to administrators of the organization only.
|
|
560
519
|
*
|
|
561
520
|
*/
|
|
562
|
-
static
|
|
563
|
-
return (options
|
|
564
|
-
url: '/
|
|
565
|
-
...options
|
|
521
|
+
static updateFleet(options) {
|
|
522
|
+
return (options.client ?? client).put({
|
|
523
|
+
url: '/clusters/{cluster_id}/fleets/{fleet_name}',
|
|
524
|
+
...options,
|
|
525
|
+
headers: {
|
|
526
|
+
'Content-Type': 'application/json',
|
|
527
|
+
...options.headers
|
|
528
|
+
}
|
|
566
529
|
});
|
|
567
530
|
}
|
|
568
531
|
/**
|
|
569
|
-
*
|
|
532
|
+
* List charts.
|
|
570
533
|
*
|
|
571
|
-
*
|
|
534
|
+
* Returns a list of charts in the cluster.
|
|
535
|
+
*
|
|
536
|
+
* This endpoint is available to all users in the organization.
|
|
537
|
+
*
|
|
538
|
+
*/
|
|
539
|
+
static listCharts(options) {
|
|
540
|
+
return (options.client ?? client).get({ url: '/clusters/{cluster_id}/charts', ...options });
|
|
541
|
+
}
|
|
542
|
+
/**
|
|
543
|
+
* Create a new chart.
|
|
544
|
+
*
|
|
545
|
+
* Create a new chart deployment.
|
|
572
546
|
*
|
|
573
547
|
* This endpoint is available to administrators of the organization only.
|
|
574
548
|
*
|
|
575
549
|
*/
|
|
576
|
-
static
|
|
550
|
+
static createChart(options) {
|
|
577
551
|
return (options.client ?? client).post({
|
|
578
|
-
url: '/
|
|
552
|
+
url: '/clusters/{cluster_id}/charts',
|
|
579
553
|
...options,
|
|
580
554
|
headers: {
|
|
581
555
|
'Content-Type': 'application/json',
|
|
@@ -584,40 +558,38 @@ export class TokensService {
|
|
|
584
558
|
});
|
|
585
559
|
}
|
|
586
560
|
/**
|
|
587
|
-
* Permanently delete
|
|
561
|
+
* Permanently delete the chart deployment from the cluster.
|
|
588
562
|
*
|
|
589
|
-
* This endpoint
|
|
563
|
+
* This endpoint will permanently delete chart. This operation cannot be undone.
|
|
564
|
+
*
|
|
565
|
+
* This endpoint is available to administrators of the organization only.
|
|
590
566
|
*
|
|
591
567
|
*/
|
|
592
|
-
static
|
|
593
|
-
return (options.client ?? client).delete({
|
|
594
|
-
url: '/tokens/{token_id}',
|
|
595
|
-
...options
|
|
596
|
-
});
|
|
568
|
+
static deleteChart(options) {
|
|
569
|
+
return (options.client ?? client).delete({ url: '/clusters/{cluster_id}/charts/{chart_name}', ...options });
|
|
597
570
|
}
|
|
598
571
|
/**
|
|
599
|
-
* Get
|
|
572
|
+
* Get chart information.
|
|
600
573
|
*
|
|
601
|
-
*
|
|
574
|
+
* Returns the details of the chart deployment.
|
|
575
|
+
*
|
|
576
|
+
* This endpoint is available to all users in the organization.
|
|
602
577
|
*
|
|
603
578
|
*/
|
|
604
|
-
static
|
|
605
|
-
return (options.client ?? client).get({
|
|
606
|
-
url: '/tokens/{token_id}',
|
|
607
|
-
...options
|
|
608
|
-
});
|
|
579
|
+
static getChart(options) {
|
|
580
|
+
return (options.client ?? client).get({ url: '/clusters/{cluster_id}/charts/{chart_name}', ...options });
|
|
609
581
|
}
|
|
610
582
|
/**
|
|
611
|
-
* Update
|
|
583
|
+
* Update chart information.
|
|
612
584
|
*
|
|
613
|
-
* This endpoint allows you to update
|
|
585
|
+
* This endpoint allows you to update the values of a chart deployment.
|
|
614
586
|
*
|
|
615
587
|
* This endpoint is available to administrators of the organization only.
|
|
616
588
|
*
|
|
617
589
|
*/
|
|
618
|
-
static
|
|
590
|
+
static updateChart(options) {
|
|
619
591
|
return (options.client ?? client).put({
|
|
620
|
-
url: '/
|
|
592
|
+
url: '/clusters/{cluster_id}/charts/{chart_name}',
|
|
621
593
|
...options,
|
|
622
594
|
headers: {
|
|
623
595
|
'Content-Type': 'application/json',
|
|
@@ -626,50 +598,71 @@ export class TokensService {
|
|
|
626
598
|
});
|
|
627
599
|
}
|
|
628
600
|
/**
|
|
629
|
-
*
|
|
601
|
+
* List clusters.
|
|
602
|
+
*
|
|
603
|
+
* Returns a list of clusters under the current organization.
|
|
604
|
+
*
|
|
605
|
+
* This endpoint is available to all users in the organization.
|
|
630
606
|
*
|
|
631
|
-
* Generates a new access token secret. Old secret will not be valid anymore.
|
|
632
607
|
*/
|
|
633
|
-
static
|
|
634
|
-
return (options
|
|
635
|
-
url: '/tokens/{token_id}/secret',
|
|
636
|
-
...options
|
|
637
|
-
});
|
|
608
|
+
static listClusters(options) {
|
|
609
|
+
return (options?.client ?? client).get({ url: '/clusters', ...options });
|
|
638
610
|
}
|
|
639
|
-
}
|
|
640
|
-
export class UsersService {
|
|
641
611
|
/**
|
|
642
|
-
*
|
|
612
|
+
* Create a new cluster.
|
|
613
|
+
*
|
|
614
|
+
* 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.
|
|
615
|
+
*
|
|
616
|
+
* This endpoint is available to administrators of the organization only.
|
|
617
|
+
*
|
|
643
618
|
*/
|
|
644
|
-
static
|
|
645
|
-
return (options.client ?? client).
|
|
646
|
-
url: '/
|
|
647
|
-
...options
|
|
619
|
+
static createCluster(options) {
|
|
620
|
+
return (options.client ?? client).post({
|
|
621
|
+
url: '/clusters',
|
|
622
|
+
...options,
|
|
623
|
+
headers: {
|
|
624
|
+
'Content-Type': 'application/json',
|
|
625
|
+
...options.headers
|
|
626
|
+
}
|
|
648
627
|
});
|
|
649
628
|
}
|
|
650
629
|
/**
|
|
651
|
-
*
|
|
630
|
+
* Permanently delete cluster.
|
|
652
631
|
*
|
|
653
|
-
*
|
|
632
|
+
* This endpoint will permanently delete the cluster. This operation cannot be undone.
|
|
633
|
+
*
|
|
634
|
+
* Deleting a cluster also deletes its fleets. This does not deprovision the cloud infrastructure those fleets provisioned: nodes and other resources keep running. Scale the cluster down first, or remove the infrastructure manually, to avoid orphaned resources.
|
|
635
|
+
*
|
|
636
|
+
* This endpoint is available to administrators of the organization only.
|
|
637
|
+
*
|
|
638
|
+
*/
|
|
639
|
+
static deleteCluster(options) {
|
|
640
|
+
return (options.client ?? client).delete({ url: '/clusters/{cluster_id}', ...options });
|
|
641
|
+
}
|
|
642
|
+
/**
|
|
643
|
+
* Get cluster information.
|
|
644
|
+
*
|
|
645
|
+
* Returns cluster details.
|
|
654
646
|
*
|
|
655
647
|
* This endpoint is available to all users in the organization.
|
|
656
648
|
*
|
|
657
649
|
*/
|
|
658
|
-
static
|
|
659
|
-
return (options
|
|
660
|
-
url: '/users',
|
|
661
|
-
...options
|
|
662
|
-
});
|
|
650
|
+
static getCluster(options) {
|
|
651
|
+
return (options.client ?? client).get({ url: '/clusters/{cluster_id}', ...options });
|
|
663
652
|
}
|
|
664
653
|
/**
|
|
665
|
-
*
|
|
654
|
+
* Update cluster information.
|
|
666
655
|
*
|
|
667
|
-
*
|
|
656
|
+
* This endpoint allows you to update cluster details. For more information about clusters, see [Clusters](https://cloudfleet.ai/docs/cluster-management/cluster-types/) section of documentation.
|
|
657
|
+
*
|
|
658
|
+
* This is a full overwrite: any field omitted from the request is reset to its default rather than left unchanged.
|
|
659
|
+
*
|
|
660
|
+
* This endpoint is available to administrators of the organization only.
|
|
668
661
|
*
|
|
669
662
|
*/
|
|
670
|
-
static
|
|
671
|
-
return (options.client ?? client).
|
|
672
|
-
url: '/
|
|
663
|
+
static updateCluster(options) {
|
|
664
|
+
return (options.client ?? client).put({
|
|
665
|
+
url: '/clusters/{cluster_id}',
|
|
673
666
|
...options,
|
|
674
667
|
headers: {
|
|
675
668
|
'Content-Type': 'application/json',
|
|
@@ -678,40 +671,122 @@ export class UsersService {
|
|
|
678
671
|
});
|
|
679
672
|
}
|
|
680
673
|
/**
|
|
681
|
-
*
|
|
674
|
+
* Node join information for the cluster
|
|
682
675
|
*
|
|
683
|
-
*
|
|
676
|
+
* 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.
|
|
684
677
|
*
|
|
685
678
|
*/
|
|
686
|
-
static
|
|
687
|
-
return (options.client ?? client).
|
|
688
|
-
url: '/users/{user_id}',
|
|
689
|
-
...options
|
|
690
|
-
});
|
|
679
|
+
static getJoinInformation(options) {
|
|
680
|
+
return (options.client ?? client).post({ url: '/clusters/{cluster_id}/join_information', ...options });
|
|
691
681
|
}
|
|
682
|
+
}
|
|
683
|
+
export class BillingService {
|
|
692
684
|
/**
|
|
693
|
-
* Get
|
|
685
|
+
* Get billing usage information.
|
|
694
686
|
*
|
|
695
|
-
* Returns
|
|
687
|
+
* Returns aggregated usage information for the organization with facets for filtering. 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.
|
|
696
688
|
*
|
|
697
|
-
|
|
689
|
+
*/
|
|
690
|
+
static getUsage(options) {
|
|
691
|
+
return (options?.client ?? client).get({ url: '/billing/usage', ...options });
|
|
692
|
+
}
|
|
693
|
+
/**
|
|
694
|
+
* Get Stripe client secret.
|
|
695
|
+
*
|
|
696
|
+
* 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.
|
|
698
697
|
*
|
|
699
698
|
*/
|
|
700
|
-
static
|
|
701
|
-
return (options
|
|
702
|
-
url: '/users/{user_id}',
|
|
703
|
-
...options
|
|
704
|
-
});
|
|
699
|
+
static getPaymentMethodSecret(options) {
|
|
700
|
+
return (options?.client ?? client).put({ url: '/billing/payment-method', ...options });
|
|
705
701
|
}
|
|
706
702
|
/**
|
|
707
|
-
*
|
|
703
|
+
* List organization payment methods.
|
|
708
704
|
*
|
|
709
|
-
*
|
|
705
|
+
* Returns all payment methods (cards and SEPA Direct Debit) attached to the organization, most recently added first, with the default flagged. This endpoint is available to all users in the organization.
|
|
710
706
|
*
|
|
711
707
|
*/
|
|
712
|
-
static
|
|
708
|
+
static listPaymentMethods(options) {
|
|
709
|
+
return (options?.client ?? client).get({ url: '/billing/payment-methods', ...options });
|
|
710
|
+
}
|
|
711
|
+
/**
|
|
712
|
+
* Set the default payment method.
|
|
713
|
+
*
|
|
714
|
+
* Sets the given payment method as the default used for invoices and active subscriptions. Requires the Administrator role.
|
|
715
|
+
*
|
|
716
|
+
*/
|
|
717
|
+
static setDefaultPaymentMethod(options) {
|
|
718
|
+
return (options.client ?? client).put({ url: '/billing/payment-methods/{paymentMethodId}/default', ...options });
|
|
719
|
+
}
|
|
720
|
+
/**
|
|
721
|
+
* Delete a payment method.
|
|
722
|
+
*
|
|
723
|
+
* Detaches the given payment method from the organization. Requires the Administrator role. An organization must keep at least one payment method, so deleting the only remaining method is rejected.
|
|
724
|
+
*
|
|
725
|
+
*/
|
|
726
|
+
static deletePaymentMethod(options) {
|
|
727
|
+
return (options.client ?? client).delete({ url: '/billing/payment-methods/{paymentMethodId}', ...options });
|
|
728
|
+
}
|
|
729
|
+
/**
|
|
730
|
+
* List issued invoices.
|
|
731
|
+
*
|
|
732
|
+
* 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.
|
|
733
|
+
*
|
|
734
|
+
*/
|
|
735
|
+
static listInvoices(options) {
|
|
736
|
+
return (options?.client ?? client).get({ url: '/billing/invoices', ...options });
|
|
737
|
+
}
|
|
738
|
+
/**
|
|
739
|
+
* Pay the organization's open invoices.
|
|
740
|
+
*
|
|
741
|
+
* Charges all open invoices of the organization against its default payment method. This endpoint is available to administrators of the organization only.
|
|
742
|
+
*
|
|
743
|
+
*/
|
|
744
|
+
static payOpenInvoices(options) {
|
|
745
|
+
return (options?.client ?? client).post({ url: '/billing/invoices/pay', ...options });
|
|
746
|
+
}
|
|
747
|
+
/**
|
|
748
|
+
* Get organization contact and billing address information.
|
|
749
|
+
*
|
|
750
|
+
* Returns the organization contact and billing address information. This endpoint is available to all users in the organization.
|
|
751
|
+
*
|
|
752
|
+
*/
|
|
753
|
+
static getContact(options) {
|
|
754
|
+
return (options?.client ?? client).get({ url: '/billing/contact', ...options });
|
|
755
|
+
}
|
|
756
|
+
/**
|
|
757
|
+
* Update organization contact information and billing address.
|
|
758
|
+
*
|
|
759
|
+
* This endpoint allows you to update organization details with its contact information. This endpoint is available to administrators of the organization only.
|
|
760
|
+
*
|
|
761
|
+
*/
|
|
762
|
+
static updateContact(options) {
|
|
713
763
|
return (options.client ?? client).put({
|
|
714
|
-
url: '/
|
|
764
|
+
url: '/billing/contact',
|
|
765
|
+
...options,
|
|
766
|
+
headers: {
|
|
767
|
+
'Content-Type': 'application/json',
|
|
768
|
+
...options.headers
|
|
769
|
+
}
|
|
770
|
+
});
|
|
771
|
+
}
|
|
772
|
+
/**
|
|
773
|
+
* Get applied promotional credits
|
|
774
|
+
*
|
|
775
|
+
* 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.
|
|
776
|
+
*
|
|
777
|
+
*/
|
|
778
|
+
static getCredits(options) {
|
|
779
|
+
return (options?.client ?? client).get({ url: '/billing/credits', ...options });
|
|
780
|
+
}
|
|
781
|
+
/**
|
|
782
|
+
* Redeem promotional credits code.
|
|
783
|
+
*
|
|
784
|
+
* 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.
|
|
785
|
+
*
|
|
786
|
+
*/
|
|
787
|
+
static redeemCredits(options) {
|
|
788
|
+
return (options.client ?? client).post({
|
|
789
|
+
url: '/billing/credits',
|
|
715
790
|
...options,
|
|
716
791
|
headers: {
|
|
717
792
|
'Content-Type': 'application/json',
|