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

com.pulumi.gcp.cloudasset.kotlin.inputs.GetSearchAllResourcesPlainArgs.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.12.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gcp.cloudasset.kotlin.inputs

import com.pulumi.gcp.cloudasset.inputs.GetSearchAllResourcesPlainArgs.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 getSearchAllResources.
 * @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 search is limited to the resources within the scope. 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 GetSearchAllResourcesPlainArgs(
    public val assetTypes: List? = null,
    public val query: String? = null,
    public val scope: String,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.cloudasset.inputs.GetSearchAllResourcesPlainArgs =
        com.pulumi.gcp.cloudasset.inputs.GetSearchAllResourcesPlainArgs.builder()
            .assetTypes(assetTypes?.let({ args0 -> args0.map({ args0 -> args0 }) }))
            .query(query?.let({ args0 -> args0 }))
            .scope(scope.let({ args0 -> args0 })).build()
}

/**
 * Builder for [GetSearchAllResourcesPlainArgs].
 */
@PulumiTagMarker
public class GetSearchAllResourcesPlainArgsBuilder 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("jrlqsgguwukqrbek")
    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("gtyulgkywkisolfd")
    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("tjjhqpmicdthybqp")
    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 search is limited to the resources within the scope. 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("xndnirnibahkrrxy")
    public suspend fun scope(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> args0 })
        this.scope = mapped
    }

    internal fun build(): GetSearchAllResourcesPlainArgs = GetSearchAllResourcesPlainArgs(
        assetTypes = assetTypes,
        query = query,
        scope = scope ?: throw PulumiNullFieldException("scope"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy