@cloudfleet/sdk 0.0.1-76e2a56 → 0.0.1-79703f6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/@tanstack/react-query.gen.d.ts +1125 -0
- package/dist/@tanstack/react-query.gen.d.ts.map +1 -0
- package/dist/@tanstack/react-query.gen.js +1129 -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 +220 -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/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -0
- package/dist/index.js.map +1 -1
- package/dist/schemas.gen.d.ts +1505 -866
- package/dist/schemas.gen.d.ts.map +1 -1
- package/dist/schemas.gen.js +2809 -953
- package/dist/schemas.gen.js.map +1 -1
- package/dist/sdk.gen.d.ts +242 -142
- package/dist/sdk.gen.d.ts.map +1 -1
- package/dist/sdk.gen.js +336 -225
- package/dist/sdk.gen.js.map +1 -1
- package/dist/services/kubernetes/api.d.ts +196 -0
- package/dist/services/kubernetes/api.d.ts.map +1 -0
- package/dist/services/kubernetes/api.js +140 -0
- package/dist/services/kubernetes/api.js.map +1 -0
- package/dist/services/kubernetes/index.d.ts +44 -0
- package/dist/services/kubernetes/index.d.ts.map +1 -0
- package/dist/services/kubernetes/index.js +68 -0
- package/dist/services/kubernetes/index.js.map +1 -0
- package/dist/services/kubernetes/types.d.ts +1335 -0
- package/dist/services/kubernetes/types.d.ts.map +1 -0
- package/dist/services/kubernetes/types.js +2 -0
- package/dist/services/kubernetes/types.js.map +1 -0
- package/dist/types.gen.d.ts +1373 -830
- package/dist/types.gen.d.ts.map +1 -1
- package/dist/zod.gen.d.ts +3687 -2423
- package/dist/zod.gen.d.ts.map +1 -1
- package/dist/zod.gen.js +1523 -857
- package/dist/zod.gen.js.map +1 -1
- package/package.json +31 -5
package/dist/sdk.gen.js
CHANGED
|
@@ -1,472 +1,616 @@
|
|
|
1
1
|
// This file is auto-generated by @hey-api/openapi-ts
|
|
2
|
-
import {
|
|
2
|
+
import { formDataBodySerializer } from './client';
|
|
3
|
+
import { client } from './client.gen';
|
|
3
4
|
export class BillingService {
|
|
4
5
|
/**
|
|
5
6
|
* Get billing usage information.
|
|
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
7
|
*
|
|
8
|
-
|
|
9
|
-
static getUsage(options) {
|
|
10
|
-
return (options?.client ?? _heyApiClient).get({
|
|
11
|
-
url: '/billing/usage',
|
|
12
|
-
...options
|
|
13
|
-
});
|
|
14
|
-
}
|
|
15
|
-
/**
|
|
16
|
-
* Get billing balance information.
|
|
17
|
-
* Returns the current balance of the organization in USD as a floating-point number. For more information on billing and payments, see [Billing and pricing](https://cloudfleet.ai/docs/organization/billing/) section of documentaiton. This endpoint is available to all users in the organization.
|
|
8
|
+
* 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.
|
|
18
9
|
*
|
|
19
10
|
*/
|
|
20
|
-
static
|
|
21
|
-
return (options?.client ??
|
|
22
|
-
url: '/billing/balance',
|
|
23
|
-
...options
|
|
24
|
-
});
|
|
11
|
+
static getUsage(options) {
|
|
12
|
+
return (options?.client ?? client).get({ url: '/billing/usage', ...options });
|
|
25
13
|
}
|
|
26
14
|
/**
|
|
27
15
|
* Get organization payment method information.
|
|
16
|
+
*
|
|
28
17
|
* Returns the information about the payment card associated with the organization with sensitive information redacted. Payment details can be updated in the Cloudfleet console only, please visit https://console.cloudfleet.ai. This endpoint is available to all users in the organization.
|
|
29
18
|
*
|
|
30
19
|
*/
|
|
31
20
|
static getPaymentMethod(options) {
|
|
32
|
-
return (options?.client ??
|
|
33
|
-
url: '/billing/payment-method',
|
|
34
|
-
...options
|
|
35
|
-
});
|
|
21
|
+
return (options?.client ?? client).get({ url: '/billing/payment-method', ...options });
|
|
36
22
|
}
|
|
37
23
|
/**
|
|
38
24
|
* Get Stripe client secret.
|
|
25
|
+
*
|
|
39
26
|
* Endpoint returns the Stripe secret key for the organization. This key is used to securely update the payment method in the Cloudfleet console only, please visit https://console.cloudfleet.ai. This endpoint is available to administrators of the organization only.
|
|
40
27
|
*
|
|
41
28
|
*/
|
|
42
29
|
static getPaymentMethodSecret(options) {
|
|
43
|
-
return (options?.client ??
|
|
44
|
-
url: '/billing/payment-method',
|
|
45
|
-
...options
|
|
46
|
-
});
|
|
30
|
+
return (options?.client ?? client).put({ url: '/billing/payment-method', ...options });
|
|
47
31
|
}
|
|
48
32
|
/**
|
|
49
33
|
* List issued invoices.
|
|
34
|
+
*
|
|
50
35
|
* Returns a list of invoices for the organization. For more information on billing and payments, see [Billing and pricing](https://cloudfleet.ai/docs/organization/billing/) section of documentaiton. This endpoint is available to all users in the organization.
|
|
51
36
|
*
|
|
52
37
|
*/
|
|
53
38
|
static listInvoices(options) {
|
|
54
|
-
return (options
|
|
55
|
-
url: '/billing/invoices',
|
|
56
|
-
...options
|
|
57
|
-
});
|
|
58
|
-
}
|
|
59
|
-
/**
|
|
60
|
-
* Get invoice information.
|
|
61
|
-
* Returns a single Invoice as HTML referenced by id. This endpoint is available to all users in the organization.
|
|
62
|
-
*
|
|
63
|
-
*/
|
|
64
|
-
static getInvoice(options) {
|
|
65
|
-
return (options.client ?? _heyApiClient).get({
|
|
66
|
-
url: '/billing/invoices/{id}',
|
|
67
|
-
...options
|
|
68
|
-
});
|
|
39
|
+
return (options?.client ?? client).get({ url: '/billing/invoices', ...options });
|
|
69
40
|
}
|
|
70
41
|
/**
|
|
71
42
|
* Get organization contact and billing address information.
|
|
43
|
+
*
|
|
72
44
|
* Returns the organization contact and billing address information. This endpoint is available to all users in the organization.
|
|
73
45
|
*
|
|
74
46
|
*/
|
|
75
47
|
static getContact(options) {
|
|
76
|
-
return (options?.client ??
|
|
77
|
-
url: '/billing/contact',
|
|
78
|
-
...options
|
|
79
|
-
});
|
|
48
|
+
return (options?.client ?? client).get({ url: '/billing/contact', ...options });
|
|
80
49
|
}
|
|
81
50
|
/**
|
|
82
51
|
* Update organization contact information and billing address.
|
|
52
|
+
*
|
|
83
53
|
* This endpoint allows you to update organization details with its contact information. This endpoint is available to administrators of the organization only.
|
|
84
54
|
*
|
|
85
55
|
*/
|
|
86
56
|
static updateContact(options) {
|
|
87
|
-
return (options.client ??
|
|
57
|
+
return (options.client ?? client).put({
|
|
88
58
|
url: '/billing/contact',
|
|
89
59
|
...options,
|
|
90
60
|
headers: {
|
|
91
61
|
'Content-Type': 'application/json',
|
|
92
|
-
...options
|
|
62
|
+
...options.headers
|
|
63
|
+
}
|
|
64
|
+
});
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* Get applied promotional credits
|
|
68
|
+
*
|
|
69
|
+
* 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.
|
|
70
|
+
*
|
|
71
|
+
*/
|
|
72
|
+
static getCredits(options) {
|
|
73
|
+
return (options?.client ?? client).get({ url: '/billing/credits', ...options });
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* Redeem promotional credits code.
|
|
77
|
+
*
|
|
78
|
+
* 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.
|
|
79
|
+
*
|
|
80
|
+
*/
|
|
81
|
+
static redeemCredits(options) {
|
|
82
|
+
return (options.client ?? client).post({
|
|
83
|
+
url: '/billing/credits',
|
|
84
|
+
...options,
|
|
85
|
+
headers: {
|
|
86
|
+
'Content-Type': 'application/json',
|
|
87
|
+
...options.headers
|
|
93
88
|
}
|
|
94
89
|
});
|
|
95
90
|
}
|
|
96
91
|
}
|
|
97
92
|
export class ClustersService {
|
|
93
|
+
/**
|
|
94
|
+
* List charts.
|
|
95
|
+
*
|
|
96
|
+
* Returns a list of charts in the cluster.
|
|
97
|
+
*
|
|
98
|
+
* This endpoint is available to all users in the organization.
|
|
99
|
+
*
|
|
100
|
+
*/
|
|
101
|
+
static listCharts(options) {
|
|
102
|
+
return (options.client ?? client).get({ url: '/clusters/{cluster_id}/charts', ...options });
|
|
103
|
+
}
|
|
104
|
+
/**
|
|
105
|
+
* Create a new chart.
|
|
106
|
+
*
|
|
107
|
+
* Create a new chart deployment.
|
|
108
|
+
*
|
|
109
|
+
* This endpoint is available to administrators of the organization only.
|
|
110
|
+
*
|
|
111
|
+
*/
|
|
112
|
+
static createChart(options) {
|
|
113
|
+
return (options.client ?? client).post({
|
|
114
|
+
url: '/clusters/{cluster_id}/charts',
|
|
115
|
+
...options,
|
|
116
|
+
headers: {
|
|
117
|
+
'Content-Type': 'application/json',
|
|
118
|
+
...options.headers
|
|
119
|
+
}
|
|
120
|
+
});
|
|
121
|
+
}
|
|
122
|
+
/**
|
|
123
|
+
* Permanently delete the chart deployment from the cluster.
|
|
124
|
+
*
|
|
125
|
+
* This endpoint will permanently delete chart. This operation cannot be undone.
|
|
126
|
+
*
|
|
127
|
+
* This endpoint is available to administrators of the organization only.
|
|
128
|
+
*
|
|
129
|
+
*/
|
|
130
|
+
static deleteChart(options) {
|
|
131
|
+
return (options.client ?? client).delete({ url: '/clusters/{cluster_id}/charts/{chart_name}', ...options });
|
|
132
|
+
}
|
|
133
|
+
/**
|
|
134
|
+
* Get chart information.
|
|
135
|
+
*
|
|
136
|
+
* Returns the details of the chart deployment.
|
|
137
|
+
*
|
|
138
|
+
* This endpoint is available to all users in the organization.
|
|
139
|
+
*
|
|
140
|
+
*/
|
|
141
|
+
static getChart(options) {
|
|
142
|
+
return (options.client ?? client).get({ url: '/clusters/{cluster_id}/charts/{chart_name}', ...options });
|
|
143
|
+
}
|
|
144
|
+
/**
|
|
145
|
+
* Update chart information.
|
|
146
|
+
*
|
|
147
|
+
* This endpoint allows you to update the values of a chart deployment.
|
|
148
|
+
*
|
|
149
|
+
* This endpoint is available to administrators of the organization only.
|
|
150
|
+
*
|
|
151
|
+
*/
|
|
152
|
+
static updateChart(options) {
|
|
153
|
+
return (options.client ?? client).put({
|
|
154
|
+
url: '/clusters/{cluster_id}/charts/{chart_name}',
|
|
155
|
+
...options,
|
|
156
|
+
headers: {
|
|
157
|
+
'Content-Type': 'application/json',
|
|
158
|
+
...options.headers
|
|
159
|
+
}
|
|
160
|
+
});
|
|
161
|
+
}
|
|
98
162
|
/**
|
|
99
163
|
* List fleets.
|
|
100
|
-
*
|
|
164
|
+
*
|
|
165
|
+
* Returns a list of fleets belonging to the cluster. For more information, see [Fleets](https://cloudfleet.ai/docs/cloud-infrastructure/fleets/) section of documentaiton.
|
|
101
166
|
*
|
|
102
167
|
* This endpoint is available to all users in the organization.
|
|
103
168
|
*
|
|
104
169
|
*/
|
|
105
170
|
static listFleets(options) {
|
|
106
|
-
return (options.client ??
|
|
107
|
-
url: '/clusters/{cluster_id}/fleets',
|
|
108
|
-
...options
|
|
109
|
-
});
|
|
171
|
+
return (options.client ?? client).get({ url: '/clusters/{cluster_id}/fleets', ...options });
|
|
110
172
|
}
|
|
111
173
|
/**
|
|
112
174
|
* Create a new fleet.
|
|
113
|
-
*
|
|
175
|
+
*
|
|
176
|
+
* 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.
|
|
114
177
|
*
|
|
115
178
|
* This endpoint is available to administrators of the organization only.
|
|
116
179
|
*
|
|
117
180
|
*/
|
|
118
181
|
static createFleet(options) {
|
|
119
|
-
return (options.client ??
|
|
182
|
+
return (options.client ?? client).post({
|
|
120
183
|
url: '/clusters/{cluster_id}/fleets',
|
|
121
184
|
...options,
|
|
122
185
|
headers: {
|
|
123
186
|
'Content-Type': 'application/json',
|
|
124
|
-
...options
|
|
187
|
+
...options.headers
|
|
125
188
|
}
|
|
126
189
|
});
|
|
127
190
|
}
|
|
128
191
|
/**
|
|
129
192
|
* Permanently delete fleet.
|
|
130
|
-
*
|
|
193
|
+
*
|
|
194
|
+
* 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.
|
|
131
195
|
*
|
|
132
196
|
* This endpoint is available to administrators of the organization only.
|
|
133
197
|
*
|
|
134
198
|
*/
|
|
135
199
|
static deleteFleet(options) {
|
|
136
|
-
return (options.client ??
|
|
137
|
-
url: '/clusters/{cluster_id}/fleets/{fleet_name}',
|
|
138
|
-
...options
|
|
139
|
-
});
|
|
200
|
+
return (options.client ?? client).delete({ url: '/clusters/{cluster_id}/fleets/{fleet_name}', ...options });
|
|
140
201
|
}
|
|
141
202
|
/**
|
|
142
203
|
* Get fleet information.
|
|
143
|
-
*
|
|
204
|
+
*
|
|
205
|
+
* Returns fleet details. For more information, see [Fleets](https://cloudfleet.ai/docs/cloud-infrastructure/fleets/) section of documentaiton.
|
|
144
206
|
*
|
|
145
207
|
* This endpoint is available to all users in the organization.
|
|
146
208
|
*
|
|
147
209
|
*/
|
|
148
210
|
static getFleet(options) {
|
|
149
|
-
return (options.client ??
|
|
150
|
-
url: '/clusters/{cluster_id}/fleets/{fleet_name}',
|
|
151
|
-
...options
|
|
152
|
-
});
|
|
211
|
+
return (options.client ?? client).get({ url: '/clusters/{cluster_id}/fleets/{fleet_name}', ...options });
|
|
153
212
|
}
|
|
154
213
|
/**
|
|
155
214
|
* Update fleet information.
|
|
215
|
+
*
|
|
156
216
|
* This endpoint allows you to update fleet details.
|
|
157
217
|
*
|
|
158
|
-
* Setting status to `deleted` will permanently delete fleet. This operation cannot be undone. Your subscription will end by the end of the current billing period and you will not be able to receive credit for unused time. If you want to keep using the
|
|
218
|
+
* Setting status to `deleted` will permanently delete fleet. This operation cannot be undone. Your subscription will end by the end of the current billing period and you will not be able to receive credit for unused time. If you want to keep using the Fleet until the end of the billing period, set the status to `cancelling`.
|
|
159
219
|
*
|
|
160
|
-
* For more information, see [Fleets
|
|
220
|
+
* For more information, see [Fleets](https://cloudfleet.ai/docs/cloud-infrastructure/fleets/) section of documentaiton.
|
|
161
221
|
*
|
|
162
222
|
* This endpoint is available to administrators of the organization only.
|
|
163
223
|
*
|
|
164
224
|
*/
|
|
165
225
|
static updateFleet(options) {
|
|
166
|
-
return (options.client ??
|
|
226
|
+
return (options.client ?? client).put({
|
|
167
227
|
url: '/clusters/{cluster_id}/fleets/{fleet_name}',
|
|
168
228
|
...options,
|
|
169
229
|
headers: {
|
|
170
230
|
'Content-Type': 'application/json',
|
|
171
|
-
...options
|
|
231
|
+
...options.headers
|
|
172
232
|
}
|
|
173
233
|
});
|
|
174
234
|
}
|
|
175
235
|
/**
|
|
176
236
|
* Query Kubernetes cluster API
|
|
237
|
+
*
|
|
177
238
|
* 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.
|
|
178
239
|
*/
|
|
179
240
|
static queryCluster(options) {
|
|
180
|
-
return (options.client ??
|
|
181
|
-
url: '/clusters/{cluster_id}/query',
|
|
182
|
-
...options
|
|
183
|
-
});
|
|
241
|
+
return (options.client ?? client).get({ url: '/clusters/{cluster_id}/query', ...options });
|
|
184
242
|
}
|
|
185
243
|
/**
|
|
186
244
|
* List clusters.
|
|
245
|
+
*
|
|
187
246
|
* 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.
|
|
188
247
|
*
|
|
189
248
|
* This endpoint is available to all users in the organization.
|
|
190
249
|
*
|
|
191
250
|
*/
|
|
192
251
|
static listClusters(options) {
|
|
193
|
-
return (options?.client ??
|
|
194
|
-
url: '/clusters',
|
|
195
|
-
...options
|
|
196
|
-
});
|
|
252
|
+
return (options?.client ?? client).get({ url: '/clusters', ...options });
|
|
197
253
|
}
|
|
198
254
|
/**
|
|
199
255
|
* Create a new cluster.
|
|
256
|
+
*
|
|
200
257
|
* 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.
|
|
201
258
|
*
|
|
202
259
|
* This endpoint is available to administrators of the organization only.
|
|
203
260
|
*
|
|
204
261
|
*/
|
|
205
262
|
static createCluster(options) {
|
|
206
|
-
return (options.client ??
|
|
263
|
+
return (options.client ?? client).post({
|
|
207
264
|
url: '/clusters',
|
|
208
265
|
...options,
|
|
209
266
|
headers: {
|
|
210
267
|
'Content-Type': 'application/json',
|
|
211
|
-
...options
|
|
268
|
+
...options.headers
|
|
212
269
|
}
|
|
213
270
|
});
|
|
214
271
|
}
|
|
215
272
|
/**
|
|
216
273
|
* Permanently delete cluster.
|
|
274
|
+
*
|
|
217
275
|
* This endpoint will permanently delete the cluster. This operation cannot be undone.
|
|
218
276
|
*
|
|
219
277
|
* This endpoint is available to administrators of the organization only.
|
|
220
278
|
*
|
|
221
279
|
*/
|
|
222
280
|
static deleteCluster(options) {
|
|
223
|
-
return (options.client ??
|
|
224
|
-
url: '/clusters/{cluster_id}',
|
|
225
|
-
...options
|
|
226
|
-
});
|
|
281
|
+
return (options.client ?? client).delete({ url: '/clusters/{cluster_id}', ...options });
|
|
227
282
|
}
|
|
228
283
|
/**
|
|
229
284
|
* Get cluster information.
|
|
285
|
+
*
|
|
230
286
|
* 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.
|
|
231
287
|
*
|
|
232
288
|
* This endpoint is available to all users in the organization.
|
|
233
289
|
*
|
|
234
290
|
*/
|
|
235
291
|
static getCluster(options) {
|
|
236
|
-
return (options.client ??
|
|
237
|
-
url: '/clusters/{cluster_id}',
|
|
238
|
-
...options
|
|
239
|
-
});
|
|
292
|
+
return (options.client ?? client).get({ url: '/clusters/{cluster_id}', ...options });
|
|
240
293
|
}
|
|
241
294
|
/**
|
|
242
295
|
* Update cluster information.
|
|
296
|
+
*
|
|
243
297
|
* 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.
|
|
244
298
|
*
|
|
245
299
|
* This endpoint is available to administrators of the organization only.
|
|
246
300
|
*
|
|
247
301
|
*/
|
|
248
302
|
static updateCluster(options) {
|
|
249
|
-
return (options.client ??
|
|
303
|
+
return (options.client ?? client).put({
|
|
250
304
|
url: '/clusters/{cluster_id}',
|
|
251
305
|
...options,
|
|
252
306
|
headers: {
|
|
253
307
|
'Content-Type': 'application/json',
|
|
254
|
-
...options
|
|
308
|
+
...options.headers
|
|
255
309
|
}
|
|
256
310
|
});
|
|
257
311
|
}
|
|
258
312
|
/**
|
|
259
313
|
* Node join information for the cluster
|
|
260
|
-
* 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.
|
|
261
|
-
*
|
|
262
|
-
*/
|
|
263
|
-
static getJoinInformation(options) {
|
|
264
|
-
return (options.client ?? _heyApiClient).post({
|
|
265
|
-
url: '/clusters/{cluster_id}/join_information',
|
|
266
|
-
...options
|
|
267
|
-
});
|
|
268
|
-
}
|
|
269
|
-
}
|
|
270
|
-
export class InfrastructureService {
|
|
271
|
-
/**
|
|
272
|
-
* Search infrastructure catalog.
|
|
273
|
-
* This endpoint is used to search the infrastructure catalog for the right virtual machine / instance type when creating a new task. The search is performed by specifying a set of filters. The filters are combined using the logical AND operator. For example, if you want to find all available instances with Nvidia A100 GPUs in the US, you would use the following query:
|
|
274
|
-
*
|
|
275
|
-
* `GET /infrastructure?accelerator_name=A100®ion=northamerica`
|
|
276
314
|
*
|
|
277
|
-
*
|
|
278
|
-
*
|
|
279
|
-
* **Note:** This endpoint is available for both authenticated and unauthenticated users. However, unauthenticated users will only see limited results and will be rate limited. To get full access to the catalog, please create a Cloudfleet account and log in.
|
|
280
|
-
*
|
|
281
|
-
* For full documentation of the infrastructure catalog, see [Cloud providers and instance types](https://cloudfleet.ai/docs/cloud-infrastructure/) section of the documentation.
|
|
282
|
-
*
|
|
283
|
-
*/
|
|
284
|
-
static getInfrastructure(options) {
|
|
285
|
-
return (options?.client ?? _heyApiClient).get({
|
|
286
|
-
url: '/infrastructure',
|
|
287
|
-
...options
|
|
288
|
-
});
|
|
289
|
-
}
|
|
290
|
-
/**
|
|
291
|
-
* Infrastructure catalog facets.
|
|
292
|
-
* This endpoint returns calculated search facets from the infrastructure catalog.
|
|
293
|
-
*
|
|
294
|
-
*/
|
|
295
|
-
static getFacets(options) {
|
|
296
|
-
return (options?.client ?? _heyApiClient).get({
|
|
297
|
-
url: '/infrastructure/facets',
|
|
298
|
-
...options
|
|
299
|
-
});
|
|
300
|
-
}
|
|
301
|
-
/**
|
|
302
|
-
* Available Cloudfleet regions and Kubernetes versions.
|
|
303
|
-
* Available Cloudfleet regions and Kubernetes versions.
|
|
315
|
+
* 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.
|
|
304
316
|
*
|
|
305
317
|
*/
|
|
306
|
-
static
|
|
307
|
-
return (options
|
|
308
|
-
url: '/infrastructure/regions',
|
|
309
|
-
...options
|
|
310
|
-
});
|
|
318
|
+
static getJoinInformation(options) {
|
|
319
|
+
return (options.client ?? client).post({ url: '/clusters/{cluster_id}/join_information', ...options });
|
|
311
320
|
}
|
|
312
321
|
}
|
|
313
322
|
export class InvitesService {
|
|
314
323
|
/**
|
|
315
324
|
* List invites.
|
|
325
|
+
*
|
|
316
326
|
* Returns a list of invites under the current organization. This endpoint is available to all users in the organization.
|
|
317
327
|
*
|
|
318
328
|
*/
|
|
319
329
|
static listInvites(options) {
|
|
320
|
-
return (options?.client ??
|
|
321
|
-
url: '/invites',
|
|
322
|
-
...options
|
|
323
|
-
});
|
|
330
|
+
return (options?.client ?? client).get({ url: '/invites', ...options });
|
|
324
331
|
}
|
|
325
332
|
/**
|
|
326
333
|
* Create a new invite.
|
|
327
|
-
*
|
|
334
|
+
*
|
|
335
|
+
* 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.
|
|
328
336
|
*
|
|
329
337
|
*/
|
|
330
338
|
static createInvite(options) {
|
|
331
|
-
return (options.client ??
|
|
339
|
+
return (options.client ?? client).post({
|
|
332
340
|
url: '/invites',
|
|
333
341
|
...options,
|
|
334
342
|
headers: {
|
|
335
343
|
'Content-Type': 'application/json',
|
|
336
|
-
...options
|
|
344
|
+
...options.headers
|
|
337
345
|
}
|
|
338
346
|
});
|
|
339
347
|
}
|
|
340
348
|
/**
|
|
341
349
|
* Get invite information.
|
|
350
|
+
*
|
|
342
351
|
* Returns invite details.
|
|
343
352
|
*
|
|
344
353
|
*/
|
|
345
354
|
static getInvite(options) {
|
|
346
|
-
return (options.client ??
|
|
347
|
-
url: '/invites/{code}',
|
|
348
|
-
...options
|
|
349
|
-
});
|
|
355
|
+
return (options.client ?? client).get({ url: '/invites/{code}', ...options });
|
|
350
356
|
}
|
|
351
357
|
/**
|
|
352
358
|
* Permanently delete invite.
|
|
359
|
+
*
|
|
353
360
|
* Permanently deletes invite from the organization. This endpoint is available to administrators of the organization only.
|
|
354
361
|
*
|
|
355
362
|
*/
|
|
356
363
|
static deleteInvite(options) {
|
|
357
|
-
return (options.client ??
|
|
358
|
-
|
|
359
|
-
|
|
364
|
+
return (options.client ?? client).delete({ url: '/invites/{email}', ...options });
|
|
365
|
+
}
|
|
366
|
+
}
|
|
367
|
+
export class ChartsMarketplaceService {
|
|
368
|
+
/**
|
|
369
|
+
* List chart listings available in the marketplace.
|
|
370
|
+
*
|
|
371
|
+
* Returns a list of available charts in the marketplace.
|
|
372
|
+
*
|
|
373
|
+
* This endpoint is available to all users in the organization.
|
|
374
|
+
*
|
|
375
|
+
*/
|
|
376
|
+
static listMarketplaceCharts(options) {
|
|
377
|
+
return (options?.client ?? client).get({ url: '/marketplace', ...options });
|
|
378
|
+
}
|
|
379
|
+
/**
|
|
380
|
+
* Get chart files for a specific version channel.
|
|
381
|
+
*
|
|
382
|
+
* Returns the Chart.yaml, values.yaml, and values.schema.json files for the latest version matching the specified version channel.
|
|
383
|
+
*
|
|
384
|
+
* 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.
|
|
385
|
+
*
|
|
386
|
+
* This endpoint is available to all users in the organization.
|
|
387
|
+
*
|
|
388
|
+
*/
|
|
389
|
+
static getMarketplaceChartFiles(options) {
|
|
390
|
+
return (options.client ?? client).get({ url: '/marketplace/{chart_name}/files/{version_channel}', ...options });
|
|
391
|
+
}
|
|
392
|
+
}
|
|
393
|
+
export class McpService {
|
|
394
|
+
/**
|
|
395
|
+
* MCP endpoint
|
|
396
|
+
*
|
|
397
|
+
* MCP endpoint for handling Model Context Protocol JSON-RPC 2.0 messages.
|
|
398
|
+
*/
|
|
399
|
+
static postMcp(options) {
|
|
400
|
+
return (options.client ?? client).post({
|
|
401
|
+
url: '/mcp',
|
|
402
|
+
...options,
|
|
403
|
+
headers: {
|
|
404
|
+
'Content-Type': 'application/json',
|
|
405
|
+
...options.headers
|
|
406
|
+
}
|
|
360
407
|
});
|
|
361
408
|
}
|
|
362
409
|
}
|
|
363
410
|
export class OrganizationService {
|
|
364
411
|
/**
|
|
365
412
|
* Get organization information.
|
|
413
|
+
*
|
|
366
414
|
* Returns organization details including quota. For more information about quotas, see [Quotas and limits](https://cloudfleet.ai/docs/organization/quotas/) section of documentaiton.
|
|
367
415
|
*
|
|
368
416
|
* This endpoint is available to all users in the organization.
|
|
369
417
|
*
|
|
370
418
|
*/
|
|
371
419
|
static getOrganization(options) {
|
|
372
|
-
return (options?.client ??
|
|
373
|
-
url: '/organization',
|
|
374
|
-
...options
|
|
375
|
-
});
|
|
420
|
+
return (options?.client ?? client).get({ url: '/organization', ...options });
|
|
376
421
|
}
|
|
377
422
|
/**
|
|
378
423
|
* Create a new organization / Cloudfleet account signup.
|
|
424
|
+
*
|
|
379
425
|
* This endpoint allows you to create a new Cloudfleet organization and an administrator user.
|
|
380
426
|
*
|
|
381
427
|
*/
|
|
382
428
|
static createOrganization(options) {
|
|
383
|
-
return (options.client ??
|
|
429
|
+
return (options.client ?? client).post({
|
|
384
430
|
url: '/organization',
|
|
385
431
|
...options,
|
|
386
432
|
headers: {
|
|
387
433
|
'Content-Type': 'application/json',
|
|
388
|
-
...options
|
|
434
|
+
...options.headers
|
|
389
435
|
}
|
|
390
436
|
});
|
|
391
437
|
}
|
|
392
438
|
}
|
|
439
|
+
export class RegistryService {
|
|
440
|
+
/**
|
|
441
|
+
* List repositories
|
|
442
|
+
*
|
|
443
|
+
* Returns a list of repositories in the registry across all regions. This endpoint is available to all users in the organization.
|
|
444
|
+
*
|
|
445
|
+
*/
|
|
446
|
+
static listRepositories(options) {
|
|
447
|
+
return (options?.client ?? client).get({ url: '/registry', ...options });
|
|
448
|
+
}
|
|
449
|
+
/**
|
|
450
|
+
* List tags for a repository
|
|
451
|
+
*
|
|
452
|
+
* 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.
|
|
453
|
+
*
|
|
454
|
+
*/
|
|
455
|
+
static listTags(options) {
|
|
456
|
+
return (options.client ?? client).get({ url: '/registry/{region}/{repository}', ...options });
|
|
457
|
+
}
|
|
458
|
+
/**
|
|
459
|
+
* Delete tag
|
|
460
|
+
*
|
|
461
|
+
* Permanently deletes a specific tag from a repository. This endpoint is available to administrators of the organization only.
|
|
462
|
+
*
|
|
463
|
+
*/
|
|
464
|
+
static deleteTag(options) {
|
|
465
|
+
return (options.client ?? client).delete({ url: '/registry/{region}/{repository}/{tag}', ...options });
|
|
466
|
+
}
|
|
467
|
+
/**
|
|
468
|
+
* Get tag details
|
|
469
|
+
*
|
|
470
|
+
* 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.
|
|
471
|
+
*
|
|
472
|
+
*/
|
|
473
|
+
static getTag(options) {
|
|
474
|
+
return (options.client ?? client).get({ url: '/registry/{region}/{repository}/{tag}', ...options });
|
|
475
|
+
}
|
|
476
|
+
}
|
|
477
|
+
export class TicketsService {
|
|
478
|
+
/**
|
|
479
|
+
* List tickets for the current organization.
|
|
480
|
+
*
|
|
481
|
+
* Returns all tickets belonging to the caller's organization, newest first.
|
|
482
|
+
*
|
|
483
|
+
*/
|
|
484
|
+
static listTickets(options) {
|
|
485
|
+
return (options?.client ?? client).get({ url: '/tickets', ...options });
|
|
486
|
+
}
|
|
487
|
+
/**
|
|
488
|
+
* Create a new support ticket.
|
|
489
|
+
*
|
|
490
|
+
* 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`, plus up to 3 `attachments` files (10 MB max each).
|
|
491
|
+
*
|
|
492
|
+
*/
|
|
493
|
+
static createTicket(options) {
|
|
494
|
+
return (options.client ?? client).post({
|
|
495
|
+
...formDataBodySerializer,
|
|
496
|
+
url: '/tickets',
|
|
497
|
+
...options,
|
|
498
|
+
headers: {
|
|
499
|
+
'Content-Type': null,
|
|
500
|
+
...options.headers
|
|
501
|
+
}
|
|
502
|
+
});
|
|
503
|
+
}
|
|
504
|
+
/**
|
|
505
|
+
* Close a ticket (soft close).
|
|
506
|
+
*
|
|
507
|
+
* Marks the ticket as closed. Closed is a terminal state — users cannot reply to a closed ticket; a new ticket must be opened instead.
|
|
508
|
+
*
|
|
509
|
+
*/
|
|
510
|
+
static closeTicket(options) {
|
|
511
|
+
return (options.client ?? client).delete({ url: '/tickets/{ticket_id}', ...options });
|
|
512
|
+
}
|
|
513
|
+
/**
|
|
514
|
+
* Get a ticket and its messages.
|
|
515
|
+
*/
|
|
516
|
+
static getTicket(options) {
|
|
517
|
+
return (options.client ?? client).get({ url: '/tickets/{ticket_id}', ...options });
|
|
518
|
+
}
|
|
519
|
+
/**
|
|
520
|
+
* Append a customer reply to a ticket.
|
|
521
|
+
*
|
|
522
|
+
* Multipart form-data with a JSON-encoded `payload` field carrying `body`, plus up to 3 `attachments` files. Returns 409 if the ticket is closed.
|
|
523
|
+
*
|
|
524
|
+
*/
|
|
525
|
+
static replyTicket(options) {
|
|
526
|
+
return (options.client ?? client).post({
|
|
527
|
+
...formDataBodySerializer,
|
|
528
|
+
url: '/tickets/{ticket_id}/messages',
|
|
529
|
+
...options,
|
|
530
|
+
headers: {
|
|
531
|
+
'Content-Type': null,
|
|
532
|
+
...options.headers
|
|
533
|
+
}
|
|
534
|
+
});
|
|
535
|
+
}
|
|
536
|
+
/**
|
|
537
|
+
* Download a ticket attachment.
|
|
538
|
+
*/
|
|
539
|
+
static getTicketAttachment(options) {
|
|
540
|
+
return (options.client ?? client).get({ url: '/tickets/{ticket_id}/attachments/{attachment_id}', ...options });
|
|
541
|
+
}
|
|
542
|
+
}
|
|
393
543
|
export class TokensService {
|
|
394
544
|
/**
|
|
395
545
|
* List access tokens in organization.
|
|
546
|
+
*
|
|
396
547
|
* 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.
|
|
397
548
|
*
|
|
398
549
|
*/
|
|
399
550
|
static listTokens(options) {
|
|
400
|
-
return (options?.client ??
|
|
401
|
-
url: '/tokens',
|
|
402
|
-
...options
|
|
403
|
-
});
|
|
551
|
+
return (options?.client ?? client).get({ url: '/tokens', ...options });
|
|
404
552
|
}
|
|
405
553
|
/**
|
|
406
554
|
* Create a new access token.
|
|
555
|
+
*
|
|
407
556
|
* 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.
|
|
408
557
|
*
|
|
409
558
|
* This endpoint is available to administrators of the organization only.
|
|
410
559
|
*
|
|
411
560
|
*/
|
|
412
561
|
static createToken(options) {
|
|
413
|
-
return (options.client ??
|
|
562
|
+
return (options.client ?? client).post({
|
|
414
563
|
url: '/tokens',
|
|
415
564
|
...options,
|
|
416
565
|
headers: {
|
|
417
566
|
'Content-Type': 'application/json',
|
|
418
|
-
...options
|
|
567
|
+
...options.headers
|
|
419
568
|
}
|
|
420
569
|
});
|
|
421
570
|
}
|
|
422
571
|
/**
|
|
423
572
|
* Permanently delete access token.
|
|
573
|
+
*
|
|
424
574
|
* 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.
|
|
425
575
|
*
|
|
426
576
|
*/
|
|
427
577
|
static deleteToken(options) {
|
|
428
|
-
return (options.client ??
|
|
429
|
-
url: '/tokens/{token_id}',
|
|
430
|
-
...options
|
|
431
|
-
});
|
|
578
|
+
return (options.client ?? client).delete({ url: '/tokens/{token_id}', ...options });
|
|
432
579
|
}
|
|
433
580
|
/**
|
|
434
581
|
* Get access token information.
|
|
582
|
+
*
|
|
435
583
|
* 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.
|
|
436
584
|
*
|
|
437
585
|
*/
|
|
438
586
|
static getToken(options) {
|
|
439
|
-
return (options.client ??
|
|
440
|
-
url: '/tokens/{token_id}',
|
|
441
|
-
...options
|
|
442
|
-
});
|
|
587
|
+
return (options.client ?? client).get({ url: '/tokens/{token_id}', ...options });
|
|
443
588
|
}
|
|
444
589
|
/**
|
|
445
590
|
* Update access token information.
|
|
591
|
+
*
|
|
446
592
|
* 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.
|
|
447
593
|
*
|
|
448
594
|
* This endpoint is available to administrators of the organization only.
|
|
449
595
|
*
|
|
450
596
|
*/
|
|
451
597
|
static updateToken(options) {
|
|
452
|
-
return (options.client ??
|
|
598
|
+
return (options.client ?? client).put({
|
|
453
599
|
url: '/tokens/{token_id}',
|
|
454
600
|
...options,
|
|
455
601
|
headers: {
|
|
456
602
|
'Content-Type': 'application/json',
|
|
457
|
-
...options
|
|
603
|
+
...options.headers
|
|
458
604
|
}
|
|
459
605
|
});
|
|
460
606
|
}
|
|
461
607
|
/**
|
|
462
608
|
* Regenerate access token secret key.
|
|
609
|
+
*
|
|
463
610
|
* Generates a new access token secret. Old secret will not be valid anymore.
|
|
464
611
|
*/
|
|
465
612
|
static regenerateToken(options) {
|
|
466
|
-
return (options.client ??
|
|
467
|
-
url: '/tokens/{token_id}/secret',
|
|
468
|
-
...options
|
|
469
|
-
});
|
|
613
|
+
return (options.client ?? client).put({ url: '/tokens/{token_id}/secret', ...options });
|
|
470
614
|
}
|
|
471
615
|
}
|
|
472
616
|
export class UsersService {
|
|
@@ -474,101 +618,68 @@ export class UsersService {
|
|
|
474
618
|
* Get a list of organizations the user belongs to. Used during authentication process.
|
|
475
619
|
*/
|
|
476
620
|
static listUserOrganizations(options) {
|
|
477
|
-
return (options.client ??
|
|
478
|
-
url: '/users/organizations/{email}',
|
|
479
|
-
...options
|
|
480
|
-
});
|
|
621
|
+
return (options.client ?? client).get({ url: '/users/organizations/{email}', ...options });
|
|
481
622
|
}
|
|
482
623
|
/**
|
|
483
624
|
* List users in organization.
|
|
484
|
-
*
|
|
625
|
+
*
|
|
626
|
+
* 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.
|
|
485
627
|
*
|
|
486
628
|
* This endpoint is available to all users in the organization.
|
|
487
629
|
*
|
|
488
630
|
*/
|
|
489
631
|
static listUsers(options) {
|
|
490
|
-
return (options?.client ??
|
|
491
|
-
url: '/users',
|
|
492
|
-
...options
|
|
493
|
-
});
|
|
632
|
+
return (options?.client ?? client).get({ url: '/users', ...options });
|
|
494
633
|
}
|
|
495
634
|
/**
|
|
496
635
|
* Create a new user.
|
|
497
|
-
*
|
|
636
|
+
*
|
|
637
|
+
* 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.
|
|
498
638
|
*
|
|
499
639
|
*/
|
|
500
640
|
static createUser(options) {
|
|
501
|
-
return (options.client ??
|
|
641
|
+
return (options.client ?? client).post({
|
|
502
642
|
url: '/users',
|
|
503
643
|
...options,
|
|
504
644
|
headers: {
|
|
505
645
|
'Content-Type': 'application/json',
|
|
506
|
-
...options
|
|
646
|
+
...options.headers
|
|
507
647
|
}
|
|
508
648
|
});
|
|
509
649
|
}
|
|
510
650
|
/**
|
|
511
651
|
* Delete user by id.
|
|
652
|
+
*
|
|
512
653
|
* Sets user status to `inactive`. Inactive users cannot log in and manage organization resources. This endpoint is available to administrators of the organization only.
|
|
513
654
|
*
|
|
514
655
|
*/
|
|
515
656
|
static deleteUser(options) {
|
|
516
|
-
return (options.client ??
|
|
517
|
-
url: '/users/{user_id}',
|
|
518
|
-
...options
|
|
519
|
-
});
|
|
657
|
+
return (options.client ?? client).delete({ url: '/users/{user_id}', ...options });
|
|
520
658
|
}
|
|
521
659
|
/**
|
|
522
660
|
* Get user profile information by id.
|
|
523
|
-
*
|
|
661
|
+
*
|
|
662
|
+
* Returns user details including their roles. For more information on identity access management, see [Users](https://cloudfleet.ai/docs/organization/users/) section of documentaiton.
|
|
524
663
|
*
|
|
525
664
|
* This endpoint is available to all users in the organization.
|
|
526
665
|
*
|
|
527
666
|
*/
|
|
528
667
|
static getUser(options) {
|
|
529
|
-
return (options.client ??
|
|
530
|
-
url: '/users/{user_id}',
|
|
531
|
-
...options
|
|
532
|
-
});
|
|
668
|
+
return (options.client ?? client).get({ url: '/users/{user_id}', ...options });
|
|
533
669
|
}
|
|
534
670
|
/**
|
|
535
671
|
* Update user profile information.
|
|
672
|
+
*
|
|
536
673
|
* 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.
|
|
537
674
|
*
|
|
538
675
|
*/
|
|
539
676
|
static updateUser(options) {
|
|
540
|
-
return (options.client ??
|
|
677
|
+
return (options.client ?? client).put({
|
|
541
678
|
url: '/users/{user_id}',
|
|
542
679
|
...options,
|
|
543
680
|
headers: {
|
|
544
681
|
'Content-Type': 'application/json',
|
|
545
|
-
...options
|
|
546
|
-
}
|
|
547
|
-
});
|
|
548
|
-
}
|
|
549
|
-
/**
|
|
550
|
-
* Remove user from cluster.
|
|
551
|
-
* Removes user from the cluster. The user will no longer be able to access the cluster and all its resources. This endpoint is available to administrators of the organization only.
|
|
552
|
-
*
|
|
553
|
-
*/
|
|
554
|
-
static deleteClusterPermissions(options) {
|
|
555
|
-
return (options.client ?? _heyApiClient).delete({
|
|
556
|
-
url: '/users/{user_id}/clusters/{cluster_id}',
|
|
557
|
-
...options
|
|
558
|
-
});
|
|
559
|
-
}
|
|
560
|
-
/**
|
|
561
|
-
* Add user to cluster and set permissions.
|
|
562
|
-
* Add user to the cluster and set / update access permissions. This endpoint is available to administrators of the organization only.
|
|
563
|
-
*
|
|
564
|
-
*/
|
|
565
|
-
static setClusterPermissions(options) {
|
|
566
|
-
return (options.client ?? _heyApiClient).put({
|
|
567
|
-
url: '/users/{user_id}/clusters/{cluster_id}',
|
|
568
|
-
...options,
|
|
569
|
-
headers: {
|
|
570
|
-
'Content-Type': 'application/json',
|
|
571
|
-
...options?.headers
|
|
682
|
+
...options.headers
|
|
572
683
|
}
|
|
573
684
|
});
|
|
574
685
|
}
|