@openshift-migration-advisor/planner-sdk 0.4.0-190ea33a47ea
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 +105 -0
- package/.openapi-generator/VERSION +1 -0
- package/.openapi-generator-ignore +23 -0
- package/README.md +173 -0
- package/dist/apis/AssessmentApi.d.ts +236 -0
- package/dist/apis/AssessmentApi.js +277 -0
- package/dist/apis/HealthApi.d.ts +54 -0
- package/dist/apis/HealthApi.js +66 -0
- package/dist/apis/ImageApi.d.ts +94 -0
- package/dist/apis/ImageApi.js +110 -0
- package/dist/apis/InfoApi.d.ts +55 -0
- package/dist/apis/InfoApi.js +68 -0
- package/dist/apis/JobApi.d.ts +131 -0
- package/dist/apis/JobApi.js +174 -0
- package/dist/apis/SourceApi.d.ts +260 -0
- package/dist/apis/SourceApi.js +309 -0
- package/dist/apis/index.d.ts +6 -0
- package/dist/apis/index.js +24 -0
- package/dist/esm/apis/AssessmentApi.d.ts +236 -0
- package/dist/esm/apis/AssessmentApi.js +273 -0
- package/dist/esm/apis/HealthApi.d.ts +54 -0
- package/dist/esm/apis/HealthApi.js +62 -0
- package/dist/esm/apis/ImageApi.d.ts +94 -0
- package/dist/esm/apis/ImageApi.js +106 -0
- package/dist/esm/apis/InfoApi.d.ts +55 -0
- package/dist/esm/apis/InfoApi.js +64 -0
- package/dist/esm/apis/JobApi.d.ts +131 -0
- package/dist/esm/apis/JobApi.js +170 -0
- package/dist/esm/apis/SourceApi.d.ts +260 -0
- package/dist/esm/apis/SourceApi.js +305 -0
- package/dist/esm/apis/index.d.ts +6 -0
- package/dist/esm/apis/index.js +8 -0
- package/dist/esm/index.d.ts +3 -0
- package/dist/esm/index.js +5 -0
- package/dist/esm/models/Agent.d.ts +80 -0
- package/dist/esm/models/Agent.js +78 -0
- package/dist/esm/models/AgentProxy.d.ts +44 -0
- package/dist/esm/models/AgentProxy.js +45 -0
- package/dist/esm/models/Assessment.d.ts +84 -0
- package/dist/esm/models/Assessment.js +74 -0
- package/dist/esm/models/AssessmentForm.d.ts +54 -0
- package/dist/esm/models/AssessmentForm.js +52 -0
- package/dist/esm/models/AssessmentUpdate.d.ts +32 -0
- package/dist/esm/models/AssessmentUpdate.js +41 -0
- package/dist/esm/models/ClusterRequirementsRequest.d.ts +87 -0
- package/dist/esm/models/ClusterRequirementsRequest.js +80 -0
- package/dist/esm/models/ClusterRequirementsResponse.d.ts +47 -0
- package/dist/esm/models/ClusterRequirementsResponse.js +54 -0
- package/dist/esm/models/ClusterSizing.d.ts +62 -0
- package/dist/esm/models/ClusterSizing.js +63 -0
- package/dist/esm/models/Datastore.d.ts +80 -0
- package/dist/esm/models/Datastore.js +73 -0
- package/dist/esm/models/DiskSizeTierSummary.d.ts +38 -0
- package/dist/esm/models/DiskSizeTierSummary.js +47 -0
- package/dist/esm/models/DiskTypeSummary.d.ts +38 -0
- package/dist/esm/models/DiskTypeSummary.js +47 -0
- package/dist/esm/models/Histogram.d.ts +44 -0
- package/dist/esm/models/Histogram.js +51 -0
- package/dist/esm/models/Host.d.ts +62 -0
- package/dist/esm/models/Host.js +55 -0
- package/dist/esm/models/Info.d.ts +38 -0
- package/dist/esm/models/Info.js +47 -0
- package/dist/esm/models/Infra.d.ts +106 -0
- package/dist/esm/models/Infra.js +74 -0
- package/dist/esm/models/Inventory.d.ts +47 -0
- package/dist/esm/models/Inventory.js +51 -0
- package/dist/esm/models/InventoryData.d.ts +47 -0
- package/dist/esm/models/InventoryData.js +52 -0
- package/dist/esm/models/InventoryTotals.d.ts +44 -0
- package/dist/esm/models/InventoryTotals.js +51 -0
- package/dist/esm/models/Ipv4Config.d.ts +50 -0
- package/dist/esm/models/Ipv4Config.js +55 -0
- package/dist/esm/models/Job.d.ts +51 -0
- package/dist/esm/models/Job.js +52 -0
- package/dist/esm/models/JobStatus.d.ts +36 -0
- package/dist/esm/models/JobStatus.js +54 -0
- package/dist/esm/models/Label.d.ts +38 -0
- package/dist/esm/models/Label.js +47 -0
- package/dist/esm/models/MigrationIssue.d.ts +50 -0
- package/dist/esm/models/MigrationIssue.js +53 -0
- package/dist/esm/models/ModelError.d.ts +38 -0
- package/dist/esm/models/ModelError.js +45 -0
- package/dist/esm/models/Network.d.ts +66 -0
- package/dist/esm/models/Network.js +62 -0
- package/dist/esm/models/OsInfo.d.ts +44 -0
- package/dist/esm/models/OsInfo.js +49 -0
- package/dist/esm/models/PresignedUrl.d.ts +38 -0
- package/dist/esm/models/PresignedUrl.js +45 -0
- package/dist/esm/models/SizingOverCommitRatio.d.ts +38 -0
- package/dist/esm/models/SizingOverCommitRatio.js +47 -0
- package/dist/esm/models/SizingResourceConsumption.d.ts +52 -0
- package/dist/esm/models/SizingResourceConsumption.js +53 -0
- package/dist/esm/models/SizingResourceLimits.d.ts +38 -0
- package/dist/esm/models/SizingResourceLimits.js +47 -0
- package/dist/esm/models/Snapshot.d.ts +39 -0
- package/dist/esm/models/Snapshot.js +48 -0
- package/dist/esm/models/Source.d.ts +84 -0
- package/dist/esm/models/Source.js +71 -0
- package/dist/esm/models/SourceCreate.d.ts +65 -0
- package/dist/esm/models/SourceCreate.js +56 -0
- package/dist/esm/models/SourceInfra.d.ts +46 -0
- package/dist/esm/models/SourceInfra.js +47 -0
- package/dist/esm/models/SourceUpdate.d.ts +65 -0
- package/dist/esm/models/SourceUpdate.js +54 -0
- package/dist/esm/models/Status.d.ts +44 -0
- package/dist/esm/models/Status.js +45 -0
- package/dist/esm/models/UpdateInventory.d.ts +39 -0
- package/dist/esm/models/UpdateInventory.js +48 -0
- package/dist/esm/models/VCenter.d.ts +32 -0
- package/dist/esm/models/VCenter.js +43 -0
- package/dist/esm/models/VMResourceBreakdown.d.ts +58 -0
- package/dist/esm/models/VMResourceBreakdown.js +58 -0
- package/dist/esm/models/VMs.d.ts +162 -0
- package/dist/esm/models/VMs.js +101 -0
- package/dist/esm/models/VmNetwork.d.ts +33 -0
- package/dist/esm/models/VmNetwork.js +42 -0
- package/dist/esm/models/index.d.ts +41 -0
- package/dist/esm/models/index.js +43 -0
- package/dist/esm/runtime.d.ts +184 -0
- package/dist/esm/runtime.js +334 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +21 -0
- package/dist/models/Agent.d.ts +80 -0
- package/dist/models/Agent.js +86 -0
- package/dist/models/AgentProxy.d.ts +44 -0
- package/dist/models/AgentProxy.js +52 -0
- package/dist/models/Assessment.d.ts +84 -0
- package/dist/models/Assessment.js +82 -0
- package/dist/models/AssessmentForm.d.ts +54 -0
- package/dist/models/AssessmentForm.js +59 -0
- package/dist/models/AssessmentUpdate.d.ts +32 -0
- package/dist/models/AssessmentUpdate.js +48 -0
- package/dist/models/ClusterRequirementsRequest.d.ts +87 -0
- package/dist/models/ClusterRequirementsRequest.js +88 -0
- package/dist/models/ClusterRequirementsResponse.d.ts +47 -0
- package/dist/models/ClusterRequirementsResponse.js +61 -0
- package/dist/models/ClusterSizing.d.ts +62 -0
- package/dist/models/ClusterSizing.js +70 -0
- package/dist/models/Datastore.d.ts +80 -0
- package/dist/models/Datastore.js +80 -0
- package/dist/models/DiskSizeTierSummary.d.ts +38 -0
- package/dist/models/DiskSizeTierSummary.js +54 -0
- package/dist/models/DiskTypeSummary.d.ts +38 -0
- package/dist/models/DiskTypeSummary.js +54 -0
- package/dist/models/Histogram.d.ts +44 -0
- package/dist/models/Histogram.js +58 -0
- package/dist/models/Host.d.ts +62 -0
- package/dist/models/Host.js +62 -0
- package/dist/models/Info.d.ts +38 -0
- package/dist/models/Info.js +54 -0
- package/dist/models/Infra.d.ts +106 -0
- package/dist/models/Infra.js +81 -0
- package/dist/models/Inventory.d.ts +47 -0
- package/dist/models/Inventory.js +58 -0
- package/dist/models/InventoryData.d.ts +47 -0
- package/dist/models/InventoryData.js +59 -0
- package/dist/models/InventoryTotals.d.ts +44 -0
- package/dist/models/InventoryTotals.js +58 -0
- package/dist/models/Ipv4Config.d.ts +50 -0
- package/dist/models/Ipv4Config.js +62 -0
- package/dist/models/Job.d.ts +51 -0
- package/dist/models/Job.js +59 -0
- package/dist/models/JobStatus.d.ts +36 -0
- package/dist/models/JobStatus.js +62 -0
- package/dist/models/Label.d.ts +38 -0
- package/dist/models/Label.js +54 -0
- package/dist/models/MigrationIssue.d.ts +50 -0
- package/dist/models/MigrationIssue.js +60 -0
- package/dist/models/ModelError.d.ts +38 -0
- package/dist/models/ModelError.js +52 -0
- package/dist/models/Network.d.ts +66 -0
- package/dist/models/Network.js +70 -0
- package/dist/models/OsInfo.d.ts +44 -0
- package/dist/models/OsInfo.js +56 -0
- package/dist/models/PresignedUrl.d.ts +38 -0
- package/dist/models/PresignedUrl.js +52 -0
- package/dist/models/SizingOverCommitRatio.d.ts +38 -0
- package/dist/models/SizingOverCommitRatio.js +54 -0
- package/dist/models/SizingResourceConsumption.d.ts +52 -0
- package/dist/models/SizingResourceConsumption.js +60 -0
- package/dist/models/SizingResourceLimits.d.ts +38 -0
- package/dist/models/SizingResourceLimits.js +54 -0
- package/dist/models/Snapshot.d.ts +39 -0
- package/dist/models/Snapshot.js +55 -0
- package/dist/models/Source.d.ts +84 -0
- package/dist/models/Source.js +78 -0
- package/dist/models/SourceCreate.d.ts +65 -0
- package/dist/models/SourceCreate.js +63 -0
- package/dist/models/SourceInfra.d.ts +46 -0
- package/dist/models/SourceInfra.js +54 -0
- package/dist/models/SourceUpdate.d.ts +65 -0
- package/dist/models/SourceUpdate.js +61 -0
- package/dist/models/Status.d.ts +44 -0
- package/dist/models/Status.js +52 -0
- package/dist/models/UpdateInventory.d.ts +39 -0
- package/dist/models/UpdateInventory.js +55 -0
- package/dist/models/VCenter.d.ts +32 -0
- package/dist/models/VCenter.js +50 -0
- package/dist/models/VMResourceBreakdown.d.ts +58 -0
- package/dist/models/VMResourceBreakdown.js +65 -0
- package/dist/models/VMs.d.ts +162 -0
- package/dist/models/VMs.js +108 -0
- package/dist/models/VmNetwork.d.ts +33 -0
- package/dist/models/VmNetwork.js +49 -0
- package/dist/models/index.d.ts +41 -0
- package/dist/models/index.js +59 -0
- package/dist/runtime.d.ts +184 -0
- package/dist/runtime.js +350 -0
- package/docs/Agent.md +46 -0
- package/docs/AgentProxy.md +38 -0
- package/docs/Assessment.md +48 -0
- package/docs/AssessmentApi.md +448 -0
- package/docs/AssessmentForm.md +40 -0
- package/docs/AssessmentUpdate.md +35 -0
- package/docs/ClusterRequirementsRequest.md +47 -0
- package/docs/ClusterRequirementsResponse.md +39 -0
- package/docs/ClusterSizing.md +45 -0
- package/docs/Datastore.md +50 -0
- package/docs/DiskSizeTierSummary.md +36 -0
- package/docs/DiskTypeSummary.md +36 -0
- package/docs/HealthApi.md +68 -0
- package/docs/Histogram.md +38 -0
- package/docs/Host.md +44 -0
- package/docs/ImageApi.md +152 -0
- package/docs/Info.md +37 -0
- package/docs/InfoApi.md +69 -0
- package/docs/Infra.md +56 -0
- package/docs/Inventory.md +38 -0
- package/docs/InventoryData.md +38 -0
- package/docs/InventoryTotals.md +39 -0
- package/docs/Ipv4Config.md +40 -0
- package/docs/Job.md +41 -0
- package/docs/JobApi.md +229 -0
- package/docs/JobStatus.md +33 -0
- package/docs/Label.md +36 -0
- package/docs/MigrationIssue.md +40 -0
- package/docs/ModelError.md +36 -0
- package/docs/Network.md +42 -0
- package/docs/OsInfo.md +38 -0
- package/docs/PresignedUrl.md +36 -0
- package/docs/SizingOverCommitRatio.md +37 -0
- package/docs/SizingResourceConsumption.md +41 -0
- package/docs/SizingResourceLimits.md +37 -0
- package/docs/Snapshot.md +36 -0
- package/docs/Source.md +50 -0
- package/docs/SourceApi.md +501 -0
- package/docs/SourceCreate.md +44 -0
- package/docs/SourceInfra.md +38 -0
- package/docs/SourceUpdate.md +44 -0
- package/docs/Status.md +39 -0
- package/docs/UpdateInventory.md +36 -0
- package/docs/VCenter.md +34 -0
- package/docs/VMResourceBreakdown.md +42 -0
- package/docs/VMs.md +70 -0
- package/docs/VmNetwork.md +34 -0
- package/package.json +22 -0
- package/src/apis/AssessmentApi.ts +501 -0
- package/src/apis/HealthApi.ts +88 -0
- package/src/apis/ImageApi.ts +180 -0
- package/src/apis/InfoApi.ts +96 -0
- package/src/apis/JobApi.ts +286 -0
- package/src/apis/SourceApi.ts +548 -0
- package/src/apis/index.ts +8 -0
- package/src/index.ts +5 -0
- package/src/models/Agent.ts +135 -0
- package/src/models/AgentProxy.ts +81 -0
- package/src/models/Assessment.ts +146 -0
- package/src/models/AssessmentForm.ts +102 -0
- package/src/models/AssessmentUpdate.ts +65 -0
- package/src/models/ClusterRequirementsRequest.ts +141 -0
- package/src/models/ClusterRequirementsResponse.ts +106 -0
- package/src/models/ClusterSizing.ts +111 -0
- package/src/models/Datastore.ts +137 -0
- package/src/models/DiskSizeTierSummary.ts +75 -0
- package/src/models/DiskTypeSummary.ts +75 -0
- package/src/models/Histogram.ts +84 -0
- package/src/models/Host.ts +107 -0
- package/src/models/Info.ts +75 -0
- package/src/models/Infra.ts +182 -0
- package/src/models/Inventory.ts +91 -0
- package/src/models/InventoryData.ts +105 -0
- package/src/models/InventoryTotals.ts +84 -0
- package/src/models/Ipv4Config.ts +93 -0
- package/src/models/Job.ts +101 -0
- package/src/models/JobStatus.ts +64 -0
- package/src/models/Label.ts +75 -0
- package/src/models/MigrationIssue.ts +92 -0
- package/src/models/ModelError.ts +74 -0
- package/src/models/Network.ts +112 -0
- package/src/models/OsInfo.ts +83 -0
- package/src/models/PresignedUrl.ts +74 -0
- package/src/models/SizingOverCommitRatio.ts +75 -0
- package/src/models/SizingResourceConsumption.ts +106 -0
- package/src/models/SizingResourceLimits.ts +75 -0
- package/src/models/Snapshot.ts +83 -0
- package/src/models/Source.ts +163 -0
- package/src/models/SourceCreate.ts +128 -0
- package/src/models/SourceInfra.ts +96 -0
- package/src/models/SourceUpdate.ts +127 -0
- package/src/models/Status.ts +81 -0
- package/src/models/UpdateInventory.ts +83 -0
- package/src/models/VCenter.ts +66 -0
- package/src/models/VMResourceBreakdown.ts +110 -0
- package/src/models/VMs.ts +255 -0
- package/src/models/VmNetwork.ts +73 -0
- package/src/models/index.ts +43 -0
- package/src/runtime.ts +432 -0
- package/tsconfig.esm.json +7 -0
- package/tsconfig.json +16 -0
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Migration Planner API
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: undefined
|
|
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 { SourceInfra } from './SourceInfra.js';
|
|
13
|
+
import type { Agent } from './Agent.js';
|
|
14
|
+
import type { Label } from './Label.js';
|
|
15
|
+
import type { Inventory } from './Inventory.js';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface Source
|
|
20
|
+
*/
|
|
21
|
+
export interface Source {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof Source
|
|
26
|
+
*/
|
|
27
|
+
id: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof Source
|
|
32
|
+
*/
|
|
33
|
+
name: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {Inventory}
|
|
37
|
+
* @memberof Source
|
|
38
|
+
*/
|
|
39
|
+
inventory?: Inventory;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {Date}
|
|
43
|
+
* @memberof Source
|
|
44
|
+
*/
|
|
45
|
+
createdAt: Date;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {Date}
|
|
49
|
+
* @memberof Source
|
|
50
|
+
*/
|
|
51
|
+
updatedAt: Date;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {boolean}
|
|
55
|
+
* @memberof Source
|
|
56
|
+
*/
|
|
57
|
+
onPremises: boolean;
|
|
58
|
+
/**
|
|
59
|
+
*
|
|
60
|
+
* @type {Agent}
|
|
61
|
+
* @memberof Source
|
|
62
|
+
*/
|
|
63
|
+
agent?: Agent;
|
|
64
|
+
/**
|
|
65
|
+
*
|
|
66
|
+
* @type {Array<Label>}
|
|
67
|
+
* @memberof Source
|
|
68
|
+
*/
|
|
69
|
+
labels?: Array<Label>;
|
|
70
|
+
/**
|
|
71
|
+
*
|
|
72
|
+
* @type {SourceInfra}
|
|
73
|
+
* @memberof Source
|
|
74
|
+
*/
|
|
75
|
+
infra?: SourceInfra;
|
|
76
|
+
}
|
|
77
|
+
/**
|
|
78
|
+
* Check if a given object implements the Source interface.
|
|
79
|
+
*/
|
|
80
|
+
export declare function instanceOfSource(value: object): value is Source;
|
|
81
|
+
export declare function SourceFromJSON(json: any): Source;
|
|
82
|
+
export declare function SourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): Source;
|
|
83
|
+
export declare function SourceToJSON(json: any): Source;
|
|
84
|
+
export declare function SourceToJSONTyped(value?: Source | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Migration Planner API
|
|
6
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: undefined
|
|
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.instanceOfSource = instanceOfSource;
|
|
17
|
+
exports.SourceFromJSON = SourceFromJSON;
|
|
18
|
+
exports.SourceFromJSONTyped = SourceFromJSONTyped;
|
|
19
|
+
exports.SourceToJSON = SourceToJSON;
|
|
20
|
+
exports.SourceToJSONTyped = SourceToJSONTyped;
|
|
21
|
+
const SourceInfra_js_1 = require("./SourceInfra.js");
|
|
22
|
+
const Agent_js_1 = require("./Agent.js");
|
|
23
|
+
const Label_js_1 = require("./Label.js");
|
|
24
|
+
const Inventory_js_1 = require("./Inventory.js");
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the Source interface.
|
|
27
|
+
*/
|
|
28
|
+
function instanceOfSource(value) {
|
|
29
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
if (!('updatedAt' in value) || value['updatedAt'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
if (!('onPremises' in value) || value['onPremises'] === undefined)
|
|
38
|
+
return false;
|
|
39
|
+
return true;
|
|
40
|
+
}
|
|
41
|
+
function SourceFromJSON(json) {
|
|
42
|
+
return SourceFromJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function SourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
45
|
+
if (json == null) {
|
|
46
|
+
return json;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'id': json['id'],
|
|
50
|
+
'name': json['name'],
|
|
51
|
+
'inventory': json['inventory'] == null ? undefined : (0, Inventory_js_1.InventoryFromJSON)(json['inventory']),
|
|
52
|
+
'createdAt': (new Date(json['createdAt'])),
|
|
53
|
+
'updatedAt': (new Date(json['updatedAt'])),
|
|
54
|
+
'onPremises': json['onPremises'],
|
|
55
|
+
'agent': json['agent'] == null ? undefined : (0, Agent_js_1.AgentFromJSON)(json['agent']),
|
|
56
|
+
'labels': json['labels'] == null ? undefined : (json['labels'].map(Label_js_1.LabelFromJSON)),
|
|
57
|
+
'infra': json['infra'] == null ? undefined : (0, SourceInfra_js_1.SourceInfraFromJSON)(json['infra']),
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
function SourceToJSON(json) {
|
|
61
|
+
return SourceToJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
function SourceToJSONTyped(value, ignoreDiscriminator = false) {
|
|
64
|
+
if (value == null) {
|
|
65
|
+
return value;
|
|
66
|
+
}
|
|
67
|
+
return {
|
|
68
|
+
'id': value['id'],
|
|
69
|
+
'name': value['name'],
|
|
70
|
+
'inventory': (0, Inventory_js_1.InventoryToJSON)(value['inventory']),
|
|
71
|
+
'createdAt': value['createdAt'].toISOString(),
|
|
72
|
+
'updatedAt': value['updatedAt'].toISOString(),
|
|
73
|
+
'onPremises': value['onPremises'],
|
|
74
|
+
'agent': (0, Agent_js_1.AgentToJSON)(value['agent']),
|
|
75
|
+
'labels': value['labels'] == null ? undefined : (value['labels'].map(Label_js_1.LabelToJSON)),
|
|
76
|
+
'infra': (0, SourceInfra_js_1.SourceInfraToJSON)(value['infra']),
|
|
77
|
+
};
|
|
78
|
+
}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Migration Planner API
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: undefined
|
|
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 { VmNetwork } from './VmNetwork.js';
|
|
13
|
+
import type { AgentProxy } from './AgentProxy.js';
|
|
14
|
+
import type { Label } from './Label.js';
|
|
15
|
+
/**
|
|
16
|
+
*
|
|
17
|
+
* @export
|
|
18
|
+
* @interface SourceCreate
|
|
19
|
+
*/
|
|
20
|
+
export interface SourceCreate {
|
|
21
|
+
/**
|
|
22
|
+
*
|
|
23
|
+
* @type {string}
|
|
24
|
+
* @memberof SourceCreate
|
|
25
|
+
*/
|
|
26
|
+
name: string;
|
|
27
|
+
/**
|
|
28
|
+
*
|
|
29
|
+
* @type {string}
|
|
30
|
+
* @memberof SourceCreate
|
|
31
|
+
*/
|
|
32
|
+
sshPublicKey?: string | null;
|
|
33
|
+
/**
|
|
34
|
+
*
|
|
35
|
+
* @type {AgentProxy}
|
|
36
|
+
* @memberof SourceCreate
|
|
37
|
+
*/
|
|
38
|
+
proxy?: AgentProxy;
|
|
39
|
+
/**
|
|
40
|
+
*
|
|
41
|
+
* @type {string}
|
|
42
|
+
* @memberof SourceCreate
|
|
43
|
+
*/
|
|
44
|
+
certificateChain?: string | null;
|
|
45
|
+
/**
|
|
46
|
+
*
|
|
47
|
+
* @type {VmNetwork}
|
|
48
|
+
* @memberof SourceCreate
|
|
49
|
+
*/
|
|
50
|
+
network?: VmNetwork;
|
|
51
|
+
/**
|
|
52
|
+
*
|
|
53
|
+
* @type {Array<Label>}
|
|
54
|
+
* @memberof SourceCreate
|
|
55
|
+
*/
|
|
56
|
+
labels?: Array<Label>;
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* Check if a given object implements the SourceCreate interface.
|
|
60
|
+
*/
|
|
61
|
+
export declare function instanceOfSourceCreate(value: object): value is SourceCreate;
|
|
62
|
+
export declare function SourceCreateFromJSON(json: any): SourceCreate;
|
|
63
|
+
export declare function SourceCreateFromJSONTyped(json: any, ignoreDiscriminator: boolean): SourceCreate;
|
|
64
|
+
export declare function SourceCreateToJSON(json: any): SourceCreate;
|
|
65
|
+
export declare function SourceCreateToJSONTyped(value?: SourceCreate | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Migration Planner API
|
|
6
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: undefined
|
|
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.instanceOfSourceCreate = instanceOfSourceCreate;
|
|
17
|
+
exports.SourceCreateFromJSON = SourceCreateFromJSON;
|
|
18
|
+
exports.SourceCreateFromJSONTyped = SourceCreateFromJSONTyped;
|
|
19
|
+
exports.SourceCreateToJSON = SourceCreateToJSON;
|
|
20
|
+
exports.SourceCreateToJSONTyped = SourceCreateToJSONTyped;
|
|
21
|
+
const VmNetwork_js_1 = require("./VmNetwork.js");
|
|
22
|
+
const AgentProxy_js_1 = require("./AgentProxy.js");
|
|
23
|
+
const Label_js_1 = require("./Label.js");
|
|
24
|
+
/**
|
|
25
|
+
* Check if a given object implements the SourceCreate interface.
|
|
26
|
+
*/
|
|
27
|
+
function instanceOfSourceCreate(value) {
|
|
28
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
return true;
|
|
31
|
+
}
|
|
32
|
+
function SourceCreateFromJSON(json) {
|
|
33
|
+
return SourceCreateFromJSONTyped(json, false);
|
|
34
|
+
}
|
|
35
|
+
function SourceCreateFromJSONTyped(json, ignoreDiscriminator) {
|
|
36
|
+
if (json == null) {
|
|
37
|
+
return json;
|
|
38
|
+
}
|
|
39
|
+
return {
|
|
40
|
+
'name': json['name'],
|
|
41
|
+
'sshPublicKey': json['sshPublicKey'] == null ? undefined : json['sshPublicKey'],
|
|
42
|
+
'proxy': json['proxy'] == null ? undefined : (0, AgentProxy_js_1.AgentProxyFromJSON)(json['proxy']),
|
|
43
|
+
'certificateChain': json['certificateChain'] == null ? undefined : json['certificateChain'],
|
|
44
|
+
'network': json['network'] == null ? undefined : (0, VmNetwork_js_1.VmNetworkFromJSON)(json['network']),
|
|
45
|
+
'labels': json['labels'] == null ? undefined : (json['labels'].map(Label_js_1.LabelFromJSON)),
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
function SourceCreateToJSON(json) {
|
|
49
|
+
return SourceCreateToJSONTyped(json, false);
|
|
50
|
+
}
|
|
51
|
+
function SourceCreateToJSONTyped(value, ignoreDiscriminator = false) {
|
|
52
|
+
if (value == null) {
|
|
53
|
+
return value;
|
|
54
|
+
}
|
|
55
|
+
return {
|
|
56
|
+
'name': value['name'],
|
|
57
|
+
'sshPublicKey': value['sshPublicKey'],
|
|
58
|
+
'proxy': (0, AgentProxy_js_1.AgentProxyToJSON)(value['proxy']),
|
|
59
|
+
'certificateChain': value['certificateChain'],
|
|
60
|
+
'network': (0, VmNetwork_js_1.VmNetworkToJSON)(value['network']),
|
|
61
|
+
'labels': value['labels'] == null ? undefined : (value['labels'].map(Label_js_1.LabelToJSON)),
|
|
62
|
+
};
|
|
63
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Migration Planner API
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: undefined
|
|
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 { VmNetwork } from './VmNetwork.js';
|
|
13
|
+
import type { AgentProxy } from './AgentProxy.js';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface SourceInfra
|
|
18
|
+
*/
|
|
19
|
+
export interface SourceInfra {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {AgentProxy}
|
|
23
|
+
* @memberof SourceInfra
|
|
24
|
+
*/
|
|
25
|
+
proxy?: AgentProxy;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {string}
|
|
29
|
+
* @memberof SourceInfra
|
|
30
|
+
*/
|
|
31
|
+
sshPublicKey?: string | null;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @type {VmNetwork}
|
|
35
|
+
* @memberof SourceInfra
|
|
36
|
+
*/
|
|
37
|
+
vmNetwork?: VmNetwork;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Check if a given object implements the SourceInfra interface.
|
|
41
|
+
*/
|
|
42
|
+
export declare function instanceOfSourceInfra(value: object): value is SourceInfra;
|
|
43
|
+
export declare function SourceInfraFromJSON(json: any): SourceInfra;
|
|
44
|
+
export declare function SourceInfraFromJSONTyped(json: any, ignoreDiscriminator: boolean): SourceInfra;
|
|
45
|
+
export declare function SourceInfraToJSON(json: any): SourceInfra;
|
|
46
|
+
export declare function SourceInfraToJSONTyped(value?: SourceInfra | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Migration Planner API
|
|
6
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: undefined
|
|
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.instanceOfSourceInfra = instanceOfSourceInfra;
|
|
17
|
+
exports.SourceInfraFromJSON = SourceInfraFromJSON;
|
|
18
|
+
exports.SourceInfraFromJSONTyped = SourceInfraFromJSONTyped;
|
|
19
|
+
exports.SourceInfraToJSON = SourceInfraToJSON;
|
|
20
|
+
exports.SourceInfraToJSONTyped = SourceInfraToJSONTyped;
|
|
21
|
+
const VmNetwork_js_1 = require("./VmNetwork.js");
|
|
22
|
+
const AgentProxy_js_1 = require("./AgentProxy.js");
|
|
23
|
+
/**
|
|
24
|
+
* Check if a given object implements the SourceInfra interface.
|
|
25
|
+
*/
|
|
26
|
+
function instanceOfSourceInfra(value) {
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
function SourceInfraFromJSON(json) {
|
|
30
|
+
return SourceInfraFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
function SourceInfraFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'proxy': json['proxy'] == null ? undefined : (0, AgentProxy_js_1.AgentProxyFromJSON)(json['proxy']),
|
|
38
|
+
'sshPublicKey': json['sshPublicKey'] == null ? undefined : json['sshPublicKey'],
|
|
39
|
+
'vmNetwork': json['vmNetwork'] == null ? undefined : (0, VmNetwork_js_1.VmNetworkFromJSON)(json['vmNetwork']),
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
function SourceInfraToJSON(json) {
|
|
43
|
+
return SourceInfraToJSONTyped(json, false);
|
|
44
|
+
}
|
|
45
|
+
function SourceInfraToJSONTyped(value, ignoreDiscriminator = false) {
|
|
46
|
+
if (value == null) {
|
|
47
|
+
return value;
|
|
48
|
+
}
|
|
49
|
+
return {
|
|
50
|
+
'proxy': (0, AgentProxy_js_1.AgentProxyToJSON)(value['proxy']),
|
|
51
|
+
'sshPublicKey': value['sshPublicKey'],
|
|
52
|
+
'vmNetwork': (0, VmNetwork_js_1.VmNetworkToJSON)(value['vmNetwork']),
|
|
53
|
+
};
|
|
54
|
+
}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Migration Planner API
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: undefined
|
|
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 { VmNetwork } from './VmNetwork.js';
|
|
13
|
+
import type { AgentProxy } from './AgentProxy.js';
|
|
14
|
+
import type { Label } from './Label.js';
|
|
15
|
+
/**
|
|
16
|
+
*
|
|
17
|
+
* @export
|
|
18
|
+
* @interface SourceUpdate
|
|
19
|
+
*/
|
|
20
|
+
export interface SourceUpdate {
|
|
21
|
+
/**
|
|
22
|
+
*
|
|
23
|
+
* @type {string}
|
|
24
|
+
* @memberof SourceUpdate
|
|
25
|
+
*/
|
|
26
|
+
name?: string;
|
|
27
|
+
/**
|
|
28
|
+
*
|
|
29
|
+
* @type {Array<Label>}
|
|
30
|
+
* @memberof SourceUpdate
|
|
31
|
+
*/
|
|
32
|
+
labels?: Array<Label>;
|
|
33
|
+
/**
|
|
34
|
+
*
|
|
35
|
+
* @type {string}
|
|
36
|
+
* @memberof SourceUpdate
|
|
37
|
+
*/
|
|
38
|
+
sshPublicKey?: string | null;
|
|
39
|
+
/**
|
|
40
|
+
*
|
|
41
|
+
* @type {string}
|
|
42
|
+
* @memberof SourceUpdate
|
|
43
|
+
*/
|
|
44
|
+
certificateChain?: string | null;
|
|
45
|
+
/**
|
|
46
|
+
*
|
|
47
|
+
* @type {AgentProxy}
|
|
48
|
+
* @memberof SourceUpdate
|
|
49
|
+
*/
|
|
50
|
+
proxy?: AgentProxy;
|
|
51
|
+
/**
|
|
52
|
+
*
|
|
53
|
+
* @type {VmNetwork}
|
|
54
|
+
* @memberof SourceUpdate
|
|
55
|
+
*/
|
|
56
|
+
network?: VmNetwork;
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* Check if a given object implements the SourceUpdate interface.
|
|
60
|
+
*/
|
|
61
|
+
export declare function instanceOfSourceUpdate(value: object): value is SourceUpdate;
|
|
62
|
+
export declare function SourceUpdateFromJSON(json: any): SourceUpdate;
|
|
63
|
+
export declare function SourceUpdateFromJSONTyped(json: any, ignoreDiscriminator: boolean): SourceUpdate;
|
|
64
|
+
export declare function SourceUpdateToJSON(json: any): SourceUpdate;
|
|
65
|
+
export declare function SourceUpdateToJSONTyped(value?: SourceUpdate | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Migration Planner API
|
|
6
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: undefined
|
|
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.instanceOfSourceUpdate = instanceOfSourceUpdate;
|
|
17
|
+
exports.SourceUpdateFromJSON = SourceUpdateFromJSON;
|
|
18
|
+
exports.SourceUpdateFromJSONTyped = SourceUpdateFromJSONTyped;
|
|
19
|
+
exports.SourceUpdateToJSON = SourceUpdateToJSON;
|
|
20
|
+
exports.SourceUpdateToJSONTyped = SourceUpdateToJSONTyped;
|
|
21
|
+
const VmNetwork_js_1 = require("./VmNetwork.js");
|
|
22
|
+
const AgentProxy_js_1 = require("./AgentProxy.js");
|
|
23
|
+
const Label_js_1 = require("./Label.js");
|
|
24
|
+
/**
|
|
25
|
+
* Check if a given object implements the SourceUpdate interface.
|
|
26
|
+
*/
|
|
27
|
+
function instanceOfSourceUpdate(value) {
|
|
28
|
+
return true;
|
|
29
|
+
}
|
|
30
|
+
function SourceUpdateFromJSON(json) {
|
|
31
|
+
return SourceUpdateFromJSONTyped(json, false);
|
|
32
|
+
}
|
|
33
|
+
function SourceUpdateFromJSONTyped(json, ignoreDiscriminator) {
|
|
34
|
+
if (json == null) {
|
|
35
|
+
return json;
|
|
36
|
+
}
|
|
37
|
+
return {
|
|
38
|
+
'name': json['name'] == null ? undefined : json['name'],
|
|
39
|
+
'labels': json['labels'] == null ? undefined : (json['labels'].map(Label_js_1.LabelFromJSON)),
|
|
40
|
+
'sshPublicKey': json['sshPublicKey'] == null ? undefined : json['sshPublicKey'],
|
|
41
|
+
'certificateChain': json['certificateChain'] == null ? undefined : json['certificateChain'],
|
|
42
|
+
'proxy': json['proxy'] == null ? undefined : (0, AgentProxy_js_1.AgentProxyFromJSON)(json['proxy']),
|
|
43
|
+
'network': json['network'] == null ? undefined : (0, VmNetwork_js_1.VmNetworkFromJSON)(json['network']),
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
function SourceUpdateToJSON(json) {
|
|
47
|
+
return SourceUpdateToJSONTyped(json, false);
|
|
48
|
+
}
|
|
49
|
+
function SourceUpdateToJSONTyped(value, ignoreDiscriminator = false) {
|
|
50
|
+
if (value == null) {
|
|
51
|
+
return value;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
'name': value['name'],
|
|
55
|
+
'labels': value['labels'] == null ? undefined : (value['labels'].map(Label_js_1.LabelToJSON)),
|
|
56
|
+
'sshPublicKey': value['sshPublicKey'],
|
|
57
|
+
'certificateChain': value['certificateChain'],
|
|
58
|
+
'proxy': (0, AgentProxy_js_1.AgentProxyToJSON)(value['proxy']),
|
|
59
|
+
'network': (0, VmNetwork_js_1.VmNetworkToJSON)(value['network']),
|
|
60
|
+
};
|
|
61
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Migration Planner API
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: undefined
|
|
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
|
+
* Status is a return value for calls that don't return other objects.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface Status
|
|
16
|
+
*/
|
|
17
|
+
export interface Status {
|
|
18
|
+
/**
|
|
19
|
+
* A human-readable description of the status of this operation.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof Status
|
|
22
|
+
*/
|
|
23
|
+
message?: string;
|
|
24
|
+
/**
|
|
25
|
+
* A machine-readable description of why this operation is in the "Failure" status. If this value is empty there is no information available. A Reason clarifies an HTTP status code but does not override it.
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof Status
|
|
28
|
+
*/
|
|
29
|
+
reason?: string;
|
|
30
|
+
/**
|
|
31
|
+
* Status of the operation. One of: "Success" or "Failure". More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof Status
|
|
34
|
+
*/
|
|
35
|
+
status?: string;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the Status interface.
|
|
39
|
+
*/
|
|
40
|
+
export declare function instanceOfStatus(value: object): value is Status;
|
|
41
|
+
export declare function StatusFromJSON(json: any): Status;
|
|
42
|
+
export declare function StatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): Status;
|
|
43
|
+
export declare function StatusToJSON(json: any): Status;
|
|
44
|
+
export declare function StatusToJSONTyped(value?: Status | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Migration Planner API
|
|
6
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: undefined
|
|
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.instanceOfStatus = instanceOfStatus;
|
|
17
|
+
exports.StatusFromJSON = StatusFromJSON;
|
|
18
|
+
exports.StatusFromJSONTyped = StatusFromJSONTyped;
|
|
19
|
+
exports.StatusToJSON = StatusToJSON;
|
|
20
|
+
exports.StatusToJSONTyped = StatusToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the Status interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfStatus(value) {
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
function StatusFromJSON(json) {
|
|
28
|
+
return StatusFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
function StatusFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'message': json['message'] == null ? undefined : json['message'],
|
|
36
|
+
'reason': json['reason'] == null ? undefined : json['reason'],
|
|
37
|
+
'status': json['status'] == null ? undefined : json['status'],
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
function StatusToJSON(json) {
|
|
41
|
+
return StatusToJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function StatusToJSONTyped(value, ignoreDiscriminator = false) {
|
|
44
|
+
if (value == null) {
|
|
45
|
+
return value;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'message': value['message'],
|
|
49
|
+
'reason': value['reason'],
|
|
50
|
+
'status': value['status'],
|
|
51
|
+
};
|
|
52
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Migration Planner API
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: undefined
|
|
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 { Inventory } from './Inventory.js';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface UpdateInventory
|
|
17
|
+
*/
|
|
18
|
+
export interface UpdateInventory {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof UpdateInventory
|
|
23
|
+
*/
|
|
24
|
+
agentId: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {Inventory}
|
|
28
|
+
* @memberof UpdateInventory
|
|
29
|
+
*/
|
|
30
|
+
inventory: Inventory;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Check if a given object implements the UpdateInventory interface.
|
|
34
|
+
*/
|
|
35
|
+
export declare function instanceOfUpdateInventory(value: object): value is UpdateInventory;
|
|
36
|
+
export declare function UpdateInventoryFromJSON(json: any): UpdateInventory;
|
|
37
|
+
export declare function UpdateInventoryFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateInventory;
|
|
38
|
+
export declare function UpdateInventoryToJSON(json: any): UpdateInventory;
|
|
39
|
+
export declare function UpdateInventoryToJSONTyped(value?: UpdateInventory | null, ignoreDiscriminator?: boolean): any;
|