@openshift-migration-advisor/planner-sdk 0.10.0 → 0.11.0-7cc84aae7ba0
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 +28 -0
- package/README.md +40 -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/PartnerApi.d.ts +323 -0
- package/dist/apis/PartnerApi.js +379 -0
- package/dist/apis/SourceApi.js +4 -4
- package/dist/apis/index.d.ts +2 -0
- package/dist/apis/index.js +2 -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/PartnerApi.d.ts +323 -0
- package/dist/esm/apis/PartnerApi.js +375 -0
- package/dist/esm/apis/SourceApi.js +4 -4
- package/dist/esm/apis/index.d.ts +2 -0
- package/dist/esm/apis/index.js +2 -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/PartnerRequest.d.ts +99 -0
- package/dist/esm/models/PartnerRequest.js +82 -0
- package/dist/esm/models/PartnerRequestCreate.d.ts +56 -0
- package/dist/esm/models/PartnerRequestCreate.js +59 -0
- package/dist/esm/models/PartnerRequestStatus.d.ts +27 -0
- package/dist/esm/models/PartnerRequestStatus.js +45 -0
- package/dist/esm/models/PartnerRequestUpdate.d.ts +39 -0
- package/dist/esm/models/PartnerRequestUpdate.js +46 -0
- package/dist/esm/models/index.d.ts +12 -0
- package/dist/esm/models/index.js +12 -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/PartnerRequest.d.ts +99 -0
- package/dist/models/PartnerRequest.js +89 -0
- package/dist/models/PartnerRequestCreate.d.ts +56 -0
- package/dist/models/PartnerRequestCreate.js +66 -0
- package/dist/models/PartnerRequestStatus.d.ts +27 -0
- package/dist/models/PartnerRequestStatus.js +53 -0
- package/dist/models/PartnerRequestUpdate.d.ts +39 -0
- package/dist/models/PartnerRequestUpdate.js +53 -0
- package/dist/models/index.d.ts +12 -0
- package/dist/models/index.js +12 -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/docs/PartnerApi.md +636 -0
- package/docs/PartnerRequest.md +56 -0
- package/docs/PartnerRequestCreate.md +42 -0
- package/docs/PartnerRequestStatus.md +32 -0
- package/docs/PartnerRequestUpdate.md +36 -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/PartnerApi.ts +668 -0
- package/src/apis/SourceApi.ts +4 -4
- package/src/apis/index.ts +2 -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/PartnerRequest.ts +172 -0
- package/src/models/PartnerRequestCreate.ts +102 -0
- package/src/models/PartnerRequestStatus.ts +55 -0
- package/src/models/PartnerRequestUpdate.ts +84 -0
- package/src/models/index.ts +12 -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, 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
|
*/
|
|
@@ -44,7 +44,7 @@ class AssessmentApi extends runtime.BaseAPI {
|
|
|
44
44
|
const headerParameters = {};
|
|
45
45
|
headerParameters['Content-Type'] = 'application/json';
|
|
46
46
|
let urlPath = `/api/v1/assessments/{id}/cluster-requirements`;
|
|
47
|
-
urlPath = urlPath.replace(
|
|
47
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
48
48
|
return {
|
|
49
49
|
path: urlPath,
|
|
50
50
|
method: 'POST',
|
|
@@ -88,7 +88,7 @@ class AssessmentApi extends runtime.BaseAPI {
|
|
|
88
88
|
const headerParameters = {};
|
|
89
89
|
headerParameters['Content-Type'] = 'application/json';
|
|
90
90
|
let urlPath = `/api/v1/assessments/{id}/complexity-estimation`;
|
|
91
|
-
urlPath = urlPath.replace(
|
|
91
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
92
92
|
return {
|
|
93
93
|
path: urlPath,
|
|
94
94
|
method: 'POST',
|
|
@@ -132,7 +132,7 @@ class AssessmentApi extends runtime.BaseAPI {
|
|
|
132
132
|
const headerParameters = {};
|
|
133
133
|
headerParameters['Content-Type'] = 'application/json';
|
|
134
134
|
let urlPath = `/api/v1/assessments/{id}/migration-estimation`;
|
|
135
|
-
urlPath = urlPath.replace(
|
|
135
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
136
136
|
return {
|
|
137
137
|
path: urlPath,
|
|
138
138
|
method: 'POST',
|
|
@@ -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) =>
|
|
152
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_js_1.MigrationEstimationResponseFromJSON)(jsonValue));
|
|
153
153
|
});
|
|
154
154
|
}
|
|
155
155
|
/**
|
|
@@ -176,7 +176,7 @@ class AssessmentApi extends runtime.BaseAPI {
|
|
|
176
176
|
const headerParameters = {};
|
|
177
177
|
headerParameters['Content-Type'] = 'application/json';
|
|
178
178
|
let urlPath = `/api/v1/assessments/{id}/migration-estimation/by-complexity`;
|
|
179
|
-
urlPath = urlPath.replace(
|
|
179
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
180
180
|
return {
|
|
181
181
|
path: urlPath,
|
|
182
182
|
method: 'POST',
|
|
@@ -256,7 +256,7 @@ class AssessmentApi extends runtime.BaseAPI {
|
|
|
256
256
|
const queryParameters = {};
|
|
257
257
|
const headerParameters = {};
|
|
258
258
|
let urlPath = `/api/v1/assessments/{id}`;
|
|
259
|
-
urlPath = urlPath.replace(
|
|
259
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
260
260
|
return {
|
|
261
261
|
path: urlPath,
|
|
262
262
|
method: 'DELETE',
|
|
@@ -295,7 +295,7 @@ class AssessmentApi extends runtime.BaseAPI {
|
|
|
295
295
|
const queryParameters = {};
|
|
296
296
|
const headerParameters = {};
|
|
297
297
|
let urlPath = `/api/v1/assessments/{id}`;
|
|
298
|
-
urlPath = urlPath.replace(
|
|
298
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
299
299
|
return {
|
|
300
300
|
path: urlPath,
|
|
301
301
|
method: 'GET',
|
|
@@ -376,7 +376,7 @@ class AssessmentApi extends runtime.BaseAPI {
|
|
|
376
376
|
const headerParameters = {};
|
|
377
377
|
headerParameters['Content-Type'] = 'application/json';
|
|
378
378
|
let urlPath = `/api/v1/assessments/{id}`;
|
|
379
|
-
urlPath = urlPath.replace(
|
|
379
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
380
380
|
return {
|
|
381
381
|
path: urlPath,
|
|
382
382
|
method: 'PUT',
|
package/dist/apis/ImageApi.js
CHANGED
|
@@ -40,7 +40,7 @@ class ImageApi extends runtime.BaseAPI {
|
|
|
40
40
|
const queryParameters = {};
|
|
41
41
|
const headerParameters = {};
|
|
42
42
|
let urlPath = `/api/v1/sources/{id}/image-url`;
|
|
43
|
-
urlPath = urlPath.replace(
|
|
43
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
44
44
|
return {
|
|
45
45
|
path: urlPath,
|
|
46
46
|
method: 'GET',
|
|
@@ -79,7 +79,7 @@ class ImageApi extends runtime.BaseAPI {
|
|
|
79
79
|
const queryParameters = {};
|
|
80
80
|
const headerParameters = {};
|
|
81
81
|
let urlPath = `/api/v1/sources/{id}/image`;
|
|
82
|
-
urlPath = urlPath.replace(
|
|
82
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
83
83
|
return {
|
|
84
84
|
path: urlPath,
|
|
85
85
|
method: 'HEAD',
|
package/dist/apis/JobApi.js
CHANGED
|
@@ -40,7 +40,7 @@ class JobApi extends runtime.BaseAPI {
|
|
|
40
40
|
const queryParameters = {};
|
|
41
41
|
const headerParameters = {};
|
|
42
42
|
let urlPath = `/api/v1/assessments/jobs/{id}`;
|
|
43
|
-
urlPath = urlPath.replace(
|
|
43
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
44
44
|
return {
|
|
45
45
|
path: urlPath,
|
|
46
46
|
method: 'DELETE',
|
|
@@ -142,7 +142,7 @@ class JobApi extends runtime.BaseAPI {
|
|
|
142
142
|
const queryParameters = {};
|
|
143
143
|
const headerParameters = {};
|
|
144
144
|
let urlPath = `/api/v1/assessments/jobs/{id}`;
|
|
145
|
-
urlPath = urlPath.replace(
|
|
145
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
146
146
|
return {
|
|
147
147
|
path: urlPath,
|
|
148
148
|
method: 'GET',
|