@migration-planner-ui/api-client 0.0.19 → 0.0.21

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.
Files changed (40) hide show
  1. package/.openapi-generator/FILES +4 -1
  2. package/dist/apis/SourceApi.d.ts +5 -34
  3. package/dist/apis/SourceApi.js +5 -58
  4. package/dist/apis/index.d.ts +1 -1
  5. package/dist/models/DiskSizeTierSummary.d.ts +37 -0
  6. package/dist/models/DiskSizeTierSummary.js +44 -0
  7. package/dist/models/Ipv4Config.d.ts +49 -0
  8. package/dist/models/Ipv4Config.js +52 -0
  9. package/dist/models/ModelError.d.ts +6 -0
  10. package/dist/models/ModelError.js +2 -0
  11. package/dist/models/Network.d.ts +6 -0
  12. package/dist/models/Network.js +2 -0
  13. package/dist/models/Source.d.ts +7 -0
  14. package/dist/models/Source.js +3 -0
  15. package/dist/models/SourceCreate.d.ts +7 -0
  16. package/dist/models/SourceCreate.js +3 -0
  17. package/dist/models/SourceInfra.d.ts +45 -0
  18. package/dist/models/SourceInfra.js +44 -0
  19. package/dist/models/SourceUpdate.d.ts +7 -0
  20. package/dist/models/SourceUpdate.js +3 -0
  21. package/dist/models/VMs.d.ts +9 -0
  22. package/dist/models/VMs.js +3 -0
  23. package/dist/models/VmNetwork.d.ts +32 -0
  24. package/dist/models/VmNetwork.js +39 -0
  25. package/dist/models/index.d.ts +4 -1
  26. package/dist/models/index.js +4 -1
  27. package/package.json +1 -1
  28. package/src/apis/SourceApi.ts +5 -98
  29. package/src/apis/index.ts +0 -1
  30. package/src/models/DiskSizeTierSummary.ts +70 -0
  31. package/src/models/Ipv4Config.ts +88 -0
  32. package/src/models/ModelError.ts +8 -0
  33. package/src/models/Network.ts +8 -0
  34. package/src/models/Source.ts +14 -0
  35. package/src/models/SourceCreate.ts +14 -0
  36. package/src/models/SourceInfra.ts +89 -0
  37. package/src/models/SourceUpdate.ts +14 -0
  38. package/src/models/VMs.ts +14 -0
  39. package/src/models/VmNetwork.ts +67 -0
  40. package/src/models/index.ts +4 -1
@@ -11,11 +11,13 @@ src/models/Assessment.ts
11
11
  src/models/AssessmentForm.ts
12
12
  src/models/AssessmentUpdate.ts
13
13
  src/models/Datastore.ts
14
+ src/models/DiskSizeTierSummary.ts
14
15
  src/models/Histogram.ts
15
16
  src/models/Host.ts
16
17
  src/models/Info.ts
17
18
  src/models/Infra.ts
18
19
  src/models/Inventory.ts
20
+ src/models/Ipv4Config.ts
19
21
  src/models/Label.ts
20
22
  src/models/MigrationIssue.ts
21
23
  src/models/ModelError.ts
@@ -25,12 +27,13 @@ src/models/PresignedUrl.ts
25
27
  src/models/Snapshot.ts
26
28
  src/models/Source.ts
27
29
  src/models/SourceCreate.ts
30
+ src/models/SourceInfra.ts
28
31
  src/models/SourceUpdate.ts
29
32
  src/models/Status.ts
30
33
  src/models/UpdateInventory.ts
31
- src/models/UploadRvtoolsFile200Response.ts
32
34
  src/models/VCenter.ts
33
35
  src/models/VMResourceBreakdown.ts
34
36
  src/models/VMs.ts
37
+ src/models/VmNetwork.ts
35
38
  src/models/index.ts
36
39
  src/runtime.ts
@@ -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, SourceUpdate, Status, UpdateInventory, UploadRvtoolsFile200Response } from '../models/index';
13
+ import type { Source, SourceCreate, SourceUpdate, Status, UpdateInventory } from '../models/index';
14
14
  export interface CreateSourceRequest {
15
15
  sourceCreate: SourceCreate;
16
16
  }
@@ -20,9 +20,6 @@ export interface DeleteSourceRequest {
20
20
  export interface GetSourceRequest {
21
21
  id: string;
22
22
  }
23
- export interface ListSourcesRequest {
24
- includeDefault?: boolean;
25
- }
26
23
  export interface UpdateInventoryRequest {
27
24
  id: string;
28
25
  updateInventory: UpdateInventory;
@@ -31,10 +28,6 @@ export interface UpdateSourceRequest {
31
28
  id: string;
32
29
  sourceUpdate: SourceUpdate;
33
30
  }
34
- export interface UploadRvtoolsFileRequest {
35
- id: string;
36
- file: Blob;
37
- }
38
31
  /**
39
32
  * SourceApi - interface
40
33
  *
@@ -91,16 +84,15 @@ export interface SourceApiInterface {
91
84
  getSource(requestParameters: GetSourceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Source>;
92
85
  /**
93
86
  * List sources
94
- * @param {boolean} [includeDefault] control whatever the default report should be added to the result
95
87
  * @param {*} [options] Override http request option.
96
88
  * @throws {RequiredError}
97
89
  * @memberof SourceApiInterface
98
90
  */
99
- listSourcesRaw(requestParameters: ListSourcesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<Source>>>;
91
+ listSourcesRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<Source>>>;
100
92
  /**
101
93
  * List sources
102
94
  */
103
- listSources(requestParameters: ListSourcesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<Source>>;
95
+ listSources(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<Source>>;
104
96
  /**
105
97
  * Update inventory
106
98
  * @param {string} id ID of the source
@@ -127,19 +119,6 @@ export interface SourceApiInterface {
127
119
  * Update source
128
120
  */
129
121
  updateSource(requestParameters: UpdateSourceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Source>;
130
- /**
131
- * Update a source by uploading an RVTools file directly
132
- * @param {string} id ID of the source
133
- * @param {Blob} file The RVTools file (Excel)
134
- * @param {*} [options] Override http request option.
135
- * @throws {RequiredError}
136
- * @memberof SourceApiInterface
137
- */
138
- uploadRvtoolsFileRaw(requestParameters: UploadRvtoolsFileRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UploadRvtoolsFile200Response>>;
139
- /**
140
- * Update a source by uploading an RVTools file directly
141
- */
142
- uploadRvtoolsFile(requestParameters: UploadRvtoolsFileRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UploadRvtoolsFile200Response>;
143
122
  }
144
123
  /**
145
124
  *
@@ -180,11 +159,11 @@ export declare class SourceApi extends runtime.BaseAPI implements SourceApiInter
180
159
  /**
181
160
  * List sources
182
161
  */
183
- listSourcesRaw(requestParameters: ListSourcesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<Source>>>;
162
+ listSourcesRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<Source>>>;
184
163
  /**
185
164
  * List sources
186
165
  */
187
- listSources(requestParameters?: ListSourcesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<Source>>;
166
+ listSources(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<Source>>;
188
167
  /**
189
168
  * Update inventory
190
169
  */
@@ -201,12 +180,4 @@ export declare class SourceApi extends runtime.BaseAPI implements SourceApiInter
201
180
  * Update source
202
181
  */
203
182
  updateSource(requestParameters: UpdateSourceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Source>;
204
- /**
205
- * Update a source by uploading an RVTools file directly
206
- */
207
- uploadRvtoolsFileRaw(requestParameters: UploadRvtoolsFileRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UploadRvtoolsFile200Response>>;
208
- /**
209
- * Update a source by uploading an RVTools file directly
210
- */
211
- uploadRvtoolsFile(requestParameters: UploadRvtoolsFileRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UploadRvtoolsFile200Response>;
212
183
  }
@@ -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, SourceUpdateToJSON, StatusFromJSON, UpdateInventoryToJSON, UploadRvtoolsFile200ResponseFromJSON, } from '../models/index';
24
+ import { SourceFromJSON, SourceCreateToJSON, SourceUpdateToJSON, StatusFromJSON, UpdateInventoryToJSON, } from '../models/index';
25
25
  /**
26
26
  *
27
27
  */
@@ -140,12 +140,9 @@ export class SourceApi extends runtime.BaseAPI {
140
140
  /**
141
141
  * List sources
142
142
  */
143
- listSourcesRaw(requestParameters, initOverrides) {
143
+ listSourcesRaw(initOverrides) {
144
144
  return __awaiter(this, void 0, void 0, function* () {
145
145
  const queryParameters = {};
146
- if (requestParameters['includeDefault'] != null) {
147
- queryParameters['include_default'] = requestParameters['includeDefault'];
148
- }
149
146
  const headerParameters = {};
150
147
  const response = yield this.request({
151
148
  path: `/api/v1/sources`,
@@ -159,9 +156,9 @@ export class SourceApi extends runtime.BaseAPI {
159
156
  /**
160
157
  * List sources
161
158
  */
162
- listSources() {
163
- return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) {
164
- const response = yield this.listSourcesRaw(requestParameters, initOverrides);
159
+ listSources(initOverrides) {
160
+ return __awaiter(this, void 0, void 0, function* () {
161
+ const response = yield this.listSourcesRaw(initOverrides);
165
162
  return yield response.value();
166
163
  });
167
164
  }
@@ -231,54 +228,4 @@ export class SourceApi extends runtime.BaseAPI {
231
228
  return yield response.value();
232
229
  });
233
230
  }
234
- /**
235
- * Update a source by uploading an RVTools file directly
236
- */
237
- uploadRvtoolsFileRaw(requestParameters, initOverrides) {
238
- return __awaiter(this, void 0, void 0, function* () {
239
- if (requestParameters['id'] == null) {
240
- throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling uploadRvtoolsFile().');
241
- }
242
- if (requestParameters['file'] == null) {
243
- throw new runtime.RequiredError('file', 'Required parameter "file" was null or undefined when calling uploadRvtoolsFile().');
244
- }
245
- const queryParameters = {};
246
- const headerParameters = {};
247
- const consumes = [
248
- { contentType: 'multipart/form-data' },
249
- ];
250
- // @ts-ignore: canConsumeForm may be unused
251
- const canConsumeForm = runtime.canConsumeForm(consumes);
252
- let formParams;
253
- let useForm = false;
254
- // use FormData to transmit files using content-type "multipart/form-data"
255
- useForm = canConsumeForm;
256
- if (useForm) {
257
- formParams = new FormData();
258
- }
259
- else {
260
- formParams = new URLSearchParams();
261
- }
262
- if (requestParameters['file'] != null) {
263
- formParams.append('file', requestParameters['file']);
264
- }
265
- const response = yield this.request({
266
- path: `/api/v1/sources/{id}/rvtools`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
267
- method: 'PUT',
268
- headers: headerParameters,
269
- query: queryParameters,
270
- body: formParams,
271
- }, initOverrides);
272
- return new runtime.JSONApiResponse(response, (jsonValue) => UploadRvtoolsFile200ResponseFromJSON(jsonValue));
273
- });
274
- }
275
- /**
276
- * Update a source by uploading an RVTools file directly
277
- */
278
- uploadRvtoolsFile(requestParameters, initOverrides) {
279
- return __awaiter(this, void 0, void 0, function* () {
280
- const response = yield this.uploadRvtoolsFileRaw(requestParameters, initOverrides);
281
- return yield response.value();
282
- });
283
- }
284
231
  }
@@ -1,5 +1,5 @@
1
1
  export { type HeadImageRequest, type ImageApiInterface, ImageApi, } from "./ImageApi";
2
- export { type CreateSourceRequest, type DeleteSourceRequest, type GetSourceRequest, type ListSourcesRequest, type SourceApiInterface, SourceApi, type UpdateSourceRequest, type UpdateInventoryRequest } from "./SourceApi";
2
+ export { type CreateSourceRequest, type DeleteSourceRequest, type GetSourceRequest, type SourceApiInterface, SourceApi, type UpdateSourceRequest, type UpdateInventoryRequest } from "./SourceApi";
3
3
  export { type HealthApiInterface, HealthApi } from "./HealthApi";
4
4
  export { type AgentApiInterface, type DeleteAgentRequest, AgentApi } from "./AgentApi";
5
5
  export { type AssessmentApiInterface, type CreateAssessmentRequest, type DeleteAssessmentRequest, type GetAssessmentRequest, type UpdateAssessmentRequest, AssessmentApi } from "./AssessmentApi";
@@ -0,0 +1,37 @@
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 DiskSizeTierSummary
16
+ */
17
+ export interface DiskSizeTierSummary {
18
+ /**
19
+ * Total disk size in TB for this tier
20
+ * @type {number}
21
+ * @memberof DiskSizeTierSummary
22
+ */
23
+ totalSizeTB: number;
24
+ /**
25
+ * Number of VMs in this tier
26
+ * @type {number}
27
+ * @memberof DiskSizeTierSummary
28
+ */
29
+ vmCount: number;
30
+ }
31
+ /**
32
+ * Check if a given object implements the DiskSizeTierSummary interface.
33
+ */
34
+ export declare function instanceOfDiskSizeTierSummary(value: object): value is DiskSizeTierSummary;
35
+ export declare function DiskSizeTierSummaryFromJSON(json: any): DiskSizeTierSummary;
36
+ export declare function DiskSizeTierSummaryFromJSONTyped(json: any, ignoreDiscriminator: boolean): DiskSizeTierSummary;
37
+ export declare function DiskSizeTierSummaryToJSON(value?: DiskSizeTierSummary | null): any;
@@ -0,0 +1,44 @@
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 DiskSizeTierSummary interface.
16
+ */
17
+ export function instanceOfDiskSizeTierSummary(value) {
18
+ if (!('totalSizeTB' in value) || value['totalSizeTB'] === undefined)
19
+ return false;
20
+ if (!('vmCount' in value) || value['vmCount'] === undefined)
21
+ return false;
22
+ return true;
23
+ }
24
+ export function DiskSizeTierSummaryFromJSON(json) {
25
+ return DiskSizeTierSummaryFromJSONTyped(json, false);
26
+ }
27
+ export function DiskSizeTierSummaryFromJSONTyped(json, ignoreDiscriminator) {
28
+ if (json == null) {
29
+ return json;
30
+ }
31
+ return {
32
+ 'totalSizeTB': json['totalSizeTB'],
33
+ 'vmCount': json['vmCount'],
34
+ };
35
+ }
36
+ export function DiskSizeTierSummaryToJSON(value) {
37
+ if (value == null) {
38
+ return value;
39
+ }
40
+ return {
41
+ 'totalSizeTB': value['totalSizeTB'],
42
+ 'vmCount': value['vmCount'],
43
+ };
44
+ }
@@ -0,0 +1,49 @@
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 Ipv4Config
16
+ */
17
+ export interface Ipv4Config {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof Ipv4Config
22
+ */
23
+ ipAddress: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof Ipv4Config
28
+ */
29
+ subnetMask: string;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof Ipv4Config
34
+ */
35
+ defaultGateway: string;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof Ipv4Config
40
+ */
41
+ dns: string;
42
+ }
43
+ /**
44
+ * Check if a given object implements the Ipv4Config interface.
45
+ */
46
+ export declare function instanceOfIpv4Config(value: object): value is Ipv4Config;
47
+ export declare function Ipv4ConfigFromJSON(json: any): Ipv4Config;
48
+ export declare function Ipv4ConfigFromJSONTyped(json: any, ignoreDiscriminator: boolean): Ipv4Config;
49
+ export declare function Ipv4ConfigToJSON(value?: Ipv4Config | null): any;
@@ -0,0 +1,52 @@
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 Ipv4Config interface.
16
+ */
17
+ export function instanceOfIpv4Config(value) {
18
+ if (!('ipAddress' in value) || value['ipAddress'] === undefined)
19
+ return false;
20
+ if (!('subnetMask' in value) || value['subnetMask'] === undefined)
21
+ return false;
22
+ if (!('defaultGateway' in value) || value['defaultGateway'] === undefined)
23
+ return false;
24
+ if (!('dns' in value) || value['dns'] === undefined)
25
+ return false;
26
+ return true;
27
+ }
28
+ export function Ipv4ConfigFromJSON(json) {
29
+ return Ipv4ConfigFromJSONTyped(json, false);
30
+ }
31
+ export function Ipv4ConfigFromJSONTyped(json, ignoreDiscriminator) {
32
+ if (json == null) {
33
+ return json;
34
+ }
35
+ return {
36
+ 'ipAddress': json['ipAddress'],
37
+ 'subnetMask': json['subnetMask'],
38
+ 'defaultGateway': json['defaultGateway'],
39
+ 'dns': json['dns'],
40
+ };
41
+ }
42
+ export function Ipv4ConfigToJSON(value) {
43
+ if (value == null) {
44
+ return value;
45
+ }
46
+ return {
47
+ 'ipAddress': value['ipAddress'],
48
+ 'subnetMask': value['subnetMask'],
49
+ 'defaultGateway': value['defaultGateway'],
50
+ 'dns': value['dns'],
51
+ };
52
+ }
@@ -21,6 +21,12 @@ export interface ModelError {
21
21
  * @memberof ModelError
22
22
  */
23
23
  message: string;
24
+ /**
25
+ * Id of the request generating the error
26
+ * @type {string}
27
+ * @memberof ModelError
28
+ */
29
+ requestId?: string;
24
30
  }
25
31
  /**
26
32
  * Check if a given object implements the ModelError interface.
@@ -28,6 +28,7 @@ export function ModelErrorFromJSONTyped(json, ignoreDiscriminator) {
28
28
  }
29
29
  return {
30
30
  'message': json['message'],
31
+ 'requestId': json['requestId'] == null ? undefined : json['requestId'],
31
32
  };
32
33
  }
33
34
  export function ModelErrorToJSON(value) {
@@ -36,5 +37,6 @@ export function ModelErrorToJSON(value) {
36
37
  }
37
38
  return {
38
39
  'message': value['message'],
40
+ 'requestId': value['requestId'],
39
41
  };
40
42
  }
@@ -39,6 +39,12 @@ export interface Network {
39
39
  * @memberof Network
40
40
  */
41
41
  dvswitch?: string;
42
+ /**
43
+ *
44
+ * @type {number}
45
+ * @memberof Network
46
+ */
47
+ vmsCount?: number;
42
48
  }
43
49
  /**
44
50
  * @export
@@ -42,6 +42,7 @@ export function NetworkFromJSONTyped(json, ignoreDiscriminator) {
42
42
  'name': json['name'],
43
43
  'vlanId': json['vlanId'] == null ? undefined : json['vlanId'],
44
44
  'dvswitch': json['dvswitch'] == null ? undefined : json['dvswitch'],
45
+ 'vmsCount': json['vmsCount'] == null ? undefined : json['vmsCount'],
45
46
  };
46
47
  }
47
48
  export function NetworkToJSON(value) {
@@ -53,5 +54,6 @@ export function NetworkToJSON(value) {
53
54
  'name': value['name'],
54
55
  'vlanId': value['vlanId'],
55
56
  'dvswitch': value['dvswitch'],
57
+ 'vmsCount': value['vmsCount'],
56
58
  };
57
59
  }
@@ -9,6 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import type { SourceInfra } from './SourceInfra';
12
13
  import type { Agent } from './Agent';
13
14
  import type { Label } from './Label';
14
15
  import type { Inventory } from './Inventory';
@@ -66,6 +67,12 @@ export interface Source {
66
67
  * @memberof Source
67
68
  */
68
69
  labels?: Array<Label>;
70
+ /**
71
+ *
72
+ * @type {SourceInfra}
73
+ * @memberof Source
74
+ */
75
+ infra?: SourceInfra;
69
76
  }
70
77
  /**
71
78
  * Check if a given object implements the Source interface.
@@ -11,6 +11,7 @@
11
11
  * https://openapi-generator.tech
12
12
  * Do not edit the class manually.
13
13
  */
14
+ import { SourceInfraFromJSON, SourceInfraToJSON, } from './SourceInfra';
14
15
  import { AgentFromJSON, AgentToJSON, } from './Agent';
15
16
  import { LabelFromJSON, LabelToJSON, } from './Label';
16
17
  import { InventoryFromJSON, InventoryToJSON, } from './Inventory';
@@ -46,6 +47,7 @@ export function SourceFromJSONTyped(json, ignoreDiscriminator) {
46
47
  'onPremises': json['onPremises'],
47
48
  'agent': json['agent'] == null ? undefined : AgentFromJSON(json['agent']),
48
49
  'labels': json['labels'] == null ? undefined : (json['labels'].map(LabelFromJSON)),
50
+ 'infra': json['infra'] == null ? undefined : SourceInfraFromJSON(json['infra']),
49
51
  };
50
52
  }
51
53
  export function SourceToJSON(value) {
@@ -61,5 +63,6 @@ export function SourceToJSON(value) {
61
63
  'onPremises': value['onPremises'],
62
64
  'agent': AgentToJSON(value['agent']),
63
65
  'labels': value['labels'] == null ? undefined : (value['labels'].map(LabelToJSON)),
66
+ 'infra': SourceInfraToJSON(value['infra']),
64
67
  };
65
68
  }
@@ -9,6 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import type { VmNetwork } from './VmNetwork';
12
13
  import type { AgentProxy } from './AgentProxy';
13
14
  import type { Label } from './Label';
14
15
  /**
@@ -41,6 +42,12 @@ export interface SourceCreate {
41
42
  * @memberof SourceCreate
42
43
  */
43
44
  certificateChain?: string | null;
45
+ /**
46
+ *
47
+ * @type {VmNetwork}
48
+ * @memberof SourceCreate
49
+ */
50
+ network?: VmNetwork;
44
51
  /**
45
52
  *
46
53
  * @type {Array<Label>}
@@ -11,6 +11,7 @@
11
11
  * https://openapi-generator.tech
12
12
  * Do not edit the class manually.
13
13
  */
14
+ import { VmNetworkFromJSON, VmNetworkToJSON, } from './VmNetwork';
14
15
  import { AgentProxyFromJSON, AgentProxyToJSON, } from './AgentProxy';
15
16
  import { LabelFromJSON, LabelToJSON, } from './Label';
16
17
  /**
@@ -33,6 +34,7 @@ export function SourceCreateFromJSONTyped(json, ignoreDiscriminator) {
33
34
  'sshPublicKey': json['sshPublicKey'] == null ? undefined : json['sshPublicKey'],
34
35
  'proxy': json['proxy'] == null ? undefined : AgentProxyFromJSON(json['proxy']),
35
36
  'certificateChain': json['certificateChain'] == null ? undefined : json['certificateChain'],
37
+ 'network': json['network'] == null ? undefined : VmNetworkFromJSON(json['network']),
36
38
  'labels': json['labels'] == null ? undefined : (json['labels'].map(LabelFromJSON)),
37
39
  };
38
40
  }
@@ -45,6 +47,7 @@ export function SourceCreateToJSON(value) {
45
47
  'sshPublicKey': value['sshPublicKey'],
46
48
  'proxy': AgentProxyToJSON(value['proxy']),
47
49
  'certificateChain': value['certificateChain'],
50
+ 'network': VmNetworkToJSON(value['network']),
48
51
  'labels': value['labels'] == null ? undefined : (value['labels'].map(LabelToJSON)),
49
52
  };
50
53
  }
@@ -0,0 +1,45 @@
1
+ /**
2
+ * Migration Planner API
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: undefined
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { VmNetwork } from './VmNetwork';
13
+ import type { AgentProxy } from './AgentProxy';
14
+ /**
15
+ *
16
+ * @export
17
+ * @interface SourceInfra
18
+ */
19
+ export interface SourceInfra {
20
+ /**
21
+ *
22
+ * @type {AgentProxy}
23
+ * @memberof SourceInfra
24
+ */
25
+ proxy?: AgentProxy;
26
+ /**
27
+ *
28
+ * @type {string}
29
+ * @memberof SourceInfra
30
+ */
31
+ sshPublicKey?: string | null;
32
+ /**
33
+ *
34
+ * @type {VmNetwork}
35
+ * @memberof SourceInfra
36
+ */
37
+ vmNetwork?: VmNetwork;
38
+ }
39
+ /**
40
+ * Check if a given object implements the SourceInfra interface.
41
+ */
42
+ export declare function instanceOfSourceInfra(value: object): value is SourceInfra;
43
+ export declare function SourceInfraFromJSON(json: any): SourceInfra;
44
+ export declare function SourceInfraFromJSONTyped(json: any, ignoreDiscriminator: boolean): SourceInfra;
45
+ export declare function SourceInfraToJSON(value?: SourceInfra | null): any;
@@ -0,0 +1,44 @@
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 { VmNetworkFromJSON, VmNetworkToJSON, } from './VmNetwork';
15
+ import { AgentProxyFromJSON, AgentProxyToJSON, } from './AgentProxy';
16
+ /**
17
+ * Check if a given object implements the SourceInfra interface.
18
+ */
19
+ export function instanceOfSourceInfra(value) {
20
+ return true;
21
+ }
22
+ export function SourceInfraFromJSON(json) {
23
+ return SourceInfraFromJSONTyped(json, false);
24
+ }
25
+ export function SourceInfraFromJSONTyped(json, ignoreDiscriminator) {
26
+ if (json == null) {
27
+ return json;
28
+ }
29
+ return {
30
+ 'proxy': json['proxy'] == null ? undefined : AgentProxyFromJSON(json['proxy']),
31
+ 'sshPublicKey': json['sshPublicKey'] == null ? undefined : json['sshPublicKey'],
32
+ 'vmNetwork': json['vmNetwork'] == null ? undefined : VmNetworkFromJSON(json['vmNetwork']),
33
+ };
34
+ }
35
+ export function SourceInfraToJSON(value) {
36
+ if (value == null) {
37
+ return value;
38
+ }
39
+ return {
40
+ 'proxy': AgentProxyToJSON(value['proxy']),
41
+ 'sshPublicKey': value['sshPublicKey'],
42
+ 'vmNetwork': VmNetworkToJSON(value['vmNetwork']),
43
+ };
44
+ }
@@ -9,6 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import type { VmNetwork } from './VmNetwork';
12
13
  import type { AgentProxy } from './AgentProxy';
13
14
  import type { Label } from './Label';
14
15
  /**
@@ -47,6 +48,12 @@ export interface SourceUpdate {
47
48
  * @memberof SourceUpdate
48
49
  */
49
50
  proxy?: AgentProxy;
51
+ /**
52
+ *
53
+ * @type {VmNetwork}
54
+ * @memberof SourceUpdate
55
+ */
56
+ network?: VmNetwork;
50
57
  }
51
58
  /**
52
59
  * Check if a given object implements the SourceUpdate interface.