@openshift-migration-advisor/agent-sdk 0.12.0-645d2fae3eee → 0.12.0-73dd4924f11b
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 +12 -0
- package/.openapi-generator/VERSION +1 -1
- package/README.md +15 -3
- package/dist/apis/DefaultApi.d.ts +206 -4
- package/dist/apis/DefaultApi.js +227 -0
- package/dist/esm/apis/DefaultApi.d.ts +206 -4
- package/dist/esm/apis/DefaultApi.js +227 -0
- package/dist/esm/models/ApplicationListResponse.d.ts +33 -0
- package/dist/esm/models/ApplicationListResponse.js +44 -0
- package/dist/esm/models/ApplicationOverview.d.ts +51 -0
- package/dist/esm/models/ApplicationOverview.js +56 -0
- package/dist/esm/models/ApplicationVM.d.ts +38 -0
- package/dist/esm/models/ApplicationVM.js +47 -0
- package/dist/esm/models/ClusterUtilization.d.ts +68 -0
- package/dist/esm/models/ClusterUtilization.js +67 -0
- package/dist/esm/models/CollectorStartRequest.d.ts +12 -0
- package/dist/esm/models/CollectorStartRequest.js +4 -0
- package/dist/esm/models/CreateGroupRequest.d.ts +0 -6
- package/dist/esm/models/CreateGroupRequest.js +0 -2
- package/dist/esm/models/CredentialStatus.d.ts +38 -0
- package/dist/esm/models/CredentialStatus.js +47 -0
- package/dist/esm/models/Group.d.ts +0 -6
- package/dist/esm/models/Group.js +0 -2
- package/dist/esm/models/GroupResponse.d.ts +7 -0
- package/dist/esm/models/GroupResponse.js +3 -0
- package/dist/esm/models/InventoryData.d.ts +7 -0
- package/dist/esm/models/InventoryData.js +3 -0
- package/dist/esm/models/UpdateGroupRequest.d.ts +0 -6
- package/dist/esm/models/UpdateGroupRequest.js +0 -2
- package/dist/esm/models/VMFilterOptionsResponse.d.ts +56 -0
- package/dist/esm/models/VMFilterOptionsResponse.js +59 -0
- package/dist/esm/models/VMNIC.d.ts +12 -0
- package/dist/esm/models/VMNIC.js +4 -0
- package/dist/esm/models/VcenterCredentials.d.ts +12 -0
- package/dist/esm/models/VcenterCredentials.js +4 -0
- package/dist/esm/models/VirtualMachine.d.ts +14 -2
- package/dist/esm/models/VirtualMachine.js +6 -2
- package/dist/esm/models/VmInspectionStatus.d.ts +6 -0
- package/dist/esm/models/VmInspectionStatus.js +4 -0
- package/dist/esm/models/index.d.ts +6 -0
- package/dist/esm/models/index.js +6 -0
- package/dist/esm/runtime.js +2 -1
- package/dist/models/ApplicationListResponse.d.ts +33 -0
- package/dist/models/ApplicationListResponse.js +51 -0
- package/dist/models/ApplicationOverview.d.ts +51 -0
- package/dist/models/ApplicationOverview.js +63 -0
- package/dist/models/ApplicationVM.d.ts +38 -0
- package/dist/models/ApplicationVM.js +54 -0
- package/dist/models/ClusterUtilization.d.ts +68 -0
- package/dist/models/ClusterUtilization.js +74 -0
- package/dist/models/CollectorStartRequest.d.ts +12 -0
- package/dist/models/CollectorStartRequest.js +4 -0
- package/dist/models/CreateGroupRequest.d.ts +0 -6
- package/dist/models/CreateGroupRequest.js +0 -2
- package/dist/models/CredentialStatus.d.ts +38 -0
- package/dist/models/CredentialStatus.js +54 -0
- package/dist/models/Group.d.ts +0 -6
- package/dist/models/Group.js +0 -2
- package/dist/models/GroupResponse.d.ts +7 -0
- package/dist/models/GroupResponse.js +3 -0
- package/dist/models/InventoryData.d.ts +7 -0
- package/dist/models/InventoryData.js +3 -0
- package/dist/models/UpdateGroupRequest.d.ts +0 -6
- package/dist/models/UpdateGroupRequest.js +0 -2
- package/dist/models/VMFilterOptionsResponse.d.ts +56 -0
- package/dist/models/VMFilterOptionsResponse.js +66 -0
- package/dist/models/VMNIC.d.ts +12 -0
- package/dist/models/VMNIC.js +4 -0
- package/dist/models/VcenterCredentials.d.ts +12 -0
- package/dist/models/VcenterCredentials.js +4 -0
- package/dist/models/VirtualMachine.d.ts +14 -2
- package/dist/models/VirtualMachine.js +6 -2
- package/dist/models/VmInspectionStatus.d.ts +6 -0
- package/dist/models/VmInspectionStatus.js +4 -0
- package/dist/models/index.d.ts +6 -0
- package/dist/models/index.js +6 -0
- package/dist/runtime.js +2 -1
- package/docs/ApplicationListResponse.md +34 -0
- package/docs/ApplicationOverview.md +40 -0
- package/docs/ApplicationVM.md +36 -0
- package/docs/ClusterUtilization.md +46 -0
- package/docs/CollectorStartRequest.md +4 -0
- package/docs/CreateGroupRequest.md +0 -2
- package/docs/CredentialStatus.md +36 -0
- package/docs/DefaultApi.md +385 -4
- package/docs/Group.md +0 -2
- package/docs/GroupResponse.md +2 -0
- package/docs/InventoryData.md +2 -0
- package/docs/UpdateGroupRequest.md +0 -2
- package/docs/VMFilterOptionsResponse.md +42 -0
- package/docs/VMNIC.md +4 -0
- package/docs/VcenterCredentials.md +4 -0
- package/docs/VirtualMachine.md +6 -2
- package/docs/VmInspectionStatus.md +2 -0
- package/package.json +1 -1
- package/src/apis/DefaultApi.ts +405 -4
- package/src/models/ApplicationListResponse.ts +74 -0
- package/src/models/ApplicationOverview.ts +101 -0
- package/src/models/ApplicationVM.ts +75 -0
- package/src/models/ClusterUtilization.ts +120 -0
- package/src/models/CollectorStartRequest.ts +16 -0
- package/src/models/CreateGroupRequest.ts +0 -8
- package/src/models/CredentialStatus.ts +75 -0
- package/src/models/Group.ts +0 -8
- package/src/models/GroupResponse.ts +15 -0
- package/src/models/InventoryData.ts +15 -0
- package/src/models/UpdateGroupRequest.ts +0 -8
- package/src/models/VMFilterOptionsResponse.ts +102 -0
- package/src/models/VMNIC.ts +16 -0
- package/src/models/VcenterCredentials.ts +16 -0
- package/src/models/VirtualMachine.ts +20 -4
- package/src/models/VmInspectionStatus.ts +9 -0
- package/src/models/index.ts +6 -0
- package/src/runtime.ts +1 -1
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import type { VCenter } from './VCenter.js';
|
|
13
13
|
import type { Infra } from './Infra.js';
|
|
14
|
+
import type { ClusterUtilization } from './ClusterUtilization.js';
|
|
14
15
|
import type { VMs } from './VMs.js';
|
|
15
16
|
import type { ClusterFeatures } from './ClusterFeatures.js';
|
|
16
17
|
/**
|
|
@@ -31,6 +32,12 @@ export interface InventoryData {
|
|
|
31
32
|
* @memberof InventoryData
|
|
32
33
|
*/
|
|
33
34
|
clusterFeatures?: ClusterFeatures;
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @type {ClusterUtilization}
|
|
38
|
+
* @memberof InventoryData
|
|
39
|
+
*/
|
|
40
|
+
clusterUtilization?: ClusterUtilization;
|
|
34
41
|
/**
|
|
35
42
|
*
|
|
36
43
|
* @type {VMs}
|
|
@@ -20,6 +20,7 @@ exports.InventoryDataToJSON = InventoryDataToJSON;
|
|
|
20
20
|
exports.InventoryDataToJSONTyped = InventoryDataToJSONTyped;
|
|
21
21
|
const VCenter_js_1 = require("./VCenter.js");
|
|
22
22
|
const Infra_js_1 = require("./Infra.js");
|
|
23
|
+
const ClusterUtilization_js_1 = require("./ClusterUtilization.js");
|
|
23
24
|
const VMs_js_1 = require("./VMs.js");
|
|
24
25
|
const ClusterFeatures_js_1 = require("./ClusterFeatures.js");
|
|
25
26
|
/**
|
|
@@ -42,6 +43,7 @@ function InventoryDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
42
43
|
return {
|
|
43
44
|
'vcenter': json['vcenter'] == null ? undefined : (0, VCenter_js_1.VCenterFromJSON)(json['vcenter']),
|
|
44
45
|
'clusterFeatures': json['clusterFeatures'] == null ? undefined : (0, ClusterFeatures_js_1.ClusterFeaturesFromJSON)(json['clusterFeatures']),
|
|
46
|
+
'clusterUtilization': json['clusterUtilization'] == null ? undefined : (0, ClusterUtilization_js_1.ClusterUtilizationFromJSON)(json['clusterUtilization']),
|
|
45
47
|
'vms': (0, VMs_js_1.VMsFromJSON)(json['vms']),
|
|
46
48
|
'infra': (0, Infra_js_1.InfraFromJSON)(json['infra']),
|
|
47
49
|
};
|
|
@@ -56,6 +58,7 @@ function InventoryDataToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
56
58
|
return {
|
|
57
59
|
'vcenter': (0, VCenter_js_1.VCenterToJSON)(value['vcenter']),
|
|
58
60
|
'clusterFeatures': (0, ClusterFeatures_js_1.ClusterFeaturesToJSON)(value['clusterFeatures']),
|
|
61
|
+
'clusterUtilization': (0, ClusterUtilization_js_1.ClusterUtilizationToJSON)(value['clusterUtilization']),
|
|
59
62
|
'vms': (0, VMs_js_1.VMsToJSON)(value['vms']),
|
|
60
63
|
'infra': (0, Infra_js_1.InfraToJSON)(value['infra']),
|
|
61
64
|
};
|
|
@@ -33,12 +33,6 @@ export interface UpdateGroupRequest {
|
|
|
33
33
|
* @memberof UpdateGroupRequest
|
|
34
34
|
*/
|
|
35
35
|
filter?: string;
|
|
36
|
-
/**
|
|
37
|
-
* Tags to apply to matching VMs (only alphanumeric, underscore, and dot allowed)
|
|
38
|
-
* @type {Array<string>}
|
|
39
|
-
* @memberof UpdateGroupRequest
|
|
40
|
-
*/
|
|
41
|
-
tags?: Array<string>;
|
|
42
36
|
}
|
|
43
37
|
/**
|
|
44
38
|
* Check if a given object implements the UpdateGroupRequest interface.
|
|
@@ -35,7 +35,6 @@ function UpdateGroupRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
35
35
|
'name': json['name'] == null ? undefined : json['name'],
|
|
36
36
|
'description': json['description'] == null ? undefined : json['description'],
|
|
37
37
|
'filter': json['filter'] == null ? undefined : json['filter'],
|
|
38
|
-
'tags': json['tags'] == null ? undefined : json['tags'],
|
|
39
38
|
};
|
|
40
39
|
}
|
|
41
40
|
function UpdateGroupRequestToJSON(json) {
|
|
@@ -49,6 +48,5 @@ function UpdateGroupRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
49
48
|
'name': value['name'],
|
|
50
49
|
'description': value['description'],
|
|
51
50
|
'filter': value['filter'],
|
|
52
|
-
'tags': value['tags'],
|
|
53
51
|
};
|
|
54
52
|
}
|
|
@@ -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 VMFilterOptionsResponse
|
|
16
|
+
*/
|
|
17
|
+
export interface VMFilterOptionsResponse {
|
|
18
|
+
/**
|
|
19
|
+
* Distinct cluster names
|
|
20
|
+
* @type {Array<string>}
|
|
21
|
+
* @memberof VMFilterOptionsResponse
|
|
22
|
+
*/
|
|
23
|
+
clusters: Array<string>;
|
|
24
|
+
/**
|
|
25
|
+
* Distinct datacenter names
|
|
26
|
+
* @type {Array<string>}
|
|
27
|
+
* @memberof VMFilterOptionsResponse
|
|
28
|
+
*/
|
|
29
|
+
datacenters: Array<string>;
|
|
30
|
+
/**
|
|
31
|
+
* Distinct concern labels
|
|
32
|
+
* @type {Array<string>}
|
|
33
|
+
* @memberof VMFilterOptionsResponse
|
|
34
|
+
*/
|
|
35
|
+
concernLabels: Array<string>;
|
|
36
|
+
/**
|
|
37
|
+
* Distinct concern categories
|
|
38
|
+
* @type {Array<string>}
|
|
39
|
+
* @memberof VMFilterOptionsResponse
|
|
40
|
+
*/
|
|
41
|
+
concernCategories: Array<string>;
|
|
42
|
+
/**
|
|
43
|
+
* Distinct detected application names
|
|
44
|
+
* @type {Array<string>}
|
|
45
|
+
* @memberof VMFilterOptionsResponse
|
|
46
|
+
*/
|
|
47
|
+
applications: Array<string>;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Check if a given object implements the VMFilterOptionsResponse interface.
|
|
51
|
+
*/
|
|
52
|
+
export declare function instanceOfVMFilterOptionsResponse(value: object): value is VMFilterOptionsResponse;
|
|
53
|
+
export declare function VMFilterOptionsResponseFromJSON(json: any): VMFilterOptionsResponse;
|
|
54
|
+
export declare function VMFilterOptionsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): VMFilterOptionsResponse;
|
|
55
|
+
export declare function VMFilterOptionsResponseToJSON(json: any): VMFilterOptionsResponse;
|
|
56
|
+
export declare function VMFilterOptionsResponseToJSONTyped(value?: VMFilterOptionsResponse | 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.instanceOfVMFilterOptionsResponse = instanceOfVMFilterOptionsResponse;
|
|
17
|
+
exports.VMFilterOptionsResponseFromJSON = VMFilterOptionsResponseFromJSON;
|
|
18
|
+
exports.VMFilterOptionsResponseFromJSONTyped = VMFilterOptionsResponseFromJSONTyped;
|
|
19
|
+
exports.VMFilterOptionsResponseToJSON = VMFilterOptionsResponseToJSON;
|
|
20
|
+
exports.VMFilterOptionsResponseToJSONTyped = VMFilterOptionsResponseToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the VMFilterOptionsResponse interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfVMFilterOptionsResponse(value) {
|
|
25
|
+
if (!('clusters' in value) || value['clusters'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('datacenters' in value) || value['datacenters'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('concernLabels' in value) || value['concernLabels'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('concernCategories' in value) || value['concernCategories'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('applications' in value) || value['applications'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
function VMFilterOptionsResponseFromJSON(json) {
|
|
38
|
+
return VMFilterOptionsResponseFromJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
function VMFilterOptionsResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
41
|
+
if (json == null) {
|
|
42
|
+
return json;
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
'clusters': json['clusters'],
|
|
46
|
+
'datacenters': json['datacenters'],
|
|
47
|
+
'concernLabels': json['concernLabels'],
|
|
48
|
+
'concernCategories': json['concernCategories'],
|
|
49
|
+
'applications': json['applications'],
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
function VMFilterOptionsResponseToJSON(json) {
|
|
53
|
+
return VMFilterOptionsResponseToJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
function VMFilterOptionsResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
56
|
+
if (value == null) {
|
|
57
|
+
return value;
|
|
58
|
+
}
|
|
59
|
+
return {
|
|
60
|
+
'clusters': value['clusters'],
|
|
61
|
+
'datacenters': value['datacenters'],
|
|
62
|
+
'concernLabels': value['concernLabels'],
|
|
63
|
+
'concernCategories': value['concernCategories'],
|
|
64
|
+
'applications': value['applications'],
|
|
65
|
+
};
|
|
66
|
+
}
|
package/dist/models/VMNIC.d.ts
CHANGED
|
@@ -33,6 +33,18 @@ export interface VMNIC {
|
|
|
33
33
|
* @memberof VMNIC
|
|
34
34
|
*/
|
|
35
35
|
index?: number;
|
|
36
|
+
/**
|
|
37
|
+
* IPv4 address of this NIC as reported by VMware Tools
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof VMNIC
|
|
40
|
+
*/
|
|
41
|
+
ipv4Address?: string;
|
|
42
|
+
/**
|
|
43
|
+
* IPv6 address of this NIC as reported by VMware Tools
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof VMNIC
|
|
46
|
+
*/
|
|
47
|
+
ipv6Address?: string;
|
|
36
48
|
}
|
|
37
49
|
/**
|
|
38
50
|
* Check if a given object implements the VMNIC interface.
|
package/dist/models/VMNIC.js
CHANGED
|
@@ -35,6 +35,8 @@ function VMNICFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
35
35
|
'mac': json['mac'] == null ? undefined : json['mac'],
|
|
36
36
|
'network': json['network'] == null ? undefined : json['network'],
|
|
37
37
|
'index': json['index'] == null ? undefined : json['index'],
|
|
38
|
+
'ipv4Address': json['ipv4Address'] == null ? undefined : json['ipv4Address'],
|
|
39
|
+
'ipv6Address': json['ipv6Address'] == null ? undefined : json['ipv6Address'],
|
|
38
40
|
};
|
|
39
41
|
}
|
|
40
42
|
function VMNICToJSON(json) {
|
|
@@ -48,5 +50,7 @@ function VMNICToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
48
50
|
'mac': value['mac'],
|
|
49
51
|
'network': value['network'],
|
|
50
52
|
'index': value['index'],
|
|
53
|
+
'ipv4Address': value['ipv4Address'],
|
|
54
|
+
'ipv6Address': value['ipv6Address'],
|
|
51
55
|
};
|
|
52
56
|
}
|
|
@@ -33,6 +33,18 @@ export interface VcenterCredentials {
|
|
|
33
33
|
* @memberof VcenterCredentials
|
|
34
34
|
*/
|
|
35
35
|
password: string;
|
|
36
|
+
/**
|
|
37
|
+
* PEM-encoded CA certificate bundle for verifying the vCenter TLS certificate. Mutually exclusive with skipTls.
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof VcenterCredentials
|
|
40
|
+
*/
|
|
41
|
+
cacert?: string;
|
|
42
|
+
/**
|
|
43
|
+
* When true, TLS certificate verification is skipped. Must not be set to true alongside cacert — that combination returns 400. When omitted: if cacert is absent the connection skips TLS verification (backwards compatibility); if cacert is provided the connection verifies TLS using that certificate — skipTls need not be sent.
|
|
44
|
+
* @type {boolean}
|
|
45
|
+
* @memberof VcenterCredentials
|
|
46
|
+
*/
|
|
47
|
+
skipTls?: boolean;
|
|
36
48
|
}
|
|
37
49
|
/**
|
|
38
50
|
* Check if a given object implements the VcenterCredentials interface.
|
|
@@ -41,6 +41,8 @@ function VcenterCredentialsFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
41
41
|
'url': json['url'],
|
|
42
42
|
'username': json['username'],
|
|
43
43
|
'password': json['password'],
|
|
44
|
+
'cacert': json['cacert'] == null ? undefined : json['cacert'],
|
|
45
|
+
'skipTls': json['skipTls'] == null ? undefined : json['skipTls'],
|
|
44
46
|
};
|
|
45
47
|
}
|
|
46
48
|
function VcenterCredentialsToJSON(json) {
|
|
@@ -54,5 +56,7 @@ function VcenterCredentialsToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
54
56
|
'url': value['url'],
|
|
55
57
|
'username': value['username'],
|
|
56
58
|
'password': value['password'],
|
|
59
|
+
'cacert': value['cacert'],
|
|
60
|
+
'skipTls': value['skipTls'],
|
|
57
61
|
};
|
|
58
62
|
}
|
|
@@ -95,11 +95,11 @@ export interface VirtualMachine {
|
|
|
95
95
|
*/
|
|
96
96
|
inspectionConcernCount?: number;
|
|
97
97
|
/**
|
|
98
|
-
*
|
|
98
|
+
* Names of groups this VM matches
|
|
99
99
|
* @type {Array<string>}
|
|
100
100
|
* @memberof VirtualMachine
|
|
101
101
|
*/
|
|
102
|
-
|
|
102
|
+
groups?: Array<string>;
|
|
103
103
|
/**
|
|
104
104
|
* User-defined labels for this VM
|
|
105
105
|
* @type {Array<string>}
|
|
@@ -118,6 +118,18 @@ export interface VirtualMachine {
|
|
|
118
118
|
* @memberof VirtualMachine
|
|
119
119
|
*/
|
|
120
120
|
utilization_mem_p95?: number;
|
|
121
|
+
/**
|
|
122
|
+
* CPU utilization at max (%); absent when no utilization data
|
|
123
|
+
* @type {number}
|
|
124
|
+
* @memberof VirtualMachine
|
|
125
|
+
*/
|
|
126
|
+
utilization_cpu_max?: number;
|
|
127
|
+
/**
|
|
128
|
+
* Memory utilization at max (%); absent when no utilization data
|
|
129
|
+
* @type {number}
|
|
130
|
+
* @memberof VirtualMachine
|
|
131
|
+
*/
|
|
132
|
+
utilization_mem_max?: number;
|
|
121
133
|
/**
|
|
122
134
|
* Disk utilization (%); absent when no utilization data
|
|
123
135
|
* @type {number}
|
|
@@ -62,10 +62,12 @@ function VirtualMachineFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
62
62
|
'migrationExcluded': json['migrationExcluded'] == null ? undefined : json['migrationExcluded'],
|
|
63
63
|
'inspectionStatus': json['inspectionStatus'] == null ? undefined : (0, VmInspectionStatus_js_1.VmInspectionStatusFromJSON)(json['inspectionStatus']),
|
|
64
64
|
'inspectionConcernCount': json['inspectionConcernCount'] == null ? undefined : json['inspectionConcernCount'],
|
|
65
|
-
'
|
|
65
|
+
'groups': json['groups'] == null ? undefined : json['groups'],
|
|
66
66
|
'labels': json['labels'] == null ? undefined : json['labels'],
|
|
67
67
|
'utilization_cpu_p95': json['utilization_cpu_p95'] == null ? undefined : json['utilization_cpu_p95'],
|
|
68
68
|
'utilization_mem_p95': json['utilization_mem_p95'] == null ? undefined : json['utilization_mem_p95'],
|
|
69
|
+
'utilization_cpu_max': json['utilization_cpu_max'] == null ? undefined : json['utilization_cpu_max'],
|
|
70
|
+
'utilization_mem_max': json['utilization_mem_max'] == null ? undefined : json['utilization_mem_max'],
|
|
69
71
|
'utilization_disk': json['utilization_disk'] == null ? undefined : json['utilization_disk'],
|
|
70
72
|
'utilization_confidence': json['utilization_confidence'] == null ? undefined : json['utilization_confidence'],
|
|
71
73
|
};
|
|
@@ -91,10 +93,12 @@ function VirtualMachineToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
91
93
|
'migrationExcluded': value['migrationExcluded'],
|
|
92
94
|
'inspectionStatus': (0, VmInspectionStatus_js_1.VmInspectionStatusToJSON)(value['inspectionStatus']),
|
|
93
95
|
'inspectionConcernCount': value['inspectionConcernCount'],
|
|
94
|
-
'
|
|
96
|
+
'groups': value['groups'],
|
|
95
97
|
'labels': value['labels'],
|
|
96
98
|
'utilization_cpu_p95': value['utilization_cpu_p95'],
|
|
97
99
|
'utilization_mem_p95': value['utilization_mem_p95'],
|
|
100
|
+
'utilization_cpu_max': value['utilization_cpu_max'],
|
|
101
|
+
'utilization_mem_max': value['utilization_mem_max'],
|
|
98
102
|
'utilization_disk': value['utilization_disk'],
|
|
99
103
|
'utilization_confidence': value['utilization_confidence'],
|
|
100
104
|
};
|
|
@@ -21,6 +21,12 @@ export interface VmInspectionStatus {
|
|
|
21
21
|
* @memberof VmInspectionStatus
|
|
22
22
|
*/
|
|
23
23
|
state: VmInspectionStatusStateEnum;
|
|
24
|
+
/**
|
|
25
|
+
* State details
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof VmInspectionStatus
|
|
28
|
+
*/
|
|
29
|
+
message: string;
|
|
24
30
|
/**
|
|
25
31
|
* Error message when state is error
|
|
26
32
|
* @type {string}
|
|
@@ -35,6 +35,8 @@ exports.VmInspectionStatusStateEnum = {
|
|
|
35
35
|
function instanceOfVmInspectionStatus(value) {
|
|
36
36
|
if (!('state' in value) || value['state'] === undefined)
|
|
37
37
|
return false;
|
|
38
|
+
if (!('message' in value) || value['message'] === undefined)
|
|
39
|
+
return false;
|
|
38
40
|
return true;
|
|
39
41
|
}
|
|
40
42
|
function VmInspectionStatusFromJSON(json) {
|
|
@@ -46,6 +48,7 @@ function VmInspectionStatusFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
46
48
|
}
|
|
47
49
|
return {
|
|
48
50
|
'state': json['state'],
|
|
51
|
+
'message': json['message'],
|
|
49
52
|
'error': json['error'] == null ? undefined : json['error'],
|
|
50
53
|
'results': json['results'] == null ? undefined : json['results'],
|
|
51
54
|
};
|
|
@@ -59,6 +62,7 @@ function VmInspectionStatusToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
59
62
|
}
|
|
60
63
|
return {
|
|
61
64
|
'state': value['state'],
|
|
65
|
+
'message': value['message'],
|
|
62
66
|
'error': value['error'],
|
|
63
67
|
'results': value['results'],
|
|
64
68
|
};
|
package/dist/models/index.d.ts
CHANGED
|
@@ -1,10 +1,15 @@
|
|
|
1
1
|
export * from './AgentModeRequest.js';
|
|
2
2
|
export * from './AgentStatus.js';
|
|
3
|
+
export * from './ApplicationListResponse.js';
|
|
4
|
+
export * from './ApplicationOverview.js';
|
|
5
|
+
export * from './ApplicationVM.js';
|
|
3
6
|
export * from './BenchmarkRun.js';
|
|
4
7
|
export * from './ClusterFeatures.js';
|
|
8
|
+
export * from './ClusterUtilization.js';
|
|
5
9
|
export * from './CollectorStartRequest.js';
|
|
6
10
|
export * from './CollectorStatus.js';
|
|
7
11
|
export * from './CreateGroupRequest.js';
|
|
12
|
+
export * from './CredentialStatus.js';
|
|
8
13
|
export * from './Datastore.js';
|
|
9
14
|
export * from './DatastoreDetail.js';
|
|
10
15
|
export * from './DatastorePair.js';
|
|
@@ -51,6 +56,7 @@ export * from './UpdateLabelVMsRequest.js';
|
|
|
51
56
|
export * from './VCenter.js';
|
|
52
57
|
export * from './VMDevice.js';
|
|
53
58
|
export * from './VMDisk.js';
|
|
59
|
+
export * from './VMFilterOptionsResponse.js';
|
|
54
60
|
export * from './VMIssue.js';
|
|
55
61
|
export * from './VMLabelsResponse.js';
|
|
56
62
|
export * from './VMNIC.js';
|
package/dist/models/index.js
CHANGED
|
@@ -18,11 +18,16 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
18
18
|
/* eslint-disable */
|
|
19
19
|
__exportStar(require("./AgentModeRequest.js"), exports);
|
|
20
20
|
__exportStar(require("./AgentStatus.js"), exports);
|
|
21
|
+
__exportStar(require("./ApplicationListResponse.js"), exports);
|
|
22
|
+
__exportStar(require("./ApplicationOverview.js"), exports);
|
|
23
|
+
__exportStar(require("./ApplicationVM.js"), exports);
|
|
21
24
|
__exportStar(require("./BenchmarkRun.js"), exports);
|
|
22
25
|
__exportStar(require("./ClusterFeatures.js"), exports);
|
|
26
|
+
__exportStar(require("./ClusterUtilization.js"), exports);
|
|
23
27
|
__exportStar(require("./CollectorStartRequest.js"), exports);
|
|
24
28
|
__exportStar(require("./CollectorStatus.js"), exports);
|
|
25
29
|
__exportStar(require("./CreateGroupRequest.js"), exports);
|
|
30
|
+
__exportStar(require("./CredentialStatus.js"), exports);
|
|
26
31
|
__exportStar(require("./Datastore.js"), exports);
|
|
27
32
|
__exportStar(require("./DatastoreDetail.js"), exports);
|
|
28
33
|
__exportStar(require("./DatastorePair.js"), exports);
|
|
@@ -69,6 +74,7 @@ __exportStar(require("./UpdateLabelVMsRequest.js"), exports);
|
|
|
69
74
|
__exportStar(require("./VCenter.js"), exports);
|
|
70
75
|
__exportStar(require("./VMDevice.js"), exports);
|
|
71
76
|
__exportStar(require("./VMDisk.js"), exports);
|
|
77
|
+
__exportStar(require("./VMFilterOptionsResponse.js"), exports);
|
|
72
78
|
__exportStar(require("./VMIssue.js"), exports);
|
|
73
79
|
__exportStar(require("./VMLabelsResponse.js"), exports);
|
|
74
80
|
__exportStar(require("./VMNIC.js"), exports);
|
package/dist/runtime.js
CHANGED
|
@@ -309,8 +309,9 @@ function mapValues(data, fn) {
|
|
|
309
309
|
return result;
|
|
310
310
|
}
|
|
311
311
|
function canConsumeForm(consumes) {
|
|
312
|
+
var _a;
|
|
312
313
|
for (const consume of consumes) {
|
|
313
|
-
if ('multipart/form-data'
|
|
314
|
+
if (((_a = consume.contentType) === null || _a === void 0 ? void 0 : _a.startsWith('multipart/form-data')) == true) {
|
|
314
315
|
return true;
|
|
315
316
|
}
|
|
316
317
|
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
|
|
2
|
+
# ApplicationListResponse
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`applications` | [Array<ApplicationOverview>](ApplicationOverview.md)
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import type { ApplicationListResponse } from '@openshift-migration-advisor/agent-sdk'
|
|
15
|
+
|
|
16
|
+
// TODO: Update the object below with actual values
|
|
17
|
+
const example = {
|
|
18
|
+
"applications": null,
|
|
19
|
+
} satisfies ApplicationListResponse
|
|
20
|
+
|
|
21
|
+
console.log(example)
|
|
22
|
+
|
|
23
|
+
// Convert the instance to a JSON string
|
|
24
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
25
|
+
console.log(exampleJSON)
|
|
26
|
+
|
|
27
|
+
// Parse the JSON string back to an object
|
|
28
|
+
const exampleParsed = JSON.parse(exampleJSON) as ApplicationListResponse
|
|
29
|
+
console.log(exampleParsed)
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
33
|
+
|
|
34
|
+
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
|
|
2
|
+
# ApplicationOverview
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`name` | string
|
|
10
|
+
`description` | string
|
|
11
|
+
`vmCount` | number
|
|
12
|
+
`vms` | [Array<ApplicationVM>](ApplicationVM.md)
|
|
13
|
+
|
|
14
|
+
## Example
|
|
15
|
+
|
|
16
|
+
```typescript
|
|
17
|
+
import type { ApplicationOverview } from '@openshift-migration-advisor/agent-sdk'
|
|
18
|
+
|
|
19
|
+
// TODO: Update the object below with actual values
|
|
20
|
+
const example = {
|
|
21
|
+
"name": null,
|
|
22
|
+
"description": null,
|
|
23
|
+
"vmCount": null,
|
|
24
|
+
"vms": null,
|
|
25
|
+
} satisfies ApplicationOverview
|
|
26
|
+
|
|
27
|
+
console.log(example)
|
|
28
|
+
|
|
29
|
+
// Convert the instance to a JSON string
|
|
30
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
31
|
+
console.log(exampleJSON)
|
|
32
|
+
|
|
33
|
+
// Parse the JSON string back to an object
|
|
34
|
+
const exampleParsed = JSON.parse(exampleJSON) as ApplicationOverview
|
|
35
|
+
console.log(exampleParsed)
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
39
|
+
|
|
40
|
+
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
|
|
2
|
+
# ApplicationVM
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`id` | string
|
|
10
|
+
`name` | string
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import type { ApplicationVM } from '@openshift-migration-advisor/agent-sdk'
|
|
16
|
+
|
|
17
|
+
// TODO: Update the object below with actual values
|
|
18
|
+
const example = {
|
|
19
|
+
"id": null,
|
|
20
|
+
"name": null,
|
|
21
|
+
} satisfies ApplicationVM
|
|
22
|
+
|
|
23
|
+
console.log(example)
|
|
24
|
+
|
|
25
|
+
// Convert the instance to a JSON string
|
|
26
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
27
|
+
console.log(exampleJSON)
|
|
28
|
+
|
|
29
|
+
// Parse the JSON string back to an object
|
|
30
|
+
const exampleParsed = JSON.parse(exampleJSON) as ApplicationVM
|
|
31
|
+
console.log(exampleParsed)
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
35
|
+
|
|
36
|
+
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
|
|
2
|
+
# ClusterUtilization
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`cpu_avg` | number
|
|
10
|
+
`cpu_p95` | number
|
|
11
|
+
`cpu_max` | number
|
|
12
|
+
`mem_avg` | number
|
|
13
|
+
`mem_p95` | number
|
|
14
|
+
`mem_max` | number
|
|
15
|
+
`confidence` | number
|
|
16
|
+
|
|
17
|
+
## Example
|
|
18
|
+
|
|
19
|
+
```typescript
|
|
20
|
+
import type { ClusterUtilization } from '@openshift-migration-advisor/agent-sdk'
|
|
21
|
+
|
|
22
|
+
// TODO: Update the object below with actual values
|
|
23
|
+
const example = {
|
|
24
|
+
"cpu_avg": null,
|
|
25
|
+
"cpu_p95": null,
|
|
26
|
+
"cpu_max": null,
|
|
27
|
+
"mem_avg": null,
|
|
28
|
+
"mem_p95": null,
|
|
29
|
+
"mem_max": null,
|
|
30
|
+
"confidence": null,
|
|
31
|
+
} satisfies ClusterUtilization
|
|
32
|
+
|
|
33
|
+
console.log(example)
|
|
34
|
+
|
|
35
|
+
// Convert the instance to a JSON string
|
|
36
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
37
|
+
console.log(exampleJSON)
|
|
38
|
+
|
|
39
|
+
// Parse the JSON string back to an object
|
|
40
|
+
const exampleParsed = JSON.parse(exampleJSON) as ClusterUtilization
|
|
41
|
+
console.log(exampleParsed)
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
45
|
+
|
|
46
|
+
|
|
@@ -9,6 +9,8 @@ Name | Type
|
|
|
9
9
|
`url` | string
|
|
10
10
|
`username` | string
|
|
11
11
|
`password` | string
|
|
12
|
+
`cacert` | string
|
|
13
|
+
`skipTls` | boolean
|
|
12
14
|
|
|
13
15
|
## Example
|
|
14
16
|
|
|
@@ -20,6 +22,8 @@ const example = {
|
|
|
20
22
|
"url": null,
|
|
21
23
|
"username": null,
|
|
22
24
|
"password": null,
|
|
25
|
+
"cacert": null,
|
|
26
|
+
"skipTls": null,
|
|
23
27
|
} satisfies CollectorStartRequest
|
|
24
28
|
|
|
25
29
|
console.log(example)
|
|
@@ -9,7 +9,6 @@ Name | Type
|
|
|
9
9
|
`name` | string
|
|
10
10
|
`description` | string
|
|
11
11
|
`filter` | string
|
|
12
|
-
`tags` | Array<string>
|
|
13
12
|
|
|
14
13
|
## Example
|
|
15
14
|
|
|
@@ -21,7 +20,6 @@ const example = {
|
|
|
21
20
|
"name": null,
|
|
22
21
|
"description": null,
|
|
23
22
|
"filter": null,
|
|
24
|
-
"tags": null,
|
|
25
23
|
} satisfies CreateGroupRequest
|
|
26
24
|
|
|
27
25
|
console.log(example)
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
|
|
2
|
+
# CredentialStatus
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`url` | string
|
|
10
|
+
`valid` | boolean
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import type { CredentialStatus } from '@openshift-migration-advisor/agent-sdk'
|
|
16
|
+
|
|
17
|
+
// TODO: Update the object below with actual values
|
|
18
|
+
const example = {
|
|
19
|
+
"url": null,
|
|
20
|
+
"valid": null,
|
|
21
|
+
} satisfies CredentialStatus
|
|
22
|
+
|
|
23
|
+
console.log(example)
|
|
24
|
+
|
|
25
|
+
// Convert the instance to a JSON string
|
|
26
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
27
|
+
console.log(exampleJSON)
|
|
28
|
+
|
|
29
|
+
// Parse the JSON string back to an object
|
|
30
|
+
const exampleParsed = JSON.parse(exampleJSON) as CredentialStatus
|
|
31
|
+
console.log(exampleParsed)
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
35
|
+
|
|
36
|
+
|