Skip to content

Commit

Permalink
fix(specs): saveRule response type [skip-bc] (generated)
Browse files Browse the repository at this point in the history
algolia/api-clients-automation#4170

Co-authored-by: algolia-bot <[email protected]>
Co-authored-by: Clément Vannicatte <[email protected]>
  • Loading branch information
algolia-bot and shortcuts committed Nov 26, 2024
1 parent 45b238c commit 1cf0d00
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 84 deletions.
13 changes: 6 additions & 7 deletions algoliasearch/search/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,6 @@
from algoliasearch.search.models.updated_at_with_object_id_response import (
UpdatedAtWithObjectIdResponse,
)
from algoliasearch.search.models.updated_rule_response import UpdatedRuleResponse
from algoliasearch.search.models.user_id import UserId


Expand Down Expand Up @@ -4045,7 +4044,7 @@ async def save_rule(
Field(description="Whether changes are applied to replica indices."),
] = None,
request_options: Optional[Union[dict, RequestOptions]] = None,
) -> UpdatedRuleResponse:
) -> UpdatedAtResponse:
"""
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).
Expand All @@ -4061,12 +4060,12 @@ async def save_rule(
:param forward_to_replicas: Whether changes are applied to replica indices.
:type forward_to_replicas: bool
: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)
:return: Returns the deserialized response in a 'UpdatedRuleResponse' result object.
:return: Returns the deserialized response in a 'UpdatedAtResponse' result object.
"""
resp = await self.save_rule_with_http_info(
index_name, object_id, rule, forward_to_replicas, request_options
)
return resp.deserialize(UpdatedRuleResponse, resp.raw_data)
return resp.deserialize(UpdatedAtResponse, resp.raw_data)

async def save_rules_with_http_info(
self,
Expand Down Expand Up @@ -9043,7 +9042,7 @@ def save_rule(
Field(description="Whether changes are applied to replica indices."),
] = None,
request_options: Optional[Union[dict, RequestOptions]] = None,
) -> UpdatedRuleResponse:
) -> UpdatedAtResponse:
"""
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).
Expand All @@ -9059,12 +9058,12 @@ def save_rule(
:param forward_to_replicas: Whether changes are applied to replica indices.
:type forward_to_replicas: bool
: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)
:return: Returns the deserialized response in a 'UpdatedRuleResponse' result object.
:return: Returns the deserialized response in a 'UpdatedAtResponse' result object.
"""
resp = self.save_rule_with_http_info(
index_name, object_id, rule, forward_to_replicas, request_options
)
return resp.deserialize(UpdatedRuleResponse, resp.raw_data)
return resp.deserialize(UpdatedAtResponse, resp.raw_data)

def save_rules_with_http_info(
self,
Expand Down
77 changes: 0 additions & 77 deletions algoliasearch/search/models/updated_rule_response.py

This file was deleted.

0 comments on commit 1cf0d00

Please sign in to comment.