class Google::Apis::ContaineranalysisV1alpha1::GoogleDevtoolsContaineranalysisV1alpha1SourceContext
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
cloud_repo[RW]
gerrit[RW]
A SourceContext referring to a Gerrit project. Corresponds to the JSON property `gerrit` @return [Google::Apis::ContaineranalysisV1alpha1::GoogleDevtoolsContaineranalysisV1alpha1GerritSourceContext]
git[RW]
A GitSourceContext denotes a particular revision in a third party Git repository (e.g., GitHub). Corresponds to the JSON property `git` @return [Google::Apis::ContaineranalysisV1alpha1::GoogleDevtoolsContaineranalysisV1alpha1GitSourceContext]
labels[RW]
Labels with user defined metadata. Corresponds to the JSON property `labels` @return [Hash<String,String>]
Public Class Methods
new(**args)
click to toggle source
# File lib/google/apis/containeranalysis_v1alpha1/classes.rb, line 1882 def initialize(**args) update!(**args) end
Public Instance Methods
update!(**args)
click to toggle source
Update properties of this object
# File lib/google/apis/containeranalysis_v1alpha1/classes.rb, line 1887 def update!(**args) @cloud_repo = args[:cloud_repo] if args.key?(:cloud_repo) @gerrit = args[:gerrit] if args.key?(:gerrit) @git = args[:git] if args.key?(:git) @labels = args[:labels] if args.key?(:labels) end