Class: MicrosoftGraph::Models::ManagedAndroidStoreApp

Inherits:
ManagedApp show all
Includes:
MicrosoftKiotaAbstractions::Parsable
Defined in:
lib/models/managed_android_store_app.rb

Class Method Summary collapse

Instance Method Summary collapse

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 ManagedAndroidStoreApp and sets the default values.



37
38
39
40
# File 'lib/models/managed_android_store_app.rb', line 37

def initialize()
    super
    @odata_type = "#microsoft.graph.managedAndroidStoreApp"
end

Class Method Details

.create_from_discriminator_value(parse_node) ⇒ Object

Creates a new instance of the appropriate class based on discriminator value

Parameters:

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

Returns:

  • a managed_android_store_app

Raises:



46
47
48
49
# File 'lib/models/managed_android_store_app.rb', line 46

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

Instance Method Details

#app_store_urlObject

Gets the appStoreUrl property value. The Android AppStoreUrl.

Returns:

  • a string



22
23
24
# File 'lib/models/managed_android_store_app.rb', line 22

def app_store_url
    return @app_store_url
end

#app_store_url=(value) ⇒ Object

Sets the appStoreUrl property value. The Android AppStoreUrl.

Parameters:

  • Value to set for the app_store_url property.

Returns:

  • a void



30
31
32
# File 'lib/models/managed_android_store_app.rb', line 30

def app_store_url=(value)
    @app_store_url = value
end

#get_field_deserializersObject

The deserialization information for the current model

Returns:

  • a i_dictionary



54
55
56
57
58
59
60
# File 'lib/models/managed_android_store_app.rb', line 54

def get_field_deserializers()
    return super.merge({
        "appStoreUrl" => lambda {|n| @app_store_url = n.get_string_value() },
        "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() },
    })
end

#minimum_supported_operating_systemObject

Gets the minimumSupportedOperatingSystem property value. Contains properties for the minimum operating system required for an Android mobile app.

Returns:

  • a android_minimum_operating_system



65
66
67
# File 'lib/models/managed_android_store_app.rb', line 65

def minimum_supported_operating_system
    return @minimum_supported_operating_system
end

#minimum_supported_operating_system=(value) ⇒ Object

Sets the minimumSupportedOperatingSystem property value. Contains properties for the minimum operating system required for an Android mobile app.

Parameters:

  • Value to set for the minimum_supported_operating_system property.

Returns:

  • a void



73
74
75
# File 'lib/models/managed_android_store_app.rb', line 73

def minimum_supported_operating_system=(value)
    @minimum_supported_operating_system = value
end

#package_idObject

Gets the packageId property value. The app’s package ID.

Returns:

  • a string



80
81
82
# File 'lib/models/managed_android_store_app.rb', line 80

def package_id
    return @package_id
end

#package_id=(value) ⇒ Object

Sets the packageId property value. The app’s package ID.

Parameters:

  • Value to set for the package_id property.

Returns:

  • a void



88
89
90
# File 'lib/models/managed_android_store_app.rb', line 88

def package_id=(value)
    @package_id = value
end

#serialize(writer) ⇒ Object

Serializes information the current object

Parameters:

  • Serialization writer to use to serialize this model

Returns:

  • a void

Raises:



96
97
98
99
100
101
102
# File 'lib/models/managed_android_store_app.rb', line 96

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