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

com.pulumi.gcp.cloudrunv2.kotlin.inputs.JobTemplateTemplateVolumeGcsArgs.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gcp.cloudrunv2.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.cloudrunv2.inputs.JobTemplateTemplateVolumeGcsArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property bucket Name of the cloud storage bucket to back the volume. The resource service account must have permission to access the bucket.
 * @property mountOptions A list of flags to pass to the gcsfuse command for configuring this volume.
 * Flags should be passed without leading dashes.
 * @property readOnly If true, mount this volume as read-only in all mounts. If false, mount this volume as read-write.
 */
public data class JobTemplateTemplateVolumeGcsArgs(
    public val bucket: Output,
    public val mountOptions: Output>? = null,
    public val readOnly: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.cloudrunv2.inputs.JobTemplateTemplateVolumeGcsArgs =
        com.pulumi.gcp.cloudrunv2.inputs.JobTemplateTemplateVolumeGcsArgs.builder()
            .bucket(bucket.applyValue({ args0 -> args0 }))
            .mountOptions(mountOptions?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .readOnly(readOnly?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [JobTemplateTemplateVolumeGcsArgs].
 */
@PulumiTagMarker
public class JobTemplateTemplateVolumeGcsArgsBuilder internal constructor() {
    private var bucket: Output? = null

    private var mountOptions: Output>? = null

    private var readOnly: Output? = null

    /**
     * @param value Name of the cloud storage bucket to back the volume. The resource service account must have permission to access the bucket.
     */
    @JvmName("xvyjkkngugpmgmqf")
    public suspend fun bucket(`value`: Output) {
        this.bucket = value
    }

    /**
     * @param value A list of flags to pass to the gcsfuse command for configuring this volume.
     * Flags should be passed without leading dashes.
     */
    @JvmName("fuexqixyswgbkolr")
    public suspend fun mountOptions(`value`: Output>) {
        this.mountOptions = value
    }

    @JvmName("ldfrbreeybpagdtg")
    public suspend fun mountOptions(vararg values: Output) {
        this.mountOptions = Output.all(values.asList())
    }

    /**
     * @param values A list of flags to pass to the gcsfuse command for configuring this volume.
     * Flags should be passed without leading dashes.
     */
    @JvmName("xupmmtvpnilfepog")
    public suspend fun mountOptions(values: List>) {
        this.mountOptions = Output.all(values)
    }

    /**
     * @param value If true, mount this volume as read-only in all mounts. If false, mount this volume as read-write.
     */
    @JvmName("tkttofwqiprdlhfx")
    public suspend fun readOnly(`value`: Output) {
        this.readOnly = value
    }

    /**
     * @param value Name of the cloud storage bucket to back the volume. The resource service account must have permission to access the bucket.
     */
    @JvmName("gvoecqeghxlqkvvo")
    public suspend fun bucket(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.bucket = mapped
    }

    /**
     * @param value A list of flags to pass to the gcsfuse command for configuring this volume.
     * Flags should be passed without leading dashes.
     */
    @JvmName("isxnhmobsmnhjryh")
    public suspend fun mountOptions(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.mountOptions = mapped
    }

    /**
     * @param values A list of flags to pass to the gcsfuse command for configuring this volume.
     * Flags should be passed without leading dashes.
     */
    @JvmName("lasyskdnrqegwwsa")
    public suspend fun mountOptions(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.mountOptions = mapped
    }

    /**
     * @param value If true, mount this volume as read-only in all mounts. If false, mount this volume as read-write.
     */
    @JvmName("nulwgeoxydvajepa")
    public suspend fun readOnly(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.readOnly = mapped
    }

    internal fun build(): JobTemplateTemplateVolumeGcsArgs = JobTemplateTemplateVolumeGcsArgs(
        bucket = bucket ?: throw PulumiNullFieldException("bucket"),
        mountOptions = mountOptions,
        readOnly = readOnly,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy