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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (136) hide show
  1. package/.openapi-generator/FILES +26 -0
  2. package/.openapi-generator/VERSION +1 -1
  3. package/README.md +21 -3
  4. package/dist/apis/AppliancesApi.d.ts +194 -0
  5. package/dist/apis/AppliancesApi.js +201 -0
  6. package/dist/apis/GroupsApi.d.ts +6 -6
  7. package/dist/apis/ImageUpgradeApi.d.ts +66 -0
  8. package/dist/apis/ImageUpgradeApi.js +90 -0
  9. package/dist/apis/VirtualMachinesApi.d.ts +6 -6
  10. package/dist/apis/index.d.ts +1 -0
  11. package/dist/apis/index.js +1 -0
  12. package/dist/esm/apis/AppliancesApi.d.ts +194 -0
  13. package/dist/esm/apis/AppliancesApi.js +201 -0
  14. package/dist/esm/apis/GroupsApi.d.ts +6 -6
  15. package/dist/esm/apis/ImageUpgradeApi.d.ts +66 -0
  16. package/dist/esm/apis/ImageUpgradeApi.js +86 -0
  17. package/dist/esm/apis/VirtualMachinesApi.d.ts +6 -6
  18. package/dist/esm/apis/index.d.ts +1 -0
  19. package/dist/esm/apis/index.js +1 -0
  20. package/dist/esm/models/AgentStatus.d.ts +5 -0
  21. package/dist/esm/models/AgentStatus.js +5 -0
  22. package/dist/esm/models/ApplianceRule.d.ts +90 -0
  23. package/dist/esm/models/ApplianceRule.js +98 -0
  24. package/dist/esm/models/ApplianceRuleCondition.d.ts +42 -0
  25. package/dist/esm/models/ApplianceRuleCondition.js +48 -0
  26. package/dist/esm/models/ApplianceRuleFunction.d.ts +37 -0
  27. package/dist/esm/models/ApplianceRuleFunction.js +46 -0
  28. package/dist/esm/models/ApplianceRuleListResponse.d.ts +31 -0
  29. package/dist/esm/models/ApplianceRuleListResponse.js +44 -0
  30. package/dist/esm/models/ApplianceRuleRequest.d.ts +74 -0
  31. package/dist/esm/models/ApplianceRuleRequest.js +85 -0
  32. package/dist/esm/models/DiskGeometryCondition.d.ts +47 -0
  33. package/dist/esm/models/DiskGeometryCondition.js +58 -0
  34. package/dist/esm/models/ImageUpgradeImage.d.ts +34 -0
  35. package/dist/esm/models/ImageUpgradeImage.js +47 -0
  36. package/dist/esm/models/ImageUpgradeResult.d.ts +66 -0
  37. package/dist/esm/models/ImageUpgradeResult.js +71 -0
  38. package/dist/esm/models/ImageUpgradeStatus.d.ts +44 -0
  39. package/dist/esm/models/ImageUpgradeStatus.js +57 -0
  40. package/dist/esm/models/ImageUploadStatus.d.ts +44 -0
  41. package/dist/esm/models/ImageUploadStatus.js +56 -0
  42. package/dist/esm/models/RDMBacking.d.ts +26 -0
  43. package/dist/esm/models/RDMBacking.js +17 -0
  44. package/dist/esm/models/RDMHostLun.d.ts +42 -0
  45. package/dist/esm/models/RDMHostLun.js +49 -0
  46. package/dist/esm/models/SuccessfulImageUpgrade.d.ts +38 -0
  47. package/dist/esm/models/SuccessfulImageUpgrade.js +52 -0
  48. package/dist/esm/models/VMFilterOptionsResponse.d.ts +8 -0
  49. package/dist/esm/models/VMFilterOptionsResponse.js +8 -0
  50. package/dist/esm/models/VirtualMachine.d.ts +8 -0
  51. package/dist/esm/models/VirtualMachine.js +4 -0
  52. package/dist/esm/models/VirtualMachineDisk.d.ts +8 -0
  53. package/dist/esm/models/VirtualMachineDisk.js +4 -0
  54. package/dist/esm/models/index.d.ts +12 -0
  55. package/dist/esm/models/index.js +12 -0
  56. package/dist/models/AgentStatus.d.ts +5 -0
  57. package/dist/models/AgentStatus.js +5 -0
  58. package/dist/models/ApplianceRule.d.ts +90 -0
  59. package/dist/models/ApplianceRule.js +106 -0
  60. package/dist/models/ApplianceRuleCondition.d.ts +42 -0
  61. package/dist/models/ApplianceRuleCondition.js +55 -0
  62. package/dist/models/ApplianceRuleFunction.d.ts +37 -0
  63. package/dist/models/ApplianceRuleFunction.js +53 -0
  64. package/dist/models/ApplianceRuleListResponse.d.ts +31 -0
  65. package/dist/models/ApplianceRuleListResponse.js +51 -0
  66. package/dist/models/ApplianceRuleRequest.d.ts +74 -0
  67. package/dist/models/ApplianceRuleRequest.js +93 -0
  68. package/dist/models/DiskGeometryCondition.d.ts +47 -0
  69. package/dist/models/DiskGeometryCondition.js +66 -0
  70. package/dist/models/ImageUpgradeImage.d.ts +34 -0
  71. package/dist/models/ImageUpgradeImage.js +54 -0
  72. package/dist/models/ImageUpgradeResult.d.ts +66 -0
  73. package/dist/models/ImageUpgradeResult.js +79 -0
  74. package/dist/models/ImageUpgradeStatus.d.ts +44 -0
  75. package/dist/models/ImageUpgradeStatus.js +64 -0
  76. package/dist/models/ImageUploadStatus.d.ts +44 -0
  77. package/dist/models/ImageUploadStatus.js +64 -0
  78. package/dist/models/RDMBacking.d.ts +26 -0
  79. package/dist/models/RDMBacking.js +18 -0
  80. package/dist/models/RDMHostLun.d.ts +42 -0
  81. package/dist/models/RDMHostLun.js +56 -0
  82. package/dist/models/SuccessfulImageUpgrade.d.ts +38 -0
  83. package/dist/models/SuccessfulImageUpgrade.js +59 -0
  84. package/dist/models/VMFilterOptionsResponse.d.ts +8 -0
  85. package/dist/models/VMFilterOptionsResponse.js +8 -0
  86. package/dist/models/VirtualMachine.d.ts +8 -0
  87. package/dist/models/VirtualMachine.js +4 -0
  88. package/dist/models/VirtualMachineDisk.d.ts +8 -0
  89. package/dist/models/VirtualMachineDisk.js +4 -0
  90. package/dist/models/index.d.ts +12 -0
  91. package/dist/models/index.js +12 -0
  92. package/docs/AgentStatus.md +2 -0
  93. package/docs/ApplianceRule.md +50 -0
  94. package/docs/ApplianceRuleCondition.md +39 -0
  95. package/docs/ApplianceRuleFunction.md +37 -0
  96. package/docs/ApplianceRuleListResponse.md +34 -0
  97. package/docs/ApplianceRuleRequest.md +46 -0
  98. package/docs/AppliancesApi.md +338 -0
  99. package/docs/DiskGeometryCondition.md +38 -0
  100. package/docs/GroupsApi.md +4 -4
  101. package/docs/ImageUpgradeApi.md +82 -0
  102. package/docs/ImageUpgradeImage.md +36 -0
  103. package/docs/ImageUpgradeResult.md +46 -0
  104. package/docs/ImageUpgradeStatus.md +40 -0
  105. package/docs/ImageUploadStatus.md +36 -0
  106. package/docs/RDMBacking.md +8 -0
  107. package/docs/RDMHostLun.md +41 -0
  108. package/docs/SuccessfulImageUpgrade.md +38 -0
  109. package/docs/VMFilterOptionsResponse.md +4 -0
  110. package/docs/VirtualMachine.md +4 -0
  111. package/docs/VirtualMachineDisk.md +4 -0
  112. package/docs/VirtualMachinesApi.md +4 -4
  113. package/package.json +1 -1
  114. package/src/apis/AppliancesApi.ts +393 -0
  115. package/src/apis/GroupsApi.ts +6 -6
  116. package/src/apis/ImageUpgradeApi.ts +128 -0
  117. package/src/apis/VirtualMachinesApi.ts +6 -6
  118. package/src/apis/index.ts +1 -0
  119. package/src/models/AgentStatus.ts +14 -0
  120. package/src/models/ApplianceRule.ts +159 -0
  121. package/src/models/ApplianceRuleCondition.ts +87 -0
  122. package/src/models/ApplianceRuleFunction.ts +80 -0
  123. package/src/models/ApplianceRuleListResponse.ts +72 -0
  124. package/src/models/ApplianceRuleRequest.ts +137 -0
  125. package/src/models/DiskGeometryCondition.ts +90 -0
  126. package/src/models/ImageUpgradeImage.ts +71 -0
  127. package/src/models/ImageUpgradeResult.ts +130 -0
  128. package/src/models/ImageUpgradeStatus.ts +100 -0
  129. package/src/models/ImageUploadStatus.ts +84 -0
  130. package/src/models/RDMBacking.ts +44 -0
  131. package/src/models/RDMHostLun.ts +82 -0
  132. package/src/models/SuccessfulImageUpgrade.ts +78 -0
  133. package/src/models/VMFilterOptionsResponse.ts +14 -0
  134. package/src/models/VirtualMachine.ts +12 -0
  135. package/src/models/VirtualMachineDisk.ts +12 -0
  136. package/src/models/index.ts +12 -0
@@ -0,0 +1,98 @@
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 ApplianceRuleOsvVerdictEnum = {
19
+ Blocked: 'blocked',
20
+ Conditional: 'conditional',
21
+ Supported: 'supported',
22
+ Unknown: 'unknown',
23
+ };
24
+ /**
25
+ * @export
26
+ */
27
+ export const ApplianceRuleMaxConfidenceEnum = {
28
+ High: 'high',
29
+ Medium: 'medium',
30
+ Low: 'low',
31
+ };
32
+ /**
33
+ * @export
34
+ */
35
+ export const ApplianceRuleKindEnum = {
36
+ Default: 'default',
37
+ Custom: 'custom',
38
+ };
39
+ /**
40
+ * Check if a given object implements the ApplianceRule interface.
41
+ */
42
+ export function instanceOfApplianceRule(value) {
43
+ if (!('name' in value) || value['name'] === undefined)
44
+ return false;
45
+ if (!('vendor' in value) || value['vendor'] === undefined)
46
+ return false;
47
+ if (!('category' in value) || value['category'] === undefined)
48
+ return false;
49
+ if (!('osv_verdict' in value) || value['osv_verdict'] === undefined)
50
+ return false;
51
+ if (!('max_confidence' in value) || value['max_confidence'] === undefined)
52
+ return false;
53
+ if (!('kind' in value) || value['kind'] === undefined)
54
+ return false;
55
+ if (!('min_matched' in value) || value['min_matched'] === undefined)
56
+ return false;
57
+ if (!('conditions' in value) || value['conditions'] === undefined)
58
+ return false;
59
+ return true;
60
+ }
61
+ export function ApplianceRuleFromJSON(json) {
62
+ return ApplianceRuleFromJSONTyped(json, false);
63
+ }
64
+ export function ApplianceRuleFromJSONTyped(json, ignoreDiscriminator) {
65
+ if (json == null) {
66
+ return json;
67
+ }
68
+ return {
69
+ 'id': json['id'] == null ? undefined : json['id'],
70
+ 'name': json['name'],
71
+ 'vendor': json['vendor'],
72
+ 'category': json['category'],
73
+ 'osv_verdict': json['osv_verdict'],
74
+ 'max_confidence': json['max_confidence'],
75
+ 'kind': json['kind'],
76
+ 'min_matched': json['min_matched'],
77
+ 'conditions': (json['conditions'].map(ApplianceRuleConditionFromJSON)),
78
+ };
79
+ }
80
+ export function ApplianceRuleToJSON(json) {
81
+ return ApplianceRuleToJSONTyped(json, false);
82
+ }
83
+ export function ApplianceRuleToJSONTyped(value, ignoreDiscriminator = false) {
84
+ if (value == null) {
85
+ return value;
86
+ }
87
+ return {
88
+ 'id': value['id'],
89
+ 'name': value['name'],
90
+ 'vendor': value['vendor'],
91
+ 'category': value['category'],
92
+ 'osv_verdict': value['osv_verdict'],
93
+ 'max_confidence': value['max_confidence'],
94
+ 'kind': value['kind'],
95
+ 'min_matched': value['min_matched'],
96
+ 'conditions': (value['conditions'].map(ApplianceRuleConditionToJSON)),
97
+ };
98
+ }
@@ -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,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,58 @@
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
+ * @export
16
+ */
17
+ export const DiskGeometryConditionModeEnum = {
18
+ Exact: 'exact',
19
+ Superset: 'superset',
20
+ };
21
+ /**
22
+ * Check if a given object implements the DiskGeometryCondition interface.
23
+ */
24
+ export function instanceOfDiskGeometryCondition(value) {
25
+ if (!('disks' in value) || value['disks'] === undefined)
26
+ return false;
27
+ if (!('mode' in value) || value['mode'] === undefined)
28
+ return false;
29
+ if (!('tolerance_mib' in value) || value['tolerance_mib'] === undefined)
30
+ return false;
31
+ return true;
32
+ }
33
+ export function DiskGeometryConditionFromJSON(json) {
34
+ return DiskGeometryConditionFromJSONTyped(json, false);
35
+ }
36
+ export function DiskGeometryConditionFromJSONTyped(json, ignoreDiscriminator) {
37
+ if (json == null) {
38
+ return json;
39
+ }
40
+ return {
41
+ 'disks': json['disks'],
42
+ 'mode': json['mode'],
43
+ 'tolerance_mib': json['tolerance_mib'],
44
+ };
45
+ }
46
+ export function DiskGeometryConditionToJSON(json) {
47
+ return DiskGeometryConditionToJSONTyped(json, false);
48
+ }
49
+ export function DiskGeometryConditionToJSONTyped(value, ignoreDiscriminator = false) {
50
+ if (value == null) {
51
+ return value;
52
+ }
53
+ return {
54
+ 'disks': value['disks'],
55
+ 'mode': value['mode'],
56
+ 'tolerance_mib': value['tolerance_mib'],
57
+ };
58
+ }
@@ -0,0 +1,34 @@
1
+ /**
2
+ * Assisted Migration Agent API
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: v2
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface ImageUpgradeImage
16
+ */
17
+ export interface ImageUpgradeImage {
18
+ /**
19
+ *
20
+ */
21
+ version: string;
22
+ /**
23
+ *
24
+ */
25
+ digest: string;
26
+ }
27
+ /**
28
+ * Check if a given object implements the ImageUpgradeImage interface.
29
+ */
30
+ export declare function instanceOfImageUpgradeImage(value: object): value is ImageUpgradeImage;
31
+ export declare function ImageUpgradeImageFromJSON(json: any): ImageUpgradeImage;
32
+ export declare function ImageUpgradeImageFromJSONTyped(json: any, ignoreDiscriminator: boolean): ImageUpgradeImage;
33
+ export declare function ImageUpgradeImageToJSON(json: any): ImageUpgradeImage;
34
+ export declare function ImageUpgradeImageToJSONTyped(value?: ImageUpgradeImage | null, ignoreDiscriminator?: boolean): any;