Class: Google::Apis::DriveactivityV2::Restore

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

Overview

A deleted object was restored.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Restore

Returns a new instance of Restore.



1219
1220
1221
# File 'lib/google/apis/driveactivity_v2/classes.rb', line 1219

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

Instance Attribute Details

#typeString

The type of restore action taken. Corresponds to the JSON property type

Returns:

  • (String)


1217
1218
1219
# File 'lib/google/apis/driveactivity_v2/classes.rb', line 1217

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1224
1225
1226
# File 'lib/google/apis/driveactivity_v2/classes.rb', line 1224

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