Class: Google::Apis::DriveactivityV2::Rename
- Inherits:
-
Object
- Object
- Google::Apis::DriveactivityV2::Rename
- 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
-
#new_title ⇒ String
The new title of the drive object.
-
#old_title ⇒ String
The previous title of the drive object.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Rename
constructor
A new instance of Rename.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Rename
Returns a new instance of Rename
1079 1080 1081 |
# File 'generated/google/apis/driveactivity_v2/classes.rb', line 1079 def initialize(**args) update!(**args) end |
Instance Attribute Details
#new_title ⇒ String
The new title of the drive object.
Corresponds to the JSON property newTitle
1072 1073 1074 |
# File 'generated/google/apis/driveactivity_v2/classes.rb', line 1072 def new_title @new_title end |
#old_title ⇒ String
The previous title of the drive object.
Corresponds to the JSON property oldTitle
1077 1078 1079 |
# File 'generated/google/apis/driveactivity_v2/classes.rb', line 1077 def old_title @old_title end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1084 1085 1086 1087 |
# File 'generated/google/apis/driveactivity_v2/classes.rb', line 1084 def update!(**args) @new_title = args[:new_title] if args.key?(:new_title) @old_title = args[:old_title] if args.key?(:old_title) end |