Class: Google::Apis::CloudsupportV2beta::Actor

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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_nameString

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

Returns:

  • (String)


36
37
38
# File 'lib/google/apis/cloudsupport_v2beta/classes.rb', line 36

def display_name
  @display_name
end

#emailString

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

Returns:

  • (String)


45
46
47
# File 'lib/google/apis/cloudsupport_v2beta/classes.rb', line 45

def email
  @email
end

#google_supportBoolean Also known as: google_support?

Output only. Whether the actor is a Google support actor. Corresponds to the JSON property googleSupport

Returns:

  • (Boolean)


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