Class: MicrosoftGraph::Models::ManagedIOSStoreApp

Inherits:
ManagedApp show all
Includes:
MicrosoftKiotaAbstractions::Parsable
Defined in:
lib/models/managed_i_o_s_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 ManagedIOSStoreApp and sets the default values.



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

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

Raises:

  • (StandardError)


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

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

Instance Method Details

#app_store_urlObject

Gets the appStoreUrl property value. The Apple AppStoreUrl.

Returns:

  • a string



25
26
27
# File 'lib/models/managed_i_o_s_store_app.rb', line 25

def app_store_url
    return @app_store_url
end

#app_store_url=(value) ⇒ Object

Sets the appStoreUrl property value. The Apple AppStoreUrl.

Parameters:

  • value

    Value to set for the app_store_url property.

Returns:

  • a void



33
34
35
# File 'lib/models/managed_i_o_s_store_app.rb', line 33

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



40
41
42
# File 'lib/models/managed_i_o_s_store_app.rb', line 40

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 applicable_device_type property.

Returns:

  • a void



48
49
50
# File 'lib/models/managed_i_o_s_store_app.rb', line 48

def applicable_device_type=(value)
    @applicable_device_type = value
end

#bundle_idObject

Gets the bundleId property value. The app’s Bundle ID.

Returns:

  • a string



55
56
57
# File 'lib/models/managed_i_o_s_store_app.rb', line 55

def bundle_id
    return @bundle_id
end

#bundle_id=(value) ⇒ Object

Sets the bundleId property value. The app’s Bundle ID.

Parameters:

  • value

    Value to set for the bundle_id property.

Returns:

  • a void



63
64
65
# File 'lib/models/managed_i_o_s_store_app.rb', line 63

def bundle_id=(value)
    @bundle_id = value
end

#get_field_deserializersObject

The deserialization information for the current model

Returns:

  • a i_dictionary



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

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. Contains properties of the minimum operating system required for an iOS mobile app.

Returns:

  • a ios_minimum_operating_system



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

def minimum_supported_operating_system
    return @minimum_supported_operating_system
end

#minimum_supported_operating_system=(value) ⇒ Object

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

Parameters:

  • value

    Value to set for the minimum_supported_operating_system property.

Returns:

  • a void



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

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)


115
116
117
118
119
120
121
122
# File 'lib/models/managed_i_o_s_store_app.rb', line 115

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