com.pulumi.gcp.cloudrunv2.kotlin.outputs.JobTemplateTemplateVolume.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-gcp-kotlin Show documentation
Show all versions of pulumi-gcp-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@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 requires the launch stage to be set to ALPHA or BETA.
* Structure is documented below.
* @property name Volume's name.
* @property nfs NFS share mounted as a volume. This feature requires the launch stage to be set to ALPHA or BETA.
* 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 JobTemplateTemplateVolume(
public val cloudSqlInstance: JobTemplateTemplateVolumeCloudSqlInstance? = null,
public val emptyDir: JobTemplateTemplateVolumeEmptyDir? = null,
public val gcs: JobTemplateTemplateVolumeGcs? = null,
public val name: String,
public val nfs: JobTemplateTemplateVolumeNfs? = null,
public val secret: JobTemplateTemplateVolumeSecret? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.gcp.cloudrunv2.outputs.JobTemplateTemplateVolume): JobTemplateTemplateVolume = JobTemplateTemplateVolume(
cloudSqlInstance = javaType.cloudSqlInstance().map({ args0 ->
args0.let({ args0 ->
com.pulumi.gcp.cloudrunv2.kotlin.outputs.JobTemplateTemplateVolumeCloudSqlInstance.Companion.toKotlin(args0)
})
}).orElse(null),
emptyDir = javaType.emptyDir().map({ args0 ->
args0.let({ args0 ->
com.pulumi.gcp.cloudrunv2.kotlin.outputs.JobTemplateTemplateVolumeEmptyDir.Companion.toKotlin(args0)
})
}).orElse(null),
gcs = javaType.gcs().map({ args0 ->
args0.let({ args0 ->
com.pulumi.gcp.cloudrunv2.kotlin.outputs.JobTemplateTemplateVolumeGcs.Companion.toKotlin(args0)
})
}).orElse(null),
name = javaType.name(),
nfs = javaType.nfs().map({ args0 ->
args0.let({ args0 ->
com.pulumi.gcp.cloudrunv2.kotlin.outputs.JobTemplateTemplateVolumeNfs.Companion.toKotlin(args0)
})
}).orElse(null),
secret = javaType.secret().map({ args0 ->
args0.let({ args0 ->
com.pulumi.gcp.cloudrunv2.kotlin.outputs.JobTemplateTemplateVolumeSecret.Companion.toKotlin(args0)
})
}).orElse(null),
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy