Class: MicrosoftGraph::Models::SecurityHostComponent
- Inherits:
-
SecurityArtifact
- Object
- Entity
- SecurityArtifact
- MicrosoftGraph::Models::SecurityHostComponent
- Includes:
- MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/security_host_component.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
-
#category ⇒ Object
Gets the category property value.
-
#category=(value) ⇒ Object
Sets the category property value.
-
#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.
-
#host ⇒ Object
Gets the host property value.
-
#host=(value) ⇒ Object
Sets the host property value.
-
#initialize ⇒ Object
constructor
Instantiates a new securityHostComponent 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.
-
#name ⇒ Object
Gets the name property value.
-
#name=(value) ⇒ Object
Sets the name property value.
-
#serialize(writer) ⇒ Object
Serializes information the current object.
-
#version ⇒ Object
Gets the version property value.
-
#version=(value) ⇒ Object
Sets the version property value.
Methods inherited from Entity
#additional_data, #additional_data=, #id, #id=, #odata_type, #odata_type=
Constructor Details
#initialize ⇒ Object
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
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
#category ⇒ Object
Gets the category property value. The type of component that was detected (for example, Operating System, Framework, Remote Access, or Server).
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).
40 41 42 |
# File 'lib/models/security_host_component.rb', line 40 def category=(value) @category = value end |
#first_seen_date_time ⇒ Object
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.
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.
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_deserializers ⇒ Object
The deserialization information for the current model
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 |
#host ⇒ Object
Gets the host property value. The host property
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
101 102 103 |
# File 'lib/models/security_host_component.rb', line 101 def host=(value) @host = value end |
#last_seen_date_time ⇒ Object
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.
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.
116 117 118 |
# File 'lib/models/security_host_component.rb', line 116 def last_seen_date_time=(value) @last_seen_date_time = value end |
#name ⇒ Object
Gets the name property value. A name running on the artifact, for example, Microsoft IIS.
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.
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
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 |
#version ⇒ Object
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.
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.
161 162 163 |
# File 'lib/models/security_host_component.rb', line 161 def version=(value) @version = value end |