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

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 created.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Create

Returns a new instance of Create.



384
385
386
# File 'generated/google/apis/driveactivity_v2/classes.rb', line 384

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



372
373
374
# File 'generated/google/apis/driveactivity_v2/classes.rb', line 372

def copy
  @copy
end

#newGoogle::Apis::DriveactivityV2::New

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



377
378
379
# File 'generated/google/apis/driveactivity_v2/classes.rb', line 377

def new
  @new
end

#uploadGoogle::Apis::DriveactivityV2::Upload

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



382
383
384
# File 'generated/google/apis/driveactivity_v2/classes.rb', line 382

def upload
  @upload
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



389
390
391
392
393
# File 'generated/google/apis/driveactivity_v2/classes.rb', line 389

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