Class: MicrosoftGraph::Models::SecurityHostComponent

Inherits:
SecurityArtifact show all
Includes:
MicrosoftKiotaAbstractions::Parsable
Defined in:
lib/models/security_host_component.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 securityHostComponent and sets the default values.



47
48
49
50
# File 'lib/models/security_host_component.rb', line 47

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

Raises:

  • (StandardError)


56
57
58
59
# File 'lib/models/security_host_component.rb', line 56

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

Instance Method Details

#categoryObject

Gets the category property value. The type of component that was detected (for example, Operating System, Framework, Remote Access, or Server).

Returns:

  • a string



32
33
34
# File 'lib/models/security_host_component.rb', line 32

def category
    return @category
end

#category=(value) ⇒ Object

Sets the category property value. The type of component that was detected (for example, Operating System, Framework, Remote Access, or Server).

Parameters:

  • value

    Value to set for the category property.

Returns:

  • a void



40
41
42
# File 'lib/models/security_host_component.rb', line 40

def category=(value)
    @category = value
end

#first_seen_date_timeObject

Gets the firstSeenDateTime property value. The first date and time when Microsoft Defender Threat Intelligence observed this web component. 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



64
65
66
# File 'lib/models/security_host_component.rb', line 64

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 Microsoft Defender Threat Intelligence observed this web component. 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



72
73
74
# File 'lib/models/security_host_component.rb', line 72

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



79
80
81
82
83
84
85
86
87
88
# File 'lib/models/security_host_component.rb', line 79

def get_field_deserializers()
    return super.merge({
        "category" => lambda {|n| @category = n.get_string_value() },
        "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) }) },
        "lastSeenDateTime" => lambda {|n| @last_seen_date_time = n.get_date_time_value() },
        "name" => lambda {|n| @name = n.get_string_value() },
        "version" => lambda {|n| @version = n.get_string_value() },
    })
end

#hostObject

Gets the host property value. The host property

Returns:

  • a security_host



93
94
95
# File 'lib/models/security_host_component.rb', line 93

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



101
102
103
# File 'lib/models/security_host_component.rb', line 101

def host=(value)
    @host = value
end

#last_seen_date_timeObject

Gets the lastSeenDateTime property value. The most recent date and time when Microsoft Defender Threat Intelligence observed this web component. 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



108
109
110
# File 'lib/models/security_host_component.rb', line 108

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 Microsoft Defender Threat Intelligence observed this web component. 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



116
117
118
# File 'lib/models/security_host_component.rb', line 116

def last_seen_date_time=(value)
    @last_seen_date_time = value
end

#nameObject

Gets the name property value. A name running on the artifact, for example, Microsoft IIS.

Returns:

  • a string



123
124
125
# File 'lib/models/security_host_component.rb', line 123

def name
    return @name
end

#name=(value) ⇒ Object

Sets the name property value. A name running on the artifact, for example, Microsoft IIS.

Parameters:

  • value

    Value to set for the name property.

Returns:

  • a void



131
132
133
# File 'lib/models/security_host_component.rb', line 131

def name=(value)
    @name = 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)


139
140
141
142
143
144
145
146
147
148
# File 'lib/models/security_host_component.rb', line 139

def serialize(writer)
    raise StandardError, 'writer cannot be null' if writer.nil?
    super
    writer.write_string_value("category", @category)
    writer.write_date_time_value("firstSeenDateTime", @first_seen_date_time)
    writer.write_object_value("host", @host)
    writer.write_date_time_value("lastSeenDateTime", @last_seen_date_time)
    writer.write_string_value("name", @name)
    writer.write_string_value("version", @version)
end

#versionObject

Gets the version property value. The component version running on the artifact, for example, v8.5. This should not be assumed to be strictly numerical.

Returns:

  • a string



153
154
155
# File 'lib/models/security_host_component.rb', line 153

def version
    return @version
end

#version=(value) ⇒ Object

Sets the version property value. The component version running on the artifact, for example, v8.5. This should not be assumed to be strictly numerical.

Parameters:

  • value

    Value to set for the version property.

Returns:

  • a void



161
162
163
# File 'lib/models/security_host_component.rb', line 161

def version=(value)
    @version = value
end