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

com.pulumi.gcp.firebaserules.kotlin.ReleaseArgs.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.13.1.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gcp.firebaserules.kotlin

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.firebaserules.ReleaseArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 * For more information, see:
 * * [Get started with Firebase Security Rules](https://firebase.google.com/docs/rules/get-started)
 * ## Example Usage
 * ## Import
 * Release can be imported using any of these accepted formats:
 * * `projects/{{project}}/releases/{{name}}`
 * When using the `pulumi import` command, Release can be imported using one of the formats above. For example:
 * ```sh
 * $ pulumi import gcp:firebaserules/release:Release default projects/{{project}}/releases/{{name}}
 * ```
 * @property name Format: `projects/{project_id}/releases/{release_id}`\Firestore Rules Releases will **always** have the name 'cloud.firestore'
 * @property project The project for the resource
 * @property rulesetName Name of the `Ruleset` referred to by this `Release`. The `Ruleset` must exist for the `Release` to be created.
 * - - -
 */
public data class ReleaseArgs(
    public val name: Output? = null,
    public val project: Output? = null,
    public val rulesetName: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.firebaserules.ReleaseArgs =
        com.pulumi.gcp.firebaserules.ReleaseArgs.builder()
            .name(name?.applyValue({ args0 -> args0 }))
            .project(project?.applyValue({ args0 -> args0 }))
            .rulesetName(rulesetName?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [ReleaseArgs].
 */
@PulumiTagMarker
public class ReleaseArgsBuilder internal constructor() {
    private var name: Output? = null

    private var project: Output? = null

    private var rulesetName: Output? = null

    /**
     * @param value Format: `projects/{project_id}/releases/{release_id}`\Firestore Rules Releases will **always** have the name 'cloud.firestore'
     */
    @JvmName("fmepjpsnkxalgqob")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value The project for the resource
     */
    @JvmName("txakwblqomqljlrh")
    public suspend fun project(`value`: Output) {
        this.project = value
    }

    /**
     * @param value Name of the `Ruleset` referred to by this `Release`. The `Ruleset` must exist for the `Release` to be created.
     * - - -
     */
    @JvmName("stfpxlddjxinwevf")
    public suspend fun rulesetName(`value`: Output) {
        this.rulesetName = value
    }

    /**
     * @param value Format: `projects/{project_id}/releases/{release_id}`\Firestore Rules Releases will **always** have the name 'cloud.firestore'
     */
    @JvmName("iykhugksmfmkmfpf")
    public suspend fun name(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value The project for the resource
     */
    @JvmName("rgjeqsxcnxkbkerr")
    public suspend fun project(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.project = mapped
    }

    /**
     * @param value Name of the `Ruleset` referred to by this `Release`. The `Ruleset` must exist for the `Release` to be created.
     * - - -
     */
    @JvmName("dkyaplqpmgdrwnqj")
    public suspend fun rulesetName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.rulesetName = mapped
    }

    internal fun build(): ReleaseArgs = ReleaseArgs(
        name = name,
        project = project,
        rulesetName = rulesetName,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy