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
- ( ::Grafeas::V1::CloudRepoSourceContext
) — A SourceContext referring to a revision in a Google Cloud Source Repo.
Note: The following fields are mutually exclusive:
cloud_repo
,gerrit
,git
. If a field in that set is populated, all other fields in the set will automatically be cleared.
#cloud_repo=
def
cloud_repo=
(
value
)
-
>
::
Grafeas
::
V1
::
CloudRepoSourceContext
- value( ::Grafeas::V1::CloudRepoSourceContext
) — A SourceContext referring to a revision in a Google Cloud Source Repo.
Note: The following fields are mutually exclusive:
cloud_repo
,gerrit
,git
. If a field in that set is populated, all other fields in the set will automatically be cleared.
- ( ::Grafeas::V1::CloudRepoSourceContext
) — A SourceContext referring to a revision in a Google Cloud Source Repo.
Note: The following fields are mutually exclusive:
cloud_repo
,gerrit
,git
. If a field in that set is populated, all other fields in the set will automatically be cleared.
#gerrit
def
gerrit
()
-
>
::
Grafeas
::
V1
::
GerritSourceContext
- ( ::Grafeas::V1::GerritSourceContext
) — A SourceContext referring to a Gerrit project.
Note: The following fields are mutually exclusive:
gerrit
,cloud_repo
,git
. If a field in that set is populated, all other fields in the set will automatically be cleared.
#gerrit=
def
gerrit=
(
value
)
-
>
::
Grafeas
::
V1
::
GerritSourceContext
- value( ::Grafeas::V1::GerritSourceContext
) — A SourceContext referring to a Gerrit project.
Note: The following fields are mutually exclusive:
gerrit
,cloud_repo
,git
. If a field in that set is populated, all other fields in the set will automatically be cleared.
- ( ::Grafeas::V1::GerritSourceContext
) — A SourceContext referring to a Gerrit project.
Note: The following fields are mutually exclusive:
gerrit
,cloud_repo
,git
. If a field in that set is populated, all other fields in the set will automatically be cleared.
#git
def
git
()
-
>
::
Grafeas
::
V1
::
GitSourceContext
- ( ::Grafeas::V1::GitSourceContext
) — A SourceContext referring to any third party Git repo (e.g., GitHub).
Note: The following fields are mutually exclusive:
git
,cloud_repo
,gerrit
. If a field in that set is populated, all other fields in the set will automatically be cleared.
#git=
def
git=
(
value
)
-
>
::
Grafeas
::
V1
::
GitSourceContext
- value( ::Grafeas::V1::GitSourceContext
) — A SourceContext referring to any third party Git repo (e.g., GitHub).
Note: The following fields are mutually exclusive:
git
,cloud_repo
,gerrit
. If a field in that set is populated, all other fields in the set will automatically be cleared.
- ( ::Grafeas::V1::GitSourceContext
) — A SourceContext referring to any third party Git repo (e.g., GitHub).
Note: The following fields are mutually exclusive:
git
,cloud_repo
,gerrit
. If a field in that set is populated, all other fields in the set will automatically be cleared.
#labels
def
labels
()
-
>
::
Google
::
Protobuf
::
Map
{
::
String
=
>
::
String
}
- (::Google::Protobuf::Map{::String => ::String}) — Labels with user defined metadata.
#labels=
def
labels=
(
value
)
-
>
::
Google
::
Protobuf
::
Map
{
::
String
=
>
::
String
}
- value(::Google::Protobuf::Map{::String => ::String}) — Labels with user defined metadata.
- (::Google::Protobuf::Map{::String => ::String}) — Labels with user defined metadata.