Class: Openlayer::Resources::InferencePipelines::Rows
- Inherits:
-
Object
- Object
- Openlayer::Resources::InferencePipelines::Rows
- Defined in:
- lib/openlayer/resources/inference_pipelines/rows.rb
Instance Method Summary collapse
-
#initialize(client:) ⇒ Rows
constructor
private
A new instance of Rows.
-
#update(inference_pipeline_id, inference_id: , row: , config: nil, request_options: {}) ⇒ Openlayer::Models::InferencePipelines::RowUpdateResponse
Update an inference data point in an inference pipeline.
Constructor Details
#initialize(client:) ⇒ Rows
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of Rows.
40 41 42 |
# File 'lib/openlayer/resources/inference_pipelines/rows.rb', line 40 def initialize(client:) @client = client end |
Instance Method Details
#update(inference_pipeline_id, inference_id: , row: , config: nil, request_options: {}) ⇒ Openlayer::Models::InferencePipelines::RowUpdateResponse
Update an inference data point in an inference pipeline.
24 25 26 27 28 29 30 31 32 33 34 35 |
# File 'lib/openlayer/resources/inference_pipelines/rows.rb', line 24 def update(inference_pipeline_id, params) parsed, = Openlayer::InferencePipelines::RowUpdateParams.dump_request(params) query_params = [:inference_id] @client.request( method: :put, path: ["inference-pipelines/%1$s/rows", inference_pipeline_id], query: parsed.slice(*query_params).transform_keys(inference_id: "inferenceId"), body: parsed.except(*query_params), model: Openlayer::Models::InferencePipelines::RowUpdateResponse, options: ) end |