com.pulumi.gcp.cloudasset.kotlin.inputs.GetResourcesSearchAllPlainArgs.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.cloudasset.kotlin.inputs
import com.pulumi.gcp.cloudasset.inputs.GetResourcesSearchAllPlainArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName
/**
* A collection of arguments for invoking getResourcesSearchAll.
* @property assetTypes A list of asset types that this request searches for. If empty, it will search all the [supported asset types](https://cloud.google.com/asset-inventory/docs/supported-asset-types).
* @property query The query statement. See [how to construct a query](https://cloud.google.com/asset-inventory/docs/searching-resources#how_to_construct_a_query) for more information. If not specified or empty, it will search all the resources within the specified `scope` and `asset_types`.
* @property scope A scope can be a project, a folder, or an organization. The allowed value must be: organization number (such as "organizations/123"), folder number (such as "folders/1234"), project number (such as "projects/12345") or project id (such as "projects/abc")
*/
public data class GetResourcesSearchAllPlainArgs(
public val assetTypes: List? = null,
public val query: String? = null,
public val scope: String,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.cloudasset.inputs.GetResourcesSearchAllPlainArgs =
com.pulumi.gcp.cloudasset.inputs.GetResourcesSearchAllPlainArgs.builder()
.assetTypes(assetTypes?.let({ args0 -> args0.map({ args0 -> args0 }) }))
.query(query?.let({ args0 -> args0 }))
.scope(scope.let({ args0 -> args0 })).build()
}
/**
* Builder for [GetResourcesSearchAllPlainArgs].
*/
@PulumiTagMarker
public class GetResourcesSearchAllPlainArgsBuilder internal constructor() {
private var assetTypes: List? = null
private var query: String? = null
private var scope: String? = null
/**
* @param value A list of asset types that this request searches for. If empty, it will search all the [supported asset types](https://cloud.google.com/asset-inventory/docs/supported-asset-types).
*/
@JvmName("onowhufbfuayhkxr")
public suspend fun assetTypes(`value`: List?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> args0 })
this.assetTypes = mapped
}
/**
* @param values A list of asset types that this request searches for. If empty, it will search all the [supported asset types](https://cloud.google.com/asset-inventory/docs/supported-asset-types).
*/
@JvmName("awltmmhyiblthfbl")
public suspend fun assetTypes(vararg values: String) {
val toBeMapped = values.toList()
val mapped = toBeMapped.let({ args0 -> args0 })
this.assetTypes = mapped
}
/**
* @param value The query statement. See [how to construct a query](https://cloud.google.com/asset-inventory/docs/searching-resources#how_to_construct_a_query) for more information. If not specified or empty, it will search all the resources within the specified `scope` and `asset_types`.
*/
@JvmName("cetthvcembttatfh")
public suspend fun query(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> args0 })
this.query = mapped
}
/**
* @param value A scope can be a project, a folder, or an organization. The allowed value must be: organization number (such as "organizations/123"), folder number (such as "folders/1234"), project number (such as "projects/12345") or project id (such as "projects/abc")
*/
@JvmName("kcwlbhjnyppkoypk")
public suspend fun scope(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> args0 })
this.scope = mapped
}
internal fun build(): GetResourcesSearchAllPlainArgs = GetResourcesSearchAllPlainArgs(
assetTypes = assetTypes,
query = query,
scope = scope ?: throw PulumiNullFieldException("scope"),
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy