Class: Openlayer::Models::ProjectCreateResponse

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/openlayer/models/project_create_response.rb,
sig/openlayer/models/project_create_response.rbs

Overview

See Also:

  • Openlayer::Resources::Projects#create

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)


# File 'lib/openlayer/models/project_create_response.rb', line 107

Instance Attribute Details

#creator_idString?

Returns the value of attribute creator_id.

Returns:

  • (String, nil)


32
33
34
# File 'sig/openlayer/models/project_create_response.rbs', line 32

def creator_id
  @creator_id
end

#date_createdTime

Returns the value of attribute date_created.

Returns:

  • (Time)


34
35
36
# File 'sig/openlayer/models/project_create_response.rbs', line 34

def date_created
  @date_created
end

#date_updatedTime

Returns the value of attribute date_updated.

Returns:

  • (Time)


36
37
38
# File 'sig/openlayer/models/project_create_response.rbs', line 36

def date_updated
  @date_updated
end

#descriptionString?

The project description.

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


23
# File 'lib/openlayer/models/project_create_response.rb', line 23

optional :description, String, nil?: true

#development_goal_countInteger

Returns the value of attribute development_goal_count.

Returns:

  • (Integer)


38
39
40
# File 'sig/openlayer/models/project_create_response.rbs', line 38

def development_goal_count
  @development_goal_count
end

#git_repoOpenlayer::Models::ProjectCreateResponse::GitRepo?

Returns the value of attribute git_repo.



54
55
56
# File 'sig/openlayer/models/project_create_response.rbs', line 54

def git_repo
  @git_repo
end

#goal_countInteger

Returns the value of attribute goal_count.

Returns:

  • (Integer)


40
41
42
# File 'sig/openlayer/models/project_create_response.rbs', line 40

def goal_count
  @goal_count
end

#idString

Returns the value of attribute id.

Returns:

  • (String)


30
31
32
# File 'sig/openlayer/models/project_create_response.rbs', line 30

def id
  @id
end

#inference_pipeline_countInteger

Returns the value of attribute inference_pipeline_count.

Returns:

  • (Integer)


42
43
44
# File 'sig/openlayer/models/project_create_response.rbs', line 42

def inference_pipeline_count
  @inference_pipeline_count
end

Returns the value of attribute links.



44
45
46
# File 'sig/openlayer/models/project_create_response.rbs', line 44

def links
  @links
end

#monitoring_goal_countInteger

Returns the value of attribute monitoring_goal_count.

Returns:

  • (Integer)


46
47
48
# File 'sig/openlayer/models/project_create_response.rbs', line 46

def monitoring_goal_count
  @monitoring_goal_count
end

#nameString

The project name.

Parameters:

  • value (String)

Returns:

  • (String)


11
# File 'lib/openlayer/models/project_create_response.rb', line 11

required :name, String

#sourceOpenlayer::Models::ProjectCreateResponse::source?

Returns the value of attribute source.

Returns:

  • (Openlayer::Models::ProjectCreateResponse::source, nil)


48
49
50
# File 'sig/openlayer/models/project_create_response.rbs', line 48

def source
  @source
end

#task_typeSymbol, Openlayer::Models::ProjectCreateResponse::TaskType

The task type of the project.

Parameters:

  • value (Openlayer::Models::ProjectCreateResponse::task_type)

Returns:



17
# File 'lib/openlayer/models/project_create_response.rb', line 17

required :task_type, enum: -> { Openlayer::Models::ProjectCreateResponse::TaskType }, api_name: :taskType

#version_countInteger

Returns the value of attribute version_count.

Returns:

  • (Integer)


50
51
52
# File 'sig/openlayer/models/project_create_response.rbs', line 50

def version_count
  @version_count
end

#workspace_idString?

Returns the value of attribute workspace_id.

Returns:

  • (String, nil)


52
53
54
# File 'sig/openlayer/models/project_create_response.rbs', line 52

def workspace_id
  @workspace_id
end

Class Method Details

.valuesArray<Symbol>

Returns:

  • (Array<Symbol>)


# File 'lib/openlayer/models/project_create_response.rb', line 163

Instance Method Details

#to_hash{

Returns:

  • ({)


75
# File 'sig/openlayer/models/project_create_response.rbs', line 75

def to_hash: -> {