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

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Create

Returns a new instance of Create



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

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



366
367
368
# File 'generated/google/apis/driveactivity_v2/classes.rb', line 366

def copy
  @copy
end

#newGoogle::Apis::DriveactivityV2::New

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



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

def new
  @new
end

#uploadGoogle::Apis::DriveactivityV2::Upload

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



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

def upload
  @upload
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



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

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