Class: MicrosoftGraph::Models::IosLobAppAssignmentSettings

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

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



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

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

Raises:

  • (StandardError)


31
32
33
34
# File 'lib/models/ios_lob_app_assignment_settings.rb', line 31

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

Instance Method Details

#get_field_deserializersObject

The deserialization information for the current model

Returns:

  • a i_dictionary



39
40
41
42
43
44
45
# File 'lib/models/ios_lob_app_assignment_settings.rb', line 39

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



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

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

Returns:

  • a void



58
59
60
# File 'lib/models/ios_lob_app_assignment_settings.rb', line 58

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)


66
67
68
69
70
71
72
# File 'lib/models/ios_lob_app_assignment_settings.rb', line 66

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



77
78
79
# File 'lib/models/ios_lob_app_assignment_settings.rb', line 77

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

Returns:

  • a void



85
86
87
# File 'lib/models/ios_lob_app_assignment_settings.rb', line 85

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



92
93
94
# File 'lib/models/ios_lob_app_assignment_settings.rb', line 92

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

Returns:

  • a void



100
101
102
# File 'lib/models/ios_lob_app_assignment_settings.rb', line 100

def vpn_configuration_id=(value)
    @vpn_configuration_id = value
end