Class: Google::Apis::ClouddebuggerV2::ExtendedSourceContext

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

An ExtendedSourceContext is a SourceContext combined with additional details describing the context.

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) ⇒ ExtendedSourceContext

Returns a new instance of ExtendedSourceContext.


511
512
513
# File 'generated/google/apis/clouddebugger_v2/classes.rb', line 511

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

Instance Attribute Details

#contextGoogle::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. Corresponds to the JSON property context


504
505
506
# File 'generated/google/apis/clouddebugger_v2/classes.rb', line 504

def context
  @context
end

#labelsHash<String,String>

Labels with user defined metadata. Corresponds to the JSON property labels

Returns:

  • (Hash<String,String>)

509
510
511
# File 'generated/google/apis/clouddebugger_v2/classes.rb', line 509

def labels
  @labels
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


516
517
518
519
# File 'generated/google/apis/clouddebugger_v2/classes.rb', line 516

def update!(**args)
  @context = args[:context] if args.key?(:context)
  @labels = args[:labels] if args.key?(:labels)
end