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.



140
141
142
# File 'generated/google/apis/admin_reports_v1/classes.rb', line 140

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

Instance Attribute Details

#caller_typeString

User or OAuth 2LO request. Corresponds to the JSON property callerType

Returns:

  • (String)


123
124
125
# File 'generated/google/apis/admin_reports_v1/classes.rb', line 123

def caller_type
  @caller_type
end

#emailString

Email address of the user. Corresponds to the JSON property email

Returns:

  • (String)


128
129
130
# File 'generated/google/apis/admin_reports_v1/classes.rb', line 128

def email
  @email
end

#keyString

For OAuth 2LO API requests, consumer_key of the requestor. Corresponds to the JSON property key

Returns:

  • (String)


133
134
135
# File 'generated/google/apis/admin_reports_v1/classes.rb', line 133

def key
  @key
end

#profile_idString

Obfuscated user id of the user. Corresponds to the JSON property profileId

Returns:

  • (String)


138
139
140
# File 'generated/google/apis/admin_reports_v1/classes.rb', line 138

def profile_id
  @profile_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



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

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