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,229 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Openlayer
|
4
|
+
module Models
|
5
|
+
module Projects
|
6
|
+
# @see Openlayer::Resources::Projects::InferencePipelines#create
|
7
|
+
class InferencePipelineCreateParams < Openlayer::Internal::Type::BaseModel
|
8
|
+
extend Openlayer::Internal::Type::RequestParameters::Converter
|
9
|
+
include Openlayer::Internal::Type::RequestParameters
|
10
|
+
|
11
|
+
# @!attribute description
|
12
|
+
# The inference pipeline description.
|
13
|
+
#
|
14
|
+
# @return [String, nil]
|
15
|
+
required :description, String, nil?: true
|
16
|
+
|
17
|
+
# @!attribute name
|
18
|
+
# The inference pipeline name.
|
19
|
+
#
|
20
|
+
# @return [String]
|
21
|
+
required :name, String
|
22
|
+
|
23
|
+
# @!attribute project
|
24
|
+
#
|
25
|
+
# @return [Openlayer::Models::Projects::InferencePipelineCreateParams::Project, nil]
|
26
|
+
optional :project, -> { Openlayer::Projects::InferencePipelineCreateParams::Project }, nil?: true
|
27
|
+
|
28
|
+
# @!attribute workspace
|
29
|
+
#
|
30
|
+
# @return [Openlayer::Models::Projects::InferencePipelineCreateParams::Workspace, nil]
|
31
|
+
optional :workspace, -> { Openlayer::Projects::InferencePipelineCreateParams::Workspace }, nil?: true
|
32
|
+
|
33
|
+
# @!method initialize(description:, name:, project: nil, workspace: nil, request_options: {})
|
34
|
+
# @param description [String, nil] The inference pipeline description.
|
35
|
+
#
|
36
|
+
# @param name [String] The inference pipeline name.
|
37
|
+
#
|
38
|
+
# @param project [Openlayer::Models::Projects::InferencePipelineCreateParams::Project, nil]
|
39
|
+
#
|
40
|
+
# @param workspace [Openlayer::Models::Projects::InferencePipelineCreateParams::Workspace, nil]
|
41
|
+
#
|
42
|
+
# @param request_options [Openlayer::RequestOptions, Hash{Symbol=>Object}]
|
43
|
+
|
44
|
+
class Project < Openlayer::Internal::Type::BaseModel
|
45
|
+
# @!attribute name
|
46
|
+
# The project name.
|
47
|
+
#
|
48
|
+
# @return [String]
|
49
|
+
required :name, String
|
50
|
+
|
51
|
+
# @!attribute task_type
|
52
|
+
# The task type of the project.
|
53
|
+
#
|
54
|
+
# @return [Symbol, Openlayer::Models::Projects::InferencePipelineCreateParams::Project::TaskType]
|
55
|
+
required :task_type,
|
56
|
+
enum: -> { Openlayer::Projects::InferencePipelineCreateParams::Project::TaskType },
|
57
|
+
api_name: :taskType
|
58
|
+
|
59
|
+
# @!attribute description
|
60
|
+
# The project description.
|
61
|
+
#
|
62
|
+
# @return [String, nil]
|
63
|
+
optional :description, String, nil?: true
|
64
|
+
|
65
|
+
# @!method initialize(name:, task_type:, description: nil)
|
66
|
+
# @param name [String] The project name.
|
67
|
+
#
|
68
|
+
# @param task_type [Symbol, Openlayer::Models::Projects::InferencePipelineCreateParams::Project::TaskType] The task type of the project.
|
69
|
+
#
|
70
|
+
# @param description [String, nil] The project description.
|
71
|
+
|
72
|
+
# @see Openlayer::Models::Projects::InferencePipelineCreateParams::Project#links
|
73
|
+
class Links < Openlayer::Internal::Type::BaseModel
|
74
|
+
# @!attribute app
|
75
|
+
#
|
76
|
+
# @return [String]
|
77
|
+
required :app, String
|
78
|
+
|
79
|
+
# @!method initialize(app:)
|
80
|
+
# Links to the project.
|
81
|
+
#
|
82
|
+
# @param app [String]
|
83
|
+
end
|
84
|
+
|
85
|
+
# The source of the project.
|
86
|
+
#
|
87
|
+
# @see Openlayer::Models::Projects::InferencePipelineCreateParams::Project#source
|
88
|
+
module Source
|
89
|
+
extend Openlayer::Internal::Type::Enum
|
90
|
+
|
91
|
+
WEB = :web
|
92
|
+
API = :api
|
93
|
+
NULL = :null
|
94
|
+
|
95
|
+
# @!method self.values
|
96
|
+
# @return [Array<Symbol>]
|
97
|
+
end
|
98
|
+
|
99
|
+
# The task type of the project.
|
100
|
+
#
|
101
|
+
# @see Openlayer::Models::Projects::InferencePipelineCreateParams::Project#task_type
|
102
|
+
module TaskType
|
103
|
+
extend Openlayer::Internal::Type::Enum
|
104
|
+
|
105
|
+
LLM_BASE = :"llm-base"
|
106
|
+
TABULAR_CLASSIFICATION = :"tabular-classification"
|
107
|
+
TABULAR_REGRESSION = :"tabular-regression"
|
108
|
+
TEXT_CLASSIFICATION = :"text-classification"
|
109
|
+
|
110
|
+
# @!method self.values
|
111
|
+
# @return [Array<Symbol>]
|
112
|
+
end
|
113
|
+
|
114
|
+
# @see Openlayer::Models::Projects::InferencePipelineCreateParams::Project#git_repo
|
115
|
+
class GitRepo < Openlayer::Internal::Type::BaseModel
|
116
|
+
# @!attribute git_account_id
|
117
|
+
#
|
118
|
+
# @return [String]
|
119
|
+
required :git_account_id, String, api_name: :gitAccountId
|
120
|
+
|
121
|
+
# @!attribute git_id
|
122
|
+
#
|
123
|
+
# @return [Integer]
|
124
|
+
required :git_id, Integer, api_name: :gitId
|
125
|
+
|
126
|
+
# @!attribute branch
|
127
|
+
#
|
128
|
+
# @return [String, nil]
|
129
|
+
optional :branch, String
|
130
|
+
|
131
|
+
# @!attribute root_dir
|
132
|
+
#
|
133
|
+
# @return [String, nil]
|
134
|
+
optional :root_dir, String, api_name: :rootDir
|
135
|
+
|
136
|
+
# @!method initialize(git_account_id:, git_id:, branch: nil, root_dir: nil)
|
137
|
+
# @param git_account_id [String]
|
138
|
+
# @param git_id [Integer]
|
139
|
+
# @param branch [String]
|
140
|
+
# @param root_dir [String]
|
141
|
+
end
|
142
|
+
end
|
143
|
+
|
144
|
+
class Workspace < Openlayer::Internal::Type::BaseModel
|
145
|
+
# @!attribute name
|
146
|
+
# The workspace name.
|
147
|
+
#
|
148
|
+
# @return [String]
|
149
|
+
required :name, String
|
150
|
+
|
151
|
+
# @!attribute slug
|
152
|
+
# The workspace slug.
|
153
|
+
#
|
154
|
+
# @return [String]
|
155
|
+
required :slug, String
|
156
|
+
|
157
|
+
# @!attribute saml_only_access
|
158
|
+
# Whether the workspace only allows SAML authentication.
|
159
|
+
#
|
160
|
+
# @return [Boolean, nil]
|
161
|
+
optional :saml_only_access, Openlayer::Internal::Type::Boolean, api_name: :samlOnlyAccess
|
162
|
+
|
163
|
+
# @!attribute wildcard_domains
|
164
|
+
#
|
165
|
+
# @return [Array<String>, nil]
|
166
|
+
optional :wildcard_domains, Openlayer::Internal::Type::ArrayOf[String], api_name: :wildcardDomains
|
167
|
+
|
168
|
+
request_only do
|
169
|
+
# @!attribute invite_code
|
170
|
+
# The workspace invite code.
|
171
|
+
#
|
172
|
+
# @return [String, nil]
|
173
|
+
optional :invite_code, String, api_name: :inviteCode
|
174
|
+
end
|
175
|
+
|
176
|
+
# @!method initialize(name:, slug:, invite_code: nil, saml_only_access: nil, wildcard_domains: nil)
|
177
|
+
# @param name [String] The workspace name.
|
178
|
+
#
|
179
|
+
# @param slug [String] The workspace slug.
|
180
|
+
#
|
181
|
+
# @param invite_code [String] The workspace invite code.
|
182
|
+
#
|
183
|
+
# @param saml_only_access [Boolean] Whether the workspace only allows SAML authentication.
|
184
|
+
#
|
185
|
+
# @param wildcard_domains [Array<String>]
|
186
|
+
|
187
|
+
# @see Openlayer::Models::Projects::InferencePipelineCreateParams::Workspace#status
|
188
|
+
module Status
|
189
|
+
extend Openlayer::Internal::Type::Enum
|
190
|
+
|
191
|
+
ACTIVE = :active
|
192
|
+
PAST_DUE = :past_due
|
193
|
+
UNPAID = :unpaid
|
194
|
+
CANCELED = :canceled
|
195
|
+
INCOMPLETE = :incomplete
|
196
|
+
INCOMPLETE_EXPIRED = :incomplete_expired
|
197
|
+
TRIALING = :trialing
|
198
|
+
PAUSED = :paused
|
199
|
+
|
200
|
+
# @!method self.values
|
201
|
+
# @return [Array<Symbol>]
|
202
|
+
end
|
203
|
+
|
204
|
+
class MonthlyUsage < Openlayer::Internal::Type::BaseModel
|
205
|
+
# @!attribute execution_time_ms
|
206
|
+
#
|
207
|
+
# @return [Integer, nil]
|
208
|
+
optional :execution_time_ms, Integer, api_name: :executionTimeMs, nil?: true
|
209
|
+
|
210
|
+
# @!attribute month_year
|
211
|
+
#
|
212
|
+
# @return [Date, nil]
|
213
|
+
optional :month_year, Date, api_name: :monthYear
|
214
|
+
|
215
|
+
# @!attribute prediction_count
|
216
|
+
#
|
217
|
+
# @return [Integer, nil]
|
218
|
+
optional :prediction_count, Integer, api_name: :predictionCount
|
219
|
+
|
220
|
+
# @!method initialize(execution_time_ms: nil, month_year: nil, prediction_count: nil)
|
221
|
+
# @param execution_time_ms [Integer, nil]
|
222
|
+
# @param month_year [Date]
|
223
|
+
# @param prediction_count [Integer]
|
224
|
+
end
|
225
|
+
end
|
226
|
+
end
|
227
|
+
end
|
228
|
+
end
|
229
|
+
end
|