Skip to content

Commit 0840d88

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 23d7696 commit 0840d88

File tree

4 files changed

+46
-4
lines changed

4 files changed

+46
-4
lines changed

algoliasearch/ingestion/client.py

Lines changed: 31 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3151,6 +3151,14 @@ async def list_tasks_v1(
31513151

31523152
async def list_transformations_with_http_info(
31533153
self,
3154+
items_per_page: Annotated[
3155+
Optional[Annotated[int, Field(le=100, strict=True, ge=1)]],
3156+
Field(description="Number of items per page."),
3157+
] = None,
3158+
page: Annotated[
3159+
Optional[Annotated[int, Field(strict=True, ge=1)]],
3160+
Field(description="Page number of the paginated API response."),
3161+
] = None,
31543162
sort: Annotated[
31553163
Optional[SortKeys], Field(description="Property by which to sort the list.")
31563164
] = None,
@@ -3168,6 +3176,10 @@ async def list_transformations_with_http_info(
31683176
- deleteIndex
31693177
- editSettings
31703178
3179+
:param items_per_page: Number of items per page.
3180+
:type items_per_page: int
3181+
:param page: Page number of the paginated API response.
3182+
:type page: int
31713183
:param sort: Property by which to sort the list.
31723184
:type sort: SortKeys
31733185
:param order: Sort order of the response, ascending or descending.
@@ -3178,6 +3190,10 @@ async def list_transformations_with_http_info(
31783190

31793191
_query_parameters: List[Tuple[str, str]] = []
31803192

3193+
if items_per_page is not None:
3194+
_query_parameters.append(("itemsPerPage", items_per_page))
3195+
if page is not None:
3196+
_query_parameters.append(("page", page))
31813197
if sort is not None:
31823198
_query_parameters.append(("sort", sort))
31833199
if order is not None:
@@ -3195,6 +3211,14 @@ async def list_transformations_with_http_info(
31953211

31963212
async def list_transformations(
31973213
self,
3214+
items_per_page: Annotated[
3215+
Optional[Annotated[int, Field(le=100, strict=True, ge=1)]],
3216+
Field(description="Number of items per page."),
3217+
] = None,
3218+
page: Annotated[
3219+
Optional[Annotated[int, Field(strict=True, ge=1)]],
3220+
Field(description="Page number of the paginated API response."),
3221+
] = None,
31983222
sort: Annotated[
31993223
Optional[SortKeys], Field(description="Property by which to sort the list.")
32003224
] = None,
@@ -3212,6 +3236,10 @@ async def list_transformations(
32123236
- deleteIndex
32133237
- editSettings
32143238
3239+
:param items_per_page: Number of items per page.
3240+
:type items_per_page: int
3241+
:param page: Page number of the paginated API response.
3242+
:type page: int
32153243
:param sort: Property by which to sort the list.
32163244
:type sort: SortKeys
32173245
:param order: Sort order of the response, ascending or descending.
@@ -3220,7 +3248,9 @@ async def list_transformations(
32203248
:return: Returns the deserialized response in a 'ListTransformationsResponse' result object.
32213249
"""
32223250
return (
3223-
await self.list_transformations_with_http_info(sort, order, request_options)
3251+
await self.list_transformations_with_http_info(
3252+
items_per_page, page, sort, order, request_options
3253+
)
32243254
).deserialize(ListTransformationsResponse)
32253255

32263256
async def push_task_with_http_info(

algoliasearch/ingestion/models/destination.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
from __future__ import annotations
88

99
from json import loads
10-
from typing import Any, Dict, Optional, Self
10+
from typing import Any, Dict, List, Optional, Self
1111

1212
from pydantic import BaseModel, ConfigDict, Field, StrictStr
1313

@@ -40,6 +40,9 @@ class Destination(BaseModel):
4040
description="Universally unique identifier (UUID) of an authentication resource.",
4141
alias="authenticationID",
4242
)
43+
transformation_ids: Optional[List[StrictStr]] = Field(
44+
default=None, alias="transformationIDs"
45+
)
4346

4447
model_config = ConfigDict(
4548
use_enum_values=True, populate_by_name=True, validate_assignment=True
@@ -94,6 +97,7 @@ def from_dict(cls, obj: Dict) -> Self:
9497
"createdAt": obj.get("createdAt"),
9598
"updatedAt": obj.get("updatedAt"),
9699
"authenticationID": obj.get("authenticationID"),
100+
"transformationIDs": obj.get("transformationIDs"),
97101
}
98102
)
99103
return _obj

algoliasearch/ingestion/models/destination_create.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
from __future__ import annotations
88

99
from json import loads
10-
from typing import Any, Dict, Optional, Self
10+
from typing import Any, Dict, List, Optional, Self
1111

1212
from pydantic import BaseModel, ConfigDict, Field, StrictStr
1313

@@ -28,6 +28,9 @@ class DestinationCreate(BaseModel):
2828
description="Universally unique identifier (UUID) of an authentication resource.",
2929
alias="authenticationID",
3030
)
31+
transformation_ids: Optional[List[StrictStr]] = Field(
32+
default=None, alias="transformationIDs"
33+
)
3134

3235
model_config = ConfigDict(
3336
use_enum_values=True, populate_by_name=True, validate_assignment=True
@@ -79,6 +82,7 @@ def from_dict(cls, obj: Dict) -> Self:
7982
else None
8083
),
8184
"authenticationID": obj.get("authenticationID"),
85+
"transformationIDs": obj.get("transformationIDs"),
8286
}
8387
)
8488
return _obj

algoliasearch/ingestion/models/destination_update.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
from __future__ import annotations
88

99
from json import loads
10-
from typing import Any, Dict, Optional, Self
10+
from typing import Any, Dict, List, Optional, Self
1111

1212
from pydantic import BaseModel, ConfigDict, Field, StrictStr
1313

@@ -30,6 +30,9 @@ class DestinationUpdate(BaseModel):
3030
description="Universally unique identifier (UUID) of an authentication resource.",
3131
alias="authenticationID",
3232
)
33+
transformation_ids: Optional[List[StrictStr]] = Field(
34+
default=None, alias="transformationIDs"
35+
)
3336

3437
model_config = ConfigDict(
3538
use_enum_values=True, populate_by_name=True, validate_assignment=True
@@ -81,6 +84,7 @@ def from_dict(cls, obj: Dict) -> Self:
8184
else None
8285
),
8386
"authenticationID": obj.get("authenticationID"),
87+
"transformationIDs": obj.get("transformationIDs"),
8488
}
8589
)
8690
return _obj

0 commit comments

Comments
 (0)