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

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

Overview

Details of a message in phishing spike alert.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ GmailMessageInfo

Returns a new instance of GmailMessageInfo



484
485
486
# File 'generated/google/apis/alertcenter_v1beta1/classes.rb', line 484

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>)


447
448
449
# File 'generated/google/apis/alertcenter_v1beta1/classes.rb', line 447

def attachments_sha256_hash
  @attachments_sha256_hash
end

#dateString

The date the malicious email was sent. Corresponds to the JSON property date

Returns:

  • (String)


452
453
454
# File 'generated/google/apis/alertcenter_v1beta1/classes.rb', line 452

def date
  @date
end

#md5_hash_message_bodyString

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

Returns:

  • (String)


457
458
459
# File 'generated/google/apis/alertcenter_v1beta1/classes.rb', line 457

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)


462
463
464
# File 'generated/google/apis/alertcenter_v1beta1/classes.rb', line 462

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)


467
468
469
# File 'generated/google/apis/alertcenter_v1beta1/classes.rb', line 467

def message_body_snippet
  @message_body_snippet
end

#message_idString

The message ID. Corresponds to the JSON property messageId

Returns:

  • (String)


472
473
474
# File 'generated/google/apis/alertcenter_v1beta1/classes.rb', line 472

def message_id
  @message_id
end

#recipientString

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

Returns:

  • (String)


477
478
479
# File 'generated/google/apis/alertcenter_v1beta1/classes.rb', line 477

def recipient
  @recipient
end

#subject_textString

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

Returns:

  • (String)


482
483
484
# File 'generated/google/apis/alertcenter_v1beta1/classes.rb', line 482

def subject_text
  @subject_text
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



489
490
491
492
493
494
495
496
497
498
# File 'generated/google/apis/alertcenter_v1beta1/classes.rb', line 489

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)
  @subject_text = args[:subject_text] if args.key?(:subject_text)
end