Class: Openlayer::Models::Projects::InferencePipelineCreateParams::Project

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/openlayer/models/projects/inference_pipeline_create_params.rb

Defined Under Namespace

Modules: Source, TaskType Classes: GitRepo, Links

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Internal::Type::BaseModel

==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml

Methods included from Internal::Type::Converter

#coerce, coerce, #dump, dump, inspect, #inspect, meta_info, new_coerce_state, type_info

Methods included from Internal::Util::SorbetRuntimeSupport

#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type

Constructor Details

#initialize(app: ) ⇒ Object

Links to the project.

Parameters:

  • app (String) (defaults to: )


44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
# File 'lib/openlayer/models/projects/inference_pipeline_create_params.rb', line 44

class Project < 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::Projects::InferencePipelineCreateParams::Project::TaskType]
  required :task_type,
           enum: -> { Openlayer::Projects::InferencePipelineCreateParams::Project::TaskType },
           api_name: :taskType

  # @!attribute description
  #   The project description.
  #
  #   @return [String, nil]
  optional :description, String, nil?: true

  # @!method initialize(name:, task_type:, description: nil)
  #   @param name [String] The project name.
  #
  #   @param task_type [Symbol, Openlayer::Models::Projects::InferencePipelineCreateParams::Project::TaskType] The task type of the project.
  #
  #   @param description [String, nil] The project description.

  # @see Openlayer::Models::Projects::InferencePipelineCreateParams::Project#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::Projects::InferencePipelineCreateParams::Project#source
  module Source
    extend Openlayer::Internal::Type::Enum

    WEB = :web
    API = :api
    NULL = :null

    # @!method self.values
    #   @return [Array<Symbol>]
  end

  # The task type of the project.
  #
  # @see Openlayer::Models::Projects::InferencePipelineCreateParams::Project#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<Symbol>]
  end

  # @see Openlayer::Models::Projects::InferencePipelineCreateParams::Project#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

    # @!method initialize(git_account_id:, git_id:, branch: nil, root_dir: nil)
    #   @param git_account_id [String]
    #   @param git_id [Integer]
    #   @param branch [String]
    #   @param root_dir [String]
  end
end

Instance Attribute Details

#descriptionString?

The project description.

Returns:

  • (String, nil)


63
# File 'lib/openlayer/models/projects/inference_pipeline_create_params.rb', line 63

optional :description, String, nil?: true

#nameString

The project name.

Returns:

  • (String)


49
# File 'lib/openlayer/models/projects/inference_pipeline_create_params.rb', line 49

required :name, String

#task_typeSymbol, Openlayer::Models::Projects::InferencePipelineCreateParams::Project::TaskType

The task type of the project.



55
56
57
# File 'lib/openlayer/models/projects/inference_pipeline_create_params.rb', line 55

required :task_type,
enum: -> { Openlayer::Projects::InferencePipelineCreateParams::Project::TaskType },
api_name: :taskType

Class Method Details

.valuesArray<Symbol>

Returns:

  • (Array<Symbol>)


# File 'lib/openlayer/models/projects/inference_pipeline_create_params.rb', line 95