@migration-planner-ui/api-client 0.0.1
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 +27 -0
- package/.openapi-generator/VERSION +1 -0
- package/.openapi-generator-ignore +30 -0
- package/README.md +46 -0
- package/dist/apis/AgentApi.d.ts +69 -0
- package/dist/apis/AgentApi.js +82 -0
- package/dist/apis/HealthApi.d.ts +44 -0
- package/dist/apis/HealthApi.js +52 -0
- package/dist/apis/ImageApi.d.ts +95 -0
- package/dist/apis/ImageApi.js +112 -0
- package/dist/apis/SourceApi.d.ts +162 -0
- package/dist/apis/SourceApi.js +201 -0
- package/dist/apis/UiEventsApi.d.ts +49 -0
- package/dist/apis/UiEventsApi.js +59 -0
- package/dist/apis/index.d.ts +4 -0
- package/dist/apis/index.js +6 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +5 -0
- package/dist/models/Agent.d.ts +79 -0
- package/dist/models/Agent.js +75 -0
- package/dist/models/AgentProxy.d.ts +43 -0
- package/dist/models/AgentProxy.js +42 -0
- package/dist/models/Event.d.ts +38 -0
- package/dist/models/Event.js +45 -0
- package/dist/models/EventData.d.ts +37 -0
- package/dist/models/EventData.js +44 -0
- package/dist/models/Infra.d.ts +65 -0
- package/dist/models/Infra.js +62 -0
- package/dist/models/InfraDatastoresInner.d.ts +43 -0
- package/dist/models/InfraDatastoresInner.js +48 -0
- package/dist/models/InfraNetworksInner.d.ts +59 -0
- package/dist/models/InfraNetworksInner.js +57 -0
- package/dist/models/Inventory.d.ts +46 -0
- package/dist/models/Inventory.js +48 -0
- package/dist/models/MigrationIssuesInner.d.ts +43 -0
- package/dist/models/MigrationIssuesInner.js +48 -0
- package/dist/models/ModelError.d.ts +31 -0
- package/dist/models/ModelError.js +40 -0
- package/dist/models/PresignedUrl.d.ts +37 -0
- package/dist/models/PresignedUrl.js +42 -0
- package/dist/models/Source.d.ts +69 -0
- package/dist/models/Source.js +62 -0
- package/dist/models/SourceAgentItem.d.ts +37 -0
- package/dist/models/SourceAgentItem.js +44 -0
- package/dist/models/SourceCreate.d.ts +50 -0
- package/dist/models/SourceCreate.js +47 -0
- package/dist/models/SourceUpdateOnPrem.d.ts +38 -0
- package/dist/models/SourceUpdateOnPrem.js +45 -0
- package/dist/models/Status.d.ts +43 -0
- package/dist/models/Status.js +42 -0
- package/dist/models/VCenter.d.ts +31 -0
- package/dist/models/VCenter.js +40 -0
- package/dist/models/VMResourceBreakdown.d.ts +56 -0
- package/dist/models/VMResourceBreakdown.js +57 -0
- package/dist/models/VMResourceBreakdownHistogram.d.ts +43 -0
- package/dist/models/VMResourceBreakdownHistogram.js +48 -0
- package/dist/models/VMs.d.ts +97 -0
- package/dist/models/VMs.js +79 -0
- package/dist/models/index.d.ts +19 -0
- package/dist/models/index.js +21 -0
- package/dist/runtime.d.ts +181 -0
- package/dist/runtime.js +326 -0
- package/package.json +61 -0
- package/src/apis/AgentApi.ts +131 -0
- package/src/apis/HealthApi.ts +70 -0
- package/src/apis/ImageApi.ts +191 -0
- package/src/apis/SourceApi.ts +354 -0
- package/src/apis/UiEventsApi.ts +96 -0
- package/src/apis/index.ts +27 -0
- package/src/index.ts +5 -0
- package/src/models/Agent.ts +130 -0
- package/src/models/AgentProxy.ts +76 -0
- package/src/models/Event.ts +77 -0
- package/src/models/EventData.ts +70 -0
- package/src/models/Infra.ts +119 -0
- package/src/models/InfraDatastoresInner.ts +79 -0
- package/src/models/InfraNetworksInner.ts +99 -0
- package/src/models/Inventory.ts +98 -0
- package/src/models/MigrationIssuesInner.ts +79 -0
- package/src/models/ModelError.ts +61 -0
- package/src/models/PresignedUrl.ts +69 -0
- package/src/models/Source.ts +126 -0
- package/src/models/SourceAgentItem.ts +70 -0
- package/src/models/SourceCreate.ts +92 -0
- package/src/models/SourceUpdateOnPrem.ts +77 -0
- package/src/models/Status.ts +76 -0
- package/src/models/VCenter.ts +61 -0
- package/src/models/VMResourceBreakdown.ts +104 -0
- package/src/models/VMResourceBreakdownHistogram.ts +79 -0
- package/src/models/VMs.ts +163 -0
- package/src/models/index.ts +21 -0
- package/src/runtime.ts +426 -0
- package/tsconfig.json +14 -0
|
@@ -0,0 +1,96 @@
|
|
|
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
|
+
|
|
16
|
+
import * as runtime from '../runtime';
|
|
17
|
+
import type {
|
|
18
|
+
Event,
|
|
19
|
+
Source,
|
|
20
|
+
} from '../models/index';
|
|
21
|
+
import {
|
|
22
|
+
EventFromJSON,
|
|
23
|
+
EventToJSON,
|
|
24
|
+
SourceFromJSON,
|
|
25
|
+
SourceToJSON,
|
|
26
|
+
} from '../models/index';
|
|
27
|
+
|
|
28
|
+
export interface PushEventsRequest {
|
|
29
|
+
event: Event;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* UiEventsApi - interface
|
|
34
|
+
*
|
|
35
|
+
* @export
|
|
36
|
+
* @interface UiEventsApiInterface
|
|
37
|
+
*/
|
|
38
|
+
export interface UiEventsApiInterface {
|
|
39
|
+
/**
|
|
40
|
+
* Pass events from ui to kafka
|
|
41
|
+
* @param {Event} event
|
|
42
|
+
* @param {*} [options] Override http request option.
|
|
43
|
+
* @throws {RequiredError}
|
|
44
|
+
* @memberof UiEventsApiInterface
|
|
45
|
+
*/
|
|
46
|
+
pushEventsRaw(requestParameters: PushEventsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Source>>;
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Pass events from ui to kafka
|
|
50
|
+
*/
|
|
51
|
+
pushEvents(requestParameters: PushEventsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Source>;
|
|
52
|
+
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
*/
|
|
58
|
+
export class UiEventsApi extends runtime.BaseAPI implements UiEventsApiInterface {
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* Pass events from ui to kafka
|
|
62
|
+
*/
|
|
63
|
+
async pushEventsRaw(requestParameters: PushEventsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Source>> {
|
|
64
|
+
if (requestParameters['event'] == null) {
|
|
65
|
+
throw new runtime.RequiredError(
|
|
66
|
+
'event',
|
|
67
|
+
'Required parameter "event" was null or undefined when calling pushEvents().'
|
|
68
|
+
);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
const queryParameters: any = {};
|
|
72
|
+
|
|
73
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
74
|
+
|
|
75
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
76
|
+
|
|
77
|
+
const response = await this.request({
|
|
78
|
+
path: `/api/v1/events`,
|
|
79
|
+
method: 'POST',
|
|
80
|
+
headers: headerParameters,
|
|
81
|
+
query: queryParameters,
|
|
82
|
+
body: EventToJSON(requestParameters['event']),
|
|
83
|
+
}, initOverrides);
|
|
84
|
+
|
|
85
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => SourceFromJSON(jsonValue));
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
/**
|
|
89
|
+
* Pass events from ui to kafka
|
|
90
|
+
*/
|
|
91
|
+
async pushEvents(requestParameters: PushEventsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Source> {
|
|
92
|
+
const response = await this.pushEventsRaw(requestParameters, initOverrides);
|
|
93
|
+
return await response.value();
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
export {
|
|
4
|
+
type GetImageRequest,
|
|
5
|
+
type HeadImageRequest,
|
|
6
|
+
type ImageApiInterface,
|
|
7
|
+
ImageApi,
|
|
8
|
+
} from "./ImageApi";
|
|
9
|
+
|
|
10
|
+
export {
|
|
11
|
+
type CreateSourceRequest,
|
|
12
|
+
type DeleteSourceRequest,
|
|
13
|
+
type ListSourcesRequest,
|
|
14
|
+
type SourceApiInterface,
|
|
15
|
+
SourceApi,
|
|
16
|
+
} from "./SourceApi";
|
|
17
|
+
|
|
18
|
+
export {
|
|
19
|
+
type HealthApiInterface,
|
|
20
|
+
HealthApi
|
|
21
|
+
} from "./HealthApi";
|
|
22
|
+
|
|
23
|
+
export {
|
|
24
|
+
type AgentApiInterface,
|
|
25
|
+
type DeleteAgentRequest,
|
|
26
|
+
AgentApi
|
|
27
|
+
} from "./AgentApi";
|
package/src/index.ts
ADDED
|
@@ -0,0 +1,130 @@
|
|
|
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
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface Agent
|
|
20
|
+
*/
|
|
21
|
+
export interface Agent {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof Agent
|
|
26
|
+
*/
|
|
27
|
+
id: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof Agent
|
|
32
|
+
*/
|
|
33
|
+
status: AgentStatusEnum;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof Agent
|
|
38
|
+
*/
|
|
39
|
+
statusInfo: string;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof Agent
|
|
44
|
+
*/
|
|
45
|
+
credentialUrl: string;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {Date}
|
|
49
|
+
* @memberof Agent
|
|
50
|
+
*/
|
|
51
|
+
createdAt: Date;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {Date}
|
|
55
|
+
* @memberof Agent
|
|
56
|
+
*/
|
|
57
|
+
updatedAt: Date;
|
|
58
|
+
/**
|
|
59
|
+
*
|
|
60
|
+
* @type {string}
|
|
61
|
+
* @memberof Agent
|
|
62
|
+
*/
|
|
63
|
+
version: string;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* @export
|
|
69
|
+
*/
|
|
70
|
+
export const AgentStatusEnum = {
|
|
71
|
+
NotConnected: 'not-connected',
|
|
72
|
+
WaitingForCredentials: 'waiting-for-credentials',
|
|
73
|
+
Error: 'error',
|
|
74
|
+
GatheringInitialInventory: 'gathering-initial-inventory',
|
|
75
|
+
UpToDate: 'up-to-date',
|
|
76
|
+
SourceGone: 'source-gone'
|
|
77
|
+
} as const;
|
|
78
|
+
export type AgentStatusEnum = typeof AgentStatusEnum[keyof typeof AgentStatusEnum];
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
/**
|
|
82
|
+
* Check if a given object implements the Agent interface.
|
|
83
|
+
*/
|
|
84
|
+
export function instanceOfAgent(value: object): value is Agent {
|
|
85
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
86
|
+
if (!('status' in value) || value['status'] === undefined) return false;
|
|
87
|
+
if (!('statusInfo' in value) || value['statusInfo'] === undefined) return false;
|
|
88
|
+
if (!('credentialUrl' in value) || value['credentialUrl'] === undefined) return false;
|
|
89
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
|
|
90
|
+
if (!('updatedAt' in value) || value['updatedAt'] === undefined) return false;
|
|
91
|
+
if (!('version' in value) || value['version'] === undefined) return false;
|
|
92
|
+
return true;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
export function AgentFromJSON(json: any): Agent {
|
|
96
|
+
return AgentFromJSONTyped(json, false);
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
export function AgentFromJSONTyped(json: any, ignoreDiscriminator: boolean): Agent {
|
|
100
|
+
if (json == null) {
|
|
101
|
+
return json;
|
|
102
|
+
}
|
|
103
|
+
return {
|
|
104
|
+
|
|
105
|
+
'id': json['id'],
|
|
106
|
+
'status': json['status'],
|
|
107
|
+
'statusInfo': json['statusInfo'],
|
|
108
|
+
'credentialUrl': json['credentialUrl'],
|
|
109
|
+
'createdAt': (new Date(json['createdAt'])),
|
|
110
|
+
'updatedAt': (new Date(json['updatedAt'])),
|
|
111
|
+
'version': json['version'],
|
|
112
|
+
};
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
export function AgentToJSON(value?: Agent | null): any {
|
|
116
|
+
if (value == null) {
|
|
117
|
+
return value;
|
|
118
|
+
}
|
|
119
|
+
return {
|
|
120
|
+
|
|
121
|
+
'id': value['id'],
|
|
122
|
+
'status': value['status'],
|
|
123
|
+
'statusInfo': value['statusInfo'],
|
|
124
|
+
'credentialUrl': value['credentialUrl'],
|
|
125
|
+
'createdAt': ((value['createdAt']).toISOString()),
|
|
126
|
+
'updatedAt': ((value['updatedAt']).toISOString()),
|
|
127
|
+
'version': value['version'],
|
|
128
|
+
};
|
|
129
|
+
}
|
|
130
|
+
|
|
@@ -0,0 +1,76 @@
|
|
|
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
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface AgentProxy
|
|
20
|
+
*/
|
|
21
|
+
export interface AgentProxy {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof AgentProxy
|
|
26
|
+
*/
|
|
27
|
+
httpUrl?: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof AgentProxy
|
|
32
|
+
*/
|
|
33
|
+
httpsUrl?: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof AgentProxy
|
|
38
|
+
*/
|
|
39
|
+
noProxy?: string;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Check if a given object implements the AgentProxy interface.
|
|
44
|
+
*/
|
|
45
|
+
export function instanceOfAgentProxy(value: object): value is AgentProxy {
|
|
46
|
+
return true;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function AgentProxyFromJSON(json: any): AgentProxy {
|
|
50
|
+
return AgentProxyFromJSONTyped(json, false);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export function AgentProxyFromJSONTyped(json: any, ignoreDiscriminator: boolean): AgentProxy {
|
|
54
|
+
if (json == null) {
|
|
55
|
+
return json;
|
|
56
|
+
}
|
|
57
|
+
return {
|
|
58
|
+
|
|
59
|
+
'httpUrl': json['httpUrl'] == null ? undefined : json['httpUrl'],
|
|
60
|
+
'httpsUrl': json['httpsUrl'] == null ? undefined : json['httpsUrl'],
|
|
61
|
+
'noProxy': json['noProxy'] == null ? undefined : json['noProxy'],
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export function AgentProxyToJSON(value?: AgentProxy | null): any {
|
|
66
|
+
if (value == null) {
|
|
67
|
+
return value;
|
|
68
|
+
}
|
|
69
|
+
return {
|
|
70
|
+
|
|
71
|
+
'httpUrl': value['httpUrl'],
|
|
72
|
+
'httpsUrl': value['httpsUrl'],
|
|
73
|
+
'noProxy': value['noProxy'],
|
|
74
|
+
};
|
|
75
|
+
}
|
|
76
|
+
|
|
@@ -0,0 +1,77 @@
|
|
|
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
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { EventData } from './EventData';
|
|
17
|
+
import {
|
|
18
|
+
EventDataFromJSON,
|
|
19
|
+
EventDataFromJSONTyped,
|
|
20
|
+
EventDataToJSON,
|
|
21
|
+
} from './EventData';
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @export
|
|
26
|
+
* @interface Event
|
|
27
|
+
*/
|
|
28
|
+
export interface Event {
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @type {Date}
|
|
32
|
+
* @memberof Event
|
|
33
|
+
*/
|
|
34
|
+
createdAt: Date;
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @type {Array<EventData>}
|
|
38
|
+
* @memberof Event
|
|
39
|
+
*/
|
|
40
|
+
data: Array<EventData>;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* Check if a given object implements the Event interface.
|
|
45
|
+
*/
|
|
46
|
+
export function instanceOfEvent(value: object): value is Event {
|
|
47
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
|
|
48
|
+
if (!('data' in value) || value['data'] === undefined) return false;
|
|
49
|
+
return true;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function EventFromJSON(json: any): Event {
|
|
53
|
+
return EventFromJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function EventFromJSONTyped(json: any, ignoreDiscriminator: boolean): Event {
|
|
57
|
+
if (json == null) {
|
|
58
|
+
return json;
|
|
59
|
+
}
|
|
60
|
+
return {
|
|
61
|
+
|
|
62
|
+
'createdAt': (new Date(json['createdAt'])),
|
|
63
|
+
'data': ((json['data'] as Array<any>).map(EventDataFromJSON)),
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export function EventToJSON(value?: Event | null): any {
|
|
68
|
+
if (value == null) {
|
|
69
|
+
return value;
|
|
70
|
+
}
|
|
71
|
+
return {
|
|
72
|
+
|
|
73
|
+
'createdAt': ((value['createdAt']).toISOString()),
|
|
74
|
+
'data': ((value['data'] as Array<any>).map(EventDataToJSON)),
|
|
75
|
+
};
|
|
76
|
+
}
|
|
77
|
+
|
|
@@ -0,0 +1,70 @@
|
|
|
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
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface EventData
|
|
20
|
+
*/
|
|
21
|
+
export interface EventData {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof EventData
|
|
26
|
+
*/
|
|
27
|
+
key: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof EventData
|
|
32
|
+
*/
|
|
33
|
+
value: string;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the EventData interface.
|
|
38
|
+
*/
|
|
39
|
+
export function instanceOfEventData(value: object): value is EventData {
|
|
40
|
+
if (!('key' in value) || value['key'] === undefined) return false;
|
|
41
|
+
if (!('value' in value) || value['value'] === undefined) return false;
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function EventDataFromJSON(json: any): EventData {
|
|
46
|
+
return EventDataFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function EventDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): EventData {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'key': json['key'],
|
|
56
|
+
'value': json['value'],
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function EventDataToJSON(value?: EventData | null): any {
|
|
61
|
+
if (value == null) {
|
|
62
|
+
return value;
|
|
63
|
+
}
|
|
64
|
+
return {
|
|
65
|
+
|
|
66
|
+
'key': value['key'],
|
|
67
|
+
'value': value['value'],
|
|
68
|
+
};
|
|
69
|
+
}
|
|
70
|
+
|
|
@@ -0,0 +1,119 @@
|
|
|
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
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { InfraNetworksInner } from './InfraNetworksInner';
|
|
17
|
+
import {
|
|
18
|
+
InfraNetworksInnerFromJSON,
|
|
19
|
+
InfraNetworksInnerFromJSONTyped,
|
|
20
|
+
InfraNetworksInnerToJSON,
|
|
21
|
+
} from './InfraNetworksInner';
|
|
22
|
+
import type { InfraDatastoresInner } from './InfraDatastoresInner';
|
|
23
|
+
import {
|
|
24
|
+
InfraDatastoresInnerFromJSON,
|
|
25
|
+
InfraDatastoresInnerFromJSONTyped,
|
|
26
|
+
InfraDatastoresInnerToJSON,
|
|
27
|
+
} from './InfraDatastoresInner';
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @export
|
|
32
|
+
* @interface Infra
|
|
33
|
+
*/
|
|
34
|
+
export interface Infra {
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @type {number}
|
|
38
|
+
* @memberof Infra
|
|
39
|
+
*/
|
|
40
|
+
totalHosts: number;
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* @type {number}
|
|
44
|
+
* @memberof Infra
|
|
45
|
+
*/
|
|
46
|
+
totalClusters: number;
|
|
47
|
+
/**
|
|
48
|
+
*
|
|
49
|
+
* @type {Array<number>}
|
|
50
|
+
* @memberof Infra
|
|
51
|
+
*/
|
|
52
|
+
hostsPerCluster: Array<number>;
|
|
53
|
+
/**
|
|
54
|
+
*
|
|
55
|
+
* @type {{ [key: string]: number; }}
|
|
56
|
+
* @memberof Infra
|
|
57
|
+
*/
|
|
58
|
+
hostPowerStates: { [key: string]: number; };
|
|
59
|
+
/**
|
|
60
|
+
*
|
|
61
|
+
* @type {Array<InfraNetworksInner>}
|
|
62
|
+
* @memberof Infra
|
|
63
|
+
*/
|
|
64
|
+
networks: Array<InfraNetworksInner>;
|
|
65
|
+
/**
|
|
66
|
+
*
|
|
67
|
+
* @type {Array<InfraDatastoresInner>}
|
|
68
|
+
* @memberof Infra
|
|
69
|
+
*/
|
|
70
|
+
datastores: Array<InfraDatastoresInner>;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* Check if a given object implements the Infra interface.
|
|
75
|
+
*/
|
|
76
|
+
export function instanceOfInfra(value: object): value is Infra {
|
|
77
|
+
if (!('totalHosts' in value) || value['totalHosts'] === undefined) return false;
|
|
78
|
+
if (!('totalClusters' in value) || value['totalClusters'] === undefined) return false;
|
|
79
|
+
if (!('hostsPerCluster' in value) || value['hostsPerCluster'] === undefined) return false;
|
|
80
|
+
if (!('hostPowerStates' in value) || value['hostPowerStates'] === undefined) return false;
|
|
81
|
+
if (!('networks' in value) || value['networks'] === undefined) return false;
|
|
82
|
+
if (!('datastores' in value) || value['datastores'] === undefined) return false;
|
|
83
|
+
return true;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
export function InfraFromJSON(json: any): Infra {
|
|
87
|
+
return InfraFromJSONTyped(json, false);
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
export function InfraFromJSONTyped(json: any, ignoreDiscriminator: boolean): Infra {
|
|
91
|
+
if (json == null) {
|
|
92
|
+
return json;
|
|
93
|
+
}
|
|
94
|
+
return {
|
|
95
|
+
|
|
96
|
+
'totalHosts': json['totalHosts'],
|
|
97
|
+
'totalClusters': json['totalClusters'],
|
|
98
|
+
'hostsPerCluster': json['hostsPerCluster'],
|
|
99
|
+
'hostPowerStates': json['hostPowerStates'],
|
|
100
|
+
'networks': ((json['networks'] as Array<any>).map(InfraNetworksInnerFromJSON)),
|
|
101
|
+
'datastores': ((json['datastores'] as Array<any>).map(InfraDatastoresInnerFromJSON)),
|
|
102
|
+
};
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
export function InfraToJSON(value?: Infra | null): any {
|
|
106
|
+
if (value == null) {
|
|
107
|
+
return value;
|
|
108
|
+
}
|
|
109
|
+
return {
|
|
110
|
+
|
|
111
|
+
'totalHosts': value['totalHosts'],
|
|
112
|
+
'totalClusters': value['totalClusters'],
|
|
113
|
+
'hostsPerCluster': value['hostsPerCluster'],
|
|
114
|
+
'hostPowerStates': value['hostPowerStates'],
|
|
115
|
+
'networks': ((value['networks'] as Array<any>).map(InfraNetworksInnerToJSON)),
|
|
116
|
+
'datastores': ((value['datastores'] as Array<any>).map(InfraDatastoresInnerToJSON)),
|
|
117
|
+
};
|
|
118
|
+
}
|
|
119
|
+
|
|
@@ -0,0 +1,79 @@
|
|
|
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
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface InfraDatastoresInner
|
|
20
|
+
*/
|
|
21
|
+
export interface InfraDatastoresInner {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof InfraDatastoresInner
|
|
26
|
+
*/
|
|
27
|
+
type: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {number}
|
|
31
|
+
* @memberof InfraDatastoresInner
|
|
32
|
+
*/
|
|
33
|
+
totalCapacityGB: number;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {number}
|
|
37
|
+
* @memberof InfraDatastoresInner
|
|
38
|
+
*/
|
|
39
|
+
freeCapacityGB: number;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Check if a given object implements the InfraDatastoresInner interface.
|
|
44
|
+
*/
|
|
45
|
+
export function instanceOfInfraDatastoresInner(value: object): value is InfraDatastoresInner {
|
|
46
|
+
if (!('type' in value) || value['type'] === undefined) return false;
|
|
47
|
+
if (!('totalCapacityGB' in value) || value['totalCapacityGB'] === undefined) return false;
|
|
48
|
+
if (!('freeCapacityGB' in value) || value['freeCapacityGB'] === undefined) return false;
|
|
49
|
+
return true;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function InfraDatastoresInnerFromJSON(json: any): InfraDatastoresInner {
|
|
53
|
+
return InfraDatastoresInnerFromJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function InfraDatastoresInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): InfraDatastoresInner {
|
|
57
|
+
if (json == null) {
|
|
58
|
+
return json;
|
|
59
|
+
}
|
|
60
|
+
return {
|
|
61
|
+
|
|
62
|
+
'type': json['type'],
|
|
63
|
+
'totalCapacityGB': json['totalCapacityGB'],
|
|
64
|
+
'freeCapacityGB': json['freeCapacityGB'],
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export function InfraDatastoresInnerToJSON(value?: InfraDatastoresInner | null): any {
|
|
69
|
+
if (value == null) {
|
|
70
|
+
return value;
|
|
71
|
+
}
|
|
72
|
+
return {
|
|
73
|
+
|
|
74
|
+
'type': value['type'],
|
|
75
|
+
'totalCapacityGB': value['totalCapacityGB'],
|
|
76
|
+
'freeCapacityGB': value['freeCapacityGB'],
|
|
77
|
+
};
|
|
78
|
+
}
|
|
79
|
+
|