Class: MicrosoftGraph::Models::MobileApp

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

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 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

Parameters:

  • parse_node

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

Returns:

  • a mobile_app

Raises:

  • (StandardError)


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

#assignmentsObject

Gets the assignments property value. The list of group assignments for this mobile app.

Returns:

  • a mobile_app_assignment



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.

Parameters:

  • value

    Value to set for the assignments property.

Returns:

  • a void



69
70
71
# File 'lib/models/mobile_app.rb', line 69

def assignments=(value)
    @assignments = value
end

#categoriesObject

Gets the categories property value. The list of categories for this app.

Returns:

  • a mobile_app_category



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.

Parameters:

  • value

    Value to set for the categories property.

Returns:

  • a void



84
85
86
# File 'lib/models/mobile_app.rb', line 84

def categories=(value)
    @categories = value
end

#created_date_timeObject

Gets the createdDateTime property value. The date and time the app was created.

Returns:

  • a date_time



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.

Parameters:

  • value

    Value to set for the createdDateTime property.

Returns:

  • a void



106
107
108
# File 'lib/models/mobile_app.rb', line 106

def created_date_time=(value)
    @created_date_time = value
end

#descriptionObject

Gets the description property value. The description of the app.

Returns:

  • a string



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.

Parameters:

  • value

    Value to set for the description property.

Returns:

  • a void



186
187
188
# File 'lib/models/mobile_app.rb', line 186

def description=(value)
    @description = value
end

#developerObject

Gets the developer property value. The developer of the app.

Returns:

  • a string



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.

Parameters:

  • value

    Value to set for the developer property.

Returns:

  • a void



201
202
203
# File 'lib/models/mobile_app.rb', line 201

def developer=(value)
    @developer = value
end

#display_nameObject

Gets the displayName property value. The admin provided or imported title of the app.

Returns:

  • a string



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.

Parameters:

  • value

    Value to set for the displayName property.

Returns:

  • a void



216
217
218
# File 'lib/models/mobile_app.rb', line 216

def display_name=(value)
    @display_name = value
end

#get_field_deserializersObject

The deserialization information for the current model

Returns:

  • a i_dictionary



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_urlObject

Gets the informationUrl property value. The more information Url.

Returns:

  • a string



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.

Parameters:

  • value

    Value to set for the informationUrl property.

Returns:

  • a void



254
255
256
# File 'lib/models/mobile_app.rb', line 254

def information_url=(value)
    @information_url = value
end

Gets the isFeatured property value. The value indicating whether the app is marked as featured by the admin.

Returns:

  • a boolean



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.

Parameters:

  • value

    Value to set for the isFeatured property.

Returns:

  • a void



269
270
271
# File 'lib/models/mobile_app.rb', line 269

def is_featured=(value)
    @is_featured = value
end

#large_iconObject

Gets the largeIcon property value. The large icon, to be displayed in the app details and used for upload of the icon.

Returns:

  • a mime_content



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.

Parameters:

  • value

    Value to set for the largeIcon property.

Returns:

  • a void



284
285
286
# File 'lib/models/mobile_app.rb', line 284

def large_icon=(value)
    @large_icon = value
end

#last_modified_date_timeObject

Gets the lastModifiedDateTime property value. The date and time the app was last modified.

Returns:

  • a date_time



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.

Parameters:

  • value

    Value to set for the lastModifiedDateTime property.

Returns:

  • a void



299
300
301
# File 'lib/models/mobile_app.rb', line 299

def last_modified_date_time=(value)
    @last_modified_date_time = value
end

#notesObject

Gets the notes property value. Notes for the app.

Returns:

  • a string



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.

Parameters:

  • value

    Value to set for the notes property.

Returns:

  • a void



314
315
316
# File 'lib/models/mobile_app.rb', line 314

def notes=(value)
    @notes = value
end

#ownerObject

Gets the owner property value. The owner of the app.

Returns:

  • a string



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.

Parameters:

  • value

    Value to set for the owner property.

Returns:

  • a void



329
330
331
# File 'lib/models/mobile_app.rb', line 329

def owner=(value)
    @owner = value
end

#privacy_information_urlObject

Gets the privacyInformationUrl property value. The privacy statement Url.

Returns:

  • a string



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.

Parameters:

  • value

    Value to set for the privacyInformationUrl property.

Returns:

  • a void



344
345
346
# File 'lib/models/mobile_app.rb', line 344

def privacy_information_url=(value)
    @privacy_information_url = value
end

#publisherObject

Gets the publisher property value. The publisher of the app.

Returns:

  • a string



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.

Parameters:

  • value

    Value to set for the publisher property.

Returns:

  • a void



359
360
361
# File 'lib/models/mobile_app.rb', line 359

def publisher=(value)
    @publisher = value
end

#publishing_stateObject

Gets the publishingState property value. Indicates the publishing state of an app.

Returns:

  • a mobile_app_publishing_state



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.

Parameters:

  • value

    Value to set for the publishingState property.

Returns:

  • a void



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

Parameters:

  • writer

    Serialization writer to use to serialize this model

Returns:

  • a void

Raises:

  • (StandardError)


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