Class: Google::Apis::ClouddebuggerV2::SourceContext
- Inherits:
-
Object
- Object
- Google::Apis::ClouddebuggerV2::SourceContext
- Defined in:
- generated/google/apis/clouddebugger_v2/classes.rb,
generated/google/apis/clouddebugger_v2/representations.rb,
generated/google/apis/clouddebugger_v2/representations.rb
Overview
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.
Instance Attribute Summary collapse
-
#cloud_repo ⇒ Google::Apis::ClouddebuggerV2::CloudRepoSourceContext
A CloudRepoSourceContext denotes a particular revision in a cloud repo (a repo hosted by the Google Cloud Platform).
-
#cloud_workspace ⇒ Google::Apis::ClouddebuggerV2::CloudWorkspaceSourceContext
A CloudWorkspaceSourceContext denotes a workspace at a particular snapshot.
-
#gerrit ⇒ Google::Apis::ClouddebuggerV2::GerritSourceContext
A SourceContext referring to a Gerrit project.
-
#git ⇒ Google::Apis::ClouddebuggerV2::GitSourceContext
A GitSourceContext denotes a particular revision in a third party Git repository (e.g. GitHub).
Instance Method Summary collapse
-
#initialize(**args) ⇒ SourceContext
constructor
A new instance of SourceContext.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Google::Apis::Core::JsonObjectSupport
Methods included from Google::Apis::Core::Hashable
Constructor Details
#initialize(**args) ⇒ SourceContext
Returns a new instance of SourceContext
639 640 641 |
# File 'generated/google/apis/clouddebugger_v2/classes.rb', line 639 def initialize(**args) update!(**args) end |
Instance Attribute Details
#cloud_repo ⇒ Google::Apis::ClouddebuggerV2::CloudRepoSourceContext
A CloudRepoSourceContext denotes a particular revision in a cloud
repo (a repo hosted by the Google Cloud Platform).
Corresponds to the JSON property cloudRepo
632 633 634 |
# File 'generated/google/apis/clouddebugger_v2/classes.rb', line 632 def cloud_repo @cloud_repo end |
#cloud_workspace ⇒ Google::Apis::ClouddebuggerV2::CloudWorkspaceSourceContext
A CloudWorkspaceSourceContext denotes a workspace at a particular snapshot.
Corresponds to the JSON property cloudWorkspace
637 638 639 |
# File 'generated/google/apis/clouddebugger_v2/classes.rb', line 637 def cloud_workspace @cloud_workspace end |
#gerrit ⇒ Google::Apis::ClouddebuggerV2::GerritSourceContext
A SourceContext referring to a Gerrit project.
Corresponds to the JSON property gerrit
626 627 628 |
# File 'generated/google/apis/clouddebugger_v2/classes.rb', line 626 def gerrit @gerrit end |
#git ⇒ Google::Apis::ClouddebuggerV2::GitSourceContext
A GitSourceContext denotes a particular revision in a third party Git
repository (e.g. GitHub).
Corresponds to the JSON property git
621 622 623 |
# File 'generated/google/apis/clouddebugger_v2/classes.rb', line 621 def git @git end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
644 645 646 647 648 649 |
# File 'generated/google/apis/clouddebugger_v2/classes.rb', line 644 def update!(**args) @git = args[:git] if args.key?(:git) @gerrit = args[:gerrit] if args.key?(:gerrit) @cloud_repo = args[:cloud_repo] if args.key?(:cloud_repo) @cloud_workspace = args[:cloud_workspace] if args.key?(:cloud_workspace) end |