@openshift-migration-advisor/planner-sdk 0.20.2 → 0.20.3-7b7fa251be69

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 (116) hide show
  1. package/.openapi-generator/FILES +22 -0
  2. package/README.md +15 -2
  3. package/dist/apis/AssessmentApi.d.ts +81 -0
  4. package/dist/apis/AssessmentApi.js +84 -0
  5. package/dist/esm/apis/AssessmentApi.d.ts +81 -0
  6. package/dist/esm/apis/AssessmentApi.js +84 -0
  7. package/dist/esm/models/ActiveEnvironmentsInput.d.ts +41 -0
  8. package/dist/esm/models/ActiveEnvironmentsInput.js +51 -0
  9. package/dist/esm/models/Agent.js +4 -4
  10. package/dist/esm/models/AriaAutomationInput.d.ts +51 -0
  11. package/dist/esm/models/AriaAutomationInput.js +61 -0
  12. package/dist/esm/models/AriaOpsInput.d.ts +49 -0
  13. package/dist/esm/models/AriaOpsInput.js +59 -0
  14. package/dist/esm/models/AriaSecureInput.d.ts +41 -0
  15. package/dist/esm/models/AriaSecureInput.js +51 -0
  16. package/dist/esm/models/Assessment.js +2 -2
  17. package/dist/esm/models/AssessmentSubsetInventory.js +2 -2
  18. package/dist/esm/models/CustomerDetailsInput.d.ts +34 -0
  19. package/dist/esm/models/CustomerDetailsInput.js +43 -0
  20. package/dist/esm/models/DeployedEnvironmentInput.d.ts +40 -0
  21. package/dist/esm/models/DeployedEnvironmentInput.js +50 -0
  22. package/dist/esm/models/EnhancementData.d.ts +76 -0
  23. package/dist/esm/models/EnhancementData.js +69 -0
  24. package/dist/esm/models/Group.js +4 -4
  25. package/dist/esm/models/Host.d.ts +8 -0
  26. package/dist/esm/models/Host.js +4 -0
  27. package/dist/esm/models/Inventory.d.ts +4 -0
  28. package/dist/esm/models/Inventory.js +2 -0
  29. package/dist/esm/models/Member.js +2 -2
  30. package/dist/esm/models/NsxInput.d.ts +46 -0
  31. package/dist/esm/models/NsxInput.js +56 -0
  32. package/dist/esm/models/PartnerRequest.js +2 -2
  33. package/dist/esm/models/Snapshot.js +2 -2
  34. package/dist/esm/models/Source.js +4 -4
  35. package/dist/esm/models/VMwareSubscriptionInput.d.ts +42 -0
  36. package/dist/esm/models/VMwareSubscriptionInput.js +52 -0
  37. package/dist/esm/models/VMwareVersionCountsInput.d.ts +42 -0
  38. package/dist/esm/models/VMwareVersionCountsInput.js +47 -0
  39. package/dist/esm/models/VsphereCoreInput.d.ts +38 -0
  40. package/dist/esm/models/VsphereCoreInput.js +45 -0
  41. package/dist/esm/models/index.d.ts +11 -0
  42. package/dist/esm/models/index.js +11 -0
  43. package/dist/models/ActiveEnvironmentsInput.d.ts +41 -0
  44. package/dist/models/ActiveEnvironmentsInput.js +59 -0
  45. package/dist/models/Agent.js +4 -4
  46. package/dist/models/AriaAutomationInput.d.ts +51 -0
  47. package/dist/models/AriaAutomationInput.js +69 -0
  48. package/dist/models/AriaOpsInput.d.ts +49 -0
  49. package/dist/models/AriaOpsInput.js +67 -0
  50. package/dist/models/AriaSecureInput.d.ts +41 -0
  51. package/dist/models/AriaSecureInput.js +59 -0
  52. package/dist/models/Assessment.js +2 -2
  53. package/dist/models/AssessmentSubsetInventory.js +2 -2
  54. package/dist/models/CustomerDetailsInput.d.ts +34 -0
  55. package/dist/models/CustomerDetailsInput.js +50 -0
  56. package/dist/models/DeployedEnvironmentInput.d.ts +40 -0
  57. package/dist/models/DeployedEnvironmentInput.js +58 -0
  58. package/dist/models/EnhancementData.d.ts +76 -0
  59. package/dist/models/EnhancementData.js +76 -0
  60. package/dist/models/Group.js +4 -4
  61. package/dist/models/Host.d.ts +8 -0
  62. package/dist/models/Host.js +4 -0
  63. package/dist/models/Inventory.d.ts +4 -0
  64. package/dist/models/Inventory.js +2 -0
  65. package/dist/models/Member.js +2 -2
  66. package/dist/models/NsxInput.d.ts +46 -0
  67. package/dist/models/NsxInput.js +64 -0
  68. package/dist/models/PartnerRequest.js +2 -2
  69. package/dist/models/Snapshot.js +2 -2
  70. package/dist/models/Source.js +4 -4
  71. package/dist/models/VMwareSubscriptionInput.d.ts +42 -0
  72. package/dist/models/VMwareSubscriptionInput.js +60 -0
  73. package/dist/models/VMwareVersionCountsInput.d.ts +42 -0
  74. package/dist/models/VMwareVersionCountsInput.js +54 -0
  75. package/dist/models/VsphereCoreInput.d.ts +38 -0
  76. package/dist/models/VsphereCoreInput.js +52 -0
  77. package/dist/models/index.d.ts +11 -0
  78. package/dist/models/index.js +11 -0
  79. package/docs/ActiveEnvironmentsInput.md +34 -0
  80. package/docs/AriaAutomationInput.md +34 -0
  81. package/docs/AriaOpsInput.md +34 -0
  82. package/docs/AriaSecureInput.md +34 -0
  83. package/docs/AssessmentApi.md +148 -0
  84. package/docs/CustomerDetailsInput.md +36 -0
  85. package/docs/DeployedEnvironmentInput.md +34 -0
  86. package/docs/EnhancementData.md +53 -0
  87. package/docs/Host.md +4 -0
  88. package/docs/Inventory.md +2 -0
  89. package/docs/NsxInput.md +34 -0
  90. package/docs/VMwareSubscriptionInput.md +34 -0
  91. package/docs/VMwareVersionCountsInput.md +40 -0
  92. package/docs/VsphereCoreInput.md +38 -0
  93. package/package.json +1 -1
  94. package/src/apis/AssessmentApi.ts +169 -0
  95. package/src/models/ActiveEnvironmentsInput.ts +77 -0
  96. package/src/models/Agent.ts +4 -4
  97. package/src/models/AriaAutomationInput.ts +87 -0
  98. package/src/models/AriaOpsInput.ts +85 -0
  99. package/src/models/AriaSecureInput.ts +77 -0
  100. package/src/models/Assessment.ts +2 -2
  101. package/src/models/AssessmentSubsetInventory.ts +2 -2
  102. package/src/models/CustomerDetailsInput.ts +69 -0
  103. package/src/models/DeployedEnvironmentInput.ts +76 -0
  104. package/src/models/EnhancementData.ts +188 -0
  105. package/src/models/Group.ts +4 -4
  106. package/src/models/Host.ts +12 -0
  107. package/src/models/Inventory.ts +6 -0
  108. package/src/models/Member.ts +2 -2
  109. package/src/models/NsxInput.ts +82 -0
  110. package/src/models/PartnerRequest.ts +2 -2
  111. package/src/models/Snapshot.ts +2 -2
  112. package/src/models/Source.ts +4 -4
  113. package/src/models/VMwareSubscriptionInput.ts +78 -0
  114. package/src/models/VMwareVersionCountsInput.ts +81 -0
  115. package/src/models/VsphereCoreInput.ts +75 -0
  116. package/src/models/index.ts +11 -0
@@ -0,0 +1,58 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * OpenShift Migration Advisor API
6
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
+ *
8
+ * The version of the OpenAPI document: v1alpha1
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.DeployedEnvironmentInputEnvironmentEnum = void 0;
17
+ exports.instanceOfDeployedEnvironmentInput = instanceOfDeployedEnvironmentInput;
18
+ exports.DeployedEnvironmentInputFromJSON = DeployedEnvironmentInputFromJSON;
19
+ exports.DeployedEnvironmentInputFromJSONTyped = DeployedEnvironmentInputFromJSONTyped;
20
+ exports.DeployedEnvironmentInputToJSON = DeployedEnvironmentInputToJSON;
21
+ exports.DeployedEnvironmentInputToJSONTyped = DeployedEnvironmentInputToJSONTyped;
22
+ /**
23
+ * @export
24
+ */
25
+ exports.DeployedEnvironmentInputEnvironmentEnum = {
26
+ OnPremises: 'on_premises',
27
+ OnCloud: 'on_cloud',
28
+ ManagedServices: 'managed_services',
29
+ NotAssessed: 'not_assessed'
30
+ };
31
+ /**
32
+ * Check if a given object implements the DeployedEnvironmentInput interface.
33
+ */
34
+ function instanceOfDeployedEnvironmentInput(value) {
35
+ return true;
36
+ }
37
+ function DeployedEnvironmentInputFromJSON(json) {
38
+ return DeployedEnvironmentInputFromJSONTyped(json, false);
39
+ }
40
+ function DeployedEnvironmentInputFromJSONTyped(json, ignoreDiscriminator) {
41
+ if (json == null) {
42
+ return json;
43
+ }
44
+ return {
45
+ 'environment': json['environment'] == null ? undefined : json['environment'],
46
+ };
47
+ }
48
+ function DeployedEnvironmentInputToJSON(json) {
49
+ return DeployedEnvironmentInputToJSONTyped(json, false);
50
+ }
51
+ function DeployedEnvironmentInputToJSONTyped(value, ignoreDiscriminator = false) {
52
+ if (value == null) {
53
+ return value;
54
+ }
55
+ return {
56
+ 'environment': value['environment'],
57
+ };
58
+ }
@@ -0,0 +1,76 @@
1
+ /**
2
+ * OpenShift Migration Advisor API
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: v1alpha1
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 { NsxInput } from './NsxInput.js';
13
+ import type { AriaSecureInput } from './AriaSecureInput.js';
14
+ import type { DeployedEnvironmentInput } from './DeployedEnvironmentInput.js';
15
+ import type { VMwareSubscriptionInput } from './VMwareSubscriptionInput.js';
16
+ import type { CustomerDetailsInput } from './CustomerDetailsInput.js';
17
+ import type { VMwareVersionCountsInput } from './VMwareVersionCountsInput.js';
18
+ import type { VsphereCoreInput } from './VsphereCoreInput.js';
19
+ import type { AriaAutomationInput } from './AriaAutomationInput.js';
20
+ import type { AriaOpsInput } from './AriaOpsInput.js';
21
+ import type { ActiveEnvironmentsInput } from './ActiveEnvironmentsInput.js';
22
+ /**
23
+ * VMA enhancement data — fields that cannot be auto-collected by Agent or RVTools
24
+ * @export
25
+ * @interface EnhancementData
26
+ */
27
+ export interface EnhancementData {
28
+ /**
29
+ *
30
+ */
31
+ deployedEnvironment?: DeployedEnvironmentInput;
32
+ /**
33
+ *
34
+ */
35
+ vmwareVersionCounts?: VMwareVersionCountsInput;
36
+ /**
37
+ *
38
+ */
39
+ activeEnvironments?: ActiveEnvironmentsInput;
40
+ /**
41
+ *
42
+ */
43
+ vmwareSubscription?: VMwareSubscriptionInput;
44
+ /**
45
+ *
46
+ */
47
+ vsphereCore?: VsphereCoreInput;
48
+ /**
49
+ *
50
+ */
51
+ nsx?: NsxInput;
52
+ /**
53
+ *
54
+ */
55
+ ariaOps?: AriaOpsInput;
56
+ /**
57
+ *
58
+ */
59
+ ariaAutomation?: AriaAutomationInput;
60
+ /**
61
+ *
62
+ */
63
+ ariaSecure?: AriaSecureInput;
64
+ /**
65
+ *
66
+ */
67
+ customerDetails?: CustomerDetailsInput;
68
+ }
69
+ /**
70
+ * Check if a given object implements the EnhancementData interface.
71
+ */
72
+ export declare function instanceOfEnhancementData(value: object): value is EnhancementData;
73
+ export declare function EnhancementDataFromJSON(json: any): EnhancementData;
74
+ export declare function EnhancementDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): EnhancementData;
75
+ export declare function EnhancementDataToJSON(json: any): EnhancementData;
76
+ export declare function EnhancementDataToJSONTyped(value?: EnhancementData | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,76 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * OpenShift Migration Advisor API
6
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
+ *
8
+ * The version of the OpenAPI document: v1alpha1
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.instanceOfEnhancementData = instanceOfEnhancementData;
17
+ exports.EnhancementDataFromJSON = EnhancementDataFromJSON;
18
+ exports.EnhancementDataFromJSONTyped = EnhancementDataFromJSONTyped;
19
+ exports.EnhancementDataToJSON = EnhancementDataToJSON;
20
+ exports.EnhancementDataToJSONTyped = EnhancementDataToJSONTyped;
21
+ const NsxInput_js_1 = require("./NsxInput.js");
22
+ const AriaSecureInput_js_1 = require("./AriaSecureInput.js");
23
+ const DeployedEnvironmentInput_js_1 = require("./DeployedEnvironmentInput.js");
24
+ const VMwareSubscriptionInput_js_1 = require("./VMwareSubscriptionInput.js");
25
+ const CustomerDetailsInput_js_1 = require("./CustomerDetailsInput.js");
26
+ const VMwareVersionCountsInput_js_1 = require("./VMwareVersionCountsInput.js");
27
+ const VsphereCoreInput_js_1 = require("./VsphereCoreInput.js");
28
+ const AriaAutomationInput_js_1 = require("./AriaAutomationInput.js");
29
+ const AriaOpsInput_js_1 = require("./AriaOpsInput.js");
30
+ const ActiveEnvironmentsInput_js_1 = require("./ActiveEnvironmentsInput.js");
31
+ /**
32
+ * Check if a given object implements the EnhancementData interface.
33
+ */
34
+ function instanceOfEnhancementData(value) {
35
+ return true;
36
+ }
37
+ function EnhancementDataFromJSON(json) {
38
+ return EnhancementDataFromJSONTyped(json, false);
39
+ }
40
+ function EnhancementDataFromJSONTyped(json, ignoreDiscriminator) {
41
+ if (json == null) {
42
+ return json;
43
+ }
44
+ return {
45
+ 'deployedEnvironment': json['deployedEnvironment'] == null ? undefined : (0, DeployedEnvironmentInput_js_1.DeployedEnvironmentInputFromJSON)(json['deployedEnvironment']),
46
+ 'vmwareVersionCounts': json['vmwareVersionCounts'] == null ? undefined : (0, VMwareVersionCountsInput_js_1.VMwareVersionCountsInputFromJSON)(json['vmwareVersionCounts']),
47
+ 'activeEnvironments': json['activeEnvironments'] == null ? undefined : (0, ActiveEnvironmentsInput_js_1.ActiveEnvironmentsInputFromJSON)(json['activeEnvironments']),
48
+ 'vmwareSubscription': json['vmwareSubscription'] == null ? undefined : (0, VMwareSubscriptionInput_js_1.VMwareSubscriptionInputFromJSON)(json['vmwareSubscription']),
49
+ 'vsphereCore': json['vsphereCore'] == null ? undefined : (0, VsphereCoreInput_js_1.VsphereCoreInputFromJSON)(json['vsphereCore']),
50
+ 'nsx': json['nsx'] == null ? undefined : (0, NsxInput_js_1.NsxInputFromJSON)(json['nsx']),
51
+ 'ariaOps': json['ariaOps'] == null ? undefined : (0, AriaOpsInput_js_1.AriaOpsInputFromJSON)(json['ariaOps']),
52
+ 'ariaAutomation': json['ariaAutomation'] == null ? undefined : (0, AriaAutomationInput_js_1.AriaAutomationInputFromJSON)(json['ariaAutomation']),
53
+ 'ariaSecure': json['ariaSecure'] == null ? undefined : (0, AriaSecureInput_js_1.AriaSecureInputFromJSON)(json['ariaSecure']),
54
+ 'customerDetails': json['customerDetails'] == null ? undefined : (0, CustomerDetailsInput_js_1.CustomerDetailsInputFromJSON)(json['customerDetails']),
55
+ };
56
+ }
57
+ function EnhancementDataToJSON(json) {
58
+ return EnhancementDataToJSONTyped(json, false);
59
+ }
60
+ function EnhancementDataToJSONTyped(value, ignoreDiscriminator = false) {
61
+ if (value == null) {
62
+ return value;
63
+ }
64
+ return {
65
+ 'deployedEnvironment': (0, DeployedEnvironmentInput_js_1.DeployedEnvironmentInputToJSON)(value['deployedEnvironment']),
66
+ 'vmwareVersionCounts': (0, VMwareVersionCountsInput_js_1.VMwareVersionCountsInputToJSON)(value['vmwareVersionCounts']),
67
+ 'activeEnvironments': (0, ActiveEnvironmentsInput_js_1.ActiveEnvironmentsInputToJSON)(value['activeEnvironments']),
68
+ 'vmwareSubscription': (0, VMwareSubscriptionInput_js_1.VMwareSubscriptionInputToJSON)(value['vmwareSubscription']),
69
+ 'vsphereCore': (0, VsphereCoreInput_js_1.VsphereCoreInputToJSON)(value['vsphereCore']),
70
+ 'nsx': (0, NsxInput_js_1.NsxInputToJSON)(value['nsx']),
71
+ 'ariaOps': (0, AriaOpsInput_js_1.AriaOpsInputToJSON)(value['ariaOps']),
72
+ 'ariaAutomation': (0, AriaAutomationInput_js_1.AriaAutomationInputToJSON)(value['ariaAutomation']),
73
+ 'ariaSecure': (0, AriaSecureInput_js_1.AriaSecureInputToJSON)(value['ariaSecure']),
74
+ 'customerDetails': (0, CustomerDetailsInput_js_1.CustomerDetailsInputToJSON)(value['customerDetails']),
75
+ };
76
+ }
@@ -60,8 +60,8 @@ function GroupFromJSONTyped(json, ignoreDiscriminator) {
60
60
  'kind': json['kind'],
61
61
  'icon': json['icon'],
62
62
  'company': json['company'],
63
- 'createdAt': (new Date(json['createdAt'])),
64
- 'updatedAt': (new Date(json['updatedAt'])),
63
+ 'createdAt': (json['createdAt'] == null ? json['createdAt'] : new Date(json['createdAt'])),
64
+ 'updatedAt': (json['updatedAt'] == null ? json['updatedAt'] : new Date(json['updatedAt'])),
65
65
  };
66
66
  }
67
67
  function GroupToJSON(json) {
@@ -78,7 +78,7 @@ function GroupToJSONTyped(value, ignoreDiscriminator = false) {
78
78
  'kind': value['kind'],
79
79
  'icon': value['icon'],
80
80
  'company': value['company'],
81
- 'createdAt': value['createdAt'].toISOString(),
82
- 'updatedAt': value['updatedAt'].toISOString(),
81
+ 'createdAt': value['createdAt'] == null ? value['createdAt'] : value['createdAt'].toISOString(),
82
+ 'updatedAt': value['updatedAt'] == null ? value['updatedAt'] : value['updatedAt'].toISOString(),
83
83
  };
84
84
  }
@@ -39,6 +39,14 @@ export interface Host {
39
39
  * Host memory in MB
40
40
  */
41
41
  memoryMB?: number | null;
42
+ /**
43
+ * Whether vMotion is supported on this host (HostSystem.capability.vmotionSupported)
44
+ */
45
+ vmotionSupported?: boolean;
46
+ /**
47
+ * Whether Storage vMotion is supported on this host (HostSystem.capability.storageVMotionSupported)
48
+ */
49
+ storageVmotionSupported?: boolean;
42
50
  }
43
51
  /**
44
52
  * Check if a given object implements the Host interface.
@@ -42,6 +42,8 @@ function HostFromJSONTyped(json, ignoreDiscriminator) {
42
42
  'cpuCores': json['cpuCores'] === undefined ? undefined : json['cpuCores'] === null ? null : json['cpuCores'],
43
43
  'cpuSockets': json['cpuSockets'] === undefined ? undefined : json['cpuSockets'] === null ? null : json['cpuSockets'],
44
44
  'memoryMB': json['memoryMB'] === undefined ? undefined : json['memoryMB'] === null ? null : json['memoryMB'],
45
+ 'vmotionSupported': json['vmotionSupported'] == null ? undefined : json['vmotionSupported'],
46
+ 'storageVmotionSupported': json['storageVmotionSupported'] == null ? undefined : json['storageVmotionSupported'],
45
47
  };
46
48
  }
47
49
  function HostToJSON(json) {
@@ -58,5 +60,7 @@ function HostToJSONTyped(value, ignoreDiscriminator = false) {
58
60
  'cpuCores': value['cpuCores'],
59
61
  'cpuSockets': value['cpuSockets'],
60
62
  'memoryMB': value['memoryMB'],
63
+ 'vmotionSupported': value['vmotionSupported'],
64
+ 'storageVmotionSupported': value['storageVmotionSupported'],
61
65
  };
62
66
  }
@@ -34,6 +34,10 @@ export interface Inventory {
34
34
  *
35
35
  */
36
36
  vcenter?: InventoryData;
37
+ /**
38
+ * Timestamp when the inventory data was created or collected
39
+ */
40
+ createdAt?: Date;
37
41
  }
38
42
  /**
39
43
  * Check if a given object implements the Inventory interface.
@@ -42,6 +42,7 @@ function InventoryFromJSONTyped(json, ignoreDiscriminator) {
42
42
  'vcenterVersion': json['vcenter_version'] == null ? undefined : json['vcenter_version'],
43
43
  'clusters': ((0, runtime_js_1.mapValues)(json['clusters'], InventoryData_js_1.InventoryDataFromJSON)),
44
44
  'vcenter': json['vcenter'] == null ? undefined : (0, InventoryData_js_1.InventoryDataFromJSON)(json['vcenter']),
45
+ 'createdAt': json['created_at'] == null ? undefined : (new Date(json['created_at'])),
45
46
  };
46
47
  }
47
48
  function InventoryToJSON(json) {
@@ -56,5 +57,6 @@ function InventoryToJSONTyped(value, ignoreDiscriminator = false) {
56
57
  'vcenter_version': value['vcenterVersion'],
57
58
  'clusters': ((0, runtime_js_1.mapValues)(value['clusters'], InventoryData_js_1.InventoryDataToJSON)),
58
59
  'vcenter': (0, InventoryData_js_1.InventoryDataToJSON)(value['vcenter']),
60
+ 'created_at': value['createdAt'] == null ? value['createdAt'] : value['createdAt'].toISOString(),
59
61
  };
60
62
  }
@@ -43,7 +43,7 @@ function MemberFromJSONTyped(json, ignoreDiscriminator) {
43
43
  'username': json['username'],
44
44
  'email': json['email'],
45
45
  'groupId': json['groupId'],
46
- 'createdAt': (new Date(json['createdAt'])),
46
+ 'createdAt': (json['createdAt'] == null ? json['createdAt'] : new Date(json['createdAt'])),
47
47
  'updatedAt': json['updatedAt'] == null ? undefined : (new Date(json['updatedAt'])),
48
48
  };
49
49
  }
@@ -58,7 +58,7 @@ function MemberToJSONTyped(value, ignoreDiscriminator = false) {
58
58
  'username': value['username'],
59
59
  'email': value['email'],
60
60
  'groupId': value['groupId'],
61
- 'createdAt': value['createdAt'].toISOString(),
61
+ 'createdAt': value['createdAt'] == null ? value['createdAt'] : value['createdAt'].toISOString(),
62
62
  'updatedAt': value['updatedAt'] == null ? value['updatedAt'] : value['updatedAt'].toISOString(),
63
63
  };
64
64
  }
@@ -0,0 +1,46 @@
1
+ /**
2
+ * OpenShift Migration Advisor API
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: v1alpha1
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 NsxInput
16
+ */
17
+ export interface NsxInput {
18
+ /**
19
+ *
20
+ */
21
+ features?: Set<NsxInputFeaturesEnum>;
22
+ }
23
+ /**
24
+ * @export
25
+ */
26
+ export declare const NsxInputFeaturesEnum: {
27
+ readonly Microsegmentation: "microsegmentation";
28
+ readonly MultiCloud: "multi_cloud";
29
+ readonly Tunnels: "tunnels";
30
+ readonly DynamicRouting: "dynamic_routing";
31
+ readonly CentralMgmt: "central_mgmt";
32
+ readonly Mpls: "mpls";
33
+ readonly Qos: "qos";
34
+ readonly NotAssessed: "not_assessed";
35
+ readonly NotAvailable: "not_available";
36
+ readonly NotInUse: "not_in_use";
37
+ };
38
+ export type NsxInputFeaturesEnum = typeof NsxInputFeaturesEnum[keyof typeof NsxInputFeaturesEnum];
39
+ /**
40
+ * Check if a given object implements the NsxInput interface.
41
+ */
42
+ export declare function instanceOfNsxInput(value: object): value is NsxInput;
43
+ export declare function NsxInputFromJSON(json: any): NsxInput;
44
+ export declare function NsxInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): NsxInput;
45
+ export declare function NsxInputToJSON(json: any): NsxInput;
46
+ export declare function NsxInputToJSONTyped(value?: NsxInput | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,64 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * OpenShift Migration Advisor API
6
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
+ *
8
+ * The version of the OpenAPI document: v1alpha1
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.NsxInputFeaturesEnum = void 0;
17
+ exports.instanceOfNsxInput = instanceOfNsxInput;
18
+ exports.NsxInputFromJSON = NsxInputFromJSON;
19
+ exports.NsxInputFromJSONTyped = NsxInputFromJSONTyped;
20
+ exports.NsxInputToJSON = NsxInputToJSON;
21
+ exports.NsxInputToJSONTyped = NsxInputToJSONTyped;
22
+ /**
23
+ * @export
24
+ */
25
+ exports.NsxInputFeaturesEnum = {
26
+ Microsegmentation: 'microsegmentation',
27
+ MultiCloud: 'multi_cloud',
28
+ Tunnels: 'tunnels',
29
+ DynamicRouting: 'dynamic_routing',
30
+ CentralMgmt: 'central_mgmt',
31
+ Mpls: 'mpls',
32
+ Qos: 'qos',
33
+ NotAssessed: 'not_assessed',
34
+ NotAvailable: 'not_available',
35
+ NotInUse: 'not_in_use'
36
+ };
37
+ /**
38
+ * Check if a given object implements the NsxInput interface.
39
+ */
40
+ function instanceOfNsxInput(value) {
41
+ return true;
42
+ }
43
+ function NsxInputFromJSON(json) {
44
+ return NsxInputFromJSONTyped(json, false);
45
+ }
46
+ function NsxInputFromJSONTyped(json, ignoreDiscriminator) {
47
+ if (json == null) {
48
+ return json;
49
+ }
50
+ return {
51
+ 'features': json['features'] == null ? undefined : new Set(json['features']),
52
+ };
53
+ }
54
+ function NsxInputToJSON(json) {
55
+ return NsxInputToJSONTyped(json, false);
56
+ }
57
+ function NsxInputToJSONTyped(value, ignoreDiscriminator = false) {
58
+ if (value == null) {
59
+ return value;
60
+ }
61
+ return {
62
+ 'features': value['features'] == null ? undefined : Array.from(value['features']),
63
+ };
64
+ }
@@ -66,7 +66,7 @@ function PartnerRequestFromJSONTyped(json, ignoreDiscriminator) {
66
66
  'reason': json['reason'] === undefined ? undefined : json['reason'] === null ? null : json['reason'],
67
67
  'acceptedAt': json['acceptedAt'] === undefined ? undefined : json['acceptedAt'] === null ? null : (new Date(json['acceptedAt'])),
68
68
  'terminatedAt': json['terminatedAt'] === undefined ? undefined : json['terminatedAt'] === null ? null : (new Date(json['terminatedAt'])),
69
- 'createdAt': (new Date(json['createdAt'])),
69
+ 'createdAt': (json['createdAt'] == null ? json['createdAt'] : new Date(json['createdAt'])),
70
70
  };
71
71
  }
72
72
  function PartnerRequestToJSON(json) {
@@ -89,6 +89,6 @@ function PartnerRequestToJSONTyped(value, ignoreDiscriminator = false) {
89
89
  'reason': value['reason'],
90
90
  'acceptedAt': value['acceptedAt'] == null ? value['acceptedAt'] : value['acceptedAt'].toISOString(),
91
91
  'terminatedAt': value['terminatedAt'] == null ? value['terminatedAt'] : value['terminatedAt'].toISOString(),
92
- 'createdAt': value['createdAt'].toISOString(),
92
+ 'createdAt': value['createdAt'] == null ? value['createdAt'] : value['createdAt'].toISOString(),
93
93
  };
94
94
  }
@@ -39,7 +39,7 @@ function SnapshotFromJSONTyped(json, ignoreDiscriminator) {
39
39
  }
40
40
  return {
41
41
  'inventory': (0, Inventory_js_1.InventoryFromJSON)(json['inventory']),
42
- 'createdAt': (new Date(json['createdAt'])),
42
+ 'createdAt': (json['createdAt'] == null ? json['createdAt'] : new Date(json['createdAt'])),
43
43
  'subsetInventories': json['subsetInventories'] === undefined ? undefined : json['subsetInventories'] === null ? null : (json['subsetInventories'].map(AssessmentSubsetInventory_js_1.AssessmentSubsetInventoryFromJSON)),
44
44
  };
45
45
  }
@@ -52,7 +52,7 @@ function SnapshotToJSONTyped(value, ignoreDiscriminator = false) {
52
52
  }
53
53
  return {
54
54
  'inventory': (0, Inventory_js_1.InventoryToJSON)(value['inventory']),
55
- 'createdAt': value['createdAt'].toISOString(),
55
+ 'createdAt': value['createdAt'] == null ? value['createdAt'] : value['createdAt'].toISOString(),
56
56
  'subsetInventories': value['subsetInventories'] == null ? undefined : (value['subsetInventories'].map(AssessmentSubsetInventory_js_1.AssessmentSubsetInventoryToJSON)),
57
57
  };
58
58
  }
@@ -57,8 +57,8 @@ function SourceFromJSONTyped(json, ignoreDiscriminator) {
57
57
  'id': json['id'],
58
58
  'name': json['name'],
59
59
  'inventory': json['inventory'] == null ? undefined : (0, Inventory_js_1.InventoryFromJSON)(json['inventory']),
60
- 'createdAt': (new Date(json['createdAt'])),
61
- 'updatedAt': (new Date(json['updatedAt'])),
60
+ 'createdAt': (json['createdAt'] == null ? json['createdAt'] : new Date(json['createdAt'])),
61
+ 'updatedAt': (json['updatedAt'] == null ? json['updatedAt'] : new Date(json['updatedAt'])),
62
62
  'onPremises': json['onPremises'],
63
63
  'agent': json['agent'] == null ? undefined : (0, Agent_js_1.AgentFromJSON)(json['agent']),
64
64
  'labels': json['labels'] == null ? undefined : (json['labels'].map(Label_js_1.LabelFromJSON)),
@@ -79,8 +79,8 @@ function SourceToJSONTyped(value, ignoreDiscriminator = false) {
79
79
  'id': value['id'],
80
80
  'name': value['name'],
81
81
  'inventory': (0, Inventory_js_1.InventoryToJSON)(value['inventory']),
82
- 'createdAt': value['createdAt'].toISOString(),
83
- 'updatedAt': value['updatedAt'].toISOString(),
82
+ 'createdAt': value['createdAt'] == null ? value['createdAt'] : value['createdAt'].toISOString(),
83
+ 'updatedAt': value['updatedAt'] == null ? value['updatedAt'] : value['updatedAt'].toISOString(),
84
84
  'onPremises': value['onPremises'],
85
85
  'agent': (0, Agent_js_1.AgentToJSON)(value['agent']),
86
86
  'labels': value['labels'] == null ? undefined : (value['labels'].map(Label_js_1.LabelToJSON)),
@@ -0,0 +1,42 @@
1
+ /**
2
+ * OpenShift Migration Advisor API
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: v1alpha1
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 VMwareSubscriptionInput
16
+ */
17
+ export interface VMwareSubscriptionInput {
18
+ /**
19
+ *
20
+ */
21
+ level?: Set<VMwareSubscriptionInputLevelEnum>;
22
+ }
23
+ /**
24
+ * @export
25
+ */
26
+ export declare const VMwareSubscriptionInputLevelEnum: {
27
+ readonly Vcf: "vcf";
28
+ readonly Vvf: "vvf";
29
+ readonly Vvs: "vvs";
30
+ readonly Vvep: "vvep";
31
+ readonly Vsphere: "vsphere";
32
+ readonly NotAssessed: "not_assessed";
33
+ };
34
+ export type VMwareSubscriptionInputLevelEnum = typeof VMwareSubscriptionInputLevelEnum[keyof typeof VMwareSubscriptionInputLevelEnum];
35
+ /**
36
+ * Check if a given object implements the VMwareSubscriptionInput interface.
37
+ */
38
+ export declare function instanceOfVMwareSubscriptionInput(value: object): value is VMwareSubscriptionInput;
39
+ export declare function VMwareSubscriptionInputFromJSON(json: any): VMwareSubscriptionInput;
40
+ export declare function VMwareSubscriptionInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): VMwareSubscriptionInput;
41
+ export declare function VMwareSubscriptionInputToJSON(json: any): VMwareSubscriptionInput;
42
+ export declare function VMwareSubscriptionInputToJSONTyped(value?: VMwareSubscriptionInput | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,60 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * OpenShift Migration Advisor API
6
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
+ *
8
+ * The version of the OpenAPI document: v1alpha1
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.VMwareSubscriptionInputLevelEnum = void 0;
17
+ exports.instanceOfVMwareSubscriptionInput = instanceOfVMwareSubscriptionInput;
18
+ exports.VMwareSubscriptionInputFromJSON = VMwareSubscriptionInputFromJSON;
19
+ exports.VMwareSubscriptionInputFromJSONTyped = VMwareSubscriptionInputFromJSONTyped;
20
+ exports.VMwareSubscriptionInputToJSON = VMwareSubscriptionInputToJSON;
21
+ exports.VMwareSubscriptionInputToJSONTyped = VMwareSubscriptionInputToJSONTyped;
22
+ /**
23
+ * @export
24
+ */
25
+ exports.VMwareSubscriptionInputLevelEnum = {
26
+ Vcf: 'vcf',
27
+ Vvf: 'vvf',
28
+ Vvs: 'vvs',
29
+ Vvep: 'vvep',
30
+ Vsphere: 'vsphere',
31
+ NotAssessed: 'not_assessed'
32
+ };
33
+ /**
34
+ * Check if a given object implements the VMwareSubscriptionInput interface.
35
+ */
36
+ function instanceOfVMwareSubscriptionInput(value) {
37
+ return true;
38
+ }
39
+ function VMwareSubscriptionInputFromJSON(json) {
40
+ return VMwareSubscriptionInputFromJSONTyped(json, false);
41
+ }
42
+ function VMwareSubscriptionInputFromJSONTyped(json, ignoreDiscriminator) {
43
+ if (json == null) {
44
+ return json;
45
+ }
46
+ return {
47
+ 'level': json['level'] == null ? undefined : new Set(json['level']),
48
+ };
49
+ }
50
+ function VMwareSubscriptionInputToJSON(json) {
51
+ return VMwareSubscriptionInputToJSONTyped(json, false);
52
+ }
53
+ function VMwareSubscriptionInputToJSONTyped(value, ignoreDiscriminator = false) {
54
+ if (value == null) {
55
+ return value;
56
+ }
57
+ return {
58
+ 'level': value['level'] == null ? undefined : Array.from(value['level']),
59
+ };
60
+ }
@@ -0,0 +1,42 @@
1
+ /**
2
+ * OpenShift Migration Advisor API
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: v1alpha1
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 VMwareVersionCountsInput
16
+ */
17
+ export interface VMwareVersionCountsInput {
18
+ /**
19
+ *
20
+ */
21
+ perpetualLicensesCount?: number;
22
+ /**
23
+ *
24
+ */
25
+ coresLicensingCount?: number;
26
+ /**
27
+ *
28
+ */
29
+ environmentCount?: number;
30
+ /**
31
+ *
32
+ */
33
+ otherNodesCount?: number;
34
+ }
35
+ /**
36
+ * Check if a given object implements the VMwareVersionCountsInput interface.
37
+ */
38
+ export declare function instanceOfVMwareVersionCountsInput(value: object): value is VMwareVersionCountsInput;
39
+ export declare function VMwareVersionCountsInputFromJSON(json: any): VMwareVersionCountsInput;
40
+ export declare function VMwareVersionCountsInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): VMwareVersionCountsInput;
41
+ export declare function VMwareVersionCountsInputToJSON(json: any): VMwareVersionCountsInput;
42
+ export declare function VMwareVersionCountsInputToJSONTyped(value?: VMwareVersionCountsInput | null, ignoreDiscriminator?: boolean): any;