@openshift-migration-advisor/agent-sdk 0.12.0-d5edcd6935f2 → 0.12.0-e4c04f972747

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 (184) hide show
  1. package/.openapi-generator/FILES +22 -0
  2. package/.openapi-generator/VERSION +1 -1
  3. package/README.md +25 -5
  4. package/dist/apis/DefaultApi.d.ts +369 -38
  5. package/dist/apis/DefaultApi.js +410 -43
  6. package/dist/esm/apis/DefaultApi.d.ts +369 -38
  7. package/dist/esm/apis/DefaultApi.js +410 -43
  8. package/dist/esm/models/AgentStatus.d.ts +1 -1
  9. package/dist/esm/models/AgentStatus.js +3 -3
  10. package/dist/esm/models/ApplicationListResponse.d.ts +33 -0
  11. package/dist/esm/models/ApplicationListResponse.js +44 -0
  12. package/dist/esm/models/ApplicationOverview.d.ts +51 -0
  13. package/dist/esm/models/ApplicationOverview.js +56 -0
  14. package/dist/esm/models/ApplicationVM.d.ts +38 -0
  15. package/dist/esm/models/ApplicationVM.js +47 -0
  16. package/dist/esm/models/ClusterFeatures.d.ts +54 -0
  17. package/dist/esm/models/ClusterFeatures.js +54 -0
  18. package/dist/esm/models/ClusterUtilization.d.ts +68 -0
  19. package/dist/esm/models/ClusterUtilization.js +67 -0
  20. package/dist/esm/models/CreateGroupRequest.d.ts +0 -6
  21. package/dist/esm/models/CreateGroupRequest.js +0 -2
  22. package/dist/esm/models/DeleteLabelGloballyResponse.d.ts +38 -0
  23. package/dist/esm/models/DeleteLabelGloballyResponse.js +47 -0
  24. package/dist/esm/models/Group.d.ts +0 -6
  25. package/dist/esm/models/Group.js +0 -2
  26. package/dist/esm/models/GroupResponse.d.ts +7 -0
  27. package/dist/esm/models/GroupResponse.js +3 -0
  28. package/dist/esm/models/Inventory.d.ts +7 -1
  29. package/dist/esm/models/Inventory.js +5 -3
  30. package/dist/esm/models/InventoryData.d.ts +14 -0
  31. package/dist/esm/models/InventoryData.js +6 -0
  32. package/dist/esm/models/RightsizingClusterListResponse.d.ts +1 -1
  33. package/dist/esm/models/RightsizingClusterListResponse.js +3 -3
  34. package/dist/esm/models/RightsizingClusterResponse.d.ts +39 -0
  35. package/dist/esm/models/RightsizingClusterResponse.js +48 -0
  36. package/dist/esm/models/RightsizingClusterUtilization.d.ts +12 -12
  37. package/dist/esm/models/RightsizingClusterUtilization.js +36 -36
  38. package/dist/esm/models/RightsizingCollectRequest.d.ts +6 -6
  39. package/dist/esm/models/RightsizingCollectRequest.js +12 -12
  40. package/dist/esm/models/RightsizingMetricStats.d.ts +1 -1
  41. package/dist/esm/models/RightsizingMetricStats.js +3 -3
  42. package/dist/esm/models/RightsizingReport.d.ts +6 -6
  43. package/dist/esm/models/RightsizingReport.js +18 -18
  44. package/dist/esm/models/RightsizingReportSummary.d.ts +6 -6
  45. package/dist/esm/models/RightsizingReportSummary.js +18 -18
  46. package/dist/esm/models/UpdateGroupRequest.d.ts +0 -6
  47. package/dist/esm/models/UpdateGroupRequest.js +0 -2
  48. package/dist/esm/models/UpdateLabelVMsRequest.d.ts +38 -0
  49. package/dist/esm/models/UpdateLabelVMsRequest.js +43 -0
  50. package/dist/esm/models/VMFilterOptionsResponse.d.ts +56 -0
  51. package/dist/esm/models/VMFilterOptionsResponse.js +59 -0
  52. package/dist/esm/models/VMLabelsResponse.d.ts +38 -0
  53. package/dist/esm/models/VMLabelsResponse.js +47 -0
  54. package/dist/esm/models/VMNIC.d.ts +12 -0
  55. package/dist/esm/models/VMNIC.js +4 -0
  56. package/dist/esm/models/VirtualMachine.d.ts +30 -6
  57. package/dist/esm/models/VirtualMachine.js +18 -10
  58. package/dist/esm/models/VirtualMachineDetail.d.ts +12 -0
  59. package/dist/esm/models/VirtualMachineDetail.js +4 -0
  60. package/dist/esm/models/VirtualMachineUpdateRequest.d.ts +38 -0
  61. package/dist/esm/models/VirtualMachineUpdateRequest.js +43 -0
  62. package/dist/esm/models/VmUtilizationDetails.d.ts +12 -12
  63. package/dist/esm/models/VmUtilizationDetails.js +36 -36
  64. package/dist/esm/models/index.d.ts +11 -0
  65. package/dist/esm/models/index.js +11 -0
  66. package/dist/models/AgentStatus.d.ts +1 -1
  67. package/dist/models/AgentStatus.js +3 -3
  68. package/dist/models/ApplicationListResponse.d.ts +33 -0
  69. package/dist/models/ApplicationListResponse.js +51 -0
  70. package/dist/models/ApplicationOverview.d.ts +51 -0
  71. package/dist/models/ApplicationOverview.js +63 -0
  72. package/dist/models/ApplicationVM.d.ts +38 -0
  73. package/dist/models/ApplicationVM.js +54 -0
  74. package/dist/models/ClusterFeatures.d.ts +54 -0
  75. package/dist/models/ClusterFeatures.js +62 -0
  76. package/dist/models/ClusterUtilization.d.ts +68 -0
  77. package/dist/models/ClusterUtilization.js +74 -0
  78. package/dist/models/CreateGroupRequest.d.ts +0 -6
  79. package/dist/models/CreateGroupRequest.js +0 -2
  80. package/dist/models/DeleteLabelGloballyResponse.d.ts +38 -0
  81. package/dist/models/DeleteLabelGloballyResponse.js +54 -0
  82. package/dist/models/Group.d.ts +0 -6
  83. package/dist/models/Group.js +0 -2
  84. package/dist/models/GroupResponse.d.ts +7 -0
  85. package/dist/models/GroupResponse.js +3 -0
  86. package/dist/models/Inventory.d.ts +7 -1
  87. package/dist/models/Inventory.js +5 -3
  88. package/dist/models/InventoryData.d.ts +14 -0
  89. package/dist/models/InventoryData.js +6 -0
  90. package/dist/models/RightsizingClusterListResponse.d.ts +1 -1
  91. package/dist/models/RightsizingClusterListResponse.js +3 -3
  92. package/dist/models/RightsizingClusterResponse.d.ts +39 -0
  93. package/dist/models/RightsizingClusterResponse.js +55 -0
  94. package/dist/models/RightsizingClusterUtilization.d.ts +12 -12
  95. package/dist/models/RightsizingClusterUtilization.js +36 -36
  96. package/dist/models/RightsizingCollectRequest.d.ts +6 -6
  97. package/dist/models/RightsizingCollectRequest.js +12 -12
  98. package/dist/models/RightsizingMetricStats.d.ts +1 -1
  99. package/dist/models/RightsizingMetricStats.js +3 -3
  100. package/dist/models/RightsizingReport.d.ts +6 -6
  101. package/dist/models/RightsizingReport.js +18 -18
  102. package/dist/models/RightsizingReportSummary.d.ts +6 -6
  103. package/dist/models/RightsizingReportSummary.js +18 -18
  104. package/dist/models/UpdateGroupRequest.d.ts +0 -6
  105. package/dist/models/UpdateGroupRequest.js +0 -2
  106. package/dist/models/UpdateLabelVMsRequest.d.ts +38 -0
  107. package/dist/models/UpdateLabelVMsRequest.js +50 -0
  108. package/dist/models/VMFilterOptionsResponse.d.ts +56 -0
  109. package/dist/models/VMFilterOptionsResponse.js +66 -0
  110. package/dist/models/VMLabelsResponse.d.ts +38 -0
  111. package/dist/models/VMLabelsResponse.js +54 -0
  112. package/dist/models/VMNIC.d.ts +12 -0
  113. package/dist/models/VMNIC.js +4 -0
  114. package/dist/models/VirtualMachine.d.ts +30 -6
  115. package/dist/models/VirtualMachine.js +18 -10
  116. package/dist/models/VirtualMachineDetail.d.ts +12 -0
  117. package/dist/models/VirtualMachineDetail.js +4 -0
  118. package/dist/models/VirtualMachineUpdateRequest.d.ts +38 -0
  119. package/dist/models/VirtualMachineUpdateRequest.js +50 -0
  120. package/dist/models/VmUtilizationDetails.d.ts +12 -12
  121. package/dist/models/VmUtilizationDetails.js +36 -36
  122. package/dist/models/index.d.ts +11 -0
  123. package/dist/models/index.js +11 -0
  124. package/docs/AgentStatus.md +2 -2
  125. package/docs/ApplicationListResponse.md +34 -0
  126. package/docs/ApplicationOverview.md +40 -0
  127. package/docs/ApplicationVM.md +36 -0
  128. package/docs/ClusterFeatures.md +38 -0
  129. package/docs/ClusterUtilization.md +46 -0
  130. package/docs/CreateGroupRequest.md +0 -2
  131. package/docs/DefaultApi.md +679 -79
  132. package/docs/DeleteLabelGloballyResponse.md +36 -0
  133. package/docs/GetInventory200Response.md +4 -2
  134. package/docs/Group.md +0 -2
  135. package/docs/GroupResponse.md +2 -0
  136. package/docs/Inventory.md +4 -2
  137. package/docs/InventoryData.md +4 -0
  138. package/docs/RightsizingClusterListResponse.md +2 -2
  139. package/docs/RightsizingClusterResponse.md +36 -0
  140. package/docs/RightsizingClusterUtilization.md +24 -24
  141. package/docs/RightsizingCollectRequest.md +12 -12
  142. package/docs/RightsizingMetricStats.md +2 -2
  143. package/docs/RightsizingReport.md +12 -12
  144. package/docs/RightsizingReportSummary.md +12 -12
  145. package/docs/UpdateGroupRequest.md +0 -2
  146. package/docs/UpdateLabelVMsRequest.md +36 -0
  147. package/docs/VMFilterOptionsResponse.md +42 -0
  148. package/docs/VMLabelsResponse.md +36 -0
  149. package/docs/VMNIC.md +4 -0
  150. package/docs/VirtualMachine.md +18 -10
  151. package/docs/VirtualMachineDetail.md +4 -0
  152. package/docs/VirtualMachineUpdateRequest.md +36 -0
  153. package/docs/VmUtilizationDetails.md +24 -24
  154. package/package.json +1 -1
  155. package/src/apis/DefaultApi.ts +806 -111
  156. package/src/models/AgentStatus.ts +4 -4
  157. package/src/models/ApplicationListResponse.ts +74 -0
  158. package/src/models/ApplicationOverview.ts +101 -0
  159. package/src/models/ApplicationVM.ts +75 -0
  160. package/src/models/ClusterFeatures.ts +94 -0
  161. package/src/models/ClusterUtilization.ts +120 -0
  162. package/src/models/CreateGroupRequest.ts +0 -8
  163. package/src/models/DeleteLabelGloballyResponse.ts +75 -0
  164. package/src/models/Group.ts +0 -8
  165. package/src/models/GroupResponse.ts +15 -0
  166. package/src/models/Inventory.ts +12 -4
  167. package/src/models/InventoryData.ts +30 -0
  168. package/src/models/RightsizingClusterListResponse.ts +4 -4
  169. package/src/models/RightsizingClusterResponse.ts +83 -0
  170. package/src/models/RightsizingClusterUtilization.ts +48 -48
  171. package/src/models/RightsizingCollectRequest.ts +18 -18
  172. package/src/models/RightsizingMetricStats.ts +4 -4
  173. package/src/models/RightsizingReport.ts +24 -24
  174. package/src/models/RightsizingReportSummary.ts +24 -24
  175. package/src/models/UpdateGroupRequest.ts +0 -8
  176. package/src/models/UpdateLabelVMsRequest.ts +73 -0
  177. package/src/models/VMFilterOptionsResponse.ts +102 -0
  178. package/src/models/VMLabelsResponse.ts +75 -0
  179. package/src/models/VMNIC.ts +16 -0
  180. package/src/models/VirtualMachine.ts +48 -16
  181. package/src/models/VirtualMachineDetail.ts +16 -0
  182. package/src/models/VirtualMachineUpdateRequest.ts +73 -0
  183. package/src/models/VmUtilizationDetails.ts +48 -48
  184. package/src/models/index.ts +11 -0
@@ -35,7 +35,6 @@ function UpdateGroupRequestFromJSONTyped(json, ignoreDiscriminator) {
35
35
  'name': json['name'] == null ? undefined : json['name'],
36
36
  'description': json['description'] == null ? undefined : json['description'],
37
37
  'filter': json['filter'] == null ? undefined : json['filter'],
38
- 'tags': json['tags'] == null ? undefined : json['tags'],
39
38
  };
40
39
  }
41
40
  function UpdateGroupRequestToJSON(json) {
@@ -49,6 +48,5 @@ function UpdateGroupRequestToJSONTyped(value, ignoreDiscriminator = false) {
49
48
  'name': value['name'],
50
49
  'description': value['description'],
51
50
  'filter': value['filter'],
52
- 'tags': value['tags'],
53
51
  };
54
52
  }
@@ -0,0 +1,38 @@
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: v1
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 UpdateLabelVMsRequest
16
+ */
17
+ export interface UpdateLabelVMsRequest {
18
+ /**
19
+ * VMs to add the label to
20
+ * @type {Array<string>}
21
+ * @memberof UpdateLabelVMsRequest
22
+ */
23
+ add?: Array<string>;
24
+ /**
25
+ * VMs to remove the label from
26
+ * @type {Array<string>}
27
+ * @memberof UpdateLabelVMsRequest
28
+ */
29
+ remove?: Array<string>;
30
+ }
31
+ /**
32
+ * Check if a given object implements the UpdateLabelVMsRequest interface.
33
+ */
34
+ export declare function instanceOfUpdateLabelVMsRequest(value: object): value is UpdateLabelVMsRequest;
35
+ export declare function UpdateLabelVMsRequestFromJSON(json: any): UpdateLabelVMsRequest;
36
+ export declare function UpdateLabelVMsRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateLabelVMsRequest;
37
+ export declare function UpdateLabelVMsRequestToJSON(json: any): UpdateLabelVMsRequest;
38
+ export declare function UpdateLabelVMsRequestToJSONTyped(value?: UpdateLabelVMsRequest | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,50 @@
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: v1
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.instanceOfUpdateLabelVMsRequest = instanceOfUpdateLabelVMsRequest;
17
+ exports.UpdateLabelVMsRequestFromJSON = UpdateLabelVMsRequestFromJSON;
18
+ exports.UpdateLabelVMsRequestFromJSONTyped = UpdateLabelVMsRequestFromJSONTyped;
19
+ exports.UpdateLabelVMsRequestToJSON = UpdateLabelVMsRequestToJSON;
20
+ exports.UpdateLabelVMsRequestToJSONTyped = UpdateLabelVMsRequestToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the UpdateLabelVMsRequest interface.
23
+ */
24
+ function instanceOfUpdateLabelVMsRequest(value) {
25
+ return true;
26
+ }
27
+ function UpdateLabelVMsRequestFromJSON(json) {
28
+ return UpdateLabelVMsRequestFromJSONTyped(json, false);
29
+ }
30
+ function UpdateLabelVMsRequestFromJSONTyped(json, ignoreDiscriminator) {
31
+ if (json == null) {
32
+ return json;
33
+ }
34
+ return {
35
+ 'add': json['add'] == null ? undefined : json['add'],
36
+ 'remove': json['remove'] == null ? undefined : json['remove'],
37
+ };
38
+ }
39
+ function UpdateLabelVMsRequestToJSON(json) {
40
+ return UpdateLabelVMsRequestToJSONTyped(json, false);
41
+ }
42
+ function UpdateLabelVMsRequestToJSONTyped(value, ignoreDiscriminator = false) {
43
+ if (value == null) {
44
+ return value;
45
+ }
46
+ return {
47
+ 'add': value['add'],
48
+ 'remove': value['remove'],
49
+ };
50
+ }
@@ -0,0 +1,56 @@
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: v1
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 VMFilterOptionsResponse
16
+ */
17
+ export interface VMFilterOptionsResponse {
18
+ /**
19
+ * Distinct cluster names
20
+ * @type {Array<string>}
21
+ * @memberof VMFilterOptionsResponse
22
+ */
23
+ clusters: Array<string>;
24
+ /**
25
+ * Distinct datacenter names
26
+ * @type {Array<string>}
27
+ * @memberof VMFilterOptionsResponse
28
+ */
29
+ datacenters: Array<string>;
30
+ /**
31
+ * Distinct concern labels
32
+ * @type {Array<string>}
33
+ * @memberof VMFilterOptionsResponse
34
+ */
35
+ concernLabels: Array<string>;
36
+ /**
37
+ * Distinct concern categories
38
+ * @type {Array<string>}
39
+ * @memberof VMFilterOptionsResponse
40
+ */
41
+ concernCategories: Array<string>;
42
+ /**
43
+ * Distinct detected application names
44
+ * @type {Array<string>}
45
+ * @memberof VMFilterOptionsResponse
46
+ */
47
+ applications: Array<string>;
48
+ }
49
+ /**
50
+ * Check if a given object implements the VMFilterOptionsResponse interface.
51
+ */
52
+ export declare function instanceOfVMFilterOptionsResponse(value: object): value is VMFilterOptionsResponse;
53
+ export declare function VMFilterOptionsResponseFromJSON(json: any): VMFilterOptionsResponse;
54
+ export declare function VMFilterOptionsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): VMFilterOptionsResponse;
55
+ export declare function VMFilterOptionsResponseToJSON(json: any): VMFilterOptionsResponse;
56
+ export declare function VMFilterOptionsResponseToJSONTyped(value?: VMFilterOptionsResponse | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,66 @@
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: v1
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.instanceOfVMFilterOptionsResponse = instanceOfVMFilterOptionsResponse;
17
+ exports.VMFilterOptionsResponseFromJSON = VMFilterOptionsResponseFromJSON;
18
+ exports.VMFilterOptionsResponseFromJSONTyped = VMFilterOptionsResponseFromJSONTyped;
19
+ exports.VMFilterOptionsResponseToJSON = VMFilterOptionsResponseToJSON;
20
+ exports.VMFilterOptionsResponseToJSONTyped = VMFilterOptionsResponseToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the VMFilterOptionsResponse interface.
23
+ */
24
+ function instanceOfVMFilterOptionsResponse(value) {
25
+ if (!('clusters' in value) || value['clusters'] === undefined)
26
+ return false;
27
+ if (!('datacenters' in value) || value['datacenters'] === undefined)
28
+ return false;
29
+ if (!('concernLabels' in value) || value['concernLabels'] === undefined)
30
+ return false;
31
+ if (!('concernCategories' in value) || value['concernCategories'] === undefined)
32
+ return false;
33
+ if (!('applications' in value) || value['applications'] === undefined)
34
+ return false;
35
+ return true;
36
+ }
37
+ function VMFilterOptionsResponseFromJSON(json) {
38
+ return VMFilterOptionsResponseFromJSONTyped(json, false);
39
+ }
40
+ function VMFilterOptionsResponseFromJSONTyped(json, ignoreDiscriminator) {
41
+ if (json == null) {
42
+ return json;
43
+ }
44
+ return {
45
+ 'clusters': json['clusters'],
46
+ 'datacenters': json['datacenters'],
47
+ 'concernLabels': json['concernLabels'],
48
+ 'concernCategories': json['concernCategories'],
49
+ 'applications': json['applications'],
50
+ };
51
+ }
52
+ function VMFilterOptionsResponseToJSON(json) {
53
+ return VMFilterOptionsResponseToJSONTyped(json, false);
54
+ }
55
+ function VMFilterOptionsResponseToJSONTyped(value, ignoreDiscriminator = false) {
56
+ if (value == null) {
57
+ return value;
58
+ }
59
+ return {
60
+ 'clusters': value['clusters'],
61
+ 'datacenters': value['datacenters'],
62
+ 'concernLabels': value['concernLabels'],
63
+ 'concernCategories': value['concernCategories'],
64
+ 'applications': value['applications'],
65
+ };
66
+ }
@@ -0,0 +1,38 @@
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: v1
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 VMLabelsResponse
16
+ */
17
+ export interface VMLabelsResponse {
18
+ /**
19
+ * Distinct labels currently in use
20
+ * @type {Array<string>}
21
+ * @memberof VMLabelsResponse
22
+ */
23
+ labels: Array<string>;
24
+ /**
25
+ * Number of VMs with each label (same order as labels array)
26
+ * @type {Array<number>}
27
+ * @memberof VMLabelsResponse
28
+ */
29
+ counts: Array<number>;
30
+ }
31
+ /**
32
+ * Check if a given object implements the VMLabelsResponse interface.
33
+ */
34
+ export declare function instanceOfVMLabelsResponse(value: object): value is VMLabelsResponse;
35
+ export declare function VMLabelsResponseFromJSON(json: any): VMLabelsResponse;
36
+ export declare function VMLabelsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): VMLabelsResponse;
37
+ export declare function VMLabelsResponseToJSON(json: any): VMLabelsResponse;
38
+ export declare function VMLabelsResponseToJSONTyped(value?: VMLabelsResponse | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,54 @@
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: v1
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.instanceOfVMLabelsResponse = instanceOfVMLabelsResponse;
17
+ exports.VMLabelsResponseFromJSON = VMLabelsResponseFromJSON;
18
+ exports.VMLabelsResponseFromJSONTyped = VMLabelsResponseFromJSONTyped;
19
+ exports.VMLabelsResponseToJSON = VMLabelsResponseToJSON;
20
+ exports.VMLabelsResponseToJSONTyped = VMLabelsResponseToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the VMLabelsResponse interface.
23
+ */
24
+ function instanceOfVMLabelsResponse(value) {
25
+ if (!('labels' in value) || value['labels'] === undefined)
26
+ return false;
27
+ if (!('counts' in value) || value['counts'] === undefined)
28
+ return false;
29
+ return true;
30
+ }
31
+ function VMLabelsResponseFromJSON(json) {
32
+ return VMLabelsResponseFromJSONTyped(json, false);
33
+ }
34
+ function VMLabelsResponseFromJSONTyped(json, ignoreDiscriminator) {
35
+ if (json == null) {
36
+ return json;
37
+ }
38
+ return {
39
+ 'labels': json['labels'],
40
+ 'counts': json['counts'],
41
+ };
42
+ }
43
+ function VMLabelsResponseToJSON(json) {
44
+ return VMLabelsResponseToJSONTyped(json, false);
45
+ }
46
+ function VMLabelsResponseToJSONTyped(value, ignoreDiscriminator = false) {
47
+ if (value == null) {
48
+ return value;
49
+ }
50
+ return {
51
+ 'labels': value['labels'],
52
+ 'counts': value['counts'],
53
+ };
54
+ }
@@ -33,6 +33,18 @@ export interface VMNIC {
33
33
  * @memberof VMNIC
34
34
  */
35
35
  index?: number;
36
+ /**
37
+ * IPv4 address of this NIC as reported by VMware Tools
38
+ * @type {string}
39
+ * @memberof VMNIC
40
+ */
41
+ ipv4Address?: string;
42
+ /**
43
+ * IPv6 address of this NIC as reported by VMware Tools
44
+ * @type {string}
45
+ * @memberof VMNIC
46
+ */
47
+ ipv6Address?: string;
36
48
  }
37
49
  /**
38
50
  * Check if a given object implements the VMNIC interface.
@@ -35,6 +35,8 @@ function VMNICFromJSONTyped(json, ignoreDiscriminator) {
35
35
  'mac': json['mac'] == null ? undefined : json['mac'],
36
36
  'network': json['network'] == null ? undefined : json['network'],
37
37
  'index': json['index'] == null ? undefined : json['index'],
38
+ 'ipv4Address': json['ipv4Address'] == null ? undefined : json['ipv4Address'],
39
+ 'ipv6Address': json['ipv6Address'] == null ? undefined : json['ipv6Address'],
38
40
  };
39
41
  }
40
42
  function VMNICToJSON(json) {
@@ -48,5 +50,7 @@ function VMNICToJSONTyped(value, ignoreDiscriminator = false) {
48
50
  'mac': value['mac'],
49
51
  'network': value['network'],
50
52
  'index': value['index'],
53
+ 'ipv4Address': value['ipv4Address'],
54
+ 'ipv6Address': value['ipv6Address'],
51
55
  };
52
56
  }
@@ -76,6 +76,12 @@ export interface VirtualMachine {
76
76
  * @memberof VirtualMachine
77
77
  */
78
78
  template?: boolean;
79
+ /**
80
+ * Whether this VM is excluded from migration
81
+ * @type {boolean}
82
+ * @memberof VirtualMachine
83
+ */
84
+ migrationExcluded?: boolean;
79
85
  /**
80
86
  *
81
87
  * @type {VmInspectionStatus}
@@ -89,35 +95,53 @@ export interface VirtualMachine {
89
95
  */
90
96
  inspectionConcernCount?: number;
91
97
  /**
92
- * Tags aggregated from matching groups
98
+ * Names of groups this VM matches
99
+ * @type {Array<string>}
100
+ * @memberof VirtualMachine
101
+ */
102
+ groups?: Array<string>;
103
+ /**
104
+ * User-defined labels for this VM
93
105
  * @type {Array<string>}
94
106
  * @memberof VirtualMachine
95
107
  */
96
- tags?: Array<string>;
108
+ labels?: Array<string>;
97
109
  /**
98
110
  * CPU utilization at p95 (%); absent when no utilization data
99
111
  * @type {number}
100
112
  * @memberof VirtualMachine
101
113
  */
102
- utilizationCpuP95?: number;
114
+ utilization_cpu_p95?: number;
103
115
  /**
104
116
  * Memory utilization at p95 (%); absent when no utilization data
105
117
  * @type {number}
106
118
  * @memberof VirtualMachine
107
119
  */
108
- utilizationMemP95?: number;
120
+ utilization_mem_p95?: number;
121
+ /**
122
+ * CPU utilization at max (%); absent when no utilization data
123
+ * @type {number}
124
+ * @memberof VirtualMachine
125
+ */
126
+ utilization_cpu_max?: number;
127
+ /**
128
+ * Memory utilization at max (%); absent when no utilization data
129
+ * @type {number}
130
+ * @memberof VirtualMachine
131
+ */
132
+ utilization_mem_max?: number;
109
133
  /**
110
134
  * Disk utilization (%); absent when no utilization data
111
135
  * @type {number}
112
136
  * @memberof VirtualMachine
113
137
  */
114
- utilizationDisk?: number;
138
+ utilization_disk?: number;
115
139
  /**
116
140
  * Data confidence — sample_count / expected_sample_count × 100
117
141
  * @type {number}
118
142
  * @memberof VirtualMachine
119
143
  */
120
- utilizationConfidence?: number;
144
+ utilization_confidence?: number;
121
145
  }
122
146
  /**
123
147
  * Check if a given object implements the VirtualMachine interface.
@@ -59,13 +59,17 @@ function VirtualMachineFromJSONTyped(json, ignoreDiscriminator) {
59
59
  'issueCount': json['issueCount'],
60
60
  'migratable': json['migratable'] == null ? undefined : json['migratable'],
61
61
  'template': json['template'] == null ? undefined : json['template'],
62
+ 'migrationExcluded': json['migrationExcluded'] == null ? undefined : json['migrationExcluded'],
62
63
  'inspectionStatus': json['inspectionStatus'] == null ? undefined : (0, VmInspectionStatus_js_1.VmInspectionStatusFromJSON)(json['inspectionStatus']),
63
64
  'inspectionConcernCount': json['inspectionConcernCount'] == null ? undefined : json['inspectionConcernCount'],
64
- 'tags': json['tags'] == null ? undefined : json['tags'],
65
- 'utilizationCpuP95': json['utilization_cpu_p95'] == null ? undefined : json['utilization_cpu_p95'],
66
- 'utilizationMemP95': json['utilization_mem_p95'] == null ? undefined : json['utilization_mem_p95'],
67
- 'utilizationDisk': json['utilization_disk'] == null ? undefined : json['utilization_disk'],
68
- 'utilizationConfidence': json['utilization_confidence'] == null ? undefined : json['utilization_confidence'],
65
+ 'groups': json['groups'] == null ? undefined : json['groups'],
66
+ 'labels': json['labels'] == null ? undefined : json['labels'],
67
+ 'utilization_cpu_p95': json['utilization_cpu_p95'] == null ? undefined : json['utilization_cpu_p95'],
68
+ 'utilization_mem_p95': json['utilization_mem_p95'] == null ? undefined : json['utilization_mem_p95'],
69
+ 'utilization_cpu_max': json['utilization_cpu_max'] == null ? undefined : json['utilization_cpu_max'],
70
+ 'utilization_mem_max': json['utilization_mem_max'] == null ? undefined : json['utilization_mem_max'],
71
+ 'utilization_disk': json['utilization_disk'] == null ? undefined : json['utilization_disk'],
72
+ 'utilization_confidence': json['utilization_confidence'] == null ? undefined : json['utilization_confidence'],
69
73
  };
70
74
  }
71
75
  function VirtualMachineToJSON(json) {
@@ -86,12 +90,16 @@ function VirtualMachineToJSONTyped(value, ignoreDiscriminator = false) {
86
90
  'issueCount': value['issueCount'],
87
91
  'migratable': value['migratable'],
88
92
  'template': value['template'],
93
+ 'migrationExcluded': value['migrationExcluded'],
89
94
  'inspectionStatus': (0, VmInspectionStatus_js_1.VmInspectionStatusToJSON)(value['inspectionStatus']),
90
95
  'inspectionConcernCount': value['inspectionConcernCount'],
91
- 'tags': value['tags'],
92
- 'utilization_cpu_p95': value['utilizationCpuP95'],
93
- 'utilization_mem_p95': value['utilizationMemP95'],
94
- 'utilization_disk': value['utilizationDisk'],
95
- 'utilization_confidence': value['utilizationConfidence'],
96
+ 'groups': value['groups'],
97
+ 'labels': value['labels'],
98
+ 'utilization_cpu_p95': value['utilization_cpu_p95'],
99
+ 'utilization_mem_p95': value['utilization_mem_p95'],
100
+ 'utilization_cpu_max': value['utilization_cpu_max'],
101
+ 'utilization_mem_max': value['utilization_mem_max'],
102
+ 'utilization_disk': value['utilization_disk'],
103
+ 'utilization_confidence': value['utilization_confidence'],
96
104
  };
97
105
  }
@@ -148,6 +148,18 @@ export interface VirtualMachineDetail {
148
148
  * @memberof VirtualMachineDetail
149
149
  */
150
150
  migratable?: boolean;
151
+ /**
152
+ * Whether this VM is excluded from migration
153
+ * @type {boolean}
154
+ * @memberof VirtualMachineDetail
155
+ */
156
+ migrationExcluded?: boolean;
157
+ /**
158
+ * User-defined labels for this VM
159
+ * @type {Array<string>}
160
+ * @memberof VirtualMachineDetail
161
+ */
162
+ labels?: Array<string>;
151
163
  /**
152
164
  * Whether VMware Fault Tolerance is enabled, which maintains a live shadow VirtualMachine for instant failover
153
165
  * @type {boolean}
@@ -78,6 +78,8 @@ function VirtualMachineDetailFromJSONTyped(json, ignoreDiscriminator) {
78
78
  'storageUsed': json['storageUsed'] == null ? undefined : json['storageUsed'],
79
79
  'template': json['template'] == null ? undefined : json['template'],
80
80
  'migratable': json['migratable'] == null ? undefined : json['migratable'],
81
+ 'migrationExcluded': json['migrationExcluded'] == null ? undefined : json['migrationExcluded'],
82
+ 'labels': json['labels'] == null ? undefined : json['labels'],
81
83
  'faultToleranceEnabled': json['faultToleranceEnabled'] == null ? undefined : json['faultToleranceEnabled'],
82
84
  'nestedHVEnabled': json['nestedHVEnabled'] == null ? undefined : json['nestedHVEnabled'],
83
85
  'toolsStatus': json['toolsStatus'] == null ? undefined : json['toolsStatus'],
@@ -120,6 +122,8 @@ function VirtualMachineDetailToJSONTyped(value, ignoreDiscriminator = false) {
120
122
  'storageUsed': value['storageUsed'],
121
123
  'template': value['template'],
122
124
  'migratable': value['migratable'],
125
+ 'migrationExcluded': value['migrationExcluded'],
126
+ 'labels': value['labels'],
123
127
  'faultToleranceEnabled': value['faultToleranceEnabled'],
124
128
  'nestedHVEnabled': value['nestedHVEnabled'],
125
129
  'toolsStatus': value['toolsStatus'],
@@ -0,0 +1,38 @@
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: v1
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 VirtualMachineUpdateRequest
16
+ */
17
+ export interface VirtualMachineUpdateRequest {
18
+ /**
19
+ * Whether to exclude this VM from migration
20
+ * @type {boolean}
21
+ * @memberof VirtualMachineUpdateRequest
22
+ */
23
+ migrationExcluded?: boolean;
24
+ /**
25
+ * User-defined labels (replaces existing labels)
26
+ * @type {Array<string>}
27
+ * @memberof VirtualMachineUpdateRequest
28
+ */
29
+ labels?: Array<string>;
30
+ }
31
+ /**
32
+ * Check if a given object implements the VirtualMachineUpdateRequest interface.
33
+ */
34
+ export declare function instanceOfVirtualMachineUpdateRequest(value: object): value is VirtualMachineUpdateRequest;
35
+ export declare function VirtualMachineUpdateRequestFromJSON(json: any): VirtualMachineUpdateRequest;
36
+ export declare function VirtualMachineUpdateRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): VirtualMachineUpdateRequest;
37
+ export declare function VirtualMachineUpdateRequestToJSON(json: any): VirtualMachineUpdateRequest;
38
+ export declare function VirtualMachineUpdateRequestToJSONTyped(value?: VirtualMachineUpdateRequest | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,50 @@
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: v1
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.instanceOfVirtualMachineUpdateRequest = instanceOfVirtualMachineUpdateRequest;
17
+ exports.VirtualMachineUpdateRequestFromJSON = VirtualMachineUpdateRequestFromJSON;
18
+ exports.VirtualMachineUpdateRequestFromJSONTyped = VirtualMachineUpdateRequestFromJSONTyped;
19
+ exports.VirtualMachineUpdateRequestToJSON = VirtualMachineUpdateRequestToJSON;
20
+ exports.VirtualMachineUpdateRequestToJSONTyped = VirtualMachineUpdateRequestToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the VirtualMachineUpdateRequest interface.
23
+ */
24
+ function instanceOfVirtualMachineUpdateRequest(value) {
25
+ return true;
26
+ }
27
+ function VirtualMachineUpdateRequestFromJSON(json) {
28
+ return VirtualMachineUpdateRequestFromJSONTyped(json, false);
29
+ }
30
+ function VirtualMachineUpdateRequestFromJSONTyped(json, ignoreDiscriminator) {
31
+ if (json == null) {
32
+ return json;
33
+ }
34
+ return {
35
+ 'migrationExcluded': json['migrationExcluded'] == null ? undefined : json['migrationExcluded'],
36
+ 'labels': json['labels'] == null ? undefined : json['labels'],
37
+ };
38
+ }
39
+ function VirtualMachineUpdateRequestToJSON(json) {
40
+ return VirtualMachineUpdateRequestToJSONTyped(json, false);
41
+ }
42
+ function VirtualMachineUpdateRequestToJSONTyped(value, ignoreDiscriminator = false) {
43
+ if (value == null) {
44
+ return value;
45
+ }
46
+ return {
47
+ 'migrationExcluded': value['migrationExcluded'],
48
+ 'labels': value['labels'],
49
+ };
50
+ }