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

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 (141) hide show
  1. package/.openapi-generator/FILES +14 -0
  2. package/README.md +18 -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/DeleteLabelGloballyResponse.d.ts +38 -0
  12. package/dist/esm/models/DeleteLabelGloballyResponse.js +47 -0
  13. package/dist/esm/models/InspectorStatus.d.ts +0 -17
  14. package/dist/esm/models/InspectorStatus.js +1 -10
  15. package/dist/esm/models/Inventory.d.ts +7 -1
  16. package/dist/esm/models/Inventory.js +5 -3
  17. package/dist/esm/models/InventoryData.d.ts +7 -0
  18. package/dist/esm/models/InventoryData.js +3 -0
  19. package/dist/esm/models/RightsizingClusterListResponse.d.ts +1 -1
  20. package/dist/esm/models/RightsizingClusterListResponse.js +3 -3
  21. package/dist/esm/models/RightsizingClusterResponse.d.ts +39 -0
  22. package/dist/esm/models/RightsizingClusterResponse.js +48 -0
  23. package/dist/esm/models/RightsizingClusterUtilization.d.ts +12 -12
  24. package/dist/esm/models/RightsizingClusterUtilization.js +36 -36
  25. package/dist/esm/models/RightsizingCollectRequest.d.ts +6 -6
  26. package/dist/esm/models/RightsizingCollectRequest.js +12 -12
  27. package/dist/esm/models/RightsizingMetricStats.d.ts +1 -1
  28. package/dist/esm/models/RightsizingMetricStats.js +3 -3
  29. package/dist/esm/models/RightsizingReport.d.ts +6 -6
  30. package/dist/esm/models/RightsizingReport.js +18 -18
  31. package/dist/esm/models/RightsizingReportSummary.d.ts +6 -6
  32. package/dist/esm/models/RightsizingReportSummary.js +18 -18
  33. package/dist/esm/models/StartInspectionRequest.d.ts +8 -1
  34. package/dist/esm/models/StartInspectionRequest.js +5 -0
  35. package/dist/esm/models/UpdateLabelVMsRequest.d.ts +38 -0
  36. package/dist/esm/models/UpdateLabelVMsRequest.js +43 -0
  37. package/dist/esm/models/VMFilterOptionsResponse.d.ts +50 -0
  38. package/dist/esm/models/VMFilterOptionsResponse.js +55 -0
  39. package/dist/esm/models/VMLabelsResponse.d.ts +38 -0
  40. package/dist/esm/models/VMLabelsResponse.js +47 -0
  41. package/dist/esm/models/VirtualMachine.d.ts +16 -4
  42. package/dist/esm/models/VirtualMachine.js +12 -8
  43. package/dist/esm/models/VirtualMachineDetail.d.ts +19 -0
  44. package/dist/esm/models/VirtualMachineDetail.js +7 -0
  45. package/dist/esm/models/VirtualMachineUpdateRequest.d.ts +38 -0
  46. package/dist/esm/models/VirtualMachineUpdateRequest.js +43 -0
  47. package/dist/esm/models/VmUtilizationDetails.d.ts +12 -12
  48. package/dist/esm/models/VmUtilizationDetails.js +36 -36
  49. package/dist/esm/models/index.d.ts +7 -0
  50. package/dist/esm/models/index.js +7 -0
  51. package/dist/models/AgentStatus.d.ts +1 -1
  52. package/dist/models/AgentStatus.js +3 -3
  53. package/dist/models/ClusterFeatures.d.ts +54 -0
  54. package/dist/models/ClusterFeatures.js +62 -0
  55. package/dist/models/DeleteLabelGloballyResponse.d.ts +38 -0
  56. package/dist/models/DeleteLabelGloballyResponse.js +54 -0
  57. package/dist/models/InspectorStatus.d.ts +0 -17
  58. package/dist/models/InspectorStatus.js +1 -10
  59. package/dist/models/Inventory.d.ts +7 -1
  60. package/dist/models/Inventory.js +5 -3
  61. package/dist/models/InventoryData.d.ts +7 -0
  62. package/dist/models/InventoryData.js +3 -0
  63. package/dist/models/RightsizingClusterListResponse.d.ts +1 -1
  64. package/dist/models/RightsizingClusterListResponse.js +3 -3
  65. package/dist/models/RightsizingClusterResponse.d.ts +39 -0
  66. package/dist/models/RightsizingClusterResponse.js +55 -0
  67. package/dist/models/RightsizingClusterUtilization.d.ts +12 -12
  68. package/dist/models/RightsizingClusterUtilization.js +36 -36
  69. package/dist/models/RightsizingCollectRequest.d.ts +6 -6
  70. package/dist/models/RightsizingCollectRequest.js +12 -12
  71. package/dist/models/RightsizingMetricStats.d.ts +1 -1
  72. package/dist/models/RightsizingMetricStats.js +3 -3
  73. package/dist/models/RightsizingReport.d.ts +6 -6
  74. package/dist/models/RightsizingReport.js +18 -18
  75. package/dist/models/RightsizingReportSummary.d.ts +6 -6
  76. package/dist/models/RightsizingReportSummary.js +18 -18
  77. package/dist/models/StartInspectionRequest.d.ts +8 -1
  78. package/dist/models/StartInspectionRequest.js +5 -0
  79. package/dist/models/UpdateLabelVMsRequest.d.ts +38 -0
  80. package/dist/models/UpdateLabelVMsRequest.js +50 -0
  81. package/dist/models/VMFilterOptionsResponse.d.ts +50 -0
  82. package/dist/models/VMFilterOptionsResponse.js +62 -0
  83. package/dist/models/VMLabelsResponse.d.ts +38 -0
  84. package/dist/models/VMLabelsResponse.js +54 -0
  85. package/dist/models/VirtualMachine.d.ts +16 -4
  86. package/dist/models/VirtualMachine.js +12 -8
  87. package/dist/models/VirtualMachineDetail.d.ts +19 -0
  88. package/dist/models/VirtualMachineDetail.js +7 -0
  89. package/dist/models/VirtualMachineUpdateRequest.d.ts +38 -0
  90. package/dist/models/VirtualMachineUpdateRequest.js +50 -0
  91. package/dist/models/VmUtilizationDetails.d.ts +12 -12
  92. package/dist/models/VmUtilizationDetails.js +36 -36
  93. package/dist/models/index.d.ts +7 -0
  94. package/dist/models/index.js +7 -0
  95. package/docs/AgentStatus.md +2 -2
  96. package/docs/ClusterFeatures.md +38 -0
  97. package/docs/DefaultApi.md +529 -60
  98. package/docs/DeleteLabelGloballyResponse.md +36 -0
  99. package/docs/GetInventory200Response.md +4 -2
  100. package/docs/InspectorStatus.md +0 -4
  101. package/docs/Inventory.md +4 -2
  102. package/docs/InventoryData.md +2 -0
  103. package/docs/RightsizingClusterListResponse.md +2 -2
  104. package/docs/RightsizingClusterResponse.md +36 -0
  105. package/docs/RightsizingClusterUtilization.md +24 -24
  106. package/docs/RightsizingCollectRequest.md +12 -12
  107. package/docs/RightsizingMetricStats.md +2 -2
  108. package/docs/RightsizingReport.md +12 -12
  109. package/docs/RightsizingReportSummary.md +12 -12
  110. package/docs/StartInspectionRequest.md +3 -1
  111. package/docs/UpdateLabelVMsRequest.md +36 -0
  112. package/docs/VMFilterOptionsResponse.md +40 -0
  113. package/docs/VMLabelsResponse.md +36 -0
  114. package/docs/VirtualMachine.md +12 -8
  115. package/docs/VirtualMachineDetail.md +6 -0
  116. package/docs/VirtualMachineUpdateRequest.md +36 -0
  117. package/docs/VmUtilizationDetails.md +24 -24
  118. package/package.json +1 -1
  119. package/src/apis/DefaultApi.ts +641 -88
  120. package/src/models/AgentStatus.ts +4 -4
  121. package/src/models/ClusterFeatures.ts +94 -0
  122. package/src/models/DeleteLabelGloballyResponse.ts +75 -0
  123. package/src/models/InspectorStatus.ts +1 -28
  124. package/src/models/Inventory.ts +12 -4
  125. package/src/models/InventoryData.ts +15 -0
  126. package/src/models/RightsizingClusterListResponse.ts +4 -4
  127. package/src/models/RightsizingClusterResponse.ts +83 -0
  128. package/src/models/RightsizingClusterUtilization.ts +48 -48
  129. package/src/models/RightsizingCollectRequest.ts +18 -18
  130. package/src/models/RightsizingMetricStats.ts +4 -4
  131. package/src/models/RightsizingReport.ts +24 -24
  132. package/src/models/RightsizingReportSummary.ts +24 -24
  133. package/src/models/StartInspectionRequest.ts +18 -1
  134. package/src/models/UpdateLabelVMsRequest.ts +73 -0
  135. package/src/models/VMFilterOptionsResponse.ts +93 -0
  136. package/src/models/VMLabelsResponse.ts +75 -0
  137. package/src/models/VirtualMachine.ts +28 -12
  138. package/src/models/VirtualMachineDetail.ts +31 -0
  139. package/src/models/VirtualMachineUpdateRequest.ts +73 -0
  140. package/src/models/VmUtilizationDetails.ts +48 -48
  141. package/src/models/index.ts +7 -0
@@ -29,12 +29,12 @@ export function RightsizingCollectRequestFromJSONTyped(json, ignoreDiscriminator
29
29
  }
30
30
  return {
31
31
  'credentials': VcenterCredentialsFromJSON(json['credentials']),
32
- 'lookbackHours': json['lookback_hours'] == null ? undefined : json['lookback_hours'],
33
- 'intervalId': json['interval_id'] == null ? undefined : json['interval_id'],
34
- 'nameFilter': json['name_filter'] == null ? undefined : json['name_filter'],
35
- 'clusterId': json['cluster_id'] == null ? undefined : json['cluster_id'],
36
- 'batchSize': json['batch_size'] == null ? undefined : json['batch_size'],
37
- 'discoverVms': json['discover_vms'] == null ? undefined : json['discover_vms'],
32
+ 'lookback_hours': json['lookback_hours'] == null ? undefined : json['lookback_hours'],
33
+ 'interval_id': json['interval_id'] == null ? undefined : json['interval_id'],
34
+ 'name_filter': json['name_filter'] == null ? undefined : json['name_filter'],
35
+ 'cluster_id': json['cluster_id'] == null ? undefined : json['cluster_id'],
36
+ 'batch_size': json['batch_size'] == null ? undefined : json['batch_size'],
37
+ 'discover_vms': json['discover_vms'] == null ? undefined : json['discover_vms'],
38
38
  };
39
39
  }
40
40
  export function RightsizingCollectRequestToJSON(json) {
@@ -46,11 +46,11 @@ export function RightsizingCollectRequestToJSONTyped(value, ignoreDiscriminator
46
46
  }
47
47
  return {
48
48
  'credentials': VcenterCredentialsToJSON(value['credentials']),
49
- 'lookback_hours': value['lookbackHours'],
50
- 'interval_id': value['intervalId'],
51
- 'name_filter': value['nameFilter'],
52
- 'cluster_id': value['clusterId'],
53
- 'batch_size': value['batchSize'],
54
- 'discover_vms': value['discoverVms'],
49
+ 'lookback_hours': value['lookback_hours'],
50
+ 'interval_id': value['interval_id'],
51
+ 'name_filter': value['name_filter'],
52
+ 'cluster_id': value['cluster_id'],
53
+ 'batch_size': value['batch_size'],
54
+ 'discover_vms': value['discover_vms'],
55
55
  };
56
56
  }
@@ -20,7 +20,7 @@ export interface RightsizingMetricStats {
20
20
  * @type {number}
21
21
  * @memberof RightsizingMetricStats
22
22
  */
23
- sampleCount: number;
23
+ sample_count: number;
24
24
  /**
25
25
  *
26
26
  * @type {number}
@@ -15,7 +15,7 @@
15
15
  * Check if a given object implements the RightsizingMetricStats interface.
16
16
  */
17
17
  export function instanceOfRightsizingMetricStats(value) {
18
- if (!('sampleCount' in value) || value['sampleCount'] === undefined)
18
+ if (!('sample_count' in value) || value['sample_count'] === undefined)
19
19
  return false;
20
20
  if (!('average' in value) || value['average'] === undefined)
21
21
  return false;
@@ -37,7 +37,7 @@ export function RightsizingMetricStatsFromJSONTyped(json, ignoreDiscriminator) {
37
37
  return json;
38
38
  }
39
39
  return {
40
- 'sampleCount': json['sample_count'],
40
+ 'sample_count': json['sample_count'],
41
41
  'average': json['average'],
42
42
  'p95': json['p95'],
43
43
  'p99': json['p99'],
@@ -53,7 +53,7 @@ export function RightsizingMetricStatsToJSONTyped(value, ignoreDiscriminator = f
53
53
  return value;
54
54
  }
55
55
  return {
56
- 'sample_count': value['sampleCount'],
56
+ 'sample_count': value['sample_count'],
57
57
  'average': value['average'],
58
58
  'p95': value['p95'],
59
59
  'p99': value['p99'],
@@ -33,31 +33,31 @@ export interface RightsizingReport {
33
33
  * @type {string}
34
34
  * @memberof RightsizingReport
35
35
  */
36
- clusterId: string;
36
+ cluster_id: string;
37
37
  /**
38
38
  *
39
39
  * @type {Date}
40
40
  * @memberof RightsizingReport
41
41
  */
42
- windowStart: Date;
42
+ window_start: Date;
43
43
  /**
44
44
  *
45
45
  * @type {Date}
46
46
  * @memberof RightsizingReport
47
47
  */
48
- windowEnd: Date;
48
+ window_end: Date;
49
49
  /**
50
50
  *
51
51
  * @type {number}
52
52
  * @memberof RightsizingReport
53
53
  */
54
- intervalId: number;
54
+ interval_id: number;
55
55
  /**
56
56
  * Theoretical maximum samples for the window (lookback / interval)
57
57
  * @type {number}
58
58
  * @memberof RightsizingReport
59
59
  */
60
- expectedSampleCount: number;
60
+ expected_sample_count: number;
61
61
  /**
62
62
  *
63
63
  * @type {Array<RightsizingVMReport>}
@@ -69,7 +69,7 @@ export interface RightsizingReport {
69
69
  * @type {Date}
70
70
  * @memberof RightsizingReport
71
71
  */
72
- createdAt: Date;
72
+ created_at: Date;
73
73
  }
74
74
  /**
75
75
  * Check if a given object implements the RightsizingReport interface.
@@ -20,19 +20,19 @@ export function instanceOfRightsizingReport(value) {
20
20
  return false;
21
21
  if (!('vcenter' in value) || value['vcenter'] === undefined)
22
22
  return false;
23
- if (!('clusterId' in value) || value['clusterId'] === undefined)
23
+ if (!('cluster_id' in value) || value['cluster_id'] === undefined)
24
24
  return false;
25
- if (!('windowStart' in value) || value['windowStart'] === undefined)
25
+ if (!('window_start' in value) || value['window_start'] === undefined)
26
26
  return false;
27
- if (!('windowEnd' in value) || value['windowEnd'] === undefined)
27
+ if (!('window_end' in value) || value['window_end'] === undefined)
28
28
  return false;
29
- if (!('intervalId' in value) || value['intervalId'] === undefined)
29
+ if (!('interval_id' in value) || value['interval_id'] === undefined)
30
30
  return false;
31
- if (!('expectedSampleCount' in value) || value['expectedSampleCount'] === undefined)
31
+ if (!('expected_sample_count' in value) || value['expected_sample_count'] === undefined)
32
32
  return false;
33
33
  if (!('vms' in value) || value['vms'] === undefined)
34
34
  return false;
35
- if (!('createdAt' in value) || value['createdAt'] === undefined)
35
+ if (!('created_at' in value) || value['created_at'] === undefined)
36
36
  return false;
37
37
  return true;
38
38
  }
@@ -46,13 +46,13 @@ export function RightsizingReportFromJSONTyped(json, ignoreDiscriminator) {
46
46
  return {
47
47
  'id': json['id'],
48
48
  'vcenter': json['vcenter'],
49
- 'clusterId': json['cluster_id'],
50
- 'windowStart': (new Date(json['window_start'])),
51
- 'windowEnd': (new Date(json['window_end'])),
52
- 'intervalId': json['interval_id'],
53
- 'expectedSampleCount': json['expected_sample_count'],
49
+ 'cluster_id': json['cluster_id'],
50
+ 'window_start': (new Date(json['window_start'])),
51
+ 'window_end': (new Date(json['window_end'])),
52
+ 'interval_id': json['interval_id'],
53
+ 'expected_sample_count': json['expected_sample_count'],
54
54
  'vms': (json['vms'].map(RightsizingVMReportFromJSON)),
55
- 'createdAt': (new Date(json['created_at'])),
55
+ 'created_at': (new Date(json['created_at'])),
56
56
  };
57
57
  }
58
58
  export function RightsizingReportToJSON(json) {
@@ -65,12 +65,12 @@ export function RightsizingReportToJSONTyped(value, ignoreDiscriminator = false)
65
65
  return {
66
66
  'id': value['id'],
67
67
  'vcenter': value['vcenter'],
68
- 'cluster_id': value['clusterId'],
69
- 'window_start': value['windowStart'].toISOString(),
70
- 'window_end': value['windowEnd'].toISOString(),
71
- 'interval_id': value['intervalId'],
72
- 'expected_sample_count': value['expectedSampleCount'],
68
+ 'cluster_id': value['cluster_id'],
69
+ 'window_start': value['window_start'].toISOString(),
70
+ 'window_end': value['window_end'].toISOString(),
71
+ 'interval_id': value['interval_id'],
72
+ 'expected_sample_count': value['expected_sample_count'],
73
73
  'vms': (value['vms'].map(RightsizingVMReportToJSON)),
74
- 'created_at': value['createdAt'].toISOString(),
74
+ 'created_at': value['created_at'].toISOString(),
75
75
  };
76
76
  }
@@ -32,37 +32,37 @@ export interface RightsizingReportSummary {
32
32
  * @type {string}
33
33
  * @memberof RightsizingReportSummary
34
34
  */
35
- clusterId: string;
35
+ cluster_id: string;
36
36
  /**
37
37
  *
38
38
  * @type {Date}
39
39
  * @memberof RightsizingReportSummary
40
40
  */
41
- windowStart: Date;
41
+ window_start: Date;
42
42
  /**
43
43
  *
44
44
  * @type {Date}
45
45
  * @memberof RightsizingReportSummary
46
46
  */
47
- windowEnd: Date;
47
+ window_end: Date;
48
48
  /**
49
49
  *
50
50
  * @type {number}
51
51
  * @memberof RightsizingReportSummary
52
52
  */
53
- intervalId: number;
53
+ interval_id: number;
54
54
  /**
55
55
  * Theoretical maximum samples for the window (lookback / interval)
56
56
  * @type {number}
57
57
  * @memberof RightsizingReportSummary
58
58
  */
59
- expectedSampleCount: number;
59
+ expected_sample_count: number;
60
60
  /**
61
61
  *
62
62
  * @type {Date}
63
63
  * @memberof RightsizingReportSummary
64
64
  */
65
- createdAt: Date;
65
+ created_at: Date;
66
66
  }
67
67
  /**
68
68
  * Check if a given object implements the RightsizingReportSummary interface.
@@ -19,17 +19,17 @@ export function instanceOfRightsizingReportSummary(value) {
19
19
  return false;
20
20
  if (!('vcenter' in value) || value['vcenter'] === undefined)
21
21
  return false;
22
- if (!('clusterId' in value) || value['clusterId'] === undefined)
22
+ if (!('cluster_id' in value) || value['cluster_id'] === undefined)
23
23
  return false;
24
- if (!('windowStart' in value) || value['windowStart'] === undefined)
24
+ if (!('window_start' in value) || value['window_start'] === undefined)
25
25
  return false;
26
- if (!('windowEnd' in value) || value['windowEnd'] === undefined)
26
+ if (!('window_end' in value) || value['window_end'] === undefined)
27
27
  return false;
28
- if (!('intervalId' in value) || value['intervalId'] === undefined)
28
+ if (!('interval_id' in value) || value['interval_id'] === undefined)
29
29
  return false;
30
- if (!('expectedSampleCount' in value) || value['expectedSampleCount'] === undefined)
30
+ if (!('expected_sample_count' in value) || value['expected_sample_count'] === undefined)
31
31
  return false;
32
- if (!('createdAt' in value) || value['createdAt'] === undefined)
32
+ if (!('created_at' in value) || value['created_at'] === undefined)
33
33
  return false;
34
34
  return true;
35
35
  }
@@ -43,12 +43,12 @@ export function RightsizingReportSummaryFromJSONTyped(json, ignoreDiscriminator)
43
43
  return {
44
44
  'id': json['id'],
45
45
  'vcenter': json['vcenter'],
46
- 'clusterId': json['cluster_id'],
47
- 'windowStart': (new Date(json['window_start'])),
48
- 'windowEnd': (new Date(json['window_end'])),
49
- 'intervalId': json['interval_id'],
50
- 'expectedSampleCount': json['expected_sample_count'],
51
- 'createdAt': (new Date(json['created_at'])),
46
+ 'cluster_id': json['cluster_id'],
47
+ 'window_start': (new Date(json['window_start'])),
48
+ 'window_end': (new Date(json['window_end'])),
49
+ 'interval_id': json['interval_id'],
50
+ 'expected_sample_count': json['expected_sample_count'],
51
+ 'created_at': (new Date(json['created_at'])),
52
52
  };
53
53
  }
54
54
  export function RightsizingReportSummaryToJSON(json) {
@@ -61,11 +61,11 @@ export function RightsizingReportSummaryToJSONTyped(value, ignoreDiscriminator =
61
61
  return {
62
62
  'id': value['id'],
63
63
  'vcenter': value['vcenter'],
64
- 'cluster_id': value['clusterId'],
65
- 'window_start': value['windowStart'].toISOString(),
66
- 'window_end': value['windowEnd'].toISOString(),
67
- 'interval_id': value['intervalId'],
68
- 'expected_sample_count': value['expectedSampleCount'],
69
- 'created_at': value['createdAt'].toISOString(),
64
+ 'cluster_id': value['cluster_id'],
65
+ 'window_start': value['window_start'].toISOString(),
66
+ 'window_end': value['window_end'].toISOString(),
67
+ 'interval_id': value['interval_id'],
68
+ 'expected_sample_count': value['expected_sample_count'],
69
+ 'created_at': value['created_at'].toISOString(),
70
70
  };
71
71
  }
@@ -9,8 +9,9 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import type { VcenterCredentials } from './VcenterCredentials.js';
12
13
  /**
13
- * Array of VirtualMachine id
14
+ * Start inspection request
14
15
  * @export
15
16
  * @interface StartInspectionRequest
16
17
  */
@@ -21,6 +22,12 @@ export interface StartInspectionRequest {
21
22
  * @memberof StartInspectionRequest
22
23
  */
23
24
  vmIds: Array<string>;
25
+ /**
26
+ *
27
+ * @type {VcenterCredentials}
28
+ * @memberof StartInspectionRequest
29
+ */
30
+ credentials: VcenterCredentials;
24
31
  }
25
32
  /**
26
33
  * Check if a given object implements the StartInspectionRequest interface.
@@ -11,12 +11,15 @@
11
11
  * https://openapi-generator.tech
12
12
  * Do not edit the class manually.
13
13
  */
14
+ import { VcenterCredentialsFromJSON, VcenterCredentialsToJSON, } from './VcenterCredentials.js';
14
15
  /**
15
16
  * Check if a given object implements the StartInspectionRequest interface.
16
17
  */
17
18
  export function instanceOfStartInspectionRequest(value) {
18
19
  if (!('vmIds' in value) || value['vmIds'] === undefined)
19
20
  return false;
21
+ if (!('credentials' in value) || value['credentials'] === undefined)
22
+ return false;
20
23
  return true;
21
24
  }
22
25
  export function StartInspectionRequestFromJSON(json) {
@@ -28,6 +31,7 @@ export function StartInspectionRequestFromJSONTyped(json, ignoreDiscriminator) {
28
31
  }
29
32
  return {
30
33
  'vmIds': json['vmIds'],
34
+ 'credentials': VcenterCredentialsFromJSON(json['credentials']),
31
35
  };
32
36
  }
33
37
  export function StartInspectionRequestToJSON(json) {
@@ -39,5 +43,6 @@ export function StartInspectionRequestToJSONTyped(value, ignoreDiscriminator = f
39
43
  }
40
44
  return {
41
45
  'vmIds': value['vmIds'],
46
+ 'credentials': VcenterCredentialsToJSON(value['credentials']),
42
47
  };
43
48
  }
@@ -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,43 @@
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
+ * Check if a given object implements the UpdateLabelVMsRequest interface.
16
+ */
17
+ export function instanceOfUpdateLabelVMsRequest(value) {
18
+ return true;
19
+ }
20
+ export function UpdateLabelVMsRequestFromJSON(json) {
21
+ return UpdateLabelVMsRequestFromJSONTyped(json, false);
22
+ }
23
+ export function UpdateLabelVMsRequestFromJSONTyped(json, ignoreDiscriminator) {
24
+ if (json == null) {
25
+ return json;
26
+ }
27
+ return {
28
+ 'add': json['add'] == null ? undefined : json['add'],
29
+ 'remove': json['remove'] == null ? undefined : json['remove'],
30
+ };
31
+ }
32
+ export function UpdateLabelVMsRequestToJSON(json) {
33
+ return UpdateLabelVMsRequestToJSONTyped(json, false);
34
+ }
35
+ export function UpdateLabelVMsRequestToJSONTyped(value, ignoreDiscriminator = false) {
36
+ if (value == null) {
37
+ return value;
38
+ }
39
+ return {
40
+ 'add': value['add'],
41
+ 'remove': value['remove'],
42
+ };
43
+ }
@@ -0,0 +1,50 @@
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
+ /**
44
+ * Check if a given object implements the VMFilterOptionsResponse interface.
45
+ */
46
+ export declare function instanceOfVMFilterOptionsResponse(value: object): value is VMFilterOptionsResponse;
47
+ export declare function VMFilterOptionsResponseFromJSON(json: any): VMFilterOptionsResponse;
48
+ export declare function VMFilterOptionsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): VMFilterOptionsResponse;
49
+ export declare function VMFilterOptionsResponseToJSON(json: any): VMFilterOptionsResponse;
50
+ export declare function VMFilterOptionsResponseToJSONTyped(value?: VMFilterOptionsResponse | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,55 @@
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
+ * Check if a given object implements the VMFilterOptionsResponse interface.
16
+ */
17
+ export function instanceOfVMFilterOptionsResponse(value) {
18
+ if (!('clusters' in value) || value['clusters'] === undefined)
19
+ return false;
20
+ if (!('datacenters' in value) || value['datacenters'] === undefined)
21
+ return false;
22
+ if (!('concernLabels' in value) || value['concernLabels'] === undefined)
23
+ return false;
24
+ if (!('concernCategories' in value) || value['concernCategories'] === undefined)
25
+ return false;
26
+ return true;
27
+ }
28
+ export function VMFilterOptionsResponseFromJSON(json) {
29
+ return VMFilterOptionsResponseFromJSONTyped(json, false);
30
+ }
31
+ export function VMFilterOptionsResponseFromJSONTyped(json, ignoreDiscriminator) {
32
+ if (json == null) {
33
+ return json;
34
+ }
35
+ return {
36
+ 'clusters': json['clusters'],
37
+ 'datacenters': json['datacenters'],
38
+ 'concernLabels': json['concernLabels'],
39
+ 'concernCategories': json['concernCategories'],
40
+ };
41
+ }
42
+ export function VMFilterOptionsResponseToJSON(json) {
43
+ return VMFilterOptionsResponseToJSONTyped(json, false);
44
+ }
45
+ export function VMFilterOptionsResponseToJSONTyped(value, ignoreDiscriminator = false) {
46
+ if (value == null) {
47
+ return value;
48
+ }
49
+ return {
50
+ 'clusters': value['clusters'],
51
+ 'datacenters': value['datacenters'],
52
+ 'concernLabels': value['concernLabels'],
53
+ 'concernCategories': value['concernCategories'],
54
+ };
55
+ }
@@ -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,47 @@
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
+ * Check if a given object implements the VMLabelsResponse interface.
16
+ */
17
+ export function instanceOfVMLabelsResponse(value) {
18
+ if (!('labels' in value) || value['labels'] === undefined)
19
+ return false;
20
+ if (!('counts' in value) || value['counts'] === undefined)
21
+ return false;
22
+ return true;
23
+ }
24
+ export function VMLabelsResponseFromJSON(json) {
25
+ return VMLabelsResponseFromJSONTyped(json, false);
26
+ }
27
+ export function VMLabelsResponseFromJSONTyped(json, ignoreDiscriminator) {
28
+ if (json == null) {
29
+ return json;
30
+ }
31
+ return {
32
+ 'labels': json['labels'],
33
+ 'counts': json['counts'],
34
+ };
35
+ }
36
+ export function VMLabelsResponseToJSON(json) {
37
+ return VMLabelsResponseToJSONTyped(json, false);
38
+ }
39
+ export function VMLabelsResponseToJSONTyped(value, ignoreDiscriminator = false) {
40
+ if (value == null) {
41
+ return value;
42
+ }
43
+ return {
44
+ 'labels': value['labels'],
45
+ 'counts': value['counts'],
46
+ };
47
+ }