Class: Openlayer::Resources::Projects::Tests
- Inherits:
-
Object
- Object
- Openlayer::Resources::Projects::Tests
- Defined in:
- lib/openlayer/resources/projects/tests.rb
Instance Method Summary collapse
-
#create(project_id, description: , name: , subtype: , thresholds: , type: , archived: nil, delay_window: nil, evaluation_window: nil, uses_ml_model: nil, uses_production_data: nil, uses_reference_dataset: nil, uses_training_dataset: nil, uses_validation_dataset: nil, request_options: {}) ⇒ Openlayer::Models::Projects::TestCreateResponse
Some parameter documentations has been truncated, see Models::Projects::TestCreateParams for more details.
-
#initialize(client:) ⇒ Tests
constructor
private
A new instance of Tests.
-
#list(project_id, include_archived: nil, origin_version_id: nil, page: nil, per_page: nil, suggested: nil, type: nil, uses_production_data: nil, request_options: {}) ⇒ Openlayer::Models::Projects::TestListResponse
Some parameter documentations has been truncated, see Models::Projects::TestListParams for more details.
-
#update(project_id, payloads: , request_options: {}) ⇒ Openlayer::Models::Projects::TestUpdateResponse
Update tests.
Constructor Details
#initialize(client:) ⇒ Tests
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 Tests.
129 130 131 |
# File 'lib/openlayer/resources/projects/tests.rb', line 129 def initialize(client:) @client = client end |
Instance Method Details
#create(project_id, description: , name: , subtype: , thresholds: , type: , archived: nil, delay_window: nil, evaluation_window: nil, uses_ml_model: nil, uses_production_data: nil, uses_reference_dataset: nil, uses_training_dataset: nil, uses_validation_dataset: nil, request_options: {}) ⇒ Openlayer::Models::Projects::TestCreateResponse
Some parameter documentations has been truncated, see Models::Projects::TestCreateParams for more details.
Create a test.
47 48 49 50 51 52 53 54 55 56 |
# File 'lib/openlayer/resources/projects/tests.rb', line 47 def create(project_id, params) parsed, = Openlayer::Projects::TestCreateParams.dump_request(params) @client.request( method: :post, path: ["projects/%1$s/tests", project_id], body: parsed, model: Openlayer::Models::Projects::TestCreateResponse, options: ) end |
#list(project_id, include_archived: nil, origin_version_id: nil, page: nil, per_page: nil, suggested: nil, type: nil, uses_production_data: nil, request_options: {}) ⇒ Openlayer::Models::Projects::TestListResponse
Some parameter documentations has been truncated, see Models::Projects::TestListParams for more details.
List tests under a project.
110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 |
# File 'lib/openlayer/resources/projects/tests.rb', line 110 def list(project_id, params = {}) parsed, = Openlayer::Projects::TestListParams.dump_request(params) @client.request( method: :get, path: ["projects/%1$s/tests", project_id], query: parsed.transform_keys( include_archived: "includeArchived", origin_version_id: "originVersionId", per_page: "perPage", uses_production_data: "usesProductionData" ), model: Openlayer::Models::Projects::TestListResponse, options: ) end |
#update(project_id, payloads: , request_options: {}) ⇒ Openlayer::Models::Projects::TestUpdateResponse
Update tests.
71 72 73 74 75 76 77 78 79 80 |
# File 'lib/openlayer/resources/projects/tests.rb', line 71 def update(project_id, params) parsed, = Openlayer::Projects::TestUpdateParams.dump_request(params) @client.request( method: :put, path: ["projects/%1$s/tests", project_id], body: parsed, model: Openlayer::Models::Projects::TestUpdateResponse, options: ) end |