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



349
350
351
# File 'generated/google/apis/driveactivity_v2/classes.rb', line 349

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



347
348
349
# File 'generated/google/apis/driveactivity_v2/classes.rb', line 347

def original_object
  @original_object
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



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

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