Class: MicrosoftGraph::Models::MobileAppContent

Inherits:
Entity
  • Object
show all
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

Instance Method Summary collapse

Methods inherited from Entity

#additional_data, #additional_data=, #id, #id=, #odata_type, #odata_type=

Constructor Details

#initializeObject

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

Parameters:

  • parse_node

    The parse node to use to read the discriminator value and create the object

Returns:

  • a mobile_app_content

Raises:

  • (StandardError)


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_appsObject

Gets the containedApps property value. The collection of contained apps in a MobileLobApp acting as a package.

Returns:

  • a mobile_contained_app



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.

Parameters:

  • value

    Value to set for the containedApps property.

Returns:

  • a void



36
37
38
# File 'lib/models/mobile_app_content.rb', line 36

def contained_apps=(value)
    @contained_apps = value
end

#filesObject

Gets the files property value. The list of files for this app content version.

Returns:

  • a mobile_app_content_file



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.

Parameters:

  • value

    Value to set for the files property.

Returns:

  • a void



60
61
62
# File 'lib/models/mobile_app_content.rb', line 60

def files=(value)
    @files = value
end

#get_field_deserializersObject

The deserialization information for the current model

Returns:

  • a i_dictionary



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

Parameters:

  • writer

    Serialization writer to use to serialize this model

Returns:

  • a void

Raises:

  • (StandardError)


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