@openshift-migration-advisor/agent-sdk 0.33.1-84c734aba511 → 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.
- package/.openapi-generator/FILES +14 -0
- package/README.md +14 -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/VirtualMachinesApi.d.ts +6 -6
- 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/VirtualMachinesApi.d.ts +6 -6
- 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/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/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 +7 -0
- package/dist/esm/models/index.js +7 -0
- 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/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/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 +7 -0
- package/dist/models/index.js +7 -0
- 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/Datastore.md +4 -0
- package/docs/DiskGeometryCondition.md +38 -0
- package/docs/GroupsApi.md +4 -4
- 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/VirtualMachinesApi.ts +6 -6
- 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/Datastore.ts +19 -0
- package/src/models/DiskGeometryCondition.ts +90 -0
- package/src/models/StorageArray.ts +81 -0
- package/src/models/VirtualMachineDatastore.ts +20 -0
- package/src/models/index.ts +7 -0
|
@@ -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
|
+
/**
|
|
13
|
+
* Authoritative source VASA array identity associated with this datastore; distinct from LUN inquiry metadata and storage-container identity
|
|
14
|
+
* @export
|
|
15
|
+
* @interface StorageArray
|
|
16
|
+
*/
|
|
17
|
+
export interface StorageArray {
|
|
18
|
+
/**
|
|
19
|
+
* Array UUID reported by the source, when available
|
|
20
|
+
*/
|
|
21
|
+
uuid?: string;
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
*/
|
|
25
|
+
name?: string;
|
|
26
|
+
/**
|
|
27
|
+
* VASA vendor ID, not a SCSI inquiry vendor
|
|
28
|
+
*/
|
|
29
|
+
vendorId?: string;
|
|
30
|
+
/**
|
|
31
|
+
* VASA model ID, not a SCSI inquiry model
|
|
32
|
+
*/
|
|
33
|
+
modelId?: string;
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Check if a given object implements the StorageArray interface.
|
|
37
|
+
*/
|
|
38
|
+
export declare function instanceOfStorageArray(value: object): value is StorageArray;
|
|
39
|
+
export declare function StorageArrayFromJSON(json: any): StorageArray;
|
|
40
|
+
export declare function StorageArrayFromJSONTyped(json: any, ignoreDiscriminator: boolean): StorageArray;
|
|
41
|
+
export declare function StorageArrayToJSON(json: any): StorageArray;
|
|
42
|
+
export declare function StorageArrayToJSONTyped(value?: StorageArray | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Assisted Migration Agent API
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: v2
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* Check if a given object implements the StorageArray interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfStorageArray(value) {
|
|
18
|
+
return true;
|
|
19
|
+
}
|
|
20
|
+
export function StorageArrayFromJSON(json) {
|
|
21
|
+
return StorageArrayFromJSONTyped(json, false);
|
|
22
|
+
}
|
|
23
|
+
export function StorageArrayFromJSONTyped(json, ignoreDiscriminator) {
|
|
24
|
+
if (json == null) {
|
|
25
|
+
return json;
|
|
26
|
+
}
|
|
27
|
+
return {
|
|
28
|
+
'uuid': json['uuid'] == null ? undefined : json['uuid'],
|
|
29
|
+
'name': json['name'] == null ? undefined : json['name'],
|
|
30
|
+
'vendorId': json['vendorId'] == null ? undefined : json['vendorId'],
|
|
31
|
+
'modelId': json['modelId'] == null ? undefined : json['modelId'],
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
export function StorageArrayToJSON(json) {
|
|
35
|
+
return StorageArrayToJSONTyped(json, false);
|
|
36
|
+
}
|
|
37
|
+
export function StorageArrayToJSONTyped(value, ignoreDiscriminator = false) {
|
|
38
|
+
if (value == null) {
|
|
39
|
+
return value;
|
|
40
|
+
}
|
|
41
|
+
return {
|
|
42
|
+
'uuid': value['uuid'],
|
|
43
|
+
'name': value['name'],
|
|
44
|
+
'vendorId': value['vendorId'],
|
|
45
|
+
'modelId': value['modelId'],
|
|
46
|
+
};
|
|
47
|
+
}
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { StorageArray } from './StorageArray.js';
|
|
12
13
|
/**
|
|
13
14
|
* Datastore backing this virtual disk
|
|
14
15
|
* @export
|
|
@@ -55,6 +56,14 @@ export interface VirtualMachineDatastore {
|
|
|
55
56
|
* Model reported by matching backing devices when available
|
|
56
57
|
*/
|
|
57
58
|
model?: string;
|
|
59
|
+
/**
|
|
60
|
+
* Source-reported VASA arrays associated with this datastore, when available
|
|
61
|
+
*/
|
|
62
|
+
storageArrays?: Array<StorageArray>;
|
|
63
|
+
/**
|
|
64
|
+
* Source-reported storage container identifier, when available
|
|
65
|
+
*/
|
|
66
|
+
storageContainerId?: string;
|
|
58
67
|
}
|
|
59
68
|
/**
|
|
60
69
|
* Check if a given object implements the VirtualMachineDatastore interface.
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
* https://openapi-generator.tech
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
|
+
import { StorageArrayFromJSON, StorageArrayToJSON, } from './StorageArray.js';
|
|
14
15
|
/**
|
|
15
16
|
* Check if a given object implements the VirtualMachineDatastore interface.
|
|
16
17
|
*/
|
|
@@ -35,6 +36,8 @@ export function VirtualMachineDatastoreFromJSONTyped(json, ignoreDiscriminator)
|
|
|
35
36
|
'backingDeviceIds': json['backingDeviceIds'] == null ? undefined : json['backingDeviceIds'],
|
|
36
37
|
'vendor': json['vendor'] == null ? undefined : json['vendor'],
|
|
37
38
|
'model': json['model'] == null ? undefined : json['model'],
|
|
39
|
+
'storageArrays': json['storageArrays'] == null ? undefined : (json['storageArrays'].map(StorageArrayFromJSON)),
|
|
40
|
+
'storageContainerId': json['storageContainerId'] == null ? undefined : json['storageContainerId'],
|
|
38
41
|
};
|
|
39
42
|
}
|
|
40
43
|
export function VirtualMachineDatastoreToJSON(json) {
|
|
@@ -55,5 +58,7 @@ export function VirtualMachineDatastoreToJSONTyped(value, ignoreDiscriminator =
|
|
|
55
58
|
'backingDeviceIds': value['backingDeviceIds'],
|
|
56
59
|
'vendor': value['vendor'],
|
|
57
60
|
'model': value['model'],
|
|
61
|
+
'storageArrays': value['storageArrays'] == null ? undefined : (value['storageArrays'].map(StorageArrayToJSON)),
|
|
62
|
+
'storageContainerId': value['storageContainerId'],
|
|
58
63
|
};
|
|
59
64
|
}
|
|
@@ -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';
|
package/dist/esm/models/index.js
CHANGED
|
@@ -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
|
+
}
|