
com.pulumi.gcp.bigquery.kotlin.outputs.TableExternalDataConfigurationBigtableOptions.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.gcp.bigquery.kotlin.outputs
import kotlin.Boolean
import kotlin.Suppress
import kotlin.collections.List
/**
*
* @property columnFamilies A list of column families to expose in the table schema along with their types. This list restricts the column families that can be referenced in queries and specifies their value types. You can use this list to do type conversions - see the 'type' field for more details. If you leave this list empty, all column families are present in the table schema and their values are read as BYTES. During a query only the column families referenced in that query are read from Bigtable. Structure is documented below.
* @property ignoreUnspecifiedColumnFamilies If field is true, then the column families that are not specified in columnFamilies list are not exposed in the table schema. Otherwise, they are read with BYTES type values. The default value is false.
* @property outputColumnFamiliesAsJson If field is true, then each column family will be read as a single JSON column. Otherwise they are read as a repeated cell structure containing timestamp/value tuples. The default value is false.
* @property readRowkeyAsString If field is true, then the rowkey column families will be read and converted to string. Otherwise they are read with BYTES type values and users need to manually cast them with CAST if necessary. The default value is false.
*/
public data class TableExternalDataConfigurationBigtableOptions(
public val columnFamilies: List? =
null,
public val ignoreUnspecifiedColumnFamilies: Boolean? = null,
public val outputColumnFamiliesAsJson: Boolean? = null,
public val readRowkeyAsString: Boolean? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.gcp.bigquery.outputs.TableExternalDataConfigurationBigtableOptions): TableExternalDataConfigurationBigtableOptions =
TableExternalDataConfigurationBigtableOptions(
columnFamilies = javaType.columnFamilies().map({ args0 ->
args0.let({ args0 ->
com.pulumi.gcp.bigquery.kotlin.outputs.TableExternalDataConfigurationBigtableOptionsColumnFamily.Companion.toKotlin(args0)
})
}),
ignoreUnspecifiedColumnFamilies = javaType.ignoreUnspecifiedColumnFamilies().map({ args0 ->
args0
}).orElse(null),
outputColumnFamiliesAsJson = javaType.outputColumnFamiliesAsJson().map({ args0 ->
args0
}).orElse(null),
readRowkeyAsString = javaType.readRowkeyAsString().map({ args0 -> args0 }).orElse(null),
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy