openlayer 0.14.0 → 0.15.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 (43) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +17 -0
  3. data/README.md +1 -1
  4. data/lib/openlayer/integrations/google_conversational_search_tracer.rb +80 -13
  5. data/lib/openlayer/models/inference_pipeline_retrieve_response.rb +38 -1
  6. data/lib/openlayer/models/inference_pipeline_update_response.rb +37 -1
  7. data/lib/openlayer/models/project_create_params.rb +37 -1
  8. data/lib/openlayer/models/project_create_response.rb +37 -1
  9. data/lib/openlayer/models/project_list_response.rb +37 -1
  10. data/lib/openlayer/models/project_update_params.rb +73 -0
  11. data/lib/openlayer/models/project_update_response.rb +298 -0
  12. data/lib/openlayer/models/projects/inference_pipeline_create_params.rb +38 -1
  13. data/lib/openlayer/models/projects/inference_pipeline_create_response.rb +38 -1
  14. data/lib/openlayer/models/projects/inference_pipeline_list_response.rb +41 -1
  15. data/lib/openlayer/models.rb +2 -0
  16. data/lib/openlayer/resources/projects.rb +49 -1
  17. data/lib/openlayer/version.rb +1 -1
  18. data/lib/openlayer.rb +2 -0
  19. data/rbi/openlayer/models/inference_pipeline_retrieve_response.rbi +37 -3
  20. data/rbi/openlayer/models/inference_pipeline_update_response.rbi +37 -3
  21. data/rbi/openlayer/models/project_create_params.rbi +34 -0
  22. data/rbi/openlayer/models/project_create_response.rbi +39 -3
  23. data/rbi/openlayer/models/project_list_response.rbi +39 -3
  24. data/rbi/openlayer/models/project_update_params.rbi +94 -0
  25. data/rbi/openlayer/models/project_update_response.rbi +437 -0
  26. data/rbi/openlayer/models/projects/inference_pipeline_create_params.rbi +37 -3
  27. data/rbi/openlayer/models/projects/inference_pipeline_create_response.rbi +37 -3
  28. data/rbi/openlayer/models/projects/inference_pipeline_list_response.rbi +37 -3
  29. data/rbi/openlayer/models.rbi +2 -0
  30. data/rbi/openlayer/resources/projects.rbi +46 -0
  31. data/sig/openlayer/models/inference_pipeline_retrieve_response.rbs +23 -3
  32. data/sig/openlayer/models/inference_pipeline_update_response.rbs +23 -3
  33. data/sig/openlayer/models/project_create_params.rbs +21 -1
  34. data/sig/openlayer/models/project_create_response.rbs +23 -3
  35. data/sig/openlayer/models/project_list_response.rbs +23 -3
  36. data/sig/openlayer/models/project_update_params.rbs +58 -0
  37. data/sig/openlayer/models/project_update_response.rbs +230 -0
  38. data/sig/openlayer/models/projects/inference_pipeline_create_params.rbs +23 -3
  39. data/sig/openlayer/models/projects/inference_pipeline_create_response.rbs +23 -3
  40. data/sig/openlayer/models/projects/inference_pipeline_list_response.rbs +23 -3
  41. data/sig/openlayer/models.rbs +2 -0
  42. data/sig/openlayer/resources/projects.rbs +15 -0
  43. metadata +8 -2
@@ -0,0 +1,298 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Openlayer
4
+ module Models
5
+ # @see Openlayer::Resources::Projects#update
6
+ class ProjectUpdateResponse < Openlayer::Internal::Type::BaseModel
7
+ # @!attribute name
8
+ # The project name.
9
+ #
10
+ # @return [String]
11
+ required :name, String
12
+
13
+ # @!attribute task_type
14
+ # The task type of the project.
15
+ #
16
+ # @return [Symbol, Openlayer::Models::ProjectUpdateResponse::TaskType]
17
+ required :task_type, enum: -> { Openlayer::Models::ProjectUpdateResponse::TaskType }, api_name: :taskType
18
+
19
+ # @!attribute data_retention_days
20
+ # Number of days to retain monitoring data for this project. Null means data is
21
+ # retained indefinitely.
22
+ #
23
+ # @return [Integer, nil]
24
+ optional :data_retention_days, Integer, api_name: :dataRetentionDays, nil?: true
25
+
26
+ # @!attribute description
27
+ # The project description.
28
+ #
29
+ # @return [String, nil]
30
+ optional :description, String, nil?: true
31
+
32
+ # @!attribute model_developer
33
+ # Who developed the model used in this project.
34
+ #
35
+ # @return [String, nil]
36
+ optional :model_developer, String, api_name: :modelDeveloper, nil?: true
37
+
38
+ # @!attribute model_types
39
+ # The kinds of model used in this project.
40
+ #
41
+ # @return [Array<String>, nil]
42
+ optional :model_types, Openlayer::Internal::Type::ArrayOf[String], api_name: :modelTypes, nil?: true
43
+
44
+ # @!attribute purpose
45
+ # What the system in this project is intended to do.
46
+ #
47
+ # @return [String, nil]
48
+ optional :purpose, String, nil?: true
49
+
50
+ response_only do
51
+ # @!attribute id
52
+ # The project id.
53
+ #
54
+ # @return [String]
55
+ required :id, String
56
+
57
+ # @!attribute creator_id
58
+ # The project creator id.
59
+ #
60
+ # @return [String, nil]
61
+ required :creator_id, String, api_name: :creatorId, nil?: true
62
+
63
+ # @!attribute date_created
64
+ # The project creation date.
65
+ #
66
+ # @return [Time]
67
+ required :date_created, Time, api_name: :dateCreated
68
+
69
+ # @!attribute date_updated
70
+ # The project last updated date.
71
+ #
72
+ # @return [Time]
73
+ required :date_updated, Time, api_name: :dateUpdated
74
+
75
+ # @!attribute development_goal_count
76
+ # The number of tests in the development mode of the project.
77
+ #
78
+ # @return [Integer]
79
+ required :development_goal_count, Integer, api_name: :developmentGoalCount
80
+
81
+ # @!attribute goal_count
82
+ # The total number of tests in the project.
83
+ #
84
+ # @return [Integer]
85
+ required :goal_count, Integer, api_name: :goalCount
86
+
87
+ # @!attribute inference_pipeline_count
88
+ # The number of inference pipelines in the project.
89
+ #
90
+ # @return [Integer]
91
+ required :inference_pipeline_count, Integer, api_name: :inferencePipelineCount
92
+
93
+ # @!attribute links
94
+ # Links to the project.
95
+ #
96
+ # @return [Openlayer::Models::ProjectUpdateResponse::Links]
97
+ required :links, -> { Openlayer::Models::ProjectUpdateResponse::Links }
98
+
99
+ # @!attribute monitoring_goal_count
100
+ # The number of tests in the monitoring mode of the project.
101
+ #
102
+ # @return [Integer]
103
+ required :monitoring_goal_count, Integer, api_name: :monitoringGoalCount
104
+
105
+ # @!attribute source
106
+ # The source of the project.
107
+ #
108
+ # @return [Symbol, Openlayer::Models::ProjectUpdateResponse::Source, nil]
109
+ required :source, enum: -> { Openlayer::Models::ProjectUpdateResponse::Source }, nil?: true
110
+
111
+ # @!attribute version_count
112
+ # The number of versions (commits) in the project.
113
+ #
114
+ # @return [Integer]
115
+ required :version_count, Integer, api_name: :versionCount
116
+
117
+ # @!attribute workspace_id
118
+ # The workspace id.
119
+ #
120
+ # @return [String, nil]
121
+ required :workspace_id, String, api_name: :workspaceId, nil?: true
122
+
123
+ # @!attribute git_repo
124
+ #
125
+ # @return [Openlayer::Models::ProjectUpdateResponse::GitRepo, nil]
126
+ optional :git_repo,
127
+ -> { Openlayer::Models::ProjectUpdateResponse::GitRepo },
128
+ api_name: :gitRepo,
129
+ nil?: true
130
+ end
131
+
132
+ # @!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:, data_retention_days: nil, description: nil, git_repo: nil, model_developer: nil, model_types: nil, purpose: nil)
133
+ # Some parameter documentations has been truncated, see
134
+ # {Openlayer::Models::ProjectUpdateResponse} for more details.
135
+ #
136
+ # @param id [String] The project id.
137
+ #
138
+ # @param creator_id [String, nil] The project creator id.
139
+ #
140
+ # @param date_created [Time] The project creation date.
141
+ #
142
+ # @param date_updated [Time] The project last updated date.
143
+ #
144
+ # @param development_goal_count [Integer] The number of tests in the development mode of the project.
145
+ #
146
+ # @param goal_count [Integer] The total number of tests in the project.
147
+ #
148
+ # @param inference_pipeline_count [Integer] The number of inference pipelines in the project.
149
+ #
150
+ # @param links [Openlayer::Models::ProjectUpdateResponse::Links] Links to the project.
151
+ #
152
+ # @param monitoring_goal_count [Integer] The number of tests in the monitoring mode of the project.
153
+ #
154
+ # @param name [String] The project name.
155
+ #
156
+ # @param source [Symbol, Openlayer::Models::ProjectUpdateResponse::Source, nil] The source of the project.
157
+ #
158
+ # @param task_type [Symbol, Openlayer::Models::ProjectUpdateResponse::TaskType] The task type of the project.
159
+ #
160
+ # @param version_count [Integer] The number of versions (commits) in the project.
161
+ #
162
+ # @param workspace_id [String, nil] The workspace id.
163
+ #
164
+ # @param data_retention_days [Integer, nil] Number of days to retain monitoring data for this project. Null means data is re
165
+ #
166
+ # @param description [String, nil] The project description.
167
+ #
168
+ # @param git_repo [Openlayer::Models::ProjectUpdateResponse::GitRepo, nil]
169
+ #
170
+ # @param model_developer [String, nil] Who developed the model used in this project.
171
+ #
172
+ # @param model_types [Array<String>, nil] The kinds of model used in this project.
173
+ #
174
+ # @param purpose [String, nil] What the system in this project is intended to do.
175
+
176
+ # @see Openlayer::Models::ProjectUpdateResponse#links
177
+ class Links < Openlayer::Internal::Type::BaseModel
178
+ # @!attribute app
179
+ #
180
+ # @return [String]
181
+ required :app, String
182
+
183
+ # @!method initialize(app:)
184
+ # Links to the project.
185
+ #
186
+ # @param app [String]
187
+ end
188
+
189
+ # The source of the project.
190
+ #
191
+ # @see Openlayer::Models::ProjectUpdateResponse#source
192
+ module Source
193
+ extend Openlayer::Internal::Type::Enum
194
+
195
+ WEB = :web
196
+ API = :api
197
+ NULL = :null
198
+
199
+ # @!method self.values
200
+ # @return [Array<Symbol>]
201
+ end
202
+
203
+ # The task type of the project.
204
+ #
205
+ # @see Openlayer::Models::ProjectUpdateResponse#task_type
206
+ module TaskType
207
+ extend Openlayer::Internal::Type::Enum
208
+
209
+ LLM_BASE = :"llm-base"
210
+ TABULAR_CLASSIFICATION = :"tabular-classification"
211
+ TABULAR_REGRESSION = :"tabular-regression"
212
+ TEXT_CLASSIFICATION = :"text-classification"
213
+
214
+ # @!method self.values
215
+ # @return [Array<Symbol>]
216
+ end
217
+
218
+ # @see Openlayer::Models::ProjectUpdateResponse#git_repo
219
+ class GitRepo < Openlayer::Internal::Type::BaseModel
220
+ # @!attribute git_account_id
221
+ #
222
+ # @return [String]
223
+ required :git_account_id, String, api_name: :gitAccountId
224
+
225
+ # @!attribute git_id
226
+ #
227
+ # @return [Integer]
228
+ required :git_id, Integer, api_name: :gitId
229
+
230
+ # @!attribute branch
231
+ #
232
+ # @return [String, nil]
233
+ optional :branch, String
234
+
235
+ # @!attribute root_dir
236
+ #
237
+ # @return [String, nil]
238
+ optional :root_dir, String, api_name: :rootDir
239
+
240
+ response_only do
241
+ # @!attribute id
242
+ #
243
+ # @return [String]
244
+ required :id, String
245
+
246
+ # @!attribute date_connected
247
+ #
248
+ # @return [Time]
249
+ required :date_connected, Time, api_name: :dateConnected
250
+
251
+ # @!attribute date_updated
252
+ #
253
+ # @return [Time]
254
+ required :date_updated, Time, api_name: :dateUpdated
255
+
256
+ # @!attribute name
257
+ #
258
+ # @return [String]
259
+ required :name, String
260
+
261
+ # @!attribute private
262
+ #
263
+ # @return [Boolean]
264
+ required :private, Openlayer::Internal::Type::Boolean
265
+
266
+ # @!attribute project_id
267
+ #
268
+ # @return [String]
269
+ required :project_id, String, api_name: :projectId
270
+
271
+ # @!attribute slug
272
+ #
273
+ # @return [String]
274
+ required :slug, String
275
+
276
+ # @!attribute url
277
+ #
278
+ # @return [String]
279
+ required :url, String
280
+ end
281
+
282
+ # @!method initialize(id:, date_connected:, date_updated:, git_account_id:, git_id:, name:, private:, project_id:, slug:, url:, branch: nil, root_dir: nil)
283
+ # @param id [String]
284
+ # @param date_connected [Time]
285
+ # @param date_updated [Time]
286
+ # @param git_account_id [String]
287
+ # @param git_id [Integer]
288
+ # @param name [String]
289
+ # @param private [Boolean]
290
+ # @param project_id [String]
291
+ # @param slug [String]
292
+ # @param url [String]
293
+ # @param branch [String]
294
+ # @param root_dir [String]
295
+ end
296
+ end
297
+ end
298
+ end
@@ -671,18 +671,55 @@ module Openlayer
671
671
  enum: -> { Openlayer::Projects::InferencePipelineCreateParams::Project::TaskType },
672
672
  api_name: :taskType
673
673
 
674
+ # @!attribute data_retention_days
675
+ # Number of days to retain monitoring data for this project. Null means data is
676
+ # retained indefinitely.
677
+ #
678
+ # @return [Integer, nil]
679
+ optional :data_retention_days, Integer, api_name: :dataRetentionDays, nil?: true
680
+
674
681
  # @!attribute description
675
682
  # The project description.
676
683
  #
677
684
  # @return [String, nil]
678
685
  optional :description, String, nil?: true
679
686
 
680
- # @!method initialize(name:, task_type:, description: nil)
687
+ # @!attribute model_developer
688
+ # Who developed the model used in this project.
689
+ #
690
+ # @return [String, nil]
691
+ optional :model_developer, String, api_name: :modelDeveloper, nil?: true
692
+
693
+ # @!attribute model_types
694
+ # The kinds of model used in this project.
695
+ #
696
+ # @return [Array<String>, nil]
697
+ optional :model_types, Openlayer::Internal::Type::ArrayOf[String], api_name: :modelTypes, nil?: true
698
+
699
+ # @!attribute purpose
700
+ # What the system in this project is intended to do.
701
+ #
702
+ # @return [String, nil]
703
+ optional :purpose, String, nil?: true
704
+
705
+ # @!method initialize(name:, task_type:, data_retention_days: nil, description: nil, model_developer: nil, model_types: nil, purpose: nil)
706
+ # Some parameter documentations has been truncated, see
707
+ # {Openlayer::Models::Projects::InferencePipelineCreateParams::Project} for more
708
+ # details.
709
+ #
681
710
  # @param name [String] The project name.
682
711
  #
683
712
  # @param task_type [Symbol, Openlayer::Models::Projects::InferencePipelineCreateParams::Project::TaskType] The task type of the project.
684
713
  #
714
+ # @param data_retention_days [Integer, nil] Number of days to retain monitoring data for this project. Null means data is re
715
+ #
685
716
  # @param description [String, nil] The project description.
717
+ #
718
+ # @param model_developer [String, nil] Who developed the model used in this project.
719
+ #
720
+ # @param model_types [Array<String>, nil] The kinds of model used in this project.
721
+ #
722
+ # @param purpose [String, nil] What the system in this project is intended to do.
686
723
 
687
724
  # @see Openlayer::Models::Projects::InferencePipelineCreateParams::Project#links
688
725
  class Links < Openlayer::Internal::Type::BaseModel
@@ -703,12 +703,37 @@ module Openlayer
703
703
  enum: -> { Openlayer::Models::Projects::InferencePipelineCreateResponse::Project::TaskType },
704
704
  api_name: :taskType
705
705
 
706
+ # @!attribute data_retention_days
707
+ # Number of days to retain monitoring data for this project. Null means data is
708
+ # retained indefinitely.
709
+ #
710
+ # @return [Integer, nil]
711
+ optional :data_retention_days, Integer, api_name: :dataRetentionDays, nil?: true
712
+
706
713
  # @!attribute description
707
714
  # The project description.
708
715
  #
709
716
  # @return [String, nil]
710
717
  optional :description, String, nil?: true
711
718
 
719
+ # @!attribute model_developer
720
+ # Who developed the model used in this project.
721
+ #
722
+ # @return [String, nil]
723
+ optional :model_developer, String, api_name: :modelDeveloper, nil?: true
724
+
725
+ # @!attribute model_types
726
+ # The kinds of model used in this project.
727
+ #
728
+ # @return [Array<String>, nil]
729
+ optional :model_types, Openlayer::Internal::Type::ArrayOf[String], api_name: :modelTypes, nil?: true
730
+
731
+ # @!attribute purpose
732
+ # What the system in this project is intended to do.
733
+ #
734
+ # @return [String, nil]
735
+ optional :purpose, String, nil?: true
736
+
712
737
  response_only do
713
738
  # @!attribute id
714
739
  # The project id.
@@ -793,7 +818,11 @@ module Openlayer
793
818
  nil?: true
794
819
  end
795
820
 
796
- # @!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)
821
+ # @!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:, data_retention_days: nil, description: nil, git_repo: nil, model_developer: nil, model_types: nil, purpose: nil)
822
+ # Some parameter documentations has been truncated, see
823
+ # {Openlayer::Models::Projects::InferencePipelineCreateResponse::Project} for more
824
+ # details.
825
+ #
797
826
  # @param id [String] The project id.
798
827
  #
799
828
  # @param creator_id [String, nil] The project creator id.
@@ -822,9 +851,17 @@ module Openlayer
822
851
  #
823
852
  # @param workspace_id [String, nil] The workspace id.
824
853
  #
854
+ # @param data_retention_days [Integer, nil] Number of days to retain monitoring data for this project. Null means data is re
855
+ #
825
856
  # @param description [String, nil] The project description.
826
857
  #
827
858
  # @param git_repo [Openlayer::Models::Projects::InferencePipelineCreateResponse::Project::GitRepo, nil]
859
+ #
860
+ # @param model_developer [String, nil] Who developed the model used in this project.
861
+ #
862
+ # @param model_types [Array<String>, nil] The kinds of model used in this project.
863
+ #
864
+ # @param purpose [String, nil] What the system in this project is intended to do.
828
865
 
829
866
  # @see Openlayer::Models::Projects::InferencePipelineCreateResponse::Project#links
830
867
  class Links < Openlayer::Internal::Type::BaseModel
@@ -713,12 +713,40 @@ module Openlayer
713
713
  enum: -> { Openlayer::Models::Projects::InferencePipelineListResponse::Item::Project::TaskType },
714
714
  api_name: :taskType
715
715
 
716
+ # @!attribute data_retention_days
717
+ # Number of days to retain monitoring data for this project. Null means data is
718
+ # retained indefinitely.
719
+ #
720
+ # @return [Integer, nil]
721
+ optional :data_retention_days, Integer, api_name: :dataRetentionDays, nil?: true
722
+
716
723
  # @!attribute description
717
724
  # The project description.
718
725
  #
719
726
  # @return [String, nil]
720
727
  optional :description, String, nil?: true
721
728
 
729
+ # @!attribute model_developer
730
+ # Who developed the model used in this project.
731
+ #
732
+ # @return [String, nil]
733
+ optional :model_developer, String, api_name: :modelDeveloper, nil?: true
734
+
735
+ # @!attribute model_types
736
+ # The kinds of model used in this project.
737
+ #
738
+ # @return [Array<String>, nil]
739
+ optional :model_types,
740
+ Openlayer::Internal::Type::ArrayOf[String],
741
+ api_name: :modelTypes,
742
+ nil?: true
743
+
744
+ # @!attribute purpose
745
+ # What the system in this project is intended to do.
746
+ #
747
+ # @return [String, nil]
748
+ optional :purpose, String, nil?: true
749
+
722
750
  response_only do
723
751
  # @!attribute id
724
752
  # The project id.
@@ -803,7 +831,11 @@ module Openlayer
803
831
  nil?: true
804
832
  end
805
833
 
806
- # @!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)
834
+ # @!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:, data_retention_days: nil, description: nil, git_repo: nil, model_developer: nil, model_types: nil, purpose: nil)
835
+ # Some parameter documentations has been truncated, see
836
+ # {Openlayer::Models::Projects::InferencePipelineListResponse::Item::Project} for
837
+ # more details.
838
+ #
807
839
  # @param id [String] The project id.
808
840
  #
809
841
  # @param creator_id [String, nil] The project creator id.
@@ -832,9 +864,17 @@ module Openlayer
832
864
  #
833
865
  # @param workspace_id [String, nil] The workspace id.
834
866
  #
867
+ # @param data_retention_days [Integer, nil] Number of days to retain monitoring data for this project. Null means data is re
868
+ #
835
869
  # @param description [String, nil] The project description.
836
870
  #
837
871
  # @param git_repo [Openlayer::Models::Projects::InferencePipelineListResponse::Item::Project::GitRepo, nil]
872
+ #
873
+ # @param model_developer [String, nil] Who developed the model used in this project.
874
+ #
875
+ # @param model_types [Array<String>, nil] The kinds of model used in this project.
876
+ #
877
+ # @param purpose [String, nil] What the system in this project is intended to do.
838
878
 
839
879
  # @see Openlayer::Models::Projects::InferencePipelineListResponse::Item::Project#links
840
880
  class Links < Openlayer::Internal::Type::BaseModel
@@ -63,6 +63,8 @@ module Openlayer
63
63
 
64
64
  Projects = Openlayer::Models::Projects
65
65
 
66
+ ProjectUpdateParams = Openlayer::Models::ProjectUpdateParams
67
+
66
68
  Storage = Openlayer::Models::Storage
67
69
 
68
70
  TestEvaluateParams = Openlayer::Models::TestEvaluateParams
@@ -12,16 +12,27 @@ module Openlayer
12
12
  # @return [Openlayer::Resources::Projects::Tests]
13
13
  attr_reader :tests
14
14
 
15
+ # Some parameter documentations has been truncated, see
16
+ # {Openlayer::Models::ProjectCreateParams} for more details.
17
+ #
15
18
  # Create a project in your workspace.
16
19
  #
17
- # @overload create(name:, task_type:, description: nil, request_options: {})
20
+ # @overload create(name:, task_type:, data_retention_days: nil, description: nil, model_developer: nil, model_types: nil, purpose: nil, request_options: {})
18
21
  #
19
22
  # @param name [String] The project name.
20
23
  #
21
24
  # @param task_type [Symbol, Openlayer::Models::ProjectCreateParams::TaskType] The task type of the project.
22
25
  #
26
+ # @param data_retention_days [Integer, nil] Number of days to retain monitoring data for this project. Null means data is re
27
+ #
23
28
  # @param description [String, nil] The project description.
24
29
  #
30
+ # @param model_developer [String, nil] Who developed the model used in this project.
31
+ #
32
+ # @param model_types [Array<String>, nil] The kinds of model used in this project.
33
+ #
34
+ # @param purpose [String, nil] What the system in this project is intended to do.
35
+ #
25
36
  # @param request_options [Openlayer::RequestOptions, Hash{Symbol=>Object}, nil]
26
37
  #
27
38
  # @return [Openlayer::Models::ProjectCreateResponse]
@@ -38,6 +49,43 @@ module Openlayer
38
49
  )
39
50
  end
40
51
 
52
+ # Some parameter documentations has been truncated, see
53
+ # {Openlayer::Models::ProjectUpdateParams} for more details.
54
+ #
55
+ # Update a project's metadata.
56
+ #
57
+ # @overload update(project_id, data_retention_days: nil, description: nil, model_developer: nil, model_types: nil, name: nil, purpose: nil, request_options: {})
58
+ #
59
+ # @param project_id [String] The project id.
60
+ #
61
+ # @param data_retention_days [Integer, nil] Number of days to retain monitoring data for this project. Null means data is re
62
+ #
63
+ # @param description [String, nil] The project description.
64
+ #
65
+ # @param model_developer [String, nil] Who developed the model used in this project.
66
+ #
67
+ # @param model_types [Array<String>, nil] The kinds of model used in this project.
68
+ #
69
+ # @param name [String] The project name.
70
+ #
71
+ # @param purpose [String, nil] What the system in this project is intended to do.
72
+ #
73
+ # @param request_options [Openlayer::RequestOptions, Hash{Symbol=>Object}, nil]
74
+ #
75
+ # @return [Openlayer::Models::ProjectUpdateResponse]
76
+ #
77
+ # @see Openlayer::Models::ProjectUpdateParams
78
+ def update(project_id, params = {})
79
+ parsed, options = Openlayer::ProjectUpdateParams.dump_request(params)
80
+ @client.request(
81
+ method: :patch,
82
+ path: ["projects/%1$s", project_id],
83
+ body: parsed,
84
+ model: Openlayer::Models::ProjectUpdateResponse,
85
+ options: options
86
+ )
87
+ end
88
+
41
89
  # List your workspace's projects.
42
90
  #
43
91
  # @overload list(name: nil, page: nil, per_page: nil, task_type: nil, request_options: {})
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Openlayer
4
- VERSION = "0.14.0"
4
+ VERSION = "0.15.0"
5
5
  end
data/lib/openlayer.rb CHANGED
@@ -95,6 +95,8 @@ require_relative "openlayer/models/projects/test_list_params"
95
95
  require_relative "openlayer/models/projects/test_list_response"
96
96
  require_relative "openlayer/models/projects/test_update_params"
97
97
  require_relative "openlayer/models/projects/test_update_response"
98
+ require_relative "openlayer/models/project_update_params"
99
+ require_relative "openlayer/models/project_update_response"
98
100
  require_relative "openlayer/models/storage/presigned_url_create_params"
99
101
  require_relative "openlayer/models/storage/presigned_url_create_response"
100
102
  require_relative "openlayer/models/test_evaluate_params"
@@ -1275,10 +1275,27 @@ module Openlayer
1275
1275
  end
1276
1276
  attr_accessor :task_type
1277
1277
 
1278
+ # Number of days to retain monitoring data for this project. Null means data is
1279
+ # retained indefinitely.
1280
+ sig { returns(T.nilable(Integer)) }
1281
+ attr_accessor :data_retention_days
1282
+
1278
1283
  # The project description.
1279
1284
  sig { returns(T.nilable(String)) }
1280
1285
  attr_accessor :description
1281
1286
 
1287
+ # Who developed the model used in this project.
1288
+ sig { returns(T.nilable(String)) }
1289
+ attr_accessor :model_developer
1290
+
1291
+ # The kinds of model used in this project.
1292
+ sig { returns(T.nilable(T::Array[String])) }
1293
+ attr_accessor :model_types
1294
+
1295
+ # What the system in this project is intended to do.
1296
+ sig { returns(T.nilable(String)) }
1297
+ attr_accessor :purpose
1298
+
1282
1299
  # The project id.
1283
1300
  sig { returns(String) }
1284
1301
  attr_accessor :id
@@ -1385,11 +1402,15 @@ module Openlayer
1385
1402
  Openlayer::Models::InferencePipelineRetrieveResponse::Project::TaskType::OrSymbol,
1386
1403
  version_count: Integer,
1387
1404
  workspace_id: T.nilable(String),
1405
+ data_retention_days: T.nilable(Integer),
1388
1406
  description: T.nilable(String),
1389
1407
  git_repo:
1390
1408
  T.nilable(
1391
1409
  Openlayer::Models::InferencePipelineRetrieveResponse::Project::GitRepo::OrHash
1392
- )
1410
+ ),
1411
+ model_developer: T.nilable(String),
1412
+ model_types: T.nilable(T::Array[String]),
1413
+ purpose: T.nilable(String)
1393
1414
  ).returns(T.attached_class)
1394
1415
  end
1395
1416
  def self.new(
@@ -1421,9 +1442,18 @@ module Openlayer
1421
1442
  version_count:,
1422
1443
  # The workspace id.
1423
1444
  workspace_id:,
1445
+ # Number of days to retain monitoring data for this project. Null means data is
1446
+ # retained indefinitely.
1447
+ data_retention_days: nil,
1424
1448
  # The project description.
1425
1449
  description: nil,
1426
- git_repo: nil
1450
+ git_repo: nil,
1451
+ # Who developed the model used in this project.
1452
+ model_developer: nil,
1453
+ # The kinds of model used in this project.
1454
+ model_types: nil,
1455
+ # What the system in this project is intended to do.
1456
+ purpose: nil
1427
1457
  )
1428
1458
  end
1429
1459
 
@@ -1449,11 +1479,15 @@ module Openlayer
1449
1479
  Openlayer::Models::InferencePipelineRetrieveResponse::Project::TaskType::TaggedSymbol,
1450
1480
  version_count: Integer,
1451
1481
  workspace_id: T.nilable(String),
1482
+ data_retention_days: T.nilable(Integer),
1452
1483
  description: T.nilable(String),
1453
1484
  git_repo:
1454
1485
  T.nilable(
1455
1486
  Openlayer::Models::InferencePipelineRetrieveResponse::Project::GitRepo
1456
- )
1487
+ ),
1488
+ model_developer: T.nilable(String),
1489
+ model_types: T.nilable(T::Array[String]),
1490
+ purpose: T.nilable(String)
1457
1491
  }
1458
1492
  )
1459
1493
  end