@openshift-migration-advisor/agent-sdk 0.32.0 → 0.33.0-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 +38 -0
- package/.openapi-generator/VERSION +1 -1
- package/README.md +28 -4
- package/dist/apis/AppliancesApi.d.ts +258 -0
- package/dist/apis/AppliancesApi.js +273 -0
- package/dist/apis/CollectorApi.d.ts +0 -38
- package/dist/apis/CollectorApi.js +0 -59
- package/dist/apis/GroupsApi.d.ts +45 -6
- package/dist/apis/GroupsApi.js +40 -0
- package/dist/apis/ImageUpgradeApi.d.ts +66 -0
- package/dist/apis/ImageUpgradeApi.js +90 -0
- package/dist/apis/VirtualMachinesApi.d.ts +6 -6
- package/dist/apis/index.d.ts +2 -0
- package/dist/apis/index.js +2 -0
- package/dist/esm/apis/AppliancesApi.d.ts +258 -0
- package/dist/esm/apis/AppliancesApi.js +269 -0
- package/dist/esm/apis/CollectorApi.d.ts +0 -38
- package/dist/esm/apis/CollectorApi.js +0 -59
- package/dist/esm/apis/GroupsApi.d.ts +45 -6
- package/dist/esm/apis/GroupsApi.js +40 -0
- package/dist/esm/apis/ImageUpgradeApi.d.ts +66 -0
- package/dist/esm/apis/ImageUpgradeApi.js +86 -0
- package/dist/esm/apis/VirtualMachinesApi.d.ts +6 -6
- package/dist/esm/apis/index.d.ts +2 -0
- package/dist/esm/apis/index.js +2 -0
- package/dist/esm/models/AgentStatus.d.ts +5 -0
- package/dist/esm/models/AgentStatus.js +5 -0
- package/dist/esm/models/Appliance.d.ts +51 -0
- package/dist/esm/models/Appliance.js +64 -0
- package/dist/esm/models/ApplianceListResponse.d.ts +31 -0
- package/dist/esm/models/ApplianceListResponse.js +44 -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/ApplicationOverview.d.ts +16 -0
- package/dist/esm/models/ApplicationOverview.js +12 -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/Host.d.ts +16 -0
- package/dist/esm/models/Host.js +8 -0
- package/dist/esm/models/ImageUpgradeImage.d.ts +34 -0
- package/dist/esm/models/ImageUpgradeImage.js +47 -0
- package/dist/esm/models/ImageUpgradeResult.d.ts +66 -0
- package/dist/esm/models/ImageUpgradeResult.js +71 -0
- package/dist/esm/models/ImageUpgradeStatus.d.ts +44 -0
- package/dist/esm/models/ImageUpgradeStatus.js +57 -0
- package/dist/esm/models/ImageUploadStatus.d.ts +44 -0
- package/dist/esm/models/ImageUploadStatus.js +56 -0
- package/dist/esm/models/OsInfo.d.ts +12 -0
- package/dist/esm/models/OsInfo.js +9 -0
- package/dist/esm/models/Product.d.ts +66 -0
- package/dist/esm/models/Product.js +61 -0
- package/dist/esm/models/RDMBacking.d.ts +26 -0
- package/dist/esm/models/RDMBacking.js +17 -0
- package/dist/esm/models/RDMHostLun.d.ts +42 -0
- package/dist/esm/models/RDMHostLun.js +49 -0
- package/dist/esm/models/StorageArray.d.ts +42 -0
- package/dist/esm/models/StorageArray.js +47 -0
- package/dist/esm/models/SuccessfulImageUpgrade.d.ts +38 -0
- package/dist/esm/models/SuccessfulImageUpgrade.js +52 -0
- package/dist/esm/models/VMFilterOptionsResponse.d.ts +8 -0
- package/dist/esm/models/VMFilterOptionsResponse.js +8 -0
- package/dist/esm/models/VirtualMachine.d.ts +8 -0
- package/dist/esm/models/VirtualMachine.js +4 -0
- package/dist/esm/models/VirtualMachineDatastore.d.ts +9 -0
- package/dist/esm/models/VirtualMachineDatastore.js +5 -0
- package/dist/esm/models/VirtualMachineDetail.d.ts +5 -0
- package/dist/esm/models/VirtualMachineDetail.js +3 -0
- package/dist/esm/models/VirtualMachineDisk.d.ts +8 -0
- package/dist/esm/models/VirtualMachineDisk.js +4 -0
- package/dist/esm/models/VirtualMachineIdentity.d.ts +34 -0
- package/dist/esm/models/VirtualMachineIdentity.js +47 -0
- package/dist/esm/models/index.d.ts +17 -0
- package/dist/esm/models/index.js +17 -0
- package/dist/esm/runtime.js +4 -3
- package/dist/models/AgentStatus.d.ts +5 -0
- package/dist/models/AgentStatus.js +5 -0
- package/dist/models/Appliance.d.ts +51 -0
- package/dist/models/Appliance.js +71 -0
- package/dist/models/ApplianceListResponse.d.ts +31 -0
- package/dist/models/ApplianceListResponse.js +51 -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/ApplicationOverview.d.ts +16 -0
- package/dist/models/ApplicationOverview.js +12 -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/Host.d.ts +16 -0
- package/dist/models/Host.js +8 -0
- package/dist/models/ImageUpgradeImage.d.ts +34 -0
- package/dist/models/ImageUpgradeImage.js +54 -0
- package/dist/models/ImageUpgradeResult.d.ts +66 -0
- package/dist/models/ImageUpgradeResult.js +79 -0
- package/dist/models/ImageUpgradeStatus.d.ts +44 -0
- package/dist/models/ImageUpgradeStatus.js +64 -0
- package/dist/models/ImageUploadStatus.d.ts +44 -0
- package/dist/models/ImageUploadStatus.js +64 -0
- package/dist/models/OsInfo.d.ts +12 -0
- package/dist/models/OsInfo.js +10 -1
- package/dist/models/Product.d.ts +66 -0
- package/dist/models/Product.js +68 -0
- package/dist/models/RDMBacking.d.ts +26 -0
- package/dist/models/RDMBacking.js +18 -0
- package/dist/models/RDMHostLun.d.ts +42 -0
- package/dist/models/RDMHostLun.js +56 -0
- package/dist/models/StorageArray.d.ts +42 -0
- package/dist/models/StorageArray.js +54 -0
- package/dist/models/SuccessfulImageUpgrade.d.ts +38 -0
- package/dist/models/SuccessfulImageUpgrade.js +59 -0
- package/dist/models/VMFilterOptionsResponse.d.ts +8 -0
- package/dist/models/VMFilterOptionsResponse.js +8 -0
- package/dist/models/VirtualMachine.d.ts +8 -0
- package/dist/models/VirtualMachine.js +4 -0
- package/dist/models/VirtualMachineDatastore.d.ts +9 -0
- package/dist/models/VirtualMachineDatastore.js +5 -0
- package/dist/models/VirtualMachineDetail.d.ts +5 -0
- package/dist/models/VirtualMachineDetail.js +3 -0
- package/dist/models/VirtualMachineDisk.d.ts +8 -0
- package/dist/models/VirtualMachineDisk.js +4 -0
- package/dist/models/VirtualMachineIdentity.d.ts +34 -0
- package/dist/models/VirtualMachineIdentity.js +54 -0
- package/dist/models/index.d.ts +17 -0
- package/dist/models/index.js +17 -0
- package/dist/runtime.js +4 -3
- package/docs/AgentStatus.md +2 -0
- package/docs/Appliance.md +44 -0
- package/docs/ApplianceListResponse.md +34 -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 +414 -0
- package/docs/ApplicationOverview.md +8 -0
- package/docs/CollectorApi.md +0 -70
- package/docs/Datastore.md +4 -0
- package/docs/DiskGeometryCondition.md +38 -0
- package/docs/GroupsApi.md +72 -4
- package/docs/Host.md +8 -0
- package/docs/ImageUpgradeApi.md +82 -0
- package/docs/ImageUpgradeImage.md +36 -0
- package/docs/ImageUpgradeResult.md +46 -0
- package/docs/ImageUpgradeStatus.md +40 -0
- package/docs/ImageUploadStatus.md +36 -0
- package/docs/OsInfo.md +2 -0
- package/docs/Product.md +52 -0
- package/docs/RDMBacking.md +8 -0
- package/docs/RDMHostLun.md +41 -0
- package/docs/StorageArray.md +41 -0
- package/docs/SuccessfulImageUpgrade.md +38 -0
- package/docs/VMFilterOptionsResponse.md +4 -0
- package/docs/VirtualMachine.md +4 -0
- package/docs/VirtualMachineDatastore.md +4 -0
- package/docs/VirtualMachineDetail.md +2 -0
- package/docs/VirtualMachineDisk.md +4 -0
- package/docs/VirtualMachineIdentity.md +36 -0
- package/docs/VirtualMachinesApi.md +4 -4
- package/package.json +1 -1
- package/src/apis/AppliancesApi.ts +504 -0
- package/src/apis/CollectorApi.ts +0 -97
- package/src/apis/GroupsApi.ts +86 -6
- package/src/apis/ImageUpgradeApi.ts +128 -0
- package/src/apis/VirtualMachinesApi.ts +6 -6
- package/src/apis/index.ts +2 -0
- package/src/models/AgentStatus.ts +14 -0
- package/src/models/Appliance.ts +107 -0
- package/src/models/ApplianceListResponse.ts +72 -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/ApplicationOverview.ts +26 -0
- package/src/models/Datastore.ts +19 -0
- package/src/models/DiskGeometryCondition.ts +90 -0
- package/src/models/Host.ts +24 -0
- package/src/models/ImageUpgradeImage.ts +71 -0
- package/src/models/ImageUpgradeResult.ts +130 -0
- package/src/models/ImageUpgradeStatus.ts +100 -0
- package/src/models/ImageUploadStatus.ts +84 -0
- package/src/models/OsInfo.ts +15 -0
- package/src/models/Product.ts +118 -0
- package/src/models/RDMBacking.ts +44 -0
- package/src/models/RDMHostLun.ts +82 -0
- package/src/models/StorageArray.ts +81 -0
- package/src/models/SuccessfulImageUpgrade.ts +78 -0
- package/src/models/VMFilterOptionsResponse.ts +14 -0
- package/src/models/VirtualMachine.ts +12 -0
- package/src/models/VirtualMachineDatastore.ts +20 -0
- package/src/models/VirtualMachineDetail.ts +13 -0
- package/src/models/VirtualMachineDisk.ts +12 -0
- package/src/models/VirtualMachineIdentity.ts +71 -0
- package/src/models/index.ts +17 -0
- package/src/runtime.ts +3 -3
|
@@ -0,0 +1,159 @@
|
|
|
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 ApplianceRule
|
|
28
|
+
*/
|
|
29
|
+
export interface ApplianceRule {
|
|
30
|
+
/**
|
|
31
|
+
* Rule ID
|
|
32
|
+
*/
|
|
33
|
+
id?: string;
|
|
34
|
+
/**
|
|
35
|
+
* Appliance product name
|
|
36
|
+
*/
|
|
37
|
+
name: string;
|
|
38
|
+
/**
|
|
39
|
+
* Appliance vendor
|
|
40
|
+
*/
|
|
41
|
+
vendor: string;
|
|
42
|
+
/**
|
|
43
|
+
* Appliance category
|
|
44
|
+
*/
|
|
45
|
+
category: string;
|
|
46
|
+
/**
|
|
47
|
+
* OSV migration verdict
|
|
48
|
+
*/
|
|
49
|
+
osv_verdict: ApplianceRuleOsvVerdictEnum;
|
|
50
|
+
/**
|
|
51
|
+
* Confidence ceiling for this rule
|
|
52
|
+
*/
|
|
53
|
+
max_confidence: ApplianceRuleMaxConfidenceEnum;
|
|
54
|
+
/**
|
|
55
|
+
* Kind of rules either default or custom
|
|
56
|
+
*/
|
|
57
|
+
kind: ApplianceRuleKindEnum;
|
|
58
|
+
/**
|
|
59
|
+
* Number of conditions that must match before the rule fires
|
|
60
|
+
*/
|
|
61
|
+
min_matched: number;
|
|
62
|
+
/**
|
|
63
|
+
*
|
|
64
|
+
*/
|
|
65
|
+
conditions: Array<ApplianceRuleCondition>;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
/**
|
|
70
|
+
* @export
|
|
71
|
+
*/
|
|
72
|
+
export const ApplianceRuleOsvVerdictEnum = {
|
|
73
|
+
Blocked: 'blocked',
|
|
74
|
+
Conditional: 'conditional',
|
|
75
|
+
Supported: 'supported',
|
|
76
|
+
Unknown: 'unknown',
|
|
77
|
+
} as const;
|
|
78
|
+
export type ApplianceRuleOsvVerdictEnum = typeof ApplianceRuleOsvVerdictEnum[keyof typeof ApplianceRuleOsvVerdictEnum];
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
* @export
|
|
82
|
+
*/
|
|
83
|
+
export const ApplianceRuleMaxConfidenceEnum = {
|
|
84
|
+
High: 'high',
|
|
85
|
+
Medium: 'medium',
|
|
86
|
+
Low: 'low',
|
|
87
|
+
} as const;
|
|
88
|
+
export type ApplianceRuleMaxConfidenceEnum = typeof ApplianceRuleMaxConfidenceEnum[keyof typeof ApplianceRuleMaxConfidenceEnum];
|
|
89
|
+
|
|
90
|
+
/**
|
|
91
|
+
* @export
|
|
92
|
+
*/
|
|
93
|
+
export const ApplianceRuleKindEnum = {
|
|
94
|
+
Default: 'default',
|
|
95
|
+
Custom: 'custom',
|
|
96
|
+
} as const;
|
|
97
|
+
export type ApplianceRuleKindEnum = typeof ApplianceRuleKindEnum[keyof typeof ApplianceRuleKindEnum];
|
|
98
|
+
|
|
99
|
+
|
|
100
|
+
/**
|
|
101
|
+
* Check if a given object implements the ApplianceRule interface.
|
|
102
|
+
*/
|
|
103
|
+
export function instanceOfApplianceRule(value: object): value is ApplianceRule {
|
|
104
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
105
|
+
if (!('vendor' in value) || value['vendor'] === undefined) return false;
|
|
106
|
+
if (!('category' in value) || value['category'] === undefined) return false;
|
|
107
|
+
if (!('osv_verdict' in value) || value['osv_verdict'] === undefined) return false;
|
|
108
|
+
if (!('max_confidence' in value) || value['max_confidence'] === undefined) return false;
|
|
109
|
+
if (!('kind' in value) || value['kind'] === undefined) return false;
|
|
110
|
+
if (!('min_matched' in value) || value['min_matched'] === undefined) return false;
|
|
111
|
+
if (!('conditions' in value) || value['conditions'] === undefined) return false;
|
|
112
|
+
return true;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
export function ApplianceRuleFromJSON(json: any): ApplianceRule {
|
|
116
|
+
return ApplianceRuleFromJSONTyped(json, false);
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
export function ApplianceRuleFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApplianceRule {
|
|
120
|
+
if (json == null) {
|
|
121
|
+
return json;
|
|
122
|
+
}
|
|
123
|
+
return {
|
|
124
|
+
|
|
125
|
+
'id': json['id'] == null ? undefined : json['id'],
|
|
126
|
+
'name': json['name'],
|
|
127
|
+
'vendor': json['vendor'],
|
|
128
|
+
'category': json['category'],
|
|
129
|
+
'osv_verdict': json['osv_verdict'],
|
|
130
|
+
'max_confidence': json['max_confidence'],
|
|
131
|
+
'kind': json['kind'],
|
|
132
|
+
'min_matched': json['min_matched'],
|
|
133
|
+
'conditions': ((json['conditions'] as Array<any>).map(ApplianceRuleConditionFromJSON)),
|
|
134
|
+
};
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
export function ApplianceRuleToJSON(json: any): ApplianceRule {
|
|
138
|
+
return ApplianceRuleToJSONTyped(json, false);
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
export function ApplianceRuleToJSONTyped(value?: ApplianceRule | null, ignoreDiscriminator: boolean = false): any {
|
|
142
|
+
if (value == null) {
|
|
143
|
+
return value;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
return {
|
|
147
|
+
|
|
148
|
+
'id': value['id'],
|
|
149
|
+
'name': value['name'],
|
|
150
|
+
'vendor': value['vendor'],
|
|
151
|
+
'category': value['category'],
|
|
152
|
+
'osv_verdict': value['osv_verdict'],
|
|
153
|
+
'max_confidence': value['max_confidence'],
|
|
154
|
+
'kind': value['kind'],
|
|
155
|
+
'min_matched': value['min_matched'],
|
|
156
|
+
'conditions': ((value['conditions'] as Array<any>).map(ApplianceRuleConditionToJSON)),
|
|
157
|
+
};
|
|
158
|
+
}
|
|
159
|
+
|
|
@@ -0,0 +1,87 @@
|
|
|
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 { ApplianceRuleFunction } from './ApplianceRuleFunction.js';
|
|
17
|
+
import {
|
|
18
|
+
ApplianceRuleFunctionFromJSON,
|
|
19
|
+
ApplianceRuleFunctionFromJSONTyped,
|
|
20
|
+
ApplianceRuleFunctionToJSON,
|
|
21
|
+
ApplianceRuleFunctionToJSONTyped,
|
|
22
|
+
} from './ApplianceRuleFunction.js';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* 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.
|
|
26
|
+
*
|
|
27
|
+
* @export
|
|
28
|
+
* @interface ApplianceRuleCondition
|
|
29
|
+
*/
|
|
30
|
+
export interface ApplianceRuleCondition {
|
|
31
|
+
/**
|
|
32
|
+
* Condition name, unique within the rule. The name decides how much a match contributes: vapp_product and annotation weigh high, guest_id and mount_preffix medium, nic_count, disk_geometry and nested_hv low, and name weighs so little that matching it alone is not a detection. Any other name is rejected.
|
|
33
|
+
*
|
|
34
|
+
*/
|
|
35
|
+
name: string;
|
|
36
|
+
/**
|
|
37
|
+
* Filter DSL expression over the VM attributes appliance rules can match on, e.g. Name ~ /^ORA-/ or NICCount > 3.
|
|
38
|
+
*
|
|
39
|
+
*/
|
|
40
|
+
expression?: string;
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
*/
|
|
44
|
+
_function?: ApplianceRuleFunction;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* Check if a given object implements the ApplianceRuleCondition interface.
|
|
49
|
+
*/
|
|
50
|
+
export function instanceOfApplianceRuleCondition(value: object): value is ApplianceRuleCondition {
|
|
51
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
52
|
+
return true;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export function ApplianceRuleConditionFromJSON(json: any): ApplianceRuleCondition {
|
|
56
|
+
return ApplianceRuleConditionFromJSONTyped(json, false);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function ApplianceRuleConditionFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApplianceRuleCondition {
|
|
60
|
+
if (json == null) {
|
|
61
|
+
return json;
|
|
62
|
+
}
|
|
63
|
+
return {
|
|
64
|
+
|
|
65
|
+
'name': json['name'],
|
|
66
|
+
'expression': json['expression'] == null ? undefined : json['expression'],
|
|
67
|
+
'_function': json['function'] == null ? undefined : ApplianceRuleFunctionFromJSON(json['function']),
|
|
68
|
+
};
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
export function ApplianceRuleConditionToJSON(json: any): ApplianceRuleCondition {
|
|
72
|
+
return ApplianceRuleConditionToJSONTyped(json, false);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export function ApplianceRuleConditionToJSONTyped(value?: ApplianceRuleCondition | null, ignoreDiscriminator: boolean = false): any {
|
|
76
|
+
if (value == null) {
|
|
77
|
+
return value;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
return {
|
|
81
|
+
|
|
82
|
+
'name': value['name'],
|
|
83
|
+
'expression': value['expression'],
|
|
84
|
+
'function': ApplianceRuleFunctionToJSON(value['_function']),
|
|
85
|
+
};
|
|
86
|
+
}
|
|
87
|
+
|
|
@@ -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
|
+
|
|
@@ -35,6 +35,22 @@ export interface ApplicationOverview {
|
|
|
35
35
|
* Application description
|
|
36
36
|
*/
|
|
37
37
|
description: string;
|
|
38
|
+
/**
|
|
39
|
+
* Application vendor
|
|
40
|
+
*/
|
|
41
|
+
vendor: string;
|
|
42
|
+
/**
|
|
43
|
+
* Application category
|
|
44
|
+
*/
|
|
45
|
+
category: string;
|
|
46
|
+
/**
|
|
47
|
+
* Detection confidence percentage; defaults to 0 when omitted
|
|
48
|
+
*/
|
|
49
|
+
confidence?: number;
|
|
50
|
+
/**
|
|
51
|
+
* Whether the application has a known container deployment option
|
|
52
|
+
*/
|
|
53
|
+
containerizationCandidate?: boolean;
|
|
38
54
|
/**
|
|
39
55
|
* Number of VMs running this application
|
|
40
56
|
*/
|
|
@@ -51,6 +67,8 @@ export interface ApplicationOverview {
|
|
|
51
67
|
export function instanceOfApplicationOverview(value: object): value is ApplicationOverview {
|
|
52
68
|
if (!('name' in value) || value['name'] === undefined) return false;
|
|
53
69
|
if (!('description' in value) || value['description'] === undefined) return false;
|
|
70
|
+
if (!('vendor' in value) || value['vendor'] === undefined) return false;
|
|
71
|
+
if (!('category' in value) || value['category'] === undefined) return false;
|
|
54
72
|
if (!('vmCount' in value) || value['vmCount'] === undefined) return false;
|
|
55
73
|
if (!('vms' in value) || value['vms'] === undefined) return false;
|
|
56
74
|
return true;
|
|
@@ -68,6 +86,10 @@ export function ApplicationOverviewFromJSONTyped(json: any, ignoreDiscriminator:
|
|
|
68
86
|
|
|
69
87
|
'name': json['name'],
|
|
70
88
|
'description': json['description'],
|
|
89
|
+
'vendor': json['vendor'],
|
|
90
|
+
'category': json['category'],
|
|
91
|
+
'confidence': json['confidence'] == null ? undefined : json['confidence'],
|
|
92
|
+
'containerizationCandidate': json['containerizationCandidate'] == null ? undefined : json['containerizationCandidate'],
|
|
71
93
|
'vmCount': json['vmCount'],
|
|
72
94
|
'vms': ((json['vms'] as Array<any>).map(ApplicationVMFromJSON)),
|
|
73
95
|
};
|
|
@@ -86,6 +108,10 @@ export function ApplicationOverviewToJSONTyped(value?: ApplicationOverview | nul
|
|
|
86
108
|
|
|
87
109
|
'name': value['name'],
|
|
88
110
|
'description': value['description'],
|
|
111
|
+
'vendor': value['vendor'],
|
|
112
|
+
'category': value['category'],
|
|
113
|
+
'confidence': value['confidence'],
|
|
114
|
+
'containerizationCandidate': value['containerizationCandidate'],
|
|
89
115
|
'vmCount': value['vmCount'],
|
|
90
116
|
'vms': ((value['vms'] as Array<any>).map(ApplicationVMToJSON)),
|
|
91
117
|
};
|
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'],
|