@openshift-migration-advisor/agent-sdk 0.33.1-84c734aba511 → 0.33.1-d086ee06be70

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 (122) hide show
  1. package/.openapi-generator/FILES +26 -0
  2. package/README.md +20 -2
  3. package/dist/apis/AppliancesApi.d.ts +194 -0
  4. package/dist/apis/AppliancesApi.js +201 -0
  5. package/dist/apis/GroupsApi.d.ts +6 -6
  6. package/dist/apis/RecommendationsApi.d.ts +64 -0
  7. package/dist/apis/RecommendationsApi.js +74 -0
  8. package/dist/apis/VirtualMachinesApi.d.ts +6 -6
  9. package/dist/apis/index.d.ts +1 -0
  10. package/dist/apis/index.js +1 -0
  11. package/dist/esm/apis/AppliancesApi.d.ts +194 -0
  12. package/dist/esm/apis/AppliancesApi.js +201 -0
  13. package/dist/esm/apis/GroupsApi.d.ts +6 -6
  14. package/dist/esm/apis/RecommendationsApi.d.ts +64 -0
  15. package/dist/esm/apis/RecommendationsApi.js +70 -0
  16. package/dist/esm/apis/VirtualMachinesApi.d.ts +6 -6
  17. package/dist/esm/apis/index.d.ts +1 -0
  18. package/dist/esm/apis/index.js +1 -0
  19. package/dist/esm/models/ApplianceRule.d.ts +90 -0
  20. package/dist/esm/models/ApplianceRule.js +98 -0
  21. package/dist/esm/models/ApplianceRuleCondition.d.ts +42 -0
  22. package/dist/esm/models/ApplianceRuleCondition.js +48 -0
  23. package/dist/esm/models/ApplianceRuleFunction.d.ts +37 -0
  24. package/dist/esm/models/ApplianceRuleFunction.js +46 -0
  25. package/dist/esm/models/ApplianceRuleListResponse.d.ts +31 -0
  26. package/dist/esm/models/ApplianceRuleListResponse.js +44 -0
  27. package/dist/esm/models/ApplianceRuleRequest.d.ts +74 -0
  28. package/dist/esm/models/ApplianceRuleRequest.js +85 -0
  29. package/dist/esm/models/ComplexityDiskScoreEntry.d.ts +39 -0
  30. package/dist/esm/models/ComplexityDiskScoreEntry.js +51 -0
  31. package/dist/esm/models/ComplexityOSNameEntry.d.ts +40 -0
  32. package/dist/esm/models/ComplexityOSNameEntry.js +51 -0
  33. package/dist/esm/models/ComplexityOSScoreEntry.d.ts +35 -0
  34. package/dist/esm/models/ComplexityOSScoreEntry.js +47 -0
  35. package/dist/esm/models/Datastore.d.ts +9 -0
  36. package/dist/esm/models/Datastore.js +5 -0
  37. package/dist/esm/models/DiskGeometryCondition.d.ts +47 -0
  38. package/dist/esm/models/DiskGeometryCondition.js +58 -0
  39. package/dist/esm/models/MigrationComplexityRequest.d.ts +30 -0
  40. package/dist/esm/models/MigrationComplexityRequest.js +41 -0
  41. package/dist/esm/models/MigrationComplexityResponse.d.ts +58 -0
  42. package/dist/esm/models/MigrationComplexityResponse.js +62 -0
  43. package/dist/esm/models/StorageArray.d.ts +42 -0
  44. package/dist/esm/models/StorageArray.js +47 -0
  45. package/dist/esm/models/VirtualMachineDatastore.d.ts +9 -0
  46. package/dist/esm/models/VirtualMachineDatastore.js +5 -0
  47. package/dist/esm/models/index.d.ts +12 -0
  48. package/dist/esm/models/index.js +12 -0
  49. package/dist/esm/runtime.d.ts +3 -1
  50. package/dist/esm/runtime.js +1 -1
  51. package/dist/models/ApplianceRule.d.ts +90 -0
  52. package/dist/models/ApplianceRule.js +106 -0
  53. package/dist/models/ApplianceRuleCondition.d.ts +42 -0
  54. package/dist/models/ApplianceRuleCondition.js +55 -0
  55. package/dist/models/ApplianceRuleFunction.d.ts +37 -0
  56. package/dist/models/ApplianceRuleFunction.js +53 -0
  57. package/dist/models/ApplianceRuleListResponse.d.ts +31 -0
  58. package/dist/models/ApplianceRuleListResponse.js +51 -0
  59. package/dist/models/ApplianceRuleRequest.d.ts +74 -0
  60. package/dist/models/ApplianceRuleRequest.js +93 -0
  61. package/dist/models/ComplexityDiskScoreEntry.d.ts +39 -0
  62. package/dist/models/ComplexityDiskScoreEntry.js +58 -0
  63. package/dist/models/ComplexityOSNameEntry.d.ts +40 -0
  64. package/dist/models/ComplexityOSNameEntry.js +58 -0
  65. package/dist/models/ComplexityOSScoreEntry.d.ts +35 -0
  66. package/dist/models/ComplexityOSScoreEntry.js +54 -0
  67. package/dist/models/Datastore.d.ts +9 -0
  68. package/dist/models/Datastore.js +5 -0
  69. package/dist/models/DiskGeometryCondition.d.ts +47 -0
  70. package/dist/models/DiskGeometryCondition.js +66 -0
  71. package/dist/models/MigrationComplexityRequest.d.ts +30 -0
  72. package/dist/models/MigrationComplexityRequest.js +48 -0
  73. package/dist/models/MigrationComplexityResponse.d.ts +58 -0
  74. package/dist/models/MigrationComplexityResponse.js +69 -0
  75. package/dist/models/StorageArray.d.ts +42 -0
  76. package/dist/models/StorageArray.js +54 -0
  77. package/dist/models/VirtualMachineDatastore.d.ts +9 -0
  78. package/dist/models/VirtualMachineDatastore.js +5 -0
  79. package/dist/models/index.d.ts +12 -0
  80. package/dist/models/index.js +12 -0
  81. package/dist/runtime.d.ts +3 -1
  82. package/dist/runtime.js +1 -1
  83. package/docs/ApplianceRule.md +50 -0
  84. package/docs/ApplianceRuleCondition.md +39 -0
  85. package/docs/ApplianceRuleFunction.md +37 -0
  86. package/docs/ApplianceRuleListResponse.md +34 -0
  87. package/docs/ApplianceRuleRequest.md +46 -0
  88. package/docs/AppliancesApi.md +338 -0
  89. package/docs/ComplexityDiskScoreEntry.md +39 -0
  90. package/docs/ComplexityOSNameEntry.md +39 -0
  91. package/docs/ComplexityOSScoreEntry.md +37 -0
  92. package/docs/Datastore.md +4 -0
  93. package/docs/DiskGeometryCondition.md +38 -0
  94. package/docs/GroupsApi.md +4 -4
  95. package/docs/MigrationComplexityRequest.md +35 -0
  96. package/docs/MigrationComplexityResponse.md +43 -0
  97. package/docs/RecommendationsApi.md +79 -0
  98. package/docs/StorageArray.md +41 -0
  99. package/docs/VirtualMachineDatastore.md +4 -0
  100. package/docs/VirtualMachinesApi.md +4 -4
  101. package/package.json +1 -1
  102. package/src/apis/AppliancesApi.ts +393 -0
  103. package/src/apis/GroupsApi.ts +6 -6
  104. package/src/apis/RecommendationsApi.ts +117 -0
  105. package/src/apis/VirtualMachinesApi.ts +6 -6
  106. package/src/apis/index.ts +1 -0
  107. package/src/models/ApplianceRule.ts +159 -0
  108. package/src/models/ApplianceRuleCondition.ts +87 -0
  109. package/src/models/ApplianceRuleFunction.ts +80 -0
  110. package/src/models/ApplianceRuleListResponse.ts +72 -0
  111. package/src/models/ApplianceRuleRequest.ts +137 -0
  112. package/src/models/ComplexityDiskScoreEntry.ts +79 -0
  113. package/src/models/ComplexityOSNameEntry.ts +80 -0
  114. package/src/models/ComplexityOSScoreEntry.ts +72 -0
  115. package/src/models/Datastore.ts +19 -0
  116. package/src/models/DiskGeometryCondition.ts +90 -0
  117. package/src/models/MigrationComplexityRequest.ts +63 -0
  118. package/src/models/MigrationComplexityResponse.ts +119 -0
  119. package/src/models/StorageArray.ts +81 -0
  120. package/src/models/VirtualMachineDatastore.ts +20 -0
  121. package/src/models/index.ts +12 -0
  122. package/src/runtime.ts +8 -1
@@ -0,0 +1,58 @@
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.instanceOfComplexityDiskScoreEntry = instanceOfComplexityDiskScoreEntry;
17
+ exports.ComplexityDiskScoreEntryFromJSON = ComplexityDiskScoreEntryFromJSON;
18
+ exports.ComplexityDiskScoreEntryFromJSONTyped = ComplexityDiskScoreEntryFromJSONTyped;
19
+ exports.ComplexityDiskScoreEntryToJSON = ComplexityDiskScoreEntryToJSON;
20
+ exports.ComplexityDiskScoreEntryToJSONTyped = ComplexityDiskScoreEntryToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the ComplexityDiskScoreEntry interface.
23
+ */
24
+ function instanceOfComplexityDiskScoreEntry(value) {
25
+ if (!('score' in value) || value['score'] === undefined)
26
+ return false;
27
+ if (!('vmCount' in value) || value['vmCount'] === undefined)
28
+ return false;
29
+ if (!('totalSizeTB' in value) || value['totalSizeTB'] === undefined)
30
+ return false;
31
+ return true;
32
+ }
33
+ function ComplexityDiskScoreEntryFromJSON(json) {
34
+ return ComplexityDiskScoreEntryFromJSONTyped(json, false);
35
+ }
36
+ function ComplexityDiskScoreEntryFromJSONTyped(json, ignoreDiscriminator) {
37
+ if (json == null) {
38
+ return json;
39
+ }
40
+ return {
41
+ 'score': json['score'],
42
+ 'vmCount': json['vmCount'],
43
+ 'totalSizeTB': json['totalSizeTB'],
44
+ };
45
+ }
46
+ function ComplexityDiskScoreEntryToJSON(json) {
47
+ return ComplexityDiskScoreEntryToJSONTyped(json, false);
48
+ }
49
+ function ComplexityDiskScoreEntryToJSONTyped(value, ignoreDiscriminator = false) {
50
+ if (value == null) {
51
+ return value;
52
+ }
53
+ return {
54
+ 'score': value['score'],
55
+ 'vmCount': value['vmCount'],
56
+ 'totalSizeTB': value['totalSizeTB'],
57
+ };
58
+ }
@@ -0,0 +1,40 @@
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
+ * One entry in the per-OS-name complexity breakdown.
14
+ * @export
15
+ * @interface ComplexityOSNameEntry
16
+ */
17
+ export interface ComplexityOSNameEntry {
18
+ /**
19
+ * The OS name exactly as it appears in vms.osInfo (e.g. "Red Hat Enterprise Linux 9 (64-bit)").
20
+ *
21
+ */
22
+ osName: string;
23
+ /**
24
+ * Complexity score assigned by ClassifyOS. 0 = unknown, 1 = least complex, 4 = most complex.
25
+ *
26
+ */
27
+ score: number;
28
+ /**
29
+ * Number of VMs running this OS.
30
+ */
31
+ vmCount: number;
32
+ }
33
+ /**
34
+ * Check if a given object implements the ComplexityOSNameEntry interface.
35
+ */
36
+ export declare function instanceOfComplexityOSNameEntry(value: object): value is ComplexityOSNameEntry;
37
+ export declare function ComplexityOSNameEntryFromJSON(json: any): ComplexityOSNameEntry;
38
+ export declare function ComplexityOSNameEntryFromJSONTyped(json: any, ignoreDiscriminator: boolean): ComplexityOSNameEntry;
39
+ export declare function ComplexityOSNameEntryToJSON(json: any): ComplexityOSNameEntry;
40
+ export declare function ComplexityOSNameEntryToJSONTyped(value?: ComplexityOSNameEntry | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,58 @@
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.instanceOfComplexityOSNameEntry = instanceOfComplexityOSNameEntry;
17
+ exports.ComplexityOSNameEntryFromJSON = ComplexityOSNameEntryFromJSON;
18
+ exports.ComplexityOSNameEntryFromJSONTyped = ComplexityOSNameEntryFromJSONTyped;
19
+ exports.ComplexityOSNameEntryToJSON = ComplexityOSNameEntryToJSON;
20
+ exports.ComplexityOSNameEntryToJSONTyped = ComplexityOSNameEntryToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the ComplexityOSNameEntry interface.
23
+ */
24
+ function instanceOfComplexityOSNameEntry(value) {
25
+ if (!('osName' in value) || value['osName'] === undefined)
26
+ return false;
27
+ if (!('score' in value) || value['score'] === undefined)
28
+ return false;
29
+ if (!('vmCount' in value) || value['vmCount'] === undefined)
30
+ return false;
31
+ return true;
32
+ }
33
+ function ComplexityOSNameEntryFromJSON(json) {
34
+ return ComplexityOSNameEntryFromJSONTyped(json, false);
35
+ }
36
+ function ComplexityOSNameEntryFromJSONTyped(json, ignoreDiscriminator) {
37
+ if (json == null) {
38
+ return json;
39
+ }
40
+ return {
41
+ 'osName': json['osName'],
42
+ 'score': json['score'],
43
+ 'vmCount': json['vmCount'],
44
+ };
45
+ }
46
+ function ComplexityOSNameEntryToJSON(json) {
47
+ return ComplexityOSNameEntryToJSONTyped(json, false);
48
+ }
49
+ function ComplexityOSNameEntryToJSONTyped(value, ignoreDiscriminator = false) {
50
+ if (value == null) {
51
+ return value;
52
+ }
53
+ return {
54
+ 'osName': value['osName'],
55
+ 'score': value['score'],
56
+ 'vmCount': value['vmCount'],
57
+ };
58
+ }
@@ -0,0 +1,35 @@
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
+ * One entry in the OS complexity breakdown
14
+ * @export
15
+ * @interface ComplexityOSScoreEntry
16
+ */
17
+ export interface ComplexityOSScoreEntry {
18
+ /**
19
+ * Complexity score from 0 to 4, where 1 indicates the least complex OS to migrate and 0 indicates an OS with unknown complexity.
20
+ *
21
+ */
22
+ score: number;
23
+ /**
24
+ * Number of VMs at this complexity score
25
+ */
26
+ vmCount: number;
27
+ }
28
+ /**
29
+ * Check if a given object implements the ComplexityOSScoreEntry interface.
30
+ */
31
+ export declare function instanceOfComplexityOSScoreEntry(value: object): value is ComplexityOSScoreEntry;
32
+ export declare function ComplexityOSScoreEntryFromJSON(json: any): ComplexityOSScoreEntry;
33
+ export declare function ComplexityOSScoreEntryFromJSONTyped(json: any, ignoreDiscriminator: boolean): ComplexityOSScoreEntry;
34
+ export declare function ComplexityOSScoreEntryToJSON(json: any): ComplexityOSScoreEntry;
35
+ export declare function ComplexityOSScoreEntryToJSONTyped(value?: ComplexityOSScoreEntry | 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.instanceOfComplexityOSScoreEntry = instanceOfComplexityOSScoreEntry;
17
+ exports.ComplexityOSScoreEntryFromJSON = ComplexityOSScoreEntryFromJSON;
18
+ exports.ComplexityOSScoreEntryFromJSONTyped = ComplexityOSScoreEntryFromJSONTyped;
19
+ exports.ComplexityOSScoreEntryToJSON = ComplexityOSScoreEntryToJSON;
20
+ exports.ComplexityOSScoreEntryToJSONTyped = ComplexityOSScoreEntryToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the ComplexityOSScoreEntry interface.
23
+ */
24
+ function instanceOfComplexityOSScoreEntry(value) {
25
+ if (!('score' in value) || value['score'] === undefined)
26
+ return false;
27
+ if (!('vmCount' in value) || value['vmCount'] === undefined)
28
+ return false;
29
+ return true;
30
+ }
31
+ function ComplexityOSScoreEntryFromJSON(json) {
32
+ return ComplexityOSScoreEntryFromJSONTyped(json, false);
33
+ }
34
+ function ComplexityOSScoreEntryFromJSONTyped(json, ignoreDiscriminator) {
35
+ if (json == null) {
36
+ return json;
37
+ }
38
+ return {
39
+ 'score': json['score'],
40
+ 'vmCount': json['vmCount'],
41
+ };
42
+ }
43
+ function ComplexityOSScoreEntryToJSON(json) {
44
+ return ComplexityOSScoreEntryToJSONTyped(json, false);
45
+ }
46
+ function ComplexityOSScoreEntryToJSONTyped(value, ignoreDiscriminator = false) {
47
+ if (value == null) {
48
+ return value;
49
+ }
50
+ return {
51
+ 'score': value['score'],
52
+ 'vmCount': value['vmCount'],
53
+ };
54
+ }
@@ -10,12 +10,21 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import type { StorageIoConfiguration } from './StorageIoConfiguration.js';
13
+ import type { StorageArray } from './StorageArray.js';
13
14
  /**
14
15
  *
15
16
  * @export
16
17
  * @interface Datastore
17
18
  */
18
19
  export interface Datastore {
20
+ /**
21
+ * Source-reported VASA arrays; absence does not establish that the datastore has no array
22
+ */
23
+ storageArrays?: Array<StorageArray>;
24
+ /**
25
+ * Source storage-container identifier, distinct from array UUID and protocol-endpoint identity
26
+ */
27
+ storageContainerId?: string;
19
28
  /**
20
29
  *
21
30
  */
@@ -20,6 +20,7 @@ exports.DatastoreFromJSONTyped = DatastoreFromJSONTyped;
20
20
  exports.DatastoreToJSON = DatastoreToJSON;
21
21
  exports.DatastoreToJSONTyped = DatastoreToJSONTyped;
22
22
  const StorageIoConfiguration_js_1 = require("./StorageIoConfiguration.js");
23
+ const StorageArray_js_1 = require("./StorageArray.js");
23
24
  /**
24
25
  * @export
25
26
  */
@@ -58,6 +59,8 @@ function DatastoreFromJSONTyped(json, ignoreDiscriminator) {
58
59
  return json;
59
60
  }
60
61
  return {
62
+ 'storageArrays': json['storageArrays'] == null ? undefined : (json['storageArrays'].map(StorageArray_js_1.StorageArrayFromJSON)),
63
+ 'storageContainerId': json['storageContainerId'] == null ? undefined : json['storageContainerId'],
61
64
  'type': json['type'],
62
65
  'backingDeviceIds': json['backingDeviceIds'] == null ? undefined : json['backingDeviceIds'],
63
66
  'filesystemType': json['filesystemType'] == null ? undefined : json['filesystemType'],
@@ -83,6 +86,8 @@ function DatastoreToJSONTyped(value, ignoreDiscriminator = false) {
83
86
  return value;
84
87
  }
85
88
  return {
89
+ 'storageArrays': value['storageArrays'] == null ? undefined : (value['storageArrays'].map(StorageArray_js_1.StorageArrayToJSON)),
90
+ 'storageContainerId': value['storageContainerId'],
86
91
  'type': value['type'],
87
92
  'backingDeviceIds': value['backingDeviceIds'],
88
93
  'filesystemType': value['filesystemType'],
@@ -0,0 +1,47 @@
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 DiskGeometryCondition
16
+ */
17
+ export interface DiskGeometryCondition {
18
+ /**
19
+ *
20
+ */
21
+ disks: Array<number>;
22
+ /**
23
+ *
24
+ */
25
+ mode: DiskGeometryConditionModeEnum;
26
+ /**
27
+ * Largest difference in MiB allowed between a required disk size and the size of a VM disk. Zero requires the sizes to match exactly.
28
+ *
29
+ */
30
+ tolerance_mib: number;
31
+ }
32
+ /**
33
+ * @export
34
+ */
35
+ export declare const DiskGeometryConditionModeEnum: {
36
+ readonly Exact: "exact";
37
+ readonly Superset: "superset";
38
+ };
39
+ export type DiskGeometryConditionModeEnum = typeof DiskGeometryConditionModeEnum[keyof typeof DiskGeometryConditionModeEnum];
40
+ /**
41
+ * Check if a given object implements the DiskGeometryCondition interface.
42
+ */
43
+ export declare function instanceOfDiskGeometryCondition(value: object): value is DiskGeometryCondition;
44
+ export declare function DiskGeometryConditionFromJSON(json: any): DiskGeometryCondition;
45
+ export declare function DiskGeometryConditionFromJSONTyped(json: any, ignoreDiscriminator: boolean): DiskGeometryCondition;
46
+ export declare function DiskGeometryConditionToJSON(json: any): DiskGeometryCondition;
47
+ export declare function DiskGeometryConditionToJSONTyped(value?: DiskGeometryCondition | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,66 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Assisted Migration Agent API
6
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
+ *
8
+ * The version of the OpenAPI document: 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.DiskGeometryConditionModeEnum = void 0;
17
+ exports.instanceOfDiskGeometryCondition = instanceOfDiskGeometryCondition;
18
+ exports.DiskGeometryConditionFromJSON = DiskGeometryConditionFromJSON;
19
+ exports.DiskGeometryConditionFromJSONTyped = DiskGeometryConditionFromJSONTyped;
20
+ exports.DiskGeometryConditionToJSON = DiskGeometryConditionToJSON;
21
+ exports.DiskGeometryConditionToJSONTyped = DiskGeometryConditionToJSONTyped;
22
+ /**
23
+ * @export
24
+ */
25
+ exports.DiskGeometryConditionModeEnum = {
26
+ Exact: 'exact',
27
+ Superset: 'superset',
28
+ };
29
+ /**
30
+ * Check if a given object implements the DiskGeometryCondition interface.
31
+ */
32
+ function instanceOfDiskGeometryCondition(value) {
33
+ if (!('disks' in value) || value['disks'] === undefined)
34
+ return false;
35
+ if (!('mode' in value) || value['mode'] === undefined)
36
+ return false;
37
+ if (!('tolerance_mib' in value) || value['tolerance_mib'] === undefined)
38
+ return false;
39
+ return true;
40
+ }
41
+ function DiskGeometryConditionFromJSON(json) {
42
+ return DiskGeometryConditionFromJSONTyped(json, false);
43
+ }
44
+ function DiskGeometryConditionFromJSONTyped(json, ignoreDiscriminator) {
45
+ if (json == null) {
46
+ return json;
47
+ }
48
+ return {
49
+ 'disks': json['disks'],
50
+ 'mode': json['mode'],
51
+ 'tolerance_mib': json['tolerance_mib'],
52
+ };
53
+ }
54
+ function DiskGeometryConditionToJSON(json) {
55
+ return DiskGeometryConditionToJSONTyped(json, false);
56
+ }
57
+ function DiskGeometryConditionToJSONTyped(value, ignoreDiscriminator = false) {
58
+ if (value == null) {
59
+ return value;
60
+ }
61
+ return {
62
+ 'disks': value['disks'],
63
+ 'mode': value['mode'],
64
+ 'tolerance_mib': value['tolerance_mib'],
65
+ };
66
+ }
@@ -0,0 +1,30 @@
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
+ * Request payload for calculating migration complexity estimation
14
+ * @export
15
+ * @interface MigrationComplexityRequest
16
+ */
17
+ export interface MigrationComplexityRequest {
18
+ /**
19
+ * Filter by expression
20
+ */
21
+ filterExpression?: string;
22
+ }
23
+ /**
24
+ * Check if a given object implements the MigrationComplexityRequest interface.
25
+ */
26
+ export declare function instanceOfMigrationComplexityRequest(value: object): value is MigrationComplexityRequest;
27
+ export declare function MigrationComplexityRequestFromJSON(json: any): MigrationComplexityRequest;
28
+ export declare function MigrationComplexityRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): MigrationComplexityRequest;
29
+ export declare function MigrationComplexityRequestToJSON(json: any): MigrationComplexityRequest;
30
+ export declare function MigrationComplexityRequestToJSONTyped(value?: MigrationComplexityRequest | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,48 @@
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.instanceOfMigrationComplexityRequest = instanceOfMigrationComplexityRequest;
17
+ exports.MigrationComplexityRequestFromJSON = MigrationComplexityRequestFromJSON;
18
+ exports.MigrationComplexityRequestFromJSONTyped = MigrationComplexityRequestFromJSONTyped;
19
+ exports.MigrationComplexityRequestToJSON = MigrationComplexityRequestToJSON;
20
+ exports.MigrationComplexityRequestToJSONTyped = MigrationComplexityRequestToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the MigrationComplexityRequest interface.
23
+ */
24
+ function instanceOfMigrationComplexityRequest(value) {
25
+ return true;
26
+ }
27
+ function MigrationComplexityRequestFromJSON(json) {
28
+ return MigrationComplexityRequestFromJSONTyped(json, false);
29
+ }
30
+ function MigrationComplexityRequestFromJSONTyped(json, ignoreDiscriminator) {
31
+ if (json == null) {
32
+ return json;
33
+ }
34
+ return {
35
+ 'filterExpression': json['filterExpression'] == null ? undefined : json['filterExpression'],
36
+ };
37
+ }
38
+ function MigrationComplexityRequestToJSON(json) {
39
+ return MigrationComplexityRequestToJSONTyped(json, false);
40
+ }
41
+ function MigrationComplexityRequestToJSONTyped(value, ignoreDiscriminator = false) {
42
+ if (value == null) {
43
+ return value;
44
+ }
45
+ return {
46
+ 'filterExpression': value['filterExpression'],
47
+ };
48
+ }
@@ -0,0 +1,58 @@
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 { ComplexityOSScoreEntry } from './ComplexityOSScoreEntry.js';
13
+ import type { ComplexityOSNameEntry } from './ComplexityOSNameEntry.js';
14
+ import type { ComplexityDiskScoreEntry } from './ComplexityDiskScoreEntry.js';
15
+ /**
16
+ * Migration complexity estimation results
17
+ * @export
18
+ * @interface MigrationComplexityResponse
19
+ */
20
+ export interface MigrationComplexityResponse {
21
+ /**
22
+ * Disk-size complexity scores, one entry per score level (1-4). Score 1 is the least complex disk footprint; score 4 is the most complex. Scores correspond to provisioned disk size: 1 (<=10 TB), 2 (<=20 TB), 3 (<=50 TB), 4 (>50 TB). All four score levels are always present.
23
+ *
24
+ */
25
+ complexityByDisk: Array<ComplexityDiskScoreEntry>;
26
+ /**
27
+ * OS complexity scores, one entry per score level (0-4). Score 1 indicates the least complex OS to migrate; score 0 indicates an OS with unknown complexity. All five score levels are always present.
28
+ *
29
+ */
30
+ complexityByOS: Array<ComplexityOSScoreEntry>;
31
+ /**
32
+ * Static lookup table mapping each disk-size tier label to its numeric complexity score. The content is identical for every cluster and reflects the DiskSizeScores configuration in the complexity package.
33
+ *
34
+ */
35
+ diskSizeRatings: {
36
+ [key: string]: number;
37
+ };
38
+ /**
39
+ * Per-OS-name score for every OS found in this cluster's inventory. Keys are the OS name strings exactly as they appear in vms.osInfo; values are the numeric complexity score assigned by ClassifyOS (0 = unknown, 1-4 = increasing complexity). The map contains one entry per distinct OS name in the cluster, regardless of how many VMs run it.
40
+ *
41
+ */
42
+ osRatings: {
43
+ [key: string]: number;
44
+ };
45
+ /**
46
+ * Per-OS-name complexity breakdown. One entry per distinct OS name found in the cluster's inventory. Each entry carries the OS name string, its numeric complexity score (0–4), and the number of VMs running it.
47
+ *
48
+ */
49
+ complexityByOSName: Array<ComplexityOSNameEntry>;
50
+ }
51
+ /**
52
+ * Check if a given object implements the MigrationComplexityResponse interface.
53
+ */
54
+ export declare function instanceOfMigrationComplexityResponse(value: object): value is MigrationComplexityResponse;
55
+ export declare function MigrationComplexityResponseFromJSON(json: any): MigrationComplexityResponse;
56
+ export declare function MigrationComplexityResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): MigrationComplexityResponse;
57
+ export declare function MigrationComplexityResponseToJSON(json: any): MigrationComplexityResponse;
58
+ export declare function MigrationComplexityResponseToJSONTyped(value?: MigrationComplexityResponse | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,69 @@
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.instanceOfMigrationComplexityResponse = instanceOfMigrationComplexityResponse;
17
+ exports.MigrationComplexityResponseFromJSON = MigrationComplexityResponseFromJSON;
18
+ exports.MigrationComplexityResponseFromJSONTyped = MigrationComplexityResponseFromJSONTyped;
19
+ exports.MigrationComplexityResponseToJSON = MigrationComplexityResponseToJSON;
20
+ exports.MigrationComplexityResponseToJSONTyped = MigrationComplexityResponseToJSONTyped;
21
+ const ComplexityOSScoreEntry_js_1 = require("./ComplexityOSScoreEntry.js");
22
+ const ComplexityOSNameEntry_js_1 = require("./ComplexityOSNameEntry.js");
23
+ const ComplexityDiskScoreEntry_js_1 = require("./ComplexityDiskScoreEntry.js");
24
+ /**
25
+ * Check if a given object implements the MigrationComplexityResponse interface.
26
+ */
27
+ function instanceOfMigrationComplexityResponse(value) {
28
+ if (!('complexityByDisk' in value) || value['complexityByDisk'] === undefined)
29
+ return false;
30
+ if (!('complexityByOS' in value) || value['complexityByOS'] === undefined)
31
+ return false;
32
+ if (!('diskSizeRatings' in value) || value['diskSizeRatings'] === undefined)
33
+ return false;
34
+ if (!('osRatings' in value) || value['osRatings'] === undefined)
35
+ return false;
36
+ if (!('complexityByOSName' in value) || value['complexityByOSName'] === undefined)
37
+ return false;
38
+ return true;
39
+ }
40
+ function MigrationComplexityResponseFromJSON(json) {
41
+ return MigrationComplexityResponseFromJSONTyped(json, false);
42
+ }
43
+ function MigrationComplexityResponseFromJSONTyped(json, ignoreDiscriminator) {
44
+ if (json == null) {
45
+ return json;
46
+ }
47
+ return {
48
+ 'complexityByDisk': (json['complexityByDisk'].map(ComplexityDiskScoreEntry_js_1.ComplexityDiskScoreEntryFromJSON)),
49
+ 'complexityByOS': (json['complexityByOS'].map(ComplexityOSScoreEntry_js_1.ComplexityOSScoreEntryFromJSON)),
50
+ 'diskSizeRatings': json['diskSizeRatings'],
51
+ 'osRatings': json['osRatings'],
52
+ 'complexityByOSName': (json['complexityByOSName'].map(ComplexityOSNameEntry_js_1.ComplexityOSNameEntryFromJSON)),
53
+ };
54
+ }
55
+ function MigrationComplexityResponseToJSON(json) {
56
+ return MigrationComplexityResponseToJSONTyped(json, false);
57
+ }
58
+ function MigrationComplexityResponseToJSONTyped(value, ignoreDiscriminator = false) {
59
+ if (value == null) {
60
+ return value;
61
+ }
62
+ return {
63
+ 'complexityByDisk': (value['complexityByDisk'].map(ComplexityDiskScoreEntry_js_1.ComplexityDiskScoreEntryToJSON)),
64
+ 'complexityByOS': (value['complexityByOS'].map(ComplexityOSScoreEntry_js_1.ComplexityOSScoreEntryToJSON)),
65
+ 'diskSizeRatings': value['diskSizeRatings'],
66
+ 'osRatings': value['osRatings'],
67
+ 'complexityByOSName': (value['complexityByOSName'].map(ComplexityOSNameEntry_js_1.ComplexityOSNameEntryToJSON)),
68
+ };
69
+ }
@@ -0,0 +1,42 @@
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
+ * Authoritative source VASA array identity associated with this datastore; distinct from LUN inquiry metadata and storage-container identity
14
+ * @export
15
+ * @interface StorageArray
16
+ */
17
+ export interface StorageArray {
18
+ /**
19
+ * Array UUID reported by the source, when available
20
+ */
21
+ uuid?: string;
22
+ /**
23
+ *
24
+ */
25
+ name?: string;
26
+ /**
27
+ * VASA vendor ID, not a SCSI inquiry vendor
28
+ */
29
+ vendorId?: string;
30
+ /**
31
+ * VASA model ID, not a SCSI inquiry model
32
+ */
33
+ modelId?: string;
34
+ }
35
+ /**
36
+ * Check if a given object implements the StorageArray interface.
37
+ */
38
+ export declare function instanceOfStorageArray(value: object): value is StorageArray;
39
+ export declare function StorageArrayFromJSON(json: any): StorageArray;
40
+ export declare function StorageArrayFromJSONTyped(json: any, ignoreDiscriminator: boolean): StorageArray;
41
+ export declare function StorageArrayToJSON(json: any): StorageArray;
42
+ export declare function StorageArrayToJSONTyped(value?: StorageArray | null, ignoreDiscriminator?: boolean): any;