Class: Google::Apis::AdminReportsV1::Activity::Actor
- Inherits:
-
Object
- Object
- Google::Apis::AdminReportsV1::Activity::Actor
- 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
-
#caller_type ⇒ String
The type of actor.
-
#email ⇒ String
The primary email address of the actor.
-
#key ⇒ String
Only present when
callerType
isKEY
. -
#profile_id ⇒ String
The unique G Suite profile ID of the actor.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Actor
constructor
A new instance of Actor.
-
#update!(**args) ⇒ Object
Update properties of this object.
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_type ⇒ String
The type of actor.
Corresponds to the JSON property callerType
131 132 133 |
# File 'generated/google/apis/admin_reports_v1/classes.rb', line 131 def caller_type @caller_type end |
#email ⇒ String
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
137 138 139 |
# File 'generated/google/apis/admin_reports_v1/classes.rb', line 137 def email @email end |
#key ⇒ String
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
143 144 145 |
# File 'generated/google/apis/admin_reports_v1/classes.rb', line 143 def key @key end |
#profile_id ⇒ String
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
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 |