BareMetalCluster.fromJson constructor
BareMetalCluster.fromJson(
- Map json_
Implementation
BareMetalCluster.fromJson(core.Map json_)
: this(
adminClusterMembership: json_.containsKey('adminClusterMembership')
? json_['adminClusterMembership'] as core.String
: null,
adminClusterName: json_.containsKey('adminClusterName')
? json_['adminClusterName'] as core.String
: null,
annotations: json_.containsKey('annotations')
? (json_['annotations'] as core.Map<core.String, core.dynamic>)
.map(
(key, value) => core.MapEntry(
key,
value as core.String,
),
)
: null,
bareMetalVersion: json_.containsKey('bareMetalVersion')
? json_['bareMetalVersion'] as core.String
: null,
binaryAuthorization: json_.containsKey('binaryAuthorization')
? BinaryAuthorization.fromJson(json_['binaryAuthorization']
as core.Map<core.String, core.dynamic>)
: null,
clusterOperations: json_.containsKey('clusterOperations')
? BareMetalClusterOperationsConfig.fromJson(
json_['clusterOperations']
as core.Map<core.String, core.dynamic>)
: null,
controlPlane: json_.containsKey('controlPlane')
? BareMetalControlPlaneConfig.fromJson(
json_['controlPlane'] as core.Map<core.String, core.dynamic>)
: null,
createTime: json_.containsKey('createTime')
? json_['createTime'] as core.String
: null,
deleteTime: json_.containsKey('deleteTime')
? json_['deleteTime'] as core.String
: null,
description: json_.containsKey('description')
? json_['description'] as core.String
: null,
endpoint: json_.containsKey('endpoint')
? json_['endpoint'] as core.String
: null,
etag: json_.containsKey('etag') ? json_['etag'] as core.String : null,
fleet: json_.containsKey('fleet')
? Fleet.fromJson(
json_['fleet'] as core.Map<core.String, core.dynamic>)
: null,
loadBalancer: json_.containsKey('loadBalancer')
? BareMetalLoadBalancerConfig.fromJson(
json_['loadBalancer'] as core.Map<core.String, core.dynamic>)
: null,
localName: json_.containsKey('localName')
? json_['localName'] as core.String
: null,
maintenanceConfig: json_.containsKey('maintenanceConfig')
? BareMetalMaintenanceConfig.fromJson(json_['maintenanceConfig']
as core.Map<core.String, core.dynamic>)
: null,
maintenanceStatus: json_.containsKey('maintenanceStatus')
? BareMetalMaintenanceStatus.fromJson(json_['maintenanceStatus']
as core.Map<core.String, core.dynamic>)
: null,
name: json_.containsKey('name') ? json_['name'] as core.String : null,
networkConfig: json_.containsKey('networkConfig')
? BareMetalNetworkConfig.fromJson(
json_['networkConfig'] as core.Map<core.String, core.dynamic>)
: null,
nodeAccessConfig: json_.containsKey('nodeAccessConfig')
? BareMetalNodeAccessConfig.fromJson(json_['nodeAccessConfig']
as core.Map<core.String, core.dynamic>)
: null,
nodeConfig: json_.containsKey('nodeConfig')
? BareMetalWorkloadNodeConfig.fromJson(
json_['nodeConfig'] as core.Map<core.String, core.dynamic>)
: null,
osEnvironmentConfig: json_.containsKey('osEnvironmentConfig')
? BareMetalOsEnvironmentConfig.fromJson(
json_['osEnvironmentConfig']
as core.Map<core.String, core.dynamic>)
: null,
proxy: json_.containsKey('proxy')
? BareMetalProxyConfig.fromJson(
json_['proxy'] as core.Map<core.String, core.dynamic>)
: null,
reconciling: json_.containsKey('reconciling')
? json_['reconciling'] as core.bool
: null,
securityConfig: json_.containsKey('securityConfig')
? BareMetalSecurityConfig.fromJson(json_['securityConfig']
as core.Map<core.String, core.dynamic>)
: null,
state:
json_.containsKey('state') ? json_['state'] as core.String : null,
status: json_.containsKey('status')
? ResourceStatus.fromJson(
json_['status'] as core.Map<core.String, core.dynamic>)
: null,
storage: json_.containsKey('storage')
? BareMetalStorageConfig.fromJson(
json_['storage'] as core.Map<core.String, core.dynamic>)
: null,
uid: json_.containsKey('uid') ? json_['uid'] as core.String : null,
updateTime: json_.containsKey('updateTime')
? json_['updateTime'] as core.String
: null,
upgradePolicy: json_.containsKey('upgradePolicy')
? BareMetalClusterUpgradePolicy.fromJson(
json_['upgradePolicy'] as core.Map<core.String, core.dynamic>)
: null,
validationCheck: json_.containsKey('validationCheck')
? ValidationCheck.fromJson(json_['validationCheck']
as core.Map<core.String, core.dynamic>)
: null,
);