Skip to content

Commit 26a91b4

Browse files
feat(specs): introduce multifeed composition behavior for beta release (generated)
algolia/api-clients-automation#5828 Co-authored-by: algolia-bot <accounts+algolia-api-client-bot@algolia.com> Co-authored-by: Gavin Wade <gavin.wade12@gmail.com>
1 parent 5fcac73 commit 26a91b4

2 files changed

Lines changed: 41 additions & 2 deletions

File tree

client/src/commonMain/kotlin/com/algolia/client/model/composition/CompositionBehavior.kt

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,13 @@ import kotlinx.serialization.*
88
import kotlinx.serialization.json.*
99

1010
/**
11-
* CompositionBehavior
11+
* An object containing either an `injection` or `multifeed` behavior schema, but not both.
1212
*
1313
* @param injection
14+
* @param multifeed
1415
*/
1516
@Serializable
16-
public data class CompositionBehavior(@SerialName(value = "injection") val injection: Injection) {}
17+
public data class CompositionBehavior(
18+
@SerialName(value = "injection") val injection: Injection? = null,
19+
@SerialName(value = "multifeed") val multifeed: Multifeed? = null,
20+
) {}
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
/**
2+
* Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be
3+
* lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
4+
*/
5+
package com.algolia.client.model.composition
6+
7+
import kotlinx.serialization.*
8+
import kotlinx.serialization.json.*
9+
10+
/**
11+
* Multifeed
12+
*
13+
* @param feeds A key-value store of Feed ID to Feed. Currently, the only supported Feed type is an
14+
* Injection.
15+
* @param feedsOrder A list of Feed IDs that specifies the order in which to order the results in
16+
* the response. The IDs should be a subset of those in the Feeds object, and only those specified
17+
* will be processed. When this field is not set, all Feeds are processed and returned with a
18+
* default ordering.
19+
*/
20+
@Serializable
21+
public data class Multifeed(
22+
23+
/**
24+
* A key-value store of Feed ID to Feed. Currently, the only supported Feed type is an Injection.
25+
*/
26+
@SerialName(value = "feeds") val feeds: Map<kotlin.String, Injection>,
27+
28+
/**
29+
* A list of Feed IDs that specifies the order in which to order the results in the response. The
30+
* IDs should be a subset of those in the Feeds object, and only those specified will be
31+
* processed. When this field is not set, all Feeds are processed and returned with a default
32+
* ordering.
33+
*/
34+
@SerialName(value = "feedsOrder") val feedsOrder: List<String>? = null,
35+
) {}

0 commit comments

Comments
 (0)