Class: Google::Apis::CloudsupportV2beta::EmailMessage

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 email associated with a support case.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ EmailMessage

Returns a new instance of EmailMessage.



773
774
775
# File 'lib/google/apis/cloudsupport_v2beta/classes.rb', line 773

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

Instance Attribute Details

#actorGoogle::Apis::CloudsupportV2beta::Actor

An Actor represents an entity that performed an action. For example, an actor could be a user who posted a comment on a support case, a user who uploaded an attachment, or a service account that created a support case. Corresponds to the JSON property actor



741
742
743
# File 'lib/google/apis/cloudsupport_v2beta/classes.rb', line 741

def actor
  @actor
end

#body_contentGoogle::Apis::CloudsupportV2beta::TextContent

Stores text attached to a support object. Corresponds to the JSON property bodyContent



746
747
748
# File 'lib/google/apis/cloudsupport_v2beta/classes.rb', line 746

def body_content
  @body_content
end

#cc_email_addressesArray<String>

Output only. Email addresses CCed on the email. Corresponds to the JSON property ccEmailAddresses

Returns:

  • (Array<String>)


751
752
753
# File 'lib/google/apis/cloudsupport_v2beta/classes.rb', line 751

def cc_email_addresses
  @cc_email_addresses
end

#create_timeString

Output only. Time when this email message object was created. Corresponds to the JSON property createTime

Returns:

  • (String)


756
757
758
# File 'lib/google/apis/cloudsupport_v2beta/classes.rb', line 756

def create_time
  @create_time
end

#nameString

Identifier. Resource name for the email message. Corresponds to the JSON property name

Returns:

  • (String)


761
762
763
# File 'lib/google/apis/cloudsupport_v2beta/classes.rb', line 761

def name
  @name
end

#recipient_email_addressesArray<String>

Output only. Email addresses the email was sent to. Corresponds to the JSON property recipientEmailAddresses

Returns:

  • (Array<String>)


766
767
768
# File 'lib/google/apis/cloudsupport_v2beta/classes.rb', line 766

def recipient_email_addresses
  @recipient_email_addresses
end

#subjectString

Output only. Subject of the email. Corresponds to the JSON property subject

Returns:

  • (String)


771
772
773
# File 'lib/google/apis/cloudsupport_v2beta/classes.rb', line 771

def subject
  @subject
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



778
779
780
781
782
783
784
785
786
# File 'lib/google/apis/cloudsupport_v2beta/classes.rb', line 778

def update!(**args)
  @actor = args[:actor] if args.key?(:actor)
  @body_content = args[:body_content] if args.key?(:body_content)
  @cc_email_addresses = args[:cc_email_addresses] if args.key?(:cc_email_addresses)
  @create_time = args[:create_time] if args.key?(:create_time)
  @name = args[:name] if args.key?(:name)
  @recipient_email_addresses = args[:recipient_email_addresses] if args.key?(:recipient_email_addresses)
  @subject = args[:subject] if args.key?(:subject)
end