@migration-planner-ui/api-client 0.0.10 → 0.0.11

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.
@@ -46,15 +46,15 @@ export function InfraFromJSONTyped(json, ignoreDiscriminator) {
46
46
  return json;
47
47
  }
48
48
  return {
49
- 'totalHosts': json['totalHosts'],
50
- 'totalDatacenters': json['totalDatacenters'],
51
- 'totalClusters': json['totalClusters'],
52
- 'clustersPerDatacenter': json['clustersPerDatacenter'],
53
- 'hosts': (json['hosts'].map(HostFromJSON)),
54
- 'hostsPerCluster': json['hostsPerCluster'],
55
- 'hostPowerStates': json['hostPowerStates'],
56
- 'networks': (json['networks'].map(NetworkFromJSON)),
57
- 'datastores': (json['datastores'].map(DatastoreFromJSON)),
49
+ 'totalHosts': json['totalHosts'] || 0,
50
+ 'totalDatacenters': json['totalDatacenters'] || 0,
51
+ 'totalClusters': json['totalClusters'] || 0,
52
+ 'clustersPerDatacenter': json['clustersPerDatacenter'] || [],
53
+ 'hosts': (json['hosts'] || []).map(HostFromJSON),
54
+ 'hostsPerCluster': json['hostsPerCluster'] || [],
55
+ 'hostPowerStates': json['hostPowerStates'] || {},
56
+ 'networks': (json['networks'] || []).map(NetworkFromJSON),
57
+ 'datastores': (json['datastores'] || []).map(DatastoreFromJSON),
58
58
  };
59
59
  }
60
60
  export function InfraToJSON(value) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@migration-planner-ui/api-client",
3
- "version": "0.0.10",
3
+ "version": "0.0.11",
4
4
  "description": "OpenAPI client for the Migration Planner API",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -120,15 +120,15 @@ export function InfraFromJSONTyped(json: any, ignoreDiscriminator: boolean): Inf
120
120
  }
121
121
  return {
122
122
 
123
- 'totalHosts': json['totalHosts'],
124
- 'totalDatacenters': json['totalDatacenters'],
125
- 'totalClusters': json['totalClusters'],
126
- 'clustersPerDatacenter': json['clustersPerDatacenter'],
127
- 'hosts': ((json['hosts'] as Array<any>).map(HostFromJSON)),
128
- 'hostsPerCluster': json['hostsPerCluster'],
129
- 'hostPowerStates': json['hostPowerStates'],
130
- 'networks': ((json['networks'] as Array<any>).map(NetworkFromJSON)),
131
- 'datastores': ((json['datastores'] as Array<any>).map(DatastoreFromJSON)),
123
+ 'totalHosts': json['totalHosts'] || 0,
124
+ 'totalDatacenters': json['totalDatacenters'] || 0,
125
+ 'totalClusters': json['totalClusters'] || 0,
126
+ 'clustersPerDatacenter': json['clustersPerDatacenter'] || [],
127
+ 'hosts': ((json['hosts'] as Array<any>) || []).map(HostFromJSON),
128
+ 'hostsPerCluster': json['hostsPerCluster'] || [],
129
+ 'hostPowerStates': json['hostPowerStates'] || {},
130
+ 'networks': ((json['networks'] as Array<any>) || []).map(NetworkFromJSON),
131
+ 'datastores': ((json['datastores'] as Array<any>) || []).map(DatastoreFromJSON),
132
132
  };
133
133
  }
134
134