@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,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
+ import type { ApplianceRuleFunction } from './ApplianceRuleFunction.js';
13
+ /**
14
+ * One condition. Either a filter expression over VM attributes or a call to a registered predicate function carrying its own payload. Exactly one of expression or function must be set. Condition names must be unique within a rule, and min_matched may not exceed the number of conditions.
15
+ *
16
+ * @export
17
+ * @interface ApplianceRuleCondition
18
+ */
19
+ export interface ApplianceRuleCondition {
20
+ /**
21
+ * Condition name, unique within the rule. The name decides how much a match contributes: vapp_product and annotation weigh high, guest_id and mount_preffix medium, nic_count, disk_geometry and nested_hv low, and name weighs so little that matching it alone is not a detection. Any other name is rejected.
22
+ *
23
+ */
24
+ name: string;
25
+ /**
26
+ * Filter DSL expression over the VM attributes appliance rules can match on, e.g. Name ~ /^ORA-/ or NICCount > 3.
27
+ *
28
+ */
29
+ expression?: string;
30
+ /**
31
+ *
32
+ */
33
+ _function?: ApplianceRuleFunction;
34
+ }
35
+ /**
36
+ * Check if a given object implements the ApplianceRuleCondition interface.
37
+ */
38
+ export declare function instanceOfApplianceRuleCondition(value: object): value is ApplianceRuleCondition;
39
+ export declare function ApplianceRuleConditionFromJSON(json: any): ApplianceRuleCondition;
40
+ export declare function ApplianceRuleConditionFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApplianceRuleCondition;
41
+ export declare function ApplianceRuleConditionToJSON(json: any): ApplianceRuleCondition;
42
+ export declare function ApplianceRuleConditionToJSONTyped(value?: ApplianceRuleCondition | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,48 @@
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
+ import { ApplianceRuleFunctionFromJSON, ApplianceRuleFunctionToJSON, } from './ApplianceRuleFunction.js';
15
+ /**
16
+ * Check if a given object implements the ApplianceRuleCondition interface.
17
+ */
18
+ export function instanceOfApplianceRuleCondition(value) {
19
+ if (!('name' in value) || value['name'] === undefined)
20
+ return false;
21
+ return true;
22
+ }
23
+ export function ApplianceRuleConditionFromJSON(json) {
24
+ return ApplianceRuleConditionFromJSONTyped(json, false);
25
+ }
26
+ export function ApplianceRuleConditionFromJSONTyped(json, ignoreDiscriminator) {
27
+ if (json == null) {
28
+ return json;
29
+ }
30
+ return {
31
+ 'name': json['name'],
32
+ 'expression': json['expression'] == null ? undefined : json['expression'],
33
+ '_function': json['function'] == null ? undefined : ApplianceRuleFunctionFromJSON(json['function']),
34
+ };
35
+ }
36
+ export function ApplianceRuleConditionToJSON(json) {
37
+ return ApplianceRuleConditionToJSONTyped(json, false);
38
+ }
39
+ export function ApplianceRuleConditionToJSONTyped(value, ignoreDiscriminator = false) {
40
+ if (value == null) {
41
+ return value;
42
+ }
43
+ return {
44
+ 'name': value['name'],
45
+ 'expression': value['expression'],
46
+ 'function': ApplianceRuleFunctionToJSON(value['_function']),
47
+ };
48
+ }
@@ -0,0 +1,37 @@
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 { DiskGeometryCondition } from './DiskGeometryCondition.js';
13
+ /**
14
+ * A registered predicate selected by name. Exactly one payload field, the one matching name, must be set; the payload is validated server-side against the predicate the name resolves to.
15
+ *
16
+ * @export
17
+ * @interface ApplianceRuleFunction
18
+ */
19
+ export interface ApplianceRuleFunction {
20
+ /**
21
+ * Predicate name. disk_geometry is the only one defined; any other name is rejected.
22
+ *
23
+ */
24
+ name: string;
25
+ /**
26
+ *
27
+ */
28
+ disk_geometry?: DiskGeometryCondition;
29
+ }
30
+ /**
31
+ * Check if a given object implements the ApplianceRuleFunction interface.
32
+ */
33
+ export declare function instanceOfApplianceRuleFunction(value: object): value is ApplianceRuleFunction;
34
+ export declare function ApplianceRuleFunctionFromJSON(json: any): ApplianceRuleFunction;
35
+ export declare function ApplianceRuleFunctionFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApplianceRuleFunction;
36
+ export declare function ApplianceRuleFunctionToJSON(json: any): ApplianceRuleFunction;
37
+ export declare function ApplianceRuleFunctionToJSONTyped(value?: ApplianceRuleFunction | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,46 @@
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
+ import { DiskGeometryConditionFromJSON, DiskGeometryConditionToJSON, } from './DiskGeometryCondition.js';
15
+ /**
16
+ * Check if a given object implements the ApplianceRuleFunction interface.
17
+ */
18
+ export function instanceOfApplianceRuleFunction(value) {
19
+ if (!('name' in value) || value['name'] === undefined)
20
+ return false;
21
+ return true;
22
+ }
23
+ export function ApplianceRuleFunctionFromJSON(json) {
24
+ return ApplianceRuleFunctionFromJSONTyped(json, false);
25
+ }
26
+ export function ApplianceRuleFunctionFromJSONTyped(json, ignoreDiscriminator) {
27
+ if (json == null) {
28
+ return json;
29
+ }
30
+ return {
31
+ 'name': json['name'],
32
+ 'disk_geometry': json['disk_geometry'] == null ? undefined : DiskGeometryConditionFromJSON(json['disk_geometry']),
33
+ };
34
+ }
35
+ export function ApplianceRuleFunctionToJSON(json) {
36
+ return ApplianceRuleFunctionToJSONTyped(json, false);
37
+ }
38
+ export function ApplianceRuleFunctionToJSONTyped(value, ignoreDiscriminator = false) {
39
+ if (value == null) {
40
+ return value;
41
+ }
42
+ return {
43
+ 'name': value['name'],
44
+ 'disk_geometry': DiskGeometryConditionToJSON(value['disk_geometry']),
45
+ };
46
+ }
@@ -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 { ApplianceRule } from './ApplianceRule.js';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface ApplianceRuleListResponse
17
+ */
18
+ export interface ApplianceRuleListResponse {
19
+ /**
20
+ *
21
+ */
22
+ rules: Array<ApplianceRule>;
23
+ }
24
+ /**
25
+ * Check if a given object implements the ApplianceRuleListResponse interface.
26
+ */
27
+ export declare function instanceOfApplianceRuleListResponse(value: object): value is ApplianceRuleListResponse;
28
+ export declare function ApplianceRuleListResponseFromJSON(json: any): ApplianceRuleListResponse;
29
+ export declare function ApplianceRuleListResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApplianceRuleListResponse;
30
+ export declare function ApplianceRuleListResponseToJSON(json: any): ApplianceRuleListResponse;
31
+ export declare function ApplianceRuleListResponseToJSONTyped(value?: ApplianceRuleListResponse | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,44 @@
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
+ import { ApplianceRuleFromJSON, ApplianceRuleToJSON, } from './ApplianceRule.js';
15
+ /**
16
+ * Check if a given object implements the ApplianceRuleListResponse interface.
17
+ */
18
+ export function instanceOfApplianceRuleListResponse(value) {
19
+ if (!('rules' in value) || value['rules'] === undefined)
20
+ return false;
21
+ return true;
22
+ }
23
+ export function ApplianceRuleListResponseFromJSON(json) {
24
+ return ApplianceRuleListResponseFromJSONTyped(json, false);
25
+ }
26
+ export function ApplianceRuleListResponseFromJSONTyped(json, ignoreDiscriminator) {
27
+ if (json == null) {
28
+ return json;
29
+ }
30
+ return {
31
+ 'rules': (json['rules'].map(ApplianceRuleFromJSON)),
32
+ };
33
+ }
34
+ export function ApplianceRuleListResponseToJSON(json) {
35
+ return ApplianceRuleListResponseToJSONTyped(json, false);
36
+ }
37
+ export function ApplianceRuleListResponseToJSONTyped(value, ignoreDiscriminator = false) {
38
+ if (value == null) {
39
+ return value;
40
+ }
41
+ return {
42
+ 'rules': (value['rules'].map(ApplianceRuleToJSON)),
43
+ };
44
+ }
@@ -0,0 +1,74 @@
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 { ApplianceRuleCondition } from './ApplianceRuleCondition.js';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface ApplianceRuleRequest
17
+ */
18
+ export interface ApplianceRuleRequest {
19
+ /**
20
+ *
21
+ */
22
+ name: string;
23
+ /**
24
+ *
25
+ */
26
+ vendor: string;
27
+ /**
28
+ *
29
+ */
30
+ category: string;
31
+ /**
32
+ *
33
+ */
34
+ osv_verdict: ApplianceRuleRequestOsvVerdictEnum;
35
+ /**
36
+ *
37
+ */
38
+ max_confidence: ApplianceRuleRequestMaxConfidenceEnum;
39
+ /**
40
+ *
41
+ */
42
+ min_matched: number;
43
+ /**
44
+ *
45
+ */
46
+ conditions: Array<ApplianceRuleCondition>;
47
+ }
48
+ /**
49
+ * @export
50
+ */
51
+ export declare const ApplianceRuleRequestOsvVerdictEnum: {
52
+ readonly Blocked: "blocked";
53
+ readonly Conditional: "conditional";
54
+ readonly Supported: "supported";
55
+ readonly Unknown: "unknown";
56
+ };
57
+ export type ApplianceRuleRequestOsvVerdictEnum = typeof ApplianceRuleRequestOsvVerdictEnum[keyof typeof ApplianceRuleRequestOsvVerdictEnum];
58
+ /**
59
+ * @export
60
+ */
61
+ export declare const ApplianceRuleRequestMaxConfidenceEnum: {
62
+ readonly High: "high";
63
+ readonly Medium: "medium";
64
+ readonly Low: "low";
65
+ };
66
+ export type ApplianceRuleRequestMaxConfidenceEnum = typeof ApplianceRuleRequestMaxConfidenceEnum[keyof typeof ApplianceRuleRequestMaxConfidenceEnum];
67
+ /**
68
+ * Check if a given object implements the ApplianceRuleRequest interface.
69
+ */
70
+ export declare function instanceOfApplianceRuleRequest(value: object): value is ApplianceRuleRequest;
71
+ export declare function ApplianceRuleRequestFromJSON(json: any): ApplianceRuleRequest;
72
+ export declare function ApplianceRuleRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApplianceRuleRequest;
73
+ export declare function ApplianceRuleRequestToJSON(json: any): ApplianceRuleRequest;
74
+ export declare function ApplianceRuleRequestToJSONTyped(value?: ApplianceRuleRequest | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,85 @@
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
+ import { ApplianceRuleConditionFromJSON, ApplianceRuleConditionToJSON, } from './ApplianceRuleCondition.js';
15
+ /**
16
+ * @export
17
+ */
18
+ export const ApplianceRuleRequestOsvVerdictEnum = {
19
+ Blocked: 'blocked',
20
+ Conditional: 'conditional',
21
+ Supported: 'supported',
22
+ Unknown: 'unknown',
23
+ };
24
+ /**
25
+ * @export
26
+ */
27
+ export const ApplianceRuleRequestMaxConfidenceEnum = {
28
+ High: 'high',
29
+ Medium: 'medium',
30
+ Low: 'low',
31
+ };
32
+ /**
33
+ * Check if a given object implements the ApplianceRuleRequest interface.
34
+ */
35
+ export function instanceOfApplianceRuleRequest(value) {
36
+ if (!('name' in value) || value['name'] === undefined)
37
+ return false;
38
+ if (!('vendor' in value) || value['vendor'] === undefined)
39
+ return false;
40
+ if (!('category' in value) || value['category'] === undefined)
41
+ return false;
42
+ if (!('osv_verdict' in value) || value['osv_verdict'] === undefined)
43
+ return false;
44
+ if (!('max_confidence' in value) || value['max_confidence'] === undefined)
45
+ return false;
46
+ if (!('min_matched' in value) || value['min_matched'] === undefined)
47
+ return false;
48
+ if (!('conditions' in value) || value['conditions'] === undefined)
49
+ return false;
50
+ return true;
51
+ }
52
+ export function ApplianceRuleRequestFromJSON(json) {
53
+ return ApplianceRuleRequestFromJSONTyped(json, false);
54
+ }
55
+ export function ApplianceRuleRequestFromJSONTyped(json, ignoreDiscriminator) {
56
+ if (json == null) {
57
+ return json;
58
+ }
59
+ return {
60
+ 'name': json['name'],
61
+ 'vendor': json['vendor'],
62
+ 'category': json['category'],
63
+ 'osv_verdict': json['osv_verdict'],
64
+ 'max_confidence': json['max_confidence'],
65
+ 'min_matched': json['min_matched'],
66
+ 'conditions': (json['conditions'].map(ApplianceRuleConditionFromJSON)),
67
+ };
68
+ }
69
+ export function ApplianceRuleRequestToJSON(json) {
70
+ return ApplianceRuleRequestToJSONTyped(json, false);
71
+ }
72
+ export function ApplianceRuleRequestToJSONTyped(value, ignoreDiscriminator = false) {
73
+ if (value == null) {
74
+ return value;
75
+ }
76
+ return {
77
+ 'name': value['name'],
78
+ 'vendor': value['vendor'],
79
+ 'category': value['category'],
80
+ 'osv_verdict': value['osv_verdict'],
81
+ 'max_confidence': value['max_confidence'],
82
+ 'min_matched': value['min_matched'],
83
+ 'conditions': (value['conditions'].map(ApplianceRuleConditionToJSON)),
84
+ };
85
+ }
@@ -0,0 +1,39 @@
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 disk complexity breakdown
14
+ * @export
15
+ * @interface ComplexityDiskScoreEntry
16
+ */
17
+ export interface ComplexityDiskScoreEntry {
18
+ /**
19
+ * 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.
20
+ *
21
+ */
22
+ score: number;
23
+ /**
24
+ * Number of VMs at this complexity score
25
+ */
26
+ vmCount: number;
27
+ /**
28
+ * Total provisioned storage in TB for VMs at this score
29
+ */
30
+ totalSizeTB: number;
31
+ }
32
+ /**
33
+ * Check if a given object implements the ComplexityDiskScoreEntry interface.
34
+ */
35
+ export declare function instanceOfComplexityDiskScoreEntry(value: object): value is ComplexityDiskScoreEntry;
36
+ export declare function ComplexityDiskScoreEntryFromJSON(json: any): ComplexityDiskScoreEntry;
37
+ export declare function ComplexityDiskScoreEntryFromJSONTyped(json: any, ignoreDiscriminator: boolean): ComplexityDiskScoreEntry;
38
+ export declare function ComplexityDiskScoreEntryToJSON(json: any): ComplexityDiskScoreEntry;
39
+ export declare function ComplexityDiskScoreEntryToJSONTyped(value?: ComplexityDiskScoreEntry | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,51 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Assisted Migration Agent API
5
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
+ *
7
+ * The version of the OpenAPI document: 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 ComplexityDiskScoreEntry interface.
16
+ */
17
+ export function instanceOfComplexityDiskScoreEntry(value) {
18
+ if (!('score' in value) || value['score'] === undefined)
19
+ return false;
20
+ if (!('vmCount' in value) || value['vmCount'] === undefined)
21
+ return false;
22
+ if (!('totalSizeTB' in value) || value['totalSizeTB'] === undefined)
23
+ return false;
24
+ return true;
25
+ }
26
+ export function ComplexityDiskScoreEntryFromJSON(json) {
27
+ return ComplexityDiskScoreEntryFromJSONTyped(json, false);
28
+ }
29
+ export function ComplexityDiskScoreEntryFromJSONTyped(json, ignoreDiscriminator) {
30
+ if (json == null) {
31
+ return json;
32
+ }
33
+ return {
34
+ 'score': json['score'],
35
+ 'vmCount': json['vmCount'],
36
+ 'totalSizeTB': json['totalSizeTB'],
37
+ };
38
+ }
39
+ export function ComplexityDiskScoreEntryToJSON(json) {
40
+ return ComplexityDiskScoreEntryToJSONTyped(json, false);
41
+ }
42
+ export function ComplexityDiskScoreEntryToJSONTyped(value, ignoreDiscriminator = false) {
43
+ if (value == null) {
44
+ return value;
45
+ }
46
+ return {
47
+ 'score': value['score'],
48
+ 'vmCount': value['vmCount'],
49
+ 'totalSizeTB': value['totalSizeTB'],
50
+ };
51
+ }
@@ -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,51 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Assisted Migration Agent API
5
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
+ *
7
+ * The version of the OpenAPI document: 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 ComplexityOSNameEntry interface.
16
+ */
17
+ export function instanceOfComplexityOSNameEntry(value) {
18
+ if (!('osName' in value) || value['osName'] === undefined)
19
+ return false;
20
+ if (!('score' in value) || value['score'] === undefined)
21
+ return false;
22
+ if (!('vmCount' in value) || value['vmCount'] === undefined)
23
+ return false;
24
+ return true;
25
+ }
26
+ export function ComplexityOSNameEntryFromJSON(json) {
27
+ return ComplexityOSNameEntryFromJSONTyped(json, false);
28
+ }
29
+ export function ComplexityOSNameEntryFromJSONTyped(json, ignoreDiscriminator) {
30
+ if (json == null) {
31
+ return json;
32
+ }
33
+ return {
34
+ 'osName': json['osName'],
35
+ 'score': json['score'],
36
+ 'vmCount': json['vmCount'],
37
+ };
38
+ }
39
+ export function ComplexityOSNameEntryToJSON(json) {
40
+ return ComplexityOSNameEntryToJSONTyped(json, false);
41
+ }
42
+ export function ComplexityOSNameEntryToJSONTyped(value, ignoreDiscriminator = false) {
43
+ if (value == null) {
44
+ return value;
45
+ }
46
+ return {
47
+ 'osName': value['osName'],
48
+ 'score': value['score'],
49
+ 'vmCount': value['vmCount'],
50
+ };
51
+ }
@@ -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,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 ComplexityOSScoreEntry interface.
16
+ */
17
+ export function instanceOfComplexityOSScoreEntry(value) {
18
+ if (!('score' in value) || value['score'] === undefined)
19
+ return false;
20
+ if (!('vmCount' in value) || value['vmCount'] === undefined)
21
+ return false;
22
+ return true;
23
+ }
24
+ export function ComplexityOSScoreEntryFromJSON(json) {
25
+ return ComplexityOSScoreEntryFromJSONTyped(json, false);
26
+ }
27
+ export function ComplexityOSScoreEntryFromJSONTyped(json, ignoreDiscriminator) {
28
+ if (json == null) {
29
+ return json;
30
+ }
31
+ return {
32
+ 'score': json['score'],
33
+ 'vmCount': json['vmCount'],
34
+ };
35
+ }
36
+ export function ComplexityOSScoreEntryToJSON(json) {
37
+ return ComplexityOSScoreEntryToJSONTyped(json, false);
38
+ }
39
+ export function ComplexityOSScoreEntryToJSONTyped(value, ignoreDiscriminator = false) {
40
+ if (value == null) {
41
+ return value;
42
+ }
43
+ return {
44
+ 'score': value['score'],
45
+ 'vmCount': value['vmCount'],
46
+ };
47
+ }