@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,80 @@
|
|
|
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
|
+
import type { DiskGeometryCondition } from './DiskGeometryCondition.js';
|
|
17
|
+
import {
|
|
18
|
+
DiskGeometryConditionFromJSON,
|
|
19
|
+
DiskGeometryConditionFromJSONTyped,
|
|
20
|
+
DiskGeometryConditionToJSON,
|
|
21
|
+
DiskGeometryConditionToJSONTyped,
|
|
22
|
+
} from './DiskGeometryCondition.js';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* 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.
|
|
26
|
+
*
|
|
27
|
+
* @export
|
|
28
|
+
* @interface ApplianceRuleFunction
|
|
29
|
+
*/
|
|
30
|
+
export interface ApplianceRuleFunction {
|
|
31
|
+
/**
|
|
32
|
+
* Predicate name. disk_geometry is the only one defined; any other name is rejected.
|
|
33
|
+
*
|
|
34
|
+
*/
|
|
35
|
+
name: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
*/
|
|
39
|
+
disk_geometry?: DiskGeometryCondition;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Check if a given object implements the ApplianceRuleFunction interface.
|
|
44
|
+
*/
|
|
45
|
+
export function instanceOfApplianceRuleFunction(value: object): value is ApplianceRuleFunction {
|
|
46
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
47
|
+
return true;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export function ApplianceRuleFunctionFromJSON(json: any): ApplianceRuleFunction {
|
|
51
|
+
return ApplianceRuleFunctionFromJSONTyped(json, false);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export function ApplianceRuleFunctionFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApplianceRuleFunction {
|
|
55
|
+
if (json == null) {
|
|
56
|
+
return json;
|
|
57
|
+
}
|
|
58
|
+
return {
|
|
59
|
+
|
|
60
|
+
'name': json['name'],
|
|
61
|
+
'disk_geometry': json['disk_geometry'] == null ? undefined : DiskGeometryConditionFromJSON(json['disk_geometry']),
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export function ApplianceRuleFunctionToJSON(json: any): ApplianceRuleFunction {
|
|
66
|
+
return ApplianceRuleFunctionToJSONTyped(json, false);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export function ApplianceRuleFunctionToJSONTyped(value?: ApplianceRuleFunction | null, ignoreDiscriminator: boolean = false): any {
|
|
70
|
+
if (value == null) {
|
|
71
|
+
return value;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
return {
|
|
75
|
+
|
|
76
|
+
'name': value['name'],
|
|
77
|
+
'disk_geometry': DiskGeometryConditionToJSON(value['disk_geometry']),
|
|
78
|
+
};
|
|
79
|
+
}
|
|
80
|
+
|
|
@@ -0,0 +1,72 @@
|
|
|
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
|
+
import type { ApplianceRule } from './ApplianceRule.js';
|
|
17
|
+
import {
|
|
18
|
+
ApplianceRuleFromJSON,
|
|
19
|
+
ApplianceRuleFromJSONTyped,
|
|
20
|
+
ApplianceRuleToJSON,
|
|
21
|
+
ApplianceRuleToJSONTyped,
|
|
22
|
+
} from './ApplianceRule.js';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface ApplianceRuleListResponse
|
|
28
|
+
*/
|
|
29
|
+
export interface ApplianceRuleListResponse {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
*/
|
|
33
|
+
rules: Array<ApplianceRule>;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the ApplianceRuleListResponse interface.
|
|
38
|
+
*/
|
|
39
|
+
export function instanceOfApplianceRuleListResponse(value: object): value is ApplianceRuleListResponse {
|
|
40
|
+
if (!('rules' in value) || value['rules'] === undefined) return false;
|
|
41
|
+
return true;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export function ApplianceRuleListResponseFromJSON(json: any): ApplianceRuleListResponse {
|
|
45
|
+
return ApplianceRuleListResponseFromJSONTyped(json, false);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export function ApplianceRuleListResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApplianceRuleListResponse {
|
|
49
|
+
if (json == null) {
|
|
50
|
+
return json;
|
|
51
|
+
}
|
|
52
|
+
return {
|
|
53
|
+
|
|
54
|
+
'rules': ((json['rules'] as Array<any>).map(ApplianceRuleFromJSON)),
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export function ApplianceRuleListResponseToJSON(json: any): ApplianceRuleListResponse {
|
|
59
|
+
return ApplianceRuleListResponseToJSONTyped(json, false);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export function ApplianceRuleListResponseToJSONTyped(value?: ApplianceRuleListResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
63
|
+
if (value == null) {
|
|
64
|
+
return value;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
return {
|
|
68
|
+
|
|
69
|
+
'rules': ((value['rules'] as Array<any>).map(ApplianceRuleToJSON)),
|
|
70
|
+
};
|
|
71
|
+
}
|
|
72
|
+
|
|
@@ -0,0 +1,137 @@
|
|
|
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
|
+
import type { ApplianceRuleCondition } from './ApplianceRuleCondition.js';
|
|
17
|
+
import {
|
|
18
|
+
ApplianceRuleConditionFromJSON,
|
|
19
|
+
ApplianceRuleConditionFromJSONTyped,
|
|
20
|
+
ApplianceRuleConditionToJSON,
|
|
21
|
+
ApplianceRuleConditionToJSONTyped,
|
|
22
|
+
} from './ApplianceRuleCondition.js';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface ApplianceRuleRequest
|
|
28
|
+
*/
|
|
29
|
+
export interface ApplianceRuleRequest {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
*/
|
|
33
|
+
name: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
*/
|
|
37
|
+
vendor: string;
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
*/
|
|
41
|
+
category: string;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
*/
|
|
45
|
+
osv_verdict: ApplianceRuleRequestOsvVerdictEnum;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
*/
|
|
49
|
+
max_confidence: ApplianceRuleRequestMaxConfidenceEnum;
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
*/
|
|
53
|
+
min_matched: number;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
*/
|
|
57
|
+
conditions: Array<ApplianceRuleCondition>;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* @export
|
|
63
|
+
*/
|
|
64
|
+
export const ApplianceRuleRequestOsvVerdictEnum = {
|
|
65
|
+
Blocked: 'blocked',
|
|
66
|
+
Conditional: 'conditional',
|
|
67
|
+
Supported: 'supported',
|
|
68
|
+
Unknown: 'unknown',
|
|
69
|
+
} as const;
|
|
70
|
+
export type ApplianceRuleRequestOsvVerdictEnum = typeof ApplianceRuleRequestOsvVerdictEnum[keyof typeof ApplianceRuleRequestOsvVerdictEnum];
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* @export
|
|
74
|
+
*/
|
|
75
|
+
export const ApplianceRuleRequestMaxConfidenceEnum = {
|
|
76
|
+
High: 'high',
|
|
77
|
+
Medium: 'medium',
|
|
78
|
+
Low: 'low',
|
|
79
|
+
} as const;
|
|
80
|
+
export type ApplianceRuleRequestMaxConfidenceEnum = typeof ApplianceRuleRequestMaxConfidenceEnum[keyof typeof ApplianceRuleRequestMaxConfidenceEnum];
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
/**
|
|
84
|
+
* Check if a given object implements the ApplianceRuleRequest interface.
|
|
85
|
+
*/
|
|
86
|
+
export function instanceOfApplianceRuleRequest(value: object): value is ApplianceRuleRequest {
|
|
87
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
88
|
+
if (!('vendor' in value) || value['vendor'] === undefined) return false;
|
|
89
|
+
if (!('category' in value) || value['category'] === undefined) return false;
|
|
90
|
+
if (!('osv_verdict' in value) || value['osv_verdict'] === undefined) return false;
|
|
91
|
+
if (!('max_confidence' in value) || value['max_confidence'] === undefined) return false;
|
|
92
|
+
if (!('min_matched' in value) || value['min_matched'] === undefined) return false;
|
|
93
|
+
if (!('conditions' in value) || value['conditions'] === undefined) return false;
|
|
94
|
+
return true;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
export function ApplianceRuleRequestFromJSON(json: any): ApplianceRuleRequest {
|
|
98
|
+
return ApplianceRuleRequestFromJSONTyped(json, false);
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
export function ApplianceRuleRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApplianceRuleRequest {
|
|
102
|
+
if (json == null) {
|
|
103
|
+
return json;
|
|
104
|
+
}
|
|
105
|
+
return {
|
|
106
|
+
|
|
107
|
+
'name': json['name'],
|
|
108
|
+
'vendor': json['vendor'],
|
|
109
|
+
'category': json['category'],
|
|
110
|
+
'osv_verdict': json['osv_verdict'],
|
|
111
|
+
'max_confidence': json['max_confidence'],
|
|
112
|
+
'min_matched': json['min_matched'],
|
|
113
|
+
'conditions': ((json['conditions'] as Array<any>).map(ApplianceRuleConditionFromJSON)),
|
|
114
|
+
};
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
export function ApplianceRuleRequestToJSON(json: any): ApplianceRuleRequest {
|
|
118
|
+
return ApplianceRuleRequestToJSONTyped(json, false);
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
export function ApplianceRuleRequestToJSONTyped(value?: ApplianceRuleRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
122
|
+
if (value == null) {
|
|
123
|
+
return value;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
return {
|
|
127
|
+
|
|
128
|
+
'name': value['name'],
|
|
129
|
+
'vendor': value['vendor'],
|
|
130
|
+
'category': value['category'],
|
|
131
|
+
'osv_verdict': value['osv_verdict'],
|
|
132
|
+
'max_confidence': value['max_confidence'],
|
|
133
|
+
'min_matched': value['min_matched'],
|
|
134
|
+
'conditions': ((value['conditions'] as Array<any>).map(ApplianceRuleConditionToJSON)),
|
|
135
|
+
};
|
|
136
|
+
}
|
|
137
|
+
|
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'],
|
|
@@ -0,0 +1,90 @@
|
|
|
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
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface DiskGeometryCondition
|
|
20
|
+
*/
|
|
21
|
+
export interface DiskGeometryCondition {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
*/
|
|
25
|
+
disks: Array<number>;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
*/
|
|
29
|
+
mode: DiskGeometryConditionModeEnum;
|
|
30
|
+
/**
|
|
31
|
+
* Largest difference in MiB allowed between a required disk size and the size of a VM disk. Zero requires the sizes to match exactly.
|
|
32
|
+
*
|
|
33
|
+
*/
|
|
34
|
+
tolerance_mib: number;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* @export
|
|
40
|
+
*/
|
|
41
|
+
export const DiskGeometryConditionModeEnum = {
|
|
42
|
+
Exact: 'exact',
|
|
43
|
+
Superset: 'superset',
|
|
44
|
+
} as const;
|
|
45
|
+
export type DiskGeometryConditionModeEnum = typeof DiskGeometryConditionModeEnum[keyof typeof DiskGeometryConditionModeEnum];
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Check if a given object implements the DiskGeometryCondition interface.
|
|
50
|
+
*/
|
|
51
|
+
export function instanceOfDiskGeometryCondition(value: object): value is DiskGeometryCondition {
|
|
52
|
+
if (!('disks' in value) || value['disks'] === undefined) return false;
|
|
53
|
+
if (!('mode' in value) || value['mode'] === undefined) return false;
|
|
54
|
+
if (!('tolerance_mib' in value) || value['tolerance_mib'] === undefined) return false;
|
|
55
|
+
return true;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export function DiskGeometryConditionFromJSON(json: any): DiskGeometryCondition {
|
|
59
|
+
return DiskGeometryConditionFromJSONTyped(json, false);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export function DiskGeometryConditionFromJSONTyped(json: any, ignoreDiscriminator: boolean): DiskGeometryCondition {
|
|
63
|
+
if (json == null) {
|
|
64
|
+
return json;
|
|
65
|
+
}
|
|
66
|
+
return {
|
|
67
|
+
|
|
68
|
+
'disks': json['disks'],
|
|
69
|
+
'mode': json['mode'],
|
|
70
|
+
'tolerance_mib': json['tolerance_mib'],
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export function DiskGeometryConditionToJSON(json: any): DiskGeometryCondition {
|
|
75
|
+
return DiskGeometryConditionToJSONTyped(json, false);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export function DiskGeometryConditionToJSONTyped(value?: DiskGeometryCondition | null, ignoreDiscriminator: boolean = false): any {
|
|
79
|
+
if (value == null) {
|
|
80
|
+
return value;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
return {
|
|
84
|
+
|
|
85
|
+
'disks': value['disks'],
|
|
86
|
+
'mode': value['mode'],
|
|
87
|
+
'tolerance_mib': value['tolerance_mib'],
|
|
88
|
+
};
|
|
89
|
+
}
|
|
90
|
+
|
|
@@ -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';
|
|
@@ -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';
|