Class: MicrosoftGraph::Models::ManagedEBook
- Includes:
- MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/managed_e_book.rb
Overview
An abstract class containing the base properties for Managed eBook.
Direct Known Subclasses
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
-
#assignments ⇒ Object
Gets the assignments property value.
-
#assignments=(value) ⇒ Object
Sets the assignments property value.
-
#created_date_time ⇒ Object
Gets the createdDateTime property value.
-
#created_date_time=(value) ⇒ Object
Sets the createdDateTime property value.
-
#description ⇒ Object
Gets the description property value.
-
#description=(value) ⇒ Object
Sets the description property value.
-
#device_states ⇒ Object
Gets the deviceStates property value.
-
#device_states=(value) ⇒ Object
Sets the deviceStates property value.
-
#display_name ⇒ Object
Gets the displayName property value.
-
#display_name=(value) ⇒ Object
Sets the displayName property value.
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#information_url ⇒ Object
Gets the informationUrl property value.
-
#information_url=(value) ⇒ Object
Sets the informationUrl property value.
-
#initialize ⇒ Object
constructor
Instantiates a new managedEBook and sets the default values.
-
#install_summary ⇒ Object
Gets the installSummary property value.
-
#install_summary=(value) ⇒ Object
Sets the installSummary property value.
-
#large_cover ⇒ Object
Gets the largeCover property value.
-
#large_cover=(value) ⇒ Object
Sets the largeCover property value.
-
#last_modified_date_time ⇒ Object
Gets the lastModifiedDateTime property value.
-
#last_modified_date_time=(value) ⇒ Object
Sets the lastModifiedDateTime property value.
-
#privacy_information_url ⇒ Object
Gets the privacyInformationUrl property value.
-
#privacy_information_url=(value) ⇒ Object
Sets the privacyInformationUrl property value.
-
#published_date_time ⇒ Object
Gets the publishedDateTime property value.
-
#published_date_time=(value) ⇒ Object
Sets the publishedDateTime property value.
-
#publisher ⇒ Object
Gets the publisher property value.
-
#publisher=(value) ⇒ Object
Sets the publisher property value.
-
#serialize(writer) ⇒ Object
Serializes information the current object.
-
#user_state_summary ⇒ Object
Gets the userStateSummary property value.
-
#user_state_summary=(value) ⇒ Object
Sets the userStateSummary property value.
Methods inherited from Entity
#additional_data, #additional_data=, #id, #id=, #odata_type, #odata_type=
Constructor Details
#initialize ⇒ Object
Instantiates a new managedEBook and sets the default values.
70 71 72 |
# File 'lib/models/managed_e_book.rb', line 70 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
93 94 95 96 97 98 99 100 101 102 103 104 |
# File 'lib/models/managed_e_book.rb', line 93 def self.create_from_discriminator_value(parse_node) raise StandardError, 'parse_node cannot be null' if parse_node.nil? mapping_value_node = parse_node.get_child_node("@odata.type") unless mapping_value_node.nil? then mapping_value = mapping_value_node.get_string_value case mapping_value when "#microsoft.graph.iosVppEBook" return IosVppEBook.new end end return ManagedEBook.new end |
Instance Method Details
#assignments ⇒ Object
Gets the assignments property value. The list of assignments for this eBook.
55 56 57 |
# File 'lib/models/managed_e_book.rb', line 55 def assignments return @assignments end |
#assignments=(value) ⇒ Object
Sets the assignments property value. The list of assignments for this eBook.
63 64 65 |
# File 'lib/models/managed_e_book.rb', line 63 def assignments=(value) @assignments = value end |
#created_date_time ⇒ Object
Gets the createdDateTime property value. The date and time when the eBook file was created.
77 78 79 |
# File 'lib/models/managed_e_book.rb', line 77 def created_date_time return @created_date_time end |
#created_date_time=(value) ⇒ Object
Sets the createdDateTime property value. The date and time when the eBook file was created.
85 86 87 |
# File 'lib/models/managed_e_book.rb', line 85 def created_date_time=(value) @created_date_time = value end |
#description ⇒ Object
Gets the description property value. Description.
109 110 111 |
# File 'lib/models/managed_e_book.rb', line 109 def description return @description end |
#description=(value) ⇒ Object
Sets the description property value. Description.
117 118 119 |
# File 'lib/models/managed_e_book.rb', line 117 def description=(value) @description = value end |
#device_states ⇒ Object
Gets the deviceStates property value. The list of installation states for this eBook.
124 125 126 |
# File 'lib/models/managed_e_book.rb', line 124 def device_states return @device_states end |
#device_states=(value) ⇒ Object
Sets the deviceStates property value. The list of installation states for this eBook.
132 133 134 |
# File 'lib/models/managed_e_book.rb', line 132 def device_states=(value) @device_states = value end |
#display_name ⇒ Object
Gets the displayName property value. Name of the eBook.
139 140 141 |
# File 'lib/models/managed_e_book.rb', line 139 def display_name return @display_name end |
#display_name=(value) ⇒ Object
Sets the displayName property value. Name of the eBook.
147 148 149 |
# File 'lib/models/managed_e_book.rb', line 147 def display_name=(value) @display_name = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 |
# File 'lib/models/managed_e_book.rb', line 154 def get_field_deserializers() return super.merge({ "assignments" => lambda {|n| @assignments = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::ManagedEBookAssignment.create_from_discriminator_value(pn) }) }, "createdDateTime" => lambda {|n| @created_date_time = n.get_date_time_value() }, "description" => lambda {|n| @description = n.get_string_value() }, "deviceStates" => lambda {|n| @device_states = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::DeviceInstallState.create_from_discriminator_value(pn) }) }, "displayName" => lambda {|n| @display_name = n.get_string_value() }, "informationUrl" => lambda {|n| @information_url = n.get_string_value() }, "installSummary" => lambda {|n| @install_summary = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::EBookInstallSummary.create_from_discriminator_value(pn) }) }, "largeCover" => lambda {|n| @large_cover = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::MimeContent.create_from_discriminator_value(pn) }) }, "lastModifiedDateTime" => lambda {|n| @last_modified_date_time = n.get_date_time_value() }, "privacyInformationUrl" => lambda {|n| @privacy_information_url = n.get_string_value() }, "publishedDateTime" => lambda {|n| @published_date_time = n.get_date_time_value() }, "publisher" => lambda {|n| @publisher = n.get_string_value() }, "userStateSummary" => lambda {|n| @user_state_summary = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::UserInstallStateSummary.create_from_discriminator_value(pn) }) }, }) end |
#information_url ⇒ Object
Gets the informationUrl property value. The more information Url.
175 176 177 |
# File 'lib/models/managed_e_book.rb', line 175 def information_url return @information_url end |
#information_url=(value) ⇒ Object
Sets the informationUrl property value. The more information Url.
183 184 185 |
# File 'lib/models/managed_e_book.rb', line 183 def information_url=(value) @information_url = value end |
#install_summary ⇒ Object
Gets the installSummary property value. Mobile App Install Summary.
190 191 192 |
# File 'lib/models/managed_e_book.rb', line 190 def install_summary return @install_summary end |
#install_summary=(value) ⇒ Object
Sets the installSummary property value. Mobile App Install Summary.
198 199 200 |
# File 'lib/models/managed_e_book.rb', line 198 def install_summary=(value) @install_summary = value end |
#large_cover ⇒ Object
Gets the largeCover property value. Book cover.
205 206 207 |
# File 'lib/models/managed_e_book.rb', line 205 def large_cover return @large_cover end |
#large_cover=(value) ⇒ Object
Sets the largeCover property value. Book cover.
213 214 215 |
# File 'lib/models/managed_e_book.rb', line 213 def large_cover=(value) @large_cover = value end |
#last_modified_date_time ⇒ Object
Gets the lastModifiedDateTime property value. The date and time when the eBook was last modified.
220 221 222 |
# File 'lib/models/managed_e_book.rb', line 220 def last_modified_date_time return @last_modified_date_time end |
#last_modified_date_time=(value) ⇒ Object
Sets the lastModifiedDateTime property value. The date and time when the eBook was last modified.
228 229 230 |
# File 'lib/models/managed_e_book.rb', line 228 def last_modified_date_time=(value) @last_modified_date_time = value end |
#privacy_information_url ⇒ Object
Gets the privacyInformationUrl property value. The privacy statement Url.
235 236 237 |
# File 'lib/models/managed_e_book.rb', line 235 def privacy_information_url return @privacy_information_url end |
#privacy_information_url=(value) ⇒ Object
Sets the privacyInformationUrl property value. The privacy statement Url.
243 244 245 |
# File 'lib/models/managed_e_book.rb', line 243 def privacy_information_url=(value) @privacy_information_url = value end |
#published_date_time ⇒ Object
Gets the publishedDateTime property value. The date and time when the eBook was published.
250 251 252 |
# File 'lib/models/managed_e_book.rb', line 250 def published_date_time return @published_date_time end |
#published_date_time=(value) ⇒ Object
Sets the publishedDateTime property value. The date and time when the eBook was published.
258 259 260 |
# File 'lib/models/managed_e_book.rb', line 258 def published_date_time=(value) @published_date_time = value end |
#publisher ⇒ Object
Gets the publisher property value. Publisher.
265 266 267 |
# File 'lib/models/managed_e_book.rb', line 265 def publisher return @publisher end |
#publisher=(value) ⇒ Object
Sets the publisher property value. Publisher.
273 274 275 |
# File 'lib/models/managed_e_book.rb', line 273 def publisher=(value) @publisher = value end |
#serialize(writer) ⇒ Object
Serializes information the current object
281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 |
# File 'lib/models/managed_e_book.rb', line 281 def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? super writer.write_collection_of_object_values("assignments", @assignments) writer.write_date_time_value("createdDateTime", @created_date_time) writer.write_string_value("description", @description) writer.write_collection_of_object_values("deviceStates", @device_states) writer.write_string_value("displayName", @display_name) writer.write_string_value("informationUrl", @information_url) writer.write_object_value("installSummary", @install_summary) writer.write_object_value("largeCover", @large_cover) writer.write_date_time_value("lastModifiedDateTime", @last_modified_date_time) writer.write_string_value("privacyInformationUrl", @privacy_information_url) writer.write_date_time_value("publishedDateTime", @published_date_time) writer.write_string_value("publisher", @publisher) writer.write_collection_of_object_values("userStateSummary", @user_state_summary) end |
#user_state_summary ⇒ Object
Gets the userStateSummary property value. The list of installation states for this eBook.
302 303 304 |
# File 'lib/models/managed_e_book.rb', line 302 def user_state_summary return @user_state_summary end |
#user_state_summary=(value) ⇒ Object
Sets the userStateSummary property value. The list of installation states for this eBook.
310 311 312 |
# File 'lib/models/managed_e_book.rb', line 310 def user_state_summary=(value) @user_state_summary = value end |