@openshift-migration-advisor/agent-sdk 0.33.1-84c734aba511 → 0.33.1-d086ee06be70
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +26 -0
- package/README.md +20 -2
- package/dist/apis/AppliancesApi.d.ts +194 -0
- package/dist/apis/AppliancesApi.js +201 -0
- package/dist/apis/GroupsApi.d.ts +6 -6
- package/dist/apis/RecommendationsApi.d.ts +64 -0
- package/dist/apis/RecommendationsApi.js +74 -0
- package/dist/apis/VirtualMachinesApi.d.ts +6 -6
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/esm/apis/AppliancesApi.d.ts +194 -0
- package/dist/esm/apis/AppliancesApi.js +201 -0
- package/dist/esm/apis/GroupsApi.d.ts +6 -6
- package/dist/esm/apis/RecommendationsApi.d.ts +64 -0
- package/dist/esm/apis/RecommendationsApi.js +70 -0
- package/dist/esm/apis/VirtualMachinesApi.d.ts +6 -6
- package/dist/esm/apis/index.d.ts +1 -0
- package/dist/esm/apis/index.js +1 -0
- package/dist/esm/models/ApplianceRule.d.ts +90 -0
- package/dist/esm/models/ApplianceRule.js +98 -0
- package/dist/esm/models/ApplianceRuleCondition.d.ts +42 -0
- package/dist/esm/models/ApplianceRuleCondition.js +48 -0
- package/dist/esm/models/ApplianceRuleFunction.d.ts +37 -0
- package/dist/esm/models/ApplianceRuleFunction.js +46 -0
- package/dist/esm/models/ApplianceRuleListResponse.d.ts +31 -0
- package/dist/esm/models/ApplianceRuleListResponse.js +44 -0
- package/dist/esm/models/ApplianceRuleRequest.d.ts +74 -0
- package/dist/esm/models/ApplianceRuleRequest.js +85 -0
- package/dist/esm/models/ComplexityDiskScoreEntry.d.ts +39 -0
- package/dist/esm/models/ComplexityDiskScoreEntry.js +51 -0
- package/dist/esm/models/ComplexityOSNameEntry.d.ts +40 -0
- package/dist/esm/models/ComplexityOSNameEntry.js +51 -0
- package/dist/esm/models/ComplexityOSScoreEntry.d.ts +35 -0
- package/dist/esm/models/ComplexityOSScoreEntry.js +47 -0
- package/dist/esm/models/Datastore.d.ts +9 -0
- package/dist/esm/models/Datastore.js +5 -0
- package/dist/esm/models/DiskGeometryCondition.d.ts +47 -0
- package/dist/esm/models/DiskGeometryCondition.js +58 -0
- package/dist/esm/models/MigrationComplexityRequest.d.ts +30 -0
- package/dist/esm/models/MigrationComplexityRequest.js +41 -0
- package/dist/esm/models/MigrationComplexityResponse.d.ts +58 -0
- package/dist/esm/models/MigrationComplexityResponse.js +62 -0
- package/dist/esm/models/StorageArray.d.ts +42 -0
- package/dist/esm/models/StorageArray.js +47 -0
- package/dist/esm/models/VirtualMachineDatastore.d.ts +9 -0
- package/dist/esm/models/VirtualMachineDatastore.js +5 -0
- package/dist/esm/models/index.d.ts +12 -0
- package/dist/esm/models/index.js +12 -0
- package/dist/esm/runtime.d.ts +3 -1
- package/dist/esm/runtime.js +1 -1
- package/dist/models/ApplianceRule.d.ts +90 -0
- package/dist/models/ApplianceRule.js +106 -0
- package/dist/models/ApplianceRuleCondition.d.ts +42 -0
- package/dist/models/ApplianceRuleCondition.js +55 -0
- package/dist/models/ApplianceRuleFunction.d.ts +37 -0
- package/dist/models/ApplianceRuleFunction.js +53 -0
- package/dist/models/ApplianceRuleListResponse.d.ts +31 -0
- package/dist/models/ApplianceRuleListResponse.js +51 -0
- package/dist/models/ApplianceRuleRequest.d.ts +74 -0
- package/dist/models/ApplianceRuleRequest.js +93 -0
- package/dist/models/ComplexityDiskScoreEntry.d.ts +39 -0
- package/dist/models/ComplexityDiskScoreEntry.js +58 -0
- package/dist/models/ComplexityOSNameEntry.d.ts +40 -0
- package/dist/models/ComplexityOSNameEntry.js +58 -0
- package/dist/models/ComplexityOSScoreEntry.d.ts +35 -0
- package/dist/models/ComplexityOSScoreEntry.js +54 -0
- package/dist/models/Datastore.d.ts +9 -0
- package/dist/models/Datastore.js +5 -0
- package/dist/models/DiskGeometryCondition.d.ts +47 -0
- package/dist/models/DiskGeometryCondition.js +66 -0
- package/dist/models/MigrationComplexityRequest.d.ts +30 -0
- package/dist/models/MigrationComplexityRequest.js +48 -0
- package/dist/models/MigrationComplexityResponse.d.ts +58 -0
- package/dist/models/MigrationComplexityResponse.js +69 -0
- package/dist/models/StorageArray.d.ts +42 -0
- package/dist/models/StorageArray.js +54 -0
- package/dist/models/VirtualMachineDatastore.d.ts +9 -0
- package/dist/models/VirtualMachineDatastore.js +5 -0
- package/dist/models/index.d.ts +12 -0
- package/dist/models/index.js +12 -0
- package/dist/runtime.d.ts +3 -1
- package/dist/runtime.js +1 -1
- package/docs/ApplianceRule.md +50 -0
- package/docs/ApplianceRuleCondition.md +39 -0
- package/docs/ApplianceRuleFunction.md +37 -0
- package/docs/ApplianceRuleListResponse.md +34 -0
- package/docs/ApplianceRuleRequest.md +46 -0
- package/docs/AppliancesApi.md +338 -0
- package/docs/ComplexityDiskScoreEntry.md +39 -0
- package/docs/ComplexityOSNameEntry.md +39 -0
- package/docs/ComplexityOSScoreEntry.md +37 -0
- package/docs/Datastore.md +4 -0
- package/docs/DiskGeometryCondition.md +38 -0
- package/docs/GroupsApi.md +4 -4
- package/docs/MigrationComplexityRequest.md +35 -0
- package/docs/MigrationComplexityResponse.md +43 -0
- package/docs/RecommendationsApi.md +79 -0
- package/docs/StorageArray.md +41 -0
- package/docs/VirtualMachineDatastore.md +4 -0
- package/docs/VirtualMachinesApi.md +4 -4
- package/package.json +1 -1
- package/src/apis/AppliancesApi.ts +393 -0
- package/src/apis/GroupsApi.ts +6 -6
- package/src/apis/RecommendationsApi.ts +117 -0
- package/src/apis/VirtualMachinesApi.ts +6 -6
- package/src/apis/index.ts +1 -0
- package/src/models/ApplianceRule.ts +159 -0
- package/src/models/ApplianceRuleCondition.ts +87 -0
- package/src/models/ApplianceRuleFunction.ts +80 -0
- package/src/models/ApplianceRuleListResponse.ts +72 -0
- package/src/models/ApplianceRuleRequest.ts +137 -0
- package/src/models/ComplexityDiskScoreEntry.ts +79 -0
- package/src/models/ComplexityOSNameEntry.ts +80 -0
- package/src/models/ComplexityOSScoreEntry.ts +72 -0
- package/src/models/Datastore.ts +19 -0
- package/src/models/DiskGeometryCondition.ts +90 -0
- package/src/models/MigrationComplexityRequest.ts +63 -0
- package/src/models/MigrationComplexityResponse.ts +119 -0
- package/src/models/StorageArray.ts +81 -0
- package/src/models/VirtualMachineDatastore.ts +20 -0
- package/src/models/index.ts +12 -0
- package/src/runtime.ts +8 -1
|
@@ -0,0 +1,81 @@
|
|
|
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
|
+
import { mapValues } from '../runtime.js';
|
|
16
|
+
/**
|
|
17
|
+
* Authoritative source VASA array identity associated with this datastore; distinct from LUN inquiry metadata and storage-container identity
|
|
18
|
+
* @export
|
|
19
|
+
* @interface StorageArray
|
|
20
|
+
*/
|
|
21
|
+
export interface StorageArray {
|
|
22
|
+
/**
|
|
23
|
+
* Array UUID reported by the source, when available
|
|
24
|
+
*/
|
|
25
|
+
uuid?: string;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
*/
|
|
29
|
+
name?: string;
|
|
30
|
+
/**
|
|
31
|
+
* VASA vendor ID, not a SCSI inquiry vendor
|
|
32
|
+
*/
|
|
33
|
+
vendorId?: string;
|
|
34
|
+
/**
|
|
35
|
+
* VASA model ID, not a SCSI inquiry model
|
|
36
|
+
*/
|
|
37
|
+
modelId?: string;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* Check if a given object implements the StorageArray interface.
|
|
42
|
+
*/
|
|
43
|
+
export function instanceOfStorageArray(value: object): value is StorageArray {
|
|
44
|
+
return true;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export function StorageArrayFromJSON(json: any): StorageArray {
|
|
48
|
+
return StorageArrayFromJSONTyped(json, false);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export function StorageArrayFromJSONTyped(json: any, ignoreDiscriminator: boolean): StorageArray {
|
|
52
|
+
if (json == null) {
|
|
53
|
+
return json;
|
|
54
|
+
}
|
|
55
|
+
return {
|
|
56
|
+
|
|
57
|
+
'uuid': json['uuid'] == null ? undefined : json['uuid'],
|
|
58
|
+
'name': json['name'] == null ? undefined : json['name'],
|
|
59
|
+
'vendorId': json['vendorId'] == null ? undefined : json['vendorId'],
|
|
60
|
+
'modelId': json['modelId'] == null ? undefined : json['modelId'],
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function StorageArrayToJSON(json: any): StorageArray {
|
|
65
|
+
return StorageArrayToJSONTyped(json, false);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export function StorageArrayToJSONTyped(value?: StorageArray | null, ignoreDiscriminator: boolean = false): any {
|
|
69
|
+
if (value == null) {
|
|
70
|
+
return value;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
return {
|
|
74
|
+
|
|
75
|
+
'uuid': value['uuid'],
|
|
76
|
+
'name': value['name'],
|
|
77
|
+
'vendorId': value['vendorId'],
|
|
78
|
+
'modelId': value['modelId'],
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
|
|
@@ -13,6 +13,14 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { mapValues } from '../runtime.js';
|
|
16
|
+
import type { StorageArray } from './StorageArray.js';
|
|
17
|
+
import {
|
|
18
|
+
StorageArrayFromJSON,
|
|
19
|
+
StorageArrayFromJSONTyped,
|
|
20
|
+
StorageArrayToJSON,
|
|
21
|
+
StorageArrayToJSONTyped,
|
|
22
|
+
} from './StorageArray.js';
|
|
23
|
+
|
|
16
24
|
/**
|
|
17
25
|
* Datastore backing this virtual disk
|
|
18
26
|
* @export
|
|
@@ -59,6 +67,14 @@ export interface VirtualMachineDatastore {
|
|
|
59
67
|
* Model reported by matching backing devices when available
|
|
60
68
|
*/
|
|
61
69
|
model?: string;
|
|
70
|
+
/**
|
|
71
|
+
* Source-reported VASA arrays associated with this datastore, when available
|
|
72
|
+
*/
|
|
73
|
+
storageArrays?: Array<StorageArray>;
|
|
74
|
+
/**
|
|
75
|
+
* Source-reported storage container identifier, when available
|
|
76
|
+
*/
|
|
77
|
+
storageContainerId?: string;
|
|
62
78
|
}
|
|
63
79
|
|
|
64
80
|
/**
|
|
@@ -88,6 +104,8 @@ export function VirtualMachineDatastoreFromJSONTyped(json: any, ignoreDiscrimina
|
|
|
88
104
|
'backingDeviceIds': json['backingDeviceIds'] == null ? undefined : json['backingDeviceIds'],
|
|
89
105
|
'vendor': json['vendor'] == null ? undefined : json['vendor'],
|
|
90
106
|
'model': json['model'] == null ? undefined : json['model'],
|
|
107
|
+
'storageArrays': json['storageArrays'] == null ? undefined : ((json['storageArrays'] as Array<any>).map(StorageArrayFromJSON)),
|
|
108
|
+
'storageContainerId': json['storageContainerId'] == null ? undefined : json['storageContainerId'],
|
|
91
109
|
};
|
|
92
110
|
}
|
|
93
111
|
|
|
@@ -112,6 +130,8 @@ export function VirtualMachineDatastoreToJSONTyped(value?: VirtualMachineDatasto
|
|
|
112
130
|
'backingDeviceIds': value['backingDeviceIds'],
|
|
113
131
|
'vendor': value['vendor'],
|
|
114
132
|
'model': value['model'],
|
|
133
|
+
'storageArrays': value['storageArrays'] == null ? undefined : ((value['storageArrays'] as Array<any>).map(StorageArrayToJSON)),
|
|
134
|
+
'storageContainerId': value['storageContainerId'],
|
|
115
135
|
};
|
|
116
136
|
}
|
|
117
137
|
|
package/src/models/index.ts
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';
|
|
@@ -24,12 +29,16 @@ export * from './CollectionListResponse.js';
|
|
|
24
29
|
export * from './CollectorStatus.js';
|
|
25
30
|
export * from './ComparisonDiffEntry.js';
|
|
26
31
|
export * from './ComparisonDiffPage.js';
|
|
32
|
+
export * from './ComplexityDiskScoreEntry.js';
|
|
33
|
+
export * from './ComplexityOSNameEntry.js';
|
|
34
|
+
export * from './ComplexityOSScoreEntry.js';
|
|
27
35
|
export * from './CreateGroupRequest.js';
|
|
28
36
|
export * from './CredentialStatus.js';
|
|
29
37
|
export * from './Datastore.js';
|
|
30
38
|
export * from './DatastoreDetail.js';
|
|
31
39
|
export * from './DatastorePairRequest.js';
|
|
32
40
|
export * from './DeleteLabelGloballyResponse.js';
|
|
41
|
+
export * from './DiskGeometryCondition.js';
|
|
33
42
|
export * from './DiskSizeTierSummary.js';
|
|
34
43
|
export * from './DiskTypeSummary.js';
|
|
35
44
|
export * from './EstimateRange.js';
|
|
@@ -55,6 +64,8 @@ export * from './InspectorStatus.js';
|
|
|
55
64
|
export * from './Inventory.js';
|
|
56
65
|
export * from './InventoryData.js';
|
|
57
66
|
export * from './IssuesBreakdown.js';
|
|
67
|
+
export * from './MigrationComplexityRequest.js';
|
|
68
|
+
export * from './MigrationComplexityResponse.js';
|
|
58
69
|
export * from './MigrationIssue.js';
|
|
59
70
|
export * from './Network.js';
|
|
60
71
|
export * from './OperationCapability.js';
|
|
@@ -70,6 +81,7 @@ export * from './RightsizingClusterUtilization.js';
|
|
|
70
81
|
export * from './StartForecasterRequest.js';
|
|
71
82
|
export * from './StartInspectionRequest.js';
|
|
72
83
|
export * from './StopForecasterPair202Response.js';
|
|
84
|
+
export * from './StorageArray.js';
|
|
73
85
|
export * from './StorageIoConfiguration.js';
|
|
74
86
|
export * from './SuccessfulImageUpgrade.js';
|
|
75
87
|
export * from './UpdateGroupRequest.js';
|
package/src/runtime.ts
CHANGED
|
@@ -271,8 +271,9 @@ export class ResponseError extends Error {
|
|
|
271
271
|
|
|
272
272
|
export class FetchError extends Error {
|
|
273
273
|
override name: "FetchError" = "FetchError";
|
|
274
|
-
constructor(
|
|
274
|
+
constructor(cause: Error, msg?: string) {
|
|
275
275
|
super(msg);
|
|
276
|
+
this.cause = cause;
|
|
276
277
|
|
|
277
278
|
// restore prototype chain
|
|
278
279
|
const actualProto = new.target.prototype;
|
|
@@ -282,6 +283,12 @@ export class FetchError extends Error {
|
|
|
282
283
|
}
|
|
283
284
|
}
|
|
284
285
|
|
|
286
|
+
// Merged into the class to type `cause`: a class field would need `override` with lib es2022 but must not have it
|
|
287
|
+
// with older libs, and Babel 7 rejects `declare cause` unless allowDeclareFields is set
|
|
288
|
+
export interface FetchError {
|
|
289
|
+
cause: Error;
|
|
290
|
+
}
|
|
291
|
+
|
|
285
292
|
export class RequiredError extends Error {
|
|
286
293
|
override name: "RequiredError" = "RequiredError";
|
|
287
294
|
constructor(public field: string, msg?: string) {
|