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

com.pulumi.gcp.gemini.kotlin.inputs.GetRepositoryGroupIamPolicyPlainArgs.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gcp.gemini.kotlin.inputs

import com.pulumi.gcp.gemini.inputs.GetRepositoryGroupIamPolicyPlainArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 * A collection of arguments for invoking getRepositoryGroupIamPolicy.
 * @property codeRepositoryIndex
 * @property location The location of the Code Repository Index, for example `us-central1`. Used to find the parent resource to bind the IAM policy to. If not specified,
 * the value will be parsed from the identifier of the parent resource. If no location is provided in the parent identifier and no
 * location is specified, it is taken from the provider configuration.
 * @property project The ID of the project in which the resource belongs.
 * If it is not provided, the project will be parsed from the identifier of the parent resource. If no project is provided in the parent identifier and no project is specified, the provider project is used.
 * @property repositoryGroupId
 */
public data class GetRepositoryGroupIamPolicyPlainArgs(
    public val codeRepositoryIndex: String,
    public val location: String? = null,
    public val project: String? = null,
    public val repositoryGroupId: String,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.gemini.inputs.GetRepositoryGroupIamPolicyPlainArgs =
        com.pulumi.gcp.gemini.inputs.GetRepositoryGroupIamPolicyPlainArgs.builder()
            .codeRepositoryIndex(codeRepositoryIndex.let({ args0 -> args0 }))
            .location(location?.let({ args0 -> args0 }))
            .project(project?.let({ args0 -> args0 }))
            .repositoryGroupId(repositoryGroupId.let({ args0 -> args0 })).build()
}

/**
 * Builder for [GetRepositoryGroupIamPolicyPlainArgs].
 */
@PulumiTagMarker
public class GetRepositoryGroupIamPolicyPlainArgsBuilder internal constructor() {
    private var codeRepositoryIndex: String? = null

    private var location: String? = null

    private var project: String? = null

    private var repositoryGroupId: String? = null

    /**
     * @param value
     */
    @JvmName("mlaaeiqxsjbbybkf")
    public suspend fun codeRepositoryIndex(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> args0 })
        this.codeRepositoryIndex = mapped
    }

    /**
     * @param value The location of the Code Repository Index, for example `us-central1`. Used to find the parent resource to bind the IAM policy to. If not specified,
     * the value will be parsed from the identifier of the parent resource. If no location is provided in the parent identifier and no
     * location is specified, it is taken from the provider configuration.
     */
    @JvmName("cfjolyqgprmumace")
    public suspend fun location(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> args0 })
        this.location = mapped
    }

    /**
     * @param value The ID of the project in which the resource belongs.
     * If it is not provided, the project will be parsed from the identifier of the parent resource. If no project is provided in the parent identifier and no project is specified, the provider project is used.
     */
    @JvmName("djhjvoemeqqrxwhw")
    public suspend fun project(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> args0 })
        this.project = mapped
    }

    /**
     * @param value
     */
    @JvmName("cddhslhxmoceelyl")
    public suspend fun repositoryGroupId(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> args0 })
        this.repositoryGroupId = mapped
    }

    internal fun build(): GetRepositoryGroupIamPolicyPlainArgs = GetRepositoryGroupIamPolicyPlainArgs(
        codeRepositoryIndex = codeRepositoryIndex ?: throw PulumiNullFieldException("codeRepositoryIndex"),
        location = location,
        project = project,
        repositoryGroupId = repositoryGroupId ?: throw PulumiNullFieldException("repositoryGroupId"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy