@migration-planner-ui/agent-client 0.0.30 → 0.0.32

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 (87) hide show
  1. package/README.md +112 -25
  2. package/dist/apis/AgentUiApi.d.ts +126 -0
  3. package/dist/apis/AgentUiApi.d.ts.map +1 -0
  4. package/dist/apis/AgentUiApi.js +163 -0
  5. package/dist/apis/index.d.ts +2 -0
  6. package/dist/apis/index.d.ts.map +1 -0
  7. package/dist/apis/index.js +3 -0
  8. package/dist/index.d.ts +4 -0
  9. package/dist/index.d.ts.map +1 -0
  10. package/dist/index.js +5 -0
  11. package/dist/models/Credentials.d.ts +51 -0
  12. package/dist/models/Credentials.d.ts.map +1 -0
  13. package/dist/models/Credentials.js +53 -0
  14. package/dist/models/Datastore.d.ts +81 -0
  15. package/dist/models/Datastore.d.ts.map +1 -0
  16. package/dist/models/Datastore.js +73 -0
  17. package/dist/models/DiskSizeTierSummary.d.ts +39 -0
  18. package/dist/models/DiskSizeTierSummary.d.ts.map +1 -0
  19. package/dist/models/DiskSizeTierSummary.js +47 -0
  20. package/dist/models/DiskTypeSummary.d.ts +39 -0
  21. package/dist/models/DiskTypeSummary.d.ts.map +1 -0
  22. package/dist/models/DiskTypeSummary.js +47 -0
  23. package/dist/models/Histogram.d.ts +45 -0
  24. package/dist/models/Histogram.d.ts.map +1 -0
  25. package/dist/models/Histogram.js +51 -0
  26. package/dist/models/Host.d.ts +63 -0
  27. package/dist/models/Host.d.ts.map +1 -0
  28. package/dist/models/Host.js +55 -0
  29. package/dist/models/Infra.d.ts +107 -0
  30. package/dist/models/Infra.d.ts.map +1 -0
  31. package/dist/models/Infra.js +74 -0
  32. package/dist/models/Inventory.d.ts +48 -0
  33. package/dist/models/Inventory.d.ts.map +1 -0
  34. package/dist/models/Inventory.js +51 -0
  35. package/dist/models/InventoryData.d.ts +48 -0
  36. package/dist/models/InventoryData.d.ts.map +1 -0
  37. package/dist/models/InventoryData.js +52 -0
  38. package/dist/models/InventoryReply.d.ts +40 -0
  39. package/dist/models/InventoryReply.d.ts.map +1 -0
  40. package/dist/models/InventoryReply.js +48 -0
  41. package/dist/models/MigrationIssue.d.ts +51 -0
  42. package/dist/models/MigrationIssue.d.ts.map +1 -0
  43. package/dist/models/MigrationIssue.js +53 -0
  44. package/dist/models/ModelError.d.ts +33 -0
  45. package/dist/models/ModelError.d.ts.map +1 -0
  46. package/dist/models/ModelError.js +43 -0
  47. package/dist/models/Network.d.ts +67 -0
  48. package/dist/models/Network.d.ts.map +1 -0
  49. package/dist/models/Network.js +62 -0
  50. package/dist/models/OsInfo.d.ts +45 -0
  51. package/dist/models/OsInfo.d.ts.map +1 -0
  52. package/dist/models/OsInfo.js +49 -0
  53. package/dist/models/ServiceUIReply.d.ts +33 -0
  54. package/dist/models/ServiceUIReply.d.ts.map +1 -0
  55. package/dist/models/ServiceUIReply.js +43 -0
  56. package/dist/models/StatusReply.d.ts +81 -0
  57. package/dist/models/StatusReply.d.ts.map +1 -0
  58. package/dist/models/StatusReply.js +70 -0
  59. package/dist/models/VCenter.d.ts +33 -0
  60. package/dist/models/VCenter.d.ts.map +1 -0
  61. package/dist/models/VCenter.js +43 -0
  62. package/dist/models/VMResourceBreakdown.d.ts +59 -0
  63. package/dist/models/VMResourceBreakdown.d.ts.map +1 -0
  64. package/dist/models/VMResourceBreakdown.js +58 -0
  65. package/dist/models/VMs.d.ts +149 -0
  66. package/dist/models/VMs.d.ts.map +1 -0
  67. package/dist/models/VMs.js +97 -0
  68. package/dist/models/VersionReply.d.ts +33 -0
  69. package/dist/models/VersionReply.d.ts.map +1 -0
  70. package/dist/models/VersionReply.js +43 -0
  71. package/dist/models/index.d.ts +21 -0
  72. package/dist/models/index.d.ts.map +1 -0
  73. package/dist/models/index.js +22 -0
  74. package/dist/runtime.d.ts +185 -0
  75. package/dist/runtime.d.ts.map +1 -0
  76. package/dist/runtime.js +334 -0
  77. package/package.json +29 -15
  78. package/src/apis/AgentApi.ts +0 -83
  79. package/src/apis/index.ts +0 -1
  80. package/src/models/Credentials.ts +0 -6
  81. package/src/models/CredentialsError.ts +0 -17
  82. package/src/models/Either.ts +0 -1
  83. package/src/models/SourceStatus.ts +0 -7
  84. package/src/models/StatusReply.ts +0 -6
  85. package/src/models/index.ts +0 -5
  86. package/tsconfig.json +0 -17
  87. package/tsconfig.tsbuildinfo +0 -1
@@ -0,0 +1,49 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Migration Planner Agent UI API
5
+ * API endpoints for the agent UI to interact with the migration discovery VM
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 OsInfo interface.
16
+ */
17
+ export function instanceOfOsInfo(value) {
18
+ if (!('count' in value) || value['count'] === undefined)
19
+ return false;
20
+ if (!('supported' in value) || value['supported'] === undefined)
21
+ return false;
22
+ return true;
23
+ }
24
+ export function OsInfoFromJSON(json) {
25
+ return OsInfoFromJSONTyped(json, false);
26
+ }
27
+ export function OsInfoFromJSONTyped(json, ignoreDiscriminator) {
28
+ if (json == null) {
29
+ return json;
30
+ }
31
+ return {
32
+ 'count': json['count'],
33
+ 'supported': json['supported'],
34
+ 'upgradeRecommendation': json['upgradeRecommendation'] == null ? undefined : json['upgradeRecommendation'],
35
+ };
36
+ }
37
+ export function OsInfoToJSON(json) {
38
+ return OsInfoToJSONTyped(json, false);
39
+ }
40
+ export function OsInfoToJSONTyped(value, ignoreDiscriminator = false) {
41
+ if (value == null) {
42
+ return value;
43
+ }
44
+ return {
45
+ 'count': value['count'],
46
+ 'supported': value['supported'],
47
+ 'upgradeRecommendation': value['upgradeRecommendation'],
48
+ };
49
+ }
@@ -0,0 +1,33 @@
1
+ /**
2
+ * Migration Planner Agent UI API
3
+ * API endpoints for the agent UI to interact with the migration discovery VM
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 ServiceUIReply
16
+ */
17
+ export interface ServiceUIReply {
18
+ /**
19
+ * URL of the planner service UI
20
+ * @type {string}
21
+ * @memberof ServiceUIReply
22
+ */
23
+ url: string;
24
+ }
25
+ /**
26
+ * Check if a given object implements the ServiceUIReply interface.
27
+ */
28
+ export declare function instanceOfServiceUIReply(value: object): value is ServiceUIReply;
29
+ export declare function ServiceUIReplyFromJSON(json: any): ServiceUIReply;
30
+ export declare function ServiceUIReplyFromJSONTyped(json: any, ignoreDiscriminator: boolean): ServiceUIReply;
31
+ export declare function ServiceUIReplyToJSON(json: any): ServiceUIReply;
32
+ export declare function ServiceUIReplyToJSONTyped(value?: ServiceUIReply | null, ignoreDiscriminator?: boolean): any;
33
+ //# sourceMappingURL=ServiceUIReply.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ServiceUIReply.d.ts","sourceRoot":"","sources":["../../src/models/ServiceUIReply.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,cAAc;IAC3B;;;;OAIG;IACH,GAAG,EAAE,MAAM,CAAC;CACf;AAED;;GAEG;AACH,wBAAgB,wBAAwB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,cAAc,CAG/E;AAED,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,GAAG,GAAG,cAAc,CAEhE;AAED,wBAAgB,2BAA2B,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,cAAc,CAQnG;AAED,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,GAAG,GAAG,cAAc,CAE9D;AAED,wBAAgB,yBAAyB,CAAC,KAAK,CAAC,EAAE,cAAc,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CASlH"}
@@ -0,0 +1,43 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Migration Planner Agent UI API
5
+ * API endpoints for the agent UI to interact with the migration discovery VM
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 ServiceUIReply interface.
16
+ */
17
+ export function instanceOfServiceUIReply(value) {
18
+ if (!('url' in value) || value['url'] === undefined)
19
+ return false;
20
+ return true;
21
+ }
22
+ export function ServiceUIReplyFromJSON(json) {
23
+ return ServiceUIReplyFromJSONTyped(json, false);
24
+ }
25
+ export function ServiceUIReplyFromJSONTyped(json, ignoreDiscriminator) {
26
+ if (json == null) {
27
+ return json;
28
+ }
29
+ return {
30
+ 'url': json['url'],
31
+ };
32
+ }
33
+ export function ServiceUIReplyToJSON(json) {
34
+ return ServiceUIReplyToJSONTyped(json, false);
35
+ }
36
+ export function ServiceUIReplyToJSONTyped(value, ignoreDiscriminator = false) {
37
+ if (value == null) {
38
+ return value;
39
+ }
40
+ return {
41
+ 'url': value['url'],
42
+ };
43
+ }
@@ -0,0 +1,81 @@
1
+ /**
2
+ * Migration Planner Agent UI API
3
+ * API endpoints for the agent UI to interact with the migration discovery VM
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 StatusReply
16
+ */
17
+ export interface StatusReply {
18
+ /**
19
+ * Current status of the agent
20
+ * @type {string}
21
+ * @memberof StatusReply
22
+ */
23
+ status: StatusReplyStatusEnum;
24
+ /**
25
+ * Whether the agent is connected to the planner service
26
+ * @type {string}
27
+ * @memberof StatusReply
28
+ */
29
+ connected: string;
30
+ /**
31
+ * Human-readable status information
32
+ * @type {string}
33
+ * @memberof StatusReply
34
+ */
35
+ statusInfo: string;
36
+ /**
37
+ * Whether the last agent state update was successful
38
+ * @type {string}
39
+ * @memberof StatusReply
40
+ */
41
+ agentStateUpdateSuccessful?: string;
42
+ /**
43
+ * Error message if agent state update failed
44
+ * @type {string}
45
+ * @memberof StatusReply
46
+ */
47
+ agentStateUpdateErrMessage?: string;
48
+ /**
49
+ * Whether the last inventory update was successful
50
+ * @type {string}
51
+ * @memberof StatusReply
52
+ */
53
+ inventoryUpdateSuccessful?: string;
54
+ /**
55
+ * Error message if inventory update failed
56
+ * @type {string}
57
+ * @memberof StatusReply
58
+ */
59
+ inventoryUpdateErrMessage?: string;
60
+ }
61
+ /**
62
+ * @export
63
+ */
64
+ export declare const StatusReplyStatusEnum: {
65
+ readonly WaitingForCredentials: "waiting-for-credentials";
66
+ readonly GatheringInitialInventory: "gathering-initial-inventory";
67
+ readonly UpToDate: "up-to-date";
68
+ readonly Error: "error";
69
+ readonly NotConnected: "not-connected";
70
+ readonly SourceGone: "source-gone";
71
+ };
72
+ export type StatusReplyStatusEnum = typeof StatusReplyStatusEnum[keyof typeof StatusReplyStatusEnum];
73
+ /**
74
+ * Check if a given object implements the StatusReply interface.
75
+ */
76
+ export declare function instanceOfStatusReply(value: object): value is StatusReply;
77
+ export declare function StatusReplyFromJSON(json: any): StatusReply;
78
+ export declare function StatusReplyFromJSONTyped(json: any, ignoreDiscriminator: boolean): StatusReply;
79
+ export declare function StatusReplyToJSON(json: any): StatusReply;
80
+ export declare function StatusReplyToJSONTyped(value?: StatusReply | null, ignoreDiscriminator?: boolean): any;
81
+ //# sourceMappingURL=StatusReply.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"StatusReply.d.ts","sourceRoot":"","sources":["../../src/models/StatusReply.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,WAAW;IACxB;;;;OAIG;IACH,MAAM,EAAE,qBAAqB,CAAC;IAC9B;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,0BAA0B,CAAC,EAAE,MAAM,CAAC;IACpC;;;;OAIG;IACH,0BAA0B,CAAC,EAAE,MAAM,CAAC;IACpC;;;;OAIG;IACH,yBAAyB,CAAC,EAAE,MAAM,CAAC;IACnC;;;;OAIG;IACH,yBAAyB,CAAC,EAAE,MAAM,CAAC;CACtC;AAGD;;GAEG;AACH,eAAO,MAAM,qBAAqB;;;;;;;CAOxB,CAAC;AACX,MAAM,MAAM,qBAAqB,GAAG,OAAO,qBAAqB,CAAC,MAAM,OAAO,qBAAqB,CAAC,CAAC;AAGrG;;GAEG;AACH,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,WAAW,CAKzE;AAED,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,GAAG,GAAG,WAAW,CAE1D;AAED,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,WAAW,CAc7F;AAED,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,GAAG,GAAG,WAAW,CAExD;AAED,wBAAgB,sBAAsB,CAAC,KAAK,CAAC,EAAE,WAAW,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAe5G"}
@@ -0,0 +1,70 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Migration Planner Agent UI API
5
+ * API endpoints for the agent UI to interact with the migration discovery VM
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
+ * @export
16
+ */
17
+ export const StatusReplyStatusEnum = {
18
+ WaitingForCredentials: 'waiting-for-credentials',
19
+ GatheringInitialInventory: 'gathering-initial-inventory',
20
+ UpToDate: 'up-to-date',
21
+ Error: 'error',
22
+ NotConnected: 'not-connected',
23
+ SourceGone: 'source-gone'
24
+ };
25
+ /**
26
+ * Check if a given object implements the StatusReply interface.
27
+ */
28
+ export function instanceOfStatusReply(value) {
29
+ if (!('status' in value) || value['status'] === undefined)
30
+ return false;
31
+ if (!('connected' in value) || value['connected'] === undefined)
32
+ return false;
33
+ if (!('statusInfo' in value) || value['statusInfo'] === undefined)
34
+ return false;
35
+ return true;
36
+ }
37
+ export function StatusReplyFromJSON(json) {
38
+ return StatusReplyFromJSONTyped(json, false);
39
+ }
40
+ export function StatusReplyFromJSONTyped(json, ignoreDiscriminator) {
41
+ if (json == null) {
42
+ return json;
43
+ }
44
+ return {
45
+ 'status': json['status'],
46
+ 'connected': json['connected'],
47
+ 'statusInfo': json['statusInfo'],
48
+ 'agentStateUpdateSuccessful': json['agentStateUpdateSuccessful'] == null ? undefined : json['agentStateUpdateSuccessful'],
49
+ 'agentStateUpdateErrMessage': json['agentStateUpdateErrMessage'] == null ? undefined : json['agentStateUpdateErrMessage'],
50
+ 'inventoryUpdateSuccessful': json['inventoryUpdateSuccessful'] == null ? undefined : json['inventoryUpdateSuccessful'],
51
+ 'inventoryUpdateErrMessage': json['inventoryUpdateErrMessage'] == null ? undefined : json['inventoryUpdateErrMessage'],
52
+ };
53
+ }
54
+ export function StatusReplyToJSON(json) {
55
+ return StatusReplyToJSONTyped(json, false);
56
+ }
57
+ export function StatusReplyToJSONTyped(value, ignoreDiscriminator = false) {
58
+ if (value == null) {
59
+ return value;
60
+ }
61
+ return {
62
+ 'status': value['status'],
63
+ 'connected': value['connected'],
64
+ 'statusInfo': value['statusInfo'],
65
+ 'agentStateUpdateSuccessful': value['agentStateUpdateSuccessful'],
66
+ 'agentStateUpdateErrMessage': value['agentStateUpdateErrMessage'],
67
+ 'inventoryUpdateSuccessful': value['inventoryUpdateSuccessful'],
68
+ 'inventoryUpdateErrMessage': value['inventoryUpdateErrMessage'],
69
+ };
70
+ }
@@ -0,0 +1,33 @@
1
+ /**
2
+ * Migration Planner Agent UI API
3
+ * API endpoints for the agent UI to interact with the migration discovery VM
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 VCenter
16
+ */
17
+ export interface VCenter {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof VCenter
22
+ */
23
+ id: string;
24
+ }
25
+ /**
26
+ * Check if a given object implements the VCenter interface.
27
+ */
28
+ export declare function instanceOfVCenter(value: object): value is VCenter;
29
+ export declare function VCenterFromJSON(json: any): VCenter;
30
+ export declare function VCenterFromJSONTyped(json: any, ignoreDiscriminator: boolean): VCenter;
31
+ export declare function VCenterToJSON(json: any): VCenter;
32
+ export declare function VCenterToJSONTyped(value?: VCenter | null, ignoreDiscriminator?: boolean): any;
33
+ //# sourceMappingURL=VCenter.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"VCenter.d.ts","sourceRoot":"","sources":["../../src/models/VCenter.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,OAAO;IACpB;;;;OAIG;IACH,EAAE,EAAE,MAAM,CAAC;CACd;AAED;;GAEG;AACH,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,OAAO,CAGjE;AAED,wBAAgB,eAAe,CAAC,IAAI,EAAE,GAAG,GAAG,OAAO,CAElD;AAED,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,OAAO,CAQrF;AAED,wBAAgB,aAAa,CAAC,IAAI,EAAE,GAAG,GAAG,OAAO,CAEhD;AAED,wBAAgB,kBAAkB,CAAC,KAAK,CAAC,EAAE,OAAO,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CASpG"}
@@ -0,0 +1,43 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Migration Planner Agent UI API
5
+ * API endpoints for the agent UI to interact with the migration discovery VM
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 VCenter interface.
16
+ */
17
+ export function instanceOfVCenter(value) {
18
+ if (!('id' in value) || value['id'] === undefined)
19
+ return false;
20
+ return true;
21
+ }
22
+ export function VCenterFromJSON(json) {
23
+ return VCenterFromJSONTyped(json, false);
24
+ }
25
+ export function VCenterFromJSONTyped(json, ignoreDiscriminator) {
26
+ if (json == null) {
27
+ return json;
28
+ }
29
+ return {
30
+ 'id': json['id'],
31
+ };
32
+ }
33
+ export function VCenterToJSON(json) {
34
+ return VCenterToJSONTyped(json, false);
35
+ }
36
+ export function VCenterToJSONTyped(value, ignoreDiscriminator = false) {
37
+ if (value == null) {
38
+ return value;
39
+ }
40
+ return {
41
+ 'id': value['id'],
42
+ };
43
+ }
@@ -0,0 +1,59 @@
1
+ /**
2
+ * Migration Planner Agent UI API
3
+ * API endpoints for the agent UI to interact with the migration discovery VM
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 { Histogram } from './Histogram.js';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface VMResourceBreakdown
17
+ */
18
+ export interface VMResourceBreakdown {
19
+ /**
20
+ *
21
+ * @type {number}
22
+ * @memberof VMResourceBreakdown
23
+ */
24
+ total: number;
25
+ /**
26
+ *
27
+ * @type {number}
28
+ * @memberof VMResourceBreakdown
29
+ */
30
+ totalForMigratable: number;
31
+ /**
32
+ *
33
+ * @type {number}
34
+ * @memberof VMResourceBreakdown
35
+ */
36
+ totalForMigratableWithWarnings: number;
37
+ /**
38
+ *
39
+ * @type {number}
40
+ * @memberof VMResourceBreakdown
41
+ */
42
+ totalForNotMigratable: number;
43
+ /**
44
+ *
45
+ * @type {Histogram}
46
+ * @memberof VMResourceBreakdown
47
+ * @deprecated
48
+ */
49
+ histogram?: Histogram;
50
+ }
51
+ /**
52
+ * Check if a given object implements the VMResourceBreakdown interface.
53
+ */
54
+ export declare function instanceOfVMResourceBreakdown(value: object): value is VMResourceBreakdown;
55
+ export declare function VMResourceBreakdownFromJSON(json: any): VMResourceBreakdown;
56
+ export declare function VMResourceBreakdownFromJSONTyped(json: any, ignoreDiscriminator: boolean): VMResourceBreakdown;
57
+ export declare function VMResourceBreakdownToJSON(json: any): VMResourceBreakdown;
58
+ export declare function VMResourceBreakdownToJSONTyped(value?: VMResourceBreakdown | null, ignoreDiscriminator?: boolean): any;
59
+ //# sourceMappingURL=VMResourceBreakdown.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"VMResourceBreakdown.d.ts","sourceRoot":"","sources":["../../src/models/VMResourceBreakdown.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAQhD;;;;GAIG;AACH,MAAM,WAAW,mBAAmB;IAChC;;;;OAIG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,kBAAkB,EAAE,MAAM,CAAC;IAC3B;;;;OAIG;IACH,8BAA8B,EAAE,MAAM,CAAC;IACvC;;;;OAIG;IACH,qBAAqB,EAAE,MAAM,CAAC;IAC9B;;;;;OAKG;IACH,SAAS,CAAC,EAAE,SAAS,CAAC;CACzB;AAED;;GAEG;AACH,wBAAgB,6BAA6B,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,mBAAmB,CAMzF;AAED,wBAAgB,2BAA2B,CAAC,IAAI,EAAE,GAAG,GAAG,mBAAmB,CAE1E;AAED,wBAAgB,gCAAgC,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,mBAAmB,CAY7G;AAED,wBAAgB,yBAAyB,CAAC,IAAI,EAAE,GAAG,GAAG,mBAAmB,CAExE;AAED,wBAAgB,8BAA8B,CAAC,KAAK,CAAC,EAAE,mBAAmB,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAa5H"}
@@ -0,0 +1,58 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Migration Planner Agent UI API
5
+ * API endpoints for the agent UI to interact with the migration discovery VM
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 { HistogramFromJSON, HistogramToJSON, } from './Histogram.js';
15
+ /**
16
+ * Check if a given object implements the VMResourceBreakdown interface.
17
+ */
18
+ export function instanceOfVMResourceBreakdown(value) {
19
+ if (!('total' in value) || value['total'] === undefined)
20
+ return false;
21
+ if (!('totalForMigratable' in value) || value['totalForMigratable'] === undefined)
22
+ return false;
23
+ if (!('totalForMigratableWithWarnings' in value) || value['totalForMigratableWithWarnings'] === undefined)
24
+ return false;
25
+ if (!('totalForNotMigratable' in value) || value['totalForNotMigratable'] === undefined)
26
+ return false;
27
+ return true;
28
+ }
29
+ export function VMResourceBreakdownFromJSON(json) {
30
+ return VMResourceBreakdownFromJSONTyped(json, false);
31
+ }
32
+ export function VMResourceBreakdownFromJSONTyped(json, ignoreDiscriminator) {
33
+ if (json == null) {
34
+ return json;
35
+ }
36
+ return {
37
+ 'total': json['total'],
38
+ 'totalForMigratable': json['totalForMigratable'],
39
+ 'totalForMigratableWithWarnings': json['totalForMigratableWithWarnings'],
40
+ 'totalForNotMigratable': json['totalForNotMigratable'],
41
+ 'histogram': json['histogram'] == null ? undefined : HistogramFromJSON(json['histogram']),
42
+ };
43
+ }
44
+ export function VMResourceBreakdownToJSON(json) {
45
+ return VMResourceBreakdownToJSONTyped(json, false);
46
+ }
47
+ export function VMResourceBreakdownToJSONTyped(value, ignoreDiscriminator = false) {
48
+ if (value == null) {
49
+ return value;
50
+ }
51
+ return {
52
+ 'total': value['total'],
53
+ 'totalForMigratable': value['totalForMigratable'],
54
+ 'totalForMigratableWithWarnings': value['totalForMigratableWithWarnings'],
55
+ 'totalForNotMigratable': value['totalForNotMigratable'],
56
+ 'histogram': HistogramToJSON(value['histogram']),
57
+ };
58
+ }
@@ -0,0 +1,149 @@
1
+ /**
2
+ * Migration Planner Agent UI API
3
+ * API endpoints for the agent UI to interact with the migration discovery VM
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 { MigrationIssue } from './MigrationIssue.js';
13
+ import type { OsInfo } from './OsInfo.js';
14
+ import type { DiskSizeTierSummary } from './DiskSizeTierSummary.js';
15
+ import type { DiskTypeSummary } from './DiskTypeSummary.js';
16
+ import type { VMResourceBreakdown } from './VMResourceBreakdown.js';
17
+ /**
18
+ *
19
+ * @export
20
+ * @interface VMs
21
+ */
22
+ export interface VMs {
23
+ /**
24
+ *
25
+ * @type {number}
26
+ * @memberof VMs
27
+ */
28
+ total: number;
29
+ /**
30
+ *
31
+ * @type {number}
32
+ * @memberof VMs
33
+ */
34
+ totalMigratable: number;
35
+ /**
36
+ *
37
+ * @type {number}
38
+ * @memberof VMs
39
+ */
40
+ totalMigratableWithWarnings?: number;
41
+ /**
42
+ *
43
+ * @type {VMResourceBreakdown}
44
+ * @memberof VMs
45
+ */
46
+ cpuCores: VMResourceBreakdown;
47
+ /**
48
+ *
49
+ * @type {{ [key: string]: DiskSizeTierSummary; }}
50
+ * @memberof VMs
51
+ */
52
+ diskSizeTier?: {
53
+ [key: string]: DiskSizeTierSummary;
54
+ };
55
+ /**
56
+ *
57
+ * @type {{ [key: string]: DiskTypeSummary; }}
58
+ * @memberof VMs
59
+ */
60
+ diskTypes?: {
61
+ [key: string]: DiskTypeSummary;
62
+ };
63
+ /**
64
+ * Distribution of VMs across CPU tier buckets (e.g., "0-4", "5-8", "9-16", "17-32", "32+")
65
+ * @type {{ [key: string]: number; }}
66
+ * @memberof VMs
67
+ */
68
+ distributionByCpuTier?: {
69
+ [key: string]: number;
70
+ };
71
+ /**
72
+ * Distribution of VMs across Memory tier buckets (e.g., "0-4", "5-16", "17-32", "33-64", "65-128", "129-256", "256+")
73
+ * @type {{ [key: string]: number; }}
74
+ * @memberof VMs
75
+ */
76
+ distributionByMemoryTier?: {
77
+ [key: string]: number;
78
+ };
79
+ /**
80
+ *
81
+ * @type {VMResourceBreakdown}
82
+ * @memberof VMs
83
+ */
84
+ ramGB: VMResourceBreakdown;
85
+ /**
86
+ *
87
+ * @type {VMResourceBreakdown}
88
+ * @memberof VMs
89
+ */
90
+ diskGB: VMResourceBreakdown;
91
+ /**
92
+ *
93
+ * @type {VMResourceBreakdown}
94
+ * @memberof VMs
95
+ */
96
+ diskCount: VMResourceBreakdown;
97
+ /**
98
+ *
99
+ * @type {VMResourceBreakdown}
100
+ * @memberof VMs
101
+ */
102
+ nicCount?: VMResourceBreakdown;
103
+ /**
104
+ *
105
+ * @type {{ [key: string]: number; }}
106
+ * @memberof VMs
107
+ */
108
+ powerStates: {
109
+ [key: string]: number;
110
+ };
111
+ /**
112
+ *
113
+ * @type {{ [key: string]: number; }}
114
+ * @memberof VMs
115
+ * @deprecated
116
+ */
117
+ os?: {
118
+ [key: string]: number;
119
+ };
120
+ /**
121
+ *
122
+ * @type {{ [key: string]: OsInfo; }}
123
+ * @memberof VMs
124
+ */
125
+ osInfo?: {
126
+ [key: string]: OsInfo;
127
+ };
128
+ /**
129
+ *
130
+ * @type {Array<MigrationIssue>}
131
+ * @memberof VMs
132
+ */
133
+ notMigratableReasons: Array<MigrationIssue>;
134
+ /**
135
+ *
136
+ * @type {Array<MigrationIssue>}
137
+ * @memberof VMs
138
+ */
139
+ migrationWarnings: Array<MigrationIssue>;
140
+ }
141
+ /**
142
+ * Check if a given object implements the VMs interface.
143
+ */
144
+ export declare function instanceOfVMs(value: object): value is VMs;
145
+ export declare function VMsFromJSON(json: any): VMs;
146
+ export declare function VMsFromJSONTyped(json: any, ignoreDiscriminator: boolean): VMs;
147
+ export declare function VMsToJSON(json: any): VMs;
148
+ export declare function VMsToJSONTyped(value?: VMs | null, ignoreDiscriminator?: boolean): any;
149
+ //# sourceMappingURL=VMs.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"VMs.d.ts","sourceRoot":"","sources":["../../src/models/VMs.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAO1D,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAO1C,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAOpE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAO5D,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAQpE;;;;GAIG;AACH,MAAM,WAAW,GAAG;IAChB;;;;OAIG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,eAAe,EAAE,MAAM,CAAC;IACxB;;;;OAIG;IACH,2BAA2B,CAAC,EAAE,MAAM,CAAC;IACrC;;;;OAIG;IACH,QAAQ,EAAE,mBAAmB,CAAC;IAC9B;;;;OAIG;IACH,YAAY,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,mBAAmB,CAAC;KAAE,CAAC;IACvD;;;;OAIG;IACH,SAAS,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,eAAe,CAAC;KAAE,CAAC;IAChD;;;;OAIG;IACH,qBAAqB,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAC;KAAE,CAAC;IACnD;;;;OAIG;IACH,wBAAwB,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAC;KAAE,CAAC;IACtD;;;;OAIG;IACH,KAAK,EAAE,mBAAmB,CAAC;IAC3B;;;;OAIG;IACH,MAAM,EAAE,mBAAmB,CAAC;IAC5B;;;;OAIG;IACH,SAAS,EAAE,mBAAmB,CAAC;IAC/B;;;;OAIG;IACH,QAAQ,CAAC,EAAE,mBAAmB,CAAC;IAC/B;;;;OAIG;IACH,WAAW,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAC;KAAE,CAAC;IACxC;;;;;OAKG;IACH,EAAE,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAC;KAAE,CAAC;IAChC;;;;OAIG;IACH,MAAM,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAC;KAAE,CAAC;IACpC;;;;OAIG;IACH,oBAAoB,EAAE,KAAK,CAAC,cAAc,CAAC,CAAC;IAC5C;;;;OAIG;IACH,iBAAiB,EAAE,KAAK,CAAC,cAAc,CAAC,CAAC;CAC5C;AAED;;GAEG;AACH,wBAAgB,aAAa,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,GAAG,CAWzD;AAED,wBAAgB,WAAW,CAAC,IAAI,EAAE,GAAG,GAAG,GAAG,CAE1C;AAED,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,GAAG,CAwB7E;AAED,wBAAgB,SAAS,CAAC,IAAI,EAAE,GAAG,GAAG,GAAG,CAExC;AAED,wBAAgB,cAAc,CAAC,KAAK,CAAC,EAAE,GAAG,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAyB5F"}