Class: MicrosoftGraph::Models::SecurityHostTracker
- Inherits:
-
SecurityArtifact
- Object
- Entity
- SecurityArtifact
- MicrosoftGraph::Models::SecurityHostTracker
- Includes:
- MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/security_host_tracker.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.
-
#host ⇒ Object
Gets the host property value.
-
#host=(value) ⇒ Object
Sets the host property value.
-
#initialize ⇒ Object
constructor
Instantiates a new securityHostTracker and sets the default values.
-
#kind ⇒ Object
Gets the kind property value.
-
#kind=(value) ⇒ Object
Sets the kind property value.
-
#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.
-
#value ⇒ Object
Gets the value property value.
-
#value=(value) ⇒ Object
Sets the value property value.
Methods inherited from Entity
#additional_data, #additional_data=, #id, #id=, #odata_type, #odata_type=
Constructor Details
#initialize ⇒ Object
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
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_time ⇒ Object
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.
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.
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_deserializers ⇒ Object
The deserialization information for the current model
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 |
#host ⇒ Object
Gets the host property value. The host property
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
82 83 84 |
# File 'lib/models/security_host_tracker.rb', line 82 def host=(value) @host = value end |
#kind ⇒ Object
Gets the kind property value. The kind of hostTracker that was detected. For example, GoogleAnalyticsID or JarmHash.
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.
97 98 99 |
# File 'lib/models/security_host_tracker.rb', line 97 def kind=(value) @kind = value end |
#last_seen_date_time ⇒ Object
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.
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.
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
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 |
#value ⇒ Object
Gets the value property value. The identification value for the hostTracker.
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.
141 142 143 |
# File 'lib/models/security_host_tracker.rb', line 141 def value=(value) @value = value end |