Class: Openlayer::Models::CommitRetrieveResponse

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

Overview

See Also:

  • Openlayer::Resources::Commits#retrieve

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/commit_retrieve_response.rb', line 105

Instance Attribute Details

#archivedBoolean?

Whether the commit is archived.

Parameters:

  • value (Boolean, nil)

Returns:

  • (Boolean, nil)


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

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

#commitOpenlayer::Models::CommitRetrieveResponse::Commit

The details of a commit (project version).



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

required :commit, -> { Openlayer::Models::CommitRetrieveResponse::Commit }

#date_archivedTime?

Returns the value of attribute date_archived.

Returns:

  • (Time, nil)


35
36
37
# File 'sig/openlayer/models/commit_retrieve_response.rbs', line 35

def date_archived
  @date_archived
end

#date_createdTime

Returns the value of attribute date_created.

Returns:

  • (Time)


37
38
39
# File 'sig/openlayer/models/commit_retrieve_response.rbs', line 37

def date_created
  @date_created
end

#deployment_statusString?

The deployment status associated with the commit's model.

Parameters:

  • (String)

Returns:

  • (String, nil)


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

optional :deployment_status, String, api_name: :deploymentStatus

#failing_goal_countInteger

Returns the value of attribute failing_goal_count.

Returns:

  • (Integer)


39
40
41
# File 'sig/openlayer/models/commit_retrieve_response.rbs', line 39

def failing_goal_count
  @failing_goal_count
end

#idString

Returns the value of attribute id.

Returns:

  • (String)


33
34
35
# File 'sig/openlayer/models/commit_retrieve_response.rbs', line 33

def id
  @id
end

Returns the value of attribute links.



57
58
59
# File 'sig/openlayer/models/commit_retrieve_response.rbs', line 57

def links
  @links
end

#ml_model_idString?

Returns the value of attribute ml_model_id.

Returns:

  • (String, nil)


41
42
43
# File 'sig/openlayer/models/commit_retrieve_response.rbs', line 41

def ml_model_id
  @ml_model_id
end

#passing_goal_countInteger

Returns the value of attribute passing_goal_count.

Returns:

  • (Integer)


43
44
45
# File 'sig/openlayer/models/commit_retrieve_response.rbs', line 43

def passing_goal_count
  @passing_goal_count
end

#project_idString

Returns the value of attribute project_id.

Returns:

  • (String)


45
46
47
# File 'sig/openlayer/models/commit_retrieve_response.rbs', line 45

def project_id
  @project_id
end

#statusOpenlayer::Models::CommitRetrieveResponse::status

Returns the value of attribute status.

Returns:

  • (Openlayer::Models::CommitRetrieveResponse::status)


47
48
49
# File 'sig/openlayer/models/commit_retrieve_response.rbs', line 47

def status
  @status
end

#status_messageString?

Returns the value of attribute status_message.

Returns:

  • (String, nil)


49
50
51
# File 'sig/openlayer/models/commit_retrieve_response.rbs', line 49

def status_message
  @status_message
end

#total_goal_countInteger

Returns the value of attribute total_goal_count.

Returns:

  • (Integer)


51
52
53
# File 'sig/openlayer/models/commit_retrieve_response.rbs', line 51

def total_goal_count
  @total_goal_count
end

#training_dataset_idString?

Returns the value of attribute training_dataset_id.

Returns:

  • (String, nil)


53
54
55
# File 'sig/openlayer/models/commit_retrieve_response.rbs', line 53

def training_dataset_id
  @training_dataset_id
end

#validation_dataset_idString?

Returns the value of attribute validation_dataset_id.

Returns:

  • (String, nil)


55
56
57
# File 'sig/openlayer/models/commit_retrieve_response.rbs', line 55

def validation_dataset_id
  @validation_dataset_id
end

Class Method Details

.valuesArray<Symbol>

Returns:

  • (Array<Symbol>)


# File 'lib/openlayer/models/commit_retrieve_response.rb', line 259

Instance Method Details

#links=Object (readonly)



59
# File 'sig/openlayer/models/commit_retrieve_response.rbs', line 59

def links=: (

#to_hash{

Returns:

  • ({)


82
# File 'sig/openlayer/models/commit_retrieve_response.rbs', line 82

def to_hash: -> {