@openshift-migration-advisor/planner-sdk 0.9.0 → 0.10.0-fa4e0ff47672

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.
Files changed (94) hide show
  1. package/.openapi-generator/FILES +22 -0
  2. package/README.md +30 -11
  3. package/dist/apis/AccountApi.d.ts +390 -0
  4. package/dist/apis/AccountApi.js +454 -0
  5. package/dist/apis/AssessmentApi.d.ts +38 -1
  6. package/dist/apis/AssessmentApi.js +44 -0
  7. package/dist/apis/index.d.ts +1 -0
  8. package/dist/apis/index.js +1 -0
  9. package/dist/esm/apis/AccountApi.d.ts +390 -0
  10. package/dist/esm/apis/AccountApi.js +450 -0
  11. package/dist/esm/apis/AssessmentApi.d.ts +38 -1
  12. package/dist/esm/apis/AssessmentApi.js +45 -1
  13. package/dist/esm/apis/index.d.ts +1 -0
  14. package/dist/esm/apis/index.js +1 -0
  15. package/dist/esm/models/ComplexityOSNameEntry.d.ts +1 -1
  16. package/dist/esm/models/ComplexityOSScoreEntry.d.ts +1 -1
  17. package/dist/esm/models/EstimationContext.d.ts +40 -0
  18. package/dist/esm/models/EstimationContext.js +43 -0
  19. package/dist/esm/models/Group.d.ts +82 -0
  20. package/dist/esm/models/Group.js +76 -0
  21. package/dist/esm/models/GroupCreate.d.ts +64 -0
  22. package/dist/esm/models/GroupCreate.js +66 -0
  23. package/dist/esm/models/GroupUpdate.d.ts +50 -0
  24. package/dist/esm/models/GroupUpdate.js +47 -0
  25. package/dist/esm/models/Identity.d.ts +60 -0
  26. package/dist/esm/models/Identity.js +60 -0
  27. package/dist/esm/models/Member.d.ts +56 -0
  28. package/dist/esm/models/Member.js +57 -0
  29. package/dist/esm/models/MemberCreate.d.ts +38 -0
  30. package/dist/esm/models/MemberCreate.js +47 -0
  31. package/dist/esm/models/MemberUpdate.d.ts +32 -0
  32. package/dist/esm/models/MemberUpdate.js +41 -0
  33. package/dist/esm/models/MigrationComplexityResponse.d.ts +2 -2
  34. package/dist/esm/models/MigrationEstimationByComplexityResponse.d.ts +50 -0
  35. package/dist/esm/models/MigrationEstimationByComplexityResponse.js +51 -0
  36. package/dist/esm/models/OsDiskEstimationEntry.d.ts +53 -0
  37. package/dist/esm/models/OsDiskEstimationEntry.js +55 -0
  38. package/dist/esm/models/index.d.ts +10 -0
  39. package/dist/esm/models/index.js +10 -0
  40. package/dist/models/ComplexityOSNameEntry.d.ts +1 -1
  41. package/dist/models/ComplexityOSScoreEntry.d.ts +1 -1
  42. package/dist/models/EstimationContext.d.ts +40 -0
  43. package/dist/models/EstimationContext.js +50 -0
  44. package/dist/models/Group.d.ts +82 -0
  45. package/dist/models/Group.js +84 -0
  46. package/dist/models/GroupCreate.d.ts +64 -0
  47. package/dist/models/GroupCreate.js +74 -0
  48. package/dist/models/GroupUpdate.d.ts +50 -0
  49. package/dist/models/GroupUpdate.js +54 -0
  50. package/dist/models/Identity.d.ts +60 -0
  51. package/dist/models/Identity.js +68 -0
  52. package/dist/models/Member.d.ts +56 -0
  53. package/dist/models/Member.js +64 -0
  54. package/dist/models/MemberCreate.d.ts +38 -0
  55. package/dist/models/MemberCreate.js +54 -0
  56. package/dist/models/MemberUpdate.d.ts +32 -0
  57. package/dist/models/MemberUpdate.js +48 -0
  58. package/dist/models/MigrationComplexityResponse.d.ts +2 -2
  59. package/dist/models/MigrationEstimationByComplexityResponse.d.ts +50 -0
  60. package/dist/models/MigrationEstimationByComplexityResponse.js +58 -0
  61. package/dist/models/OsDiskEstimationEntry.d.ts +53 -0
  62. package/dist/models/OsDiskEstimationEntry.js +62 -0
  63. package/dist/models/index.d.ts +10 -0
  64. package/dist/models/index.js +10 -0
  65. package/docs/AccountApi.md +734 -0
  66. package/docs/AssessmentApi.md +76 -0
  67. package/docs/EstimationContext.md +36 -0
  68. package/docs/Group.md +48 -0
  69. package/docs/GroupCreate.md +42 -0
  70. package/docs/GroupUpdate.md +40 -0
  71. package/docs/Identity.md +40 -0
  72. package/docs/Member.md +42 -0
  73. package/docs/MemberCreate.md +36 -0
  74. package/docs/MemberUpdate.md +34 -0
  75. package/docs/MigrationEstimationByComplexityResponse.md +38 -0
  76. package/docs/OsDiskEstimationEntry.md +40 -0
  77. package/package.json +1 -1
  78. package/src/apis/AccountApi.ts +834 -0
  79. package/src/apis/AssessmentApi.ts +87 -0
  80. package/src/apis/index.ts +1 -0
  81. package/src/models/ComplexityOSNameEntry.ts +1 -1
  82. package/src/models/ComplexityOSScoreEntry.ts +1 -1
  83. package/src/models/EstimationContext.ts +73 -0
  84. package/src/models/Group.ts +139 -0
  85. package/src/models/GroupCreate.ts +113 -0
  86. package/src/models/GroupUpdate.ts +89 -0
  87. package/src/models/Identity.ts +104 -0
  88. package/src/models/Member.ts +101 -0
  89. package/src/models/MemberCreate.ts +75 -0
  90. package/src/models/MemberUpdate.ts +65 -0
  91. package/src/models/MigrationComplexityResponse.ts +2 -2
  92. package/src/models/MigrationEstimationByComplexityResponse.ts +98 -0
  93. package/src/models/OsDiskEstimationEntry.ts +100 -0
  94. package/src/models/index.ts +10 -0
@@ -0,0 +1,734 @@
1
+ # AccountApi
2
+
3
+ All URIs are relative to *https://raw.githubusercontent.com*
4
+
5
+ | Method | HTTP request | Description |
6
+ |------------- | ------------- | -------------|
7
+ | [**createGroup**](AccountApi.md#creategroup) | **POST** /api/v1/groups | |
8
+ | [**createGroupMember**](AccountApi.md#creategroupmember) | **POST** /api/v1/groups/{id}/members | |
9
+ | [**deleteGroup**](AccountApi.md#deletegroup) | **DELETE** /api/v1/groups/{id} | |
10
+ | [**getGroup**](AccountApi.md#getgroup) | **GET** /api/v1/groups/{id} | |
11
+ | [**getIdentity**](AccountApi.md#getidentity) | **GET** /api/v1/identity | |
12
+ | [**listGroupMembers**](AccountApi.md#listgroupmembers) | **GET** /api/v1/groups/{id}/members | |
13
+ | [**listGroups**](AccountApi.md#listgroups) | **GET** /api/v1/groups | |
14
+ | [**removeGroupMember**](AccountApi.md#removegroupmember) | **DELETE** /api/v1/groups/{id}/members/{username} | |
15
+ | [**updateGroup**](AccountApi.md#updategroup) | **PUT** /api/v1/groups/{id} | |
16
+ | [**updateGroupMember**](AccountApi.md#updategroupmember) | **PUT** /api/v1/groups/{id}/members/{username} | |
17
+
18
+
19
+
20
+ ## createGroup
21
+
22
+ > Group createGroup(groupCreate)
23
+
24
+
25
+
26
+ Create a group
27
+
28
+ ### Example
29
+
30
+ ```ts
31
+ import {
32
+ Configuration,
33
+ AccountApi,
34
+ } from '@openshift-migration-advisor/planner-sdk';
35
+ import type { CreateGroupRequest } from '@openshift-migration-advisor/planner-sdk';
36
+
37
+ async function example() {
38
+ console.log("🚀 Testing @openshift-migration-advisor/planner-sdk SDK...");
39
+ const api = new AccountApi();
40
+
41
+ const body = {
42
+ // GroupCreate
43
+ groupCreate: ...,
44
+ } satisfies CreateGroupRequest;
45
+
46
+ try {
47
+ const data = await api.createGroup(body);
48
+ console.log(data);
49
+ } catch (error) {
50
+ console.error(error);
51
+ }
52
+ }
53
+
54
+ // Run the test
55
+ example().catch(console.error);
56
+ ```
57
+
58
+ ### Parameters
59
+
60
+
61
+ | Name | Type | Description | Notes |
62
+ |------------- | ------------- | ------------- | -------------|
63
+ | **groupCreate** | [GroupCreate](GroupCreate.md) | | |
64
+
65
+ ### Return type
66
+
67
+ [**Group**](Group.md)
68
+
69
+ ### Authorization
70
+
71
+ No authorization required
72
+
73
+ ### HTTP request headers
74
+
75
+ - **Content-Type**: `application/json`
76
+ - **Accept**: `application/json`
77
+
78
+
79
+ ### HTTP response details
80
+ | Status code | Description | Response headers |
81
+ |-------------|-------------|------------------|
82
+ | **201** | Created | - |
83
+ | **400** | Bad Request | - |
84
+ | **401** | Unauthorized | - |
85
+ | **500** | Internal error | - |
86
+
87
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
88
+
89
+
90
+ ## createGroupMember
91
+
92
+ > Member createGroupMember(id, memberCreate)
93
+
94
+
95
+
96
+ Create a member in a group
97
+
98
+ ### Example
99
+
100
+ ```ts
101
+ import {
102
+ Configuration,
103
+ AccountApi,
104
+ } from '@openshift-migration-advisor/planner-sdk';
105
+ import type { CreateGroupMemberRequest } from '@openshift-migration-advisor/planner-sdk';
106
+
107
+ async function example() {
108
+ console.log("🚀 Testing @openshift-migration-advisor/planner-sdk SDK...");
109
+ const api = new AccountApi();
110
+
111
+ const body = {
112
+ // string | ID of the group
113
+ id: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
114
+ // MemberCreate
115
+ memberCreate: ...,
116
+ } satisfies CreateGroupMemberRequest;
117
+
118
+ try {
119
+ const data = await api.createGroupMember(body);
120
+ console.log(data);
121
+ } catch (error) {
122
+ console.error(error);
123
+ }
124
+ }
125
+
126
+ // Run the test
127
+ example().catch(console.error);
128
+ ```
129
+
130
+ ### Parameters
131
+
132
+
133
+ | Name | Type | Description | Notes |
134
+ |------------- | ------------- | ------------- | -------------|
135
+ | **id** | `string` | ID of the group | [Defaults to `undefined`] |
136
+ | **memberCreate** | [MemberCreate](MemberCreate.md) | | |
137
+
138
+ ### Return type
139
+
140
+ [**Member**](Member.md)
141
+
142
+ ### Authorization
143
+
144
+ No authorization required
145
+
146
+ ### HTTP request headers
147
+
148
+ - **Content-Type**: `application/json`
149
+ - **Accept**: `application/json`
150
+
151
+
152
+ ### HTTP response details
153
+ | Status code | Description | Response headers |
154
+ |-------------|-------------|------------------|
155
+ | **201** | Created | - |
156
+ | **400** | Bad Request | - |
157
+ | **401** | Unauthorized | - |
158
+ | **404** | Not Found | - |
159
+ | **409** | Conflict | - |
160
+ | **500** | Internal error | - |
161
+
162
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
163
+
164
+
165
+ ## deleteGroup
166
+
167
+ > Group deleteGroup(id)
168
+
169
+
170
+
171
+ Delete a group
172
+
173
+ ### Example
174
+
175
+ ```ts
176
+ import {
177
+ Configuration,
178
+ AccountApi,
179
+ } from '@openshift-migration-advisor/planner-sdk';
180
+ import type { DeleteGroupRequest } from '@openshift-migration-advisor/planner-sdk';
181
+
182
+ async function example() {
183
+ console.log("🚀 Testing @openshift-migration-advisor/planner-sdk SDK...");
184
+ const api = new AccountApi();
185
+
186
+ const body = {
187
+ // string | ID of the group
188
+ id: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
189
+ } satisfies DeleteGroupRequest;
190
+
191
+ try {
192
+ const data = await api.deleteGroup(body);
193
+ console.log(data);
194
+ } catch (error) {
195
+ console.error(error);
196
+ }
197
+ }
198
+
199
+ // Run the test
200
+ example().catch(console.error);
201
+ ```
202
+
203
+ ### Parameters
204
+
205
+
206
+ | Name | Type | Description | Notes |
207
+ |------------- | ------------- | ------------- | -------------|
208
+ | **id** | `string` | ID of the group | [Defaults to `undefined`] |
209
+
210
+ ### Return type
211
+
212
+ [**Group**](Group.md)
213
+
214
+ ### Authorization
215
+
216
+ No authorization required
217
+
218
+ ### HTTP request headers
219
+
220
+ - **Content-Type**: Not defined
221
+ - **Accept**: `application/json`
222
+
223
+
224
+ ### HTTP response details
225
+ | Status code | Description | Response headers |
226
+ |-------------|-------------|------------------|
227
+ | **200** | OK | - |
228
+ | **401** | Unauthorized | - |
229
+ | **404** | Not Found | - |
230
+ | **500** | Internal error | - |
231
+
232
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
233
+
234
+
235
+ ## getGroup
236
+
237
+ > Group getGroup(id)
238
+
239
+
240
+
241
+ Get a group by ID
242
+
243
+ ### Example
244
+
245
+ ```ts
246
+ import {
247
+ Configuration,
248
+ AccountApi,
249
+ } from '@openshift-migration-advisor/planner-sdk';
250
+ import type { GetGroupRequest } from '@openshift-migration-advisor/planner-sdk';
251
+
252
+ async function example() {
253
+ console.log("🚀 Testing @openshift-migration-advisor/planner-sdk SDK...");
254
+ const api = new AccountApi();
255
+
256
+ const body = {
257
+ // string | ID of the group
258
+ id: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
259
+ } satisfies GetGroupRequest;
260
+
261
+ try {
262
+ const data = await api.getGroup(body);
263
+ console.log(data);
264
+ } catch (error) {
265
+ console.error(error);
266
+ }
267
+ }
268
+
269
+ // Run the test
270
+ example().catch(console.error);
271
+ ```
272
+
273
+ ### Parameters
274
+
275
+
276
+ | Name | Type | Description | Notes |
277
+ |------------- | ------------- | ------------- | -------------|
278
+ | **id** | `string` | ID of the group | [Defaults to `undefined`] |
279
+
280
+ ### Return type
281
+
282
+ [**Group**](Group.md)
283
+
284
+ ### Authorization
285
+
286
+ No authorization required
287
+
288
+ ### HTTP request headers
289
+
290
+ - **Content-Type**: Not defined
291
+ - **Accept**: `application/json`
292
+
293
+
294
+ ### HTTP response details
295
+ | Status code | Description | Response headers |
296
+ |-------------|-------------|------------------|
297
+ | **200** | OK | - |
298
+ | **401** | Unauthorized | - |
299
+ | **404** | Not Found | - |
300
+ | **500** | Internal error | - |
301
+
302
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
303
+
304
+
305
+ ## getIdentity
306
+
307
+ > Identity getIdentity()
308
+
309
+
310
+
311
+ Returns the authenticated user\'s profile. If a local account exists, returns stored user data. Otherwise returns a synthesized regular user.
312
+
313
+ ### Example
314
+
315
+ ```ts
316
+ import {
317
+ Configuration,
318
+ AccountApi,
319
+ } from '@openshift-migration-advisor/planner-sdk';
320
+ import type { GetIdentityRequest } from '@openshift-migration-advisor/planner-sdk';
321
+
322
+ async function example() {
323
+ console.log("🚀 Testing @openshift-migration-advisor/planner-sdk SDK...");
324
+ const api = new AccountApi();
325
+
326
+ try {
327
+ const data = await api.getIdentity();
328
+ console.log(data);
329
+ } catch (error) {
330
+ console.error(error);
331
+ }
332
+ }
333
+
334
+ // Run the test
335
+ example().catch(console.error);
336
+ ```
337
+
338
+ ### Parameters
339
+
340
+ This endpoint does not need any parameter.
341
+
342
+ ### Return type
343
+
344
+ [**Identity**](Identity.md)
345
+
346
+ ### Authorization
347
+
348
+ No authorization required
349
+
350
+ ### HTTP request headers
351
+
352
+ - **Content-Type**: Not defined
353
+ - **Accept**: `application/json`
354
+
355
+
356
+ ### HTTP response details
357
+ | Status code | Description | Response headers |
358
+ |-------------|-------------|------------------|
359
+ | **200** | OK | - |
360
+ | **401** | Unauthorized | - |
361
+ | **500** | Internal error | - |
362
+
363
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
364
+
365
+
366
+ ## listGroupMembers
367
+
368
+ > Array<Member> listGroupMembers(id)
369
+
370
+
371
+
372
+ List members in a group
373
+
374
+ ### Example
375
+
376
+ ```ts
377
+ import {
378
+ Configuration,
379
+ AccountApi,
380
+ } from '@openshift-migration-advisor/planner-sdk';
381
+ import type { ListGroupMembersRequest } from '@openshift-migration-advisor/planner-sdk';
382
+
383
+ async function example() {
384
+ console.log("🚀 Testing @openshift-migration-advisor/planner-sdk SDK...");
385
+ const api = new AccountApi();
386
+
387
+ const body = {
388
+ // string | ID of the group
389
+ id: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
390
+ } satisfies ListGroupMembersRequest;
391
+
392
+ try {
393
+ const data = await api.listGroupMembers(body);
394
+ console.log(data);
395
+ } catch (error) {
396
+ console.error(error);
397
+ }
398
+ }
399
+
400
+ // Run the test
401
+ example().catch(console.error);
402
+ ```
403
+
404
+ ### Parameters
405
+
406
+
407
+ | Name | Type | Description | Notes |
408
+ |------------- | ------------- | ------------- | -------------|
409
+ | **id** | `string` | ID of the group | [Defaults to `undefined`] |
410
+
411
+ ### Return type
412
+
413
+ [**Array<Member>**](Member.md)
414
+
415
+ ### Authorization
416
+
417
+ No authorization required
418
+
419
+ ### HTTP request headers
420
+
421
+ - **Content-Type**: Not defined
422
+ - **Accept**: `application/json`
423
+
424
+
425
+ ### HTTP response details
426
+ | Status code | Description | Response headers |
427
+ |-------------|-------------|------------------|
428
+ | **200** | OK | - |
429
+ | **401** | Unauthorized | - |
430
+ | **404** | Not Found | - |
431
+ | **500** | Internal error | - |
432
+
433
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
434
+
435
+
436
+ ## listGroups
437
+
438
+ > Array<Group> listGroups(kind, name, company)
439
+
440
+
441
+
442
+ List all groups
443
+
444
+ ### Example
445
+
446
+ ```ts
447
+ import {
448
+ Configuration,
449
+ AccountApi,
450
+ } from '@openshift-migration-advisor/planner-sdk';
451
+ import type { ListGroupsRequest } from '@openshift-migration-advisor/planner-sdk';
452
+
453
+ async function example() {
454
+ console.log("🚀 Testing @openshift-migration-advisor/planner-sdk SDK...");
455
+ const api = new AccountApi();
456
+
457
+ const body = {
458
+ // 'partner' | 'admin' | Filter by group kind (optional)
459
+ kind: kind_example,
460
+ // string | Filter by name (case-insensitive partial match) (optional)
461
+ name: name_example,
462
+ // string | Filter by company (case-insensitive partial match) (optional)
463
+ company: company_example,
464
+ } satisfies ListGroupsRequest;
465
+
466
+ try {
467
+ const data = await api.listGroups(body);
468
+ console.log(data);
469
+ } catch (error) {
470
+ console.error(error);
471
+ }
472
+ }
473
+
474
+ // Run the test
475
+ example().catch(console.error);
476
+ ```
477
+
478
+ ### Parameters
479
+
480
+
481
+ | Name | Type | Description | Notes |
482
+ |------------- | ------------- | ------------- | -------------|
483
+ | **kind** | `partner`, `admin` | Filter by group kind | [Optional] [Defaults to `undefined`] [Enum: partner, admin] |
484
+ | **name** | `string` | Filter by name (case-insensitive partial match) | [Optional] [Defaults to `undefined`] |
485
+ | **company** | `string` | Filter by company (case-insensitive partial match) | [Optional] [Defaults to `undefined`] |
486
+
487
+ ### Return type
488
+
489
+ [**Array<Group>**](Group.md)
490
+
491
+ ### Authorization
492
+
493
+ No authorization required
494
+
495
+ ### HTTP request headers
496
+
497
+ - **Content-Type**: Not defined
498
+ - **Accept**: `application/json`
499
+
500
+
501
+ ### HTTP response details
502
+ | Status code | Description | Response headers |
503
+ |-------------|-------------|------------------|
504
+ | **200** | OK | - |
505
+ | **401** | Unauthorized | - |
506
+ | **500** | Internal error | - |
507
+
508
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
509
+
510
+
511
+ ## removeGroupMember
512
+
513
+ > removeGroupMember(id, username)
514
+
515
+
516
+
517
+ Delete the member record from the specified group. Because a member must always belong to a group, this operation permanently deletes the member — not just the membership.
518
+
519
+ ### Example
520
+
521
+ ```ts
522
+ import {
523
+ Configuration,
524
+ AccountApi,
525
+ } from '@openshift-migration-advisor/planner-sdk';
526
+ import type { RemoveGroupMemberRequest } from '@openshift-migration-advisor/planner-sdk';
527
+
528
+ async function example() {
529
+ console.log("🚀 Testing @openshift-migration-advisor/planner-sdk SDK...");
530
+ const api = new AccountApi();
531
+
532
+ const body = {
533
+ // string | ID of the group
534
+ id: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
535
+ // string | Username of the member
536
+ username: username_example,
537
+ } satisfies RemoveGroupMemberRequest;
538
+
539
+ try {
540
+ const data = await api.removeGroupMember(body);
541
+ console.log(data);
542
+ } catch (error) {
543
+ console.error(error);
544
+ }
545
+ }
546
+
547
+ // Run the test
548
+ example().catch(console.error);
549
+ ```
550
+
551
+ ### Parameters
552
+
553
+
554
+ | Name | Type | Description | Notes |
555
+ |------------- | ------------- | ------------- | -------------|
556
+ | **id** | `string` | ID of the group | [Defaults to `undefined`] |
557
+ | **username** | `string` | Username of the member | [Defaults to `undefined`] |
558
+
559
+ ### Return type
560
+
561
+ `void` (Empty response body)
562
+
563
+ ### Authorization
564
+
565
+ No authorization required
566
+
567
+ ### HTTP request headers
568
+
569
+ - **Content-Type**: Not defined
570
+ - **Accept**: `application/json`
571
+
572
+
573
+ ### HTTP response details
574
+ | Status code | Description | Response headers |
575
+ |-------------|-------------|------------------|
576
+ | **200** | OK | - |
577
+ | **401** | Unauthorized | - |
578
+ | **400** | Bad Request | - |
579
+ | **404** | Not Found | - |
580
+ | **500** | Internal error | - |
581
+
582
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
583
+
584
+
585
+ ## updateGroup
586
+
587
+ > Group updateGroup(id, groupUpdate)
588
+
589
+
590
+
591
+ Update a group
592
+
593
+ ### Example
594
+
595
+ ```ts
596
+ import {
597
+ Configuration,
598
+ AccountApi,
599
+ } from '@openshift-migration-advisor/planner-sdk';
600
+ import type { UpdateGroupRequest } from '@openshift-migration-advisor/planner-sdk';
601
+
602
+ async function example() {
603
+ console.log("🚀 Testing @openshift-migration-advisor/planner-sdk SDK...");
604
+ const api = new AccountApi();
605
+
606
+ const body = {
607
+ // string | ID of the group
608
+ id: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
609
+ // GroupUpdate
610
+ groupUpdate: ...,
611
+ } satisfies UpdateGroupRequest;
612
+
613
+ try {
614
+ const data = await api.updateGroup(body);
615
+ console.log(data);
616
+ } catch (error) {
617
+ console.error(error);
618
+ }
619
+ }
620
+
621
+ // Run the test
622
+ example().catch(console.error);
623
+ ```
624
+
625
+ ### Parameters
626
+
627
+
628
+ | Name | Type | Description | Notes |
629
+ |------------- | ------------- | ------------- | -------------|
630
+ | **id** | `string` | ID of the group | [Defaults to `undefined`] |
631
+ | **groupUpdate** | [GroupUpdate](GroupUpdate.md) | | |
632
+
633
+ ### Return type
634
+
635
+ [**Group**](Group.md)
636
+
637
+ ### Authorization
638
+
639
+ No authorization required
640
+
641
+ ### HTTP request headers
642
+
643
+ - **Content-Type**: `application/json`
644
+ - **Accept**: `application/json`
645
+
646
+
647
+ ### HTTP response details
648
+ | Status code | Description | Response headers |
649
+ |-------------|-------------|------------------|
650
+ | **200** | OK | - |
651
+ | **400** | Bad Request | - |
652
+ | **401** | Unauthorized | - |
653
+ | **404** | Not Found | - |
654
+ | **500** | Internal error | - |
655
+
656
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
657
+
658
+
659
+ ## updateGroupMember
660
+
661
+ > Member updateGroupMember(id, username, memberUpdate)
662
+
663
+
664
+
665
+ Update a member in a group
666
+
667
+ ### Example
668
+
669
+ ```ts
670
+ import {
671
+ Configuration,
672
+ AccountApi,
673
+ } from '@openshift-migration-advisor/planner-sdk';
674
+ import type { UpdateGroupMemberRequest } from '@openshift-migration-advisor/planner-sdk';
675
+
676
+ async function example() {
677
+ console.log("🚀 Testing @openshift-migration-advisor/planner-sdk SDK...");
678
+ const api = new AccountApi();
679
+
680
+ const body = {
681
+ // string | ID of the group
682
+ id: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
683
+ // string | Username of the member
684
+ username: username_example,
685
+ // MemberUpdate
686
+ memberUpdate: ...,
687
+ } satisfies UpdateGroupMemberRequest;
688
+
689
+ try {
690
+ const data = await api.updateGroupMember(body);
691
+ console.log(data);
692
+ } catch (error) {
693
+ console.error(error);
694
+ }
695
+ }
696
+
697
+ // Run the test
698
+ example().catch(console.error);
699
+ ```
700
+
701
+ ### Parameters
702
+
703
+
704
+ | Name | Type | Description | Notes |
705
+ |------------- | ------------- | ------------- | -------------|
706
+ | **id** | `string` | ID of the group | [Defaults to `undefined`] |
707
+ | **username** | `string` | Username of the member | [Defaults to `undefined`] |
708
+ | **memberUpdate** | [MemberUpdate](MemberUpdate.md) | | |
709
+
710
+ ### Return type
711
+
712
+ [**Member**](Member.md)
713
+
714
+ ### Authorization
715
+
716
+ No authorization required
717
+
718
+ ### HTTP request headers
719
+
720
+ - **Content-Type**: `application/json`
721
+ - **Accept**: `application/json`
722
+
723
+
724
+ ### HTTP response details
725
+ | Status code | Description | Response headers |
726
+ |-------------|-------------|------------------|
727
+ | **200** | OK | - |
728
+ | **400** | Bad Request | - |
729
+ | **401** | Unauthorized | - |
730
+ | **404** | Not Found | - |
731
+ | **500** | Internal error | - |
732
+
733
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
734
+