Skip to content

Commit 94ffc75

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 18434ae commit 94ffc75

File tree

2 files changed

+5
-60
lines changed

2 files changed

+5
-60
lines changed

Sources/Search/Models/UpdatedRuleResponse.swift

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

Sources/Search/SearchClient.swift

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2997,16 +2997,16 @@ open class SearchClient {
29972997
/// - parameter objectID: (path) Unique identifier of a rule object.
29982998
/// - parameter rule: (body)
29992999
/// - parameter forwardToReplicas: (query) Whether changes are applied to replica indices. (optional)
3000-
/// - returns: UpdatedRuleResponse
3000+
/// - returns: UpdatedAtResponse
30013001
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
30023002
open func saveRule(
30033003
indexName: String,
30043004
objectID: String,
30053005
rule: Rule,
30063006
forwardToReplicas: Bool? = nil,
30073007
requestOptions: RequestOptions? = nil
3008-
) async throws -> UpdatedRuleResponse {
3009-
let response: Response<UpdatedRuleResponse> = try await saveRuleWithHTTPInfo(
3008+
) async throws -> UpdatedAtResponse {
3009+
let response: Response<UpdatedAtResponse> = try await saveRuleWithHTTPInfo(
30103010
indexName: indexName,
30113011
objectID: objectID,
30123012
rule: rule,
@@ -3033,15 +3033,15 @@ open class SearchClient {
30333033
// - parameter rule: (body)
30343034
//
30353035
// - parameter forwardToReplicas: (query) Whether changes are applied to replica indices. (optional)
3036-
// - returns: RequestBuilder<UpdatedRuleResponse>
3036+
// - returns: RequestBuilder<UpdatedAtResponse>
30373037

30383038
open func saveRuleWithHTTPInfo(
30393039
indexName: String,
30403040
objectID: String,
30413041
rule: Rule,
30423042
forwardToReplicas: Bool? = nil,
30433043
requestOptions userRequestOptions: RequestOptions? = nil
3044-
) async throws -> Response<UpdatedRuleResponse> {
3044+
) async throws -> Response<UpdatedAtResponse> {
30453045
guard !indexName.isEmpty else {
30463046
throw AlgoliaError.invalidArgument("indexName", "saveRule")
30473047
}

0 commit comments

Comments
 (0)