class Google::Apis::ClouddebuggerV2::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.
Attributes
A CloudRepoSourceContext denotes a particular revision in a cloud repo (a repo hosted by the Google Cloud Platform). Corresponds to the JSON property `cloudRepo` @return [Google::Apis::ClouddebuggerV2::CloudRepoSourceContext]
A CloudWorkspaceSourceContext denotes a workspace at a particular snapshot. Corresponds to the JSON property `cloudWorkspace` @return [Google::Apis::ClouddebuggerV2::CloudWorkspaceSourceContext]
A SourceContext referring to a Gerrit project. Corresponds to the JSON property `gerrit` @return [Google::Apis::ClouddebuggerV2::GerritSourceContext]
A GitSourceContext denotes a particular revision in a third party Git repository (e.g. GitHub). Corresponds to the JSON property `git` @return [Google::Apis::ClouddebuggerV2::GitSourceContext]
Public Class Methods
# File generated/google/apis/clouddebugger_v2/classes.rb, line 241 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File generated/google/apis/clouddebugger_v2/classes.rb, line 246 def update!(**args) @cloud_repo = args[:cloud_repo] if args.key?(:cloud_repo) @cloud_workspace = args[:cloud_workspace] if args.key?(:cloud_workspace) @gerrit = args[:gerrit] if args.key?(:gerrit) @git = args[:git] if args.key?(:git) end