@openshift-migration-advisor/planner-sdk 0.10.0-fa4e0ff47672 → 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 +12 -0
- package/README.md +16 -2
- package/dist/apis/AccountApi.js +9 -9
- 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 +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/esm/apis/AccountApi.js +9 -9
- 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 +1 -0
- package/dist/esm/apis/index.js +1 -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 +5 -0
- package/dist/esm/models/index.js +5 -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 +5 -0
- package/dist/models/index.js +5 -0
- package/docs/AssessmentApi.md +2 -2
- 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 +9 -9
- 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 +1 -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 +5 -0
|
@@ -0,0 +1,375 @@
|
|
|
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, PartnerRequestFromJSON, PartnerRequestCreateToJSON, PartnerRequestUpdateToJSON, } from '../models/index.js';
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
*/
|
|
28
|
+
export class PartnerApi extends runtime.BaseAPI {
|
|
29
|
+
/**
|
|
30
|
+
* Creates request options for cancelPartnerRequest without sending the request
|
|
31
|
+
*/
|
|
32
|
+
cancelPartnerRequestRequestOpts(requestParameters) {
|
|
33
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
34
|
+
if (requestParameters['id'] == null) {
|
|
35
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling cancelPartnerRequest().');
|
|
36
|
+
}
|
|
37
|
+
const queryParameters = {};
|
|
38
|
+
const headerParameters = {};
|
|
39
|
+
let urlPath = `/api/v1/partners/requests/{id}`;
|
|
40
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
41
|
+
return {
|
|
42
|
+
path: urlPath,
|
|
43
|
+
method: 'DELETE',
|
|
44
|
+
headers: headerParameters,
|
|
45
|
+
query: queryParameters,
|
|
46
|
+
};
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Cancel a pending partner request
|
|
51
|
+
*/
|
|
52
|
+
cancelPartnerRequestRaw(requestParameters, initOverrides) {
|
|
53
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
54
|
+
const requestOptions = yield this.cancelPartnerRequestRequestOpts(requestParameters);
|
|
55
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
56
|
+
return new runtime.VoidApiResponse(response);
|
|
57
|
+
});
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* Cancel a pending partner request
|
|
61
|
+
*/
|
|
62
|
+
cancelPartnerRequest(requestParameters, initOverrides) {
|
|
63
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
64
|
+
yield this.cancelPartnerRequestRaw(requestParameters, initOverrides);
|
|
65
|
+
});
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* Creates request options for createPartnerRequest without sending the request
|
|
69
|
+
*/
|
|
70
|
+
createPartnerRequestRequestOpts(requestParameters) {
|
|
71
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
72
|
+
if (requestParameters['id'] == null) {
|
|
73
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling createPartnerRequest().');
|
|
74
|
+
}
|
|
75
|
+
if (requestParameters['partnerRequestCreate'] == null) {
|
|
76
|
+
throw new runtime.RequiredError('partnerRequestCreate', 'Required parameter "partnerRequestCreate" was null or undefined when calling createPartnerRequest().');
|
|
77
|
+
}
|
|
78
|
+
const queryParameters = {};
|
|
79
|
+
const headerParameters = {};
|
|
80
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
81
|
+
let urlPath = `/api/v1/partners/{id}/request`;
|
|
82
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
83
|
+
return {
|
|
84
|
+
path: urlPath,
|
|
85
|
+
method: 'POST',
|
|
86
|
+
headers: headerParameters,
|
|
87
|
+
query: queryParameters,
|
|
88
|
+
body: PartnerRequestCreateToJSON(requestParameters['partnerRequestCreate']),
|
|
89
|
+
};
|
|
90
|
+
});
|
|
91
|
+
}
|
|
92
|
+
/**
|
|
93
|
+
* Submit a partner request. Only regular users can make this request.
|
|
94
|
+
*/
|
|
95
|
+
createPartnerRequestRaw(requestParameters, initOverrides) {
|
|
96
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
97
|
+
const requestOptions = yield this.createPartnerRequestRequestOpts(requestParameters);
|
|
98
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
99
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => PartnerRequestFromJSON(jsonValue));
|
|
100
|
+
});
|
|
101
|
+
}
|
|
102
|
+
/**
|
|
103
|
+
* Submit a partner request. Only regular users can make this request.
|
|
104
|
+
*/
|
|
105
|
+
createPartnerRequest(requestParameters, initOverrides) {
|
|
106
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
107
|
+
const response = yield this.createPartnerRequestRaw(requestParameters, initOverrides);
|
|
108
|
+
return yield response.value();
|
|
109
|
+
});
|
|
110
|
+
}
|
|
111
|
+
/**
|
|
112
|
+
* Creates request options for getPartner without sending the request
|
|
113
|
+
*/
|
|
114
|
+
getPartnerRequestOpts(requestParameters) {
|
|
115
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
116
|
+
if (requestParameters['id'] == null) {
|
|
117
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling getPartner().');
|
|
118
|
+
}
|
|
119
|
+
const queryParameters = {};
|
|
120
|
+
const headerParameters = {};
|
|
121
|
+
let urlPath = `/api/v1/partners/{id}`;
|
|
122
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
123
|
+
return {
|
|
124
|
+
path: urlPath,
|
|
125
|
+
method: 'GET',
|
|
126
|
+
headers: headerParameters,
|
|
127
|
+
query: queryParameters,
|
|
128
|
+
};
|
|
129
|
+
});
|
|
130
|
+
}
|
|
131
|
+
/**
|
|
132
|
+
* Get my partner organization details
|
|
133
|
+
*/
|
|
134
|
+
getPartnerRaw(requestParameters, initOverrides) {
|
|
135
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
136
|
+
const requestOptions = yield this.getPartnerRequestOpts(requestParameters);
|
|
137
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
138
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => GroupFromJSON(jsonValue));
|
|
139
|
+
});
|
|
140
|
+
}
|
|
141
|
+
/**
|
|
142
|
+
* Get my partner organization details
|
|
143
|
+
*/
|
|
144
|
+
getPartner(requestParameters, initOverrides) {
|
|
145
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
146
|
+
const response = yield this.getPartnerRaw(requestParameters, initOverrides);
|
|
147
|
+
return yield response.value();
|
|
148
|
+
});
|
|
149
|
+
}
|
|
150
|
+
/**
|
|
151
|
+
* Creates request options for leavePartner without sending the request
|
|
152
|
+
*/
|
|
153
|
+
leavePartnerRequestOpts(requestParameters) {
|
|
154
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
155
|
+
if (requestParameters['id'] == null) {
|
|
156
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling leavePartner().');
|
|
157
|
+
}
|
|
158
|
+
const queryParameters = {};
|
|
159
|
+
const headerParameters = {};
|
|
160
|
+
let urlPath = `/api/v1/partners/{id}`;
|
|
161
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
162
|
+
return {
|
|
163
|
+
path: urlPath,
|
|
164
|
+
method: 'DELETE',
|
|
165
|
+
headers: headerParameters,
|
|
166
|
+
query: queryParameters,
|
|
167
|
+
};
|
|
168
|
+
});
|
|
169
|
+
}
|
|
170
|
+
/**
|
|
171
|
+
* Leave partner organization
|
|
172
|
+
*/
|
|
173
|
+
leavePartnerRaw(requestParameters, initOverrides) {
|
|
174
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
175
|
+
const requestOptions = yield this.leavePartnerRequestOpts(requestParameters);
|
|
176
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
177
|
+
return new runtime.VoidApiResponse(response);
|
|
178
|
+
});
|
|
179
|
+
}
|
|
180
|
+
/**
|
|
181
|
+
* Leave partner organization
|
|
182
|
+
*/
|
|
183
|
+
leavePartner(requestParameters, initOverrides) {
|
|
184
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
185
|
+
yield this.leavePartnerRaw(requestParameters, initOverrides);
|
|
186
|
+
});
|
|
187
|
+
}
|
|
188
|
+
/**
|
|
189
|
+
* Creates request options for listCustomers without sending the request
|
|
190
|
+
*/
|
|
191
|
+
listCustomersRequestOpts() {
|
|
192
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
193
|
+
const queryParameters = {};
|
|
194
|
+
const headerParameters = {};
|
|
195
|
+
let urlPath = `/api/v1/customers`;
|
|
196
|
+
return {
|
|
197
|
+
path: urlPath,
|
|
198
|
+
method: 'GET',
|
|
199
|
+
headers: headerParameters,
|
|
200
|
+
query: queryParameters,
|
|
201
|
+
};
|
|
202
|
+
});
|
|
203
|
+
}
|
|
204
|
+
/**
|
|
205
|
+
* List customer requests for my partner organization
|
|
206
|
+
*/
|
|
207
|
+
listCustomersRaw(initOverrides) {
|
|
208
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
209
|
+
const requestOptions = yield this.listCustomersRequestOpts();
|
|
210
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
211
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(PartnerRequestFromJSON));
|
|
212
|
+
});
|
|
213
|
+
}
|
|
214
|
+
/**
|
|
215
|
+
* List customer requests for my partner organization
|
|
216
|
+
*/
|
|
217
|
+
listCustomers(initOverrides) {
|
|
218
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
219
|
+
const response = yield this.listCustomersRaw(initOverrides);
|
|
220
|
+
return yield response.value();
|
|
221
|
+
});
|
|
222
|
+
}
|
|
223
|
+
/**
|
|
224
|
+
* Creates request options for listPartnerRequests without sending the request
|
|
225
|
+
*/
|
|
226
|
+
listPartnerRequestsRequestOpts() {
|
|
227
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
228
|
+
const queryParameters = {};
|
|
229
|
+
const headerParameters = {};
|
|
230
|
+
let urlPath = `/api/v1/partners/requests`;
|
|
231
|
+
return {
|
|
232
|
+
path: urlPath,
|
|
233
|
+
method: 'GET',
|
|
234
|
+
headers: headerParameters,
|
|
235
|
+
query: queryParameters,
|
|
236
|
+
};
|
|
237
|
+
});
|
|
238
|
+
}
|
|
239
|
+
/**
|
|
240
|
+
* List my partner requests
|
|
241
|
+
*/
|
|
242
|
+
listPartnerRequestsRaw(initOverrides) {
|
|
243
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
244
|
+
const requestOptions = yield this.listPartnerRequestsRequestOpts();
|
|
245
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
246
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(PartnerRequestFromJSON));
|
|
247
|
+
});
|
|
248
|
+
}
|
|
249
|
+
/**
|
|
250
|
+
* List my partner requests
|
|
251
|
+
*/
|
|
252
|
+
listPartnerRequests(initOverrides) {
|
|
253
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
254
|
+
const response = yield this.listPartnerRequestsRaw(initOverrides);
|
|
255
|
+
return yield response.value();
|
|
256
|
+
});
|
|
257
|
+
}
|
|
258
|
+
/**
|
|
259
|
+
* Creates request options for listPartners without sending the request
|
|
260
|
+
*/
|
|
261
|
+
listPartnersRequestOpts() {
|
|
262
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
263
|
+
const queryParameters = {};
|
|
264
|
+
const headerParameters = {};
|
|
265
|
+
let urlPath = `/api/v1/partners`;
|
|
266
|
+
return {
|
|
267
|
+
path: urlPath,
|
|
268
|
+
method: 'GET',
|
|
269
|
+
headers: headerParameters,
|
|
270
|
+
query: queryParameters,
|
|
271
|
+
};
|
|
272
|
+
});
|
|
273
|
+
}
|
|
274
|
+
/**
|
|
275
|
+
* List available partner organizations
|
|
276
|
+
*/
|
|
277
|
+
listPartnersRaw(initOverrides) {
|
|
278
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
279
|
+
const requestOptions = yield this.listPartnersRequestOpts();
|
|
280
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
281
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(GroupFromJSON));
|
|
282
|
+
});
|
|
283
|
+
}
|
|
284
|
+
/**
|
|
285
|
+
* List available partner organizations
|
|
286
|
+
*/
|
|
287
|
+
listPartners(initOverrides) {
|
|
288
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
289
|
+
const response = yield this.listPartnersRaw(initOverrides);
|
|
290
|
+
return yield response.value();
|
|
291
|
+
});
|
|
292
|
+
}
|
|
293
|
+
/**
|
|
294
|
+
* Creates request options for removeCustomer without sending the request
|
|
295
|
+
*/
|
|
296
|
+
removeCustomerRequestOpts(requestParameters) {
|
|
297
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
298
|
+
if (requestParameters['username'] == null) {
|
|
299
|
+
throw new runtime.RequiredError('username', 'Required parameter "username" was null or undefined when calling removeCustomer().');
|
|
300
|
+
}
|
|
301
|
+
const queryParameters = {};
|
|
302
|
+
const headerParameters = {};
|
|
303
|
+
let urlPath = `/api/v1/customers/{username}`;
|
|
304
|
+
urlPath = urlPath.replace('{username}', encodeURIComponent(String(requestParameters['username'])));
|
|
305
|
+
return {
|
|
306
|
+
path: urlPath,
|
|
307
|
+
method: 'DELETE',
|
|
308
|
+
headers: headerParameters,
|
|
309
|
+
query: queryParameters,
|
|
310
|
+
};
|
|
311
|
+
});
|
|
312
|
+
}
|
|
313
|
+
/**
|
|
314
|
+
* Remove a customer from partner organization
|
|
315
|
+
*/
|
|
316
|
+
removeCustomerRaw(requestParameters, initOverrides) {
|
|
317
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
318
|
+
const requestOptions = yield this.removeCustomerRequestOpts(requestParameters);
|
|
319
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
320
|
+
return new runtime.VoidApiResponse(response);
|
|
321
|
+
});
|
|
322
|
+
}
|
|
323
|
+
/**
|
|
324
|
+
* Remove a customer from partner organization
|
|
325
|
+
*/
|
|
326
|
+
removeCustomer(requestParameters, initOverrides) {
|
|
327
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
328
|
+
yield this.removeCustomerRaw(requestParameters, initOverrides);
|
|
329
|
+
});
|
|
330
|
+
}
|
|
331
|
+
/**
|
|
332
|
+
* Creates request options for updatePartnerRequest without sending the request
|
|
333
|
+
*/
|
|
334
|
+
updatePartnerRequestRequestOpts(requestParameters) {
|
|
335
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
336
|
+
if (requestParameters['id'] == null) {
|
|
337
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling updatePartnerRequest().');
|
|
338
|
+
}
|
|
339
|
+
if (requestParameters['partnerRequestUpdate'] == null) {
|
|
340
|
+
throw new runtime.RequiredError('partnerRequestUpdate', 'Required parameter "partnerRequestUpdate" was null or undefined when calling updatePartnerRequest().');
|
|
341
|
+
}
|
|
342
|
+
const queryParameters = {};
|
|
343
|
+
const headerParameters = {};
|
|
344
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
345
|
+
let urlPath = `/api/v1/partners/requests/{id}`;
|
|
346
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
347
|
+
return {
|
|
348
|
+
path: urlPath,
|
|
349
|
+
method: 'PUT',
|
|
350
|
+
headers: headerParameters,
|
|
351
|
+
query: queryParameters,
|
|
352
|
+
body: PartnerRequestUpdateToJSON(requestParameters['partnerRequestUpdate']),
|
|
353
|
+
};
|
|
354
|
+
});
|
|
355
|
+
}
|
|
356
|
+
/**
|
|
357
|
+
* Accept or reject a customer request
|
|
358
|
+
*/
|
|
359
|
+
updatePartnerRequestRaw(requestParameters, initOverrides) {
|
|
360
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
361
|
+
const requestOptions = yield this.updatePartnerRequestRequestOpts(requestParameters);
|
|
362
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
363
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => PartnerRequestFromJSON(jsonValue));
|
|
364
|
+
});
|
|
365
|
+
}
|
|
366
|
+
/**
|
|
367
|
+
* Accept or reject a customer request
|
|
368
|
+
*/
|
|
369
|
+
updatePartnerRequest(requestParameters, initOverrides) {
|
|
370
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
371
|
+
const response = yield this.updatePartnerRequestRaw(requestParameters, initOverrides);
|
|
372
|
+
return yield response.value();
|
|
373
|
+
});
|
|
374
|
+
}
|
|
375
|
+
}
|
|
@@ -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
package/dist/esm/apis/index.js
CHANGED
|
@@ -29,7 +29,7 @@ export interface MigrationEstimationRequest {
|
|
|
29
29
|
*/
|
|
30
30
|
estimationSchema?: Array<string>;
|
|
31
31
|
/**
|
|
32
|
-
* Optional calculator parameter overrides. Keys must match known calculator param names (e.g. "transfer_rate_mbps", "work_hours_per_day", "troubleshoot_mins_per_vm", "post_migration_engineers"). User-supplied values take precedence over both defaults and inventory-derived values. Unknown keys are
|
|
32
|
+
* Optional calculator parameter overrides. Keys must match known calculator param names (e.g. "transfer_rate_mbps", "work_hours_per_day", "troubleshoot_mins_per_vm", "post_migration_engineers"). User-supplied values take precedence over both defaults and inventory-derived values. Unknown keys are rejected with HTTP 400.
|
|
33
33
|
*
|
|
34
34
|
* @type {{ [key: string]: any; }}
|
|
35
35
|
* @memberof MigrationEstimationRequest
|
|
@@ -0,0 +1,43 @@
|
|
|
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
|
+
import type { SchemaEstimationResult } from './SchemaEstimationResult.js';
|
|
13
|
+
import type { EstimationContext } from './EstimationContext.js';
|
|
14
|
+
/**
|
|
15
|
+
* Migration estimation result, including per-schema results and the parameters used.
|
|
16
|
+
*
|
|
17
|
+
* @export
|
|
18
|
+
* @interface MigrationEstimationResponse
|
|
19
|
+
*/
|
|
20
|
+
export interface MigrationEstimationResponse {
|
|
21
|
+
/**
|
|
22
|
+
* Estimation results keyed by schema name (e.g. "network-based", "storage-offload").
|
|
23
|
+
* @type {{ [key: string]: SchemaEstimationResult; }}
|
|
24
|
+
* @memberof MigrationEstimationResponse
|
|
25
|
+
*/
|
|
26
|
+
estimation: {
|
|
27
|
+
[key: string]: SchemaEstimationResult;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @type {EstimationContext}
|
|
32
|
+
* @memberof MigrationEstimationResponse
|
|
33
|
+
*/
|
|
34
|
+
estimationContext: EstimationContext;
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the MigrationEstimationResponse interface.
|
|
38
|
+
*/
|
|
39
|
+
export declare function instanceOfMigrationEstimationResponse(value: object): value is MigrationEstimationResponse;
|
|
40
|
+
export declare function MigrationEstimationResponseFromJSON(json: any): MigrationEstimationResponse;
|
|
41
|
+
export declare function MigrationEstimationResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): MigrationEstimationResponse;
|
|
42
|
+
export declare function MigrationEstimationResponseToJSON(json: any): MigrationEstimationResponse;
|
|
43
|
+
export declare function MigrationEstimationResponseToJSONTyped(value?: MigrationEstimationResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,50 @@
|
|
|
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
|
+
import { mapValues } from '../runtime.js';
|
|
15
|
+
import { SchemaEstimationResultFromJSON, SchemaEstimationResultToJSON, } from './SchemaEstimationResult.js';
|
|
16
|
+
import { EstimationContextFromJSON, EstimationContextToJSON, } from './EstimationContext.js';
|
|
17
|
+
/**
|
|
18
|
+
* Check if a given object implements the MigrationEstimationResponse interface.
|
|
19
|
+
*/
|
|
20
|
+
export function instanceOfMigrationEstimationResponse(value) {
|
|
21
|
+
if (!('estimation' in value) || value['estimation'] === undefined)
|
|
22
|
+
return false;
|
|
23
|
+
if (!('estimationContext' in value) || value['estimationContext'] === undefined)
|
|
24
|
+
return false;
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
export function MigrationEstimationResponseFromJSON(json) {
|
|
28
|
+
return MigrationEstimationResponseFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
export function MigrationEstimationResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'estimation': (mapValues(json['estimation'], SchemaEstimationResultFromJSON)),
|
|
36
|
+
'estimationContext': EstimationContextFromJSON(json['estimationContext']),
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
export function MigrationEstimationResponseToJSON(json) {
|
|
40
|
+
return MigrationEstimationResponseToJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
export function MigrationEstimationResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
43
|
+
if (value == null) {
|
|
44
|
+
return value;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'estimation': (mapValues(value['estimation'], SchemaEstimationResultToJSON)),
|
|
48
|
+
'estimationContext': EstimationContextToJSON(value['estimationContext']),
|
|
49
|
+
};
|
|
50
|
+
}
|
|
@@ -0,0 +1,99 @@
|
|
|
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
|
+
import type { PartnerRequestStatus } from './PartnerRequestStatus.js';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface PartnerRequest
|
|
17
|
+
*/
|
|
18
|
+
export interface PartnerRequest {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof PartnerRequest
|
|
23
|
+
*/
|
|
24
|
+
id: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof PartnerRequest
|
|
29
|
+
*/
|
|
30
|
+
username: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof PartnerRequest
|
|
35
|
+
*/
|
|
36
|
+
partnerId: string;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {PartnerRequestStatus}
|
|
40
|
+
* @memberof PartnerRequest
|
|
41
|
+
*/
|
|
42
|
+
requestStatus: PartnerRequestStatus;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {string}
|
|
46
|
+
* @memberof PartnerRequest
|
|
47
|
+
*/
|
|
48
|
+
name: string;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {string}
|
|
52
|
+
* @memberof PartnerRequest
|
|
53
|
+
*/
|
|
54
|
+
contactName: string;
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
* @type {string}
|
|
58
|
+
* @memberof PartnerRequest
|
|
59
|
+
*/
|
|
60
|
+
contactPhone: string;
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @type {string}
|
|
64
|
+
* @memberof PartnerRequest
|
|
65
|
+
*/
|
|
66
|
+
email: string;
|
|
67
|
+
/**
|
|
68
|
+
*
|
|
69
|
+
* @type {string}
|
|
70
|
+
* @memberof PartnerRequest
|
|
71
|
+
*/
|
|
72
|
+
location: string;
|
|
73
|
+
/**
|
|
74
|
+
*
|
|
75
|
+
* @type {string}
|
|
76
|
+
* @memberof PartnerRequest
|
|
77
|
+
*/
|
|
78
|
+
reason?: string | null;
|
|
79
|
+
/**
|
|
80
|
+
*
|
|
81
|
+
* @type {Date}
|
|
82
|
+
* @memberof PartnerRequest
|
|
83
|
+
*/
|
|
84
|
+
acceptedAt?: Date | null;
|
|
85
|
+
/**
|
|
86
|
+
*
|
|
87
|
+
* @type {Date}
|
|
88
|
+
* @memberof PartnerRequest
|
|
89
|
+
*/
|
|
90
|
+
terminatedAt?: Date | null;
|
|
91
|
+
}
|
|
92
|
+
/**
|
|
93
|
+
* Check if a given object implements the PartnerRequest interface.
|
|
94
|
+
*/
|
|
95
|
+
export declare function instanceOfPartnerRequest(value: object): value is PartnerRequest;
|
|
96
|
+
export declare function PartnerRequestFromJSON(json: any): PartnerRequest;
|
|
97
|
+
export declare function PartnerRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PartnerRequest;
|
|
98
|
+
export declare function PartnerRequestToJSON(json: any): PartnerRequest;
|
|
99
|
+
export declare function PartnerRequestToJSONTyped(value?: PartnerRequest | null, ignoreDiscriminator?: boolean): any;
|