Class: Google::Apis::AlertcenterV1beta1::BadWhitelist
- Inherits:
-
Object
- Object
- Google::Apis::AlertcenterV1beta1::BadWhitelist
- 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
Alert for setting the domain or IP that malicious email comes from as whitelisted domain or IP in Gmail advanced settings.
Instance Attribute Summary collapse
-
#domain_id ⇒ Google::Apis::AlertcenterV1beta1::DomainId
Domain ID of Gmail phishing alerts.
-
#malicious_entity ⇒ Google::Apis::AlertcenterV1beta1::MaliciousEntity
Entity whose actions triggered a Gmail phishing alert.
-
#messages ⇒ Array<Google::Apis::AlertcenterV1beta1::GmailMessageInfo>
The list of messages contained by this alert.
-
#source_ip ⇒ String
The source IP address of the malicious email, for example,
127.0.0.1.
Instance Method Summary collapse
-
#initialize(**args) ⇒ BadWhitelist
constructor
A new instance of BadWhitelist.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ BadWhitelist
Returns a new instance of BadWhitelist.
675 676 677 |
# File 'lib/google/apis/alertcenter_v1beta1/classes.rb', line 675 def initialize(**args) update!(**args) end |
Instance Attribute Details
#domain_id ⇒ Google::Apis::AlertcenterV1beta1::DomainId
Domain ID of Gmail phishing alerts.
Corresponds to the JSON property domainId
658 659 660 |
# File 'lib/google/apis/alertcenter_v1beta1/classes.rb', line 658 def domain_id @domain_id end |
#malicious_entity ⇒ Google::Apis::AlertcenterV1beta1::MaliciousEntity
Entity whose actions triggered a Gmail phishing alert.
Corresponds to the JSON property maliciousEntity
663 664 665 |
# File 'lib/google/apis/alertcenter_v1beta1/classes.rb', line 663 def malicious_entity @malicious_entity end |
#messages ⇒ Array<Google::Apis::AlertcenterV1beta1::GmailMessageInfo>
The list of messages contained by this alert.
Corresponds to the JSON property messages
668 669 670 |
# File 'lib/google/apis/alertcenter_v1beta1/classes.rb', line 668 def @messages end |
#source_ip ⇒ String
The source IP address of the malicious email, for example, 127.0.0.1.
Corresponds to the JSON property sourceIp
673 674 675 |
# File 'lib/google/apis/alertcenter_v1beta1/classes.rb', line 673 def source_ip @source_ip end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
680 681 682 683 684 685 |
# File 'lib/google/apis/alertcenter_v1beta1/classes.rb', line 680 def update!(**args) @domain_id = args[:domain_id] if args.key?(:domain_id) @malicious_entity = args[:malicious_entity] if args.key?(:malicious_entity) @messages = args[:messages] if args.key?(:messages) @source_ip = args[:source_ip] if args.key?(:source_ip) end |