Class: Google::Apis::CloudsupportV2beta::Actor
- Inherits:
-
Object
- Object
- Google::Apis::CloudsupportV2beta::Actor
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/cloudsupport_v2beta/classes.rb,
lib/google/apis/cloudsupport_v2beta/representations.rb,
lib/google/apis/cloudsupport_v2beta/representations.rb
Overview
An object containing information about the effective user and authenticated principal responsible for an action.
Instance Attribute Summary collapse
-
#display_name ⇒ String
The name to display for the actor.
-
#email ⇒ String
The email address of the actor.
-
#google_support ⇒ Boolean
(also: #google_support?)
Output only.
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.
53 54 55 |
# File 'lib/google/apis/cloudsupport_v2beta/classes.rb', line 53 def initialize(**args) update!(**args) end |
Instance Attribute Details
#display_name ⇒ String
The name to display for the actor. If not provided, it is inferred from
credentials supplied during case creation. When an email is provided, a
display name must also be provided. This will be obfuscated if the user is a
Google Support agent.
Corresponds to the JSON property displayName
36 37 38 |
# File 'lib/google/apis/cloudsupport_v2beta/classes.rb', line 36 def display_name @display_name end |
#email ⇒ String
The email address of the actor. If not provided, it is inferred from
credentials supplied during case creation. If the authenticated principal does
not have an email address, one must be provided. When a name is provided, an
email must also be provided. This will be obfuscated if the user is a Google
Support agent.
Corresponds to the JSON property email
45 46 47 |
# File 'lib/google/apis/cloudsupport_v2beta/classes.rb', line 45 def email @email end |
#google_support ⇒ Boolean Also known as: google_support?
Output only. Whether the actor is a Google support actor.
Corresponds to the JSON property googleSupport
50 51 52 |
# File 'lib/google/apis/cloudsupport_v2beta/classes.rb', line 50 def google_support @google_support end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
58 59 60 61 62 |
# File 'lib/google/apis/cloudsupport_v2beta/classes.rb', line 58 def update!(**args) @display_name = args[:display_name] if args.key?(:display_name) @email = args[:email] if args.key?(:email) @google_support = args[:google_support] if args.key?(:google_support) end |