openlayer 0.4.1 → 0.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (60) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +35 -0
  3. data/README.md +1 -1
  4. data/lib/openlayer/client.rb +4 -0
  5. data/lib/openlayer/internal/transport/base_client.rb +7 -1
  6. data/lib/openlayer/internal/transport/pooled_net_requester.rb +38 -26
  7. data/lib/openlayer/internal/util.rb +3 -2
  8. data/lib/openlayer/models/inference_pipeline_retrieve_response.rb +507 -1
  9. data/lib/openlayer/models/inference_pipeline_update_response.rb +507 -1
  10. data/lib/openlayer/models/projects/inference_pipeline_create_params.rb +609 -1
  11. data/lib/openlayer/models/projects/inference_pipeline_create_response.rb +507 -1
  12. data/lib/openlayer/models/projects/inference_pipeline_list_response.rb +507 -1
  13. data/lib/openlayer/models/projects/test_create_params.rb +49 -1
  14. data/lib/openlayer/models/projects/test_create_response.rb +49 -1
  15. data/lib/openlayer/models/projects/test_list_response.rb +49 -1
  16. data/lib/openlayer/models/test_evaluate_params.rb +50 -0
  17. data/lib/openlayer/models/test_evaluate_response.rb +75 -0
  18. data/lib/openlayer/models.rb +2 -0
  19. data/lib/openlayer/resources/projects/inference_pipelines.rb +3 -1
  20. data/lib/openlayer/resources/projects/tests.rb +9 -1
  21. data/lib/openlayer/resources/tests.rb +50 -0
  22. data/lib/openlayer/version.rb +1 -1
  23. data/lib/openlayer.rb +5 -0
  24. data/manifest.yaml +2 -0
  25. data/rbi/openlayer/client.rbi +3 -0
  26. data/rbi/openlayer/internal/transport/base_client.rbi +5 -0
  27. data/rbi/openlayer/internal/transport/pooled_net_requester.rbi +6 -2
  28. data/rbi/openlayer/internal/type/base_model.rbi +8 -4
  29. data/rbi/openlayer/models/inference_pipeline_retrieve_response.rbi +948 -0
  30. data/rbi/openlayer/models/inference_pipeline_update_response.rbi +948 -0
  31. data/rbi/openlayer/models/projects/inference_pipeline_create_params.rbi +1095 -0
  32. data/rbi/openlayer/models/projects/inference_pipeline_create_response.rbi +952 -0
  33. data/rbi/openlayer/models/projects/inference_pipeline_list_response.rbi +952 -0
  34. data/rbi/openlayer/models/projects/test_create_params.rbi +40 -0
  35. data/rbi/openlayer/models/projects/test_create_response.rbi +40 -0
  36. data/rbi/openlayer/models/projects/test_list_response.rbi +40 -0
  37. data/rbi/openlayer/models/test_evaluate_params.rbi +75 -0
  38. data/rbi/openlayer/models/test_evaluate_response.rbi +121 -0
  39. data/rbi/openlayer/models.rbi +2 -0
  40. data/rbi/openlayer/resources/projects/inference_pipelines.rbi +12 -0
  41. data/rbi/openlayer/resources/projects/tests.rbi +16 -0
  42. data/rbi/openlayer/resources/tests.rbi +42 -0
  43. data/sig/openlayer/client.rbs +2 -0
  44. data/sig/openlayer/internal/transport/base_client.rbs +2 -0
  45. data/sig/openlayer/internal/transport/pooled_net_requester.rbs +4 -1
  46. data/sig/openlayer/models/inference_pipeline_retrieve_response.rbs +473 -0
  47. data/sig/openlayer/models/inference_pipeline_update_response.rbs +473 -0
  48. data/sig/openlayer/models/projects/inference_pipeline_create_params.rbs +493 -0
  49. data/sig/openlayer/models/projects/inference_pipeline_create_response.rbs +473 -0
  50. data/sig/openlayer/models/projects/inference_pipeline_list_response.rbs +473 -0
  51. data/sig/openlayer/models/projects/test_create_params.rbs +20 -0
  52. data/sig/openlayer/models/projects/test_create_response.rbs +20 -0
  53. data/sig/openlayer/models/projects/test_list_response.rbs +20 -0
  54. data/sig/openlayer/models/test_evaluate_params.rbs +45 -0
  55. data/sig/openlayer/models/test_evaluate_response.rbs +63 -0
  56. data/sig/openlayer/models.rbs +2 -0
  57. data/sig/openlayer/resources/projects/inference_pipelines.rbs +1 -0
  58. data/sig/openlayer/resources/projects/tests.rbs +4 -0
  59. data/sig/openlayer/resources/tests.rbs +16 -0
  60. metadata +11 -2
@@ -16,6 +16,14 @@ module Openlayer
16
16
  # @return [String]
17
17
  required :name, String
18
18
 
19
+ # @!attribute data_backend
20
+ #
21
+ # @return [Openlayer::Models::InferencePipelineUpdateResponse::DataBackend::UnionMember0, Openlayer::Models::InferencePipelineUpdateResponse::DataBackend::BackendType, Openlayer::Models::InferencePipelineUpdateResponse::DataBackend::UnionMember2, Openlayer::Models::InferencePipelineUpdateResponse::DataBackend::UnionMember3, Openlayer::Models::InferencePipelineUpdateResponse::DataBackend::UnionMember4, Openlayer::Models::InferencePipelineUpdateResponse::DataBackend::UnionMember5, nil]
22
+ optional :data_backend,
23
+ union: -> { Openlayer::Models::InferencePipelineUpdateResponse::DataBackend },
24
+ api_name: :dataBackend,
25
+ nil?: true
26
+
19
27
  # @!attribute project
20
28
  #
21
29
  # @return [Openlayer::Models::InferencePipelineUpdateResponse::Project, nil]
@@ -104,6 +112,18 @@ module Openlayer
104
112
  # @return [Integer]
105
113
  required :total_goal_count, Integer, api_name: :totalGoalCount
106
114
 
115
+ # @!attribute date_last_polled
116
+ # The last time the data was polled.
117
+ #
118
+ # @return [Time, nil]
119
+ optional :date_last_polled, Time, api_name: :dateLastPolled, nil?: true
120
+
121
+ # @!attribute total_records_count
122
+ # The total number of records in the data backend.
123
+ #
124
+ # @return [Integer, nil]
125
+ optional :total_records_count, Integer, api_name: :totalRecordsCount, nil?: true
126
+
107
127
  # @!attribute workspace_id
108
128
  # The workspace id.
109
129
  #
@@ -111,7 +131,7 @@ module Openlayer
111
131
  optional :workspace_id, String, api_name: :workspaceId
112
132
  end
113
133
 
114
- # @!method initialize(id:, date_created:, date_last_evaluated:, date_last_sample_received:, date_of_next_evaluation:, date_updated:, description:, failing_goal_count:, links:, name:, passing_goal_count:, project_id:, status:, status_message:, total_goal_count:, project: nil, workspace: nil, workspace_id: nil)
134
+ # @!method initialize(id:, date_created:, date_last_evaluated:, date_last_sample_received:, date_of_next_evaluation:, date_updated:, description:, failing_goal_count:, links:, name:, passing_goal_count:, project_id:, status:, status_message:, total_goal_count:, data_backend: nil, date_last_polled: nil, project: nil, total_records_count: nil, workspace: nil, workspace_id: nil)
115
135
  # @param id [String] The inference pipeline id.
116
136
  #
117
137
  # @param date_created [Time] The creation date.
@@ -142,8 +162,14 @@ module Openlayer
142
162
  #
143
163
  # @param total_goal_count [Integer] The total number of tests.
144
164
  #
165
+ # @param data_backend [Openlayer::Models::InferencePipelineUpdateResponse::DataBackend::UnionMember0, Openlayer::Models::InferencePipelineUpdateResponse::DataBackend::BackendType, Openlayer::Models::InferencePipelineUpdateResponse::DataBackend::UnionMember2, Openlayer::Models::InferencePipelineUpdateResponse::DataBackend::UnionMember3, Openlayer::Models::InferencePipelineUpdateResponse::DataBackend::UnionMember4, Openlayer::Models::InferencePipelineUpdateResponse::DataBackend::UnionMember5, nil]
166
+ #
167
+ # @param date_last_polled [Time, nil] The last time the data was polled.
168
+ #
145
169
  # @param project [Openlayer::Models::InferencePipelineUpdateResponse::Project, nil]
146
170
  #
171
+ # @param total_records_count [Integer, nil] The total number of records in the data backend.
172
+ #
147
173
  # @param workspace [Openlayer::Models::InferencePipelineUpdateResponse::Workspace, nil]
148
174
  #
149
175
  # @param workspace_id [String] The workspace id.
@@ -176,6 +202,486 @@ module Openlayer
176
202
  # @return [Array<Symbol>]
177
203
  end
178
204
 
205
+ # @see Openlayer::Models::InferencePipelineUpdateResponse#data_backend
206
+ module DataBackend
207
+ extend Openlayer::Internal::Type::Union
208
+
209
+ variant -> { Openlayer::Models::InferencePipelineUpdateResponse::DataBackend::UnionMember0 }
210
+
211
+ variant -> { Openlayer::Models::InferencePipelineUpdateResponse::DataBackend::BackendType }
212
+
213
+ variant -> { Openlayer::Models::InferencePipelineUpdateResponse::DataBackend::UnionMember2 }
214
+
215
+ variant -> { Openlayer::Models::InferencePipelineUpdateResponse::DataBackend::UnionMember3 }
216
+
217
+ variant -> { Openlayer::Models::InferencePipelineUpdateResponse::DataBackend::UnionMember4 }
218
+
219
+ variant -> { Openlayer::Models::InferencePipelineUpdateResponse::DataBackend::UnionMember5 }
220
+
221
+ class UnionMember0 < Openlayer::Internal::Type::BaseModel
222
+ # @!attribute backend_type
223
+ #
224
+ # @return [Symbol, Openlayer::Models::InferencePipelineUpdateResponse::DataBackend::UnionMember0::BackendType]
225
+ required :backend_type,
226
+ enum: -> { Openlayer::Models::InferencePipelineUpdateResponse::DataBackend::UnionMember0::BackendType },
227
+ api_name: :backendType
228
+
229
+ # @!attribute bigquery_connection_id
230
+ #
231
+ # @return [String, nil]
232
+ required :bigquery_connection_id, String, api_name: :bigqueryConnectionId, nil?: true
233
+
234
+ # @!attribute dataset_id
235
+ #
236
+ # @return [String]
237
+ required :dataset_id, String, api_name: :datasetId
238
+
239
+ # @!attribute project_id
240
+ #
241
+ # @return [String]
242
+ required :project_id, String, api_name: :projectId
243
+
244
+ # @!attribute table_id
245
+ #
246
+ # @return [String, nil]
247
+ required :table_id, String, api_name: :tableId, nil?: true
248
+
249
+ # @!attribute partition_type
250
+ #
251
+ # @return [Symbol, Openlayer::Models::InferencePipelineUpdateResponse::DataBackend::UnionMember0::PartitionType, nil]
252
+ optional :partition_type,
253
+ enum: -> { Openlayer::Models::InferencePipelineUpdateResponse::DataBackend::UnionMember0::PartitionType },
254
+ api_name: :partitionType,
255
+ nil?: true
256
+
257
+ # @!method initialize(backend_type:, bigquery_connection_id:, dataset_id:, project_id:, table_id:, partition_type: nil)
258
+ # @param backend_type [Symbol, Openlayer::Models::InferencePipelineUpdateResponse::DataBackend::UnionMember0::BackendType]
259
+ # @param bigquery_connection_id [String, nil]
260
+ # @param dataset_id [String]
261
+ # @param project_id [String]
262
+ # @param table_id [String, nil]
263
+ # @param partition_type [Symbol, Openlayer::Models::InferencePipelineUpdateResponse::DataBackend::UnionMember0::PartitionType, nil]
264
+
265
+ # @see Openlayer::Models::InferencePipelineUpdateResponse::DataBackend::UnionMember0#backend_type
266
+ module BackendType
267
+ extend Openlayer::Internal::Type::Enum
268
+
269
+ BIGQUERY = :bigquery
270
+
271
+ # @!method self.values
272
+ # @return [Array<Symbol>]
273
+ end
274
+
275
+ # @see Openlayer::Models::InferencePipelineUpdateResponse::DataBackend::UnionMember0#config
276
+ class Config < Openlayer::Internal::Type::BaseModel
277
+ # @!attribute ground_truth_column_name
278
+ # Name of the column with the ground truths.
279
+ #
280
+ # @return [String, nil]
281
+ optional :ground_truth_column_name, String, api_name: :groundTruthColumnName, nil?: true
282
+
283
+ # @!attribute human_feedback_column_name
284
+ # Name of the column with human feedback.
285
+ #
286
+ # @return [String, nil]
287
+ optional :human_feedback_column_name, String, api_name: :humanFeedbackColumnName, nil?: true
288
+
289
+ # @!attribute latency_column_name
290
+ # Name of the column with the latencies.
291
+ #
292
+ # @return [String, nil]
293
+ optional :latency_column_name, String, api_name: :latencyColumnName, nil?: true
294
+
295
+ # @!attribute timestamp_column_name
296
+ # Name of the column with the timestamps. Timestamps must be in UNIX sec format.
297
+ # If not provided, the upload timestamp is used.
298
+ #
299
+ # @return [String, nil]
300
+ optional :timestamp_column_name, String, api_name: :timestampColumnName, nil?: true
301
+
302
+ # @!method initialize(ground_truth_column_name: nil, human_feedback_column_name: nil, latency_column_name: nil, timestamp_column_name: nil)
303
+ # Some parameter documentations has been truncated, see
304
+ # {Openlayer::Models::InferencePipelineUpdateResponse::DataBackend::UnionMember0::Config}
305
+ # for more details.
306
+ #
307
+ # @param ground_truth_column_name [String, nil] Name of the column with the ground truths.
308
+ #
309
+ # @param human_feedback_column_name [String, nil] Name of the column with human feedback.
310
+ #
311
+ # @param latency_column_name [String, nil] Name of the column with the latencies.
312
+ #
313
+ # @param timestamp_column_name [String, nil] Name of the column with the timestamps. Timestamps must be in UNIX sec format. I
314
+ end
315
+
316
+ # @see Openlayer::Models::InferencePipelineUpdateResponse::DataBackend::UnionMember0#partition_type
317
+ module PartitionType
318
+ extend Openlayer::Internal::Type::Enum
319
+
320
+ DAY = :DAY
321
+ MONTH = :MONTH
322
+ YEAR = :YEAR
323
+
324
+ # @!method self.values
325
+ # @return [Array<Symbol>]
326
+ end
327
+ end
328
+
329
+ class BackendType < Openlayer::Internal::Type::BaseModel
330
+ # @!attribute backend_type
331
+ #
332
+ # @return [Symbol, Openlayer::Models::InferencePipelineUpdateResponse::DataBackend::BackendType::BackendType]
333
+ required :backend_type,
334
+ enum: -> { Openlayer::Models::InferencePipelineUpdateResponse::DataBackend::BackendType::BackendType },
335
+ api_name: :backendType
336
+
337
+ # @!method initialize(backend_type:)
338
+ # @param backend_type [Symbol, Openlayer::Models::InferencePipelineUpdateResponse::DataBackend::BackendType::BackendType]
339
+
340
+ # @see Openlayer::Models::InferencePipelineUpdateResponse::DataBackend::BackendType#backend_type
341
+ module BackendType
342
+ extend Openlayer::Internal::Type::Enum
343
+
344
+ DEFAULT = :default
345
+
346
+ # @!method self.values
347
+ # @return [Array<Symbol>]
348
+ end
349
+ end
350
+
351
+ class UnionMember2 < Openlayer::Internal::Type::BaseModel
352
+ # @!attribute backend_type
353
+ #
354
+ # @return [Symbol, Openlayer::Models::InferencePipelineUpdateResponse::DataBackend::UnionMember2::BackendType]
355
+ required :backend_type,
356
+ enum: -> { Openlayer::Models::InferencePipelineUpdateResponse::DataBackend::UnionMember2::BackendType },
357
+ api_name: :backendType
358
+
359
+ # @!attribute database
360
+ #
361
+ # @return [String]
362
+ required :database, String
363
+
364
+ # @!attribute schema
365
+ #
366
+ # @return [String]
367
+ required :schema, String
368
+
369
+ # @!attribute snowflake_connection_id
370
+ #
371
+ # @return [String, nil]
372
+ required :snowflake_connection_id, String, api_name: :snowflakeConnectionId, nil?: true
373
+
374
+ # @!attribute table
375
+ #
376
+ # @return [String, nil]
377
+ required :table, String, nil?: true
378
+
379
+ # @!method initialize(backend_type:, database:, schema:, snowflake_connection_id:, table:)
380
+ # @param backend_type [Symbol, Openlayer::Models::InferencePipelineUpdateResponse::DataBackend::UnionMember2::BackendType]
381
+ # @param database [String]
382
+ # @param schema [String]
383
+ # @param snowflake_connection_id [String, nil]
384
+ # @param table [String, nil]
385
+
386
+ # @see Openlayer::Models::InferencePipelineUpdateResponse::DataBackend::UnionMember2#backend_type
387
+ module BackendType
388
+ extend Openlayer::Internal::Type::Enum
389
+
390
+ SNOWFLAKE = :snowflake
391
+
392
+ # @!method self.values
393
+ # @return [Array<Symbol>]
394
+ end
395
+
396
+ # @see Openlayer::Models::InferencePipelineUpdateResponse::DataBackend::UnionMember2#config
397
+ class Config < Openlayer::Internal::Type::BaseModel
398
+ # @!attribute ground_truth_column_name
399
+ # Name of the column with the ground truths.
400
+ #
401
+ # @return [String, nil]
402
+ optional :ground_truth_column_name, String, api_name: :groundTruthColumnName, nil?: true
403
+
404
+ # @!attribute human_feedback_column_name
405
+ # Name of the column with human feedback.
406
+ #
407
+ # @return [String, nil]
408
+ optional :human_feedback_column_name, String, api_name: :humanFeedbackColumnName, nil?: true
409
+
410
+ # @!attribute latency_column_name
411
+ # Name of the column with the latencies.
412
+ #
413
+ # @return [String, nil]
414
+ optional :latency_column_name, String, api_name: :latencyColumnName, nil?: true
415
+
416
+ # @!attribute timestamp_column_name
417
+ # Name of the column with the timestamps. Timestamps must be in UNIX sec format.
418
+ # If not provided, the upload timestamp is used.
419
+ #
420
+ # @return [String, nil]
421
+ optional :timestamp_column_name, String, api_name: :timestampColumnName, nil?: true
422
+
423
+ # @!method initialize(ground_truth_column_name: nil, human_feedback_column_name: nil, latency_column_name: nil, timestamp_column_name: nil)
424
+ # Some parameter documentations has been truncated, see
425
+ # {Openlayer::Models::InferencePipelineUpdateResponse::DataBackend::UnionMember2::Config}
426
+ # for more details.
427
+ #
428
+ # @param ground_truth_column_name [String, nil] Name of the column with the ground truths.
429
+ #
430
+ # @param human_feedback_column_name [String, nil] Name of the column with human feedback.
431
+ #
432
+ # @param latency_column_name [String, nil] Name of the column with the latencies.
433
+ #
434
+ # @param timestamp_column_name [String, nil] Name of the column with the timestamps. Timestamps must be in UNIX sec format. I
435
+ end
436
+ end
437
+
438
+ class UnionMember3 < Openlayer::Internal::Type::BaseModel
439
+ # @!attribute backend_type
440
+ #
441
+ # @return [Symbol, Openlayer::Models::InferencePipelineUpdateResponse::DataBackend::UnionMember3::BackendType]
442
+ required :backend_type,
443
+ enum: -> { Openlayer::Models::InferencePipelineUpdateResponse::DataBackend::UnionMember3::BackendType },
444
+ api_name: :backendType
445
+
446
+ # @!attribute databricks_dtl_connection_id
447
+ #
448
+ # @return [String, nil]
449
+ required :databricks_dtl_connection_id, String, api_name: :databricksDtlConnectionId, nil?: true
450
+
451
+ # @!attribute table_id
452
+ #
453
+ # @return [String, nil]
454
+ required :table_id, String, api_name: :tableId, nil?: true
455
+
456
+ # @!method initialize(backend_type:, databricks_dtl_connection_id:, table_id:)
457
+ # @param backend_type [Symbol, Openlayer::Models::InferencePipelineUpdateResponse::DataBackend::UnionMember3::BackendType]
458
+ # @param databricks_dtl_connection_id [String, nil]
459
+ # @param table_id [String, nil]
460
+
461
+ # @see Openlayer::Models::InferencePipelineUpdateResponse::DataBackend::UnionMember3#backend_type
462
+ module BackendType
463
+ extend Openlayer::Internal::Type::Enum
464
+
465
+ DATABRICKS_DTL = :databricks_dtl
466
+
467
+ # @!method self.values
468
+ # @return [Array<Symbol>]
469
+ end
470
+
471
+ # @see Openlayer::Models::InferencePipelineUpdateResponse::DataBackend::UnionMember3#config
472
+ class Config < Openlayer::Internal::Type::BaseModel
473
+ # @!attribute ground_truth_column_name
474
+ # Name of the column with the ground truths.
475
+ #
476
+ # @return [String, nil]
477
+ optional :ground_truth_column_name, String, api_name: :groundTruthColumnName, nil?: true
478
+
479
+ # @!attribute human_feedback_column_name
480
+ # Name of the column with human feedback.
481
+ #
482
+ # @return [String, nil]
483
+ optional :human_feedback_column_name, String, api_name: :humanFeedbackColumnName, nil?: true
484
+
485
+ # @!attribute latency_column_name
486
+ # Name of the column with the latencies.
487
+ #
488
+ # @return [String, nil]
489
+ optional :latency_column_name, String, api_name: :latencyColumnName, nil?: true
490
+
491
+ # @!attribute timestamp_column_name
492
+ # Name of the column with the timestamps. Timestamps must be in UNIX sec format.
493
+ # If not provided, the upload timestamp is used.
494
+ #
495
+ # @return [String, nil]
496
+ optional :timestamp_column_name, String, api_name: :timestampColumnName, nil?: true
497
+
498
+ # @!method initialize(ground_truth_column_name: nil, human_feedback_column_name: nil, latency_column_name: nil, timestamp_column_name: nil)
499
+ # Some parameter documentations has been truncated, see
500
+ # {Openlayer::Models::InferencePipelineUpdateResponse::DataBackend::UnionMember3::Config}
501
+ # for more details.
502
+ #
503
+ # @param ground_truth_column_name [String, nil] Name of the column with the ground truths.
504
+ #
505
+ # @param human_feedback_column_name [String, nil] Name of the column with human feedback.
506
+ #
507
+ # @param latency_column_name [String, nil] Name of the column with the latencies.
508
+ #
509
+ # @param timestamp_column_name [String, nil] Name of the column with the timestamps. Timestamps must be in UNIX sec format. I
510
+ end
511
+ end
512
+
513
+ class UnionMember4 < Openlayer::Internal::Type::BaseModel
514
+ # @!attribute backend_type
515
+ #
516
+ # @return [Symbol, Openlayer::Models::InferencePipelineUpdateResponse::DataBackend::UnionMember4::BackendType]
517
+ required :backend_type,
518
+ enum: -> { Openlayer::Models::InferencePipelineUpdateResponse::DataBackend::UnionMember4::BackendType },
519
+ api_name: :backendType
520
+
521
+ # @!attribute redshift_connection_id
522
+ #
523
+ # @return [String, nil]
524
+ required :redshift_connection_id, String, api_name: :redshiftConnectionId, nil?: true
525
+
526
+ # @!attribute schema_name
527
+ #
528
+ # @return [String]
529
+ required :schema_name, String, api_name: :schemaName
530
+
531
+ # @!attribute table_name
532
+ #
533
+ # @return [String]
534
+ required :table_name, String, api_name: :tableName
535
+
536
+ # @!method initialize(backend_type:, redshift_connection_id:, schema_name:, table_name:)
537
+ # @param backend_type [Symbol, Openlayer::Models::InferencePipelineUpdateResponse::DataBackend::UnionMember4::BackendType]
538
+ # @param redshift_connection_id [String, nil]
539
+ # @param schema_name [String]
540
+ # @param table_name [String]
541
+
542
+ # @see Openlayer::Models::InferencePipelineUpdateResponse::DataBackend::UnionMember4#backend_type
543
+ module BackendType
544
+ extend Openlayer::Internal::Type::Enum
545
+
546
+ REDSHIFT = :redshift
547
+
548
+ # @!method self.values
549
+ # @return [Array<Symbol>]
550
+ end
551
+
552
+ # @see Openlayer::Models::InferencePipelineUpdateResponse::DataBackend::UnionMember4#config
553
+ class Config < Openlayer::Internal::Type::BaseModel
554
+ # @!attribute ground_truth_column_name
555
+ # Name of the column with the ground truths.
556
+ #
557
+ # @return [String, nil]
558
+ optional :ground_truth_column_name, String, api_name: :groundTruthColumnName, nil?: true
559
+
560
+ # @!attribute human_feedback_column_name
561
+ # Name of the column with human feedback.
562
+ #
563
+ # @return [String, nil]
564
+ optional :human_feedback_column_name, String, api_name: :humanFeedbackColumnName, nil?: true
565
+
566
+ # @!attribute latency_column_name
567
+ # Name of the column with the latencies.
568
+ #
569
+ # @return [String, nil]
570
+ optional :latency_column_name, String, api_name: :latencyColumnName, nil?: true
571
+
572
+ # @!attribute timestamp_column_name
573
+ # Name of the column with the timestamps. Timestamps must be in UNIX sec format.
574
+ # If not provided, the upload timestamp is used.
575
+ #
576
+ # @return [String, nil]
577
+ optional :timestamp_column_name, String, api_name: :timestampColumnName, nil?: true
578
+
579
+ # @!method initialize(ground_truth_column_name: nil, human_feedback_column_name: nil, latency_column_name: nil, timestamp_column_name: nil)
580
+ # Some parameter documentations has been truncated, see
581
+ # {Openlayer::Models::InferencePipelineUpdateResponse::DataBackend::UnionMember4::Config}
582
+ # for more details.
583
+ #
584
+ # @param ground_truth_column_name [String, nil] Name of the column with the ground truths.
585
+ #
586
+ # @param human_feedback_column_name [String, nil] Name of the column with human feedback.
587
+ #
588
+ # @param latency_column_name [String, nil] Name of the column with the latencies.
589
+ #
590
+ # @param timestamp_column_name [String, nil] Name of the column with the timestamps. Timestamps must be in UNIX sec format. I
591
+ end
592
+ end
593
+
594
+ class UnionMember5 < Openlayer::Internal::Type::BaseModel
595
+ # @!attribute backend_type
596
+ #
597
+ # @return [Symbol, Openlayer::Models::InferencePipelineUpdateResponse::DataBackend::UnionMember5::BackendType]
598
+ required :backend_type,
599
+ enum: -> { Openlayer::Models::InferencePipelineUpdateResponse::DataBackend::UnionMember5::BackendType },
600
+ api_name: :backendType
601
+
602
+ # @!attribute database
603
+ #
604
+ # @return [String]
605
+ required :database, String
606
+
607
+ # @!attribute postgres_connection_id
608
+ #
609
+ # @return [String, nil]
610
+ required :postgres_connection_id, String, api_name: :postgresConnectionId, nil?: true
611
+
612
+ # @!attribute schema
613
+ #
614
+ # @return [String]
615
+ required :schema, String
616
+
617
+ # @!attribute table
618
+ #
619
+ # @return [String, nil]
620
+ required :table, String, nil?: true
621
+
622
+ # @!method initialize(backend_type:, database:, postgres_connection_id:, schema:, table:)
623
+ # @param backend_type [Symbol, Openlayer::Models::InferencePipelineUpdateResponse::DataBackend::UnionMember5::BackendType]
624
+ # @param database [String]
625
+ # @param postgres_connection_id [String, nil]
626
+ # @param schema [String]
627
+ # @param table [String, nil]
628
+
629
+ # @see Openlayer::Models::InferencePipelineUpdateResponse::DataBackend::UnionMember5#backend_type
630
+ module BackendType
631
+ extend Openlayer::Internal::Type::Enum
632
+
633
+ POSTGRES = :postgres
634
+
635
+ # @!method self.values
636
+ # @return [Array<Symbol>]
637
+ end
638
+
639
+ # @see Openlayer::Models::InferencePipelineUpdateResponse::DataBackend::UnionMember5#config
640
+ class Config < Openlayer::Internal::Type::BaseModel
641
+ # @!attribute ground_truth_column_name
642
+ # Name of the column with the ground truths.
643
+ #
644
+ # @return [String, nil]
645
+ optional :ground_truth_column_name, String, api_name: :groundTruthColumnName, nil?: true
646
+
647
+ # @!attribute human_feedback_column_name
648
+ # Name of the column with human feedback.
649
+ #
650
+ # @return [String, nil]
651
+ optional :human_feedback_column_name, String, api_name: :humanFeedbackColumnName, nil?: true
652
+
653
+ # @!attribute latency_column_name
654
+ # Name of the column with the latencies.
655
+ #
656
+ # @return [String, nil]
657
+ optional :latency_column_name, String, api_name: :latencyColumnName, nil?: true
658
+
659
+ # @!attribute timestamp_column_name
660
+ # Name of the column with the timestamps. Timestamps must be in UNIX sec format.
661
+ # If not provided, the upload timestamp is used.
662
+ #
663
+ # @return [String, nil]
664
+ optional :timestamp_column_name, String, api_name: :timestampColumnName, nil?: true
665
+
666
+ # @!method initialize(ground_truth_column_name: nil, human_feedback_column_name: nil, latency_column_name: nil, timestamp_column_name: nil)
667
+ # Some parameter documentations has been truncated, see
668
+ # {Openlayer::Models::InferencePipelineUpdateResponse::DataBackend::UnionMember5::Config}
669
+ # for more details.
670
+ #
671
+ # @param ground_truth_column_name [String, nil] Name of the column with the ground truths.
672
+ #
673
+ # @param human_feedback_column_name [String, nil] Name of the column with human feedback.
674
+ #
675
+ # @param latency_column_name [String, nil] Name of the column with the latencies.
676
+ #
677
+ # @param timestamp_column_name [String, nil] Name of the column with the timestamps. Timestamps must be in UNIX sec format. I
678
+ end
679
+ end
680
+
681
+ # @!method self.variants
682
+ # @return [Array(Openlayer::Models::InferencePipelineUpdateResponse::DataBackend::UnionMember0, Openlayer::Models::InferencePipelineUpdateResponse::DataBackend::BackendType, Openlayer::Models::InferencePipelineUpdateResponse::DataBackend::UnionMember2, Openlayer::Models::InferencePipelineUpdateResponse::DataBackend::UnionMember3, Openlayer::Models::InferencePipelineUpdateResponse::DataBackend::UnionMember4, Openlayer::Models::InferencePipelineUpdateResponse::DataBackend::UnionMember5)]
683
+ end
684
+
179
685
  # @see Openlayer::Models::InferencePipelineUpdateResponse#project
180
686
  class Project < Openlayer::Internal::Type::BaseModel
181
687
  # @!attribute name