Skip to content

Commit 4c5b57a

Browse files
algolia-botkai687
andcommitted
fix(specs): define batch actions (generated)
algolia/api-clients-automation#5242 Co-authored-by: algolia-bot <[email protected]> Co-authored-by: Kai Welke <[email protected]>
1 parent 88f97b1 commit 4c5b57a

File tree

2 files changed

+28
-2
lines changed

2 files changed

+28
-2
lines changed

algoliasearch/src/main/java/com/algolia/model/ingestion/Action.java

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,20 @@
66
import com.fasterxml.jackson.annotation.*;
77
import com.fasterxml.jackson.databind.annotation.*;
88

9-
/** Type of indexing operation. */
9+
/**
10+
* Which indexing operation to perform: - `addObject`: adds records to an index. Equivalent to the
11+
* \"Add a new record (with auto-generated object ID)\" operation. - `updateObject`: adds or
12+
* replaces records in an index. Equivalent to the \"Add or replace a record\" operation. -
13+
* `partialUpdateObject`: adds or updates attributes within records. Equivalent to the \"Add or
14+
* update attributes\" operation with the `createIfNoExists` parameter set to true. (If a record
15+
* with the specified `objectID` doesn't exist in the specified index, this action creates adds the
16+
* record to the index) - `partialUpdateObjectNoCreate`: same as `partialUpdateObject`, but with
17+
* `createIfNoExists` set to false. (A record isn't added to the index if its `objectID` doesn't
18+
* exist) - `deleteObject`: delete records from an index. Equivalent to the \"Delete a record\"
19+
* operation. - `delete`. Delete an index. Equivalent to the \"Delete an index\" operation. -
20+
* `clear`: delete all records from an index. Equivalent to the \"Delete all records from an index
21+
* operation\".
22+
*/
1023
public enum Action {
1124
ADD_OBJECT("addObject"),
1225

algoliasearch/src/main/java/com/algolia/model/search/Action.java

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,20 @@
66
import com.fasterxml.jackson.annotation.*;
77
import com.fasterxml.jackson.databind.annotation.*;
88

9-
/** Type of indexing operation. */
9+
/**
10+
* Which indexing operation to perform: - `addObject`: adds records to an index. Equivalent to the
11+
* \"Add a new record (with auto-generated object ID)\" operation. - `updateObject`: adds or
12+
* replaces records in an index. Equivalent to the \"Add or replace a record\" operation. -
13+
* `partialUpdateObject`: adds or updates attributes within records. Equivalent to the \"Add or
14+
* update attributes\" operation with the `createIfNoExists` parameter set to true. (If a record
15+
* with the specified `objectID` doesn't exist in the specified index, this action creates adds the
16+
* record to the index) - `partialUpdateObjectNoCreate`: same as `partialUpdateObject`, but with
17+
* `createIfNoExists` set to false. (A record isn't added to the index if its `objectID` doesn't
18+
* exist) - `deleteObject`: delete records from an index. Equivalent to the \"Delete a record\"
19+
* operation. - `delete`. Delete an index. Equivalent to the \"Delete an index\" operation. -
20+
* `clear`: delete all records from an index. Equivalent to the \"Delete all records from an index
21+
* operation\".
22+
*/
1023
public enum Action {
1124
ADD_OBJECT("addObject"),
1225

0 commit comments

Comments
 (0)