Class: MicrosoftGraph::Models::MobileAppContent
- Includes:
- MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/mobile_app_content.rb
Overview
Contains content properties for a specific app version. Each mobileAppContent can have multiple mobileAppContentFile.
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
-
#contained_apps ⇒ Object
Gets the containedApps property value.
-
#contained_apps=(value) ⇒ Object
Sets the containedApps property value.
-
#files ⇒ Object
Gets the files property value.
-
#files=(value) ⇒ Object
Sets the files property value.
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#initialize ⇒ Object
constructor
Instantiates a new mobileAppContent and sets the default values.
-
#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 mobileAppContent and sets the default values.
21 22 23 |
# File 'lib/models/mobile_app_content.rb', line 21 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
44 45 46 47 |
# File 'lib/models/mobile_app_content.rb', line 44 def self.create_from_discriminator_value(parse_node) raise StandardError, 'parse_node cannot be null' if parse_node.nil? return MobileAppContent.new end |
Instance Method Details
#contained_apps ⇒ Object
Gets the containedApps property value. The collection of contained apps in a MobileLobApp acting as a package.
28 29 30 |
# File 'lib/models/mobile_app_content.rb', line 28 def contained_apps return @contained_apps end |
#contained_apps=(value) ⇒ Object
Sets the containedApps property value. The collection of contained apps in a MobileLobApp acting as a package.
36 37 38 |
# File 'lib/models/mobile_app_content.rb', line 36 def contained_apps=(value) @contained_apps = value end |
#files ⇒ Object
Gets the files property value. The list of files for this app content version.
52 53 54 |
# File 'lib/models/mobile_app_content.rb', line 52 def files return @files end |
#files=(value) ⇒ Object
Sets the files property value. The list of files for this app content version.
60 61 62 |
# File 'lib/models/mobile_app_content.rb', line 60 def files=(value) @files = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
67 68 69 70 71 72 |
# File 'lib/models/mobile_app_content.rb', line 67 def get_field_deserializers() return super.merge({ "containedApps" => lambda {|n| @contained_apps = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::MobileContainedApp.create_from_discriminator_value(pn) }) }, "files" => lambda {|n| @files = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::MobileAppContentFile.create_from_discriminator_value(pn) }) }, }) end |
#serialize(writer) ⇒ Object
Serializes information the current object
78 79 80 81 82 83 |
# File 'lib/models/mobile_app_content.rb', line 78 def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? super writer.write_collection_of_object_values("containedApps", @contained_apps) writer.write_collection_of_object_values("files", @files) end |