@openshift-migration-advisor/agent-sdk 0.32.0 → 0.33.1-edd914e78442

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 (143) hide show
  1. package/.openapi-generator/FILES +24 -0
  2. package/.openapi-generator/VERSION +1 -1
  3. package/README.md +16 -4
  4. package/dist/apis/AppliancesApi.d.ts +64 -0
  5. package/dist/apis/AppliancesApi.js +72 -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 +39 -0
  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/index.d.ts +2 -0
  13. package/dist/apis/index.js +2 -0
  14. package/dist/esm/apis/AppliancesApi.d.ts +64 -0
  15. package/dist/esm/apis/AppliancesApi.js +68 -0
  16. package/dist/esm/apis/CollectorApi.d.ts +0 -38
  17. package/dist/esm/apis/CollectorApi.js +0 -59
  18. package/dist/esm/apis/GroupsApi.d.ts +39 -0
  19. package/dist/esm/apis/GroupsApi.js +40 -0
  20. package/dist/esm/apis/ImageUpgradeApi.d.ts +66 -0
  21. package/dist/esm/apis/ImageUpgradeApi.js +86 -0
  22. package/dist/esm/apis/index.d.ts +2 -0
  23. package/dist/esm/apis/index.js +2 -0
  24. package/dist/esm/models/AgentStatus.d.ts +5 -0
  25. package/dist/esm/models/AgentStatus.js +5 -0
  26. package/dist/esm/models/Appliance.d.ts +51 -0
  27. package/dist/esm/models/Appliance.js +64 -0
  28. package/dist/esm/models/ApplianceListResponse.d.ts +31 -0
  29. package/dist/esm/models/ApplianceListResponse.js +44 -0
  30. package/dist/esm/models/ApplicationOverview.d.ts +16 -0
  31. package/dist/esm/models/ApplicationOverview.js +12 -0
  32. package/dist/esm/models/Host.d.ts +16 -0
  33. package/dist/esm/models/Host.js +8 -0
  34. package/dist/esm/models/ImageUpgradeImage.d.ts +34 -0
  35. package/dist/esm/models/ImageUpgradeImage.js +47 -0
  36. package/dist/esm/models/ImageUpgradeResult.d.ts +66 -0
  37. package/dist/esm/models/ImageUpgradeResult.js +71 -0
  38. package/dist/esm/models/ImageUpgradeStatus.d.ts +44 -0
  39. package/dist/esm/models/ImageUpgradeStatus.js +57 -0
  40. package/dist/esm/models/ImageUploadStatus.d.ts +44 -0
  41. package/dist/esm/models/ImageUploadStatus.js +56 -0
  42. package/dist/esm/models/OsInfo.d.ts +12 -0
  43. package/dist/esm/models/OsInfo.js +9 -0
  44. package/dist/esm/models/Product.d.ts +66 -0
  45. package/dist/esm/models/Product.js +61 -0
  46. package/dist/esm/models/RDMBacking.d.ts +26 -0
  47. package/dist/esm/models/RDMBacking.js +17 -0
  48. package/dist/esm/models/RDMHostLun.d.ts +42 -0
  49. package/dist/esm/models/RDMHostLun.js +49 -0
  50. package/dist/esm/models/SuccessfulImageUpgrade.d.ts +38 -0
  51. package/dist/esm/models/SuccessfulImageUpgrade.js +52 -0
  52. package/dist/esm/models/VirtualMachineDetail.d.ts +5 -0
  53. package/dist/esm/models/VirtualMachineDetail.js +3 -0
  54. package/dist/esm/models/VirtualMachineDisk.d.ts +8 -0
  55. package/dist/esm/models/VirtualMachineDisk.js +4 -0
  56. package/dist/esm/models/VirtualMachineIdentity.d.ts +34 -0
  57. package/dist/esm/models/VirtualMachineIdentity.js +47 -0
  58. package/dist/esm/models/index.d.ts +10 -0
  59. package/dist/esm/models/index.js +10 -0
  60. package/dist/esm/runtime.js +4 -3
  61. package/dist/models/AgentStatus.d.ts +5 -0
  62. package/dist/models/AgentStatus.js +5 -0
  63. package/dist/models/Appliance.d.ts +51 -0
  64. package/dist/models/Appliance.js +71 -0
  65. package/dist/models/ApplianceListResponse.d.ts +31 -0
  66. package/dist/models/ApplianceListResponse.js +51 -0
  67. package/dist/models/ApplicationOverview.d.ts +16 -0
  68. package/dist/models/ApplicationOverview.js +12 -0
  69. package/dist/models/Host.d.ts +16 -0
  70. package/dist/models/Host.js +8 -0
  71. package/dist/models/ImageUpgradeImage.d.ts +34 -0
  72. package/dist/models/ImageUpgradeImage.js +54 -0
  73. package/dist/models/ImageUpgradeResult.d.ts +66 -0
  74. package/dist/models/ImageUpgradeResult.js +79 -0
  75. package/dist/models/ImageUpgradeStatus.d.ts +44 -0
  76. package/dist/models/ImageUpgradeStatus.js +64 -0
  77. package/dist/models/ImageUploadStatus.d.ts +44 -0
  78. package/dist/models/ImageUploadStatus.js +64 -0
  79. package/dist/models/OsInfo.d.ts +12 -0
  80. package/dist/models/OsInfo.js +10 -1
  81. package/dist/models/Product.d.ts +66 -0
  82. package/dist/models/Product.js +68 -0
  83. package/dist/models/RDMBacking.d.ts +26 -0
  84. package/dist/models/RDMBacking.js +18 -0
  85. package/dist/models/RDMHostLun.d.ts +42 -0
  86. package/dist/models/RDMHostLun.js +56 -0
  87. package/dist/models/SuccessfulImageUpgrade.d.ts +38 -0
  88. package/dist/models/SuccessfulImageUpgrade.js +59 -0
  89. package/dist/models/VirtualMachineDetail.d.ts +5 -0
  90. package/dist/models/VirtualMachineDetail.js +3 -0
  91. package/dist/models/VirtualMachineDisk.d.ts +8 -0
  92. package/dist/models/VirtualMachineDisk.js +4 -0
  93. package/dist/models/VirtualMachineIdentity.d.ts +34 -0
  94. package/dist/models/VirtualMachineIdentity.js +54 -0
  95. package/dist/models/index.d.ts +10 -0
  96. package/dist/models/index.js +10 -0
  97. package/dist/runtime.js +4 -3
  98. package/docs/AgentStatus.md +2 -0
  99. package/docs/Appliance.md +44 -0
  100. package/docs/ApplianceListResponse.md +34 -0
  101. package/docs/AppliancesApi.md +76 -0
  102. package/docs/ApplicationOverview.md +8 -0
  103. package/docs/CollectorApi.md +0 -70
  104. package/docs/GroupsApi.md +68 -0
  105. package/docs/Host.md +8 -0
  106. package/docs/ImageUpgradeApi.md +82 -0
  107. package/docs/ImageUpgradeImage.md +36 -0
  108. package/docs/ImageUpgradeResult.md +46 -0
  109. package/docs/ImageUpgradeStatus.md +40 -0
  110. package/docs/ImageUploadStatus.md +36 -0
  111. package/docs/OsInfo.md +2 -0
  112. package/docs/Product.md +52 -0
  113. package/docs/RDMBacking.md +8 -0
  114. package/docs/RDMHostLun.md +41 -0
  115. package/docs/SuccessfulImageUpgrade.md +38 -0
  116. package/docs/VirtualMachineDetail.md +2 -0
  117. package/docs/VirtualMachineDisk.md +4 -0
  118. package/docs/VirtualMachineIdentity.md +36 -0
  119. package/package.json +1 -1
  120. package/src/apis/AppliancesApi.ts +111 -0
  121. package/src/apis/CollectorApi.ts +0 -97
  122. package/src/apis/GroupsApi.ts +80 -0
  123. package/src/apis/ImageUpgradeApi.ts +128 -0
  124. package/src/apis/index.ts +2 -0
  125. package/src/models/AgentStatus.ts +14 -0
  126. package/src/models/Appliance.ts +107 -0
  127. package/src/models/ApplianceListResponse.ts +72 -0
  128. package/src/models/ApplicationOverview.ts +26 -0
  129. package/src/models/Host.ts +24 -0
  130. package/src/models/ImageUpgradeImage.ts +71 -0
  131. package/src/models/ImageUpgradeResult.ts +130 -0
  132. package/src/models/ImageUpgradeStatus.ts +100 -0
  133. package/src/models/ImageUploadStatus.ts +84 -0
  134. package/src/models/OsInfo.ts +15 -0
  135. package/src/models/Product.ts +118 -0
  136. package/src/models/RDMBacking.ts +44 -0
  137. package/src/models/RDMHostLun.ts +82 -0
  138. package/src/models/SuccessfulImageUpgrade.ts +78 -0
  139. package/src/models/VirtualMachineDetail.ts +13 -0
  140. package/src/models/VirtualMachineDisk.ts +12 -0
  141. package/src/models/VirtualMachineIdentity.ts +71 -0
  142. package/src/models/index.ts +10 -0
  143. package/src/runtime.ts +3 -3
@@ -33,6 +33,8 @@ export function VirtualMachineDiskFromJSONTyped(json, ignoreDiscriminator) {
33
33
  'shared': json['shared'] == null ? undefined : json['shared'],
34
34
  'rdm': json['rdm'] == null ? undefined : json['rdm'],
35
35
  'rdmBacking': json['rdmBacking'] == null ? undefined : RDMBackingFromJSON(json['rdmBacking']),
36
+ 'thinProvisioned': json['thinProvisioned'] == null ? undefined : json['thinProvisioned'],
37
+ 'eagerlyScrubbed': json['eagerlyScrubbed'] == null ? undefined : json['eagerlyScrubbed'],
36
38
  'bus': json['bus'] == null ? undefined : json['bus'],
37
39
  'mode': json['mode'] == null ? undefined : json['mode'],
38
40
  'datastore': json['datastore'] == null ? undefined : VirtualMachineDatastoreFromJSON(json['datastore']),
@@ -52,6 +54,8 @@ export function VirtualMachineDiskToJSONTyped(value, ignoreDiscriminator = false
52
54
  'shared': value['shared'],
53
55
  'rdm': value['rdm'],
54
56
  'rdmBacking': RDMBackingToJSON(value['rdmBacking']),
57
+ 'thinProvisioned': value['thinProvisioned'],
58
+ 'eagerlyScrubbed': value['eagerlyScrubbed'],
55
59
  'bus': value['bus'],
56
60
  'mode': value['mode'],
57
61
  'datastore': 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,47 @@
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: v2
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 VirtualMachineIdentity interface.
16
+ */
17
+ export function instanceOfVirtualMachineIdentity(value) {
18
+ if (!('id' in value) || value['id'] === undefined)
19
+ return false;
20
+ if (!('name' in value) || value['name'] === undefined)
21
+ return false;
22
+ return true;
23
+ }
24
+ export function VirtualMachineIdentityFromJSON(json) {
25
+ return VirtualMachineIdentityFromJSONTyped(json, false);
26
+ }
27
+ export function VirtualMachineIdentityFromJSONTyped(json, ignoreDiscriminator) {
28
+ if (json == null) {
29
+ return json;
30
+ }
31
+ return {
32
+ 'id': json['id'],
33
+ 'name': json['name'],
34
+ };
35
+ }
36
+ export function VirtualMachineIdentityToJSON(json) {
37
+ return VirtualMachineIdentityToJSONTyped(json, false);
38
+ }
39
+ export function VirtualMachineIdentityToJSONTyped(value, ignoreDiscriminator = false) {
40
+ if (value == null) {
41
+ return value;
42
+ }
43
+ return {
44
+ 'id': value['id'],
45
+ 'name': value['name'],
46
+ };
47
+ }
@@ -1,6 +1,8 @@
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';
4
6
  export * from './ApplicationListResponse.js';
5
7
  export * from './ApplicationOverview.js';
6
8
  export * from './ApplicationVM.js';
@@ -41,6 +43,10 @@ export * from './Host.js';
41
43
  export * from './HostPhysicalNIC.js';
42
44
  export * from './HostStorageAdapter.js';
43
45
  export * from './HostStorageLun.js';
46
+ export * from './ImageUpgradeImage.js';
47
+ export * from './ImageUpgradeResult.js';
48
+ export * from './ImageUpgradeStatus.js';
49
+ export * from './ImageUploadStatus.js';
44
50
  export * from './Infra.js';
45
51
  export * from './InspectionStatus.js';
46
52
  export * from './InspectorStatus.js';
@@ -54,13 +60,16 @@ export * from './OsInfo.js';
54
60
  export * from './PairCapability.js';
55
61
  export * from './PairCapabilityRequest.js';
56
62
  export * from './Process.js';
63
+ export * from './Product.js';
57
64
  export * from './RDMBacking.js';
65
+ export * from './RDMHostLun.js';
58
66
  export * from './RightsizingClusterResponse.js';
59
67
  export * from './RightsizingClusterUtilization.js';
60
68
  export * from './StartForecasterRequest.js';
61
69
  export * from './StartInspectionRequest.js';
62
70
  export * from './StopForecasterPair202Response.js';
63
71
  export * from './StorageIoConfiguration.js';
72
+ export * from './SuccessfulImageUpgrade.js';
64
73
  export * from './UpdateGroupRequest.js';
65
74
  export * from './UpdateInventory.js';
66
75
  export * from './UpdateLabelVMsRequest.js';
@@ -77,6 +86,7 @@ export * from './VirtualMachineDatastore.js';
77
86
  export * from './VirtualMachineDetail.js';
78
87
  export * from './VirtualMachineDevice.js';
79
88
  export * from './VirtualMachineDisk.js';
89
+ export * from './VirtualMachineIdentity.js';
80
90
  export * from './VirtualMachineInspectionConcern.js';
81
91
  export * from './VirtualMachineInspectionResults.js';
82
92
  export * from './VirtualMachineIssue.js';
@@ -3,6 +3,8 @@
3
3
  export * from './AgentModeRequest.js';
4
4
  export * from './AgentStatus.js';
5
5
  export * from './AgentStatusConsoleConnection.js';
6
+ export * from './Appliance.js';
7
+ export * from './ApplianceListResponse.js';
6
8
  export * from './ApplicationListResponse.js';
7
9
  export * from './ApplicationOverview.js';
8
10
  export * from './ApplicationVM.js';
@@ -43,6 +45,10 @@ export * from './Host.js';
43
45
  export * from './HostPhysicalNIC.js';
44
46
  export * from './HostStorageAdapter.js';
45
47
  export * from './HostStorageLun.js';
48
+ export * from './ImageUpgradeImage.js';
49
+ export * from './ImageUpgradeResult.js';
50
+ export * from './ImageUpgradeStatus.js';
51
+ export * from './ImageUploadStatus.js';
46
52
  export * from './Infra.js';
47
53
  export * from './InspectionStatus.js';
48
54
  export * from './InspectorStatus.js';
@@ -56,13 +62,16 @@ export * from './OsInfo.js';
56
62
  export * from './PairCapability.js';
57
63
  export * from './PairCapabilityRequest.js';
58
64
  export * from './Process.js';
65
+ export * from './Product.js';
59
66
  export * from './RDMBacking.js';
67
+ export * from './RDMHostLun.js';
60
68
  export * from './RightsizingClusterResponse.js';
61
69
  export * from './RightsizingClusterUtilization.js';
62
70
  export * from './StartForecasterRequest.js';
63
71
  export * from './StartInspectionRequest.js';
64
72
  export * from './StopForecasterPair202Response.js';
65
73
  export * from './StorageIoConfiguration.js';
74
+ export * from './SuccessfulImageUpgrade.js';
66
75
  export * from './UpdateGroupRequest.js';
67
76
  export * from './UpdateInventory.js';
68
77
  export * from './UpdateLabelVMsRequest.js';
@@ -79,6 +88,7 @@ export * from './VirtualMachineDatastore.js';
79
88
  export * from './VirtualMachineDetail.js';
80
89
  export * from './VirtualMachineDevice.js';
81
90
  export * from './VirtualMachineDisk.js';
91
+ export * from './VirtualMachineIdentity.js';
82
92
  export * from './VirtualMachineInspectionConcern.js';
83
93
  export * from './VirtualMachineInspectionResults.js';
84
94
  export * from './VirtualMachineIssue.js';
@@ -419,7 +419,7 @@ export function parseContentDispositionFilename(headers) {
419
419
  function decodeExtValue(value) {
420
420
  const match = value === undefined ? null : /^utf-8'[^']*'(.*)$/i.exec(value);
421
421
  try {
422
- return match ? decodeURIComponent(match[1]) : undefined;
422
+ return (match === null || match === void 0 ? void 0 : match[1]) !== undefined ? decodeURIComponent(match[1]) : undefined;
423
423
  }
424
424
  catch (_a) {
425
425
  return undefined;
@@ -431,13 +431,14 @@ function decodeExtValue(value) {
431
431
  * backslash escapes resolved, and the first occurrence of a name wins.
432
432
  */
433
433
  function parseHeaderParameters(value) {
434
+ var _a, _b;
434
435
  const params = new Map();
435
436
  const parameter = /(?:^|;)\s*([^=;]+?)\s*=\s*(?:"((?:[^"\\]|\\.)*)"?|([^;]*))/g;
436
437
  let match;
437
438
  while ((match = parameter.exec(value)) !== null) {
438
- const name = match[1].toLowerCase();
439
+ const name = ((_a = match[1]) !== null && _a !== void 0 ? _a : '').toLowerCase();
439
440
  if (!params.has(name)) {
440
- params.set(name, match[2] !== undefined ? match[2].replace(/\\(.)/g, '$1') : match[3].trim());
441
+ params.set(name, match[2] !== undefined ? match[2].replace(/\\(.)/g, '$1') : ((_b = match[3]) !== null && _b !== void 0 ? _b : '').trim());
441
442
  }
442
443
  }
443
444
  return params;
@@ -9,6 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import type { ImageUpgradeStatus } from './ImageUpgradeStatus.js';
12
13
  import type { AgentStatusConsoleConnection } from './AgentStatusConsoleConnection.js';
13
14
  /**
14
15
  *
@@ -28,6 +29,10 @@ export interface AgentStatus {
28
29
  * RVTool mode enabled
29
30
  */
30
31
  rvtoolsModeEnabled?: boolean;
32
+ /**
33
+ * Always present in both connected and disconnected modes, including while the console is unreachable. Includes upload activity and the last host image upgrade result. Image upgrade status errors do not fail the agent-status response.
34
+ */
35
+ imageUpgradeStatus: ImageUpgradeStatus;
31
36
  }
32
37
  /**
33
38
  * @export
@@ -19,6 +19,7 @@ exports.AgentStatusFromJSON = AgentStatusFromJSON;
19
19
  exports.AgentStatusFromJSONTyped = AgentStatusFromJSONTyped;
20
20
  exports.AgentStatusToJSON = AgentStatusToJSON;
21
21
  exports.AgentStatusToJSONTyped = AgentStatusToJSONTyped;
22
+ const ImageUpgradeStatus_js_1 = require("./ImageUpgradeStatus.js");
22
23
  const AgentStatusConsoleConnection_js_1 = require("./AgentStatusConsoleConnection.js");
23
24
  /**
24
25
  * @export
@@ -35,6 +36,8 @@ function instanceOfAgentStatus(value) {
35
36
  return false;
36
37
  if (!('consoleConnection' in value) || value['consoleConnection'] === undefined)
37
38
  return false;
39
+ if (!('imageUpgradeStatus' in value) || value['imageUpgradeStatus'] === undefined)
40
+ return false;
38
41
  return true;
39
42
  }
40
43
  function AgentStatusFromJSON(json) {
@@ -48,6 +51,7 @@ function AgentStatusFromJSONTyped(json, ignoreDiscriminator) {
48
51
  'mode': json['mode'],
49
52
  'consoleConnection': (0, AgentStatusConsoleConnection_js_1.AgentStatusConsoleConnectionFromJSON)(json['consoleConnection']),
50
53
  'rvtoolsModeEnabled': json['rvtoolsModeEnabled'] == null ? undefined : json['rvtoolsModeEnabled'],
54
+ 'imageUpgradeStatus': (0, ImageUpgradeStatus_js_1.ImageUpgradeStatusFromJSON)(json['imageUpgradeStatus']),
51
55
  };
52
56
  }
53
57
  function AgentStatusToJSON(json) {
@@ -61,5 +65,6 @@ function AgentStatusToJSONTyped(value, ignoreDiscriminator = false) {
61
65
  'mode': value['mode'],
62
66
  'consoleConnection': (0, AgentStatusConsoleConnection_js_1.AgentStatusConsoleConnectionToJSON)(value['consoleConnection']),
63
67
  'rvtoolsModeEnabled': value['rvtoolsModeEnabled'],
68
+ 'imageUpgradeStatus': (0, ImageUpgradeStatus_js_1.ImageUpgradeStatusToJSON)(value['imageUpgradeStatus']),
64
69
  };
65
70
  }
@@ -0,0 +1,51 @@
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
+ import type { VirtualMachineIdentity } from './VirtualMachineIdentity.js';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface Appliance
17
+ */
18
+ export interface Appliance {
19
+ /**
20
+ * Appliance product name
21
+ */
22
+ name: string;
23
+ /**
24
+ * Appliance vendor; defaults to Unknown when not reported
25
+ */
26
+ vendor: string;
27
+ /**
28
+ * Appliance product version; defaults to empty when not reported
29
+ */
30
+ version: string;
31
+ /**
32
+ *
33
+ */
34
+ confidence: number;
35
+ /**
36
+ * Number of VMs running this appliance
37
+ */
38
+ vmCount: number;
39
+ /**
40
+ *
41
+ */
42
+ vms: Array<VirtualMachineIdentity>;
43
+ }
44
+ /**
45
+ * Check if a given object implements the Appliance interface.
46
+ */
47
+ export declare function instanceOfAppliance(value: object): value is Appliance;
48
+ export declare function ApplianceFromJSON(json: any): Appliance;
49
+ export declare function ApplianceFromJSONTyped(json: any, ignoreDiscriminator: boolean): Appliance;
50
+ export declare function ApplianceToJSON(json: any): Appliance;
51
+ export declare function ApplianceToJSONTyped(value?: Appliance | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,71 @@
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.instanceOfAppliance = instanceOfAppliance;
17
+ exports.ApplianceFromJSON = ApplianceFromJSON;
18
+ exports.ApplianceFromJSONTyped = ApplianceFromJSONTyped;
19
+ exports.ApplianceToJSON = ApplianceToJSON;
20
+ exports.ApplianceToJSONTyped = ApplianceToJSONTyped;
21
+ const VirtualMachineIdentity_js_1 = require("./VirtualMachineIdentity.js");
22
+ /**
23
+ * Check if a given object implements the Appliance interface.
24
+ */
25
+ function instanceOfAppliance(value) {
26
+ if (!('name' in value) || value['name'] === undefined)
27
+ return false;
28
+ if (!('vendor' in value) || value['vendor'] === undefined)
29
+ return false;
30
+ if (!('version' in value) || value['version'] === undefined)
31
+ return false;
32
+ if (!('confidence' in value) || value['confidence'] === undefined)
33
+ return false;
34
+ if (!('vmCount' in value) || value['vmCount'] === undefined)
35
+ return false;
36
+ if (!('vms' in value) || value['vms'] === undefined)
37
+ return false;
38
+ return true;
39
+ }
40
+ function ApplianceFromJSON(json) {
41
+ return ApplianceFromJSONTyped(json, false);
42
+ }
43
+ function ApplianceFromJSONTyped(json, ignoreDiscriminator) {
44
+ if (json == null) {
45
+ return json;
46
+ }
47
+ return {
48
+ 'name': json['name'],
49
+ 'vendor': json['vendor'],
50
+ 'version': json['version'],
51
+ 'confidence': json['confidence'],
52
+ 'vmCount': json['vmCount'],
53
+ 'vms': (json['vms'].map(VirtualMachineIdentity_js_1.VirtualMachineIdentityFromJSON)),
54
+ };
55
+ }
56
+ function ApplianceToJSON(json) {
57
+ return ApplianceToJSONTyped(json, false);
58
+ }
59
+ function ApplianceToJSONTyped(value, ignoreDiscriminator = false) {
60
+ if (value == null) {
61
+ return value;
62
+ }
63
+ return {
64
+ 'name': value['name'],
65
+ 'vendor': value['vendor'],
66
+ 'version': value['version'],
67
+ 'confidence': value['confidence'],
68
+ 'vmCount': value['vmCount'],
69
+ 'vms': (value['vms'].map(VirtualMachineIdentity_js_1.VirtualMachineIdentityToJSON)),
70
+ };
71
+ }
@@ -0,0 +1,31 @@
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
+ import type { Appliance } from './Appliance.js';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface ApplianceListResponse
17
+ */
18
+ export interface ApplianceListResponse {
19
+ /**
20
+ *
21
+ */
22
+ appliances: Array<Appliance>;
23
+ }
24
+ /**
25
+ * Check if a given object implements the ApplianceListResponse interface.
26
+ */
27
+ export declare function instanceOfApplianceListResponse(value: object): value is ApplianceListResponse;
28
+ export declare function ApplianceListResponseFromJSON(json: any): ApplianceListResponse;
29
+ export declare function ApplianceListResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApplianceListResponse;
30
+ export declare function ApplianceListResponseToJSON(json: any): ApplianceListResponse;
31
+ export declare function ApplianceListResponseToJSONTyped(value?: ApplianceListResponse | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,51 @@
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.instanceOfApplianceListResponse = instanceOfApplianceListResponse;
17
+ exports.ApplianceListResponseFromJSON = ApplianceListResponseFromJSON;
18
+ exports.ApplianceListResponseFromJSONTyped = ApplianceListResponseFromJSONTyped;
19
+ exports.ApplianceListResponseToJSON = ApplianceListResponseToJSON;
20
+ exports.ApplianceListResponseToJSONTyped = ApplianceListResponseToJSONTyped;
21
+ const Appliance_js_1 = require("./Appliance.js");
22
+ /**
23
+ * Check if a given object implements the ApplianceListResponse interface.
24
+ */
25
+ function instanceOfApplianceListResponse(value) {
26
+ if (!('appliances' in value) || value['appliances'] === undefined)
27
+ return false;
28
+ return true;
29
+ }
30
+ function ApplianceListResponseFromJSON(json) {
31
+ return ApplianceListResponseFromJSONTyped(json, false);
32
+ }
33
+ function ApplianceListResponseFromJSONTyped(json, ignoreDiscriminator) {
34
+ if (json == null) {
35
+ return json;
36
+ }
37
+ return {
38
+ 'appliances': (json['appliances'].map(Appliance_js_1.ApplianceFromJSON)),
39
+ };
40
+ }
41
+ function ApplianceListResponseToJSON(json) {
42
+ return ApplianceListResponseToJSONTyped(json, false);
43
+ }
44
+ function ApplianceListResponseToJSONTyped(value, ignoreDiscriminator = false) {
45
+ if (value == null) {
46
+ return value;
47
+ }
48
+ return {
49
+ 'appliances': (value['appliances'].map(Appliance_js_1.ApplianceToJSON)),
50
+ };
51
+ }
@@ -24,6 +24,22 @@ export interface ApplicationOverview {
24
24
  * Application description
25
25
  */
26
26
  description: string;
27
+ /**
28
+ * Application vendor
29
+ */
30
+ vendor: string;
31
+ /**
32
+ * Application category
33
+ */
34
+ category: string;
35
+ /**
36
+ * Detection confidence percentage; defaults to 0 when omitted
37
+ */
38
+ confidence?: number;
39
+ /**
40
+ * Whether the application has a known container deployment option
41
+ */
42
+ containerizationCandidate?: boolean;
27
43
  /**
28
44
  * Number of VMs running this application
29
45
  */
@@ -27,6 +27,10 @@ function instanceOfApplicationOverview(value) {
27
27
  return false;
28
28
  if (!('description' in value) || value['description'] === undefined)
29
29
  return false;
30
+ if (!('vendor' in value) || value['vendor'] === undefined)
31
+ return false;
32
+ if (!('category' in value) || value['category'] === undefined)
33
+ return false;
30
34
  if (!('vmCount' in value) || value['vmCount'] === undefined)
31
35
  return false;
32
36
  if (!('vms' in value) || value['vms'] === undefined)
@@ -43,6 +47,10 @@ function ApplicationOverviewFromJSONTyped(json, ignoreDiscriminator) {
43
47
  return {
44
48
  'name': json['name'],
45
49
  'description': json['description'],
50
+ 'vendor': json['vendor'],
51
+ 'category': json['category'],
52
+ 'confidence': json['confidence'] == null ? undefined : json['confidence'],
53
+ 'containerizationCandidate': json['containerizationCandidate'] == null ? undefined : json['containerizationCandidate'],
46
54
  'vmCount': json['vmCount'],
47
55
  'vms': (json['vms'].map(ApplicationVM_js_1.ApplicationVMFromJSON)),
48
56
  };
@@ -57,6 +65,10 @@ function ApplicationOverviewToJSONTyped(value, ignoreDiscriminator = false) {
57
65
  return {
58
66
  'name': value['name'],
59
67
  'description': value['description'],
68
+ 'vendor': value['vendor'],
69
+ 'category': value['category'],
70
+ 'confidence': value['confidence'],
71
+ 'containerizationCandidate': value['containerizationCandidate'],
60
72
  'vmCount': value['vmCount'],
61
73
  'vms': (value['vms'].map(ApplicationVM_js_1.ApplicationVMToJSON)),
62
74
  };
@@ -29,6 +29,22 @@ export interface Host {
29
29
  *
30
30
  */
31
31
  model: string;
32
+ /**
33
+ * Source datacenter name, when available.
34
+ */
35
+ datacenter?: string;
36
+ /**
37
+ * Source cluster name; omitted for standalone hosts.
38
+ */
39
+ cluster?: string;
40
+ /**
41
+ * Source-reported CPU model, when available.
42
+ */
43
+ cpuModel?: string;
44
+ /**
45
+ * Source-reported host hardware serial or service tag, when available.
46
+ */
47
+ serialNumber?: string;
32
48
  /**
33
49
  * Number of CPU cores
34
50
  */
@@ -41,6 +41,10 @@ function HostFromJSONTyped(json, ignoreDiscriminator) {
41
41
  'id': json['id'] == null ? undefined : json['id'],
42
42
  'vendor': json['vendor'],
43
43
  'model': json['model'],
44
+ 'datacenter': json['datacenter'] == null ? undefined : json['datacenter'],
45
+ 'cluster': json['cluster'] == null ? undefined : json['cluster'],
46
+ 'cpuModel': json['cpuModel'] == null ? undefined : json['cpuModel'],
47
+ 'serialNumber': json['serialNumber'] == null ? undefined : json['serialNumber'],
44
48
  'cpuCores': json['cpuCores'] === undefined ? undefined : json['cpuCores'] === null ? null : json['cpuCores'],
45
49
  'cpuSockets': json['cpuSockets'] === undefined ? undefined : json['cpuSockets'] === null ? null : json['cpuSockets'],
46
50
  'memoryMB': json['memoryMB'] === undefined ? undefined : json['memoryMB'] === null ? null : json['memoryMB'],
@@ -61,6 +65,10 @@ function HostToJSONTyped(value, ignoreDiscriminator = false) {
61
65
  'id': value['id'],
62
66
  'vendor': value['vendor'],
63
67
  'model': value['model'],
68
+ 'datacenter': value['datacenter'],
69
+ 'cluster': value['cluster'],
70
+ 'cpuModel': value['cpuModel'],
71
+ 'serialNumber': value['serialNumber'],
64
72
  'cpuCores': value['cpuCores'],
65
73
  'cpuSockets': value['cpuSockets'],
66
74
  'memoryMB': value['memoryMB'],
@@ -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 ImageUpgradeImage
16
+ */
17
+ export interface ImageUpgradeImage {
18
+ /**
19
+ *
20
+ */
21
+ version: string;
22
+ /**
23
+ *
24
+ */
25
+ digest: string;
26
+ }
27
+ /**
28
+ * Check if a given object implements the ImageUpgradeImage interface.
29
+ */
30
+ export declare function instanceOfImageUpgradeImage(value: object): value is ImageUpgradeImage;
31
+ export declare function ImageUpgradeImageFromJSON(json: any): ImageUpgradeImage;
32
+ export declare function ImageUpgradeImageFromJSONTyped(json: any, ignoreDiscriminator: boolean): ImageUpgradeImage;
33
+ export declare function ImageUpgradeImageToJSON(json: any): ImageUpgradeImage;
34
+ export declare function ImageUpgradeImageToJSONTyped(value?: ImageUpgradeImage | 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.instanceOfImageUpgradeImage = instanceOfImageUpgradeImage;
17
+ exports.ImageUpgradeImageFromJSON = ImageUpgradeImageFromJSON;
18
+ exports.ImageUpgradeImageFromJSONTyped = ImageUpgradeImageFromJSONTyped;
19
+ exports.ImageUpgradeImageToJSON = ImageUpgradeImageToJSON;
20
+ exports.ImageUpgradeImageToJSONTyped = ImageUpgradeImageToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the ImageUpgradeImage interface.
23
+ */
24
+ function instanceOfImageUpgradeImage(value) {
25
+ if (!('version' in value) || value['version'] === undefined)
26
+ return false;
27
+ if (!('digest' in value) || value['digest'] === undefined)
28
+ return false;
29
+ return true;
30
+ }
31
+ function ImageUpgradeImageFromJSON(json) {
32
+ return ImageUpgradeImageFromJSONTyped(json, false);
33
+ }
34
+ function ImageUpgradeImageFromJSONTyped(json, ignoreDiscriminator) {
35
+ if (json == null) {
36
+ return json;
37
+ }
38
+ return {
39
+ 'version': json['version'],
40
+ 'digest': json['digest'],
41
+ };
42
+ }
43
+ function ImageUpgradeImageToJSON(json) {
44
+ return ImageUpgradeImageToJSONTyped(json, false);
45
+ }
46
+ function ImageUpgradeImageToJSONTyped(value, ignoreDiscriminator = false) {
47
+ if (value == null) {
48
+ return value;
49
+ }
50
+ return {
51
+ 'version': value['version'],
52
+ 'digest': value['digest'],
53
+ };
54
+ }