Class: MicrosoftGraph::Models::ManagedAndroidLobApp

Inherits:
ManagedMobileLobApp show all
Includes:
MicrosoftKiotaAbstractions::Parsable
Defined in:
lib/models/managed_android_lob_app.rb

Overview

Contains properties and inherited properties for Managed Android Line Of Business apps.

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from ManagedMobileLobApp

#committed_content_version, #committed_content_version=, #content_versions, #content_versions=, #file_name, #file_name=, #size, #size=

Methods inherited from ManagedApp

#app_availability, #app_availability=, #version, #version=

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

#initializeObject

Instantiates a new managedAndroidLobApp and sets the default values.



27
28
29
30
# File 'lib/models/managed_android_lob_app.rb', line 27

def initialize()
    super
    @odata_type = "#microsoft.graph.managedAndroidLobApp"
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 managed_android_lob_app

Raises:

  • (StandardError)


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

def self.create_from_discriminator_value(parse_node)
    raise StandardError, 'parse_node cannot be null' if parse_node.nil?
    return ManagedAndroidLobApp.new
end

Instance Method Details

#get_field_deserializersObject

The deserialization information for the current model

Returns:

  • a i_dictionary



44
45
46
47
48
49
50
51
# File 'lib/models/managed_android_lob_app.rb', line 44

def get_field_deserializers()
    return super.merge({
        "minimumSupportedOperatingSystem" => lambda {|n| @minimum_supported_operating_system = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::AndroidMinimumOperatingSystem.create_from_discriminator_value(pn) }) },
        "packageId" => lambda {|n| @package_id = n.get_string_value() },
        "versionCode" => lambda {|n| @version_code = n.get_string_value() },
        "versionName" => lambda {|n| @version_name = n.get_string_value() },
    })
end

#minimum_supported_operating_systemObject

Gets the minimumSupportedOperatingSystem property value. The value for the minimum applicable operating system.

Returns:

  • a android_minimum_operating_system



56
57
58
# File 'lib/models/managed_android_lob_app.rb', line 56

def minimum_supported_operating_system
    return @minimum_supported_operating_system
end

#minimum_supported_operating_system=(value) ⇒ Object

Sets the minimumSupportedOperatingSystem property value. The value for the minimum applicable operating system.

Parameters:

  • value

    Value to set for the minimumSupportedOperatingSystem property.

Returns:

  • a void



64
65
66
# File 'lib/models/managed_android_lob_app.rb', line 64

def minimum_supported_operating_system=(value)
    @minimum_supported_operating_system = value
end

#package_idObject

Gets the packageId property value. The package identifier.

Returns:

  • a string



71
72
73
# File 'lib/models/managed_android_lob_app.rb', line 71

def package_id
    return @package_id
end

#package_id=(value) ⇒ Object

Sets the packageId property value. The package identifier.

Parameters:

  • value

    Value to set for the packageId property.

Returns:

  • a void



79
80
81
# File 'lib/models/managed_android_lob_app.rb', line 79

def package_id=(value)
    @package_id = 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)


87
88
89
90
91
92
93
94
# File 'lib/models/managed_android_lob_app.rb', line 87

def serialize(writer)
    raise StandardError, 'writer cannot be null' if writer.nil?
    super
    writer.write_object_value("minimumSupportedOperatingSystem", @minimum_supported_operating_system)
    writer.write_string_value("packageId", @package_id)
    writer.write_string_value("versionCode", @version_code)
    writer.write_string_value("versionName", @version_name)
end

#version_codeObject

Gets the versionCode property value. The version code of managed Android Line of Business (LoB) app.

Returns:

  • a string



99
100
101
# File 'lib/models/managed_android_lob_app.rb', line 99

def version_code
    return @version_code
end

#version_code=(value) ⇒ Object

Sets the versionCode property value. The version code of managed Android Line of Business (LoB) app.

Parameters:

  • value

    Value to set for the versionCode property.

Returns:

  • a void



107
108
109
# File 'lib/models/managed_android_lob_app.rb', line 107

def version_code=(value)
    @version_code = value
end

#version_nameObject

Gets the versionName property value. The version name of managed Android Line of Business (LoB) app.

Returns:

  • a string



114
115
116
# File 'lib/models/managed_android_lob_app.rb', line 114

def version_name
    return @version_name
end

#version_name=(value) ⇒ Object

Sets the versionName property value. The version name of managed Android Line of Business (LoB) app.

Parameters:

  • value

    Value to set for the versionName property.

Returns:

  • a void



122
123
124
# File 'lib/models/managed_android_lob_app.rb', line 122

def version_name=(value)
    @version_name = value
end