Class: MicrosoftGraph::Models::SecurityIntelligenceProfileIndicator

Inherits:
SecurityIndicator show all
Includes:
MicrosoftKiotaAbstractions::Parsable
Defined in:
lib/models/security_intelligence_profile_indicator.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from SecurityIndicator

#artifact, #artifact=, #source, #source=

Methods inherited from Entity

#additional_data, #additional_data=, #id, #id=, #odata_type, #odata_type=

Constructor Details

#initializeObject

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

Parameters:

  • parse_node

    The parse node to use to read the discriminator value and create the object

Returns:

  • a security_intelligence_profile_indicator

Raises:

  • (StandardError)


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_timeObject

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.

Returns:

  • a date_time



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.

Parameters:

  • value

    Value to set for the firstSeenDateTime property.

Returns:

  • a void



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_deserializersObject

The deserialization information for the current model

Returns:

  • a i_dictionary



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_timeObject

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.

Returns:

  • a date_time



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.

Parameters:

  • value

    Value to set for the lastSeenDateTime property.

Returns:

  • a void



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

Parameters:

  • writer

    Serialization writer to use to serialize this model

Returns:

  • a void

Raises:

  • (StandardError)


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