Class: MicrosoftGraph::Models::MobileApp
- Includes:
- MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/mobile_app.rb
Overview
An abstract class containing the base properties for Intune mobile apps. Note: Listing mobile apps with ‘$expand=assignments` has been deprecated. Instead get the list of apps without the `$expand` query on `assignments`. Then, perform the expansion on individual applications.
Direct Known Subclasses
AndroidStoreApp, IosStoreApp, IosVppApp, IosiPadOSWebClip, MacOSMicrosoftDefenderApp, MacOSMicrosoftEdgeApp, MacOSOfficeSuiteApp, ManagedApp, MicrosoftStoreForBusinessApp, MobileLobApp, WebApp, WindowsMicrosoftEdgeApp, WindowsWebApp
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.
-
#categories ⇒ Object
Gets the categories property value.
-
#categories=(value) ⇒ Object
Sets the categories 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.
-
#developer ⇒ Object
Gets the developer property value.
-
#developer=(value) ⇒ Object
Sets the developer 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 mobileApp and sets the default values.
-
#is_featured ⇒ Object
Gets the isFeatured property value.
-
#is_featured=(value) ⇒ Object
Sets the isFeatured property value.
-
#large_icon ⇒ Object
Gets the largeIcon property value.
-
#large_icon=(value) ⇒ Object
Sets the largeIcon property value.
-
#last_modified_date_time ⇒ Object
Gets the lastModifiedDateTime property value.
-
#last_modified_date_time=(value) ⇒ Object
Sets the lastModifiedDateTime property value.
-
#notes ⇒ Object
Gets the notes property value.
-
#notes=(value) ⇒ Object
Sets the notes property value.
-
#owner ⇒ Object
Gets the owner property value.
-
#owner=(value) ⇒ Object
Sets the owner property value.
-
#privacy_information_url ⇒ Object
Gets the privacyInformationUrl property value.
-
#privacy_information_url=(value) ⇒ Object
Sets the privacyInformationUrl property value.
-
#publisher ⇒ Object
Gets the publisher property value.
-
#publisher=(value) ⇒ Object
Sets the publisher property value.
-
#publishing_state ⇒ Object
Gets the publishingState property value.
-
#publishing_state=(value) ⇒ Object
Sets the publishingState property value.
-
#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 mobileApp and sets the default values.
91 92 93 |
# File 'lib/models/mobile_app.rb', line 91 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
114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 |
# File 'lib/models/mobile_app.rb', line 114 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.androidStoreApp" return AndroidStoreApp.new when "#microsoft.graph.iosiPadOSWebClip" return IosiPadOSWebClip.new when "#microsoft.graph.iosLobApp" return IosLobApp.new when "#microsoft.graph.iosStoreApp" return IosStoreApp.new when "#microsoft.graph.iosVppApp" return IosVppApp.new when "#microsoft.graph.macOSLobApp" return MacOSLobApp.new when "#microsoft.graph.macOSMicrosoftDefenderApp" return MacOSMicrosoftDefenderApp.new when "#microsoft.graph.macOSMicrosoftEdgeApp" return MacOSMicrosoftEdgeApp.new when "#microsoft.graph.macOSOfficeSuiteApp" return MacOSOfficeSuiteApp.new when "#microsoft.graph.managedAndroidLobApp" return ManagedAndroidLobApp.new when "#microsoft.graph.managedAndroidStoreApp" return ManagedAndroidStoreApp.new when "#microsoft.graph.managedApp" return ManagedApp.new when "#microsoft.graph.managedIOSLobApp" return ManagedIOSLobApp.new when "#microsoft.graph.managedIOSStoreApp" return ManagedIOSStoreApp.new when "#microsoft.graph.managedMobileLobApp" return ManagedMobileLobApp.new when "#microsoft.graph.microsoftStoreForBusinessApp" return MicrosoftStoreForBusinessApp.new when "#microsoft.graph.mobileLobApp" return MobileLobApp.new when "#microsoft.graph.webApp" return WebApp.new when "#microsoft.graph.win32LobApp" return Win32LobApp.new when "#microsoft.graph.windowsAppX" return WindowsAppX.new when "#microsoft.graph.windowsMicrosoftEdgeApp" return WindowsMicrosoftEdgeApp.new when "#microsoft.graph.windowsMobileMSI" return WindowsMobileMSI.new when "#microsoft.graph.windowsUniversalAppX" return WindowsUniversalAppX.new when "#microsoft.graph.windowsWebApp" return WindowsWebApp.new end end return MobileApp.new end |
Instance Method Details
#assignments ⇒ Object
Gets the assignments property value. The list of group assignments for this mobile app.
61 62 63 |
# File 'lib/models/mobile_app.rb', line 61 def assignments return @assignments end |
#assignments=(value) ⇒ Object
Sets the assignments property value. The list of group assignments for this mobile app.
69 70 71 |
# File 'lib/models/mobile_app.rb', line 69 def assignments=(value) @assignments = value end |
#categories ⇒ Object
Gets the categories property value. The list of categories for this app.
76 77 78 |
# File 'lib/models/mobile_app.rb', line 76 def categories return @categories end |
#categories=(value) ⇒ Object
Sets the categories property value. The list of categories for this app.
84 85 86 |
# File 'lib/models/mobile_app.rb', line 84 def categories=(value) @categories = value end |
#created_date_time ⇒ Object
Gets the createdDateTime property value. The date and time the app was created.
98 99 100 |
# File 'lib/models/mobile_app.rb', line 98 def created_date_time return @created_date_time end |
#created_date_time=(value) ⇒ Object
Sets the createdDateTime property value. The date and time the app was created.
106 107 108 |
# File 'lib/models/mobile_app.rb', line 106 def created_date_time=(value) @created_date_time = value end |
#description ⇒ Object
Gets the description property value. The description of the app.
178 179 180 |
# File 'lib/models/mobile_app.rb', line 178 def description return @description end |
#description=(value) ⇒ Object
Sets the description property value. The description of the app.
186 187 188 |
# File 'lib/models/mobile_app.rb', line 186 def description=(value) @description = value end |
#developer ⇒ Object
Gets the developer property value. The developer of the app.
193 194 195 |
# File 'lib/models/mobile_app.rb', line 193 def developer return @developer end |
#developer=(value) ⇒ Object
Sets the developer property value. The developer of the app.
201 202 203 |
# File 'lib/models/mobile_app.rb', line 201 def developer=(value) @developer = value end |
#display_name ⇒ Object
Gets the displayName property value. The admin provided or imported title of the app.
208 209 210 |
# File 'lib/models/mobile_app.rb', line 208 def display_name return @display_name end |
#display_name=(value) ⇒ Object
Sets the displayName property value. The admin provided or imported title of the app.
216 217 218 |
# File 'lib/models/mobile_app.rb', line 216 def display_name=(value) @display_name = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 |
# File 'lib/models/mobile_app.rb', line 223 def get_field_deserializers() return super.merge({ "assignments" => lambda {|n| @assignments = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::MobileAppAssignment.create_from_discriminator_value(pn) }) }, "categories" => lambda {|n| @categories = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::MobileAppCategory.create_from_discriminator_value(pn) }) }, "createdDateTime" => lambda {|n| @created_date_time = n.get_date_time_value() }, "description" => lambda {|n| @description = n.get_string_value() }, "developer" => lambda {|n| @developer = n.get_string_value() }, "displayName" => lambda {|n| @display_name = n.get_string_value() }, "informationUrl" => lambda {|n| @information_url = n.get_string_value() }, "isFeatured" => lambda {|n| @is_featured = n.get_boolean_value() }, "largeIcon" => lambda {|n| @large_icon = 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() }, "notes" => lambda {|n| @notes = n.get_string_value() }, "owner" => lambda {|n| @owner = n.get_string_value() }, "privacyInformationUrl" => lambda {|n| @privacy_information_url = n.get_string_value() }, "publisher" => lambda {|n| @publisher = n.get_string_value() }, "publishingState" => lambda {|n| @publishing_state = n.get_enum_value(MicrosoftGraph::Models::MobileAppPublishingState) }, }) end |
#information_url ⇒ Object
Gets the informationUrl property value. The more information Url.
246 247 248 |
# File 'lib/models/mobile_app.rb', line 246 def information_url return @information_url end |
#information_url=(value) ⇒ Object
Sets the informationUrl property value. The more information Url.
254 255 256 |
# File 'lib/models/mobile_app.rb', line 254 def information_url=(value) @information_url = value end |
#is_featured ⇒ Object
Gets the isFeatured property value. The value indicating whether the app is marked as featured by the admin.
261 262 263 |
# File 'lib/models/mobile_app.rb', line 261 def is_featured return @is_featured end |
#is_featured=(value) ⇒ Object
Sets the isFeatured property value. The value indicating whether the app is marked as featured by the admin.
269 270 271 |
# File 'lib/models/mobile_app.rb', line 269 def is_featured=(value) @is_featured = value end |
#large_icon ⇒ Object
Gets the largeIcon property value. The large icon, to be displayed in the app details and used for upload of the icon.
276 277 278 |
# File 'lib/models/mobile_app.rb', line 276 def large_icon return @large_icon end |
#large_icon=(value) ⇒ Object
Sets the largeIcon property value. The large icon, to be displayed in the app details and used for upload of the icon.
284 285 286 |
# File 'lib/models/mobile_app.rb', line 284 def large_icon=(value) @large_icon = value end |
#last_modified_date_time ⇒ Object
Gets the lastModifiedDateTime property value. The date and time the app was last modified.
291 292 293 |
# File 'lib/models/mobile_app.rb', line 291 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 the app was last modified.
299 300 301 |
# File 'lib/models/mobile_app.rb', line 299 def last_modified_date_time=(value) @last_modified_date_time = value end |
#notes ⇒ Object
Gets the notes property value. Notes for the app.
306 307 308 |
# File 'lib/models/mobile_app.rb', line 306 def notes return @notes end |
#notes=(value) ⇒ Object
Sets the notes property value. Notes for the app.
314 315 316 |
# File 'lib/models/mobile_app.rb', line 314 def notes=(value) @notes = value end |
#owner ⇒ Object
Gets the owner property value. The owner of the app.
321 322 323 |
# File 'lib/models/mobile_app.rb', line 321 def owner return @owner end |
#owner=(value) ⇒ Object
Sets the owner property value. The owner of the app.
329 330 331 |
# File 'lib/models/mobile_app.rb', line 329 def owner=(value) @owner = value end |
#privacy_information_url ⇒ Object
Gets the privacyInformationUrl property value. The privacy statement Url.
336 337 338 |
# File 'lib/models/mobile_app.rb', line 336 def privacy_information_url return @privacy_information_url end |
#privacy_information_url=(value) ⇒ Object
Sets the privacyInformationUrl property value. The privacy statement Url.
344 345 346 |
# File 'lib/models/mobile_app.rb', line 344 def privacy_information_url=(value) @privacy_information_url = value end |
#publisher ⇒ Object
Gets the publisher property value. The publisher of the app.
351 352 353 |
# File 'lib/models/mobile_app.rb', line 351 def publisher return @publisher end |
#publisher=(value) ⇒ Object
Sets the publisher property value. The publisher of the app.
359 360 361 |
# File 'lib/models/mobile_app.rb', line 359 def publisher=(value) @publisher = value end |
#publishing_state ⇒ Object
Gets the publishingState property value. Indicates the publishing state of an app.
366 367 368 |
# File 'lib/models/mobile_app.rb', line 366 def publishing_state return @publishing_state end |
#publishing_state=(value) ⇒ Object
Sets the publishingState property value. Indicates the publishing state of an app.
374 375 376 |
# File 'lib/models/mobile_app.rb', line 374 def publishing_state=(value) @publishing_state = value end |
#serialize(writer) ⇒ Object
Serializes information the current object
382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 |
# File 'lib/models/mobile_app.rb', line 382 def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? super writer.write_collection_of_object_values("assignments", @assignments) writer.write_collection_of_object_values("categories", @categories) writer.write_date_time_value("createdDateTime", @created_date_time) writer.write_string_value("description", @description) writer.write_string_value("developer", @developer) writer.write_string_value("displayName", @display_name) writer.write_string_value("informationUrl", @information_url) writer.write_boolean_value("isFeatured", @is_featured) writer.write_object_value("largeIcon", @large_icon) writer.write_date_time_value("lastModifiedDateTime", @last_modified_date_time) writer.write_string_value("notes", @notes) writer.write_string_value("owner", @owner) writer.write_string_value("privacyInformationUrl", @privacy_information_url) writer.write_string_value("publisher", @publisher) writer.write_enum_value("publishingState", @publishing_state) end |