All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.gcp.container.kotlin.outputs.NodePoolAutoscaling.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 8.10.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gcp.container.kotlin.outputs

import kotlin.Int
import kotlin.String
import kotlin.Suppress

/**
 *
 * @property locationPolicy Location policy specifies the algorithm used when
 * scaling-up the node pool. Location policy is supported only in 1.24.1+ clusters.
 * * "BALANCED" - Is a best effort policy that aims to balance the sizes of available zones.
 * * "ANY" - Instructs the cluster autoscaler to prioritize utilization of unused reservations,
 * and reduce preemption risk for Spot VMs.
 * @property maxNodeCount Maximum number of nodes per zone in the NodePool.
 * Must be >= min_node_count. Cannot be used with total limits.
 * @property minNodeCount Minimum number of nodes per zone in the NodePool.
 * Must be >=0 and <= `max_node_count`. Cannot be used with total limits.
 * @property totalMaxNodeCount Total maximum number of nodes in the NodePool.
 * Must be >= total_min_node_count. Cannot be used with per zone limits.
 * Total size limits are supported only in 1.24.1+ clusters.
 * @property totalMinNodeCount Total minimum number of nodes in the NodePool.
 * Must be >=0 and <= `total_max_node_count`. Cannot be used with per zone limits.
 * Total size limits are supported only in 1.24.1+ clusters.
 */
public data class NodePoolAutoscaling(
    public val locationPolicy: String? = null,
    public val maxNodeCount: Int? = null,
    public val minNodeCount: Int? = null,
    public val totalMaxNodeCount: Int? = null,
    public val totalMinNodeCount: Int? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.gcp.container.outputs.NodePoolAutoscaling): NodePoolAutoscaling = NodePoolAutoscaling(
            locationPolicy = javaType.locationPolicy().map({ args0 -> args0 }).orElse(null),
            maxNodeCount = javaType.maxNodeCount().map({ args0 -> args0 }).orElse(null),
            minNodeCount = javaType.minNodeCount().map({ args0 -> args0 }).orElse(null),
            totalMaxNodeCount = javaType.totalMaxNodeCount().map({ args0 -> args0 }).orElse(null),
            totalMinNodeCount = javaType.totalMinNodeCount().map({ args0 -> args0 }).orElse(null),
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy