Class: Google::Apis::DriveactivityV2::Create

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

An object was created.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Create

Returns a new instance of Create.



450
451
452
# File 'lib/google/apis/driveactivity_v2/classes.rb', line 450

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

Instance Attribute Details

#copyGoogle::Apis::DriveactivityV2::Copy

An object was created by copying an existing object. Corresponds to the JSON property copy



438
439
440
# File 'lib/google/apis/driveactivity_v2/classes.rb', line 438

def copy
  @copy
end

#newGoogle::Apis::DriveactivityV2::New

An object was created from scratch. Corresponds to the JSON property new



443
444
445
# File 'lib/google/apis/driveactivity_v2/classes.rb', line 443

def new
  @new
end

#uploadGoogle::Apis::DriveactivityV2::Upload

An object was uploaded into Drive. Corresponds to the JSON property upload



448
449
450
# File 'lib/google/apis/driveactivity_v2/classes.rb', line 448

def upload
  @upload
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



455
456
457
458
459
# File 'lib/google/apis/driveactivity_v2/classes.rb', line 455

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