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

Constructor Details

#initialize(**args) ⇒ Actor

Returns a new instance of Actor.



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

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

Instance Attribute Details

#caller_typeString

The type of actor. Corresponds to the JSON property callerType

Returns:

  • (String)


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

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)


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

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)


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

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)


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

def profile_id
  @profile_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



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

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