@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.
- package/.openapi-generator/FILES +26 -0
- package/README.md +20 -2
- package/dist/apis/AppliancesApi.d.ts +194 -0
- package/dist/apis/AppliancesApi.js +201 -0
- package/dist/apis/GroupsApi.d.ts +6 -6
- package/dist/apis/RecommendationsApi.d.ts +64 -0
- package/dist/apis/RecommendationsApi.js +74 -0
- package/dist/apis/VirtualMachinesApi.d.ts +6 -6
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/esm/apis/AppliancesApi.d.ts +194 -0
- package/dist/esm/apis/AppliancesApi.js +201 -0
- package/dist/esm/apis/GroupsApi.d.ts +6 -6
- package/dist/esm/apis/RecommendationsApi.d.ts +64 -0
- package/dist/esm/apis/RecommendationsApi.js +70 -0
- package/dist/esm/apis/VirtualMachinesApi.d.ts +6 -6
- package/dist/esm/apis/index.d.ts +1 -0
- package/dist/esm/apis/index.js +1 -0
- package/dist/esm/models/ApplianceRule.d.ts +90 -0
- package/dist/esm/models/ApplianceRule.js +98 -0
- package/dist/esm/models/ApplianceRuleCondition.d.ts +42 -0
- package/dist/esm/models/ApplianceRuleCondition.js +48 -0
- package/dist/esm/models/ApplianceRuleFunction.d.ts +37 -0
- package/dist/esm/models/ApplianceRuleFunction.js +46 -0
- package/dist/esm/models/ApplianceRuleListResponse.d.ts +31 -0
- package/dist/esm/models/ApplianceRuleListResponse.js +44 -0
- package/dist/esm/models/ApplianceRuleRequest.d.ts +74 -0
- package/dist/esm/models/ApplianceRuleRequest.js +85 -0
- package/dist/esm/models/ComplexityDiskScoreEntry.d.ts +39 -0
- package/dist/esm/models/ComplexityDiskScoreEntry.js +51 -0
- package/dist/esm/models/ComplexityOSNameEntry.d.ts +40 -0
- package/dist/esm/models/ComplexityOSNameEntry.js +51 -0
- package/dist/esm/models/ComplexityOSScoreEntry.d.ts +35 -0
- package/dist/esm/models/ComplexityOSScoreEntry.js +47 -0
- package/dist/esm/models/Datastore.d.ts +9 -0
- package/dist/esm/models/Datastore.js +5 -0
- package/dist/esm/models/DiskGeometryCondition.d.ts +47 -0
- package/dist/esm/models/DiskGeometryCondition.js +58 -0
- package/dist/esm/models/MigrationComplexityRequest.d.ts +30 -0
- package/dist/esm/models/MigrationComplexityRequest.js +41 -0
- package/dist/esm/models/MigrationComplexityResponse.d.ts +58 -0
- package/dist/esm/models/MigrationComplexityResponse.js +62 -0
- package/dist/esm/models/StorageArray.d.ts +42 -0
- package/dist/esm/models/StorageArray.js +47 -0
- package/dist/esm/models/VirtualMachineDatastore.d.ts +9 -0
- package/dist/esm/models/VirtualMachineDatastore.js +5 -0
- package/dist/esm/models/index.d.ts +12 -0
- package/dist/esm/models/index.js +12 -0
- package/dist/esm/runtime.d.ts +3 -1
- package/dist/esm/runtime.js +1 -1
- package/dist/models/ApplianceRule.d.ts +90 -0
- package/dist/models/ApplianceRule.js +106 -0
- package/dist/models/ApplianceRuleCondition.d.ts +42 -0
- package/dist/models/ApplianceRuleCondition.js +55 -0
- package/dist/models/ApplianceRuleFunction.d.ts +37 -0
- package/dist/models/ApplianceRuleFunction.js +53 -0
- package/dist/models/ApplianceRuleListResponse.d.ts +31 -0
- package/dist/models/ApplianceRuleListResponse.js +51 -0
- package/dist/models/ApplianceRuleRequest.d.ts +74 -0
- package/dist/models/ApplianceRuleRequest.js +93 -0
- package/dist/models/ComplexityDiskScoreEntry.d.ts +39 -0
- package/dist/models/ComplexityDiskScoreEntry.js +58 -0
- package/dist/models/ComplexityOSNameEntry.d.ts +40 -0
- package/dist/models/ComplexityOSNameEntry.js +58 -0
- package/dist/models/ComplexityOSScoreEntry.d.ts +35 -0
- package/dist/models/ComplexityOSScoreEntry.js +54 -0
- package/dist/models/Datastore.d.ts +9 -0
- package/dist/models/Datastore.js +5 -0
- package/dist/models/DiskGeometryCondition.d.ts +47 -0
- package/dist/models/DiskGeometryCondition.js +66 -0
- package/dist/models/MigrationComplexityRequest.d.ts +30 -0
- package/dist/models/MigrationComplexityRequest.js +48 -0
- package/dist/models/MigrationComplexityResponse.d.ts +58 -0
- package/dist/models/MigrationComplexityResponse.js +69 -0
- package/dist/models/StorageArray.d.ts +42 -0
- package/dist/models/StorageArray.js +54 -0
- package/dist/models/VirtualMachineDatastore.d.ts +9 -0
- package/dist/models/VirtualMachineDatastore.js +5 -0
- package/dist/models/index.d.ts +12 -0
- package/dist/models/index.js +12 -0
- package/dist/runtime.d.ts +3 -1
- package/dist/runtime.js +1 -1
- package/docs/ApplianceRule.md +50 -0
- package/docs/ApplianceRuleCondition.md +39 -0
- package/docs/ApplianceRuleFunction.md +37 -0
- package/docs/ApplianceRuleListResponse.md +34 -0
- package/docs/ApplianceRuleRequest.md +46 -0
- package/docs/AppliancesApi.md +338 -0
- package/docs/ComplexityDiskScoreEntry.md +39 -0
- package/docs/ComplexityOSNameEntry.md +39 -0
- package/docs/ComplexityOSScoreEntry.md +37 -0
- package/docs/Datastore.md +4 -0
- package/docs/DiskGeometryCondition.md +38 -0
- package/docs/GroupsApi.md +4 -4
- package/docs/MigrationComplexityRequest.md +35 -0
- package/docs/MigrationComplexityResponse.md +43 -0
- package/docs/RecommendationsApi.md +79 -0
- package/docs/StorageArray.md +41 -0
- package/docs/VirtualMachineDatastore.md +4 -0
- package/docs/VirtualMachinesApi.md +4 -4
- package/package.json +1 -1
- package/src/apis/AppliancesApi.ts +393 -0
- package/src/apis/GroupsApi.ts +6 -6
- package/src/apis/RecommendationsApi.ts +117 -0
- package/src/apis/VirtualMachinesApi.ts +6 -6
- package/src/apis/index.ts +1 -0
- package/src/models/ApplianceRule.ts +159 -0
- package/src/models/ApplianceRuleCondition.ts +87 -0
- package/src/models/ApplianceRuleFunction.ts +80 -0
- package/src/models/ApplianceRuleListResponse.ts +72 -0
- package/src/models/ApplianceRuleRequest.ts +137 -0
- package/src/models/ComplexityDiskScoreEntry.ts +79 -0
- package/src/models/ComplexityOSNameEntry.ts +80 -0
- package/src/models/ComplexityOSScoreEntry.ts +72 -0
- package/src/models/Datastore.ts +19 -0
- package/src/models/DiskGeometryCondition.ts +90 -0
- package/src/models/MigrationComplexityRequest.ts +63 -0
- package/src/models/MigrationComplexityResponse.ts +119 -0
- package/src/models/StorageArray.ts +81 -0
- package/src/models/VirtualMachineDatastore.ts +20 -0
- package/src/models/index.ts +12 -0
- package/src/runtime.ts +8 -1
|
@@ -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;
|
|
@@ -0,0 +1,93 @@
|
|
|
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.ApplianceRuleRequestMaxConfidenceEnum = exports.ApplianceRuleRequestOsvVerdictEnum = void 0;
|
|
17
|
+
exports.instanceOfApplianceRuleRequest = instanceOfApplianceRuleRequest;
|
|
18
|
+
exports.ApplianceRuleRequestFromJSON = ApplianceRuleRequestFromJSON;
|
|
19
|
+
exports.ApplianceRuleRequestFromJSONTyped = ApplianceRuleRequestFromJSONTyped;
|
|
20
|
+
exports.ApplianceRuleRequestToJSON = ApplianceRuleRequestToJSON;
|
|
21
|
+
exports.ApplianceRuleRequestToJSONTyped = ApplianceRuleRequestToJSONTyped;
|
|
22
|
+
const ApplianceRuleCondition_js_1 = require("./ApplianceRuleCondition.js");
|
|
23
|
+
/**
|
|
24
|
+
* @export
|
|
25
|
+
*/
|
|
26
|
+
exports.ApplianceRuleRequestOsvVerdictEnum = {
|
|
27
|
+
Blocked: 'blocked',
|
|
28
|
+
Conditional: 'conditional',
|
|
29
|
+
Supported: 'supported',
|
|
30
|
+
Unknown: 'unknown',
|
|
31
|
+
};
|
|
32
|
+
/**
|
|
33
|
+
* @export
|
|
34
|
+
*/
|
|
35
|
+
exports.ApplianceRuleRequestMaxConfidenceEnum = {
|
|
36
|
+
High: 'high',
|
|
37
|
+
Medium: 'medium',
|
|
38
|
+
Low: 'low',
|
|
39
|
+
};
|
|
40
|
+
/**
|
|
41
|
+
* Check if a given object implements the ApplianceRuleRequest interface.
|
|
42
|
+
*/
|
|
43
|
+
function instanceOfApplianceRuleRequest(value) {
|
|
44
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
45
|
+
return false;
|
|
46
|
+
if (!('vendor' in value) || value['vendor'] === undefined)
|
|
47
|
+
return false;
|
|
48
|
+
if (!('category' in value) || value['category'] === undefined)
|
|
49
|
+
return false;
|
|
50
|
+
if (!('osv_verdict' in value) || value['osv_verdict'] === undefined)
|
|
51
|
+
return false;
|
|
52
|
+
if (!('max_confidence' in value) || value['max_confidence'] === undefined)
|
|
53
|
+
return false;
|
|
54
|
+
if (!('min_matched' in value) || value['min_matched'] === undefined)
|
|
55
|
+
return false;
|
|
56
|
+
if (!('conditions' in value) || value['conditions'] === undefined)
|
|
57
|
+
return false;
|
|
58
|
+
return true;
|
|
59
|
+
}
|
|
60
|
+
function ApplianceRuleRequestFromJSON(json) {
|
|
61
|
+
return ApplianceRuleRequestFromJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
function ApplianceRuleRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
64
|
+
if (json == null) {
|
|
65
|
+
return json;
|
|
66
|
+
}
|
|
67
|
+
return {
|
|
68
|
+
'name': json['name'],
|
|
69
|
+
'vendor': json['vendor'],
|
|
70
|
+
'category': json['category'],
|
|
71
|
+
'osv_verdict': json['osv_verdict'],
|
|
72
|
+
'max_confidence': json['max_confidence'],
|
|
73
|
+
'min_matched': json['min_matched'],
|
|
74
|
+
'conditions': (json['conditions'].map(ApplianceRuleCondition_js_1.ApplianceRuleConditionFromJSON)),
|
|
75
|
+
};
|
|
76
|
+
}
|
|
77
|
+
function ApplianceRuleRequestToJSON(json) {
|
|
78
|
+
return ApplianceRuleRequestToJSONTyped(json, false);
|
|
79
|
+
}
|
|
80
|
+
function ApplianceRuleRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
81
|
+
if (value == null) {
|
|
82
|
+
return value;
|
|
83
|
+
}
|
|
84
|
+
return {
|
|
85
|
+
'name': value['name'],
|
|
86
|
+
'vendor': value['vendor'],
|
|
87
|
+
'category': value['category'],
|
|
88
|
+
'osv_verdict': value['osv_verdict'],
|
|
89
|
+
'max_confidence': value['max_confidence'],
|
|
90
|
+
'min_matched': value['min_matched'],
|
|
91
|
+
'conditions': (value['conditions'].map(ApplianceRuleCondition_js_1.ApplianceRuleConditionToJSON)),
|
|
92
|
+
};
|
|
93
|
+
}
|
|
@@ -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;
|