Class: Google::Apis::DriveactivityV2::Copy

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 by copying an existing object.

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) ⇒ Copy

Returns a new instance of Copy.


355
356
357
# File 'generated/google/apis/driveactivity_v2/classes.rb', line 355

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

Instance Attribute Details

#original_objectGoogle::Apis::DriveactivityV2::TargetReference

A lightweight reference to the target of activity. Corresponds to the JSON property originalObject


353
354
355
# File 'generated/google/apis/driveactivity_v2/classes.rb', line 353

def original_object
  @original_object
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


360
361
362
# File 'generated/google/apis/driveactivity_v2/classes.rb', line 360

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