com.pulumi.gcp.firestore.kotlin.outputs.IndexField.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.firestore.kotlin.outputs
import kotlin.String
import kotlin.Suppress
/**
*
* @property arrayConfig Indicates that this field supports operations on arrayValues. Only one of `order`, `arrayConfig`, and
* `vectorConfig` can be specified.
* Possible values are: `CONTAINS`.
* @property fieldPath Name of the field.
* @property order Indicates that this field supports ordering by the specified order or comparing using =, <, <=, >, >=.
* Only one of `order`, `arrayConfig`, and `vectorConfig` can be specified.
* Possible values are: `ASCENDING`, `DESCENDING`.
* @property vectorConfig Indicates that this field supports vector search operations. Only one of `order`, `arrayConfig`, and
* `vectorConfig` can be specified. Vector Fields should come after the field path `__name__`.
* Structure is documented below.
*/
public data class IndexField(
public val arrayConfig: String? = null,
public val fieldPath: String? = null,
public val order: String? = null,
public val vectorConfig: IndexFieldVectorConfig? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.gcp.firestore.outputs.IndexField): IndexField =
IndexField(
arrayConfig = javaType.arrayConfig().map({ args0 -> args0 }).orElse(null),
fieldPath = javaType.fieldPath().map({ args0 -> args0 }).orElse(null),
order = javaType.order().map({ args0 -> args0 }).orElse(null),
vectorConfig = javaType.vectorConfig().map({ args0 ->
args0.let({ args0 ->
com.pulumi.gcp.firestore.kotlin.outputs.IndexFieldVectorConfig.Companion.toKotlin(args0)
})
}).orElse(null),
)
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy