@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,53 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Assisted Migration Agent API
|
|
6
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: v2
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfApplianceRuleFunction = instanceOfApplianceRuleFunction;
|
|
17
|
+
exports.ApplianceRuleFunctionFromJSON = ApplianceRuleFunctionFromJSON;
|
|
18
|
+
exports.ApplianceRuleFunctionFromJSONTyped = ApplianceRuleFunctionFromJSONTyped;
|
|
19
|
+
exports.ApplianceRuleFunctionToJSON = ApplianceRuleFunctionToJSON;
|
|
20
|
+
exports.ApplianceRuleFunctionToJSONTyped = ApplianceRuleFunctionToJSONTyped;
|
|
21
|
+
const DiskGeometryCondition_js_1 = require("./DiskGeometryCondition.js");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the ApplianceRuleFunction interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfApplianceRuleFunction(value) {
|
|
26
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
return true;
|
|
29
|
+
}
|
|
30
|
+
function ApplianceRuleFunctionFromJSON(json) {
|
|
31
|
+
return ApplianceRuleFunctionFromJSONTyped(json, false);
|
|
32
|
+
}
|
|
33
|
+
function ApplianceRuleFunctionFromJSONTyped(json, ignoreDiscriminator) {
|
|
34
|
+
if (json == null) {
|
|
35
|
+
return json;
|
|
36
|
+
}
|
|
37
|
+
return {
|
|
38
|
+
'name': json['name'],
|
|
39
|
+
'disk_geometry': json['disk_geometry'] == null ? undefined : (0, DiskGeometryCondition_js_1.DiskGeometryConditionFromJSON)(json['disk_geometry']),
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
function ApplianceRuleFunctionToJSON(json) {
|
|
43
|
+
return ApplianceRuleFunctionToJSONTyped(json, false);
|
|
44
|
+
}
|
|
45
|
+
function ApplianceRuleFunctionToJSONTyped(value, ignoreDiscriminator = false) {
|
|
46
|
+
if (value == null) {
|
|
47
|
+
return value;
|
|
48
|
+
}
|
|
49
|
+
return {
|
|
50
|
+
'name': value['name'],
|
|
51
|
+
'disk_geometry': (0, DiskGeometryCondition_js_1.DiskGeometryConditionToJSON)(value['disk_geometry']),
|
|
52
|
+
};
|
|
53
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Assisted Migration Agent API
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: v2
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { ApplianceRule } from './ApplianceRule.js';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface ApplianceRuleListResponse
|
|
17
|
+
*/
|
|
18
|
+
export interface ApplianceRuleListResponse {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
*/
|
|
22
|
+
rules: Array<ApplianceRule>;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Check if a given object implements the ApplianceRuleListResponse interface.
|
|
26
|
+
*/
|
|
27
|
+
export declare function instanceOfApplianceRuleListResponse(value: object): value is ApplianceRuleListResponse;
|
|
28
|
+
export declare function ApplianceRuleListResponseFromJSON(json: any): ApplianceRuleListResponse;
|
|
29
|
+
export declare function ApplianceRuleListResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApplianceRuleListResponse;
|
|
30
|
+
export declare function ApplianceRuleListResponseToJSON(json: any): ApplianceRuleListResponse;
|
|
31
|
+
export declare function ApplianceRuleListResponseToJSONTyped(value?: ApplianceRuleListResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Assisted Migration Agent API
|
|
6
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: v2
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfApplianceRuleListResponse = instanceOfApplianceRuleListResponse;
|
|
17
|
+
exports.ApplianceRuleListResponseFromJSON = ApplianceRuleListResponseFromJSON;
|
|
18
|
+
exports.ApplianceRuleListResponseFromJSONTyped = ApplianceRuleListResponseFromJSONTyped;
|
|
19
|
+
exports.ApplianceRuleListResponseToJSON = ApplianceRuleListResponseToJSON;
|
|
20
|
+
exports.ApplianceRuleListResponseToJSONTyped = ApplianceRuleListResponseToJSONTyped;
|
|
21
|
+
const ApplianceRule_js_1 = require("./ApplianceRule.js");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the ApplianceRuleListResponse interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfApplianceRuleListResponse(value) {
|
|
26
|
+
if (!('rules' in value) || value['rules'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
return true;
|
|
29
|
+
}
|
|
30
|
+
function ApplianceRuleListResponseFromJSON(json) {
|
|
31
|
+
return ApplianceRuleListResponseFromJSONTyped(json, false);
|
|
32
|
+
}
|
|
33
|
+
function ApplianceRuleListResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
34
|
+
if (json == null) {
|
|
35
|
+
return json;
|
|
36
|
+
}
|
|
37
|
+
return {
|
|
38
|
+
'rules': (json['rules'].map(ApplianceRule_js_1.ApplianceRuleFromJSON)),
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
function ApplianceRuleListResponseToJSON(json) {
|
|
42
|
+
return ApplianceRuleListResponseToJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function ApplianceRuleListResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
45
|
+
if (value == null) {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'rules': (value['rules'].map(ApplianceRule_js_1.ApplianceRuleToJSON)),
|
|
50
|
+
};
|
|
51
|
+
}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Assisted Migration Agent API
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: v2
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { ApplianceRuleCondition } from './ApplianceRuleCondition.js';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface ApplianceRuleRequest
|
|
17
|
+
*/
|
|
18
|
+
export interface ApplianceRuleRequest {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
*/
|
|
22
|
+
name: string;
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
*/
|
|
26
|
+
vendor: string;
|
|
27
|
+
/**
|
|
28
|
+
*
|
|
29
|
+
*/
|
|
30
|
+
category: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
*/
|
|
34
|
+
osv_verdict: ApplianceRuleRequestOsvVerdictEnum;
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
*/
|
|
38
|
+
max_confidence: ApplianceRuleRequestMaxConfidenceEnum;
|
|
39
|
+
/**
|
|
40
|
+
*
|
|
41
|
+
*/
|
|
42
|
+
min_matched: number;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
*/
|
|
46
|
+
conditions: Array<ApplianceRuleCondition>;
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* @export
|
|
50
|
+
*/
|
|
51
|
+
export declare const ApplianceRuleRequestOsvVerdictEnum: {
|
|
52
|
+
readonly Blocked: "blocked";
|
|
53
|
+
readonly Conditional: "conditional";
|
|
54
|
+
readonly Supported: "supported";
|
|
55
|
+
readonly Unknown: "unknown";
|
|
56
|
+
};
|
|
57
|
+
export type ApplianceRuleRequestOsvVerdictEnum = typeof ApplianceRuleRequestOsvVerdictEnum[keyof typeof ApplianceRuleRequestOsvVerdictEnum];
|
|
58
|
+
/**
|
|
59
|
+
* @export
|
|
60
|
+
*/
|
|
61
|
+
export declare const ApplianceRuleRequestMaxConfidenceEnum: {
|
|
62
|
+
readonly High: "high";
|
|
63
|
+
readonly Medium: "medium";
|
|
64
|
+
readonly Low: "low";
|
|
65
|
+
};
|
|
66
|
+
export type ApplianceRuleRequestMaxConfidenceEnum = typeof ApplianceRuleRequestMaxConfidenceEnum[keyof typeof ApplianceRuleRequestMaxConfidenceEnum];
|
|
67
|
+
/**
|
|
68
|
+
* Check if a given object implements the ApplianceRuleRequest interface.
|
|
69
|
+
*/
|
|
70
|
+
export declare function instanceOfApplianceRuleRequest(value: object): value is ApplianceRuleRequest;
|
|
71
|
+
export declare function ApplianceRuleRequestFromJSON(json: any): ApplianceRuleRequest;
|
|
72
|
+
export declare function ApplianceRuleRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApplianceRuleRequest;
|
|
73
|
+
export declare function ApplianceRuleRequestToJSON(json: any): ApplianceRuleRequest;
|
|
74
|
+
export declare function ApplianceRuleRequestToJSONTyped(value?: ApplianceRuleRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Assisted Migration Agent API
|
|
6
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: v2
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.ApplianceRuleRequestMaxConfidenceEnum = exports.ApplianceRuleRequestOsvVerdictEnum = void 0;
|
|
17
|
+
exports.instanceOfApplianceRuleRequest = instanceOfApplianceRuleRequest;
|
|
18
|
+
exports.ApplianceRuleRequestFromJSON = ApplianceRuleRequestFromJSON;
|
|
19
|
+
exports.ApplianceRuleRequestFromJSONTyped = ApplianceRuleRequestFromJSONTyped;
|
|
20
|
+
exports.ApplianceRuleRequestToJSON = ApplianceRuleRequestToJSON;
|
|
21
|
+
exports.ApplianceRuleRequestToJSONTyped = ApplianceRuleRequestToJSONTyped;
|
|
22
|
+
const ApplianceRuleCondition_js_1 = require("./ApplianceRuleCondition.js");
|
|
23
|
+
/**
|
|
24
|
+
* @export
|
|
25
|
+
*/
|
|
26
|
+
exports.ApplianceRuleRequestOsvVerdictEnum = {
|
|
27
|
+
Blocked: 'blocked',
|
|
28
|
+
Conditional: 'conditional',
|
|
29
|
+
Supported: 'supported',
|
|
30
|
+
Unknown: 'unknown',
|
|
31
|
+
};
|
|
32
|
+
/**
|
|
33
|
+
* @export
|
|
34
|
+
*/
|
|
35
|
+
exports.ApplianceRuleRequestMaxConfidenceEnum = {
|
|
36
|
+
High: 'high',
|
|
37
|
+
Medium: 'medium',
|
|
38
|
+
Low: 'low',
|
|
39
|
+
};
|
|
40
|
+
/**
|
|
41
|
+
* Check if a given object implements the ApplianceRuleRequest interface.
|
|
42
|
+
*/
|
|
43
|
+
function instanceOfApplianceRuleRequest(value) {
|
|
44
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
45
|
+
return false;
|
|
46
|
+
if (!('vendor' in value) || value['vendor'] === undefined)
|
|
47
|
+
return false;
|
|
48
|
+
if (!('category' in value) || value['category'] === undefined)
|
|
49
|
+
return false;
|
|
50
|
+
if (!('osv_verdict' in value) || value['osv_verdict'] === undefined)
|
|
51
|
+
return false;
|
|
52
|
+
if (!('max_confidence' in value) || value['max_confidence'] === undefined)
|
|
53
|
+
return false;
|
|
54
|
+
if (!('min_matched' in value) || value['min_matched'] === undefined)
|
|
55
|
+
return false;
|
|
56
|
+
if (!('conditions' in value) || value['conditions'] === undefined)
|
|
57
|
+
return false;
|
|
58
|
+
return true;
|
|
59
|
+
}
|
|
60
|
+
function ApplianceRuleRequestFromJSON(json) {
|
|
61
|
+
return ApplianceRuleRequestFromJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
function ApplianceRuleRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
64
|
+
if (json == null) {
|
|
65
|
+
return json;
|
|
66
|
+
}
|
|
67
|
+
return {
|
|
68
|
+
'name': json['name'],
|
|
69
|
+
'vendor': json['vendor'],
|
|
70
|
+
'category': json['category'],
|
|
71
|
+
'osv_verdict': json['osv_verdict'],
|
|
72
|
+
'max_confidence': json['max_confidence'],
|
|
73
|
+
'min_matched': json['min_matched'],
|
|
74
|
+
'conditions': (json['conditions'].map(ApplianceRuleCondition_js_1.ApplianceRuleConditionFromJSON)),
|
|
75
|
+
};
|
|
76
|
+
}
|
|
77
|
+
function ApplianceRuleRequestToJSON(json) {
|
|
78
|
+
return ApplianceRuleRequestToJSONTyped(json, false);
|
|
79
|
+
}
|
|
80
|
+
function ApplianceRuleRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
81
|
+
if (value == null) {
|
|
82
|
+
return value;
|
|
83
|
+
}
|
|
84
|
+
return {
|
|
85
|
+
'name': value['name'],
|
|
86
|
+
'vendor': value['vendor'],
|
|
87
|
+
'category': value['category'],
|
|
88
|
+
'osv_verdict': value['osv_verdict'],
|
|
89
|
+
'max_confidence': value['max_confidence'],
|
|
90
|
+
'min_matched': value['min_matched'],
|
|
91
|
+
'conditions': (value['conditions'].map(ApplianceRuleCondition_js_1.ApplianceRuleConditionToJSON)),
|
|
92
|
+
};
|
|
93
|
+
}
|
|
@@ -24,6 +24,22 @@ export interface ApplicationOverview {
|
|
|
24
24
|
* Application description
|
|
25
25
|
*/
|
|
26
26
|
description: string;
|
|
27
|
+
/**
|
|
28
|
+
* Application vendor
|
|
29
|
+
*/
|
|
30
|
+
vendor: string;
|
|
31
|
+
/**
|
|
32
|
+
* Application category
|
|
33
|
+
*/
|
|
34
|
+
category: string;
|
|
35
|
+
/**
|
|
36
|
+
* Detection confidence percentage; defaults to 0 when omitted
|
|
37
|
+
*/
|
|
38
|
+
confidence?: number;
|
|
39
|
+
/**
|
|
40
|
+
* Whether the application has a known container deployment option
|
|
41
|
+
*/
|
|
42
|
+
containerizationCandidate?: boolean;
|
|
27
43
|
/**
|
|
28
44
|
* Number of VMs running this application
|
|
29
45
|
*/
|
|
@@ -27,6 +27,10 @@ function instanceOfApplicationOverview(value) {
|
|
|
27
27
|
return false;
|
|
28
28
|
if (!('description' in value) || value['description'] === undefined)
|
|
29
29
|
return false;
|
|
30
|
+
if (!('vendor' in value) || value['vendor'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('category' in value) || value['category'] === undefined)
|
|
33
|
+
return false;
|
|
30
34
|
if (!('vmCount' in value) || value['vmCount'] === undefined)
|
|
31
35
|
return false;
|
|
32
36
|
if (!('vms' in value) || value['vms'] === undefined)
|
|
@@ -43,6 +47,10 @@ function ApplicationOverviewFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
43
47
|
return {
|
|
44
48
|
'name': json['name'],
|
|
45
49
|
'description': json['description'],
|
|
50
|
+
'vendor': json['vendor'],
|
|
51
|
+
'category': json['category'],
|
|
52
|
+
'confidence': json['confidence'] == null ? undefined : json['confidence'],
|
|
53
|
+
'containerizationCandidate': json['containerizationCandidate'] == null ? undefined : json['containerizationCandidate'],
|
|
46
54
|
'vmCount': json['vmCount'],
|
|
47
55
|
'vms': (json['vms'].map(ApplicationVM_js_1.ApplicationVMFromJSON)),
|
|
48
56
|
};
|
|
@@ -57,6 +65,10 @@ function ApplicationOverviewToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
57
65
|
return {
|
|
58
66
|
'name': value['name'],
|
|
59
67
|
'description': value['description'],
|
|
68
|
+
'vendor': value['vendor'],
|
|
69
|
+
'category': value['category'],
|
|
70
|
+
'confidence': value['confidence'],
|
|
71
|
+
'containerizationCandidate': value['containerizationCandidate'],
|
|
60
72
|
'vmCount': value['vmCount'],
|
|
61
73
|
'vms': (value['vms'].map(ApplicationVM_js_1.ApplicationVMToJSON)),
|
|
62
74
|
};
|
|
@@ -10,12 +10,21 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import type { StorageIoConfiguration } from './StorageIoConfiguration.js';
|
|
13
|
+
import type { StorageArray } from './StorageArray.js';
|
|
13
14
|
/**
|
|
14
15
|
*
|
|
15
16
|
* @export
|
|
16
17
|
* @interface Datastore
|
|
17
18
|
*/
|
|
18
19
|
export interface Datastore {
|
|
20
|
+
/**
|
|
21
|
+
* Source-reported VASA arrays; absence does not establish that the datastore has no array
|
|
22
|
+
*/
|
|
23
|
+
storageArrays?: Array<StorageArray>;
|
|
24
|
+
/**
|
|
25
|
+
* Source storage-container identifier, distinct from array UUID and protocol-endpoint identity
|
|
26
|
+
*/
|
|
27
|
+
storageContainerId?: string;
|
|
19
28
|
/**
|
|
20
29
|
*
|
|
21
30
|
*/
|
package/dist/models/Datastore.js
CHANGED
|
@@ -20,6 +20,7 @@ exports.DatastoreFromJSONTyped = DatastoreFromJSONTyped;
|
|
|
20
20
|
exports.DatastoreToJSON = DatastoreToJSON;
|
|
21
21
|
exports.DatastoreToJSONTyped = DatastoreToJSONTyped;
|
|
22
22
|
const StorageIoConfiguration_js_1 = require("./StorageIoConfiguration.js");
|
|
23
|
+
const StorageArray_js_1 = require("./StorageArray.js");
|
|
23
24
|
/**
|
|
24
25
|
* @export
|
|
25
26
|
*/
|
|
@@ -58,6 +59,8 @@ function DatastoreFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
58
59
|
return json;
|
|
59
60
|
}
|
|
60
61
|
return {
|
|
62
|
+
'storageArrays': json['storageArrays'] == null ? undefined : (json['storageArrays'].map(StorageArray_js_1.StorageArrayFromJSON)),
|
|
63
|
+
'storageContainerId': json['storageContainerId'] == null ? undefined : json['storageContainerId'],
|
|
61
64
|
'type': json['type'],
|
|
62
65
|
'backingDeviceIds': json['backingDeviceIds'] == null ? undefined : json['backingDeviceIds'],
|
|
63
66
|
'filesystemType': json['filesystemType'] == null ? undefined : json['filesystemType'],
|
|
@@ -83,6 +86,8 @@ function DatastoreToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
83
86
|
return value;
|
|
84
87
|
}
|
|
85
88
|
return {
|
|
89
|
+
'storageArrays': value['storageArrays'] == null ? undefined : (value['storageArrays'].map(StorageArray_js_1.StorageArrayToJSON)),
|
|
90
|
+
'storageContainerId': value['storageContainerId'],
|
|
86
91
|
'type': value['type'],
|
|
87
92
|
'backingDeviceIds': value['backingDeviceIds'],
|
|
88
93
|
'filesystemType': value['filesystemType'],
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Assisted Migration Agent API
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: v2
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface DiskGeometryCondition
|
|
16
|
+
*/
|
|
17
|
+
export interface DiskGeometryCondition {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
*/
|
|
21
|
+
disks: Array<number>;
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
*/
|
|
25
|
+
mode: DiskGeometryConditionModeEnum;
|
|
26
|
+
/**
|
|
27
|
+
* Largest difference in MiB allowed between a required disk size and the size of a VM disk. Zero requires the sizes to match exactly.
|
|
28
|
+
*
|
|
29
|
+
*/
|
|
30
|
+
tolerance_mib: number;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* @export
|
|
34
|
+
*/
|
|
35
|
+
export declare const DiskGeometryConditionModeEnum: {
|
|
36
|
+
readonly Exact: "exact";
|
|
37
|
+
readonly Superset: "superset";
|
|
38
|
+
};
|
|
39
|
+
export type DiskGeometryConditionModeEnum = typeof DiskGeometryConditionModeEnum[keyof typeof DiskGeometryConditionModeEnum];
|
|
40
|
+
/**
|
|
41
|
+
* Check if a given object implements the DiskGeometryCondition interface.
|
|
42
|
+
*/
|
|
43
|
+
export declare function instanceOfDiskGeometryCondition(value: object): value is DiskGeometryCondition;
|
|
44
|
+
export declare function DiskGeometryConditionFromJSON(json: any): DiskGeometryCondition;
|
|
45
|
+
export declare function DiskGeometryConditionFromJSONTyped(json: any, ignoreDiscriminator: boolean): DiskGeometryCondition;
|
|
46
|
+
export declare function DiskGeometryConditionToJSON(json: any): DiskGeometryCondition;
|
|
47
|
+
export declare function DiskGeometryConditionToJSONTyped(value?: DiskGeometryCondition | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Assisted Migration Agent API
|
|
6
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: v2
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.DiskGeometryConditionModeEnum = void 0;
|
|
17
|
+
exports.instanceOfDiskGeometryCondition = instanceOfDiskGeometryCondition;
|
|
18
|
+
exports.DiskGeometryConditionFromJSON = DiskGeometryConditionFromJSON;
|
|
19
|
+
exports.DiskGeometryConditionFromJSONTyped = DiskGeometryConditionFromJSONTyped;
|
|
20
|
+
exports.DiskGeometryConditionToJSON = DiskGeometryConditionToJSON;
|
|
21
|
+
exports.DiskGeometryConditionToJSONTyped = DiskGeometryConditionToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.DiskGeometryConditionModeEnum = {
|
|
26
|
+
Exact: 'exact',
|
|
27
|
+
Superset: 'superset',
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Check if a given object implements the DiskGeometryCondition interface.
|
|
31
|
+
*/
|
|
32
|
+
function instanceOfDiskGeometryCondition(value) {
|
|
33
|
+
if (!('disks' in value) || value['disks'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
if (!('mode' in value) || value['mode'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
if (!('tolerance_mib' in value) || value['tolerance_mib'] === undefined)
|
|
38
|
+
return false;
|
|
39
|
+
return true;
|
|
40
|
+
}
|
|
41
|
+
function DiskGeometryConditionFromJSON(json) {
|
|
42
|
+
return DiskGeometryConditionFromJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function DiskGeometryConditionFromJSONTyped(json, ignoreDiscriminator) {
|
|
45
|
+
if (json == null) {
|
|
46
|
+
return json;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'disks': json['disks'],
|
|
50
|
+
'mode': json['mode'],
|
|
51
|
+
'tolerance_mib': json['tolerance_mib'],
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
function DiskGeometryConditionToJSON(json) {
|
|
55
|
+
return DiskGeometryConditionToJSONTyped(json, false);
|
|
56
|
+
}
|
|
57
|
+
function DiskGeometryConditionToJSONTyped(value, ignoreDiscriminator = false) {
|
|
58
|
+
if (value == null) {
|
|
59
|
+
return value;
|
|
60
|
+
}
|
|
61
|
+
return {
|
|
62
|
+
'disks': value['disks'],
|
|
63
|
+
'mode': value['mode'],
|
|
64
|
+
'tolerance_mib': value['tolerance_mib'],
|
|
65
|
+
};
|
|
66
|
+
}
|
package/dist/models/Host.d.ts
CHANGED
|
@@ -29,6 +29,22 @@ export interface Host {
|
|
|
29
29
|
*
|
|
30
30
|
*/
|
|
31
31
|
model: string;
|
|
32
|
+
/**
|
|
33
|
+
* Source datacenter name, when available.
|
|
34
|
+
*/
|
|
35
|
+
datacenter?: string;
|
|
36
|
+
/**
|
|
37
|
+
* Source cluster name; omitted for standalone hosts.
|
|
38
|
+
*/
|
|
39
|
+
cluster?: string;
|
|
40
|
+
/**
|
|
41
|
+
* Source-reported CPU model, when available.
|
|
42
|
+
*/
|
|
43
|
+
cpuModel?: string;
|
|
44
|
+
/**
|
|
45
|
+
* Source-reported host hardware serial or service tag, when available.
|
|
46
|
+
*/
|
|
47
|
+
serialNumber?: string;
|
|
32
48
|
/**
|
|
33
49
|
* Number of CPU cores
|
|
34
50
|
*/
|
package/dist/models/Host.js
CHANGED
|
@@ -41,6 +41,10 @@ function HostFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
41
41
|
'id': json['id'] == null ? undefined : json['id'],
|
|
42
42
|
'vendor': json['vendor'],
|
|
43
43
|
'model': json['model'],
|
|
44
|
+
'datacenter': json['datacenter'] == null ? undefined : json['datacenter'],
|
|
45
|
+
'cluster': json['cluster'] == null ? undefined : json['cluster'],
|
|
46
|
+
'cpuModel': json['cpuModel'] == null ? undefined : json['cpuModel'],
|
|
47
|
+
'serialNumber': json['serialNumber'] == null ? undefined : json['serialNumber'],
|
|
44
48
|
'cpuCores': json['cpuCores'] === undefined ? undefined : json['cpuCores'] === null ? null : json['cpuCores'],
|
|
45
49
|
'cpuSockets': json['cpuSockets'] === undefined ? undefined : json['cpuSockets'] === null ? null : json['cpuSockets'],
|
|
46
50
|
'memoryMB': json['memoryMB'] === undefined ? undefined : json['memoryMB'] === null ? null : json['memoryMB'],
|
|
@@ -61,6 +65,10 @@ function HostToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
61
65
|
'id': value['id'],
|
|
62
66
|
'vendor': value['vendor'],
|
|
63
67
|
'model': value['model'],
|
|
68
|
+
'datacenter': value['datacenter'],
|
|
69
|
+
'cluster': value['cluster'],
|
|
70
|
+
'cpuModel': value['cpuModel'],
|
|
71
|
+
'serialNumber': value['serialNumber'],
|
|
64
72
|
'cpuCores': value['cpuCores'],
|
|
65
73
|
'cpuSockets': value['cpuSockets'],
|
|
66
74
|
'memoryMB': value['memoryMB'],
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Assisted Migration Agent API
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: v2
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface ImageUpgradeImage
|
|
16
|
+
*/
|
|
17
|
+
export interface ImageUpgradeImage {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
*/
|
|
21
|
+
version: string;
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
*/
|
|
25
|
+
digest: string;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Check if a given object implements the ImageUpgradeImage interface.
|
|
29
|
+
*/
|
|
30
|
+
export declare function instanceOfImageUpgradeImage(value: object): value is ImageUpgradeImage;
|
|
31
|
+
export declare function ImageUpgradeImageFromJSON(json: any): ImageUpgradeImage;
|
|
32
|
+
export declare function ImageUpgradeImageFromJSONTyped(json: any, ignoreDiscriminator: boolean): ImageUpgradeImage;
|
|
33
|
+
export declare function ImageUpgradeImageToJSON(json: any): ImageUpgradeImage;
|
|
34
|
+
export declare function ImageUpgradeImageToJSONTyped(value?: ImageUpgradeImage | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Assisted Migration Agent API
|
|
6
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: v2
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfImageUpgradeImage = instanceOfImageUpgradeImage;
|
|
17
|
+
exports.ImageUpgradeImageFromJSON = ImageUpgradeImageFromJSON;
|
|
18
|
+
exports.ImageUpgradeImageFromJSONTyped = ImageUpgradeImageFromJSONTyped;
|
|
19
|
+
exports.ImageUpgradeImageToJSON = ImageUpgradeImageToJSON;
|
|
20
|
+
exports.ImageUpgradeImageToJSONTyped = ImageUpgradeImageToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the ImageUpgradeImage interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfImageUpgradeImage(value) {
|
|
25
|
+
if (!('version' in value) || value['version'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('digest' in value) || value['digest'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
return true;
|
|
30
|
+
}
|
|
31
|
+
function ImageUpgradeImageFromJSON(json) {
|
|
32
|
+
return ImageUpgradeImageFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
function ImageUpgradeImageFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if (json == null) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'version': json['version'],
|
|
40
|
+
'digest': json['digest'],
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
function ImageUpgradeImageToJSON(json) {
|
|
44
|
+
return ImageUpgradeImageToJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
function ImageUpgradeImageToJSONTyped(value, ignoreDiscriminator = false) {
|
|
47
|
+
if (value == null) {
|
|
48
|
+
return value;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'version': value['version'],
|
|
52
|
+
'digest': value['digest'],
|
|
53
|
+
};
|
|
54
|
+
}
|