Class: Google::Apis::DriveactivityV2::Move

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Move

Returns a new instance of Move.



1123
1124
1125
# File 'lib/google/apis/driveactivity_v2/classes.rb', line 1123

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

Instance Attribute Details

#added_parentsArray<Google::Apis::DriveactivityV2::TargetReference>

The added parent object(s). Corresponds to the JSON property addedParents



1116
1117
1118
# File 'lib/google/apis/driveactivity_v2/classes.rb', line 1116

def added_parents
  @added_parents
end

#removed_parentsArray<Google::Apis::DriveactivityV2::TargetReference>

The removed parent object(s). Corresponds to the JSON property removedParents



1121
1122
1123
# File 'lib/google/apis/driveactivity_v2/classes.rb', line 1121

def removed_parents
  @removed_parents
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1128
1129
1130
1131
# File 'lib/google/apis/driveactivity_v2/classes.rb', line 1128

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