@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.
Files changed (70) hide show
  1. package/.openapi-generator/FILES +6 -2
  2. package/.openapi-generator/VERSION +1 -1
  3. package/README.md +19 -17
  4. package/dist/apis/DefaultApi.d.ts +141 -133
  5. package/dist/apis/DefaultApi.js +168 -163
  6. package/dist/esm/apis/DefaultApi.d.ts +141 -133
  7. package/dist/esm/apis/DefaultApi.js +169 -164
  8. package/dist/esm/models/InspectorStatus.d.ts +20 -7
  9. package/dist/esm/models/InspectorStatus.js +12 -7
  10. package/dist/esm/models/StartInspectionRequest.d.ts +32 -0
  11. package/dist/esm/models/StartInspectionRequest.js +43 -0
  12. package/dist/esm/models/VMs.d.ts +18 -0
  13. package/dist/esm/models/VMs.js +4 -0
  14. package/dist/esm/models/VirtualMachine.d.ts +7 -1
  15. package/dist/esm/models/VirtualMachine.js +4 -4
  16. package/dist/esm/models/VirtualMachineDetail.d.ts +3 -3
  17. package/dist/esm/models/VirtualMachineDetail.js +3 -3
  18. package/dist/esm/models/VmInspectionConcern.d.ts +44 -0
  19. package/dist/esm/models/VmInspectionConcern.js +51 -0
  20. package/dist/esm/models/VmInspectionResults.d.ts +33 -0
  21. package/dist/esm/models/VmInspectionResults.js +42 -0
  22. package/dist/esm/models/VmInspectionStatus.d.ts +0 -1
  23. package/dist/esm/models/VmInspectionStatus.js +1 -2
  24. package/dist/esm/models/index.d.ts +3 -1
  25. package/dist/esm/models/index.js +3 -1
  26. package/dist/esm/runtime.js +1 -1
  27. package/dist/models/InspectorStatus.d.ts +20 -7
  28. package/dist/models/InspectorStatus.js +12 -7
  29. package/dist/models/StartInspectionRequest.d.ts +32 -0
  30. package/dist/models/StartInspectionRequest.js +50 -0
  31. package/dist/models/VMs.d.ts +18 -0
  32. package/dist/models/VMs.js +4 -0
  33. package/dist/models/VirtualMachine.d.ts +7 -1
  34. package/dist/models/VirtualMachine.js +4 -4
  35. package/dist/models/VirtualMachineDetail.d.ts +3 -3
  36. package/dist/models/VirtualMachineDetail.js +3 -3
  37. package/dist/models/VmInspectionConcern.d.ts +44 -0
  38. package/dist/models/VmInspectionConcern.js +58 -0
  39. package/dist/models/VmInspectionResults.d.ts +33 -0
  40. package/dist/models/VmInspectionResults.js +49 -0
  41. package/dist/models/VmInspectionStatus.d.ts +0 -1
  42. package/dist/models/VmInspectionStatus.js +1 -2
  43. package/dist/models/index.d.ts +3 -1
  44. package/dist/models/index.js +3 -1
  45. package/dist/runtime.js +1 -1
  46. package/docs/DefaultApi.md +191 -179
  47. package/docs/InspectorStatus.md +4 -0
  48. package/docs/{InspectorStartRequest.md → StartInspectionRequest.md} +5 -6
  49. package/docs/VMs.md +4 -0
  50. package/docs/VirtualMachine.md +4 -2
  51. package/docs/VirtualMachineDetail.md +1 -1
  52. package/docs/VmInspectionConcern.md +39 -0
  53. package/docs/VmInspectionResults.md +35 -0
  54. package/package.json +1 -1
  55. package/src/apis/DefaultApi.ts +302 -283
  56. package/src/models/InspectorStatus.ts +37 -7
  57. package/src/models/StartInspectionRequest.ts +66 -0
  58. package/src/models/VMs.ts +18 -0
  59. package/src/models/VirtualMachine.ts +11 -4
  60. package/src/models/VirtualMachineDetail.ts +11 -11
  61. package/src/models/VmInspectionConcern.ts +84 -0
  62. package/src/models/VmInspectionResults.ts +73 -0
  63. package/src/models/VmInspectionStatus.ts +1 -2
  64. package/src/models/index.ts +3 -1
  65. package/src/runtime.ts +1 -1
  66. package/dist/esm/models/InspectorStartRequest.d.ts +0 -39
  67. package/dist/esm/models/InspectorStartRequest.js +0 -48
  68. package/dist/models/InspectorStartRequest.d.ts +0 -39
  69. package/dist/models/InspectorStartRequest.js +0 -55
  70. package/src/models/InspectorStartRequest.ts +0 -83
@@ -30,42 +30,41 @@ const index_js_1 = require("../models/index.js");
30
30
  */
31
31
  class DefaultApi extends runtime.BaseAPI {
32
32
  /**
33
- * Creates request options for addVMsToInspection without sending the request
33
+ * Creates request options for addVMToInspection without sending the request
34
34
  */
35
- addVMsToInspectionRequestOpts(requestParameters) {
35
+ addVMToInspectionRequestOpts(requestParameters) {
36
36
  return __awaiter(this, void 0, void 0, function* () {
37
- if (requestParameters['requestBody'] == null) {
38
- throw new runtime.RequiredError('requestBody', 'Required parameter "requestBody" was null or undefined when calling addVMsToInspection().');
37
+ if (requestParameters['id'] == null) {
38
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling addVMToInspection().');
39
39
  }
40
40
  const queryParameters = {};
41
41
  const headerParameters = {};
42
- headerParameters['Content-Type'] = 'application/json';
43
- let urlPath = `/vms/inspector`;
42
+ let urlPath = `/vms/{id}/inspection`;
43
+ urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
44
44
  return {
45
45
  path: urlPath,
46
- method: 'PATCH',
46
+ method: 'POST',
47
47
  headers: headerParameters,
48
48
  query: queryParameters,
49
- body: requestParameters['requestBody'],
50
49
  };
51
50
  });
52
51
  }
53
52
  /**
54
- * Add more VMs to inspection queue
53
+ * Add VirtualMachine to inspection queue
55
54
  */
56
- addVMsToInspectionRaw(requestParameters, initOverrides) {
55
+ addVMToInspectionRaw(requestParameters, initOverrides) {
57
56
  return __awaiter(this, void 0, void 0, function* () {
58
- const requestOptions = yield this.addVMsToInspectionRequestOpts(requestParameters);
57
+ const requestOptions = yield this.addVMToInspectionRequestOpts(requestParameters);
59
58
  const response = yield this.request(requestOptions, initOverrides);
60
- return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_js_1.InspectorStatusFromJSON)(jsonValue));
59
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_js_1.VmInspectionStatusFromJSON)(jsonValue));
61
60
  });
62
61
  }
63
62
  /**
64
- * Add more VMs to inspection queue
63
+ * Add VirtualMachine to inspection queue
65
64
  */
66
- addVMsToInspection(requestParameters, initOverrides) {
65
+ addVMToInspection(requestParameters, initOverrides) {
67
66
  return __awaiter(this, void 0, void 0, function* () {
68
- const response = yield this.addVMsToInspectionRaw(requestParameters, initOverrides);
67
+ const response = yield this.addVMToInspectionRaw(requestParameters, initOverrides);
69
68
  return yield response.value();
70
69
  });
71
70
  }
@@ -120,7 +119,7 @@ class DefaultApi extends runtime.BaseAPI {
120
119
  const queryParameters = {};
121
120
  const headerParameters = {};
122
121
  let urlPath = `/groups/{id}`;
123
- urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
122
+ urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
124
123
  return {
125
124
  path: urlPath,
126
125
  method: 'DELETE',
@@ -237,7 +236,7 @@ class DefaultApi extends runtime.BaseAPI {
237
236
  }
238
237
  const headerParameters = {};
239
238
  let urlPath = `/groups/{id}`;
240
- urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
239
+ urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
241
240
  return {
242
241
  path: urlPath,
243
242
  method: 'GET',
@@ -268,11 +267,17 @@ class DefaultApi extends runtime.BaseAPI {
268
267
  /**
269
268
  * Creates request options for getInspectorStatus without sending the request
270
269
  */
271
- getInspectorStatusRequestOpts() {
270
+ getInspectorStatusRequestOpts(requestParameters) {
272
271
  return __awaiter(this, void 0, void 0, function* () {
273
272
  const queryParameters = {};
273
+ if (requestParameters['includeVddk'] != null) {
274
+ queryParameters['includeVddk'] = requestParameters['includeVddk'];
275
+ }
276
+ if (requestParameters['includeCredentials'] != null) {
277
+ queryParameters['includeCredentials'] = requestParameters['includeCredentials'];
278
+ }
274
279
  const headerParameters = {};
275
- let urlPath = `/vms/inspector`;
280
+ let urlPath = `/inspector`;
276
281
  return {
277
282
  path: urlPath,
278
283
  method: 'GET',
@@ -284,9 +289,9 @@ class DefaultApi extends runtime.BaseAPI {
284
289
  /**
285
290
  * Get inspector status
286
291
  */
287
- getInspectorStatusRaw(initOverrides) {
292
+ getInspectorStatusRaw(requestParameters, initOverrides) {
288
293
  return __awaiter(this, void 0, void 0, function* () {
289
- const requestOptions = yield this.getInspectorStatusRequestOpts();
294
+ const requestOptions = yield this.getInspectorStatusRequestOpts(requestParameters);
290
295
  const response = yield this.request(requestOptions, initOverrides);
291
296
  return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_js_1.InspectorStatusFromJSON)(jsonValue));
292
297
  });
@@ -294,9 +299,44 @@ class DefaultApi extends runtime.BaseAPI {
294
299
  /**
295
300
  * Get inspector status
296
301
  */
297
- getInspectorStatus(initOverrides) {
302
+ getInspectorStatus() {
303
+ return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) {
304
+ const response = yield this.getInspectorStatusRaw(requestParameters, initOverrides);
305
+ return yield response.value();
306
+ });
307
+ }
308
+ /**
309
+ * Creates request options for getInspectorVddkStatus without sending the request
310
+ */
311
+ getInspectorVddkStatusRequestOpts() {
312
+ return __awaiter(this, void 0, void 0, function* () {
313
+ const queryParameters = {};
314
+ const headerParameters = {};
315
+ let urlPath = `/inspector/vddk`;
316
+ return {
317
+ path: urlPath,
318
+ method: 'GET',
319
+ headers: headerParameters,
320
+ query: queryParameters,
321
+ };
322
+ });
323
+ }
324
+ /**
325
+ * Get VDDK status
326
+ */
327
+ getInspectorVddkStatusRaw(initOverrides) {
328
+ return __awaiter(this, void 0, void 0, function* () {
329
+ const requestOptions = yield this.getInspectorVddkStatusRequestOpts();
330
+ const response = yield this.request(requestOptions, initOverrides);
331
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_js_1.VddkPropertiesFromJSON)(jsonValue));
332
+ });
333
+ }
334
+ /**
335
+ * Get VDDK status
336
+ */
337
+ getInspectorVddkStatus(initOverrides) {
298
338
  return __awaiter(this, void 0, void 0, function* () {
299
- const response = yield this.getInspectorStatusRaw(initOverrides);
339
+ const response = yield this.getInspectorVddkStatusRaw(initOverrides);
300
340
  return yield response.value();
301
341
  });
302
342
  }
@@ -352,7 +392,7 @@ class DefaultApi extends runtime.BaseAPI {
352
392
  const queryParameters = {};
353
393
  const headerParameters = {};
354
394
  let urlPath = `/vms/{id}`;
355
- urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
395
+ urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
356
396
  return {
357
397
  path: urlPath,
358
398
  method: 'GET',
@@ -380,45 +420,6 @@ class DefaultApi extends runtime.BaseAPI {
380
420
  return yield response.value();
381
421
  });
382
422
  }
383
- /**
384
- * Creates request options for getVMInspectionStatus without sending the request
385
- */
386
- getVMInspectionStatusRequestOpts(requestParameters) {
387
- return __awaiter(this, void 0, void 0, function* () {
388
- if (requestParameters['id'] == null) {
389
- throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling getVMInspectionStatus().');
390
- }
391
- const queryParameters = {};
392
- const headerParameters = {};
393
- let urlPath = `/vms/{id}/inspector`;
394
- urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
395
- return {
396
- path: urlPath,
397
- method: 'GET',
398
- headers: headerParameters,
399
- query: queryParameters,
400
- };
401
- });
402
- }
403
- /**
404
- * Get inspection status for a specific VirtualMachine
405
- */
406
- getVMInspectionStatusRaw(requestParameters, initOverrides) {
407
- return __awaiter(this, void 0, void 0, function* () {
408
- const requestOptions = yield this.getVMInspectionStatusRequestOpts(requestParameters);
409
- const response = yield this.request(requestOptions, initOverrides);
410
- return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_js_1.VmInspectionStatusFromJSON)(jsonValue));
411
- });
412
- }
413
- /**
414
- * Get inspection status for a specific VirtualMachine
415
- */
416
- getVMInspectionStatus(requestParameters, initOverrides) {
417
- return __awaiter(this, void 0, void 0, function* () {
418
- const response = yield this.getVMInspectionStatusRaw(requestParameters, initOverrides);
419
- return yield response.value();
420
- });
421
- }
422
423
  /**
423
424
  * Creates request options for getVMs without sending the request
424
425
  */
@@ -466,41 +467,6 @@ class DefaultApi extends runtime.BaseAPI {
466
467
  return yield response.value();
467
468
  });
468
469
  }
469
- /**
470
- * Creates request options for getVddkStatus without sending the request
471
- */
472
- getVddkStatusRequestOpts() {
473
- return __awaiter(this, void 0, void 0, function* () {
474
- const queryParameters = {};
475
- const headerParameters = {};
476
- let urlPath = `/vddk`;
477
- return {
478
- path: urlPath,
479
- method: 'GET',
480
- headers: headerParameters,
481
- query: queryParameters,
482
- };
483
- });
484
- }
485
- /**
486
- * Get VDDK status
487
- */
488
- getVddkStatusRaw(initOverrides) {
489
- return __awaiter(this, void 0, void 0, function* () {
490
- const requestOptions = yield this.getVddkStatusRequestOpts();
491
- const response = yield this.request(requestOptions, initOverrides);
492
- return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_js_1.VddkPropertiesFromJSON)(jsonValue));
493
- });
494
- }
495
- /**
496
- * Get VDDK status
497
- */
498
- getVddkStatus(initOverrides) {
499
- return __awaiter(this, void 0, void 0, function* () {
500
- const response = yield this.getVddkStatusRaw(initOverrides);
501
- return yield response.value();
502
- });
503
- }
504
470
  /**
505
471
  * Creates request options for getVersion without sending the request
506
472
  */
@@ -580,6 +546,102 @@ class DefaultApi extends runtime.BaseAPI {
580
546
  return yield response.value();
581
547
  });
582
548
  }
549
+ /**
550
+ * Creates request options for putInspectorCredentials without sending the request
551
+ */
552
+ putInspectorCredentialsRequestOpts(requestParameters) {
553
+ return __awaiter(this, void 0, void 0, function* () {
554
+ if (requestParameters['vcenterCredentials'] == null) {
555
+ throw new runtime.RequiredError('vcenterCredentials', 'Required parameter "vcenterCredentials" was null or undefined when calling putInspectorCredentials().');
556
+ }
557
+ const queryParameters = {};
558
+ const headerParameters = {};
559
+ headerParameters['Content-Type'] = 'application/json';
560
+ let urlPath = `/inspector/credentials`;
561
+ return {
562
+ path: urlPath,
563
+ method: 'PUT',
564
+ headers: headerParameters,
565
+ query: queryParameters,
566
+ body: (0, index_js_1.VcenterCredentialsToJSON)(requestParameters['vcenterCredentials']),
567
+ };
568
+ });
569
+ }
570
+ /**
571
+ * Set or replace inspector credentials
572
+ */
573
+ putInspectorCredentialsRaw(requestParameters, initOverrides) {
574
+ return __awaiter(this, void 0, void 0, function* () {
575
+ const requestOptions = yield this.putInspectorCredentialsRequestOpts(requestParameters);
576
+ const response = yield this.request(requestOptions, initOverrides);
577
+ return new runtime.VoidApiResponse(response);
578
+ });
579
+ }
580
+ /**
581
+ * Set or replace inspector credentials
582
+ */
583
+ putInspectorCredentials(requestParameters, initOverrides) {
584
+ return __awaiter(this, void 0, void 0, function* () {
585
+ yield this.putInspectorCredentialsRaw(requestParameters, initOverrides);
586
+ });
587
+ }
588
+ /**
589
+ * Creates request options for putInspectorVddk without sending the request
590
+ */
591
+ putInspectorVddkRequestOpts(requestParameters) {
592
+ return __awaiter(this, void 0, void 0, function* () {
593
+ if (requestParameters['file'] == null) {
594
+ throw new runtime.RequiredError('file', 'Required parameter "file" was null or undefined when calling putInspectorVddk().');
595
+ }
596
+ const queryParameters = {};
597
+ const headerParameters = {};
598
+ const consumes = [
599
+ { contentType: 'multipart/form-data' },
600
+ ];
601
+ // @ts-ignore: canConsumeForm may be unused
602
+ const canConsumeForm = runtime.canConsumeForm(consumes);
603
+ let formParams;
604
+ let useForm = false;
605
+ // use FormData to transmit files using content-type "multipart/form-data"
606
+ useForm = canConsumeForm;
607
+ if (useForm) {
608
+ formParams = new FormData();
609
+ }
610
+ else {
611
+ formParams = new URLSearchParams();
612
+ }
613
+ if (requestParameters['file'] != null) {
614
+ formParams.append('file', requestParameters['file']);
615
+ }
616
+ let urlPath = `/inspector/vddk`;
617
+ return {
618
+ path: urlPath,
619
+ method: 'PUT',
620
+ headers: headerParameters,
621
+ query: queryParameters,
622
+ body: formParams,
623
+ };
624
+ });
625
+ }
626
+ /**
627
+ * Upload VDDK tarball
628
+ */
629
+ putInspectorVddkRaw(requestParameters, initOverrides) {
630
+ return __awaiter(this, void 0, void 0, function* () {
631
+ const requestOptions = yield this.putInspectorVddkRequestOpts(requestParameters);
632
+ const response = yield this.request(requestOptions, initOverrides);
633
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_js_1.VddkPropertiesFromJSON)(jsonValue));
634
+ });
635
+ }
636
+ /**
637
+ * Upload VDDK tarball
638
+ */
639
+ putInspectorVddk(requestParameters, initOverrides) {
640
+ return __awaiter(this, void 0, void 0, function* () {
641
+ const response = yield this.putInspectorVddkRaw(requestParameters, initOverrides);
642
+ return yield response.value();
643
+ });
644
+ }
583
645
  /**
584
646
  * Creates request options for removeVMFromInspection without sending the request
585
647
  */
@@ -590,8 +652,8 @@ class DefaultApi extends runtime.BaseAPI {
590
652
  }
591
653
  const queryParameters = {};
592
654
  const headerParameters = {};
593
- let urlPath = `/vms/{id}/inspector`;
594
- urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
655
+ let urlPath = `/vms/{id}/inspection`;
656
+ urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
595
657
  return {
596
658
  path: urlPath,
597
659
  method: 'DELETE',
@@ -704,19 +766,19 @@ class DefaultApi extends runtime.BaseAPI {
704
766
  */
705
767
  startInspectionRequestOpts(requestParameters) {
706
768
  return __awaiter(this, void 0, void 0, function* () {
707
- if (requestParameters['inspectorStartRequest'] == null) {
708
- throw new runtime.RequiredError('inspectorStartRequest', 'Required parameter "inspectorStartRequest" was null or undefined when calling startInspection().');
769
+ if (requestParameters['startInspectionRequest'] == null) {
770
+ throw new runtime.RequiredError('startInspectionRequest', 'Required parameter "startInspectionRequest" was null or undefined when calling startInspection().');
709
771
  }
710
772
  const queryParameters = {};
711
773
  const headerParameters = {};
712
774
  headerParameters['Content-Type'] = 'application/json';
713
- let urlPath = `/vms/inspector`;
775
+ let urlPath = `/inspector`;
714
776
  return {
715
777
  path: urlPath,
716
778
  method: 'POST',
717
779
  headers: headerParameters,
718
780
  query: queryParameters,
719
- body: (0, index_js_1.InspectorStartRequestToJSON)(requestParameters['inspectorStartRequest']),
781
+ body: (0, index_js_1.StartInspectionRequestToJSON)(requestParameters['startInspectionRequest']),
720
782
  };
721
783
  });
722
784
  }
@@ -780,7 +842,7 @@ class DefaultApi extends runtime.BaseAPI {
780
842
  return __awaiter(this, void 0, void 0, function* () {
781
843
  const queryParameters = {};
782
844
  const headerParameters = {};
783
- let urlPath = `/vms/inspector`;
845
+ let urlPath = `/inspector`;
784
846
  return {
785
847
  path: urlPath,
786
848
  method: 'DELETE',
@@ -823,7 +885,7 @@ class DefaultApi extends runtime.BaseAPI {
823
885
  const headerParameters = {};
824
886
  headerParameters['Content-Type'] = 'application/json';
825
887
  let urlPath = `/groups/{id}`;
826
- urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
888
+ urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
827
889
  return {
828
890
  path: urlPath,
829
891
  method: 'PATCH',
@@ -852,62 +914,5 @@ class DefaultApi extends runtime.BaseAPI {
852
914
  return yield response.value();
853
915
  });
854
916
  }
855
- /**
856
- * Creates request options for vddkPost without sending the request
857
- */
858
- vddkPostRequestOpts(requestParameters) {
859
- return __awaiter(this, void 0, void 0, function* () {
860
- if (requestParameters['file'] == null) {
861
- throw new runtime.RequiredError('file', 'Required parameter "file" was null or undefined when calling vddkPost().');
862
- }
863
- const queryParameters = {};
864
- const headerParameters = {};
865
- const consumes = [
866
- { contentType: 'multipart/form-data' },
867
- ];
868
- // @ts-ignore: canConsumeForm may be unused
869
- const canConsumeForm = runtime.canConsumeForm(consumes);
870
- let formParams;
871
- let useForm = false;
872
- // use FormData to transmit files using content-type "multipart/form-data"
873
- useForm = canConsumeForm;
874
- if (useForm) {
875
- formParams = new FormData();
876
- }
877
- else {
878
- formParams = new URLSearchParams();
879
- }
880
- if (requestParameters['file'] != null) {
881
- formParams.append('file', requestParameters['file']);
882
- }
883
- let urlPath = `/vddk`;
884
- return {
885
- path: urlPath,
886
- method: 'POST',
887
- headers: headerParameters,
888
- query: queryParameters,
889
- body: formParams,
890
- };
891
- });
892
- }
893
- /**
894
- * Upload VDDK tarball
895
- */
896
- vddkPostRaw(requestParameters, initOverrides) {
897
- return __awaiter(this, void 0, void 0, function* () {
898
- const requestOptions = yield this.vddkPostRequestOpts(requestParameters);
899
- const response = yield this.request(requestOptions, initOverrides);
900
- return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_js_1.VddkPropertiesFromJSON)(jsonValue));
901
- });
902
- }
903
- /**
904
- * Upload VDDK tarball
905
- */
906
- vddkPost(requestParameters, initOverrides) {
907
- return __awaiter(this, void 0, void 0, function* () {
908
- const response = yield this.vddkPostRaw(requestParameters, initOverrides);
909
- return yield response.value();
910
- });
911
- }
912
917
  }
913
918
  exports.DefaultApi = DefaultApi;