com.pulumi.gcp.organizations.kotlin.inputs.GetActiveFolderPlainArgs.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.organizations.kotlin.inputs
import com.pulumi.gcp.organizations.inputs.GetActiveFolderPlainArgs.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 getActiveFolder.
* @property apiMethod The API method to use to search for the folder. Valid values are `LIST` and `SEARCH`. Default Value is `LIST`. `LIST` is [strongly consistent](https://cloud.google.com/resource-manager/reference/rest/v3/folders/list#:~:text=list()%20provides%20a-,strongly%20consistent,-view%20of%20the) and requires `resourcemanager.folders.list` on the parent folder, while `SEARCH` is [eventually consistent](https://cloud.google.com/resource-manager/reference/rest/v3/folders/search#:~:text=eventually%20consistent) and only returns folders that the user has `resourcemanager.folders.get` permission on.
* @property displayName The folder's display name.
* @property parent The resource name of the parent Folder or Organization.
*/
public data class GetActiveFolderPlainArgs(
public val apiMethod: String? = null,
public val displayName: String,
public val parent: String,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.organizations.inputs.GetActiveFolderPlainArgs =
com.pulumi.gcp.organizations.inputs.GetActiveFolderPlainArgs.builder()
.apiMethod(apiMethod?.let({ args0 -> args0 }))
.displayName(displayName.let({ args0 -> args0 }))
.parent(parent.let({ args0 -> args0 })).build()
}
/**
* Builder for [GetActiveFolderPlainArgs].
*/
@PulumiTagMarker
public class GetActiveFolderPlainArgsBuilder internal constructor() {
private var apiMethod: String? = null
private var displayName: String? = null
private var parent: String? = null
/**
* @param value The API method to use to search for the folder. Valid values are `LIST` and `SEARCH`. Default Value is `LIST`. `LIST` is [strongly consistent](https://cloud.google.com/resource-manager/reference/rest/v3/folders/list#:~:text=list()%20provides%20a-,strongly%20consistent,-view%20of%20the) and requires `resourcemanager.folders.list` on the parent folder, while `SEARCH` is [eventually consistent](https://cloud.google.com/resource-manager/reference/rest/v3/folders/search#:~:text=eventually%20consistent) and only returns folders that the user has `resourcemanager.folders.get` permission on.
*/
@JvmName("ibhtyyyldynijpfm")
public suspend fun apiMethod(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> args0 })
this.apiMethod = mapped
}
/**
* @param value The folder's display name.
*/
@JvmName("googbraalbgfnwsk")
public suspend fun displayName(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> args0 })
this.displayName = mapped
}
/**
* @param value The resource name of the parent Folder or Organization.
*/
@JvmName("brumednjivaptudm")
public suspend fun parent(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> args0 })
this.parent = mapped
}
internal fun build(): GetActiveFolderPlainArgs = GetActiveFolderPlainArgs(
apiMethod = apiMethod,
displayName = displayName ?: throw PulumiNullFieldException("displayName"),
parent = parent ?: throw PulumiNullFieldException("parent"),
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy