diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c16d48f..a81020c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -21,7 +21,7 @@ jobs: permissions: contents: read id-token: write - runs-on: ${{ github.repository == 'stainless-sdks/openlayer-ruby' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }} + runs-on: ${{ startsWith(github.repository, 'stainless-sdks/') && 'depot-ubuntu-24.04' || 'ubuntu-latest' }} if: |- github.repository == 'stainless-sdks/openlayer-ruby' && (github.event_name == 'push' || github.event.pull_request.head.repo.fork) && (github.event_name != 'push' || github.event.head_commit.message != 'codegen metadata') @@ -56,7 +56,7 @@ jobs: lint: timeout-minutes: 10 name: lint - runs-on: ${{ github.repository == 'stainless-sdks/openlayer-ruby' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }} + runs-on: ${{ startsWith(github.repository, 'stainless-sdks/') && 'depot-ubuntu-24.04' || 'ubuntu-latest' }} if: github.event_name == 'push' || github.event.pull_request.head.repo.fork steps: diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 54c4d98..8f3e0a4 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.14.1" + ".": "0.15.0" } \ No newline at end of file diff --git a/.stats.yml b/.stats.yml index 0deea56..60080a0 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,3 +1,3 @@ -configured_endpoints: 31 -openapi_spec_hash: a574ef9082e992c25120554886a9ab7a -config_hash: 2d4f9621ceae4bb25977853a964a0e54 +configured_endpoints: 32 +openapi_spec_hash: 72e2dd8871904fe6c130d1c81b033d5a +config_hash: f75dd97d47c446f8fdc8bcb36f445eea diff --git a/CHANGELOG.md b/CHANGELOG.md index 487be4e..adcc98e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,18 @@ # Changelog +## 0.15.0 (2026-08-03) + +Full Changelog: [v0.14.1...v0.15.0](https://github.com/openlayer-ai/openlayer-ruby/compare/v0.14.1...v0.15.0) + +### Features + +* **stlc:** configurable CI runner and private-production-repo support in workflow templates ([1e2b0dd](https://github.com/openlayer-ai/openlayer-ruby/commit/1e2b0dd15c04284222bb259bd5dd5b31537beaec)) + + +### Chores + +* **closes OPEN-11851:** expose update project endpoint ([c3918da](https://github.com/openlayer-ai/openlayer-ruby/commit/c3918daf0326fbeda5cc3844a0c39aa96dbdc573)) + ## 0.14.1 (2026-07-06) Full Changelog: [v0.14.0...v0.14.1](https://github.com/openlayer-ai/openlayer-ruby/compare/v0.14.0...v0.14.1) diff --git a/Gemfile.lock b/Gemfile.lock index 51c0b64..de460c6 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -11,7 +11,7 @@ GIT PATH remote: . specs: - openlayer (0.14.1) + openlayer (0.15.0) cgi connection_pool diff --git a/README.md b/README.md index 7e1160f..ca67cf7 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@ To use this gem, install via Bundler by adding the following to your application ```ruby -gem "openlayer", "~> 0.14.1" +gem "openlayer", "~> 0.15.0" ``` diff --git a/lib/openlayer.rb b/lib/openlayer.rb index e0c8f43..076c40e 100644 --- a/lib/openlayer.rb +++ b/lib/openlayer.rb @@ -95,6 +95,8 @@ require_relative "openlayer/models/projects/test_list_response" require_relative "openlayer/models/projects/test_update_params" require_relative "openlayer/models/projects/test_update_response" +require_relative "openlayer/models/project_update_params" +require_relative "openlayer/models/project_update_response" require_relative "openlayer/models/storage/presigned_url_create_params" require_relative "openlayer/models/storage/presigned_url_create_response" require_relative "openlayer/models/test_evaluate_params" diff --git a/lib/openlayer/models.rb b/lib/openlayer/models.rb index 52340ad..dc8c155 100644 --- a/lib/openlayer/models.rb +++ b/lib/openlayer/models.rb @@ -63,6 +63,8 @@ module Openlayer Projects = Openlayer::Models::Projects + ProjectUpdateParams = Openlayer::Models::ProjectUpdateParams + Storage = Openlayer::Models::Storage TestEvaluateParams = Openlayer::Models::TestEvaluateParams diff --git a/lib/openlayer/models/inference_pipeline_retrieve_response.rb b/lib/openlayer/models/inference_pipeline_retrieve_response.rb index d5a9bd0..e04630a 100644 --- a/lib/openlayer/models/inference_pipeline_retrieve_response.rb +++ b/lib/openlayer/models/inference_pipeline_retrieve_response.rb @@ -698,12 +698,37 @@ class Project < Openlayer::Internal::Type::BaseModel enum: -> { Openlayer::Models::InferencePipelineRetrieveResponse::Project::TaskType }, api_name: :taskType + # @!attribute data_retention_days + # Number of days to retain monitoring data for this project. Null means data is + # retained indefinitely. + # + # @return [Integer, nil] + optional :data_retention_days, Integer, api_name: :dataRetentionDays, nil?: true + # @!attribute description # The project description. # # @return [String, nil] optional :description, String, nil?: true + # @!attribute model_developer + # Who developed the model used in this project. + # + # @return [String, nil] + optional :model_developer, String, api_name: :modelDeveloper, nil?: true + + # @!attribute model_types + # The kinds of model used in this project. + # + # @return [Array, nil] + optional :model_types, Openlayer::Internal::Type::ArrayOf[String], api_name: :modelTypes, nil?: true + + # @!attribute purpose + # What the system in this project is intended to do. + # + # @return [String, nil] + optional :purpose, String, nil?: true + response_only do # @!attribute id # The project id. @@ -788,7 +813,11 @@ class Project < Openlayer::Internal::Type::BaseModel nil?: true end - # @!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) + # @!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) + # Some parameter documentations has been truncated, see + # {Openlayer::Models::InferencePipelineRetrieveResponse::Project} for more + # details. + # # @param id [String] The project id. # # @param creator_id [String, nil] The project creator id. @@ -817,9 +846,17 @@ class Project < Openlayer::Internal::Type::BaseModel # # @param workspace_id [String, nil] The workspace id. # + # @param data_retention_days [Integer, nil] Number of days to retain monitoring data for this project. Null means data is re + # # @param description [String, nil] The project description. # # @param git_repo [Openlayer::Models::InferencePipelineRetrieveResponse::Project::GitRepo, nil] + # + # @param model_developer [String, nil] Who developed the model used in this project. + # + # @param model_types [Array, nil] The kinds of model used in this project. + # + # @param purpose [String, nil] What the system in this project is intended to do. # @see Openlayer::Models::InferencePipelineRetrieveResponse::Project#links class Links < Openlayer::Internal::Type::BaseModel diff --git a/lib/openlayer/models/inference_pipeline_update_response.rb b/lib/openlayer/models/inference_pipeline_update_response.rb index e1bb7b3..56c06c7 100644 --- a/lib/openlayer/models/inference_pipeline_update_response.rb +++ b/lib/openlayer/models/inference_pipeline_update_response.rb @@ -698,12 +698,37 @@ class Project < Openlayer::Internal::Type::BaseModel enum: -> { Openlayer::Models::InferencePipelineUpdateResponse::Project::TaskType }, api_name: :taskType + # @!attribute data_retention_days + # Number of days to retain monitoring data for this project. Null means data is + # retained indefinitely. + # + # @return [Integer, nil] + optional :data_retention_days, Integer, api_name: :dataRetentionDays, nil?: true + # @!attribute description # The project description. # # @return [String, nil] optional :description, String, nil?: true + # @!attribute model_developer + # Who developed the model used in this project. + # + # @return [String, nil] + optional :model_developer, String, api_name: :modelDeveloper, nil?: true + + # @!attribute model_types + # The kinds of model used in this project. + # + # @return [Array, nil] + optional :model_types, Openlayer::Internal::Type::ArrayOf[String], api_name: :modelTypes, nil?: true + + # @!attribute purpose + # What the system in this project is intended to do. + # + # @return [String, nil] + optional :purpose, String, nil?: true + response_only do # @!attribute id # The project id. @@ -788,7 +813,10 @@ class Project < Openlayer::Internal::Type::BaseModel nil?: true end - # @!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) + # @!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) + # Some parameter documentations has been truncated, see + # {Openlayer::Models::InferencePipelineUpdateResponse::Project} for more details. + # # @param id [String] The project id. # # @param creator_id [String, nil] The project creator id. @@ -817,9 +845,17 @@ class Project < Openlayer::Internal::Type::BaseModel # # @param workspace_id [String, nil] The workspace id. # + # @param data_retention_days [Integer, nil] Number of days to retain monitoring data for this project. Null means data is re + # # @param description [String, nil] The project description. # # @param git_repo [Openlayer::Models::InferencePipelineUpdateResponse::Project::GitRepo, nil] + # + # @param model_developer [String, nil] Who developed the model used in this project. + # + # @param model_types [Array, nil] The kinds of model used in this project. + # + # @param purpose [String, nil] What the system in this project is intended to do. # @see Openlayer::Models::InferencePipelineUpdateResponse::Project#links class Links < Openlayer::Internal::Type::BaseModel diff --git a/lib/openlayer/models/project_create_params.rb b/lib/openlayer/models/project_create_params.rb index 713b918..4d322b2 100644 --- a/lib/openlayer/models/project_create_params.rb +++ b/lib/openlayer/models/project_create_params.rb @@ -19,19 +19,55 @@ class ProjectCreateParams < Openlayer::Internal::Type::BaseModel # @return [Symbol, Openlayer::Models::ProjectCreateParams::TaskType] required :task_type, enum: -> { Openlayer::ProjectCreateParams::TaskType }, api_name: :taskType + # @!attribute data_retention_days + # Number of days to retain monitoring data for this project. Null means data is + # retained indefinitely. + # + # @return [Integer, nil] + optional :data_retention_days, Integer, api_name: :dataRetentionDays, nil?: true + # @!attribute description # The project description. # # @return [String, nil] optional :description, String, nil?: true - # @!method initialize(name:, task_type:, description: nil, request_options: {}) + # @!attribute model_developer + # Who developed the model used in this project. + # + # @return [String, nil] + optional :model_developer, String, api_name: :modelDeveloper, nil?: true + + # @!attribute model_types + # The kinds of model used in this project. + # + # @return [Array, nil] + optional :model_types, Openlayer::Internal::Type::ArrayOf[String], api_name: :modelTypes, nil?: true + + # @!attribute purpose + # What the system in this project is intended to do. + # + # @return [String, nil] + optional :purpose, String, nil?: true + + # @!method initialize(name:, task_type:, data_retention_days: nil, description: nil, model_developer: nil, model_types: nil, purpose: nil, request_options: {}) + # Some parameter documentations has been truncated, see + # {Openlayer::Models::ProjectCreateParams} for more details. + # # @param name [String] The project name. # # @param task_type [Symbol, Openlayer::Models::ProjectCreateParams::TaskType] The task type of the project. # + # @param data_retention_days [Integer, nil] Number of days to retain monitoring data for this project. Null means data is re + # # @param description [String, nil] The project description. # + # @param model_developer [String, nil] Who developed the model used in this project. + # + # @param model_types [Array, nil] The kinds of model used in this project. + # + # @param purpose [String, nil] What the system in this project is intended to do. + # # @param request_options [Openlayer::RequestOptions, Hash{Symbol=>Object}] # The task type of the project. diff --git a/lib/openlayer/models/project_create_response.rb b/lib/openlayer/models/project_create_response.rb index 907f624..2bf9689 100644 --- a/lib/openlayer/models/project_create_response.rb +++ b/lib/openlayer/models/project_create_response.rb @@ -16,12 +16,37 @@ class ProjectCreateResponse < Openlayer::Internal::Type::BaseModel # @return [Symbol, Openlayer::Models::ProjectCreateResponse::TaskType] required :task_type, enum: -> { Openlayer::Models::ProjectCreateResponse::TaskType }, api_name: :taskType + # @!attribute data_retention_days + # Number of days to retain monitoring data for this project. Null means data is + # retained indefinitely. + # + # @return [Integer, nil] + optional :data_retention_days, Integer, api_name: :dataRetentionDays, nil?: true + # @!attribute description # The project description. # # @return [String, nil] optional :description, String, nil?: true + # @!attribute model_developer + # Who developed the model used in this project. + # + # @return [String, nil] + optional :model_developer, String, api_name: :modelDeveloper, nil?: true + + # @!attribute model_types + # The kinds of model used in this project. + # + # @return [Array, nil] + optional :model_types, Openlayer::Internal::Type::ArrayOf[String], api_name: :modelTypes, nil?: true + + # @!attribute purpose + # What the system in this project is intended to do. + # + # @return [String, nil] + optional :purpose, String, nil?: true + response_only do # @!attribute id # The project id. @@ -104,7 +129,10 @@ class ProjectCreateResponse < Openlayer::Internal::Type::BaseModel nil?: true end - # @!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) + # @!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) + # Some parameter documentations has been truncated, see + # {Openlayer::Models::ProjectCreateResponse} for more details. + # # @param id [String] The project id. # # @param creator_id [String, nil] The project creator id. @@ -133,9 +161,17 @@ class ProjectCreateResponse < Openlayer::Internal::Type::BaseModel # # @param workspace_id [String, nil] The workspace id. # + # @param data_retention_days [Integer, nil] Number of days to retain monitoring data for this project. Null means data is re + # # @param description [String, nil] The project description. # # @param git_repo [Openlayer::Models::ProjectCreateResponse::GitRepo, nil] + # + # @param model_developer [String, nil] Who developed the model used in this project. + # + # @param model_types [Array, nil] The kinds of model used in this project. + # + # @param purpose [String, nil] What the system in this project is intended to do. # @see Openlayer::Models::ProjectCreateResponse#links class Links < Openlayer::Internal::Type::BaseModel diff --git a/lib/openlayer/models/project_list_response.rb b/lib/openlayer/models/project_list_response.rb index 8134b3e..12b32e1 100644 --- a/lib/openlayer/models/project_list_response.rb +++ b/lib/openlayer/models/project_list_response.rb @@ -27,12 +27,37 @@ class Item < Openlayer::Internal::Type::BaseModel enum: -> { Openlayer::Models::ProjectListResponse::Item::TaskType }, api_name: :taskType + # @!attribute data_retention_days + # Number of days to retain monitoring data for this project. Null means data is + # retained indefinitely. + # + # @return [Integer, nil] + optional :data_retention_days, Integer, api_name: :dataRetentionDays, nil?: true + # @!attribute description # The project description. # # @return [String, nil] optional :description, String, nil?: true + # @!attribute model_developer + # Who developed the model used in this project. + # + # @return [String, nil] + optional :model_developer, String, api_name: :modelDeveloper, nil?: true + + # @!attribute model_types + # The kinds of model used in this project. + # + # @return [Array, nil] + optional :model_types, Openlayer::Internal::Type::ArrayOf[String], api_name: :modelTypes, nil?: true + + # @!attribute purpose + # What the system in this project is intended to do. + # + # @return [String, nil] + optional :purpose, String, nil?: true + response_only do # @!attribute id # The project id. @@ -115,7 +140,10 @@ class Item < Openlayer::Internal::Type::BaseModel nil?: true end - # @!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) + # @!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) + # Some parameter documentations has been truncated, see + # {Openlayer::Models::ProjectListResponse::Item} for more details. + # # @param id [String] The project id. # # @param creator_id [String, nil] The project creator id. @@ -144,9 +172,17 @@ class Item < Openlayer::Internal::Type::BaseModel # # @param workspace_id [String, nil] The workspace id. # + # @param data_retention_days [Integer, nil] Number of days to retain monitoring data for this project. Null means data is re + # # @param description [String, nil] The project description. # # @param git_repo [Openlayer::Models::ProjectListResponse::Item::GitRepo, nil] + # + # @param model_developer [String, nil] Who developed the model used in this project. + # + # @param model_types [Array, nil] The kinds of model used in this project. + # + # @param purpose [String, nil] What the system in this project is intended to do. # @see Openlayer::Models::ProjectListResponse::Item#links class Links < Openlayer::Internal::Type::BaseModel diff --git a/lib/openlayer/models/project_update_params.rb b/lib/openlayer/models/project_update_params.rb new file mode 100644 index 0000000..10fee64 --- /dev/null +++ b/lib/openlayer/models/project_update_params.rb @@ -0,0 +1,73 @@ +# frozen_string_literal: true + +module Openlayer + module Models + # @see Openlayer::Resources::Projects#update + class ProjectUpdateParams < Openlayer::Internal::Type::BaseModel + extend Openlayer::Internal::Type::RequestParameters::Converter + include Openlayer::Internal::Type::RequestParameters + + # @!attribute project_id + # + # @return [String] + required :project_id, String + + # @!attribute data_retention_days + # Number of days to retain monitoring data for this project. Null means data is + # retained indefinitely. + # + # @return [Integer, nil] + optional :data_retention_days, Integer, api_name: :dataRetentionDays, nil?: true + + # @!attribute description + # The project description. + # + # @return [String, nil] + optional :description, String, nil?: true + + # @!attribute model_developer + # Who developed the model used in this project. + # + # @return [String, nil] + optional :model_developer, String, api_name: :modelDeveloper, nil?: true + + # @!attribute model_types + # The kinds of model used in this project. + # + # @return [Array, nil] + optional :model_types, Openlayer::Internal::Type::ArrayOf[String], api_name: :modelTypes, nil?: true + + # @!attribute name + # The project name. + # + # @return [String, nil] + optional :name, String + + # @!attribute purpose + # What the system in this project is intended to do. + # + # @return [String, nil] + optional :purpose, String, nil?: true + + # @!method initialize(project_id:, data_retention_days: nil, description: nil, model_developer: nil, model_types: nil, name: nil, purpose: nil, request_options: {}) + # Some parameter documentations has been truncated, see + # {Openlayer::Models::ProjectUpdateParams} for more details. + # + # @param project_id [String] + # + # @param data_retention_days [Integer, nil] Number of days to retain monitoring data for this project. Null means data is re + # + # @param description [String, nil] The project description. + # + # @param model_developer [String, nil] Who developed the model used in this project. + # + # @param model_types [Array, nil] The kinds of model used in this project. + # + # @param name [String] The project name. + # + # @param purpose [String, nil] What the system in this project is intended to do. + # + # @param request_options [Openlayer::RequestOptions, Hash{Symbol=>Object}] + end + end +end diff --git a/lib/openlayer/models/project_update_response.rb b/lib/openlayer/models/project_update_response.rb new file mode 100644 index 0000000..3364c74 --- /dev/null +++ b/lib/openlayer/models/project_update_response.rb @@ -0,0 +1,298 @@ +# frozen_string_literal: true + +module Openlayer + module Models + # @see Openlayer::Resources::Projects#update + class ProjectUpdateResponse < Openlayer::Internal::Type::BaseModel + # @!attribute name + # The project name. + # + # @return [String] + required :name, String + + # @!attribute task_type + # The task type of the project. + # + # @return [Symbol, Openlayer::Models::ProjectUpdateResponse::TaskType] + required :task_type, enum: -> { Openlayer::Models::ProjectUpdateResponse::TaskType }, api_name: :taskType + + # @!attribute data_retention_days + # Number of days to retain monitoring data for this project. Null means data is + # retained indefinitely. + # + # @return [Integer, nil] + optional :data_retention_days, Integer, api_name: :dataRetentionDays, nil?: true + + # @!attribute description + # The project description. + # + # @return [String, nil] + optional :description, String, nil?: true + + # @!attribute model_developer + # Who developed the model used in this project. + # + # @return [String, nil] + optional :model_developer, String, api_name: :modelDeveloper, nil?: true + + # @!attribute model_types + # The kinds of model used in this project. + # + # @return [Array, nil] + optional :model_types, Openlayer::Internal::Type::ArrayOf[String], api_name: :modelTypes, nil?: true + + # @!attribute purpose + # What the system in this project is intended to do. + # + # @return [String, nil] + optional :purpose, String, nil?: true + + response_only do + # @!attribute id + # The project id. + # + # @return [String] + required :id, String + + # @!attribute creator_id + # The project creator id. + # + # @return [String, nil] + required :creator_id, String, api_name: :creatorId, nil?: true + + # @!attribute date_created + # The project creation date. + # + # @return [Time] + required :date_created, Time, api_name: :dateCreated + + # @!attribute date_updated + # The project last updated date. + # + # @return [Time] + required :date_updated, Time, api_name: :dateUpdated + + # @!attribute development_goal_count + # The number of tests in the development mode of the project. + # + # @return [Integer] + required :development_goal_count, Integer, api_name: :developmentGoalCount + + # @!attribute goal_count + # The total number of tests in the project. + # + # @return [Integer] + required :goal_count, Integer, api_name: :goalCount + + # @!attribute inference_pipeline_count + # The number of inference pipelines in the project. + # + # @return [Integer] + required :inference_pipeline_count, Integer, api_name: :inferencePipelineCount + + # @!attribute links + # Links to the project. + # + # @return [Openlayer::Models::ProjectUpdateResponse::Links] + required :links, -> { Openlayer::Models::ProjectUpdateResponse::Links } + + # @!attribute monitoring_goal_count + # The number of tests in the monitoring mode of the project. + # + # @return [Integer] + required :monitoring_goal_count, Integer, api_name: :monitoringGoalCount + + # @!attribute source + # The source of the project. + # + # @return [Symbol, Openlayer::Models::ProjectUpdateResponse::Source, nil] + required :source, enum: -> { Openlayer::Models::ProjectUpdateResponse::Source }, nil?: true + + # @!attribute version_count + # The number of versions (commits) in the project. + # + # @return [Integer] + required :version_count, Integer, api_name: :versionCount + + # @!attribute workspace_id + # The workspace id. + # + # @return [String, nil] + required :workspace_id, String, api_name: :workspaceId, nil?: true + + # @!attribute git_repo + # + # @return [Openlayer::Models::ProjectUpdateResponse::GitRepo, nil] + optional :git_repo, + -> { Openlayer::Models::ProjectUpdateResponse::GitRepo }, + api_name: :gitRepo, + nil?: true + end + + # @!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) + # Some parameter documentations has been truncated, see + # {Openlayer::Models::ProjectUpdateResponse} for more details. + # + # @param id [String] The project id. + # + # @param creator_id [String, nil] The project creator id. + # + # @param date_created [Time] The project creation date. + # + # @param date_updated [Time] The project last updated date. + # + # @param development_goal_count [Integer] The number of tests in the development mode of the project. + # + # @param goal_count [Integer] The total number of tests in the project. + # + # @param inference_pipeline_count [Integer] The number of inference pipelines in the project. + # + # @param links [Openlayer::Models::ProjectUpdateResponse::Links] Links to the project. + # + # @param monitoring_goal_count [Integer] The number of tests in the monitoring mode of the project. + # + # @param name [String] The project name. + # + # @param source [Symbol, Openlayer::Models::ProjectUpdateResponse::Source, nil] The source of the project. + # + # @param task_type [Symbol, Openlayer::Models::ProjectUpdateResponse::TaskType] The task type of the project. + # + # @param version_count [Integer] The number of versions (commits) in the project. + # + # @param workspace_id [String, nil] The workspace id. + # + # @param data_retention_days [Integer, nil] Number of days to retain monitoring data for this project. Null means data is re + # + # @param description [String, nil] The project description. + # + # @param git_repo [Openlayer::Models::ProjectUpdateResponse::GitRepo, nil] + # + # @param model_developer [String, nil] Who developed the model used in this project. + # + # @param model_types [Array, nil] The kinds of model used in this project. + # + # @param purpose [String, nil] What the system in this project is intended to do. + + # @see Openlayer::Models::ProjectUpdateResponse#links + class Links < Openlayer::Internal::Type::BaseModel + # @!attribute app + # + # @return [String] + required :app, String + + # @!method initialize(app:) + # Links to the project. + # + # @param app [String] + end + + # The source of the project. + # + # @see Openlayer::Models::ProjectUpdateResponse#source + module Source + extend Openlayer::Internal::Type::Enum + + WEB = :web + API = :api + NULL = :null + + # @!method self.values + # @return [Array] + end + + # The task type of the project. + # + # @see Openlayer::Models::ProjectUpdateResponse#task_type + module TaskType + extend Openlayer::Internal::Type::Enum + + LLM_BASE = :"llm-base" + TABULAR_CLASSIFICATION = :"tabular-classification" + TABULAR_REGRESSION = :"tabular-regression" + TEXT_CLASSIFICATION = :"text-classification" + + # @!method self.values + # @return [Array] + end + + # @see Openlayer::Models::ProjectUpdateResponse#git_repo + class GitRepo < Openlayer::Internal::Type::BaseModel + # @!attribute git_account_id + # + # @return [String] + required :git_account_id, String, api_name: :gitAccountId + + # @!attribute git_id + # + # @return [Integer] + required :git_id, Integer, api_name: :gitId + + # @!attribute branch + # + # @return [String, nil] + optional :branch, String + + # @!attribute root_dir + # + # @return [String, nil] + optional :root_dir, String, api_name: :rootDir + + response_only do + # @!attribute id + # + # @return [String] + required :id, String + + # @!attribute date_connected + # + # @return [Time] + required :date_connected, Time, api_name: :dateConnected + + # @!attribute date_updated + # + # @return [Time] + required :date_updated, Time, api_name: :dateUpdated + + # @!attribute name + # + # @return [String] + required :name, String + + # @!attribute private + # + # @return [Boolean] + required :private, Openlayer::Internal::Type::Boolean + + # @!attribute project_id + # + # @return [String] + required :project_id, String, api_name: :projectId + + # @!attribute slug + # + # @return [String] + required :slug, String + + # @!attribute url + # + # @return [String] + required :url, String + end + + # @!method initialize(id:, date_connected:, date_updated:, git_account_id:, git_id:, name:, private:, project_id:, slug:, url:, branch: nil, root_dir: nil) + # @param id [String] + # @param date_connected [Time] + # @param date_updated [Time] + # @param git_account_id [String] + # @param git_id [Integer] + # @param name [String] + # @param private [Boolean] + # @param project_id [String] + # @param slug [String] + # @param url [String] + # @param branch [String] + # @param root_dir [String] + end + end + end +end diff --git a/lib/openlayer/models/projects/inference_pipeline_create_params.rb b/lib/openlayer/models/projects/inference_pipeline_create_params.rb index 38e44af..34dd1c5 100644 --- a/lib/openlayer/models/projects/inference_pipeline_create_params.rb +++ b/lib/openlayer/models/projects/inference_pipeline_create_params.rb @@ -671,18 +671,55 @@ class Project < Openlayer::Internal::Type::BaseModel enum: -> { Openlayer::Projects::InferencePipelineCreateParams::Project::TaskType }, api_name: :taskType + # @!attribute data_retention_days + # Number of days to retain monitoring data for this project. Null means data is + # retained indefinitely. + # + # @return [Integer, nil] + optional :data_retention_days, Integer, api_name: :dataRetentionDays, nil?: true + # @!attribute description # The project description. # # @return [String, nil] optional :description, String, nil?: true - # @!method initialize(name:, task_type:, description: nil) + # @!attribute model_developer + # Who developed the model used in this project. + # + # @return [String, nil] + optional :model_developer, String, api_name: :modelDeveloper, nil?: true + + # @!attribute model_types + # The kinds of model used in this project. + # + # @return [Array, nil] + optional :model_types, Openlayer::Internal::Type::ArrayOf[String], api_name: :modelTypes, nil?: true + + # @!attribute purpose + # What the system in this project is intended to do. + # + # @return [String, nil] + optional :purpose, String, nil?: true + + # @!method initialize(name:, task_type:, data_retention_days: nil, description: nil, model_developer: nil, model_types: nil, purpose: nil) + # Some parameter documentations has been truncated, see + # {Openlayer::Models::Projects::InferencePipelineCreateParams::Project} for more + # details. + # # @param name [String] The project name. # # @param task_type [Symbol, Openlayer::Models::Projects::InferencePipelineCreateParams::Project::TaskType] The task type of the project. # + # @param data_retention_days [Integer, nil] Number of days to retain monitoring data for this project. Null means data is re + # # @param description [String, nil] The project description. + # + # @param model_developer [String, nil] Who developed the model used in this project. + # + # @param model_types [Array, nil] The kinds of model used in this project. + # + # @param purpose [String, nil] What the system in this project is intended to do. # @see Openlayer::Models::Projects::InferencePipelineCreateParams::Project#links class Links < Openlayer::Internal::Type::BaseModel diff --git a/lib/openlayer/models/projects/inference_pipeline_create_response.rb b/lib/openlayer/models/projects/inference_pipeline_create_response.rb index 682f09f..db63d5d 100644 --- a/lib/openlayer/models/projects/inference_pipeline_create_response.rb +++ b/lib/openlayer/models/projects/inference_pipeline_create_response.rb @@ -703,12 +703,37 @@ class Project < Openlayer::Internal::Type::BaseModel enum: -> { Openlayer::Models::Projects::InferencePipelineCreateResponse::Project::TaskType }, api_name: :taskType + # @!attribute data_retention_days + # Number of days to retain monitoring data for this project. Null means data is + # retained indefinitely. + # + # @return [Integer, nil] + optional :data_retention_days, Integer, api_name: :dataRetentionDays, nil?: true + # @!attribute description # The project description. # # @return [String, nil] optional :description, String, nil?: true + # @!attribute model_developer + # Who developed the model used in this project. + # + # @return [String, nil] + optional :model_developer, String, api_name: :modelDeveloper, nil?: true + + # @!attribute model_types + # The kinds of model used in this project. + # + # @return [Array, nil] + optional :model_types, Openlayer::Internal::Type::ArrayOf[String], api_name: :modelTypes, nil?: true + + # @!attribute purpose + # What the system in this project is intended to do. + # + # @return [String, nil] + optional :purpose, String, nil?: true + response_only do # @!attribute id # The project id. @@ -793,7 +818,11 @@ class Project < Openlayer::Internal::Type::BaseModel nil?: true end - # @!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) + # @!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) + # Some parameter documentations has been truncated, see + # {Openlayer::Models::Projects::InferencePipelineCreateResponse::Project} for more + # details. + # # @param id [String] The project id. # # @param creator_id [String, nil] The project creator id. @@ -822,9 +851,17 @@ class Project < Openlayer::Internal::Type::BaseModel # # @param workspace_id [String, nil] The workspace id. # + # @param data_retention_days [Integer, nil] Number of days to retain monitoring data for this project. Null means data is re + # # @param description [String, nil] The project description. # # @param git_repo [Openlayer::Models::Projects::InferencePipelineCreateResponse::Project::GitRepo, nil] + # + # @param model_developer [String, nil] Who developed the model used in this project. + # + # @param model_types [Array, nil] The kinds of model used in this project. + # + # @param purpose [String, nil] What the system in this project is intended to do. # @see Openlayer::Models::Projects::InferencePipelineCreateResponse::Project#links class Links < Openlayer::Internal::Type::BaseModel diff --git a/lib/openlayer/models/projects/inference_pipeline_list_response.rb b/lib/openlayer/models/projects/inference_pipeline_list_response.rb index 79bf723..cdda199 100644 --- a/lib/openlayer/models/projects/inference_pipeline_list_response.rb +++ b/lib/openlayer/models/projects/inference_pipeline_list_response.rb @@ -713,12 +713,40 @@ class Project < Openlayer::Internal::Type::BaseModel enum: -> { Openlayer::Models::Projects::InferencePipelineListResponse::Item::Project::TaskType }, api_name: :taskType + # @!attribute data_retention_days + # Number of days to retain monitoring data for this project. Null means data is + # retained indefinitely. + # + # @return [Integer, nil] + optional :data_retention_days, Integer, api_name: :dataRetentionDays, nil?: true + # @!attribute description # The project description. # # @return [String, nil] optional :description, String, nil?: true + # @!attribute model_developer + # Who developed the model used in this project. + # + # @return [String, nil] + optional :model_developer, String, api_name: :modelDeveloper, nil?: true + + # @!attribute model_types + # The kinds of model used in this project. + # + # @return [Array, nil] + optional :model_types, + Openlayer::Internal::Type::ArrayOf[String], + api_name: :modelTypes, + nil?: true + + # @!attribute purpose + # What the system in this project is intended to do. + # + # @return [String, nil] + optional :purpose, String, nil?: true + response_only do # @!attribute id # The project id. @@ -803,7 +831,11 @@ class Project < Openlayer::Internal::Type::BaseModel nil?: true end - # @!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) + # @!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) + # Some parameter documentations has been truncated, see + # {Openlayer::Models::Projects::InferencePipelineListResponse::Item::Project} for + # more details. + # # @param id [String] The project id. # # @param creator_id [String, nil] The project creator id. @@ -832,9 +864,17 @@ class Project < Openlayer::Internal::Type::BaseModel # # @param workspace_id [String, nil] The workspace id. # + # @param data_retention_days [Integer, nil] Number of days to retain monitoring data for this project. Null means data is re + # # @param description [String, nil] The project description. # # @param git_repo [Openlayer::Models::Projects::InferencePipelineListResponse::Item::Project::GitRepo, nil] + # + # @param model_developer [String, nil] Who developed the model used in this project. + # + # @param model_types [Array, nil] The kinds of model used in this project. + # + # @param purpose [String, nil] What the system in this project is intended to do. # @see Openlayer::Models::Projects::InferencePipelineListResponse::Item::Project#links class Links < Openlayer::Internal::Type::BaseModel diff --git a/lib/openlayer/resources/projects.rb b/lib/openlayer/resources/projects.rb index 5e895bc..365d62d 100644 --- a/lib/openlayer/resources/projects.rb +++ b/lib/openlayer/resources/projects.rb @@ -12,16 +12,27 @@ class Projects # @return [Openlayer::Resources::Projects::Tests] attr_reader :tests + # Some parameter documentations has been truncated, see + # {Openlayer::Models::ProjectCreateParams} for more details. + # # Create a project in your workspace. # - # @overload create(name:, task_type:, description: nil, request_options: {}) + # @overload create(name:, task_type:, data_retention_days: nil, description: nil, model_developer: nil, model_types: nil, purpose: nil, request_options: {}) # # @param name [String] The project name. # # @param task_type [Symbol, Openlayer::Models::ProjectCreateParams::TaskType] The task type of the project. # + # @param data_retention_days [Integer, nil] Number of days to retain monitoring data for this project. Null means data is re + # # @param description [String, nil] The project description. # + # @param model_developer [String, nil] Who developed the model used in this project. + # + # @param model_types [Array, nil] The kinds of model used in this project. + # + # @param purpose [String, nil] What the system in this project is intended to do. + # # @param request_options [Openlayer::RequestOptions, Hash{Symbol=>Object}, nil] # # @return [Openlayer::Models::ProjectCreateResponse] @@ -38,6 +49,43 @@ def create(params) ) end + # Some parameter documentations has been truncated, see + # {Openlayer::Models::ProjectUpdateParams} for more details. + # + # Update a project's metadata. + # + # @overload update(project_id, data_retention_days: nil, description: nil, model_developer: nil, model_types: nil, name: nil, purpose: nil, request_options: {}) + # + # @param project_id [String] The project id. + # + # @param data_retention_days [Integer, nil] Number of days to retain monitoring data for this project. Null means data is re + # + # @param description [String, nil] The project description. + # + # @param model_developer [String, nil] Who developed the model used in this project. + # + # @param model_types [Array, nil] The kinds of model used in this project. + # + # @param name [String] The project name. + # + # @param purpose [String, nil] What the system in this project is intended to do. + # + # @param request_options [Openlayer::RequestOptions, Hash{Symbol=>Object}, nil] + # + # @return [Openlayer::Models::ProjectUpdateResponse] + # + # @see Openlayer::Models::ProjectUpdateParams + def update(project_id, params = {}) + parsed, options = Openlayer::ProjectUpdateParams.dump_request(params) + @client.request( + method: :patch, + path: ["projects/%1$s", project_id], + body: parsed, + model: Openlayer::Models::ProjectUpdateResponse, + options: options + ) + end + # List your workspace's projects. # # @overload list(name: nil, page: nil, per_page: nil, task_type: nil, request_options: {}) diff --git a/lib/openlayer/version.rb b/lib/openlayer/version.rb index 2c8f69f..597224b 100644 --- a/lib/openlayer/version.rb +++ b/lib/openlayer/version.rb @@ -1,5 +1,5 @@ # frozen_string_literal: true module Openlayer - VERSION = "0.14.1" + VERSION = "0.15.0" end diff --git a/rbi/openlayer/models.rbi b/rbi/openlayer/models.rbi index 594eeb0..f575682 100644 --- a/rbi/openlayer/models.rbi +++ b/rbi/openlayer/models.rbi @@ -30,6 +30,8 @@ module Openlayer Projects = Openlayer::Models::Projects + ProjectUpdateParams = Openlayer::Models::ProjectUpdateParams + Storage = Openlayer::Models::Storage TestEvaluateParams = Openlayer::Models::TestEvaluateParams diff --git a/rbi/openlayer/models/inference_pipeline_retrieve_response.rbi b/rbi/openlayer/models/inference_pipeline_retrieve_response.rbi index 57ace29..5932ac7 100644 --- a/rbi/openlayer/models/inference_pipeline_retrieve_response.rbi +++ b/rbi/openlayer/models/inference_pipeline_retrieve_response.rbi @@ -1275,10 +1275,27 @@ module Openlayer end attr_accessor :task_type + # Number of days to retain monitoring data for this project. Null means data is + # retained indefinitely. + sig { returns(T.nilable(Integer)) } + attr_accessor :data_retention_days + # The project description. sig { returns(T.nilable(String)) } attr_accessor :description + # Who developed the model used in this project. + sig { returns(T.nilable(String)) } + attr_accessor :model_developer + + # The kinds of model used in this project. + sig { returns(T.nilable(T::Array[String])) } + attr_accessor :model_types + + # What the system in this project is intended to do. + sig { returns(T.nilable(String)) } + attr_accessor :purpose + # The project id. sig { returns(String) } attr_accessor :id @@ -1385,11 +1402,15 @@ module Openlayer Openlayer::Models::InferencePipelineRetrieveResponse::Project::TaskType::OrSymbol, version_count: Integer, workspace_id: T.nilable(String), + data_retention_days: T.nilable(Integer), description: T.nilable(String), git_repo: T.nilable( Openlayer::Models::InferencePipelineRetrieveResponse::Project::GitRepo::OrHash - ) + ), + model_developer: T.nilable(String), + model_types: T.nilable(T::Array[String]), + purpose: T.nilable(String) ).returns(T.attached_class) end def self.new( @@ -1421,9 +1442,18 @@ module Openlayer version_count:, # The workspace id. workspace_id:, + # Number of days to retain monitoring data for this project. Null means data is + # retained indefinitely. + data_retention_days: nil, # The project description. description: nil, - git_repo: nil + git_repo: nil, + # Who developed the model used in this project. + model_developer: nil, + # The kinds of model used in this project. + model_types: nil, + # What the system in this project is intended to do. + purpose: nil ) end @@ -1449,11 +1479,15 @@ module Openlayer Openlayer::Models::InferencePipelineRetrieveResponse::Project::TaskType::TaggedSymbol, version_count: Integer, workspace_id: T.nilable(String), + data_retention_days: T.nilable(Integer), description: T.nilable(String), git_repo: T.nilable( Openlayer::Models::InferencePipelineRetrieveResponse::Project::GitRepo - ) + ), + model_developer: T.nilable(String), + model_types: T.nilable(T::Array[String]), + purpose: T.nilable(String) } ) end diff --git a/rbi/openlayer/models/inference_pipeline_update_response.rbi b/rbi/openlayer/models/inference_pipeline_update_response.rbi index 3427556..7fb2ff8 100644 --- a/rbi/openlayer/models/inference_pipeline_update_response.rbi +++ b/rbi/openlayer/models/inference_pipeline_update_response.rbi @@ -1271,10 +1271,27 @@ module Openlayer end attr_accessor :task_type + # Number of days to retain monitoring data for this project. Null means data is + # retained indefinitely. + sig { returns(T.nilable(Integer)) } + attr_accessor :data_retention_days + # The project description. sig { returns(T.nilable(String)) } attr_accessor :description + # Who developed the model used in this project. + sig { returns(T.nilable(String)) } + attr_accessor :model_developer + + # The kinds of model used in this project. + sig { returns(T.nilable(T::Array[String])) } + attr_accessor :model_types + + # What the system in this project is intended to do. + sig { returns(T.nilable(String)) } + attr_accessor :purpose + # The project id. sig { returns(String) } attr_accessor :id @@ -1381,11 +1398,15 @@ module Openlayer Openlayer::Models::InferencePipelineUpdateResponse::Project::TaskType::OrSymbol, version_count: Integer, workspace_id: T.nilable(String), + data_retention_days: T.nilable(Integer), description: T.nilable(String), git_repo: T.nilable( Openlayer::Models::InferencePipelineUpdateResponse::Project::GitRepo::OrHash - ) + ), + model_developer: T.nilable(String), + model_types: T.nilable(T::Array[String]), + purpose: T.nilable(String) ).returns(T.attached_class) end def self.new( @@ -1417,9 +1438,18 @@ module Openlayer version_count:, # The workspace id. workspace_id:, + # Number of days to retain monitoring data for this project. Null means data is + # retained indefinitely. + data_retention_days: nil, # The project description. description: nil, - git_repo: nil + git_repo: nil, + # Who developed the model used in this project. + model_developer: nil, + # The kinds of model used in this project. + model_types: nil, + # What the system in this project is intended to do. + purpose: nil ) end @@ -1445,11 +1475,15 @@ module Openlayer Openlayer::Models::InferencePipelineUpdateResponse::Project::TaskType::TaggedSymbol, version_count: Integer, workspace_id: T.nilable(String), + data_retention_days: T.nilable(Integer), description: T.nilable(String), git_repo: T.nilable( Openlayer::Models::InferencePipelineUpdateResponse::Project::GitRepo - ) + ), + model_developer: T.nilable(String), + model_types: T.nilable(T::Array[String]), + purpose: T.nilable(String) } ) end diff --git a/rbi/openlayer/models/project_create_params.rbi b/rbi/openlayer/models/project_create_params.rbi index bad8070..20ac986 100644 --- a/rbi/openlayer/models/project_create_params.rbi +++ b/rbi/openlayer/models/project_create_params.rbi @@ -19,15 +19,36 @@ module Openlayer sig { returns(Openlayer::ProjectCreateParams::TaskType::OrSymbol) } attr_accessor :task_type + # Number of days to retain monitoring data for this project. Null means data is + # retained indefinitely. + sig { returns(T.nilable(Integer)) } + attr_accessor :data_retention_days + # The project description. sig { returns(T.nilable(String)) } attr_accessor :description + # Who developed the model used in this project. + sig { returns(T.nilable(String)) } + attr_accessor :model_developer + + # The kinds of model used in this project. + sig { returns(T.nilable(T::Array[String])) } + attr_accessor :model_types + + # What the system in this project is intended to do. + sig { returns(T.nilable(String)) } + attr_accessor :purpose + sig do params( name: String, task_type: Openlayer::ProjectCreateParams::TaskType::OrSymbol, + data_retention_days: T.nilable(Integer), description: T.nilable(String), + model_developer: T.nilable(String), + model_types: T.nilable(T::Array[String]), + purpose: T.nilable(String), request_options: Openlayer::RequestOptions::OrHash ).returns(T.attached_class) end @@ -36,8 +57,17 @@ module Openlayer name:, # The task type of the project. task_type:, + # Number of days to retain monitoring data for this project. Null means data is + # retained indefinitely. + data_retention_days: nil, # The project description. description: nil, + # Who developed the model used in this project. + model_developer: nil, + # The kinds of model used in this project. + model_types: nil, + # What the system in this project is intended to do. + purpose: nil, request_options: {} ) end @@ -47,7 +77,11 @@ module Openlayer { name: String, task_type: Openlayer::ProjectCreateParams::TaskType::OrSymbol, + data_retention_days: T.nilable(Integer), description: T.nilable(String), + model_developer: T.nilable(String), + model_types: T.nilable(T::Array[String]), + purpose: T.nilable(String), request_options: Openlayer::RequestOptions } ) diff --git a/rbi/openlayer/models/project_create_response.rbi b/rbi/openlayer/models/project_create_response.rbi index a91ad5a..592a5ad 100644 --- a/rbi/openlayer/models/project_create_response.rbi +++ b/rbi/openlayer/models/project_create_response.rbi @@ -23,10 +23,27 @@ module Openlayer end attr_accessor :task_type + # Number of days to retain monitoring data for this project. Null means data is + # retained indefinitely. + sig { returns(T.nilable(Integer)) } + attr_accessor :data_retention_days + # The project description. sig { returns(T.nilable(String)) } attr_accessor :description + # Who developed the model used in this project. + sig { returns(T.nilable(String)) } + attr_accessor :model_developer + + # The kinds of model used in this project. + sig { returns(T.nilable(T::Array[String])) } + attr_accessor :model_types + + # What the system in this project is intended to do. + sig { returns(T.nilable(String)) } + attr_accessor :purpose + # The project id. sig { returns(String) } attr_accessor :id @@ -121,9 +138,15 @@ module Openlayer Openlayer::Models::ProjectCreateResponse::TaskType::OrSymbol, version_count: Integer, workspace_id: T.nilable(String), + data_retention_days: T.nilable(Integer), description: T.nilable(String), git_repo: - T.nilable(Openlayer::Models::ProjectCreateResponse::GitRepo::OrHash) + T.nilable( + Openlayer::Models::ProjectCreateResponse::GitRepo::OrHash + ), + model_developer: T.nilable(String), + model_types: T.nilable(T::Array[String]), + purpose: T.nilable(String) ).returns(T.attached_class) end def self.new( @@ -155,9 +178,18 @@ module Openlayer version_count:, # The workspace id. workspace_id:, + # Number of days to retain monitoring data for this project. Null means data is + # retained indefinitely. + data_retention_days: nil, # The project description. description: nil, - git_repo: nil + git_repo: nil, + # Who developed the model used in this project. + model_developer: nil, + # The kinds of model used in this project. + model_types: nil, + # What the system in this project is intended to do. + purpose: nil ) end @@ -182,9 +214,13 @@ module Openlayer Openlayer::Models::ProjectCreateResponse::TaskType::TaggedSymbol, version_count: Integer, workspace_id: T.nilable(String), + data_retention_days: T.nilable(Integer), description: T.nilable(String), git_repo: - T.nilable(Openlayer::Models::ProjectCreateResponse::GitRepo) + T.nilable(Openlayer::Models::ProjectCreateResponse::GitRepo), + model_developer: T.nilable(String), + model_types: T.nilable(T::Array[String]), + purpose: T.nilable(String) } ) end diff --git a/rbi/openlayer/models/project_list_response.rbi b/rbi/openlayer/models/project_list_response.rbi index dc1b146..6cf2ea3 100644 --- a/rbi/openlayer/models/project_list_response.rbi +++ b/rbi/openlayer/models/project_list_response.rbi @@ -51,10 +51,27 @@ module Openlayer end attr_accessor :task_type + # Number of days to retain monitoring data for this project. Null means data is + # retained indefinitely. + sig { returns(T.nilable(Integer)) } + attr_accessor :data_retention_days + # The project description. sig { returns(T.nilable(String)) } attr_accessor :description + # Who developed the model used in this project. + sig { returns(T.nilable(String)) } + attr_accessor :model_developer + + # The kinds of model used in this project. + sig { returns(T.nilable(T::Array[String])) } + attr_accessor :model_types + + # What the system in this project is intended to do. + sig { returns(T.nilable(String)) } + attr_accessor :purpose + # The project id. sig { returns(String) } attr_accessor :id @@ -153,11 +170,15 @@ module Openlayer Openlayer::Models::ProjectListResponse::Item::TaskType::OrSymbol, version_count: Integer, workspace_id: T.nilable(String), + data_retention_days: T.nilable(Integer), description: T.nilable(String), git_repo: T.nilable( Openlayer::Models::ProjectListResponse::Item::GitRepo::OrHash - ) + ), + model_developer: T.nilable(String), + model_types: T.nilable(T::Array[String]), + purpose: T.nilable(String) ).returns(T.attached_class) end def self.new( @@ -189,9 +210,18 @@ module Openlayer version_count:, # The workspace id. workspace_id:, + # Number of days to retain monitoring data for this project. Null means data is + # retained indefinitely. + data_retention_days: nil, # The project description. description: nil, - git_repo: nil + git_repo: nil, + # Who developed the model used in this project. + model_developer: nil, + # The kinds of model used in this project. + model_types: nil, + # What the system in this project is intended to do. + purpose: nil ) end @@ -216,9 +246,15 @@ module Openlayer Openlayer::Models::ProjectListResponse::Item::TaskType::TaggedSymbol, version_count: Integer, workspace_id: T.nilable(String), + data_retention_days: T.nilable(Integer), description: T.nilable(String), git_repo: - T.nilable(Openlayer::Models::ProjectListResponse::Item::GitRepo) + T.nilable( + Openlayer::Models::ProjectListResponse::Item::GitRepo + ), + model_developer: T.nilable(String), + model_types: T.nilable(T::Array[String]), + purpose: T.nilable(String) } ) end diff --git a/rbi/openlayer/models/project_update_params.rbi b/rbi/openlayer/models/project_update_params.rbi new file mode 100644 index 0000000..719bb5c --- /dev/null +++ b/rbi/openlayer/models/project_update_params.rbi @@ -0,0 +1,94 @@ +# typed: strong + +module Openlayer + module Models + class ProjectUpdateParams < Openlayer::Internal::Type::BaseModel + extend Openlayer::Internal::Type::RequestParameters::Converter + include Openlayer::Internal::Type::RequestParameters + + OrHash = + T.type_alias do + T.any(Openlayer::ProjectUpdateParams, Openlayer::Internal::AnyHash) + end + + sig { returns(String) } + attr_accessor :project_id + + # Number of days to retain monitoring data for this project. Null means data is + # retained indefinitely. + sig { returns(T.nilable(Integer)) } + attr_accessor :data_retention_days + + # The project description. + sig { returns(T.nilable(String)) } + attr_accessor :description + + # Who developed the model used in this project. + sig { returns(T.nilable(String)) } + attr_accessor :model_developer + + # The kinds of model used in this project. + sig { returns(T.nilable(T::Array[String])) } + attr_accessor :model_types + + # The project name. + sig { returns(T.nilable(String)) } + attr_reader :name + + sig { params(name: String).void } + attr_writer :name + + # What the system in this project is intended to do. + sig { returns(T.nilable(String)) } + attr_accessor :purpose + + sig do + params( + project_id: String, + data_retention_days: T.nilable(Integer), + description: T.nilable(String), + model_developer: T.nilable(String), + model_types: T.nilable(T::Array[String]), + name: String, + purpose: T.nilable(String), + request_options: Openlayer::RequestOptions::OrHash + ).returns(T.attached_class) + end + def self.new( + project_id:, + # Number of days to retain monitoring data for this project. Null means data is + # retained indefinitely. + data_retention_days: nil, + # The project description. + description: nil, + # Who developed the model used in this project. + model_developer: nil, + # The kinds of model used in this project. + model_types: nil, + # The project name. + name: nil, + # What the system in this project is intended to do. + purpose: nil, + request_options: {} + ) + end + + sig do + override.returns( + { + project_id: String, + data_retention_days: T.nilable(Integer), + description: T.nilable(String), + model_developer: T.nilable(String), + model_types: T.nilable(T::Array[String]), + name: String, + purpose: T.nilable(String), + request_options: Openlayer::RequestOptions + } + ) + end + def to_hash + end + end + end +end diff --git a/rbi/openlayer/models/project_update_response.rbi b/rbi/openlayer/models/project_update_response.rbi new file mode 100644 index 0000000..3d2fe49 --- /dev/null +++ b/rbi/openlayer/models/project_update_response.rbi @@ -0,0 +1,437 @@ +# typed: strong + +module Openlayer + module Models + class ProjectUpdateResponse < Openlayer::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Openlayer::Models::ProjectUpdateResponse, + Openlayer::Internal::AnyHash + ) + end + + # The project name. + sig { returns(String) } + attr_accessor :name + + # The task type of the project. + sig do + returns( + Openlayer::Models::ProjectUpdateResponse::TaskType::TaggedSymbol + ) + end + attr_accessor :task_type + + # Number of days to retain monitoring data for this project. Null means data is + # retained indefinitely. + sig { returns(T.nilable(Integer)) } + attr_accessor :data_retention_days + + # The project description. + sig { returns(T.nilable(String)) } + attr_accessor :description + + # Who developed the model used in this project. + sig { returns(T.nilable(String)) } + attr_accessor :model_developer + + # The kinds of model used in this project. + sig { returns(T.nilable(T::Array[String])) } + attr_accessor :model_types + + # What the system in this project is intended to do. + sig { returns(T.nilable(String)) } + attr_accessor :purpose + + # The project id. + sig { returns(String) } + attr_accessor :id + + # The project creator id. + sig { returns(T.nilable(String)) } + attr_accessor :creator_id + + # The project creation date. + sig { returns(Time) } + attr_accessor :date_created + + # The project last updated date. + sig { returns(Time) } + attr_accessor :date_updated + + # The number of tests in the development mode of the project. + sig { returns(Integer) } + attr_accessor :development_goal_count + + # The total number of tests in the project. + sig { returns(Integer) } + attr_accessor :goal_count + + # The number of inference pipelines in the project. + sig { returns(Integer) } + attr_accessor :inference_pipeline_count + + # Links to the project. + sig { returns(Openlayer::Models::ProjectUpdateResponse::Links) } + attr_reader :links + + sig do + params( + links: Openlayer::Models::ProjectUpdateResponse::Links::OrHash + ).void + end + attr_writer :links + + # The number of tests in the monitoring mode of the project. + sig { returns(Integer) } + attr_accessor :monitoring_goal_count + + # The source of the project. + sig do + returns( + T.nilable( + Openlayer::Models::ProjectUpdateResponse::Source::TaggedSymbol + ) + ) + end + attr_accessor :source + + # The number of versions (commits) in the project. + sig { returns(Integer) } + attr_accessor :version_count + + # The workspace id. + sig { returns(T.nilable(String)) } + attr_accessor :workspace_id + + sig do + returns(T.nilable(Openlayer::Models::ProjectUpdateResponse::GitRepo)) + end + attr_reader :git_repo + + sig do + params( + git_repo: + T.nilable(Openlayer::Models::ProjectUpdateResponse::GitRepo::OrHash) + ).void + end + attr_writer :git_repo + + sig do + params( + id: String, + creator_id: T.nilable(String), + date_created: Time, + date_updated: Time, + development_goal_count: Integer, + goal_count: Integer, + inference_pipeline_count: Integer, + links: Openlayer::Models::ProjectUpdateResponse::Links::OrHash, + monitoring_goal_count: Integer, + name: String, + source: + T.nilable( + Openlayer::Models::ProjectUpdateResponse::Source::OrSymbol + ), + task_type: + Openlayer::Models::ProjectUpdateResponse::TaskType::OrSymbol, + version_count: Integer, + workspace_id: T.nilable(String), + data_retention_days: T.nilable(Integer), + description: T.nilable(String), + git_repo: + T.nilable( + Openlayer::Models::ProjectUpdateResponse::GitRepo::OrHash + ), + model_developer: T.nilable(String), + model_types: T.nilable(T::Array[String]), + purpose: T.nilable(String) + ).returns(T.attached_class) + end + def self.new( + # The project id. + id:, + # The project creator id. + creator_id:, + # The project creation date. + date_created:, + # The project last updated date. + date_updated:, + # The number of tests in the development mode of the project. + development_goal_count:, + # The total number of tests in the project. + goal_count:, + # The number of inference pipelines in the project. + inference_pipeline_count:, + # Links to the project. + links:, + # The number of tests in the monitoring mode of the project. + monitoring_goal_count:, + # The project name. + name:, + # The source of the project. + source:, + # The task type of the project. + task_type:, + # The number of versions (commits) in the project. + version_count:, + # The workspace id. + workspace_id:, + # Number of days to retain monitoring data for this project. Null means data is + # retained indefinitely. + data_retention_days: nil, + # The project description. + description: nil, + git_repo: nil, + # Who developed the model used in this project. + model_developer: nil, + # The kinds of model used in this project. + model_types: nil, + # What the system in this project is intended to do. + purpose: nil + ) + end + + sig do + override.returns( + { + id: String, + creator_id: T.nilable(String), + date_created: Time, + date_updated: Time, + development_goal_count: Integer, + goal_count: Integer, + inference_pipeline_count: Integer, + links: Openlayer::Models::ProjectUpdateResponse::Links, + monitoring_goal_count: Integer, + name: String, + source: + T.nilable( + Openlayer::Models::ProjectUpdateResponse::Source::TaggedSymbol + ), + task_type: + Openlayer::Models::ProjectUpdateResponse::TaskType::TaggedSymbol, + version_count: Integer, + workspace_id: T.nilable(String), + data_retention_days: T.nilable(Integer), + description: T.nilable(String), + git_repo: + T.nilable(Openlayer::Models::ProjectUpdateResponse::GitRepo), + model_developer: T.nilable(String), + model_types: T.nilable(T::Array[String]), + purpose: T.nilable(String) + } + ) + end + def to_hash + end + + class Links < Openlayer::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Openlayer::Models::ProjectUpdateResponse::Links, + Openlayer::Internal::AnyHash + ) + end + + sig { returns(String) } + attr_accessor :app + + # Links to the project. + sig { params(app: String).returns(T.attached_class) } + def self.new(app:) + end + + sig { override.returns({ app: String }) } + def to_hash + end + end + + # The source of the project. + module Source + extend Openlayer::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Openlayer::Models::ProjectUpdateResponse::Source) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + WEB = + T.let( + :web, + Openlayer::Models::ProjectUpdateResponse::Source::TaggedSymbol + ) + API = + T.let( + :api, + Openlayer::Models::ProjectUpdateResponse::Source::TaggedSymbol + ) + NULL = + T.let( + :null, + Openlayer::Models::ProjectUpdateResponse::Source::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + Openlayer::Models::ProjectUpdateResponse::Source::TaggedSymbol + ] + ) + end + def self.values + end + end + + # The task type of the project. + module TaskType + extend Openlayer::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Openlayer::Models::ProjectUpdateResponse::TaskType) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + LLM_BASE = + T.let( + :"llm-base", + Openlayer::Models::ProjectUpdateResponse::TaskType::TaggedSymbol + ) + TABULAR_CLASSIFICATION = + T.let( + :"tabular-classification", + Openlayer::Models::ProjectUpdateResponse::TaskType::TaggedSymbol + ) + TABULAR_REGRESSION = + T.let( + :"tabular-regression", + Openlayer::Models::ProjectUpdateResponse::TaskType::TaggedSymbol + ) + TEXT_CLASSIFICATION = + T.let( + :"text-classification", + Openlayer::Models::ProjectUpdateResponse::TaskType::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + Openlayer::Models::ProjectUpdateResponse::TaskType::TaggedSymbol + ] + ) + end + def self.values + end + end + + class GitRepo < Openlayer::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Openlayer::Models::ProjectUpdateResponse::GitRepo, + Openlayer::Internal::AnyHash + ) + end + + sig { returns(String) } + attr_accessor :git_account_id + + sig { returns(Integer) } + attr_accessor :git_id + + sig { returns(T.nilable(String)) } + attr_reader :branch + + sig { params(branch: String).void } + attr_writer :branch + + sig { returns(T.nilable(String)) } + attr_reader :root_dir + + sig { params(root_dir: String).void } + attr_writer :root_dir + + sig { returns(String) } + attr_accessor :id + + sig { returns(Time) } + attr_accessor :date_connected + + sig { returns(Time) } + attr_accessor :date_updated + + sig { returns(String) } + attr_accessor :name + + sig { returns(T::Boolean) } + attr_accessor :private + + sig { returns(String) } + attr_accessor :project_id + + sig { returns(String) } + attr_accessor :slug + + sig { returns(String) } + attr_accessor :url + + sig do + params( + id: String, + date_connected: Time, + date_updated: Time, + git_account_id: String, + git_id: Integer, + name: String, + private: T::Boolean, + project_id: String, + slug: String, + url: String, + branch: String, + root_dir: String + ).returns(T.attached_class) + end + def self.new( + id:, + date_connected:, + date_updated:, + git_account_id:, + git_id:, + name:, + private:, + project_id:, + slug:, + url:, + branch: nil, + root_dir: nil + ) + end + + sig do + override.returns( + { + id: String, + date_connected: Time, + date_updated: Time, + git_account_id: String, + git_id: Integer, + name: String, + private: T::Boolean, + project_id: String, + slug: String, + url: String, + branch: String, + root_dir: String + } + ) + end + def to_hash + end + end + end + end +end diff --git a/rbi/openlayer/models/projects/inference_pipeline_create_params.rbi b/rbi/openlayer/models/projects/inference_pipeline_create_params.rbi index efe8a13..3d3fd52 100644 --- a/rbi/openlayer/models/projects/inference_pipeline_create_params.rbi +++ b/rbi/openlayer/models/projects/inference_pipeline_create_params.rbi @@ -1229,16 +1229,37 @@ module Openlayer end attr_accessor :task_type + # Number of days to retain monitoring data for this project. Null means data is + # retained indefinitely. + sig { returns(T.nilable(Integer)) } + attr_accessor :data_retention_days + # The project description. sig { returns(T.nilable(String)) } attr_accessor :description + # Who developed the model used in this project. + sig { returns(T.nilable(String)) } + attr_accessor :model_developer + + # The kinds of model used in this project. + sig { returns(T.nilable(T::Array[String])) } + attr_accessor :model_types + + # What the system in this project is intended to do. + sig { returns(T.nilable(String)) } + attr_accessor :purpose + sig do params( name: String, task_type: Openlayer::Projects::InferencePipelineCreateParams::Project::TaskType::OrSymbol, - description: T.nilable(String) + data_retention_days: T.nilable(Integer), + description: T.nilable(String), + model_developer: T.nilable(String), + model_types: T.nilable(T::Array[String]), + purpose: T.nilable(String) ).returns(T.attached_class) end def self.new( @@ -1246,8 +1267,17 @@ module Openlayer name:, # The task type of the project. task_type:, + # Number of days to retain monitoring data for this project. Null means data is + # retained indefinitely. + data_retention_days: nil, # The project description. - description: nil + description: nil, + # Who developed the model used in this project. + model_developer: nil, + # The kinds of model used in this project. + model_types: nil, + # What the system in this project is intended to do. + purpose: nil ) end @@ -1273,11 +1303,15 @@ module Openlayer Openlayer::Projects::InferencePipelineCreateParams::Project::TaskType::OrSymbol, version_count: Integer, workspace_id: T.nilable(String), + data_retention_days: T.nilable(Integer), description: T.nilable(String), git_repo: T.nilable( Openlayer::Projects::InferencePipelineCreateParams::Project::GitRepo - ) + ), + model_developer: T.nilable(String), + model_types: T.nilable(T::Array[String]), + purpose: T.nilable(String) } ) end diff --git a/rbi/openlayer/models/projects/inference_pipeline_create_response.rbi b/rbi/openlayer/models/projects/inference_pipeline_create_response.rbi index d231c52..b8b3533 100644 --- a/rbi/openlayer/models/projects/inference_pipeline_create_response.rbi +++ b/rbi/openlayer/models/projects/inference_pipeline_create_response.rbi @@ -1283,10 +1283,27 @@ module Openlayer end attr_accessor :task_type + # Number of days to retain monitoring data for this project. Null means data is + # retained indefinitely. + sig { returns(T.nilable(Integer)) } + attr_accessor :data_retention_days + # The project description. sig { returns(T.nilable(String)) } attr_accessor :description + # Who developed the model used in this project. + sig { returns(T.nilable(String)) } + attr_accessor :model_developer + + # The kinds of model used in this project. + sig { returns(T.nilable(T::Array[String])) } + attr_accessor :model_types + + # What the system in this project is intended to do. + sig { returns(T.nilable(String)) } + attr_accessor :purpose + # The project id. sig { returns(String) } attr_accessor :id @@ -1393,11 +1410,15 @@ module Openlayer Openlayer::Models::Projects::InferencePipelineCreateResponse::Project::TaskType::OrSymbol, version_count: Integer, workspace_id: T.nilable(String), + data_retention_days: T.nilable(Integer), description: T.nilable(String), git_repo: T.nilable( Openlayer::Models::Projects::InferencePipelineCreateResponse::Project::GitRepo::OrHash - ) + ), + model_developer: T.nilable(String), + model_types: T.nilable(T::Array[String]), + purpose: T.nilable(String) ).returns(T.attached_class) end def self.new( @@ -1429,9 +1450,18 @@ module Openlayer version_count:, # The workspace id. workspace_id:, + # Number of days to retain monitoring data for this project. Null means data is + # retained indefinitely. + data_retention_days: nil, # The project description. description: nil, - git_repo: nil + git_repo: nil, + # Who developed the model used in this project. + model_developer: nil, + # The kinds of model used in this project. + model_types: nil, + # What the system in this project is intended to do. + purpose: nil ) end @@ -1457,11 +1487,15 @@ module Openlayer Openlayer::Models::Projects::InferencePipelineCreateResponse::Project::TaskType::TaggedSymbol, version_count: Integer, workspace_id: T.nilable(String), + data_retention_days: T.nilable(Integer), description: T.nilable(String), git_repo: T.nilable( Openlayer::Models::Projects::InferencePipelineCreateResponse::Project::GitRepo - ) + ), + model_developer: T.nilable(String), + model_types: T.nilable(T::Array[String]), + purpose: T.nilable(String) } ) end diff --git a/rbi/openlayer/models/projects/inference_pipeline_list_response.rbi b/rbi/openlayer/models/projects/inference_pipeline_list_response.rbi index 9734ed1..ef474a8 100644 --- a/rbi/openlayer/models/projects/inference_pipeline_list_response.rbi +++ b/rbi/openlayer/models/projects/inference_pipeline_list_response.rbi @@ -1325,10 +1325,27 @@ module Openlayer end attr_accessor :task_type + # Number of days to retain monitoring data for this project. Null means data is + # retained indefinitely. + sig { returns(T.nilable(Integer)) } + attr_accessor :data_retention_days + # The project description. sig { returns(T.nilable(String)) } attr_accessor :description + # Who developed the model used in this project. + sig { returns(T.nilable(String)) } + attr_accessor :model_developer + + # The kinds of model used in this project. + sig { returns(T.nilable(T::Array[String])) } + attr_accessor :model_types + + # What the system in this project is intended to do. + sig { returns(T.nilable(String)) } + attr_accessor :purpose + # The project id. sig { returns(String) } attr_accessor :id @@ -1435,11 +1452,15 @@ module Openlayer Openlayer::Models::Projects::InferencePipelineListResponse::Item::Project::TaskType::OrSymbol, version_count: Integer, workspace_id: T.nilable(String), + data_retention_days: T.nilable(Integer), description: T.nilable(String), git_repo: T.nilable( Openlayer::Models::Projects::InferencePipelineListResponse::Item::Project::GitRepo::OrHash - ) + ), + model_developer: T.nilable(String), + model_types: T.nilable(T::Array[String]), + purpose: T.nilable(String) ).returns(T.attached_class) end def self.new( @@ -1471,9 +1492,18 @@ module Openlayer version_count:, # The workspace id. workspace_id:, + # Number of days to retain monitoring data for this project. Null means data is + # retained indefinitely. + data_retention_days: nil, # The project description. description: nil, - git_repo: nil + git_repo: nil, + # Who developed the model used in this project. + model_developer: nil, + # The kinds of model used in this project. + model_types: nil, + # What the system in this project is intended to do. + purpose: nil ) end @@ -1499,11 +1529,15 @@ module Openlayer Openlayer::Models::Projects::InferencePipelineListResponse::Item::Project::TaskType::TaggedSymbol, version_count: Integer, workspace_id: T.nilable(String), + data_retention_days: T.nilable(Integer), description: T.nilable(String), git_repo: T.nilable( Openlayer::Models::Projects::InferencePipelineListResponse::Item::Project::GitRepo - ) + ), + model_developer: T.nilable(String), + model_types: T.nilable(T::Array[String]), + purpose: T.nilable(String) } ) end diff --git a/rbi/openlayer/resources/projects.rbi b/rbi/openlayer/resources/projects.rbi index 34214bd..f915cb3 100644 --- a/rbi/openlayer/resources/projects.rbi +++ b/rbi/openlayer/resources/projects.rbi @@ -17,7 +17,11 @@ module Openlayer params( name: String, task_type: Openlayer::ProjectCreateParams::TaskType::OrSymbol, + data_retention_days: T.nilable(Integer), description: T.nilable(String), + model_developer: T.nilable(String), + model_types: T.nilable(T::Array[String]), + purpose: T.nilable(String), request_options: Openlayer::RequestOptions::OrHash ).returns(Openlayer::Models::ProjectCreateResponse) end @@ -26,8 +30,50 @@ module Openlayer name:, # The task type of the project. task_type:, + # Number of days to retain monitoring data for this project. Null means data is + # retained indefinitely. + data_retention_days: nil, # The project description. description: nil, + # Who developed the model used in this project. + model_developer: nil, + # The kinds of model used in this project. + model_types: nil, + # What the system in this project is intended to do. + purpose: nil, + request_options: {} + ) + end + + # Update a project's metadata. + sig do + params( + project_id: String, + data_retention_days: T.nilable(Integer), + description: T.nilable(String), + model_developer: T.nilable(String), + model_types: T.nilable(T::Array[String]), + name: String, + purpose: T.nilable(String), + request_options: Openlayer::RequestOptions::OrHash + ).returns(Openlayer::Models::ProjectUpdateResponse) + end + def update( + # The project id. + project_id, + # Number of days to retain monitoring data for this project. Null means data is + # retained indefinitely. + data_retention_days: nil, + # The project description. + description: nil, + # Who developed the model used in this project. + model_developer: nil, + # The kinds of model used in this project. + model_types: nil, + # The project name. + name: nil, + # What the system in this project is intended to do. + purpose: nil, request_options: {} ) end diff --git a/sig/openlayer/models.rbs b/sig/openlayer/models.rbs index 1078490..e4c65ef 100644 --- a/sig/openlayer/models.rbs +++ b/sig/openlayer/models.rbs @@ -23,6 +23,8 @@ module Openlayer module Projects = Openlayer::Models::Projects + class ProjectUpdateParams = Openlayer::Models::ProjectUpdateParams + module Storage = Openlayer::Models::Storage class TestEvaluateParams = Openlayer::Models::TestEvaluateParams diff --git a/sig/openlayer/models/inference_pipeline_retrieve_response.rbs b/sig/openlayer/models/inference_pipeline_retrieve_response.rbs index 731a264..0f70584 100644 --- a/sig/openlayer/models/inference_pipeline_retrieve_response.rbs +++ b/sig/openlayer/models/inference_pipeline_retrieve_response.rbs @@ -618,8 +618,12 @@ module Openlayer task_type: Openlayer::Models::InferencePipelineRetrieveResponse::Project::task_type, version_count: Integer, workspace_id: String?, + data_retention_days: Integer?, description: String?, - git_repo: Openlayer::Models::InferencePipelineRetrieveResponse::Project::GitRepo? + git_repo: Openlayer::Models::InferencePipelineRetrieveResponse::Project::GitRepo?, + model_developer: String?, + model_types: ::Array[String]?, + purpose: String? } class Project < Openlayer::Internal::Type::BaseModel @@ -627,8 +631,16 @@ module Openlayer attr_accessor task_type: Openlayer::Models::InferencePipelineRetrieveResponse::Project::task_type + attr_accessor data_retention_days: Integer? + attr_accessor description: String? + attr_accessor model_developer: String? + + attr_accessor model_types: ::Array[String]? + + attr_accessor purpose: String? + attr_accessor id: String attr_accessor creator_id: String? @@ -670,8 +682,12 @@ module Openlayer task_type: Openlayer::Models::InferencePipelineRetrieveResponse::Project::task_type, version_count: Integer, workspace_id: String?, + ?data_retention_days: Integer?, ?description: String?, - ?git_repo: Openlayer::Models::InferencePipelineRetrieveResponse::Project::GitRepo? + ?git_repo: Openlayer::Models::InferencePipelineRetrieveResponse::Project::GitRepo?, + ?model_developer: String?, + ?model_types: ::Array[String]?, + ?purpose: String? ) -> void def to_hash: -> { @@ -689,8 +705,12 @@ module Openlayer task_type: Openlayer::Models::InferencePipelineRetrieveResponse::Project::task_type, version_count: Integer, workspace_id: String?, + data_retention_days: Integer?, description: String?, - git_repo: Openlayer::Models::InferencePipelineRetrieveResponse::Project::GitRepo? + git_repo: Openlayer::Models::InferencePipelineRetrieveResponse::Project::GitRepo?, + model_developer: String?, + model_types: ::Array[String]?, + purpose: String? } type links = { app: String } diff --git a/sig/openlayer/models/inference_pipeline_update_response.rbs b/sig/openlayer/models/inference_pipeline_update_response.rbs index 275abf9..eaa1c6b 100644 --- a/sig/openlayer/models/inference_pipeline_update_response.rbs +++ b/sig/openlayer/models/inference_pipeline_update_response.rbs @@ -618,8 +618,12 @@ module Openlayer task_type: Openlayer::Models::InferencePipelineUpdateResponse::Project::task_type, version_count: Integer, workspace_id: String?, + data_retention_days: Integer?, description: String?, - git_repo: Openlayer::Models::InferencePipelineUpdateResponse::Project::GitRepo? + git_repo: Openlayer::Models::InferencePipelineUpdateResponse::Project::GitRepo?, + model_developer: String?, + model_types: ::Array[String]?, + purpose: String? } class Project < Openlayer::Internal::Type::BaseModel @@ -627,8 +631,16 @@ module Openlayer attr_accessor task_type: Openlayer::Models::InferencePipelineUpdateResponse::Project::task_type + attr_accessor data_retention_days: Integer? + attr_accessor description: String? + attr_accessor model_developer: String? + + attr_accessor model_types: ::Array[String]? + + attr_accessor purpose: String? + attr_accessor id: String attr_accessor creator_id: String? @@ -670,8 +682,12 @@ module Openlayer task_type: Openlayer::Models::InferencePipelineUpdateResponse::Project::task_type, version_count: Integer, workspace_id: String?, + ?data_retention_days: Integer?, ?description: String?, - ?git_repo: Openlayer::Models::InferencePipelineUpdateResponse::Project::GitRepo? + ?git_repo: Openlayer::Models::InferencePipelineUpdateResponse::Project::GitRepo?, + ?model_developer: String?, + ?model_types: ::Array[String]?, + ?purpose: String? ) -> void def to_hash: -> { @@ -689,8 +705,12 @@ module Openlayer task_type: Openlayer::Models::InferencePipelineUpdateResponse::Project::task_type, version_count: Integer, workspace_id: String?, + data_retention_days: Integer?, description: String?, - git_repo: Openlayer::Models::InferencePipelineUpdateResponse::Project::GitRepo? + git_repo: Openlayer::Models::InferencePipelineUpdateResponse::Project::GitRepo?, + model_developer: String?, + model_types: ::Array[String]?, + purpose: String? } type links = { app: String } diff --git a/sig/openlayer/models/project_create_params.rbs b/sig/openlayer/models/project_create_params.rbs index b351def..5c806b4 100644 --- a/sig/openlayer/models/project_create_params.rbs +++ b/sig/openlayer/models/project_create_params.rbs @@ -4,7 +4,11 @@ module Openlayer { name: String, task_type: Openlayer::Models::ProjectCreateParams::task_type, - description: String? + data_retention_days: Integer?, + description: String?, + model_developer: String?, + model_types: ::Array[String]?, + purpose: String? } & Openlayer::Internal::Type::request_parameters @@ -16,19 +20,35 @@ module Openlayer attr_accessor task_type: Openlayer::Models::ProjectCreateParams::task_type + attr_accessor data_retention_days: Integer? + attr_accessor description: String? + attr_accessor model_developer: String? + + attr_accessor model_types: ::Array[String]? + + attr_accessor purpose: String? + def initialize: ( name: String, task_type: Openlayer::Models::ProjectCreateParams::task_type, + ?data_retention_days: Integer?, ?description: String?, + ?model_developer: String?, + ?model_types: ::Array[String]?, + ?purpose: String?, ?request_options: Openlayer::request_opts ) -> void def to_hash: -> { name: String, task_type: Openlayer::Models::ProjectCreateParams::task_type, + data_retention_days: Integer?, description: String?, + model_developer: String?, + model_types: ::Array[String]?, + purpose: String?, request_options: Openlayer::RequestOptions } diff --git a/sig/openlayer/models/project_create_response.rbs b/sig/openlayer/models/project_create_response.rbs index 310afd1..fa656d3 100644 --- a/sig/openlayer/models/project_create_response.rbs +++ b/sig/openlayer/models/project_create_response.rbs @@ -16,8 +16,12 @@ module Openlayer task_type: Openlayer::Models::ProjectCreateResponse::task_type, version_count: Integer, workspace_id: String?, + data_retention_days: Integer?, description: String?, - git_repo: Openlayer::Models::ProjectCreateResponse::GitRepo? + git_repo: Openlayer::Models::ProjectCreateResponse::GitRepo?, + model_developer: String?, + model_types: ::Array[String]?, + purpose: String? } class ProjectCreateResponse < Openlayer::Internal::Type::BaseModel @@ -25,8 +29,16 @@ module Openlayer attr_accessor task_type: Openlayer::Models::ProjectCreateResponse::task_type + attr_accessor data_retention_days: Integer? + attr_accessor description: String? + attr_accessor model_developer: String? + + attr_accessor model_types: ::Array[String]? + + attr_accessor purpose: String? + attr_accessor id: String attr_accessor creator_id: String? @@ -68,8 +80,12 @@ module Openlayer task_type: Openlayer::Models::ProjectCreateResponse::task_type, version_count: Integer, workspace_id: String?, + ?data_retention_days: Integer?, ?description: String?, - ?git_repo: Openlayer::Models::ProjectCreateResponse::GitRepo? + ?git_repo: Openlayer::Models::ProjectCreateResponse::GitRepo?, + ?model_developer: String?, + ?model_types: ::Array[String]?, + ?purpose: String? ) -> void def to_hash: -> { @@ -87,8 +103,12 @@ module Openlayer task_type: Openlayer::Models::ProjectCreateResponse::task_type, version_count: Integer, workspace_id: String?, + data_retention_days: Integer?, description: String?, - git_repo: Openlayer::Models::ProjectCreateResponse::GitRepo? + git_repo: Openlayer::Models::ProjectCreateResponse::GitRepo?, + model_developer: String?, + model_types: ::Array[String]?, + purpose: String? } type links = { app: String } diff --git a/sig/openlayer/models/project_list_response.rbs b/sig/openlayer/models/project_list_response.rbs index 8f5de56..d0023df 100644 --- a/sig/openlayer/models/project_list_response.rbs +++ b/sig/openlayer/models/project_list_response.rbs @@ -30,8 +30,12 @@ module Openlayer task_type: Openlayer::Models::ProjectListResponse::Item::task_type, version_count: Integer, workspace_id: String?, + data_retention_days: Integer?, description: String?, - git_repo: Openlayer::Models::ProjectListResponse::Item::GitRepo? + git_repo: Openlayer::Models::ProjectListResponse::Item::GitRepo?, + model_developer: String?, + model_types: ::Array[String]?, + purpose: String? } class Item < Openlayer::Internal::Type::BaseModel @@ -39,8 +43,16 @@ module Openlayer attr_accessor task_type: Openlayer::Models::ProjectListResponse::Item::task_type + attr_accessor data_retention_days: Integer? + attr_accessor description: String? + attr_accessor model_developer: String? + + attr_accessor model_types: ::Array[String]? + + attr_accessor purpose: String? + attr_accessor id: String attr_accessor creator_id: String? @@ -82,8 +94,12 @@ module Openlayer task_type: Openlayer::Models::ProjectListResponse::Item::task_type, version_count: Integer, workspace_id: String?, + ?data_retention_days: Integer?, ?description: String?, - ?git_repo: Openlayer::Models::ProjectListResponse::Item::GitRepo? + ?git_repo: Openlayer::Models::ProjectListResponse::Item::GitRepo?, + ?model_developer: String?, + ?model_types: ::Array[String]?, + ?purpose: String? ) -> void def to_hash: -> { @@ -101,8 +117,12 @@ module Openlayer task_type: Openlayer::Models::ProjectListResponse::Item::task_type, version_count: Integer, workspace_id: String?, + data_retention_days: Integer?, description: String?, - git_repo: Openlayer::Models::ProjectListResponse::Item::GitRepo? + git_repo: Openlayer::Models::ProjectListResponse::Item::GitRepo?, + model_developer: String?, + model_types: ::Array[String]?, + purpose: String? } type links = { app: String } diff --git a/sig/openlayer/models/project_update_params.rbs b/sig/openlayer/models/project_update_params.rbs new file mode 100644 index 0000000..8a94ed0 --- /dev/null +++ b/sig/openlayer/models/project_update_params.rbs @@ -0,0 +1,58 @@ +module Openlayer + module Models + type project_update_params = + { + project_id: String, + data_retention_days: Integer?, + description: String?, + model_developer: String?, + model_types: ::Array[String]?, + name: String, + purpose: String? + } + & Openlayer::Internal::Type::request_parameters + + class ProjectUpdateParams < Openlayer::Internal::Type::BaseModel + extend Openlayer::Internal::Type::RequestParameters::Converter + include Openlayer::Internal::Type::RequestParameters + + attr_accessor project_id: String + + attr_accessor data_retention_days: Integer? + + attr_accessor description: String? + + attr_accessor model_developer: String? + + attr_accessor model_types: ::Array[String]? + + attr_reader name: String? + + def name=: (String) -> String + + attr_accessor purpose: String? + + def initialize: ( + project_id: String, + ?data_retention_days: Integer?, + ?description: String?, + ?model_developer: String?, + ?model_types: ::Array[String]?, + ?name: String, + ?purpose: String?, + ?request_options: Openlayer::request_opts + ) -> void + + def to_hash: -> { + project_id: String, + data_retention_days: Integer?, + description: String?, + model_developer: String?, + model_types: ::Array[String]?, + name: String, + purpose: String?, + request_options: Openlayer::RequestOptions + } + end + end +end diff --git a/sig/openlayer/models/project_update_response.rbs b/sig/openlayer/models/project_update_response.rbs new file mode 100644 index 0000000..160d3be --- /dev/null +++ b/sig/openlayer/models/project_update_response.rbs @@ -0,0 +1,230 @@ +module Openlayer + module Models + type project_update_response = + { + id: String, + creator_id: String?, + date_created: Time, + date_updated: Time, + development_goal_count: Integer, + goal_count: Integer, + inference_pipeline_count: Integer, + links: Openlayer::Models::ProjectUpdateResponse::Links, + monitoring_goal_count: Integer, + name: String, + source: Openlayer::Models::ProjectUpdateResponse::source?, + task_type: Openlayer::Models::ProjectUpdateResponse::task_type, + version_count: Integer, + workspace_id: String?, + data_retention_days: Integer?, + description: String?, + git_repo: Openlayer::Models::ProjectUpdateResponse::GitRepo?, + model_developer: String?, + model_types: ::Array[String]?, + purpose: String? + } + + class ProjectUpdateResponse < Openlayer::Internal::Type::BaseModel + attr_accessor name: String + + attr_accessor task_type: Openlayer::Models::ProjectUpdateResponse::task_type + + attr_accessor data_retention_days: Integer? + + attr_accessor description: String? + + attr_accessor model_developer: String? + + attr_accessor model_types: ::Array[String]? + + attr_accessor purpose: String? + + attr_accessor id: String + + attr_accessor creator_id: String? + + attr_accessor date_created: Time + + attr_accessor date_updated: Time + + attr_accessor development_goal_count: Integer + + attr_accessor goal_count: Integer + + attr_accessor inference_pipeline_count: Integer + + attr_accessor links: Openlayer::Models::ProjectUpdateResponse::Links + + attr_accessor monitoring_goal_count: Integer + + attr_accessor source: Openlayer::Models::ProjectUpdateResponse::source? + + attr_accessor version_count: Integer + + attr_accessor workspace_id: String? + + attr_accessor git_repo: Openlayer::Models::ProjectUpdateResponse::GitRepo? + + def initialize: ( + id: String, + creator_id: String?, + date_created: Time, + date_updated: Time, + development_goal_count: Integer, + goal_count: Integer, + inference_pipeline_count: Integer, + links: Openlayer::Models::ProjectUpdateResponse::Links, + monitoring_goal_count: Integer, + name: String, + source: Openlayer::Models::ProjectUpdateResponse::source?, + task_type: Openlayer::Models::ProjectUpdateResponse::task_type, + version_count: Integer, + workspace_id: String?, + ?data_retention_days: Integer?, + ?description: String?, + ?git_repo: Openlayer::Models::ProjectUpdateResponse::GitRepo?, + ?model_developer: String?, + ?model_types: ::Array[String]?, + ?purpose: String? + ) -> void + + def to_hash: -> { + id: String, + creator_id: String?, + date_created: Time, + date_updated: Time, + development_goal_count: Integer, + goal_count: Integer, + inference_pipeline_count: Integer, + links: Openlayer::Models::ProjectUpdateResponse::Links, + monitoring_goal_count: Integer, + name: String, + source: Openlayer::Models::ProjectUpdateResponse::source?, + task_type: Openlayer::Models::ProjectUpdateResponse::task_type, + version_count: Integer, + workspace_id: String?, + data_retention_days: Integer?, + description: String?, + git_repo: Openlayer::Models::ProjectUpdateResponse::GitRepo?, + model_developer: String?, + model_types: ::Array[String]?, + purpose: String? + } + + type links = { app: String } + + class Links < Openlayer::Internal::Type::BaseModel + attr_accessor app: String + + def initialize: (app: String) -> void + + def to_hash: -> { app: String } + end + + type source = :web | :api | :null + + module Source + extend Openlayer::Internal::Type::Enum + + WEB: :web + API: :api + NULL: :null + + def self?.values: -> ::Array[Openlayer::Models::ProjectUpdateResponse::source] + end + + type task_type = + :"llm-base" + | :"tabular-classification" + | :"tabular-regression" + | :"text-classification" + + module TaskType + extend Openlayer::Internal::Type::Enum + + LLM_BASE: :"llm-base" + TABULAR_CLASSIFICATION: :"tabular-classification" + TABULAR_REGRESSION: :"tabular-regression" + TEXT_CLASSIFICATION: :"text-classification" + + def self?.values: -> ::Array[Openlayer::Models::ProjectUpdateResponse::task_type] + end + + type git_repo = + { + id: String, + date_connected: Time, + date_updated: Time, + git_account_id: String, + git_id: Integer, + name: String, + private: bool, + project_id: String, + slug: String, + url: String, + branch: String, + root_dir: String + } + + class GitRepo < Openlayer::Internal::Type::BaseModel + attr_accessor git_account_id: String + + attr_accessor git_id: Integer + + attr_reader branch: String? + + def branch=: (String) -> String + + attr_reader root_dir: String? + + def root_dir=: (String) -> String + + attr_accessor id: String + + attr_accessor date_connected: Time + + attr_accessor date_updated: Time + + attr_accessor name: String + + attr_accessor private: bool + + attr_accessor project_id: String + + attr_accessor slug: String + + attr_accessor url: String + + def initialize: ( + id: String, + date_connected: Time, + date_updated: Time, + git_account_id: String, + git_id: Integer, + name: String, + private: bool, + project_id: String, + slug: String, + url: String, + ?branch: String, + ?root_dir: String + ) -> void + + def to_hash: -> { + id: String, + date_connected: Time, + date_updated: Time, + git_account_id: String, + git_id: Integer, + name: String, + private: bool, + project_id: String, + slug: String, + url: String, + branch: String, + root_dir: String + } + end + end + end +end diff --git a/sig/openlayer/models/projects/inference_pipeline_create_params.rbs b/sig/openlayer/models/projects/inference_pipeline_create_params.rbs index ed76f20..f0783ff 100644 --- a/sig/openlayer/models/projects/inference_pipeline_create_params.rbs +++ b/sig/openlayer/models/projects/inference_pipeline_create_params.rbs @@ -552,8 +552,12 @@ module Openlayer task_type: Openlayer::Models::Projects::InferencePipelineCreateParams::Project::task_type, version_count: Integer, workspace_id: String?, + data_retention_days: Integer?, description: String?, - git_repo: Openlayer::Projects::InferencePipelineCreateParams::Project::GitRepo? + git_repo: Openlayer::Projects::InferencePipelineCreateParams::Project::GitRepo?, + model_developer: String?, + model_types: ::Array[String]?, + purpose: String? } class Project < Openlayer::Internal::Type::BaseModel @@ -561,12 +565,24 @@ module Openlayer attr_accessor task_type: Openlayer::Models::Projects::InferencePipelineCreateParams::Project::task_type + attr_accessor data_retention_days: Integer? + attr_accessor description: String? + attr_accessor model_developer: String? + + attr_accessor model_types: ::Array[String]? + + attr_accessor purpose: String? + def initialize: ( name: String, task_type: Openlayer::Models::Projects::InferencePipelineCreateParams::Project::task_type, - ?description: String? + ?data_retention_days: Integer?, + ?description: String?, + ?model_developer: String?, + ?model_types: ::Array[String]?, + ?purpose: String? ) -> void def to_hash: -> { @@ -584,8 +600,12 @@ module Openlayer task_type: Openlayer::Models::Projects::InferencePipelineCreateParams::Project::task_type, version_count: Integer, workspace_id: String?, + data_retention_days: Integer?, description: String?, - git_repo: Openlayer::Projects::InferencePipelineCreateParams::Project::GitRepo? + git_repo: Openlayer::Projects::InferencePipelineCreateParams::Project::GitRepo?, + model_developer: String?, + model_types: ::Array[String]?, + purpose: String? } type links = { app: String } diff --git a/sig/openlayer/models/projects/inference_pipeline_create_response.rbs b/sig/openlayer/models/projects/inference_pipeline_create_response.rbs index aeb654a..477d9e7 100644 --- a/sig/openlayer/models/projects/inference_pipeline_create_response.rbs +++ b/sig/openlayer/models/projects/inference_pipeline_create_response.rbs @@ -619,8 +619,12 @@ module Openlayer task_type: Openlayer::Models::Projects::InferencePipelineCreateResponse::Project::task_type, version_count: Integer, workspace_id: String?, + data_retention_days: Integer?, description: String?, - git_repo: Openlayer::Models::Projects::InferencePipelineCreateResponse::Project::GitRepo? + git_repo: Openlayer::Models::Projects::InferencePipelineCreateResponse::Project::GitRepo?, + model_developer: String?, + model_types: ::Array[String]?, + purpose: String? } class Project < Openlayer::Internal::Type::BaseModel @@ -628,8 +632,16 @@ module Openlayer attr_accessor task_type: Openlayer::Models::Projects::InferencePipelineCreateResponse::Project::task_type + attr_accessor data_retention_days: Integer? + attr_accessor description: String? + attr_accessor model_developer: String? + + attr_accessor model_types: ::Array[String]? + + attr_accessor purpose: String? + attr_accessor id: String attr_accessor creator_id: String? @@ -671,8 +683,12 @@ module Openlayer task_type: Openlayer::Models::Projects::InferencePipelineCreateResponse::Project::task_type, version_count: Integer, workspace_id: String?, + ?data_retention_days: Integer?, ?description: String?, - ?git_repo: Openlayer::Models::Projects::InferencePipelineCreateResponse::Project::GitRepo? + ?git_repo: Openlayer::Models::Projects::InferencePipelineCreateResponse::Project::GitRepo?, + ?model_developer: String?, + ?model_types: ::Array[String]?, + ?purpose: String? ) -> void def to_hash: -> { @@ -690,8 +706,12 @@ module Openlayer task_type: Openlayer::Models::Projects::InferencePipelineCreateResponse::Project::task_type, version_count: Integer, workspace_id: String?, + data_retention_days: Integer?, description: String?, - git_repo: Openlayer::Models::Projects::InferencePipelineCreateResponse::Project::GitRepo? + git_repo: Openlayer::Models::Projects::InferencePipelineCreateResponse::Project::GitRepo?, + model_developer: String?, + model_types: ::Array[String]?, + purpose: String? } type links = { app: String } diff --git a/sig/openlayer/models/projects/inference_pipeline_list_response.rbs b/sig/openlayer/models/projects/inference_pipeline_list_response.rbs index 9360c2b..7cf59ae 100644 --- a/sig/openlayer/models/projects/inference_pipeline_list_response.rbs +++ b/sig/openlayer/models/projects/inference_pipeline_list_response.rbs @@ -635,8 +635,12 @@ module Openlayer task_type: Openlayer::Models::Projects::InferencePipelineListResponse::Item::Project::task_type, version_count: Integer, workspace_id: String?, + data_retention_days: Integer?, description: String?, - git_repo: Openlayer::Models::Projects::InferencePipelineListResponse::Item::Project::GitRepo? + git_repo: Openlayer::Models::Projects::InferencePipelineListResponse::Item::Project::GitRepo?, + model_developer: String?, + model_types: ::Array[String]?, + purpose: String? } class Project < Openlayer::Internal::Type::BaseModel @@ -644,8 +648,16 @@ module Openlayer attr_accessor task_type: Openlayer::Models::Projects::InferencePipelineListResponse::Item::Project::task_type + attr_accessor data_retention_days: Integer? + attr_accessor description: String? + attr_accessor model_developer: String? + + attr_accessor model_types: ::Array[String]? + + attr_accessor purpose: String? + attr_accessor id: String attr_accessor creator_id: String? @@ -687,8 +699,12 @@ module Openlayer task_type: Openlayer::Models::Projects::InferencePipelineListResponse::Item::Project::task_type, version_count: Integer, workspace_id: String?, + ?data_retention_days: Integer?, ?description: String?, - ?git_repo: Openlayer::Models::Projects::InferencePipelineListResponse::Item::Project::GitRepo? + ?git_repo: Openlayer::Models::Projects::InferencePipelineListResponse::Item::Project::GitRepo?, + ?model_developer: String?, + ?model_types: ::Array[String]?, + ?purpose: String? ) -> void def to_hash: -> { @@ -706,8 +722,12 @@ module Openlayer task_type: Openlayer::Models::Projects::InferencePipelineListResponse::Item::Project::task_type, version_count: Integer, workspace_id: String?, + data_retention_days: Integer?, description: String?, - git_repo: Openlayer::Models::Projects::InferencePipelineListResponse::Item::Project::GitRepo? + git_repo: Openlayer::Models::Projects::InferencePipelineListResponse::Item::Project::GitRepo?, + model_developer: String?, + model_types: ::Array[String]?, + purpose: String? } type links = { app: String } diff --git a/sig/openlayer/resources/projects.rbs b/sig/openlayer/resources/projects.rbs index 4f72fba..13494f9 100644 --- a/sig/openlayer/resources/projects.rbs +++ b/sig/openlayer/resources/projects.rbs @@ -10,10 +10,25 @@ module Openlayer def create: ( name: String, task_type: Openlayer::Models::ProjectCreateParams::task_type, + ?data_retention_days: Integer?, ?description: String?, + ?model_developer: String?, + ?model_types: ::Array[String]?, + ?purpose: String?, ?request_options: Openlayer::request_opts ) -> Openlayer::Models::ProjectCreateResponse + def update: ( + String project_id, + ?data_retention_days: Integer?, + ?description: String?, + ?model_developer: String?, + ?model_types: ::Array[String]?, + ?name: String, + ?purpose: String?, + ?request_options: Openlayer::request_opts + ) -> Openlayer::Models::ProjectUpdateResponse + def list: ( ?name: String, ?page: Integer, diff --git a/test/openlayer/resources/projects_test.rb b/test/openlayer/resources/projects_test.rb index be5c3f5..4de126d 100644 --- a/test/openlayer/resources/projects_test.rb +++ b/test/openlayer/resources/projects_test.rb @@ -26,8 +26,45 @@ def test_create_required_params task_type: Openlayer::Models::ProjectCreateResponse::TaskType, version_count: Integer, workspace_id: String | nil, + data_retention_days: Integer | nil, description: String | nil, - git_repo: Openlayer::Models::ProjectCreateResponse::GitRepo | nil + git_repo: Openlayer::Models::ProjectCreateResponse::GitRepo | nil, + model_developer: String | nil, + model_types: ^(Openlayer::Internal::Type::ArrayOf[String]) | nil, + purpose: String | nil + } + end + end + + def test_update + response = @openlayer.projects.update("182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e") + + assert_pattern do + response => Openlayer::Models::ProjectUpdateResponse + end + + assert_pattern do + response => { + id: String, + creator_id: String | nil, + date_created: Time, + date_updated: Time, + development_goal_count: Integer, + goal_count: Integer, + inference_pipeline_count: Integer, + links: Openlayer::Models::ProjectUpdateResponse::Links, + monitoring_goal_count: Integer, + name: String, + source: Openlayer::Models::ProjectUpdateResponse::Source | nil, + task_type: Openlayer::Models::ProjectUpdateResponse::TaskType, + version_count: Integer, + workspace_id: String | nil, + data_retention_days: Integer | nil, + description: String | nil, + git_repo: Openlayer::Models::ProjectUpdateResponse::GitRepo | nil, + model_developer: String | nil, + model_types: ^(Openlayer::Internal::Type::ArrayOf[String]) | nil, + purpose: String | nil } end end