Class: Google::Apis::DriveactivityV2::Rename

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/driveactivity_v2/classes.rb,
generated/google/apis/driveactivity_v2/representations.rb,
generated/google/apis/driveactivity_v2/representations.rb

Overview

An object was renamed.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Rename

Returns a new instance of Rename.



1207
1208
1209
# File 'generated/google/apis/driveactivity_v2/classes.rb', line 1207

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

Instance Attribute Details

#new_titleString

The new title of the drive object. Corresponds to the JSON property newTitle

Returns:

  • (String)


1200
1201
1202
# File 'generated/google/apis/driveactivity_v2/classes.rb', line 1200

def new_title
  @new_title
end

#old_titleString

The previous title of the drive object. Corresponds to the JSON property oldTitle

Returns:

  • (String)


1205
1206
1207
# File 'generated/google/apis/driveactivity_v2/classes.rb', line 1205

def old_title
  @old_title
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1212
1213
1214
1215
# File 'generated/google/apis/driveactivity_v2/classes.rb', line 1212

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