Class: MicrosoftGraph::Models::IosStoreApp

Inherits:
MobileApp show all
Includes:
MicrosoftKiotaAbstractions::Parsable
Defined in:
lib/models/ios_store_app.rb

Overview

Contains properties and inherited properties for iOS store apps.

Class Method Summary collapse

Instance Method Summary collapse

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



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

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

Raises:

  • (StandardError)


81
82
83
84
# File 'lib/models/ios_store_app.rb', line 81

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

Instance Method Details

#app_store_urlObject

Gets the appStoreUrl property value. The Apple App Store URL

Returns:

  • a string



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

def app_store_url
    return @app_store_url
end

#app_store_url=(value) ⇒ Object

Sets the appStoreUrl property value. The Apple App Store URL

Parameters:

  • value

    Value to set for the appStoreUrl property.

Returns:

  • a void



35
36
37
# File 'lib/models/ios_store_app.rb', line 35

def app_store_url=(value)
    @app_store_url = value
end

#applicable_device_typeObject

Gets the applicableDeviceType property value. Contains properties of the possible iOS device types the mobile app can run on.

Returns:

  • a ios_device_type



42
43
44
# File 'lib/models/ios_store_app.rb', line 42

def applicable_device_type
    return @applicable_device_type
end

#applicable_device_type=(value) ⇒ Object

Sets the applicableDeviceType property value. Contains properties of the possible iOS device types the mobile app can run on.

Parameters:

  • value

    Value to set for the applicableDeviceType property.

Returns:

  • a void



50
51
52
# File 'lib/models/ios_store_app.rb', line 50

def applicable_device_type=(value)
    @applicable_device_type = value
end

#bundle_idObject

Gets the bundleId property value. The Identity Name.

Returns:

  • a string



57
58
59
# File 'lib/models/ios_store_app.rb', line 57

def bundle_id
    return @bundle_id
end

#bundle_id=(value) ⇒ Object

Sets the bundleId property value. The Identity Name.

Parameters:

  • value

    Value to set for the bundleId property.

Returns:

  • a void



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

def bundle_id=(value)
    @bundle_id = value
end

#get_field_deserializersObject

The deserialization information for the current model

Returns:

  • a i_dictionary



89
90
91
92
93
94
95
96
# File 'lib/models/ios_store_app.rb', line 89

def get_field_deserializers()
    return super.merge({
        "appStoreUrl" => lambda {|n| @app_store_url = n.get_string_value() },
        "applicableDeviceType" => lambda {|n| @applicable_device_type = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::IosDeviceType.create_from_discriminator_value(pn) }) },
        "bundleId" => lambda {|n| @bundle_id = n.get_string_value() },
        "minimumSupportedOperatingSystem" => lambda {|n| @minimum_supported_operating_system = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::IosMinimumOperatingSystem.create_from_discriminator_value(pn) }) },
    })
end

#minimum_supported_operating_systemObject

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

Returns:

  • a ios_minimum_operating_system



101
102
103
# File 'lib/models/ios_store_app.rb', line 101

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



109
110
111
# File 'lib/models/ios_store_app.rb', line 109

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


117
118
119
120
121
122
123
124
# File 'lib/models/ios_store_app.rb', line 117

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("applicableDeviceType", @applicable_device_type)
    writer.write_string_value("bundleId", @bundle_id)
    writer.write_object_value("minimumSupportedOperatingSystem", @minimum_supported_operating_system)
end