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

com.pulumi.gcp.appengine.kotlin.outputs.FlexibleAppVersionResources.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.13.1.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gcp.appengine.kotlin.outputs

import kotlin.Double
import kotlin.Int
import kotlin.Suppress
import kotlin.collections.List

/**
 *
 * @property cpu Number of CPU cores needed.
 * @property diskGb Disk size (GB) needed.
 * @property memoryGb Memory (GB) needed.
 * @property volumes List of ports, or port pairs, to forward from the virtual machine to the application container.
 * Structure is documented below.
 */
public data class FlexibleAppVersionResources(
    public val cpu: Int? = null,
    public val diskGb: Int? = null,
    public val memoryGb: Double? = null,
    public val volumes: List? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.gcp.appengine.outputs.FlexibleAppVersionResources): FlexibleAppVersionResources = FlexibleAppVersionResources(
            cpu = javaType.cpu().map({ args0 -> args0 }).orElse(null),
            diskGb = javaType.diskGb().map({ args0 -> args0 }).orElse(null),
            memoryGb = javaType.memoryGb().map({ args0 -> args0 }).orElse(null),
            volumes = javaType.volumes().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.gcp.appengine.kotlin.outputs.FlexibleAppVersionResourcesVolume.Companion.toKotlin(args0)
                })
            }),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy