@openshift-migration-advisor/planner-sdk 0.32.0-87bd7cc3be65 → 0.32.0-d0c6361703a9
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 +4 -0
- package/README.md +4 -2
- package/dist/apis/AssessmentApi.d.ts +15 -6
- package/dist/apis/AssessmentApi.js +9 -6
- package/dist/esm/apis/AssessmentApi.d.ts +15 -6
- package/dist/esm/apis/AssessmentApi.js +9 -6
- package/dist/esm/models/Datastore.d.ts +9 -0
- package/dist/esm/models/Datastore.js +5 -0
- package/dist/esm/models/Source.d.ts +6 -2
- package/dist/esm/models/Source.js +2 -0
- package/dist/esm/models/SourceType.d.ts +26 -0
- package/dist/esm/models/SourceType.js +44 -0
- package/dist/esm/models/StorageArray.d.ts +42 -0
- package/dist/esm/models/StorageArray.js +47 -0
- package/dist/esm/models/index.d.ts +2 -0
- package/dist/esm/models/index.js +2 -0
- package/dist/esm/runtime.js +4 -3
- package/dist/models/Datastore.d.ts +9 -0
- package/dist/models/Datastore.js +5 -0
- package/dist/models/Source.d.ts +6 -2
- package/dist/models/Source.js +2 -0
- package/dist/models/SourceType.d.ts +26 -0
- package/dist/models/SourceType.js +52 -0
- package/dist/models/StorageArray.d.ts +42 -0
- package/dist/models/StorageArray.js +54 -0
- package/dist/models/index.d.ts +2 -0
- package/dist/models/index.js +2 -0
- package/dist/runtime.js +4 -3
- package/docs/AssessmentApi.md +12 -3
- package/docs/Datastore.md +4 -0
- package/docs/Source.md +2 -0
- package/docs/SourceType.md +32 -0
- package/docs/StorageArray.md +41 -0
- package/package.json +1 -1
- package/src/apis/AssessmentApi.ts +26 -8
- package/src/models/Datastore.ts +19 -0
- package/src/models/Source.ts +8 -2
- package/src/models/SourceType.ts +54 -0
- package/src/models/StorageArray.ts +81 -0
- package/src/models/index.ts +2 -0
- package/src/runtime.ts +3 -3
package/dist/models/Source.js
CHANGED
|
@@ -66,6 +66,7 @@ function SourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
66
66
|
'infra': json['infra'] == null ? undefined : (0, SourceInfra_js_1.SourceInfraFromJSON)(json['infra']),
|
|
67
67
|
'agentVersion': json['agentVersion'] === undefined ? undefined : json['agentVersion'] === null ? null : json['agentVersion'],
|
|
68
68
|
'agentVersionWarning': json['agentVersionWarning'] === undefined ? undefined : json['agentVersionWarning'] === null ? null : json['agentVersionWarning'],
|
|
69
|
+
'applianceUpdateSupported': json['applianceUpdateSupported'] === undefined ? undefined : json['applianceUpdateSupported'] === null ? null : json['applianceUpdateSupported'],
|
|
69
70
|
'updateType': json['updateType'] == null ? undefined : json['updateType'],
|
|
70
71
|
};
|
|
71
72
|
}
|
|
@@ -88,6 +89,7 @@ function SourceToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
88
89
|
'infra': (0, SourceInfra_js_1.SourceInfraToJSON)(value['infra']),
|
|
89
90
|
'agentVersion': value['agentVersion'],
|
|
90
91
|
'agentVersionWarning': value['agentVersionWarning'],
|
|
92
|
+
'applianceUpdateSupported': value['applianceUpdateSupported'],
|
|
91
93
|
'updateType': value['updateType'],
|
|
92
94
|
};
|
|
93
95
|
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* OpenShift Migration Advisor API
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: v1alpha1
|
|
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
|
+
*/
|
|
16
|
+
export declare const SourceType: {
|
|
17
|
+
readonly Inventory: "inventory";
|
|
18
|
+
readonly Rvtools: "rvtools";
|
|
19
|
+
readonly Source: "source";
|
|
20
|
+
};
|
|
21
|
+
export type SourceType = typeof SourceType[keyof typeof SourceType];
|
|
22
|
+
export declare function instanceOfSourceType(value: any): boolean;
|
|
23
|
+
export declare function SourceTypeFromJSON(json: any): SourceType;
|
|
24
|
+
export declare function SourceTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): SourceType;
|
|
25
|
+
export declare function SourceTypeToJSON(value?: SourceType | null): any;
|
|
26
|
+
export declare function SourceTypeToJSONTyped(value: any, ignoreDiscriminator: boolean): SourceType;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* OpenShift Migration Advisor API
|
|
6
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: v1alpha1
|
|
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.SourceType = void 0;
|
|
17
|
+
exports.instanceOfSourceType = instanceOfSourceType;
|
|
18
|
+
exports.SourceTypeFromJSON = SourceTypeFromJSON;
|
|
19
|
+
exports.SourceTypeFromJSONTyped = SourceTypeFromJSONTyped;
|
|
20
|
+
exports.SourceTypeToJSON = SourceTypeToJSON;
|
|
21
|
+
exports.SourceTypeToJSONTyped = SourceTypeToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @export
|
|
25
|
+
*/
|
|
26
|
+
exports.SourceType = {
|
|
27
|
+
Inventory: 'inventory',
|
|
28
|
+
Rvtools: 'rvtools',
|
|
29
|
+
Source: 'source',
|
|
30
|
+
};
|
|
31
|
+
function instanceOfSourceType(value) {
|
|
32
|
+
for (const key in exports.SourceType) {
|
|
33
|
+
if (Object.prototype.hasOwnProperty.call(exports.SourceType, key)) {
|
|
34
|
+
if (exports.SourceType[key] === value) {
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
return false;
|
|
40
|
+
}
|
|
41
|
+
function SourceTypeFromJSON(json) {
|
|
42
|
+
return SourceTypeFromJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function SourceTypeFromJSONTyped(json, ignoreDiscriminator) {
|
|
45
|
+
return json;
|
|
46
|
+
}
|
|
47
|
+
function SourceTypeToJSON(value) {
|
|
48
|
+
return value;
|
|
49
|
+
}
|
|
50
|
+
function SourceTypeToJSONTyped(value, ignoreDiscriminator) {
|
|
51
|
+
return value;
|
|
52
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* OpenShift Migration Advisor API
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: v1alpha1
|
|
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
|
+
* OpenShift Migration Advisor API
|
|
6
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: v1alpha1
|
|
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
|
+
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -82,10 +82,12 @@ export * from './Snapshot.js';
|
|
|
82
82
|
export * from './Source.js';
|
|
83
83
|
export * from './SourceCreate.js';
|
|
84
84
|
export * from './SourceInfra.js';
|
|
85
|
+
export * from './SourceType.js';
|
|
85
86
|
export * from './SourceUpdate.js';
|
|
86
87
|
export * from './StandaloneClusterRequirementsRequest.js';
|
|
87
88
|
export * from './StandaloneClusterRequirementsResponse.js';
|
|
88
89
|
export * from './Status.js';
|
|
90
|
+
export * from './StorageArray.js';
|
|
89
91
|
export * from './StorageIoConfiguration.js';
|
|
90
92
|
export * from './SubResource.js';
|
|
91
93
|
export * from './UpdateInventory.js';
|
package/dist/models/index.js
CHANGED
|
@@ -100,10 +100,12 @@ __exportStar(require("./Snapshot.js"), exports);
|
|
|
100
100
|
__exportStar(require("./Source.js"), exports);
|
|
101
101
|
__exportStar(require("./SourceCreate.js"), exports);
|
|
102
102
|
__exportStar(require("./SourceInfra.js"), exports);
|
|
103
|
+
__exportStar(require("./SourceType.js"), exports);
|
|
103
104
|
__exportStar(require("./SourceUpdate.js"), exports);
|
|
104
105
|
__exportStar(require("./StandaloneClusterRequirementsRequest.js"), exports);
|
|
105
106
|
__exportStar(require("./StandaloneClusterRequirementsResponse.js"), exports);
|
|
106
107
|
__exportStar(require("./Status.js"), exports);
|
|
108
|
+
__exportStar(require("./StorageArray.js"), exports);
|
|
107
109
|
__exportStar(require("./StorageIoConfiguration.js"), exports);
|
|
108
110
|
__exportStar(require("./SubResource.js"), exports);
|
|
109
111
|
__exportStar(require("./UpdateInventory.js"), exports);
|
package/dist/runtime.js
CHANGED
|
@@ -440,7 +440,7 @@ function parseContentDispositionFilename(headers) {
|
|
|
440
440
|
function decodeExtValue(value) {
|
|
441
441
|
const match = value === undefined ? null : /^utf-8'[^']*'(.*)$/i.exec(value);
|
|
442
442
|
try {
|
|
443
|
-
return match ? decodeURIComponent(match[1]) : undefined;
|
|
443
|
+
return (match === null || match === void 0 ? void 0 : match[1]) !== undefined ? decodeURIComponent(match[1]) : undefined;
|
|
444
444
|
}
|
|
445
445
|
catch (_a) {
|
|
446
446
|
return undefined;
|
|
@@ -452,13 +452,14 @@ function decodeExtValue(value) {
|
|
|
452
452
|
* backslash escapes resolved, and the first occurrence of a name wins.
|
|
453
453
|
*/
|
|
454
454
|
function parseHeaderParameters(value) {
|
|
455
|
+
var _a, _b;
|
|
455
456
|
const params = new Map();
|
|
456
457
|
const parameter = /(?:^|;)\s*([^=;]+?)\s*=\s*(?:"((?:[^"\\]|\\.)*)"?|([^;]*))/g;
|
|
457
458
|
let match;
|
|
458
459
|
while ((match = parameter.exec(value)) !== null) {
|
|
459
|
-
const name = match[1].toLowerCase();
|
|
460
|
+
const name = ((_a = match[1]) !== null && _a !== void 0 ? _a : '').toLowerCase();
|
|
460
461
|
if (!params.has(name)) {
|
|
461
|
-
params.set(name, match[2] !== undefined ? match[2].replace(/\\(.)/g, '$1') : match[3].trim());
|
|
462
|
+
params.set(name, match[2] !== undefined ? match[2].replace(/\\(.)/g, '$1') : ((_b = match[3]) !== null && _b !== void 0 ? _b : '').trim());
|
|
462
463
|
}
|
|
463
464
|
}
|
|
464
465
|
return params;
|
package/docs/AssessmentApi.md
CHANGED
|
@@ -1047,7 +1047,7 @@ No authorization required
|
|
|
1047
1047
|
|
|
1048
1048
|
## listAssessmentsV2
|
|
1049
1049
|
|
|
1050
|
-
> Array<AssessmentV2Summary> listAssessmentsV2()
|
|
1050
|
+
> Array<AssessmentV2Summary> listAssessmentsV2(sourceType)
|
|
1051
1051
|
|
|
1052
1052
|
|
|
1053
1053
|
|
|
@@ -1066,8 +1066,13 @@ async function example() {
|
|
|
1066
1066
|
console.log("🚀 Testing @openshift-migration-advisor/planner-sdk SDK...");
|
|
1067
1067
|
const api = new AssessmentApi();
|
|
1068
1068
|
|
|
1069
|
+
const body = {
|
|
1070
|
+
// SourceType | Filter assessments by their source type (optional)
|
|
1071
|
+
sourceType: ...,
|
|
1072
|
+
} satisfies ListAssessmentsV2Request;
|
|
1073
|
+
|
|
1069
1074
|
try {
|
|
1070
|
-
const data = await api.listAssessmentsV2();
|
|
1075
|
+
const data = await api.listAssessmentsV2(body);
|
|
1071
1076
|
console.log(data);
|
|
1072
1077
|
} catch (error) {
|
|
1073
1078
|
console.error(error);
|
|
@@ -1080,7 +1085,10 @@ example().catch(console.error);
|
|
|
1080
1085
|
|
|
1081
1086
|
### Parameters
|
|
1082
1087
|
|
|
1083
|
-
|
|
1088
|
+
|
|
1089
|
+
| Name | Type | Description | Notes |
|
|
1090
|
+
|------------- | ------------- | ------------- | -------------|
|
|
1091
|
+
| **sourceType** | `SourceType` | Filter assessments by their source type | [Optional] [Defaults to `undefined`] [Enum: inventory, rvtools, source] |
|
|
1084
1092
|
|
|
1085
1093
|
### Return type
|
|
1086
1094
|
|
|
@@ -1100,6 +1108,7 @@ No authorization required
|
|
|
1100
1108
|
| Status code | Description | Response headers |
|
|
1101
1109
|
|-------------|-------------|------------------|
|
|
1102
1110
|
| **200** | OK | - |
|
|
1111
|
+
| **400** | Bad Request | - |
|
|
1103
1112
|
| **401** | Unauthorized | - |
|
|
1104
1113
|
| **500** | Internal error | - |
|
|
1105
1114
|
|
package/docs/Datastore.md
CHANGED
|
@@ -6,6 +6,8 @@
|
|
|
6
6
|
|
|
7
7
|
Name | Type
|
|
8
8
|
------------ | -------------
|
|
9
|
+
`storageArrays` | [Array<StorageArray>](StorageArray.md)
|
|
10
|
+
`storageContainerId` | string
|
|
9
11
|
`type` | string
|
|
10
12
|
`backingDeviceIds` | Array<string>
|
|
11
13
|
`filesystemType` | string
|
|
@@ -29,6 +31,8 @@ import type { Datastore } from '@openshift-migration-advisor/planner-sdk'
|
|
|
29
31
|
|
|
30
32
|
// TODO: Update the object below with actual values
|
|
31
33
|
const example = {
|
|
34
|
+
"storageArrays": null,
|
|
35
|
+
"storageContainerId": null,
|
|
32
36
|
"type": null,
|
|
33
37
|
"backingDeviceIds": null,
|
|
34
38
|
"filesystemType": null,
|
package/docs/Source.md
CHANGED
|
@@ -17,6 +17,7 @@ Name | Type
|
|
|
17
17
|
`infra` | [SourceInfra](SourceInfra.md)
|
|
18
18
|
`agentVersion` | string
|
|
19
19
|
`agentVersionWarning` | string
|
|
20
|
+
`applianceUpdateSupported` | boolean
|
|
20
21
|
`updateType` | string
|
|
21
22
|
|
|
22
23
|
## Example
|
|
@@ -37,6 +38,7 @@ const example = {
|
|
|
37
38
|
"infra": null,
|
|
38
39
|
"agentVersion": null,
|
|
39
40
|
"agentVersionWarning": null,
|
|
41
|
+
"applianceUpdateSupported": null,
|
|
40
42
|
"updateType": null,
|
|
41
43
|
} satisfies Source
|
|
42
44
|
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
|
|
2
|
+
# SourceType
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```typescript
|
|
13
|
+
import type { SourceType } from '@openshift-migration-advisor/planner-sdk'
|
|
14
|
+
|
|
15
|
+
// TODO: Update the object below with actual values
|
|
16
|
+
const example = {
|
|
17
|
+
} satisfies SourceType
|
|
18
|
+
|
|
19
|
+
console.log(example)
|
|
20
|
+
|
|
21
|
+
// Convert the instance to a JSON string
|
|
22
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
23
|
+
console.log(exampleJSON)
|
|
24
|
+
|
|
25
|
+
// Parse the JSON string back to an object
|
|
26
|
+
const exampleParsed = JSON.parse(exampleJSON) as SourceType
|
|
27
|
+
console.log(exampleParsed)
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
31
|
+
|
|
32
|
+
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
|
|
2
|
+
# StorageArray
|
|
3
|
+
|
|
4
|
+
Authoritative source VASA array identity associated with this datastore; distinct from LUN inquiry metadata and storage-container identity
|
|
5
|
+
|
|
6
|
+
## Properties
|
|
7
|
+
|
|
8
|
+
Name | Type
|
|
9
|
+
------------ | -------------
|
|
10
|
+
`uuid` | string
|
|
11
|
+
`name` | string
|
|
12
|
+
`vendorId` | string
|
|
13
|
+
`modelId` | string
|
|
14
|
+
|
|
15
|
+
## Example
|
|
16
|
+
|
|
17
|
+
```typescript
|
|
18
|
+
import type { StorageArray } from '@openshift-migration-advisor/planner-sdk'
|
|
19
|
+
|
|
20
|
+
// TODO: Update the object below with actual values
|
|
21
|
+
const example = {
|
|
22
|
+
"uuid": null,
|
|
23
|
+
"name": null,
|
|
24
|
+
"vendorId": null,
|
|
25
|
+
"modelId": null,
|
|
26
|
+
} satisfies StorageArray
|
|
27
|
+
|
|
28
|
+
console.log(example)
|
|
29
|
+
|
|
30
|
+
// Convert the instance to a JSON string
|
|
31
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
32
|
+
console.log(exampleJSON)
|
|
33
|
+
|
|
34
|
+
// Parse the JSON string back to an object
|
|
35
|
+
const exampleParsed = JSON.parse(exampleJSON) as StorageArray
|
|
36
|
+
console.log(exampleParsed)
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
40
|
+
|
|
41
|
+
|
package/package.json
CHANGED
|
@@ -93,6 +93,11 @@ import {
|
|
|
93
93
|
MigrationEstimationResponseFromJSON,
|
|
94
94
|
MigrationEstimationResponseToJSON,
|
|
95
95
|
} from '../models/MigrationEstimationResponse.js';
|
|
96
|
+
import {
|
|
97
|
+
type SourceType,
|
|
98
|
+
SourceTypeFromJSON,
|
|
99
|
+
SourceTypeToJSON,
|
|
100
|
+
} from '../models/SourceType.js';
|
|
96
101
|
import {
|
|
97
102
|
type Status,
|
|
98
103
|
StatusFromJSON,
|
|
@@ -226,6 +231,13 @@ export interface GetVcenterClusterRequest {
|
|
|
226
231
|
cid: string;
|
|
227
232
|
}
|
|
228
233
|
|
|
234
|
+
export interface ListAssessmentsV2Request {
|
|
235
|
+
/**
|
|
236
|
+
* Filter assessments by their source type
|
|
237
|
+
*/
|
|
238
|
+
sourceType?: SourceType;
|
|
239
|
+
}
|
|
240
|
+
|
|
229
241
|
export interface SaveAssessmentEnhancementDataRequest {
|
|
230
242
|
/**
|
|
231
243
|
* ID of the assessment
|
|
@@ -606,23 +618,25 @@ export interface AssessmentApiInterface {
|
|
|
606
618
|
|
|
607
619
|
/**
|
|
608
620
|
* Creates request options for listAssessmentsV2 without sending the request
|
|
621
|
+
* @param {SourceType} [sourceType] Filter assessments by their source type
|
|
609
622
|
* @throws {RequiredError}
|
|
610
623
|
* @memberof AssessmentApiInterface
|
|
611
624
|
*/
|
|
612
|
-
listAssessmentsV2RequestOpts(): Promise<runtime.RequestOpts>;
|
|
625
|
+
listAssessmentsV2RequestOpts(requestParameters: ListAssessmentsV2Request): Promise<runtime.RequestOpts>;
|
|
613
626
|
|
|
614
627
|
/**
|
|
615
628
|
* List assessments
|
|
629
|
+
* @param {SourceType} [sourceType] Filter assessments by their source type
|
|
616
630
|
* @param {*} [options] Override http request option.
|
|
617
631
|
* @throws {RequiredError}
|
|
618
632
|
* @memberof AssessmentApiInterface
|
|
619
633
|
*/
|
|
620
|
-
listAssessmentsV2Raw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<AssessmentV2Summary>>>;
|
|
634
|
+
listAssessmentsV2Raw(requestParameters: ListAssessmentsV2Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<AssessmentV2Summary>>>;
|
|
621
635
|
|
|
622
636
|
/**
|
|
623
637
|
* List assessments
|
|
624
638
|
*/
|
|
625
|
-
listAssessmentsV2(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<AssessmentV2Summary>>;
|
|
639
|
+
listAssessmentsV2(requestParameters: ListAssessmentsV2Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<AssessmentV2Summary>>;
|
|
626
640
|
|
|
627
641
|
/**
|
|
628
642
|
* Creates request options for saveAssessmentEnhancementData without sending the request
|
|
@@ -1456,9 +1470,13 @@ export class AssessmentApi extends runtime.BaseAPI implements AssessmentApiInter
|
|
|
1456
1470
|
/**
|
|
1457
1471
|
* Creates request options for listAssessmentsV2 without sending the request
|
|
1458
1472
|
*/
|
|
1459
|
-
async listAssessmentsV2RequestOpts(): Promise<runtime.RequestOpts> {
|
|
1473
|
+
async listAssessmentsV2RequestOpts(requestParameters: ListAssessmentsV2Request): Promise<runtime.RequestOpts> {
|
|
1460
1474
|
const queryParameters: any = {};
|
|
1461
1475
|
|
|
1476
|
+
if (requestParameters['sourceType'] != null) {
|
|
1477
|
+
queryParameters['sourceType'] = requestParameters['sourceType'];
|
|
1478
|
+
}
|
|
1479
|
+
|
|
1462
1480
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
1463
1481
|
|
|
1464
1482
|
|
|
@@ -1475,8 +1493,8 @@ export class AssessmentApi extends runtime.BaseAPI implements AssessmentApiInter
|
|
|
1475
1493
|
/**
|
|
1476
1494
|
* List assessments
|
|
1477
1495
|
*/
|
|
1478
|
-
async listAssessmentsV2Raw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<AssessmentV2Summary>>> {
|
|
1479
|
-
const requestOptions = await this.listAssessmentsV2RequestOpts();
|
|
1496
|
+
async listAssessmentsV2Raw(requestParameters: ListAssessmentsV2Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<AssessmentV2Summary>>> {
|
|
1497
|
+
const requestOptions = await this.listAssessmentsV2RequestOpts(requestParameters);
|
|
1480
1498
|
const response = await this.request(requestOptions, initOverrides);
|
|
1481
1499
|
|
|
1482
1500
|
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(AssessmentV2SummaryFromJSON));
|
|
@@ -1485,8 +1503,8 @@ export class AssessmentApi extends runtime.BaseAPI implements AssessmentApiInter
|
|
|
1485
1503
|
/**
|
|
1486
1504
|
* List assessments
|
|
1487
1505
|
*/
|
|
1488
|
-
async listAssessmentsV2(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<AssessmentV2Summary>> {
|
|
1489
|
-
const response = await this.listAssessmentsV2Raw(initOverrides);
|
|
1506
|
+
async listAssessmentsV2(requestParameters: ListAssessmentsV2Request = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<AssessmentV2Summary>> {
|
|
1507
|
+
const response = await this.listAssessmentsV2Raw(requestParameters, initOverrides);
|
|
1490
1508
|
return await response.value();
|
|
1491
1509
|
}
|
|
1492
1510
|
|
package/src/models/Datastore.ts
CHANGED
|
@@ -20,6 +20,13 @@ import {
|
|
|
20
20
|
StorageIoConfigurationToJSON,
|
|
21
21
|
StorageIoConfigurationToJSONTyped,
|
|
22
22
|
} from './StorageIoConfiguration.js';
|
|
23
|
+
import type { StorageArray } from './StorageArray.js';
|
|
24
|
+
import {
|
|
25
|
+
StorageArrayFromJSON,
|
|
26
|
+
StorageArrayFromJSONTyped,
|
|
27
|
+
StorageArrayToJSON,
|
|
28
|
+
StorageArrayToJSONTyped,
|
|
29
|
+
} from './StorageArray.js';
|
|
23
30
|
|
|
24
31
|
/**
|
|
25
32
|
*
|
|
@@ -27,6 +34,14 @@ import {
|
|
|
27
34
|
* @interface Datastore
|
|
28
35
|
*/
|
|
29
36
|
export interface Datastore {
|
|
37
|
+
/**
|
|
38
|
+
* Source-reported VASA arrays; absence does not establish that the datastore has no array
|
|
39
|
+
*/
|
|
40
|
+
storageArrays?: Array<StorageArray>;
|
|
41
|
+
/**
|
|
42
|
+
* Source storage-container identifier, distinct from array UUID and protocol-endpoint identity
|
|
43
|
+
*/
|
|
44
|
+
storageContainerId?: string;
|
|
30
45
|
/**
|
|
31
46
|
*
|
|
32
47
|
*/
|
|
@@ -126,6 +141,8 @@ export function DatastoreFromJSONTyped(json: any, ignoreDiscriminator: boolean):
|
|
|
126
141
|
}
|
|
127
142
|
return {
|
|
128
143
|
|
|
144
|
+
'storageArrays': json['storageArrays'] == null ? undefined : ((json['storageArrays'] as Array<any>).map(StorageArrayFromJSON)),
|
|
145
|
+
'storageContainerId': json['storageContainerId'] == null ? undefined : json['storageContainerId'],
|
|
129
146
|
'type': json['type'],
|
|
130
147
|
'backingDeviceIds': json['backingDeviceIds'] == null ? undefined : json['backingDeviceIds'],
|
|
131
148
|
'filesystemType': json['filesystemType'] == null ? undefined : json['filesystemType'],
|
|
@@ -155,6 +172,8 @@ export function DatastoreToJSONTyped(value?: Datastore | null, ignoreDiscriminat
|
|
|
155
172
|
|
|
156
173
|
return {
|
|
157
174
|
|
|
175
|
+
'storageArrays': value['storageArrays'] == null ? undefined : ((value['storageArrays'] as Array<any>).map(StorageArrayToJSON)),
|
|
176
|
+
'storageContainerId': value['storageContainerId'],
|
|
158
177
|
'type': value['type'],
|
|
159
178
|
'backingDeviceIds': value['backingDeviceIds'],
|
|
160
179
|
'filesystemType': value['filesystemType'],
|
package/src/models/Source.ts
CHANGED
|
@@ -85,13 +85,17 @@ export interface Source {
|
|
|
85
85
|
*/
|
|
86
86
|
infra?: SourceInfra;
|
|
87
87
|
/**
|
|
88
|
-
*
|
|
88
|
+
* The appliance version the source runs — agent-reported when connected, else the OVA-download stamp
|
|
89
89
|
*/
|
|
90
90
|
agentVersion?: string | null;
|
|
91
91
|
/**
|
|
92
|
-
* Warning message if
|
|
92
|
+
* Warning message if the version the source runs differs from the current appliance version
|
|
93
93
|
*/
|
|
94
94
|
agentVersionWarning?: string | null;
|
|
95
|
+
/**
|
|
96
|
+
* Whether the source's appliance can be updated in place with the served image; false means a new OVA must be deployed
|
|
97
|
+
*/
|
|
98
|
+
applianceUpdateSupported?: boolean | null;
|
|
95
99
|
/**
|
|
96
100
|
* Indicates whether the inventory was updated automatically by an agent or manually by a user
|
|
97
101
|
*/
|
|
@@ -142,6 +146,7 @@ export function SourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): So
|
|
|
142
146
|
'infra': json['infra'] == null ? undefined : SourceInfraFromJSON(json['infra']),
|
|
143
147
|
'agentVersion': json['agentVersion'] === undefined ? undefined : json['agentVersion'] === null ? null : json['agentVersion'],
|
|
144
148
|
'agentVersionWarning': json['agentVersionWarning'] === undefined ? undefined : json['agentVersionWarning'] === null ? null : json['agentVersionWarning'],
|
|
149
|
+
'applianceUpdateSupported': json['applianceUpdateSupported'] === undefined ? undefined : json['applianceUpdateSupported'] === null ? null : json['applianceUpdateSupported'],
|
|
145
150
|
'updateType': json['updateType'] == null ? undefined : json['updateType'],
|
|
146
151
|
};
|
|
147
152
|
}
|
|
@@ -168,6 +173,7 @@ export function SourceToJSONTyped(value?: Source | null, ignoreDiscriminator: bo
|
|
|
168
173
|
'infra': SourceInfraToJSON(value['infra']),
|
|
169
174
|
'agentVersion': value['agentVersion'],
|
|
170
175
|
'agentVersionWarning': value['agentVersionWarning'],
|
|
176
|
+
'applianceUpdateSupported': value['applianceUpdateSupported'],
|
|
171
177
|
'updateType': value['updateType'],
|
|
172
178
|
};
|
|
173
179
|
}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* OpenShift Migration Advisor API
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: v1alpha1
|
|
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
|
+
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
*/
|
|
20
|
+
export const SourceType = {
|
|
21
|
+
Inventory: 'inventory',
|
|
22
|
+
Rvtools: 'rvtools',
|
|
23
|
+
Source: 'source',
|
|
24
|
+
} as const;
|
|
25
|
+
export type SourceType = typeof SourceType[keyof typeof SourceType];
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
export function instanceOfSourceType(value: any): boolean {
|
|
29
|
+
for (const key in SourceType) {
|
|
30
|
+
if (Object.prototype.hasOwnProperty.call(SourceType, key)) {
|
|
31
|
+
if (SourceType[key as keyof typeof SourceType] === value) {
|
|
32
|
+
return true;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
return false;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export function SourceTypeFromJSON(json: any): SourceType {
|
|
40
|
+
return SourceTypeFromJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export function SourceTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): SourceType {
|
|
44
|
+
return json as SourceType;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export function SourceTypeToJSON(value?: SourceType | null): any {
|
|
48
|
+
return value as any;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export function SourceTypeToJSONTyped(value: any, ignoreDiscriminator: boolean): SourceType {
|
|
52
|
+
return value as SourceType;
|
|
53
|
+
}
|
|
54
|
+
|