@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,36 @@
|
|
|
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
|
+
* Job status:
|
|
14
|
+
* * `pending` - Job is queued
|
|
15
|
+
* * `parsing` - Parsing RVTools Excel file
|
|
16
|
+
* * `validating` - Running OPA VM validations
|
|
17
|
+
* * `completed` - Assessment created successfully
|
|
18
|
+
* * `failed` - Job failed with error
|
|
19
|
+
* * `cancelled` - Job was cancelled
|
|
20
|
+
*
|
|
21
|
+
* @export
|
|
22
|
+
*/
|
|
23
|
+
export declare const JobStatus: {
|
|
24
|
+
readonly Pending: "pending";
|
|
25
|
+
readonly Parsing: "parsing";
|
|
26
|
+
readonly Validating: "validating";
|
|
27
|
+
readonly Completed: "completed";
|
|
28
|
+
readonly Failed: "failed";
|
|
29
|
+
readonly Cancelled: "cancelled";
|
|
30
|
+
};
|
|
31
|
+
export type JobStatus = typeof JobStatus[keyof typeof JobStatus];
|
|
32
|
+
export declare function instanceOfJobStatus(value: any): boolean;
|
|
33
|
+
export declare function JobStatusFromJSON(json: any): JobStatus;
|
|
34
|
+
export declare function JobStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): JobStatus;
|
|
35
|
+
export declare function JobStatusToJSON(value?: JobStatus | null): any;
|
|
36
|
+
export declare function JobStatusToJSONTyped(value: any, ignoreDiscriminator: boolean): JobStatus;
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Migration Planner API
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: undefined
|
|
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
|
+
* Job status:
|
|
16
|
+
* * `pending` - Job is queued
|
|
17
|
+
* * `parsing` - Parsing RVTools Excel file
|
|
18
|
+
* * `validating` - Running OPA VM validations
|
|
19
|
+
* * `completed` - Assessment created successfully
|
|
20
|
+
* * `failed` - Job failed with error
|
|
21
|
+
* * `cancelled` - Job was cancelled
|
|
22
|
+
*
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
export const JobStatus = {
|
|
26
|
+
Pending: 'pending',
|
|
27
|
+
Parsing: 'parsing',
|
|
28
|
+
Validating: 'validating',
|
|
29
|
+
Completed: 'completed',
|
|
30
|
+
Failed: 'failed',
|
|
31
|
+
Cancelled: 'cancelled'
|
|
32
|
+
};
|
|
33
|
+
export function instanceOfJobStatus(value) {
|
|
34
|
+
for (const key in JobStatus) {
|
|
35
|
+
if (Object.prototype.hasOwnProperty.call(JobStatus, key)) {
|
|
36
|
+
if (JobStatus[key] === value) {
|
|
37
|
+
return true;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
return false;
|
|
42
|
+
}
|
|
43
|
+
export function JobStatusFromJSON(json) {
|
|
44
|
+
return JobStatusFromJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
export function JobStatusFromJSONTyped(json, ignoreDiscriminator) {
|
|
47
|
+
return json;
|
|
48
|
+
}
|
|
49
|
+
export function JobStatusToJSON(value) {
|
|
50
|
+
return value;
|
|
51
|
+
}
|
|
52
|
+
export function JobStatusToJSONTyped(value, ignoreDiscriminator) {
|
|
53
|
+
return value;
|
|
54
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
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
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface Label
|
|
16
|
+
*/
|
|
17
|
+
export interface Label {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof Label
|
|
22
|
+
*/
|
|
23
|
+
key: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof Label
|
|
28
|
+
*/
|
|
29
|
+
value: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the Label interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfLabel(value: object): value is Label;
|
|
35
|
+
export declare function LabelFromJSON(json: any): Label;
|
|
36
|
+
export declare function LabelFromJSONTyped(json: any, ignoreDiscriminator: boolean): Label;
|
|
37
|
+
export declare function LabelToJSON(json: any): Label;
|
|
38
|
+
export declare function LabelToJSONTyped(value?: Label | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Migration Planner API
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: undefined
|
|
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
|
+
* Check if a given object implements the Label interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfLabel(value) {
|
|
18
|
+
if (!('key' in value) || value['key'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
if (!('value' in value) || value['value'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
return true;
|
|
23
|
+
}
|
|
24
|
+
export function LabelFromJSON(json) {
|
|
25
|
+
return LabelFromJSONTyped(json, false);
|
|
26
|
+
}
|
|
27
|
+
export function LabelFromJSONTyped(json, ignoreDiscriminator) {
|
|
28
|
+
if (json == null) {
|
|
29
|
+
return json;
|
|
30
|
+
}
|
|
31
|
+
return {
|
|
32
|
+
'key': json['key'],
|
|
33
|
+
'value': json['value'],
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
export function LabelToJSON(json) {
|
|
37
|
+
return LabelToJSONTyped(json, false);
|
|
38
|
+
}
|
|
39
|
+
export function LabelToJSONTyped(value, ignoreDiscriminator = false) {
|
|
40
|
+
if (value == null) {
|
|
41
|
+
return value;
|
|
42
|
+
}
|
|
43
|
+
return {
|
|
44
|
+
'key': value['key'],
|
|
45
|
+
'value': value['value'],
|
|
46
|
+
};
|
|
47
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
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
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface MigrationIssue
|
|
16
|
+
*/
|
|
17
|
+
export interface MigrationIssue {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof MigrationIssue
|
|
22
|
+
*/
|
|
23
|
+
id?: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof MigrationIssue
|
|
28
|
+
*/
|
|
29
|
+
label: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof MigrationIssue
|
|
34
|
+
*/
|
|
35
|
+
assessment: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof MigrationIssue
|
|
40
|
+
*/
|
|
41
|
+
count: number;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Check if a given object implements the MigrationIssue interface.
|
|
45
|
+
*/
|
|
46
|
+
export declare function instanceOfMigrationIssue(value: object): value is MigrationIssue;
|
|
47
|
+
export declare function MigrationIssueFromJSON(json: any): MigrationIssue;
|
|
48
|
+
export declare function MigrationIssueFromJSONTyped(json: any, ignoreDiscriminator: boolean): MigrationIssue;
|
|
49
|
+
export declare function MigrationIssueToJSON(json: any): MigrationIssue;
|
|
50
|
+
export declare function MigrationIssueToJSONTyped(value?: MigrationIssue | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Migration Planner API
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: undefined
|
|
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
|
+
* Check if a given object implements the MigrationIssue interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfMigrationIssue(value) {
|
|
18
|
+
if (!('label' in value) || value['label'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
if (!('assessment' in value) || value['assessment'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
if (!('count' in value) || value['count'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
return true;
|
|
25
|
+
}
|
|
26
|
+
export function MigrationIssueFromJSON(json) {
|
|
27
|
+
return MigrationIssueFromJSONTyped(json, false);
|
|
28
|
+
}
|
|
29
|
+
export function MigrationIssueFromJSONTyped(json, ignoreDiscriminator) {
|
|
30
|
+
if (json == null) {
|
|
31
|
+
return json;
|
|
32
|
+
}
|
|
33
|
+
return {
|
|
34
|
+
'id': json['id'] == null ? undefined : json['id'],
|
|
35
|
+
'label': json['label'],
|
|
36
|
+
'assessment': json['assessment'],
|
|
37
|
+
'count': json['count'],
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
export function MigrationIssueToJSON(json) {
|
|
41
|
+
return MigrationIssueToJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
export function MigrationIssueToJSONTyped(value, ignoreDiscriminator = false) {
|
|
44
|
+
if (value == null) {
|
|
45
|
+
return value;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'id': value['id'],
|
|
49
|
+
'label': value['label'],
|
|
50
|
+
'assessment': value['assessment'],
|
|
51
|
+
'count': value['count'],
|
|
52
|
+
};
|
|
53
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
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
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface ModelError
|
|
16
|
+
*/
|
|
17
|
+
export interface ModelError {
|
|
18
|
+
/**
|
|
19
|
+
* Error message
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof ModelError
|
|
22
|
+
*/
|
|
23
|
+
message: string;
|
|
24
|
+
/**
|
|
25
|
+
* Id of the request generating the error
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof ModelError
|
|
28
|
+
*/
|
|
29
|
+
requestId?: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the ModelError interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfModelError(value: object): value is ModelError;
|
|
35
|
+
export declare function ModelErrorFromJSON(json: any): ModelError;
|
|
36
|
+
export declare function ModelErrorFromJSONTyped(json: any, ignoreDiscriminator: boolean): ModelError;
|
|
37
|
+
export declare function ModelErrorToJSON(json: any): ModelError;
|
|
38
|
+
export declare function ModelErrorToJSONTyped(value?: ModelError | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Migration Planner API
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: undefined
|
|
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
|
+
* Check if a given object implements the ModelError interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfModelError(value) {
|
|
18
|
+
if (!('message' in value) || value['message'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
return true;
|
|
21
|
+
}
|
|
22
|
+
export function ModelErrorFromJSON(json) {
|
|
23
|
+
return ModelErrorFromJSONTyped(json, false);
|
|
24
|
+
}
|
|
25
|
+
export function ModelErrorFromJSONTyped(json, ignoreDiscriminator) {
|
|
26
|
+
if (json == null) {
|
|
27
|
+
return json;
|
|
28
|
+
}
|
|
29
|
+
return {
|
|
30
|
+
'message': json['message'],
|
|
31
|
+
'requestId': json['requestId'] == null ? undefined : json['requestId'],
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
export function ModelErrorToJSON(json) {
|
|
35
|
+
return ModelErrorToJSONTyped(json, false);
|
|
36
|
+
}
|
|
37
|
+
export function ModelErrorToJSONTyped(value, ignoreDiscriminator = false) {
|
|
38
|
+
if (value == null) {
|
|
39
|
+
return value;
|
|
40
|
+
}
|
|
41
|
+
return {
|
|
42
|
+
'message': value['message'],
|
|
43
|
+
'requestId': value['requestId'],
|
|
44
|
+
};
|
|
45
|
+
}
|
|
@@ -0,0 +1,66 @@
|
|
|
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
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface Network
|
|
16
|
+
*/
|
|
17
|
+
export interface Network {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {NetworkTypeEnum}
|
|
21
|
+
* @memberof Network
|
|
22
|
+
*/
|
|
23
|
+
type: NetworkTypeEnum;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof Network
|
|
28
|
+
*/
|
|
29
|
+
name: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof Network
|
|
34
|
+
*/
|
|
35
|
+
vlanId?: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof Network
|
|
40
|
+
*/
|
|
41
|
+
dvswitch?: string;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {number}
|
|
45
|
+
* @memberof Network
|
|
46
|
+
*/
|
|
47
|
+
vmsCount?: number;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* @export
|
|
51
|
+
*/
|
|
52
|
+
export declare const NetworkTypeEnum: {
|
|
53
|
+
readonly Standard: "standard";
|
|
54
|
+
readonly Distributed: "distributed";
|
|
55
|
+
readonly Dvswitch: "dvswitch";
|
|
56
|
+
readonly Unsupported: "unsupported";
|
|
57
|
+
};
|
|
58
|
+
export type NetworkTypeEnum = typeof NetworkTypeEnum[keyof typeof NetworkTypeEnum];
|
|
59
|
+
/**
|
|
60
|
+
* Check if a given object implements the Network interface.
|
|
61
|
+
*/
|
|
62
|
+
export declare function instanceOfNetwork(value: object): value is Network;
|
|
63
|
+
export declare function NetworkFromJSON(json: any): Network;
|
|
64
|
+
export declare function NetworkFromJSONTyped(json: any, ignoreDiscriminator: boolean): Network;
|
|
65
|
+
export declare function NetworkToJSON(json: any): Network;
|
|
66
|
+
export declare function NetworkToJSONTyped(value?: Network | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Migration Planner API
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: undefined
|
|
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
|
+
* @export
|
|
16
|
+
*/
|
|
17
|
+
export const NetworkTypeEnum = {
|
|
18
|
+
Standard: 'standard',
|
|
19
|
+
Distributed: 'distributed',
|
|
20
|
+
Dvswitch: 'dvswitch',
|
|
21
|
+
Unsupported: 'unsupported'
|
|
22
|
+
};
|
|
23
|
+
/**
|
|
24
|
+
* Check if a given object implements the Network interface.
|
|
25
|
+
*/
|
|
26
|
+
export function instanceOfNetwork(value) {
|
|
27
|
+
if (!('type' in value) || value['type'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
return true;
|
|
32
|
+
}
|
|
33
|
+
export function NetworkFromJSON(json) {
|
|
34
|
+
return NetworkFromJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
export function NetworkFromJSONTyped(json, ignoreDiscriminator) {
|
|
37
|
+
if (json == null) {
|
|
38
|
+
return json;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'type': json['type'],
|
|
42
|
+
'name': json['name'],
|
|
43
|
+
'vlanId': json['vlanId'] == null ? undefined : json['vlanId'],
|
|
44
|
+
'dvswitch': json['dvswitch'] == null ? undefined : json['dvswitch'],
|
|
45
|
+
'vmsCount': json['vmsCount'] == null ? undefined : json['vmsCount'],
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
export function NetworkToJSON(json) {
|
|
49
|
+
return NetworkToJSONTyped(json, false);
|
|
50
|
+
}
|
|
51
|
+
export function NetworkToJSONTyped(value, ignoreDiscriminator = false) {
|
|
52
|
+
if (value == null) {
|
|
53
|
+
return value;
|
|
54
|
+
}
|
|
55
|
+
return {
|
|
56
|
+
'type': value['type'],
|
|
57
|
+
'name': value['name'],
|
|
58
|
+
'vlanId': value['vlanId'],
|
|
59
|
+
'dvswitch': value['dvswitch'],
|
|
60
|
+
'vmsCount': value['vmsCount'],
|
|
61
|
+
};
|
|
62
|
+
}
|
|
@@ -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
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface OsInfo
|
|
16
|
+
*/
|
|
17
|
+
export interface OsInfo {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof OsInfo
|
|
22
|
+
*/
|
|
23
|
+
count: number;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {boolean}
|
|
27
|
+
* @memberof OsInfo
|
|
28
|
+
*/
|
|
29
|
+
supported: boolean;
|
|
30
|
+
/**
|
|
31
|
+
* Recommended OS upgrade for MTV unsupported OS that can be upgraded to a supported OS
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof OsInfo
|
|
34
|
+
*/
|
|
35
|
+
upgradeRecommendation?: string;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the OsInfo interface.
|
|
39
|
+
*/
|
|
40
|
+
export declare function instanceOfOsInfo(value: object): value is OsInfo;
|
|
41
|
+
export declare function OsInfoFromJSON(json: any): OsInfo;
|
|
42
|
+
export declare function OsInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): OsInfo;
|
|
43
|
+
export declare function OsInfoToJSON(json: any): OsInfo;
|
|
44
|
+
export declare function OsInfoToJSONTyped(value?: OsInfo | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Migration Planner API
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: undefined
|
|
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
|
+
* Check if a given object implements the OsInfo interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfOsInfo(value) {
|
|
18
|
+
if (!('count' in value) || value['count'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
if (!('supported' in value) || value['supported'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
return true;
|
|
23
|
+
}
|
|
24
|
+
export function OsInfoFromJSON(json) {
|
|
25
|
+
return OsInfoFromJSONTyped(json, false);
|
|
26
|
+
}
|
|
27
|
+
export function OsInfoFromJSONTyped(json, ignoreDiscriminator) {
|
|
28
|
+
if (json == null) {
|
|
29
|
+
return json;
|
|
30
|
+
}
|
|
31
|
+
return {
|
|
32
|
+
'count': json['count'],
|
|
33
|
+
'supported': json['supported'],
|
|
34
|
+
'upgradeRecommendation': json['upgradeRecommendation'] == null ? undefined : json['upgradeRecommendation'],
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
export function OsInfoToJSON(json) {
|
|
38
|
+
return OsInfoToJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
export function OsInfoToJSONTyped(value, ignoreDiscriminator = false) {
|
|
41
|
+
if (value == null) {
|
|
42
|
+
return value;
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
'count': value['count'],
|
|
46
|
+
'supported': value['supported'],
|
|
47
|
+
'upgradeRecommendation': value['upgradeRecommendation'],
|
|
48
|
+
};
|
|
49
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
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
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface PresignedUrl
|
|
16
|
+
*/
|
|
17
|
+
export interface PresignedUrl {
|
|
18
|
+
/**
|
|
19
|
+
* Pre-signed URL for downloading the source discovery image.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof PresignedUrl
|
|
22
|
+
*/
|
|
23
|
+
url: string;
|
|
24
|
+
/**
|
|
25
|
+
* Expiration time for the URL token.
|
|
26
|
+
* @type {Date}
|
|
27
|
+
* @memberof PresignedUrl
|
|
28
|
+
*/
|
|
29
|
+
expiresAt?: Date;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the PresignedUrl interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfPresignedUrl(value: object): value is PresignedUrl;
|
|
35
|
+
export declare function PresignedUrlFromJSON(json: any): PresignedUrl;
|
|
36
|
+
export declare function PresignedUrlFromJSONTyped(json: any, ignoreDiscriminator: boolean): PresignedUrl;
|
|
37
|
+
export declare function PresignedUrlToJSON(json: any): PresignedUrl;
|
|
38
|
+
export declare function PresignedUrlToJSONTyped(value?: PresignedUrl | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Migration Planner API
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: undefined
|
|
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
|
+
* Check if a given object implements the PresignedUrl interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfPresignedUrl(value) {
|
|
18
|
+
if (!('url' in value) || value['url'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
return true;
|
|
21
|
+
}
|
|
22
|
+
export function PresignedUrlFromJSON(json) {
|
|
23
|
+
return PresignedUrlFromJSONTyped(json, false);
|
|
24
|
+
}
|
|
25
|
+
export function PresignedUrlFromJSONTyped(json, ignoreDiscriminator) {
|
|
26
|
+
if (json == null) {
|
|
27
|
+
return json;
|
|
28
|
+
}
|
|
29
|
+
return {
|
|
30
|
+
'url': json['url'],
|
|
31
|
+
'expiresAt': json['expires_at'] == null ? undefined : (new Date(json['expires_at'])),
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
export function PresignedUrlToJSON(json) {
|
|
35
|
+
return PresignedUrlToJSONTyped(json, false);
|
|
36
|
+
}
|
|
37
|
+
export function PresignedUrlToJSONTyped(value, ignoreDiscriminator = false) {
|
|
38
|
+
if (value == null) {
|
|
39
|
+
return value;
|
|
40
|
+
}
|
|
41
|
+
return {
|
|
42
|
+
'url': value['url'],
|
|
43
|
+
'expires_at': value['expiresAt'] == null ? value['expiresAt'] : value['expiresAt'].toISOString(),
|
|
44
|
+
};
|
|
45
|
+
}
|