ClusterConfig.fromJson constructor
ClusterConfig.fromJson(
- Map json_
Implementation
ClusterConfig.fromJson(core.Map json_)
: this(
autoscalingConfig: json_.containsKey('autoscalingConfig')
? AutoscalingConfig.fromJson(json_['autoscalingConfig']
as core.Map<core.String, core.dynamic>)
: null,
auxiliaryNodeGroups: json_.containsKey('auxiliaryNodeGroups')
? (json_['auxiliaryNodeGroups'] as core.List)
.map((value) => AuxiliaryNodeGroup.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
configBucket: json_.containsKey('configBucket')
? json_['configBucket'] as core.String
: null,
dataprocMetricConfig: json_.containsKey('dataprocMetricConfig')
? DataprocMetricConfig.fromJson(json_['dataprocMetricConfig']
as core.Map<core.String, core.dynamic>)
: null,
encryptionConfig: json_.containsKey('encryptionConfig')
? EncryptionConfig.fromJson(json_['encryptionConfig']
as core.Map<core.String, core.dynamic>)
: null,
endpointConfig: json_.containsKey('endpointConfig')
? EndpointConfig.fromJson(json_['endpointConfig']
as core.Map<core.String, core.dynamic>)
: null,
gceClusterConfig: json_.containsKey('gceClusterConfig')
? GceClusterConfig.fromJson(json_['gceClusterConfig']
as core.Map<core.String, core.dynamic>)
: null,
gkeClusterConfig: json_.containsKey('gkeClusterConfig')
? GkeClusterConfig.fromJson(json_['gkeClusterConfig']
as core.Map<core.String, core.dynamic>)
: null,
initializationActions: json_.containsKey('initializationActions')
? (json_['initializationActions'] as core.List)
.map((value) => NodeInitializationAction.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
lifecycleConfig: json_.containsKey('lifecycleConfig')
? LifecycleConfig.fromJson(json_['lifecycleConfig']
as core.Map<core.String, core.dynamic>)
: null,
masterConfig: json_.containsKey('masterConfig')
? InstanceGroupConfig.fromJson(
json_['masterConfig'] as core.Map<core.String, core.dynamic>)
: null,
metastoreConfig: json_.containsKey('metastoreConfig')
? MetastoreConfig.fromJson(json_['metastoreConfig']
as core.Map<core.String, core.dynamic>)
: null,
secondaryWorkerConfig: json_.containsKey('secondaryWorkerConfig')
? InstanceGroupConfig.fromJson(json_['secondaryWorkerConfig']
as core.Map<core.String, core.dynamic>)
: null,
securityConfig: json_.containsKey('securityConfig')
? SecurityConfig.fromJson(json_['securityConfig']
as core.Map<core.String, core.dynamic>)
: null,
softwareConfig: json_.containsKey('softwareConfig')
? SoftwareConfig.fromJson(json_['softwareConfig']
as core.Map<core.String, core.dynamic>)
: null,
tempBucket: json_.containsKey('tempBucket')
? json_['tempBucket'] as core.String
: null,
workerConfig: json_.containsKey('workerConfig')
? InstanceGroupConfig.fromJson(
json_['workerConfig'] as core.Map<core.String, core.dynamic>)
: null,
);