@openshift-migration-advisor/agent-sdk 0.0.0-94e9d800ad5c
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 +91 -0
- package/.openapi-generator/VERSION +1 -0
- package/.openapi-generator-ignore +23 -0
- package/README.md +170 -0
- package/dist/apis/DefaultApi.d.ts +761 -0
- package/dist/apis/DefaultApi.js +878 -0
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +19 -0
- package/dist/esm/apis/DefaultApi.d.ts +761 -0
- package/dist/esm/apis/DefaultApi.js +874 -0
- package/dist/esm/apis/index.d.ts +1 -0
- package/dist/esm/apis/index.js +3 -0
- package/dist/esm/index.d.ts +3 -0
- package/dist/esm/index.js +5 -0
- package/dist/esm/models/AgentModeRequest.d.ts +40 -0
- package/dist/esm/models/AgentModeRequest.js +50 -0
- package/dist/esm/models/AgentStatus.d.ts +60 -0
- package/dist/esm/models/AgentStatus.js +63 -0
- package/dist/esm/models/CollectorStartRequest.d.ts +44 -0
- package/dist/esm/models/CollectorStartRequest.js +51 -0
- package/dist/esm/models/CollectorStatus.d.ts +51 -0
- package/dist/esm/models/CollectorStatus.js +57 -0
- package/dist/esm/models/CreateGroupRequest.d.ts +50 -0
- package/dist/esm/models/CreateGroupRequest.js +51 -0
- package/dist/esm/models/Datastore.d.ts +80 -0
- package/dist/esm/models/Datastore.js +73 -0
- package/dist/esm/models/DiskSizeTierSummary.d.ts +38 -0
- package/dist/esm/models/DiskSizeTierSummary.js +47 -0
- package/dist/esm/models/DiskTypeSummary.d.ts +38 -0
- package/dist/esm/models/DiskTypeSummary.js +47 -0
- package/dist/esm/models/GetInventory200Response.d.ts +23 -0
- package/dist/esm/models/GetInventory200Response.js +51 -0
- package/dist/esm/models/Group.d.ts +68 -0
- package/dist/esm/models/Group.js +59 -0
- package/dist/esm/models/GroupListResponse.d.ts +51 -0
- package/dist/esm/models/GroupListResponse.js +56 -0
- package/dist/esm/models/GroupResponse.d.ts +58 -0
- package/dist/esm/models/GroupResponse.js +61 -0
- package/dist/esm/models/GuestNetwork.d.ts +56 -0
- package/dist/esm/models/GuestNetwork.js +49 -0
- package/dist/esm/models/Histogram.d.ts +44 -0
- package/dist/esm/models/Histogram.js +51 -0
- package/dist/esm/models/Host.d.ts +62 -0
- package/dist/esm/models/Host.js +55 -0
- package/dist/esm/models/Infra.d.ts +106 -0
- package/dist/esm/models/Infra.js +74 -0
- package/dist/esm/models/InspectorStartRequest.d.ts +39 -0
- package/dist/esm/models/InspectorStartRequest.js +48 -0
- package/dist/esm/models/InspectorStatus.d.ts +51 -0
- package/dist/esm/models/InspectorStatus.js +57 -0
- package/dist/esm/models/Inventory.d.ts +47 -0
- package/dist/esm/models/Inventory.js +51 -0
- package/dist/esm/models/InventoryData.d.ts +47 -0
- package/dist/esm/models/InventoryData.js +52 -0
- package/dist/esm/models/MigrationIssue.d.ts +50 -0
- package/dist/esm/models/MigrationIssue.js +53 -0
- package/dist/esm/models/Network.d.ts +66 -0
- package/dist/esm/models/Network.js +62 -0
- package/dist/esm/models/OsInfo.d.ts +44 -0
- package/dist/esm/models/OsInfo.js +49 -0
- package/dist/esm/models/UpdateGroupRequest.d.ts +50 -0
- package/dist/esm/models/UpdateGroupRequest.js +47 -0
- package/dist/esm/models/UpdateInventory.d.ts +39 -0
- package/dist/esm/models/UpdateInventory.js +48 -0
- package/dist/esm/models/VCenter.d.ts +32 -0
- package/dist/esm/models/VCenter.js +43 -0
- package/dist/esm/models/VMDevice.d.ts +32 -0
- package/dist/esm/models/VMDevice.js +41 -0
- package/dist/esm/models/VMDisk.d.ts +68 -0
- package/dist/esm/models/VMDisk.js +53 -0
- package/dist/esm/models/VMIssue.d.ts +56 -0
- package/dist/esm/models/VMIssue.js +62 -0
- package/dist/esm/models/VMNIC.d.ts +44 -0
- package/dist/esm/models/VMNIC.js +45 -0
- package/dist/esm/models/VMResourceBreakdown.d.ts +58 -0
- package/dist/esm/models/VMResourceBreakdown.js +58 -0
- package/dist/esm/models/VMs.d.ts +170 -0
- package/dist/esm/models/VMs.js +103 -0
- package/dist/esm/models/VcenterCredentials.d.ts +44 -0
- package/dist/esm/models/VcenterCredentials.js +51 -0
- package/dist/esm/models/VddkPost200Response.d.ts +38 -0
- package/dist/esm/models/VddkPost200Response.js +47 -0
- package/dist/esm/models/VersionInfo.d.ts +44 -0
- package/dist/esm/models/VersionInfo.js +51 -0
- package/dist/esm/models/VirtualMachine.d.ts +99 -0
- package/dist/esm/models/VirtualMachine.js +82 -0
- package/dist/esm/models/VirtualMachineDetail.d.ts +218 -0
- package/dist/esm/models/VirtualMachineDetail.js +125 -0
- package/dist/esm/models/VirtualMachineListResponse.d.ts +51 -0
- package/dist/esm/models/VirtualMachineListResponse.js +56 -0
- package/dist/esm/models/VmInspectionStatus.d.ts +56 -0
- package/dist/esm/models/VmInspectionStatus.js +58 -0
- package/dist/esm/models/index.d.ts +39 -0
- package/dist/esm/models/index.js +41 -0
- package/dist/esm/runtime.d.ts +184 -0
- package/dist/esm/runtime.js +349 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +21 -0
- package/dist/models/AgentModeRequest.d.ts +40 -0
- package/dist/models/AgentModeRequest.js +58 -0
- package/dist/models/AgentStatus.d.ts +60 -0
- package/dist/models/AgentStatus.js +71 -0
- package/dist/models/CollectorStartRequest.d.ts +44 -0
- package/dist/models/CollectorStartRequest.js +58 -0
- package/dist/models/CollectorStatus.d.ts +51 -0
- package/dist/models/CollectorStatus.js +65 -0
- package/dist/models/CreateGroupRequest.d.ts +50 -0
- package/dist/models/CreateGroupRequest.js +58 -0
- package/dist/models/Datastore.d.ts +80 -0
- package/dist/models/Datastore.js +80 -0
- package/dist/models/DiskSizeTierSummary.d.ts +38 -0
- package/dist/models/DiskSizeTierSummary.js +54 -0
- package/dist/models/DiskTypeSummary.d.ts +38 -0
- package/dist/models/DiskTypeSummary.js +54 -0
- package/dist/models/GetInventory200Response.d.ts +23 -0
- package/dist/models/GetInventory200Response.js +57 -0
- package/dist/models/Group.d.ts +68 -0
- package/dist/models/Group.js +66 -0
- package/dist/models/GroupListResponse.d.ts +51 -0
- package/dist/models/GroupListResponse.js +63 -0
- package/dist/models/GroupResponse.d.ts +58 -0
- package/dist/models/GroupResponse.js +68 -0
- package/dist/models/GuestNetwork.d.ts +56 -0
- package/dist/models/GuestNetwork.js +56 -0
- package/dist/models/Histogram.d.ts +44 -0
- package/dist/models/Histogram.js +58 -0
- package/dist/models/Host.d.ts +62 -0
- package/dist/models/Host.js +62 -0
- package/dist/models/Infra.d.ts +106 -0
- package/dist/models/Infra.js +81 -0
- package/dist/models/InspectorStartRequest.d.ts +39 -0
- package/dist/models/InspectorStartRequest.js +55 -0
- package/dist/models/InspectorStatus.d.ts +51 -0
- package/dist/models/InspectorStatus.js +65 -0
- package/dist/models/Inventory.d.ts +47 -0
- package/dist/models/Inventory.js +58 -0
- package/dist/models/InventoryData.d.ts +47 -0
- package/dist/models/InventoryData.js +59 -0
- package/dist/models/MigrationIssue.d.ts +50 -0
- package/dist/models/MigrationIssue.js +60 -0
- package/dist/models/Network.d.ts +66 -0
- package/dist/models/Network.js +70 -0
- package/dist/models/OsInfo.d.ts +44 -0
- package/dist/models/OsInfo.js +56 -0
- package/dist/models/UpdateGroupRequest.d.ts +50 -0
- package/dist/models/UpdateGroupRequest.js +54 -0
- package/dist/models/UpdateInventory.d.ts +39 -0
- package/dist/models/UpdateInventory.js +55 -0
- package/dist/models/VCenter.d.ts +32 -0
- package/dist/models/VCenter.js +50 -0
- package/dist/models/VMDevice.d.ts +32 -0
- package/dist/models/VMDevice.js +48 -0
- package/dist/models/VMDisk.d.ts +68 -0
- package/dist/models/VMDisk.js +60 -0
- package/dist/models/VMIssue.d.ts +56 -0
- package/dist/models/VMIssue.js +70 -0
- package/dist/models/VMNIC.d.ts +44 -0
- package/dist/models/VMNIC.js +52 -0
- package/dist/models/VMResourceBreakdown.d.ts +58 -0
- package/dist/models/VMResourceBreakdown.js +65 -0
- package/dist/models/VMs.d.ts +170 -0
- package/dist/models/VMs.js +110 -0
- package/dist/models/VcenterCredentials.d.ts +44 -0
- package/dist/models/VcenterCredentials.js +58 -0
- package/dist/models/VddkPost200Response.d.ts +38 -0
- package/dist/models/VddkPost200Response.js +54 -0
- package/dist/models/VersionInfo.d.ts +44 -0
- package/dist/models/VersionInfo.js +58 -0
- package/dist/models/VirtualMachine.d.ts +99 -0
- package/dist/models/VirtualMachine.js +89 -0
- package/dist/models/VirtualMachineDetail.d.ts +218 -0
- package/dist/models/VirtualMachineDetail.js +132 -0
- package/dist/models/VirtualMachineListResponse.d.ts +51 -0
- package/dist/models/VirtualMachineListResponse.js +63 -0
- package/dist/models/VmInspectionStatus.d.ts +56 -0
- package/dist/models/VmInspectionStatus.js +66 -0
- package/dist/models/index.d.ts +39 -0
- package/dist/models/index.js +57 -0
- package/dist/runtime.d.ts +184 -0
- package/dist/runtime.js +365 -0
- package/docs/AgentModeRequest.md +34 -0
- package/docs/AgentStatus.md +38 -0
- package/docs/CollectorStartRequest.md +38 -0
- package/docs/CollectorStatus.md +36 -0
- package/docs/CreateGroupRequest.md +40 -0
- package/docs/Datastore.md +50 -0
- package/docs/DefaultApi.md +1419 -0
- package/docs/DiskSizeTierSummary.md +36 -0
- package/docs/DiskTypeSummary.md +36 -0
- package/docs/GetInventory200Response.md +42 -0
- package/docs/Group.md +46 -0
- package/docs/GroupListResponse.md +40 -0
- package/docs/GroupResponse.md +42 -0
- package/docs/GuestNetwork.md +42 -0
- package/docs/Histogram.md +38 -0
- package/docs/Host.md +44 -0
- package/docs/Infra.md +56 -0
- package/docs/InspectorStartRequest.md +36 -0
- package/docs/InspectorStatus.md +36 -0
- package/docs/Inventory.md +38 -0
- package/docs/InventoryData.md +38 -0
- package/docs/MigrationIssue.md +40 -0
- package/docs/Network.md +42 -0
- package/docs/OsInfo.md +38 -0
- package/docs/UpdateGroupRequest.md +40 -0
- package/docs/UpdateInventory.md +36 -0
- package/docs/VCenter.md +34 -0
- package/docs/VMDevice.md +34 -0
- package/docs/VMDisk.md +46 -0
- package/docs/VMIssue.md +38 -0
- package/docs/VMNIC.md +38 -0
- package/docs/VMResourceBreakdown.md +42 -0
- package/docs/VMs.md +72 -0
- package/docs/VcenterCredentials.md +38 -0
- package/docs/VddkPost200Response.md +36 -0
- package/docs/VersionInfo.md +38 -0
- package/docs/VirtualMachine.md +56 -0
- package/docs/VirtualMachineDetail.md +94 -0
- package/docs/VirtualMachineListResponse.md +40 -0
- package/docs/VmInspectionStatus.md +38 -0
- package/package.json +22 -0
- package/src/apis/DefaultApi.ts +1607 -0
- package/src/apis/index.ts +3 -0
- package/src/index.ts +5 -0
- package/src/models/AgentModeRequest.ts +77 -0
- package/src/models/AgentStatus.ts +103 -0
- package/src/models/CollectorStartRequest.ts +84 -0
- package/src/models/CollectorStatus.ts +90 -0
- package/src/models/CreateGroupRequest.ts +91 -0
- package/src/models/Datastore.ts +137 -0
- package/src/models/DiskSizeTierSummary.ts +75 -0
- package/src/models/DiskTypeSummary.ts +75 -0
- package/src/models/GetInventory200Response.ts +76 -0
- package/src/models/Group.ts +116 -0
- package/src/models/GroupListResponse.ts +101 -0
- package/src/models/GroupResponse.ts +117 -0
- package/src/models/GuestNetwork.ts +97 -0
- package/src/models/Histogram.ts +84 -0
- package/src/models/Host.ts +107 -0
- package/src/models/Infra.ts +182 -0
- package/src/models/InspectorStartRequest.ts +83 -0
- package/src/models/InspectorStatus.ts +90 -0
- package/src/models/Inventory.ts +91 -0
- package/src/models/InventoryData.ts +105 -0
- package/src/models/MigrationIssue.ts +92 -0
- package/src/models/Network.ts +112 -0
- package/src/models/OsInfo.ts +83 -0
- package/src/models/UpdateGroupRequest.ts +89 -0
- package/src/models/UpdateInventory.ts +83 -0
- package/src/models/VCenter.ts +66 -0
- package/src/models/VMDevice.ts +65 -0
- package/src/models/VMDisk.ts +113 -0
- package/src/models/VMIssue.ts +99 -0
- package/src/models/VMNIC.ts +81 -0
- package/src/models/VMResourceBreakdown.ts +110 -0
- package/src/models/VMs.ts +263 -0
- package/src/models/VcenterCredentials.ts +84 -0
- package/src/models/VddkPost200Response.ts +75 -0
- package/src/models/VersionInfo.ts +84 -0
- package/src/models/VirtualMachine.ts +170 -0
- package/src/models/VirtualMachineDetail.ts +357 -0
- package/src/models/VirtualMachineListResponse.ts +101 -0
- package/src/models/VmInspectionStatus.ts +97 -0
- package/src/models/index.ts +41 -0
- package/src/runtime.ts +450 -0
- package/tsconfig.esm.json +7 -0
- package/tsconfig.json +16 -0
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Assisted Migration Agent API
|
|
6
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: v1
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfVirtualMachineListResponse = instanceOfVirtualMachineListResponse;
|
|
17
|
+
exports.VirtualMachineListResponseFromJSON = VirtualMachineListResponseFromJSON;
|
|
18
|
+
exports.VirtualMachineListResponseFromJSONTyped = VirtualMachineListResponseFromJSONTyped;
|
|
19
|
+
exports.VirtualMachineListResponseToJSON = VirtualMachineListResponseToJSON;
|
|
20
|
+
exports.VirtualMachineListResponseToJSONTyped = VirtualMachineListResponseToJSONTyped;
|
|
21
|
+
const VirtualMachine_js_1 = require("./VirtualMachine.js");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the VirtualMachineListResponse interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfVirtualMachineListResponse(value) {
|
|
26
|
+
if (!('vms' in value) || value['vms'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('total' in value) || value['total'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('page' in value) || value['page'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('pageCount' in value) || value['pageCount'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
return true;
|
|
35
|
+
}
|
|
36
|
+
function VirtualMachineListResponseFromJSON(json) {
|
|
37
|
+
return VirtualMachineListResponseFromJSONTyped(json, false);
|
|
38
|
+
}
|
|
39
|
+
function VirtualMachineListResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
40
|
+
if (json == null) {
|
|
41
|
+
return json;
|
|
42
|
+
}
|
|
43
|
+
return {
|
|
44
|
+
'vms': (json['vms'].map(VirtualMachine_js_1.VirtualMachineFromJSON)),
|
|
45
|
+
'total': json['total'],
|
|
46
|
+
'page': json['page'],
|
|
47
|
+
'pageCount': json['pageCount'],
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
function VirtualMachineListResponseToJSON(json) {
|
|
51
|
+
return VirtualMachineListResponseToJSONTyped(json, false);
|
|
52
|
+
}
|
|
53
|
+
function VirtualMachineListResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
54
|
+
if (value == null) {
|
|
55
|
+
return value;
|
|
56
|
+
}
|
|
57
|
+
return {
|
|
58
|
+
'vms': (value['vms'].map(VirtualMachine_js_1.VirtualMachineToJSON)),
|
|
59
|
+
'total': value['total'],
|
|
60
|
+
'page': value['page'],
|
|
61
|
+
'pageCount': value['pageCount'],
|
|
62
|
+
};
|
|
63
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
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
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface VmInspectionStatus
|
|
16
|
+
*/
|
|
17
|
+
export interface VmInspectionStatus {
|
|
18
|
+
/**
|
|
19
|
+
* Current inspection state
|
|
20
|
+
* @type {VmInspectionStatusStateEnum}
|
|
21
|
+
* @memberof VmInspectionStatus
|
|
22
|
+
*/
|
|
23
|
+
state: VmInspectionStatusStateEnum;
|
|
24
|
+
/**
|
|
25
|
+
* Error message when state is error
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof VmInspectionStatus
|
|
28
|
+
*/
|
|
29
|
+
error?: string;
|
|
30
|
+
/**
|
|
31
|
+
* Inspection results
|
|
32
|
+
* @type {object}
|
|
33
|
+
* @memberof VmInspectionStatus
|
|
34
|
+
*/
|
|
35
|
+
results?: object;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* @export
|
|
39
|
+
*/
|
|
40
|
+
export declare const VmInspectionStatusStateEnum: {
|
|
41
|
+
readonly VmInspectionStatusStatePending: "pending";
|
|
42
|
+
readonly VmInspectionStatusStateRunning: "running";
|
|
43
|
+
readonly VmInspectionStatusStateCompleted: "completed";
|
|
44
|
+
readonly VmInspectionStatusStateCanceled: "canceled";
|
|
45
|
+
readonly VmInspectionStatusStateError: "error";
|
|
46
|
+
readonly VmInspectionStatusStateNotFound: "not_found";
|
|
47
|
+
};
|
|
48
|
+
export type VmInspectionStatusStateEnum = typeof VmInspectionStatusStateEnum[keyof typeof VmInspectionStatusStateEnum];
|
|
49
|
+
/**
|
|
50
|
+
* Check if a given object implements the VmInspectionStatus interface.
|
|
51
|
+
*/
|
|
52
|
+
export declare function instanceOfVmInspectionStatus(value: object): value is VmInspectionStatus;
|
|
53
|
+
export declare function VmInspectionStatusFromJSON(json: any): VmInspectionStatus;
|
|
54
|
+
export declare function VmInspectionStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): VmInspectionStatus;
|
|
55
|
+
export declare function VmInspectionStatusToJSON(json: any): VmInspectionStatus;
|
|
56
|
+
export declare function VmInspectionStatusToJSONTyped(value?: VmInspectionStatus | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Assisted Migration Agent API
|
|
6
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: v1
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.VmInspectionStatusStateEnum = void 0;
|
|
17
|
+
exports.instanceOfVmInspectionStatus = instanceOfVmInspectionStatus;
|
|
18
|
+
exports.VmInspectionStatusFromJSON = VmInspectionStatusFromJSON;
|
|
19
|
+
exports.VmInspectionStatusFromJSONTyped = VmInspectionStatusFromJSONTyped;
|
|
20
|
+
exports.VmInspectionStatusToJSON = VmInspectionStatusToJSON;
|
|
21
|
+
exports.VmInspectionStatusToJSONTyped = VmInspectionStatusToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.VmInspectionStatusStateEnum = {
|
|
26
|
+
VmInspectionStatusStatePending: 'pending',
|
|
27
|
+
VmInspectionStatusStateRunning: 'running',
|
|
28
|
+
VmInspectionStatusStateCompleted: 'completed',
|
|
29
|
+
VmInspectionStatusStateCanceled: 'canceled',
|
|
30
|
+
VmInspectionStatusStateError: 'error',
|
|
31
|
+
VmInspectionStatusStateNotFound: 'not_found'
|
|
32
|
+
};
|
|
33
|
+
/**
|
|
34
|
+
* Check if a given object implements the VmInspectionStatus interface.
|
|
35
|
+
*/
|
|
36
|
+
function instanceOfVmInspectionStatus(value) {
|
|
37
|
+
if (!('state' in value) || value['state'] === undefined)
|
|
38
|
+
return false;
|
|
39
|
+
return true;
|
|
40
|
+
}
|
|
41
|
+
function VmInspectionStatusFromJSON(json) {
|
|
42
|
+
return VmInspectionStatusFromJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function VmInspectionStatusFromJSONTyped(json, ignoreDiscriminator) {
|
|
45
|
+
if (json == null) {
|
|
46
|
+
return json;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'state': json['state'],
|
|
50
|
+
'error': json['error'] == null ? undefined : json['error'],
|
|
51
|
+
'results': json['results'] == null ? undefined : json['results'],
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
function VmInspectionStatusToJSON(json) {
|
|
55
|
+
return VmInspectionStatusToJSONTyped(json, false);
|
|
56
|
+
}
|
|
57
|
+
function VmInspectionStatusToJSONTyped(value, ignoreDiscriminator = false) {
|
|
58
|
+
if (value == null) {
|
|
59
|
+
return value;
|
|
60
|
+
}
|
|
61
|
+
return {
|
|
62
|
+
'state': value['state'],
|
|
63
|
+
'error': value['error'],
|
|
64
|
+
'results': value['results'],
|
|
65
|
+
};
|
|
66
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
export * from './AgentModeRequest.js';
|
|
2
|
+
export * from './AgentStatus.js';
|
|
3
|
+
export * from './CollectorStartRequest.js';
|
|
4
|
+
export * from './CollectorStatus.js';
|
|
5
|
+
export * from './CreateGroupRequest.js';
|
|
6
|
+
export * from './Datastore.js';
|
|
7
|
+
export * from './DiskSizeTierSummary.js';
|
|
8
|
+
export * from './DiskTypeSummary.js';
|
|
9
|
+
export * from './GetInventory200Response.js';
|
|
10
|
+
export * from './Group.js';
|
|
11
|
+
export * from './GroupListResponse.js';
|
|
12
|
+
export * from './GroupResponse.js';
|
|
13
|
+
export * from './GuestNetwork.js';
|
|
14
|
+
export * from './Histogram.js';
|
|
15
|
+
export * from './Host.js';
|
|
16
|
+
export * from './Infra.js';
|
|
17
|
+
export * from './InspectorStartRequest.js';
|
|
18
|
+
export * from './InspectorStatus.js';
|
|
19
|
+
export * from './Inventory.js';
|
|
20
|
+
export * from './InventoryData.js';
|
|
21
|
+
export * from './MigrationIssue.js';
|
|
22
|
+
export * from './Network.js';
|
|
23
|
+
export * from './OsInfo.js';
|
|
24
|
+
export * from './UpdateGroupRequest.js';
|
|
25
|
+
export * from './UpdateInventory.js';
|
|
26
|
+
export * from './VCenter.js';
|
|
27
|
+
export * from './VMDevice.js';
|
|
28
|
+
export * from './VMDisk.js';
|
|
29
|
+
export * from './VMIssue.js';
|
|
30
|
+
export * from './VMNIC.js';
|
|
31
|
+
export * from './VMResourceBreakdown.js';
|
|
32
|
+
export * from './VMs.js';
|
|
33
|
+
export * from './VcenterCredentials.js';
|
|
34
|
+
export * from './VddkPost200Response.js';
|
|
35
|
+
export * from './VersionInfo.js';
|
|
36
|
+
export * from './VirtualMachine.js';
|
|
37
|
+
export * from './VirtualMachineDetail.js';
|
|
38
|
+
export * from './VirtualMachineListResponse.js';
|
|
39
|
+
export * from './VmInspectionStatus.js';
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
/* tslint:disable */
|
|
18
|
+
/* eslint-disable */
|
|
19
|
+
__exportStar(require("./AgentModeRequest.js"), exports);
|
|
20
|
+
__exportStar(require("./AgentStatus.js"), exports);
|
|
21
|
+
__exportStar(require("./CollectorStartRequest.js"), exports);
|
|
22
|
+
__exportStar(require("./CollectorStatus.js"), exports);
|
|
23
|
+
__exportStar(require("./CreateGroupRequest.js"), exports);
|
|
24
|
+
__exportStar(require("./Datastore.js"), exports);
|
|
25
|
+
__exportStar(require("./DiskSizeTierSummary.js"), exports);
|
|
26
|
+
__exportStar(require("./DiskTypeSummary.js"), exports);
|
|
27
|
+
__exportStar(require("./GetInventory200Response.js"), exports);
|
|
28
|
+
__exportStar(require("./Group.js"), exports);
|
|
29
|
+
__exportStar(require("./GroupListResponse.js"), exports);
|
|
30
|
+
__exportStar(require("./GroupResponse.js"), exports);
|
|
31
|
+
__exportStar(require("./GuestNetwork.js"), exports);
|
|
32
|
+
__exportStar(require("./Histogram.js"), exports);
|
|
33
|
+
__exportStar(require("./Host.js"), exports);
|
|
34
|
+
__exportStar(require("./Infra.js"), exports);
|
|
35
|
+
__exportStar(require("./InspectorStartRequest.js"), exports);
|
|
36
|
+
__exportStar(require("./InspectorStatus.js"), exports);
|
|
37
|
+
__exportStar(require("./Inventory.js"), exports);
|
|
38
|
+
__exportStar(require("./InventoryData.js"), exports);
|
|
39
|
+
__exportStar(require("./MigrationIssue.js"), exports);
|
|
40
|
+
__exportStar(require("./Network.js"), exports);
|
|
41
|
+
__exportStar(require("./OsInfo.js"), exports);
|
|
42
|
+
__exportStar(require("./UpdateGroupRequest.js"), exports);
|
|
43
|
+
__exportStar(require("./UpdateInventory.js"), exports);
|
|
44
|
+
__exportStar(require("./VCenter.js"), exports);
|
|
45
|
+
__exportStar(require("./VMDevice.js"), exports);
|
|
46
|
+
__exportStar(require("./VMDisk.js"), exports);
|
|
47
|
+
__exportStar(require("./VMIssue.js"), exports);
|
|
48
|
+
__exportStar(require("./VMNIC.js"), exports);
|
|
49
|
+
__exportStar(require("./VMResourceBreakdown.js"), exports);
|
|
50
|
+
__exportStar(require("./VMs.js"), exports);
|
|
51
|
+
__exportStar(require("./VcenterCredentials.js"), exports);
|
|
52
|
+
__exportStar(require("./VddkPost200Response.js"), exports);
|
|
53
|
+
__exportStar(require("./VersionInfo.js"), exports);
|
|
54
|
+
__exportStar(require("./VirtualMachine.js"), exports);
|
|
55
|
+
__exportStar(require("./VirtualMachineDetail.js"), exports);
|
|
56
|
+
__exportStar(require("./VirtualMachineListResponse.js"), exports);
|
|
57
|
+
__exportStar(require("./VmInspectionStatus.js"), exports);
|
|
@@ -0,0 +1,184 @@
|
|
|
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
|
+
export declare const BASE_PATH: string;
|
|
13
|
+
export interface ConfigurationParameters {
|
|
14
|
+
basePath?: string;
|
|
15
|
+
fetchApi?: FetchAPI;
|
|
16
|
+
middleware?: Middleware[];
|
|
17
|
+
queryParamsStringify?: (params: HTTPQuery) => string;
|
|
18
|
+
username?: string;
|
|
19
|
+
password?: string;
|
|
20
|
+
apiKey?: string | Promise<string> | ((name: string) => string | Promise<string>);
|
|
21
|
+
accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string | Promise<string>);
|
|
22
|
+
headers?: HTTPHeaders;
|
|
23
|
+
credentials?: RequestCredentials;
|
|
24
|
+
}
|
|
25
|
+
export declare class Configuration {
|
|
26
|
+
private configuration;
|
|
27
|
+
constructor(configuration?: ConfigurationParameters);
|
|
28
|
+
set config(configuration: Configuration);
|
|
29
|
+
get basePath(): string;
|
|
30
|
+
get fetchApi(): FetchAPI | undefined;
|
|
31
|
+
get middleware(): Middleware[];
|
|
32
|
+
get queryParamsStringify(): (params: HTTPQuery) => string;
|
|
33
|
+
get username(): string | undefined;
|
|
34
|
+
get password(): string | undefined;
|
|
35
|
+
get apiKey(): ((name: string) => string | Promise<string>) | undefined;
|
|
36
|
+
get accessToken(): ((name?: string, scopes?: string[]) => string | Promise<string>) | undefined;
|
|
37
|
+
get headers(): HTTPHeaders | undefined;
|
|
38
|
+
get credentials(): RequestCredentials | undefined;
|
|
39
|
+
}
|
|
40
|
+
export declare const DefaultConfig: Configuration;
|
|
41
|
+
/**
|
|
42
|
+
* This is the base class for all generated API classes.
|
|
43
|
+
*/
|
|
44
|
+
export declare class BaseAPI {
|
|
45
|
+
protected configuration: Configuration;
|
|
46
|
+
private static readonly jsonRegex;
|
|
47
|
+
private middleware;
|
|
48
|
+
constructor(configuration?: Configuration);
|
|
49
|
+
withMiddleware<T extends BaseAPI>(this: T, ...middlewares: Middleware[]): T;
|
|
50
|
+
withPreMiddleware<T extends BaseAPI>(this: T, ...preMiddlewares: Array<Middleware['pre']>): T;
|
|
51
|
+
withPostMiddleware<T extends BaseAPI>(this: T, ...postMiddlewares: Array<Middleware['post']>): T;
|
|
52
|
+
/**
|
|
53
|
+
* Check if the given MIME is a JSON MIME.
|
|
54
|
+
* JSON MIME examples:
|
|
55
|
+
* application/json
|
|
56
|
+
* application/json; charset=UTF8
|
|
57
|
+
* APPLICATION/JSON
|
|
58
|
+
* application/vnd.company+json
|
|
59
|
+
* @param mime - MIME (Multipurpose Internet Mail Extensions)
|
|
60
|
+
* @return True if the given MIME is JSON, false otherwise.
|
|
61
|
+
*/
|
|
62
|
+
protected isJsonMime(mime: string | null | undefined): boolean;
|
|
63
|
+
protected request(context: RequestOpts, initOverrides?: RequestInit | InitOverrideFunction): Promise<Response>;
|
|
64
|
+
private createFetchParams;
|
|
65
|
+
private fetchApi;
|
|
66
|
+
/**
|
|
67
|
+
* Create a shallow clone of `this` by constructing a new instance
|
|
68
|
+
* and then shallow cloning data members.
|
|
69
|
+
*/
|
|
70
|
+
private clone;
|
|
71
|
+
}
|
|
72
|
+
export declare class ResponseError extends Error {
|
|
73
|
+
response: Response;
|
|
74
|
+
name: "ResponseError";
|
|
75
|
+
constructor(response: Response, msg?: string);
|
|
76
|
+
}
|
|
77
|
+
export declare class FetchError extends Error {
|
|
78
|
+
cause: Error;
|
|
79
|
+
name: "FetchError";
|
|
80
|
+
constructor(cause: Error, msg?: string);
|
|
81
|
+
}
|
|
82
|
+
export declare class RequiredError extends Error {
|
|
83
|
+
field: string;
|
|
84
|
+
name: "RequiredError";
|
|
85
|
+
constructor(field: string, msg?: string);
|
|
86
|
+
}
|
|
87
|
+
export declare const COLLECTION_FORMATS: {
|
|
88
|
+
csv: string;
|
|
89
|
+
ssv: string;
|
|
90
|
+
tsv: string;
|
|
91
|
+
pipes: string;
|
|
92
|
+
};
|
|
93
|
+
export type FetchAPI = WindowOrWorkerGlobalScope['fetch'];
|
|
94
|
+
export type Json = any;
|
|
95
|
+
export type HTTPMethod = 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE' | 'OPTIONS' | 'HEAD';
|
|
96
|
+
export type HTTPHeaders = {
|
|
97
|
+
[key: string]: string;
|
|
98
|
+
};
|
|
99
|
+
export type HTTPQuery = {
|
|
100
|
+
[key: string]: string | number | null | boolean | Array<string | number | null | boolean> | Set<string | number | null | boolean> | HTTPQuery;
|
|
101
|
+
};
|
|
102
|
+
export type HTTPBody = Json | FormData | URLSearchParams;
|
|
103
|
+
export type HTTPRequestInit = {
|
|
104
|
+
headers?: HTTPHeaders;
|
|
105
|
+
method: HTTPMethod;
|
|
106
|
+
credentials?: RequestCredentials;
|
|
107
|
+
body?: HTTPBody;
|
|
108
|
+
};
|
|
109
|
+
export type ModelPropertyNaming = 'camelCase' | 'snake_case' | 'PascalCase' | 'original';
|
|
110
|
+
export type InitOverrideFunction = (requestContext: {
|
|
111
|
+
init: HTTPRequestInit;
|
|
112
|
+
context: RequestOpts;
|
|
113
|
+
}) => Promise<RequestInit>;
|
|
114
|
+
export interface FetchParams {
|
|
115
|
+
url: string;
|
|
116
|
+
init: RequestInit;
|
|
117
|
+
}
|
|
118
|
+
export interface RequestOpts {
|
|
119
|
+
path: string;
|
|
120
|
+
method: HTTPMethod;
|
|
121
|
+
headers: HTTPHeaders;
|
|
122
|
+
query?: HTTPQuery;
|
|
123
|
+
body?: HTTPBody;
|
|
124
|
+
}
|
|
125
|
+
export declare function querystring(params: HTTPQuery, prefix?: string): string;
|
|
126
|
+
export declare function exists(json: any, key: string): boolean;
|
|
127
|
+
export declare function mapValues(data: any, fn: (item: any) => any): {
|
|
128
|
+
[key: string]: any;
|
|
129
|
+
};
|
|
130
|
+
export declare function canConsumeForm(consumes: Consume[]): boolean;
|
|
131
|
+
export interface Consume {
|
|
132
|
+
contentType: string;
|
|
133
|
+
}
|
|
134
|
+
export interface RequestContext {
|
|
135
|
+
fetch: FetchAPI;
|
|
136
|
+
url: string;
|
|
137
|
+
init: RequestInit;
|
|
138
|
+
}
|
|
139
|
+
export interface ResponseContext {
|
|
140
|
+
fetch: FetchAPI;
|
|
141
|
+
url: string;
|
|
142
|
+
init: RequestInit;
|
|
143
|
+
response: Response;
|
|
144
|
+
}
|
|
145
|
+
export interface ErrorContext {
|
|
146
|
+
fetch: FetchAPI;
|
|
147
|
+
url: string;
|
|
148
|
+
init: RequestInit;
|
|
149
|
+
error: unknown;
|
|
150
|
+
response?: Response;
|
|
151
|
+
}
|
|
152
|
+
export interface Middleware {
|
|
153
|
+
pre?(context: RequestContext): Promise<FetchParams | void>;
|
|
154
|
+
post?(context: ResponseContext): Promise<Response | void>;
|
|
155
|
+
onError?(context: ErrorContext): Promise<Response | void>;
|
|
156
|
+
}
|
|
157
|
+
export interface ApiResponse<T> {
|
|
158
|
+
raw: Response;
|
|
159
|
+
value(): Promise<T>;
|
|
160
|
+
}
|
|
161
|
+
export interface ResponseTransformer<T> {
|
|
162
|
+
(json: any): T;
|
|
163
|
+
}
|
|
164
|
+
export declare class JSONApiResponse<T> {
|
|
165
|
+
raw: Response;
|
|
166
|
+
private transformer;
|
|
167
|
+
constructor(raw: Response, transformer?: ResponseTransformer<T>);
|
|
168
|
+
value(): Promise<T>;
|
|
169
|
+
}
|
|
170
|
+
export declare class VoidApiResponse {
|
|
171
|
+
raw: Response;
|
|
172
|
+
constructor(raw: Response);
|
|
173
|
+
value(): Promise<void>;
|
|
174
|
+
}
|
|
175
|
+
export declare class BlobApiResponse {
|
|
176
|
+
raw: Response;
|
|
177
|
+
constructor(raw: Response);
|
|
178
|
+
value(): Promise<Blob>;
|
|
179
|
+
}
|
|
180
|
+
export declare class TextApiResponse {
|
|
181
|
+
raw: Response;
|
|
182
|
+
constructor(raw: Response);
|
|
183
|
+
value(): Promise<string>;
|
|
184
|
+
}
|