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

com.pulumi.gcp.bigquery.kotlin.outputs.RoutineRemoteFunctionOptions.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.bigquery.kotlin.outputs

import kotlin.String
import kotlin.Suppress
import kotlin.collections.Map

/**
 *
 * @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 RoutineRemoteFunctionOptions(
    public val connection: String? = null,
    public val endpoint: String? = null,
    public val maxBatchingRows: String? = null,
    public val userDefinedContext: Map? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.gcp.bigquery.outputs.RoutineRemoteFunctionOptions): RoutineRemoteFunctionOptions = RoutineRemoteFunctionOptions(
            connection = javaType.connection().map({ args0 -> args0 }).orElse(null),
            endpoint = javaType.endpoint().map({ args0 -> args0 }).orElse(null),
            maxBatchingRows = javaType.maxBatchingRows().map({ args0 -> args0 }).orElse(null),
            userDefinedContext = javaType.userDefinedContext().map({ args0 ->
                args0.key.to(args0.value)
            }).toMap(),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy