GetClusterNodePoolNodeConfig.fromMap constructor

GetClusterNodePoolNodeConfig.fromMap(
  1. Map<String, dynamic> map
)

Implementation

factory GetClusterNodePoolNodeConfig.fromMap(Map<String, dynamic> map) {
  return GetClusterNodePoolNodeConfig(
    advancedMachineFeatures: pulumi.Input.fromValue(pulumi.Input.decodeList<GetClusterNodePoolNodeConfigAdvancedMachineFeature>(map['advancedMachineFeatures']!, (value) => GetClusterNodePoolNodeConfigAdvancedMachineFeature.fromMap((value as Map).cast<String, dynamic>()))),
    bootDiskKmsKey: pulumi.Input.fromValue(map['bootDiskKmsKey'] as String),
    bootDisks: pulumi.Input.fromValue(pulumi.Input.decodeList<GetClusterNodePoolNodeConfigBootDisk>(map['bootDisks']!, (value) => GetClusterNodePoolNodeConfigBootDisk.fromMap((value as Map).cast<String, dynamic>()))),
    confidentialNodes: pulumi.Input.fromValue(pulumi.Input.decodeList<GetClusterNodePoolNodeConfigConfidentialNode>(map['confidentialNodes']!, (value) => GetClusterNodePoolNodeConfigConfidentialNode.fromMap((value as Map).cast<String, dynamic>()))),
    containerdConfigs: pulumi.Input.fromValue(pulumi.Input.decodeList<GetClusterNodePoolNodeConfigContainerdConfig>(map['containerdConfigs']!, (value) => GetClusterNodePoolNodeConfigContainerdConfig.fromMap((value as Map).cast<String, dynamic>()))),
    diskSizeGb: pulumi.Input.fromValue((map['diskSizeGb'] as num).toInt()),
    diskType: pulumi.Input.fromValue(map['diskType'] as String),
    effectiveTaints: pulumi.Input.fromValue(pulumi.Input.decodeList<GetClusterNodePoolNodeConfigEffectiveTaint>(map['effectiveTaints']!, (value) => GetClusterNodePoolNodeConfigEffectiveTaint.fromMap((value as Map).cast<String, dynamic>()))),
    enableConfidentialStorage: pulumi.Input.fromValue(map['enableConfidentialStorage'] as bool),
    ephemeralStorageConfigs: pulumi.Input.fromValue(pulumi.Input.decodeList<GetClusterNodePoolNodeConfigEphemeralStorageConfig>(map['ephemeralStorageConfigs']!, (value) => GetClusterNodePoolNodeConfigEphemeralStorageConfig.fromMap((value as Map).cast<String, dynamic>()))),
    ephemeralStorageLocalSsdConfigs: pulumi.Input.fromValue(pulumi.Input.decodeList<GetClusterNodePoolNodeConfigEphemeralStorageLocalSsdConfig>(map['ephemeralStorageLocalSsdConfigs']!, (value) => GetClusterNodePoolNodeConfigEphemeralStorageLocalSsdConfig.fromMap((value as Map).cast<String, dynamic>()))),
    fastSockets: pulumi.Input.fromValue(pulumi.Input.decodeList<GetClusterNodePoolNodeConfigFastSocket>(map['fastSockets']!, (value) => GetClusterNodePoolNodeConfigFastSocket.fromMap((value as Map).cast<String, dynamic>()))),
    flexStart: pulumi.Input.fromValue(map['flexStart'] as bool),
    gcfsConfigs: pulumi.Input.fromValue(pulumi.Input.decodeList<GetClusterNodePoolNodeConfigGcfsConfig>(map['gcfsConfigs']!, (value) => GetClusterNodePoolNodeConfigGcfsConfig.fromMap((value as Map).cast<String, dynamic>()))),
    gpudirectStrategy: pulumi.Input.fromValue(map['gpudirectStrategy'] as String),
    guestAccelerators: pulumi.Input.fromValue(pulumi.Input.decodeList<GetClusterNodePoolNodeConfigGuestAccelerator>(map['guestAccelerators']!, (value) => GetClusterNodePoolNodeConfigGuestAccelerator.fromMap((value as Map).cast<String, dynamic>()))),
    gvnics: pulumi.Input.fromValue(pulumi.Input.decodeList<GetClusterNodePoolNodeConfigGvnic>(map['gvnics']!, (value) => GetClusterNodePoolNodeConfigGvnic.fromMap((value as Map).cast<String, dynamic>()))),
    hostMaintenancePolicies: pulumi.Input.fromValue(pulumi.Input.decodeList<GetClusterNodePoolNodeConfigHostMaintenancePolicy>(map['hostMaintenancePolicies']!, (value) => GetClusterNodePoolNodeConfigHostMaintenancePolicy.fromMap((value as Map).cast<String, dynamic>()))),
    imageType: pulumi.Input.fromValue(map['imageType'] as String),
    kubeletConfigs: pulumi.Input.fromValue(pulumi.Input.decodeList<GetClusterNodePoolNodeConfigKubeletConfig>(map['kubeletConfigs']!, (value) => GetClusterNodePoolNodeConfigKubeletConfig.fromMap((value as Map).cast<String, dynamic>()))),
    labels: pulumi.Input.fromValue((map['labels'] as Map).cast<String, String>()),
    linuxNodeConfigs: pulumi.Input.fromValue(pulumi.Input.decodeList<GetClusterNodePoolNodeConfigLinuxNodeConfig>(map['linuxNodeConfigs']!, (value) => GetClusterNodePoolNodeConfigLinuxNodeConfig.fromMap((value as Map).cast<String, dynamic>()))),
    localNvmeSsdBlockConfigs: pulumi.Input.fromValue(pulumi.Input.decodeList<GetClusterNodePoolNodeConfigLocalNvmeSsdBlockConfig>(map['localNvmeSsdBlockConfigs']!, (value) => GetClusterNodePoolNodeConfigLocalNvmeSsdBlockConfig.fromMap((value as Map).cast<String, dynamic>()))),
    localSsdCount: pulumi.Input.fromValue((map['localSsdCount'] as num).toInt()),
    localSsdEncryptionMode: pulumi.Input.fromValue(map['localSsdEncryptionMode'] as String),
    loggingVariant: pulumi.Input.fromValue(map['loggingVariant'] as String),
    machineType: pulumi.Input.fromValue(map['machineType'] as String),
    maxRunDuration: pulumi.Input.fromValue(map['maxRunDuration'] as String),
    metadata: pulumi.Input.fromValue((map['metadata'] as Map).cast<String, String>()),
    minCpuPlatform: pulumi.Input.fromValue(map['minCpuPlatform'] as String),
    nodeGroup: pulumi.Input.fromValue(map['nodeGroup'] as String),
    nodeImageConfigs: pulumi.Input.fromValue(pulumi.Input.decodeList<GetClusterNodePoolNodeConfigNodeImageConfig>(map['nodeImageConfigs']!, (value) => GetClusterNodePoolNodeConfigNodeImageConfig.fromMap((value as Map).cast<String, dynamic>()))),
    oauthScopes: pulumi.Input.fromValue((map['oauthScopes'] as List).cast<String>()),
    preemptible: pulumi.Input.fromValue(map['preemptible'] as bool),
    reservationAffinities: pulumi.Input.fromValue(pulumi.Input.decodeList<GetClusterNodePoolNodeConfigReservationAffinity>(map['reservationAffinities']!, (value) => GetClusterNodePoolNodeConfigReservationAffinity.fromMap((value as Map).cast<String, dynamic>()))),
    resourceLabels: pulumi.Input.fromValue((map['resourceLabels'] as Map).cast<String, String>()),
    resourceManagerTags: pulumi.Input.fromValue((map['resourceManagerTags'] as Map).cast<String, String>()),
    sandboxConfigs: pulumi.Input.fromValue(pulumi.Input.decodeList<GetClusterNodePoolNodeConfigSandboxConfig>(map['sandboxConfigs']!, (value) => GetClusterNodePoolNodeConfigSandboxConfig.fromMap((value as Map).cast<String, dynamic>()))),
    secondaryBootDisks: pulumi.Input.fromValue(pulumi.Input.decodeList<GetClusterNodePoolNodeConfigSecondaryBootDisk>(map['secondaryBootDisks']!, (value) => GetClusterNodePoolNodeConfigSecondaryBootDisk.fromMap((value as Map).cast<String, dynamic>()))),
    serviceAccount: pulumi.Input.fromValue(map['serviceAccount'] as String),
    shieldedInstanceConfigs: pulumi.Input.fromValue(pulumi.Input.decodeList<GetClusterNodePoolNodeConfigShieldedInstanceConfig>(map['shieldedInstanceConfigs']!, (value) => GetClusterNodePoolNodeConfigShieldedInstanceConfig.fromMap((value as Map).cast<String, dynamic>()))),
    soleTenantConfigs: pulumi.Input.fromValue(pulumi.Input.decodeList<GetClusterNodePoolNodeConfigSoleTenantConfig>(map['soleTenantConfigs']!, (value) => GetClusterNodePoolNodeConfigSoleTenantConfig.fromMap((value as Map).cast<String, dynamic>()))),
    spot: pulumi.Input.fromValue(map['spot'] as bool),
    storagePools: pulumi.Input.fromValue((map['storagePools'] as List).cast<String>()),
    tags: pulumi.Input.fromValue((map['tags'] as List).cast<String>()),
    taintConfigs: pulumi.Input.fromValue(pulumi.Input.decodeList<GetClusterNodePoolNodeConfigTaintConfig>(map['taintConfigs']!, (value) => GetClusterNodePoolNodeConfigTaintConfig.fromMap((value as Map).cast<String, dynamic>()))),
    taints: pulumi.Input.fromValue(pulumi.Input.decodeList<GetClusterNodePoolNodeConfigTaint>(map['taints']!, (value) => GetClusterNodePoolNodeConfigTaint.fromMap((value as Map).cast<String, dynamic>()))),
    windowsNodeConfigs: pulumi.Input.fromValue(pulumi.Input.decodeList<GetClusterNodePoolNodeConfigWindowsNodeConfig>(map['windowsNodeConfigs']!, (value) => GetClusterNodePoolNodeConfigWindowsNodeConfig.fromMap((value as Map).cast<String, dynamic>()))),
    workloadMetadataConfigs: pulumi.Input.fromValue(pulumi.Input.decodeList<GetClusterNodePoolNodeConfigWorkloadMetadataConfig>(map['workloadMetadataConfigs']!, (value) => GetClusterNodePoolNodeConfigWorkloadMetadataConfig.fromMap((value as Map).cast<String, dynamic>()))),
  );
}