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

com.pulumi.gcp.notebooks.kotlin.outputs.RuntimeSoftwareConfig.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.notebooks.kotlin.outputs

import kotlin.Boolean
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List

/**
 *
 * @property customGpuDriverPath Specify a custom Cloud Storage path where the GPU driver is stored.
 * If not specified, we'll automatically choose from official GPU drivers.
 * @property enableHealthMonitoring Verifies core internal services are running. Default: True.
 * @property idleShutdown Runtime will automatically shutdown after idle_shutdown_time.
 * Default: True
 * @property idleShutdownTimeout Time in minutes to wait before shuting down runtime.
 * Default: 180 minutes
 * @property installGpuDriver Install Nvidia Driver automatically.
 * @property kernels Use a list of container images to use as Kernels in the notebook instance.
 * Structure is documented below.
 * @property notebookUpgradeSchedule Cron expression in UTC timezone for schedule instance auto upgrade.
 * Please follow the [cron format](https://en.wikipedia.org/wiki/Cron).
 * @property postStartupScript Path to a Bash script that automatically runs after a notebook instance
 * fully boots up. The path must be a URL or
 * Cloud Storage path (gs://path-to-file/file-name).
 * @property postStartupScriptBehavior Behavior for the post startup script.
 * Possible values are: `POST_STARTUP_SCRIPT_BEHAVIOR_UNSPECIFIED`, `RUN_EVERY_START`, `DOWNLOAD_AND_RUN_EVERY_START`.
 * @property upgradeable (Output)
 * Bool indicating whether an newer image is available in an image family.
 */
public data class RuntimeSoftwareConfig(
    public val customGpuDriverPath: String? = null,
    public val enableHealthMonitoring: Boolean? = null,
    public val idleShutdown: Boolean? = null,
    public val idleShutdownTimeout: Int? = null,
    public val installGpuDriver: Boolean? = null,
    public val kernels: List? = null,
    public val notebookUpgradeSchedule: String? = null,
    public val postStartupScript: String? = null,
    public val postStartupScriptBehavior: String? = null,
    public val upgradeable: Boolean? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.gcp.notebooks.outputs.RuntimeSoftwareConfig): RuntimeSoftwareConfig = RuntimeSoftwareConfig(
            customGpuDriverPath = javaType.customGpuDriverPath().map({ args0 -> args0 }).orElse(null),
            enableHealthMonitoring = javaType.enableHealthMonitoring().map({ args0 -> args0 }).orElse(null),
            idleShutdown = javaType.idleShutdown().map({ args0 -> args0 }).orElse(null),
            idleShutdownTimeout = javaType.idleShutdownTimeout().map({ args0 -> args0 }).orElse(null),
            installGpuDriver = javaType.installGpuDriver().map({ args0 -> args0 }).orElse(null),
            kernels = javaType.kernels().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.gcp.notebooks.kotlin.outputs.RuntimeSoftwareConfigKernel.Companion.toKotlin(args0)
                })
            }),
            notebookUpgradeSchedule = javaType.notebookUpgradeSchedule().map({ args0 -> args0 }).orElse(null),
            postStartupScript = javaType.postStartupScript().map({ args0 -> args0 }).orElse(null),
            postStartupScriptBehavior = javaType.postStartupScriptBehavior().map({ args0 ->
                args0
            }).orElse(null),
            upgradeable = javaType.upgradeable().map({ args0 -> args0 }).orElse(null),
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy