@migration-planner-ui/api-client 0.0.1

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 (93) hide show
  1. package/.openapi-generator/FILES +27 -0
  2. package/.openapi-generator/VERSION +1 -0
  3. package/.openapi-generator-ignore +30 -0
  4. package/README.md +46 -0
  5. package/dist/apis/AgentApi.d.ts +69 -0
  6. package/dist/apis/AgentApi.js +82 -0
  7. package/dist/apis/HealthApi.d.ts +44 -0
  8. package/dist/apis/HealthApi.js +52 -0
  9. package/dist/apis/ImageApi.d.ts +95 -0
  10. package/dist/apis/ImageApi.js +112 -0
  11. package/dist/apis/SourceApi.d.ts +162 -0
  12. package/dist/apis/SourceApi.js +201 -0
  13. package/dist/apis/UiEventsApi.d.ts +49 -0
  14. package/dist/apis/UiEventsApi.js +59 -0
  15. package/dist/apis/index.d.ts +4 -0
  16. package/dist/apis/index.js +6 -0
  17. package/dist/index.d.ts +3 -0
  18. package/dist/index.js +5 -0
  19. package/dist/models/Agent.d.ts +79 -0
  20. package/dist/models/Agent.js +75 -0
  21. package/dist/models/AgentProxy.d.ts +43 -0
  22. package/dist/models/AgentProxy.js +42 -0
  23. package/dist/models/Event.d.ts +38 -0
  24. package/dist/models/Event.js +45 -0
  25. package/dist/models/EventData.d.ts +37 -0
  26. package/dist/models/EventData.js +44 -0
  27. package/dist/models/Infra.d.ts +65 -0
  28. package/dist/models/Infra.js +62 -0
  29. package/dist/models/InfraDatastoresInner.d.ts +43 -0
  30. package/dist/models/InfraDatastoresInner.js +48 -0
  31. package/dist/models/InfraNetworksInner.d.ts +59 -0
  32. package/dist/models/InfraNetworksInner.js +57 -0
  33. package/dist/models/Inventory.d.ts +46 -0
  34. package/dist/models/Inventory.js +48 -0
  35. package/dist/models/MigrationIssuesInner.d.ts +43 -0
  36. package/dist/models/MigrationIssuesInner.js +48 -0
  37. package/dist/models/ModelError.d.ts +31 -0
  38. package/dist/models/ModelError.js +40 -0
  39. package/dist/models/PresignedUrl.d.ts +37 -0
  40. package/dist/models/PresignedUrl.js +42 -0
  41. package/dist/models/Source.d.ts +69 -0
  42. package/dist/models/Source.js +62 -0
  43. package/dist/models/SourceAgentItem.d.ts +37 -0
  44. package/dist/models/SourceAgentItem.js +44 -0
  45. package/dist/models/SourceCreate.d.ts +50 -0
  46. package/dist/models/SourceCreate.js +47 -0
  47. package/dist/models/SourceUpdateOnPrem.d.ts +38 -0
  48. package/dist/models/SourceUpdateOnPrem.js +45 -0
  49. package/dist/models/Status.d.ts +43 -0
  50. package/dist/models/Status.js +42 -0
  51. package/dist/models/VCenter.d.ts +31 -0
  52. package/dist/models/VCenter.js +40 -0
  53. package/dist/models/VMResourceBreakdown.d.ts +56 -0
  54. package/dist/models/VMResourceBreakdown.js +57 -0
  55. package/dist/models/VMResourceBreakdownHistogram.d.ts +43 -0
  56. package/dist/models/VMResourceBreakdownHistogram.js +48 -0
  57. package/dist/models/VMs.d.ts +97 -0
  58. package/dist/models/VMs.js +79 -0
  59. package/dist/models/index.d.ts +19 -0
  60. package/dist/models/index.js +21 -0
  61. package/dist/runtime.d.ts +181 -0
  62. package/dist/runtime.js +326 -0
  63. package/package.json +61 -0
  64. package/src/apis/AgentApi.ts +131 -0
  65. package/src/apis/HealthApi.ts +70 -0
  66. package/src/apis/ImageApi.ts +191 -0
  67. package/src/apis/SourceApi.ts +354 -0
  68. package/src/apis/UiEventsApi.ts +96 -0
  69. package/src/apis/index.ts +27 -0
  70. package/src/index.ts +5 -0
  71. package/src/models/Agent.ts +130 -0
  72. package/src/models/AgentProxy.ts +76 -0
  73. package/src/models/Event.ts +77 -0
  74. package/src/models/EventData.ts +70 -0
  75. package/src/models/Infra.ts +119 -0
  76. package/src/models/InfraDatastoresInner.ts +79 -0
  77. package/src/models/InfraNetworksInner.ts +99 -0
  78. package/src/models/Inventory.ts +98 -0
  79. package/src/models/MigrationIssuesInner.ts +79 -0
  80. package/src/models/ModelError.ts +61 -0
  81. package/src/models/PresignedUrl.ts +69 -0
  82. package/src/models/Source.ts +126 -0
  83. package/src/models/SourceAgentItem.ts +70 -0
  84. package/src/models/SourceCreate.ts +92 -0
  85. package/src/models/SourceUpdateOnPrem.ts +77 -0
  86. package/src/models/Status.ts +76 -0
  87. package/src/models/VCenter.ts +61 -0
  88. package/src/models/VMResourceBreakdown.ts +104 -0
  89. package/src/models/VMResourceBreakdownHistogram.ts +79 -0
  90. package/src/models/VMs.ts +163 -0
  91. package/src/models/index.ts +21 -0
  92. package/src/runtime.ts +426 -0
  93. package/tsconfig.json +14 -0
@@ -0,0 +1,43 @@
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 AgentProxy
16
+ */
17
+ export interface AgentProxy {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof AgentProxy
22
+ */
23
+ httpUrl?: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof AgentProxy
28
+ */
29
+ httpsUrl?: string;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof AgentProxy
34
+ */
35
+ noProxy?: string;
36
+ }
37
+ /**
38
+ * Check if a given object implements the AgentProxy interface.
39
+ */
40
+ export declare function instanceOfAgentProxy(value: object): value is AgentProxy;
41
+ export declare function AgentProxyFromJSON(json: any): AgentProxy;
42
+ export declare function AgentProxyFromJSONTyped(json: any, ignoreDiscriminator: boolean): AgentProxy;
43
+ export declare function AgentProxyToJSON(value?: AgentProxy | null): any;
@@ -0,0 +1,42 @@
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 AgentProxy interface.
16
+ */
17
+ export function instanceOfAgentProxy(value) {
18
+ return true;
19
+ }
20
+ export function AgentProxyFromJSON(json) {
21
+ return AgentProxyFromJSONTyped(json, false);
22
+ }
23
+ export function AgentProxyFromJSONTyped(json, ignoreDiscriminator) {
24
+ if (json == null) {
25
+ return json;
26
+ }
27
+ return {
28
+ 'httpUrl': json['httpUrl'] == null ? undefined : json['httpUrl'],
29
+ 'httpsUrl': json['httpsUrl'] == null ? undefined : json['httpsUrl'],
30
+ 'noProxy': json['noProxy'] == null ? undefined : json['noProxy'],
31
+ };
32
+ }
33
+ export function AgentProxyToJSON(value) {
34
+ if (value == null) {
35
+ return value;
36
+ }
37
+ return {
38
+ 'httpUrl': value['httpUrl'],
39
+ 'httpsUrl': value['httpsUrl'],
40
+ 'noProxy': value['noProxy'],
41
+ };
42
+ }
@@ -0,0 +1,38 @@
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 { EventData } from './EventData';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface Event
17
+ */
18
+ export interface Event {
19
+ /**
20
+ *
21
+ * @type {Date}
22
+ * @memberof Event
23
+ */
24
+ createdAt: Date;
25
+ /**
26
+ *
27
+ * @type {Array<EventData>}
28
+ * @memberof Event
29
+ */
30
+ data: Array<EventData>;
31
+ }
32
+ /**
33
+ * Check if a given object implements the Event interface.
34
+ */
35
+ export declare function instanceOfEvent(value: object): value is Event;
36
+ export declare function EventFromJSON(json: any): Event;
37
+ export declare function EventFromJSONTyped(json: any, ignoreDiscriminator: boolean): Event;
38
+ export declare function EventToJSON(value?: Event | null): any;
@@ -0,0 +1,45 @@
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 { EventDataFromJSON, EventDataToJSON, } from './EventData';
15
+ /**
16
+ * Check if a given object implements the Event interface.
17
+ */
18
+ export function instanceOfEvent(value) {
19
+ if (!('createdAt' in value) || value['createdAt'] === undefined)
20
+ return false;
21
+ if (!('data' in value) || value['data'] === undefined)
22
+ return false;
23
+ return true;
24
+ }
25
+ export function EventFromJSON(json) {
26
+ return EventFromJSONTyped(json, false);
27
+ }
28
+ export function EventFromJSONTyped(json, ignoreDiscriminator) {
29
+ if (json == null) {
30
+ return json;
31
+ }
32
+ return {
33
+ 'createdAt': (new Date(json['createdAt'])),
34
+ 'data': (json['data'].map(EventDataFromJSON)),
35
+ };
36
+ }
37
+ export function EventToJSON(value) {
38
+ if (value == null) {
39
+ return value;
40
+ }
41
+ return {
42
+ 'createdAt': ((value['createdAt']).toISOString()),
43
+ 'data': (value['data'].map(EventDataToJSON)),
44
+ };
45
+ }
@@ -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 EventData
16
+ */
17
+ export interface EventData {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof EventData
22
+ */
23
+ key: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof EventData
28
+ */
29
+ value: string;
30
+ }
31
+ /**
32
+ * Check if a given object implements the EventData interface.
33
+ */
34
+ export declare function instanceOfEventData(value: object): value is EventData;
35
+ export declare function EventDataFromJSON(json: any): EventData;
36
+ export declare function EventDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): EventData;
37
+ export declare function EventDataToJSON(value?: EventData | 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 EventData interface.
16
+ */
17
+ export function instanceOfEventData(value) {
18
+ if (!('key' in value) || value['key'] === undefined)
19
+ return false;
20
+ if (!('value' in value) || value['value'] === undefined)
21
+ return false;
22
+ return true;
23
+ }
24
+ export function EventDataFromJSON(json) {
25
+ return EventDataFromJSONTyped(json, false);
26
+ }
27
+ export function EventDataFromJSONTyped(json, ignoreDiscriminator) {
28
+ if (json == null) {
29
+ return json;
30
+ }
31
+ return {
32
+ 'key': json['key'],
33
+ 'value': json['value'],
34
+ };
35
+ }
36
+ export function EventDataToJSON(value) {
37
+ if (value == null) {
38
+ return value;
39
+ }
40
+ return {
41
+ 'key': value['key'],
42
+ 'value': value['value'],
43
+ };
44
+ }
@@ -0,0 +1,65 @@
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 { InfraNetworksInner } from './InfraNetworksInner';
13
+ import type { InfraDatastoresInner } from './InfraDatastoresInner';
14
+ /**
15
+ *
16
+ * @export
17
+ * @interface Infra
18
+ */
19
+ export interface Infra {
20
+ /**
21
+ *
22
+ * @type {number}
23
+ * @memberof Infra
24
+ */
25
+ totalHosts: number;
26
+ /**
27
+ *
28
+ * @type {number}
29
+ * @memberof Infra
30
+ */
31
+ totalClusters: number;
32
+ /**
33
+ *
34
+ * @type {Array<number>}
35
+ * @memberof Infra
36
+ */
37
+ hostsPerCluster: Array<number>;
38
+ /**
39
+ *
40
+ * @type {{ [key: string]: number; }}
41
+ * @memberof Infra
42
+ */
43
+ hostPowerStates: {
44
+ [key: string]: number;
45
+ };
46
+ /**
47
+ *
48
+ * @type {Array<InfraNetworksInner>}
49
+ * @memberof Infra
50
+ */
51
+ networks: Array<InfraNetworksInner>;
52
+ /**
53
+ *
54
+ * @type {Array<InfraDatastoresInner>}
55
+ * @memberof Infra
56
+ */
57
+ datastores: Array<InfraDatastoresInner>;
58
+ }
59
+ /**
60
+ * Check if a given object implements the Infra interface.
61
+ */
62
+ export declare function instanceOfInfra(value: object): value is Infra;
63
+ export declare function InfraFromJSON(json: any): Infra;
64
+ export declare function InfraFromJSONTyped(json: any, ignoreDiscriminator: boolean): Infra;
65
+ export declare function InfraToJSON(value?: Infra | null): any;
@@ -0,0 +1,62 @@
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 { InfraNetworksInnerFromJSON, InfraNetworksInnerToJSON, } from './InfraNetworksInner';
15
+ import { InfraDatastoresInnerFromJSON, InfraDatastoresInnerToJSON, } from './InfraDatastoresInner';
16
+ /**
17
+ * Check if a given object implements the Infra interface.
18
+ */
19
+ export function instanceOfInfra(value) {
20
+ if (!('totalHosts' in value) || value['totalHosts'] === undefined)
21
+ return false;
22
+ if (!('totalClusters' in value) || value['totalClusters'] === undefined)
23
+ return false;
24
+ if (!('hostsPerCluster' in value) || value['hostsPerCluster'] === undefined)
25
+ return false;
26
+ if (!('hostPowerStates' in value) || value['hostPowerStates'] === undefined)
27
+ return false;
28
+ if (!('networks' in value) || value['networks'] === undefined)
29
+ return false;
30
+ if (!('datastores' in value) || value['datastores'] === undefined)
31
+ return false;
32
+ return true;
33
+ }
34
+ export function InfraFromJSON(json) {
35
+ return InfraFromJSONTyped(json, false);
36
+ }
37
+ export function InfraFromJSONTyped(json, ignoreDiscriminator) {
38
+ if (json == null) {
39
+ return json;
40
+ }
41
+ return {
42
+ 'totalHosts': json['totalHosts'],
43
+ 'totalClusters': json['totalClusters'],
44
+ 'hostsPerCluster': json['hostsPerCluster'],
45
+ 'hostPowerStates': json['hostPowerStates'],
46
+ 'networks': (json['networks'].map(InfraNetworksInnerFromJSON)),
47
+ 'datastores': (json['datastores'].map(InfraDatastoresInnerFromJSON)),
48
+ };
49
+ }
50
+ export function InfraToJSON(value) {
51
+ if (value == null) {
52
+ return value;
53
+ }
54
+ return {
55
+ 'totalHosts': value['totalHosts'],
56
+ 'totalClusters': value['totalClusters'],
57
+ 'hostsPerCluster': value['hostsPerCluster'],
58
+ 'hostPowerStates': value['hostPowerStates'],
59
+ 'networks': (value['networks'].map(InfraNetworksInnerToJSON)),
60
+ 'datastores': (value['datastores'].map(InfraDatastoresInnerToJSON)),
61
+ };
62
+ }
@@ -0,0 +1,43 @@
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 InfraDatastoresInner
16
+ */
17
+ export interface InfraDatastoresInner {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof InfraDatastoresInner
22
+ */
23
+ type: string;
24
+ /**
25
+ *
26
+ * @type {number}
27
+ * @memberof InfraDatastoresInner
28
+ */
29
+ totalCapacityGB: number;
30
+ /**
31
+ *
32
+ * @type {number}
33
+ * @memberof InfraDatastoresInner
34
+ */
35
+ freeCapacityGB: number;
36
+ }
37
+ /**
38
+ * Check if a given object implements the InfraDatastoresInner interface.
39
+ */
40
+ export declare function instanceOfInfraDatastoresInner(value: object): value is InfraDatastoresInner;
41
+ export declare function InfraDatastoresInnerFromJSON(json: any): InfraDatastoresInner;
42
+ export declare function InfraDatastoresInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): InfraDatastoresInner;
43
+ export declare function InfraDatastoresInnerToJSON(value?: InfraDatastoresInner | null): any;
@@ -0,0 +1,48 @@
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 InfraDatastoresInner interface.
16
+ */
17
+ export function instanceOfInfraDatastoresInner(value) {
18
+ if (!('type' in value) || value['type'] === undefined)
19
+ return false;
20
+ if (!('totalCapacityGB' in value) || value['totalCapacityGB'] === undefined)
21
+ return false;
22
+ if (!('freeCapacityGB' in value) || value['freeCapacityGB'] === undefined)
23
+ return false;
24
+ return true;
25
+ }
26
+ export function InfraDatastoresInnerFromJSON(json) {
27
+ return InfraDatastoresInnerFromJSONTyped(json, false);
28
+ }
29
+ export function InfraDatastoresInnerFromJSONTyped(json, ignoreDiscriminator) {
30
+ if (json == null) {
31
+ return json;
32
+ }
33
+ return {
34
+ 'type': json['type'],
35
+ 'totalCapacityGB': json['totalCapacityGB'],
36
+ 'freeCapacityGB': json['freeCapacityGB'],
37
+ };
38
+ }
39
+ export function InfraDatastoresInnerToJSON(value) {
40
+ if (value == null) {
41
+ return value;
42
+ }
43
+ return {
44
+ 'type': value['type'],
45
+ 'totalCapacityGB': value['totalCapacityGB'],
46
+ 'freeCapacityGB': value['freeCapacityGB'],
47
+ };
48
+ }
@@ -0,0 +1,59 @@
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 InfraNetworksInner
16
+ */
17
+ export interface InfraNetworksInner {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof InfraNetworksInner
22
+ */
23
+ type: InfraNetworksInnerTypeEnum;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof InfraNetworksInner
28
+ */
29
+ name: string;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof InfraNetworksInner
34
+ */
35
+ vlanId?: string;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof InfraNetworksInner
40
+ */
41
+ dvswitch?: string;
42
+ }
43
+ /**
44
+ * @export
45
+ */
46
+ export declare const InfraNetworksInnerTypeEnum: {
47
+ readonly Standard: "standard";
48
+ readonly Distributed: "distributed";
49
+ readonly Dvswitch: "dvswitch";
50
+ readonly Unsupported: "unsupported";
51
+ };
52
+ export type InfraNetworksInnerTypeEnum = typeof InfraNetworksInnerTypeEnum[keyof typeof InfraNetworksInnerTypeEnum];
53
+ /**
54
+ * Check if a given object implements the InfraNetworksInner interface.
55
+ */
56
+ export declare function instanceOfInfraNetworksInner(value: object): value is InfraNetworksInner;
57
+ export declare function InfraNetworksInnerFromJSON(json: any): InfraNetworksInner;
58
+ export declare function InfraNetworksInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): InfraNetworksInner;
59
+ export declare function InfraNetworksInnerToJSON(value?: InfraNetworksInner | null): any;
@@ -0,0 +1,57 @@
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
+ * @export
16
+ */
17
+ export const InfraNetworksInnerTypeEnum = {
18
+ Standard: 'standard',
19
+ Distributed: 'distributed',
20
+ Dvswitch: 'dvswitch',
21
+ Unsupported: 'unsupported'
22
+ };
23
+ /**
24
+ * Check if a given object implements the InfraNetworksInner interface.
25
+ */
26
+ export function instanceOfInfraNetworksInner(value) {
27
+ if (!('type' in value) || value['type'] === undefined)
28
+ return false;
29
+ if (!('name' in value) || value['name'] === undefined)
30
+ return false;
31
+ return true;
32
+ }
33
+ export function InfraNetworksInnerFromJSON(json) {
34
+ return InfraNetworksInnerFromJSONTyped(json, false);
35
+ }
36
+ export function InfraNetworksInnerFromJSONTyped(json, ignoreDiscriminator) {
37
+ if (json == null) {
38
+ return json;
39
+ }
40
+ return {
41
+ 'type': json['type'],
42
+ 'name': json['name'],
43
+ 'vlanId': json['vlanId'] == null ? undefined : json['vlanId'],
44
+ 'dvswitch': json['dvswitch'] == null ? undefined : json['dvswitch'],
45
+ };
46
+ }
47
+ export function InfraNetworksInnerToJSON(value) {
48
+ if (value == null) {
49
+ return value;
50
+ }
51
+ return {
52
+ 'type': value['type'],
53
+ 'name': value['name'],
54
+ 'vlanId': value['vlanId'],
55
+ 'dvswitch': value['dvswitch'],
56
+ };
57
+ }
@@ -0,0 +1,46 @@
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 { VCenter } from './VCenter';
13
+ import type { Infra } from './Infra';
14
+ import type { VMs } from './VMs';
15
+ /**
16
+ *
17
+ * @export
18
+ * @interface Inventory
19
+ */
20
+ export interface Inventory {
21
+ /**
22
+ *
23
+ * @type {VCenter}
24
+ * @memberof Inventory
25
+ */
26
+ vcenter: VCenter;
27
+ /**
28
+ *
29
+ * @type {VMs}
30
+ * @memberof Inventory
31
+ */
32
+ vms: VMs;
33
+ /**
34
+ *
35
+ * @type {Infra}
36
+ * @memberof Inventory
37
+ */
38
+ infra: Infra;
39
+ }
40
+ /**
41
+ * Check if a given object implements the Inventory interface.
42
+ */
43
+ export declare function instanceOfInventory(value: object): value is Inventory;
44
+ export declare function InventoryFromJSON(json: any): Inventory;
45
+ export declare function InventoryFromJSONTyped(json: any, ignoreDiscriminator: boolean): Inventory;
46
+ export declare function InventoryToJSON(value?: Inventory | null): any;
@@ -0,0 +1,48 @@
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 Inventory interface.
16
+ */
17
+ export function instanceOfInventory(value) {
18
+ if (!('vcenter' in value) || value['vcenter'] === undefined)
19
+ return false;
20
+ if (!('vms' in value) || value['vms'] === undefined)
21
+ return false;
22
+ if (!('infra' in value) || value['infra'] === undefined)
23
+ return false;
24
+ return true;
25
+ }
26
+ export function InventoryFromJSON(json) {
27
+ return InventoryFromJSONTyped(json, false);
28
+ }
29
+ export function InventoryFromJSONTyped(json, ignoreDiscriminator) {
30
+ if (json == null) {
31
+ return json;
32
+ }
33
+ return {
34
+ 'vcenter': json['vcenter'],
35
+ 'vms': json['vms'],
36
+ 'infra': json['infra'],
37
+ };
38
+ }
39
+ export function InventoryToJSON(value) {
40
+ if (value == null) {
41
+ return value;
42
+ }
43
+ return {
44
+ 'vcenter': value['vcenter'],
45
+ 'vms': value['vms'],
46
+ 'infra': value['infra'],
47
+ };
48
+ }