
com.pulumi.googlenative.firebasehosting.v1beta1.kotlin.Version.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-google-native-kotlin Show documentation
Show all versions of pulumi-google-native-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.
The newest version!
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.googlenative.firebasehosting.v1beta1.kotlin
import com.pulumi.core.Output
import com.pulumi.googlenative.firebasehosting.v1beta1.kotlin.outputs.ActingUserResponse
import com.pulumi.googlenative.firebasehosting.v1beta1.kotlin.outputs.ServingConfigResponse
import com.pulumi.kotlin.KotlinCustomResource
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.ResourceMapper
import com.pulumi.kotlin.options.CustomResourceOptions
import com.pulumi.kotlin.options.CustomResourceOptionsBuilder
import com.pulumi.resources.Resource
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.Map
import com.pulumi.googlenative.firebasehosting.v1beta1.kotlin.outputs.ActingUserResponse.Companion.toKotlin as actingUserResponseToKotlin
import com.pulumi.googlenative.firebasehosting.v1beta1.kotlin.outputs.ServingConfigResponse.Companion.toKotlin as servingConfigResponseToKotlin
/**
* Builder for [Version].
*/
@PulumiTagMarker
public class VersionResourceBuilder internal constructor() {
public var name: String? = null
public var args: VersionArgs = VersionArgs()
public var opts: CustomResourceOptions = CustomResourceOptions()
/**
* @param name The _unique_ name of the resulting resource.
*/
public fun name(`value`: String) {
this.name = value
}
/**
* @param block The arguments to use to populate this resource's properties.
*/
public suspend fun args(block: suspend VersionArgsBuilder.() -> Unit) {
val builder = VersionArgsBuilder()
block(builder)
this.args = builder.build()
}
/**
* @param block A bag of options that control this resource's behavior.
*/
public suspend fun opts(block: suspend CustomResourceOptionsBuilder.() -> Unit) {
this.opts = com.pulumi.kotlin.options.CustomResourceOptions.opts(block)
}
internal fun build(): Version {
val builtJavaResource =
com.pulumi.googlenative.firebasehosting.v1beta1.Version(
this.name,
this.args.toJava(),
this.opts.toJava(),
)
return Version(builtJavaResource)
}
}
/**
* Creates a new version for the specified site.
*/
public class Version internal constructor(
override val javaResource: com.pulumi.googlenative.firebasehosting.v1beta1.Version,
) : KotlinCustomResource(javaResource, VersionMapper) {
/**
* The configuration for the behavior of the site. This configuration exists in the [`firebase.json`](https://firebase.google.com/docs/cli/#the_firebasejson_file) file.
*/
public val config: Output
get() = javaResource.config().applyValue({ args0 ->
args0.let({ args0 ->
servingConfigResponseToKotlin(args0)
})
})
/**
* The time at which the version was created.
*/
public val createTime: Output
get() = javaResource.createTime().applyValue({ args0 -> args0 })
/**
* Identifies the user who created the version.
*/
public val createUser: Output
get() = javaResource.createUser().applyValue({ args0 ->
args0.let({ args0 ->
actingUserResponseToKotlin(args0)
})
})
/**
* The time at which the version was `DELETED`.
*/
public val deleteTime: Output
get() = javaResource.deleteTime().applyValue({ args0 -> args0 })
/**
* Identifies the user who `DELETED` the version.
*/
public val deleteUser: Output
get() = javaResource.deleteUser().applyValue({ args0 ->
args0.let({ args0 ->
actingUserResponseToKotlin(args0)
})
})
/**
* The total number of files associated with the version. This value is calculated after a version is `FINALIZED`.
*/
public val fileCount: Output
get() = javaResource.fileCount().applyValue({ args0 -> args0 })
/**
* The time at which the version was `FINALIZED`.
*/
public val finalizeTime: Output
get() = javaResource.finalizeTime().applyValue({ args0 -> args0 })
/**
* Identifies the user who `FINALIZED` the version.
*/
public val finalizeUser: Output
get() = javaResource.finalizeUser().applyValue({ args0 ->
args0.let({ args0 ->
actingUserResponseToKotlin(args0)
})
})
/**
* The labels used for extra metadata and/or filtering.
*/
public val labels: Output
© 2015 - 2025 Weber Informatics LLC | Privacy Policy