@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/models/index.js
CHANGED
|
@@ -32,13 +32,13 @@ __exportStar(require("./GuestNetwork.js"), exports);
|
|
|
32
32
|
__exportStar(require("./Histogram.js"), exports);
|
|
33
33
|
__exportStar(require("./Host.js"), exports);
|
|
34
34
|
__exportStar(require("./Infra.js"), exports);
|
|
35
|
-
__exportStar(require("./InspectorStartRequest.js"), exports);
|
|
36
35
|
__exportStar(require("./InspectorStatus.js"), exports);
|
|
37
36
|
__exportStar(require("./Inventory.js"), exports);
|
|
38
37
|
__exportStar(require("./InventoryData.js"), exports);
|
|
39
38
|
__exportStar(require("./MigrationIssue.js"), exports);
|
|
40
39
|
__exportStar(require("./Network.js"), exports);
|
|
41
40
|
__exportStar(require("./OsInfo.js"), exports);
|
|
41
|
+
__exportStar(require("./StartInspectionRequest.js"), exports);
|
|
42
42
|
__exportStar(require("./UpdateGroupRequest.js"), exports);
|
|
43
43
|
__exportStar(require("./UpdateInventory.js"), exports);
|
|
44
44
|
__exportStar(require("./VCenter.js"), exports);
|
package/docs/DefaultApi.md
CHANGED
|
@@ -4,99 +4,30 @@ All URIs are relative to *https://raw.githubusercontent.com/api/v1*
|
|
|
4
4
|
|
|
5
5
|
| Method | HTTP request | Description |
|
|
6
6
|
|------------- | ------------- | -------------|
|
|
7
|
-
| [**addVMToInspection**](DefaultApi.md#addvmtoinspection) | **POST** /vms/{id}/inspection | Add VirtualMachine to inspection queue |
|
|
8
7
|
| [**createGroup**](DefaultApi.md#creategroupoperation) | **POST** /groups | Create a new group |
|
|
9
8
|
| [**deleteGroup**](DefaultApi.md#deletegroup) | **DELETE** /groups/{id} | Delete group |
|
|
10
9
|
| [**getAgentStatus**](DefaultApi.md#getagentstatus) | **GET** /agent | Get agent status |
|
|
11
10
|
| [**getCollectorStatus**](DefaultApi.md#getcollectorstatus) | **GET** /collector | Get collector status |
|
|
12
11
|
| [**getGroup**](DefaultApi.md#getgroup) | **GET** /groups/{id} | Get group by ID with its VMs |
|
|
13
12
|
| [**getInspectorStatus**](DefaultApi.md#getinspectorstatus) | **GET** /inspector | Get inspector status |
|
|
13
|
+
| [**getInspectorVddkStatus**](DefaultApi.md#getinspectorvddkstatus) | **GET** /inspector/vddk | Get VDDK status |
|
|
14
14
|
| [**getInventory**](DefaultApi.md#getinventory) | **GET** /inventory | Get collected inventory |
|
|
15
15
|
| [**getVM**](DefaultApi.md#getvm) | **GET** /vms/{id} | Get details about a vm |
|
|
16
16
|
| [**getVMs**](DefaultApi.md#getvms) | **GET** /vms | Get list of VMs with filtering and pagination |
|
|
17
|
-
| [**getVddkStatus**](DefaultApi.md#getvddkstatus) | **GET** /vddk | Get VDDK status |
|
|
18
17
|
| [**getVersion**](DefaultApi.md#getversion) | **GET** /version | Get agent version information |
|
|
19
18
|
| [**listGroups**](DefaultApi.md#listgroups) | **GET** /groups | List all groups |
|
|
19
|
+
| [**putInspectorCredentials**](DefaultApi.md#putinspectorcredentials) | **PUT** /inspector/credentials | Set or replace inspector credentials |
|
|
20
|
+
| [**putInspectorVddk**](DefaultApi.md#putinspectorvddk) | **PUT** /inspector/vddk | Upload VDDK tarball |
|
|
20
21
|
| [**removeVMFromInspection**](DefaultApi.md#removevmfrominspection) | **DELETE** /vms/{id}/inspection | Remove VirtualMachine from inspection queue |
|
|
21
22
|
| [**setAgentMode**](DefaultApi.md#setagentmode) | **POST** /agent | Change agent mode |
|
|
22
23
|
| [**startCollector**](DefaultApi.md#startcollector) | **POST** /collector | Start inventory collection |
|
|
23
|
-
| [**startInspection**](DefaultApi.md#
|
|
24
|
+
| [**startInspection**](DefaultApi.md#startinspectionoperation) | **POST** /inspector | Start inspection for VMs |
|
|
24
25
|
| [**stopCollector**](DefaultApi.md#stopcollector) | **DELETE** /collector | Stop collection |
|
|
25
26
|
| [**stopInspection**](DefaultApi.md#stopinspection) | **DELETE** /inspector | Stop inspector entirely |
|
|
26
27
|
| [**updateGroup**](DefaultApi.md#updategroupoperation) | **PATCH** /groups/{id} | Update group |
|
|
27
|
-
| [**vddkPost**](DefaultApi.md#vddkpost) | **POST** /vddk | Upload VDDK tarball |
|
|
28
28
|
|
|
29
29
|
|
|
30
30
|
|
|
31
|
-
## addVMToInspection
|
|
32
|
-
|
|
33
|
-
> VmInspectionStatus addVMToInspection(id)
|
|
34
|
-
|
|
35
|
-
Add VirtualMachine to inspection queue
|
|
36
|
-
|
|
37
|
-
### Example
|
|
38
|
-
|
|
39
|
-
```ts
|
|
40
|
-
import {
|
|
41
|
-
Configuration,
|
|
42
|
-
DefaultApi,
|
|
43
|
-
} from '@openshift-migration-advisor/agent-sdk';
|
|
44
|
-
import type { AddVMToInspectionRequest } from '@openshift-migration-advisor/agent-sdk';
|
|
45
|
-
|
|
46
|
-
async function example() {
|
|
47
|
-
console.log("🚀 Testing @openshift-migration-advisor/agent-sdk SDK...");
|
|
48
|
-
const api = new DefaultApi();
|
|
49
|
-
|
|
50
|
-
const body = {
|
|
51
|
-
// string
|
|
52
|
-
id: id_example,
|
|
53
|
-
} satisfies AddVMToInspectionRequest;
|
|
54
|
-
|
|
55
|
-
try {
|
|
56
|
-
const data = await api.addVMToInspection(body);
|
|
57
|
-
console.log(data);
|
|
58
|
-
} catch (error) {
|
|
59
|
-
console.error(error);
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
// Run the test
|
|
64
|
-
example().catch(console.error);
|
|
65
|
-
```
|
|
66
|
-
|
|
67
|
-
### Parameters
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
| Name | Type | Description | Notes |
|
|
71
|
-
|------------- | ------------- | ------------- | -------------|
|
|
72
|
-
| **id** | `string` | | [Defaults to `undefined`] |
|
|
73
|
-
|
|
74
|
-
### Return type
|
|
75
|
-
|
|
76
|
-
[**VmInspectionStatus**](VmInspectionStatus.md)
|
|
77
|
-
|
|
78
|
-
### Authorization
|
|
79
|
-
|
|
80
|
-
No authorization required
|
|
81
|
-
|
|
82
|
-
### HTTP request headers
|
|
83
|
-
|
|
84
|
-
- **Content-Type**: Not defined
|
|
85
|
-
- **Accept**: `application/json`
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
### HTTP response details
|
|
89
|
-
| Status code | Description | Response headers |
|
|
90
|
-
|-------------|-------------|------------------|
|
|
91
|
-
| **202** | VM added to inspection queue | - |
|
|
92
|
-
| **400** | Inspector not running | - |
|
|
93
|
-
| **404** | VirtualMachine not found | - |
|
|
94
|
-
| **409** | VM already in inspection queue | - |
|
|
95
|
-
| **500** | Internal server error | - |
|
|
96
|
-
|
|
97
|
-
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
98
|
-
|
|
99
|
-
|
|
100
31
|
## createGroup
|
|
101
32
|
|
|
102
33
|
> Group createGroup(createGroupRequest)
|
|
@@ -424,7 +355,7 @@ No authorization required
|
|
|
424
355
|
|
|
425
356
|
## getInspectorStatus
|
|
426
357
|
|
|
427
|
-
> InspectorStatus getInspectorStatus()
|
|
358
|
+
> InspectorStatus getInspectorStatus(includeVddk, includeCredentials)
|
|
428
359
|
|
|
429
360
|
Get inspector status
|
|
430
361
|
|
|
@@ -441,8 +372,15 @@ async function example() {
|
|
|
441
372
|
console.log("🚀 Testing @openshift-migration-advisor/agent-sdk SDK...");
|
|
442
373
|
const api = new DefaultApi();
|
|
443
374
|
|
|
375
|
+
const body = {
|
|
376
|
+
// boolean | If true, include uploaded VDDK metadata (`version`, `md5`) when present. omitted if VDDK was never uploaded. (optional)
|
|
377
|
+
includeVddk: true,
|
|
378
|
+
// boolean | If true, include configured vCenter URL and username (password is never returned). omitted if was never set. (optional)
|
|
379
|
+
includeCredentials: true,
|
|
380
|
+
} satisfies GetInspectorStatusRequest;
|
|
381
|
+
|
|
444
382
|
try {
|
|
445
|
-
const data = await api.getInspectorStatus();
|
|
383
|
+
const data = await api.getInspectorStatus(body);
|
|
446
384
|
console.log(data);
|
|
447
385
|
} catch (error) {
|
|
448
386
|
console.error(error);
|
|
@@ -455,7 +393,11 @@ example().catch(console.error);
|
|
|
455
393
|
|
|
456
394
|
### Parameters
|
|
457
395
|
|
|
458
|
-
|
|
396
|
+
|
|
397
|
+
| Name | Type | Description | Notes |
|
|
398
|
+
|------------- | ------------- | ------------- | -------------|
|
|
399
|
+
| **includeVddk** | `boolean` | If true, include uploaded VDDK metadata (`version`, `md5`) when present. omitted if VDDK was never uploaded. | [Optional] [Defaults to `false`] |
|
|
400
|
+
| **includeCredentials** | `boolean` | If true, include configured vCenter URL and username (password is never returned). omitted if was never set. | [Optional] [Defaults to `false`] |
|
|
459
401
|
|
|
460
402
|
### Return type
|
|
461
403
|
|
|
@@ -480,6 +422,65 @@ No authorization required
|
|
|
480
422
|
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
481
423
|
|
|
482
424
|
|
|
425
|
+
## getInspectorVddkStatus
|
|
426
|
+
|
|
427
|
+
> VddkProperties getInspectorVddkStatus()
|
|
428
|
+
|
|
429
|
+
Get VDDK status
|
|
430
|
+
|
|
431
|
+
### Example
|
|
432
|
+
|
|
433
|
+
```ts
|
|
434
|
+
import {
|
|
435
|
+
Configuration,
|
|
436
|
+
DefaultApi,
|
|
437
|
+
} from '@openshift-migration-advisor/agent-sdk';
|
|
438
|
+
import type { GetInspectorVddkStatusRequest } from '@openshift-migration-advisor/agent-sdk';
|
|
439
|
+
|
|
440
|
+
async function example() {
|
|
441
|
+
console.log("🚀 Testing @openshift-migration-advisor/agent-sdk SDK...");
|
|
442
|
+
const api = new DefaultApi();
|
|
443
|
+
|
|
444
|
+
try {
|
|
445
|
+
const data = await api.getInspectorVddkStatus();
|
|
446
|
+
console.log(data);
|
|
447
|
+
} catch (error) {
|
|
448
|
+
console.error(error);
|
|
449
|
+
}
|
|
450
|
+
}
|
|
451
|
+
|
|
452
|
+
// Run the test
|
|
453
|
+
example().catch(console.error);
|
|
454
|
+
```
|
|
455
|
+
|
|
456
|
+
### Parameters
|
|
457
|
+
|
|
458
|
+
This endpoint does not need any parameter.
|
|
459
|
+
|
|
460
|
+
### Return type
|
|
461
|
+
|
|
462
|
+
[**VddkProperties**](VddkProperties.md)
|
|
463
|
+
|
|
464
|
+
### Authorization
|
|
465
|
+
|
|
466
|
+
No authorization required
|
|
467
|
+
|
|
468
|
+
### HTTP request headers
|
|
469
|
+
|
|
470
|
+
- **Content-Type**: Not defined
|
|
471
|
+
- **Accept**: `application/json`
|
|
472
|
+
|
|
473
|
+
|
|
474
|
+
### HTTP response details
|
|
475
|
+
| Status code | Description | Response headers |
|
|
476
|
+
|-------------|-------------|------------------|
|
|
477
|
+
| **200** | Returns the current properties of the uploaded VMware VDDK tar. If the VDDK package has not been uploaded, a 404 response is returned. | - |
|
|
478
|
+
| **404** | Vddk not found | - |
|
|
479
|
+
| **500** | Internal server error | - |
|
|
480
|
+
|
|
481
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
482
|
+
|
|
483
|
+
|
|
483
484
|
## getInventory
|
|
484
485
|
|
|
485
486
|
> GetInventory200Response getInventory(withAgentId, groupId)
|
|
@@ -693,11 +694,11 @@ No authorization required
|
|
|
693
694
|
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
694
695
|
|
|
695
696
|
|
|
696
|
-
##
|
|
697
|
+
## getVersion
|
|
697
698
|
|
|
698
|
-
>
|
|
699
|
+
> VersionInfo getVersion()
|
|
699
700
|
|
|
700
|
-
Get
|
|
701
|
+
Get agent version information
|
|
701
702
|
|
|
702
703
|
### Example
|
|
703
704
|
|
|
@@ -706,14 +707,14 @@ import {
|
|
|
706
707
|
Configuration,
|
|
707
708
|
DefaultApi,
|
|
708
709
|
} from '@openshift-migration-advisor/agent-sdk';
|
|
709
|
-
import type {
|
|
710
|
+
import type { GetVersionRequest } from '@openshift-migration-advisor/agent-sdk';
|
|
710
711
|
|
|
711
712
|
async function example() {
|
|
712
713
|
console.log("🚀 Testing @openshift-migration-advisor/agent-sdk SDK...");
|
|
713
714
|
const api = new DefaultApi();
|
|
714
715
|
|
|
715
716
|
try {
|
|
716
|
-
const data = await api.
|
|
717
|
+
const data = await api.getVersion();
|
|
717
718
|
console.log(data);
|
|
718
719
|
} catch (error) {
|
|
719
720
|
console.error(error);
|
|
@@ -730,7 +731,7 @@ This endpoint does not need any parameter.
|
|
|
730
731
|
|
|
731
732
|
### Return type
|
|
732
733
|
|
|
733
|
-
[**
|
|
734
|
+
[**VersionInfo**](VersionInfo.md)
|
|
734
735
|
|
|
735
736
|
### Authorization
|
|
736
737
|
|
|
@@ -745,18 +746,16 @@ No authorization required
|
|
|
745
746
|
### HTTP response details
|
|
746
747
|
| Status code | Description | Response headers |
|
|
747
748
|
|-------------|-------------|------------------|
|
|
748
|
-
| **200** |
|
|
749
|
-
| **404** | Vddk not found | - |
|
|
750
|
-
| **500** | Internal server error | - |
|
|
749
|
+
| **200** | Version information | - |
|
|
751
750
|
|
|
752
751
|
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
753
752
|
|
|
754
753
|
|
|
755
|
-
##
|
|
754
|
+
## listGroups
|
|
756
755
|
|
|
757
|
-
>
|
|
756
|
+
> GroupListResponse listGroups(byName, page, pageSize)
|
|
758
757
|
|
|
759
|
-
|
|
758
|
+
List all groups
|
|
760
759
|
|
|
761
760
|
### Example
|
|
762
761
|
|
|
@@ -765,14 +764,23 @@ import {
|
|
|
765
764
|
Configuration,
|
|
766
765
|
DefaultApi,
|
|
767
766
|
} from '@openshift-migration-advisor/agent-sdk';
|
|
768
|
-
import type {
|
|
767
|
+
import type { ListGroupsRequest } from '@openshift-migration-advisor/agent-sdk';
|
|
769
768
|
|
|
770
769
|
async function example() {
|
|
771
770
|
console.log("🚀 Testing @openshift-migration-advisor/agent-sdk SDK...");
|
|
772
771
|
const api = new DefaultApi();
|
|
773
772
|
|
|
773
|
+
const body = {
|
|
774
|
+
// string | Filter groups by name (case-insensitive substring match) (optional)
|
|
775
|
+
byName: byName_example,
|
|
776
|
+
// number | Page number (1-indexed) (optional)
|
|
777
|
+
page: 56,
|
|
778
|
+
// number | Number of groups per page (optional)
|
|
779
|
+
pageSize: 56,
|
|
780
|
+
} satisfies ListGroupsRequest;
|
|
781
|
+
|
|
774
782
|
try {
|
|
775
|
-
const data = await api.
|
|
783
|
+
const data = await api.listGroups(body);
|
|
776
784
|
console.log(data);
|
|
777
785
|
} catch (error) {
|
|
778
786
|
console.error(error);
|
|
@@ -785,11 +793,16 @@ example().catch(console.error);
|
|
|
785
793
|
|
|
786
794
|
### Parameters
|
|
787
795
|
|
|
788
|
-
|
|
796
|
+
|
|
797
|
+
| Name | Type | Description | Notes |
|
|
798
|
+
|------------- | ------------- | ------------- | -------------|
|
|
799
|
+
| **byName** | `string` | Filter groups by name (case-insensitive substring match) | [Optional] [Defaults to `undefined`] |
|
|
800
|
+
| **page** | `number` | Page number (1-indexed) | [Optional] [Defaults to `1`] |
|
|
801
|
+
| **pageSize** | `number` | Number of groups per page | [Optional] [Defaults to `20`] |
|
|
789
802
|
|
|
790
803
|
### Return type
|
|
791
804
|
|
|
792
|
-
[**
|
|
805
|
+
[**GroupListResponse**](GroupListResponse.md)
|
|
793
806
|
|
|
794
807
|
### Authorization
|
|
795
808
|
|
|
@@ -804,16 +817,18 @@ No authorization required
|
|
|
804
817
|
### HTTP response details
|
|
805
818
|
| Status code | Description | Response headers |
|
|
806
819
|
|-------------|-------------|------------------|
|
|
807
|
-
| **200** |
|
|
820
|
+
| **200** | List of groups | - |
|
|
821
|
+
| **400** | Invalid filter expression | - |
|
|
822
|
+
| **500** | Internal server error | - |
|
|
808
823
|
|
|
809
824
|
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
810
825
|
|
|
811
826
|
|
|
812
|
-
##
|
|
827
|
+
## putInspectorCredentials
|
|
813
828
|
|
|
814
|
-
>
|
|
829
|
+
> putInspectorCredentials(vcenterCredentials)
|
|
815
830
|
|
|
816
|
-
|
|
831
|
+
Set or replace inspector credentials
|
|
817
832
|
|
|
818
833
|
### Example
|
|
819
834
|
|
|
@@ -822,23 +837,19 @@ import {
|
|
|
822
837
|
Configuration,
|
|
823
838
|
DefaultApi,
|
|
824
839
|
} from '@openshift-migration-advisor/agent-sdk';
|
|
825
|
-
import type {
|
|
840
|
+
import type { PutInspectorCredentialsRequest } from '@openshift-migration-advisor/agent-sdk';
|
|
826
841
|
|
|
827
842
|
async function example() {
|
|
828
843
|
console.log("🚀 Testing @openshift-migration-advisor/agent-sdk SDK...");
|
|
829
844
|
const api = new DefaultApi();
|
|
830
845
|
|
|
831
846
|
const body = {
|
|
832
|
-
//
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
page: 56,
|
|
836
|
-
// number | Number of groups per page (optional)
|
|
837
|
-
pageSize: 56,
|
|
838
|
-
} satisfies ListGroupsRequest;
|
|
847
|
+
// VcenterCredentials
|
|
848
|
+
vcenterCredentials: ...,
|
|
849
|
+
} satisfies PutInspectorCredentialsRequest;
|
|
839
850
|
|
|
840
851
|
try {
|
|
841
|
-
const data = await api.
|
|
852
|
+
const data = await api.putInspectorCredentials(body);
|
|
842
853
|
console.log(data);
|
|
843
854
|
} catch (error) {
|
|
844
855
|
console.error(error);
|
|
@@ -854,13 +865,11 @@ example().catch(console.error);
|
|
|
854
865
|
|
|
855
866
|
| Name | Type | Description | Notes |
|
|
856
867
|
|------------- | ------------- | ------------- | -------------|
|
|
857
|
-
| **
|
|
858
|
-
| **page** | `number` | Page number (1-indexed) | [Optional] [Defaults to `1`] |
|
|
859
|
-
| **pageSize** | `number` | Number of groups per page | [Optional] [Defaults to `20`] |
|
|
868
|
+
| **vcenterCredentials** | [VcenterCredentials](VcenterCredentials.md) | | |
|
|
860
869
|
|
|
861
870
|
### Return type
|
|
862
871
|
|
|
863
|
-
|
|
872
|
+
`void` (Empty response body)
|
|
864
873
|
|
|
865
874
|
### Authorization
|
|
866
875
|
|
|
@@ -868,15 +877,84 @@ No authorization required
|
|
|
868
877
|
|
|
869
878
|
### HTTP request headers
|
|
870
879
|
|
|
871
|
-
- **Content-Type**:
|
|
880
|
+
- **Content-Type**: `application/json`
|
|
881
|
+
- **Accept**: Not defined
|
|
882
|
+
|
|
883
|
+
|
|
884
|
+
### HTTP response details
|
|
885
|
+
| Status code | Description | Response headers |
|
|
886
|
+
|-------------|-------------|------------------|
|
|
887
|
+
| **200** | Credentials updated successfully | - |
|
|
888
|
+
| **400** | Bad Credentials | - |
|
|
889
|
+
| **500** | Internal server error | - |
|
|
890
|
+
|
|
891
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
892
|
+
|
|
893
|
+
|
|
894
|
+
## putInspectorVddk
|
|
895
|
+
|
|
896
|
+
> VddkProperties putInspectorVddk(file)
|
|
897
|
+
|
|
898
|
+
Upload VDDK tarball
|
|
899
|
+
|
|
900
|
+
### Example
|
|
901
|
+
|
|
902
|
+
```ts
|
|
903
|
+
import {
|
|
904
|
+
Configuration,
|
|
905
|
+
DefaultApi,
|
|
906
|
+
} from '@openshift-migration-advisor/agent-sdk';
|
|
907
|
+
import type { PutInspectorVddkRequest } from '@openshift-migration-advisor/agent-sdk';
|
|
908
|
+
|
|
909
|
+
async function example() {
|
|
910
|
+
console.log("🚀 Testing @openshift-migration-advisor/agent-sdk SDK...");
|
|
911
|
+
const api = new DefaultApi();
|
|
912
|
+
|
|
913
|
+
const body = {
|
|
914
|
+
// Blob | VDDK tarball
|
|
915
|
+
file: BINARY_DATA_HERE,
|
|
916
|
+
} satisfies PutInspectorVddkRequest;
|
|
917
|
+
|
|
918
|
+
try {
|
|
919
|
+
const data = await api.putInspectorVddk(body);
|
|
920
|
+
console.log(data);
|
|
921
|
+
} catch (error) {
|
|
922
|
+
console.error(error);
|
|
923
|
+
}
|
|
924
|
+
}
|
|
925
|
+
|
|
926
|
+
// Run the test
|
|
927
|
+
example().catch(console.error);
|
|
928
|
+
```
|
|
929
|
+
|
|
930
|
+
### Parameters
|
|
931
|
+
|
|
932
|
+
|
|
933
|
+
| Name | Type | Description | Notes |
|
|
934
|
+
|------------- | ------------- | ------------- | -------------|
|
|
935
|
+
| **file** | `Blob` | VDDK tarball | [Defaults to `undefined`] |
|
|
936
|
+
|
|
937
|
+
### Return type
|
|
938
|
+
|
|
939
|
+
[**VddkProperties**](VddkProperties.md)
|
|
940
|
+
|
|
941
|
+
### Authorization
|
|
942
|
+
|
|
943
|
+
No authorization required
|
|
944
|
+
|
|
945
|
+
### HTTP request headers
|
|
946
|
+
|
|
947
|
+
- **Content-Type**: `multipart/form-data`
|
|
872
948
|
- **Accept**: `application/json`
|
|
873
949
|
|
|
874
950
|
|
|
875
951
|
### HTTP response details
|
|
876
952
|
| Status code | Description | Response headers |
|
|
877
953
|
|-------------|-------------|------------------|
|
|
878
|
-
| **200** |
|
|
879
|
-
| **
|
|
954
|
+
| **200** | Upload successful | - |
|
|
955
|
+
| **409** | Conflict | - |
|
|
956
|
+
| **413** | File exceeds 64MB limit | - |
|
|
957
|
+
| **400** | Bad request | - |
|
|
880
958
|
| **500** | Internal server error | - |
|
|
881
959
|
|
|
882
960
|
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
@@ -1088,7 +1166,7 @@ No authorization required
|
|
|
1088
1166
|
|
|
1089
1167
|
## startInspection
|
|
1090
1168
|
|
|
1091
|
-
> InspectorStatus startInspection(
|
|
1169
|
+
> InspectorStatus startInspection(startInspectionRequest)
|
|
1092
1170
|
|
|
1093
1171
|
Start inspection for VMs
|
|
1094
1172
|
|
|
@@ -1099,16 +1177,16 @@ import {
|
|
|
1099
1177
|
Configuration,
|
|
1100
1178
|
DefaultApi,
|
|
1101
1179
|
} from '@openshift-migration-advisor/agent-sdk';
|
|
1102
|
-
import type {
|
|
1180
|
+
import type { StartInspectionOperationRequest } from '@openshift-migration-advisor/agent-sdk';
|
|
1103
1181
|
|
|
1104
1182
|
async function example() {
|
|
1105
1183
|
console.log("🚀 Testing @openshift-migration-advisor/agent-sdk SDK...");
|
|
1106
1184
|
const api = new DefaultApi();
|
|
1107
1185
|
|
|
1108
1186
|
const body = {
|
|
1109
|
-
//
|
|
1110
|
-
|
|
1111
|
-
} satisfies
|
|
1187
|
+
// StartInspectionRequest
|
|
1188
|
+
startInspectionRequest: ...,
|
|
1189
|
+
} satisfies StartInspectionOperationRequest;
|
|
1112
1190
|
|
|
1113
1191
|
try {
|
|
1114
1192
|
const data = await api.startInspection(body);
|
|
@@ -1127,7 +1205,7 @@ example().catch(console.error);
|
|
|
1127
1205
|
|
|
1128
1206
|
| Name | Type | Description | Notes |
|
|
1129
1207
|
|------------- | ------------- | ------------- | -------------|
|
|
1130
|
-
| **
|
|
1208
|
+
| **startInspectionRequest** | [StartInspectionRequest](StartInspectionRequest.md) | | |
|
|
1131
1209
|
|
|
1132
1210
|
### Return type
|
|
1133
1211
|
|
|
@@ -1342,72 +1420,3 @@ No authorization required
|
|
|
1342
1420
|
|
|
1343
1421
|
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
1344
1422
|
|
|
1345
|
-
|
|
1346
|
-
## vddkPost
|
|
1347
|
-
|
|
1348
|
-
> VddkProperties vddkPost(file)
|
|
1349
|
-
|
|
1350
|
-
Upload VDDK tarball
|
|
1351
|
-
|
|
1352
|
-
### Example
|
|
1353
|
-
|
|
1354
|
-
```ts
|
|
1355
|
-
import {
|
|
1356
|
-
Configuration,
|
|
1357
|
-
DefaultApi,
|
|
1358
|
-
} from '@openshift-migration-advisor/agent-sdk';
|
|
1359
|
-
import type { VddkPostRequest } from '@openshift-migration-advisor/agent-sdk';
|
|
1360
|
-
|
|
1361
|
-
async function example() {
|
|
1362
|
-
console.log("🚀 Testing @openshift-migration-advisor/agent-sdk SDK...");
|
|
1363
|
-
const api = new DefaultApi();
|
|
1364
|
-
|
|
1365
|
-
const body = {
|
|
1366
|
-
// Blob | VDDK tarball
|
|
1367
|
-
file: BINARY_DATA_HERE,
|
|
1368
|
-
} satisfies VddkPostRequest;
|
|
1369
|
-
|
|
1370
|
-
try {
|
|
1371
|
-
const data = await api.vddkPost(body);
|
|
1372
|
-
console.log(data);
|
|
1373
|
-
} catch (error) {
|
|
1374
|
-
console.error(error);
|
|
1375
|
-
}
|
|
1376
|
-
}
|
|
1377
|
-
|
|
1378
|
-
// Run the test
|
|
1379
|
-
example().catch(console.error);
|
|
1380
|
-
```
|
|
1381
|
-
|
|
1382
|
-
### Parameters
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
| Name | Type | Description | Notes |
|
|
1386
|
-
|------------- | ------------- | ------------- | -------------|
|
|
1387
|
-
| **file** | `Blob` | VDDK tarball | [Defaults to `undefined`] |
|
|
1388
|
-
|
|
1389
|
-
### Return type
|
|
1390
|
-
|
|
1391
|
-
[**VddkProperties**](VddkProperties.md)
|
|
1392
|
-
|
|
1393
|
-
### Authorization
|
|
1394
|
-
|
|
1395
|
-
No authorization required
|
|
1396
|
-
|
|
1397
|
-
### HTTP request headers
|
|
1398
|
-
|
|
1399
|
-
- **Content-Type**: `multipart/form-data`
|
|
1400
|
-
- **Accept**: `application/json`
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
### HTTP response details
|
|
1404
|
-
| Status code | Description | Response headers |
|
|
1405
|
-
|-------------|-------------|------------------|
|
|
1406
|
-
| **200** | Upload successful | - |
|
|
1407
|
-
| **409** | Conflict | - |
|
|
1408
|
-
| **413** | File exceeds 64MB limit | - |
|
|
1409
|
-
| **400** | Bad request | - |
|
|
1410
|
-
| **500** | Internal server error | - |
|
|
1411
|
-
|
|
1412
|
-
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
1413
|
-
|
package/docs/InspectorStatus.md
CHANGED
|
@@ -7,6 +7,8 @@
|
|
|
7
7
|
Name | Type
|
|
8
8
|
------------ | -------------
|
|
9
9
|
`state` | string
|
|
10
|
+
`credentials` | [VcenterCredentials](VcenterCredentials.md)
|
|
11
|
+
`vddk` | [VddkProperties](VddkProperties.md)
|
|
10
12
|
`error` | string
|
|
11
13
|
|
|
12
14
|
## Example
|
|
@@ -17,6 +19,8 @@ import type { InspectorStatus } from '@openshift-migration-advisor/agent-sdk'
|
|
|
17
19
|
// TODO: Update the object below with actual values
|
|
18
20
|
const example = {
|
|
19
21
|
"state": null,
|
|
22
|
+
"credentials": null,
|
|
23
|
+
"vddk": null,
|
|
20
24
|
"error": null,
|
|
21
25
|
} satisfies InspectorStatus
|
|
22
26
|
|
|
@@ -1,24 +1,23 @@
|
|
|
1
1
|
|
|
2
|
-
#
|
|
2
|
+
# StartInspectionRequest
|
|
3
3
|
|
|
4
|
+
Array of VirtualMachine id
|
|
4
5
|
|
|
5
6
|
## Properties
|
|
6
7
|
|
|
7
8
|
Name | Type
|
|
8
9
|
------------ | -------------
|
|
9
|
-
`vcenterCredentials` | [VcenterCredentials](VcenterCredentials.md)
|
|
10
10
|
`vmIds` | Array<string>
|
|
11
11
|
|
|
12
12
|
## Example
|
|
13
13
|
|
|
14
14
|
```typescript
|
|
15
|
-
import type {
|
|
15
|
+
import type { StartInspectionRequest } from '@openshift-migration-advisor/agent-sdk'
|
|
16
16
|
|
|
17
17
|
// TODO: Update the object below with actual values
|
|
18
18
|
const example = {
|
|
19
|
-
"vcenterCredentials": null,
|
|
20
19
|
"vmIds": null,
|
|
21
|
-
} satisfies
|
|
20
|
+
} satisfies StartInspectionRequest
|
|
22
21
|
|
|
23
22
|
console.log(example)
|
|
24
23
|
|
|
@@ -27,7 +26,7 @@ const exampleJSON: string = JSON.stringify(example)
|
|
|
27
26
|
console.log(exampleJSON)
|
|
28
27
|
|
|
29
28
|
// Parse the JSON string back to an object
|
|
30
|
-
const exampleParsed = JSON.parse(exampleJSON) as
|
|
29
|
+
const exampleParsed = JSON.parse(exampleJSON) as StartInspectionRequest
|
|
31
30
|
console.log(exampleParsed)
|
|
32
31
|
```
|
|
33
32
|
|
package/package.json
CHANGED