Reference documentation and code samples for the Grafeas V1 API class Grafeas::V1::SourceContext.
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.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#cloud_repo
def cloud_repo() -> ::Grafeas::V1::CloudRepoSourceContext
Returns
- (::Grafeas::V1::CloudRepoSourceContext) — A SourceContext referring to a revision in a Google Cloud Source Repo.
#cloud_repo=
def cloud_repo=(value) -> ::Grafeas::V1::CloudRepoSourceContext
Parameter
- value (::Grafeas::V1::CloudRepoSourceContext) — A SourceContext referring to a revision in a Google Cloud Source Repo.
Returns
- (::Grafeas::V1::CloudRepoSourceContext) — A SourceContext referring to a revision in a Google Cloud Source Repo.
#gerrit
def gerrit() -> ::Grafeas::V1::GerritSourceContext
Returns
- (::Grafeas::V1::GerritSourceContext) — A SourceContext referring to a Gerrit project.
#gerrit=
def gerrit=(value) -> ::Grafeas::V1::GerritSourceContext
Parameter
- value (::Grafeas::V1::GerritSourceContext) — A SourceContext referring to a Gerrit project.
Returns
- (::Grafeas::V1::GerritSourceContext) — A SourceContext referring to a Gerrit project.
#git
def git() -> ::Grafeas::V1::GitSourceContext
Returns
- (::Grafeas::V1::GitSourceContext) — A SourceContext referring to any third party Git repo (e.g., GitHub).
#git=
def git=(value) -> ::Grafeas::V1::GitSourceContext
Parameter
- value (::Grafeas::V1::GitSourceContext) — A SourceContext referring to any third party Git repo (e.g., GitHub).
Returns
- (::Grafeas::V1::GitSourceContext) — A SourceContext referring to any third party Git repo (e.g., GitHub).
#labels
def labels() -> ::Google::Protobuf::Map{::String => ::String}
Returns
- (::Google::Protobuf::Map{::String => ::String}) — Labels with user defined metadata.
#labels=
def labels=(value) -> ::Google::Protobuf::Map{::String => ::String}
Parameter
- value (::Google::Protobuf::Map{::String => ::String}) — Labels with user defined metadata.
Returns
- (::Google::Protobuf::Map{::String => ::String}) — Labels with user defined metadata.