Skip to content

Commit 4f6efb7

Browse files
fix(specs): ingestion destinations and transformations (generated)
algolia/api-clients-automation#3477 Co-authored-by: algolia-bot <[email protected]> Co-authored-by: Clément Vannicatte <[email protected]>
1 parent dec552f commit 4f6efb7

File tree

4 files changed

+14
-3
lines changed

4 files changed

+14
-3
lines changed

src/main/scala/algoliasearch/api/IngestionClient.scala

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1126,12 +1126,18 @@ class IngestionClient(
11261126
* - deleteIndex
11271127
* - editSettings
11281128
*
1129+
* @param itemsPerPage
1130+
* Number of items per page.
1131+
* @param page
1132+
* Page number of the paginated API response.
11291133
* @param sort
11301134
* Property by which to sort the list.
11311135
* @param order
11321136
* Sort order of the response, ascending or descending.
11331137
*/
11341138
def listTransformations(
1139+
itemsPerPage: Option[Int] = None,
1140+
page: Option[Int] = None,
11351141
sort: Option[SortKeys] = None,
11361142
order: Option[OrderKeys] = None,
11371143
requestOptions: Option[RequestOptions] = None
@@ -1141,6 +1147,8 @@ class IngestionClient(
11411147
.builder()
11421148
.withMethod("GET")
11431149
.withPath(s"/1/transformations")
1150+
.withQueryParameter("itemsPerPage", itemsPerPage)
1151+
.withQueryParameter("page", page)
11441152
.withQueryParameter("sort", sort)
11451153
.withQueryParameter("order", order)
11461154
.build()

src/main/scala/algoliasearch/ingestion/Destination.scala

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,5 +45,6 @@ case class Destination(
4545
input: DestinationInput,
4646
createdAt: String,
4747
updatedAt: Option[String] = scala.None,
48-
authenticationID: Option[String] = scala.None
48+
authenticationID: Option[String] = scala.None,
49+
transformationIDs: Option[Seq[String]] = scala.None
4950
)

src/main/scala/algoliasearch/ingestion/DestinationCreate.scala

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,5 +36,6 @@ case class DestinationCreate(
3636
`type`: DestinationType,
3737
name: String,
3838
input: DestinationInput,
39-
authenticationID: Option[String] = scala.None
39+
authenticationID: Option[String] = scala.None,
40+
transformationIDs: Option[Seq[String]] = scala.None
4041
)

src/main/scala/algoliasearch/ingestion/DestinationUpdate.scala

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,5 +36,6 @@ case class DestinationUpdate(
3636
`type`: Option[DestinationType] = scala.None,
3737
name: Option[String] = scala.None,
3838
input: Option[DestinationInput] = scala.None,
39-
authenticationID: Option[String] = scala.None
39+
authenticationID: Option[String] = scala.None,
40+
transformationIDs: Option[Seq[String]] = scala.None
4041
)

0 commit comments

Comments
 (0)