Skip to content
Back to top
View this page

# ValueCommitId

class dsviper.ValueCommitId(initial_value=None)

  Bases: `object`

  A class used to represent a value of type commit_id.

  Use the static factory method try_parse(…).

  Or use Value.create(Type.COMMIT_ID [, initial_value]).

  INVALID = 0000000000000000000000000000000000000000
  static cast(value: Value) → ValueCommitId

    Return a commit_id or raise.

  copy() → ValueCommitId

    Return a deep copy.

  description(*, namespace: NameSpace | None = None) → str

    Return the description.

  encoded() → str

    Return a Python str.

  hash() → int

    Return the hash value.

  is_valid() → bool

    Return True if the CommitId is not INVALID.

  representation() → str

    Return the representation.

  static try_parse(string: str) → ValueCommitId | None

    Return a commit_id or None.

  type() → Type

    Return the type.

  type_code() → str

    Return the type code.