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

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

package com.pulumi.gcp.bigquery.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.bigquery.inputs.RoutineRemoteFunctionOptionsArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.collections.Map
import kotlin.jvm.JvmName

/**
 *
 * @property connection Fully qualified name of the user-provided connection object which holds
 * the authentication information to send requests to the remote service.
 * Format: "projects/{projectId}/locations/{locationId}/connections/{connectionId}"
 * @property endpoint Endpoint of the user-provided remote service, e.g.
 * `https://us-east1-my_gcf_project.cloudfunctions.net/remote_add`
 * @property maxBatchingRows Max number of rows in each batch sent to the remote service. If absent or if 0,
 * BigQuery dynamically decides the number of rows in a batch.
 * @property userDefinedContext User-defined context as a set of key/value pairs, which will be sent as function
 * invocation context together with batched arguments in the requests to the remote
 * service. The total number of bytes of keys and values must be less than 8KB.
 * An object containing a list of "key": value pairs. Example:
 * `{ "name": "wrench", "mass": "1.3kg", "count": "3" }`.
 */
public data class RoutineRemoteFunctionOptionsArgs(
    public val connection: Output? = null,
    public val endpoint: Output? = null,
    public val maxBatchingRows: Output? = null,
    public val userDefinedContext: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.bigquery.inputs.RoutineRemoteFunctionOptionsArgs =
        com.pulumi.gcp.bigquery.inputs.RoutineRemoteFunctionOptionsArgs.builder()
            .connection(connection?.applyValue({ args0 -> args0 }))
            .endpoint(endpoint?.applyValue({ args0 -> args0 }))
            .maxBatchingRows(maxBatchingRows?.applyValue({ args0 -> args0 }))
            .userDefinedContext(
                userDefinedContext?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.key.to(args0.value)
                    }).toMap()
                }),
            ).build()
}

/**
 * Builder for [RoutineRemoteFunctionOptionsArgs].
 */
@PulumiTagMarker
public class RoutineRemoteFunctionOptionsArgsBuilder internal constructor() {
    private var connection: Output? = null

    private var endpoint: Output? = null

    private var maxBatchingRows: Output? = null

    private var userDefinedContext: Output>? = null

    /**
     * @param value Fully qualified name of the user-provided connection object which holds
     * the authentication information to send requests to the remote service.
     * Format: "projects/{projectId}/locations/{locationId}/connections/{connectionId}"
     */
    @JvmName("yxhwdmcjsxtgtebi")
    public suspend fun connection(`value`: Output) {
        this.connection = value
    }

    /**
     * @param value Endpoint of the user-provided remote service, e.g.
     * `https://us-east1-my_gcf_project.cloudfunctions.net/remote_add`
     */
    @JvmName("jxomkeboqwiisfrm")
    public suspend fun endpoint(`value`: Output) {
        this.endpoint = value
    }

    /**
     * @param value Max number of rows in each batch sent to the remote service. If absent or if 0,
     * BigQuery dynamically decides the number of rows in a batch.
     */
    @JvmName("bcgdfgwlhngkujeu")
    public suspend fun maxBatchingRows(`value`: Output) {
        this.maxBatchingRows = value
    }

    /**
     * @param value User-defined context as a set of key/value pairs, which will be sent as function
     * invocation context together with batched arguments in the requests to the remote
     * service. The total number of bytes of keys and values must be less than 8KB.
     * An object containing a list of "key": value pairs. Example:
     * `{ "name": "wrench", "mass": "1.3kg", "count": "3" }`.
     */
    @JvmName("kkaurodlwmbmwpsi")
    public suspend fun userDefinedContext(`value`: Output>) {
        this.userDefinedContext = value
    }

    /**
     * @param value Fully qualified name of the user-provided connection object which holds
     * the authentication information to send requests to the remote service.
     * Format: "projects/{projectId}/locations/{locationId}/connections/{connectionId}"
     */
    @JvmName("ubqcgupqjvnkrqph")
    public suspend fun connection(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.connection = mapped
    }

    /**
     * @param value Endpoint of the user-provided remote service, e.g.
     * `https://us-east1-my_gcf_project.cloudfunctions.net/remote_add`
     */
    @JvmName("berugldatnqbpkwl")
    public suspend fun endpoint(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.endpoint = mapped
    }

    /**
     * @param value Max number of rows in each batch sent to the remote service. If absent or if 0,
     * BigQuery dynamically decides the number of rows in a batch.
     */
    @JvmName("xyseuvayjwtepwao")
    public suspend fun maxBatchingRows(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.maxBatchingRows = mapped
    }

    /**
     * @param value User-defined context as a set of key/value pairs, which will be sent as function
     * invocation context together with batched arguments in the requests to the remote
     * service. The total number of bytes of keys and values must be less than 8KB.
     * An object containing a list of "key": value pairs. Example:
     * `{ "name": "wrench", "mass": "1.3kg", "count": "3" }`.
     */
    @JvmName("cnkmjxfpyffcntnv")
    public suspend fun userDefinedContext(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.userDefinedContext = mapped
    }

    /**
     * @param values User-defined context as a set of key/value pairs, which will be sent as function
     * invocation context together with batched arguments in the requests to the remote
     * service. The total number of bytes of keys and values must be less than 8KB.
     * An object containing a list of "key": value pairs. Example:
     * `{ "name": "wrench", "mass": "1.3kg", "count": "3" }`.
     */
    @JvmName("kkknqkfookasdink")
    public fun userDefinedContext(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.userDefinedContext = mapped
    }

    internal fun build(): RoutineRemoteFunctionOptionsArgs = RoutineRemoteFunctionOptionsArgs(
        connection = connection,
        endpoint = endpoint,
        maxBatchingRows = maxBatchingRows,
        userDefinedContext = userDefinedContext,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy