Skip to content

Commit 3e91d84

Browse files
chore: generated code for commit f47a6a7. [skip ci]
Co-authored-by: Clément Vannicatte <[email protected]>
1 parent f47a6a7 commit 3e91d84

16 files changed

+1082
-1080
lines changed

clients/algoliasearch-client-java-2/algoliasearch-core/src/main/java/com/algolia/ApiClient.java

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ public void onResponse(Call call, Response response)
272272
* @param path The sub-path of the HTTP URL
273273
* @param method The request method, one of "GET", "HEAD", "OPTIONS", "POST", "PUT", "PATCH" and
274274
* "DELETE"
275-
* @param queryParams The query parameters
275+
* @param queryParameters The query parameters
276276
* @param body The request body object
277277
* @param headerParams The header parameters
278278
* @param requestOptions The requestOptions to send along with the query, they will be merged with
@@ -283,15 +283,15 @@ public void onResponse(Call call, Response response)
283283
public Call buildCall(
284284
String path,
285285
String method,
286-
Map<String, String> queryParams,
286+
Map<String, String> queryParameters,
287287
Object body,
288288
Map<String, String> headerParams,
289289
RequestOptions requestOptions
290290
) throws AlgoliaRuntimeException {
291291
Request request = buildRequest(
292292
path,
293293
method,
294-
queryParams,
294+
queryParameters,
295295
body,
296296
headerParams,
297297
requestOptions
@@ -306,7 +306,7 @@ public Call buildCall(
306306
* @param path The sub-path of the HTTP URL
307307
* @param method The request method, one of "GET", "HEAD", "OPTIONS", "POST", "PUT", "PATCH" and
308308
* "DELETE"
309-
* @param queryParams The query parameters
309+
* @param queryParameters The query parameters
310310
* @param body The request body object
311311
* @param headerParams The header parameters
312312
* @param requestOptions The requestOptions to send along with the query, they will be merged with
@@ -317,16 +317,16 @@ public Call buildCall(
317317
public Request buildRequest(
318318
String path,
319319
String method,
320-
Map<String, String> queryParams,
320+
Map<String, String> queryParameters,
321321
Object body,
322322
Map<String, String> headerParams,
323323
RequestOptions requestOptions
324324
) throws AlgoliaRuntimeException {
325325
boolean hasRequestOptions = requestOptions != null;
326326
final String url = buildUrl(
327327
path,
328-
queryParams,
329-
hasRequestOptions ? requestOptions.getExtraQueryParams() : null
328+
queryParameters,
329+
hasRequestOptions ? requestOptions.getExtraQueryParameters() : null
330330
);
331331
final Request.Builder reqBuilder = new Request.Builder().url(url);
332332
processHeaderParams(
@@ -357,22 +357,22 @@ public Request buildRequest(
357357
* Build full URL by concatenating base path, the given sub path and query parameters.
358358
*
359359
* @param path The sub path
360-
* @param queryParams The query parameters
361-
* @param extraQueryParams The query parameters, coming from the requestOptions
360+
* @param queryParameters The query parameters
361+
* @param extraQueryParameters The query parameters, coming from the requestOptions
362362
* @return The full URL
363363
*/
364364
public String buildUrl(
365365
String path,
366-
Map<String, String> queryParams,
367-
Map<String, String> extraQueryParams
366+
Map<String, String> queryParameters,
367+
Map<String, String> extraQueryParameters
368368
) {
369369
StringBuilder url = new StringBuilder();
370370

371371
// The real host will be assigned by the retry strategy
372372
url.append("http://temp.path").append(path);
373373

374-
url = parseQueryParameters(path, url, queryParams);
375-
url = parseQueryParameters(path, url, extraQueryParams);
374+
url = parseQueryParameters(path, url, queryParameters);
375+
url = parseQueryParameters(path, url, extraQueryParameters);
376376

377377
return url.toString();
378378
}
@@ -381,19 +381,19 @@ public String buildUrl(
381381
* Parses the given map of Query Parameters to a given URL.
382382
*
383383
* @param path The sub path
384-
* @param url The url to add queryParams to
385-
* @param queryParams The query parameters
384+
* @param url The url to add queryParameters to
385+
* @param queryParameters The query parameters
386386
* @return The URL
387387
*/
388388
public StringBuilder parseQueryParameters(
389389
String path,
390390
StringBuilder url,
391-
Map<String, String> queryParams
391+
Map<String, String> queryParameters
392392
) {
393-
if (queryParams != null && !queryParams.isEmpty()) {
393+
if (queryParameters != null && !queryParameters.isEmpty()) {
394394
// support (constant) query string in `path`, e.g. "/posts?draft=1"
395395
String prefix = path.contains("?") ? "&" : "?";
396-
for (Entry<String, String> param : queryParams.entrySet()) {
396+
for (Entry<String, String> param : queryParameters.entrySet()) {
397397
if (param.getValue() != null) {
398398
if (prefix != null) {
399399
url.append(prefix);

clients/algoliasearch-client-java-2/algoliasearch-core/src/main/java/com/algolia/api/AbtestingClient.java

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -133,14 +133,14 @@ public CompletableFuture<ABTestResponse> addABTestsAsync(
133133
// create path and map variables
134134
String requestPath = "/2/abtests";
135135

136-
Map<String, String> queryParams = new HashMap<String, String>();
136+
Map<String, String> queryParameters = new HashMap<String, String>();
137137
Map<String, String> headers = new HashMap<String, String>();
138138

139139
Call call =
140140
this.buildCall(
141141
requestPath,
142142
"POST",
143-
queryParams,
143+
queryParameters,
144144
bodyObj,
145145
headers,
146146
requestOptions
@@ -217,12 +217,12 @@ public CompletableFuture<Object> delAsync(
217217
// create path and map variables
218218
String requestPath = "/1{path}".replaceAll("\\{path\\}", path.toString());
219219

220-
Map<String, String> queryParams = new HashMap<String, String>();
220+
Map<String, String> queryParameters = new HashMap<String, String>();
221221
Map<String, String> headers = new HashMap<String, String>();
222222

223223
if (parameters != null) {
224224
for (Map.Entry<String, Object> parameter : parameters.entrySet()) {
225-
queryParams.put(
225+
queryParameters.put(
226226
parameter.getKey().toString(),
227227
parameterToString(parameter.getValue())
228228
);
@@ -233,7 +233,7 @@ public CompletableFuture<Object> delAsync(
233233
this.buildCall(
234234
requestPath,
235235
"DELETE",
236-
queryParams,
236+
queryParameters,
237237
bodyObj,
238238
headers,
239239
requestOptions
@@ -310,14 +310,14 @@ public CompletableFuture<ABTestResponse> deleteABTestAsync(
310310
this.escapeString(id.toString())
311311
);
312312

313-
Map<String, String> queryParams = new HashMap<String, String>();
313+
Map<String, String> queryParameters = new HashMap<String, String>();
314314
Map<String, String> headers = new HashMap<String, String>();
315315

316316
Call call =
317317
this.buildCall(
318318
requestPath,
319319
"DELETE",
320-
queryParams,
320+
queryParameters,
321321
bodyObj,
322322
headers,
323323
requestOptions
@@ -393,12 +393,12 @@ public CompletableFuture<Object> getAsync(
393393
// create path and map variables
394394
String requestPath = "/1{path}".replaceAll("\\{path\\}", path.toString());
395395

396-
Map<String, String> queryParams = new HashMap<String, String>();
396+
Map<String, String> queryParameters = new HashMap<String, String>();
397397
Map<String, String> headers = new HashMap<String, String>();
398398

399399
if (parameters != null) {
400400
for (Map.Entry<String, Object> parameter : parameters.entrySet()) {
401-
queryParams.put(
401+
queryParameters.put(
402402
parameter.getKey().toString(),
403403
parameterToString(parameter.getValue())
404404
);
@@ -409,7 +409,7 @@ public CompletableFuture<Object> getAsync(
409409
this.buildCall(
410410
requestPath,
411411
"GET",
412-
queryParams,
412+
queryParameters,
413413
bodyObj,
414414
headers,
415415
requestOptions
@@ -485,14 +485,14 @@ public CompletableFuture<ABTest> getABTestAsync(
485485
this.escapeString(id.toString())
486486
);
487487

488-
Map<String, String> queryParams = new HashMap<String, String>();
488+
Map<String, String> queryParameters = new HashMap<String, String>();
489489
Map<String, String> headers = new HashMap<String, String>();
490490

491491
Call call =
492492
this.buildCall(
493493
requestPath,
494494
"GET",
495-
queryParams,
495+
queryParameters,
496496
bodyObj,
497497
headers,
498498
requestOptions
@@ -568,22 +568,22 @@ public CompletableFuture<ListABTestsResponse> listABTestsAsync(
568568
// create path and map variables
569569
String requestPath = "/2/abtests";
570570

571-
Map<String, String> queryParams = new HashMap<String, String>();
571+
Map<String, String> queryParameters = new HashMap<String, String>();
572572
Map<String, String> headers = new HashMap<String, String>();
573573

574574
if (offset != null) {
575-
queryParams.put("offset", parameterToString(offset));
575+
queryParameters.put("offset", parameterToString(offset));
576576
}
577577

578578
if (limit != null) {
579-
queryParams.put("limit", parameterToString(limit));
579+
queryParameters.put("limit", parameterToString(limit));
580580
}
581581

582582
Call call =
583583
this.buildCall(
584584
requestPath,
585585
"GET",
586-
queryParams,
586+
queryParameters,
587587
bodyObj,
588588
headers,
589589
requestOptions
@@ -678,12 +678,12 @@ public CompletableFuture<Object> postAsync(
678678
// create path and map variables
679679
String requestPath = "/1{path}".replaceAll("\\{path\\}", path.toString());
680680

681-
Map<String, String> queryParams = new HashMap<String, String>();
681+
Map<String, String> queryParameters = new HashMap<String, String>();
682682
Map<String, String> headers = new HashMap<String, String>();
683683

684684
if (parameters != null) {
685685
for (Map.Entry<String, Object> parameter : parameters.entrySet()) {
686-
queryParams.put(
686+
queryParameters.put(
687687
parameter.getKey().toString(),
688688
parameterToString(parameter.getValue())
689689
);
@@ -694,7 +694,7 @@ public CompletableFuture<Object> postAsync(
694694
this.buildCall(
695695
requestPath,
696696
"POST",
697-
queryParams,
697+
queryParameters,
698698
bodyObj,
699699
headers,
700700
requestOptions
@@ -791,12 +791,12 @@ public CompletableFuture<Object> putAsync(
791791
// create path and map variables
792792
String requestPath = "/1{path}".replaceAll("\\{path\\}", path.toString());
793793

794-
Map<String, String> queryParams = new HashMap<String, String>();
794+
Map<String, String> queryParameters = new HashMap<String, String>();
795795
Map<String, String> headers = new HashMap<String, String>();
796796

797797
if (parameters != null) {
798798
for (Map.Entry<String, Object> parameter : parameters.entrySet()) {
799-
queryParams.put(
799+
queryParameters.put(
800800
parameter.getKey().toString(),
801801
parameterToString(parameter.getValue())
802802
);
@@ -807,7 +807,7 @@ public CompletableFuture<Object> putAsync(
807807
this.buildCall(
808808
requestPath,
809809
"PUT",
810-
queryParams,
810+
queryParameters,
811811
bodyObj,
812812
headers,
813813
requestOptions
@@ -888,14 +888,14 @@ public CompletableFuture<ABTestResponse> stopABTestAsync(
888888
this.escapeString(id.toString())
889889
);
890890

891-
Map<String, String> queryParams = new HashMap<String, String>();
891+
Map<String, String> queryParameters = new HashMap<String, String>();
892892
Map<String, String> headers = new HashMap<String, String>();
893893

894894
Call call =
895895
this.buildCall(
896896
requestPath,
897897
"POST",
898-
queryParams,
898+
queryParameters,
899899
bodyObj,
900900
headers,
901901
requestOptions

0 commit comments

Comments
 (0)