Class: MicrosoftGraph::Models::WindowsUpdateScheduledInstall
- Inherits:
-
WindowsUpdateInstallScheduleType
- Object
- WindowsUpdateInstallScheduleType
- MicrosoftGraph::Models::WindowsUpdateScheduledInstall
- Includes:
- MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/windows_update_scheduled_install.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 windowsUpdateScheduledInstall and sets the default values.
-
#scheduled_install_day ⇒ Object
Gets the scheduledInstallDay property value.
-
#scheduled_install_day=(value) ⇒ Object
Sets the scheduledInstallDay property value.
-
#scheduled_install_time ⇒ Object
Gets the scheduledInstallTime property value.
-
#scheduled_install_time=(value) ⇒ Object
Sets the scheduledInstallTime property value.
-
#serialize(writer) ⇒ Object
Serializes information the current object.
Methods inherited from WindowsUpdateInstallScheduleType
#additional_data, #additional_data=, #odata_type, #odata_type=
Constructor Details
#initialize ⇒ Object
Instantiates a new windowsUpdateScheduledInstall and sets the default values.
20 21 22 23 |
# File 'lib/models/windows_update_scheduled_install.rb', line 20 def initialize() super @odata_type = "#microsoft.graph.windowsUpdateScheduledInstall" end |
Class Method Details
.create_from_discriminator_value(parse_node) ⇒ Object
Creates a new instance of the appropriate class based on discriminator value
29 30 31 32 |
# File 'lib/models/windows_update_scheduled_install.rb', line 29 def self.create_from_discriminator_value(parse_node) raise StandardError, 'parse_node cannot be null' if parse_node.nil? return WindowsUpdateScheduledInstall.new end |
Instance Method Details
#get_field_deserializers ⇒ Object
The deserialization information for the current model
37 38 39 40 41 42 |
# File 'lib/models/windows_update_scheduled_install.rb', line 37 def get_field_deserializers() return super.merge({ "scheduledInstallDay" => lambda {|n| @scheduled_install_day = n.get_enum_value(MicrosoftGraph::Models::WeeklySchedule) }, "scheduledInstallTime" => lambda {|n| @scheduled_install_time = n.get_time_value() }, }) end |
#scheduled_install_day ⇒ Object
Gets the scheduledInstallDay property value. Possible values for a weekly schedule.
47 48 49 |
# File 'lib/models/windows_update_scheduled_install.rb', line 47 def scheduled_install_day return @scheduled_install_day end |
#scheduled_install_day=(value) ⇒ Object
Sets the scheduledInstallDay property value. Possible values for a weekly schedule.
55 56 57 |
# File 'lib/models/windows_update_scheduled_install.rb', line 55 def scheduled_install_day=(value) @scheduled_install_day = value end |
#scheduled_install_time ⇒ Object
Gets the scheduledInstallTime property value. Scheduled Install Time during day
62 63 64 |
# File 'lib/models/windows_update_scheduled_install.rb', line 62 def scheduled_install_time return @scheduled_install_time end |
#scheduled_install_time=(value) ⇒ Object
Sets the scheduledInstallTime property value. Scheduled Install Time during day
70 71 72 |
# File 'lib/models/windows_update_scheduled_install.rb', line 70 def scheduled_install_time=(value) @scheduled_install_time = value end |
#serialize(writer) ⇒ Object
Serializes information the current object
78 79 80 81 82 83 |
# File 'lib/models/windows_update_scheduled_install.rb', line 78 def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? super writer.write_enum_value("scheduledInstallDay", @scheduled_install_day) writer.write_time_value("scheduledInstallTime", @scheduled_install_time) end |