Class: Google::Apis::ClouddebuggerV2::SourceContext

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
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

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ SourceContext

Returns a new instance of SourceContext.



241
242
243
# File 'generated/google/apis/clouddebugger_v2/classes.rb', line 241

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#cloud_repoGoogle::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



223
224
225
# File 'generated/google/apis/clouddebugger_v2/classes.rb', line 223

def cloud_repo
  @cloud_repo
end

#cloud_workspaceGoogle::Apis::ClouddebuggerV2::CloudWorkspaceSourceContext

A CloudWorkspaceSourceContext denotes a workspace at a particular snapshot. Corresponds to the JSON property cloudWorkspace



228
229
230
# File 'generated/google/apis/clouddebugger_v2/classes.rb', line 228

def cloud_workspace
  @cloud_workspace
end

#gerritGoogle::Apis::ClouddebuggerV2::GerritSourceContext

A SourceContext referring to a Gerrit project. Corresponds to the JSON property gerrit



233
234
235
# File 'generated/google/apis/clouddebugger_v2/classes.rb', line 233

def gerrit
  @gerrit
end

#gitGoogle::Apis::ClouddebuggerV2::GitSourceContext

A GitSourceContext denotes a particular revision in a third party Git repository (e.g. GitHub). Corresponds to the JSON property git



239
240
241
# File 'generated/google/apis/clouddebugger_v2/classes.rb', line 239

def git
  @git
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



246
247
248
249
250
251
# 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