Class: Google::Apis::AdminReportsV1::Activity::Actor

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

Overview

User doing the action.

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

Returns a new instance of Actor.



150
151
152
# File 'generated/google/apis/admin_reports_v1/classes.rb', line 150

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

Instance Attribute Details

#caller_typeString

The type of actor. Corresponds to the JSON property callerType

Returns:

  • (String)


130
131
132
# File 'generated/google/apis/admin_reports_v1/classes.rb', line 130

def caller_type
  @caller_type
end

#emailString

The primary email address of the actor. May be absent if there is no email address associated with the actor. Corresponds to the JSON property email

Returns:

  • (String)


136
137
138
# File 'generated/google/apis/admin_reports_v1/classes.rb', line 136

def email
  @email
end

#keyString

Only present when callerType is KEY. Can be the consumer_key of the requestor for OAuth 2LO API requests or an identifier for robot accounts. Corresponds to the JSON property key

Returns:

  • (String)


142
143
144
# File 'generated/google/apis/admin_reports_v1/classes.rb', line 142

def key
  @key
end

#profile_idString

The unique G Suite profile ID of the actor. May be absent if the actor is not a G Suite user. Corresponds to the JSON property profileId

Returns:

  • (String)


148
149
150
# File 'generated/google/apis/admin_reports_v1/classes.rb', line 148

def profile_id
  @profile_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



155
156
157
158
159
160
# File 'generated/google/apis/admin_reports_v1/classes.rb', line 155

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