File tree 8 files changed +81
-10
lines changed
openlayer-java-core/src/main/kotlin/com/openlayer/api/models 8 files changed +81
-10
lines changed Original file line number Diff line number Diff line change @@ -206,8 +206,7 @@ private constructor(
206
206
)
207
207
}
208
208
209
- @JvmSynthetic
210
- internal fun _body (): Optional <Map <String , JsonValue >> =
209
+ fun _body (): Optional <Map <String , JsonValue >> =
211
210
Optional .ofNullable(additionalBodyProperties.ifEmpty { null })
212
211
213
212
fun _pathParam (index : Int ): String =
Original file line number Diff line number Diff line change @@ -120,6 +120,17 @@ private constructor(
120
120
this .inferencePipelineId = inferencePipelineId
121
121
}
122
122
123
+ /* *
124
+ * Sets the entire request body.
125
+ *
126
+ * This is generally only useful if you are already constructing the body separately.
127
+ * Otherwise, it's more convenient to use the top-level setters instead:
128
+ * - [description]
129
+ * - [name]
130
+ * - [referenceDatasetUri]
131
+ */
132
+ fun body (body : Body ) = apply { this .body = body.toBuilder() }
133
+
123
134
/* * The inference pipeline description. */
124
135
fun description (description : String? ) = apply { body.description(description) }
125
136
@@ -309,7 +320,7 @@ private constructor(
309
320
)
310
321
}
311
322
312
- @JvmSynthetic internal fun _body (): Body = body
323
+ fun _body (): Body = body
313
324
314
325
fun _pathParam (index : Int ): String =
315
326
when (index) {
Original file line number Diff line number Diff line change @@ -117,6 +117,16 @@ private constructor(
117
117
this .inferencePipelineId = inferencePipelineId
118
118
}
119
119
120
+ /* *
121
+ * Sets the entire request body.
122
+ *
123
+ * This is generally only useful if you are already constructing the body separately.
124
+ * Otherwise, it's more convenient to use the top-level setters instead:
125
+ * - [config]
126
+ * - [rows]
127
+ */
128
+ fun body (body : Body ) = apply { this .body = body.toBuilder() }
129
+
120
130
/* * Configuration for the data stream. Depends on your **Openlayer project task type**. */
121
131
fun config (config : Config ) = apply { body.config(config) }
122
132
@@ -312,7 +322,7 @@ private constructor(
312
322
)
313
323
}
314
324
315
- @JvmSynthetic internal fun _body (): Body = body
325
+ fun _body (): Body = body
316
326
317
327
fun _pathParam (index : Int ): String =
318
328
when (index) {
Original file line number Diff line number Diff line change @@ -98,6 +98,16 @@ private constructor(
98
98
/* * Specify the inference id as a query param. */
99
99
fun inferenceId (inferenceId : String ) = apply { this .inferenceId = inferenceId }
100
100
101
+ /* *
102
+ * Sets the entire request body.
103
+ *
104
+ * This is generally only useful if you are already constructing the body separately.
105
+ * Otherwise, it's more convenient to use the top-level setters instead:
106
+ * - [row]
107
+ * - [config]
108
+ */
109
+ fun body (body : Body ) = apply { this .body = body.toBuilder() }
110
+
101
111
fun row (row : JsonValue ) = apply { body.row(row) }
102
112
103
113
fun config (config : Config ? ) = apply { body.config(config) }
@@ -254,7 +264,7 @@ private constructor(
254
264
)
255
265
}
256
266
257
- @JvmSynthetic internal fun _body (): Body = body
267
+ fun _body (): Body = body
258
268
259
269
fun _pathParam (index : Int ): String =
260
270
when (index) {
Original file line number Diff line number Diff line change @@ -319,6 +319,20 @@ private constructor(
319
319
additionalQueryParams = projectCreateParams.additionalQueryParams.toBuilder()
320
320
}
321
321
322
+ /* *
323
+ * Sets the entire request body.
324
+ *
325
+ * This is generally only useful if you are already constructing the body separately.
326
+ * Otherwise, it's more convenient to use the top-level setters instead:
327
+ * - [id]
328
+ * - [creatorId]
329
+ * - [dateCreated]
330
+ * - [dateUpdated]
331
+ * - [developmentGoalCount]
332
+ * - etc.
333
+ */
334
+ fun body (body : Body ) = apply { this .body = body.toBuilder() }
335
+
322
336
/* * The project id. */
323
337
fun id (id : String ) = apply { body.id(id) }
324
338
@@ -685,7 +699,7 @@ private constructor(
685
699
)
686
700
}
687
701
688
- @JvmSynthetic internal fun _body (): Body = body
702
+ fun _body (): Body = body
689
703
690
704
override fun _headers (): Headers = additionalHeaders
691
705
Original file line number Diff line number Diff line change @@ -345,6 +345,20 @@ private constructor(
345
345
346
346
fun pathProjectId (pathProjectId : String ) = apply { this .pathProjectId = pathProjectId }
347
347
348
+ /* *
349
+ * Sets the entire request body.
350
+ *
351
+ * This is generally only useful if you are already constructing the body separately.
352
+ * Otherwise, it's more convenient to use the top-level setters instead:
353
+ * - [id]
354
+ * - [commit]
355
+ * - [dateArchived]
356
+ * - [dateCreated]
357
+ * - [failingGoalCount]
358
+ * - etc.
359
+ */
360
+ fun body (body : Body ) = apply { this .body = body.toBuilder() }
361
+
348
362
/* * The project version (commit) id. */
349
363
fun id (id : String ) = apply { body.id(id) }
350
364
@@ -760,7 +774,7 @@ private constructor(
760
774
)
761
775
}
762
776
763
- @JvmSynthetic internal fun _body (): Body = body
777
+ fun _body (): Body = body
764
778
765
779
fun _pathParam (index : Int ): String =
766
780
when (index) {
Original file line number Diff line number Diff line change @@ -360,6 +360,20 @@ private constructor(
360
360
361
361
fun pathProjectId (pathProjectId : String ) = apply { this .pathProjectId = pathProjectId }
362
362
363
+ /* *
364
+ * Sets the entire request body.
365
+ *
366
+ * This is generally only useful if you are already constructing the body separately.
367
+ * Otherwise, it's more convenient to use the top-level setters instead:
368
+ * - [id]
369
+ * - [dateCreated]
370
+ * - [dateLastEvaluated]
371
+ * - [dateLastSampleReceived]
372
+ * - [dateOfNextEvaluation]
373
+ * - etc.
374
+ */
375
+ fun body (body : Body ) = apply { this .body = body.toBuilder() }
376
+
363
377
/* * The inference pipeline id. */
364
378
fun id (id : String ) = apply { body.id(id) }
365
379
@@ -782,7 +796,7 @@ private constructor(
782
796
)
783
797
}
784
798
785
- @JvmSynthetic internal fun _body (): Body = body
799
+ fun _body (): Body = body
786
800
787
801
fun _pathParam (index : Int ): String =
788
802
when (index) {
Original file line number Diff line number Diff line change @@ -205,8 +205,7 @@ private constructor(
205
205
)
206
206
}
207
207
208
- @JvmSynthetic
209
- internal fun _body (): Optional <Map <String , JsonValue >> =
208
+ fun _body (): Optional <Map <String , JsonValue >> =
210
209
Optional .ofNullable(additionalBodyProperties.ifEmpty { null })
211
210
212
211
override fun _headers (): Headers = additionalHeaders
You can’t perform that action at this time.
0 commit comments