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