Class: Google::Apis::AlertcenterV1beta1::MaliciousEntity

Inherits:
Object
  • Object
show all
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

Entity whose actions triggered a Gmail phishing alert.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ MaliciousEntity

Returns a new instance of MaliciousEntity.



1349
1350
1351
# File 'lib/google/apis/alertcenter_v1beta1/classes.rb', line 1349

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

Instance Attribute Details

#display_nameString

The header from display name. Corresponds to the JSON property displayName

Returns:

  • (String)


1337
1338
1339
# File 'lib/google/apis/alertcenter_v1beta1/classes.rb', line 1337

def display_name
  @display_name
end

#entityGoogle::Apis::AlertcenterV1beta1::User

A user. Corresponds to the JSON property entity



1342
1343
1344
# File 'lib/google/apis/alertcenter_v1beta1/classes.rb', line 1342

def entity
  @entity
end

#from_headerString

The sender email address. Corresponds to the JSON property fromHeader

Returns:

  • (String)


1347
1348
1349
# File 'lib/google/apis/alertcenter_v1beta1/classes.rb', line 1347

def from_header
  @from_header
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1354
1355
1356
1357
1358
# File 'lib/google/apis/alertcenter_v1beta1/classes.rb', line 1354

def update!(**args)
  @display_name = args[:display_name] if args.key?(:display_name)
  @entity = args[:entity] if args.key?(:entity)
  @from_header = args[:from_header] if args.key?(:from_header)
end