View Source GoogleApi.ContainerAnalysis.V1.Model.SourceContext (google_api_container_analysis v0.28.0)

A SourceContext is a reference to a tree of files. A SourceContext together with a path point to a unique revision of a single file or directory.

Attributes

  • cloudRepo (type: GoogleApi.ContainerAnalysis.V1.Model.CloudRepoSourceContext.t, default: nil) - A SourceContext referring to a revision in a Google Cloud Source Repo.
  • gerrit (type: GoogleApi.ContainerAnalysis.V1.Model.GerritSourceContext.t, default: nil) - A SourceContext referring to a Gerrit project.
  • git (type: GoogleApi.ContainerAnalysis.V1.Model.GitSourceContext.t, default: nil) - A SourceContext referring to any third party Git repo (e.g., GitHub).
  • labels (type: map(), default: nil) - Labels with user defined metadata.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

@type t() :: %GoogleApi.ContainerAnalysis.V1.Model.SourceContext{
  cloudRepo:
    GoogleApi.ContainerAnalysis.V1.Model.CloudRepoSourceContext.t() | nil,
  gerrit: GoogleApi.ContainerAnalysis.V1.Model.GerritSourceContext.t() | nil,
  git: GoogleApi.ContainerAnalysis.V1.Model.GitSourceContext.t() | nil,
  labels: map() | nil
}

Functions

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

Unwrap a decoded JSON object into its complex fields.