Class: MicrosoftGraph::Models::SecurityHostCookie
- Inherits:
-
SecurityArtifact
- Object
- Entity
- SecurityArtifact
- MicrosoftGraph::Models::SecurityHostCookie
- Includes:
- MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/security_host_cookie.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
-
#domain ⇒ Object
Gets the domain property value.
-
#domain=(value) ⇒ Object
Sets the domain 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 securityHostCookie 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.
Methods inherited from Entity
#additional_data, #additional_data=, #id, #id=, #odata_type, #odata_type=
Constructor Details
#initialize ⇒ Object
Instantiates a new securityHostCookie and sets the default values.
29 30 31 32 |
# File 'lib/models/security_host_cookie.rb', line 29 def initialize() super @odata_type = "#microsoft.graph.security.hostCookie" 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_cookie.rb', line 38 def self.create_from_discriminator_value(parse_node) raise StandardError, 'parse_node cannot be null' if parse_node.nil? return SecurityHostCookie.new end |
Instance Method Details
#domain ⇒ Object
Gets the domain property value. The URI for which the cookie is valid.
46 47 48 |
# File 'lib/models/security_host_cookie.rb', line 46 def domain return @domain end |
#domain=(value) ⇒ Object
Sets the domain property value. The URI for which the cookie is valid.
54 55 56 |
# File 'lib/models/security_host_cookie.rb', line 54 def domain=(value) @domain = value end |
#first_seen_date_time ⇒ Object
Gets the firstSeenDateTime property value. The first date and time when this hostCookie 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.
61 62 63 |
# File 'lib/models/security_host_cookie.rb', line 61 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 hostCookie 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.
69 70 71 |
# File 'lib/models/security_host_cookie.rb', line 69 def first_seen_date_time=(value) @first_seen_date_time = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
76 77 78 79 80 81 82 83 84 |
# File 'lib/models/security_host_cookie.rb', line 76 def get_field_deserializers() return super.merge({ "domain" => lambda {|n| @domain = 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() }, }) end |
#host ⇒ Object
Gets the host property value. The host property
89 90 91 |
# File 'lib/models/security_host_cookie.rb', line 89 def host return @host end |
#host=(value) ⇒ Object
Sets the host property value. The host property
97 98 99 |
# File 'lib/models/security_host_cookie.rb', line 97 def host=(value) @host = value end |
#last_seen_date_time ⇒ Object
Gets the lastSeenDateTime property value. The most recent date and time when this hostCookie 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_cookie.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 hostCookie 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_cookie.rb', line 112 def last_seen_date_time=(value) @last_seen_date_time = value end |
#name ⇒ Object
Gets the name property value. The name of the cookie, for example, JSESSIONID or SEARCH_NAMESITE.
119 120 121 |
# File 'lib/models/security_host_cookie.rb', line 119 def name return @name end |
#name=(value) ⇒ Object
Sets the name property value. The name of the cookie, for example, JSESSIONID or SEARCH_NAMESITE.
127 128 129 |
# File 'lib/models/security_host_cookie.rb', line 127 def name=(value) @name = value end |
#serialize(writer) ⇒ Object
Serializes information the current object
135 136 137 138 139 140 141 142 143 |
# File 'lib/models/security_host_cookie.rb', line 135 def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? super writer.write_string_value("domain", @domain) 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) end |