Class: MicrosoftGraph::Models::Win32LobAppAssignmentSettings
- Inherits:
-
MobileAppAssignmentSettings
- Object
- MobileAppAssignmentSettings
- MicrosoftGraph::Models::Win32LobAppAssignmentSettings
- Includes:
- MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/win32_lob_app_assignment_settings.rb
Overview
Contains properties used to assign an Win32 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
-
#delivery_optimization_priority ⇒ Object
Gets the deliveryOptimizationPriority property value.
-
#delivery_optimization_priority=(value) ⇒ Object
Sets the deliveryOptimizationPriority property value.
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#initialize ⇒ Object
constructor
Instantiates a new win32LobAppAssignmentSettings and sets the default values.
-
#install_time_settings ⇒ Object
Gets the installTimeSettings property value.
-
#install_time_settings=(value) ⇒ Object
Sets the installTimeSettings property value.
-
#notifications ⇒ Object
Gets the notifications property value.
-
#notifications=(value) ⇒ Object
Sets the notifications property value.
-
#restart_settings ⇒ Object
Gets the restartSettings property value.
-
#restart_settings=(value) ⇒ Object
Sets the restartSettings property value.
-
#serialize(writer) ⇒ Object
Serializes information the current object.
Methods inherited from MobileAppAssignmentSettings
#additional_data, #additional_data=, #odata_type, #odata_type=
Constructor Details
#initialize ⇒ Object
Instantiates a new win32LobAppAssignmentSettings and sets the default values.
27 28 29 30 |
# File 'lib/models/win32_lob_app_assignment_settings.rb', line 27 def initialize() super @odata_type = "#microsoft.graph.win32LobAppAssignmentSettings" end |
Class Method Details
.create_from_discriminator_value(parse_node) ⇒ Object
Creates a new instance of the appropriate class based on discriminator value
36 37 38 39 |
# File 'lib/models/win32_lob_app_assignment_settings.rb', line 36 def self.create_from_discriminator_value(parse_node) raise StandardError, 'parse_node cannot be null' if parse_node.nil? return Win32LobAppAssignmentSettings.new end |
Instance Method Details
#delivery_optimization_priority ⇒ Object
Gets the deliveryOptimizationPriority property value. Contains value for delivery optimization priority.
44 45 46 |
# File 'lib/models/win32_lob_app_assignment_settings.rb', line 44 def delivery_optimization_priority return @delivery_optimization_priority end |
#delivery_optimization_priority=(value) ⇒ Object
Sets the deliveryOptimizationPriority property value. Contains value for delivery optimization priority.
52 53 54 |
# File 'lib/models/win32_lob_app_assignment_settings.rb', line 52 def delivery_optimization_priority=(value) @delivery_optimization_priority = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
59 60 61 62 63 64 65 66 |
# File 'lib/models/win32_lob_app_assignment_settings.rb', line 59 def get_field_deserializers() return super.merge({ "deliveryOptimizationPriority" => lambda {|n| @delivery_optimization_priority = n.get_enum_value(MicrosoftGraph::Models::Win32LobAppDeliveryOptimizationPriority) }, "installTimeSettings" => lambda {|n| @install_time_settings = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::MobileAppInstallTimeSettings.create_from_discriminator_value(pn) }) }, "notifications" => lambda {|n| @notifications = n.get_enum_value(MicrosoftGraph::Models::Win32LobAppNotification) }, "restartSettings" => lambda {|n| @restart_settings = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Win32LobAppRestartSettings.create_from_discriminator_value(pn) }) }, }) end |
#install_time_settings ⇒ Object
Gets the installTimeSettings property value. The install time settings to apply for this app assignment.
71 72 73 |
# File 'lib/models/win32_lob_app_assignment_settings.rb', line 71 def install_time_settings return @install_time_settings end |
#install_time_settings=(value) ⇒ Object
Sets the installTimeSettings property value. The install time settings to apply for this app assignment.
79 80 81 |
# File 'lib/models/win32_lob_app_assignment_settings.rb', line 79 def install_time_settings=(value) @install_time_settings = value end |
#notifications ⇒ Object
Gets the notifications property value. Contains value for notification status.
86 87 88 |
# File 'lib/models/win32_lob_app_assignment_settings.rb', line 86 def notifications return @notifications end |
#notifications=(value) ⇒ Object
Sets the notifications property value. Contains value for notification status.
94 95 96 |
# File 'lib/models/win32_lob_app_assignment_settings.rb', line 94 def notifications=(value) @notifications = value end |
#restart_settings ⇒ Object
Gets the restartSettings property value. The reboot settings to apply for this app assignment.
101 102 103 |
# File 'lib/models/win32_lob_app_assignment_settings.rb', line 101 def restart_settings return @restart_settings end |
#restart_settings=(value) ⇒ Object
Sets the restartSettings property value. The reboot settings to apply for this app assignment.
109 110 111 |
# File 'lib/models/win32_lob_app_assignment_settings.rb', line 109 def restart_settings=(value) @restart_settings = value end |
#serialize(writer) ⇒ Object
Serializes information the current object
117 118 119 120 121 122 123 124 |
# File 'lib/models/win32_lob_app_assignment_settings.rb', line 117 def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? super writer.write_enum_value("deliveryOptimizationPriority", @delivery_optimization_priority) writer.write_object_value("installTimeSettings", @install_time_settings) writer.write_enum_value("notifications", @notifications) writer.write_object_value("restartSettings", @restart_settings) end |