Class: MicrosoftGraph::Models::SecurityIntelligenceProfileIndicator
- Inherits:
-
SecurityIndicator
- Object
- Entity
- SecurityIndicator
- MicrosoftGraph::Models::SecurityIntelligenceProfileIndicator
- Includes:
- MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/security_intelligence_profile_indicator.rb
Class Method Summary collapse
-
.create_from_discriminator_value(parse_node) ⇒ Object
Creates a new instance of the appropriate class based on discriminator value.
Instance Method Summary collapse
-
#first_seen_date_time ⇒ Object
Gets the firstSeenDateTime property value.
-
#first_seen_date_time=(value) ⇒ Object
Sets the firstSeenDateTime property value.
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#initialize ⇒ Object
constructor
Instantiates a new securityIntelligenceProfileIndicator and sets the default values.
-
#last_seen_date_time ⇒ Object
Gets the lastSeenDateTime property value.
-
#last_seen_date_time=(value) ⇒ Object
Sets the lastSeenDateTime property value.
-
#serialize(writer) ⇒ Object
Serializes information the current object.
Methods inherited from SecurityIndicator
#artifact, #artifact=, #source, #source=
Methods inherited from Entity
#additional_data, #additional_data=, #id, #id=, #odata_type, #odata_type=
Constructor Details
#initialize ⇒ Object
Instantiates a new securityIntelligenceProfileIndicator and sets the default values.
20 21 22 23 |
# File 'lib/models/security_intelligence_profile_indicator.rb', line 20 def initialize() super @odata_type = "#microsoft.graph.security.intelligenceProfileIndicator" end |
Class Method Details
.create_from_discriminator_value(parse_node) ⇒ Object
Creates a new instance of the appropriate class based on discriminator value
29 30 31 32 |
# File 'lib/models/security_intelligence_profile_indicator.rb', line 29 def self.create_from_discriminator_value(parse_node) raise StandardError, 'parse_node cannot be null' if parse_node.nil? return SecurityIntelligenceProfileIndicator.new end |
Instance Method Details
#first_seen_date_time ⇒ Object
Gets the firstSeenDateTime property value. Designate when an artifact was first used actively in an attack, when a particular sample was compiled, or if neither of those could be ascertained when the file was first seen in public repositories (for example, VirusTotal, ANY.RUN, Hybrid Analysis) or reported publicly.
37 38 39 |
# File 'lib/models/security_intelligence_profile_indicator.rb', line 37 def first_seen_date_time return @first_seen_date_time end |
#first_seen_date_time=(value) ⇒ Object
Sets the firstSeenDateTime property value. Designate when an artifact was first used actively in an attack, when a particular sample was compiled, or if neither of those could be ascertained when the file was first seen in public repositories (for example, VirusTotal, ANY.RUN, Hybrid Analysis) or reported publicly.
45 46 47 |
# File 'lib/models/security_intelligence_profile_indicator.rb', line 45 def first_seen_date_time=(value) @first_seen_date_time = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
52 53 54 55 56 57 |
# File 'lib/models/security_intelligence_profile_indicator.rb', line 52 def get_field_deserializers() return super.merge({ "firstSeenDateTime" => lambda {|n| @first_seen_date_time = n.get_date_time_value() }, "lastSeenDateTime" => lambda {|n| @last_seen_date_time = n.get_date_time_value() }, }) end |
#last_seen_date_time ⇒ Object
Gets the lastSeenDateTime property value. Designate when an artifact was most recently used actively in an attack, when a particular sample was compiled, or if neither of those could be ascertained when the file was first seen in public repositories (for example, VirusTotal, ANY.RUN, Hybrid Analysis) or reported publicly.
62 63 64 |
# File 'lib/models/security_intelligence_profile_indicator.rb', line 62 def last_seen_date_time return @last_seen_date_time end |
#last_seen_date_time=(value) ⇒ Object
Sets the lastSeenDateTime property value. Designate when an artifact was most recently used actively in an attack, when a particular sample was compiled, or if neither of those could be ascertained when the file was first seen in public repositories (for example, VirusTotal, ANY.RUN, Hybrid Analysis) or reported publicly.
70 71 72 |
# File 'lib/models/security_intelligence_profile_indicator.rb', line 70 def last_seen_date_time=(value) @last_seen_date_time = value end |
#serialize(writer) ⇒ Object
Serializes information the current object
78 79 80 81 82 83 |
# File 'lib/models/security_intelligence_profile_indicator.rb', line 78 def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? super writer.write_date_time_value("firstSeenDateTime", @first_seen_date_time) writer.write_date_time_value("lastSeenDateTime", @last_seen_date_time) end |