Class: Google::Apis::CloudsearchV1::RenameEvent

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/cloudsearch_v1/classes.rb,
lib/google/apis/cloudsearch_v1/representations.rb,
lib/google/apis/cloudsearch_v1/representations.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ RenameEvent

Returns a new instance of RenameEvent.



16636
16637
16638
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 16636

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

Instance Attribute Details

#new_nameString

Corresponds to the JSON property newName

Returns:

  • (String)


16629
16630
16631
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 16629

def new_name
  @new_name
end

#original_nameString

Corresponds to the JSON property originalName

Returns:

  • (String)


16634
16635
16636
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 16634

def original_name
  @original_name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



16641
16642
16643
16644
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 16641

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