Class: MicrosoftGraph::Models::SecurityArticle
- Includes:
- MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/security_article.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
-
#body ⇒ Object
Gets the body property value.
-
#body=(value) ⇒ Object
Sets the body property value.
-
#created_date_time ⇒ Object
Gets the createdDateTime property value.
-
#created_date_time=(value) ⇒ Object
Sets the createdDateTime property value.
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#image_url ⇒ Object
Gets the imageUrl property value.
-
#image_url=(value) ⇒ Object
Sets the imageUrl property value.
-
#indicators ⇒ Object
Gets the indicators property value.
-
#indicators=(value) ⇒ Object
Sets the indicators property value.
-
#initialize ⇒ Object
constructor
Instantiates a new securityArticle and sets the default values.
-
#is_featured ⇒ Object
Gets the isFeatured property value.
-
#is_featured=(value) ⇒ Object
Sets the isFeatured property value.
-
#last_updated_date_time ⇒ Object
Gets the lastUpdatedDateTime property value.
-
#last_updated_date_time=(value) ⇒ Object
Sets the lastUpdatedDateTime property value.
-
#serialize(writer) ⇒ Object
Serializes information the current object.
-
#summary ⇒ Object
Gets the summary property value.
-
#summary=(value) ⇒ Object
Sets the summary property value.
-
#tags ⇒ Object
Gets the tags property value.
-
#tags=(value) ⇒ Object
Sets the tags property value.
-
#title ⇒ Object
Gets the title property value.
-
#title=(value) ⇒ Object
Sets the title property value.
Methods inherited from Entity
#additional_data, #additional_data=, #id, #id=, #odata_type, #odata_type=
Constructor Details
#initialize ⇒ Object
Instantiates a new securityArticle and sets the default values.
56 57 58 |
# File 'lib/models/security_article.rb', line 56 def initialize() super end |
Class Method Details
.create_from_discriminator_value(parse_node) ⇒ Object
Creates a new instance of the appropriate class based on discriminator value
79 80 81 82 |
# File 'lib/models/security_article.rb', line 79 def self.create_from_discriminator_value(parse_node) raise StandardError, 'parse_node cannot be null' if parse_node.nil? return SecurityArticle.new end |
Instance Method Details
#body ⇒ Object
Gets the body property value. The body property
41 42 43 |
# File 'lib/models/security_article.rb', line 41 def body return @body end |
#body=(value) ⇒ Object
Sets the body property value. The body property
49 50 51 |
# File 'lib/models/security_article.rb', line 49 def body=(value) @body = value end |
#created_date_time ⇒ Object
Gets the createdDateTime property value. The date and time when this article was created. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z.
63 64 65 |
# File 'lib/models/security_article.rb', line 63 def created_date_time return @created_date_time end |
#created_date_time=(value) ⇒ Object
Sets the createdDateTime property value. The date and time when this article was created. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z.
71 72 73 |
# File 'lib/models/security_article.rb', line 71 def created_date_time=(value) @created_date_time = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
87 88 89 90 91 92 93 94 95 96 97 98 99 |
# File 'lib/models/security_article.rb', line 87 def get_field_deserializers() return super.merge({ "body" => lambda {|n| @body = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::SecurityFormattedContent.create_from_discriminator_value(pn) }) }, "createdDateTime" => lambda {|n| @created_date_time = n.get_date_time_value() }, "imageUrl" => lambda {|n| @image_url = n.get_string_value() }, "indicators" => lambda {|n| @indicators = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::SecurityArticleIndicator.create_from_discriminator_value(pn) }) }, "isFeatured" => lambda {|n| @is_featured = n.get_boolean_value() }, "lastUpdatedDateTime" => lambda {|n| @last_updated_date_time = n.get_date_time_value() }, "summary" => lambda {|n| @summary = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::SecurityFormattedContent.create_from_discriminator_value(pn) }) }, "tags" => lambda {|n| @tags = n.get_collection_of_primitive_values(String) }, "title" => lambda {|n| @title = n.get_string_value() }, }) end |
#image_url ⇒ Object
Gets the imageUrl property value. URL of the header image for this article, used for display purposes.
104 105 106 |
# File 'lib/models/security_article.rb', line 104 def image_url return @image_url end |
#image_url=(value) ⇒ Object
Sets the imageUrl property value. URL of the header image for this article, used for display purposes.
112 113 114 |
# File 'lib/models/security_article.rb', line 112 def image_url=(value) @image_url = value end |
#indicators ⇒ Object
Gets the indicators property value. Indicators related to this article.
119 120 121 |
# File 'lib/models/security_article.rb', line 119 def indicators return @indicators end |
#indicators=(value) ⇒ Object
Sets the indicators property value. Indicators related to this article.
127 128 129 |
# File 'lib/models/security_article.rb', line 127 def indicators=(value) @indicators = value end |
#is_featured ⇒ Object
Gets the isFeatured property value. Indicates whether this article is currently featured by Microsoft.
134 135 136 |
# File 'lib/models/security_article.rb', line 134 def is_featured return @is_featured end |
#is_featured=(value) ⇒ Object
Sets the isFeatured property value. Indicates whether this article is currently featured by Microsoft.
142 143 144 |
# File 'lib/models/security_article.rb', line 142 def is_featured=(value) @is_featured = value end |
#last_updated_date_time ⇒ Object
Gets the lastUpdatedDateTime property value. The most recent date and time when this article was updated. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z.
149 150 151 |
# File 'lib/models/security_article.rb', line 149 def last_updated_date_time return @last_updated_date_time end |
#last_updated_date_time=(value) ⇒ Object
Sets the lastUpdatedDateTime property value. The most recent date and time when this article was updated. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z.
157 158 159 |
# File 'lib/models/security_article.rb', line 157 def last_updated_date_time=(value) @last_updated_date_time = value end |
#serialize(writer) ⇒ Object
Serializes information the current object
165 166 167 168 169 170 171 172 173 174 175 176 177 |
# File 'lib/models/security_article.rb', line 165 def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? super writer.write_object_value("body", @body) writer.write_date_time_value("createdDateTime", @created_date_time) writer.write_string_value("imageUrl", @image_url) writer.write_collection_of_object_values("indicators", @indicators) writer.write_boolean_value("isFeatured", @is_featured) writer.write_date_time_value("lastUpdatedDateTime", @last_updated_date_time) writer.write_object_value("summary", @summary) writer.write_collection_of_primitive_values("tags", @tags) writer.write_string_value("title", @title) end |
#summary ⇒ Object
Gets the summary property value. The summary property
182 183 184 |
# File 'lib/models/security_article.rb', line 182 def summary return @summary end |
#summary=(value) ⇒ Object
Sets the summary property value. The summary property
190 191 192 |
# File 'lib/models/security_article.rb', line 190 def summary=(value) @summary = value end |
#tags ⇒ Object
Gets the tags property value. Tags for this article, communicating keywords, or key concepts.
197 198 199 |
# File 'lib/models/security_article.rb', line 197 def return @tags end |
#tags=(value) ⇒ Object
Sets the tags property value. Tags for this article, communicating keywords, or key concepts.
205 206 207 |
# File 'lib/models/security_article.rb', line 205 def (value) @tags = value end |
#title ⇒ Object
Gets the title property value. The title of this article.
212 213 214 |
# File 'lib/models/security_article.rb', line 212 def title return @title end |
#title=(value) ⇒ Object
Sets the title property value. The title of this article.
220 221 222 |
# File 'lib/models/security_article.rb', line 220 def title=(value) @title = value end |