Class: Google::Apis::AlertcenterV1beta1::BadWhitelist

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

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

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ BadWhitelist

Returns a new instance of BadWhitelist



252
253
254
# File 'generated/google/apis/alertcenter_v1beta1/classes.rb', line 252

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



235
236
237
# File 'generated/google/apis/alertcenter_v1beta1/classes.rb', line 235

def domain_id
  @domain_id
end

#malicious_entityGoogle::Apis::AlertcenterV1beta1::MaliciousEntity

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



240
241
242
# File 'generated/google/apis/alertcenter_v1beta1/classes.rb', line 240

def malicious_entity
  @malicious_entity
end

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

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



245
246
247
# File 'generated/google/apis/alertcenter_v1beta1/classes.rb', line 245

def messages
  @messages
end

#source_ipString

The source ip address of the malicious email. e.g. "127.0.0.1". Corresponds to the JSON property sourceIp

Returns:

  • (String)


250
251
252
# File 'generated/google/apis/alertcenter_v1beta1/classes.rb', line 250

def source_ip
  @source_ip
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



257
258
259
260
261
262
# File 'generated/google/apis/alertcenter_v1beta1/classes.rb', line 257

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