Class: Google::Apis::AppsactivityV1::Move

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/appsactivity_v1/classes.rb,
generated/google/apis/appsactivity_v1/representations.rb,
generated/google/apis/appsactivity_v1/representations.rb

Overview

Contains information about changes in an object's parents as a result of a move type event.

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

Returns a new instance of Move



165
166
167
# File 'generated/google/apis/appsactivity_v1/classes.rb', line 165

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

Instance Attribute Details

#added_parentsArray<Google::Apis::AppsactivityV1::Parent>

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



158
159
160
# File 'generated/google/apis/appsactivity_v1/classes.rb', line 158

def added_parents
  @added_parents
end

#removed_parentsArray<Google::Apis::AppsactivityV1::Parent>

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



163
164
165
# File 'generated/google/apis/appsactivity_v1/classes.rb', line 163

def removed_parents
  @removed_parents
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



170
171
172
173
# File 'generated/google/apis/appsactivity_v1/classes.rb', line 170

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