Class: Google::Apis::AlertcenterV1beta1::Entity

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

Individual entity affected by, or related to, an alert.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Entity

Returns a new instance of Entity.



1097
1098
1099
# File 'lib/google/apis/alertcenter_v1beta1/classes.rb', line 1097

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

Instance Attribute Details

Link to a Security Investigation Tool search based on this entity, if available. Corresponds to the JSON property link

Returns:

  • (String)


1083
1084
1085
# File 'lib/google/apis/alertcenter_v1beta1/classes.rb', line 1083

def link
  @link
end

#nameString

Human-readable name of this entity, such as an email address, file ID, or device name. Corresponds to the JSON property name

Returns:

  • (String)


1089
1090
1091
# File 'lib/google/apis/alertcenter_v1beta1/classes.rb', line 1089

def name
  @name
end

#valuesArray<String>

Extra values beyond name. The order of values should align with headers in EntityList. Corresponds to the JSON property values

Returns:

  • (Array<String>)


1095
1096
1097
# File 'lib/google/apis/alertcenter_v1beta1/classes.rb', line 1095

def values
  @values
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1102
1103
1104
1105
1106
# File 'lib/google/apis/alertcenter_v1beta1/classes.rb', line 1102

def update!(**args)
  @link = args[:link] if args.key?(:link)
  @name = args[:name] if args.key?(:name)
  @values = args[:values] if args.key?(:values)
end