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

com.pulumi.gcp.bigquery.kotlin.outputs.TableTimePartitioning.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.13.1.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gcp.bigquery.kotlin.outputs

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

/**
 *
 * @property expirationMs Number of milliseconds for which to keep the
 * storage for a partition.
 * @property field The field used to determine how to create a time-based
 * partition. If time-based partitioning is enabled without this value, the
 * table is partitioned based on the load time.
 * @property requirePartitionFilter If set to true, queries over this table
 * require a partition filter that can be used for partition elimination to be
 * specified. `require_partition_filter` is deprecated and will be removed in
 * a future major release. Use the top level field with the same name instead.
 * @property type The supported types are DAY, HOUR, MONTH, and YEAR,
 * which will generate one partition per day, hour, month, and year, respectively.
 */
public data class TableTimePartitioning(
    public val expirationMs: Int? = null,
    public val `field`: String? = null,
    @Deprecated(
        message = """
  This field is deprecated and will be removed in a future major release; please use the top level
      field with the same name instead.
  """,
    )
    public val requirePartitionFilter: Boolean? = null,
    public val type: String,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.gcp.bigquery.outputs.TableTimePartitioning): TableTimePartitioning = TableTimePartitioning(
            expirationMs = javaType.expirationMs().map({ args0 -> args0 }).orElse(null),
            `field` = javaType.`field`().map({ args0 -> args0 }).orElse(null),
            requirePartitionFilter = javaType.requirePartitionFilter().map({ args0 -> args0 }).orElse(null),
            type = javaType.type(),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy