Skip to content

Commit 1cf0d00

Browse files
fix(specs): saveRule response type [skip-bc] (generated)
algolia/api-clients-automation#4170 Co-authored-by: algolia-bot <[email protected]> Co-authored-by: Clément Vannicatte <[email protected]>
1 parent 45b238c commit 1cf0d00

File tree

2 files changed

+6
-84
lines changed

2 files changed

+6
-84
lines changed

algoliasearch/search/client.py

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,6 @@
129129
from algoliasearch.search.models.updated_at_with_object_id_response import (
130130
UpdatedAtWithObjectIdResponse,
131131
)
132-
from algoliasearch.search.models.updated_rule_response import UpdatedRuleResponse
133132
from algoliasearch.search.models.user_id import UserId
134133

135134

@@ -4045,7 +4044,7 @@ async def save_rule(
40454044
Field(description="Whether changes are applied to replica indices."),
40464045
] = None,
40474046
request_options: Optional[Union[dict, RequestOptions]] = None,
4048-
) -> UpdatedRuleResponse:
4047+
) -> UpdatedAtResponse:
40494048
"""
40504049
If a rule with the specified object ID doesn't exist, it's created. Otherwise, the existing rule is replaced. To create or update more than one rule, use the [`batch` operation](#tag/Rules/operation/saveRules).
40514050
@@ -4061,12 +4060,12 @@ async def save_rule(
40614060
:param forward_to_replicas: Whether changes are applied to replica indices.
40624061
:type forward_to_replicas: bool
40634062
:param request_options: The request options to send along with the query, they will be merged with the transporter base parameters (headers, query params, timeouts, etc.). (optional)
4064-
:return: Returns the deserialized response in a 'UpdatedRuleResponse' result object.
4063+
:return: Returns the deserialized response in a 'UpdatedAtResponse' result object.
40654064
"""
40664065
resp = await self.save_rule_with_http_info(
40674066
index_name, object_id, rule, forward_to_replicas, request_options
40684067
)
4069-
return resp.deserialize(UpdatedRuleResponse, resp.raw_data)
4068+
return resp.deserialize(UpdatedAtResponse, resp.raw_data)
40704069

40714070
async def save_rules_with_http_info(
40724071
self,
@@ -9043,7 +9042,7 @@ def save_rule(
90439042
Field(description="Whether changes are applied to replica indices."),
90449043
] = None,
90459044
request_options: Optional[Union[dict, RequestOptions]] = None,
9046-
) -> UpdatedRuleResponse:
9045+
) -> UpdatedAtResponse:
90479046
"""
90489047
If a rule with the specified object ID doesn't exist, it's created. Otherwise, the existing rule is replaced. To create or update more than one rule, use the [`batch` operation](#tag/Rules/operation/saveRules).
90499048
@@ -9059,12 +9058,12 @@ def save_rule(
90599058
:param forward_to_replicas: Whether changes are applied to replica indices.
90609059
:type forward_to_replicas: bool
90619060
:param request_options: The request options to send along with the query, they will be merged with the transporter base parameters (headers, query params, timeouts, etc.). (optional)
9062-
:return: Returns the deserialized response in a 'UpdatedRuleResponse' result object.
9061+
:return: Returns the deserialized response in a 'UpdatedAtResponse' result object.
90639062
"""
90649063
resp = self.save_rule_with_http_info(
90659064
index_name, object_id, rule, forward_to_replicas, request_options
90669065
)
9067-
return resp.deserialize(UpdatedRuleResponse, resp.raw_data)
9066+
return resp.deserialize(UpdatedAtResponse, resp.raw_data)
90689067

90699068
def save_rules_with_http_info(
90709069
self,

algoliasearch/search/models/updated_rule_response.py

Lines changed: 0 additions & 77 deletions
This file was deleted.

0 commit comments

Comments
 (0)