Class: Google::Apis::AlertcenterV1beta1::GmailMessageInfo

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/alertcenter_v1beta1/classes.rb,
lib/google/apis/alertcenter_v1beta1/representations.rb,
lib/google/apis/alertcenter_v1beta1/representations.rb

Overview

Details of a message in phishing spike alert.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GmailMessageInfo

Returns a new instance of GmailMessageInfo.



1030
1031
1032
# File 'lib/google/apis/alertcenter_v1beta1/classes.rb', line 1030

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

Instance Attribute Details

#attachments_sha256_hashArray<String>

The SHA256 hash of email's attachment and all MIME parts. Corresponds to the JSON property attachmentsSha256Hash

Returns:

  • (Array<String>)


988
989
990
# File 'lib/google/apis/alertcenter_v1beta1/classes.rb', line 988

def attachments_sha256_hash
  @attachments_sha256_hash
end

#dateString

The date of the event related to this email. Corresponds to the JSON property date

Returns:

  • (String)


993
994
995
# File 'lib/google/apis/alertcenter_v1beta1/classes.rb', line 993

def date
  @date
end

#md5_hash_message_bodyString

The hash of the message body text. Corresponds to the JSON property md5HashMessageBody

Returns:

  • (String)


998
999
1000
# File 'lib/google/apis/alertcenter_v1beta1/classes.rb', line 998

def md5_hash_message_body
  @md5_hash_message_body
end

#md5_hash_subjectString

The MD5 Hash of email's subject (only available for reported emails). Corresponds to the JSON property md5HashSubject

Returns:

  • (String)


1003
1004
1005
# File 'lib/google/apis/alertcenter_v1beta1/classes.rb', line 1003

def md5_hash_subject
  @md5_hash_subject
end

#message_body_snippetString

The snippet of the message body text (only available for reported emails). Corresponds to the JSON property messageBodySnippet

Returns:

  • (String)


1008
1009
1010
# File 'lib/google/apis/alertcenter_v1beta1/classes.rb', line 1008

def message_body_snippet
  @message_body_snippet
end

#message_idString

The message ID. Corresponds to the JSON property messageId

Returns:

  • (String)


1013
1014
1015
# File 'lib/google/apis/alertcenter_v1beta1/classes.rb', line 1013

def message_id
  @message_id
end

#recipientString

The recipient of this email. Corresponds to the JSON property recipient

Returns:

  • (String)


1018
1019
1020
# File 'lib/google/apis/alertcenter_v1beta1/classes.rb', line 1018

def recipient
  @recipient
end

#sent_timeString

The sent time of the email. Corresponds to the JSON property sentTime

Returns:

  • (String)


1023
1024
1025
# File 'lib/google/apis/alertcenter_v1beta1/classes.rb', line 1023

def sent_time
  @sent_time
end

#subject_textString

The email subject text (only available for reported emails). Corresponds to the JSON property subjectText

Returns:

  • (String)


1028
1029
1030
# File 'lib/google/apis/alertcenter_v1beta1/classes.rb', line 1028

def subject_text
  @subject_text
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
# File 'lib/google/apis/alertcenter_v1beta1/classes.rb', line 1035

def update!(**args)
  @attachments_sha256_hash = args[:attachments_sha256_hash] if args.key?(:attachments_sha256_hash)
  @date = args[:date] if args.key?(:date)
  @md5_hash_message_body = args[:md5_hash_message_body] if args.key?(:md5_hash_message_body)
  @md5_hash_subject = args[:md5_hash_subject] if args.key?(:md5_hash_subject)
  @message_body_snippet = args[:message_body_snippet] if args.key?(:message_body_snippet)
  @message_id = args[:message_id] if args.key?(:message_id)
  @recipient = args[:recipient] if args.key?(:recipient)
  @sent_time = args[:sent_time] if args.key?(:sent_time)
  @subject_text = args[:subject_text] if args.key?(:subject_text)
end