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

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

package com.pulumi.gcp.dataloss.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.dataloss.inputs.PreventionJobTriggerInspectJobStorageConfigBigQueryOptionsArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property excludedFields References to fields excluded from scanning.
 * This allows you to skip inspection of entire columns which you know have no findings.
 * Structure is documented below.
 * @property identifyingFields Specifies the BigQuery fields that will be returned with findings.
 * If not specified, no identifying fields will be returned for findings.
 * Structure is documented below.
 * @property includedFields Limit scanning only to these fields.
 * Structure is documented below.
 * @property rowsLimit Max number of rows to scan. If the table has more rows than this value, the rest of the rows are omitted.
 * If not set, or if set to 0, all rows will be scanned. Only one of rowsLimit and rowsLimitPercent can be
 * specified. Cannot be used in conjunction with TimespanConfig.
 * @property rowsLimitPercent Max percentage of rows to scan. The rest are omitted. The number of rows scanned is rounded down.
 * Must be between 0 and 100, inclusively. Both 0 and 100 means no limit. Defaults to 0. Only one of
 * rowsLimit and rowsLimitPercent can be specified. Cannot be used in conjunction with TimespanConfig.
 * @property sampleMethod How to sample rows if not all rows are scanned. Meaningful only when used in conjunction with either
 * rowsLimit or rowsLimitPercent. If not specified, rows are scanned in the order BigQuery reads them.
 * Default value is `TOP`.
 * Possible values are: `TOP`, `RANDOM_START`.
 * @property tableReference Set of files to scan.
 * Structure is documented below.
 */
public data class PreventionJobTriggerInspectJobStorageConfigBigQueryOptionsArgs(
    public val excludedFields: Output>? =
        null,
    public val identifyingFields: Output>? =
        null,
    public val includedFields: Output>? =
        null,
    public val rowsLimit: Output? = null,
    public val rowsLimitPercent: Output? = null,
    public val sampleMethod: Output? = null,
    public val tableReference: Output,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.dataloss.inputs.PreventionJobTriggerInspectJobStorageConfigBigQueryOptionsArgs =
        com.pulumi.gcp.dataloss.inputs.PreventionJobTriggerInspectJobStorageConfigBigQueryOptionsArgs.builder()
            .excludedFields(
                excludedFields?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .identifyingFields(
                identifyingFields?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .includedFields(
                includedFields?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .rowsLimit(rowsLimit?.applyValue({ args0 -> args0 }))
            .rowsLimitPercent(rowsLimitPercent?.applyValue({ args0 -> args0 }))
            .sampleMethod(sampleMethod?.applyValue({ args0 -> args0 }))
            .tableReference(
                tableReference.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            ).build()
}

/**
 * Builder for [PreventionJobTriggerInspectJobStorageConfigBigQueryOptionsArgs].
 */
@PulumiTagMarker
public class PreventionJobTriggerInspectJobStorageConfigBigQueryOptionsArgsBuilder internal constructor() {
    private var excludedFields:
        Output>? =
        null

    private var identifyingFields:
        Output>? =
        null

    private var includedFields:
        Output>? =
        null

    private var rowsLimit: Output? = null

    private var rowsLimitPercent: Output? = null

    private var sampleMethod: Output? = null

    private var tableReference:
        Output? = null

    /**
     * @param value References to fields excluded from scanning.
     * This allows you to skip inspection of entire columns which you know have no findings.
     * Structure is documented below.
     */
    @JvmName("ggpqfpattmymkdqd")
    public suspend fun excludedFields(`value`: Output>) {
        this.excludedFields = value
    }

    @JvmName("bbhodxfuwilnbmiq")
    public suspend fun excludedFields(vararg values: Output) {
        this.excludedFields = Output.all(values.asList())
    }

    /**
     * @param values References to fields excluded from scanning.
     * This allows you to skip inspection of entire columns which you know have no findings.
     * Structure is documented below.
     */
    @JvmName("vsmlpclbphykbhfj")
    public suspend fun excludedFields(values: List>) {
        this.excludedFields = Output.all(values)
    }

    /**
     * @param value Specifies the BigQuery fields that will be returned with findings.
     * If not specified, no identifying fields will be returned for findings.
     * Structure is documented below.
     */
    @JvmName("hathpixjfxguirto")
    public suspend fun identifyingFields(`value`: Output>) {
        this.identifyingFields = value
    }

    @JvmName("saakexdyhslqqabi")
    public suspend fun identifyingFields(vararg values: Output) {
        this.identifyingFields = Output.all(values.asList())
    }

    /**
     * @param values Specifies the BigQuery fields that will be returned with findings.
     * If not specified, no identifying fields will be returned for findings.
     * Structure is documented below.
     */
    @JvmName("wbhoraurqkyonrfs")
    public suspend fun identifyingFields(values: List>) {
        this.identifyingFields = Output.all(values)
    }

    /**
     * @param value Limit scanning only to these fields.
     * Structure is documented below.
     */
    @JvmName("nqbsbybvvkydpuup")
    public suspend fun includedFields(`value`: Output>) {
        this.includedFields = value
    }

    @JvmName("tdotuumnxyyipcxx")
    public suspend fun includedFields(vararg values: Output) {
        this.includedFields = Output.all(values.asList())
    }

    /**
     * @param values Limit scanning only to these fields.
     * Structure is documented below.
     */
    @JvmName("vxuwcnsbapghmsif")
    public suspend fun includedFields(values: List>) {
        this.includedFields = Output.all(values)
    }

    /**
     * @param value Max number of rows to scan. If the table has more rows than this value, the rest of the rows are omitted.
     * If not set, or if set to 0, all rows will be scanned. Only one of rowsLimit and rowsLimitPercent can be
     * specified. Cannot be used in conjunction with TimespanConfig.
     */
    @JvmName("edragpvkdvelmkip")
    public suspend fun rowsLimit(`value`: Output) {
        this.rowsLimit = value
    }

    /**
     * @param value Max percentage of rows to scan. The rest are omitted. The number of rows scanned is rounded down.
     * Must be between 0 and 100, inclusively. Both 0 and 100 means no limit. Defaults to 0. Only one of
     * rowsLimit and rowsLimitPercent can be specified. Cannot be used in conjunction with TimespanConfig.
     */
    @JvmName("qahbtjewoqmjxunc")
    public suspend fun rowsLimitPercent(`value`: Output) {
        this.rowsLimitPercent = value
    }

    /**
     * @param value How to sample rows if not all rows are scanned. Meaningful only when used in conjunction with either
     * rowsLimit or rowsLimitPercent. If not specified, rows are scanned in the order BigQuery reads them.
     * Default value is `TOP`.
     * Possible values are: `TOP`, `RANDOM_START`.
     */
    @JvmName("odarpncbqfmyqfbd")
    public suspend fun sampleMethod(`value`: Output) {
        this.sampleMethod = value
    }

    /**
     * @param value Set of files to scan.
     * Structure is documented below.
     */
    @JvmName("ymgmlbhylvyurutb")
    public suspend fun tableReference(`value`: Output) {
        this.tableReference = value
    }

    /**
     * @param value References to fields excluded from scanning.
     * This allows you to skip inspection of entire columns which you know have no findings.
     * Structure is documented below.
     */
    @JvmName("tnndamuidtmdojwr")
    public suspend fun excludedFields(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.excludedFields = mapped
    }

    /**
     * @param argument References to fields excluded from scanning.
     * This allows you to skip inspection of entire columns which you know have no findings.
     * Structure is documented below.
     */
    @JvmName("axmuivbfrahtlphx")
    public suspend fun excludedFields(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            PreventionJobTriggerInspectJobStorageConfigBigQueryOptionsExcludedFieldArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.excludedFields = mapped
    }

    /**
     * @param argument References to fields excluded from scanning.
     * This allows you to skip inspection of entire columns which you know have no findings.
     * Structure is documented below.
     */
    @JvmName("aivxoyjewtgvstpk")
    public suspend fun excludedFields(vararg argument: suspend PreventionJobTriggerInspectJobStorageConfigBigQueryOptionsExcludedFieldArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            PreventionJobTriggerInspectJobStorageConfigBigQueryOptionsExcludedFieldArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.excludedFields = mapped
    }

    /**
     * @param argument References to fields excluded from scanning.
     * This allows you to skip inspection of entire columns which you know have no findings.
     * Structure is documented below.
     */
    @JvmName("jtogwkluyykhnqky")
    public suspend fun excludedFields(argument: suspend PreventionJobTriggerInspectJobStorageConfigBigQueryOptionsExcludedFieldArgsBuilder.() -> Unit) {
        val toBeMapped =
            listOf(
                PreventionJobTriggerInspectJobStorageConfigBigQueryOptionsExcludedFieldArgsBuilder().applySuspend
                    { argument() }.build(),
            )
        val mapped = of(toBeMapped)
        this.excludedFields = mapped
    }

    /**
     * @param values References to fields excluded from scanning.
     * This allows you to skip inspection of entire columns which you know have no findings.
     * Structure is documented below.
     */
    @JvmName("ddjlpsmygiqgysiy")
    public suspend fun excludedFields(vararg values: PreventionJobTriggerInspectJobStorageConfigBigQueryOptionsExcludedFieldArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.excludedFields = mapped
    }

    /**
     * @param value Specifies the BigQuery fields that will be returned with findings.
     * If not specified, no identifying fields will be returned for findings.
     * Structure is documented below.
     */
    @JvmName("ybwgxiyrmynmigwp")
    public suspend fun identifyingFields(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.identifyingFields = mapped
    }

    /**
     * @param argument Specifies the BigQuery fields that will be returned with findings.
     * If not specified, no identifying fields will be returned for findings.
     * Structure is documented below.
     */
    @JvmName("bhmkcbvugjaajdds")
    public suspend fun identifyingFields(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            PreventionJobTriggerInspectJobStorageConfigBigQueryOptionsIdentifyingFieldArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.identifyingFields = mapped
    }

    /**
     * @param argument Specifies the BigQuery fields that will be returned with findings.
     * If not specified, no identifying fields will be returned for findings.
     * Structure is documented below.
     */
    @JvmName("qcihexojvjrsurud")
    public suspend fun identifyingFields(vararg argument: suspend PreventionJobTriggerInspectJobStorageConfigBigQueryOptionsIdentifyingFieldArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            PreventionJobTriggerInspectJobStorageConfigBigQueryOptionsIdentifyingFieldArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.identifyingFields = mapped
    }

    /**
     * @param argument Specifies the BigQuery fields that will be returned with findings.
     * If not specified, no identifying fields will be returned for findings.
     * Structure is documented below.
     */
    @JvmName("rbjltmfvrojrhmwo")
    public suspend fun identifyingFields(argument: suspend PreventionJobTriggerInspectJobStorageConfigBigQueryOptionsIdentifyingFieldArgsBuilder.() -> Unit) {
        val toBeMapped =
            listOf(
                PreventionJobTriggerInspectJobStorageConfigBigQueryOptionsIdentifyingFieldArgsBuilder().applySuspend
                    { argument() }.build(),
            )
        val mapped = of(toBeMapped)
        this.identifyingFields = mapped
    }

    /**
     * @param values Specifies the BigQuery fields that will be returned with findings.
     * If not specified, no identifying fields will be returned for findings.
     * Structure is documented below.
     */
    @JvmName("kxhjmvtljtgcjewr")
    public suspend fun identifyingFields(vararg values: PreventionJobTriggerInspectJobStorageConfigBigQueryOptionsIdentifyingFieldArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.identifyingFields = mapped
    }

    /**
     * @param value Limit scanning only to these fields.
     * Structure is documented below.
     */
    @JvmName("mkjyncgicngliqyn")
    public suspend fun includedFields(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.includedFields = mapped
    }

    /**
     * @param argument Limit scanning only to these fields.
     * Structure is documented below.
     */
    @JvmName("hbhyydmkbkpejetd")
    public suspend fun includedFields(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            PreventionJobTriggerInspectJobStorageConfigBigQueryOptionsIncludedFieldArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.includedFields = mapped
    }

    /**
     * @param argument Limit scanning only to these fields.
     * Structure is documented below.
     */
    @JvmName("yccgqckwklwepuhy")
    public suspend fun includedFields(vararg argument: suspend PreventionJobTriggerInspectJobStorageConfigBigQueryOptionsIncludedFieldArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            PreventionJobTriggerInspectJobStorageConfigBigQueryOptionsIncludedFieldArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.includedFields = mapped
    }

    /**
     * @param argument Limit scanning only to these fields.
     * Structure is documented below.
     */
    @JvmName("kuobxlaeocvwwwdp")
    public suspend fun includedFields(argument: suspend PreventionJobTriggerInspectJobStorageConfigBigQueryOptionsIncludedFieldArgsBuilder.() -> Unit) {
        val toBeMapped =
            listOf(
                PreventionJobTriggerInspectJobStorageConfigBigQueryOptionsIncludedFieldArgsBuilder().applySuspend
                    { argument() }.build(),
            )
        val mapped = of(toBeMapped)
        this.includedFields = mapped
    }

    /**
     * @param values Limit scanning only to these fields.
     * Structure is documented below.
     */
    @JvmName("qyhfjblbwdrilmqj")
    public suspend fun includedFields(vararg values: PreventionJobTriggerInspectJobStorageConfigBigQueryOptionsIncludedFieldArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.includedFields = mapped
    }

    /**
     * @param value Max number of rows to scan. If the table has more rows than this value, the rest of the rows are omitted.
     * If not set, or if set to 0, all rows will be scanned. Only one of rowsLimit and rowsLimitPercent can be
     * specified. Cannot be used in conjunction with TimespanConfig.
     */
    @JvmName("lwxmykduvsajxxxo")
    public suspend fun rowsLimit(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.rowsLimit = mapped
    }

    /**
     * @param value Max percentage of rows to scan. The rest are omitted. The number of rows scanned is rounded down.
     * Must be between 0 and 100, inclusively. Both 0 and 100 means no limit. Defaults to 0. Only one of
     * rowsLimit and rowsLimitPercent can be specified. Cannot be used in conjunction with TimespanConfig.
     */
    @JvmName("oggyddokblspxyvg")
    public suspend fun rowsLimitPercent(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.rowsLimitPercent = mapped
    }

    /**
     * @param value How to sample rows if not all rows are scanned. Meaningful only when used in conjunction with either
     * rowsLimit or rowsLimitPercent. If not specified, rows are scanned in the order BigQuery reads them.
     * Default value is `TOP`.
     * Possible values are: `TOP`, `RANDOM_START`.
     */
    @JvmName("bvnmnoscahycpyug")
    public suspend fun sampleMethod(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.sampleMethod = mapped
    }

    /**
     * @param value Set of files to scan.
     * Structure is documented below.
     */
    @JvmName("bbrmhpwhmanoklub")
    public suspend fun tableReference(`value`: PreventionJobTriggerInspectJobStorageConfigBigQueryOptionsTableReferenceArgs) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tableReference = mapped
    }

    /**
     * @param argument Set of files to scan.
     * Structure is documented below.
     */
    @JvmName("qvanlnitpicoobwa")
    public suspend fun tableReference(argument: suspend PreventionJobTriggerInspectJobStorageConfigBigQueryOptionsTableReferenceArgsBuilder.() -> Unit) {
        val toBeMapped =
            PreventionJobTriggerInspectJobStorageConfigBigQueryOptionsTableReferenceArgsBuilder().applySuspend {
                argument()
            }.build()
        val mapped = of(toBeMapped)
        this.tableReference = mapped
    }

    internal fun build(): PreventionJobTriggerInspectJobStorageConfigBigQueryOptionsArgs =
        PreventionJobTriggerInspectJobStorageConfigBigQueryOptionsArgs(
            excludedFields = excludedFields,
            identifyingFields = identifyingFields,
            includedFields = includedFields,
            rowsLimit = rowsLimit,
            rowsLimitPercent = rowsLimitPercent,
            sampleMethod = sampleMethod,
            tableReference = tableReference ?: throw PulumiNullFieldException("tableReference"),
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy