@openshift-migration-advisor/agent-sdk 0.8.0 → 0.12.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 +6 -2
- package/.openapi-generator/VERSION +1 -1
- package/README.md +19 -17
- package/dist/apis/DefaultApi.d.ts +141 -133
- package/dist/apis/DefaultApi.js +168 -163
- package/dist/esm/apis/DefaultApi.d.ts +141 -133
- package/dist/esm/apis/DefaultApi.js +169 -164
- package/dist/esm/models/InspectorStatus.d.ts +20 -7
- package/dist/esm/models/InspectorStatus.js +12 -7
- package/dist/esm/models/StartInspectionRequest.d.ts +32 -0
- package/dist/esm/models/StartInspectionRequest.js +43 -0
- package/dist/esm/models/VMs.d.ts +18 -0
- package/dist/esm/models/VMs.js +4 -0
- package/dist/esm/models/VirtualMachine.d.ts +7 -1
- package/dist/esm/models/VirtualMachine.js +4 -4
- package/dist/esm/models/VirtualMachineDetail.d.ts +3 -3
- package/dist/esm/models/VirtualMachineDetail.js +3 -3
- package/dist/esm/models/VmInspectionConcern.d.ts +44 -0
- package/dist/esm/models/VmInspectionConcern.js +51 -0
- package/dist/esm/models/VmInspectionResults.d.ts +33 -0
- package/dist/esm/models/VmInspectionResults.js +42 -0
- package/dist/esm/models/VmInspectionStatus.d.ts +0 -1
- package/dist/esm/models/VmInspectionStatus.js +1 -2
- package/dist/esm/models/index.d.ts +3 -1
- package/dist/esm/models/index.js +3 -1
- package/dist/esm/runtime.js +1 -1
- package/dist/models/InspectorStatus.d.ts +20 -7
- package/dist/models/InspectorStatus.js +12 -7
- package/dist/models/StartInspectionRequest.d.ts +32 -0
- package/dist/models/StartInspectionRequest.js +50 -0
- package/dist/models/VMs.d.ts +18 -0
- package/dist/models/VMs.js +4 -0
- package/dist/models/VirtualMachine.d.ts +7 -1
- package/dist/models/VirtualMachine.js +4 -4
- package/dist/models/VirtualMachineDetail.d.ts +3 -3
- package/dist/models/VirtualMachineDetail.js +3 -3
- package/dist/models/VmInspectionConcern.d.ts +44 -0
- package/dist/models/VmInspectionConcern.js +58 -0
- package/dist/models/VmInspectionResults.d.ts +33 -0
- package/dist/models/VmInspectionResults.js +49 -0
- package/dist/models/VmInspectionStatus.d.ts +0 -1
- package/dist/models/VmInspectionStatus.js +1 -2
- package/dist/models/index.d.ts +3 -1
- package/dist/models/index.js +3 -1
- package/dist/runtime.js +1 -1
- package/docs/DefaultApi.md +191 -179
- package/docs/InspectorStatus.md +4 -0
- package/docs/{InspectorStartRequest.md → StartInspectionRequest.md} +5 -6
- package/docs/VMs.md +4 -0
- package/docs/VirtualMachine.md +4 -2
- package/docs/VirtualMachineDetail.md +1 -1
- package/docs/VmInspectionConcern.md +39 -0
- package/docs/VmInspectionResults.md +35 -0
- package/package.json +1 -1
- package/src/apis/DefaultApi.ts +302 -283
- package/src/models/InspectorStatus.ts +37 -7
- package/src/models/StartInspectionRequest.ts +66 -0
- package/src/models/VMs.ts +18 -0
- package/src/models/VirtualMachine.ts +11 -4
- package/src/models/VirtualMachineDetail.ts +11 -11
- package/src/models/VmInspectionConcern.ts +84 -0
- package/src/models/VmInspectionResults.ts +73 -0
- package/src/models/VmInspectionStatus.ts +1 -2
- package/src/models/index.ts +3 -1
- package/src/runtime.ts +1 -1
- package/dist/esm/models/InspectorStartRequest.d.ts +0 -39
- package/dist/esm/models/InspectorStartRequest.js +0 -48
- package/dist/models/InspectorStartRequest.d.ts +0 -39
- package/dist/models/InspectorStartRequest.js +0 -55
- package/src/models/InspectorStartRequest.ts +0 -83
|
@@ -21,48 +21,47 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
21
21
|
});
|
|
22
22
|
};
|
|
23
23
|
import * as runtime from '../runtime.js';
|
|
24
|
-
import { AgentModeRequestToJSON, AgentStatusFromJSON, CollectorStartRequestToJSON, CollectorStatusFromJSON, CreateGroupRequestToJSON, GetInventory200ResponseFromJSON, GroupFromJSON, GroupListResponseFromJSON, GroupResponseFromJSON,
|
|
24
|
+
import { AgentModeRequestToJSON, AgentStatusFromJSON, CollectorStartRequestToJSON, CollectorStatusFromJSON, CreateGroupRequestToJSON, GetInventory200ResponseFromJSON, GroupFromJSON, GroupListResponseFromJSON, GroupResponseFromJSON, InspectorStatusFromJSON, StartInspectionRequestToJSON, UpdateGroupRequestToJSON, VcenterCredentialsToJSON, VddkPropertiesFromJSON, VersionInfoFromJSON, VirtualMachineDetailFromJSON, VirtualMachineListResponseFromJSON, VmInspectionStatusFromJSON, } from '../models/index.js';
|
|
25
25
|
/**
|
|
26
26
|
*
|
|
27
27
|
*/
|
|
28
28
|
export class DefaultApi extends runtime.BaseAPI {
|
|
29
29
|
/**
|
|
30
|
-
* Creates request options for
|
|
30
|
+
* Creates request options for addVMToInspection without sending the request
|
|
31
31
|
*/
|
|
32
|
-
|
|
32
|
+
addVMToInspectionRequestOpts(requestParameters) {
|
|
33
33
|
return __awaiter(this, void 0, void 0, function* () {
|
|
34
|
-
if (requestParameters['
|
|
35
|
-
throw new runtime.RequiredError('
|
|
34
|
+
if (requestParameters['id'] == null) {
|
|
35
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling addVMToInspection().');
|
|
36
36
|
}
|
|
37
37
|
const queryParameters = {};
|
|
38
38
|
const headerParameters = {};
|
|
39
|
-
|
|
40
|
-
|
|
39
|
+
let urlPath = `/vms/{id}/inspection`;
|
|
40
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
41
41
|
return {
|
|
42
42
|
path: urlPath,
|
|
43
|
-
method: '
|
|
43
|
+
method: 'POST',
|
|
44
44
|
headers: headerParameters,
|
|
45
45
|
query: queryParameters,
|
|
46
|
-
body: requestParameters['requestBody'],
|
|
47
46
|
};
|
|
48
47
|
});
|
|
49
48
|
}
|
|
50
49
|
/**
|
|
51
|
-
* Add
|
|
50
|
+
* Add VirtualMachine to inspection queue
|
|
52
51
|
*/
|
|
53
|
-
|
|
52
|
+
addVMToInspectionRaw(requestParameters, initOverrides) {
|
|
54
53
|
return __awaiter(this, void 0, void 0, function* () {
|
|
55
|
-
const requestOptions = yield this.
|
|
54
|
+
const requestOptions = yield this.addVMToInspectionRequestOpts(requestParameters);
|
|
56
55
|
const response = yield this.request(requestOptions, initOverrides);
|
|
57
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
56
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => VmInspectionStatusFromJSON(jsonValue));
|
|
58
57
|
});
|
|
59
58
|
}
|
|
60
59
|
/**
|
|
61
|
-
* Add
|
|
60
|
+
* Add VirtualMachine to inspection queue
|
|
62
61
|
*/
|
|
63
|
-
|
|
62
|
+
addVMToInspection(requestParameters, initOverrides) {
|
|
64
63
|
return __awaiter(this, void 0, void 0, function* () {
|
|
65
|
-
const response = yield this.
|
|
64
|
+
const response = yield this.addVMToInspectionRaw(requestParameters, initOverrides);
|
|
66
65
|
return yield response.value();
|
|
67
66
|
});
|
|
68
67
|
}
|
|
@@ -117,7 +116,7 @@ export class DefaultApi extends runtime.BaseAPI {
|
|
|
117
116
|
const queryParameters = {};
|
|
118
117
|
const headerParameters = {};
|
|
119
118
|
let urlPath = `/groups/{id}`;
|
|
120
|
-
urlPath = urlPath.replace(
|
|
119
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
121
120
|
return {
|
|
122
121
|
path: urlPath,
|
|
123
122
|
method: 'DELETE',
|
|
@@ -234,7 +233,7 @@ export class DefaultApi extends runtime.BaseAPI {
|
|
|
234
233
|
}
|
|
235
234
|
const headerParameters = {};
|
|
236
235
|
let urlPath = `/groups/{id}`;
|
|
237
|
-
urlPath = urlPath.replace(
|
|
236
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
238
237
|
return {
|
|
239
238
|
path: urlPath,
|
|
240
239
|
method: 'GET',
|
|
@@ -265,11 +264,17 @@ export class DefaultApi extends runtime.BaseAPI {
|
|
|
265
264
|
/**
|
|
266
265
|
* Creates request options for getInspectorStatus without sending the request
|
|
267
266
|
*/
|
|
268
|
-
getInspectorStatusRequestOpts() {
|
|
267
|
+
getInspectorStatusRequestOpts(requestParameters) {
|
|
269
268
|
return __awaiter(this, void 0, void 0, function* () {
|
|
270
269
|
const queryParameters = {};
|
|
270
|
+
if (requestParameters['includeVddk'] != null) {
|
|
271
|
+
queryParameters['includeVddk'] = requestParameters['includeVddk'];
|
|
272
|
+
}
|
|
273
|
+
if (requestParameters['includeCredentials'] != null) {
|
|
274
|
+
queryParameters['includeCredentials'] = requestParameters['includeCredentials'];
|
|
275
|
+
}
|
|
271
276
|
const headerParameters = {};
|
|
272
|
-
let urlPath = `/
|
|
277
|
+
let urlPath = `/inspector`;
|
|
273
278
|
return {
|
|
274
279
|
path: urlPath,
|
|
275
280
|
method: 'GET',
|
|
@@ -281,9 +286,9 @@ export class DefaultApi extends runtime.BaseAPI {
|
|
|
281
286
|
/**
|
|
282
287
|
* Get inspector status
|
|
283
288
|
*/
|
|
284
|
-
getInspectorStatusRaw(initOverrides) {
|
|
289
|
+
getInspectorStatusRaw(requestParameters, initOverrides) {
|
|
285
290
|
return __awaiter(this, void 0, void 0, function* () {
|
|
286
|
-
const requestOptions = yield this.getInspectorStatusRequestOpts();
|
|
291
|
+
const requestOptions = yield this.getInspectorStatusRequestOpts(requestParameters);
|
|
287
292
|
const response = yield this.request(requestOptions, initOverrides);
|
|
288
293
|
return new runtime.JSONApiResponse(response, (jsonValue) => InspectorStatusFromJSON(jsonValue));
|
|
289
294
|
});
|
|
@@ -291,9 +296,44 @@ export class DefaultApi extends runtime.BaseAPI {
|
|
|
291
296
|
/**
|
|
292
297
|
* Get inspector status
|
|
293
298
|
*/
|
|
294
|
-
getInspectorStatus(
|
|
299
|
+
getInspectorStatus() {
|
|
300
|
+
return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) {
|
|
301
|
+
const response = yield this.getInspectorStatusRaw(requestParameters, initOverrides);
|
|
302
|
+
return yield response.value();
|
|
303
|
+
});
|
|
304
|
+
}
|
|
305
|
+
/**
|
|
306
|
+
* Creates request options for getInspectorVddkStatus without sending the request
|
|
307
|
+
*/
|
|
308
|
+
getInspectorVddkStatusRequestOpts() {
|
|
309
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
310
|
+
const queryParameters = {};
|
|
311
|
+
const headerParameters = {};
|
|
312
|
+
let urlPath = `/inspector/vddk`;
|
|
313
|
+
return {
|
|
314
|
+
path: urlPath,
|
|
315
|
+
method: 'GET',
|
|
316
|
+
headers: headerParameters,
|
|
317
|
+
query: queryParameters,
|
|
318
|
+
};
|
|
319
|
+
});
|
|
320
|
+
}
|
|
321
|
+
/**
|
|
322
|
+
* Get VDDK status
|
|
323
|
+
*/
|
|
324
|
+
getInspectorVddkStatusRaw(initOverrides) {
|
|
325
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
326
|
+
const requestOptions = yield this.getInspectorVddkStatusRequestOpts();
|
|
327
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
328
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => VddkPropertiesFromJSON(jsonValue));
|
|
329
|
+
});
|
|
330
|
+
}
|
|
331
|
+
/**
|
|
332
|
+
* Get VDDK status
|
|
333
|
+
*/
|
|
334
|
+
getInspectorVddkStatus(initOverrides) {
|
|
295
335
|
return __awaiter(this, void 0, void 0, function* () {
|
|
296
|
-
const response = yield this.
|
|
336
|
+
const response = yield this.getInspectorVddkStatusRaw(initOverrides);
|
|
297
337
|
return yield response.value();
|
|
298
338
|
});
|
|
299
339
|
}
|
|
@@ -349,7 +389,7 @@ export class DefaultApi extends runtime.BaseAPI {
|
|
|
349
389
|
const queryParameters = {};
|
|
350
390
|
const headerParameters = {};
|
|
351
391
|
let urlPath = `/vms/{id}`;
|
|
352
|
-
urlPath = urlPath.replace(
|
|
392
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
353
393
|
return {
|
|
354
394
|
path: urlPath,
|
|
355
395
|
method: 'GET',
|
|
@@ -377,45 +417,6 @@ export class DefaultApi extends runtime.BaseAPI {
|
|
|
377
417
|
return yield response.value();
|
|
378
418
|
});
|
|
379
419
|
}
|
|
380
|
-
/**
|
|
381
|
-
* Creates request options for getVMInspectionStatus without sending the request
|
|
382
|
-
*/
|
|
383
|
-
getVMInspectionStatusRequestOpts(requestParameters) {
|
|
384
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
385
|
-
if (requestParameters['id'] == null) {
|
|
386
|
-
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling getVMInspectionStatus().');
|
|
387
|
-
}
|
|
388
|
-
const queryParameters = {};
|
|
389
|
-
const headerParameters = {};
|
|
390
|
-
let urlPath = `/vms/{id}/inspector`;
|
|
391
|
-
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
|
392
|
-
return {
|
|
393
|
-
path: urlPath,
|
|
394
|
-
method: 'GET',
|
|
395
|
-
headers: headerParameters,
|
|
396
|
-
query: queryParameters,
|
|
397
|
-
};
|
|
398
|
-
});
|
|
399
|
-
}
|
|
400
|
-
/**
|
|
401
|
-
* Get inspection status for a specific VirtualMachine
|
|
402
|
-
*/
|
|
403
|
-
getVMInspectionStatusRaw(requestParameters, initOverrides) {
|
|
404
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
405
|
-
const requestOptions = yield this.getVMInspectionStatusRequestOpts(requestParameters);
|
|
406
|
-
const response = yield this.request(requestOptions, initOverrides);
|
|
407
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => VmInspectionStatusFromJSON(jsonValue));
|
|
408
|
-
});
|
|
409
|
-
}
|
|
410
|
-
/**
|
|
411
|
-
* Get inspection status for a specific VirtualMachine
|
|
412
|
-
*/
|
|
413
|
-
getVMInspectionStatus(requestParameters, initOverrides) {
|
|
414
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
415
|
-
const response = yield this.getVMInspectionStatusRaw(requestParameters, initOverrides);
|
|
416
|
-
return yield response.value();
|
|
417
|
-
});
|
|
418
|
-
}
|
|
419
420
|
/**
|
|
420
421
|
* Creates request options for getVMs without sending the request
|
|
421
422
|
*/
|
|
@@ -463,41 +464,6 @@ export class DefaultApi extends runtime.BaseAPI {
|
|
|
463
464
|
return yield response.value();
|
|
464
465
|
});
|
|
465
466
|
}
|
|
466
|
-
/**
|
|
467
|
-
* Creates request options for getVddkStatus without sending the request
|
|
468
|
-
*/
|
|
469
|
-
getVddkStatusRequestOpts() {
|
|
470
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
471
|
-
const queryParameters = {};
|
|
472
|
-
const headerParameters = {};
|
|
473
|
-
let urlPath = `/vddk`;
|
|
474
|
-
return {
|
|
475
|
-
path: urlPath,
|
|
476
|
-
method: 'GET',
|
|
477
|
-
headers: headerParameters,
|
|
478
|
-
query: queryParameters,
|
|
479
|
-
};
|
|
480
|
-
});
|
|
481
|
-
}
|
|
482
|
-
/**
|
|
483
|
-
* Get VDDK status
|
|
484
|
-
*/
|
|
485
|
-
getVddkStatusRaw(initOverrides) {
|
|
486
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
487
|
-
const requestOptions = yield this.getVddkStatusRequestOpts();
|
|
488
|
-
const response = yield this.request(requestOptions, initOverrides);
|
|
489
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => VddkPropertiesFromJSON(jsonValue));
|
|
490
|
-
});
|
|
491
|
-
}
|
|
492
|
-
/**
|
|
493
|
-
* Get VDDK status
|
|
494
|
-
*/
|
|
495
|
-
getVddkStatus(initOverrides) {
|
|
496
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
497
|
-
const response = yield this.getVddkStatusRaw(initOverrides);
|
|
498
|
-
return yield response.value();
|
|
499
|
-
});
|
|
500
|
-
}
|
|
501
467
|
/**
|
|
502
468
|
* Creates request options for getVersion without sending the request
|
|
503
469
|
*/
|
|
@@ -577,6 +543,102 @@ export class DefaultApi extends runtime.BaseAPI {
|
|
|
577
543
|
return yield response.value();
|
|
578
544
|
});
|
|
579
545
|
}
|
|
546
|
+
/**
|
|
547
|
+
* Creates request options for putInspectorCredentials without sending the request
|
|
548
|
+
*/
|
|
549
|
+
putInspectorCredentialsRequestOpts(requestParameters) {
|
|
550
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
551
|
+
if (requestParameters['vcenterCredentials'] == null) {
|
|
552
|
+
throw new runtime.RequiredError('vcenterCredentials', 'Required parameter "vcenterCredentials" was null or undefined when calling putInspectorCredentials().');
|
|
553
|
+
}
|
|
554
|
+
const queryParameters = {};
|
|
555
|
+
const headerParameters = {};
|
|
556
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
557
|
+
let urlPath = `/inspector/credentials`;
|
|
558
|
+
return {
|
|
559
|
+
path: urlPath,
|
|
560
|
+
method: 'PUT',
|
|
561
|
+
headers: headerParameters,
|
|
562
|
+
query: queryParameters,
|
|
563
|
+
body: VcenterCredentialsToJSON(requestParameters['vcenterCredentials']),
|
|
564
|
+
};
|
|
565
|
+
});
|
|
566
|
+
}
|
|
567
|
+
/**
|
|
568
|
+
* Set or replace inspector credentials
|
|
569
|
+
*/
|
|
570
|
+
putInspectorCredentialsRaw(requestParameters, initOverrides) {
|
|
571
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
572
|
+
const requestOptions = yield this.putInspectorCredentialsRequestOpts(requestParameters);
|
|
573
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
574
|
+
return new runtime.VoidApiResponse(response);
|
|
575
|
+
});
|
|
576
|
+
}
|
|
577
|
+
/**
|
|
578
|
+
* Set or replace inspector credentials
|
|
579
|
+
*/
|
|
580
|
+
putInspectorCredentials(requestParameters, initOverrides) {
|
|
581
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
582
|
+
yield this.putInspectorCredentialsRaw(requestParameters, initOverrides);
|
|
583
|
+
});
|
|
584
|
+
}
|
|
585
|
+
/**
|
|
586
|
+
* Creates request options for putInspectorVddk without sending the request
|
|
587
|
+
*/
|
|
588
|
+
putInspectorVddkRequestOpts(requestParameters) {
|
|
589
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
590
|
+
if (requestParameters['file'] == null) {
|
|
591
|
+
throw new runtime.RequiredError('file', 'Required parameter "file" was null or undefined when calling putInspectorVddk().');
|
|
592
|
+
}
|
|
593
|
+
const queryParameters = {};
|
|
594
|
+
const headerParameters = {};
|
|
595
|
+
const consumes = [
|
|
596
|
+
{ contentType: 'multipart/form-data' },
|
|
597
|
+
];
|
|
598
|
+
// @ts-ignore: canConsumeForm may be unused
|
|
599
|
+
const canConsumeForm = runtime.canConsumeForm(consumes);
|
|
600
|
+
let formParams;
|
|
601
|
+
let useForm = false;
|
|
602
|
+
// use FormData to transmit files using content-type "multipart/form-data"
|
|
603
|
+
useForm = canConsumeForm;
|
|
604
|
+
if (useForm) {
|
|
605
|
+
formParams = new FormData();
|
|
606
|
+
}
|
|
607
|
+
else {
|
|
608
|
+
formParams = new URLSearchParams();
|
|
609
|
+
}
|
|
610
|
+
if (requestParameters['file'] != null) {
|
|
611
|
+
formParams.append('file', requestParameters['file']);
|
|
612
|
+
}
|
|
613
|
+
let urlPath = `/inspector/vddk`;
|
|
614
|
+
return {
|
|
615
|
+
path: urlPath,
|
|
616
|
+
method: 'PUT',
|
|
617
|
+
headers: headerParameters,
|
|
618
|
+
query: queryParameters,
|
|
619
|
+
body: formParams,
|
|
620
|
+
};
|
|
621
|
+
});
|
|
622
|
+
}
|
|
623
|
+
/**
|
|
624
|
+
* Upload VDDK tarball
|
|
625
|
+
*/
|
|
626
|
+
putInspectorVddkRaw(requestParameters, initOverrides) {
|
|
627
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
628
|
+
const requestOptions = yield this.putInspectorVddkRequestOpts(requestParameters);
|
|
629
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
630
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => VddkPropertiesFromJSON(jsonValue));
|
|
631
|
+
});
|
|
632
|
+
}
|
|
633
|
+
/**
|
|
634
|
+
* Upload VDDK tarball
|
|
635
|
+
*/
|
|
636
|
+
putInspectorVddk(requestParameters, initOverrides) {
|
|
637
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
638
|
+
const response = yield this.putInspectorVddkRaw(requestParameters, initOverrides);
|
|
639
|
+
return yield response.value();
|
|
640
|
+
});
|
|
641
|
+
}
|
|
580
642
|
/**
|
|
581
643
|
* Creates request options for removeVMFromInspection without sending the request
|
|
582
644
|
*/
|
|
@@ -587,8 +649,8 @@ export class DefaultApi extends runtime.BaseAPI {
|
|
|
587
649
|
}
|
|
588
650
|
const queryParameters = {};
|
|
589
651
|
const headerParameters = {};
|
|
590
|
-
let urlPath = `/vms/{id}/
|
|
591
|
-
urlPath = urlPath.replace(
|
|
652
|
+
let urlPath = `/vms/{id}/inspection`;
|
|
653
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
592
654
|
return {
|
|
593
655
|
path: urlPath,
|
|
594
656
|
method: 'DELETE',
|
|
@@ -701,19 +763,19 @@ export class DefaultApi extends runtime.BaseAPI {
|
|
|
701
763
|
*/
|
|
702
764
|
startInspectionRequestOpts(requestParameters) {
|
|
703
765
|
return __awaiter(this, void 0, void 0, function* () {
|
|
704
|
-
if (requestParameters['
|
|
705
|
-
throw new runtime.RequiredError('
|
|
766
|
+
if (requestParameters['startInspectionRequest'] == null) {
|
|
767
|
+
throw new runtime.RequiredError('startInspectionRequest', 'Required parameter "startInspectionRequest" was null or undefined when calling startInspection().');
|
|
706
768
|
}
|
|
707
769
|
const queryParameters = {};
|
|
708
770
|
const headerParameters = {};
|
|
709
771
|
headerParameters['Content-Type'] = 'application/json';
|
|
710
|
-
let urlPath = `/
|
|
772
|
+
let urlPath = `/inspector`;
|
|
711
773
|
return {
|
|
712
774
|
path: urlPath,
|
|
713
775
|
method: 'POST',
|
|
714
776
|
headers: headerParameters,
|
|
715
777
|
query: queryParameters,
|
|
716
|
-
body:
|
|
778
|
+
body: StartInspectionRequestToJSON(requestParameters['startInspectionRequest']),
|
|
717
779
|
};
|
|
718
780
|
});
|
|
719
781
|
}
|
|
@@ -777,7 +839,7 @@ export class DefaultApi extends runtime.BaseAPI {
|
|
|
777
839
|
return __awaiter(this, void 0, void 0, function* () {
|
|
778
840
|
const queryParameters = {};
|
|
779
841
|
const headerParameters = {};
|
|
780
|
-
let urlPath = `/
|
|
842
|
+
let urlPath = `/inspector`;
|
|
781
843
|
return {
|
|
782
844
|
path: urlPath,
|
|
783
845
|
method: 'DELETE',
|
|
@@ -820,7 +882,7 @@ export class DefaultApi extends runtime.BaseAPI {
|
|
|
820
882
|
const headerParameters = {};
|
|
821
883
|
headerParameters['Content-Type'] = 'application/json';
|
|
822
884
|
let urlPath = `/groups/{id}`;
|
|
823
|
-
urlPath = urlPath.replace(
|
|
885
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
824
886
|
return {
|
|
825
887
|
path: urlPath,
|
|
826
888
|
method: 'PATCH',
|
|
@@ -849,61 +911,4 @@ export class DefaultApi extends runtime.BaseAPI {
|
|
|
849
911
|
return yield response.value();
|
|
850
912
|
});
|
|
851
913
|
}
|
|
852
|
-
/**
|
|
853
|
-
* Creates request options for vddkPost without sending the request
|
|
854
|
-
*/
|
|
855
|
-
vddkPostRequestOpts(requestParameters) {
|
|
856
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
857
|
-
if (requestParameters['file'] == null) {
|
|
858
|
-
throw new runtime.RequiredError('file', 'Required parameter "file" was null or undefined when calling vddkPost().');
|
|
859
|
-
}
|
|
860
|
-
const queryParameters = {};
|
|
861
|
-
const headerParameters = {};
|
|
862
|
-
const consumes = [
|
|
863
|
-
{ contentType: 'multipart/form-data' },
|
|
864
|
-
];
|
|
865
|
-
// @ts-ignore: canConsumeForm may be unused
|
|
866
|
-
const canConsumeForm = runtime.canConsumeForm(consumes);
|
|
867
|
-
let formParams;
|
|
868
|
-
let useForm = false;
|
|
869
|
-
// use FormData to transmit files using content-type "multipart/form-data"
|
|
870
|
-
useForm = canConsumeForm;
|
|
871
|
-
if (useForm) {
|
|
872
|
-
formParams = new FormData();
|
|
873
|
-
}
|
|
874
|
-
else {
|
|
875
|
-
formParams = new URLSearchParams();
|
|
876
|
-
}
|
|
877
|
-
if (requestParameters['file'] != null) {
|
|
878
|
-
formParams.append('file', requestParameters['file']);
|
|
879
|
-
}
|
|
880
|
-
let urlPath = `/vddk`;
|
|
881
|
-
return {
|
|
882
|
-
path: urlPath,
|
|
883
|
-
method: 'POST',
|
|
884
|
-
headers: headerParameters,
|
|
885
|
-
query: queryParameters,
|
|
886
|
-
body: formParams,
|
|
887
|
-
};
|
|
888
|
-
});
|
|
889
|
-
}
|
|
890
|
-
/**
|
|
891
|
-
* Upload VDDK tarball
|
|
892
|
-
*/
|
|
893
|
-
vddkPostRaw(requestParameters, initOverrides) {
|
|
894
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
895
|
-
const requestOptions = yield this.vddkPostRequestOpts(requestParameters);
|
|
896
|
-
const response = yield this.request(requestOptions, initOverrides);
|
|
897
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => VddkPropertiesFromJSON(jsonValue));
|
|
898
|
-
});
|
|
899
|
-
}
|
|
900
|
-
/**
|
|
901
|
-
* Upload VDDK tarball
|
|
902
|
-
*/
|
|
903
|
-
vddkPost(requestParameters, initOverrides) {
|
|
904
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
905
|
-
const response = yield this.vddkPostRaw(requestParameters, initOverrides);
|
|
906
|
-
return yield response.value();
|
|
907
|
-
});
|
|
908
|
-
}
|
|
909
914
|
}
|
|
@@ -9,6 +9,8 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { VddkProperties } from './VddkProperties.js';
|
|
13
|
+
import type { VcenterCredentials } from './VcenterCredentials.js';
|
|
12
14
|
/**
|
|
13
15
|
*
|
|
14
16
|
* @export
|
|
@@ -21,6 +23,18 @@ export interface InspectorStatus {
|
|
|
21
23
|
* @memberof InspectorStatus
|
|
22
24
|
*/
|
|
23
25
|
state: InspectorStatusStateEnum;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {VcenterCredentials}
|
|
29
|
+
* @memberof InspectorStatus
|
|
30
|
+
*/
|
|
31
|
+
credentials?: VcenterCredentials;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @type {VddkProperties}
|
|
35
|
+
* @memberof InspectorStatus
|
|
36
|
+
*/
|
|
37
|
+
vddk?: VddkProperties;
|
|
24
38
|
/**
|
|
25
39
|
* Error message when state is error
|
|
26
40
|
* @type {string}
|
|
@@ -32,13 +46,12 @@ export interface InspectorStatus {
|
|
|
32
46
|
* @export
|
|
33
47
|
*/
|
|
34
48
|
export declare const InspectorStatusStateEnum: {
|
|
35
|
-
readonly
|
|
36
|
-
readonly
|
|
37
|
-
readonly
|
|
38
|
-
readonly
|
|
39
|
-
readonly
|
|
40
|
-
readonly
|
|
41
|
-
readonly InspectorStatusStateRunning: "error";
|
|
49
|
+
readonly InspectorStatusStateReady: "ready";
|
|
50
|
+
readonly InspectorStatusStateInitiating: "Initiating";
|
|
51
|
+
readonly InspectorStatusStateRunning: "running";
|
|
52
|
+
readonly InspectorStatusStateCanceled: "canceled";
|
|
53
|
+
readonly InspectorStatusStateCompleted: "completed";
|
|
54
|
+
readonly InspectorStatusStateError: "error";
|
|
42
55
|
};
|
|
43
56
|
export type InspectorStatusStateEnum = typeof InspectorStatusStateEnum[keyof typeof InspectorStatusStateEnum];
|
|
44
57
|
/**
|
|
@@ -11,17 +11,18 @@
|
|
|
11
11
|
* https://openapi-generator.tech
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
|
+
import { VddkPropertiesFromJSON, VddkPropertiesToJSON, } from './VddkProperties.js';
|
|
15
|
+
import { VcenterCredentialsFromJSON, VcenterCredentialsToJSON, } from './VcenterCredentials.js';
|
|
14
16
|
/**
|
|
15
17
|
* @export
|
|
16
18
|
*/
|
|
17
19
|
export const InspectorStatusStateEnum = {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
InspectorStatusStateRunning: 'error'
|
|
20
|
+
InspectorStatusStateReady: 'ready',
|
|
21
|
+
InspectorStatusStateInitiating: 'Initiating',
|
|
22
|
+
InspectorStatusStateRunning: 'running',
|
|
23
|
+
InspectorStatusStateCanceled: 'canceled',
|
|
24
|
+
InspectorStatusStateCompleted: 'completed',
|
|
25
|
+
InspectorStatusStateError: 'error'
|
|
25
26
|
};
|
|
26
27
|
/**
|
|
27
28
|
* Check if a given object implements the InspectorStatus interface.
|
|
@@ -40,6 +41,8 @@ export function InspectorStatusFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
40
41
|
}
|
|
41
42
|
return {
|
|
42
43
|
'state': json['state'],
|
|
44
|
+
'credentials': json['credentials'] == null ? undefined : VcenterCredentialsFromJSON(json['credentials']),
|
|
45
|
+
'vddk': json['vddk'] == null ? undefined : VddkPropertiesFromJSON(json['vddk']),
|
|
43
46
|
'error': json['error'] == null ? undefined : json['error'],
|
|
44
47
|
};
|
|
45
48
|
}
|
|
@@ -52,6 +55,8 @@ export function InspectorStatusToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
52
55
|
}
|
|
53
56
|
return {
|
|
54
57
|
'state': value['state'],
|
|
58
|
+
'credentials': VcenterCredentialsToJSON(value['credentials']),
|
|
59
|
+
'vddk': VddkPropertiesToJSON(value['vddk']),
|
|
55
60
|
'error': value['error'],
|
|
56
61
|
};
|
|
57
62
|
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Assisted Migration Agent API
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: v1
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* Array of VirtualMachine id
|
|
14
|
+
* @export
|
|
15
|
+
* @interface StartInspectionRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface StartInspectionRequest {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {Array<string>}
|
|
21
|
+
* @memberof StartInspectionRequest
|
|
22
|
+
*/
|
|
23
|
+
vmIds: Array<string>;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the StartInspectionRequest interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfStartInspectionRequest(value: object): value is StartInspectionRequest;
|
|
29
|
+
export declare function StartInspectionRequestFromJSON(json: any): StartInspectionRequest;
|
|
30
|
+
export declare function StartInspectionRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): StartInspectionRequest;
|
|
31
|
+
export declare function StartInspectionRequestToJSON(json: any): StartInspectionRequest;
|
|
32
|
+
export declare function StartInspectionRequestToJSONTyped(value?: StartInspectionRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Assisted Migration Agent API
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: v1
|
|
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
|
+
/**
|
|
15
|
+
* Check if a given object implements the StartInspectionRequest interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfStartInspectionRequest(value) {
|
|
18
|
+
if (!('vmIds' in value) || value['vmIds'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
return true;
|
|
21
|
+
}
|
|
22
|
+
export function StartInspectionRequestFromJSON(json) {
|
|
23
|
+
return StartInspectionRequestFromJSONTyped(json, false);
|
|
24
|
+
}
|
|
25
|
+
export function StartInspectionRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
26
|
+
if (json == null) {
|
|
27
|
+
return json;
|
|
28
|
+
}
|
|
29
|
+
return {
|
|
30
|
+
'vmIds': json['vmIds'],
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
export function StartInspectionRequestToJSON(json) {
|
|
34
|
+
return StartInspectionRequestToJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
export function StartInspectionRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
37
|
+
if (value == null) {
|
|
38
|
+
return value;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'vmIds': value['vmIds'],
|
|
42
|
+
};
|
|
43
|
+
}
|
package/dist/esm/models/VMs.d.ts
CHANGED
|
@@ -58,6 +58,15 @@ export interface VMs {
|
|
|
58
58
|
diskSizeTier?: {
|
|
59
59
|
[key: string]: DiskSizeTierSummary;
|
|
60
60
|
};
|
|
61
|
+
/**
|
|
62
|
+
* Distribution of VMs across disk-complexity tiers used by the estimation engine (0-10TiB, 10-20TiB, 20-50TiB, 50+TiB).
|
|
63
|
+
*
|
|
64
|
+
* @type {{ [key: string]: DiskSizeTierSummary; }}
|
|
65
|
+
* @memberof VMs
|
|
66
|
+
*/
|
|
67
|
+
diskComplexityTier?: {
|
|
68
|
+
[key: string]: DiskSizeTierSummary;
|
|
69
|
+
};
|
|
61
70
|
/**
|
|
62
71
|
*
|
|
63
72
|
* @type {{ [key: string]: DiskTypeSummary; }}
|
|
@@ -94,10 +103,19 @@ export interface VMs {
|
|
|
94
103
|
* Distribution of VMs by migration complexity level (0=Unsupported, 1=Easy, 2=Medium, 3=Hard, 4=WhiteGlove)
|
|
95
104
|
* @type {{ [key: string]: number; }}
|
|
96
105
|
* @memberof VMs
|
|
106
|
+
* @deprecated
|
|
97
107
|
*/
|
|
98
108
|
distributionByComplexity?: {
|
|
99
109
|
[key: string]: number;
|
|
100
110
|
};
|
|
111
|
+
/**
|
|
112
|
+
* Distribution of VMs by migration complexity level, enriched with total disk size per level. Supersedes distributionByComplexity.
|
|
113
|
+
* @type {{ [key: string]: DiskSizeTierSummary; }}
|
|
114
|
+
* @memberof VMs
|
|
115
|
+
*/
|
|
116
|
+
complexityDistribution?: {
|
|
117
|
+
[key: string]: DiskSizeTierSummary;
|
|
118
|
+
};
|
|
101
119
|
/**
|
|
102
120
|
*
|
|
103
121
|
* @type {VMResourceBreakdown}
|