Class: Openlayer::Models::Projects::CommitCreateResponse

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

Overview

See Also:

  • Openlayer::Resources::Projects::Commits#create

Defined Under Namespace

Modules: Status Classes: Commit, 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(id:, author_id:, file_size:, message:, ml_model_id:, storage_uri:, training_dataset_id:, validation_dataset_id:, date_created: nil, git_commit_ref: nil, git_commit_sha: nil, git_commit_url: nil) ⇒ Object

The details of a commit (project version).

Parameters:

  • id (String)

    The commit id.

  • author_id (String)

    The author id of the commit.

  • file_size (Integer, nil)

    The size of the commit bundle in bytes.

  • message (String)

    The commit message.

  • ml_model_id (String, nil)

    The model id.

  • storage_uri (String)

    The storage URI where the commit bundle is stored.

  • training_dataset_id (String, nil)

    The training dataset id.

  • validation_dataset_id (String, nil)

    The validation dataset id.

  • date_created (Time) (defaults to: nil)

    The commit creation date.

  • git_commit_ref (String) (defaults to: nil)

    The ref of the corresponding git commit.

  • git_commit_sha (Integer) (defaults to: nil)

    The SHA of the corresponding git commit.

  • git_commit_url (String) (defaults to: nil)

    The URL of the corresponding git commit.



# File 'lib/openlayer/models/projects/commit_create_response.rb', line 106

Instance Attribute Details

#archivedBoolean?

Whether the commit is archived.

Parameters:

  • value (Boolean, nil)

Returns:

  • (Boolean, nil)


18
# File 'lib/openlayer/models/projects/commit_create_response.rb', line 18

optional :archived, Openlayer::Internal::Type::Boolean, nil?: true

#commitOpenlayer::Models::Projects::CommitCreateResponse::Commit

The details of a commit (project version).



12
# File 'lib/openlayer/models/projects/commit_create_response.rb', line 12

required :commit, -> { Openlayer::Models::Projects::CommitCreateResponse::Commit }

#date_archivedTime?

Returns the value of attribute date_archived.

Returns:

  • (Time, nil)


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

def date_archived
  @date_archived
end

#date_createdTime

Returns the value of attribute date_created.

Returns:

  • (Time)


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

def date_created
  @date_created
end

#deployment_statusString?

The deployment status associated with the commit's model.

Parameters:

  • (String)

Returns:

  • (String, nil)


24
# File 'lib/openlayer/models/projects/commit_create_response.rb', line 24

optional :deployment_status, String, api_name: :deploymentStatus

#failing_goal_countInteger

Returns the value of attribute failing_goal_count.

Returns:

  • (Integer)


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

def failing_goal_count
  @failing_goal_count
end

#idString

Returns the value of attribute id.

Returns:

  • (String)


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

def id
  @id
end

Returns the value of attribute links.



58
59
60
# File 'sig/openlayer/models/projects/commit_create_response.rbs', line 58

def links
  @links
end

#ml_model_idString?

Returns the value of attribute ml_model_id.

Returns:

  • (String, nil)


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

def ml_model_id
  @ml_model_id
end

#passing_goal_countInteger

Returns the value of attribute passing_goal_count.

Returns:

  • (Integer)


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

def passing_goal_count
  @passing_goal_count
end

#project_idString

Returns the value of attribute project_id.

Returns:

  • (String)


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

def project_id
  @project_id
end

#statusOpenlayer::Models::Projects::CommitCreateResponse::status

Returns the value of attribute status.

Returns:

  • (Openlayer::Models::Projects::CommitCreateResponse::status)


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

def status
  @status
end

#status_messageString?

Returns the value of attribute status_message.

Returns:

  • (String, nil)


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

def status_message
  @status_message
end

#total_goal_countInteger

Returns the value of attribute total_goal_count.

Returns:

  • (Integer)


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

def total_goal_count
  @total_goal_count
end

#training_dataset_idString?

Returns the value of attribute training_dataset_id.

Returns:

  • (String, nil)


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

def training_dataset_id
  @training_dataset_id
end

#validation_dataset_idString?

Returns the value of attribute validation_dataset_id.

Returns:

  • (String, nil)


56
57
58
# File 'sig/openlayer/models/projects/commit_create_response.rbs', line 56

def validation_dataset_id
  @validation_dataset_id
end

Class Method Details

.valuesArray<Symbol>

Returns:

  • (Array<Symbol>)


# File 'lib/openlayer/models/projects/commit_create_response.rb', line 260

Instance Method Details

#links=Object (readonly)



60
# File 'sig/openlayer/models/projects/commit_create_response.rbs', line 60

def links=: (

#to_hash{

Returns:

  • ({)


83
# File 'sig/openlayer/models/projects/commit_create_response.rbs', line 83

def to_hash: -> {