Cluster.fromJson constructor
Cluster.fromJson(
- Map json_
Implementation
Cluster.fromJson(core.Map json_)
: this(
addonsConfig: json_.containsKey('addonsConfig')
? AddonsConfig.fromJson(
json_['addonsConfig'] as core.Map<core.String, core.dynamic>)
: null,
authenticatorGroupsConfig:
json_.containsKey('authenticatorGroupsConfig')
? AuthenticatorGroupsConfig.fromJson(
json_['authenticatorGroupsConfig']
as core.Map<core.String, core.dynamic>)
: null,
autopilot: json_.containsKey('autopilot')
? Autopilot.fromJson(
json_['autopilot'] as core.Map<core.String, core.dynamic>)
: null,
autoscaling: json_.containsKey('autoscaling')
? ClusterAutoscaling.fromJson(
json_['autoscaling'] as core.Map<core.String, core.dynamic>)
: null,
binaryAuthorization: json_.containsKey('binaryAuthorization')
? BinaryAuthorization.fromJson(json_['binaryAuthorization']
as core.Map<core.String, core.dynamic>)
: null,
clusterIpv4Cidr: json_.containsKey('clusterIpv4Cidr')
? json_['clusterIpv4Cidr'] as core.String
: null,
conditions: json_.containsKey('conditions')
? (json_['conditions'] as core.List)
.map((value) => StatusCondition.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
confidentialNodes: json_.containsKey('confidentialNodes')
? ConfidentialNodes.fromJson(json_['confidentialNodes']
as core.Map<core.String, core.dynamic>)
: null,
costManagementConfig: json_.containsKey('costManagementConfig')
? CostManagementConfig.fromJson(json_['costManagementConfig']
as core.Map<core.String, core.dynamic>)
: null,
createTime: json_.containsKey('createTime')
? json_['createTime'] as core.String
: null,
currentMasterVersion: json_.containsKey('currentMasterVersion')
? json_['currentMasterVersion'] as core.String
: null,
currentNodeCount: json_.containsKey('currentNodeCount')
? json_['currentNodeCount'] as core.int
: null,
currentNodeVersion: json_.containsKey('currentNodeVersion')
? json_['currentNodeVersion'] as core.String
: null,
databaseEncryption: json_.containsKey('databaseEncryption')
? DatabaseEncryption.fromJson(json_['databaseEncryption']
as core.Map<core.String, core.dynamic>)
: null,
defaultMaxPodsConstraint:
json_.containsKey('defaultMaxPodsConstraint')
? MaxPodsConstraint.fromJson(json_['defaultMaxPodsConstraint']
as core.Map<core.String, core.dynamic>)
: null,
description: json_.containsKey('description')
? json_['description'] as core.String
: null,
enableK8sBetaApis: json_.containsKey('enableK8sBetaApis')
? K8sBetaAPIConfig.fromJson(json_['enableK8sBetaApis']
as core.Map<core.String, core.dynamic>)
: null,
enableKubernetesAlpha: json_.containsKey('enableKubernetesAlpha')
? json_['enableKubernetesAlpha'] as core.bool
: null,
enableTpu: json_.containsKey('enableTpu')
? json_['enableTpu'] as core.bool
: null,
endpoint: json_.containsKey('endpoint')
? json_['endpoint'] as core.String
: null,
enterpriseConfig: json_.containsKey('enterpriseConfig')
? EnterpriseConfig.fromJson(json_['enterpriseConfig']
as core.Map<core.String, core.dynamic>)
: null,
etag: json_.containsKey('etag') ? json_['etag'] as core.String : null,
expireTime: json_.containsKey('expireTime')
? json_['expireTime'] as core.String
: null,
fleet: json_.containsKey('fleet')
? Fleet.fromJson(
json_['fleet'] as core.Map<core.String, core.dynamic>)
: null,
id: json_.containsKey('id') ? json_['id'] as core.String : null,
identityServiceConfig: json_.containsKey('identityServiceConfig')
? IdentityServiceConfig.fromJson(json_['identityServiceConfig']
as core.Map<core.String, core.dynamic>)
: null,
initialClusterVersion: json_.containsKey('initialClusterVersion')
? json_['initialClusterVersion'] as core.String
: null,
initialNodeCount: json_.containsKey('initialNodeCount')
? json_['initialNodeCount'] as core.int
: null,
instanceGroupUrls: json_.containsKey('instanceGroupUrls')
? (json_['instanceGroupUrls'] as core.List)
.map((value) => value as core.String)
.toList()
: null,
ipAllocationPolicy: json_.containsKey('ipAllocationPolicy')
? IPAllocationPolicy.fromJson(json_['ipAllocationPolicy']
as core.Map<core.String, core.dynamic>)
: null,
labelFingerprint: json_.containsKey('labelFingerprint')
? json_['labelFingerprint'] as core.String
: null,
legacyAbac: json_.containsKey('legacyAbac')
? LegacyAbac.fromJson(
json_['legacyAbac'] as core.Map<core.String, core.dynamic>)
: null,
location: json_.containsKey('location')
? json_['location'] as core.String
: null,
locations: json_.containsKey('locations')
? (json_['locations'] as core.List)
.map((value) => value as core.String)
.toList()
: null,
loggingConfig: json_.containsKey('loggingConfig')
? LoggingConfig.fromJson(
json_['loggingConfig'] as core.Map<core.String, core.dynamic>)
: null,
loggingService: json_.containsKey('loggingService')
? json_['loggingService'] as core.String
: null,
maintenancePolicy: json_.containsKey('maintenancePolicy')
? MaintenancePolicy.fromJson(json_['maintenancePolicy']
as core.Map<core.String, core.dynamic>)
: null,
masterAuth: json_.containsKey('masterAuth')
? MasterAuth.fromJson(
json_['masterAuth'] as core.Map<core.String, core.dynamic>)
: null,
masterAuthorizedNetworksConfig:
json_.containsKey('masterAuthorizedNetworksConfig')
? MasterAuthorizedNetworksConfig.fromJson(
json_['masterAuthorizedNetworksConfig']
as core.Map<core.String, core.dynamic>)
: null,
meshCertificates: json_.containsKey('meshCertificates')
? MeshCertificates.fromJson(json_['meshCertificates']
as core.Map<core.String, core.dynamic>)
: null,
monitoringConfig: json_.containsKey('monitoringConfig')
? MonitoringConfig.fromJson(json_['monitoringConfig']
as core.Map<core.String, core.dynamic>)
: null,
monitoringService: json_.containsKey('monitoringService')
? json_['monitoringService'] as core.String
: null,
name: json_.containsKey('name') ? json_['name'] as core.String : null,
network: json_.containsKey('network')
? json_['network'] as core.String
: null,
networkConfig: json_.containsKey('networkConfig')
? NetworkConfig.fromJson(
json_['networkConfig'] as core.Map<core.String, core.dynamic>)
: null,
networkPolicy: json_.containsKey('networkPolicy')
? NetworkPolicy.fromJson(
json_['networkPolicy'] as core.Map<core.String, core.dynamic>)
: null,
nodeConfig: json_.containsKey('nodeConfig')
? NodeConfig.fromJson(
json_['nodeConfig'] as core.Map<core.String, core.dynamic>)
: null,
nodeIpv4CidrSize: json_.containsKey('nodeIpv4CidrSize')
? json_['nodeIpv4CidrSize'] as core.int
: null,
nodePoolAutoConfig: json_.containsKey('nodePoolAutoConfig')
? NodePoolAutoConfig.fromJson(json_['nodePoolAutoConfig']
as core.Map<core.String, core.dynamic>)
: null,
nodePoolDefaults: json_.containsKey('nodePoolDefaults')
? NodePoolDefaults.fromJson(json_['nodePoolDefaults']
as core.Map<core.String, core.dynamic>)
: null,
nodePools: json_.containsKey('nodePools')
? (json_['nodePools'] as core.List)
.map((value) => NodePool.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
notificationConfig: json_.containsKey('notificationConfig')
? NotificationConfig.fromJson(json_['notificationConfig']
as core.Map<core.String, core.dynamic>)
: null,
parentProductConfig: json_.containsKey('parentProductConfig')
? ParentProductConfig.fromJson(json_['parentProductConfig']
as core.Map<core.String, core.dynamic>)
: null,
privateClusterConfig: json_.containsKey('privateClusterConfig')
? PrivateClusterConfig.fromJson(json_['privateClusterConfig']
as core.Map<core.String, core.dynamic>)
: null,
releaseChannel: json_.containsKey('releaseChannel')
? ReleaseChannel.fromJson(json_['releaseChannel']
as core.Map<core.String, core.dynamic>)
: null,
resourceLabels: json_.containsKey('resourceLabels')
? (json_['resourceLabels'] as core.Map<core.String, core.dynamic>)
.map(
(key, value) => core.MapEntry(
key,
value as core.String,
),
)
: null,
resourceUsageExportConfig:
json_.containsKey('resourceUsageExportConfig')
? ResourceUsageExportConfig.fromJson(
json_['resourceUsageExportConfig']
as core.Map<core.String, core.dynamic>)
: null,
satisfiesPzi: json_.containsKey('satisfiesPzi')
? json_['satisfiesPzi'] as core.bool
: null,
satisfiesPzs: json_.containsKey('satisfiesPzs')
? json_['satisfiesPzs'] as core.bool
: null,
securityPostureConfig: json_.containsKey('securityPostureConfig')
? SecurityPostureConfig.fromJson(json_['securityPostureConfig']
as core.Map<core.String, core.dynamic>)
: null,
selfLink: json_.containsKey('selfLink')
? json_['selfLink'] as core.String
: null,
servicesIpv4Cidr: json_.containsKey('servicesIpv4Cidr')
? json_['servicesIpv4Cidr'] as core.String
: null,
shieldedNodes: json_.containsKey('shieldedNodes')
? ShieldedNodes.fromJson(
json_['shieldedNodes'] as core.Map<core.String, core.dynamic>)
: null,
status: json_.containsKey('status')
? json_['status'] as core.String
: null,
statusMessage: json_.containsKey('statusMessage')
? json_['statusMessage'] as core.String
: null,
subnetwork: json_.containsKey('subnetwork')
? json_['subnetwork'] as core.String
: null,
tpuIpv4CidrBlock: json_.containsKey('tpuIpv4CidrBlock')
? json_['tpuIpv4CidrBlock'] as core.String
: null,
verticalPodAutoscaling: json_.containsKey('verticalPodAutoscaling')
? VerticalPodAutoscaling.fromJson(json_['verticalPodAutoscaling']
as core.Map<core.String, core.dynamic>)
: null,
workloadIdentityConfig: json_.containsKey('workloadIdentityConfig')
? WorkloadIdentityConfig.fromJson(json_['workloadIdentityConfig']
as core.Map<core.String, core.dynamic>)
: null,
zone: json_.containsKey('zone') ? json_['zone'] as core.String : null,
);