Class: Openlayer::Models::CommitRetrieveResponse

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

Overview

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) (defaults to: )

    The commit id.

  • author_id (String) (defaults to: )

    The author id of the commit.

  • file_size (Integer, nil) (defaults to: )

    The size of the commit bundle in bytes.

  • message (String) (defaults to: )

    The commit message.

  • ml_model_id (String, nil) (defaults to: )

    The model id.

  • storage_uri (String) (defaults to: )

    The storage URI where the commit bundle is stored.

  • training_dataset_id (String, nil) (defaults to: )

    The training dataset id.

  • validation_dataset_id (String, nil) (defaults to: )

    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.

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 }

#deployment_statusString?

The deployment status associated with the commit’s model.

Returns:

  • (String, nil)


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

optional :deployment_status, String, api_name: :deploymentStatus

Class Method Details

.valuesArray<Symbol>

Returns:

  • (Array<Symbol>)


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