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

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/admin_reports_v1/classes.rb,
lib/google/apis/admin_reports_v1/representations.rb,
lib/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.



152
153
154
# File 'lib/google/apis/admin_reports_v1/classes.rb', line 152

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 'lib/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 'lib/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 'lib/google/apis/admin_reports_v1/classes.rb', line 143

def key
  @key
end

#profile_idString

The unique Google Workspace profile ID of the actor. This value might be absent if the actor is not a Google Workspace user, or may be the number 105250506097979753968 which acts as a placeholder ID. Corresponds to the JSON property profileId

Returns:

  • (String)


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

def profile_id
  @profile_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



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

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