@openshift-migration-advisor/planner-sdk 0.9.0 → 0.10.0-783d8b3a2dc4

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 (103) hide show
  1. package/.openapi-generator/FILES +24 -0
  2. package/README.md +31 -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 +42 -13
  6. package/dist/apis/AssessmentApi.js +45 -1
  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 +42 -13
  12. package/dist/esm/apis/AssessmentApi.js +46 -2
  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/MigrationEstimationRequest.d.ts +1 -1
  37. package/dist/esm/models/MigrationEstimationResponse.d.ts +43 -0
  38. package/dist/esm/models/MigrationEstimationResponse.js +50 -0
  39. package/dist/esm/models/OsDiskEstimationEntry.d.ts +53 -0
  40. package/dist/esm/models/OsDiskEstimationEntry.js +55 -0
  41. package/dist/esm/models/index.d.ts +11 -0
  42. package/dist/esm/models/index.js +11 -0
  43. package/dist/models/ComplexityOSNameEntry.d.ts +1 -1
  44. package/dist/models/ComplexityOSScoreEntry.d.ts +1 -1
  45. package/dist/models/EstimationContext.d.ts +40 -0
  46. package/dist/models/EstimationContext.js +50 -0
  47. package/dist/models/Group.d.ts +82 -0
  48. package/dist/models/Group.js +84 -0
  49. package/dist/models/GroupCreate.d.ts +64 -0
  50. package/dist/models/GroupCreate.js +74 -0
  51. package/dist/models/GroupUpdate.d.ts +50 -0
  52. package/dist/models/GroupUpdate.js +54 -0
  53. package/dist/models/Identity.d.ts +60 -0
  54. package/dist/models/Identity.js +68 -0
  55. package/dist/models/Member.d.ts +56 -0
  56. package/dist/models/Member.js +64 -0
  57. package/dist/models/MemberCreate.d.ts +38 -0
  58. package/dist/models/MemberCreate.js +54 -0
  59. package/dist/models/MemberUpdate.d.ts +32 -0
  60. package/dist/models/MemberUpdate.js +48 -0
  61. package/dist/models/MigrationComplexityResponse.d.ts +2 -2
  62. package/dist/models/MigrationEstimationByComplexityResponse.d.ts +50 -0
  63. package/dist/models/MigrationEstimationByComplexityResponse.js +58 -0
  64. package/dist/models/MigrationEstimationRequest.d.ts +1 -1
  65. package/dist/models/MigrationEstimationResponse.d.ts +43 -0
  66. package/dist/models/MigrationEstimationResponse.js +57 -0
  67. package/dist/models/OsDiskEstimationEntry.d.ts +53 -0
  68. package/dist/models/OsDiskEstimationEntry.js +62 -0
  69. package/dist/models/index.d.ts +11 -0
  70. package/dist/models/index.js +11 -0
  71. package/docs/AccountApi.md +734 -0
  72. package/docs/AssessmentApi.md +78 -2
  73. package/docs/EstimationContext.md +36 -0
  74. package/docs/Group.md +48 -0
  75. package/docs/GroupCreate.md +42 -0
  76. package/docs/GroupUpdate.md +40 -0
  77. package/docs/Identity.md +40 -0
  78. package/docs/Member.md +42 -0
  79. package/docs/MemberCreate.md +36 -0
  80. package/docs/MemberUpdate.md +34 -0
  81. package/docs/MigrationEstimationByComplexityResponse.md +38 -0
  82. package/docs/MigrationEstimationResponse.md +37 -0
  83. package/docs/OsDiskEstimationEntry.md +40 -0
  84. package/package.json +1 -1
  85. package/src/apis/AccountApi.ts +834 -0
  86. package/src/apis/AssessmentApi.ts +95 -8
  87. package/src/apis/index.ts +1 -0
  88. package/src/models/ComplexityOSNameEntry.ts +1 -1
  89. package/src/models/ComplexityOSScoreEntry.ts +1 -1
  90. package/src/models/EstimationContext.ts +73 -0
  91. package/src/models/Group.ts +139 -0
  92. package/src/models/GroupCreate.ts +113 -0
  93. package/src/models/GroupUpdate.ts +89 -0
  94. package/src/models/Identity.ts +104 -0
  95. package/src/models/Member.ts +101 -0
  96. package/src/models/MemberCreate.ts +75 -0
  97. package/src/models/MemberUpdate.ts +65 -0
  98. package/src/models/MigrationComplexityResponse.ts +2 -2
  99. package/src/models/MigrationEstimationByComplexityResponse.ts +98 -0
  100. package/src/models/MigrationEstimationRequest.ts +1 -1
  101. package/src/models/MigrationEstimationResponse.ts +91 -0
  102. package/src/models/OsDiskEstimationEntry.ts +100 -0
  103. package/src/models/index.ts +11 -0
@@ -0,0 +1,454 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * OpenShift Migration Advisor API
6
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
+ *
8
+ * The version of the OpenAPI document: undefined
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
16
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
17
+ return new (P || (P = Promise))(function (resolve, reject) {
18
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
19
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
20
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
21
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
22
+ });
23
+ };
24
+ Object.defineProperty(exports, "__esModule", { value: true });
25
+ exports.ListGroupsKindEnum = exports.AccountApi = void 0;
26
+ const runtime = require("../runtime.js");
27
+ const index_js_1 = require("../models/index.js");
28
+ /**
29
+ *
30
+ */
31
+ class AccountApi extends runtime.BaseAPI {
32
+ /**
33
+ * Creates request options for createGroup without sending the request
34
+ */
35
+ createGroupRequestOpts(requestParameters) {
36
+ return __awaiter(this, void 0, void 0, function* () {
37
+ if (requestParameters['groupCreate'] == null) {
38
+ throw new runtime.RequiredError('groupCreate', 'Required parameter "groupCreate" was null or undefined when calling createGroup().');
39
+ }
40
+ const queryParameters = {};
41
+ const headerParameters = {};
42
+ headerParameters['Content-Type'] = 'application/json';
43
+ let urlPath = `/api/v1/groups`;
44
+ return {
45
+ path: urlPath,
46
+ method: 'POST',
47
+ headers: headerParameters,
48
+ query: queryParameters,
49
+ body: (0, index_js_1.GroupCreateToJSON)(requestParameters['groupCreate']),
50
+ };
51
+ });
52
+ }
53
+ /**
54
+ * Create a group
55
+ */
56
+ createGroupRaw(requestParameters, initOverrides) {
57
+ return __awaiter(this, void 0, void 0, function* () {
58
+ const requestOptions = yield this.createGroupRequestOpts(requestParameters);
59
+ const response = yield this.request(requestOptions, initOverrides);
60
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_js_1.GroupFromJSON)(jsonValue));
61
+ });
62
+ }
63
+ /**
64
+ * Create a group
65
+ */
66
+ createGroup(requestParameters, initOverrides) {
67
+ return __awaiter(this, void 0, void 0, function* () {
68
+ const response = yield this.createGroupRaw(requestParameters, initOverrides);
69
+ return yield response.value();
70
+ });
71
+ }
72
+ /**
73
+ * Creates request options for createGroupMember without sending the request
74
+ */
75
+ createGroupMemberRequestOpts(requestParameters) {
76
+ return __awaiter(this, void 0, void 0, function* () {
77
+ if (requestParameters['id'] == null) {
78
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling createGroupMember().');
79
+ }
80
+ if (requestParameters['memberCreate'] == null) {
81
+ throw new runtime.RequiredError('memberCreate', 'Required parameter "memberCreate" was null or undefined when calling createGroupMember().');
82
+ }
83
+ const queryParameters = {};
84
+ const headerParameters = {};
85
+ headerParameters['Content-Type'] = 'application/json';
86
+ let urlPath = `/api/v1/groups/{id}/members`;
87
+ urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
88
+ return {
89
+ path: urlPath,
90
+ method: 'POST',
91
+ headers: headerParameters,
92
+ query: queryParameters,
93
+ body: (0, index_js_1.MemberCreateToJSON)(requestParameters['memberCreate']),
94
+ };
95
+ });
96
+ }
97
+ /**
98
+ * Create a member in a group
99
+ */
100
+ createGroupMemberRaw(requestParameters, initOverrides) {
101
+ return __awaiter(this, void 0, void 0, function* () {
102
+ const requestOptions = yield this.createGroupMemberRequestOpts(requestParameters);
103
+ const response = yield this.request(requestOptions, initOverrides);
104
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_js_1.MemberFromJSON)(jsonValue));
105
+ });
106
+ }
107
+ /**
108
+ * Create a member in a group
109
+ */
110
+ createGroupMember(requestParameters, initOverrides) {
111
+ return __awaiter(this, void 0, void 0, function* () {
112
+ const response = yield this.createGroupMemberRaw(requestParameters, initOverrides);
113
+ return yield response.value();
114
+ });
115
+ }
116
+ /**
117
+ * Creates request options for deleteGroup without sending the request
118
+ */
119
+ deleteGroupRequestOpts(requestParameters) {
120
+ return __awaiter(this, void 0, void 0, function* () {
121
+ if (requestParameters['id'] == null) {
122
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling deleteGroup().');
123
+ }
124
+ const queryParameters = {};
125
+ const headerParameters = {};
126
+ let urlPath = `/api/v1/groups/{id}`;
127
+ urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
128
+ return {
129
+ path: urlPath,
130
+ method: 'DELETE',
131
+ headers: headerParameters,
132
+ query: queryParameters,
133
+ };
134
+ });
135
+ }
136
+ /**
137
+ * Delete a group
138
+ */
139
+ deleteGroupRaw(requestParameters, initOverrides) {
140
+ return __awaiter(this, void 0, void 0, function* () {
141
+ const requestOptions = yield this.deleteGroupRequestOpts(requestParameters);
142
+ const response = yield this.request(requestOptions, initOverrides);
143
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_js_1.GroupFromJSON)(jsonValue));
144
+ });
145
+ }
146
+ /**
147
+ * Delete a group
148
+ */
149
+ deleteGroup(requestParameters, initOverrides) {
150
+ return __awaiter(this, void 0, void 0, function* () {
151
+ const response = yield this.deleteGroupRaw(requestParameters, initOverrides);
152
+ return yield response.value();
153
+ });
154
+ }
155
+ /**
156
+ * Creates request options for getGroup without sending the request
157
+ */
158
+ getGroupRequestOpts(requestParameters) {
159
+ return __awaiter(this, void 0, void 0, function* () {
160
+ if (requestParameters['id'] == null) {
161
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling getGroup().');
162
+ }
163
+ const queryParameters = {};
164
+ const headerParameters = {};
165
+ let urlPath = `/api/v1/groups/{id}`;
166
+ urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
167
+ return {
168
+ path: urlPath,
169
+ method: 'GET',
170
+ headers: headerParameters,
171
+ query: queryParameters,
172
+ };
173
+ });
174
+ }
175
+ /**
176
+ * Get a group by ID
177
+ */
178
+ getGroupRaw(requestParameters, initOverrides) {
179
+ return __awaiter(this, void 0, void 0, function* () {
180
+ const requestOptions = yield this.getGroupRequestOpts(requestParameters);
181
+ const response = yield this.request(requestOptions, initOverrides);
182
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_js_1.GroupFromJSON)(jsonValue));
183
+ });
184
+ }
185
+ /**
186
+ * Get a group by ID
187
+ */
188
+ getGroup(requestParameters, initOverrides) {
189
+ return __awaiter(this, void 0, void 0, function* () {
190
+ const response = yield this.getGroupRaw(requestParameters, initOverrides);
191
+ return yield response.value();
192
+ });
193
+ }
194
+ /**
195
+ * Creates request options for getIdentity without sending the request
196
+ */
197
+ getIdentityRequestOpts() {
198
+ return __awaiter(this, void 0, void 0, function* () {
199
+ const queryParameters = {};
200
+ const headerParameters = {};
201
+ let urlPath = `/api/v1/identity`;
202
+ return {
203
+ path: urlPath,
204
+ method: 'GET',
205
+ headers: headerParameters,
206
+ query: queryParameters,
207
+ };
208
+ });
209
+ }
210
+ /**
211
+ * Returns the authenticated user\'s profile. If a local account exists, returns stored user data. Otherwise returns a synthesized regular user.
212
+ */
213
+ getIdentityRaw(initOverrides) {
214
+ return __awaiter(this, void 0, void 0, function* () {
215
+ const requestOptions = yield this.getIdentityRequestOpts();
216
+ const response = yield this.request(requestOptions, initOverrides);
217
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_js_1.IdentityFromJSON)(jsonValue));
218
+ });
219
+ }
220
+ /**
221
+ * Returns the authenticated user\'s profile. If a local account exists, returns stored user data. Otherwise returns a synthesized regular user.
222
+ */
223
+ getIdentity(initOverrides) {
224
+ return __awaiter(this, void 0, void 0, function* () {
225
+ const response = yield this.getIdentityRaw(initOverrides);
226
+ return yield response.value();
227
+ });
228
+ }
229
+ /**
230
+ * Creates request options for listGroupMembers without sending the request
231
+ */
232
+ listGroupMembersRequestOpts(requestParameters) {
233
+ return __awaiter(this, void 0, void 0, function* () {
234
+ if (requestParameters['id'] == null) {
235
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling listGroupMembers().');
236
+ }
237
+ const queryParameters = {};
238
+ const headerParameters = {};
239
+ let urlPath = `/api/v1/groups/{id}/members`;
240
+ urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
241
+ return {
242
+ path: urlPath,
243
+ method: 'GET',
244
+ headers: headerParameters,
245
+ query: queryParameters,
246
+ };
247
+ });
248
+ }
249
+ /**
250
+ * List members in a group
251
+ */
252
+ listGroupMembersRaw(requestParameters, initOverrides) {
253
+ return __awaiter(this, void 0, void 0, function* () {
254
+ const requestOptions = yield this.listGroupMembersRequestOpts(requestParameters);
255
+ const response = yield this.request(requestOptions, initOverrides);
256
+ return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(index_js_1.MemberFromJSON));
257
+ });
258
+ }
259
+ /**
260
+ * List members in a group
261
+ */
262
+ listGroupMembers(requestParameters, initOverrides) {
263
+ return __awaiter(this, void 0, void 0, function* () {
264
+ const response = yield this.listGroupMembersRaw(requestParameters, initOverrides);
265
+ return yield response.value();
266
+ });
267
+ }
268
+ /**
269
+ * Creates request options for listGroups without sending the request
270
+ */
271
+ listGroupsRequestOpts(requestParameters) {
272
+ return __awaiter(this, void 0, void 0, function* () {
273
+ const queryParameters = {};
274
+ if (requestParameters['kind'] != null) {
275
+ queryParameters['kind'] = requestParameters['kind'];
276
+ }
277
+ if (requestParameters['name'] != null) {
278
+ queryParameters['name'] = requestParameters['name'];
279
+ }
280
+ if (requestParameters['company'] != null) {
281
+ queryParameters['company'] = requestParameters['company'];
282
+ }
283
+ const headerParameters = {};
284
+ let urlPath = `/api/v1/groups`;
285
+ return {
286
+ path: urlPath,
287
+ method: 'GET',
288
+ headers: headerParameters,
289
+ query: queryParameters,
290
+ };
291
+ });
292
+ }
293
+ /**
294
+ * List all groups
295
+ */
296
+ listGroupsRaw(requestParameters, initOverrides) {
297
+ return __awaiter(this, void 0, void 0, function* () {
298
+ const requestOptions = yield this.listGroupsRequestOpts(requestParameters);
299
+ const response = yield this.request(requestOptions, initOverrides);
300
+ return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(index_js_1.GroupFromJSON));
301
+ });
302
+ }
303
+ /**
304
+ * List all groups
305
+ */
306
+ listGroups() {
307
+ return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) {
308
+ const response = yield this.listGroupsRaw(requestParameters, initOverrides);
309
+ return yield response.value();
310
+ });
311
+ }
312
+ /**
313
+ * Creates request options for removeGroupMember without sending the request
314
+ */
315
+ removeGroupMemberRequestOpts(requestParameters) {
316
+ return __awaiter(this, void 0, void 0, function* () {
317
+ if (requestParameters['id'] == null) {
318
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling removeGroupMember().');
319
+ }
320
+ if (requestParameters['username'] == null) {
321
+ throw new runtime.RequiredError('username', 'Required parameter "username" was null or undefined when calling removeGroupMember().');
322
+ }
323
+ const queryParameters = {};
324
+ const headerParameters = {};
325
+ let urlPath = `/api/v1/groups/{id}/members/{username}`;
326
+ urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
327
+ urlPath = urlPath.replace(`{${"username"}}`, encodeURIComponent(String(requestParameters['username'])));
328
+ return {
329
+ path: urlPath,
330
+ method: 'DELETE',
331
+ headers: headerParameters,
332
+ query: queryParameters,
333
+ };
334
+ });
335
+ }
336
+ /**
337
+ * 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.
338
+ */
339
+ removeGroupMemberRaw(requestParameters, initOverrides) {
340
+ return __awaiter(this, void 0, void 0, function* () {
341
+ const requestOptions = yield this.removeGroupMemberRequestOpts(requestParameters);
342
+ const response = yield this.request(requestOptions, initOverrides);
343
+ return new runtime.VoidApiResponse(response);
344
+ });
345
+ }
346
+ /**
347
+ * 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.
348
+ */
349
+ removeGroupMember(requestParameters, initOverrides) {
350
+ return __awaiter(this, void 0, void 0, function* () {
351
+ yield this.removeGroupMemberRaw(requestParameters, initOverrides);
352
+ });
353
+ }
354
+ /**
355
+ * Creates request options for updateGroup without sending the request
356
+ */
357
+ updateGroupRequestOpts(requestParameters) {
358
+ return __awaiter(this, void 0, void 0, function* () {
359
+ if (requestParameters['id'] == null) {
360
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling updateGroup().');
361
+ }
362
+ if (requestParameters['groupUpdate'] == null) {
363
+ throw new runtime.RequiredError('groupUpdate', 'Required parameter "groupUpdate" was null or undefined when calling updateGroup().');
364
+ }
365
+ const queryParameters = {};
366
+ const headerParameters = {};
367
+ headerParameters['Content-Type'] = 'application/json';
368
+ let urlPath = `/api/v1/groups/{id}`;
369
+ urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
370
+ return {
371
+ path: urlPath,
372
+ method: 'PUT',
373
+ headers: headerParameters,
374
+ query: queryParameters,
375
+ body: (0, index_js_1.GroupUpdateToJSON)(requestParameters['groupUpdate']),
376
+ };
377
+ });
378
+ }
379
+ /**
380
+ * Update a group
381
+ */
382
+ updateGroupRaw(requestParameters, initOverrides) {
383
+ return __awaiter(this, void 0, void 0, function* () {
384
+ const requestOptions = yield this.updateGroupRequestOpts(requestParameters);
385
+ const response = yield this.request(requestOptions, initOverrides);
386
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_js_1.GroupFromJSON)(jsonValue));
387
+ });
388
+ }
389
+ /**
390
+ * Update a group
391
+ */
392
+ updateGroup(requestParameters, initOverrides) {
393
+ return __awaiter(this, void 0, void 0, function* () {
394
+ const response = yield this.updateGroupRaw(requestParameters, initOverrides);
395
+ return yield response.value();
396
+ });
397
+ }
398
+ /**
399
+ * Creates request options for updateGroupMember without sending the request
400
+ */
401
+ updateGroupMemberRequestOpts(requestParameters) {
402
+ return __awaiter(this, void 0, void 0, function* () {
403
+ if (requestParameters['id'] == null) {
404
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling updateGroupMember().');
405
+ }
406
+ if (requestParameters['username'] == null) {
407
+ throw new runtime.RequiredError('username', 'Required parameter "username" was null or undefined when calling updateGroupMember().');
408
+ }
409
+ if (requestParameters['memberUpdate'] == null) {
410
+ throw new runtime.RequiredError('memberUpdate', 'Required parameter "memberUpdate" was null or undefined when calling updateGroupMember().');
411
+ }
412
+ const queryParameters = {};
413
+ const headerParameters = {};
414
+ headerParameters['Content-Type'] = 'application/json';
415
+ let urlPath = `/api/v1/groups/{id}/members/{username}`;
416
+ urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
417
+ urlPath = urlPath.replace(`{${"username"}}`, encodeURIComponent(String(requestParameters['username'])));
418
+ return {
419
+ path: urlPath,
420
+ method: 'PUT',
421
+ headers: headerParameters,
422
+ query: queryParameters,
423
+ body: (0, index_js_1.MemberUpdateToJSON)(requestParameters['memberUpdate']),
424
+ };
425
+ });
426
+ }
427
+ /**
428
+ * Update a member in a group
429
+ */
430
+ updateGroupMemberRaw(requestParameters, initOverrides) {
431
+ return __awaiter(this, void 0, void 0, function* () {
432
+ const requestOptions = yield this.updateGroupMemberRequestOpts(requestParameters);
433
+ const response = yield this.request(requestOptions, initOverrides);
434
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_js_1.MemberFromJSON)(jsonValue));
435
+ });
436
+ }
437
+ /**
438
+ * Update a member in a group
439
+ */
440
+ updateGroupMember(requestParameters, initOverrides) {
441
+ return __awaiter(this, void 0, void 0, function* () {
442
+ const response = yield this.updateGroupMemberRaw(requestParameters, initOverrides);
443
+ return yield response.value();
444
+ });
445
+ }
446
+ }
447
+ exports.AccountApi = AccountApi;
448
+ /**
449
+ * @export
450
+ */
451
+ exports.ListGroupsKindEnum = {
452
+ Partner: 'partner',
453
+ Admin: 'admin'
454
+ };
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime.js';
13
- import type { Assessment, AssessmentForm, AssessmentUpdate, ClusterRequirementsRequest, ClusterRequirementsResponse, MigrationComplexityRequest, MigrationComplexityResponse, MigrationEstimationRequest, SchemaEstimationResult } from '../models/index.js';
13
+ import type { Assessment, AssessmentForm, AssessmentUpdate, ClusterRequirementsRequest, ClusterRequirementsResponse, MigrationComplexityRequest, MigrationComplexityResponse, MigrationEstimationByComplexityResponse, MigrationEstimationRequest, MigrationEstimationResponse } from '../models/index.js';
14
14
  export interface CalculateAssessmentClusterRequirementsRequest {
15
15
  id: string;
16
16
  clusterRequirementsRequest: ClusterRequirementsRequest;
@@ -23,6 +23,10 @@ export interface CalculateMigrationEstimationRequest {
23
23
  id: string;
24
24
  migrationEstimationRequest: MigrationEstimationRequest;
25
25
  }
26
+ export interface CalculateMigrationEstimationByComplexityRequest {
27
+ id: string;
28
+ migrationEstimationRequest: MigrationEstimationRequest;
29
+ }
26
30
  export interface CreateAssessmentRequest {
27
31
  assessmentForm: AssessmentForm;
28
32
  }
@@ -104,15 +108,32 @@ export interface AssessmentApiInterface {
104
108
  * @throws {RequiredError}
105
109
  * @memberof AssessmentApiInterface
106
110
  */
107
- calculateMigrationEstimationRaw(requestParameters: CalculateMigrationEstimationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<{
108
- [key: string]: SchemaEstimationResult;
109
- }>>;
111
+ calculateMigrationEstimationRaw(requestParameters: CalculateMigrationEstimationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<MigrationEstimationResponse>>;
110
112
  /**
111
113
  * Calculate migration time estimation for an assessment
112
114
  */
113
- calculateMigrationEstimation(requestParameters: CalculateMigrationEstimationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<{
114
- [key: string]: SchemaEstimationResult;
115
- }>;
115
+ calculateMigrationEstimation(requestParameters: CalculateMigrationEstimationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<MigrationEstimationResponse>;
116
+ /**
117
+ * Creates request options for calculateMigrationEstimationByComplexity without sending the request
118
+ * @param {string} id ID of the assessment
119
+ * @param {MigrationEstimationRequest} migrationEstimationRequest
120
+ * @throws {RequiredError}
121
+ * @memberof AssessmentApiInterface
122
+ */
123
+ calculateMigrationEstimationByComplexityRequestOpts(requestParameters: CalculateMigrationEstimationByComplexityRequest): Promise<runtime.RequestOpts>;
124
+ /**
125
+ * Calculate migration time estimation broken down by combined OS+Disk complexity
126
+ * @param {string} id ID of the assessment
127
+ * @param {MigrationEstimationRequest} migrationEstimationRequest
128
+ * @param {*} [options] Override http request option.
129
+ * @throws {RequiredError}
130
+ * @memberof AssessmentApiInterface
131
+ */
132
+ calculateMigrationEstimationByComplexityRaw(requestParameters: CalculateMigrationEstimationByComplexityRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<MigrationEstimationByComplexityResponse>>;
133
+ /**
134
+ * Calculate migration time estimation broken down by combined OS+Disk complexity
135
+ */
136
+ calculateMigrationEstimationByComplexity(requestParameters: CalculateMigrationEstimationByComplexityRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<MigrationEstimationByComplexityResponse>;
116
137
  /**
117
138
  * Creates request options for createAssessment without sending the request
118
139
  * @param {AssessmentForm} assessmentForm
@@ -246,15 +267,23 @@ export declare class AssessmentApi extends runtime.BaseAPI implements Assessment
246
267
  /**
247
268
  * Calculate migration time estimation for an assessment
248
269
  */
249
- calculateMigrationEstimationRaw(requestParameters: CalculateMigrationEstimationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<{
250
- [key: string]: SchemaEstimationResult;
251
- }>>;
270
+ calculateMigrationEstimationRaw(requestParameters: CalculateMigrationEstimationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<MigrationEstimationResponse>>;
252
271
  /**
253
272
  * Calculate migration time estimation for an assessment
254
273
  */
255
- calculateMigrationEstimation(requestParameters: CalculateMigrationEstimationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<{
256
- [key: string]: SchemaEstimationResult;
257
- }>;
274
+ calculateMigrationEstimation(requestParameters: CalculateMigrationEstimationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<MigrationEstimationResponse>;
275
+ /**
276
+ * Creates request options for calculateMigrationEstimationByComplexity without sending the request
277
+ */
278
+ calculateMigrationEstimationByComplexityRequestOpts(requestParameters: CalculateMigrationEstimationByComplexityRequest): Promise<runtime.RequestOpts>;
279
+ /**
280
+ * Calculate migration time estimation broken down by combined OS+Disk complexity
281
+ */
282
+ calculateMigrationEstimationByComplexityRaw(requestParameters: CalculateMigrationEstimationByComplexityRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<MigrationEstimationByComplexityResponse>>;
283
+ /**
284
+ * Calculate migration time estimation broken down by combined OS+Disk complexity
285
+ */
286
+ calculateMigrationEstimationByComplexity(requestParameters: CalculateMigrationEstimationByComplexityRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<MigrationEstimationByComplexityResponse>;
258
287
  /**
259
288
  * Creates request options for createAssessment without sending the request
260
289
  */
@@ -149,7 +149,7 @@ class AssessmentApi extends runtime.BaseAPI {
149
149
  return __awaiter(this, void 0, void 0, function* () {
150
150
  const requestOptions = yield this.calculateMigrationEstimationRequestOpts(requestParameters);
151
151
  const response = yield this.request(requestOptions, initOverrides);
152
- return new runtime.JSONApiResponse(response, (jsonValue) => runtime.mapValues(jsonValue, index_js_1.SchemaEstimationResultFromJSON));
152
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_js_1.MigrationEstimationResponseFromJSON)(jsonValue));
153
153
  });
154
154
  }
155
155
  /**
@@ -161,6 +161,50 @@ class AssessmentApi extends runtime.BaseAPI {
161
161
  return yield response.value();
162
162
  });
163
163
  }
164
+ /**
165
+ * Creates request options for calculateMigrationEstimationByComplexity without sending the request
166
+ */
167
+ calculateMigrationEstimationByComplexityRequestOpts(requestParameters) {
168
+ return __awaiter(this, void 0, void 0, function* () {
169
+ if (requestParameters['id'] == null) {
170
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling calculateMigrationEstimationByComplexity().');
171
+ }
172
+ if (requestParameters['migrationEstimationRequest'] == null) {
173
+ throw new runtime.RequiredError('migrationEstimationRequest', 'Required parameter "migrationEstimationRequest" was null or undefined when calling calculateMigrationEstimationByComplexity().');
174
+ }
175
+ const queryParameters = {};
176
+ const headerParameters = {};
177
+ headerParameters['Content-Type'] = 'application/json';
178
+ let urlPath = `/api/v1/assessments/{id}/migration-estimation/by-complexity`;
179
+ urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
180
+ return {
181
+ path: urlPath,
182
+ method: 'POST',
183
+ headers: headerParameters,
184
+ query: queryParameters,
185
+ body: (0, index_js_1.MigrationEstimationRequestToJSON)(requestParameters['migrationEstimationRequest']),
186
+ };
187
+ });
188
+ }
189
+ /**
190
+ * Calculate migration time estimation broken down by combined OS+Disk complexity
191
+ */
192
+ calculateMigrationEstimationByComplexityRaw(requestParameters, initOverrides) {
193
+ return __awaiter(this, void 0, void 0, function* () {
194
+ const requestOptions = yield this.calculateMigrationEstimationByComplexityRequestOpts(requestParameters);
195
+ const response = yield this.request(requestOptions, initOverrides);
196
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_js_1.MigrationEstimationByComplexityResponseFromJSON)(jsonValue));
197
+ });
198
+ }
199
+ /**
200
+ * Calculate migration time estimation broken down by combined OS+Disk complexity
201
+ */
202
+ calculateMigrationEstimationByComplexity(requestParameters, initOverrides) {
203
+ return __awaiter(this, void 0, void 0, function* () {
204
+ const response = yield this.calculateMigrationEstimationByComplexityRaw(requestParameters, initOverrides);
205
+ return yield response.value();
206
+ });
207
+ }
164
208
  /**
165
209
  * Creates request options for createAssessment without sending the request
166
210
  */
@@ -1,3 +1,4 @@
1
+ export * from './AccountApi.js';
1
2
  export * from './AssessmentApi.js';
2
3
  export * from './HealthApi.js';
3
4
  export * from './ImageApi.js';
@@ -16,6 +16,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  /* tslint:disable */
18
18
  /* eslint-disable */
19
+ __exportStar(require("./AccountApi.js"), exports);
19
20
  __exportStar(require("./AssessmentApi.js"), exports);
20
21
  __exportStar(require("./HealthApi.js"), exports);
21
22
  __exportStar(require("./ImageApi.js"), exports);