Class: Google::Apis::AlertcenterV1beta1::GmailMessageInfo
- Inherits:
-
Object
- Object
- Google::Apis::AlertcenterV1beta1::GmailMessageInfo
- 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
-
#attachments_sha256_hash ⇒ Array<String>
The
SHA256
hash of email's attachment and all MIME parts. -
#date ⇒ String
The date of the event related to this email.
-
#md5_hash_message_body ⇒ String
The hash of the message body text.
-
#md5_hash_subject ⇒ String
The MD5 Hash of email's subject (only available for reported emails).
-
#message_body_snippet ⇒ String
The snippet of the message body text (only available for reported emails).
-
#message_id ⇒ String
The message ID.
-
#recipient ⇒ String
The recipient of this email.
-
#sent_time ⇒ String
The sent time of the email.
-
#subject_text ⇒ String
The email subject text (only available for reported emails).
Instance Method Summary collapse
-
#initialize(**args) ⇒ GmailMessageInfo
constructor
A new instance of GmailMessageInfo.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GmailMessageInfo
Returns a new instance of GmailMessageInfo.
1258 1259 1260 |
# File 'lib/google/apis/alertcenter_v1beta1/classes.rb', line 1258 def initialize(**args) update!(**args) end |
Instance Attribute Details
#attachments_sha256_hash ⇒ Array<String>
The SHA256
hash of email's attachment and all MIME parts.
Corresponds to the JSON property attachmentsSha256Hash
1216 1217 1218 |
# File 'lib/google/apis/alertcenter_v1beta1/classes.rb', line 1216 def @attachments_sha256_hash end |
#date ⇒ String
The date of the event related to this email.
Corresponds to the JSON property date
1221 1222 1223 |
# File 'lib/google/apis/alertcenter_v1beta1/classes.rb', line 1221 def date @date end |
#md5_hash_message_body ⇒ String
The hash of the message body text.
Corresponds to the JSON property md5HashMessageBody
1226 1227 1228 |
# File 'lib/google/apis/alertcenter_v1beta1/classes.rb', line 1226 def @md5_hash_message_body end |
#md5_hash_subject ⇒ String
The MD5 Hash of email's subject (only available for reported emails).
Corresponds to the JSON property md5HashSubject
1231 1232 1233 |
# File 'lib/google/apis/alertcenter_v1beta1/classes.rb', line 1231 def md5_hash_subject @md5_hash_subject end |
#message_body_snippet ⇒ String
The snippet of the message body text (only available for reported emails).
Corresponds to the JSON property messageBodySnippet
1236 1237 1238 |
# File 'lib/google/apis/alertcenter_v1beta1/classes.rb', line 1236 def @message_body_snippet end |
#message_id ⇒ String
The message ID.
Corresponds to the JSON property messageId
1241 1242 1243 |
# File 'lib/google/apis/alertcenter_v1beta1/classes.rb', line 1241 def @message_id end |
#recipient ⇒ String
The recipient of this email.
Corresponds to the JSON property recipient
1246 1247 1248 |
# File 'lib/google/apis/alertcenter_v1beta1/classes.rb', line 1246 def recipient @recipient end |
#sent_time ⇒ String
The sent time of the email.
Corresponds to the JSON property sentTime
1251 1252 1253 |
# File 'lib/google/apis/alertcenter_v1beta1/classes.rb', line 1251 def sent_time @sent_time end |
#subject_text ⇒ String
The email subject text (only available for reported emails).
Corresponds to the JSON property subjectText
1256 1257 1258 |
# File 'lib/google/apis/alertcenter_v1beta1/classes.rb', line 1256 def subject_text @subject_text end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 |
# File 'lib/google/apis/alertcenter_v1beta1/classes.rb', line 1263 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 |