@openshift-migration-advisor/agent-sdk 0.31.0 → 0.32.0-1e681f2e74af

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 (159) hide show
  1. package/.openapi-generator/FILES +20 -2
  2. package/README.md +13 -4
  3. package/dist/apis/AppliancesApi.d.ts +64 -0
  4. package/dist/apis/AppliancesApi.js +72 -0
  5. package/dist/apis/CollectorApi.d.ts +0 -38
  6. package/dist/apis/CollectorApi.js +0 -59
  7. package/dist/apis/GroupsApi.d.ts +39 -0
  8. package/dist/apis/GroupsApi.js +40 -0
  9. package/dist/apis/InventoriesApi.d.ts +9 -9
  10. package/dist/apis/InventoriesApi.js +3 -3
  11. package/dist/apis/index.d.ts +1 -0
  12. package/dist/apis/index.js +1 -0
  13. package/dist/esm/apis/AppliancesApi.d.ts +64 -0
  14. package/dist/esm/apis/AppliancesApi.js +68 -0
  15. package/dist/esm/apis/CollectorApi.d.ts +0 -38
  16. package/dist/esm/apis/CollectorApi.js +0 -59
  17. package/dist/esm/apis/GroupsApi.d.ts +39 -0
  18. package/dist/esm/apis/GroupsApi.js +40 -0
  19. package/dist/esm/apis/InventoriesApi.d.ts +9 -9
  20. package/dist/esm/apis/InventoriesApi.js +3 -3
  21. package/dist/esm/apis/index.d.ts +1 -0
  22. package/dist/esm/apis/index.js +1 -0
  23. package/dist/esm/models/Appliance.d.ts +51 -0
  24. package/dist/esm/models/Appliance.js +64 -0
  25. package/dist/esm/models/ApplianceListResponse.d.ts +31 -0
  26. package/dist/esm/models/ApplianceListResponse.js +44 -0
  27. package/dist/esm/models/ApplicationOverview.d.ts +16 -0
  28. package/dist/esm/models/ApplicationOverview.js +12 -0
  29. package/dist/esm/models/CollectedInventory.d.ts +31 -0
  30. package/dist/esm/models/CollectedInventory.js +44 -0
  31. package/dist/esm/models/GroupResponse.d.ts +2 -2
  32. package/dist/esm/models/GroupResponse.js +3 -3
  33. package/dist/esm/models/Host.d.ts +26 -0
  34. package/dist/esm/models/Host.js +14 -0
  35. package/dist/esm/models/HostPhysicalNIC.d.ts +34 -0
  36. package/dist/esm/models/HostPhysicalNIC.js +45 -0
  37. package/dist/esm/models/HostStorageAdapter.d.ts +58 -0
  38. package/dist/esm/models/HostStorageAdapter.js +55 -0
  39. package/dist/esm/models/HostStorageLun.d.ts +50 -0
  40. package/dist/esm/models/HostStorageLun.js +51 -0
  41. package/dist/esm/models/Inventory.d.ts +24 -2
  42. package/dist/esm/models/Inventory.js +17 -4
  43. package/dist/esm/models/OsInfo.d.ts +12 -0
  44. package/dist/esm/models/OsInfo.js +9 -0
  45. package/dist/esm/models/Product.d.ts +66 -0
  46. package/dist/esm/models/Product.js +61 -0
  47. package/dist/esm/models/RDMBacking.d.ts +26 -0
  48. package/dist/esm/models/RDMBacking.js +17 -0
  49. package/dist/esm/models/RDMHostLun.d.ts +42 -0
  50. package/dist/esm/models/RDMHostLun.js +49 -0
  51. package/dist/esm/models/UpdateInventory.d.ts +2 -2
  52. package/dist/esm/models/UpdateInventory.js +3 -3
  53. package/dist/esm/models/VirtualMachineDetail.d.ts +14 -0
  54. package/dist/esm/models/VirtualMachineDetail.js +8 -0
  55. package/dist/esm/models/VirtualMachineDisk.d.ts +8 -0
  56. package/dist/esm/models/VirtualMachineDisk.js +4 -0
  57. package/dist/esm/models/VirtualMachineIdentity.d.ts +34 -0
  58. package/dist/esm/models/VirtualMachineIdentity.js +47 -0
  59. package/dist/esm/models/VirtualMachineNIC.d.ts +12 -0
  60. package/dist/esm/models/VirtualMachineNIC.js +6 -0
  61. package/dist/esm/models/index.d.ts +9 -1
  62. package/dist/esm/models/index.js +9 -1
  63. package/dist/esm/runtime.js +4 -3
  64. package/dist/models/Appliance.d.ts +51 -0
  65. package/dist/models/Appliance.js +71 -0
  66. package/dist/models/ApplianceListResponse.d.ts +31 -0
  67. package/dist/models/ApplianceListResponse.js +51 -0
  68. package/dist/models/ApplicationOverview.d.ts +16 -0
  69. package/dist/models/ApplicationOverview.js +12 -0
  70. package/dist/models/CollectedInventory.d.ts +31 -0
  71. package/dist/models/CollectedInventory.js +51 -0
  72. package/dist/models/GroupResponse.d.ts +2 -2
  73. package/dist/models/GroupResponse.js +3 -3
  74. package/dist/models/Host.d.ts +26 -0
  75. package/dist/models/Host.js +14 -0
  76. package/dist/models/HostPhysicalNIC.d.ts +34 -0
  77. package/dist/models/HostPhysicalNIC.js +52 -0
  78. package/dist/models/HostStorageAdapter.d.ts +58 -0
  79. package/dist/models/HostStorageAdapter.js +62 -0
  80. package/dist/models/HostStorageLun.d.ts +50 -0
  81. package/dist/models/HostStorageLun.js +58 -0
  82. package/dist/models/Inventory.d.ts +24 -2
  83. package/dist/models/Inventory.js +17 -4
  84. package/dist/models/OsInfo.d.ts +12 -0
  85. package/dist/models/OsInfo.js +10 -1
  86. package/dist/models/Product.d.ts +66 -0
  87. package/dist/models/Product.js +68 -0
  88. package/dist/models/RDMBacking.d.ts +26 -0
  89. package/dist/models/RDMBacking.js +18 -0
  90. package/dist/models/RDMHostLun.d.ts +42 -0
  91. package/dist/models/RDMHostLun.js +56 -0
  92. package/dist/models/UpdateInventory.d.ts +2 -2
  93. package/dist/models/UpdateInventory.js +3 -3
  94. package/dist/models/VirtualMachineDetail.d.ts +14 -0
  95. package/dist/models/VirtualMachineDetail.js +8 -0
  96. package/dist/models/VirtualMachineDisk.d.ts +8 -0
  97. package/dist/models/VirtualMachineDisk.js +4 -0
  98. package/dist/models/VirtualMachineIdentity.d.ts +34 -0
  99. package/dist/models/VirtualMachineIdentity.js +54 -0
  100. package/dist/models/VirtualMachineNIC.d.ts +12 -0
  101. package/dist/models/VirtualMachineNIC.js +6 -0
  102. package/dist/models/index.d.ts +9 -1
  103. package/dist/models/index.js +9 -1
  104. package/dist/runtime.js +4 -3
  105. package/docs/Appliance.md +44 -0
  106. package/docs/ApplianceListResponse.md +34 -0
  107. package/docs/AppliancesApi.md +76 -0
  108. package/docs/ApplicationOverview.md +8 -0
  109. package/docs/CollectedInventory.md +34 -0
  110. package/docs/CollectorApi.md +0 -70
  111. package/docs/GroupResponse.md +1 -1
  112. package/docs/GroupsApi.md +68 -0
  113. package/docs/Host.md +12 -0
  114. package/docs/HostPhysicalNIC.md +36 -0
  115. package/docs/HostStorageAdapter.md +49 -0
  116. package/docs/HostStorageLun.md +45 -0
  117. package/docs/InventoriesApi.md +4 -4
  118. package/docs/Inventory.md +12 -2
  119. package/docs/OsInfo.md +2 -0
  120. package/docs/Product.md +52 -0
  121. package/docs/RDMBacking.md +8 -0
  122. package/docs/{Inventory1.md → RDMHostLun.md} +13 -16
  123. package/docs/UpdateInventory.md +1 -1
  124. package/docs/VirtualMachineDetail.md +6 -0
  125. package/docs/VirtualMachineDisk.md +4 -0
  126. package/docs/VirtualMachineIdentity.md +36 -0
  127. package/docs/VirtualMachineNIC.md +6 -0
  128. package/package.json +1 -1
  129. package/src/apis/AppliancesApi.ts +111 -0
  130. package/src/apis/CollectorApi.ts +0 -97
  131. package/src/apis/GroupsApi.ts +80 -0
  132. package/src/apis/InventoriesApi.ts +14 -14
  133. package/src/apis/index.ts +1 -0
  134. package/src/models/Appliance.ts +107 -0
  135. package/src/models/ApplianceListResponse.ts +72 -0
  136. package/src/models/ApplicationOverview.ts +26 -0
  137. package/src/models/CollectedInventory.ts +72 -0
  138. package/src/models/GroupResponse.ts +9 -9
  139. package/src/models/Host.ts +51 -0
  140. package/src/models/HostPhysicalNIC.ts +70 -0
  141. package/src/models/HostStorageAdapter.ts +105 -0
  142. package/src/models/HostStorageLun.ts +93 -0
  143. package/src/models/Inventory.ts +42 -11
  144. package/src/models/OsInfo.ts +15 -0
  145. package/src/models/Product.ts +118 -0
  146. package/src/models/RDMBacking.ts +44 -0
  147. package/src/models/RDMHostLun.ts +82 -0
  148. package/src/models/UpdateInventory.ts +9 -9
  149. package/src/models/VirtualMachineDetail.ts +32 -0
  150. package/src/models/VirtualMachineDisk.ts +12 -0
  151. package/src/models/VirtualMachineIdentity.ts +71 -0
  152. package/src/models/VirtualMachineNIC.ts +18 -0
  153. package/src/models/index.ts +9 -1
  154. package/src/runtime.ts +3 -3
  155. package/dist/esm/models/Inventory1.d.ts +0 -53
  156. package/dist/esm/models/Inventory1.js +0 -57
  157. package/dist/models/Inventory1.d.ts +0 -53
  158. package/dist/models/Inventory1.js +0 -64
  159. package/src/models/Inventory1.ts +0 -103
@@ -23,6 +23,18 @@ export interface VirtualMachineNIC {
23
23
  * Virtual adapter model, such as Vmxnet3 or E1000
24
24
  */
25
25
  adapter?: string;
26
+ /**
27
+ * Port-group VLAN configuration when supplied; empty when unknown.
28
+ */
29
+ vlanId?: string;
30
+ /**
31
+ * IPv4 addresses reported for this adapter. An IP address may also contain a CIDR suffix. Empty array when unknown.
32
+ */
33
+ ipv4Addresses?: Array<string>;
34
+ /**
35
+ * IPv6 addresses reported for this adapter. An IP address may also contain a CIDR suffix. Empty array when unknown.
36
+ */
37
+ ipv6Addresses?: Array<string>;
26
38
  /**
27
39
  * MAC address
28
40
  */
@@ -55,6 +67,9 @@ export function VirtualMachineNICFromJSONTyped(json: any, ignoreDiscriminator: b
55
67
  return {
56
68
 
57
69
  'adapter': json['adapter'] == null ? undefined : json['adapter'],
70
+ 'vlanId': json['vlanId'] == null ? undefined : json['vlanId'],
71
+ 'ipv4Addresses': json['ipv4Addresses'] == null ? undefined : json['ipv4Addresses'],
72
+ 'ipv6Addresses': json['ipv6Addresses'] == null ? undefined : json['ipv6Addresses'],
58
73
  'mac': json['mac'] == null ? undefined : json['mac'],
59
74
  'network': json['network'] == null ? undefined : json['network'],
60
75
  'index': json['index'] == null ? undefined : json['index'],
@@ -73,6 +88,9 @@ export function VirtualMachineNICToJSONTyped(value?: VirtualMachineNIC | null, i
73
88
  return {
74
89
 
75
90
  'adapter': value['adapter'],
91
+ 'vlanId': value['vlanId'],
92
+ 'ipv4Addresses': value['ipv4Addresses'],
93
+ 'ipv6Addresses': value['ipv6Addresses'],
76
94
  'mac': value['mac'],
77
95
  'network': value['network'],
78
96
  'index': value['index'],
@@ -3,6 +3,8 @@
3
3
  export * from './AgentModeRequest.js';
4
4
  export * from './AgentStatus.js';
5
5
  export * from './AgentStatusConsoleConnection.js';
6
+ export * from './Appliance.js';
7
+ export * from './ApplianceListResponse.js';
6
8
  export * from './ApplicationListResponse.js';
7
9
  export * from './ApplicationOverview.js';
8
10
  export * from './ApplicationVM.js';
@@ -12,6 +14,7 @@ export * from './CapabilityStatus.js';
12
14
  export * from './CapabilityStatusCapabilities.js';
13
15
  export * from './ClusterFeatures.js';
14
16
  export * from './ClusterUtilization.js';
17
+ export * from './CollectedInventory.js';
15
18
  export * from './Collection.js';
16
19
  export * from './CollectionAggregate.js';
17
20
  export * from './CollectionComparisonDiff.js';
@@ -39,11 +42,13 @@ export * from './GroupResponse.js';
39
42
  export * from './GuestNetwork.js';
40
43
  export * from './Histogram.js';
41
44
  export * from './Host.js';
45
+ export * from './HostPhysicalNIC.js';
46
+ export * from './HostStorageAdapter.js';
47
+ export * from './HostStorageLun.js';
42
48
  export * from './Infra.js';
43
49
  export * from './InspectionStatus.js';
44
50
  export * from './InspectorStatus.js';
45
51
  export * from './Inventory.js';
46
- export * from './Inventory1.js';
47
52
  export * from './InventoryData.js';
48
53
  export * from './IssuesBreakdown.js';
49
54
  export * from './MigrationIssue.js';
@@ -53,7 +58,9 @@ export * from './OsInfo.js';
53
58
  export * from './PairCapability.js';
54
59
  export * from './PairCapabilityRequest.js';
55
60
  export * from './Process.js';
61
+ export * from './Product.js';
56
62
  export * from './RDMBacking.js';
63
+ export * from './RDMHostLun.js';
57
64
  export * from './RightsizingClusterResponse.js';
58
65
  export * from './RightsizingClusterUtilization.js';
59
66
  export * from './StartForecasterRequest.js';
@@ -76,6 +83,7 @@ export * from './VirtualMachineDatastore.js';
76
83
  export * from './VirtualMachineDetail.js';
77
84
  export * from './VirtualMachineDevice.js';
78
85
  export * from './VirtualMachineDisk.js';
86
+ export * from './VirtualMachineIdentity.js';
79
87
  export * from './VirtualMachineInspectionConcern.js';
80
88
  export * from './VirtualMachineInspectionResults.js';
81
89
  export * from './VirtualMachineIssue.js';
package/src/runtime.ts CHANGED
@@ -533,7 +533,7 @@ export function parseContentDispositionFilename(headers: Headers): string | unde
533
533
  function decodeExtValue(value: string | undefined): string | undefined {
534
534
  const match = value === undefined ? null : /^utf-8'[^']*'(.*)$/i.exec(value);
535
535
  try {
536
- return match ? decodeURIComponent(match[1]) : undefined;
536
+ return match?.[1] !== undefined ? decodeURIComponent(match[1]) : undefined;
537
537
  } catch {
538
538
  return undefined;
539
539
  }
@@ -549,9 +549,9 @@ function parseHeaderParameters(value: string): Map<string, string> {
549
549
  const parameter = /(?:^|;)\s*([^=;]+?)\s*=\s*(?:"((?:[^"\\]|\\.)*)"?|([^;]*))/g;
550
550
  let match: RegExpExecArray | null;
551
551
  while ((match = parameter.exec(value)) !== null) {
552
- const name = match[1].toLowerCase();
552
+ const name = (match[1] ?? '').toLowerCase();
553
553
  if (!params.has(name)) {
554
- params.set(name, match[2] !== undefined ? match[2].replace(/\\(.)/g, '$1') : match[3].trim());
554
+ params.set(name, match[2] !== undefined ? match[2].replace(/\\(.)/g, '$1') : (match[3] ?? '').trim());
555
555
  }
556
556
  }
557
557
  return params;
@@ -1,53 +0,0 @@
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: v2
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 { InventoryData } from './InventoryData.js';
13
- /**
14
- *
15
- * @export
16
- * @interface Inventory1
17
- */
18
- export interface Inventory1 {
19
- /**
20
- * ID of the vCenter
21
- */
22
- vcenter_id: string;
23
- /**
24
- * Version of the vCenter api. For example "8.0.3.0"
25
- */
26
- vcenter_version?: string;
27
- /**
28
- * Map of cluster names to their inventory data
29
- */
30
- clusters: {
31
- [key: string]: InventoryData;
32
- };
33
- /**
34
- *
35
- */
36
- vcenter?: InventoryData;
37
- /**
38
- * Timestamp when the inventory document was built
39
- */
40
- created_at?: Date;
41
- /**
42
- * Oldest known source collection time. Agent data uses collection database creation time; RVTools uses export metadata, assuming UTC when no timezone is specified. Null when unknown.
43
- */
44
- collection_time?: Date | null;
45
- }
46
- /**
47
- * Check if a given object implements the Inventory1 interface.
48
- */
49
- export declare function instanceOfInventory1(value: object): value is Inventory1;
50
- export declare function Inventory1FromJSON(json: any): Inventory1;
51
- export declare function Inventory1FromJSONTyped(json: any, ignoreDiscriminator: boolean): Inventory1;
52
- export declare function Inventory1ToJSON(json: any): Inventory1;
53
- export declare function Inventory1ToJSONTyped(value?: Inventory1 | null, ignoreDiscriminator?: boolean): any;
@@ -1,57 +0,0 @@
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: v2
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 { mapValues, parseDateTime, serializeDateTime } from '../runtime.js';
15
- import { InventoryDataFromJSON, InventoryDataToJSON, } from './InventoryData.js';
16
- /**
17
- * Check if a given object implements the Inventory1 interface.
18
- */
19
- export function instanceOfInventory1(value) {
20
- if (!('vcenter_id' in value) || value['vcenter_id'] === undefined)
21
- return false;
22
- if (!('clusters' in value) || value['clusters'] === undefined)
23
- return false;
24
- return true;
25
- }
26
- export function Inventory1FromJSON(json) {
27
- return Inventory1FromJSONTyped(json, false);
28
- }
29
- export function Inventory1FromJSONTyped(json, ignoreDiscriminator) {
30
- if (json == null) {
31
- return json;
32
- }
33
- return {
34
- 'vcenter_id': json['vcenter_id'],
35
- 'vcenter_version': json['vcenter_version'] == null ? undefined : json['vcenter_version'],
36
- 'clusters': (mapValues(json['clusters'], InventoryDataFromJSON)),
37
- 'vcenter': json['vcenter'] == null ? undefined : InventoryDataFromJSON(json['vcenter']),
38
- 'created_at': json['created_at'] == null ? undefined : (parseDateTime(json['created_at'])),
39
- 'collection_time': json['collection_time'] === undefined ? undefined : json['collection_time'] === null ? null : (parseDateTime(json['collection_time'])),
40
- };
41
- }
42
- export function Inventory1ToJSON(json) {
43
- return Inventory1ToJSONTyped(json, false);
44
- }
45
- export function Inventory1ToJSONTyped(value, ignoreDiscriminator = false) {
46
- if (value == null) {
47
- return value;
48
- }
49
- return {
50
- 'vcenter_id': value['vcenter_id'],
51
- 'vcenter_version': value['vcenter_version'],
52
- 'clusters': (mapValues(value['clusters'], InventoryDataToJSON)),
53
- 'vcenter': InventoryDataToJSON(value['vcenter']),
54
- 'created_at': value['created_at'] == null ? value['created_at'] : serializeDateTime(value['created_at']),
55
- 'collection_time': value['collection_time'] == null ? value['collection_time'] : serializeDateTime(value['collection_time']),
56
- };
57
- }
@@ -1,53 +0,0 @@
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: v2
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 { InventoryData } from './InventoryData.js';
13
- /**
14
- *
15
- * @export
16
- * @interface Inventory1
17
- */
18
- export interface Inventory1 {
19
- /**
20
- * ID of the vCenter
21
- */
22
- vcenter_id: string;
23
- /**
24
- * Version of the vCenter api. For example "8.0.3.0"
25
- */
26
- vcenter_version?: string;
27
- /**
28
- * Map of cluster names to their inventory data
29
- */
30
- clusters: {
31
- [key: string]: InventoryData;
32
- };
33
- /**
34
- *
35
- */
36
- vcenter?: InventoryData;
37
- /**
38
- * Timestamp when the inventory document was built
39
- */
40
- created_at?: Date;
41
- /**
42
- * Oldest known source collection time. Agent data uses collection database creation time; RVTools uses export metadata, assuming UTC when no timezone is specified. Null when unknown.
43
- */
44
- collection_time?: Date | null;
45
- }
46
- /**
47
- * Check if a given object implements the Inventory1 interface.
48
- */
49
- export declare function instanceOfInventory1(value: object): value is Inventory1;
50
- export declare function Inventory1FromJSON(json: any): Inventory1;
51
- export declare function Inventory1FromJSONTyped(json: any, ignoreDiscriminator: boolean): Inventory1;
52
- export declare function Inventory1ToJSON(json: any): Inventory1;
53
- export declare function Inventory1ToJSONTyped(value?: Inventory1 | null, ignoreDiscriminator?: boolean): any;
@@ -1,64 +0,0 @@
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: v2
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.instanceOfInventory1 = instanceOfInventory1;
17
- exports.Inventory1FromJSON = Inventory1FromJSON;
18
- exports.Inventory1FromJSONTyped = Inventory1FromJSONTyped;
19
- exports.Inventory1ToJSON = Inventory1ToJSON;
20
- exports.Inventory1ToJSONTyped = Inventory1ToJSONTyped;
21
- const runtime_js_1 = require("../runtime.js");
22
- const InventoryData_js_1 = require("./InventoryData.js");
23
- /**
24
- * Check if a given object implements the Inventory1 interface.
25
- */
26
- function instanceOfInventory1(value) {
27
- if (!('vcenter_id' in value) || value['vcenter_id'] === undefined)
28
- return false;
29
- if (!('clusters' in value) || value['clusters'] === undefined)
30
- return false;
31
- return true;
32
- }
33
- function Inventory1FromJSON(json) {
34
- return Inventory1FromJSONTyped(json, false);
35
- }
36
- function Inventory1FromJSONTyped(json, ignoreDiscriminator) {
37
- if (json == null) {
38
- return json;
39
- }
40
- return {
41
- 'vcenter_id': json['vcenter_id'],
42
- 'vcenter_version': json['vcenter_version'] == null ? undefined : json['vcenter_version'],
43
- 'clusters': ((0, runtime_js_1.mapValues)(json['clusters'], InventoryData_js_1.InventoryDataFromJSON)),
44
- 'vcenter': json['vcenter'] == null ? undefined : (0, InventoryData_js_1.InventoryDataFromJSON)(json['vcenter']),
45
- 'created_at': json['created_at'] == null ? undefined : ((0, runtime_js_1.parseDateTime)(json['created_at'])),
46
- 'collection_time': json['collection_time'] === undefined ? undefined : json['collection_time'] === null ? null : ((0, runtime_js_1.parseDateTime)(json['collection_time'])),
47
- };
48
- }
49
- function Inventory1ToJSON(json) {
50
- return Inventory1ToJSONTyped(json, false);
51
- }
52
- function Inventory1ToJSONTyped(value, ignoreDiscriminator = false) {
53
- if (value == null) {
54
- return value;
55
- }
56
- return {
57
- 'vcenter_id': value['vcenter_id'],
58
- 'vcenter_version': value['vcenter_version'],
59
- 'clusters': ((0, runtime_js_1.mapValues)(value['clusters'], InventoryData_js_1.InventoryDataToJSON)),
60
- 'vcenter': (0, InventoryData_js_1.InventoryDataToJSON)(value['vcenter']),
61
- 'created_at': value['created_at'] == null ? value['created_at'] : (0, runtime_js_1.serializeDateTime)(value['created_at']),
62
- 'collection_time': value['collection_time'] == null ? value['collection_time'] : (0, runtime_js_1.serializeDateTime)(value['collection_time']),
63
- };
64
- }
@@ -1,103 +0,0 @@
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: v2
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
- import { mapValues, parseDate, parseDateTime, serializeDate, serializeDateTime } from '../runtime.js';
16
- import type { InventoryData } from './InventoryData.js';
17
- import {
18
- InventoryDataFromJSON,
19
- InventoryDataFromJSONTyped,
20
- InventoryDataToJSON,
21
- InventoryDataToJSONTyped,
22
- } from './InventoryData.js';
23
-
24
- /**
25
- *
26
- * @export
27
- * @interface Inventory1
28
- */
29
- export interface Inventory1 {
30
- /**
31
- * ID of the vCenter
32
- */
33
- vcenter_id: string;
34
- /**
35
- * Version of the vCenter api. For example "8.0.3.0"
36
- */
37
- vcenter_version?: string;
38
- /**
39
- * Map of cluster names to their inventory data
40
- */
41
- clusters: { [key: string]: InventoryData; };
42
- /**
43
- *
44
- */
45
- vcenter?: InventoryData;
46
- /**
47
- * Timestamp when the inventory document was built
48
- */
49
- created_at?: Date;
50
- /**
51
- * Oldest known source collection time. Agent data uses collection database creation time; RVTools uses export metadata, assuming UTC when no timezone is specified. Null when unknown.
52
- */
53
- collection_time?: Date | null;
54
- }
55
-
56
- /**
57
- * Check if a given object implements the Inventory1 interface.
58
- */
59
- export function instanceOfInventory1(value: object): value is Inventory1 {
60
- if (!('vcenter_id' in value) || value['vcenter_id'] === undefined) return false;
61
- if (!('clusters' in value) || value['clusters'] === undefined) return false;
62
- return true;
63
- }
64
-
65
- export function Inventory1FromJSON(json: any): Inventory1 {
66
- return Inventory1FromJSONTyped(json, false);
67
- }
68
-
69
- export function Inventory1FromJSONTyped(json: any, ignoreDiscriminator: boolean): Inventory1 {
70
- if (json == null) {
71
- return json;
72
- }
73
- return {
74
-
75
- 'vcenter_id': json['vcenter_id'],
76
- 'vcenter_version': json['vcenter_version'] == null ? undefined : json['vcenter_version'],
77
- 'clusters': (mapValues(json['clusters'], InventoryDataFromJSON)),
78
- 'vcenter': json['vcenter'] == null ? undefined : InventoryDataFromJSON(json['vcenter']),
79
- 'created_at': json['created_at'] == null ? undefined : (parseDateTime(json['created_at'])),
80
- 'collection_time': json['collection_time'] === undefined ? undefined : json['collection_time'] === null ? null : (parseDateTime(json['collection_time'])),
81
- };
82
- }
83
-
84
- export function Inventory1ToJSON(json: any): Inventory1 {
85
- return Inventory1ToJSONTyped(json, false);
86
- }
87
-
88
- export function Inventory1ToJSONTyped(value?: Inventory1 | null, ignoreDiscriminator: boolean = false): any {
89
- if (value == null) {
90
- return value;
91
- }
92
-
93
- return {
94
-
95
- 'vcenter_id': value['vcenter_id'],
96
- 'vcenter_version': value['vcenter_version'],
97
- 'clusters': (mapValues(value['clusters'], InventoryDataToJSON)),
98
- 'vcenter': InventoryDataToJSON(value['vcenter']),
99
- 'created_at': value['created_at'] == null ? value['created_at'] : serializeDateTime(value['created_at']),
100
- 'collection_time': value['collection_time'] == null ? value['collection_time'] : serializeDateTime(value['collection_time']),
101
- };
102
- }
103
-