Skip to content

Commit

Permalink
feat(clients): endpoint level timeout part 2 [skip-bc] (generated)
Browse files Browse the repository at this point in the history
algolia/api-clients-automation#4318

Co-authored-by: algolia-bot <[email protected]>
Co-authored-by: Thomas Raffray <[email protected]>
Co-authored-by: Pierre Millot <[email protected]>
  • Loading branch information
3 people committed Jan 13, 2025
1 parent c5b8ab2 commit 49d7bb8
Show file tree
Hide file tree
Showing 9 changed files with 816 additions and 202 deletions.
55 changes: 44 additions & 11 deletions Sources/Abtesting/AbtestingClient.swift
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,10 @@ open class AbtestingClient {
method: "POST",
path: resourcePath,
data: body,
requestOptions: RequestOptions(headers: headers, queryParameters: queryParameters) + userRequestOptions
requestOptions: RequestOptions(
headers: headers,
queryParameters: queryParameters
) + userRequestOptions
)
}

Expand Down Expand Up @@ -136,7 +139,10 @@ open class AbtestingClient {
method: "DELETE",
path: resourcePath,
data: body,
requestOptions: RequestOptions(headers: headers, queryParameters: queryParameters) + userRequestOptions
requestOptions: RequestOptions(
headers: headers,
queryParameters: queryParameters
) + userRequestOptions
)
}

Expand Down Expand Up @@ -198,7 +204,10 @@ open class AbtestingClient {
method: "GET",
path: resourcePath,
data: body,
requestOptions: RequestOptions(headers: headers, queryParameters: queryParameters) + userRequestOptions
requestOptions: RequestOptions(
headers: headers,
queryParameters: queryParameters
) + userRequestOptions
)
}

Expand Down Expand Up @@ -266,7 +275,10 @@ open class AbtestingClient {
method: "POST",
path: resourcePath,
data: body ?? AnyCodable(),
requestOptions: RequestOptions(headers: headers, queryParameters: queryParameters) + userRequestOptions
requestOptions: RequestOptions(
headers: headers,
queryParameters: queryParameters
) + userRequestOptions
)
}

Expand Down Expand Up @@ -334,7 +346,10 @@ open class AbtestingClient {
method: "PUT",
path: resourcePath,
data: body ?? AnyCodable(),
requestOptions: RequestOptions(headers: headers, queryParameters: queryParameters) + userRequestOptions
requestOptions: RequestOptions(
headers: headers,
queryParameters: queryParameters
) + userRequestOptions
)
}

Expand Down Expand Up @@ -380,7 +395,10 @@ open class AbtestingClient {
method: "DELETE",
path: resourcePath,
data: body,
requestOptions: RequestOptions(headers: headers, queryParameters: queryParameters) + userRequestOptions
requestOptions: RequestOptions(
headers: headers,
queryParameters: queryParameters
) + userRequestOptions
)
}

Expand Down Expand Up @@ -427,7 +445,10 @@ open class AbtestingClient {
method: "POST",
path: resourcePath,
data: body,
requestOptions: RequestOptions(headers: headers, queryParameters: queryParameters) + userRequestOptions
requestOptions: RequestOptions(
headers: headers,
queryParameters: queryParameters
) + userRequestOptions
)
}

Expand Down Expand Up @@ -470,7 +491,10 @@ open class AbtestingClient {
method: "GET",
path: resourcePath,
data: body,
requestOptions: RequestOptions(headers: headers, queryParameters: queryParameters) + userRequestOptions
requestOptions: RequestOptions(
headers: headers,
queryParameters: queryParameters
) + userRequestOptions
)
}

Expand Down Expand Up @@ -543,7 +567,10 @@ open class AbtestingClient {
method: "GET",
path: resourcePath,
data: body,
requestOptions: RequestOptions(headers: headers, queryParameters: queryParameters) + userRequestOptions
requestOptions: RequestOptions(
headers: headers,
queryParameters: queryParameters
) + userRequestOptions
)
}

Expand Down Expand Up @@ -589,7 +616,10 @@ open class AbtestingClient {
method: "POST",
path: resourcePath,
data: body,
requestOptions: RequestOptions(headers: headers, queryParameters: queryParameters) + userRequestOptions
requestOptions: RequestOptions(
headers: headers,
queryParameters: queryParameters
) + userRequestOptions
)
}

Expand Down Expand Up @@ -635,7 +665,10 @@ open class AbtestingClient {
method: "POST",
path: resourcePath,
data: body,
requestOptions: RequestOptions(headers: headers, queryParameters: queryParameters) + userRequestOptions
requestOptions: RequestOptions(
headers: headers,
queryParameters: queryParameters
) + userRequestOptions
)
}
}
Loading

0 comments on commit 49d7bb8

Please sign in to comment.