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

com.pulumi.gcp.cloudrunv2.kotlin.outputs.ServiceTemplateVolume.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.cloudrunv2.kotlin.outputs

import kotlin.String
import kotlin.Suppress

/**
 *
 * @property cloudSqlInstance For Cloud SQL volumes, contains the specific instances that should be mounted. Visit https://cloud.google.com/sql/docs/mysql/connect-run for more information on how to connect Cloud SQL and Cloud Run.
 * Structure is documented below.
 * @property emptyDir Ephemeral storage used as a shared volume.
 * Structure is documented below.
 * @property gcs Cloud Storage bucket mounted as a volume using GCSFuse. This feature is only supported in the gen2 execution environment and requires launch-stage to be set to ALPHA or BETA.
 * Structure is documented below.
 * @property name Volume's name.
 * @property nfs Represents an NFS mount.
 * Structure is documented below.
 * @property secret Secret represents a secret that should populate this volume. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret
 * Structure is documented below.
 */
public data class ServiceTemplateVolume(
    public val cloudSqlInstance: ServiceTemplateVolumeCloudSqlInstance? = null,
    public val emptyDir: ServiceTemplateVolumeEmptyDir? = null,
    public val gcs: ServiceTemplateVolumeGcs? = null,
    public val name: String,
    public val nfs: ServiceTemplateVolumeNfs? = null,
    public val secret: ServiceTemplateVolumeSecret? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.gcp.cloudrunv2.outputs.ServiceTemplateVolume): ServiceTemplateVolume = ServiceTemplateVolume(
            cloudSqlInstance = javaType.cloudSqlInstance().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.gcp.cloudrunv2.kotlin.outputs.ServiceTemplateVolumeCloudSqlInstance.Companion.toKotlin(args0)
                })
            }).orElse(null),
            emptyDir = javaType.emptyDir().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.gcp.cloudrunv2.kotlin.outputs.ServiceTemplateVolumeEmptyDir.Companion.toKotlin(args0)
                })
            }).orElse(null),
            gcs = javaType.gcs().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.gcp.cloudrunv2.kotlin.outputs.ServiceTemplateVolumeGcs.Companion.toKotlin(args0)
                })
            }).orElse(null),
            name = javaType.name(),
            nfs = javaType.nfs().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.gcp.cloudrunv2.kotlin.outputs.ServiceTemplateVolumeNfs.Companion.toKotlin(args0)
                })
            }).orElse(null),
            secret = javaType.secret().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.gcp.cloudrunv2.kotlin.outputs.ServiceTemplateVolumeSecret.Companion.toKotlin(args0)
                })
            }).orElse(null),
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy