Class: MicrosoftGraph::Models::IosStoreAppAssignmentSettings

Inherits:
MobileAppAssignmentSettings show all
Includes:
MicrosoftKiotaAbstractions::Parsable
Defined in:
lib/models/ios_store_app_assignment_settings.rb

Overview

Contains properties used to assign an iOS Store mobile app to a group.

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from MobileAppAssignmentSettings

#additional_data, #additional_data=, #odata_type, #odata_type=

Constructor Details

#initializeObject

Instantiates a new iosStoreAppAssignmentSettings and sets the default values.



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

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

Raises:

  • (StandardError)


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

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

Instance Method Details

#get_field_deserializersObject

The deserialization information for the current model

Returns:

  • a i_dictionary



41
42
43
44
45
46
47
# File 'lib/models/ios_store_app_assignment_settings.rb', line 41

def get_field_deserializers()
    return super.merge({
        "isRemovable" => lambda {|n| @is_removable = n.get_boolean_value() },
        "uninstallOnDeviceRemoval" => lambda {|n| @uninstall_on_device_removal = n.get_boolean_value() },
        "vpnConfigurationId" => lambda {|n| @vpn_configuration_id = n.get_string_value() },
    })
end

#is_removableObject

Gets the isRemovable property value. When TRUE, indicates that the app can be uninstalled by the user. When FALSE, indicates that the app cannot be uninstalled by the user. By default, this property is set to null which internally is treated as TRUE.

Returns:

  • a boolean



52
53
54
# File 'lib/models/ios_store_app_assignment_settings.rb', line 52

def is_removable
    return @is_removable
end

#is_removable=(value) ⇒ Object

Sets the isRemovable property value. When TRUE, indicates that the app can be uninstalled by the user. When FALSE, indicates that the app cannot be uninstalled by the user. By default, this property is set to null which internally is treated as TRUE.

Parameters:

  • value

    Value to set for the isRemovable property.

Returns:

  • a void



60
61
62
# File 'lib/models/ios_store_app_assignment_settings.rb', line 60

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


68
69
70
71
72
73
74
# File 'lib/models/ios_store_app_assignment_settings.rb', line 68

def serialize(writer)
    raise StandardError, 'writer cannot be null' if writer.nil?
    super
    writer.write_boolean_value("isRemovable", @is_removable)
    writer.write_boolean_value("uninstallOnDeviceRemoval", @uninstall_on_device_removal)
    writer.write_string_value("vpnConfigurationId", @vpn_configuration_id)
end

#uninstall_on_device_removalObject

Gets the uninstallOnDeviceRemoval property value. When TRUE, indicates that the app should be uninstalled when the device is removed from Intune. When FALSE, indicates that the app will not be uninstalled when the device is removed from Intune. By default, property is set to null which internally is treated as TRUE.

Returns:

  • a boolean



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

def uninstall_on_device_removal
    return @uninstall_on_device_removal
end

#uninstall_on_device_removal=(value) ⇒ Object

Sets the uninstallOnDeviceRemoval property value. When TRUE, indicates that the app should be uninstalled when the device is removed from Intune. When FALSE, indicates that the app will not be uninstalled when the device is removed from Intune. By default, property is set to null which internally is treated as TRUE.

Parameters:

  • value

    Value to set for the uninstallOnDeviceRemoval property.

Returns:

  • a void



87
88
89
# File 'lib/models/ios_store_app_assignment_settings.rb', line 87

def uninstall_on_device_removal=(value)
    @uninstall_on_device_removal = value
end

#vpn_configuration_idObject

Gets the vpnConfigurationId property value. This is the unique identifier (Id) of the VPN Configuration to apply to the app.

Returns:

  • a string



94
95
96
# File 'lib/models/ios_store_app_assignment_settings.rb', line 94

def vpn_configuration_id
    return @vpn_configuration_id
end

#vpn_configuration_id=(value) ⇒ Object

Sets the vpnConfigurationId property value. This is the unique identifier (Id) of the VPN Configuration to apply to the app.

Parameters:

  • value

    Value to set for the vpnConfigurationId property.

Returns:

  • a void



102
103
104
# File 'lib/models/ios_store_app_assignment_settings.rb', line 102

def vpn_configuration_id=(value)
    @vpn_configuration_id = value
end