@openshift-migration-advisor/agent-sdk 0.32.0 → 0.33.1-693656015cf9

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 (195) hide show
  1. package/.openapi-generator/FILES +36 -0
  2. package/.openapi-generator/VERSION +1 -1
  3. package/README.md +27 -4
  4. package/dist/apis/AppliancesApi.d.ts +258 -0
  5. package/dist/apis/AppliancesApi.js +273 -0
  6. package/dist/apis/CollectorApi.d.ts +0 -38
  7. package/dist/apis/CollectorApi.js +0 -59
  8. package/dist/apis/GroupsApi.d.ts +45 -6
  9. package/dist/apis/GroupsApi.js +40 -0
  10. package/dist/apis/ImageUpgradeApi.d.ts +66 -0
  11. package/dist/apis/ImageUpgradeApi.js +90 -0
  12. package/dist/apis/VirtualMachinesApi.d.ts +6 -6
  13. package/dist/apis/index.d.ts +2 -0
  14. package/dist/apis/index.js +2 -0
  15. package/dist/esm/apis/AppliancesApi.d.ts +258 -0
  16. package/dist/esm/apis/AppliancesApi.js +269 -0
  17. package/dist/esm/apis/CollectorApi.d.ts +0 -38
  18. package/dist/esm/apis/CollectorApi.js +0 -59
  19. package/dist/esm/apis/GroupsApi.d.ts +45 -6
  20. package/dist/esm/apis/GroupsApi.js +40 -0
  21. package/dist/esm/apis/ImageUpgradeApi.d.ts +66 -0
  22. package/dist/esm/apis/ImageUpgradeApi.js +86 -0
  23. package/dist/esm/apis/VirtualMachinesApi.d.ts +6 -6
  24. package/dist/esm/apis/index.d.ts +2 -0
  25. package/dist/esm/apis/index.js +2 -0
  26. package/dist/esm/models/AgentStatus.d.ts +5 -0
  27. package/dist/esm/models/AgentStatus.js +5 -0
  28. package/dist/esm/models/Appliance.d.ts +51 -0
  29. package/dist/esm/models/Appliance.js +64 -0
  30. package/dist/esm/models/ApplianceListResponse.d.ts +31 -0
  31. package/dist/esm/models/ApplianceListResponse.js +44 -0
  32. package/dist/esm/models/ApplianceRule.d.ts +90 -0
  33. package/dist/esm/models/ApplianceRule.js +98 -0
  34. package/dist/esm/models/ApplianceRuleCondition.d.ts +42 -0
  35. package/dist/esm/models/ApplianceRuleCondition.js +48 -0
  36. package/dist/esm/models/ApplianceRuleFunction.d.ts +37 -0
  37. package/dist/esm/models/ApplianceRuleFunction.js +46 -0
  38. package/dist/esm/models/ApplianceRuleListResponse.d.ts +31 -0
  39. package/dist/esm/models/ApplianceRuleListResponse.js +44 -0
  40. package/dist/esm/models/ApplianceRuleRequest.d.ts +74 -0
  41. package/dist/esm/models/ApplianceRuleRequest.js +85 -0
  42. package/dist/esm/models/ApplicationOverview.d.ts +16 -0
  43. package/dist/esm/models/ApplicationOverview.js +12 -0
  44. package/dist/esm/models/DiskGeometryCondition.d.ts +47 -0
  45. package/dist/esm/models/DiskGeometryCondition.js +58 -0
  46. package/dist/esm/models/Host.d.ts +16 -0
  47. package/dist/esm/models/Host.js +8 -0
  48. package/dist/esm/models/ImageUpgradeImage.d.ts +34 -0
  49. package/dist/esm/models/ImageUpgradeImage.js +47 -0
  50. package/dist/esm/models/ImageUpgradeResult.d.ts +66 -0
  51. package/dist/esm/models/ImageUpgradeResult.js +71 -0
  52. package/dist/esm/models/ImageUpgradeStatus.d.ts +44 -0
  53. package/dist/esm/models/ImageUpgradeStatus.js +57 -0
  54. package/dist/esm/models/ImageUploadStatus.d.ts +44 -0
  55. package/dist/esm/models/ImageUploadStatus.js +56 -0
  56. package/dist/esm/models/OsInfo.d.ts +12 -0
  57. package/dist/esm/models/OsInfo.js +9 -0
  58. package/dist/esm/models/Product.d.ts +66 -0
  59. package/dist/esm/models/Product.js +61 -0
  60. package/dist/esm/models/RDMBacking.d.ts +26 -0
  61. package/dist/esm/models/RDMBacking.js +17 -0
  62. package/dist/esm/models/RDMHostLun.d.ts +42 -0
  63. package/dist/esm/models/RDMHostLun.js +49 -0
  64. package/dist/esm/models/SuccessfulImageUpgrade.d.ts +38 -0
  65. package/dist/esm/models/SuccessfulImageUpgrade.js +52 -0
  66. package/dist/esm/models/VMFilterOptionsResponse.d.ts +8 -0
  67. package/dist/esm/models/VMFilterOptionsResponse.js +8 -0
  68. package/dist/esm/models/VirtualMachine.d.ts +8 -0
  69. package/dist/esm/models/VirtualMachine.js +4 -0
  70. package/dist/esm/models/VirtualMachineDetail.d.ts +5 -0
  71. package/dist/esm/models/VirtualMachineDetail.js +3 -0
  72. package/dist/esm/models/VirtualMachineDisk.d.ts +8 -0
  73. package/dist/esm/models/VirtualMachineDisk.js +4 -0
  74. package/dist/esm/models/VirtualMachineIdentity.d.ts +34 -0
  75. package/dist/esm/models/VirtualMachineIdentity.js +47 -0
  76. package/dist/esm/models/index.d.ts +16 -0
  77. package/dist/esm/models/index.js +16 -0
  78. package/dist/esm/runtime.js +4 -3
  79. package/dist/models/AgentStatus.d.ts +5 -0
  80. package/dist/models/AgentStatus.js +5 -0
  81. package/dist/models/Appliance.d.ts +51 -0
  82. package/dist/models/Appliance.js +71 -0
  83. package/dist/models/ApplianceListResponse.d.ts +31 -0
  84. package/dist/models/ApplianceListResponse.js +51 -0
  85. package/dist/models/ApplianceRule.d.ts +90 -0
  86. package/dist/models/ApplianceRule.js +106 -0
  87. package/dist/models/ApplianceRuleCondition.d.ts +42 -0
  88. package/dist/models/ApplianceRuleCondition.js +55 -0
  89. package/dist/models/ApplianceRuleFunction.d.ts +37 -0
  90. package/dist/models/ApplianceRuleFunction.js +53 -0
  91. package/dist/models/ApplianceRuleListResponse.d.ts +31 -0
  92. package/dist/models/ApplianceRuleListResponse.js +51 -0
  93. package/dist/models/ApplianceRuleRequest.d.ts +74 -0
  94. package/dist/models/ApplianceRuleRequest.js +93 -0
  95. package/dist/models/ApplicationOverview.d.ts +16 -0
  96. package/dist/models/ApplicationOverview.js +12 -0
  97. package/dist/models/DiskGeometryCondition.d.ts +47 -0
  98. package/dist/models/DiskGeometryCondition.js +66 -0
  99. package/dist/models/Host.d.ts +16 -0
  100. package/dist/models/Host.js +8 -0
  101. package/dist/models/ImageUpgradeImage.d.ts +34 -0
  102. package/dist/models/ImageUpgradeImage.js +54 -0
  103. package/dist/models/ImageUpgradeResult.d.ts +66 -0
  104. package/dist/models/ImageUpgradeResult.js +79 -0
  105. package/dist/models/ImageUpgradeStatus.d.ts +44 -0
  106. package/dist/models/ImageUpgradeStatus.js +64 -0
  107. package/dist/models/ImageUploadStatus.d.ts +44 -0
  108. package/dist/models/ImageUploadStatus.js +64 -0
  109. package/dist/models/OsInfo.d.ts +12 -0
  110. package/dist/models/OsInfo.js +10 -1
  111. package/dist/models/Product.d.ts +66 -0
  112. package/dist/models/Product.js +68 -0
  113. package/dist/models/RDMBacking.d.ts +26 -0
  114. package/dist/models/RDMBacking.js +18 -0
  115. package/dist/models/RDMHostLun.d.ts +42 -0
  116. package/dist/models/RDMHostLun.js +56 -0
  117. package/dist/models/SuccessfulImageUpgrade.d.ts +38 -0
  118. package/dist/models/SuccessfulImageUpgrade.js +59 -0
  119. package/dist/models/VMFilterOptionsResponse.d.ts +8 -0
  120. package/dist/models/VMFilterOptionsResponse.js +8 -0
  121. package/dist/models/VirtualMachine.d.ts +8 -0
  122. package/dist/models/VirtualMachine.js +4 -0
  123. package/dist/models/VirtualMachineDetail.d.ts +5 -0
  124. package/dist/models/VirtualMachineDetail.js +3 -0
  125. package/dist/models/VirtualMachineDisk.d.ts +8 -0
  126. package/dist/models/VirtualMachineDisk.js +4 -0
  127. package/dist/models/VirtualMachineIdentity.d.ts +34 -0
  128. package/dist/models/VirtualMachineIdentity.js +54 -0
  129. package/dist/models/index.d.ts +16 -0
  130. package/dist/models/index.js +16 -0
  131. package/dist/runtime.js +4 -3
  132. package/docs/AgentStatus.md +2 -0
  133. package/docs/Appliance.md +44 -0
  134. package/docs/ApplianceListResponse.md +34 -0
  135. package/docs/ApplianceRule.md +50 -0
  136. package/docs/ApplianceRuleCondition.md +39 -0
  137. package/docs/ApplianceRuleFunction.md +37 -0
  138. package/docs/ApplianceRuleListResponse.md +34 -0
  139. package/docs/ApplianceRuleRequest.md +46 -0
  140. package/docs/AppliancesApi.md +414 -0
  141. package/docs/ApplicationOverview.md +8 -0
  142. package/docs/CollectorApi.md +0 -70
  143. package/docs/DiskGeometryCondition.md +38 -0
  144. package/docs/GroupsApi.md +72 -4
  145. package/docs/Host.md +8 -0
  146. package/docs/ImageUpgradeApi.md +82 -0
  147. package/docs/ImageUpgradeImage.md +36 -0
  148. package/docs/ImageUpgradeResult.md +46 -0
  149. package/docs/ImageUpgradeStatus.md +40 -0
  150. package/docs/ImageUploadStatus.md +36 -0
  151. package/docs/OsInfo.md +2 -0
  152. package/docs/Product.md +52 -0
  153. package/docs/RDMBacking.md +8 -0
  154. package/docs/RDMHostLun.md +41 -0
  155. package/docs/SuccessfulImageUpgrade.md +38 -0
  156. package/docs/VMFilterOptionsResponse.md +4 -0
  157. package/docs/VirtualMachine.md +4 -0
  158. package/docs/VirtualMachineDetail.md +2 -0
  159. package/docs/VirtualMachineDisk.md +4 -0
  160. package/docs/VirtualMachineIdentity.md +36 -0
  161. package/docs/VirtualMachinesApi.md +4 -4
  162. package/package.json +1 -1
  163. package/src/apis/AppliancesApi.ts +504 -0
  164. package/src/apis/CollectorApi.ts +0 -97
  165. package/src/apis/GroupsApi.ts +86 -6
  166. package/src/apis/ImageUpgradeApi.ts +128 -0
  167. package/src/apis/VirtualMachinesApi.ts +6 -6
  168. package/src/apis/index.ts +2 -0
  169. package/src/models/AgentStatus.ts +14 -0
  170. package/src/models/Appliance.ts +107 -0
  171. package/src/models/ApplianceListResponse.ts +72 -0
  172. package/src/models/ApplianceRule.ts +159 -0
  173. package/src/models/ApplianceRuleCondition.ts +87 -0
  174. package/src/models/ApplianceRuleFunction.ts +80 -0
  175. package/src/models/ApplianceRuleListResponse.ts +72 -0
  176. package/src/models/ApplianceRuleRequest.ts +137 -0
  177. package/src/models/ApplicationOverview.ts +26 -0
  178. package/src/models/DiskGeometryCondition.ts +90 -0
  179. package/src/models/Host.ts +24 -0
  180. package/src/models/ImageUpgradeImage.ts +71 -0
  181. package/src/models/ImageUpgradeResult.ts +130 -0
  182. package/src/models/ImageUpgradeStatus.ts +100 -0
  183. package/src/models/ImageUploadStatus.ts +84 -0
  184. package/src/models/OsInfo.ts +15 -0
  185. package/src/models/Product.ts +118 -0
  186. package/src/models/RDMBacking.ts +44 -0
  187. package/src/models/RDMHostLun.ts +82 -0
  188. package/src/models/SuccessfulImageUpgrade.ts +78 -0
  189. package/src/models/VMFilterOptionsResponse.ts +14 -0
  190. package/src/models/VirtualMachine.ts +12 -0
  191. package/src/models/VirtualMachineDetail.ts +13 -0
  192. package/src/models/VirtualMachineDisk.ts +12 -0
  193. package/src/models/VirtualMachineIdentity.ts +71 -0
  194. package/src/models/index.ts +16 -0
  195. package/src/runtime.ts +3 -3
@@ -34,6 +34,10 @@ function instanceOfVMFilterOptionsResponse(value) {
34
34
  return false;
35
35
  if (!('applications' in value) || value['applications'] === undefined)
36
36
  return false;
37
+ if (!('osConfigs' in value) || value['osConfigs'] === undefined)
38
+ return false;
39
+ if (!('osTools' in value) || value['osTools'] === undefined)
40
+ return false;
37
41
  return true;
38
42
  }
39
43
  function VMFilterOptionsResponseFromJSON(json) {
@@ -50,6 +54,8 @@ function VMFilterOptionsResponseFromJSONTyped(json, ignoreDiscriminator) {
50
54
  'concernLabels': json['concernLabels'],
51
55
  'concernCategories': json['concernCategories'],
52
56
  'applications': json['applications'],
57
+ 'osConfigs': json['osConfigs'],
58
+ 'osTools': json['osTools'],
53
59
  };
54
60
  }
55
61
  function VMFilterOptionsResponseToJSON(json) {
@@ -66,5 +72,7 @@ function VMFilterOptionsResponseToJSONTyped(value, ignoreDiscriminator = false)
66
72
  'concernLabels': value['concernLabels'],
67
73
  'concernCategories': value['concernCategories'],
68
74
  'applications': value['applications'],
75
+ 'osConfigs': value['osConfigs'],
76
+ 'osTools': value['osTools'],
69
77
  };
70
78
  }
@@ -80,6 +80,14 @@ export interface VirtualMachine {
80
80
  * User-defined labels for this VM
81
81
  */
82
82
  labels?: Array<string>;
83
+ /**
84
+ * Guest OS according to the VM configuration file (inventory os_config)
85
+ */
86
+ guestName?: string;
87
+ /**
88
+ * Guest OS reported by VMware Tools (inventory os_tools)
89
+ */
90
+ guestNameFromVmwareTools?: string;
83
91
  /**
84
92
  * CPU utilization at p95 (%); absent when no utilization data
85
93
  */
@@ -67,6 +67,8 @@ function VirtualMachineFromJSONTyped(json, ignoreDiscriminator) {
67
67
  'migrationExcluded': json['migrationExcluded'] == null ? undefined : json['migrationExcluded'],
68
68
  'groups': json['groups'] == null ? undefined : json['groups'],
69
69
  'labels': json['labels'] == null ? undefined : json['labels'],
70
+ 'guestName': json['guestName'] == null ? undefined : json['guestName'],
71
+ 'guestNameFromVmwareTools': json['guestNameFromVmwareTools'] == null ? undefined : json['guestNameFromVmwareTools'],
70
72
  'utilization_cpu_p95': json['utilization_cpu_p95'] == null ? undefined : json['utilization_cpu_p95'],
71
73
  'utilization_mem_p95': json['utilization_mem_p95'] == null ? undefined : json['utilization_mem_p95'],
72
74
  'utilization_cpu_max': json['utilization_cpu_max'] == null ? undefined : json['utilization_cpu_max'],
@@ -99,6 +101,8 @@ function VirtualMachineToJSONTyped(value, ignoreDiscriminator = false) {
99
101
  'migrationExcluded': value['migrationExcluded'],
100
102
  'groups': value['groups'],
101
103
  'labels': value['labels'],
104
+ 'guestName': value['guestName'],
105
+ 'guestNameFromVmwareTools': value['guestNameFromVmwareTools'],
102
106
  'utilization_cpu_p95': value['utilization_cpu_p95'],
103
107
  'utilization_mem_p95': value['utilization_mem_p95'],
104
108
  'utilization_cpu_max': value['utilization_cpu_max'],
@@ -15,6 +15,7 @@ import type { GuestNetwork } from './GuestNetwork.js';
15
15
  import type { VirtualMachineIssue } from './VirtualMachineIssue.js';
16
16
  import type { VirtualMachineDevice } from './VirtualMachineDevice.js';
17
17
  import type { HostPhysicalNIC } from './HostPhysicalNIC.js';
18
+ import type { Product } from './Product.js';
18
19
  import type { VmUtilizationDetails } from './VmUtilizationDetails.js';
19
20
  import type { Process } from './Process.js';
20
21
  import type { VirtualMachineDisk } from './VirtualMachineDisk.js';
@@ -191,6 +192,10 @@ export interface VirtualMachineDetail {
191
192
  * List of processes detected on this VM
192
193
  */
193
194
  processes?: Array<Process>;
195
+ /**
196
+ * Products configured in the VM's vApp settings
197
+ */
198
+ products?: Array<Product>;
194
199
  }
195
200
  /**
196
201
  * Check if a given object implements the VirtualMachineDetail interface.
@@ -24,6 +24,7 @@ const GuestNetwork_js_1 = require("./GuestNetwork.js");
24
24
  const VirtualMachineIssue_js_1 = require("./VirtualMachineIssue.js");
25
25
  const VirtualMachineDevice_js_1 = require("./VirtualMachineDevice.js");
26
26
  const HostPhysicalNIC_js_1 = require("./HostPhysicalNIC.js");
27
+ const Product_js_1 = require("./Product.js");
27
28
  const VmUtilizationDetails_js_1 = require("./VmUtilizationDetails.js");
28
29
  const Process_js_1 = require("./Process.js");
29
30
  const VirtualMachineDisk_js_1 = require("./VirtualMachineDisk.js");
@@ -105,6 +106,7 @@ function VirtualMachineDetailFromJSONTyped(json, ignoreDiscriminator) {
105
106
  'inspection': json['inspection'] == null ? undefined : (0, VirtualMachineInspectionResults_js_1.VirtualMachineInspectionResultsFromJSON)(json['inspection']),
106
107
  'utilization': json['utilization'] == null ? undefined : (0, VmUtilizationDetails_js_1.VmUtilizationDetailsFromJSON)(json['utilization']),
107
108
  'processes': json['processes'] == null ? undefined : (json['processes'].map(Process_js_1.ProcessFromJSON)),
109
+ 'products': json['products'] == null ? undefined : (json['products'].map(Product_js_1.ProductFromJSON)),
108
110
  };
109
111
  }
110
112
  function VirtualMachineDetailToJSON(json) {
@@ -155,5 +157,6 @@ function VirtualMachineDetailToJSONTyped(value, ignoreDiscriminator = false) {
155
157
  'inspection': (0, VirtualMachineInspectionResults_js_1.VirtualMachineInspectionResultsToJSON)(value['inspection']),
156
158
  'utilization': (0, VmUtilizationDetails_js_1.VmUtilizationDetailsToJSON)(value['utilization']),
157
159
  'processes': value['processes'] == null ? undefined : (value['processes'].map(Process_js_1.ProcessToJSON)),
160
+ 'products': value['products'] == null ? undefined : (value['products'].map(Product_js_1.ProductToJSON)),
158
161
  };
159
162
  }
@@ -41,6 +41,14 @@ export interface VirtualMachineDisk {
41
41
  *
42
42
  */
43
43
  rdmBacking?: RDMBacking;
44
+ /**
45
+ * Source-reported thin provisioning; omitted when unavailable
46
+ */
47
+ thinProvisioned?: boolean;
48
+ /**
49
+ * Source-reported eager scrubbing; omitted when unavailable
50
+ */
51
+ eagerlyScrubbed?: boolean;
44
52
  /**
45
53
  * Bus type (scsi, ide, sata, nvme)
46
54
  */
@@ -40,6 +40,8 @@ function VirtualMachineDiskFromJSONTyped(json, ignoreDiscriminator) {
40
40
  'shared': json['shared'] == null ? undefined : json['shared'],
41
41
  'rdm': json['rdm'] == null ? undefined : json['rdm'],
42
42
  'rdmBacking': json['rdmBacking'] == null ? undefined : (0, RDMBacking_js_1.RDMBackingFromJSON)(json['rdmBacking']),
43
+ 'thinProvisioned': json['thinProvisioned'] == null ? undefined : json['thinProvisioned'],
44
+ 'eagerlyScrubbed': json['eagerlyScrubbed'] == null ? undefined : json['eagerlyScrubbed'],
43
45
  'bus': json['bus'] == null ? undefined : json['bus'],
44
46
  'mode': json['mode'] == null ? undefined : json['mode'],
45
47
  'datastore': json['datastore'] == null ? undefined : (0, VirtualMachineDatastore_js_1.VirtualMachineDatastoreFromJSON)(json['datastore']),
@@ -59,6 +61,8 @@ function VirtualMachineDiskToJSONTyped(value, ignoreDiscriminator = false) {
59
61
  'shared': value['shared'],
60
62
  'rdm': value['rdm'],
61
63
  'rdmBacking': (0, RDMBacking_js_1.RDMBackingToJSON)(value['rdmBacking']),
64
+ 'thinProvisioned': value['thinProvisioned'],
65
+ 'eagerlyScrubbed': value['eagerlyScrubbed'],
62
66
  'bus': value['bus'],
63
67
  'mode': value['mode'],
64
68
  'datastore': (0, VirtualMachineDatastore_js_1.VirtualMachineDatastoreToJSON)(value['datastore']),
@@ -0,0 +1,34 @@
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: v2
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 VirtualMachineIdentity
16
+ */
17
+ export interface VirtualMachineIdentity {
18
+ /**
19
+ * VM ID
20
+ */
21
+ id: string;
22
+ /**
23
+ * VM name
24
+ */
25
+ name: string;
26
+ }
27
+ /**
28
+ * Check if a given object implements the VirtualMachineIdentity interface.
29
+ */
30
+ export declare function instanceOfVirtualMachineIdentity(value: object): value is VirtualMachineIdentity;
31
+ export declare function VirtualMachineIdentityFromJSON(json: any): VirtualMachineIdentity;
32
+ export declare function VirtualMachineIdentityFromJSONTyped(json: any, ignoreDiscriminator: boolean): VirtualMachineIdentity;
33
+ export declare function VirtualMachineIdentityToJSON(json: any): VirtualMachineIdentity;
34
+ export declare function VirtualMachineIdentityToJSONTyped(value?: VirtualMachineIdentity | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,54 @@
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: v2
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.instanceOfVirtualMachineIdentity = instanceOfVirtualMachineIdentity;
17
+ exports.VirtualMachineIdentityFromJSON = VirtualMachineIdentityFromJSON;
18
+ exports.VirtualMachineIdentityFromJSONTyped = VirtualMachineIdentityFromJSONTyped;
19
+ exports.VirtualMachineIdentityToJSON = VirtualMachineIdentityToJSON;
20
+ exports.VirtualMachineIdentityToJSONTyped = VirtualMachineIdentityToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the VirtualMachineIdentity interface.
23
+ */
24
+ function instanceOfVirtualMachineIdentity(value) {
25
+ if (!('id' in value) || value['id'] === undefined)
26
+ return false;
27
+ if (!('name' in value) || value['name'] === undefined)
28
+ return false;
29
+ return true;
30
+ }
31
+ function VirtualMachineIdentityFromJSON(json) {
32
+ return VirtualMachineIdentityFromJSONTyped(json, false);
33
+ }
34
+ function VirtualMachineIdentityFromJSONTyped(json, ignoreDiscriminator) {
35
+ if (json == null) {
36
+ return json;
37
+ }
38
+ return {
39
+ 'id': json['id'],
40
+ 'name': json['name'],
41
+ };
42
+ }
43
+ function VirtualMachineIdentityToJSON(json) {
44
+ return VirtualMachineIdentityToJSONTyped(json, false);
45
+ }
46
+ function VirtualMachineIdentityToJSONTyped(value, ignoreDiscriminator = false) {
47
+ if (value == null) {
48
+ return value;
49
+ }
50
+ return {
51
+ 'id': value['id'],
52
+ 'name': value['name'],
53
+ };
54
+ }
@@ -1,6 +1,13 @@
1
1
  export * from './AgentModeRequest.js';
2
2
  export * from './AgentStatus.js';
3
3
  export * from './AgentStatusConsoleConnection.js';
4
+ export * from './Appliance.js';
5
+ export * from './ApplianceListResponse.js';
6
+ export * from './ApplianceRule.js';
7
+ export * from './ApplianceRuleCondition.js';
8
+ export * from './ApplianceRuleFunction.js';
9
+ export * from './ApplianceRuleListResponse.js';
10
+ export * from './ApplianceRuleRequest.js';
4
11
  export * from './ApplicationListResponse.js';
5
12
  export * from './ApplicationOverview.js';
6
13
  export * from './ApplicationVM.js';
@@ -26,6 +33,7 @@ export * from './Datastore.js';
26
33
  export * from './DatastoreDetail.js';
27
34
  export * from './DatastorePairRequest.js';
28
35
  export * from './DeleteLabelGloballyResponse.js';
36
+ export * from './DiskGeometryCondition.js';
29
37
  export * from './DiskSizeTierSummary.js';
30
38
  export * from './DiskTypeSummary.js';
31
39
  export * from './EstimateRange.js';
@@ -41,6 +49,10 @@ export * from './Host.js';
41
49
  export * from './HostPhysicalNIC.js';
42
50
  export * from './HostStorageAdapter.js';
43
51
  export * from './HostStorageLun.js';
52
+ export * from './ImageUpgradeImage.js';
53
+ export * from './ImageUpgradeResult.js';
54
+ export * from './ImageUpgradeStatus.js';
55
+ export * from './ImageUploadStatus.js';
44
56
  export * from './Infra.js';
45
57
  export * from './InspectionStatus.js';
46
58
  export * from './InspectorStatus.js';
@@ -54,13 +66,16 @@ export * from './OsInfo.js';
54
66
  export * from './PairCapability.js';
55
67
  export * from './PairCapabilityRequest.js';
56
68
  export * from './Process.js';
69
+ export * from './Product.js';
57
70
  export * from './RDMBacking.js';
71
+ export * from './RDMHostLun.js';
58
72
  export * from './RightsizingClusterResponse.js';
59
73
  export * from './RightsizingClusterUtilization.js';
60
74
  export * from './StartForecasterRequest.js';
61
75
  export * from './StartInspectionRequest.js';
62
76
  export * from './StopForecasterPair202Response.js';
63
77
  export * from './StorageIoConfiguration.js';
78
+ export * from './SuccessfulImageUpgrade.js';
64
79
  export * from './UpdateGroupRequest.js';
65
80
  export * from './UpdateInventory.js';
66
81
  export * from './UpdateLabelVMsRequest.js';
@@ -77,6 +92,7 @@ export * from './VirtualMachineDatastore.js';
77
92
  export * from './VirtualMachineDetail.js';
78
93
  export * from './VirtualMachineDevice.js';
79
94
  export * from './VirtualMachineDisk.js';
95
+ export * from './VirtualMachineIdentity.js';
80
96
  export * from './VirtualMachineInspectionConcern.js';
81
97
  export * from './VirtualMachineInspectionResults.js';
82
98
  export * from './VirtualMachineIssue.js';
@@ -19,6 +19,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
19
19
  __exportStar(require("./AgentModeRequest.js"), exports);
20
20
  __exportStar(require("./AgentStatus.js"), exports);
21
21
  __exportStar(require("./AgentStatusConsoleConnection.js"), exports);
22
+ __exportStar(require("./Appliance.js"), exports);
23
+ __exportStar(require("./ApplianceListResponse.js"), exports);
24
+ __exportStar(require("./ApplianceRule.js"), exports);
25
+ __exportStar(require("./ApplianceRuleCondition.js"), exports);
26
+ __exportStar(require("./ApplianceRuleFunction.js"), exports);
27
+ __exportStar(require("./ApplianceRuleListResponse.js"), exports);
28
+ __exportStar(require("./ApplianceRuleRequest.js"), exports);
22
29
  __exportStar(require("./ApplicationListResponse.js"), exports);
23
30
  __exportStar(require("./ApplicationOverview.js"), exports);
24
31
  __exportStar(require("./ApplicationVM.js"), exports);
@@ -44,6 +51,7 @@ __exportStar(require("./Datastore.js"), exports);
44
51
  __exportStar(require("./DatastoreDetail.js"), exports);
45
52
  __exportStar(require("./DatastorePairRequest.js"), exports);
46
53
  __exportStar(require("./DeleteLabelGloballyResponse.js"), exports);
54
+ __exportStar(require("./DiskGeometryCondition.js"), exports);
47
55
  __exportStar(require("./DiskSizeTierSummary.js"), exports);
48
56
  __exportStar(require("./DiskTypeSummary.js"), exports);
49
57
  __exportStar(require("./EstimateRange.js"), exports);
@@ -59,6 +67,10 @@ __exportStar(require("./Host.js"), exports);
59
67
  __exportStar(require("./HostPhysicalNIC.js"), exports);
60
68
  __exportStar(require("./HostStorageAdapter.js"), exports);
61
69
  __exportStar(require("./HostStorageLun.js"), exports);
70
+ __exportStar(require("./ImageUpgradeImage.js"), exports);
71
+ __exportStar(require("./ImageUpgradeResult.js"), exports);
72
+ __exportStar(require("./ImageUpgradeStatus.js"), exports);
73
+ __exportStar(require("./ImageUploadStatus.js"), exports);
62
74
  __exportStar(require("./Infra.js"), exports);
63
75
  __exportStar(require("./InspectionStatus.js"), exports);
64
76
  __exportStar(require("./InspectorStatus.js"), exports);
@@ -72,13 +84,16 @@ __exportStar(require("./OsInfo.js"), exports);
72
84
  __exportStar(require("./PairCapability.js"), exports);
73
85
  __exportStar(require("./PairCapabilityRequest.js"), exports);
74
86
  __exportStar(require("./Process.js"), exports);
87
+ __exportStar(require("./Product.js"), exports);
75
88
  __exportStar(require("./RDMBacking.js"), exports);
89
+ __exportStar(require("./RDMHostLun.js"), exports);
76
90
  __exportStar(require("./RightsizingClusterResponse.js"), exports);
77
91
  __exportStar(require("./RightsizingClusterUtilization.js"), exports);
78
92
  __exportStar(require("./StartForecasterRequest.js"), exports);
79
93
  __exportStar(require("./StartInspectionRequest.js"), exports);
80
94
  __exportStar(require("./StopForecasterPair202Response.js"), exports);
81
95
  __exportStar(require("./StorageIoConfiguration.js"), exports);
96
+ __exportStar(require("./SuccessfulImageUpgrade.js"), exports);
82
97
  __exportStar(require("./UpdateGroupRequest.js"), exports);
83
98
  __exportStar(require("./UpdateInventory.js"), exports);
84
99
  __exportStar(require("./UpdateLabelVMsRequest.js"), exports);
@@ -95,6 +110,7 @@ __exportStar(require("./VirtualMachineDatastore.js"), exports);
95
110
  __exportStar(require("./VirtualMachineDetail.js"), exports);
96
111
  __exportStar(require("./VirtualMachineDevice.js"), exports);
97
112
  __exportStar(require("./VirtualMachineDisk.js"), exports);
113
+ __exportStar(require("./VirtualMachineIdentity.js"), exports);
98
114
  __exportStar(require("./VirtualMachineInspectionConcern.js"), exports);
99
115
  __exportStar(require("./VirtualMachineInspectionResults.js"), exports);
100
116
  __exportStar(require("./VirtualMachineIssue.js"), exports);
package/dist/runtime.js CHANGED
@@ -440,7 +440,7 @@ function parseContentDispositionFilename(headers) {
440
440
  function decodeExtValue(value) {
441
441
  const match = value === undefined ? null : /^utf-8'[^']*'(.*)$/i.exec(value);
442
442
  try {
443
- return match ? decodeURIComponent(match[1]) : undefined;
443
+ return (match === null || match === void 0 ? void 0 : match[1]) !== undefined ? decodeURIComponent(match[1]) : undefined;
444
444
  }
445
445
  catch (_a) {
446
446
  return undefined;
@@ -452,13 +452,14 @@ function decodeExtValue(value) {
452
452
  * backslash escapes resolved, and the first occurrence of a name wins.
453
453
  */
454
454
  function parseHeaderParameters(value) {
455
+ var _a, _b;
455
456
  const params = new Map();
456
457
  const parameter = /(?:^|;)\s*([^=;]+?)\s*=\s*(?:"((?:[^"\\]|\\.)*)"?|([^;]*))/g;
457
458
  let match;
458
459
  while ((match = parameter.exec(value)) !== null) {
459
- const name = match[1].toLowerCase();
460
+ const name = ((_a = match[1]) !== null && _a !== void 0 ? _a : '').toLowerCase();
460
461
  if (!params.has(name)) {
461
- params.set(name, match[2] !== undefined ? match[2].replace(/\\(.)/g, '$1') : match[3].trim());
462
+ params.set(name, match[2] !== undefined ? match[2].replace(/\\(.)/g, '$1') : ((_b = match[3]) !== null && _b !== void 0 ? _b : '').trim());
462
463
  }
463
464
  }
464
465
  return params;
@@ -9,6 +9,7 @@ Name | Type
9
9
  `mode` | string
10
10
  `consoleConnection` | [AgentStatusConsoleConnection](AgentStatusConsoleConnection.md)
11
11
  `rvtoolsModeEnabled` | boolean
12
+ `imageUpgradeStatus` | [ImageUpgradeStatus](ImageUpgradeStatus.md)
12
13
 
13
14
  ## Example
14
15
 
@@ -20,6 +21,7 @@ const example = {
20
21
  "mode": null,
21
22
  "consoleConnection": null,
22
23
  "rvtoolsModeEnabled": null,
24
+ "imageUpgradeStatus": null,
23
25
  } satisfies AgentStatus
24
26
 
25
27
  console.log(example)
@@ -0,0 +1,44 @@
1
+
2
+ # Appliance
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `name` | string
10
+ `vendor` | string
11
+ `version` | string
12
+ `confidence` | number
13
+ `vmCount` | number
14
+ `vms` | [Array&lt;VirtualMachineIdentity&gt;](VirtualMachineIdentity.md)
15
+
16
+ ## Example
17
+
18
+ ```typescript
19
+ import type { Appliance } from '@openshift-migration-advisor/agent-sdk'
20
+
21
+ // TODO: Update the object below with actual values
22
+ const example = {
23
+ "name": null,
24
+ "vendor": null,
25
+ "version": null,
26
+ "confidence": null,
27
+ "vmCount": null,
28
+ "vms": null,
29
+ } satisfies Appliance
30
+
31
+ console.log(example)
32
+
33
+ // Convert the instance to a JSON string
34
+ const exampleJSON: string = JSON.stringify(example)
35
+ console.log(exampleJSON)
36
+
37
+ // Parse the JSON string back to an object
38
+ const exampleParsed = JSON.parse(exampleJSON) as Appliance
39
+ console.log(exampleParsed)
40
+ ```
41
+
42
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
43
+
44
+
@@ -0,0 +1,34 @@
1
+
2
+ # ApplianceListResponse
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `appliances` | [Array&lt;Appliance&gt;](Appliance.md)
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import type { ApplianceListResponse } from '@openshift-migration-advisor/agent-sdk'
15
+
16
+ // TODO: Update the object below with actual values
17
+ const example = {
18
+ "appliances": null,
19
+ } satisfies ApplianceListResponse
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 ApplianceListResponse
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,50 @@
1
+
2
+ # ApplianceRule
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `id` | string
10
+ `name` | string
11
+ `vendor` | string
12
+ `category` | string
13
+ `osv_verdict` | string
14
+ `max_confidence` | string
15
+ `kind` | string
16
+ `min_matched` | number
17
+ `conditions` | [Array&lt;ApplianceRuleCondition&gt;](ApplianceRuleCondition.md)
18
+
19
+ ## Example
20
+
21
+ ```typescript
22
+ import type { ApplianceRule } from '@openshift-migration-advisor/agent-sdk'
23
+
24
+ // TODO: Update the object below with actual values
25
+ const example = {
26
+ "id": null,
27
+ "name": null,
28
+ "vendor": null,
29
+ "category": null,
30
+ "osv_verdict": null,
31
+ "max_confidence": null,
32
+ "kind": null,
33
+ "min_matched": null,
34
+ "conditions": null,
35
+ } satisfies ApplianceRule
36
+
37
+ console.log(example)
38
+
39
+ // Convert the instance to a JSON string
40
+ const exampleJSON: string = JSON.stringify(example)
41
+ console.log(exampleJSON)
42
+
43
+ // Parse the JSON string back to an object
44
+ const exampleParsed = JSON.parse(exampleJSON) as ApplianceRule
45
+ console.log(exampleParsed)
46
+ ```
47
+
48
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
49
+
50
+
@@ -0,0 +1,39 @@
1
+
2
+ # ApplianceRuleCondition
3
+
4
+ One condition. Either a filter expression over VM attributes or a call to a registered predicate function carrying its own payload. Exactly one of expression or function must be set. Condition names must be unique within a rule, and min_matched may not exceed the number of conditions.
5
+
6
+ ## Properties
7
+
8
+ Name | Type
9
+ ------------ | -------------
10
+ `name` | string
11
+ `expression` | string
12
+ `_function` | [ApplianceRuleFunction](ApplianceRuleFunction.md)
13
+
14
+ ## Example
15
+
16
+ ```typescript
17
+ import type { ApplianceRuleCondition } from '@openshift-migration-advisor/agent-sdk'
18
+
19
+ // TODO: Update the object below with actual values
20
+ const example = {
21
+ "name": null,
22
+ "expression": null,
23
+ "_function": null,
24
+ } satisfies ApplianceRuleCondition
25
+
26
+ console.log(example)
27
+
28
+ // Convert the instance to a JSON string
29
+ const exampleJSON: string = JSON.stringify(example)
30
+ console.log(exampleJSON)
31
+
32
+ // Parse the JSON string back to an object
33
+ const exampleParsed = JSON.parse(exampleJSON) as ApplianceRuleCondition
34
+ console.log(exampleParsed)
35
+ ```
36
+
37
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
38
+
39
+
@@ -0,0 +1,37 @@
1
+
2
+ # ApplianceRuleFunction
3
+
4
+ A registered predicate selected by name. Exactly one payload field, the one matching name, must be set; the payload is validated server-side against the predicate the name resolves to.
5
+
6
+ ## Properties
7
+
8
+ Name | Type
9
+ ------------ | -------------
10
+ `name` | string
11
+ `disk_geometry` | [DiskGeometryCondition](DiskGeometryCondition.md)
12
+
13
+ ## Example
14
+
15
+ ```typescript
16
+ import type { ApplianceRuleFunction } from '@openshift-migration-advisor/agent-sdk'
17
+
18
+ // TODO: Update the object below with actual values
19
+ const example = {
20
+ "name": null,
21
+ "disk_geometry": null,
22
+ } satisfies ApplianceRuleFunction
23
+
24
+ console.log(example)
25
+
26
+ // Convert the instance to a JSON string
27
+ const exampleJSON: string = JSON.stringify(example)
28
+ console.log(exampleJSON)
29
+
30
+ // Parse the JSON string back to an object
31
+ const exampleParsed = JSON.parse(exampleJSON) as ApplianceRuleFunction
32
+ console.log(exampleParsed)
33
+ ```
34
+
35
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
36
+
37
+
@@ -0,0 +1,34 @@
1
+
2
+ # ApplianceRuleListResponse
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `rules` | [Array&lt;ApplianceRule&gt;](ApplianceRule.md)
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import type { ApplianceRuleListResponse } from '@openshift-migration-advisor/agent-sdk'
15
+
16
+ // TODO: Update the object below with actual values
17
+ const example = {
18
+ "rules": null,
19
+ } satisfies ApplianceRuleListResponse
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 ApplianceRuleListResponse
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
+