View Source GoogleApi.ContainerAnalysis.V1beta1.Model.Version (google_api_container_analysis v0.28.0)

Version contains structured information about the version of a package.

Attributes

  • epoch (type: integer(), default: nil) - Used to correct mistakes in the version numbering scheme.
  • inclusive (type: boolean(), default: nil) - Whether this version is specifying part of an inclusive range. Grafeas does not have the capability to specify version ranges; instead we have fields that specify start version and end versions. At times this is insufficient - we also need to specify whether the version is included in the range or is excluded from the range. This boolean is expected to be set to true when the version is included in a range.
  • kind (type: String.t, default: nil) - Required. Distinguishes between sentinel MIN/MAX versions and normal versions.
  • name (type: String.t, default: nil) - Required only when version kind is NORMAL. The main part of the version name.
  • revision (type: String.t, default: nil) - The iteration of the package build from the above version.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

@type t() :: %GoogleApi.ContainerAnalysis.V1beta1.Model.Version{
  epoch: integer() | nil,
  inclusive: boolean() | nil,
  kind: String.t() | nil,
  name: String.t() | nil,
  revision: String.t() | nil
}

Functions

@spec decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.