@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,137 @@
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
+ import { mapValues } from '../runtime.js';
16
+ import type { ApplianceRuleCondition } from './ApplianceRuleCondition.js';
17
+ import {
18
+ ApplianceRuleConditionFromJSON,
19
+ ApplianceRuleConditionFromJSONTyped,
20
+ ApplianceRuleConditionToJSON,
21
+ ApplianceRuleConditionToJSONTyped,
22
+ } from './ApplianceRuleCondition.js';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface ApplianceRuleRequest
28
+ */
29
+ export interface ApplianceRuleRequest {
30
+ /**
31
+ *
32
+ */
33
+ name: string;
34
+ /**
35
+ *
36
+ */
37
+ vendor: string;
38
+ /**
39
+ *
40
+ */
41
+ category: string;
42
+ /**
43
+ *
44
+ */
45
+ osv_verdict: ApplianceRuleRequestOsvVerdictEnum;
46
+ /**
47
+ *
48
+ */
49
+ max_confidence: ApplianceRuleRequestMaxConfidenceEnum;
50
+ /**
51
+ *
52
+ */
53
+ min_matched: number;
54
+ /**
55
+ *
56
+ */
57
+ conditions: Array<ApplianceRuleCondition>;
58
+ }
59
+
60
+
61
+ /**
62
+ * @export
63
+ */
64
+ export const ApplianceRuleRequestOsvVerdictEnum = {
65
+ Blocked: 'blocked',
66
+ Conditional: 'conditional',
67
+ Supported: 'supported',
68
+ Unknown: 'unknown',
69
+ } as const;
70
+ export type ApplianceRuleRequestOsvVerdictEnum = typeof ApplianceRuleRequestOsvVerdictEnum[keyof typeof ApplianceRuleRequestOsvVerdictEnum];
71
+
72
+ /**
73
+ * @export
74
+ */
75
+ export const ApplianceRuleRequestMaxConfidenceEnum = {
76
+ High: 'high',
77
+ Medium: 'medium',
78
+ Low: 'low',
79
+ } as const;
80
+ export type ApplianceRuleRequestMaxConfidenceEnum = typeof ApplianceRuleRequestMaxConfidenceEnum[keyof typeof ApplianceRuleRequestMaxConfidenceEnum];
81
+
82
+
83
+ /**
84
+ * Check if a given object implements the ApplianceRuleRequest interface.
85
+ */
86
+ export function instanceOfApplianceRuleRequest(value: object): value is ApplianceRuleRequest {
87
+ if (!('name' in value) || value['name'] === undefined) return false;
88
+ if (!('vendor' in value) || value['vendor'] === undefined) return false;
89
+ if (!('category' in value) || value['category'] === undefined) return false;
90
+ if (!('osv_verdict' in value) || value['osv_verdict'] === undefined) return false;
91
+ if (!('max_confidence' in value) || value['max_confidence'] === undefined) return false;
92
+ if (!('min_matched' in value) || value['min_matched'] === undefined) return false;
93
+ if (!('conditions' in value) || value['conditions'] === undefined) return false;
94
+ return true;
95
+ }
96
+
97
+ export function ApplianceRuleRequestFromJSON(json: any): ApplianceRuleRequest {
98
+ return ApplianceRuleRequestFromJSONTyped(json, false);
99
+ }
100
+
101
+ export function ApplianceRuleRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApplianceRuleRequest {
102
+ if (json == null) {
103
+ return json;
104
+ }
105
+ return {
106
+
107
+ 'name': json['name'],
108
+ 'vendor': json['vendor'],
109
+ 'category': json['category'],
110
+ 'osv_verdict': json['osv_verdict'],
111
+ 'max_confidence': json['max_confidence'],
112
+ 'min_matched': json['min_matched'],
113
+ 'conditions': ((json['conditions'] as Array<any>).map(ApplianceRuleConditionFromJSON)),
114
+ };
115
+ }
116
+
117
+ export function ApplianceRuleRequestToJSON(json: any): ApplianceRuleRequest {
118
+ return ApplianceRuleRequestToJSONTyped(json, false);
119
+ }
120
+
121
+ export function ApplianceRuleRequestToJSONTyped(value?: ApplianceRuleRequest | null, ignoreDiscriminator: boolean = false): any {
122
+ if (value == null) {
123
+ return value;
124
+ }
125
+
126
+ return {
127
+
128
+ 'name': value['name'],
129
+ 'vendor': value['vendor'],
130
+ 'category': value['category'],
131
+ 'osv_verdict': value['osv_verdict'],
132
+ 'max_confidence': value['max_confidence'],
133
+ 'min_matched': value['min_matched'],
134
+ 'conditions': ((value['conditions'] as Array<any>).map(ApplianceRuleConditionToJSON)),
135
+ };
136
+ }
137
+
@@ -0,0 +1,79 @@
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
+ import { mapValues } from '../runtime.js';
16
+ /**
17
+ * One entry in the disk complexity breakdown
18
+ * @export
19
+ * @interface ComplexityDiskScoreEntry
20
+ */
21
+ export interface ComplexityDiskScoreEntry {
22
+ /**
23
+ * Complexity score from 1 to 4, where 1 is the least complex disk footprint and 4 is the most complex. Score 1: <=10 TB provisioned; score 2: <=20 TB; score 3: <=50 TB; score 4: >50 TB.
24
+ *
25
+ */
26
+ score: number;
27
+ /**
28
+ * Number of VMs at this complexity score
29
+ */
30
+ vmCount: number;
31
+ /**
32
+ * Total provisioned storage in TB for VMs at this score
33
+ */
34
+ totalSizeTB: number;
35
+ }
36
+
37
+ /**
38
+ * Check if a given object implements the ComplexityDiskScoreEntry interface.
39
+ */
40
+ export function instanceOfComplexityDiskScoreEntry(value: object): value is ComplexityDiskScoreEntry {
41
+ if (!('score' in value) || value['score'] === undefined) return false;
42
+ if (!('vmCount' in value) || value['vmCount'] === undefined) return false;
43
+ if (!('totalSizeTB' in value) || value['totalSizeTB'] === undefined) return false;
44
+ return true;
45
+ }
46
+
47
+ export function ComplexityDiskScoreEntryFromJSON(json: any): ComplexityDiskScoreEntry {
48
+ return ComplexityDiskScoreEntryFromJSONTyped(json, false);
49
+ }
50
+
51
+ export function ComplexityDiskScoreEntryFromJSONTyped(json: any, ignoreDiscriminator: boolean): ComplexityDiskScoreEntry {
52
+ if (json == null) {
53
+ return json;
54
+ }
55
+ return {
56
+
57
+ 'score': json['score'],
58
+ 'vmCount': json['vmCount'],
59
+ 'totalSizeTB': json['totalSizeTB'],
60
+ };
61
+ }
62
+
63
+ export function ComplexityDiskScoreEntryToJSON(json: any): ComplexityDiskScoreEntry {
64
+ return ComplexityDiskScoreEntryToJSONTyped(json, false);
65
+ }
66
+
67
+ export function ComplexityDiskScoreEntryToJSONTyped(value?: ComplexityDiskScoreEntry | null, ignoreDiscriminator: boolean = false): any {
68
+ if (value == null) {
69
+ return value;
70
+ }
71
+
72
+ return {
73
+
74
+ 'score': value['score'],
75
+ 'vmCount': value['vmCount'],
76
+ 'totalSizeTB': value['totalSizeTB'],
77
+ };
78
+ }
79
+
@@ -0,0 +1,80 @@
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
+ import { mapValues } from '../runtime.js';
16
+ /**
17
+ * One entry in the per-OS-name complexity breakdown.
18
+ * @export
19
+ * @interface ComplexityOSNameEntry
20
+ */
21
+ export interface ComplexityOSNameEntry {
22
+ /**
23
+ * The OS name exactly as it appears in vms.osInfo (e.g. "Red Hat Enterprise Linux 9 (64-bit)").
24
+ *
25
+ */
26
+ osName: string;
27
+ /**
28
+ * Complexity score assigned by ClassifyOS. 0 = unknown, 1 = least complex, 4 = most complex.
29
+ *
30
+ */
31
+ score: number;
32
+ /**
33
+ * Number of VMs running this OS.
34
+ */
35
+ vmCount: number;
36
+ }
37
+
38
+ /**
39
+ * Check if a given object implements the ComplexityOSNameEntry interface.
40
+ */
41
+ export function instanceOfComplexityOSNameEntry(value: object): value is ComplexityOSNameEntry {
42
+ if (!('osName' in value) || value['osName'] === undefined) return false;
43
+ if (!('score' in value) || value['score'] === undefined) return false;
44
+ if (!('vmCount' in value) || value['vmCount'] === undefined) return false;
45
+ return true;
46
+ }
47
+
48
+ export function ComplexityOSNameEntryFromJSON(json: any): ComplexityOSNameEntry {
49
+ return ComplexityOSNameEntryFromJSONTyped(json, false);
50
+ }
51
+
52
+ export function ComplexityOSNameEntryFromJSONTyped(json: any, ignoreDiscriminator: boolean): ComplexityOSNameEntry {
53
+ if (json == null) {
54
+ return json;
55
+ }
56
+ return {
57
+
58
+ 'osName': json['osName'],
59
+ 'score': json['score'],
60
+ 'vmCount': json['vmCount'],
61
+ };
62
+ }
63
+
64
+ export function ComplexityOSNameEntryToJSON(json: any): ComplexityOSNameEntry {
65
+ return ComplexityOSNameEntryToJSONTyped(json, false);
66
+ }
67
+
68
+ export function ComplexityOSNameEntryToJSONTyped(value?: ComplexityOSNameEntry | null, ignoreDiscriminator: boolean = false): any {
69
+ if (value == null) {
70
+ return value;
71
+ }
72
+
73
+ return {
74
+
75
+ 'osName': value['osName'],
76
+ 'score': value['score'],
77
+ 'vmCount': value['vmCount'],
78
+ };
79
+ }
80
+
@@ -0,0 +1,72 @@
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
+ import { mapValues } from '../runtime.js';
16
+ /**
17
+ * One entry in the OS complexity breakdown
18
+ * @export
19
+ * @interface ComplexityOSScoreEntry
20
+ */
21
+ export interface ComplexityOSScoreEntry {
22
+ /**
23
+ * Complexity score from 0 to 4, where 1 indicates the least complex OS to migrate and 0 indicates an OS with unknown complexity.
24
+ *
25
+ */
26
+ score: number;
27
+ /**
28
+ * Number of VMs at this complexity score
29
+ */
30
+ vmCount: number;
31
+ }
32
+
33
+ /**
34
+ * Check if a given object implements the ComplexityOSScoreEntry interface.
35
+ */
36
+ export function instanceOfComplexityOSScoreEntry(value: object): value is ComplexityOSScoreEntry {
37
+ if (!('score' in value) || value['score'] === undefined) return false;
38
+ if (!('vmCount' in value) || value['vmCount'] === undefined) return false;
39
+ return true;
40
+ }
41
+
42
+ export function ComplexityOSScoreEntryFromJSON(json: any): ComplexityOSScoreEntry {
43
+ return ComplexityOSScoreEntryFromJSONTyped(json, false);
44
+ }
45
+
46
+ export function ComplexityOSScoreEntryFromJSONTyped(json: any, ignoreDiscriminator: boolean): ComplexityOSScoreEntry {
47
+ if (json == null) {
48
+ return json;
49
+ }
50
+ return {
51
+
52
+ 'score': json['score'],
53
+ 'vmCount': json['vmCount'],
54
+ };
55
+ }
56
+
57
+ export function ComplexityOSScoreEntryToJSON(json: any): ComplexityOSScoreEntry {
58
+ return ComplexityOSScoreEntryToJSONTyped(json, false);
59
+ }
60
+
61
+ export function ComplexityOSScoreEntryToJSONTyped(value?: ComplexityOSScoreEntry | null, ignoreDiscriminator: boolean = false): any {
62
+ if (value == null) {
63
+ return value;
64
+ }
65
+
66
+ return {
67
+
68
+ 'score': value['score'],
69
+ 'vmCount': value['vmCount'],
70
+ };
71
+ }
72
+
@@ -20,6 +20,13 @@ import {
20
20
  StorageIoConfigurationToJSON,
21
21
  StorageIoConfigurationToJSONTyped,
22
22
  } from './StorageIoConfiguration.js';
23
+ import type { StorageArray } from './StorageArray.js';
24
+ import {
25
+ StorageArrayFromJSON,
26
+ StorageArrayFromJSONTyped,
27
+ StorageArrayToJSON,
28
+ StorageArrayToJSONTyped,
29
+ } from './StorageArray.js';
23
30
 
24
31
  /**
25
32
  *
@@ -27,6 +34,14 @@ import {
27
34
  * @interface Datastore
28
35
  */
29
36
  export interface Datastore {
37
+ /**
38
+ * Source-reported VASA arrays; absence does not establish that the datastore has no array
39
+ */
40
+ storageArrays?: Array<StorageArray>;
41
+ /**
42
+ * Source storage-container identifier, distinct from array UUID and protocol-endpoint identity
43
+ */
44
+ storageContainerId?: string;
30
45
  /**
31
46
  *
32
47
  */
@@ -126,6 +141,8 @@ export function DatastoreFromJSONTyped(json: any, ignoreDiscriminator: boolean):
126
141
  }
127
142
  return {
128
143
 
144
+ 'storageArrays': json['storageArrays'] == null ? undefined : ((json['storageArrays'] as Array<any>).map(StorageArrayFromJSON)),
145
+ 'storageContainerId': json['storageContainerId'] == null ? undefined : json['storageContainerId'],
129
146
  'type': json['type'],
130
147
  'backingDeviceIds': json['backingDeviceIds'] == null ? undefined : json['backingDeviceIds'],
131
148
  'filesystemType': json['filesystemType'] == null ? undefined : json['filesystemType'],
@@ -155,6 +172,8 @@ export function DatastoreToJSONTyped(value?: Datastore | null, ignoreDiscriminat
155
172
 
156
173
  return {
157
174
 
175
+ 'storageArrays': value['storageArrays'] == null ? undefined : ((value['storageArrays'] as Array<any>).map(StorageArrayToJSON)),
176
+ 'storageContainerId': value['storageContainerId'],
158
177
  'type': value['type'],
159
178
  'backingDeviceIds': value['backingDeviceIds'],
160
179
  'filesystemType': value['filesystemType'],
@@ -0,0 +1,90 @@
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
+ import { mapValues } from '../runtime.js';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface DiskGeometryCondition
20
+ */
21
+ export interface DiskGeometryCondition {
22
+ /**
23
+ *
24
+ */
25
+ disks: Array<number>;
26
+ /**
27
+ *
28
+ */
29
+ mode: DiskGeometryConditionModeEnum;
30
+ /**
31
+ * Largest difference in MiB allowed between a required disk size and the size of a VM disk. Zero requires the sizes to match exactly.
32
+ *
33
+ */
34
+ tolerance_mib: number;
35
+ }
36
+
37
+
38
+ /**
39
+ * @export
40
+ */
41
+ export const DiskGeometryConditionModeEnum = {
42
+ Exact: 'exact',
43
+ Superset: 'superset',
44
+ } as const;
45
+ export type DiskGeometryConditionModeEnum = typeof DiskGeometryConditionModeEnum[keyof typeof DiskGeometryConditionModeEnum];
46
+
47
+
48
+ /**
49
+ * Check if a given object implements the DiskGeometryCondition interface.
50
+ */
51
+ export function instanceOfDiskGeometryCondition(value: object): value is DiskGeometryCondition {
52
+ if (!('disks' in value) || value['disks'] === undefined) return false;
53
+ if (!('mode' in value) || value['mode'] === undefined) return false;
54
+ if (!('tolerance_mib' in value) || value['tolerance_mib'] === undefined) return false;
55
+ return true;
56
+ }
57
+
58
+ export function DiskGeometryConditionFromJSON(json: any): DiskGeometryCondition {
59
+ return DiskGeometryConditionFromJSONTyped(json, false);
60
+ }
61
+
62
+ export function DiskGeometryConditionFromJSONTyped(json: any, ignoreDiscriminator: boolean): DiskGeometryCondition {
63
+ if (json == null) {
64
+ return json;
65
+ }
66
+ return {
67
+
68
+ 'disks': json['disks'],
69
+ 'mode': json['mode'],
70
+ 'tolerance_mib': json['tolerance_mib'],
71
+ };
72
+ }
73
+
74
+ export function DiskGeometryConditionToJSON(json: any): DiskGeometryCondition {
75
+ return DiskGeometryConditionToJSONTyped(json, false);
76
+ }
77
+
78
+ export function DiskGeometryConditionToJSONTyped(value?: DiskGeometryCondition | null, ignoreDiscriminator: boolean = false): any {
79
+ if (value == null) {
80
+ return value;
81
+ }
82
+
83
+ return {
84
+
85
+ 'disks': value['disks'],
86
+ 'mode': value['mode'],
87
+ 'tolerance_mib': value['tolerance_mib'],
88
+ };
89
+ }
90
+
@@ -0,0 +1,63 @@
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
+ import { mapValues } from '../runtime.js';
16
+ /**
17
+ * Request payload for calculating migration complexity estimation
18
+ * @export
19
+ * @interface MigrationComplexityRequest
20
+ */
21
+ export interface MigrationComplexityRequest {
22
+ /**
23
+ * Filter by expression
24
+ */
25
+ filterExpression?: string;
26
+ }
27
+
28
+ /**
29
+ * Check if a given object implements the MigrationComplexityRequest interface.
30
+ */
31
+ export function instanceOfMigrationComplexityRequest(value: object): value is MigrationComplexityRequest {
32
+ return true;
33
+ }
34
+
35
+ export function MigrationComplexityRequestFromJSON(json: any): MigrationComplexityRequest {
36
+ return MigrationComplexityRequestFromJSONTyped(json, false);
37
+ }
38
+
39
+ export function MigrationComplexityRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): MigrationComplexityRequest {
40
+ if (json == null) {
41
+ return json;
42
+ }
43
+ return {
44
+
45
+ 'filterExpression': json['filterExpression'] == null ? undefined : json['filterExpression'],
46
+ };
47
+ }
48
+
49
+ export function MigrationComplexityRequestToJSON(json: any): MigrationComplexityRequest {
50
+ return MigrationComplexityRequestToJSONTyped(json, false);
51
+ }
52
+
53
+ export function MigrationComplexityRequestToJSONTyped(value?: MigrationComplexityRequest | null, ignoreDiscriminator: boolean = false): any {
54
+ if (value == null) {
55
+ return value;
56
+ }
57
+
58
+ return {
59
+
60
+ 'filterExpression': value['filterExpression'],
61
+ };
62
+ }
63
+
@@ -0,0 +1,119 @@
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
+ import { mapValues } from '../runtime.js';
16
+ import type { ComplexityOSScoreEntry } from './ComplexityOSScoreEntry.js';
17
+ import {
18
+ ComplexityOSScoreEntryFromJSON,
19
+ ComplexityOSScoreEntryFromJSONTyped,
20
+ ComplexityOSScoreEntryToJSON,
21
+ ComplexityOSScoreEntryToJSONTyped,
22
+ } from './ComplexityOSScoreEntry.js';
23
+ import type { ComplexityOSNameEntry } from './ComplexityOSNameEntry.js';
24
+ import {
25
+ ComplexityOSNameEntryFromJSON,
26
+ ComplexityOSNameEntryFromJSONTyped,
27
+ ComplexityOSNameEntryToJSON,
28
+ ComplexityOSNameEntryToJSONTyped,
29
+ } from './ComplexityOSNameEntry.js';
30
+ import type { ComplexityDiskScoreEntry } from './ComplexityDiskScoreEntry.js';
31
+ import {
32
+ ComplexityDiskScoreEntryFromJSON,
33
+ ComplexityDiskScoreEntryFromJSONTyped,
34
+ ComplexityDiskScoreEntryToJSON,
35
+ ComplexityDiskScoreEntryToJSONTyped,
36
+ } from './ComplexityDiskScoreEntry.js';
37
+
38
+ /**
39
+ * Migration complexity estimation results
40
+ * @export
41
+ * @interface MigrationComplexityResponse
42
+ */
43
+ export interface MigrationComplexityResponse {
44
+ /**
45
+ * 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.
46
+ *
47
+ */
48
+ complexityByDisk: Array<ComplexityDiskScoreEntry>;
49
+ /**
50
+ * 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.
51
+ *
52
+ */
53
+ complexityByOS: Array<ComplexityOSScoreEntry>;
54
+ /**
55
+ * 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.
56
+ *
57
+ */
58
+ diskSizeRatings: { [key: string]: number; };
59
+ /**
60
+ * 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.
61
+ *
62
+ */
63
+ osRatings: { [key: string]: number; };
64
+ /**
65
+ * 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.
66
+ *
67
+ */
68
+ complexityByOSName: Array<ComplexityOSNameEntry>;
69
+ }
70
+
71
+ /**
72
+ * Check if a given object implements the MigrationComplexityResponse interface.
73
+ */
74
+ export function instanceOfMigrationComplexityResponse(value: object): value is MigrationComplexityResponse {
75
+ if (!('complexityByDisk' in value) || value['complexityByDisk'] === undefined) return false;
76
+ if (!('complexityByOS' in value) || value['complexityByOS'] === undefined) return false;
77
+ if (!('diskSizeRatings' in value) || value['diskSizeRatings'] === undefined) return false;
78
+ if (!('osRatings' in value) || value['osRatings'] === undefined) return false;
79
+ if (!('complexityByOSName' in value) || value['complexityByOSName'] === undefined) return false;
80
+ return true;
81
+ }
82
+
83
+ export function MigrationComplexityResponseFromJSON(json: any): MigrationComplexityResponse {
84
+ return MigrationComplexityResponseFromJSONTyped(json, false);
85
+ }
86
+
87
+ export function MigrationComplexityResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): MigrationComplexityResponse {
88
+ if (json == null) {
89
+ return json;
90
+ }
91
+ return {
92
+
93
+ 'complexityByDisk': ((json['complexityByDisk'] as Array<any>).map(ComplexityDiskScoreEntryFromJSON)),
94
+ 'complexityByOS': ((json['complexityByOS'] as Array<any>).map(ComplexityOSScoreEntryFromJSON)),
95
+ 'diskSizeRatings': json['diskSizeRatings'],
96
+ 'osRatings': json['osRatings'],
97
+ 'complexityByOSName': ((json['complexityByOSName'] as Array<any>).map(ComplexityOSNameEntryFromJSON)),
98
+ };
99
+ }
100
+
101
+ export function MigrationComplexityResponseToJSON(json: any): MigrationComplexityResponse {
102
+ return MigrationComplexityResponseToJSONTyped(json, false);
103
+ }
104
+
105
+ export function MigrationComplexityResponseToJSONTyped(value?: MigrationComplexityResponse | null, ignoreDiscriminator: boolean = false): any {
106
+ if (value == null) {
107
+ return value;
108
+ }
109
+
110
+ return {
111
+
112
+ 'complexityByDisk': ((value['complexityByDisk'] as Array<any>).map(ComplexityDiskScoreEntryToJSON)),
113
+ 'complexityByOS': ((value['complexityByOS'] as Array<any>).map(ComplexityOSScoreEntryToJSON)),
114
+ 'diskSizeRatings': value['diskSizeRatings'],
115
+ 'osRatings': value['osRatings'],
116
+ 'complexityByOSName': ((value['complexityByOSName'] as Array<any>).map(ComplexityOSNameEntryToJSON)),
117
+ };
118
+ }
119
+