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

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

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

/**
 *
 * @property allowJaggedRows Indicates if BigQuery should accept rows
 * that are missing trailing optional columns.
 * @property allowQuotedNewlines Indicates if BigQuery should allow
 * quoted data sections that contain newline characters in a CSV file.
 * The default value is false.
 * @property encoding The character encoding of the data. The supported
 * values are UTF-8 or ISO-8859-1.
 * @property fieldDelimiter The separator for fields in a CSV file.
 * @property quote The value that is used to quote data sections in a
 * CSV file. If your data does not contain quoted sections, set the
 * property value to an empty string. If your data contains quoted newline
 * characters, you must also set the `allow_quoted_newlines` property to true.
 * The API-side default is `"`, specified in the provider escaped as `\"`. Due to
 * limitations with default values, this value is required to be
 * explicitly set.
 * @property skipLeadingRows The number of rows at the top of a CSV
 * file that BigQuery will skip when reading the data.
 */
public data class TableExternalDataConfigurationCsvOptions(
    public val allowJaggedRows: Boolean? = null,
    public val allowQuotedNewlines: Boolean? = null,
    public val encoding: String? = null,
    public val fieldDelimiter: String? = null,
    public val quote: String,
    public val skipLeadingRows: Int? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.gcp.bigquery.outputs.TableExternalDataConfigurationCsvOptions): TableExternalDataConfigurationCsvOptions = TableExternalDataConfigurationCsvOptions(
            allowJaggedRows = javaType.allowJaggedRows().map({ args0 -> args0 }).orElse(null),
            allowQuotedNewlines = javaType.allowQuotedNewlines().map({ args0 -> args0 }).orElse(null),
            encoding = javaType.encoding().map({ args0 -> args0 }).orElse(null),
            fieldDelimiter = javaType.fieldDelimiter().map({ args0 -> args0 }).orElse(null),
            quote = javaType.quote(),
            skipLeadingRows = javaType.skipLeadingRows().map({ args0 -> args0 }).orElse(null),
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy