Class: Google::Apis::AlertcenterV1beta1::MaliciousEntity
- Inherits:
-
Object
- Object
- Google::Apis::AlertcenterV1beta1::MaliciousEntity
- 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
-
#display_name ⇒ String
The header from display name.
-
#entity ⇒ Google::Apis::AlertcenterV1beta1::User
A user.
-
#from_header ⇒ String
The sender email address.
Instance Method Summary collapse
-
#initialize(**args) ⇒ MaliciousEntity
constructor
A new instance of MaliciousEntity.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ MaliciousEntity
Returns a new instance of MaliciousEntity.
1176 1177 1178 |
# File 'lib/google/apis/alertcenter_v1beta1/classes.rb', line 1176 def initialize(**args) update!(**args) end |
Instance Attribute Details
#display_name ⇒ String
The header from display name.
Corresponds to the JSON property displayName
1164 1165 1166 |
# File 'lib/google/apis/alertcenter_v1beta1/classes.rb', line 1164 def display_name @display_name end |
#entity ⇒ Google::Apis::AlertcenterV1beta1::User
A user.
Corresponds to the JSON property entity
1169 1170 1171 |
# File 'lib/google/apis/alertcenter_v1beta1/classes.rb', line 1169 def entity @entity end |
#from_header ⇒ String
The sender email address.
Corresponds to the JSON property fromHeader
1174 1175 1176 |
# File 'lib/google/apis/alertcenter_v1beta1/classes.rb', line 1174 def from_header @from_header end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1181 1182 1183 1184 1185 |
# File 'lib/google/apis/alertcenter_v1beta1/classes.rb', line 1181 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 |