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