@openshift-migration-advisor/agent-sdk 0.8.0-a3f90da0e31d → 0.8.0-adc7901d9658

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.
@@ -21,50 +21,11 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
21
21
  });
22
22
  };
23
23
  import * as runtime from '../runtime.js';
24
- import { AgentModeRequestToJSON, AgentStatusFromJSON, CollectorStartRequestToJSON, CollectorStatusFromJSON, CreateGroupRequestToJSON, GetInventory200ResponseFromJSON, GroupFromJSON, GroupListResponseFromJSON, GroupResponseFromJSON, InspectorStartRequestToJSON, InspectorStatusFromJSON, UpdateGroupRequestToJSON, VddkPropertiesFromJSON, VersionInfoFromJSON, VirtualMachineDetailFromJSON, VirtualMachineListResponseFromJSON, VmInspectionStatusFromJSON, } from '../models/index.js';
24
+ import { AgentModeRequestToJSON, AgentStatusFromJSON, CollectorStartRequestToJSON, CollectorStatusFromJSON, CreateGroupRequestToJSON, GetInventory200ResponseFromJSON, GroupFromJSON, GroupListResponseFromJSON, GroupResponseFromJSON, InspectorStatusFromJSON, StartInspectionRequestToJSON, UpdateGroupRequestToJSON, VcenterCredentialsToJSON, VddkPropertiesFromJSON, VersionInfoFromJSON, VirtualMachineDetailFromJSON, VirtualMachineListResponseFromJSON, VmInspectionStatusFromJSON, } from '../models/index.js';
25
25
  /**
26
26
  *
27
27
  */
28
28
  export class DefaultApi extends runtime.BaseAPI {
29
- /**
30
- * Creates request options for addVMToInspection without sending the request
31
- */
32
- addVMToInspectionRequestOpts(requestParameters) {
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 addVMToInspection().');
36
- }
37
- const queryParameters = {};
38
- const headerParameters = {};
39
- let urlPath = `/vms/{id}/inspection`;
40
- urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
41
- return {
42
- path: urlPath,
43
- method: 'POST',
44
- headers: headerParameters,
45
- query: queryParameters,
46
- };
47
- });
48
- }
49
- /**
50
- * Add VirtualMachine to inspection queue
51
- */
52
- addVMToInspectionRaw(requestParameters, initOverrides) {
53
- return __awaiter(this, void 0, void 0, function* () {
54
- const requestOptions = yield this.addVMToInspectionRequestOpts(requestParameters);
55
- const response = yield this.request(requestOptions, initOverrides);
56
- return new runtime.JSONApiResponse(response, (jsonValue) => VmInspectionStatusFromJSON(jsonValue));
57
- });
58
- }
59
- /**
60
- * Add VirtualMachine to inspection queue
61
- */
62
- addVMToInspection(requestParameters, initOverrides) {
63
- return __awaiter(this, void 0, void 0, function* () {
64
- const response = yield this.addVMToInspectionRaw(requestParameters, initOverrides);
65
- return yield response.value();
66
- });
67
- }
68
29
  /**
69
30
  * Creates request options for createGroup without sending the request
70
31
  */
@@ -264,9 +225,15 @@ export class DefaultApi extends runtime.BaseAPI {
264
225
  /**
265
226
  * Creates request options for getInspectorStatus without sending the request
266
227
  */
267
- getInspectorStatusRequestOpts() {
228
+ getInspectorStatusRequestOpts(requestParameters) {
268
229
  return __awaiter(this, void 0, void 0, function* () {
269
230
  const queryParameters = {};
231
+ if (requestParameters['includeVddk'] != null) {
232
+ queryParameters['includeVddk'] = requestParameters['includeVddk'];
233
+ }
234
+ if (requestParameters['includeCredentials'] != null) {
235
+ queryParameters['includeCredentials'] = requestParameters['includeCredentials'];
236
+ }
270
237
  const headerParameters = {};
271
238
  let urlPath = `/inspector`;
272
239
  return {
@@ -280,9 +247,9 @@ export class DefaultApi extends runtime.BaseAPI {
280
247
  /**
281
248
  * Get inspector status
282
249
  */
283
- getInspectorStatusRaw(initOverrides) {
250
+ getInspectorStatusRaw(requestParameters, initOverrides) {
284
251
  return __awaiter(this, void 0, void 0, function* () {
285
- const requestOptions = yield this.getInspectorStatusRequestOpts();
252
+ const requestOptions = yield this.getInspectorStatusRequestOpts(requestParameters);
286
253
  const response = yield this.request(requestOptions, initOverrides);
287
254
  return new runtime.JSONApiResponse(response, (jsonValue) => InspectorStatusFromJSON(jsonValue));
288
255
  });
@@ -290,9 +257,44 @@ export class DefaultApi extends runtime.BaseAPI {
290
257
  /**
291
258
  * Get inspector status
292
259
  */
293
- getInspectorStatus(initOverrides) {
260
+ getInspectorStatus() {
261
+ return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) {
262
+ const response = yield this.getInspectorStatusRaw(requestParameters, initOverrides);
263
+ return yield response.value();
264
+ });
265
+ }
266
+ /**
267
+ * Creates request options for getInspectorVddkStatus without sending the request
268
+ */
269
+ getInspectorVddkStatusRequestOpts() {
270
+ return __awaiter(this, void 0, void 0, function* () {
271
+ const queryParameters = {};
272
+ const headerParameters = {};
273
+ let urlPath = `/inspector/vddk`;
274
+ return {
275
+ path: urlPath,
276
+ method: 'GET',
277
+ headers: headerParameters,
278
+ query: queryParameters,
279
+ };
280
+ });
281
+ }
282
+ /**
283
+ * Get VDDK status
284
+ */
285
+ getInspectorVddkStatusRaw(initOverrides) {
286
+ return __awaiter(this, void 0, void 0, function* () {
287
+ const requestOptions = yield this.getInspectorVddkStatusRequestOpts();
288
+ const response = yield this.request(requestOptions, initOverrides);
289
+ return new runtime.JSONApiResponse(response, (jsonValue) => VddkPropertiesFromJSON(jsonValue));
290
+ });
291
+ }
292
+ /**
293
+ * Get VDDK status
294
+ */
295
+ getInspectorVddkStatus(initOverrides) {
294
296
  return __awaiter(this, void 0, void 0, function* () {
295
- const response = yield this.getInspectorStatusRaw(initOverrides);
297
+ const response = yield this.getInspectorVddkStatusRaw(initOverrides);
296
298
  return yield response.value();
297
299
  });
298
300
  }
@@ -423,41 +425,6 @@ export class DefaultApi extends runtime.BaseAPI {
423
425
  return yield response.value();
424
426
  });
425
427
  }
426
- /**
427
- * Creates request options for getVddkStatus without sending the request
428
- */
429
- getVddkStatusRequestOpts() {
430
- return __awaiter(this, void 0, void 0, function* () {
431
- const queryParameters = {};
432
- const headerParameters = {};
433
- let urlPath = `/vddk`;
434
- return {
435
- path: urlPath,
436
- method: 'GET',
437
- headers: headerParameters,
438
- query: queryParameters,
439
- };
440
- });
441
- }
442
- /**
443
- * Get VDDK status
444
- */
445
- getVddkStatusRaw(initOverrides) {
446
- return __awaiter(this, void 0, void 0, function* () {
447
- const requestOptions = yield this.getVddkStatusRequestOpts();
448
- const response = yield this.request(requestOptions, initOverrides);
449
- return new runtime.JSONApiResponse(response, (jsonValue) => VddkPropertiesFromJSON(jsonValue));
450
- });
451
- }
452
- /**
453
- * Get VDDK status
454
- */
455
- getVddkStatus(initOverrides) {
456
- return __awaiter(this, void 0, void 0, function* () {
457
- const response = yield this.getVddkStatusRaw(initOverrides);
458
- return yield response.value();
459
- });
460
- }
461
428
  /**
462
429
  * Creates request options for getVersion without sending the request
463
430
  */
@@ -537,6 +504,102 @@ export class DefaultApi extends runtime.BaseAPI {
537
504
  return yield response.value();
538
505
  });
539
506
  }
507
+ /**
508
+ * Creates request options for putInspectorCredentials without sending the request
509
+ */
510
+ putInspectorCredentialsRequestOpts(requestParameters) {
511
+ return __awaiter(this, void 0, void 0, function* () {
512
+ if (requestParameters['vcenterCredentials'] == null) {
513
+ throw new runtime.RequiredError('vcenterCredentials', 'Required parameter "vcenterCredentials" was null or undefined when calling putInspectorCredentials().');
514
+ }
515
+ const queryParameters = {};
516
+ const headerParameters = {};
517
+ headerParameters['Content-Type'] = 'application/json';
518
+ let urlPath = `/inspector/credentials`;
519
+ return {
520
+ path: urlPath,
521
+ method: 'PUT',
522
+ headers: headerParameters,
523
+ query: queryParameters,
524
+ body: VcenterCredentialsToJSON(requestParameters['vcenterCredentials']),
525
+ };
526
+ });
527
+ }
528
+ /**
529
+ * Set or replace inspector credentials
530
+ */
531
+ putInspectorCredentialsRaw(requestParameters, initOverrides) {
532
+ return __awaiter(this, void 0, void 0, function* () {
533
+ const requestOptions = yield this.putInspectorCredentialsRequestOpts(requestParameters);
534
+ const response = yield this.request(requestOptions, initOverrides);
535
+ return new runtime.VoidApiResponse(response);
536
+ });
537
+ }
538
+ /**
539
+ * Set or replace inspector credentials
540
+ */
541
+ putInspectorCredentials(requestParameters, initOverrides) {
542
+ return __awaiter(this, void 0, void 0, function* () {
543
+ yield this.putInspectorCredentialsRaw(requestParameters, initOverrides);
544
+ });
545
+ }
546
+ /**
547
+ * Creates request options for putInspectorVddk without sending the request
548
+ */
549
+ putInspectorVddkRequestOpts(requestParameters) {
550
+ return __awaiter(this, void 0, void 0, function* () {
551
+ if (requestParameters['file'] == null) {
552
+ throw new runtime.RequiredError('file', 'Required parameter "file" was null or undefined when calling putInspectorVddk().');
553
+ }
554
+ const queryParameters = {};
555
+ const headerParameters = {};
556
+ const consumes = [
557
+ { contentType: 'multipart/form-data' },
558
+ ];
559
+ // @ts-ignore: canConsumeForm may be unused
560
+ const canConsumeForm = runtime.canConsumeForm(consumes);
561
+ let formParams;
562
+ let useForm = false;
563
+ // use FormData to transmit files using content-type "multipart/form-data"
564
+ useForm = canConsumeForm;
565
+ if (useForm) {
566
+ formParams = new FormData();
567
+ }
568
+ else {
569
+ formParams = new URLSearchParams();
570
+ }
571
+ if (requestParameters['file'] != null) {
572
+ formParams.append('file', requestParameters['file']);
573
+ }
574
+ let urlPath = `/inspector/vddk`;
575
+ return {
576
+ path: urlPath,
577
+ method: 'PUT',
578
+ headers: headerParameters,
579
+ query: queryParameters,
580
+ body: formParams,
581
+ };
582
+ });
583
+ }
584
+ /**
585
+ * Upload VDDK tarball
586
+ */
587
+ putInspectorVddkRaw(requestParameters, initOverrides) {
588
+ return __awaiter(this, void 0, void 0, function* () {
589
+ const requestOptions = yield this.putInspectorVddkRequestOpts(requestParameters);
590
+ const response = yield this.request(requestOptions, initOverrides);
591
+ return new runtime.JSONApiResponse(response, (jsonValue) => VddkPropertiesFromJSON(jsonValue));
592
+ });
593
+ }
594
+ /**
595
+ * Upload VDDK tarball
596
+ */
597
+ putInspectorVddk(requestParameters, initOverrides) {
598
+ return __awaiter(this, void 0, void 0, function* () {
599
+ const response = yield this.putInspectorVddkRaw(requestParameters, initOverrides);
600
+ return yield response.value();
601
+ });
602
+ }
540
603
  /**
541
604
  * Creates request options for removeVMFromInspection without sending the request
542
605
  */
@@ -661,8 +724,8 @@ export class DefaultApi extends runtime.BaseAPI {
661
724
  */
662
725
  startInspectionRequestOpts(requestParameters) {
663
726
  return __awaiter(this, void 0, void 0, function* () {
664
- if (requestParameters['inspectorStartRequest'] == null) {
665
- throw new runtime.RequiredError('inspectorStartRequest', 'Required parameter "inspectorStartRequest" was null or undefined when calling startInspection().');
727
+ if (requestParameters['startInspectionRequest'] == null) {
728
+ throw new runtime.RequiredError('startInspectionRequest', 'Required parameter "startInspectionRequest" was null or undefined when calling startInspection().');
666
729
  }
667
730
  const queryParameters = {};
668
731
  const headerParameters = {};
@@ -673,7 +736,7 @@ export class DefaultApi extends runtime.BaseAPI {
673
736
  method: 'POST',
674
737
  headers: headerParameters,
675
738
  query: queryParameters,
676
- body: InspectorStartRequestToJSON(requestParameters['inspectorStartRequest']),
739
+ body: StartInspectionRequestToJSON(requestParameters['startInspectionRequest']),
677
740
  };
678
741
  });
679
742
  }
@@ -809,61 +872,4 @@ export class DefaultApi extends runtime.BaseAPI {
809
872
  return yield response.value();
810
873
  });
811
874
  }
812
- /**
813
- * Creates request options for vddkPost without sending the request
814
- */
815
- vddkPostRequestOpts(requestParameters) {
816
- return __awaiter(this, void 0, void 0, function* () {
817
- if (requestParameters['file'] == null) {
818
- throw new runtime.RequiredError('file', 'Required parameter "file" was null or undefined when calling vddkPost().');
819
- }
820
- const queryParameters = {};
821
- const headerParameters = {};
822
- const consumes = [
823
- { contentType: 'multipart/form-data' },
824
- ];
825
- // @ts-ignore: canConsumeForm may be unused
826
- const canConsumeForm = runtime.canConsumeForm(consumes);
827
- let formParams;
828
- let useForm = false;
829
- // use FormData to transmit files using content-type "multipart/form-data"
830
- useForm = canConsumeForm;
831
- if (useForm) {
832
- formParams = new FormData();
833
- }
834
- else {
835
- formParams = new URLSearchParams();
836
- }
837
- if (requestParameters['file'] != null) {
838
- formParams.append('file', requestParameters['file']);
839
- }
840
- let urlPath = `/vddk`;
841
- return {
842
- path: urlPath,
843
- method: 'POST',
844
- headers: headerParameters,
845
- query: queryParameters,
846
- body: formParams,
847
- };
848
- });
849
- }
850
- /**
851
- * Upload VDDK tarball
852
- */
853
- vddkPostRaw(requestParameters, initOverrides) {
854
- return __awaiter(this, void 0, void 0, function* () {
855
- const requestOptions = yield this.vddkPostRequestOpts(requestParameters);
856
- const response = yield this.request(requestOptions, initOverrides);
857
- return new runtime.JSONApiResponse(response, (jsonValue) => VddkPropertiesFromJSON(jsonValue));
858
- });
859
- }
860
- /**
861
- * Upload VDDK tarball
862
- */
863
- vddkPost(requestParameters, initOverrides) {
864
- return __awaiter(this, void 0, void 0, function* () {
865
- const response = yield this.vddkPostRaw(requestParameters, initOverrides);
866
- return yield response.value();
867
- });
868
- }
869
875
  }
@@ -9,6 +9,8 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import type { VddkProperties } from './VddkProperties.js';
13
+ import type { VcenterCredentials } from './VcenterCredentials.js';
12
14
  /**
13
15
  *
14
16
  * @export
@@ -21,6 +23,18 @@ export interface InspectorStatus {
21
23
  * @memberof InspectorStatus
22
24
  */
23
25
  state: InspectorStatusStateEnum;
26
+ /**
27
+ *
28
+ * @type {VcenterCredentials}
29
+ * @memberof InspectorStatus
30
+ */
31
+ credentials?: VcenterCredentials;
32
+ /**
33
+ *
34
+ * @type {VddkProperties}
35
+ * @memberof InspectorStatus
36
+ */
37
+ vddk?: VddkProperties;
24
38
  /**
25
39
  * Error message when state is error
26
40
  * @type {string}
@@ -11,6 +11,8 @@
11
11
  * https://openapi-generator.tech
12
12
  * Do not edit the class manually.
13
13
  */
14
+ import { VddkPropertiesFromJSON, VddkPropertiesToJSON, } from './VddkProperties.js';
15
+ import { VcenterCredentialsFromJSON, VcenterCredentialsToJSON, } from './VcenterCredentials.js';
14
16
  /**
15
17
  * @export
16
18
  */
@@ -39,6 +41,8 @@ export function InspectorStatusFromJSONTyped(json, ignoreDiscriminator) {
39
41
  }
40
42
  return {
41
43
  'state': json['state'],
44
+ 'credentials': json['credentials'] == null ? undefined : VcenterCredentialsFromJSON(json['credentials']),
45
+ 'vddk': json['vddk'] == null ? undefined : VddkPropertiesFromJSON(json['vddk']),
42
46
  'error': json['error'] == null ? undefined : json['error'],
43
47
  };
44
48
  }
@@ -51,6 +55,8 @@ export function InspectorStatusToJSONTyped(value, ignoreDiscriminator = false) {
51
55
  }
52
56
  return {
53
57
  'state': value['state'],
58
+ 'credentials': VcenterCredentialsToJSON(value['credentials']),
59
+ 'vddk': VddkPropertiesToJSON(value['vddk']),
54
60
  'error': value['error'],
55
61
  };
56
62
  }
@@ -0,0 +1,32 @@
1
+ /**
2
+ * Assisted Migration Agent API
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: v1
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
+ * Array of VirtualMachine id
14
+ * @export
15
+ * @interface StartInspectionRequest
16
+ */
17
+ export interface StartInspectionRequest {
18
+ /**
19
+ *
20
+ * @type {Array<string>}
21
+ * @memberof StartInspectionRequest
22
+ */
23
+ vmIds: Array<string>;
24
+ }
25
+ /**
26
+ * Check if a given object implements the StartInspectionRequest interface.
27
+ */
28
+ export declare function instanceOfStartInspectionRequest(value: object): value is StartInspectionRequest;
29
+ export declare function StartInspectionRequestFromJSON(json: any): StartInspectionRequest;
30
+ export declare function StartInspectionRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): StartInspectionRequest;
31
+ export declare function StartInspectionRequestToJSON(json: any): StartInspectionRequest;
32
+ export declare function StartInspectionRequestToJSONTyped(value?: StartInspectionRequest | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,43 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Assisted Migration Agent API
5
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
+ *
7
+ * The version of the OpenAPI document: v1
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 StartInspectionRequest interface.
16
+ */
17
+ export function instanceOfStartInspectionRequest(value) {
18
+ if (!('vmIds' in value) || value['vmIds'] === undefined)
19
+ return false;
20
+ return true;
21
+ }
22
+ export function StartInspectionRequestFromJSON(json) {
23
+ return StartInspectionRequestFromJSONTyped(json, false);
24
+ }
25
+ export function StartInspectionRequestFromJSONTyped(json, ignoreDiscriminator) {
26
+ if (json == null) {
27
+ return json;
28
+ }
29
+ return {
30
+ 'vmIds': json['vmIds'],
31
+ };
32
+ }
33
+ export function StartInspectionRequestToJSON(json) {
34
+ return StartInspectionRequestToJSONTyped(json, false);
35
+ }
36
+ export function StartInspectionRequestToJSONTyped(value, ignoreDiscriminator = false) {
37
+ if (value == null) {
38
+ return value;
39
+ }
40
+ return {
41
+ 'vmIds': value['vmIds'],
42
+ };
43
+ }
@@ -14,13 +14,13 @@ export * from './GuestNetwork.js';
14
14
  export * from './Histogram.js';
15
15
  export * from './Host.js';
16
16
  export * from './Infra.js';
17
- export * from './InspectorStartRequest.js';
18
17
  export * from './InspectorStatus.js';
19
18
  export * from './Inventory.js';
20
19
  export * from './InventoryData.js';
21
20
  export * from './MigrationIssue.js';
22
21
  export * from './Network.js';
23
22
  export * from './OsInfo.js';
23
+ export * from './StartInspectionRequest.js';
24
24
  export * from './UpdateGroupRequest.js';
25
25
  export * from './UpdateInventory.js';
26
26
  export * from './VCenter.js';
@@ -16,13 +16,13 @@ export * from './GuestNetwork.js';
16
16
  export * from './Histogram.js';
17
17
  export * from './Host.js';
18
18
  export * from './Infra.js';
19
- export * from './InspectorStartRequest.js';
20
19
  export * from './InspectorStatus.js';
21
20
  export * from './Inventory.js';
22
21
  export * from './InventoryData.js';
23
22
  export * from './MigrationIssue.js';
24
23
  export * from './Network.js';
25
24
  export * from './OsInfo.js';
25
+ export * from './StartInspectionRequest.js';
26
26
  export * from './UpdateGroupRequest.js';
27
27
  export * from './UpdateInventory.js';
28
28
  export * from './VCenter.js';
@@ -9,6 +9,8 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import type { VddkProperties } from './VddkProperties.js';
13
+ import type { VcenterCredentials } from './VcenterCredentials.js';
12
14
  /**
13
15
  *
14
16
  * @export
@@ -21,6 +23,18 @@ export interface InspectorStatus {
21
23
  * @memberof InspectorStatus
22
24
  */
23
25
  state: InspectorStatusStateEnum;
26
+ /**
27
+ *
28
+ * @type {VcenterCredentials}
29
+ * @memberof InspectorStatus
30
+ */
31
+ credentials?: VcenterCredentials;
32
+ /**
33
+ *
34
+ * @type {VddkProperties}
35
+ * @memberof InspectorStatus
36
+ */
37
+ vddk?: VddkProperties;
24
38
  /**
25
39
  * Error message when state is error
26
40
  * @type {string}
@@ -19,6 +19,8 @@ exports.InspectorStatusFromJSON = InspectorStatusFromJSON;
19
19
  exports.InspectorStatusFromJSONTyped = InspectorStatusFromJSONTyped;
20
20
  exports.InspectorStatusToJSON = InspectorStatusToJSON;
21
21
  exports.InspectorStatusToJSONTyped = InspectorStatusToJSONTyped;
22
+ const VddkProperties_js_1 = require("./VddkProperties.js");
23
+ const VcenterCredentials_js_1 = require("./VcenterCredentials.js");
22
24
  /**
23
25
  * @export
24
26
  */
@@ -47,6 +49,8 @@ function InspectorStatusFromJSONTyped(json, ignoreDiscriminator) {
47
49
  }
48
50
  return {
49
51
  'state': json['state'],
52
+ 'credentials': json['credentials'] == null ? undefined : (0, VcenterCredentials_js_1.VcenterCredentialsFromJSON)(json['credentials']),
53
+ 'vddk': json['vddk'] == null ? undefined : (0, VddkProperties_js_1.VddkPropertiesFromJSON)(json['vddk']),
50
54
  'error': json['error'] == null ? undefined : json['error'],
51
55
  };
52
56
  }
@@ -59,6 +63,8 @@ function InspectorStatusToJSONTyped(value, ignoreDiscriminator = false) {
59
63
  }
60
64
  return {
61
65
  'state': value['state'],
66
+ 'credentials': (0, VcenterCredentials_js_1.VcenterCredentialsToJSON)(value['credentials']),
67
+ 'vddk': (0, VddkProperties_js_1.VddkPropertiesToJSON)(value['vddk']),
62
68
  'error': value['error'],
63
69
  };
64
70
  }
@@ -0,0 +1,32 @@
1
+ /**
2
+ * Assisted Migration Agent API
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: v1
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
+ * Array of VirtualMachine id
14
+ * @export
15
+ * @interface StartInspectionRequest
16
+ */
17
+ export interface StartInspectionRequest {
18
+ /**
19
+ *
20
+ * @type {Array<string>}
21
+ * @memberof StartInspectionRequest
22
+ */
23
+ vmIds: Array<string>;
24
+ }
25
+ /**
26
+ * Check if a given object implements the StartInspectionRequest interface.
27
+ */
28
+ export declare function instanceOfStartInspectionRequest(value: object): value is StartInspectionRequest;
29
+ export declare function StartInspectionRequestFromJSON(json: any): StartInspectionRequest;
30
+ export declare function StartInspectionRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): StartInspectionRequest;
31
+ export declare function StartInspectionRequestToJSON(json: any): StartInspectionRequest;
32
+ export declare function StartInspectionRequestToJSONTyped(value?: StartInspectionRequest | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,50 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Assisted Migration Agent API
6
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
+ *
8
+ * The version of the OpenAPI document: v1
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfStartInspectionRequest = instanceOfStartInspectionRequest;
17
+ exports.StartInspectionRequestFromJSON = StartInspectionRequestFromJSON;
18
+ exports.StartInspectionRequestFromJSONTyped = StartInspectionRequestFromJSONTyped;
19
+ exports.StartInspectionRequestToJSON = StartInspectionRequestToJSON;
20
+ exports.StartInspectionRequestToJSONTyped = StartInspectionRequestToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the StartInspectionRequest interface.
23
+ */
24
+ function instanceOfStartInspectionRequest(value) {
25
+ if (!('vmIds' in value) || value['vmIds'] === undefined)
26
+ return false;
27
+ return true;
28
+ }
29
+ function StartInspectionRequestFromJSON(json) {
30
+ return StartInspectionRequestFromJSONTyped(json, false);
31
+ }
32
+ function StartInspectionRequestFromJSONTyped(json, ignoreDiscriminator) {
33
+ if (json == null) {
34
+ return json;
35
+ }
36
+ return {
37
+ 'vmIds': json['vmIds'],
38
+ };
39
+ }
40
+ function StartInspectionRequestToJSON(json) {
41
+ return StartInspectionRequestToJSONTyped(json, false);
42
+ }
43
+ function StartInspectionRequestToJSONTyped(value, ignoreDiscriminator = false) {
44
+ if (value == null) {
45
+ return value;
46
+ }
47
+ return {
48
+ 'vmIds': value['vmIds'],
49
+ };
50
+ }
@@ -14,13 +14,13 @@ export * from './GuestNetwork.js';
14
14
  export * from './Histogram.js';
15
15
  export * from './Host.js';
16
16
  export * from './Infra.js';
17
- export * from './InspectorStartRequest.js';
18
17
  export * from './InspectorStatus.js';
19
18
  export * from './Inventory.js';
20
19
  export * from './InventoryData.js';
21
20
  export * from './MigrationIssue.js';
22
21
  export * from './Network.js';
23
22
  export * from './OsInfo.js';
23
+ export * from './StartInspectionRequest.js';
24
24
  export * from './UpdateGroupRequest.js';
25
25
  export * from './UpdateInventory.js';
26
26
  export * from './VCenter.js';