-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(specs): add v2 endpoints for ingestion
algolia/api-clients-automation#3416 Co-authored-by: algolia-bot <[email protected]> Co-authored-by: Clément Vannicatte <[email protected]>
- Loading branch information
1 parent
3033803
commit fd0af40
Showing
4 changed files
with
94 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 34 additions & 0 deletions
34
client/src/commonMain/kotlin/com/algolia/client/model/ingestion/Action.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
/** 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. */ | ||
package com.algolia.client.model.ingestion | ||
|
||
import kotlinx.serialization.* | ||
|
||
/** | ||
* Type of indexing operation. | ||
*/ | ||
@Serializable | ||
public enum class Action(public val value: kotlin.String) { | ||
|
||
@SerialName(value = "addObject") | ||
AddObject("addObject"), | ||
|
||
@SerialName(value = "updateObject") | ||
UpdateObject("updateObject"), | ||
|
||
@SerialName(value = "partialUpdateObject") | ||
PartialUpdateObject("partialUpdateObject"), | ||
|
||
@SerialName(value = "partialUpdateObjectNoCreate") | ||
PartialUpdateObjectNoCreate("partialUpdateObjectNoCreate"), | ||
|
||
@SerialName(value = "deleteObject") | ||
DeleteObject("deleteObject"), | ||
|
||
@SerialName(value = "delete") | ||
Delete("delete"), | ||
|
||
@SerialName(value = "clear") | ||
Clear("clear"); | ||
|
||
override fun toString(): kotlin.String = value | ||
} |
20 changes: 20 additions & 0 deletions
20
client/src/commonMain/kotlin/com/algolia/client/model/ingestion/BatchRequest.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
/** 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. */ | ||
package com.algolia.client.model.ingestion | ||
|
||
import kotlinx.serialization.* | ||
import kotlinx.serialization.json.* | ||
|
||
/** | ||
* BatchRequest | ||
* | ||
* @param action | ||
* @param body Operation arguments (varies with specified `action`). | ||
*/ | ||
@Serializable | ||
public data class BatchRequest( | ||
|
||
@SerialName(value = "action") val action: Action, | ||
|
||
/** Operation arguments (varies with specified `action`). */ | ||
@SerialName(value = "body") val body: JsonObject, | ||
) |
16 changes: 16 additions & 0 deletions
16
client/src/commonMain/kotlin/com/algolia/client/model/ingestion/BatchWriteParams.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
/** 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. */ | ||
package com.algolia.client.model.ingestion | ||
|
||
import kotlinx.serialization.* | ||
import kotlinx.serialization.json.* | ||
|
||
/** | ||
* Batch parameters. | ||
* | ||
* @param requests | ||
*/ | ||
@Serializable | ||
public data class BatchWriteParams( | ||
|
||
@SerialName(value = "requests") val requests: List<BatchRequest>, | ||
) |