Class: Google::Apis::AppsactivityV1::Event

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

Represents the changes associated with an action taken by a user.

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

Returns a new instance of Event.



106
107
108
# File 'generated/google/apis/appsactivity_v1/classes.rb', line 106

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

Instance Attribute Details

#additional_event_typesArray<String>

Additional event types. Some events may have multiple types when multiple actions are part of a single event. For example, creating a document, renaming it, and sharing it may be part of a single file-creation event. Corresponds to the JSON property additionalEventTypes

Returns:

  • (Array<String>)


61
62
63
# File 'generated/google/apis/appsactivity_v1/classes.rb', line 61

def additional_event_types
  @additional_event_types
end

#event_time_millisString

The time at which the event occurred formatted as Unix time in milliseconds. Corresponds to the JSON property eventTimeMillis

Returns:

  • (String)


66
67
68
# File 'generated/google/apis/appsactivity_v1/classes.rb', line 66

def event_time_millis
  @event_time_millis
end

#from_user_deletionBoolean Also known as: from_user_deletion?

Whether this event is caused by a user being deleted. Corresponds to the JSON property fromUserDeletion

Returns:

  • (Boolean)


71
72
73
# File 'generated/google/apis/appsactivity_v1/classes.rb', line 71

def from_user_deletion
  @from_user_deletion
end

#moveGoogle::Apis::AppsactivityV1::Move

Contains information about changes in an object's parents as a result of a move type event. Corresponds to the JSON property move



78
79
80
# File 'generated/google/apis/appsactivity_v1/classes.rb', line 78

def move
  @move
end

#permission_changesArray<Google::Apis::AppsactivityV1::PermissionChange>

Extra information for permissionChange type events, such as the user or group the new permission applies to. Corresponds to the JSON property permissionChanges



84
85
86
# File 'generated/google/apis/appsactivity_v1/classes.rb', line 84

def permission_changes
  @permission_changes
end

#primary_event_typeString

The main type of event that occurred. Corresponds to the JSON property primaryEventType

Returns:

  • (String)


89
90
91
# File 'generated/google/apis/appsactivity_v1/classes.rb', line 89

def primary_event_type
  @primary_event_type
end

#renameGoogle::Apis::AppsactivityV1::Rename

Contains information about a renametype event. Corresponds to the JSON property rename



94
95
96
# File 'generated/google/apis/appsactivity_v1/classes.rb', line 94

def rename
  @rename
end

#targetGoogle::Apis::AppsactivityV1::Target

Information about the object modified by the event. Corresponds to the JSON property target



99
100
101
# File 'generated/google/apis/appsactivity_v1/classes.rb', line 99

def target
  @target
end

#userGoogle::Apis::AppsactivityV1::User

A representation of a user. Corresponds to the JSON property user



104
105
106
# File 'generated/google/apis/appsactivity_v1/classes.rb', line 104

def user
  @user
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



111
112
113
114
115
116
117
118
119
120
121
# File 'generated/google/apis/appsactivity_v1/classes.rb', line 111

def update!(**args)
  @additional_event_types = args[:additional_event_types] if args.key?(:additional_event_types)
  @event_time_millis = args[:event_time_millis] if args.key?(:event_time_millis)
  @from_user_deletion = args[:from_user_deletion] if args.key?(:from_user_deletion)
  @move = args[:move] if args.key?(:move)
  @permission_changes = args[:permission_changes] if args.key?(:permission_changes)
  @primary_event_type = args[:primary_event_type] if args.key?(:primary_event_type)
  @rename = args[:rename] if args.key?(:rename)
  @target = args[:target] if args.key?(:target)
  @user = args[:user] if args.key?(:user)
end