Class: MicrosoftGraph::Models::IosLobAppAssignmentSettings
- Inherits:
-
MobileAppAssignmentSettings
- Object
- MobileAppAssignmentSettings
- MicrosoftGraph::Models::IosLobAppAssignmentSettings
- Includes:
- MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/ios_lob_app_assignment_settings.rb
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.
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
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_deserializers ⇒ Object
The deserialization information for the current model
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_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.
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.
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
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_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.
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.
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_id ⇒ Object
Gets the vpnConfigurationId property value. This is the unique identifier (Id) of the VPN Configuration to apply to the app.
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.
100 101 102 |
# File 'lib/models/ios_lob_app_assignment_settings.rb', line 100 def vpn_configuration_id=(value) @vpn_configuration_id = value end |