Class: MicrosoftGraph::Models::WindowsUpdateScheduledInstall

Inherits:
WindowsUpdateInstallScheduleType show all
Includes:
MicrosoftKiotaAbstractions::Parsable
Defined in:
lib/models/windows_update_scheduled_install.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from WindowsUpdateInstallScheduleType

#additional_data, #additional_data=, #odata_type, #odata_type=

Constructor Details

#initializeObject

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

Parameters:

  • parse_node

    The parse node to use to read the discriminator value and create the object

Returns:

  • a windows_update_scheduled_install

Raises:

  • (StandardError)


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_deserializersObject

The deserialization information for the current model

Returns:

  • a i_dictionary



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_dayObject

Gets the scheduledInstallDay property value. Possible values for a weekly schedule.

Returns:

  • 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.

Parameters:

  • value

    Value to set for the scheduledInstallDay property.

Returns:

  • a void



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_timeObject

Gets the scheduledInstallTime property value. Scheduled Install Time during day

Returns:

  • a time



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

Parameters:

  • value

    Value to set for the scheduledInstallTime property.

Returns:

  • a void



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

Parameters:

  • writer

    Serialization writer to use to serialize this model

Returns:

  • a void

Raises:

  • (StandardError)


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