Skip to content

Commit 8ef7ea4

Browse files
fix: fix casing issue
1 parent fd5a6f2 commit 8ef7ea4

188 files changed

Lines changed: 3979 additions & 3869 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

braintrust-java-client-okhttp/src/main/kotlin/com/braintrustdata/api/client/okhttp/BraintrustOkHttpClient.kt

Lines changed: 31 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -209,33 +209,33 @@ class BraintrustOkHttpClient private constructor() {
209209

210210
fun putHeader(name: String, value: String) = apply { clientOptions.putHeader(name, value) }
211211

212-
fun putheaders(name: String, values: Iterable<String>) = apply {
213-
clientOptions.putheaders(name, values)
212+
fun putHeaders(name: String, values: Iterable<String>) = apply {
213+
clientOptions.putHeaders(name, values)
214214
}
215215

216-
fun putAllheaders(headers: Headers) = apply { clientOptions.putAllheaders(headers) }
216+
fun putAllHeaders(headers: Headers) = apply { clientOptions.putAllHeaders(headers) }
217217

218-
fun putAllheaders(headers: Map<String, Iterable<String>>) = apply {
219-
clientOptions.putAllheaders(headers)
218+
fun putAllHeaders(headers: Map<String, Iterable<String>>) = apply {
219+
clientOptions.putAllHeaders(headers)
220220
}
221221

222-
fun replaceheaders(name: String, value: String) = apply {
223-
clientOptions.replaceheaders(name, value)
222+
fun replaceHeaders(name: String, value: String) = apply {
223+
clientOptions.replaceHeaders(name, value)
224224
}
225225

226-
fun replaceheaders(name: String, values: Iterable<String>) = apply {
227-
clientOptions.replaceheaders(name, values)
226+
fun replaceHeaders(name: String, values: Iterable<String>) = apply {
227+
clientOptions.replaceHeaders(name, values)
228228
}
229229

230-
fun replaceAllheaders(headers: Headers) = apply { clientOptions.replaceAllheaders(headers) }
230+
fun replaceAllHeaders(headers: Headers) = apply { clientOptions.replaceAllHeaders(headers) }
231231

232-
fun replaceAllheaders(headers: Map<String, Iterable<String>>) = apply {
233-
clientOptions.replaceAllheaders(headers)
232+
fun replaceAllHeaders(headers: Map<String, Iterable<String>>) = apply {
233+
clientOptions.replaceAllHeaders(headers)
234234
}
235235

236-
fun removeheaders(name: String) = apply { clientOptions.removeheaders(name) }
236+
fun removeHeaders(name: String) = apply { clientOptions.removeHeaders(name) }
237237

238-
fun removeAllheaders(names: Set<String>) = apply { clientOptions.removeAllheaders(names) }
238+
fun removeAllHeaders(names: Set<String>) = apply { clientOptions.removeAllHeaders(names) }
239239

240240
fun queryParams(queryParams: QueryParams) = apply { clientOptions.queryParams(queryParams) }
241241

@@ -247,38 +247,38 @@ class BraintrustOkHttpClient private constructor() {
247247
clientOptions.putQueryParam(key, value)
248248
}
249249

250-
fun putquery_params(key: String, values: Iterable<String>) = apply {
251-
clientOptions.putquery_params(key, values)
250+
fun putQueryParams(key: String, values: Iterable<String>) = apply {
251+
clientOptions.putQueryParams(key, values)
252252
}
253253

254-
fun putAllquery_params(queryParams: QueryParams) = apply {
255-
clientOptions.putAllquery_params(queryParams)
254+
fun putAllQueryParams(queryParams: QueryParams) = apply {
255+
clientOptions.putAllQueryParams(queryParams)
256256
}
257257

258-
fun putAllquery_params(queryParams: Map<String, Iterable<String>>) = apply {
259-
clientOptions.putAllquery_params(queryParams)
258+
fun putAllQueryParams(queryParams: Map<String, Iterable<String>>) = apply {
259+
clientOptions.putAllQueryParams(queryParams)
260260
}
261261

262-
fun replacequery_params(key: String, value: String) = apply {
263-
clientOptions.replacequery_params(key, value)
262+
fun replaceQueryParams(key: String, value: String) = apply {
263+
clientOptions.replaceQueryParams(key, value)
264264
}
265265

266-
fun replacequery_params(key: String, values: Iterable<String>) = apply {
267-
clientOptions.replacequery_params(key, values)
266+
fun replaceQueryParams(key: String, values: Iterable<String>) = apply {
267+
clientOptions.replaceQueryParams(key, values)
268268
}
269269

270-
fun replaceAllquery_params(queryParams: QueryParams) = apply {
271-
clientOptions.replaceAllquery_params(queryParams)
270+
fun replaceAllQueryParams(queryParams: QueryParams) = apply {
271+
clientOptions.replaceAllQueryParams(queryParams)
272272
}
273273

274-
fun replaceAllquery_params(queryParams: Map<String, Iterable<String>>) = apply {
275-
clientOptions.replaceAllquery_params(queryParams)
274+
fun replaceAllQueryParams(queryParams: Map<String, Iterable<String>>) = apply {
275+
clientOptions.replaceAllQueryParams(queryParams)
276276
}
277277

278-
fun removequery_params(key: String) = apply { clientOptions.removequery_params(key) }
278+
fun removeQueryParams(key: String) = apply { clientOptions.removeQueryParams(key) }
279279

280-
fun removeAllquery_params(keys: Set<String>) = apply {
281-
clientOptions.removeAllquery_params(keys)
280+
fun removeAllQueryParams(keys: Set<String>) = apply {
281+
clientOptions.removeAllQueryParams(keys)
282282
}
283283

284284
/**

braintrust-java-client-okhttp/src/main/kotlin/com/braintrustdata/api/client/okhttp/BraintrustOkHttpClientAsync.kt

Lines changed: 31 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -209,33 +209,33 @@ class BraintrustOkHttpClientAsync private constructor() {
209209

210210
fun putHeader(name: String, value: String) = apply { clientOptions.putHeader(name, value) }
211211

212-
fun putheaders(name: String, values: Iterable<String>) = apply {
213-
clientOptions.putheaders(name, values)
212+
fun putHeaders(name: String, values: Iterable<String>) = apply {
213+
clientOptions.putHeaders(name, values)
214214
}
215215

216-
fun putAllheaders(headers: Headers) = apply { clientOptions.putAllheaders(headers) }
216+
fun putAllHeaders(headers: Headers) = apply { clientOptions.putAllHeaders(headers) }
217217

218-
fun putAllheaders(headers: Map<String, Iterable<String>>) = apply {
219-
clientOptions.putAllheaders(headers)
218+
fun putAllHeaders(headers: Map<String, Iterable<String>>) = apply {
219+
clientOptions.putAllHeaders(headers)
220220
}
221221

222-
fun replaceheaders(name: String, value: String) = apply {
223-
clientOptions.replaceheaders(name, value)
222+
fun replaceHeaders(name: String, value: String) = apply {
223+
clientOptions.replaceHeaders(name, value)
224224
}
225225

226-
fun replaceheaders(name: String, values: Iterable<String>) = apply {
227-
clientOptions.replaceheaders(name, values)
226+
fun replaceHeaders(name: String, values: Iterable<String>) = apply {
227+
clientOptions.replaceHeaders(name, values)
228228
}
229229

230-
fun replaceAllheaders(headers: Headers) = apply { clientOptions.replaceAllheaders(headers) }
230+
fun replaceAllHeaders(headers: Headers) = apply { clientOptions.replaceAllHeaders(headers) }
231231

232-
fun replaceAllheaders(headers: Map<String, Iterable<String>>) = apply {
233-
clientOptions.replaceAllheaders(headers)
232+
fun replaceAllHeaders(headers: Map<String, Iterable<String>>) = apply {
233+
clientOptions.replaceAllHeaders(headers)
234234
}
235235

236-
fun removeheaders(name: String) = apply { clientOptions.removeheaders(name) }
236+
fun removeHeaders(name: String) = apply { clientOptions.removeHeaders(name) }
237237

238-
fun removeAllheaders(names: Set<String>) = apply { clientOptions.removeAllheaders(names) }
238+
fun removeAllHeaders(names: Set<String>) = apply { clientOptions.removeAllHeaders(names) }
239239

240240
fun queryParams(queryParams: QueryParams) = apply { clientOptions.queryParams(queryParams) }
241241

@@ -247,38 +247,38 @@ class BraintrustOkHttpClientAsync private constructor() {
247247
clientOptions.putQueryParam(key, value)
248248
}
249249

250-
fun putquery_params(key: String, values: Iterable<String>) = apply {
251-
clientOptions.putquery_params(key, values)
250+
fun putQueryParams(key: String, values: Iterable<String>) = apply {
251+
clientOptions.putQueryParams(key, values)
252252
}
253253

254-
fun putAllquery_params(queryParams: QueryParams) = apply {
255-
clientOptions.putAllquery_params(queryParams)
254+
fun putAllQueryParams(queryParams: QueryParams) = apply {
255+
clientOptions.putAllQueryParams(queryParams)
256256
}
257257

258-
fun putAllquery_params(queryParams: Map<String, Iterable<String>>) = apply {
259-
clientOptions.putAllquery_params(queryParams)
258+
fun putAllQueryParams(queryParams: Map<String, Iterable<String>>) = apply {
259+
clientOptions.putAllQueryParams(queryParams)
260260
}
261261

262-
fun replacequery_params(key: String, value: String) = apply {
263-
clientOptions.replacequery_params(key, value)
262+
fun replaceQueryParams(key: String, value: String) = apply {
263+
clientOptions.replaceQueryParams(key, value)
264264
}
265265

266-
fun replacequery_params(key: String, values: Iterable<String>) = apply {
267-
clientOptions.replacequery_params(key, values)
266+
fun replaceQueryParams(key: String, values: Iterable<String>) = apply {
267+
clientOptions.replaceQueryParams(key, values)
268268
}
269269

270-
fun replaceAllquery_params(queryParams: QueryParams) = apply {
271-
clientOptions.replaceAllquery_params(queryParams)
270+
fun replaceAllQueryParams(queryParams: QueryParams) = apply {
271+
clientOptions.replaceAllQueryParams(queryParams)
272272
}
273273

274-
fun replaceAllquery_params(queryParams: Map<String, Iterable<String>>) = apply {
275-
clientOptions.replaceAllquery_params(queryParams)
274+
fun replaceAllQueryParams(queryParams: Map<String, Iterable<String>>) = apply {
275+
clientOptions.replaceAllQueryParams(queryParams)
276276
}
277277

278-
fun removequery_params(key: String) = apply { clientOptions.removequery_params(key) }
278+
fun removeQueryParams(key: String) = apply { clientOptions.removeQueryParams(key) }
279279

280-
fun removeAllquery_params(keys: Set<String>) = apply {
281-
clientOptions.removeAllquery_params(keys)
280+
fun removeAllQueryParams(keys: Set<String>) = apply {
281+
clientOptions.removeAllQueryParams(keys)
282282
}
283283

284284
/**

braintrust-java-core/src/main/kotlin/com/braintrustdata/api/core/ClientOptions.kt

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -285,83 +285,83 @@ private constructor(
285285

286286
fun headers(headers: Headers) = apply {
287287
this.headers.clear()
288-
putAllheaders(headers)
288+
putAllHeaders(headers)
289289
}
290290

291291
fun headers(headers: Map<String, Iterable<String>>) = apply {
292292
this.headers.clear()
293-
putAllheaders(headers)
293+
putAllHeaders(headers)
294294
}
295295

296296
fun putHeader(name: String, value: String) = apply { headers.put(name, value) }
297297

298-
fun putheaders(name: String, values: Iterable<String>) = apply { headers.put(name, values) }
298+
fun putHeaders(name: String, values: Iterable<String>) = apply { headers.put(name, values) }
299299

300-
fun putAllheaders(headers: Headers) = apply { this.headers.putAll(headers) }
300+
fun putAllHeaders(headers: Headers) = apply { this.headers.putAll(headers) }
301301

302-
fun putAllheaders(headers: Map<String, Iterable<String>>) = apply {
302+
fun putAllHeaders(headers: Map<String, Iterable<String>>) = apply {
303303
this.headers.putAll(headers)
304304
}
305305

306-
fun replaceheaders(name: String, value: String) = apply { headers.replace(name, value) }
306+
fun replaceHeaders(name: String, value: String) = apply { headers.replace(name, value) }
307307

308-
fun replaceheaders(name: String, values: Iterable<String>) = apply {
308+
fun replaceHeaders(name: String, values: Iterable<String>) = apply {
309309
headers.replace(name, values)
310310
}
311311

312-
fun replaceAllheaders(headers: Headers) = apply { this.headers.replaceAll(headers) }
312+
fun replaceAllHeaders(headers: Headers) = apply { this.headers.replaceAll(headers) }
313313

314-
fun replaceAllheaders(headers: Map<String, Iterable<String>>) = apply {
314+
fun replaceAllHeaders(headers: Map<String, Iterable<String>>) = apply {
315315
this.headers.replaceAll(headers)
316316
}
317317

318-
fun removeheaders(name: String) = apply { headers.remove(name) }
318+
fun removeHeaders(name: String) = apply { headers.remove(name) }
319319

320-
fun removeAllheaders(names: Set<String>) = apply { headers.removeAll(names) }
320+
fun removeAllHeaders(names: Set<String>) = apply { headers.removeAll(names) }
321321

322322
fun queryParams(queryParams: QueryParams) = apply {
323323
this.queryParams.clear()
324-
putAllquery_params(queryParams)
324+
putAllQueryParams(queryParams)
325325
}
326326

327327
fun queryParams(queryParams: Map<String, Iterable<String>>) = apply {
328328
this.queryParams.clear()
329-
putAllquery_params(queryParams)
329+
putAllQueryParams(queryParams)
330330
}
331331

332332
fun putQueryParam(key: String, value: String) = apply { queryParams.put(key, value) }
333333

334-
fun putquery_params(key: String, values: Iterable<String>) = apply {
334+
fun putQueryParams(key: String, values: Iterable<String>) = apply {
335335
queryParams.put(key, values)
336336
}
337337

338-
fun putAllquery_params(queryParams: QueryParams) = apply {
338+
fun putAllQueryParams(queryParams: QueryParams) = apply {
339339
this.queryParams.putAll(queryParams)
340340
}
341341

342-
fun putAllquery_params(queryParams: Map<String, Iterable<String>>) = apply {
342+
fun putAllQueryParams(queryParams: Map<String, Iterable<String>>) = apply {
343343
this.queryParams.putAll(queryParams)
344344
}
345345

346-
fun replacequery_params(key: String, value: String) = apply {
346+
fun replaceQueryParams(key: String, value: String) = apply {
347347
queryParams.replace(key, value)
348348
}
349349

350-
fun replacequery_params(key: String, values: Iterable<String>) = apply {
350+
fun replaceQueryParams(key: String, values: Iterable<String>) = apply {
351351
queryParams.replace(key, values)
352352
}
353353

354-
fun replaceAllquery_params(queryParams: QueryParams) = apply {
354+
fun replaceAllQueryParams(queryParams: QueryParams) = apply {
355355
this.queryParams.replaceAll(queryParams)
356356
}
357357

358-
fun replaceAllquery_params(queryParams: Map<String, Iterable<String>>) = apply {
358+
fun replaceAllQueryParams(queryParams: Map<String, Iterable<String>>) = apply {
359359
this.queryParams.replaceAll(queryParams)
360360
}
361361

362-
fun removequery_params(key: String) = apply { queryParams.remove(key) }
362+
fun removeQueryParams(key: String) = apply { queryParams.remove(key) }
363363

364-
fun removeAllquery_params(keys: Set<String>) = apply { queryParams.removeAll(keys) }
364+
fun removeAllQueryParams(keys: Set<String>) = apply { queryParams.removeAll(keys) }
365365

366366
fun timeout(): Timeout = timeout
367367

0 commit comments

Comments
 (0)