@openshift-migration-advisor/agent-sdk 0.20.2 → 0.20.3

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.
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # @openshift-migration-advisor/agent-sdk@0.20.2
1
+ # @openshift-migration-advisor/agent-sdk@0.20.3
2
2
 
3
3
  A TypeScript SDK client for the raw.githubusercontent.com API.
4
4
 
@@ -201,7 +201,7 @@ and is automatically generated by the
201
201
  [OpenAPI Generator](https://openapi-generator.tech) project:
202
202
 
203
203
  - API version: `v1`
204
- - Package version: `0.20.2`
204
+ - Package version: `0.20.3`
205
205
  - Generator version: `7.25.0-SNAPSHOT`
206
206
  - Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
207
207
 
@@ -57,7 +57,7 @@ export function BenchmarkRunFromJSONTyped(json, ignoreDiscriminator) {
57
57
  'throughputMbps': json['throughputMbps'],
58
58
  'method': json['method'] == null ? undefined : json['method'],
59
59
  'error': json['error'] == null ? undefined : json['error'],
60
- 'createdAt': (new Date(json['createdAt'])),
60
+ 'createdAt': (json['createdAt'] == null ? json['createdAt'] : new Date(json['createdAt'])),
61
61
  };
62
62
  }
63
63
  export function BenchmarkRunToJSON(json) {
@@ -80,6 +80,6 @@ export function BenchmarkRunToJSONTyped(value, ignoreDiscriminator = false) {
80
80
  'throughputMbps': value['throughputMbps'],
81
81
  'method': value['method'],
82
82
  'error': value['error'],
83
- 'createdAt': value['createdAt'].toISOString(),
83
+ 'createdAt': value['createdAt'] == null ? value['createdAt'] : value['createdAt'].toISOString(),
84
84
  };
85
85
  }
@@ -34,6 +34,10 @@ export interface Inventory {
34
34
  *
35
35
  */
36
36
  vcenter?: InventoryData;
37
+ /**
38
+ * Timestamp when the inventory data was created or collected
39
+ */
40
+ created_at?: Date;
37
41
  }
38
42
  /**
39
43
  * Check if a given object implements the Inventory interface.
@@ -35,6 +35,7 @@ export function InventoryFromJSONTyped(json, ignoreDiscriminator) {
35
35
  'vcenter_version': json['vcenter_version'] == null ? undefined : json['vcenter_version'],
36
36
  'clusters': (mapValues(json['clusters'], InventoryDataFromJSON)),
37
37
  'vcenter': json['vcenter'] == null ? undefined : InventoryDataFromJSON(json['vcenter']),
38
+ 'created_at': json['created_at'] == null ? undefined : (new Date(json['created_at'])),
38
39
  };
39
40
  }
40
41
  export function InventoryToJSON(json) {
@@ -49,5 +50,6 @@ export function InventoryToJSONTyped(value, ignoreDiscriminator = false) {
49
50
  'vcenter_version': value['vcenter_version'],
50
51
  'clusters': (mapValues(value['clusters'], InventoryDataToJSON)),
51
52
  'vcenter': InventoryDataToJSON(value['vcenter']),
53
+ 'created_at': value['created_at'] == null ? value['created_at'] : value['created_at'].toISOString(),
52
54
  };
53
55
  }
@@ -47,12 +47,12 @@ export function RightsizingReportFromJSONTyped(json, ignoreDiscriminator) {
47
47
  'id': json['id'],
48
48
  'vcenter': json['vcenter'],
49
49
  'cluster_id': json['cluster_id'],
50
- 'window_start': (new Date(json['window_start'])),
51
- 'window_end': (new Date(json['window_end'])),
50
+ 'window_start': (json['window_start'] == null ? json['window_start'] : new Date(json['window_start'])),
51
+ 'window_end': (json['window_end'] == null ? json['window_end'] : new Date(json['window_end'])),
52
52
  'interval_id': json['interval_id'],
53
53
  'expected_sample_count': json['expected_sample_count'],
54
54
  'vms': (json['vms'].map(RightsizingVMReportFromJSON)),
55
- 'created_at': (new Date(json['created_at'])),
55
+ 'created_at': (json['created_at'] == null ? json['created_at'] : new Date(json['created_at'])),
56
56
  };
57
57
  }
58
58
  export function RightsizingReportToJSON(json) {
@@ -66,11 +66,11 @@ export function RightsizingReportToJSONTyped(value, ignoreDiscriminator = false)
66
66
  'id': value['id'],
67
67
  'vcenter': value['vcenter'],
68
68
  'cluster_id': value['cluster_id'],
69
- 'window_start': value['window_start'].toISOString(),
70
- 'window_end': value['window_end'].toISOString(),
69
+ 'window_start': value['window_start'] == null ? value['window_start'] : value['window_start'].toISOString(),
70
+ 'window_end': value['window_end'] == null ? value['window_end'] : value['window_end'].toISOString(),
71
71
  'interval_id': value['interval_id'],
72
72
  'expected_sample_count': value['expected_sample_count'],
73
73
  'vms': (value['vms'].map(RightsizingVMReportToJSON)),
74
- 'created_at': value['created_at'].toISOString(),
74
+ 'created_at': value['created_at'] == null ? value['created_at'] : value['created_at'].toISOString(),
75
75
  };
76
76
  }
@@ -44,11 +44,11 @@ export function RightsizingReportSummaryFromJSONTyped(json, ignoreDiscriminator)
44
44
  'id': json['id'],
45
45
  'vcenter': json['vcenter'],
46
46
  'cluster_id': json['cluster_id'],
47
- 'window_start': (new Date(json['window_start'])),
48
- 'window_end': (new Date(json['window_end'])),
47
+ 'window_start': (json['window_start'] == null ? json['window_start'] : new Date(json['window_start'])),
48
+ 'window_end': (json['window_end'] == null ? json['window_end'] : new Date(json['window_end'])),
49
49
  'interval_id': json['interval_id'],
50
50
  'expected_sample_count': json['expected_sample_count'],
51
- 'created_at': (new Date(json['created_at'])),
51
+ 'created_at': (json['created_at'] == null ? json['created_at'] : new Date(json['created_at'])),
52
52
  };
53
53
  }
54
54
  export function RightsizingReportSummaryToJSON(json) {
@@ -62,10 +62,10 @@ export function RightsizingReportSummaryToJSONTyped(value, ignoreDiscriminator =
62
62
  'id': value['id'],
63
63
  'vcenter': value['vcenter'],
64
64
  'cluster_id': value['cluster_id'],
65
- 'window_start': value['window_start'].toISOString(),
66
- 'window_end': value['window_end'].toISOString(),
65
+ 'window_start': value['window_start'] == null ? value['window_start'] : value['window_start'].toISOString(),
66
+ 'window_end': value['window_end'] == null ? value['window_end'] : value['window_end'].toISOString(),
67
67
  'interval_id': value['interval_id'],
68
68
  'expected_sample_count': value['expected_sample_count'],
69
- 'created_at': value['created_at'].toISOString(),
69
+ 'created_at': value['created_at'] == null ? value['created_at'] : value['created_at'].toISOString(),
70
70
  };
71
71
  }
@@ -64,7 +64,7 @@ function BenchmarkRunFromJSONTyped(json, ignoreDiscriminator) {
64
64
  'throughputMbps': json['throughputMbps'],
65
65
  'method': json['method'] == null ? undefined : json['method'],
66
66
  'error': json['error'] == null ? undefined : json['error'],
67
- 'createdAt': (new Date(json['createdAt'])),
67
+ 'createdAt': (json['createdAt'] == null ? json['createdAt'] : new Date(json['createdAt'])),
68
68
  };
69
69
  }
70
70
  function BenchmarkRunToJSON(json) {
@@ -87,6 +87,6 @@ function BenchmarkRunToJSONTyped(value, ignoreDiscriminator = false) {
87
87
  'throughputMbps': value['throughputMbps'],
88
88
  'method': value['method'],
89
89
  'error': value['error'],
90
- 'createdAt': value['createdAt'].toISOString(),
90
+ 'createdAt': value['createdAt'] == null ? value['createdAt'] : value['createdAt'].toISOString(),
91
91
  };
92
92
  }
@@ -34,6 +34,10 @@ export interface Inventory {
34
34
  *
35
35
  */
36
36
  vcenter?: InventoryData;
37
+ /**
38
+ * Timestamp when the inventory data was created or collected
39
+ */
40
+ created_at?: Date;
37
41
  }
38
42
  /**
39
43
  * Check if a given object implements the Inventory interface.
@@ -42,6 +42,7 @@ function InventoryFromJSONTyped(json, ignoreDiscriminator) {
42
42
  'vcenter_version': json['vcenter_version'] == null ? undefined : json['vcenter_version'],
43
43
  'clusters': ((0, runtime_js_1.mapValues)(json['clusters'], InventoryData_js_1.InventoryDataFromJSON)),
44
44
  'vcenter': json['vcenter'] == null ? undefined : (0, InventoryData_js_1.InventoryDataFromJSON)(json['vcenter']),
45
+ 'created_at': json['created_at'] == null ? undefined : (new Date(json['created_at'])),
45
46
  };
46
47
  }
47
48
  function InventoryToJSON(json) {
@@ -56,5 +57,6 @@ function InventoryToJSONTyped(value, ignoreDiscriminator = false) {
56
57
  'vcenter_version': value['vcenter_version'],
57
58
  'clusters': ((0, runtime_js_1.mapValues)(value['clusters'], InventoryData_js_1.InventoryDataToJSON)),
58
59
  'vcenter': (0, InventoryData_js_1.InventoryDataToJSON)(value['vcenter']),
60
+ 'created_at': value['created_at'] == null ? value['created_at'] : value['created_at'].toISOString(),
59
61
  };
60
62
  }
@@ -54,12 +54,12 @@ function RightsizingReportFromJSONTyped(json, ignoreDiscriminator) {
54
54
  'id': json['id'],
55
55
  'vcenter': json['vcenter'],
56
56
  'cluster_id': json['cluster_id'],
57
- 'window_start': (new Date(json['window_start'])),
58
- 'window_end': (new Date(json['window_end'])),
57
+ 'window_start': (json['window_start'] == null ? json['window_start'] : new Date(json['window_start'])),
58
+ 'window_end': (json['window_end'] == null ? json['window_end'] : new Date(json['window_end'])),
59
59
  'interval_id': json['interval_id'],
60
60
  'expected_sample_count': json['expected_sample_count'],
61
61
  'vms': (json['vms'].map(RightsizingVMReport_js_1.RightsizingVMReportFromJSON)),
62
- 'created_at': (new Date(json['created_at'])),
62
+ 'created_at': (json['created_at'] == null ? json['created_at'] : new Date(json['created_at'])),
63
63
  };
64
64
  }
65
65
  function RightsizingReportToJSON(json) {
@@ -73,11 +73,11 @@ function RightsizingReportToJSONTyped(value, ignoreDiscriminator = false) {
73
73
  'id': value['id'],
74
74
  'vcenter': value['vcenter'],
75
75
  'cluster_id': value['cluster_id'],
76
- 'window_start': value['window_start'].toISOString(),
77
- 'window_end': value['window_end'].toISOString(),
76
+ 'window_start': value['window_start'] == null ? value['window_start'] : value['window_start'].toISOString(),
77
+ 'window_end': value['window_end'] == null ? value['window_end'] : value['window_end'].toISOString(),
78
78
  'interval_id': value['interval_id'],
79
79
  'expected_sample_count': value['expected_sample_count'],
80
80
  'vms': (value['vms'].map(RightsizingVMReport_js_1.RightsizingVMReportToJSON)),
81
- 'created_at': value['created_at'].toISOString(),
81
+ 'created_at': value['created_at'] == null ? value['created_at'] : value['created_at'].toISOString(),
82
82
  };
83
83
  }
@@ -51,11 +51,11 @@ function RightsizingReportSummaryFromJSONTyped(json, ignoreDiscriminator) {
51
51
  'id': json['id'],
52
52
  'vcenter': json['vcenter'],
53
53
  'cluster_id': json['cluster_id'],
54
- 'window_start': (new Date(json['window_start'])),
55
- 'window_end': (new Date(json['window_end'])),
54
+ 'window_start': (json['window_start'] == null ? json['window_start'] : new Date(json['window_start'])),
55
+ 'window_end': (json['window_end'] == null ? json['window_end'] : new Date(json['window_end'])),
56
56
  'interval_id': json['interval_id'],
57
57
  'expected_sample_count': json['expected_sample_count'],
58
- 'created_at': (new Date(json['created_at'])),
58
+ 'created_at': (json['created_at'] == null ? json['created_at'] : new Date(json['created_at'])),
59
59
  };
60
60
  }
61
61
  function RightsizingReportSummaryToJSON(json) {
@@ -69,10 +69,10 @@ function RightsizingReportSummaryToJSONTyped(value, ignoreDiscriminator = false)
69
69
  'id': value['id'],
70
70
  'vcenter': value['vcenter'],
71
71
  'cluster_id': value['cluster_id'],
72
- 'window_start': value['window_start'].toISOString(),
73
- 'window_end': value['window_end'].toISOString(),
72
+ 'window_start': value['window_start'] == null ? value['window_start'] : value['window_start'].toISOString(),
73
+ 'window_end': value['window_end'] == null ? value['window_end'] : value['window_end'].toISOString(),
74
74
  'interval_id': value['interval_id'],
75
75
  'expected_sample_count': value['expected_sample_count'],
76
- 'created_at': value['created_at'].toISOString(),
76
+ 'created_at': value['created_at'] == null ? value['created_at'] : value['created_at'].toISOString(),
77
77
  };
78
78
  }
@@ -10,6 +10,7 @@ Name | Type
10
10
  `vcenter_version` | string
11
11
  `clusters` | [{ [key: string]: InventoryData; }](InventoryData.md)
12
12
  `vcenter` | [InventoryData](InventoryData.md)
13
+ `created_at` | Date
13
14
  `agentId` | string
14
15
  `inventory` | [Inventory](Inventory.md)
15
16
 
@@ -24,6 +25,7 @@ const example = {
24
25
  "vcenter_version": null,
25
26
  "clusters": null,
26
27
  "vcenter": null,
28
+ "created_at": null,
27
29
  "agentId": null,
28
30
  "inventory": null,
29
31
  } satisfies GetInventory200Response
package/docs/Inventory.md CHANGED
@@ -10,6 +10,7 @@ Name | Type
10
10
  `vcenter_version` | string
11
11
  `clusters` | [{ [key: string]: InventoryData; }](InventoryData.md)
12
12
  `vcenter` | [InventoryData](InventoryData.md)
13
+ `created_at` | Date
13
14
 
14
15
  ## Example
15
16
 
@@ -22,6 +23,7 @@ const example = {
22
23
  "vcenter_version": null,
23
24
  "clusters": null,
24
25
  "vcenter": null,
26
+ "created_at": null,
25
27
  } satisfies Inventory
26
28
 
27
29
  console.log(example)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openshift-migration-advisor/agent-sdk",
3
- "version": "0.20.2",
3
+ "version": "0.20.3",
4
4
  "description": "OpenAPI client for @openshift-migration-advisor/agent-sdk",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -112,7 +112,7 @@ export function BenchmarkRunFromJSONTyped(json: any, ignoreDiscriminator: boolea
112
112
  'throughputMbps': json['throughputMbps'],
113
113
  'method': json['method'] == null ? undefined : json['method'],
114
114
  'error': json['error'] == null ? undefined : json['error'],
115
- 'createdAt': (new Date(json['createdAt'])),
115
+ 'createdAt': (json['createdAt'] == null ? json['createdAt'] : new Date(json['createdAt'])),
116
116
  };
117
117
  }
118
118
 
@@ -139,7 +139,7 @@ export function BenchmarkRunToJSONTyped(value?: BenchmarkRun | null, ignoreDiscr
139
139
  'throughputMbps': value['throughputMbps'],
140
140
  'method': value['method'],
141
141
  'error': value['error'],
142
- 'createdAt': value['createdAt'].toISOString(),
142
+ 'createdAt': value['createdAt'] == null ? value['createdAt'] : value['createdAt'].toISOString(),
143
143
  };
144
144
  }
145
145
 
@@ -43,6 +43,10 @@ export interface Inventory {
43
43
  *
44
44
  */
45
45
  vcenter?: InventoryData;
46
+ /**
47
+ * Timestamp when the inventory data was created or collected
48
+ */
49
+ created_at?: Date;
46
50
  }
47
51
 
48
52
  /**
@@ -68,6 +72,7 @@ export function InventoryFromJSONTyped(json: any, ignoreDiscriminator: boolean):
68
72
  'vcenter_version': json['vcenter_version'] == null ? undefined : json['vcenter_version'],
69
73
  'clusters': (mapValues(json['clusters'], InventoryDataFromJSON)),
70
74
  'vcenter': json['vcenter'] == null ? undefined : InventoryDataFromJSON(json['vcenter']),
75
+ 'created_at': json['created_at'] == null ? undefined : (new Date(json['created_at'])),
71
76
  };
72
77
  }
73
78
 
@@ -86,6 +91,7 @@ export function InventoryToJSONTyped(value?: Inventory | null, ignoreDiscriminat
86
91
  'vcenter_version': value['vcenter_version'],
87
92
  'clusters': (mapValues(value['clusters'], InventoryDataToJSON)),
88
93
  'vcenter': InventoryDataToJSON(value['vcenter']),
94
+ 'created_at': value['created_at'] == null ? value['created_at'] : value['created_at'].toISOString(),
89
95
  };
90
96
  }
91
97
 
@@ -94,12 +94,12 @@ export function RightsizingReportFromJSONTyped(json: any, ignoreDiscriminator: b
94
94
  'id': json['id'],
95
95
  'vcenter': json['vcenter'],
96
96
  'cluster_id': json['cluster_id'],
97
- 'window_start': (new Date(json['window_start'])),
98
- 'window_end': (new Date(json['window_end'])),
97
+ 'window_start': (json['window_start'] == null ? json['window_start'] : new Date(json['window_start'])),
98
+ 'window_end': (json['window_end'] == null ? json['window_end'] : new Date(json['window_end'])),
99
99
  'interval_id': json['interval_id'],
100
100
  'expected_sample_count': json['expected_sample_count'],
101
101
  'vms': ((json['vms'] as Array<any>).map(RightsizingVMReportFromJSON)),
102
- 'created_at': (new Date(json['created_at'])),
102
+ 'created_at': (json['created_at'] == null ? json['created_at'] : new Date(json['created_at'])),
103
103
  };
104
104
  }
105
105
 
@@ -117,12 +117,12 @@ export function RightsizingReportToJSONTyped(value?: RightsizingReport | null, i
117
117
  'id': value['id'],
118
118
  'vcenter': value['vcenter'],
119
119
  'cluster_id': value['cluster_id'],
120
- 'window_start': value['window_start'].toISOString(),
121
- 'window_end': value['window_end'].toISOString(),
120
+ 'window_start': value['window_start'] == null ? value['window_start'] : value['window_start'].toISOString(),
121
+ 'window_end': value['window_end'] == null ? value['window_end'] : value['window_end'].toISOString(),
122
122
  'interval_id': value['interval_id'],
123
123
  'expected_sample_count': value['expected_sample_count'],
124
124
  'vms': ((value['vms'] as Array<any>).map(RightsizingVMReportToJSON)),
125
- 'created_at': value['created_at'].toISOString(),
125
+ 'created_at': value['created_at'] == null ? value['created_at'] : value['created_at'].toISOString(),
126
126
  };
127
127
  }
128
128
 
@@ -81,11 +81,11 @@ export function RightsizingReportSummaryFromJSONTyped(json: any, ignoreDiscrimin
81
81
  'id': json['id'],
82
82
  'vcenter': json['vcenter'],
83
83
  'cluster_id': json['cluster_id'],
84
- 'window_start': (new Date(json['window_start'])),
85
- 'window_end': (new Date(json['window_end'])),
84
+ 'window_start': (json['window_start'] == null ? json['window_start'] : new Date(json['window_start'])),
85
+ 'window_end': (json['window_end'] == null ? json['window_end'] : new Date(json['window_end'])),
86
86
  'interval_id': json['interval_id'],
87
87
  'expected_sample_count': json['expected_sample_count'],
88
- 'created_at': (new Date(json['created_at'])),
88
+ 'created_at': (json['created_at'] == null ? json['created_at'] : new Date(json['created_at'])),
89
89
  };
90
90
  }
91
91
 
@@ -103,11 +103,11 @@ export function RightsizingReportSummaryToJSONTyped(value?: RightsizingReportSum
103
103
  'id': value['id'],
104
104
  'vcenter': value['vcenter'],
105
105
  'cluster_id': value['cluster_id'],
106
- 'window_start': value['window_start'].toISOString(),
107
- 'window_end': value['window_end'].toISOString(),
106
+ 'window_start': value['window_start'] == null ? value['window_start'] : value['window_start'].toISOString(),
107
+ 'window_end': value['window_end'] == null ? value['window_end'] : value['window_end'].toISOString(),
108
108
  'interval_id': value['interval_id'],
109
109
  'expected_sample_count': value['expected_sample_count'],
110
- 'created_at': value['created_at'].toISOString(),
110
+ 'created_at': value['created_at'] == null ? value['created_at'] : value['created_at'].toISOString(),
111
111
  };
112
112
  }
113
113