Class: MicrosoftGraph::Models::Win32LobAppRestartSettings
- Inherits:
-
Object
- Object
- MicrosoftGraph::Models::Win32LobAppRestartSettings
- Includes:
- MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/win32_lob_app_restart_settings.rb
Overview
Contains properties describing restart coordination following an app installation.
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
-
#additional_data ⇒ Object
Gets the additionalData property value.
-
#additional_data=(value) ⇒ Object
Sets the additionalData property value.
-
#countdown_display_before_restart_in_minutes ⇒ Object
Gets the countdownDisplayBeforeRestartInMinutes property value.
-
#countdown_display_before_restart_in_minutes=(value) ⇒ Object
Sets the countdownDisplayBeforeRestartInMinutes property value.
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#grace_period_in_minutes ⇒ Object
Gets the gracePeriodInMinutes property value.
-
#grace_period_in_minutes=(value) ⇒ Object
Sets the gracePeriodInMinutes property value.
-
#initialize ⇒ Object
constructor
Instantiates a new win32LobAppRestartSettings and sets the default values.
-
#odata_type ⇒ Object
Gets the @odata.type property value.
-
#odata_type=(value) ⇒ Object
Sets the @odata.type property value.
-
#restart_notification_snooze_duration_in_minutes ⇒ Object
Gets the restartNotificationSnoozeDurationInMinutes property value.
-
#restart_notification_snooze_duration_in_minutes=(value) ⇒ Object
Sets the restartNotificationSnoozeDurationInMinutes property value.
-
#serialize(writer) ⇒ Object
Serializes information the current object.
Constructor Details
#initialize ⇒ Object
Instantiates a new win32LobAppRestartSettings and sets the default values.
45 46 47 |
# File 'lib/models/win32_lob_app_restart_settings.rb', line 45 def initialize() @additional_data = Hash.new end |
Class Method Details
.create_from_discriminator_value(parse_node) ⇒ Object
Creates a new instance of the appropriate class based on discriminator value
68 69 70 71 |
# File 'lib/models/win32_lob_app_restart_settings.rb', line 68 def self.create_from_discriminator_value(parse_node) raise StandardError, 'parse_node cannot be null' if parse_node.nil? return Win32LobAppRestartSettings.new end |
Instance Method Details
#additional_data ⇒ Object
Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
30 31 32 |
# File 'lib/models/win32_lob_app_restart_settings.rb', line 30 def additional_data return @additional_data end |
#additional_data=(value) ⇒ Object
Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
38 39 40 |
# File 'lib/models/win32_lob_app_restart_settings.rb', line 38 def additional_data=(value) @additional_data = value end |
#countdown_display_before_restart_in_minutes ⇒ Object
Gets the countdownDisplayBeforeRestartInMinutes property value. The number of minutes before the restart time to display the countdown dialog for pending restarts.
52 53 54 |
# File 'lib/models/win32_lob_app_restart_settings.rb', line 52 def countdown_display_before_restart_in_minutes return @countdown_display_before_restart_in_minutes end |
#countdown_display_before_restart_in_minutes=(value) ⇒ Object
Sets the countdownDisplayBeforeRestartInMinutes property value. The number of minutes before the restart time to display the countdown dialog for pending restarts.
60 61 62 |
# File 'lib/models/win32_lob_app_restart_settings.rb', line 60 def countdown_display_before_restart_in_minutes=(value) @countdown_display_before_restart_in_minutes = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
76 77 78 79 80 81 82 83 |
# File 'lib/models/win32_lob_app_restart_settings.rb', line 76 def get_field_deserializers() return { "countdownDisplayBeforeRestartInMinutes" => lambda {|n| @countdown_display_before_restart_in_minutes = n.get_number_value() }, "gracePeriodInMinutes" => lambda {|n| @grace_period_in_minutes = n.get_number_value() }, "@odata.type" => lambda {|n| @odata_type = n.get_string_value() }, "restartNotificationSnoozeDurationInMinutes" => lambda {|n| @restart_notification_snooze_duration_in_minutes = n.get_number_value() }, } end |
#grace_period_in_minutes ⇒ Object
Gets the gracePeriodInMinutes property value. The number of minutes to wait before restarting the device after an app installation.
88 89 90 |
# File 'lib/models/win32_lob_app_restart_settings.rb', line 88 def grace_period_in_minutes return @grace_period_in_minutes end |
#grace_period_in_minutes=(value) ⇒ Object
Sets the gracePeriodInMinutes property value. The number of minutes to wait before restarting the device after an app installation.
96 97 98 |
# File 'lib/models/win32_lob_app_restart_settings.rb', line 96 def grace_period_in_minutes=(value) @grace_period_in_minutes = value end |
#odata_type ⇒ Object
Gets the @odata.type property value. The OdataType property
103 104 105 |
# File 'lib/models/win32_lob_app_restart_settings.rb', line 103 def odata_type return @odata_type end |
#odata_type=(value) ⇒ Object
Sets the @odata.type property value. The OdataType property
111 112 113 |
# File 'lib/models/win32_lob_app_restart_settings.rb', line 111 def odata_type=(value) @odata_type = value end |
#restart_notification_snooze_duration_in_minutes ⇒ Object
Gets the restartNotificationSnoozeDurationInMinutes property value. The number of minutes to snooze the restart notification dialog when the snooze button is selected.
118 119 120 |
# File 'lib/models/win32_lob_app_restart_settings.rb', line 118 def restart_notification_snooze_duration_in_minutes return @restart_notification_snooze_duration_in_minutes end |
#restart_notification_snooze_duration_in_minutes=(value) ⇒ Object
Sets the restartNotificationSnoozeDurationInMinutes property value. The number of minutes to snooze the restart notification dialog when the snooze button is selected.
126 127 128 |
# File 'lib/models/win32_lob_app_restart_settings.rb', line 126 def restart_notification_snooze_duration_in_minutes=(value) @restart_notification_snooze_duration_in_minutes = value end |
#serialize(writer) ⇒ Object
Serializes information the current object
134 135 136 137 138 139 140 141 |
# File 'lib/models/win32_lob_app_restart_settings.rb', line 134 def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? writer.write_number_value("countdownDisplayBeforeRestartInMinutes", @countdown_display_before_restart_in_minutes) writer.write_number_value("gracePeriodInMinutes", @grace_period_in_minutes) writer.write_string_value("@odata.type", @odata_type) writer.write_number_value("restartNotificationSnoozeDurationInMinutes", @restart_notification_snooze_duration_in_minutes) writer.write_additional_data(@additional_data) end |