@migration-planner-ui/agent-client 0.0.36 → 0.0.38

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 (109) hide show
  1. package/dist/apis/DefaultApi.d.ts +381 -0
  2. package/dist/apis/DefaultApi.d.ts.map +1 -0
  3. package/dist/apis/DefaultApi.js +502 -0
  4. package/dist/apis/index.d.ts +1 -1
  5. package/dist/apis/index.js +1 -1
  6. package/dist/models/AgentModeRequest.d.ts +41 -0
  7. package/dist/models/AgentModeRequest.d.ts.map +1 -0
  8. package/dist/models/AgentModeRequest.js +50 -0
  9. package/dist/models/AgentStatus.d.ts +61 -0
  10. package/dist/models/AgentStatus.d.ts.map +1 -0
  11. package/dist/models/AgentStatus.js +63 -0
  12. package/dist/models/CollectorStartRequest.d.ts +45 -0
  13. package/dist/models/CollectorStartRequest.d.ts.map +1 -0
  14. package/dist/models/{Credentials.js → CollectorStartRequest.js} +11 -13
  15. package/dist/models/CollectorStatus.d.ts +52 -0
  16. package/dist/models/CollectorStatus.d.ts.map +1 -0
  17. package/dist/models/CollectorStatus.js +57 -0
  18. package/dist/models/Datastore.d.ts +3 -3
  19. package/dist/models/Datastore.js +3 -3
  20. package/dist/models/DiskSizeTierSummary.d.ts +3 -3
  21. package/dist/models/DiskSizeTierSummary.js +3 -3
  22. package/dist/models/DiskTypeSummary.d.ts +3 -3
  23. package/dist/models/DiskTypeSummary.js +3 -3
  24. package/dist/models/GuestNetwork.d.ts +57 -0
  25. package/dist/models/GuestNetwork.d.ts.map +1 -0
  26. package/dist/models/GuestNetwork.js +49 -0
  27. package/dist/models/Histogram.d.ts +3 -3
  28. package/dist/models/Histogram.js +3 -3
  29. package/dist/models/Host.d.ts +3 -3
  30. package/dist/models/Host.js +3 -3
  31. package/dist/models/Infra.d.ts +3 -3
  32. package/dist/models/Infra.js +3 -3
  33. package/dist/models/InspectorStartRequest.d.ts +40 -0
  34. package/dist/models/InspectorStartRequest.d.ts.map +1 -0
  35. package/dist/models/InspectorStartRequest.js +48 -0
  36. package/dist/models/InspectorStatus.d.ts +52 -0
  37. package/dist/models/InspectorStatus.d.ts.map +1 -0
  38. package/dist/models/InspectorStatus.js +57 -0
  39. package/dist/models/Inventory.d.ts +3 -3
  40. package/dist/models/Inventory.js +3 -3
  41. package/dist/models/InventoryData.d.ts +3 -3
  42. package/dist/models/InventoryData.js +3 -3
  43. package/dist/models/MigrationIssue.d.ts +3 -3
  44. package/dist/models/MigrationIssue.js +3 -3
  45. package/dist/models/Network.d.ts +3 -3
  46. package/dist/models/Network.js +3 -3
  47. package/dist/models/OsInfo.d.ts +3 -3
  48. package/dist/models/OsInfo.js +3 -3
  49. package/dist/models/VCenter.d.ts +3 -3
  50. package/dist/models/VCenter.js +3 -3
  51. package/dist/models/VM.d.ts +76 -0
  52. package/dist/models/VM.d.ts.map +1 -0
  53. package/dist/models/VM.js +72 -0
  54. package/dist/models/VMDetails.d.ts +212 -0
  55. package/dist/models/VMDetails.d.ts.map +1 -0
  56. package/dist/models/VMDetails.js +122 -0
  57. package/dist/models/VMDevice.d.ts +33 -0
  58. package/dist/models/VMDevice.d.ts.map +1 -0
  59. package/dist/models/VMDevice.js +41 -0
  60. package/dist/models/VMDisk.d.ts +69 -0
  61. package/dist/models/VMDisk.d.ts.map +1 -0
  62. package/dist/models/VMDisk.js +53 -0
  63. package/dist/models/VMListResponse.d.ts +52 -0
  64. package/dist/models/VMListResponse.d.ts.map +1 -0
  65. package/dist/models/VMListResponse.js +56 -0
  66. package/dist/models/VMNIC.d.ts +45 -0
  67. package/dist/models/VMNIC.d.ts.map +1 -0
  68. package/dist/models/VMNIC.js +45 -0
  69. package/dist/models/VMResourceBreakdown.d.ts +3 -3
  70. package/dist/models/VMResourceBreakdown.js +3 -3
  71. package/dist/models/VMs.d.ts +17 -3
  72. package/dist/models/VMs.d.ts.map +1 -1
  73. package/dist/models/VMs.js +7 -3
  74. package/dist/models/VcenterCredentials.d.ts +45 -0
  75. package/dist/models/VcenterCredentials.d.ts.map +1 -0
  76. package/dist/models/VcenterCredentials.js +51 -0
  77. package/dist/models/VddkPost200Response.d.ts +39 -0
  78. package/dist/models/VddkPost200Response.d.ts.map +1 -0
  79. package/dist/models/VddkPost200Response.js +47 -0
  80. package/dist/models/VmInspectionStatus.d.ts +57 -0
  81. package/dist/models/VmInspectionStatus.d.ts.map +1 -0
  82. package/dist/models/VmInspectionStatus.js +58 -0
  83. package/dist/models/index.d.ts +16 -6
  84. package/dist/models/index.d.ts.map +1 -1
  85. package/dist/models/index.js +16 -6
  86. package/dist/runtime.d.ts +3 -3
  87. package/dist/runtime.d.ts.map +1 -1
  88. package/dist/runtime.js +4 -4
  89. package/package.json +2 -5
  90. package/dist/apis/AgentUiApi.d.ts +0 -126
  91. package/dist/apis/AgentUiApi.d.ts.map +0 -1
  92. package/dist/apis/AgentUiApi.js +0 -163
  93. package/dist/models/Credentials.d.ts +0 -51
  94. package/dist/models/Credentials.d.ts.map +0 -1
  95. package/dist/models/InventoryReply.d.ts +0 -40
  96. package/dist/models/InventoryReply.d.ts.map +0 -1
  97. package/dist/models/InventoryReply.js +0 -48
  98. package/dist/models/ModelError.d.ts +0 -33
  99. package/dist/models/ModelError.d.ts.map +0 -1
  100. package/dist/models/ModelError.js +0 -43
  101. package/dist/models/ServiceUIReply.d.ts +0 -33
  102. package/dist/models/ServiceUIReply.d.ts.map +0 -1
  103. package/dist/models/ServiceUIReply.js +0 -43
  104. package/dist/models/StatusReply.d.ts +0 -81
  105. package/dist/models/StatusReply.d.ts.map +0 -1
  106. package/dist/models/StatusReply.js +0 -70
  107. package/dist/models/VersionReply.d.ts +0 -33
  108. package/dist/models/VersionReply.d.ts.map +0 -1
  109. package/dist/models/VersionReply.js +0 -43
@@ -0,0 +1,48 @@
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
+ import { VcenterCredentialsFromJSON, VcenterCredentialsToJSON, } from './VcenterCredentials.js';
15
+ /**
16
+ * Check if a given object implements the InspectorStartRequest interface.
17
+ */
18
+ export function instanceOfInspectorStartRequest(value) {
19
+ if (!('vcenterCredentials' in value) || value['vcenterCredentials'] === undefined)
20
+ return false;
21
+ if (!('vmIds' in value) || value['vmIds'] === undefined)
22
+ return false;
23
+ return true;
24
+ }
25
+ export function InspectorStartRequestFromJSON(json) {
26
+ return InspectorStartRequestFromJSONTyped(json, false);
27
+ }
28
+ export function InspectorStartRequestFromJSONTyped(json, ignoreDiscriminator) {
29
+ if (json == null) {
30
+ return json;
31
+ }
32
+ return {
33
+ 'vcenterCredentials': VcenterCredentialsFromJSON(json['VcenterCredentials']),
34
+ 'vmIds': json['vmIds'],
35
+ };
36
+ }
37
+ export function InspectorStartRequestToJSON(json) {
38
+ return InspectorStartRequestToJSONTyped(json, false);
39
+ }
40
+ export function InspectorStartRequestToJSONTyped(value, ignoreDiscriminator = false) {
41
+ if (value == null) {
42
+ return value;
43
+ }
44
+ return {
45
+ 'VcenterCredentials': VcenterCredentialsToJSON(value['vcenterCredentials']),
46
+ 'vmIds': value['vmIds'],
47
+ };
48
+ }
@@ -0,0 +1,52 @@
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
+ *
14
+ * @export
15
+ * @interface InspectorStatus
16
+ */
17
+ export interface InspectorStatus {
18
+ /**
19
+ * Inspector state
20
+ * @type {string}
21
+ * @memberof InspectorStatus
22
+ */
23
+ state: InspectorStatusStateEnum;
24
+ /**
25
+ * Error message when state is error
26
+ * @type {string}
27
+ * @memberof InspectorStatus
28
+ */
29
+ error?: string;
30
+ }
31
+ /**
32
+ * @export
33
+ */
34
+ export declare const InspectorStatusStateEnum: {
35
+ readonly Ready: "ready";
36
+ readonly Initiating: "Initiating";
37
+ readonly Running: "running";
38
+ readonly Canceling: "canceling";
39
+ readonly Canceled: "canceled";
40
+ readonly Completed: "completed";
41
+ readonly Error: "error";
42
+ };
43
+ export type InspectorStatusStateEnum = typeof InspectorStatusStateEnum[keyof typeof InspectorStatusStateEnum];
44
+ /**
45
+ * Check if a given object implements the InspectorStatus interface.
46
+ */
47
+ export declare function instanceOfInspectorStatus(value: object): value is InspectorStatus;
48
+ export declare function InspectorStatusFromJSON(json: any): InspectorStatus;
49
+ export declare function InspectorStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): InspectorStatus;
50
+ export declare function InspectorStatusToJSON(json: any): InspectorStatus;
51
+ export declare function InspectorStatusToJSONTyped(value?: InspectorStatus | null, ignoreDiscriminator?: boolean): any;
52
+ //# sourceMappingURL=InspectorStatus.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"InspectorStatus.d.ts","sourceRoot":"","sources":["../../src/models/InspectorStatus.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,eAAe;IAC5B;;;;OAIG;IACH,KAAK,EAAE,wBAAwB,CAAC;IAChC;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAClB;AAGD;;GAEG;AACH,eAAO,MAAM,wBAAwB;;;;;;;;CAQ3B,CAAC;AACX,MAAM,MAAM,wBAAwB,GAAG,OAAO,wBAAwB,CAAC,MAAM,OAAO,wBAAwB,CAAC,CAAC;AAG9G;;GAEG;AACH,wBAAgB,yBAAyB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,eAAe,CAGjF;AAED,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,GAAG,GAAG,eAAe,CAElE;AAED,wBAAgB,4BAA4B,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,eAAe,CASrG;AAED,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,GAAG,GAAG,eAAe,CAEhE;AAED,wBAAgB,0BAA0B,CAAC,KAAK,CAAC,EAAE,eAAe,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAUpH"}
@@ -0,0 +1,57 @@
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
+ * @export
16
+ */
17
+ export const InspectorStatusStateEnum = {
18
+ Ready: 'ready',
19
+ Initiating: 'Initiating',
20
+ Running: 'running',
21
+ Canceling: 'canceling',
22
+ Canceled: 'canceled',
23
+ Completed: 'completed',
24
+ Error: 'error'
25
+ };
26
+ /**
27
+ * Check if a given object implements the InspectorStatus interface.
28
+ */
29
+ export function instanceOfInspectorStatus(value) {
30
+ if (!('state' in value) || value['state'] === undefined)
31
+ return false;
32
+ return true;
33
+ }
34
+ export function InspectorStatusFromJSON(json) {
35
+ return InspectorStatusFromJSONTyped(json, false);
36
+ }
37
+ export function InspectorStatusFromJSONTyped(json, ignoreDiscriminator) {
38
+ if (json == null) {
39
+ return json;
40
+ }
41
+ return {
42
+ 'state': json['state'],
43
+ 'error': json['error'] == null ? undefined : json['error'],
44
+ };
45
+ }
46
+ export function InspectorStatusToJSON(json) {
47
+ return InspectorStatusToJSONTyped(json, false);
48
+ }
49
+ export function InspectorStatusToJSONTyped(value, ignoreDiscriminator = false) {
50
+ if (value == null) {
51
+ return value;
52
+ }
53
+ return {
54
+ 'state': value['state'],
55
+ 'error': value['error'],
56
+ };
57
+ }
@@ -1,8 +1,8 @@
1
1
  /**
2
- * Migration Planner Agent UI API
3
- * API endpoints for the agent UI to interact with the migration discovery VM
2
+ * Assisted Migration Agent API
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
4
  *
5
- * The version of the OpenAPI document: undefined
5
+ * The version of the OpenAPI document: v1
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -1,10 +1,10 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
3
  /**
4
- * Migration Planner Agent UI API
5
- * API endpoints for the agent UI to interact with the migration discovery VM
4
+ * Assisted Migration Agent API
5
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
6
  *
7
- * The version of the OpenAPI document: undefined
7
+ * The version of the OpenAPI document: v1
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -1,8 +1,8 @@
1
1
  /**
2
- * Migration Planner Agent UI API
3
- * API endpoints for the agent UI to interact with the migration discovery VM
2
+ * Assisted Migration Agent API
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
4
  *
5
- * The version of the OpenAPI document: undefined
5
+ * The version of the OpenAPI document: v1
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -1,10 +1,10 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
3
  /**
4
- * Migration Planner Agent UI API
5
- * API endpoints for the agent UI to interact with the migration discovery VM
4
+ * Assisted Migration Agent API
5
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
6
  *
7
- * The version of the OpenAPI document: undefined
7
+ * The version of the OpenAPI document: v1
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -1,8 +1,8 @@
1
1
  /**
2
- * Migration Planner Agent UI API
3
- * API endpoints for the agent UI to interact with the migration discovery VM
2
+ * Assisted Migration Agent API
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
4
  *
5
- * The version of the OpenAPI document: undefined
5
+ * The version of the OpenAPI document: v1
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -1,10 +1,10 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
3
  /**
4
- * Migration Planner Agent UI API
5
- * API endpoints for the agent UI to interact with the migration discovery VM
4
+ * Assisted Migration Agent API
5
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
6
  *
7
- * The version of the OpenAPI document: undefined
7
+ * The version of the OpenAPI document: v1
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -1,8 +1,8 @@
1
1
  /**
2
- * Migration Planner Agent UI API
3
- * API endpoints for the agent UI to interact with the migration discovery VM
2
+ * Assisted Migration Agent API
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
4
  *
5
- * The version of the OpenAPI document: undefined
5
+ * The version of the OpenAPI document: v1
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -1,10 +1,10 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
3
  /**
4
- * Migration Planner Agent UI API
5
- * API endpoints for the agent UI to interact with the migration discovery VM
4
+ * Assisted Migration Agent API
5
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
6
  *
7
- * The version of the OpenAPI document: undefined
7
+ * The version of the OpenAPI document: v1
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -1,8 +1,8 @@
1
1
  /**
2
- * Migration Planner Agent UI API
3
- * API endpoints for the agent UI to interact with the migration discovery VM
2
+ * Assisted Migration Agent API
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
4
  *
5
- * The version of the OpenAPI document: undefined
5
+ * The version of the OpenAPI document: v1
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -1,10 +1,10 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
3
  /**
4
- * Migration Planner Agent UI API
5
- * API endpoints for the agent UI to interact with the migration discovery VM
4
+ * Assisted Migration Agent API
5
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
6
  *
7
- * The version of the OpenAPI document: undefined
7
+ * The version of the OpenAPI document: v1
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -1,8 +1,8 @@
1
1
  /**
2
- * Migration Planner Agent UI API
3
- * API endpoints for the agent UI to interact with the migration discovery VM
2
+ * Assisted Migration Agent API
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
4
  *
5
- * The version of the OpenAPI document: undefined
5
+ * The version of the OpenAPI document: v1
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -1,10 +1,10 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
3
  /**
4
- * Migration Planner Agent UI API
5
- * API endpoints for the agent UI to interact with the migration discovery VM
4
+ * Assisted Migration Agent API
5
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
6
  *
7
- * The version of the OpenAPI document: undefined
7
+ * The version of the OpenAPI document: v1
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -0,0 +1,76 @@
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
+ import type { VmInspectionStatus } from './VmInspectionStatus.js';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface VM
17
+ */
18
+ export interface VM {
19
+ /**
20
+ * VM name
21
+ * @type {string}
22
+ * @memberof VM
23
+ */
24
+ name: string;
25
+ /**
26
+ * VM ID
27
+ * @type {string}
28
+ * @memberof VM
29
+ */
30
+ id: string;
31
+ /**
32
+ * vCenter state (e.g., poweredOn, poweredOff, suspended)
33
+ * @type {string}
34
+ * @memberof VM
35
+ */
36
+ vCenterState: string;
37
+ /**
38
+ * Cluster name
39
+ * @type {string}
40
+ * @memberof VM
41
+ */
42
+ cluster: string;
43
+ /**
44
+ * Total disk size in MB
45
+ * @type {number}
46
+ * @memberof VM
47
+ */
48
+ diskSize: number;
49
+ /**
50
+ * Memory size in MB
51
+ * @type {number}
52
+ * @memberof VM
53
+ */
54
+ memory: number;
55
+ /**
56
+ * Number of issues found for this VM
57
+ * @type {number}
58
+ * @memberof VM
59
+ */
60
+ issueCount: number;
61
+ /**
62
+ *
63
+ * @type {VmInspectionStatus}
64
+ * @memberof VM
65
+ */
66
+ inspection: VmInspectionStatus;
67
+ }
68
+ /**
69
+ * Check if a given object implements the VM interface.
70
+ */
71
+ export declare function instanceOfVM(value: object): value is VM;
72
+ export declare function VMFromJSON(json: any): VM;
73
+ export declare function VMFromJSONTyped(json: any, ignoreDiscriminator: boolean): VM;
74
+ export declare function VMToJSON(json: any): VM;
75
+ export declare function VMToJSONTyped(value?: VM | null, ignoreDiscriminator?: boolean): any;
76
+ //# sourceMappingURL=VM.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"VM.d.ts","sourceRoot":"","sources":["../../src/models/VM.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAQlE;;;;GAIG;AACH,MAAM,WAAW,EAAE;IACf;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;;;OAIG;IACH,YAAY,EAAE,MAAM,CAAC;IACrB;;;;OAIG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,UAAU,EAAE,kBAAkB,CAAC;CAClC;AAED;;GAEG;AACH,wBAAgB,YAAY,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,EAAE,CAUvD;AAED,wBAAgB,UAAU,CAAC,IAAI,EAAE,GAAG,GAAG,EAAE,CAExC;AAED,wBAAgB,eAAe,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,EAAE,CAe3E;AAED,wBAAgB,QAAQ,CAAC,IAAI,EAAE,GAAG,GAAG,EAAE,CAEtC;AAED,wBAAgB,aAAa,CAAC,KAAK,CAAC,EAAE,EAAE,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAgB1F"}
@@ -0,0 +1,72 @@
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
+ import { VmInspectionStatusFromJSON, VmInspectionStatusToJSON, } from './VmInspectionStatus.js';
15
+ /**
16
+ * Check if a given object implements the VM interface.
17
+ */
18
+ export function instanceOfVM(value) {
19
+ if (!('name' in value) || value['name'] === undefined)
20
+ return false;
21
+ if (!('id' in value) || value['id'] === undefined)
22
+ return false;
23
+ if (!('vCenterState' in value) || value['vCenterState'] === undefined)
24
+ return false;
25
+ if (!('cluster' in value) || value['cluster'] === undefined)
26
+ return false;
27
+ if (!('diskSize' in value) || value['diskSize'] === undefined)
28
+ return false;
29
+ if (!('memory' in value) || value['memory'] === undefined)
30
+ return false;
31
+ if (!('issueCount' in value) || value['issueCount'] === undefined)
32
+ return false;
33
+ if (!('inspection' in value) || value['inspection'] === undefined)
34
+ return false;
35
+ return true;
36
+ }
37
+ export function VMFromJSON(json) {
38
+ return VMFromJSONTyped(json, false);
39
+ }
40
+ export function VMFromJSONTyped(json, ignoreDiscriminator) {
41
+ if (json == null) {
42
+ return json;
43
+ }
44
+ return {
45
+ 'name': json['name'],
46
+ 'id': json['id'],
47
+ 'vCenterState': json['vCenterState'],
48
+ 'cluster': json['cluster'],
49
+ 'diskSize': json['diskSize'],
50
+ 'memory': json['memory'],
51
+ 'issueCount': json['issueCount'],
52
+ 'inspection': VmInspectionStatusFromJSON(json['inspection']),
53
+ };
54
+ }
55
+ export function VMToJSON(json) {
56
+ return VMToJSONTyped(json, false);
57
+ }
58
+ export function VMToJSONTyped(value, ignoreDiscriminator = false) {
59
+ if (value == null) {
60
+ return value;
61
+ }
62
+ return {
63
+ 'name': value['name'],
64
+ 'id': value['id'],
65
+ 'vCenterState': value['vCenterState'],
66
+ 'cluster': value['cluster'],
67
+ 'diskSize': value['diskSize'],
68
+ 'memory': value['memory'],
69
+ 'issueCount': value['issueCount'],
70
+ 'inspection': VmInspectionStatusToJSON(value['inspection']),
71
+ };
72
+ }