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,493 @@
1
+ module Openlayer
2
+ module Models
3
+ type inference_pipeline_retrieve_response =
4
+ {
5
+ id: String,
6
+ date_created: Time,
7
+ date_last_evaluated: Time?,
8
+ date_last_sample_received: Time?,
9
+ date_of_next_evaluation: Time?,
10
+ date_updated: Time,
11
+ description: String?,
12
+ failing_goal_count: Integer,
13
+ links: Openlayer::Models::InferencePipelineRetrieveResponse::Links,
14
+ name: String,
15
+ passing_goal_count: Integer,
16
+ project_id: String,
17
+ status: Openlayer::Models::InferencePipelineRetrieveResponse::status,
18
+ status_message: String?,
19
+ total_goal_count: Integer,
20
+ project: Openlayer::Models::InferencePipelineRetrieveResponse::Project?,
21
+ workspace: Openlayer::Models::InferencePipelineRetrieveResponse::Workspace?,
22
+ workspace_id: String
23
+ }
24
+
25
+ class InferencePipelineRetrieveResponse < Openlayer::Internal::Type::BaseModel
26
+ attr_accessor description: String?
27
+
28
+ attr_accessor name: String
29
+
30
+ attr_accessor project: Openlayer::Models::InferencePipelineRetrieveResponse::Project?
31
+
32
+ attr_accessor workspace: Openlayer::Models::InferencePipelineRetrieveResponse::Workspace?
33
+
34
+ attr_accessor id: String
35
+
36
+ attr_accessor date_created: Time
37
+
38
+ attr_accessor date_last_evaluated: Time?
39
+
40
+ attr_accessor date_last_sample_received: Time?
41
+
42
+ attr_accessor date_of_next_evaluation: Time?
43
+
44
+ attr_accessor date_updated: Time
45
+
46
+ attr_accessor failing_goal_count: Integer
47
+
48
+ attr_accessor links: Openlayer::Models::InferencePipelineRetrieveResponse::Links
49
+
50
+ attr_accessor passing_goal_count: Integer
51
+
52
+ attr_accessor project_id: String
53
+
54
+ attr_accessor status: Openlayer::Models::InferencePipelineRetrieveResponse::status
55
+
56
+ attr_accessor status_message: String?
57
+
58
+ attr_accessor total_goal_count: Integer
59
+
60
+ attr_reader workspace_id: String?
61
+
62
+ def workspace_id=: (String) -> String
63
+
64
+ def initialize: (
65
+ id: String,
66
+ date_created: Time,
67
+ date_last_evaluated: Time?,
68
+ date_last_sample_received: Time?,
69
+ date_of_next_evaluation: Time?,
70
+ date_updated: Time,
71
+ description: String?,
72
+ failing_goal_count: Integer,
73
+ links: Openlayer::Models::InferencePipelineRetrieveResponse::Links,
74
+ name: String,
75
+ passing_goal_count: Integer,
76
+ project_id: String,
77
+ status: Openlayer::Models::InferencePipelineRetrieveResponse::status,
78
+ status_message: String?,
79
+ total_goal_count: Integer,
80
+ ?project: Openlayer::Models::InferencePipelineRetrieveResponse::Project?,
81
+ ?workspace: Openlayer::Models::InferencePipelineRetrieveResponse::Workspace?,
82
+ ?workspace_id: String
83
+ ) -> void
84
+
85
+ def to_hash: -> {
86
+ id: String,
87
+ date_created: Time,
88
+ date_last_evaluated: Time?,
89
+ date_last_sample_received: Time?,
90
+ date_of_next_evaluation: Time?,
91
+ date_updated: Time,
92
+ description: String?,
93
+ failing_goal_count: Integer,
94
+ links: Openlayer::Models::InferencePipelineRetrieveResponse::Links,
95
+ name: String,
96
+ passing_goal_count: Integer,
97
+ project_id: String,
98
+ status: Openlayer::Models::InferencePipelineRetrieveResponse::status,
99
+ status_message: String?,
100
+ total_goal_count: Integer,
101
+ project: Openlayer::Models::InferencePipelineRetrieveResponse::Project?,
102
+ workspace: Openlayer::Models::InferencePipelineRetrieveResponse::Workspace?,
103
+ workspace_id: String
104
+ }
105
+
106
+ type links = { app: String }
107
+
108
+ class Links < Openlayer::Internal::Type::BaseModel
109
+ attr_accessor app: String
110
+
111
+ def initialize: (app: String) -> void
112
+
113
+ def to_hash: -> { app: String }
114
+ end
115
+
116
+ type status =
117
+ :queued | :running | :paused | :failed | :completed | :unknown
118
+
119
+ module Status
120
+ extend Openlayer::Internal::Type::Enum
121
+
122
+ QUEUED: :queued
123
+ RUNNING: :running
124
+ PAUSED: :paused
125
+ FAILED: :failed
126
+ COMPLETED: :completed
127
+ UNKNOWN: :unknown
128
+
129
+ def self?.values: -> ::Array[Openlayer::Models::InferencePipelineRetrieveResponse::status]
130
+ end
131
+
132
+ type project =
133
+ {
134
+ id: String,
135
+ creator_id: String?,
136
+ date_created: Time,
137
+ date_updated: Time,
138
+ development_goal_count: Integer,
139
+ goal_count: Integer,
140
+ inference_pipeline_count: Integer,
141
+ links: Openlayer::Models::InferencePipelineRetrieveResponse::Project::Links,
142
+ monitoring_goal_count: Integer,
143
+ name: String,
144
+ source: Openlayer::Models::InferencePipelineRetrieveResponse::Project::source?,
145
+ task_type: Openlayer::Models::InferencePipelineRetrieveResponse::Project::task_type,
146
+ version_count: Integer,
147
+ workspace_id: String?,
148
+ description: String?,
149
+ git_repo: Openlayer::Models::InferencePipelineRetrieveResponse::Project::GitRepo?
150
+ }
151
+
152
+ class Project < Openlayer::Internal::Type::BaseModel
153
+ attr_accessor name: String
154
+
155
+ attr_accessor task_type: Openlayer::Models::InferencePipelineRetrieveResponse::Project::task_type
156
+
157
+ attr_accessor description: String?
158
+
159
+ attr_accessor id: String
160
+
161
+ attr_accessor creator_id: String?
162
+
163
+ attr_accessor date_created: Time
164
+
165
+ attr_accessor date_updated: Time
166
+
167
+ attr_accessor development_goal_count: Integer
168
+
169
+ attr_accessor goal_count: Integer
170
+
171
+ attr_accessor inference_pipeline_count: Integer
172
+
173
+ attr_accessor links: Openlayer::Models::InferencePipelineRetrieveResponse::Project::Links
174
+
175
+ attr_accessor monitoring_goal_count: Integer
176
+
177
+ attr_accessor source: Openlayer::Models::InferencePipelineRetrieveResponse::Project::source?
178
+
179
+ attr_accessor version_count: Integer
180
+
181
+ attr_accessor workspace_id: String?
182
+
183
+ attr_accessor git_repo: Openlayer::Models::InferencePipelineRetrieveResponse::Project::GitRepo?
184
+
185
+ def initialize: (
186
+ id: String,
187
+ creator_id: String?,
188
+ date_created: Time,
189
+ date_updated: Time,
190
+ development_goal_count: Integer,
191
+ goal_count: Integer,
192
+ inference_pipeline_count: Integer,
193
+ links: Openlayer::Models::InferencePipelineRetrieveResponse::Project::Links,
194
+ monitoring_goal_count: Integer,
195
+ name: String,
196
+ source: Openlayer::Models::InferencePipelineRetrieveResponse::Project::source?,
197
+ task_type: Openlayer::Models::InferencePipelineRetrieveResponse::Project::task_type,
198
+ version_count: Integer,
199
+ workspace_id: String?,
200
+ ?description: String?,
201
+ ?git_repo: Openlayer::Models::InferencePipelineRetrieveResponse::Project::GitRepo?
202
+ ) -> void
203
+
204
+ def to_hash: -> {
205
+ id: String,
206
+ creator_id: String?,
207
+ date_created: Time,
208
+ date_updated: Time,
209
+ development_goal_count: Integer,
210
+ goal_count: Integer,
211
+ inference_pipeline_count: Integer,
212
+ links: Openlayer::Models::InferencePipelineRetrieveResponse::Project::Links,
213
+ monitoring_goal_count: Integer,
214
+ name: String,
215
+ source: Openlayer::Models::InferencePipelineRetrieveResponse::Project::source?,
216
+ task_type: Openlayer::Models::InferencePipelineRetrieveResponse::Project::task_type,
217
+ version_count: Integer,
218
+ workspace_id: String?,
219
+ description: String?,
220
+ git_repo: Openlayer::Models::InferencePipelineRetrieveResponse::Project::GitRepo?
221
+ }
222
+
223
+ type links = { app: String }
224
+
225
+ class Links < Openlayer::Internal::Type::BaseModel
226
+ attr_accessor app: String
227
+
228
+ def initialize: (app: String) -> void
229
+
230
+ def to_hash: -> { app: String }
231
+ end
232
+
233
+ type source = :web | :api | :null
234
+
235
+ module Source
236
+ extend Openlayer::Internal::Type::Enum
237
+
238
+ WEB: :web
239
+ API: :api
240
+ NULL: :null
241
+
242
+ def self?.values: -> ::Array[Openlayer::Models::InferencePipelineRetrieveResponse::Project::source]
243
+ end
244
+
245
+ type task_type =
246
+ :"llm-base"
247
+ | :"tabular-classification"
248
+ | :"tabular-regression"
249
+ | :"text-classification"
250
+
251
+ module TaskType
252
+ extend Openlayer::Internal::Type::Enum
253
+
254
+ LLM_BASE: :"llm-base"
255
+ TABULAR_CLASSIFICATION: :"tabular-classification"
256
+ TABULAR_REGRESSION: :"tabular-regression"
257
+ TEXT_CLASSIFICATION: :"text-classification"
258
+
259
+ def self?.values: -> ::Array[Openlayer::Models::InferencePipelineRetrieveResponse::Project::task_type]
260
+ end
261
+
262
+ type git_repo =
263
+ {
264
+ id: String,
265
+ date_connected: Time,
266
+ date_updated: Time,
267
+ git_account_id: String,
268
+ git_id: Integer,
269
+ name: String,
270
+ private: bool,
271
+ project_id: String,
272
+ slug: String,
273
+ url: String,
274
+ branch: String,
275
+ root_dir: String
276
+ }
277
+
278
+ class GitRepo < Openlayer::Internal::Type::BaseModel
279
+ attr_accessor git_account_id: String
280
+
281
+ attr_accessor git_id: Integer
282
+
283
+ attr_reader branch: String?
284
+
285
+ def branch=: (String) -> String
286
+
287
+ attr_reader root_dir: String?
288
+
289
+ def root_dir=: (String) -> String
290
+
291
+ attr_accessor id: String
292
+
293
+ attr_accessor date_connected: Time
294
+
295
+ attr_accessor date_updated: Time
296
+
297
+ attr_accessor name: String
298
+
299
+ attr_accessor private: bool
300
+
301
+ attr_accessor project_id: String
302
+
303
+ attr_accessor slug: String
304
+
305
+ attr_accessor url: String
306
+
307
+ def initialize: (
308
+ id: String,
309
+ date_connected: Time,
310
+ date_updated: Time,
311
+ git_account_id: String,
312
+ git_id: Integer,
313
+ name: String,
314
+ private: bool,
315
+ project_id: String,
316
+ slug: String,
317
+ url: String,
318
+ ?branch: String,
319
+ ?root_dir: String
320
+ ) -> void
321
+
322
+ def to_hash: -> {
323
+ id: String,
324
+ date_connected: Time,
325
+ date_updated: Time,
326
+ git_account_id: String,
327
+ git_id: Integer,
328
+ name: String,
329
+ private: bool,
330
+ project_id: String,
331
+ slug: String,
332
+ url: String,
333
+ branch: String,
334
+ root_dir: String
335
+ }
336
+ end
337
+ end
338
+
339
+ type workspace =
340
+ {
341
+ id: String,
342
+ creator_id: String?,
343
+ date_created: Time,
344
+ date_updated: Time,
345
+ invite_count: Integer,
346
+ member_count: Integer,
347
+ name: String,
348
+ period_end_date: Time?,
349
+ period_start_date: Time?,
350
+ project_count: Integer,
351
+ slug: String,
352
+ status: Openlayer::Models::InferencePipelineRetrieveResponse::Workspace::status,
353
+ invite_code: String,
354
+ monthly_usage: ::Array[Openlayer::Models::InferencePipelineRetrieveResponse::Workspace::MonthlyUsage],
355
+ saml_only_access: bool,
356
+ wildcard_domains: ::Array[String]
357
+ }
358
+
359
+ class Workspace < Openlayer::Internal::Type::BaseModel
360
+ attr_accessor name: String
361
+
362
+ attr_accessor slug: String
363
+
364
+ attr_reader saml_only_access: bool?
365
+
366
+ def saml_only_access=: (bool) -> bool
367
+
368
+ attr_reader wildcard_domains: ::Array[String]?
369
+
370
+ def wildcard_domains=: (::Array[String]) -> ::Array[String]
371
+
372
+ attr_accessor id: String
373
+
374
+ attr_accessor creator_id: String?
375
+
376
+ attr_accessor date_created: Time
377
+
378
+ attr_accessor date_updated: Time
379
+
380
+ attr_accessor invite_count: Integer
381
+
382
+ attr_accessor member_count: Integer
383
+
384
+ attr_accessor period_end_date: Time?
385
+
386
+ attr_accessor period_start_date: Time?
387
+
388
+ attr_accessor project_count: Integer
389
+
390
+ attr_accessor status: Openlayer::Models::InferencePipelineRetrieveResponse::Workspace::status
391
+
392
+ attr_reader monthly_usage: ::Array[Openlayer::Models::InferencePipelineRetrieveResponse::Workspace::MonthlyUsage]?
393
+
394
+ def monthly_usage=: (
395
+ ::Array[Openlayer::Models::InferencePipelineRetrieveResponse::Workspace::MonthlyUsage]
396
+ ) -> ::Array[Openlayer::Models::InferencePipelineRetrieveResponse::Workspace::MonthlyUsage]
397
+
398
+ def initialize: (
399
+ id: String,
400
+ creator_id: String?,
401
+ date_created: Time,
402
+ date_updated: Time,
403
+ invite_count: Integer,
404
+ member_count: Integer,
405
+ name: String,
406
+ period_end_date: Time?,
407
+ period_start_date: Time?,
408
+ project_count: Integer,
409
+ slug: String,
410
+ status: Openlayer::Models::InferencePipelineRetrieveResponse::Workspace::status,
411
+ ?monthly_usage: ::Array[Openlayer::Models::InferencePipelineRetrieveResponse::Workspace::MonthlyUsage],
412
+ ?saml_only_access: bool,
413
+ ?wildcard_domains: ::Array[String]
414
+ ) -> void
415
+
416
+ def to_hash: -> {
417
+ id: String,
418
+ creator_id: String?,
419
+ date_created: Time,
420
+ date_updated: Time,
421
+ invite_count: Integer,
422
+ member_count: Integer,
423
+ name: String,
424
+ period_end_date: Time?,
425
+ period_start_date: Time?,
426
+ project_count: Integer,
427
+ slug: String,
428
+ status: Openlayer::Models::InferencePipelineRetrieveResponse::Workspace::status,
429
+ invite_code: String,
430
+ monthly_usage: ::Array[Openlayer::Models::InferencePipelineRetrieveResponse::Workspace::MonthlyUsage],
431
+ saml_only_access: bool,
432
+ wildcard_domains: ::Array[String]
433
+ }
434
+
435
+ type status =
436
+ :active
437
+ | :past_due
438
+ | :unpaid
439
+ | :canceled
440
+ | :incomplete
441
+ | :incomplete_expired
442
+ | :trialing
443
+ | :paused
444
+
445
+ module Status
446
+ extend Openlayer::Internal::Type::Enum
447
+
448
+ ACTIVE: :active
449
+ PAST_DUE: :past_due
450
+ UNPAID: :unpaid
451
+ CANCELED: :canceled
452
+ INCOMPLETE: :incomplete
453
+ INCOMPLETE_EXPIRED: :incomplete_expired
454
+ TRIALING: :trialing
455
+ PAUSED: :paused
456
+
457
+ def self?.values: -> ::Array[Openlayer::Models::InferencePipelineRetrieveResponse::Workspace::status]
458
+ end
459
+
460
+ type monthly_usage =
461
+ {
462
+ execution_time_ms: Integer?,
463
+ month_year: Date,
464
+ prediction_count: Integer
465
+ }
466
+
467
+ class MonthlyUsage < Openlayer::Internal::Type::BaseModel
468
+ attr_accessor execution_time_ms: Integer?
469
+
470
+ attr_reader month_year: Date?
471
+
472
+ def month_year=: (Date) -> Date
473
+
474
+ attr_reader prediction_count: Integer?
475
+
476
+ def prediction_count=: (Integer) -> Integer
477
+
478
+ def initialize: (
479
+ ?execution_time_ms: Integer?,
480
+ ?month_year: Date,
481
+ ?prediction_count: Integer
482
+ ) -> void
483
+
484
+ def to_hash: -> {
485
+ execution_time_ms: Integer?,
486
+ month_year: Date,
487
+ prediction_count: Integer
488
+ }
489
+ end
490
+ end
491
+ end
492
+ end
493
+ end
@@ -0,0 +1,34 @@
1
+ module Openlayer
2
+ module Models
3
+ type inference_pipeline_update_params =
4
+ { description: String?, name: String, reference_dataset_uri: String? }
5
+ & Openlayer::Internal::Type::request_parameters
6
+
7
+ class InferencePipelineUpdateParams < Openlayer::Internal::Type::BaseModel
8
+ extend Openlayer::Internal::Type::RequestParameters::Converter
9
+ include Openlayer::Internal::Type::RequestParameters
10
+
11
+ attr_accessor description: String?
12
+
13
+ attr_reader name: String?
14
+
15
+ def name=: (String) -> String
16
+
17
+ attr_accessor reference_dataset_uri: String?
18
+
19
+ def initialize: (
20
+ ?description: String?,
21
+ ?name: String,
22
+ ?reference_dataset_uri: String?,
23
+ ?request_options: Openlayer::request_opts
24
+ ) -> void
25
+
26
+ def to_hash: -> {
27
+ description: String?,
28
+ name: String,
29
+ reference_dataset_uri: String?,
30
+ request_options: Openlayer::RequestOptions
31
+ }
32
+ end
33
+ end
34
+ end