|
1 | 1 | /** Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT. */
|
2 | 2 | package com.algolia.client.model.ingestion
|
3 | 3 |
|
4 |
| -import com.algolia.client.exception.AlgoliaClientException |
5 |
| -import com.algolia.client.extensions.internal.* |
6 | 4 | import kotlinx.serialization.*
|
7 |
| -import kotlinx.serialization.builtins.* |
8 |
| -import kotlinx.serialization.descriptors.* |
9 |
| -import kotlinx.serialization.encoding.* |
10 | 5 | import kotlinx.serialization.json.*
|
11 |
| -import kotlin.jvm.JvmInline |
12 | 6 |
|
13 | 7 | /**
|
14 | 8 | * DestinationInput
|
15 | 9 | *
|
16 |
| - * Implementations: |
17 |
| - * - [DestinationIndexName] |
| 10 | + * @param indexName Algolia index name (case-sensitive). |
| 11 | + * @param recordType |
| 12 | + * @param attributesToExclude Attributes from your source to exclude from Algolia records. Not all your data attributes will be useful for searching. Keeping your Algolia records small increases indexing and search performance. - Exclude nested attributes with `.` notation. For example, `foo.bar` indexes the `foo` attribute and all its children **except** the `bar` attribute. - Exclude attributes from arrays with `[i]`, where `i` is the index of the array element. For example, `foo.[0].bar` only excludes the `bar` attribute from the first element of the `foo` array, but indexes the complete `foo` attribute for all other elements. Use `*` as wildcard: `foo.[*].bar` excludes `bar` from all elements of the `foo` array. |
18 | 13 | */
|
19 |
| -@Serializable(DestinationInputSerializer::class) |
20 |
| -public sealed interface DestinationInput { |
21 |
| - @Serializable |
22 |
| - @JvmInline |
23 |
| - public value class DestinationIndexNameValue(public val value: DestinationIndexName) : DestinationInput |
| 14 | +@Serializable |
| 15 | +public data class DestinationInput( |
24 | 16 |
|
25 |
| - public companion object { |
| 17 | + /** Algolia index name (case-sensitive). */ |
| 18 | + @SerialName(value = "indexName") val indexName: String, |
26 | 19 |
|
27 |
| - public fun of(value: DestinationIndexName): DestinationInput = DestinationIndexNameValue(value) |
28 |
| - } |
29 |
| -} |
| 20 | + @SerialName(value = "recordType") val recordType: RecordType? = null, |
30 | 21 |
|
31 |
| -internal class DestinationInputSerializer : JsonContentPolymorphicSerializer<DestinationInput>(DestinationInput::class) { |
32 |
| - override fun selectDeserializer(element: JsonElement): DeserializationStrategy<DestinationInput> = when { |
33 |
| - element is JsonObject -> DestinationIndexName.serializer() |
34 |
| - else -> throw AlgoliaClientException("Failed to deserialize json element: $element") |
35 |
| - } |
36 |
| -} |
| 22 | + /** Attributes from your source to exclude from Algolia records. Not all your data attributes will be useful for searching. Keeping your Algolia records small increases indexing and search performance. - Exclude nested attributes with `.` notation. For example, `foo.bar` indexes the `foo` attribute and all its children **except** the `bar` attribute. - Exclude attributes from arrays with `[i]`, where `i` is the index of the array element. For example, `foo.[0].bar` only excludes the `bar` attribute from the first element of the `foo` array, but indexes the complete `foo` attribute for all other elements. Use `*` as wildcard: `foo.[*].bar` excludes `bar` from all elements of the `foo` array. */ |
| 23 | + @SerialName(value = "attributesToExclude") val attributesToExclude: List<String>? = null, |
| 24 | +) |
0 commit comments