@openshift-migration-advisor/planner-sdk 0.10.0 → 0.11.0
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 +18 -0
- package/README.md +27 -11
- package/dist/apis/AccountApi.d.ts +390 -0
- package/dist/apis/AccountApi.js +454 -0
- package/dist/apis/AssessmentApi.d.ts +5 -13
- package/dist/apis/AssessmentApi.js +8 -8
- package/dist/apis/ImageApi.js +2 -2
- package/dist/apis/JobApi.js +2 -2
- package/dist/apis/SourceApi.js +4 -4
- 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 +5 -13
- package/dist/esm/apis/AssessmentApi.js +9 -9
- package/dist/esm/apis/ImageApi.js +2 -2
- package/dist/esm/apis/JobApi.js +2 -2
- package/dist/esm/apis/SourceApi.js +4 -4
- package/dist/esm/apis/index.d.ts +1 -0
- package/dist/esm/apis/index.js +1 -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/MigrationEstimationRequest.d.ts +1 -1
- package/dist/esm/models/MigrationEstimationResponse.d.ts +43 -0
- package/dist/esm/models/MigrationEstimationResponse.js +50 -0
- package/dist/esm/models/index.d.ts +8 -0
- package/dist/esm/models/index.js +8 -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/MigrationEstimationRequest.d.ts +1 -1
- package/dist/models/MigrationEstimationResponse.d.ts +43 -0
- package/dist/models/MigrationEstimationResponse.js +57 -0
- package/dist/models/index.d.ts +8 -0
- package/dist/models/index.js +8 -0
- package/docs/AccountApi.md +734 -0
- package/docs/AssessmentApi.md +2 -2
- 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/MigrationEstimationResponse.md +37 -0
- package/package.json +1 -1
- package/src/apis/AccountApi.ts +834 -0
- package/src/apis/AssessmentApi.ts +15 -15
- package/src/apis/ImageApi.ts +2 -2
- package/src/apis/JobApi.ts +2 -2
- package/src/apis/SourceApi.ts +4 -4
- package/src/apis/index.ts +1 -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/MigrationEstimationRequest.ts +1 -1
- package/src/models/MigrationEstimationResponse.ts +91 -0
- package/src/models/index.ts +8 -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, MigrationEstimationByComplexityResponse, MigrationEstimationRequest,
|
|
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;
|
|
@@ -108,15 +108,11 @@ export interface AssessmentApiInterface {
|
|
|
108
108
|
* @throws {RequiredError}
|
|
109
109
|
* @memberof AssessmentApiInterface
|
|
110
110
|
*/
|
|
111
|
-
calculateMigrationEstimationRaw(requestParameters: CalculateMigrationEstimationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
112
|
-
[key: string]: SchemaEstimationResult;
|
|
113
|
-
}>>;
|
|
111
|
+
calculateMigrationEstimationRaw(requestParameters: CalculateMigrationEstimationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<MigrationEstimationResponse>>;
|
|
114
112
|
/**
|
|
115
113
|
* Calculate migration time estimation for an assessment
|
|
116
114
|
*/
|
|
117
|
-
calculateMigrationEstimation(requestParameters: CalculateMigrationEstimationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
118
|
-
[key: string]: SchemaEstimationResult;
|
|
119
|
-
}>;
|
|
115
|
+
calculateMigrationEstimation(requestParameters: CalculateMigrationEstimationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<MigrationEstimationResponse>;
|
|
120
116
|
/**
|
|
121
117
|
* Creates request options for calculateMigrationEstimationByComplexity without sending the request
|
|
122
118
|
* @param {string} id ID of the assessment
|
|
@@ -271,15 +267,11 @@ export declare class AssessmentApi extends runtime.BaseAPI implements Assessment
|
|
|
271
267
|
/**
|
|
272
268
|
* Calculate migration time estimation for an assessment
|
|
273
269
|
*/
|
|
274
|
-
calculateMigrationEstimationRaw(requestParameters: CalculateMigrationEstimationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
275
|
-
[key: string]: SchemaEstimationResult;
|
|
276
|
-
}>>;
|
|
270
|
+
calculateMigrationEstimationRaw(requestParameters: CalculateMigrationEstimationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<MigrationEstimationResponse>>;
|
|
277
271
|
/**
|
|
278
272
|
* Calculate migration time estimation for an assessment
|
|
279
273
|
*/
|
|
280
|
-
calculateMigrationEstimation(requestParameters: CalculateMigrationEstimationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
281
|
-
[key: string]: SchemaEstimationResult;
|
|
282
|
-
}>;
|
|
274
|
+
calculateMigrationEstimation(requestParameters: CalculateMigrationEstimationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<MigrationEstimationResponse>;
|
|
283
275
|
/**
|
|
284
276
|
* Creates request options for calculateMigrationEstimationByComplexity without sending the request
|
|
285
277
|
*/
|
|
@@ -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, MigrationEstimationByComplexityResponseFromJSON, MigrationEstimationRequestToJSON,
|
|
24
|
+
import { AssessmentFromJSON, AssessmentFormToJSON, AssessmentUpdateToJSON, ClusterRequirementsRequestToJSON, ClusterRequirementsResponseFromJSON, MigrationComplexityRequestToJSON, MigrationComplexityResponseFromJSON, MigrationEstimationByComplexityResponseFromJSON, MigrationEstimationRequestToJSON, MigrationEstimationResponseFromJSON, } from '../models/index.js';
|
|
25
25
|
/**
|
|
26
26
|
*
|
|
27
27
|
*/
|
|
@@ -41,7 +41,7 @@ export class AssessmentApi extends runtime.BaseAPI {
|
|
|
41
41
|
const headerParameters = {};
|
|
42
42
|
headerParameters['Content-Type'] = 'application/json';
|
|
43
43
|
let urlPath = `/api/v1/assessments/{id}/cluster-requirements`;
|
|
44
|
-
urlPath = urlPath.replace(
|
|
44
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
45
45
|
return {
|
|
46
46
|
path: urlPath,
|
|
47
47
|
method: 'POST',
|
|
@@ -85,7 +85,7 @@ export class AssessmentApi extends runtime.BaseAPI {
|
|
|
85
85
|
const headerParameters = {};
|
|
86
86
|
headerParameters['Content-Type'] = 'application/json';
|
|
87
87
|
let urlPath = `/api/v1/assessments/{id}/complexity-estimation`;
|
|
88
|
-
urlPath = urlPath.replace(
|
|
88
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
89
89
|
return {
|
|
90
90
|
path: urlPath,
|
|
91
91
|
method: 'POST',
|
|
@@ -129,7 +129,7 @@ export class AssessmentApi extends runtime.BaseAPI {
|
|
|
129
129
|
const headerParameters = {};
|
|
130
130
|
headerParameters['Content-Type'] = 'application/json';
|
|
131
131
|
let urlPath = `/api/v1/assessments/{id}/migration-estimation`;
|
|
132
|
-
urlPath = urlPath.replace(
|
|
132
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
133
133
|
return {
|
|
134
134
|
path: urlPath,
|
|
135
135
|
method: 'POST',
|
|
@@ -146,7 +146,7 @@ export class AssessmentApi extends runtime.BaseAPI {
|
|
|
146
146
|
return __awaiter(this, void 0, void 0, function* () {
|
|
147
147
|
const requestOptions = yield this.calculateMigrationEstimationRequestOpts(requestParameters);
|
|
148
148
|
const response = yield this.request(requestOptions, initOverrides);
|
|
149
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
149
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => MigrationEstimationResponseFromJSON(jsonValue));
|
|
150
150
|
});
|
|
151
151
|
}
|
|
152
152
|
/**
|
|
@@ -173,7 +173,7 @@ export class AssessmentApi extends runtime.BaseAPI {
|
|
|
173
173
|
const headerParameters = {};
|
|
174
174
|
headerParameters['Content-Type'] = 'application/json';
|
|
175
175
|
let urlPath = `/api/v1/assessments/{id}/migration-estimation/by-complexity`;
|
|
176
|
-
urlPath = urlPath.replace(
|
|
176
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
177
177
|
return {
|
|
178
178
|
path: urlPath,
|
|
179
179
|
method: 'POST',
|
|
@@ -253,7 +253,7 @@ export class AssessmentApi extends runtime.BaseAPI {
|
|
|
253
253
|
const queryParameters = {};
|
|
254
254
|
const headerParameters = {};
|
|
255
255
|
let urlPath = `/api/v1/assessments/{id}`;
|
|
256
|
-
urlPath = urlPath.replace(
|
|
256
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
257
257
|
return {
|
|
258
258
|
path: urlPath,
|
|
259
259
|
method: 'DELETE',
|
|
@@ -292,7 +292,7 @@ export class AssessmentApi extends runtime.BaseAPI {
|
|
|
292
292
|
const queryParameters = {};
|
|
293
293
|
const headerParameters = {};
|
|
294
294
|
let urlPath = `/api/v1/assessments/{id}`;
|
|
295
|
-
urlPath = urlPath.replace(
|
|
295
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
296
296
|
return {
|
|
297
297
|
path: urlPath,
|
|
298
298
|
method: 'GET',
|
|
@@ -373,7 +373,7 @@ export class AssessmentApi extends runtime.BaseAPI {
|
|
|
373
373
|
const headerParameters = {};
|
|
374
374
|
headerParameters['Content-Type'] = 'application/json';
|
|
375
375
|
let urlPath = `/api/v1/assessments/{id}`;
|
|
376
|
-
urlPath = urlPath.replace(
|
|
376
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
377
377
|
return {
|
|
378
378
|
path: urlPath,
|
|
379
379
|
method: 'PUT',
|
|
@@ -37,7 +37,7 @@ export class ImageApi extends runtime.BaseAPI {
|
|
|
37
37
|
const queryParameters = {};
|
|
38
38
|
const headerParameters = {};
|
|
39
39
|
let urlPath = `/api/v1/sources/{id}/image-url`;
|
|
40
|
-
urlPath = urlPath.replace(
|
|
40
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
41
41
|
return {
|
|
42
42
|
path: urlPath,
|
|
43
43
|
method: 'GET',
|
|
@@ -76,7 +76,7 @@ export class ImageApi extends runtime.BaseAPI {
|
|
|
76
76
|
const queryParameters = {};
|
|
77
77
|
const headerParameters = {};
|
|
78
78
|
let urlPath = `/api/v1/sources/{id}/image`;
|
|
79
|
-
urlPath = urlPath.replace(
|
|
79
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
80
80
|
return {
|
|
81
81
|
path: urlPath,
|
|
82
82
|
method: 'HEAD',
|
package/dist/esm/apis/JobApi.js
CHANGED
|
@@ -37,7 +37,7 @@ export class JobApi extends runtime.BaseAPI {
|
|
|
37
37
|
const queryParameters = {};
|
|
38
38
|
const headerParameters = {};
|
|
39
39
|
let urlPath = `/api/v1/assessments/jobs/{id}`;
|
|
40
|
-
urlPath = urlPath.replace(
|
|
40
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
41
41
|
return {
|
|
42
42
|
path: urlPath,
|
|
43
43
|
method: 'DELETE',
|
|
@@ -139,7 +139,7 @@ export class JobApi extends runtime.BaseAPI {
|
|
|
139
139
|
const queryParameters = {};
|
|
140
140
|
const headerParameters = {};
|
|
141
141
|
let urlPath = `/api/v1/assessments/jobs/{id}`;
|
|
142
|
-
urlPath = urlPath.replace(
|
|
142
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
143
143
|
return {
|
|
144
144
|
path: urlPath,
|
|
145
145
|
method: 'GET',
|
|
@@ -77,7 +77,7 @@ export class SourceApi extends runtime.BaseAPI {
|
|
|
77
77
|
const queryParameters = {};
|
|
78
78
|
const headerParameters = {};
|
|
79
79
|
let urlPath = `/api/v1/sources/{id}`;
|
|
80
|
-
urlPath = urlPath.replace(
|
|
80
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
81
81
|
return {
|
|
82
82
|
path: urlPath,
|
|
83
83
|
method: 'DELETE',
|
|
@@ -151,7 +151,7 @@ export class SourceApi extends runtime.BaseAPI {
|
|
|
151
151
|
const queryParameters = {};
|
|
152
152
|
const headerParameters = {};
|
|
153
153
|
let urlPath = `/api/v1/sources/{id}`;
|
|
154
|
-
urlPath = urlPath.replace(
|
|
154
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
155
155
|
return {
|
|
156
156
|
path: urlPath,
|
|
157
157
|
method: 'GET',
|
|
@@ -229,7 +229,7 @@ export class SourceApi extends runtime.BaseAPI {
|
|
|
229
229
|
const headerParameters = {};
|
|
230
230
|
headerParameters['Content-Type'] = 'application/json';
|
|
231
231
|
let urlPath = `/api/v1/sources/{id}/inventory`;
|
|
232
|
-
urlPath = urlPath.replace(
|
|
232
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
233
233
|
return {
|
|
234
234
|
path: urlPath,
|
|
235
235
|
method: 'PUT',
|
|
@@ -273,7 +273,7 @@ export class SourceApi extends runtime.BaseAPI {
|
|
|
273
273
|
const headerParameters = {};
|
|
274
274
|
headerParameters['Content-Type'] = 'application/json';
|
|
275
275
|
let urlPath = `/api/v1/sources/{id}`;
|
|
276
|
-
urlPath = urlPath.replace(
|
|
276
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
277
277
|
return {
|
|
278
278
|
path: urlPath,
|
|
279
279
|
method: 'PUT',
|
package/dist/esm/apis/index.d.ts
CHANGED