Class: MicrosoftGraph::Models::WindowsUpdateActiveHoursInstall
- Inherits:
-
WindowsUpdateInstallScheduleType
- Object
- WindowsUpdateInstallScheduleType
- MicrosoftGraph::Models::WindowsUpdateActiveHoursInstall
- Includes:
- MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/windows_update_active_hours_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
-
#active_hours_end ⇒ Object
Gets the activeHoursEnd property value.
-
#active_hours_end=(value) ⇒ Object
Sets the activeHoursEnd property value.
-
#active_hours_start ⇒ Object
Gets the activeHoursStart property value.
-
#active_hours_start=(value) ⇒ Object
Sets the activeHoursStart property value.
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#initialize ⇒ Object
constructor
Instantiates a new windowsUpdateActiveHoursInstall and sets the default values.
-
#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 windowsUpdateActiveHoursInstall and sets the default values.
50 51 52 53 |
# File 'lib/models/windows_update_active_hours_install.rb', line 50 def initialize() super @odata_type = "#microsoft.graph.windowsUpdateActiveHoursInstall" end |
Class Method Details
.create_from_discriminator_value(parse_node) ⇒ Object
Creates a new instance of the appropriate class based on discriminator value
59 60 61 62 |
# File 'lib/models/windows_update_active_hours_install.rb', line 59 def self.create_from_discriminator_value(parse_node) raise StandardError, 'parse_node cannot be null' if parse_node.nil? return WindowsUpdateActiveHoursInstall.new end |
Instance Method Details
#active_hours_end ⇒ Object
Gets the activeHoursEnd property value. Active Hours End
20 21 22 |
# File 'lib/models/windows_update_active_hours_install.rb', line 20 def active_hours_end return @active_hours_end end |
#active_hours_end=(value) ⇒ Object
Sets the activeHoursEnd property value. Active Hours End
28 29 30 |
# File 'lib/models/windows_update_active_hours_install.rb', line 28 def active_hours_end=(value) @active_hours_end = value end |
#active_hours_start ⇒ Object
Gets the activeHoursStart property value. Active Hours Start
35 36 37 |
# File 'lib/models/windows_update_active_hours_install.rb', line 35 def active_hours_start return @active_hours_start end |
#active_hours_start=(value) ⇒ Object
Sets the activeHoursStart property value. Active Hours Start
43 44 45 |
# File 'lib/models/windows_update_active_hours_install.rb', line 43 def active_hours_start=(value) @active_hours_start = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
67 68 69 70 71 72 |
# File 'lib/models/windows_update_active_hours_install.rb', line 67 def get_field_deserializers() return super.merge({ "activeHoursEnd" => lambda {|n| @active_hours_end = n.get_time_value() }, "activeHoursStart" => lambda {|n| @active_hours_start = n.get_time_value() }, }) end |
#serialize(writer) ⇒ Object
Serializes information the current object
78 79 80 81 82 83 |
# File 'lib/models/windows_update_active_hours_install.rb', line 78 def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? super writer.write_time_value("activeHoursEnd", @active_hours_end) writer.write_time_value("activeHoursStart", @active_hours_start) end |