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,454 @@
1
+ # typed: strong
2
+
3
+ module Openlayer
4
+ module Models
5
+ module Projects
6
+ class CommitListResponse < Openlayer::Internal::Type::BaseModel
7
+ OrHash =
8
+ T.type_alias do
9
+ T.any(
10
+ Openlayer::Models::Projects::CommitListResponse,
11
+ Openlayer::Internal::AnyHash
12
+ )
13
+ end
14
+
15
+ sig do
16
+ returns(
17
+ T::Array[Openlayer::Models::Projects::CommitListResponse::Item]
18
+ )
19
+ end
20
+ attr_accessor :items
21
+
22
+ sig do
23
+ params(
24
+ items:
25
+ T::Array[
26
+ Openlayer::Models::Projects::CommitListResponse::Item::OrHash
27
+ ]
28
+ ).returns(T.attached_class)
29
+ end
30
+ def self.new(items:)
31
+ end
32
+
33
+ sig do
34
+ override.returns(
35
+ {
36
+ items:
37
+ T::Array[Openlayer::Models::Projects::CommitListResponse::Item]
38
+ }
39
+ )
40
+ end
41
+ def to_hash
42
+ end
43
+
44
+ class Item < Openlayer::Internal::Type::BaseModel
45
+ OrHash =
46
+ T.type_alias do
47
+ T.any(
48
+ Openlayer::Models::Projects::CommitListResponse::Item,
49
+ Openlayer::Internal::AnyHash
50
+ )
51
+ end
52
+
53
+ # The details of a commit (project version).
54
+ sig do
55
+ returns(
56
+ Openlayer::Models::Projects::CommitListResponse::Item::Commit
57
+ )
58
+ end
59
+ attr_reader :commit
60
+
61
+ sig do
62
+ params(
63
+ commit:
64
+ Openlayer::Models::Projects::CommitListResponse::Item::Commit::OrHash
65
+ ).void
66
+ end
67
+ attr_writer :commit
68
+
69
+ # Whether the commit is archived.
70
+ sig { returns(T.nilable(T::Boolean)) }
71
+ attr_accessor :archived
72
+
73
+ # The deployment status associated with the commit's model.
74
+ sig { returns(T.nilable(String)) }
75
+ attr_reader :deployment_status
76
+
77
+ sig { params(deployment_status: String).void }
78
+ attr_writer :deployment_status
79
+
80
+ # The project version (commit) id.
81
+ sig { returns(String) }
82
+ attr_accessor :id
83
+
84
+ # The commit archive date.
85
+ sig { returns(T.nilable(Time)) }
86
+ attr_accessor :date_archived
87
+
88
+ # The project version (commit) creation date.
89
+ sig { returns(Time) }
90
+ attr_accessor :date_created
91
+
92
+ # The number of tests that are failing for the commit.
93
+ sig { returns(Integer) }
94
+ attr_accessor :failing_goal_count
95
+
96
+ # The model id.
97
+ sig { returns(T.nilable(String)) }
98
+ attr_accessor :ml_model_id
99
+
100
+ # The number of tests that are passing for the commit.
101
+ sig { returns(Integer) }
102
+ attr_accessor :passing_goal_count
103
+
104
+ # The project id.
105
+ sig { returns(String) }
106
+ attr_accessor :project_id
107
+
108
+ # The commit status. Initially, the commit is `queued`, then, it switches to
109
+ # `running`. Finally, it can be `paused`, `failed`, or `completed`.
110
+ sig do
111
+ returns(
112
+ Openlayer::Models::Projects::CommitListResponse::Item::Status::TaggedSymbol
113
+ )
114
+ end
115
+ attr_accessor :status
116
+
117
+ # The commit status message.
118
+ sig { returns(T.nilable(String)) }
119
+ attr_accessor :status_message
120
+
121
+ # The total number of tests for the commit.
122
+ sig { returns(Integer) }
123
+ attr_accessor :total_goal_count
124
+
125
+ # The training dataset id.
126
+ sig { returns(T.nilable(String)) }
127
+ attr_accessor :training_dataset_id
128
+
129
+ # The validation dataset id.
130
+ sig { returns(T.nilable(String)) }
131
+ attr_accessor :validation_dataset_id
132
+
133
+ sig do
134
+ returns(
135
+ T.nilable(
136
+ Openlayer::Models::Projects::CommitListResponse::Item::Links
137
+ )
138
+ )
139
+ end
140
+ attr_reader :links
141
+
142
+ sig do
143
+ params(
144
+ links:
145
+ Openlayer::Models::Projects::CommitListResponse::Item::Links::OrHash
146
+ ).void
147
+ end
148
+ attr_writer :links
149
+
150
+ sig do
151
+ params(
152
+ id: String,
153
+ commit:
154
+ Openlayer::Models::Projects::CommitListResponse::Item::Commit::OrHash,
155
+ date_archived: T.nilable(Time),
156
+ date_created: Time,
157
+ failing_goal_count: Integer,
158
+ ml_model_id: T.nilable(String),
159
+ passing_goal_count: Integer,
160
+ project_id: String,
161
+ status:
162
+ Openlayer::Models::Projects::CommitListResponse::Item::Status::OrSymbol,
163
+ status_message: T.nilable(String),
164
+ total_goal_count: Integer,
165
+ training_dataset_id: T.nilable(String),
166
+ validation_dataset_id: T.nilable(String),
167
+ archived: T.nilable(T::Boolean),
168
+ deployment_status: String,
169
+ links:
170
+ Openlayer::Models::Projects::CommitListResponse::Item::Links::OrHash
171
+ ).returns(T.attached_class)
172
+ end
173
+ def self.new(
174
+ # The project version (commit) id.
175
+ id:,
176
+ # The details of a commit (project version).
177
+ commit:,
178
+ # The commit archive date.
179
+ date_archived:,
180
+ # The project version (commit) creation date.
181
+ date_created:,
182
+ # The number of tests that are failing for the commit.
183
+ failing_goal_count:,
184
+ # The model id.
185
+ ml_model_id:,
186
+ # The number of tests that are passing for the commit.
187
+ passing_goal_count:,
188
+ # The project id.
189
+ project_id:,
190
+ # The commit status. Initially, the commit is `queued`, then, it switches to
191
+ # `running`. Finally, it can be `paused`, `failed`, or `completed`.
192
+ status:,
193
+ # The commit status message.
194
+ status_message:,
195
+ # The total number of tests for the commit.
196
+ total_goal_count:,
197
+ # The training dataset id.
198
+ training_dataset_id:,
199
+ # The validation dataset id.
200
+ validation_dataset_id:,
201
+ # Whether the commit is archived.
202
+ archived: nil,
203
+ # The deployment status associated with the commit's model.
204
+ deployment_status: nil,
205
+ links: nil
206
+ )
207
+ end
208
+
209
+ sig do
210
+ override.returns(
211
+ {
212
+ id: String,
213
+ commit:
214
+ Openlayer::Models::Projects::CommitListResponse::Item::Commit,
215
+ date_archived: T.nilable(Time),
216
+ date_created: Time,
217
+ failing_goal_count: Integer,
218
+ ml_model_id: T.nilable(String),
219
+ passing_goal_count: Integer,
220
+ project_id: String,
221
+ status:
222
+ Openlayer::Models::Projects::CommitListResponse::Item::Status::TaggedSymbol,
223
+ status_message: T.nilable(String),
224
+ storage_uri: String,
225
+ total_goal_count: Integer,
226
+ training_dataset_id: T.nilable(String),
227
+ validation_dataset_id: T.nilable(String),
228
+ archived: T.nilable(T::Boolean),
229
+ deployment_status: String,
230
+ links:
231
+ Openlayer::Models::Projects::CommitListResponse::Item::Links
232
+ }
233
+ )
234
+ end
235
+ def to_hash
236
+ end
237
+
238
+ class Commit < Openlayer::Internal::Type::BaseModel
239
+ OrHash =
240
+ T.type_alias do
241
+ T.any(
242
+ Openlayer::Models::Projects::CommitListResponse::Item::Commit,
243
+ Openlayer::Internal::AnyHash
244
+ )
245
+ end
246
+
247
+ # The commit message.
248
+ sig { returns(String) }
249
+ attr_accessor :message
250
+
251
+ # The commit id.
252
+ sig { returns(String) }
253
+ attr_accessor :id
254
+
255
+ # The author id of the commit.
256
+ sig { returns(String) }
257
+ attr_accessor :author_id
258
+
259
+ # The size of the commit bundle in bytes.
260
+ sig { returns(T.nilable(Integer)) }
261
+ attr_accessor :file_size
262
+
263
+ # The model id.
264
+ sig { returns(T.nilable(String)) }
265
+ attr_accessor :ml_model_id
266
+
267
+ # The storage URI where the commit bundle is stored.
268
+ sig { returns(String) }
269
+ attr_accessor :storage_uri
270
+
271
+ # The training dataset id.
272
+ sig { returns(T.nilable(String)) }
273
+ attr_accessor :training_dataset_id
274
+
275
+ # The validation dataset id.
276
+ sig { returns(T.nilable(String)) }
277
+ attr_accessor :validation_dataset_id
278
+
279
+ # The commit creation date.
280
+ sig { returns(T.nilable(Time)) }
281
+ attr_reader :date_created
282
+
283
+ sig { params(date_created: Time).void }
284
+ attr_writer :date_created
285
+
286
+ # The ref of the corresponding git commit.
287
+ sig { returns(T.nilable(String)) }
288
+ attr_reader :git_commit_ref
289
+
290
+ sig { params(git_commit_ref: String).void }
291
+ attr_writer :git_commit_ref
292
+
293
+ # The SHA of the corresponding git commit.
294
+ sig { returns(T.nilable(Integer)) }
295
+ attr_reader :git_commit_sha
296
+
297
+ sig { params(git_commit_sha: Integer).void }
298
+ attr_writer :git_commit_sha
299
+
300
+ # The URL of the corresponding git commit.
301
+ sig { returns(T.nilable(String)) }
302
+ attr_reader :git_commit_url
303
+
304
+ sig { params(git_commit_url: String).void }
305
+ attr_writer :git_commit_url
306
+
307
+ # The details of a commit (project version).
308
+ sig do
309
+ params(
310
+ id: String,
311
+ author_id: String,
312
+ file_size: T.nilable(Integer),
313
+ message: String,
314
+ ml_model_id: T.nilable(String),
315
+ storage_uri: String,
316
+ training_dataset_id: T.nilable(String),
317
+ validation_dataset_id: T.nilable(String),
318
+ date_created: Time,
319
+ git_commit_ref: String,
320
+ git_commit_sha: Integer,
321
+ git_commit_url: String
322
+ ).returns(T.attached_class)
323
+ end
324
+ def self.new(
325
+ # The commit id.
326
+ id:,
327
+ # The author id of the commit.
328
+ author_id:,
329
+ # The size of the commit bundle in bytes.
330
+ file_size:,
331
+ # The commit message.
332
+ message:,
333
+ # The model id.
334
+ ml_model_id:,
335
+ # The storage URI where the commit bundle is stored.
336
+ storage_uri:,
337
+ # The training dataset id.
338
+ training_dataset_id:,
339
+ # The validation dataset id.
340
+ validation_dataset_id:,
341
+ # The commit creation date.
342
+ date_created: nil,
343
+ # The ref of the corresponding git commit.
344
+ git_commit_ref: nil,
345
+ # The SHA of the corresponding git commit.
346
+ git_commit_sha: nil,
347
+ # The URL of the corresponding git commit.
348
+ git_commit_url: nil
349
+ )
350
+ end
351
+
352
+ sig do
353
+ override.returns(
354
+ {
355
+ id: String,
356
+ author_id: String,
357
+ file_size: T.nilable(Integer),
358
+ message: String,
359
+ ml_model_id: T.nilable(String),
360
+ storage_uri: String,
361
+ training_dataset_id: T.nilable(String),
362
+ validation_dataset_id: T.nilable(String),
363
+ date_created: Time,
364
+ git_commit_ref: String,
365
+ git_commit_sha: Integer,
366
+ git_commit_url: String
367
+ }
368
+ )
369
+ end
370
+ def to_hash
371
+ end
372
+ end
373
+
374
+ # The commit status. Initially, the commit is `queued`, then, it switches to
375
+ # `running`. Finally, it can be `paused`, `failed`, or `completed`.
376
+ module Status
377
+ extend Openlayer::Internal::Type::Enum
378
+
379
+ TaggedSymbol =
380
+ T.type_alias do
381
+ T.all(
382
+ Symbol,
383
+ Openlayer::Models::Projects::CommitListResponse::Item::Status
384
+ )
385
+ end
386
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
387
+
388
+ QUEUED =
389
+ T.let(
390
+ :queued,
391
+ Openlayer::Models::Projects::CommitListResponse::Item::Status::TaggedSymbol
392
+ )
393
+ RUNNING =
394
+ T.let(
395
+ :running,
396
+ Openlayer::Models::Projects::CommitListResponse::Item::Status::TaggedSymbol
397
+ )
398
+ PAUSED =
399
+ T.let(
400
+ :paused,
401
+ Openlayer::Models::Projects::CommitListResponse::Item::Status::TaggedSymbol
402
+ )
403
+ FAILED =
404
+ T.let(
405
+ :failed,
406
+ Openlayer::Models::Projects::CommitListResponse::Item::Status::TaggedSymbol
407
+ )
408
+ COMPLETED =
409
+ T.let(
410
+ :completed,
411
+ Openlayer::Models::Projects::CommitListResponse::Item::Status::TaggedSymbol
412
+ )
413
+ UNKNOWN =
414
+ T.let(
415
+ :unknown,
416
+ Openlayer::Models::Projects::CommitListResponse::Item::Status::TaggedSymbol
417
+ )
418
+
419
+ sig do
420
+ override.returns(
421
+ T::Array[
422
+ Openlayer::Models::Projects::CommitListResponse::Item::Status::TaggedSymbol
423
+ ]
424
+ )
425
+ end
426
+ def self.values
427
+ end
428
+ end
429
+
430
+ class Links < Openlayer::Internal::Type::BaseModel
431
+ OrHash =
432
+ T.type_alias do
433
+ T.any(
434
+ Openlayer::Models::Projects::CommitListResponse::Item::Links,
435
+ Openlayer::Internal::AnyHash
436
+ )
437
+ end
438
+
439
+ sig { returns(String) }
440
+ attr_accessor :app
441
+
442
+ sig { params(app: String).returns(T.attached_class) }
443
+ def self.new(app:)
444
+ end
445
+
446
+ sig { override.returns({ app: String }) }
447
+ def to_hash
448
+ end
449
+ end
450
+ end
451
+ end
452
+ end
453
+ end
454
+ end