Class: MicrosoftGraph::Models::IosLobAppAssignmentSettings
- Inherits:
-
MobileAppAssignmentSettings
- Object
- MobileAppAssignmentSettings
- MicrosoftGraph::Models::IosLobAppAssignmentSettings
- Includes:
- MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/ios_lob_app_assignment_settings.rb
Overview
Contains properties used to assign an iOS LOB mobile app to a group.
Class Method Summary collapse
-
.create_from_discriminator_value(parse_node) ⇒ Object
Creates a new instance of the appropriate class based on discriminator value.
Instance Method Summary collapse
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#initialize ⇒ Object
constructor
Instantiates a new iosLobAppAssignmentSettings and sets the default values.
-
#is_removable ⇒ Object
Gets the isRemovable property value.
-
#is_removable=(value) ⇒ Object
Sets the isRemovable property value.
-
#serialize(writer) ⇒ Object
Serializes information the current object.
-
#uninstall_on_device_removal ⇒ Object
Gets the uninstallOnDeviceRemoval property value.
-
#uninstall_on_device_removal=(value) ⇒ Object
Sets the uninstallOnDeviceRemoval property value.
-
#vpn_configuration_id ⇒ Object
Gets the vpnConfigurationId property value.
-
#vpn_configuration_id=(value) ⇒ Object
Sets the vpnConfigurationId property value.
Methods inherited from MobileAppAssignmentSettings
#additional_data, #additional_data=, #odata_type, #odata_type=
Constructor Details
#initialize ⇒ Object
Instantiates a new iosLobAppAssignmentSettings and sets the default values.
24 25 26 27 |
# File 'lib/models/ios_lob_app_assignment_settings.rb', line 24 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
33 34 35 36 |
# File 'lib/models/ios_lob_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 IosLobAppAssignmentSettings.new end |
Instance Method Details
#get_field_deserializers ⇒ Object
The deserialization information for the current model
41 42 43 44 45 46 47 |
# File 'lib/models/ios_lob_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_removable ⇒ Object
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.
52 53 54 |
# File 'lib/models/ios_lob_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.
60 61 62 |
# File 'lib/models/ios_lob_app_assignment_settings.rb', line 60 def is_removable=(value) @is_removable = value end |
#serialize(writer) ⇒ Object
Serializes information the current object
68 69 70 71 72 73 74 |
# File 'lib/models/ios_lob_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_removal ⇒ Object
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.
79 80 81 |
# File 'lib/models/ios_lob_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.
87 88 89 |
# File 'lib/models/ios_lob_app_assignment_settings.rb', line 87 def uninstall_on_device_removal=(value) @uninstall_on_device_removal = value end |
#vpn_configuration_id ⇒ Object
Gets the vpnConfigurationId property value. This is the unique identifier (Id) of the VPN Configuration to apply to the app.
94 95 96 |
# File 'lib/models/ios_lob_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.
102 103 104 |
# File 'lib/models/ios_lob_app_assignment_settings.rb', line 102 def vpn_configuration_id=(value) @vpn_configuration_id = value end |