@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.
- 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/esm/apis/AppliancesApi.d.ts +194 -0
- package/dist/esm/apis/AppliancesApi.js +201 -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/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/StorageArray.md +41 -0
- package/docs/VirtualMachineDatastore.md +4 -0
- package/package.json +1 -1
- package/src/apis/AppliancesApi.ts +393 -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/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,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
|
+
}
|
|
@@ -10,12 +10,21 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import type { StorageIoConfiguration } from './StorageIoConfiguration.js';
|
|
13
|
+
import type { StorageArray } from './StorageArray.js';
|
|
13
14
|
/**
|
|
14
15
|
*
|
|
15
16
|
* @export
|
|
16
17
|
* @interface Datastore
|
|
17
18
|
*/
|
|
18
19
|
export interface Datastore {
|
|
20
|
+
/**
|
|
21
|
+
* Source-reported VASA arrays; absence does not establish that the datastore has no array
|
|
22
|
+
*/
|
|
23
|
+
storageArrays?: Array<StorageArray>;
|
|
24
|
+
/**
|
|
25
|
+
* Source storage-container identifier, distinct from array UUID and protocol-endpoint identity
|
|
26
|
+
*/
|
|
27
|
+
storageContainerId?: string;
|
|
19
28
|
/**
|
|
20
29
|
*
|
|
21
30
|
*/
|
package/dist/models/Datastore.js
CHANGED
|
@@ -20,6 +20,7 @@ exports.DatastoreFromJSONTyped = DatastoreFromJSONTyped;
|
|
|
20
20
|
exports.DatastoreToJSON = DatastoreToJSON;
|
|
21
21
|
exports.DatastoreToJSONTyped = DatastoreToJSONTyped;
|
|
22
22
|
const StorageIoConfiguration_js_1 = require("./StorageIoConfiguration.js");
|
|
23
|
+
const StorageArray_js_1 = require("./StorageArray.js");
|
|
23
24
|
/**
|
|
24
25
|
* @export
|
|
25
26
|
*/
|
|
@@ -58,6 +59,8 @@ function DatastoreFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
58
59
|
return json;
|
|
59
60
|
}
|
|
60
61
|
return {
|
|
62
|
+
'storageArrays': json['storageArrays'] == null ? undefined : (json['storageArrays'].map(StorageArray_js_1.StorageArrayFromJSON)),
|
|
63
|
+
'storageContainerId': json['storageContainerId'] == null ? undefined : json['storageContainerId'],
|
|
61
64
|
'type': json['type'],
|
|
62
65
|
'backingDeviceIds': json['backingDeviceIds'] == null ? undefined : json['backingDeviceIds'],
|
|
63
66
|
'filesystemType': json['filesystemType'] == null ? undefined : json['filesystemType'],
|
|
@@ -83,6 +86,8 @@ function DatastoreToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
83
86
|
return value;
|
|
84
87
|
}
|
|
85
88
|
return {
|
|
89
|
+
'storageArrays': value['storageArrays'] == null ? undefined : (value['storageArrays'].map(StorageArray_js_1.StorageArrayToJSON)),
|
|
90
|
+
'storageContainerId': value['storageContainerId'],
|
|
86
91
|
'type': value['type'],
|
|
87
92
|
'backingDeviceIds': value['backingDeviceIds'],
|
|
88
93
|
'filesystemType': value['filesystemType'],
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Assisted Migration Agent API
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: v2
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface DiskGeometryCondition
|
|
16
|
+
*/
|
|
17
|
+
export interface DiskGeometryCondition {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
*/
|
|
21
|
+
disks: Array<number>;
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
*/
|
|
25
|
+
mode: DiskGeometryConditionModeEnum;
|
|
26
|
+
/**
|
|
27
|
+
* Largest difference in MiB allowed between a required disk size and the size of a VM disk. Zero requires the sizes to match exactly.
|
|
28
|
+
*
|
|
29
|
+
*/
|
|
30
|
+
tolerance_mib: number;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* @export
|
|
34
|
+
*/
|
|
35
|
+
export declare const DiskGeometryConditionModeEnum: {
|
|
36
|
+
readonly Exact: "exact";
|
|
37
|
+
readonly Superset: "superset";
|
|
38
|
+
};
|
|
39
|
+
export type DiskGeometryConditionModeEnum = typeof DiskGeometryConditionModeEnum[keyof typeof DiskGeometryConditionModeEnum];
|
|
40
|
+
/**
|
|
41
|
+
* Check if a given object implements the DiskGeometryCondition interface.
|
|
42
|
+
*/
|
|
43
|
+
export declare function instanceOfDiskGeometryCondition(value: object): value is DiskGeometryCondition;
|
|
44
|
+
export declare function DiskGeometryConditionFromJSON(json: any): DiskGeometryCondition;
|
|
45
|
+
export declare function DiskGeometryConditionFromJSONTyped(json: any, ignoreDiscriminator: boolean): DiskGeometryCondition;
|
|
46
|
+
export declare function DiskGeometryConditionToJSON(json: any): DiskGeometryCondition;
|
|
47
|
+
export declare function DiskGeometryConditionToJSONTyped(value?: DiskGeometryCondition | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,66 @@
|
|
|
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.DiskGeometryConditionModeEnum = void 0;
|
|
17
|
+
exports.instanceOfDiskGeometryCondition = instanceOfDiskGeometryCondition;
|
|
18
|
+
exports.DiskGeometryConditionFromJSON = DiskGeometryConditionFromJSON;
|
|
19
|
+
exports.DiskGeometryConditionFromJSONTyped = DiskGeometryConditionFromJSONTyped;
|
|
20
|
+
exports.DiskGeometryConditionToJSON = DiskGeometryConditionToJSON;
|
|
21
|
+
exports.DiskGeometryConditionToJSONTyped = DiskGeometryConditionToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.DiskGeometryConditionModeEnum = {
|
|
26
|
+
Exact: 'exact',
|
|
27
|
+
Superset: 'superset',
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Check if a given object implements the DiskGeometryCondition interface.
|
|
31
|
+
*/
|
|
32
|
+
function instanceOfDiskGeometryCondition(value) {
|
|
33
|
+
if (!('disks' in value) || value['disks'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
if (!('mode' in value) || value['mode'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
if (!('tolerance_mib' in value) || value['tolerance_mib'] === undefined)
|
|
38
|
+
return false;
|
|
39
|
+
return true;
|
|
40
|
+
}
|
|
41
|
+
function DiskGeometryConditionFromJSON(json) {
|
|
42
|
+
return DiskGeometryConditionFromJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function DiskGeometryConditionFromJSONTyped(json, ignoreDiscriminator) {
|
|
45
|
+
if (json == null) {
|
|
46
|
+
return json;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'disks': json['disks'],
|
|
50
|
+
'mode': json['mode'],
|
|
51
|
+
'tolerance_mib': json['tolerance_mib'],
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
function DiskGeometryConditionToJSON(json) {
|
|
55
|
+
return DiskGeometryConditionToJSONTyped(json, false);
|
|
56
|
+
}
|
|
57
|
+
function DiskGeometryConditionToJSONTyped(value, ignoreDiscriminator = false) {
|
|
58
|
+
if (value == null) {
|
|
59
|
+
return value;
|
|
60
|
+
}
|
|
61
|
+
return {
|
|
62
|
+
'disks': value['disks'],
|
|
63
|
+
'mode': value['mode'],
|
|
64
|
+
'tolerance_mib': value['tolerance_mib'],
|
|
65
|
+
};
|
|
66
|
+
}
|
|
@@ -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,54 @@
|
|
|
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.instanceOfStorageArray = instanceOfStorageArray;
|
|
17
|
+
exports.StorageArrayFromJSON = StorageArrayFromJSON;
|
|
18
|
+
exports.StorageArrayFromJSONTyped = StorageArrayFromJSONTyped;
|
|
19
|
+
exports.StorageArrayToJSON = StorageArrayToJSON;
|
|
20
|
+
exports.StorageArrayToJSONTyped = StorageArrayToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the StorageArray interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfStorageArray(value) {
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
function StorageArrayFromJSON(json) {
|
|
28
|
+
return StorageArrayFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
function StorageArrayFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'uuid': json['uuid'] == null ? undefined : json['uuid'],
|
|
36
|
+
'name': json['name'] == null ? undefined : json['name'],
|
|
37
|
+
'vendorId': json['vendorId'] == null ? undefined : json['vendorId'],
|
|
38
|
+
'modelId': json['modelId'] == null ? undefined : json['modelId'],
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
function StorageArrayToJSON(json) {
|
|
42
|
+
return StorageArrayToJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function StorageArrayToJSONTyped(value, ignoreDiscriminator = false) {
|
|
45
|
+
if (value == null) {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'uuid': value['uuid'],
|
|
50
|
+
'name': value['name'],
|
|
51
|
+
'vendorId': value['vendorId'],
|
|
52
|
+
'modelId': value['modelId'],
|
|
53
|
+
};
|
|
54
|
+
}
|
|
@@ -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.
|
|
@@ -18,6 +18,7 @@ exports.VirtualMachineDatastoreFromJSON = VirtualMachineDatastoreFromJSON;
|
|
|
18
18
|
exports.VirtualMachineDatastoreFromJSONTyped = VirtualMachineDatastoreFromJSONTyped;
|
|
19
19
|
exports.VirtualMachineDatastoreToJSON = VirtualMachineDatastoreToJSON;
|
|
20
20
|
exports.VirtualMachineDatastoreToJSONTyped = VirtualMachineDatastoreToJSONTyped;
|
|
21
|
+
const StorageArray_js_1 = require("./StorageArray.js");
|
|
21
22
|
/**
|
|
22
23
|
* Check if a given object implements the VirtualMachineDatastore interface.
|
|
23
24
|
*/
|
|
@@ -42,6 +43,8 @@ function VirtualMachineDatastoreFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
42
43
|
'backingDeviceIds': json['backingDeviceIds'] == null ? undefined : json['backingDeviceIds'],
|
|
43
44
|
'vendor': json['vendor'] == null ? undefined : json['vendor'],
|
|
44
45
|
'model': json['model'] == null ? undefined : json['model'],
|
|
46
|
+
'storageArrays': json['storageArrays'] == null ? undefined : (json['storageArrays'].map(StorageArray_js_1.StorageArrayFromJSON)),
|
|
47
|
+
'storageContainerId': json['storageContainerId'] == null ? undefined : json['storageContainerId'],
|
|
45
48
|
};
|
|
46
49
|
}
|
|
47
50
|
function VirtualMachineDatastoreToJSON(json) {
|
|
@@ -62,5 +65,7 @@ function VirtualMachineDatastoreToJSONTyped(value, ignoreDiscriminator = false)
|
|
|
62
65
|
'backingDeviceIds': value['backingDeviceIds'],
|
|
63
66
|
'vendor': value['vendor'],
|
|
64
67
|
'model': value['model'],
|
|
68
|
+
'storageArrays': value['storageArrays'] == null ? undefined : (value['storageArrays'].map(StorageArray_js_1.StorageArrayToJSON)),
|
|
69
|
+
'storageContainerId': value['storageContainerId'],
|
|
65
70
|
};
|
|
66
71
|
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -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/models/index.js
CHANGED
|
@@ -21,6 +21,11 @@ __exportStar(require("./AgentStatus.js"), exports);
|
|
|
21
21
|
__exportStar(require("./AgentStatusConsoleConnection.js"), exports);
|
|
22
22
|
__exportStar(require("./Appliance.js"), exports);
|
|
23
23
|
__exportStar(require("./ApplianceListResponse.js"), exports);
|
|
24
|
+
__exportStar(require("./ApplianceRule.js"), exports);
|
|
25
|
+
__exportStar(require("./ApplianceRuleCondition.js"), exports);
|
|
26
|
+
__exportStar(require("./ApplianceRuleFunction.js"), exports);
|
|
27
|
+
__exportStar(require("./ApplianceRuleListResponse.js"), exports);
|
|
28
|
+
__exportStar(require("./ApplianceRuleRequest.js"), exports);
|
|
24
29
|
__exportStar(require("./ApplicationListResponse.js"), exports);
|
|
25
30
|
__exportStar(require("./ApplicationOverview.js"), exports);
|
|
26
31
|
__exportStar(require("./ApplicationVM.js"), exports);
|
|
@@ -46,6 +51,7 @@ __exportStar(require("./Datastore.js"), exports);
|
|
|
46
51
|
__exportStar(require("./DatastoreDetail.js"), exports);
|
|
47
52
|
__exportStar(require("./DatastorePairRequest.js"), exports);
|
|
48
53
|
__exportStar(require("./DeleteLabelGloballyResponse.js"), exports);
|
|
54
|
+
__exportStar(require("./DiskGeometryCondition.js"), exports);
|
|
49
55
|
__exportStar(require("./DiskSizeTierSummary.js"), exports);
|
|
50
56
|
__exportStar(require("./DiskTypeSummary.js"), exports);
|
|
51
57
|
__exportStar(require("./EstimateRange.js"), exports);
|
|
@@ -86,6 +92,7 @@ __exportStar(require("./RightsizingClusterUtilization.js"), exports);
|
|
|
86
92
|
__exportStar(require("./StartForecasterRequest.js"), exports);
|
|
87
93
|
__exportStar(require("./StartInspectionRequest.js"), exports);
|
|
88
94
|
__exportStar(require("./StopForecasterPair202Response.js"), exports);
|
|
95
|
+
__exportStar(require("./StorageArray.js"), exports);
|
|
89
96
|
__exportStar(require("./StorageIoConfiguration.js"), exports);
|
|
90
97
|
__exportStar(require("./SuccessfulImageUpgrade.js"), exports);
|
|
91
98
|
__exportStar(require("./UpdateGroupRequest.js"), exports);
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
|
|
2
|
+
# ApplianceRule
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`id` | string
|
|
10
|
+
`name` | string
|
|
11
|
+
`vendor` | string
|
|
12
|
+
`category` | string
|
|
13
|
+
`osv_verdict` | string
|
|
14
|
+
`max_confidence` | string
|
|
15
|
+
`kind` | string
|
|
16
|
+
`min_matched` | number
|
|
17
|
+
`conditions` | [Array<ApplianceRuleCondition>](ApplianceRuleCondition.md)
|
|
18
|
+
|
|
19
|
+
## Example
|
|
20
|
+
|
|
21
|
+
```typescript
|
|
22
|
+
import type { ApplianceRule } from '@openshift-migration-advisor/agent-sdk'
|
|
23
|
+
|
|
24
|
+
// TODO: Update the object below with actual values
|
|
25
|
+
const example = {
|
|
26
|
+
"id": null,
|
|
27
|
+
"name": null,
|
|
28
|
+
"vendor": null,
|
|
29
|
+
"category": null,
|
|
30
|
+
"osv_verdict": null,
|
|
31
|
+
"max_confidence": null,
|
|
32
|
+
"kind": null,
|
|
33
|
+
"min_matched": null,
|
|
34
|
+
"conditions": null,
|
|
35
|
+
} satisfies ApplianceRule
|
|
36
|
+
|
|
37
|
+
console.log(example)
|
|
38
|
+
|
|
39
|
+
// Convert the instance to a JSON string
|
|
40
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
41
|
+
console.log(exampleJSON)
|
|
42
|
+
|
|
43
|
+
// Parse the JSON string back to an object
|
|
44
|
+
const exampleParsed = JSON.parse(exampleJSON) as ApplianceRule
|
|
45
|
+
console.log(exampleParsed)
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
49
|
+
|
|
50
|
+
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
|
|
2
|
+
# ApplianceRuleCondition
|
|
3
|
+
|
|
4
|
+
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.
|
|
5
|
+
|
|
6
|
+
## Properties
|
|
7
|
+
|
|
8
|
+
Name | Type
|
|
9
|
+
------------ | -------------
|
|
10
|
+
`name` | string
|
|
11
|
+
`expression` | string
|
|
12
|
+
`_function` | [ApplianceRuleFunction](ApplianceRuleFunction.md)
|
|
13
|
+
|
|
14
|
+
## Example
|
|
15
|
+
|
|
16
|
+
```typescript
|
|
17
|
+
import type { ApplianceRuleCondition } from '@openshift-migration-advisor/agent-sdk'
|
|
18
|
+
|
|
19
|
+
// TODO: Update the object below with actual values
|
|
20
|
+
const example = {
|
|
21
|
+
"name": null,
|
|
22
|
+
"expression": null,
|
|
23
|
+
"_function": null,
|
|
24
|
+
} satisfies ApplianceRuleCondition
|
|
25
|
+
|
|
26
|
+
console.log(example)
|
|
27
|
+
|
|
28
|
+
// Convert the instance to a JSON string
|
|
29
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
30
|
+
console.log(exampleJSON)
|
|
31
|
+
|
|
32
|
+
// Parse the JSON string back to an object
|
|
33
|
+
const exampleParsed = JSON.parse(exampleJSON) as ApplianceRuleCondition
|
|
34
|
+
console.log(exampleParsed)
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
38
|
+
|
|
39
|
+
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
|
|
2
|
+
# ApplianceRuleFunction
|
|
3
|
+
|
|
4
|
+
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.
|
|
5
|
+
|
|
6
|
+
## Properties
|
|
7
|
+
|
|
8
|
+
Name | Type
|
|
9
|
+
------------ | -------------
|
|
10
|
+
`name` | string
|
|
11
|
+
`disk_geometry` | [DiskGeometryCondition](DiskGeometryCondition.md)
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import type { ApplianceRuleFunction } from '@openshift-migration-advisor/agent-sdk'
|
|
17
|
+
|
|
18
|
+
// TODO: Update the object below with actual values
|
|
19
|
+
const example = {
|
|
20
|
+
"name": null,
|
|
21
|
+
"disk_geometry": null,
|
|
22
|
+
} satisfies ApplianceRuleFunction
|
|
23
|
+
|
|
24
|
+
console.log(example)
|
|
25
|
+
|
|
26
|
+
// Convert the instance to a JSON string
|
|
27
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
28
|
+
console.log(exampleJSON)
|
|
29
|
+
|
|
30
|
+
// Parse the JSON string back to an object
|
|
31
|
+
const exampleParsed = JSON.parse(exampleJSON) as ApplianceRuleFunction
|
|
32
|
+
console.log(exampleParsed)
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
36
|
+
|
|
37
|
+
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
|
|
2
|
+
# ApplianceRuleListResponse
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`rules` | [Array<ApplianceRule>](ApplianceRule.md)
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import type { ApplianceRuleListResponse } from '@openshift-migration-advisor/agent-sdk'
|
|
15
|
+
|
|
16
|
+
// TODO: Update the object below with actual values
|
|
17
|
+
const example = {
|
|
18
|
+
"rules": null,
|
|
19
|
+
} satisfies ApplianceRuleListResponse
|
|
20
|
+
|
|
21
|
+
console.log(example)
|
|
22
|
+
|
|
23
|
+
// Convert the instance to a JSON string
|
|
24
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
25
|
+
console.log(exampleJSON)
|
|
26
|
+
|
|
27
|
+
// Parse the JSON string back to an object
|
|
28
|
+
const exampleParsed = JSON.parse(exampleJSON) as ApplianceRuleListResponse
|
|
29
|
+
console.log(exampleParsed)
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
33
|
+
|
|
34
|
+
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
|
|
2
|
+
# ApplianceRuleRequest
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`name` | string
|
|
10
|
+
`vendor` | string
|
|
11
|
+
`category` | string
|
|
12
|
+
`osv_verdict` | string
|
|
13
|
+
`max_confidence` | string
|
|
14
|
+
`min_matched` | number
|
|
15
|
+
`conditions` | [Array<ApplianceRuleCondition>](ApplianceRuleCondition.md)
|
|
16
|
+
|
|
17
|
+
## Example
|
|
18
|
+
|
|
19
|
+
```typescript
|
|
20
|
+
import type { ApplianceRuleRequest } from '@openshift-migration-advisor/agent-sdk'
|
|
21
|
+
|
|
22
|
+
// TODO: Update the object below with actual values
|
|
23
|
+
const example = {
|
|
24
|
+
"name": null,
|
|
25
|
+
"vendor": null,
|
|
26
|
+
"category": null,
|
|
27
|
+
"osv_verdict": null,
|
|
28
|
+
"max_confidence": null,
|
|
29
|
+
"min_matched": null,
|
|
30
|
+
"conditions": null,
|
|
31
|
+
} satisfies ApplianceRuleRequest
|
|
32
|
+
|
|
33
|
+
console.log(example)
|
|
34
|
+
|
|
35
|
+
// Convert the instance to a JSON string
|
|
36
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
37
|
+
console.log(exampleJSON)
|
|
38
|
+
|
|
39
|
+
// Parse the JSON string back to an object
|
|
40
|
+
const exampleParsed = JSON.parse(exampleJSON) as ApplianceRuleRequest
|
|
41
|
+
console.log(exampleParsed)
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
45
|
+
|
|
46
|
+
|