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

com.pulumi.gcp.pubsub.kotlin.outputs.SubscriptionBigqueryConfig.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.pubsub.kotlin.outputs

import kotlin.Boolean
import kotlin.String
import kotlin.Suppress

/**
 *
 * @property dropUnknownFields When true and use_topic_schema or use_table_schema is true, any fields that are a part of the topic schema or message schema that
 * are not part of the BigQuery table schema are dropped when writing to BigQuery. Otherwise, the schemas must be kept in sync
 * and any messages with extra fields are not written and remain in the subscription's backlog.
 * @property table The name of the table to which to write data, of the form {projectId}:{datasetId}.{tableId}
 * @property useTableSchema When true, use the BigQuery table's schema as the columns to write to in BigQuery. Messages
 * must be published in JSON format. Only one of use_topic_schema and use_table_schema can be set.
 * @property useTopicSchema When true, use the topic's schema as the columns to write to in BigQuery, if it exists.
 * Only one of use_topic_schema and use_table_schema can be set.
 * @property writeMetadata When true, write the subscription name, messageId, publishTime, attributes, and orderingKey to additional columns in the table.
 * The subscription name, messageId, and publishTime fields are put in their own columns while all other message properties (other than data) are written to a JSON object in the attributes column.
 */
public data class SubscriptionBigqueryConfig(
    public val dropUnknownFields: Boolean? = null,
    public val table: String,
    public val useTableSchema: Boolean? = null,
    public val useTopicSchema: Boolean? = null,
    public val writeMetadata: Boolean? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.gcp.pubsub.outputs.SubscriptionBigqueryConfig): SubscriptionBigqueryConfig = SubscriptionBigqueryConfig(
            dropUnknownFields = javaType.dropUnknownFields().map({ args0 -> args0 }).orElse(null),
            table = javaType.table(),
            useTableSchema = javaType.useTableSchema().map({ args0 -> args0 }).orElse(null),
            useTopicSchema = javaType.useTopicSchema().map({ args0 -> args0 }).orElse(null),
            writeMetadata = javaType.writeMetadata().map({ args0 -> args0 }).orElse(null),
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy