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