Class: Google::Apis::AppsactivityV1::Event
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::AppsactivityV1::Event
 
- 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
- 
  
    
      #additional_event_types  ⇒ Array<String> 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Additional event types. 
- 
  
    
      #event_time_millis  ⇒ Fixnum 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The time at which the event occurred formatted as Unix time in milliseconds. 
- 
  
    
      #from_user_deletion  ⇒ Boolean 
    
    
      (also: #from_user_deletion?)
    
  
  
  
  
    
    
  
  
  
  
  
  
    Whether this event is caused by a user being deleted. 
- 
  
    
      #move  ⇒ Google::Apis::AppsactivityV1::Move 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Contains information about changes in an object's parents as a result of a move type event. 
- 
  
    
      #permission_changes  ⇒ Array<Google::Apis::AppsactivityV1::PermissionChange> 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Extra information for permissionChange type events, such as the user or group the new permission applies to. 
- 
  
    
      #primary_event_type  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The main type of event that occurred. 
- 
  
    
      #rename  ⇒ Google::Apis::AppsactivityV1::Rename 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Contains information about a renametype event. 
- 
  
    
      #target  ⇒ Google::Apis::AppsactivityV1::Target 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Information about the object modified by the event. 
- 
  
    
      #user  ⇒ Google::Apis::AppsactivityV1::User 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    A representation of a user. 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ Event 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of Event. 
- 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Update properties of this object. 
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
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_types ⇒ Array<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
| 61 62 63 | # File 'generated/google/apis/appsactivity_v1/classes.rb', line 61 def additional_event_types @additional_event_types end | 
#event_time_millis ⇒ Fixnum
The time at which the event occurred formatted as Unix time in milliseconds.
Corresponds to the JSON property eventTimeMillis
| 66 67 68 | # File 'generated/google/apis/appsactivity_v1/classes.rb', line 66 def event_time_millis @event_time_millis end | 
#from_user_deletion ⇒ Boolean Also known as: from_user_deletion?
Whether this event is caused by a user being deleted.
Corresponds to the JSON property fromUserDeletion
| 71 72 73 | # File 'generated/google/apis/appsactivity_v1/classes.rb', line 71 def from_user_deletion @from_user_deletion end | 
#move ⇒ Google::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_changes ⇒ Array<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 end | 
#primary_event_type ⇒ String
The main type of event that occurred.
Corresponds to the JSON property primaryEventType
| 89 90 91 | # File 'generated/google/apis/appsactivity_v1/classes.rb', line 89 def primary_event_type @primary_event_type end | 
#rename ⇒ Google::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 | 
#target ⇒ Google::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 | 
#user ⇒ Google::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 |