@openshift-migration-advisor/agent-sdk 0.12.0-914fe80385ee → 0.12.0-a3d6bdc8bce2

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 (171) hide show
  1. package/.openapi-generator/FILES +16 -0
  2. package/README.md +19 -4
  3. package/dist/apis/DefaultApi.d.ts +303 -41
  4. package/dist/apis/DefaultApi.js +335 -46
  5. package/dist/esm/apis/DefaultApi.d.ts +303 -41
  6. package/dist/esm/apis/DefaultApi.js +335 -46
  7. package/dist/esm/models/AgentStatus.d.ts +1 -1
  8. package/dist/esm/models/AgentStatus.js +3 -3
  9. package/dist/esm/models/ClusterFeatures.d.ts +54 -0
  10. package/dist/esm/models/ClusterFeatures.js +54 -0
  11. package/dist/esm/models/ClusterUtilization.d.ts +68 -0
  12. package/dist/esm/models/ClusterUtilization.js +67 -0
  13. package/dist/esm/models/CreateGroupRequest.d.ts +0 -6
  14. package/dist/esm/models/CreateGroupRequest.js +0 -2
  15. package/dist/esm/models/DeleteLabelGloballyResponse.d.ts +38 -0
  16. package/dist/esm/models/DeleteLabelGloballyResponse.js +47 -0
  17. package/dist/esm/models/Group.d.ts +0 -6
  18. package/dist/esm/models/Group.js +0 -2
  19. package/dist/esm/models/GroupResponse.d.ts +7 -0
  20. package/dist/esm/models/GroupResponse.js +3 -0
  21. package/dist/esm/models/InspectorStatus.d.ts +0 -17
  22. package/dist/esm/models/InspectorStatus.js +1 -10
  23. package/dist/esm/models/Inventory.d.ts +7 -1
  24. package/dist/esm/models/Inventory.js +5 -3
  25. package/dist/esm/models/InventoryData.d.ts +14 -0
  26. package/dist/esm/models/InventoryData.js +6 -0
  27. package/dist/esm/models/RightsizingClusterListResponse.d.ts +1 -1
  28. package/dist/esm/models/RightsizingClusterListResponse.js +3 -3
  29. package/dist/esm/models/RightsizingClusterResponse.d.ts +39 -0
  30. package/dist/esm/models/RightsizingClusterResponse.js +48 -0
  31. package/dist/esm/models/RightsizingClusterUtilization.d.ts +12 -12
  32. package/dist/esm/models/RightsizingClusterUtilization.js +36 -36
  33. package/dist/esm/models/RightsizingCollectRequest.d.ts +6 -6
  34. package/dist/esm/models/RightsizingCollectRequest.js +12 -12
  35. package/dist/esm/models/RightsizingMetricStats.d.ts +1 -1
  36. package/dist/esm/models/RightsizingMetricStats.js +3 -3
  37. package/dist/esm/models/RightsizingReport.d.ts +6 -6
  38. package/dist/esm/models/RightsizingReport.js +18 -18
  39. package/dist/esm/models/RightsizingReportSummary.d.ts +6 -6
  40. package/dist/esm/models/RightsizingReportSummary.js +18 -18
  41. package/dist/esm/models/StartInspectionRequest.d.ts +8 -1
  42. package/dist/esm/models/StartInspectionRequest.js +5 -0
  43. package/dist/esm/models/UpdateGroupRequest.d.ts +0 -6
  44. package/dist/esm/models/UpdateGroupRequest.js +0 -2
  45. package/dist/esm/models/UpdateLabelVMsRequest.d.ts +38 -0
  46. package/dist/esm/models/UpdateLabelVMsRequest.js +43 -0
  47. package/dist/esm/models/VMFilterOptionsResponse.d.ts +50 -0
  48. package/dist/esm/models/VMFilterOptionsResponse.js +55 -0
  49. package/dist/esm/models/VMLabelsResponse.d.ts +38 -0
  50. package/dist/esm/models/VMLabelsResponse.js +47 -0
  51. package/dist/esm/models/VirtualMachine.d.ts +18 -6
  52. package/dist/esm/models/VirtualMachine.js +14 -10
  53. package/dist/esm/models/VirtualMachineDetail.d.ts +19 -0
  54. package/dist/esm/models/VirtualMachineDetail.js +7 -0
  55. package/dist/esm/models/VirtualMachineUpdateRequest.d.ts +38 -0
  56. package/dist/esm/models/VirtualMachineUpdateRequest.js +43 -0
  57. package/dist/esm/models/VmUtilizationDetails.d.ts +12 -12
  58. package/dist/esm/models/VmUtilizationDetails.js +36 -36
  59. package/dist/esm/models/index.d.ts +8 -0
  60. package/dist/esm/models/index.js +8 -0
  61. package/dist/models/AgentStatus.d.ts +1 -1
  62. package/dist/models/AgentStatus.js +3 -3
  63. package/dist/models/ClusterFeatures.d.ts +54 -0
  64. package/dist/models/ClusterFeatures.js +62 -0
  65. package/dist/models/ClusterUtilization.d.ts +68 -0
  66. package/dist/models/ClusterUtilization.js +74 -0
  67. package/dist/models/CreateGroupRequest.d.ts +0 -6
  68. package/dist/models/CreateGroupRequest.js +0 -2
  69. package/dist/models/DeleteLabelGloballyResponse.d.ts +38 -0
  70. package/dist/models/DeleteLabelGloballyResponse.js +54 -0
  71. package/dist/models/Group.d.ts +0 -6
  72. package/dist/models/Group.js +0 -2
  73. package/dist/models/GroupResponse.d.ts +7 -0
  74. package/dist/models/GroupResponse.js +3 -0
  75. package/dist/models/InspectorStatus.d.ts +0 -17
  76. package/dist/models/InspectorStatus.js +1 -10
  77. package/dist/models/Inventory.d.ts +7 -1
  78. package/dist/models/Inventory.js +5 -3
  79. package/dist/models/InventoryData.d.ts +14 -0
  80. package/dist/models/InventoryData.js +6 -0
  81. package/dist/models/RightsizingClusterListResponse.d.ts +1 -1
  82. package/dist/models/RightsizingClusterListResponse.js +3 -3
  83. package/dist/models/RightsizingClusterResponse.d.ts +39 -0
  84. package/dist/models/RightsizingClusterResponse.js +55 -0
  85. package/dist/models/RightsizingClusterUtilization.d.ts +12 -12
  86. package/dist/models/RightsizingClusterUtilization.js +36 -36
  87. package/dist/models/RightsizingCollectRequest.d.ts +6 -6
  88. package/dist/models/RightsizingCollectRequest.js +12 -12
  89. package/dist/models/RightsizingMetricStats.d.ts +1 -1
  90. package/dist/models/RightsizingMetricStats.js +3 -3
  91. package/dist/models/RightsizingReport.d.ts +6 -6
  92. package/dist/models/RightsizingReport.js +18 -18
  93. package/dist/models/RightsizingReportSummary.d.ts +6 -6
  94. package/dist/models/RightsizingReportSummary.js +18 -18
  95. package/dist/models/StartInspectionRequest.d.ts +8 -1
  96. package/dist/models/StartInspectionRequest.js +5 -0
  97. package/dist/models/UpdateGroupRequest.d.ts +0 -6
  98. package/dist/models/UpdateGroupRequest.js +0 -2
  99. package/dist/models/UpdateLabelVMsRequest.d.ts +38 -0
  100. package/dist/models/UpdateLabelVMsRequest.js +50 -0
  101. package/dist/models/VMFilterOptionsResponse.d.ts +50 -0
  102. package/dist/models/VMFilterOptionsResponse.js +62 -0
  103. package/dist/models/VMLabelsResponse.d.ts +38 -0
  104. package/dist/models/VMLabelsResponse.js +54 -0
  105. package/dist/models/VirtualMachine.d.ts +18 -6
  106. package/dist/models/VirtualMachine.js +14 -10
  107. package/dist/models/VirtualMachineDetail.d.ts +19 -0
  108. package/dist/models/VirtualMachineDetail.js +7 -0
  109. package/dist/models/VirtualMachineUpdateRequest.d.ts +38 -0
  110. package/dist/models/VirtualMachineUpdateRequest.js +50 -0
  111. package/dist/models/VmUtilizationDetails.d.ts +12 -12
  112. package/dist/models/VmUtilizationDetails.js +36 -36
  113. package/dist/models/index.d.ts +8 -0
  114. package/dist/models/index.js +8 -0
  115. package/docs/AgentStatus.md +2 -2
  116. package/docs/ClusterFeatures.md +38 -0
  117. package/docs/ClusterUtilization.md +46 -0
  118. package/docs/CreateGroupRequest.md +0 -2
  119. package/docs/DefaultApi.md +529 -60
  120. package/docs/DeleteLabelGloballyResponse.md +36 -0
  121. package/docs/GetInventory200Response.md +4 -2
  122. package/docs/Group.md +0 -2
  123. package/docs/GroupResponse.md +2 -0
  124. package/docs/InspectorStatus.md +0 -4
  125. package/docs/Inventory.md +4 -2
  126. package/docs/InventoryData.md +4 -0
  127. package/docs/RightsizingClusterListResponse.md +2 -2
  128. package/docs/RightsizingClusterResponse.md +36 -0
  129. package/docs/RightsizingClusterUtilization.md +24 -24
  130. package/docs/RightsizingCollectRequest.md +12 -12
  131. package/docs/RightsizingMetricStats.md +2 -2
  132. package/docs/RightsizingReport.md +12 -12
  133. package/docs/RightsizingReportSummary.md +12 -12
  134. package/docs/StartInspectionRequest.md +3 -1
  135. package/docs/UpdateGroupRequest.md +0 -2
  136. package/docs/UpdateLabelVMsRequest.md +36 -0
  137. package/docs/VMFilterOptionsResponse.md +40 -0
  138. package/docs/VMLabelsResponse.md +36 -0
  139. package/docs/VirtualMachine.md +14 -10
  140. package/docs/VirtualMachineDetail.md +6 -0
  141. package/docs/VirtualMachineUpdateRequest.md +36 -0
  142. package/docs/VmUtilizationDetails.md +24 -24
  143. package/package.json +1 -1
  144. package/src/apis/DefaultApi.ts +641 -88
  145. package/src/models/AgentStatus.ts +4 -4
  146. package/src/models/ClusterFeatures.ts +94 -0
  147. package/src/models/ClusterUtilization.ts +120 -0
  148. package/src/models/CreateGroupRequest.ts +0 -8
  149. package/src/models/DeleteLabelGloballyResponse.ts +75 -0
  150. package/src/models/Group.ts +0 -8
  151. package/src/models/GroupResponse.ts +15 -0
  152. package/src/models/InspectorStatus.ts +1 -28
  153. package/src/models/Inventory.ts +12 -4
  154. package/src/models/InventoryData.ts +30 -0
  155. package/src/models/RightsizingClusterListResponse.ts +4 -4
  156. package/src/models/RightsizingClusterResponse.ts +83 -0
  157. package/src/models/RightsizingClusterUtilization.ts +48 -48
  158. package/src/models/RightsizingCollectRequest.ts +18 -18
  159. package/src/models/RightsizingMetricStats.ts +4 -4
  160. package/src/models/RightsizingReport.ts +24 -24
  161. package/src/models/RightsizingReportSummary.ts +24 -24
  162. package/src/models/StartInspectionRequest.ts +18 -1
  163. package/src/models/UpdateGroupRequest.ts +0 -8
  164. package/src/models/UpdateLabelVMsRequest.ts +73 -0
  165. package/src/models/VMFilterOptionsResponse.ts +93 -0
  166. package/src/models/VMLabelsResponse.ts +75 -0
  167. package/src/models/VirtualMachine.ts +32 -16
  168. package/src/models/VirtualMachineDetail.ts +31 -0
  169. package/src/models/VirtualMachineUpdateRequest.ts +73 -0
  170. package/src/models/VmUtilizationDetails.ts +48 -48
  171. package/src/models/index.ts +8 -0
@@ -30,7 +30,7 @@ export interface AgentStatus {
30
30
  * @type {AgentStatusConsoleConnectionEnum}
31
31
  * @memberof AgentStatus
32
32
  */
33
- consoleConnection: AgentStatusConsoleConnectionEnum;
33
+ console_connection: AgentStatusConsoleConnectionEnum;
34
34
  /**
35
35
  * Connection error description
36
36
  * @type {string}
@@ -64,7 +64,7 @@ export type AgentStatusConsoleConnectionEnum = typeof AgentStatusConsoleConnecti
64
64
  */
65
65
  export function instanceOfAgentStatus(value: object): value is AgentStatus {
66
66
  if (!('mode' in value) || value['mode'] === undefined) return false;
67
- if (!('consoleConnection' in value) || value['consoleConnection'] === undefined) return false;
67
+ if (!('console_connection' in value) || value['console_connection'] === undefined) return false;
68
68
  return true;
69
69
  }
70
70
 
@@ -79,7 +79,7 @@ export function AgentStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean
79
79
  return {
80
80
 
81
81
  'mode': json['mode'],
82
- 'consoleConnection': json['console_connection'],
82
+ 'console_connection': json['console_connection'],
83
83
  'error': json['error'] == null ? undefined : json['error'],
84
84
  };
85
85
  }
@@ -96,7 +96,7 @@ export function AgentStatusToJSONTyped(value?: AgentStatus | null, ignoreDiscrim
96
96
  return {
97
97
 
98
98
  'mode': value['mode'],
99
- 'console_connection': value['consoleConnection'],
99
+ 'console_connection': value['console_connection'],
100
100
  'error': value['error'],
101
101
  };
102
102
  }
@@ -0,0 +1,94 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Assisted Migration Agent API
5
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
+ *
7
+ * The version of the OpenAPI document: v1
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime.js';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface ClusterFeatures
20
+ */
21
+ export interface ClusterFeatures {
22
+ /**
23
+ * Whether DRS (Distributed Resource Scheduler) is enabled for this cluster
24
+ * @type {boolean}
25
+ * @memberof ClusterFeatures
26
+ */
27
+ drsEnabled?: boolean;
28
+ /**
29
+ * DRS automation mode for the cluster
30
+ * @type {ClusterFeaturesDrsModeEnum}
31
+ * @memberof ClusterFeatures
32
+ */
33
+ drsMode?: ClusterFeaturesDrsModeEnum;
34
+ /**
35
+ * Whether Storage DRS is enabled for this cluster
36
+ * @type {boolean}
37
+ * @memberof ClusterFeatures
38
+ */
39
+ storageDrsEnabled?: boolean;
40
+ }
41
+
42
+
43
+ /**
44
+ * @export
45
+ */
46
+ export const ClusterFeaturesDrsModeEnum = {
47
+ FullyAutomated: 'Fully Automated',
48
+ PartiallyAutomated: 'Partially Automated',
49
+ Manual: 'Manual',
50
+ None: 'None'
51
+ } as const;
52
+ export type ClusterFeaturesDrsModeEnum = typeof ClusterFeaturesDrsModeEnum[keyof typeof ClusterFeaturesDrsModeEnum];
53
+
54
+
55
+ /**
56
+ * Check if a given object implements the ClusterFeatures interface.
57
+ */
58
+ export function instanceOfClusterFeatures(value: object): value is ClusterFeatures {
59
+ return true;
60
+ }
61
+
62
+ export function ClusterFeaturesFromJSON(json: any): ClusterFeatures {
63
+ return ClusterFeaturesFromJSONTyped(json, false);
64
+ }
65
+
66
+ export function ClusterFeaturesFromJSONTyped(json: any, ignoreDiscriminator: boolean): ClusterFeatures {
67
+ if (json == null) {
68
+ return json;
69
+ }
70
+ return {
71
+
72
+ 'drsEnabled': json['drsEnabled'] == null ? undefined : json['drsEnabled'],
73
+ 'drsMode': json['drsMode'] == null ? undefined : json['drsMode'],
74
+ 'storageDrsEnabled': json['storageDrsEnabled'] == null ? undefined : json['storageDrsEnabled'],
75
+ };
76
+ }
77
+
78
+ export function ClusterFeaturesToJSON(json: any): ClusterFeatures {
79
+ return ClusterFeaturesToJSONTyped(json, false);
80
+ }
81
+
82
+ export function ClusterFeaturesToJSONTyped(value?: ClusterFeatures | null, ignoreDiscriminator: boolean = false): any {
83
+ if (value == null) {
84
+ return value;
85
+ }
86
+
87
+ return {
88
+
89
+ 'drsEnabled': value['drsEnabled'],
90
+ 'drsMode': value['drsMode'],
91
+ 'storageDrsEnabled': value['storageDrsEnabled'],
92
+ };
93
+ }
94
+
@@ -0,0 +1,120 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Assisted Migration Agent API
5
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
+ *
7
+ * The version of the OpenAPI document: v1
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime.js';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface ClusterUtilization
20
+ */
21
+ export interface ClusterUtilization {
22
+ /**
23
+ * Average CPU utilization percentage (0-100)
24
+ * @type {number}
25
+ * @memberof ClusterUtilization
26
+ */
27
+ cpu_avg: number;
28
+ /**
29
+ * 95th percentile CPU utilization percentage (0-100)
30
+ * @type {number}
31
+ * @memberof ClusterUtilization
32
+ */
33
+ cpu_p95: number;
34
+ /**
35
+ * Maximum CPU utilization percentage (0-100)
36
+ * @type {number}
37
+ * @memberof ClusterUtilization
38
+ */
39
+ cpu_max: number;
40
+ /**
41
+ * Average memory utilization percentage (0-100)
42
+ * @type {number}
43
+ * @memberof ClusterUtilization
44
+ */
45
+ mem_avg: number;
46
+ /**
47
+ * 95th percentile memory utilization percentage (0-100)
48
+ * @type {number}
49
+ * @memberof ClusterUtilization
50
+ */
51
+ mem_p95: number;
52
+ /**
53
+ * Maximum memory utilization percentage (0-100)
54
+ * @type {number}
55
+ * @memberof ClusterUtilization
56
+ */
57
+ mem_max: number;
58
+ /**
59
+ * Data coverage confidence percentage (0-100), calculated as vCPU-weighted coverage
60
+ * @type {number}
61
+ * @memberof ClusterUtilization
62
+ */
63
+ confidence: number;
64
+ }
65
+
66
+ /**
67
+ * Check if a given object implements the ClusterUtilization interface.
68
+ */
69
+ export function instanceOfClusterUtilization(value: object): value is ClusterUtilization {
70
+ if (!('cpu_avg' in value) || value['cpu_avg'] === undefined) return false;
71
+ if (!('cpu_p95' in value) || value['cpu_p95'] === undefined) return false;
72
+ if (!('cpu_max' in value) || value['cpu_max'] === undefined) return false;
73
+ if (!('mem_avg' in value) || value['mem_avg'] === undefined) return false;
74
+ if (!('mem_p95' in value) || value['mem_p95'] === undefined) return false;
75
+ if (!('mem_max' in value) || value['mem_max'] === undefined) return false;
76
+ if (!('confidence' in value) || value['confidence'] === undefined) return false;
77
+ return true;
78
+ }
79
+
80
+ export function ClusterUtilizationFromJSON(json: any): ClusterUtilization {
81
+ return ClusterUtilizationFromJSONTyped(json, false);
82
+ }
83
+
84
+ export function ClusterUtilizationFromJSONTyped(json: any, ignoreDiscriminator: boolean): ClusterUtilization {
85
+ if (json == null) {
86
+ return json;
87
+ }
88
+ return {
89
+
90
+ 'cpu_avg': json['cpu_avg'],
91
+ 'cpu_p95': json['cpu_p95'],
92
+ 'cpu_max': json['cpu_max'],
93
+ 'mem_avg': json['mem_avg'],
94
+ 'mem_p95': json['mem_p95'],
95
+ 'mem_max': json['mem_max'],
96
+ 'confidence': json['confidence'],
97
+ };
98
+ }
99
+
100
+ export function ClusterUtilizationToJSON(json: any): ClusterUtilization {
101
+ return ClusterUtilizationToJSONTyped(json, false);
102
+ }
103
+
104
+ export function ClusterUtilizationToJSONTyped(value?: ClusterUtilization | null, ignoreDiscriminator: boolean = false): any {
105
+ if (value == null) {
106
+ return value;
107
+ }
108
+
109
+ return {
110
+
111
+ 'cpu_avg': value['cpu_avg'],
112
+ 'cpu_p95': value['cpu_p95'],
113
+ 'cpu_max': value['cpu_max'],
114
+ 'mem_avg': value['mem_avg'],
115
+ 'mem_p95': value['mem_p95'],
116
+ 'mem_max': value['mem_max'],
117
+ 'confidence': value['confidence'],
118
+ };
119
+ }
120
+
@@ -37,12 +37,6 @@ export interface CreateGroupRequest {
37
37
  * @memberof CreateGroupRequest
38
38
  */
39
39
  filter: string;
40
- /**
41
- * Tags to apply to matching VMs (only alphanumeric, underscore, and dot allowed)
42
- * @type {Array<string>}
43
- * @memberof CreateGroupRequest
44
- */
45
- tags?: Array<string>;
46
40
  }
47
41
 
48
42
  /**
@@ -67,7 +61,6 @@ export function CreateGroupRequestFromJSONTyped(json: any, ignoreDiscriminator:
67
61
  'name': json['name'],
68
62
  'description': json['description'] == null ? undefined : json['description'],
69
63
  'filter': json['filter'],
70
- 'tags': json['tags'] == null ? undefined : json['tags'],
71
64
  };
72
65
  }
73
66
 
@@ -85,7 +78,6 @@ export function CreateGroupRequestToJSONTyped(value?: CreateGroupRequest | null,
85
78
  'name': value['name'],
86
79
  'description': value['description'],
87
80
  'filter': value['filter'],
88
- 'tags': value['tags'],
89
81
  };
90
82
  }
91
83
 
@@ -0,0 +1,75 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Assisted Migration Agent API
5
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
+ *
7
+ * The version of the OpenAPI document: v1
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime.js';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface DeleteLabelGloballyResponse
20
+ */
21
+ export interface DeleteLabelGloballyResponse {
22
+ /**
23
+ * Number of VMs that had the label removed
24
+ * @type {number}
25
+ * @memberof DeleteLabelGloballyResponse
26
+ */
27
+ affected: number;
28
+ /**
29
+ * The label that was removed
30
+ * @type {string}
31
+ * @memberof DeleteLabelGloballyResponse
32
+ */
33
+ label: string;
34
+ }
35
+
36
+ /**
37
+ * Check if a given object implements the DeleteLabelGloballyResponse interface.
38
+ */
39
+ export function instanceOfDeleteLabelGloballyResponse(value: object): value is DeleteLabelGloballyResponse {
40
+ if (!('affected' in value) || value['affected'] === undefined) return false;
41
+ if (!('label' in value) || value['label'] === undefined) return false;
42
+ return true;
43
+ }
44
+
45
+ export function DeleteLabelGloballyResponseFromJSON(json: any): DeleteLabelGloballyResponse {
46
+ return DeleteLabelGloballyResponseFromJSONTyped(json, false);
47
+ }
48
+
49
+ export function DeleteLabelGloballyResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteLabelGloballyResponse {
50
+ if (json == null) {
51
+ return json;
52
+ }
53
+ return {
54
+
55
+ 'affected': json['affected'],
56
+ 'label': json['label'],
57
+ };
58
+ }
59
+
60
+ export function DeleteLabelGloballyResponseToJSON(json: any): DeleteLabelGloballyResponse {
61
+ return DeleteLabelGloballyResponseToJSONTyped(json, false);
62
+ }
63
+
64
+ export function DeleteLabelGloballyResponseToJSONTyped(value?: DeleteLabelGloballyResponse | null, ignoreDiscriminator: boolean = false): any {
65
+ if (value == null) {
66
+ return value;
67
+ }
68
+
69
+ return {
70
+
71
+ 'affected': value['affected'],
72
+ 'label': value['label'],
73
+ };
74
+ }
75
+
@@ -43,12 +43,6 @@ export interface Group {
43
43
  * @memberof Group
44
44
  */
45
45
  filter: string;
46
- /**
47
- * Tags associated with this group (applied to matching VMs)
48
- * @type {Array<string>}
49
- * @memberof Group
50
- */
51
- tags?: Array<string>;
52
46
  /**
53
47
  * Timestamp when the group was created
54
48
  * @type {Date}
@@ -87,7 +81,6 @@ export function GroupFromJSONTyped(json: any, ignoreDiscriminator: boolean): Gro
87
81
  'name': json['name'],
88
82
  'description': json['description'] == null ? undefined : json['description'],
89
83
  'filter': json['filter'],
90
- 'tags': json['tags'] == null ? undefined : json['tags'],
91
84
  'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
92
85
  'updatedAt': json['updatedAt'] == null ? undefined : (new Date(json['updatedAt'])),
93
86
  };
@@ -108,7 +101,6 @@ export function GroupToJSONTyped(value?: Group | null, ignoreDiscriminator: bool
108
101
  'name': value['name'],
109
102
  'description': value['description'],
110
103
  'filter': value['filter'],
111
- 'tags': value['tags'],
112
104
  'createdAt': value['createdAt'] == null ? value['createdAt'] : value['createdAt'].toISOString(),
113
105
  'updatedAt': value['updatedAt'] == null ? value['updatedAt'] : value['updatedAt'].toISOString(),
114
106
  };
@@ -20,6 +20,13 @@ import {
20
20
  GroupToJSON,
21
21
  GroupToJSONTyped,
22
22
  } from './Group.js';
23
+ import type { Inventory } from './Inventory.js';
24
+ import {
25
+ InventoryFromJSON,
26
+ InventoryFromJSONTyped,
27
+ InventoryToJSON,
28
+ InventoryToJSONTyped,
29
+ } from './Inventory.js';
23
30
  import type { VirtualMachine } from './VirtualMachine.js';
24
31
  import {
25
32
  VirtualMachineFromJSON,
@@ -40,6 +47,12 @@ export interface GroupResponse {
40
47
  * @memberof GroupResponse
41
48
  */
42
49
  group: Group;
50
+ /**
51
+ *
52
+ * @type {Inventory}
53
+ * @memberof GroupResponse
54
+ */
55
+ inventory?: Inventory;
43
56
  /**
44
57
  *
45
58
  * @type {Array<VirtualMachine>}
@@ -89,6 +102,7 @@ export function GroupResponseFromJSONTyped(json: any, ignoreDiscriminator: boole
89
102
  return {
90
103
 
91
104
  'group': GroupFromJSON(json['group']),
105
+ 'inventory': json['inventory'] == null ? undefined : InventoryFromJSON(json['inventory']),
92
106
  'vms': ((json['vms'] as Array<any>).map(VirtualMachineFromJSON)),
93
107
  'total': json['total'],
94
108
  'page': json['page'],
@@ -108,6 +122,7 @@ export function GroupResponseToJSONTyped(value?: GroupResponse | null, ignoreDis
108
122
  return {
109
123
 
110
124
  'group': GroupToJSON(value['group']),
125
+ 'inventory': InventoryToJSON(value['inventory']),
111
126
  'vms': ((value['vms'] as Array<any>).map(VirtualMachineToJSON)),
112
127
  'total': value['total'],
113
128
  'page': value['page'],
@@ -20,13 +20,6 @@ import {
20
20
  VddkPropertiesToJSON,
21
21
  VddkPropertiesToJSONTyped,
22
22
  } from './VddkProperties.js';
23
- import type { VcenterCredentials } from './VcenterCredentials.js';
24
- import {
25
- VcenterCredentialsFromJSON,
26
- VcenterCredentialsFromJSONTyped,
27
- VcenterCredentialsToJSON,
28
- VcenterCredentialsToJSONTyped,
29
- } from './VcenterCredentials.js';
30
23
 
31
24
  /**
32
25
  *
@@ -40,24 +33,12 @@ export interface InspectorStatus {
40
33
  * @memberof InspectorStatus
41
34
  */
42
35
  state: InspectorStatusStateEnum;
43
- /**
44
- *
45
- * @type {VcenterCredentials}
46
- * @memberof InspectorStatus
47
- */
48
- credentials?: VcenterCredentials;
49
36
  /**
50
37
  *
51
38
  * @type {VddkProperties}
52
39
  * @memberof InspectorStatus
53
40
  */
54
41
  vddk?: VddkProperties;
55
- /**
56
- * Error message when state is error
57
- * @type {string}
58
- * @memberof InspectorStatus
59
- */
60
- error?: string;
61
42
  }
62
43
 
63
44
 
@@ -66,11 +47,7 @@ export interface InspectorStatus {
66
47
  */
67
48
  export const InspectorStatusStateEnum = {
68
49
  InspectorStatusStateReady: 'ready',
69
- InspectorStatusStateInitiating: 'Initiating',
70
- InspectorStatusStateRunning: 'running',
71
- InspectorStatusStateCanceled: 'canceled',
72
- InspectorStatusStateCompleted: 'completed',
73
- InspectorStatusStateError: 'error'
50
+ InspectorStatusStateRunning: 'running'
74
51
  } as const;
75
52
  export type InspectorStatusStateEnum = typeof InspectorStatusStateEnum[keyof typeof InspectorStatusStateEnum];
76
53
 
@@ -94,9 +71,7 @@ export function InspectorStatusFromJSONTyped(json: any, ignoreDiscriminator: boo
94
71
  return {
95
72
 
96
73
  'state': json['state'],
97
- 'credentials': json['credentials'] == null ? undefined : VcenterCredentialsFromJSON(json['credentials']),
98
74
  'vddk': json['vddk'] == null ? undefined : VddkPropertiesFromJSON(json['vddk']),
99
- 'error': json['error'] == null ? undefined : json['error'],
100
75
  };
101
76
  }
102
77
 
@@ -112,9 +87,7 @@ export function InspectorStatusToJSONTyped(value?: InspectorStatus | null, ignor
112
87
  return {
113
88
 
114
89
  'state': value['state'],
115
- 'credentials': VcenterCredentialsToJSON(value['credentials']),
116
90
  'vddk': VddkPropertiesToJSON(value['vddk']),
117
- 'error': value['error'],
118
91
  };
119
92
  }
120
93
 
@@ -32,7 +32,13 @@ export interface Inventory {
32
32
  * @type {string}
33
33
  * @memberof Inventory
34
34
  */
35
- vcenterId: string;
35
+ vcenter_id: string;
36
+ /**
37
+ * Version of the vCenter api. For example "8.0.3.0"
38
+ * @type {string}
39
+ * @memberof Inventory
40
+ */
41
+ vcenter_version?: string;
36
42
  /**
37
43
  * Map of cluster names to their inventory data
38
44
  * @type {{ [key: string]: InventoryData; }}
@@ -51,7 +57,7 @@ export interface Inventory {
51
57
  * Check if a given object implements the Inventory interface.
52
58
  */
53
59
  export function instanceOfInventory(value: object): value is Inventory {
54
- if (!('vcenterId' in value) || value['vcenterId'] === undefined) return false;
60
+ if (!('vcenter_id' in value) || value['vcenter_id'] === undefined) return false;
55
61
  if (!('clusters' in value) || value['clusters'] === undefined) return false;
56
62
  return true;
57
63
  }
@@ -66,7 +72,8 @@ export function InventoryFromJSONTyped(json: any, ignoreDiscriminator: boolean):
66
72
  }
67
73
  return {
68
74
 
69
- 'vcenterId': json['vcenter_id'],
75
+ 'vcenter_id': json['vcenter_id'],
76
+ 'vcenter_version': json['vcenter_version'] == null ? undefined : json['vcenter_version'],
70
77
  'clusters': (mapValues(json['clusters'], InventoryDataFromJSON)),
71
78
  'vcenter': json['vcenter'] == null ? undefined : InventoryDataFromJSON(json['vcenter']),
72
79
  };
@@ -83,7 +90,8 @@ export function InventoryToJSONTyped(value?: Inventory | null, ignoreDiscriminat
83
90
 
84
91
  return {
85
92
 
86
- 'vcenter_id': value['vcenterId'],
93
+ 'vcenter_id': value['vcenter_id'],
94
+ 'vcenter_version': value['vcenter_version'],
87
95
  'clusters': (mapValues(value['clusters'], InventoryDataToJSON)),
88
96
  'vcenter': InventoryDataToJSON(value['vcenter']),
89
97
  };
@@ -27,6 +27,13 @@ import {
27
27
  InfraToJSON,
28
28
  InfraToJSONTyped,
29
29
  } from './Infra.js';
30
+ import type { ClusterUtilization } from './ClusterUtilization.js';
31
+ import {
32
+ ClusterUtilizationFromJSON,
33
+ ClusterUtilizationFromJSONTyped,
34
+ ClusterUtilizationToJSON,
35
+ ClusterUtilizationToJSONTyped,
36
+ } from './ClusterUtilization.js';
30
37
  import type { VMs } from './VMs.js';
31
38
  import {
32
39
  VMsFromJSON,
@@ -34,6 +41,13 @@ import {
34
41
  VMsToJSON,
35
42
  VMsToJSONTyped,
36
43
  } from './VMs.js';
44
+ import type { ClusterFeatures } from './ClusterFeatures.js';
45
+ import {
46
+ ClusterFeaturesFromJSON,
47
+ ClusterFeaturesFromJSONTyped,
48
+ ClusterFeaturesToJSON,
49
+ ClusterFeaturesToJSONTyped,
50
+ } from './ClusterFeatures.js';
37
51
 
38
52
  /**
39
53
  *
@@ -47,6 +61,18 @@ export interface InventoryData {
47
61
  * @memberof InventoryData
48
62
  */
49
63
  vcenter?: VCenter;
64
+ /**
65
+ *
66
+ * @type {ClusterFeatures}
67
+ * @memberof InventoryData
68
+ */
69
+ clusterFeatures?: ClusterFeatures;
70
+ /**
71
+ *
72
+ * @type {ClusterUtilization}
73
+ * @memberof InventoryData
74
+ */
75
+ clusterUtilization?: ClusterUtilization;
50
76
  /**
51
77
  *
52
78
  * @type {VMs}
@@ -81,6 +107,8 @@ export function InventoryDataFromJSONTyped(json: any, ignoreDiscriminator: boole
81
107
  return {
82
108
 
83
109
  'vcenter': json['vcenter'] == null ? undefined : VCenterFromJSON(json['vcenter']),
110
+ 'clusterFeatures': json['clusterFeatures'] == null ? undefined : ClusterFeaturesFromJSON(json['clusterFeatures']),
111
+ 'clusterUtilization': json['clusterUtilization'] == null ? undefined : ClusterUtilizationFromJSON(json['clusterUtilization']),
84
112
  'vms': VMsFromJSON(json['vms']),
85
113
  'infra': InfraFromJSON(json['infra']),
86
114
  };
@@ -98,6 +126,8 @@ export function InventoryDataToJSONTyped(value?: InventoryData | null, ignoreDis
98
126
  return {
99
127
 
100
128
  'vcenter': VCenterToJSON(value['vcenter']),
129
+ 'clusterFeatures': ClusterFeaturesToJSON(value['clusterFeatures']),
130
+ 'clusterUtilization': ClusterUtilizationToJSON(value['clusterUtilization']),
101
131
  'vms': VMsToJSON(value['vms']),
102
132
  'infra': InfraToJSON(value['infra']),
103
133
  };
@@ -32,7 +32,7 @@ export interface RightsizingClusterListResponse {
32
32
  * @type {string}
33
33
  * @memberof RightsizingClusterListResponse
34
34
  */
35
- reportId: string;
35
+ report_id: string;
36
36
  /**
37
37
  *
38
38
  * @type {Array<RightsizingClusterUtilization>}
@@ -45,7 +45,7 @@ export interface RightsizingClusterListResponse {
45
45
  * Check if a given object implements the RightsizingClusterListResponse interface.
46
46
  */
47
47
  export function instanceOfRightsizingClusterListResponse(value: object): value is RightsizingClusterListResponse {
48
- if (!('reportId' in value) || value['reportId'] === undefined) return false;
48
+ if (!('report_id' in value) || value['report_id'] === undefined) return false;
49
49
  if (!('clusters' in value) || value['clusters'] === undefined) return false;
50
50
  return true;
51
51
  }
@@ -60,7 +60,7 @@ export function RightsizingClusterListResponseFromJSONTyped(json: any, ignoreDis
60
60
  }
61
61
  return {
62
62
 
63
- 'reportId': json['report_id'],
63
+ 'report_id': json['report_id'],
64
64
  'clusters': ((json['clusters'] as Array<any>).map(RightsizingClusterUtilizationFromJSON)),
65
65
  };
66
66
  }
@@ -76,7 +76,7 @@ export function RightsizingClusterListResponseToJSONTyped(value?: RightsizingClu
76
76
 
77
77
  return {
78
78
 
79
- 'report_id': value['reportId'],
79
+ 'report_id': value['report_id'],
80
80
  'clusters': ((value['clusters'] as Array<any>).map(RightsizingClusterUtilizationToJSON)),
81
81
  };
82
82
  }