@openshift-migration-advisor/agent-sdk 0.8.0 → 0.12.0-1f1dc16fb9e5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (190) hide show
  1. package/.openapi-generator/FILES +46 -2
  2. package/.openapi-generator/VERSION +1 -1
  3. package/README.md +52 -17
  4. package/dist/apis/DefaultApi.d.ts +632 -126
  5. package/dist/apis/DefaultApi.js +710 -160
  6. package/dist/esm/apis/DefaultApi.d.ts +632 -126
  7. package/dist/esm/apis/DefaultApi.js +724 -174
  8. package/dist/esm/models/BenchmarkRun.d.ts +104 -0
  9. package/dist/esm/models/BenchmarkRun.js +85 -0
  10. package/dist/esm/models/DatastoreDetail.d.ts +90 -0
  11. package/dist/esm/models/DatastoreDetail.js +74 -0
  12. package/dist/esm/models/DatastorePair.d.ts +50 -0
  13. package/dist/esm/models/DatastorePair.js +53 -0
  14. package/dist/esm/models/EstimateRange.d.ts +44 -0
  15. package/dist/esm/models/EstimateRange.js +45 -0
  16. package/dist/esm/models/ForecastStats.d.ts +87 -0
  17. package/dist/esm/models/ForecastStats.js +64 -0
  18. package/dist/esm/models/ForecasterDatastoresRequest.d.ts +33 -0
  19. package/dist/esm/models/ForecasterDatastoresRequest.js +42 -0
  20. package/dist/esm/models/ForecasterPairStatus.d.ts +98 -0
  21. package/dist/esm/models/ForecasterPairStatus.js +82 -0
  22. package/dist/esm/models/ForecasterStartRequest.d.ts +58 -0
  23. package/dist/esm/models/ForecasterStartRequest.js +53 -0
  24. package/dist/esm/models/ForecasterStatus.d.ts +47 -0
  25. package/dist/esm/models/ForecasterStatus.js +53 -0
  26. package/dist/esm/models/InspectorStatus.d.ts +20 -7
  27. package/dist/esm/models/InspectorStatus.js +12 -7
  28. package/dist/esm/models/PairCapability.d.ts +60 -0
  29. package/dist/esm/models/PairCapability.js +64 -0
  30. package/dist/esm/models/PairCapabilityRequest.d.ts +40 -0
  31. package/dist/esm/models/PairCapabilityRequest.js +47 -0
  32. package/dist/esm/models/PutForecasterCredentials403Response.d.ts +38 -0
  33. package/dist/esm/models/PutForecasterCredentials403Response.js +43 -0
  34. package/dist/esm/models/RightsizingCollectRequest.d.ts +70 -0
  35. package/dist/esm/models/RightsizingCollectRequest.js +56 -0
  36. package/dist/esm/models/RightsizingMetricStats.d.ts +62 -0
  37. package/dist/esm/models/RightsizingMetricStats.js +63 -0
  38. package/dist/esm/models/RightsizingReport.d.ts +81 -0
  39. package/dist/esm/models/RightsizingReport.js +76 -0
  40. package/dist/esm/models/RightsizingReportListResponse.d.ts +39 -0
  41. package/dist/esm/models/RightsizingReportListResponse.js +48 -0
  42. package/dist/esm/models/RightsizingReportSummary.d.ts +74 -0
  43. package/dist/esm/models/RightsizingReportSummary.js +71 -0
  44. package/dist/esm/models/RightsizingVMReport.d.ts +53 -0
  45. package/dist/esm/models/RightsizingVMReport.js +57 -0
  46. package/dist/esm/models/StartInspectionRequest.d.ts +32 -0
  47. package/dist/esm/models/StartInspectionRequest.js +43 -0
  48. package/dist/esm/models/StopForecasterPair202Response.d.ts +45 -0
  49. package/dist/esm/models/StopForecasterPair202Response.js +49 -0
  50. package/dist/esm/models/VMs.d.ts +18 -0
  51. package/dist/esm/models/VMs.js +4 -0
  52. package/dist/esm/models/VirtualMachine.d.ts +31 -1
  53. package/dist/esm/models/VirtualMachine.js +12 -4
  54. package/dist/esm/models/VirtualMachineDetail.d.ts +3 -3
  55. package/dist/esm/models/VirtualMachineDetail.js +3 -3
  56. package/dist/esm/models/VmInspectionConcern.d.ts +44 -0
  57. package/dist/esm/models/VmInspectionConcern.js +51 -0
  58. package/dist/esm/models/VmInspectionResults.d.ts +33 -0
  59. package/dist/esm/models/VmInspectionResults.js +42 -0
  60. package/dist/esm/models/VmInspectionStatus.d.ts +0 -1
  61. package/dist/esm/models/VmInspectionStatus.js +1 -2
  62. package/dist/esm/models/VmUtilizationDetails.d.ts +98 -0
  63. package/dist/esm/models/VmUtilizationDetails.js +87 -0
  64. package/dist/esm/models/index.d.ts +23 -1
  65. package/dist/esm/models/index.js +23 -1
  66. package/dist/esm/runtime.js +1 -1
  67. package/dist/models/BenchmarkRun.d.ts +104 -0
  68. package/dist/models/BenchmarkRun.js +92 -0
  69. package/dist/models/DatastoreDetail.d.ts +90 -0
  70. package/dist/models/DatastoreDetail.js +82 -0
  71. package/dist/models/DatastorePair.d.ts +50 -0
  72. package/dist/models/DatastorePair.js +60 -0
  73. package/dist/models/EstimateRange.d.ts +44 -0
  74. package/dist/models/EstimateRange.js +52 -0
  75. package/dist/models/ForecastStats.d.ts +87 -0
  76. package/dist/models/ForecastStats.js +71 -0
  77. package/dist/models/ForecasterDatastoresRequest.d.ts +33 -0
  78. package/dist/models/ForecasterDatastoresRequest.js +49 -0
  79. package/dist/models/ForecasterPairStatus.d.ts +98 -0
  80. package/dist/models/ForecasterPairStatus.js +90 -0
  81. package/dist/models/ForecasterStartRequest.d.ts +58 -0
  82. package/dist/models/ForecasterStartRequest.js +60 -0
  83. package/dist/models/ForecasterStatus.d.ts +47 -0
  84. package/dist/models/ForecasterStatus.js +61 -0
  85. package/dist/models/InspectorStatus.d.ts +20 -7
  86. package/dist/models/InspectorStatus.js +12 -7
  87. package/dist/models/PairCapability.d.ts +60 -0
  88. package/dist/models/PairCapability.js +72 -0
  89. package/dist/models/PairCapabilityRequest.d.ts +40 -0
  90. package/dist/models/PairCapabilityRequest.js +54 -0
  91. package/dist/models/PutForecasterCredentials403Response.d.ts +38 -0
  92. package/dist/models/PutForecasterCredentials403Response.js +50 -0
  93. package/dist/models/RightsizingCollectRequest.d.ts +70 -0
  94. package/dist/models/RightsizingCollectRequest.js +63 -0
  95. package/dist/models/RightsizingMetricStats.d.ts +62 -0
  96. package/dist/models/RightsizingMetricStats.js +70 -0
  97. package/dist/models/RightsizingReport.d.ts +81 -0
  98. package/dist/models/RightsizingReport.js +83 -0
  99. package/dist/models/RightsizingReportListResponse.d.ts +39 -0
  100. package/dist/models/RightsizingReportListResponse.js +55 -0
  101. package/dist/models/RightsizingReportSummary.d.ts +74 -0
  102. package/dist/models/RightsizingReportSummary.js +78 -0
  103. package/dist/models/RightsizingVMReport.d.ts +53 -0
  104. package/dist/models/RightsizingVMReport.js +64 -0
  105. package/dist/models/StartInspectionRequest.d.ts +32 -0
  106. package/dist/models/StartInspectionRequest.js +50 -0
  107. package/dist/models/StopForecasterPair202Response.d.ts +45 -0
  108. package/dist/models/StopForecasterPair202Response.js +57 -0
  109. package/dist/models/VMs.d.ts +18 -0
  110. package/dist/models/VMs.js +4 -0
  111. package/dist/models/VirtualMachine.d.ts +31 -1
  112. package/dist/models/VirtualMachine.js +12 -4
  113. package/dist/models/VirtualMachineDetail.d.ts +3 -3
  114. package/dist/models/VirtualMachineDetail.js +3 -3
  115. package/dist/models/VmInspectionConcern.d.ts +44 -0
  116. package/dist/models/VmInspectionConcern.js +58 -0
  117. package/dist/models/VmInspectionResults.d.ts +33 -0
  118. package/dist/models/VmInspectionResults.js +49 -0
  119. package/dist/models/VmInspectionStatus.d.ts +0 -1
  120. package/dist/models/VmInspectionStatus.js +1 -2
  121. package/dist/models/VmUtilizationDetails.d.ts +98 -0
  122. package/dist/models/VmUtilizationDetails.js +94 -0
  123. package/dist/models/index.d.ts +23 -1
  124. package/dist/models/index.js +23 -1
  125. package/dist/runtime.js +1 -1
  126. package/docs/BenchmarkRun.md +58 -0
  127. package/docs/DatastoreDetail.md +50 -0
  128. package/docs/DatastorePair.md +40 -0
  129. package/docs/DefaultApi.md +1123 -237
  130. package/docs/EstimateRange.md +39 -0
  131. package/docs/ForecastStats.md +52 -0
  132. package/docs/ForecasterDatastoresRequest.md +34 -0
  133. package/docs/ForecasterPairStatus.md +52 -0
  134. package/docs/ForecasterStartRequest.md +42 -0
  135. package/docs/ForecasterStatus.md +36 -0
  136. package/docs/InspectorStatus.md +4 -0
  137. package/docs/PairCapability.md +40 -0
  138. package/docs/PairCapabilityRequest.md +36 -0
  139. package/docs/PutForecasterCredentials403Response.md +36 -0
  140. package/docs/RightsizingCollectRequest.md +46 -0
  141. package/docs/RightsizingMetricStats.md +44 -0
  142. package/docs/RightsizingReport.md +50 -0
  143. package/docs/RightsizingReportListResponse.md +36 -0
  144. package/docs/RightsizingReportSummary.md +49 -0
  145. package/docs/RightsizingVMReport.md +40 -0
  146. package/docs/{InspectorStartRequest.md → StartInspectionRequest.md} +5 -6
  147. package/docs/StopForecasterPair202Response.md +36 -0
  148. package/docs/VMs.md +4 -0
  149. package/docs/VirtualMachine.md +12 -2
  150. package/docs/VirtualMachineDetail.md +1 -1
  151. package/docs/VmInspectionConcern.md +39 -0
  152. package/docs/VmInspectionResults.md +35 -0
  153. package/docs/VmUtilizationDetails.md +56 -0
  154. package/package.json +1 -1
  155. package/src/apis/DefaultApi.ts +1396 -350
  156. package/src/models/BenchmarkRun.ts +171 -0
  157. package/src/models/DatastoreDetail.ts +146 -0
  158. package/src/models/DatastorePair.ts +92 -0
  159. package/src/models/EstimateRange.ts +81 -0
  160. package/src/models/ForecastStats.ts +147 -0
  161. package/src/models/ForecasterDatastoresRequest.ts +73 -0
  162. package/src/models/ForecasterPairStatus.ts +158 -0
  163. package/src/models/ForecasterStartRequest.ts +113 -0
  164. package/src/models/ForecasterStatus.ts +93 -0
  165. package/src/models/InspectorStatus.ts +37 -7
  166. package/src/models/PairCapability.ts +106 -0
  167. package/src/models/PairCapabilityRequest.ts +89 -0
  168. package/src/models/PutForecasterCredentials403Response.ts +73 -0
  169. package/src/models/RightsizingCollectRequest.ts +123 -0
  170. package/src/models/RightsizingMetricStats.ts +111 -0
  171. package/src/models/RightsizingReport.ts +146 -0
  172. package/src/models/RightsizingReportListResponse.ts +83 -0
  173. package/src/models/RightsizingReportSummary.ts +129 -0
  174. package/src/models/RightsizingVMReport.ts +101 -0
  175. package/src/models/StartInspectionRequest.ts +66 -0
  176. package/src/models/StopForecasterPair202Response.ts +83 -0
  177. package/src/models/VMs.ts +18 -0
  178. package/src/models/VirtualMachine.ts +43 -4
  179. package/src/models/VirtualMachineDetail.ts +11 -11
  180. package/src/models/VmInspectionConcern.ts +84 -0
  181. package/src/models/VmInspectionResults.ts +73 -0
  182. package/src/models/VmInspectionStatus.ts +1 -2
  183. package/src/models/VmUtilizationDetails.ts +165 -0
  184. package/src/models/index.ts +23 -1
  185. package/src/runtime.ts +1 -2
  186. package/dist/esm/models/InspectorStartRequest.d.ts +0 -39
  187. package/dist/esm/models/InspectorStartRequest.js +0 -48
  188. package/dist/models/InspectorStartRequest.d.ts +0 -39
  189. package/dist/models/InspectorStartRequest.js +0 -55
  190. package/src/models/InspectorStartRequest.ts +0 -83
@@ -81,13 +81,43 @@ export interface VirtualMachine {
81
81
  * @type {VmInspectionStatus}
82
82
  * @memberof VirtualMachine
83
83
  */
84
- inspection: VmInspectionStatus;
84
+ inspectionStatus?: VmInspectionStatus;
85
+ /**
86
+ * Number of inspection concerns recorded for the latest persisted inspection result
87
+ * @type {number}
88
+ * @memberof VirtualMachine
89
+ */
90
+ inspectionConcernCount?: number;
85
91
  /**
86
92
  * Tags aggregated from matching groups
87
93
  * @type {Array<string>}
88
94
  * @memberof VirtualMachine
89
95
  */
90
96
  tags?: Array<string>;
97
+ /**
98
+ * CPU utilization at p95 (%); absent when no utilization data
99
+ * @type {number}
100
+ * @memberof VirtualMachine
101
+ */
102
+ utilizationCpuP95?: number;
103
+ /**
104
+ * Memory utilization at p95 (%); absent when no utilization data
105
+ * @type {number}
106
+ * @memberof VirtualMachine
107
+ */
108
+ utilizationMemP95?: number;
109
+ /**
110
+ * Disk utilization (%); absent when no utilization data
111
+ * @type {number}
112
+ * @memberof VirtualMachine
113
+ */
114
+ utilizationDisk?: number;
115
+ /**
116
+ * Data confidence — sample_count / expected_sample_count × 100
117
+ * @type {number}
118
+ * @memberof VirtualMachine
119
+ */
120
+ utilizationConfidence?: number;
91
121
  }
92
122
  /**
93
123
  * Check if a given object implements the VirtualMachine interface.
@@ -32,8 +32,6 @@ export function instanceOfVirtualMachine(value) {
32
32
  return false;
33
33
  if (!('issueCount' in value) || value['issueCount'] === undefined)
34
34
  return false;
35
- if (!('inspection' in value) || value['inspection'] === undefined)
36
- return false;
37
35
  return true;
38
36
  }
39
37
  export function VirtualMachineFromJSON(json) {
@@ -54,8 +52,13 @@ export function VirtualMachineFromJSONTyped(json, ignoreDiscriminator) {
54
52
  'issueCount': json['issueCount'],
55
53
  'migratable': json['migratable'] == null ? undefined : json['migratable'],
56
54
  'template': json['template'] == null ? undefined : json['template'],
57
- 'inspection': VmInspectionStatusFromJSON(json['inspection']),
55
+ 'inspectionStatus': json['inspectionStatus'] == null ? undefined : VmInspectionStatusFromJSON(json['inspectionStatus']),
56
+ 'inspectionConcernCount': json['inspectionConcernCount'] == null ? undefined : json['inspectionConcernCount'],
58
57
  'tags': json['tags'] == null ? undefined : json['tags'],
58
+ 'utilizationCpuP95': json['utilization_cpu_p95'] == null ? undefined : json['utilization_cpu_p95'],
59
+ 'utilizationMemP95': json['utilization_mem_p95'] == null ? undefined : json['utilization_mem_p95'],
60
+ 'utilizationDisk': json['utilization_disk'] == null ? undefined : json['utilization_disk'],
61
+ 'utilizationConfidence': json['utilization_confidence'] == null ? undefined : json['utilization_confidence'],
59
62
  };
60
63
  }
61
64
  export function VirtualMachineToJSON(json) {
@@ -76,7 +79,12 @@ export function VirtualMachineToJSONTyped(value, ignoreDiscriminator = false) {
76
79
  'issueCount': value['issueCount'],
77
80
  'migratable': value['migratable'],
78
81
  'template': value['template'],
79
- 'inspection': VmInspectionStatusToJSON(value['inspection']),
82
+ 'inspectionStatus': VmInspectionStatusToJSON(value['inspectionStatus']),
83
+ 'inspectionConcernCount': value['inspectionConcernCount'],
80
84
  'tags': value['tags'],
85
+ 'utilization_cpu_p95': value['utilizationCpuP95'],
86
+ 'utilization_mem_p95': value['utilizationMemP95'],
87
+ 'utilization_disk': value['utilizationDisk'],
88
+ 'utilization_confidence': value['utilizationConfidence'],
81
89
  };
82
90
  }
@@ -10,11 +10,11 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import type { VMNIC } from './VMNIC.js';
13
- import type { VmInspectionStatus } from './VmInspectionStatus.js';
14
13
  import type { GuestNetwork } from './GuestNetwork.js';
15
14
  import type { VMIssue } from './VMIssue.js';
16
15
  import type { VMDevice } from './VMDevice.js';
17
16
  import type { VMDisk } from './VMDisk.js';
17
+ import type { VmInspectionResults } from './VmInspectionResults.js';
18
18
  /**
19
19
  *
20
20
  * @export
@@ -203,10 +203,10 @@ export interface VirtualMachineDetail {
203
203
  issues?: Array<VMIssue>;
204
204
  /**
205
205
  *
206
- * @type {VmInspectionStatus}
206
+ * @type {VmInspectionResults}
207
207
  * @memberof VirtualMachineDetail
208
208
  */
209
- inspection?: VmInspectionStatus;
209
+ inspection?: VmInspectionResults;
210
210
  }
211
211
  /**
212
212
  * Check if a given object implements the VirtualMachineDetail interface.
@@ -12,11 +12,11 @@
12
12
  * Do not edit the class manually.
13
13
  */
14
14
  import { VMNICFromJSON, VMNICToJSON, } from './VMNIC.js';
15
- import { VmInspectionStatusFromJSON, VmInspectionStatusToJSON, } from './VmInspectionStatus.js';
16
15
  import { GuestNetworkFromJSON, GuestNetworkToJSON, } from './GuestNetwork.js';
17
16
  import { VMIssueFromJSON, VMIssueToJSON, } from './VMIssue.js';
18
17
  import { VMDeviceFromJSON, VMDeviceToJSON, } from './VMDevice.js';
19
18
  import { VMDiskFromJSON, VMDiskToJSON, } from './VMDisk.js';
19
+ import { VmInspectionResultsFromJSON, VmInspectionResultsToJSON, } from './VmInspectionResults.js';
20
20
  /**
21
21
  * Check if a given object implements the VirtualMachineDetail interface.
22
22
  */
@@ -79,7 +79,7 @@ export function VirtualMachineDetailFromJSONTyped(json, ignoreDiscriminator) {
79
79
  'devices': json['devices'] == null ? undefined : (json['devices'].map(VMDeviceFromJSON)),
80
80
  'guestNetworks': json['guestNetworks'] == null ? undefined : (json['guestNetworks'].map(GuestNetworkFromJSON)),
81
81
  'issues': json['issues'] == null ? undefined : (json['issues'].map(VMIssueFromJSON)),
82
- 'inspection': json['inspection'] == null ? undefined : VmInspectionStatusFromJSON(json['inspection']),
82
+ 'inspection': json['inspection'] == null ? undefined : VmInspectionResultsFromJSON(json['inspection']),
83
83
  };
84
84
  }
85
85
  export function VirtualMachineDetailToJSON(json) {
@@ -120,6 +120,6 @@ export function VirtualMachineDetailToJSONTyped(value, ignoreDiscriminator = fal
120
120
  'devices': value['devices'] == null ? undefined : (value['devices'].map(VMDeviceToJSON)),
121
121
  'guestNetworks': value['guestNetworks'] == null ? undefined : (value['guestNetworks'].map(GuestNetworkToJSON)),
122
122
  'issues': value['issues'] == null ? undefined : (value['issues'].map(VMIssueToJSON)),
123
- 'inspection': VmInspectionStatusToJSON(value['inspection']),
123
+ 'inspection': VmInspectionResultsToJSON(value['inspection']),
124
124
  };
125
125
  }
@@ -0,0 +1,44 @@
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
+ * Represents the structure of vm-migration-detective library inspection concerns
14
+ * @export
15
+ * @interface VmInspectionConcern
16
+ */
17
+ export interface VmInspectionConcern {
18
+ /**
19
+ * Short label identifying the concern
20
+ * @type {string}
21
+ * @memberof VmInspectionConcern
22
+ */
23
+ label: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof VmInspectionConcern
28
+ */
29
+ message: string;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof VmInspectionConcern
34
+ */
35
+ category: string;
36
+ }
37
+ /**
38
+ * Check if a given object implements the VmInspectionConcern interface.
39
+ */
40
+ export declare function instanceOfVmInspectionConcern(value: object): value is VmInspectionConcern;
41
+ export declare function VmInspectionConcernFromJSON(json: any): VmInspectionConcern;
42
+ export declare function VmInspectionConcernFromJSONTyped(json: any, ignoreDiscriminator: boolean): VmInspectionConcern;
43
+ export declare function VmInspectionConcernToJSON(json: any): VmInspectionConcern;
44
+ export declare function VmInspectionConcernToJSONTyped(value?: VmInspectionConcern | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,51 @@
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 VmInspectionConcern interface.
16
+ */
17
+ export function instanceOfVmInspectionConcern(value) {
18
+ if (!('label' in value) || value['label'] === undefined)
19
+ return false;
20
+ if (!('message' in value) || value['message'] === undefined)
21
+ return false;
22
+ if (!('category' in value) || value['category'] === undefined)
23
+ return false;
24
+ return true;
25
+ }
26
+ export function VmInspectionConcernFromJSON(json) {
27
+ return VmInspectionConcernFromJSONTyped(json, false);
28
+ }
29
+ export function VmInspectionConcernFromJSONTyped(json, ignoreDiscriminator) {
30
+ if (json == null) {
31
+ return json;
32
+ }
33
+ return {
34
+ 'label': json['label'],
35
+ 'message': json['message'],
36
+ 'category': json['category'],
37
+ };
38
+ }
39
+ export function VmInspectionConcernToJSON(json) {
40
+ return VmInspectionConcernToJSONTyped(json, false);
41
+ }
42
+ export function VmInspectionConcernToJSONTyped(value, ignoreDiscriminator = false) {
43
+ if (value == null) {
44
+ return value;
45
+ }
46
+ return {
47
+ 'label': value['label'],
48
+ 'message': value['message'],
49
+ 'category': value['category'],
50
+ };
51
+ }
@@ -0,0 +1,33 @@
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 { VmInspectionConcern } from './VmInspectionConcern.js';
13
+ /**
14
+ * VirtualMachine Inspection results
15
+ * @export
16
+ * @interface VmInspectionResults
17
+ */
18
+ export interface VmInspectionResults {
19
+ /**
20
+ *
21
+ * @type {Array<VmInspectionConcern>}
22
+ * @memberof VmInspectionResults
23
+ */
24
+ concerns?: Array<VmInspectionConcern>;
25
+ }
26
+ /**
27
+ * Check if a given object implements the VmInspectionResults interface.
28
+ */
29
+ export declare function instanceOfVmInspectionResults(value: object): value is VmInspectionResults;
30
+ export declare function VmInspectionResultsFromJSON(json: any): VmInspectionResults;
31
+ export declare function VmInspectionResultsFromJSONTyped(json: any, ignoreDiscriminator: boolean): VmInspectionResults;
32
+ export declare function VmInspectionResultsToJSON(json: any): VmInspectionResults;
33
+ export declare function VmInspectionResultsToJSONTyped(value?: VmInspectionResults | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,42 @@
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
+ import { VmInspectionConcernFromJSON, VmInspectionConcernToJSON, } from './VmInspectionConcern.js';
15
+ /**
16
+ * Check if a given object implements the VmInspectionResults interface.
17
+ */
18
+ export function instanceOfVmInspectionResults(value) {
19
+ return true;
20
+ }
21
+ export function VmInspectionResultsFromJSON(json) {
22
+ return VmInspectionResultsFromJSONTyped(json, false);
23
+ }
24
+ export function VmInspectionResultsFromJSONTyped(json, ignoreDiscriminator) {
25
+ if (json == null) {
26
+ return json;
27
+ }
28
+ return {
29
+ 'concerns': json['concerns'] == null ? undefined : (json['concerns'].map(VmInspectionConcernFromJSON)),
30
+ };
31
+ }
32
+ export function VmInspectionResultsToJSON(json) {
33
+ return VmInspectionResultsToJSONTyped(json, false);
34
+ }
35
+ export function VmInspectionResultsToJSONTyped(value, ignoreDiscriminator = false) {
36
+ if (value == null) {
37
+ return value;
38
+ }
39
+ return {
40
+ 'concerns': value['concerns'] == null ? undefined : (value['concerns'].map(VmInspectionConcernToJSON)),
41
+ };
42
+ }
@@ -43,7 +43,6 @@ export declare const VmInspectionStatusStateEnum: {
43
43
  readonly VmInspectionStatusStateCompleted: "completed";
44
44
  readonly VmInspectionStatusStateCanceled: "canceled";
45
45
  readonly VmInspectionStatusStateError: "error";
46
- readonly VmInspectionStatusStateNotFound: "not_found";
47
46
  };
48
47
  export type VmInspectionStatusStateEnum = typeof VmInspectionStatusStateEnum[keyof typeof VmInspectionStatusStateEnum];
49
48
  /**
@@ -19,8 +19,7 @@ export const VmInspectionStatusStateEnum = {
19
19
  VmInspectionStatusStateRunning: 'running',
20
20
  VmInspectionStatusStateCompleted: 'completed',
21
21
  VmInspectionStatusStateCanceled: 'canceled',
22
- VmInspectionStatusStateError: 'error',
23
- VmInspectionStatusStateNotFound: 'not_found'
22
+ VmInspectionStatusStateError: 'error'
24
23
  };
25
24
  /**
26
25
  * Check if a given object implements the VmInspectionStatus interface.
@@ -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
+ }
@@ -1,11 +1,20 @@
1
1
  export * from './AgentModeRequest.js';
2
2
  export * from './AgentStatus.js';
3
+ export * from './BenchmarkRun.js';
3
4
  export * from './CollectorStartRequest.js';
4
5
  export * from './CollectorStatus.js';
5
6
  export * from './CreateGroupRequest.js';
6
7
  export * from './Datastore.js';
8
+ export * from './DatastoreDetail.js';
9
+ export * from './DatastorePair.js';
7
10
  export * from './DiskSizeTierSummary.js';
8
11
  export * from './DiskTypeSummary.js';
12
+ export * from './EstimateRange.js';
13
+ export * from './ForecastStats.js';
14
+ export * from './ForecasterDatastoresRequest.js';
15
+ export * from './ForecasterPairStatus.js';
16
+ export * from './ForecasterStartRequest.js';
17
+ export * from './ForecasterStatus.js';
9
18
  export * from './GetInventory200Response.js';
10
19
  export * from './Group.js';
11
20
  export * from './GroupListResponse.js';
@@ -14,13 +23,23 @@ export * from './GuestNetwork.js';
14
23
  export * from './Histogram.js';
15
24
  export * from './Host.js';
16
25
  export * from './Infra.js';
17
- export * from './InspectorStartRequest.js';
18
26
  export * from './InspectorStatus.js';
19
27
  export * from './Inventory.js';
20
28
  export * from './InventoryData.js';
21
29
  export * from './MigrationIssue.js';
22
30
  export * from './Network.js';
23
31
  export * from './OsInfo.js';
32
+ export * from './PairCapability.js';
33
+ export * from './PairCapabilityRequest.js';
34
+ export * from './PutForecasterCredentials403Response.js';
35
+ export * from './RightsizingCollectRequest.js';
36
+ export * from './RightsizingMetricStats.js';
37
+ export * from './RightsizingReport.js';
38
+ export * from './RightsizingReportListResponse.js';
39
+ export * from './RightsizingReportSummary.js';
40
+ export * from './RightsizingVMReport.js';
41
+ export * from './StartInspectionRequest.js';
42
+ export * from './StopForecasterPair202Response.js';
24
43
  export * from './UpdateGroupRequest.js';
25
44
  export * from './UpdateInventory.js';
26
45
  export * from './VCenter.js';
@@ -36,4 +55,7 @@ export * from './VersionInfo.js';
36
55
  export * from './VirtualMachine.js';
37
56
  export * from './VirtualMachineDetail.js';
38
57
  export * from './VirtualMachineListResponse.js';
58
+ export * from './VmInspectionConcern.js';
59
+ export * from './VmInspectionResults.js';
39
60
  export * from './VmInspectionStatus.js';
61
+ export * from './VmUtilizationDetails.js';
@@ -2,12 +2,21 @@
2
2
  /* eslint-disable */
3
3
  export * from './AgentModeRequest.js';
4
4
  export * from './AgentStatus.js';
5
+ export * from './BenchmarkRun.js';
5
6
  export * from './CollectorStartRequest.js';
6
7
  export * from './CollectorStatus.js';
7
8
  export * from './CreateGroupRequest.js';
8
9
  export * from './Datastore.js';
10
+ export * from './DatastoreDetail.js';
11
+ export * from './DatastorePair.js';
9
12
  export * from './DiskSizeTierSummary.js';
10
13
  export * from './DiskTypeSummary.js';
14
+ export * from './EstimateRange.js';
15
+ export * from './ForecastStats.js';
16
+ export * from './ForecasterDatastoresRequest.js';
17
+ export * from './ForecasterPairStatus.js';
18
+ export * from './ForecasterStartRequest.js';
19
+ export * from './ForecasterStatus.js';
11
20
  export * from './GetInventory200Response.js';
12
21
  export * from './Group.js';
13
22
  export * from './GroupListResponse.js';
@@ -16,13 +25,23 @@ export * from './GuestNetwork.js';
16
25
  export * from './Histogram.js';
17
26
  export * from './Host.js';
18
27
  export * from './Infra.js';
19
- export * from './InspectorStartRequest.js';
20
28
  export * from './InspectorStatus.js';
21
29
  export * from './Inventory.js';
22
30
  export * from './InventoryData.js';
23
31
  export * from './MigrationIssue.js';
24
32
  export * from './Network.js';
25
33
  export * from './OsInfo.js';
34
+ export * from './PairCapability.js';
35
+ export * from './PairCapabilityRequest.js';
36
+ export * from './PutForecasterCredentials403Response.js';
37
+ export * from './RightsizingCollectRequest.js';
38
+ export * from './RightsizingMetricStats.js';
39
+ export * from './RightsizingReport.js';
40
+ export * from './RightsizingReportListResponse.js';
41
+ export * from './RightsizingReportSummary.js';
42
+ export * from './RightsizingVMReport.js';
43
+ export * from './StartInspectionRequest.js';
44
+ export * from './StopForecasterPair202Response.js';
26
45
  export * from './UpdateGroupRequest.js';
27
46
  export * from './UpdateInventory.js';
28
47
  export * from './VCenter.js';
@@ -38,4 +57,7 @@ export * from './VersionInfo.js';
38
57
  export * from './VirtualMachine.js';
39
58
  export * from './VirtualMachineDetail.js';
40
59
  export * from './VirtualMachineListResponse.js';
60
+ export * from './VmInspectionConcern.js';
61
+ export * from './VmInspectionResults.js';
41
62
  export * from './VmInspectionStatus.js';
63
+ export * from './VmUtilizationDetails.js';
@@ -210,7 +210,7 @@ export class BaseAPI {
210
210
  return next;
211
211
  }
212
212
  }
213
- BaseAPI.jsonRegex = new RegExp('^(:?application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(:?;.*)?$', 'i');
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;