Class: MicrosoftGraph::Models::SecurityHostTracker

Inherits:
SecurityArtifact show all
Includes:
MicrosoftKiotaAbstractions::Parsable
Defined in:
lib/models/security_host_tracker.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Entity

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

Constructor Details

#initializeObject

Instantiates a new securityHostTracker and sets the default values.



29
30
31
32
# File 'lib/models/security_host_tracker.rb', line 29

def initialize()
    super
    @odata_type = "#microsoft.graph.security.hostTracker"
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_host_tracker

Raises:

  • (StandardError)


38
39
40
41
# File 'lib/models/security_host_tracker.rb', line 38

def self.create_from_discriminator_value(parse_node)
    raise StandardError, 'parse_node cannot be null' if parse_node.nil?
    return SecurityHostTracker.new
end

Instance Method Details

#first_seen_date_timeObject

Gets the firstSeenDateTime property value. The first date and time when this hostTracker was observed by Microsoft Defender Threat Intelligence. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014, is 2014-01-01T00:00:00Z.

Returns:

  • a date_time



46
47
48
# File 'lib/models/security_host_tracker.rb', line 46

def first_seen_date_time
    return @first_seen_date_time
end

#first_seen_date_time=(value) ⇒ Object

Sets the firstSeenDateTime property value. The first date and time when this hostTracker was observed by Microsoft Defender Threat Intelligence. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014, is 2014-01-01T00:00:00Z.

Parameters:

  • value

    Value to set for the firstSeenDateTime property.

Returns:

  • a void



54
55
56
# File 'lib/models/security_host_tracker.rb', line 54

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



61
62
63
64
65
66
67
68
69
# File 'lib/models/security_host_tracker.rb', line 61

def get_field_deserializers()
    return super.merge({
        "firstSeenDateTime" => lambda {|n| @first_seen_date_time = n.get_date_time_value() },
        "host" => lambda {|n| @host = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::SecurityHost.create_from_discriminator_value(pn) }) },
        "kind" => lambda {|n| @kind = n.get_string_value() },
        "lastSeenDateTime" => lambda {|n| @last_seen_date_time = n.get_date_time_value() },
        "value" => lambda {|n| @value = n.get_string_value() },
    })
end

#hostObject

Gets the host property value. The host property

Returns:

  • a security_host



74
75
76
# File 'lib/models/security_host_tracker.rb', line 74

def host
    return @host
end

#host=(value) ⇒ Object

Sets the host property value. The host property

Parameters:

  • value

    Value to set for the host property.

Returns:

  • a void



82
83
84
# File 'lib/models/security_host_tracker.rb', line 82

def host=(value)
    @host = value
end

#kindObject

Gets the kind property value. The kind of hostTracker that was detected. For example, GoogleAnalyticsID or JarmHash.

Returns:

  • a string



89
90
91
# File 'lib/models/security_host_tracker.rb', line 89

def kind
    return @kind
end

#kind=(value) ⇒ Object

Sets the kind property value. The kind of hostTracker that was detected. For example, GoogleAnalyticsID or JarmHash.

Parameters:

  • value

    Value to set for the kind property.

Returns:

  • a void



97
98
99
# File 'lib/models/security_host_tracker.rb', line 97

def kind=(value)
    @kind = value
end

#last_seen_date_timeObject

Gets the lastSeenDateTime property value. The most recent date and time when this hostTracker was observed by Microsoft Defender Threat Intelligence. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014, is 2014-01-01T00:00:00Z.

Returns:

  • a date_time



104
105
106
# File 'lib/models/security_host_tracker.rb', line 104

def last_seen_date_time
    return @last_seen_date_time
end

#last_seen_date_time=(value) ⇒ Object

Sets the lastSeenDateTime property value. The most recent date and time when this hostTracker was observed by Microsoft Defender Threat Intelligence. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014, is 2014-01-01T00:00:00Z.

Parameters:

  • value

    Value to set for the lastSeenDateTime property.

Returns:

  • a void



112
113
114
# File 'lib/models/security_host_tracker.rb', line 112

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)


120
121
122
123
124
125
126
127
128
# File 'lib/models/security_host_tracker.rb', line 120

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_object_value("host", @host)
    writer.write_string_value("kind", @kind)
    writer.write_date_time_value("lastSeenDateTime", @last_seen_date_time)
    writer.write_string_value("value", @value)
end

#valueObject

Gets the value property value. The identification value for the hostTracker.

Returns:

  • a string



133
134
135
# File 'lib/models/security_host_tracker.rb', line 133

def value
    return @value
end

#value=(value) ⇒ Object

Sets the value property value. The identification value for the hostTracker.

Parameters:

  • value

    Value to set for the value property.

Returns:

  • a void



141
142
143
# File 'lib/models/security_host_tracker.rb', line 141

def value=(value)
    @value = value
end