@openshift-migration-advisor/agent-sdk 0.8.0 → 0.12.0-d4bdc4301890
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 +20 -2
- package/.openapi-generator/VERSION +1 -1
- package/README.md +29 -17
- package/dist/apis/DefaultApi.d.ts +260 -130
- package/dist/apis/DefaultApi.js +313 -172
- package/dist/esm/apis/DefaultApi.d.ts +260 -130
- package/dist/esm/apis/DefaultApi.js +295 -154
- package/dist/esm/models/InspectorStatus.d.ts +20 -7
- package/dist/esm/models/InspectorStatus.js +12 -7
- package/dist/esm/models/RightsizingCollectRequest.d.ts +70 -0
- package/dist/esm/models/RightsizingCollectRequest.js +56 -0
- package/dist/esm/models/RightsizingMetricStats.d.ts +62 -0
- package/dist/esm/models/RightsizingMetricStats.js +63 -0
- package/dist/esm/models/RightsizingReport.d.ts +81 -0
- package/dist/esm/models/RightsizingReport.js +76 -0
- package/dist/esm/models/RightsizingReportListResponse.d.ts +39 -0
- package/dist/esm/models/RightsizingReportListResponse.js +48 -0
- package/dist/esm/models/RightsizingReportSummary.d.ts +74 -0
- package/dist/esm/models/RightsizingReportSummary.js +71 -0
- package/dist/esm/models/RightsizingVMReport.d.ts +53 -0
- package/dist/esm/models/RightsizingVMReport.js +57 -0
- package/dist/esm/models/StartInspectionRequest.d.ts +32 -0
- package/dist/esm/models/StartInspectionRequest.js +43 -0
- package/dist/esm/models/VMs.d.ts +18 -0
- package/dist/esm/models/VMs.js +4 -0
- package/dist/esm/models/VirtualMachine.d.ts +31 -1
- package/dist/esm/models/VirtualMachine.js +12 -4
- package/dist/esm/models/VirtualMachineDetail.d.ts +3 -3
- package/dist/esm/models/VirtualMachineDetail.js +3 -3
- package/dist/esm/models/VmInspectionConcern.d.ts +44 -0
- package/dist/esm/models/VmInspectionConcern.js +51 -0
- package/dist/esm/models/VmInspectionResults.d.ts +33 -0
- package/dist/esm/models/VmInspectionResults.js +42 -0
- package/dist/esm/models/VmInspectionStatus.d.ts +0 -1
- package/dist/esm/models/VmInspectionStatus.js +1 -2
- package/dist/esm/models/VmUtilizationDetails.d.ts +98 -0
- package/dist/esm/models/VmUtilizationDetails.js +87 -0
- package/dist/esm/models/index.d.ts +10 -1
- package/dist/esm/models/index.js +10 -1
- package/dist/esm/runtime.js +1 -1
- package/dist/models/InspectorStatus.d.ts +20 -7
- package/dist/models/InspectorStatus.js +12 -7
- package/dist/models/RightsizingCollectRequest.d.ts +70 -0
- package/dist/models/RightsizingCollectRequest.js +63 -0
- package/dist/models/RightsizingMetricStats.d.ts +62 -0
- package/dist/models/RightsizingMetricStats.js +70 -0
- package/dist/models/RightsizingReport.d.ts +81 -0
- package/dist/models/RightsizingReport.js +83 -0
- package/dist/models/RightsizingReportListResponse.d.ts +39 -0
- package/dist/models/RightsizingReportListResponse.js +55 -0
- package/dist/models/RightsizingReportSummary.d.ts +74 -0
- package/dist/models/RightsizingReportSummary.js +78 -0
- package/dist/models/RightsizingVMReport.d.ts +53 -0
- package/dist/models/RightsizingVMReport.js +64 -0
- package/dist/models/StartInspectionRequest.d.ts +32 -0
- package/dist/models/StartInspectionRequest.js +50 -0
- package/dist/models/VMs.d.ts +18 -0
- package/dist/models/VMs.js +4 -0
- package/dist/models/VirtualMachine.d.ts +31 -1
- package/dist/models/VirtualMachine.js +12 -4
- package/dist/models/VirtualMachineDetail.d.ts +3 -3
- package/dist/models/VirtualMachineDetail.js +3 -3
- package/dist/models/VmInspectionConcern.d.ts +44 -0
- package/dist/models/VmInspectionConcern.js +58 -0
- package/dist/models/VmInspectionResults.d.ts +33 -0
- package/dist/models/VmInspectionResults.js +49 -0
- package/dist/models/VmInspectionStatus.d.ts +0 -1
- package/dist/models/VmInspectionStatus.js +1 -2
- package/dist/models/VmUtilizationDetails.d.ts +98 -0
- package/dist/models/VmUtilizationDetails.js +94 -0
- package/dist/models/index.d.ts +10 -1
- package/dist/models/index.js +10 -1
- package/dist/runtime.js +1 -1
- package/docs/DefaultApi.md +368 -163
- package/docs/InspectorStatus.md +4 -0
- package/docs/RightsizingCollectRequest.md +46 -0
- package/docs/RightsizingMetricStats.md +44 -0
- package/docs/RightsizingReport.md +50 -0
- package/docs/RightsizingReportListResponse.md +36 -0
- package/docs/RightsizingReportSummary.md +49 -0
- package/docs/RightsizingVMReport.md +40 -0
- package/docs/{InspectorStartRequest.md → StartInspectionRequest.md} +5 -6
- package/docs/VMs.md +4 -0
- package/docs/VirtualMachine.md +12 -2
- package/docs/VirtualMachineDetail.md +1 -1
- package/docs/VmInspectionConcern.md +39 -0
- package/docs/VmInspectionResults.md +35 -0
- package/docs/VmUtilizationDetails.md +56 -0
- package/package.json +1 -1
- package/src/apis/DefaultApi.ts +564 -285
- package/src/models/InspectorStatus.ts +37 -7
- package/src/models/RightsizingCollectRequest.ts +123 -0
- package/src/models/RightsizingMetricStats.ts +111 -0
- package/src/models/RightsizingReport.ts +146 -0
- package/src/models/RightsizingReportListResponse.ts +83 -0
- package/src/models/RightsizingReportSummary.ts +129 -0
- package/src/models/RightsizingVMReport.ts +101 -0
- package/src/models/StartInspectionRequest.ts +66 -0
- package/src/models/VMs.ts +18 -0
- package/src/models/VirtualMachine.ts +43 -4
- package/src/models/VirtualMachineDetail.ts +11 -11
- package/src/models/VmInspectionConcern.ts +84 -0
- package/src/models/VmInspectionResults.ts +73 -0
- package/src/models/VmInspectionStatus.ts +1 -2
- package/src/models/VmUtilizationDetails.ts +165 -0
- package/src/models/index.ts +10 -1
- package/src/runtime.ts +1 -2
- 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
|
@@ -0,0 +1,98 @@
|
|
|
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 VmUtilizationDetails
|
|
16
|
+
*/
|
|
17
|
+
export interface VmUtilizationDetails {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof VmUtilizationDetails
|
|
22
|
+
*/
|
|
23
|
+
moid: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof VmUtilizationDetails
|
|
28
|
+
*/
|
|
29
|
+
vmName: string;
|
|
30
|
+
/**
|
|
31
|
+
* CPU utilization average (%)
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof VmUtilizationDetails
|
|
34
|
+
*/
|
|
35
|
+
cpuAvg: number;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof VmUtilizationDetails
|
|
40
|
+
*/
|
|
41
|
+
cpuP95: number;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {number}
|
|
45
|
+
* @memberof VmUtilizationDetails
|
|
46
|
+
*/
|
|
47
|
+
cpuMax: number;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {number}
|
|
51
|
+
* @memberof VmUtilizationDetails
|
|
52
|
+
*/
|
|
53
|
+
cpuLatest: number;
|
|
54
|
+
/**
|
|
55
|
+
* Memory utilization average (%)
|
|
56
|
+
* @type {number}
|
|
57
|
+
* @memberof VmUtilizationDetails
|
|
58
|
+
*/
|
|
59
|
+
memAvg: number;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @type {number}
|
|
63
|
+
* @memberof VmUtilizationDetails
|
|
64
|
+
*/
|
|
65
|
+
memP95: number;
|
|
66
|
+
/**
|
|
67
|
+
*
|
|
68
|
+
* @type {number}
|
|
69
|
+
* @memberof VmUtilizationDetails
|
|
70
|
+
*/
|
|
71
|
+
memMax: number;
|
|
72
|
+
/**
|
|
73
|
+
*
|
|
74
|
+
* @type {number}
|
|
75
|
+
* @memberof VmUtilizationDetails
|
|
76
|
+
*/
|
|
77
|
+
memLatest: number;
|
|
78
|
+
/**
|
|
79
|
+
* Disk utilization (%)
|
|
80
|
+
* @type {number}
|
|
81
|
+
* @memberof VmUtilizationDetails
|
|
82
|
+
*/
|
|
83
|
+
disk: number;
|
|
84
|
+
/**
|
|
85
|
+
* Data confidence — sample_count / expected_sample_count × 100
|
|
86
|
+
* @type {number}
|
|
87
|
+
* @memberof VmUtilizationDetails
|
|
88
|
+
*/
|
|
89
|
+
confidence: number;
|
|
90
|
+
}
|
|
91
|
+
/**
|
|
92
|
+
* Check if a given object implements the VmUtilizationDetails interface.
|
|
93
|
+
*/
|
|
94
|
+
export declare function instanceOfVmUtilizationDetails(value: object): value is VmUtilizationDetails;
|
|
95
|
+
export declare function VmUtilizationDetailsFromJSON(json: any): VmUtilizationDetails;
|
|
96
|
+
export declare function VmUtilizationDetailsFromJSONTyped(json: any, ignoreDiscriminator: boolean): VmUtilizationDetails;
|
|
97
|
+
export declare function VmUtilizationDetailsToJSON(json: any): VmUtilizationDetails;
|
|
98
|
+
export declare function VmUtilizationDetailsToJSONTyped(value?: VmUtilizationDetails | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Assisted Migration Agent API
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: v1
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* Check if a given object implements the VmUtilizationDetails interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfVmUtilizationDetails(value) {
|
|
18
|
+
if (!('moid' in value) || value['moid'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
if (!('vmName' in value) || value['vmName'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
if (!('cpuAvg' in value) || value['cpuAvg'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
if (!('cpuP95' in value) || value['cpuP95'] === undefined)
|
|
25
|
+
return false;
|
|
26
|
+
if (!('cpuMax' in value) || value['cpuMax'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('cpuLatest' in value) || value['cpuLatest'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('memAvg' in value) || value['memAvg'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('memP95' in value) || value['memP95'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
if (!('memMax' in value) || value['memMax'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
if (!('memLatest' in value) || value['memLatest'] === undefined)
|
|
37
|
+
return false;
|
|
38
|
+
if (!('disk' in value) || value['disk'] === undefined)
|
|
39
|
+
return false;
|
|
40
|
+
if (!('confidence' in value) || value['confidence'] === undefined)
|
|
41
|
+
return false;
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
export function VmUtilizationDetailsFromJSON(json) {
|
|
45
|
+
return VmUtilizationDetailsFromJSONTyped(json, false);
|
|
46
|
+
}
|
|
47
|
+
export function VmUtilizationDetailsFromJSONTyped(json, ignoreDiscriminator) {
|
|
48
|
+
if (json == null) {
|
|
49
|
+
return json;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
'moid': json['moid'],
|
|
53
|
+
'vmName': json['vm_name'],
|
|
54
|
+
'cpuAvg': json['cpu_avg'],
|
|
55
|
+
'cpuP95': json['cpu_p95'],
|
|
56
|
+
'cpuMax': json['cpu_max'],
|
|
57
|
+
'cpuLatest': json['cpu_latest'],
|
|
58
|
+
'memAvg': json['mem_avg'],
|
|
59
|
+
'memP95': json['mem_p95'],
|
|
60
|
+
'memMax': json['mem_max'],
|
|
61
|
+
'memLatest': json['mem_latest'],
|
|
62
|
+
'disk': json['disk'],
|
|
63
|
+
'confidence': json['confidence'],
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
export function VmUtilizationDetailsToJSON(json) {
|
|
67
|
+
return VmUtilizationDetailsToJSONTyped(json, false);
|
|
68
|
+
}
|
|
69
|
+
export function VmUtilizationDetailsToJSONTyped(value, ignoreDiscriminator = false) {
|
|
70
|
+
if (value == null) {
|
|
71
|
+
return value;
|
|
72
|
+
}
|
|
73
|
+
return {
|
|
74
|
+
'moid': value['moid'],
|
|
75
|
+
'vm_name': value['vmName'],
|
|
76
|
+
'cpu_avg': value['cpuAvg'],
|
|
77
|
+
'cpu_p95': value['cpuP95'],
|
|
78
|
+
'cpu_max': value['cpuMax'],
|
|
79
|
+
'cpu_latest': value['cpuLatest'],
|
|
80
|
+
'mem_avg': value['memAvg'],
|
|
81
|
+
'mem_p95': value['memP95'],
|
|
82
|
+
'mem_max': value['memMax'],
|
|
83
|
+
'mem_latest': value['memLatest'],
|
|
84
|
+
'disk': value['disk'],
|
|
85
|
+
'confidence': value['confidence'],
|
|
86
|
+
};
|
|
87
|
+
}
|
|
@@ -14,13 +14,19 @@ export * from './GuestNetwork.js';
|
|
|
14
14
|
export * from './Histogram.js';
|
|
15
15
|
export * from './Host.js';
|
|
16
16
|
export * from './Infra.js';
|
|
17
|
-
export * from './InspectorStartRequest.js';
|
|
18
17
|
export * from './InspectorStatus.js';
|
|
19
18
|
export * from './Inventory.js';
|
|
20
19
|
export * from './InventoryData.js';
|
|
21
20
|
export * from './MigrationIssue.js';
|
|
22
21
|
export * from './Network.js';
|
|
23
22
|
export * from './OsInfo.js';
|
|
23
|
+
export * from './RightsizingCollectRequest.js';
|
|
24
|
+
export * from './RightsizingMetricStats.js';
|
|
25
|
+
export * from './RightsizingReport.js';
|
|
26
|
+
export * from './RightsizingReportListResponse.js';
|
|
27
|
+
export * from './RightsizingReportSummary.js';
|
|
28
|
+
export * from './RightsizingVMReport.js';
|
|
29
|
+
export * from './StartInspectionRequest.js';
|
|
24
30
|
export * from './UpdateGroupRequest.js';
|
|
25
31
|
export * from './UpdateInventory.js';
|
|
26
32
|
export * from './VCenter.js';
|
|
@@ -36,4 +42,7 @@ export * from './VersionInfo.js';
|
|
|
36
42
|
export * from './VirtualMachine.js';
|
|
37
43
|
export * from './VirtualMachineDetail.js';
|
|
38
44
|
export * from './VirtualMachineListResponse.js';
|
|
45
|
+
export * from './VmInspectionConcern.js';
|
|
46
|
+
export * from './VmInspectionResults.js';
|
|
39
47
|
export * from './VmInspectionStatus.js';
|
|
48
|
+
export * from './VmUtilizationDetails.js';
|
package/dist/esm/models/index.js
CHANGED
|
@@ -16,13 +16,19 @@ export * from './GuestNetwork.js';
|
|
|
16
16
|
export * from './Histogram.js';
|
|
17
17
|
export * from './Host.js';
|
|
18
18
|
export * from './Infra.js';
|
|
19
|
-
export * from './InspectorStartRequest.js';
|
|
20
19
|
export * from './InspectorStatus.js';
|
|
21
20
|
export * from './Inventory.js';
|
|
22
21
|
export * from './InventoryData.js';
|
|
23
22
|
export * from './MigrationIssue.js';
|
|
24
23
|
export * from './Network.js';
|
|
25
24
|
export * from './OsInfo.js';
|
|
25
|
+
export * from './RightsizingCollectRequest.js';
|
|
26
|
+
export * from './RightsizingMetricStats.js';
|
|
27
|
+
export * from './RightsizingReport.js';
|
|
28
|
+
export * from './RightsizingReportListResponse.js';
|
|
29
|
+
export * from './RightsizingReportSummary.js';
|
|
30
|
+
export * from './RightsizingVMReport.js';
|
|
31
|
+
export * from './StartInspectionRequest.js';
|
|
26
32
|
export * from './UpdateGroupRequest.js';
|
|
27
33
|
export * from './UpdateInventory.js';
|
|
28
34
|
export * from './VCenter.js';
|
|
@@ -38,4 +44,7 @@ export * from './VersionInfo.js';
|
|
|
38
44
|
export * from './VirtualMachine.js';
|
|
39
45
|
export * from './VirtualMachineDetail.js';
|
|
40
46
|
export * from './VirtualMachineListResponse.js';
|
|
47
|
+
export * from './VmInspectionConcern.js';
|
|
48
|
+
export * from './VmInspectionResults.js';
|
|
41
49
|
export * from './VmInspectionStatus.js';
|
|
50
|
+
export * from './VmUtilizationDetails.js';
|
package/dist/esm/runtime.js
CHANGED
|
@@ -210,7 +210,7 @@ export class BaseAPI {
|
|
|
210
210
|
return next;
|
|
211
211
|
}
|
|
212
212
|
}
|
|
213
|
-
BaseAPI.jsonRegex =
|
|
213
|
+
BaseAPI.jsonRegex = /^(:?application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(:?;.*)?$/i;
|
|
214
214
|
;
|
|
215
215
|
function isBlob(value) {
|
|
216
216
|
return typeof Blob !== 'undefined' && value instanceof Blob;
|
|
@@ -9,6 +9,8 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { VddkProperties } from './VddkProperties.js';
|
|
13
|
+
import type { VcenterCredentials } from './VcenterCredentials.js';
|
|
12
14
|
/**
|
|
13
15
|
*
|
|
14
16
|
* @export
|
|
@@ -21,6 +23,18 @@ export interface InspectorStatus {
|
|
|
21
23
|
* @memberof InspectorStatus
|
|
22
24
|
*/
|
|
23
25
|
state: InspectorStatusStateEnum;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {VcenterCredentials}
|
|
29
|
+
* @memberof InspectorStatus
|
|
30
|
+
*/
|
|
31
|
+
credentials?: VcenterCredentials;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @type {VddkProperties}
|
|
35
|
+
* @memberof InspectorStatus
|
|
36
|
+
*/
|
|
37
|
+
vddk?: VddkProperties;
|
|
24
38
|
/**
|
|
25
39
|
* Error message when state is error
|
|
26
40
|
* @type {string}
|
|
@@ -32,13 +46,12 @@ export interface InspectorStatus {
|
|
|
32
46
|
* @export
|
|
33
47
|
*/
|
|
34
48
|
export declare const InspectorStatusStateEnum: {
|
|
35
|
-
readonly
|
|
36
|
-
readonly
|
|
37
|
-
readonly
|
|
38
|
-
readonly
|
|
39
|
-
readonly
|
|
40
|
-
readonly
|
|
41
|
-
readonly InspectorStatusStateRunning: "error";
|
|
49
|
+
readonly InspectorStatusStateReady: "ready";
|
|
50
|
+
readonly InspectorStatusStateInitiating: "Initiating";
|
|
51
|
+
readonly InspectorStatusStateRunning: "running";
|
|
52
|
+
readonly InspectorStatusStateCanceled: "canceled";
|
|
53
|
+
readonly InspectorStatusStateCompleted: "completed";
|
|
54
|
+
readonly InspectorStatusStateError: "error";
|
|
42
55
|
};
|
|
43
56
|
export type InspectorStatusStateEnum = typeof InspectorStatusStateEnum[keyof typeof InspectorStatusStateEnum];
|
|
44
57
|
/**
|
|
@@ -19,17 +19,18 @@ exports.InspectorStatusFromJSON = InspectorStatusFromJSON;
|
|
|
19
19
|
exports.InspectorStatusFromJSONTyped = InspectorStatusFromJSONTyped;
|
|
20
20
|
exports.InspectorStatusToJSON = InspectorStatusToJSON;
|
|
21
21
|
exports.InspectorStatusToJSONTyped = InspectorStatusToJSONTyped;
|
|
22
|
+
const VddkProperties_js_1 = require("./VddkProperties.js");
|
|
23
|
+
const VcenterCredentials_js_1 = require("./VcenterCredentials.js");
|
|
22
24
|
/**
|
|
23
25
|
* @export
|
|
24
26
|
*/
|
|
25
27
|
exports.InspectorStatusStateEnum = {
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
InspectorStatusStateRunning: 'error'
|
|
28
|
+
InspectorStatusStateReady: 'ready',
|
|
29
|
+
InspectorStatusStateInitiating: 'Initiating',
|
|
30
|
+
InspectorStatusStateRunning: 'running',
|
|
31
|
+
InspectorStatusStateCanceled: 'canceled',
|
|
32
|
+
InspectorStatusStateCompleted: 'completed',
|
|
33
|
+
InspectorStatusStateError: 'error'
|
|
33
34
|
};
|
|
34
35
|
/**
|
|
35
36
|
* Check if a given object implements the InspectorStatus interface.
|
|
@@ -48,6 +49,8 @@ function InspectorStatusFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
48
49
|
}
|
|
49
50
|
return {
|
|
50
51
|
'state': json['state'],
|
|
52
|
+
'credentials': json['credentials'] == null ? undefined : (0, VcenterCredentials_js_1.VcenterCredentialsFromJSON)(json['credentials']),
|
|
53
|
+
'vddk': json['vddk'] == null ? undefined : (0, VddkProperties_js_1.VddkPropertiesFromJSON)(json['vddk']),
|
|
51
54
|
'error': json['error'] == null ? undefined : json['error'],
|
|
52
55
|
};
|
|
53
56
|
}
|
|
@@ -60,6 +63,8 @@ function InspectorStatusToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
60
63
|
}
|
|
61
64
|
return {
|
|
62
65
|
'state': value['state'],
|
|
66
|
+
'credentials': (0, VcenterCredentials_js_1.VcenterCredentialsToJSON)(value['credentials']),
|
|
67
|
+
'vddk': (0, VddkProperties_js_1.VddkPropertiesToJSON)(value['vddk']),
|
|
63
68
|
'error': value['error'],
|
|
64
69
|
};
|
|
65
70
|
}
|
|
@@ -0,0 +1,70 @@
|
|
|
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
|
+
import type { VcenterCredentials } from './VcenterCredentials.js';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface RightsizingCollectRequest
|
|
17
|
+
*/
|
|
18
|
+
export interface RightsizingCollectRequest {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {VcenterCredentials}
|
|
22
|
+
* @memberof RightsizingCollectRequest
|
|
23
|
+
*/
|
|
24
|
+
credentials: VcenterCredentials;
|
|
25
|
+
/**
|
|
26
|
+
* Lookback window in hours (default 720 = 30 days)
|
|
27
|
+
* @type {number}
|
|
28
|
+
* @memberof RightsizingCollectRequest
|
|
29
|
+
*/
|
|
30
|
+
lookbackHours?: number;
|
|
31
|
+
/**
|
|
32
|
+
* vSphere historical interval ID in seconds (300=day, 1800=week, 7200=month)
|
|
33
|
+
* @type {number}
|
|
34
|
+
* @memberof RightsizingCollectRequest
|
|
35
|
+
*/
|
|
36
|
+
intervalId?: number;
|
|
37
|
+
/**
|
|
38
|
+
* Filter VMs by name substring
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof RightsizingCollectRequest
|
|
41
|
+
*/
|
|
42
|
+
nameFilter?: string;
|
|
43
|
+
/**
|
|
44
|
+
* MoRef value of a ClusterComputeResource to scope discovery (e.g. domain-c123)
|
|
45
|
+
* @type {string}
|
|
46
|
+
* @memberof RightsizingCollectRequest
|
|
47
|
+
*/
|
|
48
|
+
clusterId?: string;
|
|
49
|
+
/**
|
|
50
|
+
* Number of VMs per QueryPerf round-trip
|
|
51
|
+
* @type {number}
|
|
52
|
+
* @memberof RightsizingCollectRequest
|
|
53
|
+
*/
|
|
54
|
+
batchSize?: number;
|
|
55
|
+
/**
|
|
56
|
+
* If true, discover VMs live from vSphere. If false (default), use the VMs already stored in the local inventory.
|
|
57
|
+
*
|
|
58
|
+
* @type {boolean}
|
|
59
|
+
* @memberof RightsizingCollectRequest
|
|
60
|
+
*/
|
|
61
|
+
discoverVms?: boolean;
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* Check if a given object implements the RightsizingCollectRequest interface.
|
|
65
|
+
*/
|
|
66
|
+
export declare function instanceOfRightsizingCollectRequest(value: object): value is RightsizingCollectRequest;
|
|
67
|
+
export declare function RightsizingCollectRequestFromJSON(json: any): RightsizingCollectRequest;
|
|
68
|
+
export declare function RightsizingCollectRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): RightsizingCollectRequest;
|
|
69
|
+
export declare function RightsizingCollectRequestToJSON(json: any): RightsizingCollectRequest;
|
|
70
|
+
export declare function RightsizingCollectRequestToJSONTyped(value?: RightsizingCollectRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -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.instanceOfRightsizingCollectRequest = instanceOfRightsizingCollectRequest;
|
|
17
|
+
exports.RightsizingCollectRequestFromJSON = RightsizingCollectRequestFromJSON;
|
|
18
|
+
exports.RightsizingCollectRequestFromJSONTyped = RightsizingCollectRequestFromJSONTyped;
|
|
19
|
+
exports.RightsizingCollectRequestToJSON = RightsizingCollectRequestToJSON;
|
|
20
|
+
exports.RightsizingCollectRequestToJSONTyped = RightsizingCollectRequestToJSONTyped;
|
|
21
|
+
const VcenterCredentials_js_1 = require("./VcenterCredentials.js");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the RightsizingCollectRequest interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfRightsizingCollectRequest(value) {
|
|
26
|
+
if (!('credentials' in value) || value['credentials'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
return true;
|
|
29
|
+
}
|
|
30
|
+
function RightsizingCollectRequestFromJSON(json) {
|
|
31
|
+
return RightsizingCollectRequestFromJSONTyped(json, false);
|
|
32
|
+
}
|
|
33
|
+
function RightsizingCollectRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
34
|
+
if (json == null) {
|
|
35
|
+
return json;
|
|
36
|
+
}
|
|
37
|
+
return {
|
|
38
|
+
'credentials': (0, VcenterCredentials_js_1.VcenterCredentialsFromJSON)(json['credentials']),
|
|
39
|
+
'lookbackHours': json['lookback_hours'] == null ? undefined : json['lookback_hours'],
|
|
40
|
+
'intervalId': json['interval_id'] == null ? undefined : json['interval_id'],
|
|
41
|
+
'nameFilter': json['name_filter'] == null ? undefined : json['name_filter'],
|
|
42
|
+
'clusterId': json['cluster_id'] == null ? undefined : json['cluster_id'],
|
|
43
|
+
'batchSize': json['batch_size'] == null ? undefined : json['batch_size'],
|
|
44
|
+
'discoverVms': json['discover_vms'] == null ? undefined : json['discover_vms'],
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
function RightsizingCollectRequestToJSON(json) {
|
|
48
|
+
return RightsizingCollectRequestToJSONTyped(json, false);
|
|
49
|
+
}
|
|
50
|
+
function RightsizingCollectRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
51
|
+
if (value == null) {
|
|
52
|
+
return value;
|
|
53
|
+
}
|
|
54
|
+
return {
|
|
55
|
+
'credentials': (0, VcenterCredentials_js_1.VcenterCredentialsToJSON)(value['credentials']),
|
|
56
|
+
'lookback_hours': value['lookbackHours'],
|
|
57
|
+
'interval_id': value['intervalId'],
|
|
58
|
+
'name_filter': value['nameFilter'],
|
|
59
|
+
'cluster_id': value['clusterId'],
|
|
60
|
+
'batch_size': value['batchSize'],
|
|
61
|
+
'discover_vms': value['discoverVms'],
|
|
62
|
+
};
|
|
63
|
+
}
|
|
@@ -0,0 +1,62 @@
|
|
|
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 RightsizingMetricStats
|
|
16
|
+
*/
|
|
17
|
+
export interface RightsizingMetricStats {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof RightsizingMetricStats
|
|
22
|
+
*/
|
|
23
|
+
sampleCount: number;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof RightsizingMetricStats
|
|
28
|
+
*/
|
|
29
|
+
average: number;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof RightsizingMetricStats
|
|
34
|
+
*/
|
|
35
|
+
p95: number;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof RightsizingMetricStats
|
|
40
|
+
*/
|
|
41
|
+
p99: number;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {number}
|
|
45
|
+
* @memberof RightsizingMetricStats
|
|
46
|
+
*/
|
|
47
|
+
max: number;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {number}
|
|
51
|
+
* @memberof RightsizingMetricStats
|
|
52
|
+
*/
|
|
53
|
+
latest: number;
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* Check if a given object implements the RightsizingMetricStats interface.
|
|
57
|
+
*/
|
|
58
|
+
export declare function instanceOfRightsizingMetricStats(value: object): value is RightsizingMetricStats;
|
|
59
|
+
export declare function RightsizingMetricStatsFromJSON(json: any): RightsizingMetricStats;
|
|
60
|
+
export declare function RightsizingMetricStatsFromJSONTyped(json: any, ignoreDiscriminator: boolean): RightsizingMetricStats;
|
|
61
|
+
export declare function RightsizingMetricStatsToJSON(json: any): RightsizingMetricStats;
|
|
62
|
+
export declare function RightsizingMetricStatsToJSONTyped(value?: RightsizingMetricStats | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,70 @@
|
|
|
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.instanceOfRightsizingMetricStats = instanceOfRightsizingMetricStats;
|
|
17
|
+
exports.RightsizingMetricStatsFromJSON = RightsizingMetricStatsFromJSON;
|
|
18
|
+
exports.RightsizingMetricStatsFromJSONTyped = RightsizingMetricStatsFromJSONTyped;
|
|
19
|
+
exports.RightsizingMetricStatsToJSON = RightsizingMetricStatsToJSON;
|
|
20
|
+
exports.RightsizingMetricStatsToJSONTyped = RightsizingMetricStatsToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the RightsizingMetricStats interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfRightsizingMetricStats(value) {
|
|
25
|
+
if (!('sampleCount' in value) || value['sampleCount'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('average' in value) || value['average'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('p95' in value) || value['p95'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('p99' in value) || value['p99'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('max' in value) || value['max'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
if (!('latest' in value) || value['latest'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
return true;
|
|
38
|
+
}
|
|
39
|
+
function RightsizingMetricStatsFromJSON(json) {
|
|
40
|
+
return RightsizingMetricStatsFromJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
function RightsizingMetricStatsFromJSONTyped(json, ignoreDiscriminator) {
|
|
43
|
+
if (json == null) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'sampleCount': json['sample_count'],
|
|
48
|
+
'average': json['average'],
|
|
49
|
+
'p95': json['p95'],
|
|
50
|
+
'p99': json['p99'],
|
|
51
|
+
'max': json['max'],
|
|
52
|
+
'latest': json['latest'],
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
function RightsizingMetricStatsToJSON(json) {
|
|
56
|
+
return RightsizingMetricStatsToJSONTyped(json, false);
|
|
57
|
+
}
|
|
58
|
+
function RightsizingMetricStatsToJSONTyped(value, ignoreDiscriminator = false) {
|
|
59
|
+
if (value == null) {
|
|
60
|
+
return value;
|
|
61
|
+
}
|
|
62
|
+
return {
|
|
63
|
+
'sample_count': value['sampleCount'],
|
|
64
|
+
'average': value['average'],
|
|
65
|
+
'p95': value['p95'],
|
|
66
|
+
'p99': value['p99'],
|
|
67
|
+
'max': value['max'],
|
|
68
|
+
'latest': value['latest'],
|
|
69
|
+
};
|
|
70
|
+
}
|