Class: Google::Apis::ClouddebuggerV2::AliasContext

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 alias to a repo revision.

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

Returns a new instance of AliasContext



770
771
772
# File 'generated/google/apis/clouddebugger_v2/classes.rb', line 770

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

Instance Attribute Details

#kindString

The alias kind. Corresponds to the JSON property kind

Returns:

  • (String)


768
769
770
# File 'generated/google/apis/clouddebugger_v2/classes.rb', line 768

def kind
  @kind
end

#nameString

The alias name. Corresponds to the JSON property name

Returns:

  • (String)


763
764
765
# File 'generated/google/apis/clouddebugger_v2/classes.rb', line 763

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



775
776
777
778
# File 'generated/google/apis/clouddebugger_v2/classes.rb', line 775

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