@openshift-migration-advisor/agent-sdk 0.8.0-a3f90da0e31d → 0.8.0-adc7901d9658
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 +2 -2
- package/README.md +12 -12
- package/dist/apis/DefaultApi.d.ts +125 -117
- package/dist/apis/DefaultApi.js +145 -139
- package/dist/esm/apis/DefaultApi.d.ts +125 -117
- package/dist/esm/apis/DefaultApi.js +146 -140
- package/dist/esm/models/InspectorStatus.d.ts +14 -0
- package/dist/esm/models/InspectorStatus.js +6 -0
- package/dist/esm/models/StartInspectionRequest.d.ts +32 -0
- package/dist/esm/models/StartInspectionRequest.js +43 -0
- package/dist/esm/models/index.d.ts +1 -1
- package/dist/esm/models/index.js +1 -1
- package/dist/models/InspectorStatus.d.ts +14 -0
- package/dist/models/InspectorStatus.js +6 -0
- package/dist/models/StartInspectionRequest.d.ts +32 -0
- package/dist/models/StartInspectionRequest.js +50 -0
- package/dist/models/index.d.ts +1 -1
- package/dist/models/index.js +1 -1
- package/docs/DefaultApi.md +196 -187
- package/docs/InspectorStatus.md +4 -0
- package/docs/{InspectorStartRequest.md → StartInspectionRequest.md} +5 -6
- package/package.json +1 -1
- package/src/apis/DefaultApi.ts +268 -247
- package/src/models/InspectorStatus.ts +31 -0
- package/src/models/StartInspectionRequest.ts +66 -0
- package/src/models/index.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
package/dist/apis/DefaultApi.js
CHANGED
|
@@ -29,45 +29,6 @@ const index_js_1 = require("../models/index.js");
|
|
|
29
29
|
*
|
|
30
30
|
*/
|
|
31
31
|
class DefaultApi extends runtime.BaseAPI {
|
|
32
|
-
/**
|
|
33
|
-
* Creates request options for addVMToInspection without sending the request
|
|
34
|
-
*/
|
|
35
|
-
addVMToInspectionRequestOpts(requestParameters) {
|
|
36
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
37
|
-
if (requestParameters['id'] == null) {
|
|
38
|
-
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling addVMToInspection().');
|
|
39
|
-
}
|
|
40
|
-
const queryParameters = {};
|
|
41
|
-
const headerParameters = {};
|
|
42
|
-
let urlPath = `/vms/{id}/inspection`;
|
|
43
|
-
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
|
44
|
-
return {
|
|
45
|
-
path: urlPath,
|
|
46
|
-
method: 'POST',
|
|
47
|
-
headers: headerParameters,
|
|
48
|
-
query: queryParameters,
|
|
49
|
-
};
|
|
50
|
-
});
|
|
51
|
-
}
|
|
52
|
-
/**
|
|
53
|
-
* Add VirtualMachine to inspection queue
|
|
54
|
-
*/
|
|
55
|
-
addVMToInspectionRaw(requestParameters, initOverrides) {
|
|
56
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
57
|
-
const requestOptions = yield this.addVMToInspectionRequestOpts(requestParameters);
|
|
58
|
-
const response = yield this.request(requestOptions, initOverrides);
|
|
59
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_js_1.VmInspectionStatusFromJSON)(jsonValue));
|
|
60
|
-
});
|
|
61
|
-
}
|
|
62
|
-
/**
|
|
63
|
-
* Add VirtualMachine to inspection queue
|
|
64
|
-
*/
|
|
65
|
-
addVMToInspection(requestParameters, initOverrides) {
|
|
66
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
67
|
-
const response = yield this.addVMToInspectionRaw(requestParameters, initOverrides);
|
|
68
|
-
return yield response.value();
|
|
69
|
-
});
|
|
70
|
-
}
|
|
71
32
|
/**
|
|
72
33
|
* Creates request options for createGroup without sending the request
|
|
73
34
|
*/
|
|
@@ -267,9 +228,15 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
267
228
|
/**
|
|
268
229
|
* Creates request options for getInspectorStatus without sending the request
|
|
269
230
|
*/
|
|
270
|
-
getInspectorStatusRequestOpts() {
|
|
231
|
+
getInspectorStatusRequestOpts(requestParameters) {
|
|
271
232
|
return __awaiter(this, void 0, void 0, function* () {
|
|
272
233
|
const queryParameters = {};
|
|
234
|
+
if (requestParameters['includeVddk'] != null) {
|
|
235
|
+
queryParameters['includeVddk'] = requestParameters['includeVddk'];
|
|
236
|
+
}
|
|
237
|
+
if (requestParameters['includeCredentials'] != null) {
|
|
238
|
+
queryParameters['includeCredentials'] = requestParameters['includeCredentials'];
|
|
239
|
+
}
|
|
273
240
|
const headerParameters = {};
|
|
274
241
|
let urlPath = `/inspector`;
|
|
275
242
|
return {
|
|
@@ -283,9 +250,9 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
283
250
|
/**
|
|
284
251
|
* Get inspector status
|
|
285
252
|
*/
|
|
286
|
-
getInspectorStatusRaw(initOverrides) {
|
|
253
|
+
getInspectorStatusRaw(requestParameters, initOverrides) {
|
|
287
254
|
return __awaiter(this, void 0, void 0, function* () {
|
|
288
|
-
const requestOptions = yield this.getInspectorStatusRequestOpts();
|
|
255
|
+
const requestOptions = yield this.getInspectorStatusRequestOpts(requestParameters);
|
|
289
256
|
const response = yield this.request(requestOptions, initOverrides);
|
|
290
257
|
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_js_1.InspectorStatusFromJSON)(jsonValue));
|
|
291
258
|
});
|
|
@@ -293,9 +260,44 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
293
260
|
/**
|
|
294
261
|
* Get inspector status
|
|
295
262
|
*/
|
|
296
|
-
getInspectorStatus(
|
|
263
|
+
getInspectorStatus() {
|
|
264
|
+
return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) {
|
|
265
|
+
const response = yield this.getInspectorStatusRaw(requestParameters, initOverrides);
|
|
266
|
+
return yield response.value();
|
|
267
|
+
});
|
|
268
|
+
}
|
|
269
|
+
/**
|
|
270
|
+
* Creates request options for getInspectorVddkStatus without sending the request
|
|
271
|
+
*/
|
|
272
|
+
getInspectorVddkStatusRequestOpts() {
|
|
273
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
274
|
+
const queryParameters = {};
|
|
275
|
+
const headerParameters = {};
|
|
276
|
+
let urlPath = `/inspector/vddk`;
|
|
277
|
+
return {
|
|
278
|
+
path: urlPath,
|
|
279
|
+
method: 'GET',
|
|
280
|
+
headers: headerParameters,
|
|
281
|
+
query: queryParameters,
|
|
282
|
+
};
|
|
283
|
+
});
|
|
284
|
+
}
|
|
285
|
+
/**
|
|
286
|
+
* Get VDDK status
|
|
287
|
+
*/
|
|
288
|
+
getInspectorVddkStatusRaw(initOverrides) {
|
|
289
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
290
|
+
const requestOptions = yield this.getInspectorVddkStatusRequestOpts();
|
|
291
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
292
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_js_1.VddkPropertiesFromJSON)(jsonValue));
|
|
293
|
+
});
|
|
294
|
+
}
|
|
295
|
+
/**
|
|
296
|
+
* Get VDDK status
|
|
297
|
+
*/
|
|
298
|
+
getInspectorVddkStatus(initOverrides) {
|
|
297
299
|
return __awaiter(this, void 0, void 0, function* () {
|
|
298
|
-
const response = yield this.
|
|
300
|
+
const response = yield this.getInspectorVddkStatusRaw(initOverrides);
|
|
299
301
|
return yield response.value();
|
|
300
302
|
});
|
|
301
303
|
}
|
|
@@ -426,41 +428,6 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
426
428
|
return yield response.value();
|
|
427
429
|
});
|
|
428
430
|
}
|
|
429
|
-
/**
|
|
430
|
-
* Creates request options for getVddkStatus without sending the request
|
|
431
|
-
*/
|
|
432
|
-
getVddkStatusRequestOpts() {
|
|
433
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
434
|
-
const queryParameters = {};
|
|
435
|
-
const headerParameters = {};
|
|
436
|
-
let urlPath = `/vddk`;
|
|
437
|
-
return {
|
|
438
|
-
path: urlPath,
|
|
439
|
-
method: 'GET',
|
|
440
|
-
headers: headerParameters,
|
|
441
|
-
query: queryParameters,
|
|
442
|
-
};
|
|
443
|
-
});
|
|
444
|
-
}
|
|
445
|
-
/**
|
|
446
|
-
* Get VDDK status
|
|
447
|
-
*/
|
|
448
|
-
getVddkStatusRaw(initOverrides) {
|
|
449
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
450
|
-
const requestOptions = yield this.getVddkStatusRequestOpts();
|
|
451
|
-
const response = yield this.request(requestOptions, initOverrides);
|
|
452
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_js_1.VddkPropertiesFromJSON)(jsonValue));
|
|
453
|
-
});
|
|
454
|
-
}
|
|
455
|
-
/**
|
|
456
|
-
* Get VDDK status
|
|
457
|
-
*/
|
|
458
|
-
getVddkStatus(initOverrides) {
|
|
459
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
460
|
-
const response = yield this.getVddkStatusRaw(initOverrides);
|
|
461
|
-
return yield response.value();
|
|
462
|
-
});
|
|
463
|
-
}
|
|
464
431
|
/**
|
|
465
432
|
* Creates request options for getVersion without sending the request
|
|
466
433
|
*/
|
|
@@ -540,6 +507,102 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
540
507
|
return yield response.value();
|
|
541
508
|
});
|
|
542
509
|
}
|
|
510
|
+
/**
|
|
511
|
+
* Creates request options for putInspectorCredentials without sending the request
|
|
512
|
+
*/
|
|
513
|
+
putInspectorCredentialsRequestOpts(requestParameters) {
|
|
514
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
515
|
+
if (requestParameters['vcenterCredentials'] == null) {
|
|
516
|
+
throw new runtime.RequiredError('vcenterCredentials', 'Required parameter "vcenterCredentials" was null or undefined when calling putInspectorCredentials().');
|
|
517
|
+
}
|
|
518
|
+
const queryParameters = {};
|
|
519
|
+
const headerParameters = {};
|
|
520
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
521
|
+
let urlPath = `/inspector/credentials`;
|
|
522
|
+
return {
|
|
523
|
+
path: urlPath,
|
|
524
|
+
method: 'PUT',
|
|
525
|
+
headers: headerParameters,
|
|
526
|
+
query: queryParameters,
|
|
527
|
+
body: (0, index_js_1.VcenterCredentialsToJSON)(requestParameters['vcenterCredentials']),
|
|
528
|
+
};
|
|
529
|
+
});
|
|
530
|
+
}
|
|
531
|
+
/**
|
|
532
|
+
* Set or replace inspector credentials
|
|
533
|
+
*/
|
|
534
|
+
putInspectorCredentialsRaw(requestParameters, initOverrides) {
|
|
535
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
536
|
+
const requestOptions = yield this.putInspectorCredentialsRequestOpts(requestParameters);
|
|
537
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
538
|
+
return new runtime.VoidApiResponse(response);
|
|
539
|
+
});
|
|
540
|
+
}
|
|
541
|
+
/**
|
|
542
|
+
* Set or replace inspector credentials
|
|
543
|
+
*/
|
|
544
|
+
putInspectorCredentials(requestParameters, initOverrides) {
|
|
545
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
546
|
+
yield this.putInspectorCredentialsRaw(requestParameters, initOverrides);
|
|
547
|
+
});
|
|
548
|
+
}
|
|
549
|
+
/**
|
|
550
|
+
* Creates request options for putInspectorVddk without sending the request
|
|
551
|
+
*/
|
|
552
|
+
putInspectorVddkRequestOpts(requestParameters) {
|
|
553
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
554
|
+
if (requestParameters['file'] == null) {
|
|
555
|
+
throw new runtime.RequiredError('file', 'Required parameter "file" was null or undefined when calling putInspectorVddk().');
|
|
556
|
+
}
|
|
557
|
+
const queryParameters = {};
|
|
558
|
+
const headerParameters = {};
|
|
559
|
+
const consumes = [
|
|
560
|
+
{ contentType: 'multipart/form-data' },
|
|
561
|
+
];
|
|
562
|
+
// @ts-ignore: canConsumeForm may be unused
|
|
563
|
+
const canConsumeForm = runtime.canConsumeForm(consumes);
|
|
564
|
+
let formParams;
|
|
565
|
+
let useForm = false;
|
|
566
|
+
// use FormData to transmit files using content-type "multipart/form-data"
|
|
567
|
+
useForm = canConsumeForm;
|
|
568
|
+
if (useForm) {
|
|
569
|
+
formParams = new FormData();
|
|
570
|
+
}
|
|
571
|
+
else {
|
|
572
|
+
formParams = new URLSearchParams();
|
|
573
|
+
}
|
|
574
|
+
if (requestParameters['file'] != null) {
|
|
575
|
+
formParams.append('file', requestParameters['file']);
|
|
576
|
+
}
|
|
577
|
+
let urlPath = `/inspector/vddk`;
|
|
578
|
+
return {
|
|
579
|
+
path: urlPath,
|
|
580
|
+
method: 'PUT',
|
|
581
|
+
headers: headerParameters,
|
|
582
|
+
query: queryParameters,
|
|
583
|
+
body: formParams,
|
|
584
|
+
};
|
|
585
|
+
});
|
|
586
|
+
}
|
|
587
|
+
/**
|
|
588
|
+
* Upload VDDK tarball
|
|
589
|
+
*/
|
|
590
|
+
putInspectorVddkRaw(requestParameters, initOverrides) {
|
|
591
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
592
|
+
const requestOptions = yield this.putInspectorVddkRequestOpts(requestParameters);
|
|
593
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
594
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_js_1.VddkPropertiesFromJSON)(jsonValue));
|
|
595
|
+
});
|
|
596
|
+
}
|
|
597
|
+
/**
|
|
598
|
+
* Upload VDDK tarball
|
|
599
|
+
*/
|
|
600
|
+
putInspectorVddk(requestParameters, initOverrides) {
|
|
601
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
602
|
+
const response = yield this.putInspectorVddkRaw(requestParameters, initOverrides);
|
|
603
|
+
return yield response.value();
|
|
604
|
+
});
|
|
605
|
+
}
|
|
543
606
|
/**
|
|
544
607
|
* Creates request options for removeVMFromInspection without sending the request
|
|
545
608
|
*/
|
|
@@ -664,8 +727,8 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
664
727
|
*/
|
|
665
728
|
startInspectionRequestOpts(requestParameters) {
|
|
666
729
|
return __awaiter(this, void 0, void 0, function* () {
|
|
667
|
-
if (requestParameters['
|
|
668
|
-
throw new runtime.RequiredError('
|
|
730
|
+
if (requestParameters['startInspectionRequest'] == null) {
|
|
731
|
+
throw new runtime.RequiredError('startInspectionRequest', 'Required parameter "startInspectionRequest" was null or undefined when calling startInspection().');
|
|
669
732
|
}
|
|
670
733
|
const queryParameters = {};
|
|
671
734
|
const headerParameters = {};
|
|
@@ -676,7 +739,7 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
676
739
|
method: 'POST',
|
|
677
740
|
headers: headerParameters,
|
|
678
741
|
query: queryParameters,
|
|
679
|
-
body: (0, index_js_1.
|
|
742
|
+
body: (0, index_js_1.StartInspectionRequestToJSON)(requestParameters['startInspectionRequest']),
|
|
680
743
|
};
|
|
681
744
|
});
|
|
682
745
|
}
|
|
@@ -812,62 +875,5 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
812
875
|
return yield response.value();
|
|
813
876
|
});
|
|
814
877
|
}
|
|
815
|
-
/**
|
|
816
|
-
* Creates request options for vddkPost without sending the request
|
|
817
|
-
*/
|
|
818
|
-
vddkPostRequestOpts(requestParameters) {
|
|
819
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
820
|
-
if (requestParameters['file'] == null) {
|
|
821
|
-
throw new runtime.RequiredError('file', 'Required parameter "file" was null or undefined when calling vddkPost().');
|
|
822
|
-
}
|
|
823
|
-
const queryParameters = {};
|
|
824
|
-
const headerParameters = {};
|
|
825
|
-
const consumes = [
|
|
826
|
-
{ contentType: 'multipart/form-data' },
|
|
827
|
-
];
|
|
828
|
-
// @ts-ignore: canConsumeForm may be unused
|
|
829
|
-
const canConsumeForm = runtime.canConsumeForm(consumes);
|
|
830
|
-
let formParams;
|
|
831
|
-
let useForm = false;
|
|
832
|
-
// use FormData to transmit files using content-type "multipart/form-data"
|
|
833
|
-
useForm = canConsumeForm;
|
|
834
|
-
if (useForm) {
|
|
835
|
-
formParams = new FormData();
|
|
836
|
-
}
|
|
837
|
-
else {
|
|
838
|
-
formParams = new URLSearchParams();
|
|
839
|
-
}
|
|
840
|
-
if (requestParameters['file'] != null) {
|
|
841
|
-
formParams.append('file', requestParameters['file']);
|
|
842
|
-
}
|
|
843
|
-
let urlPath = `/vddk`;
|
|
844
|
-
return {
|
|
845
|
-
path: urlPath,
|
|
846
|
-
method: 'POST',
|
|
847
|
-
headers: headerParameters,
|
|
848
|
-
query: queryParameters,
|
|
849
|
-
body: formParams,
|
|
850
|
-
};
|
|
851
|
-
});
|
|
852
|
-
}
|
|
853
|
-
/**
|
|
854
|
-
* Upload VDDK tarball
|
|
855
|
-
*/
|
|
856
|
-
vddkPostRaw(requestParameters, initOverrides) {
|
|
857
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
858
|
-
const requestOptions = yield this.vddkPostRequestOpts(requestParameters);
|
|
859
|
-
const response = yield this.request(requestOptions, initOverrides);
|
|
860
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_js_1.VddkPropertiesFromJSON)(jsonValue));
|
|
861
|
-
});
|
|
862
|
-
}
|
|
863
|
-
/**
|
|
864
|
-
* Upload VDDK tarball
|
|
865
|
-
*/
|
|
866
|
-
vddkPost(requestParameters, initOverrides) {
|
|
867
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
868
|
-
const response = yield this.vddkPostRaw(requestParameters, initOverrides);
|
|
869
|
-
return yield response.value();
|
|
870
|
-
});
|
|
871
|
-
}
|
|
872
878
|
}
|
|
873
879
|
exports.DefaultApi = DefaultApi;
|