UpdateNodePoolRequest.fromJson constructor

UpdateNodePoolRequest.fromJson(
  1. Map json_
)

Implementation

UpdateNodePoolRequest.fromJson(core.Map json_)
    : this(
        accelerators: json_.containsKey('accelerators')
            ? (json_['accelerators'] as core.List)
                .map((value) => AcceleratorConfig.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        clusterId: json_.containsKey('clusterId')
            ? json_['clusterId'] as core.String
            : null,
        confidentialNodes: json_.containsKey('confidentialNodes')
            ? ConfidentialNodes.fromJson(json_['confidentialNodes']
                as core.Map<core.String, core.dynamic>)
            : null,
        containerdConfig: json_.containsKey('containerdConfig')
            ? ContainerdConfig.fromJson(json_['containerdConfig']
                as core.Map<core.String, core.dynamic>)
            : null,
        diskSizeGb: json_.containsKey('diskSizeGb')
            ? json_['diskSizeGb'] as core.String
            : null,
        diskType: json_.containsKey('diskType')
            ? json_['diskType'] as core.String
            : null,
        etag: json_.containsKey('etag') ? json_['etag'] as core.String : null,
        fastSocket: json_.containsKey('fastSocket')
            ? FastSocket.fromJson(
                json_['fastSocket'] as core.Map<core.String, core.dynamic>)
            : null,
        gcfsConfig: json_.containsKey('gcfsConfig')
            ? GcfsConfig.fromJson(
                json_['gcfsConfig'] as core.Map<core.String, core.dynamic>)
            : null,
        gvnic: json_.containsKey('gvnic')
            ? VirtualNIC.fromJson(
                json_['gvnic'] as core.Map<core.String, core.dynamic>)
            : null,
        imageType: json_.containsKey('imageType')
            ? json_['imageType'] as core.String
            : null,
        kubeletConfig: json_.containsKey('kubeletConfig')
            ? NodeKubeletConfig.fromJson(
                json_['kubeletConfig'] as core.Map<core.String, core.dynamic>)
            : null,
        labels: json_.containsKey('labels')
            ? NodeLabels.fromJson(
                json_['labels'] as core.Map<core.String, core.dynamic>)
            : null,
        linuxNodeConfig: json_.containsKey('linuxNodeConfig')
            ? LinuxNodeConfig.fromJson(json_['linuxNodeConfig']
                as core.Map<core.String, core.dynamic>)
            : null,
        locations: json_.containsKey('locations')
            ? (json_['locations'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        loggingConfig: json_.containsKey('loggingConfig')
            ? NodePoolLoggingConfig.fromJson(
                json_['loggingConfig'] as core.Map<core.String, core.dynamic>)
            : null,
        machineType: json_.containsKey('machineType')
            ? json_['machineType'] as core.String
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        nodeNetworkConfig: json_.containsKey('nodeNetworkConfig')
            ? NodeNetworkConfig.fromJson(json_['nodeNetworkConfig']
                as core.Map<core.String, core.dynamic>)
            : null,
        nodePoolId: json_.containsKey('nodePoolId')
            ? json_['nodePoolId'] as core.String
            : null,
        nodeVersion: json_.containsKey('nodeVersion')
            ? json_['nodeVersion'] as core.String
            : null,
        projectId: json_.containsKey('projectId')
            ? json_['projectId'] as core.String
            : null,
        queuedProvisioning: json_.containsKey('queuedProvisioning')
            ? QueuedProvisioning.fromJson(json_['queuedProvisioning']
                as core.Map<core.String, core.dynamic>)
            : null,
        resourceLabels: json_.containsKey('resourceLabels')
            ? ResourceLabels.fromJson(json_['resourceLabels']
                as core.Map<core.String, core.dynamic>)
            : null,
        resourceManagerTags: json_.containsKey('resourceManagerTags')
            ? ResourceManagerTags.fromJson(json_['resourceManagerTags']
                as core.Map<core.String, core.dynamic>)
            : null,
        tags: json_.containsKey('tags')
            ? NetworkTags.fromJson(
                json_['tags'] as core.Map<core.String, core.dynamic>)
            : null,
        taints: json_.containsKey('taints')
            ? NodeTaints.fromJson(
                json_['taints'] as core.Map<core.String, core.dynamic>)
            : null,
        upgradeSettings: json_.containsKey('upgradeSettings')
            ? UpgradeSettings.fromJson(json_['upgradeSettings']
                as core.Map<core.String, core.dynamic>)
            : null,
        windowsNodeConfig: json_.containsKey('windowsNodeConfig')
            ? WindowsNodeConfig.fromJson(json_['windowsNodeConfig']
                as core.Map<core.String, core.dynamic>)
            : null,
        workloadMetadataConfig: json_.containsKey('workloadMetadataConfig')
            ? WorkloadMetadataConfig.fromJson(json_['workloadMetadataConfig']
                as core.Map<core.String, core.dynamic>)
            : null,
        zone: json_.containsKey('zone') ? json_['zone'] as core.String : null,
      );