Class: MicrosoftGraph::Models::MobileLobApp
- Includes:
- MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/mobile_lob_app.rb
Overview
An abstract base class containing properties for all mobile line of business apps.
Direct Known Subclasses
AndroidLobApp, IosLobApp, MacOSLobApp, Win32LobApp, WindowsAppX, WindowsMobileMSI, WindowsUniversalAppX
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
-
#committed_content_version ⇒ Object
Gets the committedContentVersion property value.
-
#committed_content_version=(value) ⇒ Object
Sets the committedContentVersion property value.
-
#content_versions ⇒ Object
Gets the contentVersions property value.
-
#content_versions=(value) ⇒ Object
Sets the contentVersions property value.
-
#file_name ⇒ Object
Gets the fileName property value.
-
#file_name=(value) ⇒ Object
Sets the fileName property value.
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#initialize ⇒ Object
constructor
Instantiates a new mobileLobApp and sets the default values.
-
#serialize(writer) ⇒ Object
Serializes information the current object.
-
#size ⇒ Object
Gets the size property value.
-
#size=(value) ⇒ Object
Sets the size property value.
Methods inherited from MobileApp
#assignments, #assignments=, #categories, #categories=, #created_date_time, #created_date_time=, #description, #description=, #developer, #developer=, #display_name, #display_name=, #information_url, #information_url=, #is_featured, #is_featured=, #large_icon, #large_icon=, #last_modified_date_time, #last_modified_date_time=, #notes, #notes=, #owner, #owner=, #privacy_information_url, #privacy_information_url=, #publisher, #publisher=, #publishing_state, #publishing_state=
Methods inherited from Entity
#additional_data, #additional_data=, #id, #id=, #odata_type, #odata_type=
Constructor Details
#initialize ⇒ Object
Instantiates a new mobileLobApp and sets the default values.
42 43 44 45 |
# File 'lib/models/mobile_lob_app.rb', line 42 def initialize() super @odata_type = "#microsoft.graph.mobileLobApp" end |
Class Method Details
.create_from_discriminator_value(parse_node) ⇒ Object
Creates a new instance of the appropriate class based on discriminator value
66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 |
# File 'lib/models/mobile_lob_app.rb', line 66 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.androidLobApp" return AndroidLobApp.new when "#microsoft.graph.iosLobApp" return IosLobApp.new when "#microsoft.graph.macOSLobApp" return MacOSLobApp.new when "#microsoft.graph.win32LobApp" return Win32LobApp.new when "#microsoft.graph.windowsAppX" return WindowsAppX.new when "#microsoft.graph.windowsMobileMSI" return WindowsMobileMSI.new when "#microsoft.graph.windowsUniversalAppX" return WindowsUniversalAppX.new end end return MobileLobApp.new end |
Instance Method Details
#committed_content_version ⇒ Object
Gets the committedContentVersion property value. The internal committed content version.
27 28 29 |
# File 'lib/models/mobile_lob_app.rb', line 27 def committed_content_version return @committed_content_version end |
#committed_content_version=(value) ⇒ Object
Sets the committedContentVersion property value. The internal committed content version.
35 36 37 |
# File 'lib/models/mobile_lob_app.rb', line 35 def committed_content_version=(value) @committed_content_version = value end |
#content_versions ⇒ Object
Gets the contentVersions property value. The list of content versions for this app.
50 51 52 |
# File 'lib/models/mobile_lob_app.rb', line 50 def content_versions return @content_versions end |
#content_versions=(value) ⇒ Object
Sets the contentVersions property value. The list of content versions for this app.
58 59 60 |
# File 'lib/models/mobile_lob_app.rb', line 58 def content_versions=(value) @content_versions = value end |
#file_name ⇒ Object
Gets the fileName property value. The name of the main Lob application file.
94 95 96 |
# File 'lib/models/mobile_lob_app.rb', line 94 def file_name return @file_name end |
#file_name=(value) ⇒ Object
Sets the fileName property value. The name of the main Lob application file.
102 103 104 |
# File 'lib/models/mobile_lob_app.rb', line 102 def file_name=(value) @file_name = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
109 110 111 112 113 114 115 116 |
# File 'lib/models/mobile_lob_app.rb', line 109 def get_field_deserializers() return super.merge({ "committedContentVersion" => lambda {|n| @committed_content_version = n.get_string_value() }, "contentVersions" => lambda {|n| @content_versions = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::MobileAppContent.create_from_discriminator_value(pn) }) }, "fileName" => lambda {|n| @file_name = n.get_string_value() }, "size" => lambda {|n| @size = n.get_object_value(lambda {|pn| Int64.create_from_discriminator_value(pn) }) }, }) end |
#serialize(writer) ⇒ Object
Serializes information the current object
122 123 124 125 126 127 128 129 |
# File 'lib/models/mobile_lob_app.rb', line 122 def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? super writer.write_string_value("committedContentVersion", @committed_content_version) writer.write_collection_of_object_values("contentVersions", @content_versions) writer.write_string_value("fileName", @file_name) writer.write_object_value("size", @size) end |
#size ⇒ Object
Gets the size property value. The total size, including all uploaded files.
134 135 136 |
# File 'lib/models/mobile_lob_app.rb', line 134 def size return @size end |
#size=(value) ⇒ Object
Sets the size property value. The total size, including all uploaded files.
142 143 144 |
# File 'lib/models/mobile_lob_app.rb', line 142 def size=(value) @size = value end |