com.pulumi.gcp.cloudrunv2.kotlin.outputs.GetServiceTemplateVolume.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
import kotlin.collections.List
/**
*
* @property cloudSqlInstances 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.
* @property emptyDirs Ephemeral storage used as a shared volume.
* @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.
* @property name The name of the Cloud Run v2 Service.
* @property nfs Represents an NFS mount.
* @property secrets Secret represents a secret that should populate this volume. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret
*/
public data class GetServiceTemplateVolume(
public val cloudSqlInstances: List,
public val emptyDirs: List,
public val gcs: List,
public val name: String,
public val nfs: List,
public val secrets: List,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.gcp.cloudrunv2.outputs.GetServiceTemplateVolume): GetServiceTemplateVolume = GetServiceTemplateVolume(
cloudSqlInstances = javaType.cloudSqlInstances().map({ args0 ->
args0.let({ args0 ->
com.pulumi.gcp.cloudrunv2.kotlin.outputs.GetServiceTemplateVolumeCloudSqlInstance.Companion.toKotlin(args0)
})
}),
emptyDirs = javaType.emptyDirs().map({ args0 ->
args0.let({ args0 ->
com.pulumi.gcp.cloudrunv2.kotlin.outputs.GetServiceTemplateVolumeEmptyDir.Companion.toKotlin(args0)
})
}),
gcs = javaType.gcs().map({ args0 ->
args0.let({ args0 ->
com.pulumi.gcp.cloudrunv2.kotlin.outputs.GetServiceTemplateVolumeGc.Companion.toKotlin(args0)
})
}),
name = javaType.name(),
nfs = javaType.nfs().map({ args0 ->
args0.let({ args0 ->
com.pulumi.gcp.cloudrunv2.kotlin.outputs.GetServiceTemplateVolumeNf.Companion.toKotlin(args0)
})
}),
secrets = javaType.secrets().map({ args0 ->
args0.let({ args0 ->
com.pulumi.gcp.cloudrunv2.kotlin.outputs.GetServiceTemplateVolumeSecret.Companion.toKotlin(args0)
})
}),
)
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy