@migration-planner-ui/api-client 0.0.20 → 0.0.22

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.
@@ -11,6 +11,7 @@ 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
@@ -26,10 +27,10 @@ src/models/PresignedUrl.ts
26
27
  src/models/Snapshot.ts
27
28
  src/models/Source.ts
28
29
  src/models/SourceCreate.ts
30
+ src/models/SourceInfra.ts
29
31
  src/models/SourceUpdate.ts
30
32
  src/models/Status.ts
31
33
  src/models/UpdateInventory.ts
32
- src/models/UploadRvtoolsFile200Response.ts
33
34
  src/models/VCenter.ts
34
35
  src/models/VMResourceBreakdown.ts
35
36
  src/models/VMs.ts
@@ -11,6 +11,9 @@
11
11
  */
12
12
  import * as runtime from '../runtime';
13
13
  import type { Assessment, AssessmentForm, AssessmentUpdate } from '../models/index';
14
+ export interface CancelAssessmentJobRequest {
15
+ id: string;
16
+ }
14
17
  export interface CreateAssessmentRequest {
15
18
  assessmentForm: AssessmentForm;
16
19
  }
@@ -31,6 +34,18 @@ export interface UpdateAssessmentRequest {
31
34
  * @interface AssessmentApiInterface
32
35
  */
33
36
  export interface AssessmentApiInterface {
37
+ /**
38
+ * Cancel the processing job for an assessment
39
+ * @param {string} id ID of the assessment
40
+ * @param {*} [options] Override http request option.
41
+ * @throws {RequiredError}
42
+ * @memberof AssessmentApiInterface
43
+ */
44
+ cancelAssessmentJobRaw(requestParameters: CancelAssessmentJobRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
45
+ /**
46
+ * Cancel the processing job for an assessment
47
+ */
48
+ cancelAssessmentJob(requestParameters: CancelAssessmentJobRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
34
49
  /**
35
50
  * Create an assessment
36
51
  * @param {AssessmentForm} assessmentForm
@@ -96,6 +111,14 @@ export interface AssessmentApiInterface {
96
111
  *
97
112
  */
98
113
  export declare class AssessmentApi extends runtime.BaseAPI implements AssessmentApiInterface {
114
+ /**
115
+ * Cancel the processing job for an assessment
116
+ */
117
+ cancelAssessmentJobRaw(requestParameters: CancelAssessmentJobRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
118
+ /**
119
+ * Cancel the processing job for an assessment
120
+ */
121
+ cancelAssessmentJob(requestParameters: CancelAssessmentJobRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
99
122
  /**
100
123
  * Create an assessment
101
124
  */
@@ -26,6 +26,33 @@ import { AssessmentFromJSON, AssessmentFormToJSON, AssessmentUpdateToJSON, } fro
26
26
  *
27
27
  */
28
28
  export class AssessmentApi extends runtime.BaseAPI {
29
+ /**
30
+ * Cancel the processing job for an assessment
31
+ */
32
+ cancelAssessmentJobRaw(requestParameters, initOverrides) {
33
+ return __awaiter(this, void 0, void 0, function* () {
34
+ if (requestParameters['id'] == null) {
35
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling cancelAssessmentJob().');
36
+ }
37
+ const queryParameters = {};
38
+ const headerParameters = {};
39
+ const response = yield this.request({
40
+ path: `/api/v1/assessments/{id}/job`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
41
+ method: 'DELETE',
42
+ headers: headerParameters,
43
+ query: queryParameters,
44
+ }, initOverrides);
45
+ return new runtime.VoidApiResponse(response);
46
+ });
47
+ }
48
+ /**
49
+ * Cancel the processing job for an assessment
50
+ */
51
+ cancelAssessmentJob(requestParameters, initOverrides) {
52
+ return __awaiter(this, void 0, void 0, function* () {
53
+ yield this.cancelAssessmentJobRaw(requestParameters, initOverrides);
54
+ });
55
+ }
29
56
  /**
30
57
  * Create an assessment
31
58
  */
@@ -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
+ }
@@ -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
  }
@@ -18,17 +18,40 @@ import type { Inventory } from './Inventory';
18
18
  export interface Snapshot {
19
19
  /**
20
20
  *
21
- * @type {Inventory}
21
+ * @type {Date}
22
+ * @memberof Snapshot
23
+ */
24
+ createdAt: Date;
25
+ /**
26
+ * Status of the snapshot processing
27
+ * @type {string}
22
28
  * @memberof Snapshot
23
29
  */
24
- inventory: Inventory;
30
+ status: SnapshotStatusEnum;
31
+ /**
32
+ * Error message if snapshot processing failed
33
+ * @type {string}
34
+ * @memberof Snapshot
35
+ */
36
+ error?: string;
25
37
  /**
26
38
  *
27
- * @type {Date}
39
+ * @type {Inventory}
28
40
  * @memberof Snapshot
29
41
  */
30
- createdAt: Date;
42
+ inventory?: Inventory;
31
43
  }
44
+ /**
45
+ * @export
46
+ */
47
+ export declare const SnapshotStatusEnum: {
48
+ readonly Pending: "pending";
49
+ readonly Parsing: "parsing";
50
+ readonly Validating: "validating";
51
+ readonly Ready: "ready";
52
+ readonly Failed: "failed";
53
+ };
54
+ export type SnapshotStatusEnum = typeof SnapshotStatusEnum[keyof typeof SnapshotStatusEnum];
32
55
  /**
33
56
  * Check if a given object implements the Snapshot interface.
34
57
  */
@@ -12,14 +12,24 @@
12
12
  * Do not edit the class manually.
13
13
  */
14
14
  import { InventoryFromJSON, InventoryToJSON, } from './Inventory';
15
+ /**
16
+ * @export
17
+ */
18
+ export const SnapshotStatusEnum = {
19
+ Pending: 'pending',
20
+ Parsing: 'parsing',
21
+ Validating: 'validating',
22
+ Ready: 'ready',
23
+ Failed: 'failed'
24
+ };
15
25
  /**
16
26
  * Check if a given object implements the Snapshot interface.
17
27
  */
18
28
  export function instanceOfSnapshot(value) {
19
- if (!('inventory' in value) || value['inventory'] === undefined)
20
- return false;
21
29
  if (!('createdAt' in value) || value['createdAt'] === undefined)
22
30
  return false;
31
+ if (!('status' in value) || value['status'] === undefined)
32
+ return false;
23
33
  return true;
24
34
  }
25
35
  export function SnapshotFromJSON(json) {
@@ -30,8 +40,10 @@ export function SnapshotFromJSONTyped(json, ignoreDiscriminator) {
30
40
  return json;
31
41
  }
32
42
  return {
33
- 'inventory': InventoryFromJSON(json['inventory']),
34
43
  'createdAt': (new Date(json['createdAt'])),
44
+ 'status': json['status'],
45
+ 'error': json['error'] == null ? undefined : json['error'],
46
+ 'inventory': json['inventory'] == null ? undefined : InventoryFromJSON(json['inventory']),
35
47
  };
36
48
  }
37
49
  export function SnapshotToJSON(value) {
@@ -39,7 +51,9 @@ export function SnapshotToJSON(value) {
39
51
  return value;
40
52
  }
41
53
  return {
42
- 'inventory': InventoryToJSON(value['inventory']),
43
54
  'createdAt': ((value['createdAt']).toISOString()),
55
+ 'status': value['status'],
56
+ 'error': value['error'],
57
+ 'inventory': InventoryToJSON(value['inventory']),
44
58
  };
45
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
  }
@@ -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
+ }