@openshift-migration-advisor/agent-sdk 0.33.1-d63d5073ca08 → 0.33.1-e1c90d7b1b79

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 (68) hide show
  1. package/.openapi-generator/FILES +14 -0
  2. package/README.md +14 -2
  3. package/dist/apis/AppliancesApi.d.ts +194 -0
  4. package/dist/apis/AppliancesApi.js +201 -0
  5. package/dist/esm/apis/AppliancesApi.d.ts +194 -0
  6. package/dist/esm/apis/AppliancesApi.js +201 -0
  7. package/dist/esm/models/ApplianceRule.d.ts +90 -0
  8. package/dist/esm/models/ApplianceRule.js +98 -0
  9. package/dist/esm/models/ApplianceRuleCondition.d.ts +42 -0
  10. package/dist/esm/models/ApplianceRuleCondition.js +48 -0
  11. package/dist/esm/models/ApplianceRuleFunction.d.ts +37 -0
  12. package/dist/esm/models/ApplianceRuleFunction.js +46 -0
  13. package/dist/esm/models/ApplianceRuleListResponse.d.ts +31 -0
  14. package/dist/esm/models/ApplianceRuleListResponse.js +44 -0
  15. package/dist/esm/models/ApplianceRuleRequest.d.ts +74 -0
  16. package/dist/esm/models/ApplianceRuleRequest.js +85 -0
  17. package/dist/esm/models/Datastore.d.ts +9 -0
  18. package/dist/esm/models/Datastore.js +5 -0
  19. package/dist/esm/models/DiskGeometryCondition.d.ts +47 -0
  20. package/dist/esm/models/DiskGeometryCondition.js +58 -0
  21. package/dist/esm/models/StorageArray.d.ts +42 -0
  22. package/dist/esm/models/StorageArray.js +47 -0
  23. package/dist/esm/models/VirtualMachineDatastore.d.ts +9 -0
  24. package/dist/esm/models/VirtualMachineDatastore.js +5 -0
  25. package/dist/esm/models/index.d.ts +7 -0
  26. package/dist/esm/models/index.js +7 -0
  27. package/dist/models/ApplianceRule.d.ts +90 -0
  28. package/dist/models/ApplianceRule.js +106 -0
  29. package/dist/models/ApplianceRuleCondition.d.ts +42 -0
  30. package/dist/models/ApplianceRuleCondition.js +55 -0
  31. package/dist/models/ApplianceRuleFunction.d.ts +37 -0
  32. package/dist/models/ApplianceRuleFunction.js +53 -0
  33. package/dist/models/ApplianceRuleListResponse.d.ts +31 -0
  34. package/dist/models/ApplianceRuleListResponse.js +51 -0
  35. package/dist/models/ApplianceRuleRequest.d.ts +74 -0
  36. package/dist/models/ApplianceRuleRequest.js +93 -0
  37. package/dist/models/Datastore.d.ts +9 -0
  38. package/dist/models/Datastore.js +5 -0
  39. package/dist/models/DiskGeometryCondition.d.ts +47 -0
  40. package/dist/models/DiskGeometryCondition.js +66 -0
  41. package/dist/models/StorageArray.d.ts +42 -0
  42. package/dist/models/StorageArray.js +54 -0
  43. package/dist/models/VirtualMachineDatastore.d.ts +9 -0
  44. package/dist/models/VirtualMachineDatastore.js +5 -0
  45. package/dist/models/index.d.ts +7 -0
  46. package/dist/models/index.js +7 -0
  47. package/docs/ApplianceRule.md +50 -0
  48. package/docs/ApplianceRuleCondition.md +39 -0
  49. package/docs/ApplianceRuleFunction.md +37 -0
  50. package/docs/ApplianceRuleListResponse.md +34 -0
  51. package/docs/ApplianceRuleRequest.md +46 -0
  52. package/docs/AppliancesApi.md +338 -0
  53. package/docs/Datastore.md +4 -0
  54. package/docs/DiskGeometryCondition.md +38 -0
  55. package/docs/StorageArray.md +41 -0
  56. package/docs/VirtualMachineDatastore.md +4 -0
  57. package/package.json +1 -1
  58. package/src/apis/AppliancesApi.ts +393 -0
  59. package/src/models/ApplianceRule.ts +159 -0
  60. package/src/models/ApplianceRuleCondition.ts +87 -0
  61. package/src/models/ApplianceRuleFunction.ts +80 -0
  62. package/src/models/ApplianceRuleListResponse.ts +72 -0
  63. package/src/models/ApplianceRuleRequest.ts +137 -0
  64. package/src/models/Datastore.ts +19 -0
  65. package/src/models/DiskGeometryCondition.ts +90 -0
  66. package/src/models/StorageArray.ts +81 -0
  67. package/src/models/VirtualMachineDatastore.ts +20 -0
  68. package/src/models/index.ts +7 -0
@@ -3,6 +3,11 @@ export * from './AgentStatus.js';
3
3
  export * from './AgentStatusConsoleConnection.js';
4
4
  export * from './Appliance.js';
5
5
  export * from './ApplianceListResponse.js';
6
+ export * from './ApplianceRule.js';
7
+ export * from './ApplianceRuleCondition.js';
8
+ export * from './ApplianceRuleFunction.js';
9
+ export * from './ApplianceRuleListResponse.js';
10
+ export * from './ApplianceRuleRequest.js';
6
11
  export * from './ApplicationListResponse.js';
7
12
  export * from './ApplicationOverview.js';
8
13
  export * from './ApplicationVM.js';
@@ -28,6 +33,7 @@ export * from './Datastore.js';
28
33
  export * from './DatastoreDetail.js';
29
34
  export * from './DatastorePairRequest.js';
30
35
  export * from './DeleteLabelGloballyResponse.js';
36
+ export * from './DiskGeometryCondition.js';
31
37
  export * from './DiskSizeTierSummary.js';
32
38
  export * from './DiskTypeSummary.js';
33
39
  export * from './EstimateRange.js';
@@ -68,6 +74,7 @@ export * from './RightsizingClusterUtilization.js';
68
74
  export * from './StartForecasterRequest.js';
69
75
  export * from './StartInspectionRequest.js';
70
76
  export * from './StopForecasterPair202Response.js';
77
+ export * from './StorageArray.js';
71
78
  export * from './StorageIoConfiguration.js';
72
79
  export * from './SuccessfulImageUpgrade.js';
73
80
  export * from './UpdateGroupRequest.js';
@@ -5,6 +5,11 @@ export * from './AgentStatus.js';
5
5
  export * from './AgentStatusConsoleConnection.js';
6
6
  export * from './Appliance.js';
7
7
  export * from './ApplianceListResponse.js';
8
+ export * from './ApplianceRule.js';
9
+ export * from './ApplianceRuleCondition.js';
10
+ export * from './ApplianceRuleFunction.js';
11
+ export * from './ApplianceRuleListResponse.js';
12
+ export * from './ApplianceRuleRequest.js';
8
13
  export * from './ApplicationListResponse.js';
9
14
  export * from './ApplicationOverview.js';
10
15
  export * from './ApplicationVM.js';
@@ -30,6 +35,7 @@ export * from './Datastore.js';
30
35
  export * from './DatastoreDetail.js';
31
36
  export * from './DatastorePairRequest.js';
32
37
  export * from './DeleteLabelGloballyResponse.js';
38
+ export * from './DiskGeometryCondition.js';
33
39
  export * from './DiskSizeTierSummary.js';
34
40
  export * from './DiskTypeSummary.js';
35
41
  export * from './EstimateRange.js';
@@ -70,6 +76,7 @@ export * from './RightsizingClusterUtilization.js';
70
76
  export * from './StartForecasterRequest.js';
71
77
  export * from './StartInspectionRequest.js';
72
78
  export * from './StopForecasterPair202Response.js';
79
+ export * from './StorageArray.js';
73
80
  export * from './StorageIoConfiguration.js';
74
81
  export * from './SuccessfulImageUpgrade.js';
75
82
  export * from './UpdateGroupRequest.js';
@@ -0,0 +1,90 @@
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 ApplianceRule
17
+ */
18
+ export interface ApplianceRule {
19
+ /**
20
+ * Rule ID
21
+ */
22
+ id?: string;
23
+ /**
24
+ * Appliance product name
25
+ */
26
+ name: string;
27
+ /**
28
+ * Appliance vendor
29
+ */
30
+ vendor: string;
31
+ /**
32
+ * Appliance category
33
+ */
34
+ category: string;
35
+ /**
36
+ * OSV migration verdict
37
+ */
38
+ osv_verdict: ApplianceRuleOsvVerdictEnum;
39
+ /**
40
+ * Confidence ceiling for this rule
41
+ */
42
+ max_confidence: ApplianceRuleMaxConfidenceEnum;
43
+ /**
44
+ * Kind of rules either default or custom
45
+ */
46
+ kind: ApplianceRuleKindEnum;
47
+ /**
48
+ * Number of conditions that must match before the rule fires
49
+ */
50
+ min_matched: number;
51
+ /**
52
+ *
53
+ */
54
+ conditions: Array<ApplianceRuleCondition>;
55
+ }
56
+ /**
57
+ * @export
58
+ */
59
+ export declare const ApplianceRuleOsvVerdictEnum: {
60
+ readonly Blocked: "blocked";
61
+ readonly Conditional: "conditional";
62
+ readonly Supported: "supported";
63
+ readonly Unknown: "unknown";
64
+ };
65
+ export type ApplianceRuleOsvVerdictEnum = typeof ApplianceRuleOsvVerdictEnum[keyof typeof ApplianceRuleOsvVerdictEnum];
66
+ /**
67
+ * @export
68
+ */
69
+ export declare const ApplianceRuleMaxConfidenceEnum: {
70
+ readonly High: "high";
71
+ readonly Medium: "medium";
72
+ readonly Low: "low";
73
+ };
74
+ export type ApplianceRuleMaxConfidenceEnum = typeof ApplianceRuleMaxConfidenceEnum[keyof typeof ApplianceRuleMaxConfidenceEnum];
75
+ /**
76
+ * @export
77
+ */
78
+ export declare const ApplianceRuleKindEnum: {
79
+ readonly Default: "default";
80
+ readonly Custom: "custom";
81
+ };
82
+ export type ApplianceRuleKindEnum = typeof ApplianceRuleKindEnum[keyof typeof ApplianceRuleKindEnum];
83
+ /**
84
+ * Check if a given object implements the ApplianceRule interface.
85
+ */
86
+ export declare function instanceOfApplianceRule(value: object): value is ApplianceRule;
87
+ export declare function ApplianceRuleFromJSON(json: any): ApplianceRule;
88
+ export declare function ApplianceRuleFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApplianceRule;
89
+ export declare function ApplianceRuleToJSON(json: any): ApplianceRule;
90
+ export declare function ApplianceRuleToJSONTyped(value?: ApplianceRule | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,106 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Assisted Migration Agent API
6
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
+ *
8
+ * The version of the OpenAPI document: v2
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.ApplianceRuleKindEnum = exports.ApplianceRuleMaxConfidenceEnum = exports.ApplianceRuleOsvVerdictEnum = void 0;
17
+ exports.instanceOfApplianceRule = instanceOfApplianceRule;
18
+ exports.ApplianceRuleFromJSON = ApplianceRuleFromJSON;
19
+ exports.ApplianceRuleFromJSONTyped = ApplianceRuleFromJSONTyped;
20
+ exports.ApplianceRuleToJSON = ApplianceRuleToJSON;
21
+ exports.ApplianceRuleToJSONTyped = ApplianceRuleToJSONTyped;
22
+ const ApplianceRuleCondition_js_1 = require("./ApplianceRuleCondition.js");
23
+ /**
24
+ * @export
25
+ */
26
+ exports.ApplianceRuleOsvVerdictEnum = {
27
+ Blocked: 'blocked',
28
+ Conditional: 'conditional',
29
+ Supported: 'supported',
30
+ Unknown: 'unknown',
31
+ };
32
+ /**
33
+ * @export
34
+ */
35
+ exports.ApplianceRuleMaxConfidenceEnum = {
36
+ High: 'high',
37
+ Medium: 'medium',
38
+ Low: 'low',
39
+ };
40
+ /**
41
+ * @export
42
+ */
43
+ exports.ApplianceRuleKindEnum = {
44
+ Default: 'default',
45
+ Custom: 'custom',
46
+ };
47
+ /**
48
+ * Check if a given object implements the ApplianceRule interface.
49
+ */
50
+ function instanceOfApplianceRule(value) {
51
+ if (!('name' in value) || value['name'] === undefined)
52
+ return false;
53
+ if (!('vendor' in value) || value['vendor'] === undefined)
54
+ return false;
55
+ if (!('category' in value) || value['category'] === undefined)
56
+ return false;
57
+ if (!('osv_verdict' in value) || value['osv_verdict'] === undefined)
58
+ return false;
59
+ if (!('max_confidence' in value) || value['max_confidence'] === undefined)
60
+ return false;
61
+ if (!('kind' in value) || value['kind'] === undefined)
62
+ return false;
63
+ if (!('min_matched' in value) || value['min_matched'] === undefined)
64
+ return false;
65
+ if (!('conditions' in value) || value['conditions'] === undefined)
66
+ return false;
67
+ return true;
68
+ }
69
+ function ApplianceRuleFromJSON(json) {
70
+ return ApplianceRuleFromJSONTyped(json, false);
71
+ }
72
+ function ApplianceRuleFromJSONTyped(json, ignoreDiscriminator) {
73
+ if (json == null) {
74
+ return json;
75
+ }
76
+ return {
77
+ 'id': json['id'] == null ? undefined : json['id'],
78
+ 'name': json['name'],
79
+ 'vendor': json['vendor'],
80
+ 'category': json['category'],
81
+ 'osv_verdict': json['osv_verdict'],
82
+ 'max_confidence': json['max_confidence'],
83
+ 'kind': json['kind'],
84
+ 'min_matched': json['min_matched'],
85
+ 'conditions': (json['conditions'].map(ApplianceRuleCondition_js_1.ApplianceRuleConditionFromJSON)),
86
+ };
87
+ }
88
+ function ApplianceRuleToJSON(json) {
89
+ return ApplianceRuleToJSONTyped(json, false);
90
+ }
91
+ function ApplianceRuleToJSONTyped(value, ignoreDiscriminator = false) {
92
+ if (value == null) {
93
+ return value;
94
+ }
95
+ return {
96
+ 'id': value['id'],
97
+ 'name': value['name'],
98
+ 'vendor': value['vendor'],
99
+ 'category': value['category'],
100
+ 'osv_verdict': value['osv_verdict'],
101
+ 'max_confidence': value['max_confidence'],
102
+ 'kind': value['kind'],
103
+ 'min_matched': value['min_matched'],
104
+ 'conditions': (value['conditions'].map(ApplianceRuleCondition_js_1.ApplianceRuleConditionToJSON)),
105
+ };
106
+ }
@@ -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,55 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Assisted Migration Agent API
6
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
+ *
8
+ * The version of the OpenAPI document: v2
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfApplianceRuleCondition = instanceOfApplianceRuleCondition;
17
+ exports.ApplianceRuleConditionFromJSON = ApplianceRuleConditionFromJSON;
18
+ exports.ApplianceRuleConditionFromJSONTyped = ApplianceRuleConditionFromJSONTyped;
19
+ exports.ApplianceRuleConditionToJSON = ApplianceRuleConditionToJSON;
20
+ exports.ApplianceRuleConditionToJSONTyped = ApplianceRuleConditionToJSONTyped;
21
+ const ApplianceRuleFunction_js_1 = require("./ApplianceRuleFunction.js");
22
+ /**
23
+ * Check if a given object implements the ApplianceRuleCondition interface.
24
+ */
25
+ function instanceOfApplianceRuleCondition(value) {
26
+ if (!('name' in value) || value['name'] === undefined)
27
+ return false;
28
+ return true;
29
+ }
30
+ function ApplianceRuleConditionFromJSON(json) {
31
+ return ApplianceRuleConditionFromJSONTyped(json, false);
32
+ }
33
+ function ApplianceRuleConditionFromJSONTyped(json, ignoreDiscriminator) {
34
+ if (json == null) {
35
+ return json;
36
+ }
37
+ return {
38
+ 'name': json['name'],
39
+ 'expression': json['expression'] == null ? undefined : json['expression'],
40
+ '_function': json['function'] == null ? undefined : (0, ApplianceRuleFunction_js_1.ApplianceRuleFunctionFromJSON)(json['function']),
41
+ };
42
+ }
43
+ function ApplianceRuleConditionToJSON(json) {
44
+ return ApplianceRuleConditionToJSONTyped(json, false);
45
+ }
46
+ function ApplianceRuleConditionToJSONTyped(value, ignoreDiscriminator = false) {
47
+ if (value == null) {
48
+ return value;
49
+ }
50
+ return {
51
+ 'name': value['name'],
52
+ 'expression': value['expression'],
53
+ 'function': (0, ApplianceRuleFunction_js_1.ApplianceRuleFunctionToJSON)(value['_function']),
54
+ };
55
+ }
@@ -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,53 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Assisted Migration Agent API
6
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
+ *
8
+ * The version of the OpenAPI document: v2
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfApplianceRuleFunction = instanceOfApplianceRuleFunction;
17
+ exports.ApplianceRuleFunctionFromJSON = ApplianceRuleFunctionFromJSON;
18
+ exports.ApplianceRuleFunctionFromJSONTyped = ApplianceRuleFunctionFromJSONTyped;
19
+ exports.ApplianceRuleFunctionToJSON = ApplianceRuleFunctionToJSON;
20
+ exports.ApplianceRuleFunctionToJSONTyped = ApplianceRuleFunctionToJSONTyped;
21
+ const DiskGeometryCondition_js_1 = require("./DiskGeometryCondition.js");
22
+ /**
23
+ * Check if a given object implements the ApplianceRuleFunction interface.
24
+ */
25
+ function instanceOfApplianceRuleFunction(value) {
26
+ if (!('name' in value) || value['name'] === undefined)
27
+ return false;
28
+ return true;
29
+ }
30
+ function ApplianceRuleFunctionFromJSON(json) {
31
+ return ApplianceRuleFunctionFromJSONTyped(json, false);
32
+ }
33
+ function ApplianceRuleFunctionFromJSONTyped(json, ignoreDiscriminator) {
34
+ if (json == null) {
35
+ return json;
36
+ }
37
+ return {
38
+ 'name': json['name'],
39
+ 'disk_geometry': json['disk_geometry'] == null ? undefined : (0, DiskGeometryCondition_js_1.DiskGeometryConditionFromJSON)(json['disk_geometry']),
40
+ };
41
+ }
42
+ function ApplianceRuleFunctionToJSON(json) {
43
+ return ApplianceRuleFunctionToJSONTyped(json, false);
44
+ }
45
+ function ApplianceRuleFunctionToJSONTyped(value, ignoreDiscriminator = false) {
46
+ if (value == null) {
47
+ return value;
48
+ }
49
+ return {
50
+ 'name': value['name'],
51
+ 'disk_geometry': (0, DiskGeometryCondition_js_1.DiskGeometryConditionToJSON)(value['disk_geometry']),
52
+ };
53
+ }
@@ -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,51 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Assisted Migration Agent API
6
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
+ *
8
+ * The version of the OpenAPI document: v2
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfApplianceRuleListResponse = instanceOfApplianceRuleListResponse;
17
+ exports.ApplianceRuleListResponseFromJSON = ApplianceRuleListResponseFromJSON;
18
+ exports.ApplianceRuleListResponseFromJSONTyped = ApplianceRuleListResponseFromJSONTyped;
19
+ exports.ApplianceRuleListResponseToJSON = ApplianceRuleListResponseToJSON;
20
+ exports.ApplianceRuleListResponseToJSONTyped = ApplianceRuleListResponseToJSONTyped;
21
+ const ApplianceRule_js_1 = require("./ApplianceRule.js");
22
+ /**
23
+ * Check if a given object implements the ApplianceRuleListResponse interface.
24
+ */
25
+ function instanceOfApplianceRuleListResponse(value) {
26
+ if (!('rules' in value) || value['rules'] === undefined)
27
+ return false;
28
+ return true;
29
+ }
30
+ function ApplianceRuleListResponseFromJSON(json) {
31
+ return ApplianceRuleListResponseFromJSONTyped(json, false);
32
+ }
33
+ function ApplianceRuleListResponseFromJSONTyped(json, ignoreDiscriminator) {
34
+ if (json == null) {
35
+ return json;
36
+ }
37
+ return {
38
+ 'rules': (json['rules'].map(ApplianceRule_js_1.ApplianceRuleFromJSON)),
39
+ };
40
+ }
41
+ function ApplianceRuleListResponseToJSON(json) {
42
+ return ApplianceRuleListResponseToJSONTyped(json, false);
43
+ }
44
+ function ApplianceRuleListResponseToJSONTyped(value, ignoreDiscriminator = false) {
45
+ if (value == null) {
46
+ return value;
47
+ }
48
+ return {
49
+ 'rules': (value['rules'].map(ApplianceRule_js_1.ApplianceRuleToJSON)),
50
+ };
51
+ }
@@ -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;