com.pulumi.gcp.bigquery.kotlin.outputs.JobExtract.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-gcp-kotlin Show documentation
Show all versions of pulumi-gcp-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.gcp.bigquery.kotlin.outputs
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
/**
*
* @property compression The compression type to use for exported files. Possible values include GZIP, DEFLATE, SNAPPY, and NONE.
* The default value is NONE. DEFLATE and SNAPPY are only supported for Avro.
* @property destinationFormat The exported file format. Possible values include CSV, NEWLINE_DELIMITED_JSON and AVRO for tables and SAVED_MODEL for models.
* The default value for tables is CSV. Tables with nested or repeated fields cannot be exported as CSV.
* The default value for models is SAVED_MODEL.
* @property destinationUris A list of fully-qualified Google Cloud Storage URIs where the extracted table should be written.
* @property fieldDelimiter When extracting data in CSV format, this defines the delimiter to use between fields in the exported data.
* Default is ','
* @property printHeader Whether to print out a header row in the results. Default is true.
* @property sourceModel A reference to the model being exported.
* Structure is documented below.
* @property sourceTable A reference to the table being exported.
* Structure is documented below.
* @property useAvroLogicalTypes Whether to use logical types when extracting to AVRO format.
*/
public data class JobExtract(
public val compression: String? = null,
public val destinationFormat: String? = null,
public val destinationUris: List,
public val fieldDelimiter: String? = null,
public val printHeader: Boolean? = null,
public val sourceModel: JobExtractSourceModel? = null,
public val sourceTable: JobExtractSourceTable? = null,
public val useAvroLogicalTypes: Boolean? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.gcp.bigquery.outputs.JobExtract): JobExtract =
JobExtract(
compression = javaType.compression().map({ args0 -> args0 }).orElse(null),
destinationFormat = javaType.destinationFormat().map({ args0 -> args0 }).orElse(null),
destinationUris = javaType.destinationUris().map({ args0 -> args0 }),
fieldDelimiter = javaType.fieldDelimiter().map({ args0 -> args0 }).orElse(null),
printHeader = javaType.printHeader().map({ args0 -> args0 }).orElse(null),
sourceModel = javaType.sourceModel().map({ args0 ->
args0.let({ args0 ->
com.pulumi.gcp.bigquery.kotlin.outputs.JobExtractSourceModel.Companion.toKotlin(args0)
})
}).orElse(null),
sourceTable = javaType.sourceTable().map({ args0 ->
args0.let({ args0 ->
com.pulumi.gcp.bigquery.kotlin.outputs.JobExtractSourceTable.Companion.toKotlin(args0)
})
}).orElse(null),
useAvroLogicalTypes = javaType.useAvroLogicalTypes().map({ args0 -> args0 }).orElse(null),
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy