@migration-planner-ui/api-client 0.0.10 → 0.0.12
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 +2 -1
- package/dist/apis/SourceApi.d.ts +32 -7
- package/dist/apis/SourceApi.js +39 -6
- package/dist/models/Infra.d.ts +3 -3
- package/dist/models/Infra.js +4 -10
- package/dist/models/SourceCreate.d.ts +7 -0
- package/dist/models/SourceCreate.js +3 -0
- package/dist/models/SourceUpdate.d.ts +57 -0
- package/dist/models/SourceUpdate.js +48 -0
- package/dist/models/UpdateInventory.d.ts +38 -0
- package/dist/models/UpdateInventory.js +45 -0
- package/dist/models/VMs.d.ts +6 -0
- package/dist/models/VMs.js +2 -0
- package/dist/models/index.d.ts +2 -4
- package/dist/models/index.js +2 -4
- package/package.json +1 -1
- package/src/apis/SourceApi.ts +79 -13
- package/src/models/Infra.ts +7 -10
- package/src/models/SourceCreate.ts +14 -0
- package/src/models/SourceUpdate.ts +105 -0
- package/src/models/UpdateInventory.ts +77 -0
- package/src/models/VMs.ts +8 -0
- package/src/models/index.ts +2 -4
package/.openapi-generator/FILES
CHANGED
|
@@ -18,8 +18,9 @@ src/models/OsInfo.ts
|
|
|
18
18
|
src/models/PresignedUrl.ts
|
|
19
19
|
src/models/Source.ts
|
|
20
20
|
src/models/SourceCreate.ts
|
|
21
|
-
src/models/
|
|
21
|
+
src/models/SourceUpdate.ts
|
|
22
22
|
src/models/Status.ts
|
|
23
|
+
src/models/UpdateInventory.ts
|
|
23
24
|
src/models/UploadRvtoolsFile200Response.ts
|
|
24
25
|
src/models/VCenter.ts
|
|
25
26
|
src/models/VMResourceBreakdown.ts
|
package/dist/apis/SourceApi.d.ts
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { Source, SourceCreate,
|
|
13
|
+
import type { Source, SourceCreate, SourceUpdate, Status, UpdateInventory, UploadRvtoolsFile200Response } from '../models/index';
|
|
14
14
|
export interface CreateSourceRequest {
|
|
15
15
|
sourceCreate: SourceCreate;
|
|
16
16
|
}
|
|
@@ -23,9 +23,13 @@ export interface GetSourceRequest {
|
|
|
23
23
|
export interface ListSourcesRequest {
|
|
24
24
|
includeDefault?: boolean;
|
|
25
25
|
}
|
|
26
|
+
export interface UpdateInventoryRequest {
|
|
27
|
+
id: string;
|
|
28
|
+
updateInventory: UpdateInventory;
|
|
29
|
+
}
|
|
26
30
|
export interface UpdateSourceRequest {
|
|
27
31
|
id: string;
|
|
28
|
-
|
|
32
|
+
sourceUpdate: SourceUpdate;
|
|
29
33
|
}
|
|
30
34
|
export interface UploadRvtoolsFileRequest {
|
|
31
35
|
id: string;
|
|
@@ -98,16 +102,29 @@ export interface SourceApiInterface {
|
|
|
98
102
|
*/
|
|
99
103
|
listSources(requestParameters: ListSourcesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<Source>>;
|
|
100
104
|
/**
|
|
101
|
-
* Update
|
|
105
|
+
* Update inventory
|
|
106
|
+
* @param {string} id ID of the source
|
|
107
|
+
* @param {UpdateInventory} updateInventory
|
|
108
|
+
* @param {*} [options] Override http request option.
|
|
109
|
+
* @throws {RequiredError}
|
|
110
|
+
* @memberof SourceApiInterface
|
|
111
|
+
*/
|
|
112
|
+
updateInventoryRaw(requestParameters: UpdateInventoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Source>>;
|
|
113
|
+
/**
|
|
114
|
+
* Update inventory
|
|
115
|
+
*/
|
|
116
|
+
updateInventory(requestParameters: UpdateInventoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Source>;
|
|
117
|
+
/**
|
|
118
|
+
* Update source
|
|
102
119
|
* @param {string} id ID of the source
|
|
103
|
-
* @param {
|
|
120
|
+
* @param {SourceUpdate} sourceUpdate
|
|
104
121
|
* @param {*} [options] Override http request option.
|
|
105
122
|
* @throws {RequiredError}
|
|
106
123
|
* @memberof SourceApiInterface
|
|
107
124
|
*/
|
|
108
125
|
updateSourceRaw(requestParameters: UpdateSourceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Source>>;
|
|
109
126
|
/**
|
|
110
|
-
* Update
|
|
127
|
+
* Update source
|
|
111
128
|
*/
|
|
112
129
|
updateSource(requestParameters: UpdateSourceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Source>;
|
|
113
130
|
/**
|
|
@@ -169,11 +186,19 @@ export declare class SourceApi extends runtime.BaseAPI implements SourceApiInter
|
|
|
169
186
|
*/
|
|
170
187
|
listSources(requestParameters?: ListSourcesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<Source>>;
|
|
171
188
|
/**
|
|
172
|
-
* Update
|
|
189
|
+
* Update inventory
|
|
190
|
+
*/
|
|
191
|
+
updateInventoryRaw(requestParameters: UpdateInventoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Source>>;
|
|
192
|
+
/**
|
|
193
|
+
* Update inventory
|
|
194
|
+
*/
|
|
195
|
+
updateInventory(requestParameters: UpdateInventoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Source>;
|
|
196
|
+
/**
|
|
197
|
+
* Update source
|
|
173
198
|
*/
|
|
174
199
|
updateSourceRaw(requestParameters: UpdateSourceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Source>>;
|
|
175
200
|
/**
|
|
176
|
-
* Update
|
|
201
|
+
* Update source
|
|
177
202
|
*/
|
|
178
203
|
updateSource(requestParameters: UpdateSourceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Source>;
|
|
179
204
|
/**
|
package/dist/apis/SourceApi.js
CHANGED
|
@@ -21,7 +21,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
21
21
|
});
|
|
22
22
|
};
|
|
23
23
|
import * as runtime from '../runtime';
|
|
24
|
-
import { SourceFromJSON, SourceCreateToJSON,
|
|
24
|
+
import { SourceFromJSON, SourceCreateToJSON, SourceUpdateToJSON, StatusFromJSON, UpdateInventoryToJSON, UploadRvtoolsFile200ResponseFromJSON, } from '../models/index';
|
|
25
25
|
/**
|
|
26
26
|
*
|
|
27
27
|
*/
|
|
@@ -166,15 +166,48 @@ export class SourceApi extends runtime.BaseAPI {
|
|
|
166
166
|
});
|
|
167
167
|
}
|
|
168
168
|
/**
|
|
169
|
-
* Update
|
|
169
|
+
* Update inventory
|
|
170
|
+
*/
|
|
171
|
+
updateInventoryRaw(requestParameters, initOverrides) {
|
|
172
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
173
|
+
if (requestParameters['id'] == null) {
|
|
174
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling updateInventory().');
|
|
175
|
+
}
|
|
176
|
+
if (requestParameters['updateInventory'] == null) {
|
|
177
|
+
throw new runtime.RequiredError('updateInventory', 'Required parameter "updateInventory" was null or undefined when calling updateInventory().');
|
|
178
|
+
}
|
|
179
|
+
const queryParameters = {};
|
|
180
|
+
const headerParameters = {};
|
|
181
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
182
|
+
const response = yield this.request({
|
|
183
|
+
path: `/api/v1/sources/{id}/inventory`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
184
|
+
method: 'PUT',
|
|
185
|
+
headers: headerParameters,
|
|
186
|
+
query: queryParameters,
|
|
187
|
+
body: UpdateInventoryToJSON(requestParameters['updateInventory']),
|
|
188
|
+
}, initOverrides);
|
|
189
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => SourceFromJSON(jsonValue));
|
|
190
|
+
});
|
|
191
|
+
}
|
|
192
|
+
/**
|
|
193
|
+
* Update inventory
|
|
194
|
+
*/
|
|
195
|
+
updateInventory(requestParameters, initOverrides) {
|
|
196
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
197
|
+
const response = yield this.updateInventoryRaw(requestParameters, initOverrides);
|
|
198
|
+
return yield response.value();
|
|
199
|
+
});
|
|
200
|
+
}
|
|
201
|
+
/**
|
|
202
|
+
* Update source
|
|
170
203
|
*/
|
|
171
204
|
updateSourceRaw(requestParameters, initOverrides) {
|
|
172
205
|
return __awaiter(this, void 0, void 0, function* () {
|
|
173
206
|
if (requestParameters['id'] == null) {
|
|
174
207
|
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling updateSource().');
|
|
175
208
|
}
|
|
176
|
-
if (requestParameters['
|
|
177
|
-
throw new runtime.RequiredError('
|
|
209
|
+
if (requestParameters['sourceUpdate'] == null) {
|
|
210
|
+
throw new runtime.RequiredError('sourceUpdate', 'Required parameter "sourceUpdate" was null or undefined when calling updateSource().');
|
|
178
211
|
}
|
|
179
212
|
const queryParameters = {};
|
|
180
213
|
const headerParameters = {};
|
|
@@ -184,13 +217,13 @@ export class SourceApi extends runtime.BaseAPI {
|
|
|
184
217
|
method: 'PUT',
|
|
185
218
|
headers: headerParameters,
|
|
186
219
|
query: queryParameters,
|
|
187
|
-
body:
|
|
220
|
+
body: SourceUpdateToJSON(requestParameters['sourceUpdate']),
|
|
188
221
|
}, initOverrides);
|
|
189
222
|
return new runtime.JSONApiResponse(response, (jsonValue) => SourceFromJSON(jsonValue));
|
|
190
223
|
});
|
|
191
224
|
}
|
|
192
225
|
/**
|
|
193
|
-
* Update
|
|
226
|
+
* Update source
|
|
194
227
|
*/
|
|
195
228
|
updateSource(requestParameters, initOverrides) {
|
|
196
229
|
return __awaiter(this, void 0, void 0, function* () {
|
package/dist/models/Infra.d.ts
CHANGED
|
@@ -29,7 +29,7 @@ export interface Infra {
|
|
|
29
29
|
* @type {number}
|
|
30
30
|
* @memberof Infra
|
|
31
31
|
*/
|
|
32
|
-
totalDatacenters
|
|
32
|
+
totalDatacenters?: number;
|
|
33
33
|
/**
|
|
34
34
|
*
|
|
35
35
|
* @type {number}
|
|
@@ -41,13 +41,13 @@ export interface Infra {
|
|
|
41
41
|
* @type {Array<number>}
|
|
42
42
|
* @memberof Infra
|
|
43
43
|
*/
|
|
44
|
-
clustersPerDatacenter
|
|
44
|
+
clustersPerDatacenter?: Array<number>;
|
|
45
45
|
/**
|
|
46
46
|
*
|
|
47
47
|
* @type {Array<Host>}
|
|
48
48
|
* @memberof Infra
|
|
49
49
|
*/
|
|
50
|
-
hosts
|
|
50
|
+
hosts?: Array<Host>;
|
|
51
51
|
/**
|
|
52
52
|
*
|
|
53
53
|
* @type {Array<number>}
|
package/dist/models/Infra.js
CHANGED
|
@@ -20,14 +20,8 @@ import { HostFromJSON, HostToJSON, } from './Host';
|
|
|
20
20
|
export function instanceOfInfra(value) {
|
|
21
21
|
if (!('totalHosts' in value) || value['totalHosts'] === undefined)
|
|
22
22
|
return false;
|
|
23
|
-
if (!('totalDatacenters' in value) || value['totalDatacenters'] === undefined)
|
|
24
|
-
return false;
|
|
25
23
|
if (!('totalClusters' in value) || value['totalClusters'] === undefined)
|
|
26
24
|
return false;
|
|
27
|
-
if (!('clustersPerDatacenter' in value) || value['clustersPerDatacenter'] === undefined)
|
|
28
|
-
return false;
|
|
29
|
-
if (!('hosts' in value) || value['hosts'] === undefined)
|
|
30
|
-
return false;
|
|
31
25
|
if (!('hostsPerCluster' in value) || value['hostsPerCluster'] === undefined)
|
|
32
26
|
return false;
|
|
33
27
|
if (!('hostPowerStates' in value) || value['hostPowerStates'] === undefined)
|
|
@@ -47,10 +41,10 @@ export function InfraFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
47
41
|
}
|
|
48
42
|
return {
|
|
49
43
|
'totalHosts': json['totalHosts'],
|
|
50
|
-
'totalDatacenters': json['totalDatacenters'],
|
|
44
|
+
'totalDatacenters': json['totalDatacenters'] == null ? undefined : json['totalDatacenters'],
|
|
51
45
|
'totalClusters': json['totalClusters'],
|
|
52
|
-
'clustersPerDatacenter': json['clustersPerDatacenter'],
|
|
53
|
-
'hosts': (json['hosts'].map(HostFromJSON)),
|
|
46
|
+
'clustersPerDatacenter': json['clustersPerDatacenter'] == null ? undefined : json['clustersPerDatacenter'],
|
|
47
|
+
'hosts': json['hosts'] == null ? undefined : (json['hosts'].map(HostFromJSON)),
|
|
54
48
|
'hostsPerCluster': json['hostsPerCluster'],
|
|
55
49
|
'hostPowerStates': json['hostPowerStates'],
|
|
56
50
|
'networks': (json['networks'].map(NetworkFromJSON)),
|
|
@@ -66,7 +60,7 @@ export function InfraToJSON(value) {
|
|
|
66
60
|
'totalDatacenters': value['totalDatacenters'],
|
|
67
61
|
'totalClusters': value['totalClusters'],
|
|
68
62
|
'clustersPerDatacenter': value['clustersPerDatacenter'],
|
|
69
|
-
'hosts': (value['hosts'].map(HostToJSON)),
|
|
63
|
+
'hosts': value['hosts'] == null ? undefined : (value['hosts'].map(HostToJSON)),
|
|
70
64
|
'hostsPerCluster': value['hostsPerCluster'],
|
|
71
65
|
'hostPowerStates': value['hostPowerStates'],
|
|
72
66
|
'networks': (value['networks'].map(NetworkToJSON)),
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import type { AgentProxy } from './AgentProxy';
|
|
13
|
+
import type { Label } from './Label';
|
|
13
14
|
/**
|
|
14
15
|
*
|
|
15
16
|
* @export
|
|
@@ -40,6 +41,12 @@ export interface SourceCreate {
|
|
|
40
41
|
* @memberof SourceCreate
|
|
41
42
|
*/
|
|
42
43
|
certificateChain?: string | null;
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @type {Array<Label>}
|
|
47
|
+
* @memberof SourceCreate
|
|
48
|
+
*/
|
|
49
|
+
labels?: Array<Label>;
|
|
43
50
|
}
|
|
44
51
|
/**
|
|
45
52
|
* Check if a given object implements the SourceCreate interface.
|
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
import { AgentProxyFromJSON, AgentProxyToJSON, } from './AgentProxy';
|
|
15
|
+
import { LabelFromJSON, LabelToJSON, } from './Label';
|
|
15
16
|
/**
|
|
16
17
|
* Check if a given object implements the SourceCreate interface.
|
|
17
18
|
*/
|
|
@@ -32,6 +33,7 @@ export function SourceCreateFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
32
33
|
'sshPublicKey': json['sshPublicKey'] == null ? undefined : json['sshPublicKey'],
|
|
33
34
|
'proxy': json['proxy'] == null ? undefined : AgentProxyFromJSON(json['proxy']),
|
|
34
35
|
'certificateChain': json['certificateChain'] == null ? undefined : json['certificateChain'],
|
|
36
|
+
'labels': json['labels'] == null ? undefined : (json['labels'].map(LabelFromJSON)),
|
|
35
37
|
};
|
|
36
38
|
}
|
|
37
39
|
export function SourceCreateToJSON(value) {
|
|
@@ -43,5 +45,6 @@ export function SourceCreateToJSON(value) {
|
|
|
43
45
|
'sshPublicKey': value['sshPublicKey'],
|
|
44
46
|
'proxy': AgentProxyToJSON(value['proxy']),
|
|
45
47
|
'certificateChain': value['certificateChain'],
|
|
48
|
+
'labels': value['labels'] == null ? undefined : (value['labels'].map(LabelToJSON)),
|
|
46
49
|
};
|
|
47
50
|
}
|
|
@@ -0,0 +1,57 @@
|
|
|
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 { AgentProxy } from './AgentProxy';
|
|
13
|
+
import type { Label } from './Label';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface SourceUpdate
|
|
18
|
+
*/
|
|
19
|
+
export interface SourceUpdate {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {string}
|
|
23
|
+
* @memberof SourceUpdate
|
|
24
|
+
*/
|
|
25
|
+
name?: string;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {Array<Label>}
|
|
29
|
+
* @memberof SourceUpdate
|
|
30
|
+
*/
|
|
31
|
+
labels?: Array<Label>;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @type {string}
|
|
35
|
+
* @memberof SourceUpdate
|
|
36
|
+
*/
|
|
37
|
+
sshPublicKey?: string | null;
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @type {string}
|
|
41
|
+
* @memberof SourceUpdate
|
|
42
|
+
*/
|
|
43
|
+
certificateChain?: string | null;
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @type {AgentProxy}
|
|
47
|
+
* @memberof SourceUpdate
|
|
48
|
+
*/
|
|
49
|
+
proxy?: AgentProxy;
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* Check if a given object implements the SourceUpdate interface.
|
|
53
|
+
*/
|
|
54
|
+
export declare function instanceOfSourceUpdate(value: object): value is SourceUpdate;
|
|
55
|
+
export declare function SourceUpdateFromJSON(json: any): SourceUpdate;
|
|
56
|
+
export declare function SourceUpdateFromJSONTyped(json: any, ignoreDiscriminator: boolean): SourceUpdate;
|
|
57
|
+
export declare function SourceUpdateToJSON(value?: SourceUpdate | null): any;
|
|
@@ -0,0 +1,48 @@
|
|
|
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
|
+
import { AgentProxyFromJSON, AgentProxyToJSON, } from './AgentProxy';
|
|
15
|
+
import { LabelFromJSON, LabelToJSON, } from './Label';
|
|
16
|
+
/**
|
|
17
|
+
* Check if a given object implements the SourceUpdate interface.
|
|
18
|
+
*/
|
|
19
|
+
export function instanceOfSourceUpdate(value) {
|
|
20
|
+
return true;
|
|
21
|
+
}
|
|
22
|
+
export function SourceUpdateFromJSON(json) {
|
|
23
|
+
return SourceUpdateFromJSONTyped(json, false);
|
|
24
|
+
}
|
|
25
|
+
export function SourceUpdateFromJSONTyped(json, ignoreDiscriminator) {
|
|
26
|
+
if (json == null) {
|
|
27
|
+
return json;
|
|
28
|
+
}
|
|
29
|
+
return {
|
|
30
|
+
'name': json['name'] == null ? undefined : json['name'],
|
|
31
|
+
'labels': json['labels'] == null ? undefined : (json['labels'].map(LabelFromJSON)),
|
|
32
|
+
'sshPublicKey': json['sshPublicKey'] == null ? undefined : json['sshPublicKey'],
|
|
33
|
+
'certificateChain': json['certificateChain'] == null ? undefined : json['certificateChain'],
|
|
34
|
+
'proxy': json['proxy'] == null ? undefined : AgentProxyFromJSON(json['proxy']),
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
export function SourceUpdateToJSON(value) {
|
|
38
|
+
if (value == null) {
|
|
39
|
+
return value;
|
|
40
|
+
}
|
|
41
|
+
return {
|
|
42
|
+
'name': value['name'],
|
|
43
|
+
'labels': value['labels'] == null ? undefined : (value['labels'].map(LabelToJSON)),
|
|
44
|
+
'sshPublicKey': value['sshPublicKey'],
|
|
45
|
+
'certificateChain': value['certificateChain'],
|
|
46
|
+
'proxy': AgentProxyToJSON(value['proxy']),
|
|
47
|
+
};
|
|
48
|
+
}
|
|
@@ -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
|
+
import type { Inventory } from './Inventory';
|
|
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(value?: UpdateInventory | null): 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
|
+
import { InventoryFromJSON, InventoryToJSON, } from './Inventory';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the UpdateInventory interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfUpdateInventory(value) {
|
|
19
|
+
if (!('agentId' in value) || value['agentId'] === undefined)
|
|
20
|
+
return false;
|
|
21
|
+
if (!('inventory' in value) || value['inventory'] === undefined)
|
|
22
|
+
return false;
|
|
23
|
+
return true;
|
|
24
|
+
}
|
|
25
|
+
export function UpdateInventoryFromJSON(json) {
|
|
26
|
+
return UpdateInventoryFromJSONTyped(json, false);
|
|
27
|
+
}
|
|
28
|
+
export function UpdateInventoryFromJSONTyped(json, ignoreDiscriminator) {
|
|
29
|
+
if (json == null) {
|
|
30
|
+
return json;
|
|
31
|
+
}
|
|
32
|
+
return {
|
|
33
|
+
'agentId': json['agentId'],
|
|
34
|
+
'inventory': InventoryFromJSON(json['inventory']),
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
export function UpdateInventoryToJSON(value) {
|
|
38
|
+
if (value == null) {
|
|
39
|
+
return value;
|
|
40
|
+
}
|
|
41
|
+
return {
|
|
42
|
+
'agentId': value['agentId'],
|
|
43
|
+
'inventory': InventoryToJSON(value['inventory']),
|
|
44
|
+
};
|
|
45
|
+
}
|
package/dist/models/VMs.d.ts
CHANGED
package/dist/models/VMs.js
CHANGED
|
@@ -56,6 +56,7 @@ export function VMsFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
56
56
|
'ramGB': VMResourceBreakdownFromJSON(json['ramGB']),
|
|
57
57
|
'diskGB': VMResourceBreakdownFromJSON(json['diskGB']),
|
|
58
58
|
'diskCount': VMResourceBreakdownFromJSON(json['diskCount']),
|
|
59
|
+
'nicCount': json['nicCount'] == null ? undefined : VMResourceBreakdownFromJSON(json['nicCount']),
|
|
59
60
|
'powerStates': json['powerStates'],
|
|
60
61
|
'os': json['os'],
|
|
61
62
|
'osInfo': json['osInfo'] == null ? undefined : (mapValues(json['osInfo'], OsInfoFromJSON)),
|
|
@@ -75,6 +76,7 @@ export function VMsToJSON(value) {
|
|
|
75
76
|
'ramGB': VMResourceBreakdownToJSON(value['ramGB']),
|
|
76
77
|
'diskGB': VMResourceBreakdownToJSON(value['diskGB']),
|
|
77
78
|
'diskCount': VMResourceBreakdownToJSON(value['diskCount']),
|
|
79
|
+
'nicCount': VMResourceBreakdownToJSON(value['nicCount']),
|
|
78
80
|
'powerStates': value['powerStates'],
|
|
79
81
|
'os': value['os'],
|
|
80
82
|
'osInfo': value['osInfo'] == null ? undefined : (mapValues(value['osInfo'], OsInfoToJSON)),
|
package/dist/models/index.d.ts
CHANGED
|
@@ -13,12 +13,10 @@ export * from './OsInfo';
|
|
|
13
13
|
export * from './PresignedUrl';
|
|
14
14
|
export * from './Source';
|
|
15
15
|
export * from './SourceCreate';
|
|
16
|
-
export * from './
|
|
16
|
+
export * from './SourceUpdate';
|
|
17
17
|
export * from './Status';
|
|
18
|
+
export * from './UpdateInventory';
|
|
18
19
|
export * from './UploadRvtoolsFile200Response';
|
|
19
20
|
export * from './VCenter';
|
|
20
21
|
export * from './VMResourceBreakdown';
|
|
21
22
|
export * from './VMs';
|
|
22
|
-
export * from './InfraDatastoresInner';
|
|
23
|
-
export * from './InfraNetworksInner';
|
|
24
|
-
export * from './MigrationIssuesInner';
|
package/dist/models/index.js
CHANGED
|
@@ -15,12 +15,10 @@ export * from './OsInfo';
|
|
|
15
15
|
export * from './PresignedUrl';
|
|
16
16
|
export * from './Source';
|
|
17
17
|
export * from './SourceCreate';
|
|
18
|
-
export * from './
|
|
18
|
+
export * from './SourceUpdate';
|
|
19
19
|
export * from './Status';
|
|
20
|
+
export * from './UpdateInventory';
|
|
20
21
|
export * from './UploadRvtoolsFile200Response';
|
|
21
22
|
export * from './VCenter';
|
|
22
23
|
export * from './VMResourceBreakdown';
|
|
23
24
|
export * from './VMs';
|
|
24
|
-
export * from './InfraDatastoresInner';
|
|
25
|
-
export * from './InfraNetworksInner';
|
|
26
|
-
export * from './MigrationIssuesInner';
|
package/package.json
CHANGED
package/src/apis/SourceApi.ts
CHANGED
|
@@ -17,8 +17,9 @@ import * as runtime from '../runtime';
|
|
|
17
17
|
import type {
|
|
18
18
|
Source,
|
|
19
19
|
SourceCreate,
|
|
20
|
-
|
|
20
|
+
SourceUpdate,
|
|
21
21
|
Status,
|
|
22
|
+
UpdateInventory,
|
|
22
23
|
UploadRvtoolsFile200Response,
|
|
23
24
|
} from '../models/index';
|
|
24
25
|
import {
|
|
@@ -26,10 +27,12 @@ import {
|
|
|
26
27
|
SourceToJSON,
|
|
27
28
|
SourceCreateFromJSON,
|
|
28
29
|
SourceCreateToJSON,
|
|
29
|
-
|
|
30
|
-
|
|
30
|
+
SourceUpdateFromJSON,
|
|
31
|
+
SourceUpdateToJSON,
|
|
31
32
|
StatusFromJSON,
|
|
32
33
|
StatusToJSON,
|
|
34
|
+
UpdateInventoryFromJSON,
|
|
35
|
+
UpdateInventoryToJSON,
|
|
33
36
|
UploadRvtoolsFile200ResponseFromJSON,
|
|
34
37
|
UploadRvtoolsFile200ResponseToJSON,
|
|
35
38
|
} from '../models/index';
|
|
@@ -50,9 +53,14 @@ export interface ListSourcesRequest {
|
|
|
50
53
|
includeDefault?: boolean;
|
|
51
54
|
}
|
|
52
55
|
|
|
56
|
+
export interface UpdateInventoryRequest {
|
|
57
|
+
id: string;
|
|
58
|
+
updateInventory: UpdateInventory;
|
|
59
|
+
}
|
|
60
|
+
|
|
53
61
|
export interface UpdateSourceRequest {
|
|
54
62
|
id: string;
|
|
55
|
-
|
|
63
|
+
sourceUpdate: SourceUpdate;
|
|
56
64
|
}
|
|
57
65
|
|
|
58
66
|
export interface UploadRvtoolsFileRequest {
|
|
@@ -137,9 +145,24 @@ export interface SourceApiInterface {
|
|
|
137
145
|
listSources(requestParameters: ListSourcesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<Source>>;
|
|
138
146
|
|
|
139
147
|
/**
|
|
140
|
-
* Update
|
|
148
|
+
* Update inventory
|
|
141
149
|
* @param {string} id ID of the source
|
|
142
|
-
* @param {
|
|
150
|
+
* @param {UpdateInventory} updateInventory
|
|
151
|
+
* @param {*} [options] Override http request option.
|
|
152
|
+
* @throws {RequiredError}
|
|
153
|
+
* @memberof SourceApiInterface
|
|
154
|
+
*/
|
|
155
|
+
updateInventoryRaw(requestParameters: UpdateInventoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Source>>;
|
|
156
|
+
|
|
157
|
+
/**
|
|
158
|
+
* Update inventory
|
|
159
|
+
*/
|
|
160
|
+
updateInventory(requestParameters: UpdateInventoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Source>;
|
|
161
|
+
|
|
162
|
+
/**
|
|
163
|
+
* Update source
|
|
164
|
+
* @param {string} id ID of the source
|
|
165
|
+
* @param {SourceUpdate} sourceUpdate
|
|
143
166
|
* @param {*} [options] Override http request option.
|
|
144
167
|
* @throws {RequiredError}
|
|
145
168
|
* @memberof SourceApiInterface
|
|
@@ -147,7 +170,7 @@ export interface SourceApiInterface {
|
|
|
147
170
|
updateSourceRaw(requestParameters: UpdateSourceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Source>>;
|
|
148
171
|
|
|
149
172
|
/**
|
|
150
|
-
* Update
|
|
173
|
+
* Update source
|
|
151
174
|
*/
|
|
152
175
|
updateSource(requestParameters: UpdateSourceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Source>;
|
|
153
176
|
|
|
@@ -332,7 +355,50 @@ export class SourceApi extends runtime.BaseAPI implements SourceApiInterface {
|
|
|
332
355
|
}
|
|
333
356
|
|
|
334
357
|
/**
|
|
335
|
-
* Update
|
|
358
|
+
* Update inventory
|
|
359
|
+
*/
|
|
360
|
+
async updateInventoryRaw(requestParameters: UpdateInventoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Source>> {
|
|
361
|
+
if (requestParameters['id'] == null) {
|
|
362
|
+
throw new runtime.RequiredError(
|
|
363
|
+
'id',
|
|
364
|
+
'Required parameter "id" was null or undefined when calling updateInventory().'
|
|
365
|
+
);
|
|
366
|
+
}
|
|
367
|
+
|
|
368
|
+
if (requestParameters['updateInventory'] == null) {
|
|
369
|
+
throw new runtime.RequiredError(
|
|
370
|
+
'updateInventory',
|
|
371
|
+
'Required parameter "updateInventory" was null or undefined when calling updateInventory().'
|
|
372
|
+
);
|
|
373
|
+
}
|
|
374
|
+
|
|
375
|
+
const queryParameters: any = {};
|
|
376
|
+
|
|
377
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
378
|
+
|
|
379
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
380
|
+
|
|
381
|
+
const response = await this.request({
|
|
382
|
+
path: `/api/v1/sources/{id}/inventory`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
383
|
+
method: 'PUT',
|
|
384
|
+
headers: headerParameters,
|
|
385
|
+
query: queryParameters,
|
|
386
|
+
body: UpdateInventoryToJSON(requestParameters['updateInventory']),
|
|
387
|
+
}, initOverrides);
|
|
388
|
+
|
|
389
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => SourceFromJSON(jsonValue));
|
|
390
|
+
}
|
|
391
|
+
|
|
392
|
+
/**
|
|
393
|
+
* Update inventory
|
|
394
|
+
*/
|
|
395
|
+
async updateInventory(requestParameters: UpdateInventoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Source> {
|
|
396
|
+
const response = await this.updateInventoryRaw(requestParameters, initOverrides);
|
|
397
|
+
return await response.value();
|
|
398
|
+
}
|
|
399
|
+
|
|
400
|
+
/**
|
|
401
|
+
* Update source
|
|
336
402
|
*/
|
|
337
403
|
async updateSourceRaw(requestParameters: UpdateSourceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Source>> {
|
|
338
404
|
if (requestParameters['id'] == null) {
|
|
@@ -342,10 +408,10 @@ export class SourceApi extends runtime.BaseAPI implements SourceApiInterface {
|
|
|
342
408
|
);
|
|
343
409
|
}
|
|
344
410
|
|
|
345
|
-
if (requestParameters['
|
|
411
|
+
if (requestParameters['sourceUpdate'] == null) {
|
|
346
412
|
throw new runtime.RequiredError(
|
|
347
|
-
'
|
|
348
|
-
'Required parameter "
|
|
413
|
+
'sourceUpdate',
|
|
414
|
+
'Required parameter "sourceUpdate" was null or undefined when calling updateSource().'
|
|
349
415
|
);
|
|
350
416
|
}
|
|
351
417
|
|
|
@@ -360,14 +426,14 @@ export class SourceApi extends runtime.BaseAPI implements SourceApiInterface {
|
|
|
360
426
|
method: 'PUT',
|
|
361
427
|
headers: headerParameters,
|
|
362
428
|
query: queryParameters,
|
|
363
|
-
body:
|
|
429
|
+
body: SourceUpdateToJSON(requestParameters['sourceUpdate']),
|
|
364
430
|
}, initOverrides);
|
|
365
431
|
|
|
366
432
|
return new runtime.JSONApiResponse(response, (jsonValue) => SourceFromJSON(jsonValue));
|
|
367
433
|
}
|
|
368
434
|
|
|
369
435
|
/**
|
|
370
|
-
* Update
|
|
436
|
+
* Update source
|
|
371
437
|
*/
|
|
372
438
|
async updateSource(requestParameters: UpdateSourceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Source> {
|
|
373
439
|
const response = await this.updateSourceRaw(requestParameters, initOverrides);
|
package/src/models/Infra.ts
CHANGED
|
@@ -49,7 +49,7 @@ export interface Infra {
|
|
|
49
49
|
* @type {number}
|
|
50
50
|
* @memberof Infra
|
|
51
51
|
*/
|
|
52
|
-
totalDatacenters
|
|
52
|
+
totalDatacenters?: number;
|
|
53
53
|
/**
|
|
54
54
|
*
|
|
55
55
|
* @type {number}
|
|
@@ -61,13 +61,13 @@ export interface Infra {
|
|
|
61
61
|
* @type {Array<number>}
|
|
62
62
|
* @memberof Infra
|
|
63
63
|
*/
|
|
64
|
-
clustersPerDatacenter
|
|
64
|
+
clustersPerDatacenter?: Array<number>;
|
|
65
65
|
/**
|
|
66
66
|
*
|
|
67
67
|
* @type {Array<Host>}
|
|
68
68
|
* @memberof Infra
|
|
69
69
|
*/
|
|
70
|
-
hosts
|
|
70
|
+
hosts?: Array<Host>;
|
|
71
71
|
/**
|
|
72
72
|
*
|
|
73
73
|
* @type {Array<number>}
|
|
@@ -99,10 +99,7 @@ export interface Infra {
|
|
|
99
99
|
*/
|
|
100
100
|
export function instanceOfInfra(value: object): value is Infra {
|
|
101
101
|
if (!('totalHosts' in value) || value['totalHosts'] === undefined) return false;
|
|
102
|
-
if (!('totalDatacenters' in value) || value['totalDatacenters'] === undefined) return false;
|
|
103
102
|
if (!('totalClusters' in value) || value['totalClusters'] === undefined) return false;
|
|
104
|
-
if (!('clustersPerDatacenter' in value) || value['clustersPerDatacenter'] === undefined) return false;
|
|
105
|
-
if (!('hosts' in value) || value['hosts'] === undefined) return false;
|
|
106
103
|
if (!('hostsPerCluster' in value) || value['hostsPerCluster'] === undefined) return false;
|
|
107
104
|
if (!('hostPowerStates' in value) || value['hostPowerStates'] === undefined) return false;
|
|
108
105
|
if (!('networks' in value) || value['networks'] === undefined) return false;
|
|
@@ -121,10 +118,10 @@ export function InfraFromJSONTyped(json: any, ignoreDiscriminator: boolean): Inf
|
|
|
121
118
|
return {
|
|
122
119
|
|
|
123
120
|
'totalHosts': json['totalHosts'],
|
|
124
|
-
'totalDatacenters': json['totalDatacenters'],
|
|
121
|
+
'totalDatacenters': json['totalDatacenters'] == null ? undefined : json['totalDatacenters'],
|
|
125
122
|
'totalClusters': json['totalClusters'],
|
|
126
|
-
'clustersPerDatacenter': json['clustersPerDatacenter'],
|
|
127
|
-
'hosts': ((json['hosts'] as Array<any>).map(HostFromJSON)),
|
|
123
|
+
'clustersPerDatacenter': json['clustersPerDatacenter'] == null ? undefined : json['clustersPerDatacenter'],
|
|
124
|
+
'hosts': json['hosts'] == null ? undefined : ((json['hosts'] as Array<any>).map(HostFromJSON)),
|
|
128
125
|
'hostsPerCluster': json['hostsPerCluster'],
|
|
129
126
|
'hostPowerStates': json['hostPowerStates'],
|
|
130
127
|
'networks': ((json['networks'] as Array<any>).map(NetworkFromJSON)),
|
|
@@ -142,7 +139,7 @@ export function InfraToJSON(value?: Infra | null): any {
|
|
|
142
139
|
'totalDatacenters': value['totalDatacenters'],
|
|
143
140
|
'totalClusters': value['totalClusters'],
|
|
144
141
|
'clustersPerDatacenter': value['clustersPerDatacenter'],
|
|
145
|
-
'hosts': ((value['hosts'] as Array<any>).map(HostToJSON)),
|
|
142
|
+
'hosts': value['hosts'] == null ? undefined : ((value['hosts'] as Array<any>).map(HostToJSON)),
|
|
146
143
|
'hostsPerCluster': value['hostsPerCluster'],
|
|
147
144
|
'hostPowerStates': value['hostPowerStates'],
|
|
148
145
|
'networks': ((value['networks'] as Array<any>).map(NetworkToJSON)),
|
|
@@ -19,6 +19,12 @@ import {
|
|
|
19
19
|
AgentProxyFromJSONTyped,
|
|
20
20
|
AgentProxyToJSON,
|
|
21
21
|
} from './AgentProxy';
|
|
22
|
+
import type { Label } from './Label';
|
|
23
|
+
import {
|
|
24
|
+
LabelFromJSON,
|
|
25
|
+
LabelFromJSONTyped,
|
|
26
|
+
LabelToJSON,
|
|
27
|
+
} from './Label';
|
|
22
28
|
|
|
23
29
|
/**
|
|
24
30
|
*
|
|
@@ -50,6 +56,12 @@ export interface SourceCreate {
|
|
|
50
56
|
* @memberof SourceCreate
|
|
51
57
|
*/
|
|
52
58
|
certificateChain?: string | null;
|
|
59
|
+
/**
|
|
60
|
+
*
|
|
61
|
+
* @type {Array<Label>}
|
|
62
|
+
* @memberof SourceCreate
|
|
63
|
+
*/
|
|
64
|
+
labels?: Array<Label>;
|
|
53
65
|
}
|
|
54
66
|
|
|
55
67
|
/**
|
|
@@ -74,6 +86,7 @@ export function SourceCreateFromJSONTyped(json: any, ignoreDiscriminator: boolea
|
|
|
74
86
|
'sshPublicKey': json['sshPublicKey'] == null ? undefined : json['sshPublicKey'],
|
|
75
87
|
'proxy': json['proxy'] == null ? undefined : AgentProxyFromJSON(json['proxy']),
|
|
76
88
|
'certificateChain': json['certificateChain'] == null ? undefined : json['certificateChain'],
|
|
89
|
+
'labels': json['labels'] == null ? undefined : ((json['labels'] as Array<any>).map(LabelFromJSON)),
|
|
77
90
|
};
|
|
78
91
|
}
|
|
79
92
|
|
|
@@ -87,6 +100,7 @@ export function SourceCreateToJSON(value?: SourceCreate | null): any {
|
|
|
87
100
|
'sshPublicKey': value['sshPublicKey'],
|
|
88
101
|
'proxy': AgentProxyToJSON(value['proxy']),
|
|
89
102
|
'certificateChain': value['certificateChain'],
|
|
103
|
+
'labels': value['labels'] == null ? undefined : ((value['labels'] as Array<any>).map(LabelToJSON)),
|
|
90
104
|
};
|
|
91
105
|
}
|
|
92
106
|
|
|
@@ -0,0 +1,105 @@
|
|
|
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 { AgentProxy } from './AgentProxy';
|
|
17
|
+
import {
|
|
18
|
+
AgentProxyFromJSON,
|
|
19
|
+
AgentProxyFromJSONTyped,
|
|
20
|
+
AgentProxyToJSON,
|
|
21
|
+
} from './AgentProxy';
|
|
22
|
+
import type { Label } from './Label';
|
|
23
|
+
import {
|
|
24
|
+
LabelFromJSON,
|
|
25
|
+
LabelFromJSONTyped,
|
|
26
|
+
LabelToJSON,
|
|
27
|
+
} from './Label';
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @export
|
|
32
|
+
* @interface SourceUpdate
|
|
33
|
+
*/
|
|
34
|
+
export interface SourceUpdate {
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @type {string}
|
|
38
|
+
* @memberof SourceUpdate
|
|
39
|
+
*/
|
|
40
|
+
name?: string;
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* @type {Array<Label>}
|
|
44
|
+
* @memberof SourceUpdate
|
|
45
|
+
*/
|
|
46
|
+
labels?: Array<Label>;
|
|
47
|
+
/**
|
|
48
|
+
*
|
|
49
|
+
* @type {string}
|
|
50
|
+
* @memberof SourceUpdate
|
|
51
|
+
*/
|
|
52
|
+
sshPublicKey?: string | null;
|
|
53
|
+
/**
|
|
54
|
+
*
|
|
55
|
+
* @type {string}
|
|
56
|
+
* @memberof SourceUpdate
|
|
57
|
+
*/
|
|
58
|
+
certificateChain?: string | null;
|
|
59
|
+
/**
|
|
60
|
+
*
|
|
61
|
+
* @type {AgentProxy}
|
|
62
|
+
* @memberof SourceUpdate
|
|
63
|
+
*/
|
|
64
|
+
proxy?: AgentProxy;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* Check if a given object implements the SourceUpdate interface.
|
|
69
|
+
*/
|
|
70
|
+
export function instanceOfSourceUpdate(value: object): value is SourceUpdate {
|
|
71
|
+
return true;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export function SourceUpdateFromJSON(json: any): SourceUpdate {
|
|
75
|
+
return SourceUpdateFromJSONTyped(json, false);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export function SourceUpdateFromJSONTyped(json: any, ignoreDiscriminator: boolean): SourceUpdate {
|
|
79
|
+
if (json == null) {
|
|
80
|
+
return json;
|
|
81
|
+
}
|
|
82
|
+
return {
|
|
83
|
+
|
|
84
|
+
'name': json['name'] == null ? undefined : json['name'],
|
|
85
|
+
'labels': json['labels'] == null ? undefined : ((json['labels'] as Array<any>).map(LabelFromJSON)),
|
|
86
|
+
'sshPublicKey': json['sshPublicKey'] == null ? undefined : json['sshPublicKey'],
|
|
87
|
+
'certificateChain': json['certificateChain'] == null ? undefined : json['certificateChain'],
|
|
88
|
+
'proxy': json['proxy'] == null ? undefined : AgentProxyFromJSON(json['proxy']),
|
|
89
|
+
};
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
export function SourceUpdateToJSON(value?: SourceUpdate | null): any {
|
|
93
|
+
if (value == null) {
|
|
94
|
+
return value;
|
|
95
|
+
}
|
|
96
|
+
return {
|
|
97
|
+
|
|
98
|
+
'name': value['name'],
|
|
99
|
+
'labels': value['labels'] == null ? undefined : ((value['labels'] as Array<any>).map(LabelToJSON)),
|
|
100
|
+
'sshPublicKey': value['sshPublicKey'],
|
|
101
|
+
'certificateChain': value['certificateChain'],
|
|
102
|
+
'proxy': AgentProxyToJSON(value['proxy']),
|
|
103
|
+
};
|
|
104
|
+
}
|
|
105
|
+
|
|
@@ -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 { Inventory } from './Inventory';
|
|
17
|
+
import {
|
|
18
|
+
InventoryFromJSON,
|
|
19
|
+
InventoryFromJSONTyped,
|
|
20
|
+
InventoryToJSON,
|
|
21
|
+
} from './Inventory';
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @export
|
|
26
|
+
* @interface UpdateInventory
|
|
27
|
+
*/
|
|
28
|
+
export interface UpdateInventory {
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @type {string}
|
|
32
|
+
* @memberof UpdateInventory
|
|
33
|
+
*/
|
|
34
|
+
agentId: string;
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @type {Inventory}
|
|
38
|
+
* @memberof UpdateInventory
|
|
39
|
+
*/
|
|
40
|
+
inventory: Inventory;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* Check if a given object implements the UpdateInventory interface.
|
|
45
|
+
*/
|
|
46
|
+
export function instanceOfUpdateInventory(value: object): value is UpdateInventory {
|
|
47
|
+
if (!('agentId' in value) || value['agentId'] === undefined) return false;
|
|
48
|
+
if (!('inventory' in value) || value['inventory'] === undefined) return false;
|
|
49
|
+
return true;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function UpdateInventoryFromJSON(json: any): UpdateInventory {
|
|
53
|
+
return UpdateInventoryFromJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function UpdateInventoryFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateInventory {
|
|
57
|
+
if (json == null) {
|
|
58
|
+
return json;
|
|
59
|
+
}
|
|
60
|
+
return {
|
|
61
|
+
|
|
62
|
+
'agentId': json['agentId'],
|
|
63
|
+
'inventory': InventoryFromJSON(json['inventory']),
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export function UpdateInventoryToJSON(value?: UpdateInventory | null): any {
|
|
68
|
+
if (value == null) {
|
|
69
|
+
return value;
|
|
70
|
+
}
|
|
71
|
+
return {
|
|
72
|
+
|
|
73
|
+
'agentId': value['agentId'],
|
|
74
|
+
'inventory': InventoryToJSON(value['inventory']),
|
|
75
|
+
};
|
|
76
|
+
}
|
|
77
|
+
|
package/src/models/VMs.ts
CHANGED
|
@@ -80,6 +80,12 @@ export interface VMs {
|
|
|
80
80
|
* @memberof VMs
|
|
81
81
|
*/
|
|
82
82
|
diskCount: VMResourceBreakdown;
|
|
83
|
+
/**
|
|
84
|
+
*
|
|
85
|
+
* @type {VMResourceBreakdown}
|
|
86
|
+
* @memberof VMs
|
|
87
|
+
*/
|
|
88
|
+
nicCount?: VMResourceBreakdown;
|
|
83
89
|
/**
|
|
84
90
|
*
|
|
85
91
|
* @type {{ [key: string]: number; }}
|
|
@@ -147,6 +153,7 @@ export function VMsFromJSONTyped(json: any, ignoreDiscriminator: boolean): VMs {
|
|
|
147
153
|
'ramGB': VMResourceBreakdownFromJSON(json['ramGB']),
|
|
148
154
|
'diskGB': VMResourceBreakdownFromJSON(json['diskGB']),
|
|
149
155
|
'diskCount': VMResourceBreakdownFromJSON(json['diskCount']),
|
|
156
|
+
'nicCount': json['nicCount'] == null ? undefined : VMResourceBreakdownFromJSON(json['nicCount']),
|
|
150
157
|
'powerStates': json['powerStates'],
|
|
151
158
|
'os': json['os'],
|
|
152
159
|
'osInfo': json['osInfo'] == null ? undefined : (mapValues(json['osInfo'], OsInfoFromJSON)),
|
|
@@ -168,6 +175,7 @@ export function VMsToJSON(value?: VMs | null): any {
|
|
|
168
175
|
'ramGB': VMResourceBreakdownToJSON(value['ramGB']),
|
|
169
176
|
'diskGB': VMResourceBreakdownToJSON(value['diskGB']),
|
|
170
177
|
'diskCount': VMResourceBreakdownToJSON(value['diskCount']),
|
|
178
|
+
'nicCount': VMResourceBreakdownToJSON(value['nicCount']),
|
|
171
179
|
'powerStates': value['powerStates'],
|
|
172
180
|
'os': value['os'],
|
|
173
181
|
'osInfo': value['osInfo'] == null ? undefined : (mapValues(value['osInfo'], OsInfoToJSON)),
|
package/src/models/index.ts
CHANGED
|
@@ -15,12 +15,10 @@ export * from './OsInfo';
|
|
|
15
15
|
export * from './PresignedUrl';
|
|
16
16
|
export * from './Source';
|
|
17
17
|
export * from './SourceCreate';
|
|
18
|
-
export * from './
|
|
18
|
+
export * from './SourceUpdate';
|
|
19
19
|
export * from './Status';
|
|
20
|
+
export * from './UpdateInventory';
|
|
20
21
|
export * from './UploadRvtoolsFile200Response';
|
|
21
22
|
export * from './VCenter';
|
|
22
23
|
export * from './VMResourceBreakdown';
|
|
23
24
|
export * from './VMs';
|
|
24
|
-
export * from './InfraDatastoresInner';
|
|
25
|
-
export * from './InfraNetworksInner';
|
|
26
|
-
export * from './MigrationIssuesInner';
|