openlayer 0.3.0 → 0.4.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.
- checksums.yaml +4 -4
- data/.ignore +2 -0
- data/CHANGELOG.md +23 -0
- data/README.md +280 -39
- data/SECURITY.md +27 -0
- data/lib/openlayer/client.rb +64 -59
- data/lib/openlayer/errors.rb +228 -0
- data/lib/openlayer/file_part.rb +58 -0
- data/lib/openlayer/internal/transport/base_client.rb +567 -0
- data/lib/openlayer/internal/transport/pooled_net_requester.rb +198 -0
- data/lib/openlayer/internal/type/array_of.rb +168 -0
- data/lib/openlayer/internal/type/base_model.rb +531 -0
- data/lib/openlayer/internal/type/base_page.rb +55 -0
- data/lib/openlayer/internal/type/boolean.rb +77 -0
- data/lib/openlayer/internal/type/converter.rb +327 -0
- data/lib/openlayer/internal/type/enum.rb +131 -0
- data/lib/openlayer/internal/type/file_input.rb +111 -0
- data/lib/openlayer/internal/type/hash_of.rb +188 -0
- data/lib/openlayer/internal/type/request_parameters.rb +42 -0
- data/lib/openlayer/internal/type/union.rb +237 -0
- data/lib/openlayer/internal/type/unknown.rb +81 -0
- data/lib/openlayer/internal/util.rb +915 -0
- data/lib/openlayer/internal.rb +20 -0
- data/lib/openlayer/models/commit_retrieve_params.rb +14 -0
- data/lib/openlayer/models/commit_retrieve_response.rb +275 -0
- data/lib/openlayer/models/commits/test_result_list_params.rb +91 -0
- data/lib/openlayer/models/commits/test_result_list_response.rb +566 -0
- data/lib/openlayer/models/inference_pipeline_delete_params.rb +14 -0
- data/lib/openlayer/models/inference_pipeline_retrieve_params.rb +33 -0
- data/lib/openlayer/models/inference_pipeline_retrieve_response.rb +605 -0
- data/lib/openlayer/models/inference_pipeline_update_params.rb +42 -0
- data/lib/openlayer/models/inference_pipeline_update_response.rb +605 -0
- data/lib/openlayer/models/inference_pipelines/data_stream_params.rb +463 -0
- data/lib/openlayer/models/inference_pipelines/data_stream_response.rb +28 -0
- data/lib/openlayer/models/inference_pipelines/row_update_params.rb +90 -0
- data/lib/openlayer/models/inference_pipelines/row_update_response.rb +28 -0
- data/lib/openlayer/models/inference_pipelines/test_result_list_params.rb +83 -0
- data/lib/openlayer/models/inference_pipelines/test_result_list_response.rb +568 -0
- data/lib/openlayer/models/project_create_params.rb +51 -0
- data/lib/openlayer/models/project_create_response.rb +262 -0
- data/lib/openlayer/models/project_list_params.rb +59 -0
- data/lib/openlayer/models/project_list_response.rb +274 -0
- data/lib/openlayer/models/projects/commit_create_params.rb +61 -0
- data/lib/openlayer/models/projects/commit_create_response.rb +277 -0
- data/lib/openlayer/models/projects/commit_list_params.rb +32 -0
- data/lib/openlayer/models/projects/commit_list_response.rb +288 -0
- data/lib/openlayer/models/projects/inference_pipeline_create_params.rb +229 -0
- data/lib/openlayer/models/projects/inference_pipeline_create_response.rb +612 -0
- data/lib/openlayer/models/projects/inference_pipeline_list_params.rb +40 -0
- data/lib/openlayer/models/projects/inference_pipeline_list_response.rb +623 -0
- data/lib/openlayer/models/projects/test_create_params.rb +367 -0
- data/lib/openlayer/models/projects/test_create_response.rb +438 -0
- data/lib/openlayer/models/projects/test_list_params.rb +91 -0
- data/lib/openlayer/models/projects/test_list_response.rb +452 -0
- data/lib/openlayer/models/projects/test_update_params.rb +262 -0
- data/lib/openlayer/models/projects/test_update_response.rb +24 -0
- data/lib/openlayer/models/storage/presigned_url_create_params.rb +24 -0
- data/lib/openlayer/models/storage/presigned_url_create_response.rb +35 -0
- data/lib/openlayer/models.rb +61 -0
- data/lib/openlayer/request_options.rb +77 -0
- data/lib/openlayer/resources/commits/test_results.rb +51 -0
- data/lib/openlayer/resources/commits.rb +38 -0
- data/lib/openlayer/resources/inference_pipelines/data.rb +46 -0
- data/lib/openlayer/resources/inference_pipelines/rows.rb +46 -0
- data/lib/openlayer/resources/inference_pipelines/test_results.rb +49 -0
- data/lib/openlayer/resources/inference_pipelines.rb +101 -0
- data/lib/openlayer/resources/projects/commits.rb +72 -0
- data/lib/openlayer/resources/projects/inference_pipelines.rb +74 -0
- data/lib/openlayer/resources/projects/tests.rb +135 -0
- data/lib/openlayer/resources/projects.rb +80 -0
- data/lib/openlayer/resources/storage/presigned_url.rb +38 -0
- data/lib/openlayer/resources/storage.rb +18 -0
- data/lib/openlayer/version.rb +1 -1
- data/lib/openlayer.rb +96 -12
- data/manifest.yaml +15 -0
- data/rbi/openlayer/client.rbi +58 -0
- data/rbi/openlayer/errors.rbi +205 -0
- data/rbi/openlayer/file_part.rbi +37 -0
- data/rbi/openlayer/internal/transport/base_client.rbi +293 -0
- data/rbi/openlayer/internal/transport/pooled_net_requester.rbi +79 -0
- data/rbi/openlayer/internal/type/array_of.rbi +104 -0
- data/rbi/openlayer/internal/type/base_model.rbi +304 -0
- data/rbi/openlayer/internal/type/base_page.rbi +42 -0
- data/rbi/openlayer/internal/type/boolean.rbi +58 -0
- data/rbi/openlayer/internal/type/converter.rbi +216 -0
- data/rbi/openlayer/internal/type/enum.rbi +82 -0
- data/rbi/openlayer/internal/type/file_input.rbi +59 -0
- data/rbi/openlayer/internal/type/hash_of.rbi +104 -0
- data/rbi/openlayer/internal/type/request_parameters.rbi +29 -0
- data/rbi/openlayer/internal/type/union.rbi +128 -0
- data/rbi/openlayer/internal/type/unknown.rbi +58 -0
- data/rbi/openlayer/internal/util.rbi +487 -0
- data/rbi/openlayer/internal.rbi +18 -0
- data/rbi/openlayer/models/commit_retrieve_params.rbi +27 -0
- data/rbi/openlayer/models/commit_retrieve_response.rbi +393 -0
- data/rbi/openlayer/models/commits/test_result_list_params.rbi +214 -0
- data/rbi/openlayer/models/commits/test_result_list_response.rbi +1256 -0
- data/rbi/openlayer/models/inference_pipeline_delete_params.rbi +30 -0
- data/rbi/openlayer/models/inference_pipeline_retrieve_params.rbi +101 -0
- data/rbi/openlayer/models/inference_pipeline_retrieve_response.rbi +1022 -0
- data/rbi/openlayer/models/inference_pipeline_update_params.rbi +67 -0
- data/rbi/openlayer/models/inference_pipeline_update_response.rbi +1018 -0
- data/rbi/openlayer/models/inference_pipelines/data_stream_params.rbi +750 -0
- data/rbi/openlayer/models/inference_pipelines/data_stream_response.rbi +73 -0
- data/rbi/openlayer/models/inference_pipelines/row_update_params.rbi +153 -0
- data/rbi/openlayer/models/inference_pipelines/row_update_response.rbi +73 -0
- data/rbi/openlayer/models/inference_pipelines/test_result_list_params.rbi +216 -0
- data/rbi/openlayer/models/inference_pipelines/test_result_list_response.rbi +1258 -0
- data/rbi/openlayer/models/project_create_params.rbi +99 -0
- data/rbi/openlayer/models/project_create_response.rbi +401 -0
- data/rbi/openlayer/models/project_list_params.rbi +121 -0
- data/rbi/openlayer/models/project_list_response.rbi +442 -0
- data/rbi/openlayer/models/projects/commit_create_params.rbi +125 -0
- data/rbi/openlayer/models/projects/commit_create_response.rbi +409 -0
- data/rbi/openlayer/models/projects/commit_list_params.rbi +62 -0
- data/rbi/openlayer/models/projects/commit_list_response.rbi +454 -0
- data/rbi/openlayer/models/projects/inference_pipeline_create_params.rbi +560 -0
- data/rbi/openlayer/models/projects/inference_pipeline_create_response.rbi +1027 -0
- data/rbi/openlayer/models/projects/inference_pipeline_list_params.rbi +73 -0
- data/rbi/openlayer/models/projects/inference_pipeline_list_response.rbi +1070 -0
- data/rbi/openlayer/models/projects/test_create_params.rbi +940 -0
- data/rbi/openlayer/models/projects/test_create_response.rbi +1026 -0
- data/rbi/openlayer/models/projects/test_list_params.rbi +165 -0
- data/rbi/openlayer/models/projects/test_list_response.rbi +1067 -0
- data/rbi/openlayer/models/projects/test_update_params.rbi +699 -0
- data/rbi/openlayer/models/projects/test_update_response.rbi +43 -0
- data/rbi/openlayer/models/storage/presigned_url_create_params.rbi +45 -0
- data/rbi/openlayer/models/storage/presigned_url_create_response.rbi +55 -0
- data/rbi/openlayer/models.rbi +26 -0
- data/rbi/openlayer/request_options.rbi +59 -0
- data/rbi/openlayer/resources/commits/test_results.rbi +45 -0
- data/rbi/openlayer/resources/commits.rbi +29 -0
- data/rbi/openlayer/resources/inference_pipelines/data.rbi +41 -0
- data/rbi/openlayer/resources/inference_pipelines/rows.rbi +40 -0
- data/rbi/openlayer/resources/inference_pipelines/test_results.rbi +46 -0
- data/rbi/openlayer/resources/inference_pipelines.rbi +79 -0
- data/rbi/openlayer/resources/projects/commits.rbi +60 -0
- data/rbi/openlayer/resources/projects/inference_pipelines.rbi +69 -0
- data/rbi/openlayer/resources/projects/tests.rbi +123 -0
- data/rbi/openlayer/resources/projects.rbi +64 -0
- data/rbi/openlayer/resources/storage/presigned_url.rbi +28 -0
- data/rbi/openlayer/resources/storage.rbi +15 -0
- data/rbi/openlayer/version.rbi +5 -0
- data/sig/openlayer/client.rbs +32 -0
- data/sig/openlayer/errors.rbs +117 -0
- data/sig/openlayer/file_part.rbs +21 -0
- data/sig/openlayer/internal/transport/base_client.rbs +131 -0
- data/sig/openlayer/internal/transport/pooled_net_requester.rbs +45 -0
- data/sig/openlayer/internal/type/array_of.rbs +48 -0
- data/sig/openlayer/internal/type/base_model.rbs +102 -0
- data/sig/openlayer/internal/type/base_page.rbs +24 -0
- data/sig/openlayer/internal/type/boolean.rbs +26 -0
- data/sig/openlayer/internal/type/converter.rbs +79 -0
- data/sig/openlayer/internal/type/enum.rbs +32 -0
- data/sig/openlayer/internal/type/file_input.rbs +25 -0
- data/sig/openlayer/internal/type/hash_of.rbs +48 -0
- data/sig/openlayer/internal/type/request_parameters.rbs +19 -0
- data/sig/openlayer/internal/type/union.rbs +52 -0
- data/sig/openlayer/internal/type/unknown.rbs +26 -0
- data/sig/openlayer/internal/util.rbs +185 -0
- data/sig/openlayer/internal.rbs +9 -0
- data/sig/openlayer/models/commit_retrieve_params.rbs +15 -0
- data/sig/openlayer/models/commit_retrieve_response.rbs +209 -0
- data/sig/openlayer/models/commits/test_result_list_params.rbs +91 -0
- data/sig/openlayer/models/commits/test_result_list_response.rbs +529 -0
- data/sig/openlayer/models/inference_pipeline_delete_params.rbs +15 -0
- data/sig/openlayer/models/inference_pipeline_retrieve_params.rbs +41 -0
- data/sig/openlayer/models/inference_pipeline_retrieve_response.rbs +493 -0
- data/sig/openlayer/models/inference_pipeline_update_params.rbs +34 -0
- data/sig/openlayer/models/inference_pipeline_update_response.rbs +493 -0
- data/sig/openlayer/models/inference_pipelines/data_stream_params.rbs +386 -0
- data/sig/openlayer/models/inference_pipelines/data_stream_response.rbs +32 -0
- data/sig/openlayer/models/inference_pipelines/row_update_params.rbs +75 -0
- data/sig/openlayer/models/inference_pipelines/row_update_response.rbs +32 -0
- data/sig/openlayer/models/inference_pipelines/test_result_list_params.rbs +84 -0
- data/sig/openlayer/models/inference_pipelines/test_result_list_response.rbs +529 -0
- data/sig/openlayer/models/project_create_params.rbs +53 -0
- data/sig/openlayer/models/project_create_response.rbs +210 -0
- data/sig/openlayer/models/project_list_params.rbs +68 -0
- data/sig/openlayer/models/project_list_response.rbs +225 -0
- data/sig/openlayer/models/projects/commit_create_params.rbs +82 -0
- data/sig/openlayer/models/projects/commit_create_response.rbs +211 -0
- data/sig/openlayer/models/projects/commit_list_params.rbs +34 -0
- data/sig/openlayer/models/projects/commit_list_response.rbs +228 -0
- data/sig/openlayer/models/projects/inference_pipeline_create_params.rbs +308 -0
- data/sig/openlayer/models/projects/inference_pipeline_create_response.rbs +495 -0
- data/sig/openlayer/models/projects/inference_pipeline_list_params.rbs +40 -0
- data/sig/openlayer/models/projects/inference_pipeline_list_response.rbs +512 -0
- data/sig/openlayer/models/projects/test_create_params.rbs +388 -0
- data/sig/openlayer/models/projects/test_create_response.rbs +427 -0
- data/sig/openlayer/models/projects/test_list_params.rbs +85 -0
- data/sig/openlayer/models/projects/test_list_response.rbs +442 -0
- data/sig/openlayer/models/projects/test_update_params.rbs +275 -0
- data/sig/openlayer/models/projects/test_update_response.rbs +25 -0
- data/sig/openlayer/models/storage/presigned_url_create_params.rbs +25 -0
- data/sig/openlayer/models/storage/presigned_url_create_response.rbs +22 -0
- data/sig/openlayer/models.rbs +21 -0
- data/sig/openlayer/request_options.rbs +34 -0
- data/sig/openlayer/resources/commits/test_results.rbs +19 -0
- data/sig/openlayer/resources/commits.rbs +14 -0
- data/sig/openlayer/resources/inference_pipelines/data.rbs +16 -0
- data/sig/openlayer/resources/inference_pipelines/rows.rbs +17 -0
- data/sig/openlayer/resources/inference_pipelines/test_results.rbs +18 -0
- data/sig/openlayer/resources/inference_pipelines.rbs +32 -0
- data/sig/openlayer/resources/projects/commits.rbs +25 -0
- data/sig/openlayer/resources/projects/inference_pipelines.rbs +26 -0
- data/sig/openlayer/resources/projects/tests.rbs +45 -0
- data/sig/openlayer/resources/projects.rbs +28 -0
- data/sig/openlayer/resources/storage/presigned_url.rbs +14 -0
- data/sig/openlayer/resources/storage.rbs +9 -0
- data/sig/openlayer/version.rbs +3 -0
- metadata +223 -91
- data/.env +0 -0
- data/.rspec +0 -3
- data/.rubocop.yml +0 -13
- data/LICENSE +0 -21
- data/Rakefile +0 -12
- data/examples/staging/.DS_Store +0 -0
- data/examples/staging/commit.yaml +0 -2
- data/examples/staging/model/model_config.yaml +0 -12
- data/examples/staging/validation/dataset_config.yaml +0 -12
- data/lib/openlayer/error.rb +0 -5
- data/lib/openlayer/inference_pipeline.rb +0 -36
- data/lib/openlayer/object.rb +0 -28
- data/lib/openlayer/objects/project.rb +0 -185
- data/lib/openlayer/objects/project_version.rb +0 -89
- data/lib/openlayer/services/s3_presigned_client.rb +0 -47
- data/lib/openlayer/services/tar_file_helper.rb +0 -55
- data/openlayer.gemspec +0 -45
- data/sig/openlayer.rbs +0 -4
@@ -0,0 +1,612 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Openlayer
|
4
|
+
module Models
|
5
|
+
module Projects
|
6
|
+
# @see Openlayer::Resources::Projects::InferencePipelines#create
|
7
|
+
class InferencePipelineCreateResponse < Openlayer::Internal::Type::BaseModel
|
8
|
+
# @!attribute description
|
9
|
+
# The inference pipeline description.
|
10
|
+
#
|
11
|
+
# @return [String, nil]
|
12
|
+
required :description, String, nil?: true
|
13
|
+
|
14
|
+
# @!attribute name
|
15
|
+
# The inference pipeline name.
|
16
|
+
#
|
17
|
+
# @return [String]
|
18
|
+
required :name, String
|
19
|
+
|
20
|
+
# @!attribute project
|
21
|
+
#
|
22
|
+
# @return [Openlayer::Models::Projects::InferencePipelineCreateResponse::Project, nil]
|
23
|
+
optional :project,
|
24
|
+
-> { Openlayer::Models::Projects::InferencePipelineCreateResponse::Project },
|
25
|
+
nil?: true
|
26
|
+
|
27
|
+
# @!attribute workspace
|
28
|
+
#
|
29
|
+
# @return [Openlayer::Models::Projects::InferencePipelineCreateResponse::Workspace, nil]
|
30
|
+
optional :workspace,
|
31
|
+
-> { Openlayer::Models::Projects::InferencePipelineCreateResponse::Workspace },
|
32
|
+
nil?: true
|
33
|
+
|
34
|
+
response_only do
|
35
|
+
# @!attribute id
|
36
|
+
# The inference pipeline id.
|
37
|
+
#
|
38
|
+
# @return [String]
|
39
|
+
required :id, String
|
40
|
+
|
41
|
+
# @!attribute date_created
|
42
|
+
# The creation date.
|
43
|
+
#
|
44
|
+
# @return [Time]
|
45
|
+
required :date_created, Time, api_name: :dateCreated
|
46
|
+
|
47
|
+
# @!attribute date_last_evaluated
|
48
|
+
# The last test evaluation date.
|
49
|
+
#
|
50
|
+
# @return [Time, nil]
|
51
|
+
required :date_last_evaluated, Time, api_name: :dateLastEvaluated, nil?: true
|
52
|
+
|
53
|
+
# @!attribute date_last_sample_received
|
54
|
+
# The last data sample received date.
|
55
|
+
#
|
56
|
+
# @return [Time, nil]
|
57
|
+
required :date_last_sample_received, Time, api_name: :dateLastSampleReceived, nil?: true
|
58
|
+
|
59
|
+
# @!attribute date_of_next_evaluation
|
60
|
+
# The next test evaluation date.
|
61
|
+
#
|
62
|
+
# @return [Time, nil]
|
63
|
+
required :date_of_next_evaluation, Time, api_name: :dateOfNextEvaluation, nil?: true
|
64
|
+
|
65
|
+
# @!attribute date_updated
|
66
|
+
# The last updated date.
|
67
|
+
#
|
68
|
+
# @return [Time]
|
69
|
+
required :date_updated, Time, api_name: :dateUpdated
|
70
|
+
|
71
|
+
# @!attribute failing_goal_count
|
72
|
+
# The number of tests failing.
|
73
|
+
#
|
74
|
+
# @return [Integer]
|
75
|
+
required :failing_goal_count, Integer, api_name: :failingGoalCount
|
76
|
+
|
77
|
+
# @!attribute links
|
78
|
+
#
|
79
|
+
# @return [Openlayer::Models::Projects::InferencePipelineCreateResponse::Links]
|
80
|
+
required :links, -> { Openlayer::Models::Projects::InferencePipelineCreateResponse::Links }
|
81
|
+
|
82
|
+
# @!attribute passing_goal_count
|
83
|
+
# The number of tests passing.
|
84
|
+
#
|
85
|
+
# @return [Integer]
|
86
|
+
required :passing_goal_count, Integer, api_name: :passingGoalCount
|
87
|
+
|
88
|
+
# @!attribute project_id
|
89
|
+
# The project id.
|
90
|
+
#
|
91
|
+
# @return [String]
|
92
|
+
required :project_id, String, api_name: :projectId
|
93
|
+
|
94
|
+
# @!attribute status
|
95
|
+
# The status of test evaluation for the inference pipeline.
|
96
|
+
#
|
97
|
+
# @return [Symbol, Openlayer::Models::Projects::InferencePipelineCreateResponse::Status]
|
98
|
+
required :status, enum: -> { Openlayer::Models::Projects::InferencePipelineCreateResponse::Status }
|
99
|
+
|
100
|
+
# @!attribute status_message
|
101
|
+
# The status message of test evaluation for the inference pipeline.
|
102
|
+
#
|
103
|
+
# @return [String, nil]
|
104
|
+
required :status_message, String, api_name: :statusMessage, nil?: true
|
105
|
+
|
106
|
+
# @!attribute total_goal_count
|
107
|
+
# The total number of tests.
|
108
|
+
#
|
109
|
+
# @return [Integer]
|
110
|
+
required :total_goal_count, Integer, api_name: :totalGoalCount
|
111
|
+
|
112
|
+
# @!attribute workspace_id
|
113
|
+
# The workspace id.
|
114
|
+
#
|
115
|
+
# @return [String, nil]
|
116
|
+
optional :workspace_id, String, api_name: :workspaceId
|
117
|
+
end
|
118
|
+
|
119
|
+
# @!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)
|
120
|
+
# @param id [String] The inference pipeline id.
|
121
|
+
#
|
122
|
+
# @param date_created [Time] The creation date.
|
123
|
+
#
|
124
|
+
# @param date_last_evaluated [Time, nil] The last test evaluation date.
|
125
|
+
#
|
126
|
+
# @param date_last_sample_received [Time, nil] The last data sample received date.
|
127
|
+
#
|
128
|
+
# @param date_of_next_evaluation [Time, nil] The next test evaluation date.
|
129
|
+
#
|
130
|
+
# @param date_updated [Time] The last updated date.
|
131
|
+
#
|
132
|
+
# @param description [String, nil] The inference pipeline description.
|
133
|
+
#
|
134
|
+
# @param failing_goal_count [Integer] The number of tests failing.
|
135
|
+
#
|
136
|
+
# @param links [Openlayer::Models::Projects::InferencePipelineCreateResponse::Links]
|
137
|
+
#
|
138
|
+
# @param name [String] The inference pipeline name.
|
139
|
+
#
|
140
|
+
# @param passing_goal_count [Integer] The number of tests passing.
|
141
|
+
#
|
142
|
+
# @param project_id [String] The project id.
|
143
|
+
#
|
144
|
+
# @param status [Symbol, Openlayer::Models::Projects::InferencePipelineCreateResponse::Status] The status of test evaluation for the inference pipeline.
|
145
|
+
#
|
146
|
+
# @param status_message [String, nil] The status message of test evaluation for the inference pipeline.
|
147
|
+
#
|
148
|
+
# @param total_goal_count [Integer] The total number of tests.
|
149
|
+
#
|
150
|
+
# @param project [Openlayer::Models::Projects::InferencePipelineCreateResponse::Project, nil]
|
151
|
+
#
|
152
|
+
# @param workspace [Openlayer::Models::Projects::InferencePipelineCreateResponse::Workspace, nil]
|
153
|
+
#
|
154
|
+
# @param workspace_id [String] The workspace id.
|
155
|
+
|
156
|
+
# @see Openlayer::Models::Projects::InferencePipelineCreateResponse#links
|
157
|
+
class Links < Openlayer::Internal::Type::BaseModel
|
158
|
+
# @!attribute app
|
159
|
+
#
|
160
|
+
# @return [String]
|
161
|
+
required :app, String
|
162
|
+
|
163
|
+
# @!method initialize(app:)
|
164
|
+
# @param app [String]
|
165
|
+
end
|
166
|
+
|
167
|
+
# The status of test evaluation for the inference pipeline.
|
168
|
+
#
|
169
|
+
# @see Openlayer::Models::Projects::InferencePipelineCreateResponse#status
|
170
|
+
module Status
|
171
|
+
extend Openlayer::Internal::Type::Enum
|
172
|
+
|
173
|
+
QUEUED = :queued
|
174
|
+
RUNNING = :running
|
175
|
+
PAUSED = :paused
|
176
|
+
FAILED = :failed
|
177
|
+
COMPLETED = :completed
|
178
|
+
UNKNOWN = :unknown
|
179
|
+
|
180
|
+
# @!method self.values
|
181
|
+
# @return [Array<Symbol>]
|
182
|
+
end
|
183
|
+
|
184
|
+
# @see Openlayer::Models::Projects::InferencePipelineCreateResponse#project
|
185
|
+
class Project < Openlayer::Internal::Type::BaseModel
|
186
|
+
# @!attribute name
|
187
|
+
# The project name.
|
188
|
+
#
|
189
|
+
# @return [String]
|
190
|
+
required :name, String
|
191
|
+
|
192
|
+
# @!attribute task_type
|
193
|
+
# The task type of the project.
|
194
|
+
#
|
195
|
+
# @return [Symbol, Openlayer::Models::Projects::InferencePipelineCreateResponse::Project::TaskType]
|
196
|
+
required :task_type,
|
197
|
+
enum: -> { Openlayer::Models::Projects::InferencePipelineCreateResponse::Project::TaskType },
|
198
|
+
api_name: :taskType
|
199
|
+
|
200
|
+
# @!attribute description
|
201
|
+
# The project description.
|
202
|
+
#
|
203
|
+
# @return [String, nil]
|
204
|
+
optional :description, String, nil?: true
|
205
|
+
|
206
|
+
response_only do
|
207
|
+
# @!attribute id
|
208
|
+
# The project id.
|
209
|
+
#
|
210
|
+
# @return [String]
|
211
|
+
required :id, String
|
212
|
+
|
213
|
+
# @!attribute creator_id
|
214
|
+
# The project creator id.
|
215
|
+
#
|
216
|
+
# @return [String, nil]
|
217
|
+
required :creator_id, String, api_name: :creatorId, nil?: true
|
218
|
+
|
219
|
+
# @!attribute date_created
|
220
|
+
# The project creation date.
|
221
|
+
#
|
222
|
+
# @return [Time]
|
223
|
+
required :date_created, Time, api_name: :dateCreated
|
224
|
+
|
225
|
+
# @!attribute date_updated
|
226
|
+
# The project last updated date.
|
227
|
+
#
|
228
|
+
# @return [Time]
|
229
|
+
required :date_updated, Time, api_name: :dateUpdated
|
230
|
+
|
231
|
+
# @!attribute development_goal_count
|
232
|
+
# The number of tests in the development mode of the project.
|
233
|
+
#
|
234
|
+
# @return [Integer]
|
235
|
+
required :development_goal_count, Integer, api_name: :developmentGoalCount
|
236
|
+
|
237
|
+
# @!attribute goal_count
|
238
|
+
# The total number of tests in the project.
|
239
|
+
#
|
240
|
+
# @return [Integer]
|
241
|
+
required :goal_count, Integer, api_name: :goalCount
|
242
|
+
|
243
|
+
# @!attribute inference_pipeline_count
|
244
|
+
# The number of inference pipelines in the project.
|
245
|
+
#
|
246
|
+
# @return [Integer]
|
247
|
+
required :inference_pipeline_count, Integer, api_name: :inferencePipelineCount
|
248
|
+
|
249
|
+
# @!attribute links
|
250
|
+
# Links to the project.
|
251
|
+
#
|
252
|
+
# @return [Openlayer::Models::Projects::InferencePipelineCreateResponse::Project::Links]
|
253
|
+
required :links, -> { Openlayer::Models::Projects::InferencePipelineCreateResponse::Project::Links }
|
254
|
+
|
255
|
+
# @!attribute monitoring_goal_count
|
256
|
+
# The number of tests in the monitoring mode of the project.
|
257
|
+
#
|
258
|
+
# @return [Integer]
|
259
|
+
required :monitoring_goal_count, Integer, api_name: :monitoringGoalCount
|
260
|
+
|
261
|
+
# @!attribute source
|
262
|
+
# The source of the project.
|
263
|
+
#
|
264
|
+
# @return [Symbol, Openlayer::Models::Projects::InferencePipelineCreateResponse::Project::Source, nil]
|
265
|
+
required :source,
|
266
|
+
enum: -> { Openlayer::Models::Projects::InferencePipelineCreateResponse::Project::Source },
|
267
|
+
nil?: true
|
268
|
+
|
269
|
+
# @!attribute version_count
|
270
|
+
# The number of versions (commits) in the project.
|
271
|
+
#
|
272
|
+
# @return [Integer]
|
273
|
+
required :version_count, Integer, api_name: :versionCount
|
274
|
+
|
275
|
+
# @!attribute workspace_id
|
276
|
+
# The workspace id.
|
277
|
+
#
|
278
|
+
# @return [String, nil]
|
279
|
+
required :workspace_id, String, api_name: :workspaceId, nil?: true
|
280
|
+
|
281
|
+
# @!attribute git_repo
|
282
|
+
#
|
283
|
+
# @return [Openlayer::Models::Projects::InferencePipelineCreateResponse::Project::GitRepo, nil]
|
284
|
+
optional :git_repo,
|
285
|
+
-> { Openlayer::Models::Projects::InferencePipelineCreateResponse::Project::GitRepo },
|
286
|
+
api_name: :gitRepo,
|
287
|
+
nil?: true
|
288
|
+
end
|
289
|
+
|
290
|
+
# @!method initialize(id:, creator_id:, date_created:, date_updated:, development_goal_count:, goal_count:, inference_pipeline_count:, links:, monitoring_goal_count:, name:, source:, task_type:, version_count:, workspace_id:, description: nil, git_repo: nil)
|
291
|
+
# @param id [String] The project id.
|
292
|
+
#
|
293
|
+
# @param creator_id [String, nil] The project creator id.
|
294
|
+
#
|
295
|
+
# @param date_created [Time] The project creation date.
|
296
|
+
#
|
297
|
+
# @param date_updated [Time] The project last updated date.
|
298
|
+
#
|
299
|
+
# @param development_goal_count [Integer] The number of tests in the development mode of the project.
|
300
|
+
#
|
301
|
+
# @param goal_count [Integer] The total number of tests in the project.
|
302
|
+
#
|
303
|
+
# @param inference_pipeline_count [Integer] The number of inference pipelines in the project.
|
304
|
+
#
|
305
|
+
# @param links [Openlayer::Models::Projects::InferencePipelineCreateResponse::Project::Links] Links to the project.
|
306
|
+
#
|
307
|
+
# @param monitoring_goal_count [Integer] The number of tests in the monitoring mode of the project.
|
308
|
+
#
|
309
|
+
# @param name [String] The project name.
|
310
|
+
#
|
311
|
+
# @param source [Symbol, Openlayer::Models::Projects::InferencePipelineCreateResponse::Project::Source, nil] The source of the project.
|
312
|
+
#
|
313
|
+
# @param task_type [Symbol, Openlayer::Models::Projects::InferencePipelineCreateResponse::Project::TaskType] The task type of the project.
|
314
|
+
#
|
315
|
+
# @param version_count [Integer] The number of versions (commits) in the project.
|
316
|
+
#
|
317
|
+
# @param workspace_id [String, nil] The workspace id.
|
318
|
+
#
|
319
|
+
# @param description [String, nil] The project description.
|
320
|
+
#
|
321
|
+
# @param git_repo [Openlayer::Models::Projects::InferencePipelineCreateResponse::Project::GitRepo, nil]
|
322
|
+
|
323
|
+
# @see Openlayer::Models::Projects::InferencePipelineCreateResponse::Project#links
|
324
|
+
class Links < Openlayer::Internal::Type::BaseModel
|
325
|
+
# @!attribute app
|
326
|
+
#
|
327
|
+
# @return [String]
|
328
|
+
required :app, String
|
329
|
+
|
330
|
+
# @!method initialize(app:)
|
331
|
+
# Links to the project.
|
332
|
+
#
|
333
|
+
# @param app [String]
|
334
|
+
end
|
335
|
+
|
336
|
+
# The source of the project.
|
337
|
+
#
|
338
|
+
# @see Openlayer::Models::Projects::InferencePipelineCreateResponse::Project#source
|
339
|
+
module Source
|
340
|
+
extend Openlayer::Internal::Type::Enum
|
341
|
+
|
342
|
+
WEB = :web
|
343
|
+
API = :api
|
344
|
+
NULL = :null
|
345
|
+
|
346
|
+
# @!method self.values
|
347
|
+
# @return [Array<Symbol>]
|
348
|
+
end
|
349
|
+
|
350
|
+
# The task type of the project.
|
351
|
+
#
|
352
|
+
# @see Openlayer::Models::Projects::InferencePipelineCreateResponse::Project#task_type
|
353
|
+
module TaskType
|
354
|
+
extend Openlayer::Internal::Type::Enum
|
355
|
+
|
356
|
+
LLM_BASE = :"llm-base"
|
357
|
+
TABULAR_CLASSIFICATION = :"tabular-classification"
|
358
|
+
TABULAR_REGRESSION = :"tabular-regression"
|
359
|
+
TEXT_CLASSIFICATION = :"text-classification"
|
360
|
+
|
361
|
+
# @!method self.values
|
362
|
+
# @return [Array<Symbol>]
|
363
|
+
end
|
364
|
+
|
365
|
+
# @see Openlayer::Models::Projects::InferencePipelineCreateResponse::Project#git_repo
|
366
|
+
class GitRepo < Openlayer::Internal::Type::BaseModel
|
367
|
+
# @!attribute git_account_id
|
368
|
+
#
|
369
|
+
# @return [String]
|
370
|
+
required :git_account_id, String, api_name: :gitAccountId
|
371
|
+
|
372
|
+
# @!attribute git_id
|
373
|
+
#
|
374
|
+
# @return [Integer]
|
375
|
+
required :git_id, Integer, api_name: :gitId
|
376
|
+
|
377
|
+
# @!attribute branch
|
378
|
+
#
|
379
|
+
# @return [String, nil]
|
380
|
+
optional :branch, String
|
381
|
+
|
382
|
+
# @!attribute root_dir
|
383
|
+
#
|
384
|
+
# @return [String, nil]
|
385
|
+
optional :root_dir, String, api_name: :rootDir
|
386
|
+
|
387
|
+
response_only do
|
388
|
+
# @!attribute id
|
389
|
+
#
|
390
|
+
# @return [String]
|
391
|
+
required :id, String
|
392
|
+
|
393
|
+
# @!attribute date_connected
|
394
|
+
#
|
395
|
+
# @return [Time]
|
396
|
+
required :date_connected, Time, api_name: :dateConnected
|
397
|
+
|
398
|
+
# @!attribute date_updated
|
399
|
+
#
|
400
|
+
# @return [Time]
|
401
|
+
required :date_updated, Time, api_name: :dateUpdated
|
402
|
+
|
403
|
+
# @!attribute name
|
404
|
+
#
|
405
|
+
# @return [String]
|
406
|
+
required :name, String
|
407
|
+
|
408
|
+
# @!attribute private
|
409
|
+
#
|
410
|
+
# @return [Boolean]
|
411
|
+
required :private, Openlayer::Internal::Type::Boolean
|
412
|
+
|
413
|
+
# @!attribute project_id
|
414
|
+
#
|
415
|
+
# @return [String]
|
416
|
+
required :project_id, String, api_name: :projectId
|
417
|
+
|
418
|
+
# @!attribute slug
|
419
|
+
#
|
420
|
+
# @return [String]
|
421
|
+
required :slug, String
|
422
|
+
|
423
|
+
# @!attribute url
|
424
|
+
#
|
425
|
+
# @return [String]
|
426
|
+
required :url, String
|
427
|
+
end
|
428
|
+
|
429
|
+
# @!method initialize(id:, date_connected:, date_updated:, git_account_id:, git_id:, name:, private:, project_id:, slug:, url:, branch: nil, root_dir: nil)
|
430
|
+
# @param id [String]
|
431
|
+
# @param date_connected [Time]
|
432
|
+
# @param date_updated [Time]
|
433
|
+
# @param git_account_id [String]
|
434
|
+
# @param git_id [Integer]
|
435
|
+
# @param name [String]
|
436
|
+
# @param private [Boolean]
|
437
|
+
# @param project_id [String]
|
438
|
+
# @param slug [String]
|
439
|
+
# @param url [String]
|
440
|
+
# @param branch [String]
|
441
|
+
# @param root_dir [String]
|
442
|
+
end
|
443
|
+
end
|
444
|
+
|
445
|
+
# @see Openlayer::Models::Projects::InferencePipelineCreateResponse#workspace
|
446
|
+
class Workspace < Openlayer::Internal::Type::BaseModel
|
447
|
+
# @!attribute name
|
448
|
+
# The workspace name.
|
449
|
+
#
|
450
|
+
# @return [String]
|
451
|
+
required :name, String
|
452
|
+
|
453
|
+
# @!attribute slug
|
454
|
+
# The workspace slug.
|
455
|
+
#
|
456
|
+
# @return [String]
|
457
|
+
required :slug, String
|
458
|
+
|
459
|
+
# @!attribute saml_only_access
|
460
|
+
# Whether the workspace only allows SAML authentication.
|
461
|
+
#
|
462
|
+
# @return [Boolean, nil]
|
463
|
+
optional :saml_only_access, Openlayer::Internal::Type::Boolean, api_name: :samlOnlyAccess
|
464
|
+
|
465
|
+
# @!attribute wildcard_domains
|
466
|
+
#
|
467
|
+
# @return [Array<String>, nil]
|
468
|
+
optional :wildcard_domains, Openlayer::Internal::Type::ArrayOf[String], api_name: :wildcardDomains
|
469
|
+
|
470
|
+
response_only do
|
471
|
+
# @!attribute id
|
472
|
+
# The workspace id.
|
473
|
+
#
|
474
|
+
# @return [String]
|
475
|
+
required :id, String
|
476
|
+
|
477
|
+
# @!attribute creator_id
|
478
|
+
# The workspace creator id.
|
479
|
+
#
|
480
|
+
# @return [String, nil]
|
481
|
+
required :creator_id, String, api_name: :creatorId, nil?: true
|
482
|
+
|
483
|
+
# @!attribute date_created
|
484
|
+
# The workspace creation date.
|
485
|
+
#
|
486
|
+
# @return [Time]
|
487
|
+
required :date_created, Time, api_name: :dateCreated
|
488
|
+
|
489
|
+
# @!attribute date_updated
|
490
|
+
# The workspace last updated date.
|
491
|
+
#
|
492
|
+
# @return [Time]
|
493
|
+
required :date_updated, Time, api_name: :dateUpdated
|
494
|
+
|
495
|
+
# @!attribute invite_count
|
496
|
+
# The number of invites in the workspace.
|
497
|
+
#
|
498
|
+
# @return [Integer]
|
499
|
+
required :invite_count, Integer, api_name: :inviteCount
|
500
|
+
|
501
|
+
# @!attribute member_count
|
502
|
+
# The number of members in the workspace.
|
503
|
+
#
|
504
|
+
# @return [Integer]
|
505
|
+
required :member_count, Integer, api_name: :memberCount
|
506
|
+
|
507
|
+
# @!attribute period_end_date
|
508
|
+
# The end date of the current billing period.
|
509
|
+
#
|
510
|
+
# @return [Time, nil]
|
511
|
+
required :period_end_date, Time, api_name: :periodEndDate, nil?: true
|
512
|
+
|
513
|
+
# @!attribute period_start_date
|
514
|
+
# The start date of the current billing period.
|
515
|
+
#
|
516
|
+
# @return [Time, nil]
|
517
|
+
required :period_start_date, Time, api_name: :periodStartDate, nil?: true
|
518
|
+
|
519
|
+
# @!attribute project_count
|
520
|
+
# The number of projects in the workspace.
|
521
|
+
#
|
522
|
+
# @return [Integer]
|
523
|
+
required :project_count, Integer, api_name: :projectCount
|
524
|
+
|
525
|
+
# @!attribute status
|
526
|
+
#
|
527
|
+
# @return [Symbol, Openlayer::Models::Projects::InferencePipelineCreateResponse::Workspace::Status]
|
528
|
+
required :status,
|
529
|
+
enum: -> { Openlayer::Models::Projects::InferencePipelineCreateResponse::Workspace::Status }
|
530
|
+
|
531
|
+
# @!attribute monthly_usage
|
532
|
+
#
|
533
|
+
# @return [Array<Openlayer::Models::Projects::InferencePipelineCreateResponse::Workspace::MonthlyUsage>, nil]
|
534
|
+
optional :monthly_usage,
|
535
|
+
-> { Openlayer::Internal::Type::ArrayOf[Openlayer::Models::Projects::InferencePipelineCreateResponse::Workspace::MonthlyUsage] },
|
536
|
+
api_name: :monthlyUsage
|
537
|
+
end
|
538
|
+
|
539
|
+
# @!method initialize(id:, creator_id:, date_created:, date_updated:, invite_count:, member_count:, name:, period_end_date:, period_start_date:, project_count:, slug:, status:, monthly_usage: nil, saml_only_access: nil, wildcard_domains: nil)
|
540
|
+
# @param id [String] The workspace id.
|
541
|
+
#
|
542
|
+
# @param creator_id [String, nil] The workspace creator id.
|
543
|
+
#
|
544
|
+
# @param date_created [Time] The workspace creation date.
|
545
|
+
#
|
546
|
+
# @param date_updated [Time] The workspace last updated date.
|
547
|
+
#
|
548
|
+
# @param invite_count [Integer] The number of invites in the workspace.
|
549
|
+
#
|
550
|
+
# @param member_count [Integer] The number of members in the workspace.
|
551
|
+
#
|
552
|
+
# @param name [String] The workspace name.
|
553
|
+
#
|
554
|
+
# @param period_end_date [Time, nil] The end date of the current billing period.
|
555
|
+
#
|
556
|
+
# @param period_start_date [Time, nil] The start date of the current billing period.
|
557
|
+
#
|
558
|
+
# @param project_count [Integer] The number of projects in the workspace.
|
559
|
+
#
|
560
|
+
# @param slug [String] The workspace slug.
|
561
|
+
#
|
562
|
+
# @param status [Symbol, Openlayer::Models::Projects::InferencePipelineCreateResponse::Workspace::Status]
|
563
|
+
#
|
564
|
+
# @param monthly_usage [Array<Openlayer::Models::Projects::InferencePipelineCreateResponse::Workspace::MonthlyUsage>]
|
565
|
+
#
|
566
|
+
# @param saml_only_access [Boolean] Whether the workspace only allows SAML authentication.
|
567
|
+
#
|
568
|
+
# @param wildcard_domains [Array<String>]
|
569
|
+
|
570
|
+
# @see Openlayer::Models::Projects::InferencePipelineCreateResponse::Workspace#status
|
571
|
+
module Status
|
572
|
+
extend Openlayer::Internal::Type::Enum
|
573
|
+
|
574
|
+
ACTIVE = :active
|
575
|
+
PAST_DUE = :past_due
|
576
|
+
UNPAID = :unpaid
|
577
|
+
CANCELED = :canceled
|
578
|
+
INCOMPLETE = :incomplete
|
579
|
+
INCOMPLETE_EXPIRED = :incomplete_expired
|
580
|
+
TRIALING = :trialing
|
581
|
+
PAUSED = :paused
|
582
|
+
|
583
|
+
# @!method self.values
|
584
|
+
# @return [Array<Symbol>]
|
585
|
+
end
|
586
|
+
|
587
|
+
class MonthlyUsage < Openlayer::Internal::Type::BaseModel
|
588
|
+
# @!attribute execution_time_ms
|
589
|
+
#
|
590
|
+
# @return [Integer, nil]
|
591
|
+
optional :execution_time_ms, Integer, api_name: :executionTimeMs, nil?: true
|
592
|
+
|
593
|
+
# @!attribute month_year
|
594
|
+
#
|
595
|
+
# @return [Date, nil]
|
596
|
+
optional :month_year, Date, api_name: :monthYear
|
597
|
+
|
598
|
+
# @!attribute prediction_count
|
599
|
+
#
|
600
|
+
# @return [Integer, nil]
|
601
|
+
optional :prediction_count, Integer, api_name: :predictionCount
|
602
|
+
|
603
|
+
# @!method initialize(execution_time_ms: nil, month_year: nil, prediction_count: nil)
|
604
|
+
# @param execution_time_ms [Integer, nil]
|
605
|
+
# @param month_year [Date]
|
606
|
+
# @param prediction_count [Integer]
|
607
|
+
end
|
608
|
+
end
|
609
|
+
end
|
610
|
+
end
|
611
|
+
end
|
612
|
+
end
|
@@ -0,0 +1,40 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Openlayer
|
4
|
+
module Models
|
5
|
+
module Projects
|
6
|
+
# @see Openlayer::Resources::Projects::InferencePipelines#list
|
7
|
+
class InferencePipelineListParams < Openlayer::Internal::Type::BaseModel
|
8
|
+
extend Openlayer::Internal::Type::RequestParameters::Converter
|
9
|
+
include Openlayer::Internal::Type::RequestParameters
|
10
|
+
|
11
|
+
# @!attribute name
|
12
|
+
# Filter list of items by name.
|
13
|
+
#
|
14
|
+
# @return [String, nil]
|
15
|
+
optional :name, String
|
16
|
+
|
17
|
+
# @!attribute page
|
18
|
+
# The page to return in a paginated query.
|
19
|
+
#
|
20
|
+
# @return [Integer, nil]
|
21
|
+
optional :page, Integer
|
22
|
+
|
23
|
+
# @!attribute per_page
|
24
|
+
# Maximum number of items to return per page.
|
25
|
+
#
|
26
|
+
# @return [Integer, nil]
|
27
|
+
optional :per_page, Integer
|
28
|
+
|
29
|
+
# @!method initialize(name: nil, page: nil, per_page: nil, request_options: {})
|
30
|
+
# @param name [String] Filter list of items by name.
|
31
|
+
#
|
32
|
+
# @param page [Integer] The page to return in a paginated query.
|
33
|
+
#
|
34
|
+
# @param per_page [Integer] Maximum number of items to return per page.
|
35
|
+
#
|
36
|
+
# @param request_options [Openlayer::RequestOptions, Hash{Symbol=>Object}]
|
37
|
+
end
|
38
|
+
end
|
39
|
+
end
|
40
|
+
end
|