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.
- checksums.yaml +4 -4
- data/.ignore +2 -0
- data/CHANGELOG.md +23 -0
- data/README.md +280 -39
- data/SECURITY.md +27 -0
- data/lib/openlayer/client.rb +64 -59
- data/lib/openlayer/errors.rb +228 -0
- data/lib/openlayer/file_part.rb +58 -0
- data/lib/openlayer/internal/transport/base_client.rb +567 -0
- data/lib/openlayer/internal/transport/pooled_net_requester.rb +198 -0
- data/lib/openlayer/internal/type/array_of.rb +168 -0
- data/lib/openlayer/internal/type/base_model.rb +531 -0
- data/lib/openlayer/internal/type/base_page.rb +55 -0
- data/lib/openlayer/internal/type/boolean.rb +77 -0
- data/lib/openlayer/internal/type/converter.rb +327 -0
- data/lib/openlayer/internal/type/enum.rb +131 -0
- data/lib/openlayer/internal/type/file_input.rb +111 -0
- data/lib/openlayer/internal/type/hash_of.rb +188 -0
- data/lib/openlayer/internal/type/request_parameters.rb +42 -0
- data/lib/openlayer/internal/type/union.rb +237 -0
- data/lib/openlayer/internal/type/unknown.rb +81 -0
- data/lib/openlayer/internal/util.rb +915 -0
- data/lib/openlayer/internal.rb +20 -0
- data/lib/openlayer/models/commit_retrieve_params.rb +14 -0
- data/lib/openlayer/models/commit_retrieve_response.rb +275 -0
- data/lib/openlayer/models/commits/test_result_list_params.rb +91 -0
- data/lib/openlayer/models/commits/test_result_list_response.rb +566 -0
- data/lib/openlayer/models/inference_pipeline_delete_params.rb +14 -0
- data/lib/openlayer/models/inference_pipeline_retrieve_params.rb +33 -0
- data/lib/openlayer/models/inference_pipeline_retrieve_response.rb +605 -0
- data/lib/openlayer/models/inference_pipeline_update_params.rb +42 -0
- data/lib/openlayer/models/inference_pipeline_update_response.rb +605 -0
- data/lib/openlayer/models/inference_pipelines/data_stream_params.rb +463 -0
- data/lib/openlayer/models/inference_pipelines/data_stream_response.rb +28 -0
- data/lib/openlayer/models/inference_pipelines/row_update_params.rb +90 -0
- data/lib/openlayer/models/inference_pipelines/row_update_response.rb +28 -0
- data/lib/openlayer/models/inference_pipelines/test_result_list_params.rb +83 -0
- data/lib/openlayer/models/inference_pipelines/test_result_list_response.rb +568 -0
- data/lib/openlayer/models/project_create_params.rb +51 -0
- data/lib/openlayer/models/project_create_response.rb +262 -0
- data/lib/openlayer/models/project_list_params.rb +59 -0
- data/lib/openlayer/models/project_list_response.rb +274 -0
- data/lib/openlayer/models/projects/commit_create_params.rb +61 -0
- data/lib/openlayer/models/projects/commit_create_response.rb +277 -0
- data/lib/openlayer/models/projects/commit_list_params.rb +32 -0
- data/lib/openlayer/models/projects/commit_list_response.rb +288 -0
- data/lib/openlayer/models/projects/inference_pipeline_create_params.rb +229 -0
- data/lib/openlayer/models/projects/inference_pipeline_create_response.rb +612 -0
- data/lib/openlayer/models/projects/inference_pipeline_list_params.rb +40 -0
- data/lib/openlayer/models/projects/inference_pipeline_list_response.rb +623 -0
- data/lib/openlayer/models/projects/test_create_params.rb +367 -0
- data/lib/openlayer/models/projects/test_create_response.rb +438 -0
- data/lib/openlayer/models/projects/test_list_params.rb +91 -0
- data/lib/openlayer/models/projects/test_list_response.rb +452 -0
- data/lib/openlayer/models/projects/test_update_params.rb +262 -0
- data/lib/openlayer/models/projects/test_update_response.rb +24 -0
- data/lib/openlayer/models/storage/presigned_url_create_params.rb +24 -0
- data/lib/openlayer/models/storage/presigned_url_create_response.rb +35 -0
- data/lib/openlayer/models.rb +61 -0
- data/lib/openlayer/request_options.rb +77 -0
- data/lib/openlayer/resources/commits/test_results.rb +51 -0
- data/lib/openlayer/resources/commits.rb +38 -0
- data/lib/openlayer/resources/inference_pipelines/data.rb +46 -0
- data/lib/openlayer/resources/inference_pipelines/rows.rb +46 -0
- data/lib/openlayer/resources/inference_pipelines/test_results.rb +49 -0
- data/lib/openlayer/resources/inference_pipelines.rb +101 -0
- data/lib/openlayer/resources/projects/commits.rb +72 -0
- data/lib/openlayer/resources/projects/inference_pipelines.rb +74 -0
- data/lib/openlayer/resources/projects/tests.rb +135 -0
- data/lib/openlayer/resources/projects.rb +80 -0
- data/lib/openlayer/resources/storage/presigned_url.rb +38 -0
- data/lib/openlayer/resources/storage.rb +18 -0
- data/lib/openlayer/version.rb +1 -1
- data/lib/openlayer.rb +96 -12
- data/manifest.yaml +15 -0
- data/rbi/openlayer/client.rbi +58 -0
- data/rbi/openlayer/errors.rbi +205 -0
- data/rbi/openlayer/file_part.rbi +37 -0
- data/rbi/openlayer/internal/transport/base_client.rbi +293 -0
- data/rbi/openlayer/internal/transport/pooled_net_requester.rbi +79 -0
- data/rbi/openlayer/internal/type/array_of.rbi +104 -0
- data/rbi/openlayer/internal/type/base_model.rbi +304 -0
- data/rbi/openlayer/internal/type/base_page.rbi +42 -0
- data/rbi/openlayer/internal/type/boolean.rbi +58 -0
- data/rbi/openlayer/internal/type/converter.rbi +216 -0
- data/rbi/openlayer/internal/type/enum.rbi +82 -0
- data/rbi/openlayer/internal/type/file_input.rbi +59 -0
- data/rbi/openlayer/internal/type/hash_of.rbi +104 -0
- data/rbi/openlayer/internal/type/request_parameters.rbi +29 -0
- data/rbi/openlayer/internal/type/union.rbi +128 -0
- data/rbi/openlayer/internal/type/unknown.rbi +58 -0
- data/rbi/openlayer/internal/util.rbi +487 -0
- data/rbi/openlayer/internal.rbi +18 -0
- data/rbi/openlayer/models/commit_retrieve_params.rbi +27 -0
- data/rbi/openlayer/models/commit_retrieve_response.rbi +393 -0
- data/rbi/openlayer/models/commits/test_result_list_params.rbi +214 -0
- data/rbi/openlayer/models/commits/test_result_list_response.rbi +1256 -0
- data/rbi/openlayer/models/inference_pipeline_delete_params.rbi +30 -0
- data/rbi/openlayer/models/inference_pipeline_retrieve_params.rbi +101 -0
- data/rbi/openlayer/models/inference_pipeline_retrieve_response.rbi +1022 -0
- data/rbi/openlayer/models/inference_pipeline_update_params.rbi +67 -0
- data/rbi/openlayer/models/inference_pipeline_update_response.rbi +1018 -0
- data/rbi/openlayer/models/inference_pipelines/data_stream_params.rbi +750 -0
- data/rbi/openlayer/models/inference_pipelines/data_stream_response.rbi +73 -0
- data/rbi/openlayer/models/inference_pipelines/row_update_params.rbi +153 -0
- data/rbi/openlayer/models/inference_pipelines/row_update_response.rbi +73 -0
- data/rbi/openlayer/models/inference_pipelines/test_result_list_params.rbi +216 -0
- data/rbi/openlayer/models/inference_pipelines/test_result_list_response.rbi +1258 -0
- data/rbi/openlayer/models/project_create_params.rbi +99 -0
- data/rbi/openlayer/models/project_create_response.rbi +401 -0
- data/rbi/openlayer/models/project_list_params.rbi +121 -0
- data/rbi/openlayer/models/project_list_response.rbi +442 -0
- data/rbi/openlayer/models/projects/commit_create_params.rbi +125 -0
- data/rbi/openlayer/models/projects/commit_create_response.rbi +409 -0
- data/rbi/openlayer/models/projects/commit_list_params.rbi +62 -0
- data/rbi/openlayer/models/projects/commit_list_response.rbi +454 -0
- data/rbi/openlayer/models/projects/inference_pipeline_create_params.rbi +560 -0
- data/rbi/openlayer/models/projects/inference_pipeline_create_response.rbi +1027 -0
- data/rbi/openlayer/models/projects/inference_pipeline_list_params.rbi +73 -0
- data/rbi/openlayer/models/projects/inference_pipeline_list_response.rbi +1070 -0
- data/rbi/openlayer/models/projects/test_create_params.rbi +940 -0
- data/rbi/openlayer/models/projects/test_create_response.rbi +1026 -0
- data/rbi/openlayer/models/projects/test_list_params.rbi +165 -0
- data/rbi/openlayer/models/projects/test_list_response.rbi +1067 -0
- data/rbi/openlayer/models/projects/test_update_params.rbi +699 -0
- data/rbi/openlayer/models/projects/test_update_response.rbi +43 -0
- data/rbi/openlayer/models/storage/presigned_url_create_params.rbi +45 -0
- data/rbi/openlayer/models/storage/presigned_url_create_response.rbi +55 -0
- data/rbi/openlayer/models.rbi +26 -0
- data/rbi/openlayer/request_options.rbi +59 -0
- data/rbi/openlayer/resources/commits/test_results.rbi +45 -0
- data/rbi/openlayer/resources/commits.rbi +29 -0
- data/rbi/openlayer/resources/inference_pipelines/data.rbi +41 -0
- data/rbi/openlayer/resources/inference_pipelines/rows.rbi +40 -0
- data/rbi/openlayer/resources/inference_pipelines/test_results.rbi +46 -0
- data/rbi/openlayer/resources/inference_pipelines.rbi +79 -0
- data/rbi/openlayer/resources/projects/commits.rbi +60 -0
- data/rbi/openlayer/resources/projects/inference_pipelines.rbi +69 -0
- data/rbi/openlayer/resources/projects/tests.rbi +123 -0
- data/rbi/openlayer/resources/projects.rbi +64 -0
- data/rbi/openlayer/resources/storage/presigned_url.rbi +28 -0
- data/rbi/openlayer/resources/storage.rbi +15 -0
- data/rbi/openlayer/version.rbi +5 -0
- data/sig/openlayer/client.rbs +32 -0
- data/sig/openlayer/errors.rbs +117 -0
- data/sig/openlayer/file_part.rbs +21 -0
- data/sig/openlayer/internal/transport/base_client.rbs +131 -0
- data/sig/openlayer/internal/transport/pooled_net_requester.rbs +45 -0
- data/sig/openlayer/internal/type/array_of.rbs +48 -0
- data/sig/openlayer/internal/type/base_model.rbs +102 -0
- data/sig/openlayer/internal/type/base_page.rbs +24 -0
- data/sig/openlayer/internal/type/boolean.rbs +26 -0
- data/sig/openlayer/internal/type/converter.rbs +79 -0
- data/sig/openlayer/internal/type/enum.rbs +32 -0
- data/sig/openlayer/internal/type/file_input.rbs +25 -0
- data/sig/openlayer/internal/type/hash_of.rbs +48 -0
- data/sig/openlayer/internal/type/request_parameters.rbs +19 -0
- data/sig/openlayer/internal/type/union.rbs +52 -0
- data/sig/openlayer/internal/type/unknown.rbs +26 -0
- data/sig/openlayer/internal/util.rbs +185 -0
- data/sig/openlayer/internal.rbs +9 -0
- data/sig/openlayer/models/commit_retrieve_params.rbs +15 -0
- data/sig/openlayer/models/commit_retrieve_response.rbs +209 -0
- data/sig/openlayer/models/commits/test_result_list_params.rbs +91 -0
- data/sig/openlayer/models/commits/test_result_list_response.rbs +529 -0
- data/sig/openlayer/models/inference_pipeline_delete_params.rbs +15 -0
- data/sig/openlayer/models/inference_pipeline_retrieve_params.rbs +41 -0
- data/sig/openlayer/models/inference_pipeline_retrieve_response.rbs +493 -0
- data/sig/openlayer/models/inference_pipeline_update_params.rbs +34 -0
- data/sig/openlayer/models/inference_pipeline_update_response.rbs +493 -0
- data/sig/openlayer/models/inference_pipelines/data_stream_params.rbs +386 -0
- data/sig/openlayer/models/inference_pipelines/data_stream_response.rbs +32 -0
- data/sig/openlayer/models/inference_pipelines/row_update_params.rbs +75 -0
- data/sig/openlayer/models/inference_pipelines/row_update_response.rbs +32 -0
- data/sig/openlayer/models/inference_pipelines/test_result_list_params.rbs +84 -0
- data/sig/openlayer/models/inference_pipelines/test_result_list_response.rbs +529 -0
- data/sig/openlayer/models/project_create_params.rbs +53 -0
- data/sig/openlayer/models/project_create_response.rbs +210 -0
- data/sig/openlayer/models/project_list_params.rbs +68 -0
- data/sig/openlayer/models/project_list_response.rbs +225 -0
- data/sig/openlayer/models/projects/commit_create_params.rbs +82 -0
- data/sig/openlayer/models/projects/commit_create_response.rbs +211 -0
- data/sig/openlayer/models/projects/commit_list_params.rbs +34 -0
- data/sig/openlayer/models/projects/commit_list_response.rbs +228 -0
- data/sig/openlayer/models/projects/inference_pipeline_create_params.rbs +308 -0
- data/sig/openlayer/models/projects/inference_pipeline_create_response.rbs +495 -0
- data/sig/openlayer/models/projects/inference_pipeline_list_params.rbs +40 -0
- data/sig/openlayer/models/projects/inference_pipeline_list_response.rbs +512 -0
- data/sig/openlayer/models/projects/test_create_params.rbs +388 -0
- data/sig/openlayer/models/projects/test_create_response.rbs +427 -0
- data/sig/openlayer/models/projects/test_list_params.rbs +85 -0
- data/sig/openlayer/models/projects/test_list_response.rbs +442 -0
- data/sig/openlayer/models/projects/test_update_params.rbs +275 -0
- data/sig/openlayer/models/projects/test_update_response.rbs +25 -0
- data/sig/openlayer/models/storage/presigned_url_create_params.rbs +25 -0
- data/sig/openlayer/models/storage/presigned_url_create_response.rbs +22 -0
- data/sig/openlayer/models.rbs +21 -0
- data/sig/openlayer/request_options.rbs +34 -0
- data/sig/openlayer/resources/commits/test_results.rbs +19 -0
- data/sig/openlayer/resources/commits.rbs +14 -0
- data/sig/openlayer/resources/inference_pipelines/data.rbs +16 -0
- data/sig/openlayer/resources/inference_pipelines/rows.rbs +17 -0
- data/sig/openlayer/resources/inference_pipelines/test_results.rbs +18 -0
- data/sig/openlayer/resources/inference_pipelines.rbs +32 -0
- data/sig/openlayer/resources/projects/commits.rbs +25 -0
- data/sig/openlayer/resources/projects/inference_pipelines.rbs +26 -0
- data/sig/openlayer/resources/projects/tests.rbs +45 -0
- data/sig/openlayer/resources/projects.rbs +28 -0
- data/sig/openlayer/resources/storage/presigned_url.rbs +14 -0
- data/sig/openlayer/resources/storage.rbs +9 -0
- data/sig/openlayer/version.rbs +3 -0
- metadata +223 -91
- data/.env +0 -0
- data/.rspec +0 -3
- data/.rubocop.yml +0 -13
- data/LICENSE +0 -21
- data/Rakefile +0 -12
- data/examples/staging/.DS_Store +0 -0
- data/examples/staging/commit.yaml +0 -2
- data/examples/staging/model/model_config.yaml +0 -12
- data/examples/staging/validation/dataset_config.yaml +0 -12
- data/lib/openlayer/error.rb +0 -5
- data/lib/openlayer/inference_pipeline.rb +0 -36
- data/lib/openlayer/object.rb +0 -28
- data/lib/openlayer/objects/project.rb +0 -185
- data/lib/openlayer/objects/project_version.rb +0 -89
- data/lib/openlayer/services/s3_presigned_client.rb +0 -47
- data/lib/openlayer/services/tar_file_helper.rb +0 -55
- data/openlayer.gemspec +0 -45
- data/sig/openlayer.rbs +0 -4
@@ -0,0 +1,51 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Openlayer
|
4
|
+
module Models
|
5
|
+
# @see Openlayer::Resources::Projects#create
|
6
|
+
class ProjectCreateParams < Openlayer::Internal::Type::BaseModel
|
7
|
+
extend Openlayer::Internal::Type::RequestParameters::Converter
|
8
|
+
include Openlayer::Internal::Type::RequestParameters
|
9
|
+
|
10
|
+
# @!attribute name
|
11
|
+
# The project name.
|
12
|
+
#
|
13
|
+
# @return [String]
|
14
|
+
required :name, String
|
15
|
+
|
16
|
+
# @!attribute task_type
|
17
|
+
# The task type of the project.
|
18
|
+
#
|
19
|
+
# @return [Symbol, Openlayer::Models::ProjectCreateParams::TaskType]
|
20
|
+
required :task_type, enum: -> { Openlayer::ProjectCreateParams::TaskType }, api_name: :taskType
|
21
|
+
|
22
|
+
# @!attribute description
|
23
|
+
# The project description.
|
24
|
+
#
|
25
|
+
# @return [String, nil]
|
26
|
+
optional :description, String, nil?: true
|
27
|
+
|
28
|
+
# @!method initialize(name:, task_type:, description: nil, request_options: {})
|
29
|
+
# @param name [String] The project name.
|
30
|
+
#
|
31
|
+
# @param task_type [Symbol, Openlayer::Models::ProjectCreateParams::TaskType] The task type of the project.
|
32
|
+
#
|
33
|
+
# @param description [String, nil] The project description.
|
34
|
+
#
|
35
|
+
# @param request_options [Openlayer::RequestOptions, Hash{Symbol=>Object}]
|
36
|
+
|
37
|
+
# The task type of the project.
|
38
|
+
module TaskType
|
39
|
+
extend Openlayer::Internal::Type::Enum
|
40
|
+
|
41
|
+
LLM_BASE = :"llm-base"
|
42
|
+
TABULAR_CLASSIFICATION = :"tabular-classification"
|
43
|
+
TABULAR_REGRESSION = :"tabular-regression"
|
44
|
+
TEXT_CLASSIFICATION = :"text-classification"
|
45
|
+
|
46
|
+
# @!method self.values
|
47
|
+
# @return [Array<Symbol>]
|
48
|
+
end
|
49
|
+
end
|
50
|
+
end
|
51
|
+
end
|
@@ -0,0 +1,262 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Openlayer
|
4
|
+
module Models
|
5
|
+
# @see Openlayer::Resources::Projects#create
|
6
|
+
class ProjectCreateResponse < 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::ProjectCreateResponse::TaskType]
|
17
|
+
required :task_type, enum: -> { Openlayer::Models::ProjectCreateResponse::TaskType }, api_name: :taskType
|
18
|
+
|
19
|
+
# @!attribute description
|
20
|
+
# The project description.
|
21
|
+
#
|
22
|
+
# @return [String, nil]
|
23
|
+
optional :description, String, nil?: true
|
24
|
+
|
25
|
+
response_only do
|
26
|
+
# @!attribute id
|
27
|
+
# The project id.
|
28
|
+
#
|
29
|
+
# @return [String]
|
30
|
+
required :id, String
|
31
|
+
|
32
|
+
# @!attribute creator_id
|
33
|
+
# The project creator id.
|
34
|
+
#
|
35
|
+
# @return [String, nil]
|
36
|
+
required :creator_id, String, api_name: :creatorId, nil?: true
|
37
|
+
|
38
|
+
# @!attribute date_created
|
39
|
+
# The project creation date.
|
40
|
+
#
|
41
|
+
# @return [Time]
|
42
|
+
required :date_created, Time, api_name: :dateCreated
|
43
|
+
|
44
|
+
# @!attribute date_updated
|
45
|
+
# The project last updated date.
|
46
|
+
#
|
47
|
+
# @return [Time]
|
48
|
+
required :date_updated, Time, api_name: :dateUpdated
|
49
|
+
|
50
|
+
# @!attribute development_goal_count
|
51
|
+
# The number of tests in the development mode of the project.
|
52
|
+
#
|
53
|
+
# @return [Integer]
|
54
|
+
required :development_goal_count, Integer, api_name: :developmentGoalCount
|
55
|
+
|
56
|
+
# @!attribute goal_count
|
57
|
+
# The total number of tests in the project.
|
58
|
+
#
|
59
|
+
# @return [Integer]
|
60
|
+
required :goal_count, Integer, api_name: :goalCount
|
61
|
+
|
62
|
+
# @!attribute inference_pipeline_count
|
63
|
+
# The number of inference pipelines in the project.
|
64
|
+
#
|
65
|
+
# @return [Integer]
|
66
|
+
required :inference_pipeline_count, Integer, api_name: :inferencePipelineCount
|
67
|
+
|
68
|
+
# @!attribute links
|
69
|
+
# Links to the project.
|
70
|
+
#
|
71
|
+
# @return [Openlayer::Models::ProjectCreateResponse::Links]
|
72
|
+
required :links, -> { Openlayer::Models::ProjectCreateResponse::Links }
|
73
|
+
|
74
|
+
# @!attribute monitoring_goal_count
|
75
|
+
# The number of tests in the monitoring mode of the project.
|
76
|
+
#
|
77
|
+
# @return [Integer]
|
78
|
+
required :monitoring_goal_count, Integer, api_name: :monitoringGoalCount
|
79
|
+
|
80
|
+
# @!attribute source
|
81
|
+
# The source of the project.
|
82
|
+
#
|
83
|
+
# @return [Symbol, Openlayer::Models::ProjectCreateResponse::Source, nil]
|
84
|
+
required :source, enum: -> { Openlayer::Models::ProjectCreateResponse::Source }, nil?: true
|
85
|
+
|
86
|
+
# @!attribute version_count
|
87
|
+
# The number of versions (commits) in the project.
|
88
|
+
#
|
89
|
+
# @return [Integer]
|
90
|
+
required :version_count, Integer, api_name: :versionCount
|
91
|
+
|
92
|
+
# @!attribute workspace_id
|
93
|
+
# The workspace id.
|
94
|
+
#
|
95
|
+
# @return [String, nil]
|
96
|
+
required :workspace_id, String, api_name: :workspaceId, nil?: true
|
97
|
+
|
98
|
+
# @!attribute git_repo
|
99
|
+
#
|
100
|
+
# @return [Openlayer::Models::ProjectCreateResponse::GitRepo, nil]
|
101
|
+
optional :git_repo,
|
102
|
+
-> { Openlayer::Models::ProjectCreateResponse::GitRepo },
|
103
|
+
api_name: :gitRepo,
|
104
|
+
nil?: true
|
105
|
+
end
|
106
|
+
|
107
|
+
# @!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)
|
108
|
+
# @param id [String] The project id.
|
109
|
+
#
|
110
|
+
# @param creator_id [String, nil] The project creator id.
|
111
|
+
#
|
112
|
+
# @param date_created [Time] The project creation date.
|
113
|
+
#
|
114
|
+
# @param date_updated [Time] The project last updated date.
|
115
|
+
#
|
116
|
+
# @param development_goal_count [Integer] The number of tests in the development mode of the project.
|
117
|
+
#
|
118
|
+
# @param goal_count [Integer] The total number of tests in the project.
|
119
|
+
#
|
120
|
+
# @param inference_pipeline_count [Integer] The number of inference pipelines in the project.
|
121
|
+
#
|
122
|
+
# @param links [Openlayer::Models::ProjectCreateResponse::Links] Links to the project.
|
123
|
+
#
|
124
|
+
# @param monitoring_goal_count [Integer] The number of tests in the monitoring mode of the project.
|
125
|
+
#
|
126
|
+
# @param name [String] The project name.
|
127
|
+
#
|
128
|
+
# @param source [Symbol, Openlayer::Models::ProjectCreateResponse::Source, nil] The source of the project.
|
129
|
+
#
|
130
|
+
# @param task_type [Symbol, Openlayer::Models::ProjectCreateResponse::TaskType] The task type of the project.
|
131
|
+
#
|
132
|
+
# @param version_count [Integer] The number of versions (commits) in the project.
|
133
|
+
#
|
134
|
+
# @param workspace_id [String, nil] The workspace id.
|
135
|
+
#
|
136
|
+
# @param description [String, nil] The project description.
|
137
|
+
#
|
138
|
+
# @param git_repo [Openlayer::Models::ProjectCreateResponse::GitRepo, nil]
|
139
|
+
|
140
|
+
# @see Openlayer::Models::ProjectCreateResponse#links
|
141
|
+
class Links < Openlayer::Internal::Type::BaseModel
|
142
|
+
# @!attribute app
|
143
|
+
#
|
144
|
+
# @return [String]
|
145
|
+
required :app, String
|
146
|
+
|
147
|
+
# @!method initialize(app:)
|
148
|
+
# Links to the project.
|
149
|
+
#
|
150
|
+
# @param app [String]
|
151
|
+
end
|
152
|
+
|
153
|
+
# The source of the project.
|
154
|
+
#
|
155
|
+
# @see Openlayer::Models::ProjectCreateResponse#source
|
156
|
+
module Source
|
157
|
+
extend Openlayer::Internal::Type::Enum
|
158
|
+
|
159
|
+
WEB = :web
|
160
|
+
API = :api
|
161
|
+
NULL = :null
|
162
|
+
|
163
|
+
# @!method self.values
|
164
|
+
# @return [Array<Symbol>]
|
165
|
+
end
|
166
|
+
|
167
|
+
# The task type of the project.
|
168
|
+
#
|
169
|
+
# @see Openlayer::Models::ProjectCreateResponse#task_type
|
170
|
+
module TaskType
|
171
|
+
extend Openlayer::Internal::Type::Enum
|
172
|
+
|
173
|
+
LLM_BASE = :"llm-base"
|
174
|
+
TABULAR_CLASSIFICATION = :"tabular-classification"
|
175
|
+
TABULAR_REGRESSION = :"tabular-regression"
|
176
|
+
TEXT_CLASSIFICATION = :"text-classification"
|
177
|
+
|
178
|
+
# @!method self.values
|
179
|
+
# @return [Array<Symbol>]
|
180
|
+
end
|
181
|
+
|
182
|
+
# @see Openlayer::Models::ProjectCreateResponse#git_repo
|
183
|
+
class GitRepo < Openlayer::Internal::Type::BaseModel
|
184
|
+
# @!attribute git_account_id
|
185
|
+
#
|
186
|
+
# @return [String]
|
187
|
+
required :git_account_id, String, api_name: :gitAccountId
|
188
|
+
|
189
|
+
# @!attribute git_id
|
190
|
+
#
|
191
|
+
# @return [Integer]
|
192
|
+
required :git_id, Integer, api_name: :gitId
|
193
|
+
|
194
|
+
# @!attribute branch
|
195
|
+
#
|
196
|
+
# @return [String, nil]
|
197
|
+
optional :branch, String
|
198
|
+
|
199
|
+
# @!attribute root_dir
|
200
|
+
#
|
201
|
+
# @return [String, nil]
|
202
|
+
optional :root_dir, String, api_name: :rootDir
|
203
|
+
|
204
|
+
response_only do
|
205
|
+
# @!attribute id
|
206
|
+
#
|
207
|
+
# @return [String]
|
208
|
+
required :id, String
|
209
|
+
|
210
|
+
# @!attribute date_connected
|
211
|
+
#
|
212
|
+
# @return [Time]
|
213
|
+
required :date_connected, Time, api_name: :dateConnected
|
214
|
+
|
215
|
+
# @!attribute date_updated
|
216
|
+
#
|
217
|
+
# @return [Time]
|
218
|
+
required :date_updated, Time, api_name: :dateUpdated
|
219
|
+
|
220
|
+
# @!attribute name
|
221
|
+
#
|
222
|
+
# @return [String]
|
223
|
+
required :name, String
|
224
|
+
|
225
|
+
# @!attribute private
|
226
|
+
#
|
227
|
+
# @return [Boolean]
|
228
|
+
required :private, Openlayer::Internal::Type::Boolean
|
229
|
+
|
230
|
+
# @!attribute project_id
|
231
|
+
#
|
232
|
+
# @return [String]
|
233
|
+
required :project_id, String, api_name: :projectId
|
234
|
+
|
235
|
+
# @!attribute slug
|
236
|
+
#
|
237
|
+
# @return [String]
|
238
|
+
required :slug, String
|
239
|
+
|
240
|
+
# @!attribute url
|
241
|
+
#
|
242
|
+
# @return [String]
|
243
|
+
required :url, String
|
244
|
+
end
|
245
|
+
|
246
|
+
# @!method initialize(id:, date_connected:, date_updated:, git_account_id:, git_id:, name:, private:, project_id:, slug:, url:, branch: nil, root_dir: nil)
|
247
|
+
# @param id [String]
|
248
|
+
# @param date_connected [Time]
|
249
|
+
# @param date_updated [Time]
|
250
|
+
# @param git_account_id [String]
|
251
|
+
# @param git_id [Integer]
|
252
|
+
# @param name [String]
|
253
|
+
# @param private [Boolean]
|
254
|
+
# @param project_id [String]
|
255
|
+
# @param slug [String]
|
256
|
+
# @param url [String]
|
257
|
+
# @param branch [String]
|
258
|
+
# @param root_dir [String]
|
259
|
+
end
|
260
|
+
end
|
261
|
+
end
|
262
|
+
end
|
@@ -0,0 +1,59 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Openlayer
|
4
|
+
module Models
|
5
|
+
# @see Openlayer::Resources::Projects#list
|
6
|
+
class ProjectListParams < Openlayer::Internal::Type::BaseModel
|
7
|
+
extend Openlayer::Internal::Type::RequestParameters::Converter
|
8
|
+
include Openlayer::Internal::Type::RequestParameters
|
9
|
+
|
10
|
+
# @!attribute name
|
11
|
+
# Filter list of items by project name.
|
12
|
+
#
|
13
|
+
# @return [String, nil]
|
14
|
+
optional :name, String
|
15
|
+
|
16
|
+
# @!attribute page
|
17
|
+
# The page to return in a paginated query.
|
18
|
+
#
|
19
|
+
# @return [Integer, nil]
|
20
|
+
optional :page, Integer
|
21
|
+
|
22
|
+
# @!attribute per_page
|
23
|
+
# Maximum number of items to return per page.
|
24
|
+
#
|
25
|
+
# @return [Integer, nil]
|
26
|
+
optional :per_page, Integer
|
27
|
+
|
28
|
+
# @!attribute task_type
|
29
|
+
# Filter list of items by task type.
|
30
|
+
#
|
31
|
+
# @return [Symbol, Openlayer::Models::ProjectListParams::TaskType, nil]
|
32
|
+
optional :task_type, enum: -> { Openlayer::ProjectListParams::TaskType }
|
33
|
+
|
34
|
+
# @!method initialize(name: nil, page: nil, per_page: nil, task_type: nil, request_options: {})
|
35
|
+
# @param name [String] Filter list of items by project name.
|
36
|
+
#
|
37
|
+
# @param page [Integer] The page to return in a paginated query.
|
38
|
+
#
|
39
|
+
# @param per_page [Integer] Maximum number of items to return per page.
|
40
|
+
#
|
41
|
+
# @param task_type [Symbol, Openlayer::Models::ProjectListParams::TaskType] Filter list of items by task type.
|
42
|
+
#
|
43
|
+
# @param request_options [Openlayer::RequestOptions, Hash{Symbol=>Object}]
|
44
|
+
|
45
|
+
# Filter list of items by task type.
|
46
|
+
module TaskType
|
47
|
+
extend Openlayer::Internal::Type::Enum
|
48
|
+
|
49
|
+
LLM_BASE = :"llm-base"
|
50
|
+
TABULAR_CLASSIFICATION = :"tabular-classification"
|
51
|
+
TABULAR_REGRESSION = :"tabular-regression"
|
52
|
+
TEXT_CLASSIFICATION = :"text-classification"
|
53
|
+
|
54
|
+
# @!method self.values
|
55
|
+
# @return [Array<Symbol>]
|
56
|
+
end
|
57
|
+
end
|
58
|
+
end
|
59
|
+
end
|
@@ -0,0 +1,274 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Openlayer
|
4
|
+
module Models
|
5
|
+
# @see Openlayer::Resources::Projects#list
|
6
|
+
class ProjectListResponse < Openlayer::Internal::Type::BaseModel
|
7
|
+
# @!attribute items
|
8
|
+
#
|
9
|
+
# @return [Array<Openlayer::Models::ProjectListResponse::Item>]
|
10
|
+
required :items, -> { Openlayer::Internal::Type::ArrayOf[Openlayer::Models::ProjectListResponse::Item] }
|
11
|
+
|
12
|
+
# @!method initialize(items:)
|
13
|
+
# @param items [Array<Openlayer::Models::ProjectListResponse::Item>]
|
14
|
+
|
15
|
+
class Item < Openlayer::Internal::Type::BaseModel
|
16
|
+
# @!attribute name
|
17
|
+
# The project name.
|
18
|
+
#
|
19
|
+
# @return [String]
|
20
|
+
required :name, String
|
21
|
+
|
22
|
+
# @!attribute task_type
|
23
|
+
# The task type of the project.
|
24
|
+
#
|
25
|
+
# @return [Symbol, Openlayer::Models::ProjectListResponse::Item::TaskType]
|
26
|
+
required :task_type,
|
27
|
+
enum: -> { Openlayer::Models::ProjectListResponse::Item::TaskType },
|
28
|
+
api_name: :taskType
|
29
|
+
|
30
|
+
# @!attribute description
|
31
|
+
# The project description.
|
32
|
+
#
|
33
|
+
# @return [String, nil]
|
34
|
+
optional :description, String, nil?: true
|
35
|
+
|
36
|
+
response_only do
|
37
|
+
# @!attribute id
|
38
|
+
# The project id.
|
39
|
+
#
|
40
|
+
# @return [String]
|
41
|
+
required :id, String
|
42
|
+
|
43
|
+
# @!attribute creator_id
|
44
|
+
# The project creator id.
|
45
|
+
#
|
46
|
+
# @return [String, nil]
|
47
|
+
required :creator_id, String, api_name: :creatorId, nil?: true
|
48
|
+
|
49
|
+
# @!attribute date_created
|
50
|
+
# The project creation date.
|
51
|
+
#
|
52
|
+
# @return [Time]
|
53
|
+
required :date_created, Time, api_name: :dateCreated
|
54
|
+
|
55
|
+
# @!attribute date_updated
|
56
|
+
# The project last updated date.
|
57
|
+
#
|
58
|
+
# @return [Time]
|
59
|
+
required :date_updated, Time, api_name: :dateUpdated
|
60
|
+
|
61
|
+
# @!attribute development_goal_count
|
62
|
+
# The number of tests in the development mode of the project.
|
63
|
+
#
|
64
|
+
# @return [Integer]
|
65
|
+
required :development_goal_count, Integer, api_name: :developmentGoalCount
|
66
|
+
|
67
|
+
# @!attribute goal_count
|
68
|
+
# The total number of tests in the project.
|
69
|
+
#
|
70
|
+
# @return [Integer]
|
71
|
+
required :goal_count, Integer, api_name: :goalCount
|
72
|
+
|
73
|
+
# @!attribute inference_pipeline_count
|
74
|
+
# The number of inference pipelines in the project.
|
75
|
+
#
|
76
|
+
# @return [Integer]
|
77
|
+
required :inference_pipeline_count, Integer, api_name: :inferencePipelineCount
|
78
|
+
|
79
|
+
# @!attribute links
|
80
|
+
# Links to the project.
|
81
|
+
#
|
82
|
+
# @return [Openlayer::Models::ProjectListResponse::Item::Links]
|
83
|
+
required :links, -> { Openlayer::Models::ProjectListResponse::Item::Links }
|
84
|
+
|
85
|
+
# @!attribute monitoring_goal_count
|
86
|
+
# The number of tests in the monitoring mode of the project.
|
87
|
+
#
|
88
|
+
# @return [Integer]
|
89
|
+
required :monitoring_goal_count, Integer, api_name: :monitoringGoalCount
|
90
|
+
|
91
|
+
# @!attribute source
|
92
|
+
# The source of the project.
|
93
|
+
#
|
94
|
+
# @return [Symbol, Openlayer::Models::ProjectListResponse::Item::Source, nil]
|
95
|
+
required :source, enum: -> { Openlayer::Models::ProjectListResponse::Item::Source }, nil?: true
|
96
|
+
|
97
|
+
# @!attribute version_count
|
98
|
+
# The number of versions (commits) in the project.
|
99
|
+
#
|
100
|
+
# @return [Integer]
|
101
|
+
required :version_count, Integer, api_name: :versionCount
|
102
|
+
|
103
|
+
# @!attribute workspace_id
|
104
|
+
# The workspace id.
|
105
|
+
#
|
106
|
+
# @return [String, nil]
|
107
|
+
required :workspace_id, String, api_name: :workspaceId, nil?: true
|
108
|
+
|
109
|
+
# @!attribute git_repo
|
110
|
+
#
|
111
|
+
# @return [Openlayer::Models::ProjectListResponse::Item::GitRepo, nil]
|
112
|
+
optional :git_repo,
|
113
|
+
-> { Openlayer::Models::ProjectListResponse::Item::GitRepo },
|
114
|
+
api_name: :gitRepo,
|
115
|
+
nil?: true
|
116
|
+
end
|
117
|
+
|
118
|
+
# @!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)
|
119
|
+
# @param id [String] The project id.
|
120
|
+
#
|
121
|
+
# @param creator_id [String, nil] The project creator id.
|
122
|
+
#
|
123
|
+
# @param date_created [Time] The project creation date.
|
124
|
+
#
|
125
|
+
# @param date_updated [Time] The project last updated date.
|
126
|
+
#
|
127
|
+
# @param development_goal_count [Integer] The number of tests in the development mode of the project.
|
128
|
+
#
|
129
|
+
# @param goal_count [Integer] The total number of tests in the project.
|
130
|
+
#
|
131
|
+
# @param inference_pipeline_count [Integer] The number of inference pipelines in the project.
|
132
|
+
#
|
133
|
+
# @param links [Openlayer::Models::ProjectListResponse::Item::Links] Links to the project.
|
134
|
+
#
|
135
|
+
# @param monitoring_goal_count [Integer] The number of tests in the monitoring mode of the project.
|
136
|
+
#
|
137
|
+
# @param name [String] The project name.
|
138
|
+
#
|
139
|
+
# @param source [Symbol, Openlayer::Models::ProjectListResponse::Item::Source, nil] The source of the project.
|
140
|
+
#
|
141
|
+
# @param task_type [Symbol, Openlayer::Models::ProjectListResponse::Item::TaskType] The task type of the project.
|
142
|
+
#
|
143
|
+
# @param version_count [Integer] The number of versions (commits) in the project.
|
144
|
+
#
|
145
|
+
# @param workspace_id [String, nil] The workspace id.
|
146
|
+
#
|
147
|
+
# @param description [String, nil] The project description.
|
148
|
+
#
|
149
|
+
# @param git_repo [Openlayer::Models::ProjectListResponse::Item::GitRepo, nil]
|
150
|
+
|
151
|
+
# @see Openlayer::Models::ProjectListResponse::Item#links
|
152
|
+
class Links < Openlayer::Internal::Type::BaseModel
|
153
|
+
# @!attribute app
|
154
|
+
#
|
155
|
+
# @return [String]
|
156
|
+
required :app, String
|
157
|
+
|
158
|
+
# @!method initialize(app:)
|
159
|
+
# Links to the project.
|
160
|
+
#
|
161
|
+
# @param app [String]
|
162
|
+
end
|
163
|
+
|
164
|
+
# The source of the project.
|
165
|
+
#
|
166
|
+
# @see Openlayer::Models::ProjectListResponse::Item#source
|
167
|
+
module Source
|
168
|
+
extend Openlayer::Internal::Type::Enum
|
169
|
+
|
170
|
+
WEB = :web
|
171
|
+
API = :api
|
172
|
+
NULL = :null
|
173
|
+
|
174
|
+
# @!method self.values
|
175
|
+
# @return [Array<Symbol>]
|
176
|
+
end
|
177
|
+
|
178
|
+
# The task type of the project.
|
179
|
+
#
|
180
|
+
# @see Openlayer::Models::ProjectListResponse::Item#task_type
|
181
|
+
module TaskType
|
182
|
+
extend Openlayer::Internal::Type::Enum
|
183
|
+
|
184
|
+
LLM_BASE = :"llm-base"
|
185
|
+
TABULAR_CLASSIFICATION = :"tabular-classification"
|
186
|
+
TABULAR_REGRESSION = :"tabular-regression"
|
187
|
+
TEXT_CLASSIFICATION = :"text-classification"
|
188
|
+
|
189
|
+
# @!method self.values
|
190
|
+
# @return [Array<Symbol>]
|
191
|
+
end
|
192
|
+
|
193
|
+
# @see Openlayer::Models::ProjectListResponse::Item#git_repo
|
194
|
+
class GitRepo < Openlayer::Internal::Type::BaseModel
|
195
|
+
# @!attribute git_account_id
|
196
|
+
#
|
197
|
+
# @return [String]
|
198
|
+
required :git_account_id, String, api_name: :gitAccountId
|
199
|
+
|
200
|
+
# @!attribute git_id
|
201
|
+
#
|
202
|
+
# @return [Integer]
|
203
|
+
required :git_id, Integer, api_name: :gitId
|
204
|
+
|
205
|
+
# @!attribute branch
|
206
|
+
#
|
207
|
+
# @return [String, nil]
|
208
|
+
optional :branch, String
|
209
|
+
|
210
|
+
# @!attribute root_dir
|
211
|
+
#
|
212
|
+
# @return [String, nil]
|
213
|
+
optional :root_dir, String, api_name: :rootDir
|
214
|
+
|
215
|
+
response_only do
|
216
|
+
# @!attribute id
|
217
|
+
#
|
218
|
+
# @return [String]
|
219
|
+
required :id, String
|
220
|
+
|
221
|
+
# @!attribute date_connected
|
222
|
+
#
|
223
|
+
# @return [Time]
|
224
|
+
required :date_connected, Time, api_name: :dateConnected
|
225
|
+
|
226
|
+
# @!attribute date_updated
|
227
|
+
#
|
228
|
+
# @return [Time]
|
229
|
+
required :date_updated, Time, api_name: :dateUpdated
|
230
|
+
|
231
|
+
# @!attribute name
|
232
|
+
#
|
233
|
+
# @return [String]
|
234
|
+
required :name, String
|
235
|
+
|
236
|
+
# @!attribute private
|
237
|
+
#
|
238
|
+
# @return [Boolean]
|
239
|
+
required :private, Openlayer::Internal::Type::Boolean
|
240
|
+
|
241
|
+
# @!attribute project_id
|
242
|
+
#
|
243
|
+
# @return [String]
|
244
|
+
required :project_id, String, api_name: :projectId
|
245
|
+
|
246
|
+
# @!attribute slug
|
247
|
+
#
|
248
|
+
# @return [String]
|
249
|
+
required :slug, String
|
250
|
+
|
251
|
+
# @!attribute url
|
252
|
+
#
|
253
|
+
# @return [String]
|
254
|
+
required :url, String
|
255
|
+
end
|
256
|
+
|
257
|
+
# @!method initialize(id:, date_connected:, date_updated:, git_account_id:, git_id:, name:, private:, project_id:, slug:, url:, branch: nil, root_dir: nil)
|
258
|
+
# @param id [String]
|
259
|
+
# @param date_connected [Time]
|
260
|
+
# @param date_updated [Time]
|
261
|
+
# @param git_account_id [String]
|
262
|
+
# @param git_id [Integer]
|
263
|
+
# @param name [String]
|
264
|
+
# @param private [Boolean]
|
265
|
+
# @param project_id [String]
|
266
|
+
# @param slug [String]
|
267
|
+
# @param url [String]
|
268
|
+
# @param branch [String]
|
269
|
+
# @param root_dir [String]
|
270
|
+
end
|
271
|
+
end
|
272
|
+
end
|
273
|
+
end
|
274
|
+
end
|
@@ -0,0 +1,61 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Openlayer
|
4
|
+
module Models
|
5
|
+
module Projects
|
6
|
+
# @see Openlayer::Resources::Projects::Commits#create
|
7
|
+
class CommitCreateParams < Openlayer::Internal::Type::BaseModel
|
8
|
+
extend Openlayer::Internal::Type::RequestParameters::Converter
|
9
|
+
include Openlayer::Internal::Type::RequestParameters
|
10
|
+
|
11
|
+
# @!attribute commit
|
12
|
+
# The details of a commit (project version).
|
13
|
+
#
|
14
|
+
# @return [Openlayer::Models::Projects::CommitCreateParams::Commit]
|
15
|
+
required :commit, -> { Openlayer::Projects::CommitCreateParams::Commit }
|
16
|
+
|
17
|
+
# @!attribute storage_uri
|
18
|
+
# The storage URI where the commit bundle is stored.
|
19
|
+
#
|
20
|
+
# @return [String]
|
21
|
+
required :storage_uri, String, api_name: :storageUri
|
22
|
+
|
23
|
+
# @!attribute archived
|
24
|
+
# Whether the commit is archived.
|
25
|
+
#
|
26
|
+
# @return [Boolean, nil]
|
27
|
+
optional :archived, Openlayer::Internal::Type::Boolean, nil?: true
|
28
|
+
|
29
|
+
# @!attribute deployment_status
|
30
|
+
# The deployment status associated with the commit's model.
|
31
|
+
#
|
32
|
+
# @return [String, nil]
|
33
|
+
optional :deployment_status, String, api_name: :deploymentStatus
|
34
|
+
|
35
|
+
# @!method initialize(commit:, storage_uri:, archived: nil, deployment_status: nil, request_options: {})
|
36
|
+
# @param commit [Openlayer::Models::Projects::CommitCreateParams::Commit] The details of a commit (project version).
|
37
|
+
#
|
38
|
+
# @param storage_uri [String] The storage URI where the commit bundle is stored.
|
39
|
+
#
|
40
|
+
# @param archived [Boolean, nil] Whether the commit is archived.
|
41
|
+
#
|
42
|
+
# @param deployment_status [String] The deployment status associated with the commit's model.
|
43
|
+
#
|
44
|
+
# @param request_options [Openlayer::RequestOptions, Hash{Symbol=>Object}]
|
45
|
+
|
46
|
+
class Commit < Openlayer::Internal::Type::BaseModel
|
47
|
+
# @!attribute message
|
48
|
+
# The commit message.
|
49
|
+
#
|
50
|
+
# @return [String]
|
51
|
+
required :message, String
|
52
|
+
|
53
|
+
# @!method initialize(message:)
|
54
|
+
# The details of a commit (project version).
|
55
|
+
#
|
56
|
+
# @param message [String] The commit message.
|
57
|
+
end
|
58
|
+
end
|
59
|
+
end
|
60
|
+
end
|
61
|
+
end
|