Class: Google::Apis::AlertcenterV1beta1::MailPhishing

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

Proto for all phishing alerts with common payload. Supported types are any of the following: User reported phishing User reported spam spike Suspicious message reported Phishing reclassification Malware reclassification

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

Returns a new instance of MailPhishing



659
660
661
# File 'generated/google/apis/alertcenter_v1beta1/classes.rb', line 659

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

Instance Attribute Details

#domain_idGoogle::Apis::AlertcenterV1beta1::DomainId

Domain id of Gmail phishing alerts. Corresponds to the JSON property domainId



641
642
643
# File 'generated/google/apis/alertcenter_v1beta1/classes.rb', line 641

def domain_id
  @domain_id
end

#is_internalBoolean Also known as: is_internal?

If true, the email is originated from within the organization. Corresponds to the JSON property isInternal

Returns:

  • (Boolean)


646
647
648
# File 'generated/google/apis/alertcenter_v1beta1/classes.rb', line 646

def is_internal
  @is_internal
end

#malicious_entityGoogle::Apis::AlertcenterV1beta1::MaliciousEntity

Entity whose actions triggered a Gmail phishing alert. Corresponds to the JSON property maliciousEntity



652
653
654
# File 'generated/google/apis/alertcenter_v1beta1/classes.rb', line 652

def malicious_entity
  @malicious_entity
end

#messagesArray<Google::Apis::AlertcenterV1beta1::GmailMessageInfo>

Every alert could contain multiple messages. Corresponds to the JSON property messages



657
658
659
# File 'generated/google/apis/alertcenter_v1beta1/classes.rb', line 657

def messages
  @messages
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



664
665
666
667
668
669
# File 'generated/google/apis/alertcenter_v1beta1/classes.rb', line 664

def update!(**args)
  @domain_id = args[:domain_id] if args.key?(:domain_id)
  @is_internal = args[:is_internal] if args.key?(:is_internal)
  @malicious_entity = args[:malicious_entity] if args.key?(:malicious_entity)
  @messages = args[:messages] if args.key?(:messages)
end