@cloudfleet/sdk 0.0.1-f0c84a6 → 0.0.1-f1d40ff
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/client.d.ts +3 -0
- package/dist/client/client.d.ts.map +1 -0
- package/dist/client/client.js +144 -0
- package/dist/client/client.js.map +1 -0
- package/dist/client/index.d.ts +8 -0
- package/dist/client/index.d.ts.map +1 -0
- package/dist/client/index.js +5 -0
- package/dist/client/index.js.map +1 -0
- package/dist/client/types.d.ts +120 -0
- package/dist/client/types.d.ts.map +1 -0
- package/dist/client/types.js +2 -0
- package/dist/client/types.js.map +1 -0
- package/dist/client/utils.d.ts +46 -0
- package/dist/client/utils.d.ts.map +1 -0
- package/dist/client/utils.js +285 -0
- package/dist/client/utils.js.map +1 -0
- package/dist/client.gen.d.ts +2 -2
- package/dist/client.gen.d.ts.map +1 -1
- package/dist/client.gen.js +1 -1
- package/dist/client.gen.js.map +1 -1
- package/dist/core/auth.d.ts +19 -0
- package/dist/core/auth.d.ts.map +1 -0
- package/dist/core/auth.js +14 -0
- package/dist/core/auth.js.map +1 -0
- package/dist/core/bodySerializer.d.ts +18 -0
- package/dist/core/bodySerializer.d.ts.map +1 -0
- package/dist/core/bodySerializer.js +54 -0
- package/dist/core/bodySerializer.js.map +1 -0
- package/dist/core/params.d.ts +24 -0
- package/dist/core/params.d.ts.map +1 -0
- package/dist/core/params.js +88 -0
- package/dist/core/params.js.map +1 -0
- package/dist/core/pathSerializer.d.ts +34 -0
- package/dist/core/pathSerializer.d.ts.map +1 -0
- package/dist/core/pathSerializer.js +114 -0
- package/dist/core/pathSerializer.js.map +1 -0
- package/dist/core/types.d.ts +74 -0
- package/dist/core/types.d.ts.map +1 -0
- package/dist/core/types.js +2 -0
- package/dist/core/types.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 +346 -398
- package/dist/schemas.gen.d.ts.map +1 -1
- package/dist/schemas.gen.js +347 -407
- package/dist/schemas.gen.js.map +1 -1
- package/dist/sdk.gen.d.ts +121 -131
- package/dist/sdk.gen.d.ts.map +1 -1
- package/dist/sdk.gen.js +149 -91
- 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 +383 -512
- package/dist/types.gen.d.ts.map +1 -1
- package/dist/zod.gen.d.ts +2165 -787
- package/dist/zod.gen.d.ts.map +1 -1
- package/dist/zod.gen.js +691 -147
- package/dist/zod.gen.js.map +1 -1
- package/package.json +8 -5
package/dist/sdk.gen.js
CHANGED
|
@@ -89,15 +89,114 @@ export class BillingService {
|
|
|
89
89
|
...options,
|
|
90
90
|
headers: {
|
|
91
91
|
'Content-Type': 'application/json',
|
|
92
|
-
...options
|
|
92
|
+
...options.headers
|
|
93
|
+
}
|
|
94
|
+
});
|
|
95
|
+
}
|
|
96
|
+
/**
|
|
97
|
+
* Get applied promotional credits
|
|
98
|
+
* Returns applied promotional credits for the organization. For more information on billing and payments, see [Billing and pricing](https://cloudfleet.ai/docs/organization/billing/) section of documentaiton. This endpoint is available to all users in the organization.
|
|
99
|
+
*
|
|
100
|
+
*/
|
|
101
|
+
static getCredits(options) {
|
|
102
|
+
return (options?.client ?? _heyApiClient).get({
|
|
103
|
+
url: '/billing/credits',
|
|
104
|
+
...options
|
|
105
|
+
});
|
|
106
|
+
}
|
|
107
|
+
/**
|
|
108
|
+
* Redeem promotional credits code.
|
|
109
|
+
* Applies promotional credits for the organization. For more information on billing and payments, see [Billing and pricing](https://cloudfleet.ai/docs/organization/billing/) section of documentaiton. This endpoint is available to all users in the organization.
|
|
110
|
+
*
|
|
111
|
+
*/
|
|
112
|
+
static redeemCredits(options) {
|
|
113
|
+
return (options.client ?? _heyApiClient).post({
|
|
114
|
+
url: '/billing/credits',
|
|
115
|
+
...options,
|
|
116
|
+
headers: {
|
|
117
|
+
'Content-Type': 'application/json',
|
|
118
|
+
...options.headers
|
|
93
119
|
}
|
|
94
120
|
});
|
|
95
121
|
}
|
|
96
122
|
}
|
|
97
123
|
export class ClustersService {
|
|
124
|
+
/**
|
|
125
|
+
* List charts.
|
|
126
|
+
* Returns a list of charts in the cluster.
|
|
127
|
+
*
|
|
128
|
+
* This endpoint is available to all users in the organization.
|
|
129
|
+
*
|
|
130
|
+
*/
|
|
131
|
+
static listCharts(options) {
|
|
132
|
+
return (options.client ?? _heyApiClient).get({
|
|
133
|
+
url: '/clusters/{cluster_id}/charts',
|
|
134
|
+
...options
|
|
135
|
+
});
|
|
136
|
+
}
|
|
137
|
+
/**
|
|
138
|
+
* Create a new chart.
|
|
139
|
+
* Create a new chart deployment.
|
|
140
|
+
*
|
|
141
|
+
* This endpoint is available to administrators of the organization only.
|
|
142
|
+
*
|
|
143
|
+
*/
|
|
144
|
+
static createChart(options) {
|
|
145
|
+
return (options.client ?? _heyApiClient).post({
|
|
146
|
+
url: '/clusters/{cluster_id}/charts',
|
|
147
|
+
...options,
|
|
148
|
+
headers: {
|
|
149
|
+
'Content-Type': 'application/json',
|
|
150
|
+
...options.headers
|
|
151
|
+
}
|
|
152
|
+
});
|
|
153
|
+
}
|
|
154
|
+
/**
|
|
155
|
+
* Permanently delete the chart deployment from the cluster.
|
|
156
|
+
* This endpoint will permanently delete chart. This operation cannot be undone.
|
|
157
|
+
*
|
|
158
|
+
* This endpoint is available to administrators of the organization only.
|
|
159
|
+
*
|
|
160
|
+
*/
|
|
161
|
+
static deleteChart(options) {
|
|
162
|
+
return (options.client ?? _heyApiClient).delete({
|
|
163
|
+
url: '/clusters/{cluster_id}/charts/{chart_name}',
|
|
164
|
+
...options
|
|
165
|
+
});
|
|
166
|
+
}
|
|
167
|
+
/**
|
|
168
|
+
* Get chart information.
|
|
169
|
+
* Returns the details of the chart deployment.
|
|
170
|
+
*
|
|
171
|
+
* This endpoint is available to all users in the organization.
|
|
172
|
+
*
|
|
173
|
+
*/
|
|
174
|
+
static getChart(options) {
|
|
175
|
+
return (options.client ?? _heyApiClient).get({
|
|
176
|
+
url: '/clusters/{cluster_id}/charts/{chart_name}',
|
|
177
|
+
...options
|
|
178
|
+
});
|
|
179
|
+
}
|
|
180
|
+
/**
|
|
181
|
+
* Update chart information.
|
|
182
|
+
* This endpoint allows you to update the values of a chart deployment.
|
|
183
|
+
*
|
|
184
|
+
* This endpoint is available to administrators of the organization only.
|
|
185
|
+
*
|
|
186
|
+
*/
|
|
187
|
+
static updateChart(options) {
|
|
188
|
+
return (options.client ?? _heyApiClient).put({
|
|
189
|
+
url: '/clusters/{cluster_id}/charts/{chart_name}',
|
|
190
|
+
...options,
|
|
191
|
+
headers: {
|
|
192
|
+
'Content-Type': 'application/json',
|
|
193
|
+
...options.headers
|
|
194
|
+
}
|
|
195
|
+
});
|
|
196
|
+
}
|
|
98
197
|
/**
|
|
99
198
|
* List fleets.
|
|
100
|
-
* Returns a list of fleets belonging to the cluster. For more information, see [Fleets
|
|
199
|
+
* 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
200
|
*
|
|
102
201
|
* This endpoint is available to all users in the organization.
|
|
103
202
|
*
|
|
@@ -110,7 +209,7 @@ export class ClustersService {
|
|
|
110
209
|
}
|
|
111
210
|
/**
|
|
112
211
|
* Create a new fleet.
|
|
113
|
-
* 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
|
|
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](https://cloudfleet.ai/docs/cloud-infrastructure/fleets/) section of documentaiton.
|
|
114
213
|
*
|
|
115
214
|
* This endpoint is available to administrators of the organization only.
|
|
116
215
|
*
|
|
@@ -121,13 +220,13 @@ export class ClustersService {
|
|
|
121
220
|
...options,
|
|
122
221
|
headers: {
|
|
123
222
|
'Content-Type': 'application/json',
|
|
124
|
-
...options
|
|
223
|
+
...options.headers
|
|
125
224
|
}
|
|
126
225
|
});
|
|
127
226
|
}
|
|
128
227
|
/**
|
|
129
228
|
* Permanently delete fleet.
|
|
130
|
-
* 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
|
|
229
|
+
* 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
230
|
*
|
|
132
231
|
* This endpoint is available to administrators of the organization only.
|
|
133
232
|
*
|
|
@@ -140,7 +239,7 @@ export class ClustersService {
|
|
|
140
239
|
}
|
|
141
240
|
/**
|
|
142
241
|
* Get fleet information.
|
|
143
|
-
* Returns fleet details. For more information, see [Fleets
|
|
242
|
+
* Returns fleet details. For more information, see [Fleets](https://cloudfleet.ai/docs/cloud-infrastructure/fleets/) section of documentaiton.
|
|
144
243
|
*
|
|
145
244
|
* This endpoint is available to all users in the organization.
|
|
146
245
|
*
|
|
@@ -155,9 +254,9 @@ export class ClustersService {
|
|
|
155
254
|
* Update fleet information.
|
|
156
255
|
* This endpoint allows you to update fleet details.
|
|
157
256
|
*
|
|
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
|
|
257
|
+
* 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
258
|
*
|
|
160
|
-
* For more information, see [Fleets
|
|
259
|
+
* For more information, see [Fleets](https://cloudfleet.ai/docs/cloud-infrastructure/fleets/) section of documentaiton.
|
|
161
260
|
*
|
|
162
261
|
* This endpoint is available to administrators of the organization only.
|
|
163
262
|
*
|
|
@@ -168,7 +267,7 @@ export class ClustersService {
|
|
|
168
267
|
...options,
|
|
169
268
|
headers: {
|
|
170
269
|
'Content-Type': 'application/json',
|
|
171
|
-
...options
|
|
270
|
+
...options.headers
|
|
172
271
|
}
|
|
173
272
|
});
|
|
174
273
|
}
|
|
@@ -208,7 +307,7 @@ export class ClustersService {
|
|
|
208
307
|
...options,
|
|
209
308
|
headers: {
|
|
210
309
|
'Content-Type': 'application/json',
|
|
211
|
-
...options
|
|
310
|
+
...options.headers
|
|
212
311
|
}
|
|
213
312
|
});
|
|
214
313
|
}
|
|
@@ -251,13 +350,13 @@ export class ClustersService {
|
|
|
251
350
|
...options,
|
|
252
351
|
headers: {
|
|
253
352
|
'Content-Type': 'application/json',
|
|
254
|
-
...options
|
|
353
|
+
...options.headers
|
|
255
354
|
}
|
|
256
355
|
});
|
|
257
356
|
}
|
|
258
357
|
/**
|
|
259
358
|
* Node join information for the cluster
|
|
260
|
-
* Returns the join information for the cluster. This information is used to add a self-managed
|
|
359
|
+
* 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.
|
|
261
360
|
*
|
|
262
361
|
*/
|
|
263
362
|
static getJoinInformation(options) {
|
|
@@ -267,49 +366,6 @@ export class ClustersService {
|
|
|
267
366
|
});
|
|
268
367
|
}
|
|
269
368
|
}
|
|
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
|
-
*
|
|
277
|
-
* Catalog is dynamic and updated regularly to reflect the latest changes in the cloud providers' offerings. Although we try to keep the catalog up to date, it is possible that some instances are missing or that some information is outdated. It is possible that the final price you will see in the billing section will be different from the price shown in the catalog. Additionally, catalog does not account for any limitaitons and quotas set by the cloud providers, as well as current availability of specific instance types.
|
|
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.
|
|
304
|
-
*
|
|
305
|
-
*/
|
|
306
|
-
static getRegions(options) {
|
|
307
|
-
return (options?.client ?? _heyApiClient).get({
|
|
308
|
-
url: '/infrastructure/regions',
|
|
309
|
-
...options
|
|
310
|
-
});
|
|
311
|
-
}
|
|
312
|
-
}
|
|
313
369
|
export class InvitesService {
|
|
314
370
|
/**
|
|
315
371
|
* List invites.
|
|
@@ -324,7 +380,7 @@ export class InvitesService {
|
|
|
324
380
|
}
|
|
325
381
|
/**
|
|
326
382
|
* Create a new invite.
|
|
327
|
-
* Invite a new user to your
|
|
383
|
+
* 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
384
|
*
|
|
329
385
|
*/
|
|
330
386
|
static createInvite(options) {
|
|
@@ -333,7 +389,7 @@ export class InvitesService {
|
|
|
333
389
|
...options,
|
|
334
390
|
headers: {
|
|
335
391
|
'Content-Type': 'application/json',
|
|
336
|
-
...options
|
|
392
|
+
...options.headers
|
|
337
393
|
}
|
|
338
394
|
});
|
|
339
395
|
}
|
|
@@ -360,6 +416,34 @@ export class InvitesService {
|
|
|
360
416
|
});
|
|
361
417
|
}
|
|
362
418
|
}
|
|
419
|
+
export class ChartsMarketplaceService {
|
|
420
|
+
/**
|
|
421
|
+
* List chart listings available in the marketplace.
|
|
422
|
+
* Returns a list of available charts in the marketplace.
|
|
423
|
+
*
|
|
424
|
+
* This endpoint is available to all users in the organization.
|
|
425
|
+
*
|
|
426
|
+
*/
|
|
427
|
+
static listMarketplaceCharts(options) {
|
|
428
|
+
return (options?.client ?? _heyApiClient).get({
|
|
429
|
+
url: '/marketplace',
|
|
430
|
+
...options
|
|
431
|
+
});
|
|
432
|
+
}
|
|
433
|
+
/**
|
|
434
|
+
* Get chart listing details.
|
|
435
|
+
* Returns details of the chart listing.
|
|
436
|
+
*
|
|
437
|
+
* This endpoint is available to all users in the organization.
|
|
438
|
+
*
|
|
439
|
+
*/
|
|
440
|
+
static getMarketplaceChart(options) {
|
|
441
|
+
return (options.client ?? _heyApiClient).get({
|
|
442
|
+
url: '/marketplace/{listing_id}',
|
|
443
|
+
...options
|
|
444
|
+
});
|
|
445
|
+
}
|
|
446
|
+
}
|
|
363
447
|
export class OrganizationService {
|
|
364
448
|
/**
|
|
365
449
|
* Get organization information.
|
|
@@ -385,7 +469,7 @@ export class OrganizationService {
|
|
|
385
469
|
...options,
|
|
386
470
|
headers: {
|
|
387
471
|
'Content-Type': 'application/json',
|
|
388
|
-
...options
|
|
472
|
+
...options.headers
|
|
389
473
|
}
|
|
390
474
|
});
|
|
391
475
|
}
|
|
@@ -415,7 +499,7 @@ export class TokensService {
|
|
|
415
499
|
...options,
|
|
416
500
|
headers: {
|
|
417
501
|
'Content-Type': 'application/json',
|
|
418
|
-
...options
|
|
502
|
+
...options.headers
|
|
419
503
|
}
|
|
420
504
|
});
|
|
421
505
|
}
|
|
@@ -454,7 +538,7 @@ export class TokensService {
|
|
|
454
538
|
...options,
|
|
455
539
|
headers: {
|
|
456
540
|
'Content-Type': 'application/json',
|
|
457
|
-
...options
|
|
541
|
+
...options.headers
|
|
458
542
|
}
|
|
459
543
|
});
|
|
460
544
|
}
|
|
@@ -481,7 +565,7 @@ export class UsersService {
|
|
|
481
565
|
}
|
|
482
566
|
/**
|
|
483
567
|
* List users in organization.
|
|
484
|
-
* Returns a list of user details
|
|
568
|
+
* 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
569
|
*
|
|
486
570
|
* This endpoint is available to all users in the organization.
|
|
487
571
|
*
|
|
@@ -494,7 +578,7 @@ export class UsersService {
|
|
|
494
578
|
}
|
|
495
579
|
/**
|
|
496
580
|
* Create a new user.
|
|
497
|
-
* Create a new user in your
|
|
581
|
+
* 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
582
|
*
|
|
499
583
|
*/
|
|
500
584
|
static createUser(options) {
|
|
@@ -503,7 +587,7 @@ export class UsersService {
|
|
|
503
587
|
...options,
|
|
504
588
|
headers: {
|
|
505
589
|
'Content-Type': 'application/json',
|
|
506
|
-
...options
|
|
590
|
+
...options.headers
|
|
507
591
|
}
|
|
508
592
|
});
|
|
509
593
|
}
|
|
@@ -520,7 +604,7 @@ export class UsersService {
|
|
|
520
604
|
}
|
|
521
605
|
/**
|
|
522
606
|
* Get user profile information by id.
|
|
523
|
-
* Returns user details
|
|
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.
|
|
524
608
|
*
|
|
525
609
|
* This endpoint is available to all users in the organization.
|
|
526
610
|
*
|
|
@@ -542,33 +626,7 @@ export class UsersService {
|
|
|
542
626
|
...options,
|
|
543
627
|
headers: {
|
|
544
628
|
'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
|
|
629
|
+
...options.headers
|
|
572
630
|
}
|
|
573
631
|
});
|
|
574
632
|
}
|
package/dist/sdk.gen.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sdk.gen.js","sourceRoot":"","sources":["../src/sdk.gen.ts"],"names":[],"mappings":"AAAA,qDAAqD;AAIrD,OAAO,EAAE,MAAM,IAAI,aAAa,EAAE,MAAM,cAAc,CAAC;AAgBvD,MAAM,OAAO,cAAc;IACvB;;;;OAIG;IACI,MAAM,CAAC,QAAQ,CAAuC,OAA6C;QACtG,OAAO,CAAC,OAAO,EAAE,MAAM,IAAI,aAAa,CAAC,CAAC,GAAG,
|
|
1
|
+
{"version":3,"file":"sdk.gen.js","sourceRoot":"","sources":["../src/sdk.gen.ts"],"names":[],"mappings":"AAAA,qDAAqD;AAIrD,OAAO,EAAE,MAAM,IAAI,aAAa,EAAE,MAAM,cAAc,CAAC;AAgBvD,MAAM,OAAO,cAAc;IACvB;;;;OAIG;IACI,MAAM,CAAC,QAAQ,CAAuC,OAA6C;QACtG,OAAO,CAAC,OAAO,EAAE,MAAM,IAAI,aAAa,CAAC,CAAC,GAAG,CAAkD;YAC3F,GAAG,EAAE,gBAAgB;YACrB,GAAG,OAAO;SACb,CAAC,CAAC;IACP,CAAC;IAED;;;;OAIG;IACI,MAAM,CAAC,UAAU,CAAuC,OAA+C;QAC1G,OAAO,CAAC,OAAO,EAAE,MAAM,IAAI,aAAa,CAAC,CAAC,GAAG,CAA6C;YACtF,GAAG,EAAE,kBAAkB;YACvB,GAAG,OAAO;SACb,CAAC,CAAC;IACP,CAAC;IAED;;;;OAIG;IACI,MAAM,CAAC,gBAAgB,CAAuC,OAAqD;QACtH,OAAO,CAAC,OAAO,EAAE,MAAM,IAAI,aAAa,CAAC,CAAC,GAAG,CAAkE;YAC3G,GAAG,EAAE,yBAAyB;YAC9B,GAAG,OAAO;SACb,CAAC,CAAC;IACP,CAAC;IAED;;;;OAIG;IACI,MAAM,CAAC,sBAAsB,CAAuC,OAA2D;QAClI,OAAO,CAAC,OAAO,EAAE,MAAM,IAAI,aAAa,CAAC,CAAC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kBAAkB;YACvB,GAAG,OAAO;YACV,OAAO,EAAE;gBACL,cAAc,EAAE,kBAAkB;gBAClC,GAAG,OAAO,CAAC,OAAO;aACrB;SACJ,CAAC,CAAC;IACP,CAAC;CACJ"}
|
|
@@ -0,0 +1,196 @@
|
|
|
1
|
+
import { OpPatch } from "json-patch";
|
|
2
|
+
import { KubernetesObject } from "./types";
|
|
3
|
+
/**
|
|
4
|
+
* QueryParamaters is a map of query parameters for the Kubernetes API.
|
|
5
|
+
*/
|
|
6
|
+
interface QueryParameters {
|
|
7
|
+
/**
|
|
8
|
+
* Continue token for paging through large result sets.
|
|
9
|
+
*
|
|
10
|
+
* The continue option should be set when retrieving more results from the server.
|
|
11
|
+
* Since this value is server defined, clients may only use the continue value
|
|
12
|
+
* from a previous query result with identical query parameters
|
|
13
|
+
* (except for the value of continue) and the server may reject a continue value
|
|
14
|
+
* it does not recognize. If the specified continue value is no longer valid
|
|
15
|
+
* whether due to expiration (generally five to fifteen minutes) or a
|
|
16
|
+
* configuration change on the server, the server will respond with a
|
|
17
|
+
* 410 ResourceExpired error together with a continue token. If the client
|
|
18
|
+
* needs a consistent list, it must restart their list without the continue field.
|
|
19
|
+
* Otherwise, the client may send another list request with the token received
|
|
20
|
+
* with the 410 error, the server will respond with a list starting from the next
|
|
21
|
+
* key, but from the latest snapshot, which is inconsistent from the previous
|
|
22
|
+
* list results - objects that are created, modified, or deleted after the first
|
|
23
|
+
* list request will be included in the response, as long as their keys are after
|
|
24
|
+
* the "next key".
|
|
25
|
+
*
|
|
26
|
+
* This field is not supported when watch is true. Clients may start a watch from
|
|
27
|
+
* the last resourceVersion value returned by the server and not miss any modifications.
|
|
28
|
+
* @see https://kubernetes.io/docs/reference/using-api/api-concepts/#retrieving-large-results-sets-in-chunks
|
|
29
|
+
*/
|
|
30
|
+
continue?: string;
|
|
31
|
+
/**
|
|
32
|
+
* dryRun causes apiserver to simulate the request, and report whether the object would be modified.
|
|
33
|
+
* Can be '' or 'All'
|
|
34
|
+
*
|
|
35
|
+
* @see https://kubernetes.io/docs/reference/using-api/api-concepts/#dry-run
|
|
36
|
+
*/
|
|
37
|
+
dryRun?: string;
|
|
38
|
+
/**
|
|
39
|
+
* fieldSeletor restricts the list of returned objects by their fields. Defaults to everything.
|
|
40
|
+
*
|
|
41
|
+
* @see https://kubernetes.io/docs/concepts/overview/working-with-objects/field-selectors/
|
|
42
|
+
*/
|
|
43
|
+
fieldSelector?: string;
|
|
44
|
+
/**
|
|
45
|
+
* labelSelector restricts the list of returned objects by their labels. Defaults to everything.
|
|
46
|
+
*
|
|
47
|
+
* @see https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#api
|
|
48
|
+
* @see https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors
|
|
49
|
+
*/
|
|
50
|
+
labelSelector?: string;
|
|
51
|
+
/**
|
|
52
|
+
* limit is a maximum number of responses to return for a list call.
|
|
53
|
+
*
|
|
54
|
+
* If more items exist, the server will set the continue field on the list
|
|
55
|
+
* metadata to a value that can be used with the same initial query to retrieve
|
|
56
|
+
* the next set of results. Setting a limit may return fewer than the requested
|
|
57
|
+
* amount of items (up to zero items) in the event all requested objects are
|
|
58
|
+
* filtered out and clients should only use the presence of the continue field
|
|
59
|
+
* to determine whether more results are available. Servers may choose not to
|
|
60
|
+
* support the limit argument and will return all of the available results.
|
|
61
|
+
* If limit is specified and the continue field is empty, clients may assume
|
|
62
|
+
* that no more results are available.
|
|
63
|
+
*
|
|
64
|
+
* This field is not supported if watch is true.
|
|
65
|
+
* @see https://kubernetes.io/docs/reference/using-api/api-concepts/#retrieving-large-results-sets-in-chunks
|
|
66
|
+
*/
|
|
67
|
+
limit?: string | number;
|
|
68
|
+
/**
|
|
69
|
+
* resourceVersion sets a constraint on what resource versions a request may be served from.
|
|
70
|
+
* Defaults to unset
|
|
71
|
+
*
|
|
72
|
+
* @see https://kubernetes.io/docs/reference/using-api/api-concepts/#efficient-detection-of-changes
|
|
73
|
+
* @see https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions
|
|
74
|
+
*/
|
|
75
|
+
resourceVersion?: string;
|
|
76
|
+
/**
|
|
77
|
+
* allowWatchBookmarks means watch events with type "BOOKMARK" will also be sent.
|
|
78
|
+
*
|
|
79
|
+
* Can be 'true'
|
|
80
|
+
* @see https://kubernetes.io/docs/reference/using-api/api-concepts/#watch-bookmarks
|
|
81
|
+
*/
|
|
82
|
+
allowWatchBookmarks?: string;
|
|
83
|
+
/**
|
|
84
|
+
* sendInitialEvents controls whether the server will send the events
|
|
85
|
+
* for a watch before sending the current list state.
|
|
86
|
+
*
|
|
87
|
+
* Can be 'true'.
|
|
88
|
+
* @see https://kubernetes.io/docs/reference/using-api/api-concepts/#streaming-lists
|
|
89
|
+
*/
|
|
90
|
+
sendInitialEvents?: string;
|
|
91
|
+
/**
|
|
92
|
+
* The resource version to match.
|
|
93
|
+
*
|
|
94
|
+
* @see https://kubernetes.io/docs/reference/using-api/api-concepts/#semantics-for-get-and-list
|
|
95
|
+
*/
|
|
96
|
+
resourceVersionMatch?: string;
|
|
97
|
+
/**
|
|
98
|
+
* If 'true', then the output is pretty printed.
|
|
99
|
+
* Can be '' or 'true'
|
|
100
|
+
* @see https://kubernetes.io/docs/reference/using-api/api-concepts/#output-options
|
|
101
|
+
*/
|
|
102
|
+
pretty?: string;
|
|
103
|
+
/**
|
|
104
|
+
* watch instead of a list or get, watch for changes to the requested object(s).
|
|
105
|
+
*
|
|
106
|
+
* Can be 1.
|
|
107
|
+
* @see https://kubernetes.io/docs/reference/using-api/api-concepts/#efficient-detection-of-changes
|
|
108
|
+
*/
|
|
109
|
+
watch?: string;
|
|
110
|
+
}
|
|
111
|
+
export interface ApiInterface {
|
|
112
|
+
isNamespaced: boolean;
|
|
113
|
+
apiGroup: string;
|
|
114
|
+
apiVersion: string;
|
|
115
|
+
apiResource: string;
|
|
116
|
+
apiRoot: string;
|
|
117
|
+
list: (namespace?: string, queryParams?: QueryParameters) => Promise<KubernetesObject[]>;
|
|
118
|
+
get: (name: string, namespace?: string, queryParams?: QueryParameters) => Promise<KubernetesObject>;
|
|
119
|
+
post: (body: KubernetesObject, queryParams?: QueryParameters) => any;
|
|
120
|
+
patch: (body: OpPatch[], name: string, namespace?: string, queryParams?: QueryParameters) => any;
|
|
121
|
+
put: (body: KubernetesObject, queryParams?: QueryParameters) => any;
|
|
122
|
+
delete: (name: string, namespace?: string, queryParams?: QueryParameters) => any;
|
|
123
|
+
}
|
|
124
|
+
export default class Api<T extends KubernetesObject> implements ApiInterface {
|
|
125
|
+
private baseUrl;
|
|
126
|
+
kind: string;
|
|
127
|
+
apiGroup: string;
|
|
128
|
+
apiVersion: string;
|
|
129
|
+
apiResource: string;
|
|
130
|
+
apiRoot: string;
|
|
131
|
+
isNamespaced: boolean;
|
|
132
|
+
constructor(baseUrl: string, kind: string, apiGroup: string, apiVersion: string, apiResource: string, isNamespaced?: boolean);
|
|
133
|
+
private url;
|
|
134
|
+
/**
|
|
135
|
+
* Converts k8s queryParams to a URL query string.
|
|
136
|
+
*
|
|
137
|
+
* @param queryParams - The k8s API query parameters to convert.
|
|
138
|
+
* @returns The query string (starting with '?'), or empty string.
|
|
139
|
+
*/
|
|
140
|
+
private asQuery;
|
|
141
|
+
/**
|
|
142
|
+
* Combines a base path and a path to create a full path.
|
|
143
|
+
*
|
|
144
|
+
* Doesn't matter if the start or the end has a single slash, the result will always have a single slash.
|
|
145
|
+
*
|
|
146
|
+
* @param base - The base path.
|
|
147
|
+
* @param path - The path to combine with the base path.
|
|
148
|
+
*
|
|
149
|
+
* @returns The combined path.
|
|
150
|
+
*/
|
|
151
|
+
private combinePath;
|
|
152
|
+
list(namespace?: string, queryParams?: QueryParameters): Promise<T[]>;
|
|
153
|
+
get(name: string, namespace?: string, queryParams?: QueryParameters): Promise<T>;
|
|
154
|
+
post(body: KubernetesObject, queryParams?: QueryParameters): Promise<({
|
|
155
|
+
data: string;
|
|
156
|
+
error: undefined;
|
|
157
|
+
} | {
|
|
158
|
+
data: undefined;
|
|
159
|
+
error: unknown;
|
|
160
|
+
}) & {
|
|
161
|
+
request: Request;
|
|
162
|
+
response: Response;
|
|
163
|
+
}>;
|
|
164
|
+
patch(body: OpPatch[], name: string, namespace?: string, queryParams?: QueryParameters): Promise<({
|
|
165
|
+
data: string;
|
|
166
|
+
error: undefined;
|
|
167
|
+
} | {
|
|
168
|
+
data: undefined;
|
|
169
|
+
error: unknown;
|
|
170
|
+
}) & {
|
|
171
|
+
request: Request;
|
|
172
|
+
response: Response;
|
|
173
|
+
}>;
|
|
174
|
+
put(body: KubernetesObject, queryParams?: QueryParameters): Promise<({
|
|
175
|
+
data: string;
|
|
176
|
+
error: undefined;
|
|
177
|
+
} | {
|
|
178
|
+
data: undefined;
|
|
179
|
+
error: unknown;
|
|
180
|
+
}) & {
|
|
181
|
+
request: Request;
|
|
182
|
+
response: Response;
|
|
183
|
+
}>;
|
|
184
|
+
delete(name: string, namespace?: string, queryParams?: QueryParameters): Promise<({
|
|
185
|
+
data: string;
|
|
186
|
+
error: undefined;
|
|
187
|
+
} | {
|
|
188
|
+
data: undefined;
|
|
189
|
+
error: unknown;
|
|
190
|
+
}) & {
|
|
191
|
+
request: Request;
|
|
192
|
+
response: Response;
|
|
193
|
+
}>;
|
|
194
|
+
}
|
|
195
|
+
export {};
|
|
196
|
+
//# sourceMappingURL=api.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../../src/services/kubernetes/api.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAErC,OAAO,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAI3C;;GAEG;AACH,UAAU,eAAe;IACrB;;;;;;;;;;;;;;;;;;;;;;OAsBG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;;;OAKG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,aA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