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,210 @@
1
+ module Openlayer
2
+ module Models
3
+ type project_create_response =
4
+ {
5
+ id: String,
6
+ creator_id: String?,
7
+ date_created: Time,
8
+ date_updated: Time,
9
+ development_goal_count: Integer,
10
+ goal_count: Integer,
11
+ inference_pipeline_count: Integer,
12
+ links: Openlayer::Models::ProjectCreateResponse::Links,
13
+ monitoring_goal_count: Integer,
14
+ name: String,
15
+ source: Openlayer::Models::ProjectCreateResponse::source?,
16
+ task_type: Openlayer::Models::ProjectCreateResponse::task_type,
17
+ version_count: Integer,
18
+ workspace_id: String?,
19
+ description: String?,
20
+ git_repo: Openlayer::Models::ProjectCreateResponse::GitRepo?
21
+ }
22
+
23
+ class ProjectCreateResponse < Openlayer::Internal::Type::BaseModel
24
+ attr_accessor name: String
25
+
26
+ attr_accessor task_type: Openlayer::Models::ProjectCreateResponse::task_type
27
+
28
+ attr_accessor description: String?
29
+
30
+ attr_accessor id: String
31
+
32
+ attr_accessor creator_id: String?
33
+
34
+ attr_accessor date_created: Time
35
+
36
+ attr_accessor date_updated: Time
37
+
38
+ attr_accessor development_goal_count: Integer
39
+
40
+ attr_accessor goal_count: Integer
41
+
42
+ attr_accessor inference_pipeline_count: Integer
43
+
44
+ attr_accessor links: Openlayer::Models::ProjectCreateResponse::Links
45
+
46
+ attr_accessor monitoring_goal_count: Integer
47
+
48
+ attr_accessor source: Openlayer::Models::ProjectCreateResponse::source?
49
+
50
+ attr_accessor version_count: Integer
51
+
52
+ attr_accessor workspace_id: String?
53
+
54
+ attr_accessor git_repo: Openlayer::Models::ProjectCreateResponse::GitRepo?
55
+
56
+ def initialize: (
57
+ id: String,
58
+ creator_id: String?,
59
+ date_created: Time,
60
+ date_updated: Time,
61
+ development_goal_count: Integer,
62
+ goal_count: Integer,
63
+ inference_pipeline_count: Integer,
64
+ links: Openlayer::Models::ProjectCreateResponse::Links,
65
+ monitoring_goal_count: Integer,
66
+ name: String,
67
+ source: Openlayer::Models::ProjectCreateResponse::source?,
68
+ task_type: Openlayer::Models::ProjectCreateResponse::task_type,
69
+ version_count: Integer,
70
+ workspace_id: String?,
71
+ ?description: String?,
72
+ ?git_repo: Openlayer::Models::ProjectCreateResponse::GitRepo?
73
+ ) -> void
74
+
75
+ def to_hash: -> {
76
+ id: String,
77
+ creator_id: String?,
78
+ date_created: Time,
79
+ date_updated: Time,
80
+ development_goal_count: Integer,
81
+ goal_count: Integer,
82
+ inference_pipeline_count: Integer,
83
+ links: Openlayer::Models::ProjectCreateResponse::Links,
84
+ monitoring_goal_count: Integer,
85
+ name: String,
86
+ source: Openlayer::Models::ProjectCreateResponse::source?,
87
+ task_type: Openlayer::Models::ProjectCreateResponse::task_type,
88
+ version_count: Integer,
89
+ workspace_id: String?,
90
+ description: String?,
91
+ git_repo: Openlayer::Models::ProjectCreateResponse::GitRepo?
92
+ }
93
+
94
+ type links = { app: String }
95
+
96
+ class Links < Openlayer::Internal::Type::BaseModel
97
+ attr_accessor app: String
98
+
99
+ def initialize: (app: String) -> void
100
+
101
+ def to_hash: -> { app: String }
102
+ end
103
+
104
+ type source = :web | :api | :null
105
+
106
+ module Source
107
+ extend Openlayer::Internal::Type::Enum
108
+
109
+ WEB: :web
110
+ API: :api
111
+ NULL: :null
112
+
113
+ def self?.values: -> ::Array[Openlayer::Models::ProjectCreateResponse::source]
114
+ end
115
+
116
+ type task_type =
117
+ :"llm-base"
118
+ | :"tabular-classification"
119
+ | :"tabular-regression"
120
+ | :"text-classification"
121
+
122
+ module TaskType
123
+ extend Openlayer::Internal::Type::Enum
124
+
125
+ LLM_BASE: :"llm-base"
126
+ TABULAR_CLASSIFICATION: :"tabular-classification"
127
+ TABULAR_REGRESSION: :"tabular-regression"
128
+ TEXT_CLASSIFICATION: :"text-classification"
129
+
130
+ def self?.values: -> ::Array[Openlayer::Models::ProjectCreateResponse::task_type]
131
+ end
132
+
133
+ type git_repo =
134
+ {
135
+ id: String,
136
+ date_connected: Time,
137
+ date_updated: Time,
138
+ git_account_id: String,
139
+ git_id: Integer,
140
+ name: String,
141
+ private: bool,
142
+ project_id: String,
143
+ slug: String,
144
+ url: String,
145
+ branch: String,
146
+ root_dir: String
147
+ }
148
+
149
+ class GitRepo < Openlayer::Internal::Type::BaseModel
150
+ attr_accessor git_account_id: String
151
+
152
+ attr_accessor git_id: Integer
153
+
154
+ attr_reader branch: String?
155
+
156
+ def branch=: (String) -> String
157
+
158
+ attr_reader root_dir: String?
159
+
160
+ def root_dir=: (String) -> String
161
+
162
+ attr_accessor id: String
163
+
164
+ attr_accessor date_connected: Time
165
+
166
+ attr_accessor date_updated: Time
167
+
168
+ attr_accessor name: String
169
+
170
+ attr_accessor private: bool
171
+
172
+ attr_accessor project_id: String
173
+
174
+ attr_accessor slug: String
175
+
176
+ attr_accessor url: String
177
+
178
+ def initialize: (
179
+ id: String,
180
+ date_connected: Time,
181
+ date_updated: Time,
182
+ git_account_id: String,
183
+ git_id: Integer,
184
+ name: String,
185
+ private: bool,
186
+ project_id: String,
187
+ slug: String,
188
+ url: String,
189
+ ?branch: String,
190
+ ?root_dir: String
191
+ ) -> void
192
+
193
+ def to_hash: -> {
194
+ id: String,
195
+ date_connected: Time,
196
+ date_updated: Time,
197
+ git_account_id: String,
198
+ git_id: Integer,
199
+ name: String,
200
+ private: bool,
201
+ project_id: String,
202
+ slug: String,
203
+ url: String,
204
+ branch: String,
205
+ root_dir: String
206
+ }
207
+ end
208
+ end
209
+ end
210
+ end
@@ -0,0 +1,68 @@
1
+ module Openlayer
2
+ module Models
3
+ type project_list_params =
4
+ {
5
+ name: String,
6
+ page: Integer,
7
+ per_page: Integer,
8
+ task_type: Openlayer::Models::ProjectListParams::task_type
9
+ }
10
+ & Openlayer::Internal::Type::request_parameters
11
+
12
+ class ProjectListParams < Openlayer::Internal::Type::BaseModel
13
+ extend Openlayer::Internal::Type::RequestParameters::Converter
14
+ include Openlayer::Internal::Type::RequestParameters
15
+
16
+ attr_reader name: String?
17
+
18
+ def name=: (String) -> String
19
+
20
+ attr_reader page: Integer?
21
+
22
+ def page=: (Integer) -> Integer
23
+
24
+ attr_reader per_page: Integer?
25
+
26
+ def per_page=: (Integer) -> Integer
27
+
28
+ attr_reader task_type: Openlayer::Models::ProjectListParams::task_type?
29
+
30
+ def task_type=: (
31
+ Openlayer::Models::ProjectListParams::task_type
32
+ ) -> Openlayer::Models::ProjectListParams::task_type
33
+
34
+ def initialize: (
35
+ ?name: String,
36
+ ?page: Integer,
37
+ ?per_page: Integer,
38
+ ?task_type: Openlayer::Models::ProjectListParams::task_type,
39
+ ?request_options: Openlayer::request_opts
40
+ ) -> void
41
+
42
+ def to_hash: -> {
43
+ name: String,
44
+ page: Integer,
45
+ per_page: Integer,
46
+ task_type: Openlayer::Models::ProjectListParams::task_type,
47
+ request_options: Openlayer::RequestOptions
48
+ }
49
+
50
+ type task_type =
51
+ :"llm-base"
52
+ | :"tabular-classification"
53
+ | :"tabular-regression"
54
+ | :"text-classification"
55
+
56
+ module TaskType
57
+ extend Openlayer::Internal::Type::Enum
58
+
59
+ LLM_BASE: :"llm-base"
60
+ TABULAR_CLASSIFICATION: :"tabular-classification"
61
+ TABULAR_REGRESSION: :"tabular-regression"
62
+ TEXT_CLASSIFICATION: :"text-classification"
63
+
64
+ def self?.values: -> ::Array[Openlayer::Models::ProjectListParams::task_type]
65
+ end
66
+ end
67
+ end
68
+ end
@@ -0,0 +1,225 @@
1
+ module Openlayer
2
+ module Models
3
+ type project_list_response =
4
+ { items: ::Array[Openlayer::Models::ProjectListResponse::Item] }
5
+
6
+ class ProjectListResponse < Openlayer::Internal::Type::BaseModel
7
+ attr_accessor items: ::Array[Openlayer::Models::ProjectListResponse::Item]
8
+
9
+ def initialize: (
10
+ items: ::Array[Openlayer::Models::ProjectListResponse::Item]
11
+ ) -> void
12
+
13
+ def to_hash: -> {
14
+ items: ::Array[Openlayer::Models::ProjectListResponse::Item]
15
+ }
16
+
17
+ type item =
18
+ {
19
+ id: String,
20
+ creator_id: String?,
21
+ date_created: Time,
22
+ date_updated: Time,
23
+ development_goal_count: Integer,
24
+ goal_count: Integer,
25
+ inference_pipeline_count: Integer,
26
+ links: Openlayer::Models::ProjectListResponse::Item::Links,
27
+ monitoring_goal_count: Integer,
28
+ name: String,
29
+ source: Openlayer::Models::ProjectListResponse::Item::source?,
30
+ task_type: Openlayer::Models::ProjectListResponse::Item::task_type,
31
+ version_count: Integer,
32
+ workspace_id: String?,
33
+ description: String?,
34
+ git_repo: Openlayer::Models::ProjectListResponse::Item::GitRepo?
35
+ }
36
+
37
+ class Item < Openlayer::Internal::Type::BaseModel
38
+ attr_accessor name: String
39
+
40
+ attr_accessor task_type: Openlayer::Models::ProjectListResponse::Item::task_type
41
+
42
+ attr_accessor description: String?
43
+
44
+ attr_accessor id: String
45
+
46
+ attr_accessor creator_id: String?
47
+
48
+ attr_accessor date_created: Time
49
+
50
+ attr_accessor date_updated: Time
51
+
52
+ attr_accessor development_goal_count: Integer
53
+
54
+ attr_accessor goal_count: Integer
55
+
56
+ attr_accessor inference_pipeline_count: Integer
57
+
58
+ attr_accessor links: Openlayer::Models::ProjectListResponse::Item::Links
59
+
60
+ attr_accessor monitoring_goal_count: Integer
61
+
62
+ attr_accessor source: Openlayer::Models::ProjectListResponse::Item::source?
63
+
64
+ attr_accessor version_count: Integer
65
+
66
+ attr_accessor workspace_id: String?
67
+
68
+ attr_accessor git_repo: Openlayer::Models::ProjectListResponse::Item::GitRepo?
69
+
70
+ def initialize: (
71
+ id: String,
72
+ creator_id: String?,
73
+ date_created: Time,
74
+ date_updated: Time,
75
+ development_goal_count: Integer,
76
+ goal_count: Integer,
77
+ inference_pipeline_count: Integer,
78
+ links: Openlayer::Models::ProjectListResponse::Item::Links,
79
+ monitoring_goal_count: Integer,
80
+ name: String,
81
+ source: Openlayer::Models::ProjectListResponse::Item::source?,
82
+ task_type: Openlayer::Models::ProjectListResponse::Item::task_type,
83
+ version_count: Integer,
84
+ workspace_id: String?,
85
+ ?description: String?,
86
+ ?git_repo: Openlayer::Models::ProjectListResponse::Item::GitRepo?
87
+ ) -> void
88
+
89
+ def to_hash: -> {
90
+ id: String,
91
+ creator_id: String?,
92
+ date_created: Time,
93
+ date_updated: Time,
94
+ development_goal_count: Integer,
95
+ goal_count: Integer,
96
+ inference_pipeline_count: Integer,
97
+ links: Openlayer::Models::ProjectListResponse::Item::Links,
98
+ monitoring_goal_count: Integer,
99
+ name: String,
100
+ source: Openlayer::Models::ProjectListResponse::Item::source?,
101
+ task_type: Openlayer::Models::ProjectListResponse::Item::task_type,
102
+ version_count: Integer,
103
+ workspace_id: String?,
104
+ description: String?,
105
+ git_repo: Openlayer::Models::ProjectListResponse::Item::GitRepo?
106
+ }
107
+
108
+ type links = { app: String }
109
+
110
+ class Links < Openlayer::Internal::Type::BaseModel
111
+ attr_accessor app: String
112
+
113
+ def initialize: (app: String) -> void
114
+
115
+ def to_hash: -> { app: String }
116
+ end
117
+
118
+ type source = :web | :api | :null
119
+
120
+ module Source
121
+ extend Openlayer::Internal::Type::Enum
122
+
123
+ WEB: :web
124
+ API: :api
125
+ NULL: :null
126
+
127
+ def self?.values: -> ::Array[Openlayer::Models::ProjectListResponse::Item::source]
128
+ end
129
+
130
+ type task_type =
131
+ :"llm-base"
132
+ | :"tabular-classification"
133
+ | :"tabular-regression"
134
+ | :"text-classification"
135
+
136
+ module TaskType
137
+ extend Openlayer::Internal::Type::Enum
138
+
139
+ LLM_BASE: :"llm-base"
140
+ TABULAR_CLASSIFICATION: :"tabular-classification"
141
+ TABULAR_REGRESSION: :"tabular-regression"
142
+ TEXT_CLASSIFICATION: :"text-classification"
143
+
144
+ def self?.values: -> ::Array[Openlayer::Models::ProjectListResponse::Item::task_type]
145
+ end
146
+
147
+ type git_repo =
148
+ {
149
+ id: String,
150
+ date_connected: Time,
151
+ date_updated: Time,
152
+ git_account_id: String,
153
+ git_id: Integer,
154
+ name: String,
155
+ private: bool,
156
+ project_id: String,
157
+ slug: String,
158
+ url: String,
159
+ branch: String,
160
+ root_dir: String
161
+ }
162
+
163
+ class GitRepo < Openlayer::Internal::Type::BaseModel
164
+ attr_accessor git_account_id: String
165
+
166
+ attr_accessor git_id: Integer
167
+
168
+ attr_reader branch: String?
169
+
170
+ def branch=: (String) -> String
171
+
172
+ attr_reader root_dir: String?
173
+
174
+ def root_dir=: (String) -> String
175
+
176
+ attr_accessor id: String
177
+
178
+ attr_accessor date_connected: Time
179
+
180
+ attr_accessor date_updated: Time
181
+
182
+ attr_accessor name: String
183
+
184
+ attr_accessor private: bool
185
+
186
+ attr_accessor project_id: String
187
+
188
+ attr_accessor slug: String
189
+
190
+ attr_accessor url: String
191
+
192
+ def initialize: (
193
+ id: String,
194
+ date_connected: Time,
195
+ date_updated: Time,
196
+ git_account_id: String,
197
+ git_id: Integer,
198
+ name: String,
199
+ private: bool,
200
+ project_id: String,
201
+ slug: String,
202
+ url: String,
203
+ ?branch: String,
204
+ ?root_dir: String
205
+ ) -> void
206
+
207
+ def to_hash: -> {
208
+ id: String,
209
+ date_connected: Time,
210
+ date_updated: Time,
211
+ git_account_id: String,
212
+ git_id: Integer,
213
+ name: String,
214
+ private: bool,
215
+ project_id: String,
216
+ slug: String,
217
+ url: String,
218
+ branch: String,
219
+ root_dir: String
220
+ }
221
+ end
222
+ end
223
+ end
224
+ end
225
+ end
@@ -0,0 +1,82 @@
1
+ module Openlayer
2
+ module Models
3
+ module Projects
4
+ type commit_create_params =
5
+ {
6
+ commit: Openlayer::Projects::CommitCreateParams::Commit,
7
+ storage_uri: String,
8
+ archived: bool?,
9
+ deployment_status: String
10
+ }
11
+ & Openlayer::Internal::Type::request_parameters
12
+
13
+ class CommitCreateParams < Openlayer::Internal::Type::BaseModel
14
+ extend Openlayer::Internal::Type::RequestParameters::Converter
15
+ include Openlayer::Internal::Type::RequestParameters
16
+
17
+ attr_accessor commit: Openlayer::Projects::CommitCreateParams::Commit
18
+
19
+ attr_accessor storage_uri: String
20
+
21
+ attr_accessor archived: bool?
22
+
23
+ attr_reader deployment_status: String?
24
+
25
+ def deployment_status=: (String) -> String
26
+
27
+ def initialize: (
28
+ commit: Openlayer::Projects::CommitCreateParams::Commit,
29
+ storage_uri: String,
30
+ ?archived: bool?,
31
+ ?deployment_status: String,
32
+ ?request_options: Openlayer::request_opts
33
+ ) -> void
34
+
35
+ def to_hash: -> {
36
+ commit: Openlayer::Projects::CommitCreateParams::Commit,
37
+ storage_uri: String,
38
+ archived: bool?,
39
+ deployment_status: String,
40
+ request_options: Openlayer::RequestOptions
41
+ }
42
+
43
+ type commit =
44
+ {
45
+ id: String,
46
+ author_id: String,
47
+ file_size: Integer?,
48
+ message: String,
49
+ ml_model_id: String?,
50
+ storage_uri: String,
51
+ training_dataset_id: String?,
52
+ validation_dataset_id: String?,
53
+ date_created: Time,
54
+ git_commit_ref: String,
55
+ git_commit_sha: Integer,
56
+ git_commit_url: String
57
+ }
58
+
59
+ class Commit < Openlayer::Internal::Type::BaseModel
60
+ attr_accessor message: String
61
+
62
+ def initialize: (message: String) -> void
63
+
64
+ def to_hash: -> {
65
+ id: String,
66
+ author_id: String,
67
+ file_size: Integer?,
68
+ message: String,
69
+ ml_model_id: String?,
70
+ storage_uri: String,
71
+ training_dataset_id: String?,
72
+ validation_dataset_id: String?,
73
+ date_created: Time,
74
+ git_commit_ref: String,
75
+ git_commit_sha: Integer,
76
+ git_commit_url: String
77
+ }
78
+ end
79
+ end
80
+ end
81
+ end
82
+ end