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