Class: MicrosoftGraph::Models::IosUpdateConfiguration

Inherits:
DeviceConfiguration show all
Includes:
MicrosoftKiotaAbstractions::Parsable
Defined in:
lib/models/ios_update_configuration.rb

Overview

IOS Update Configuration, allows you to configure time window within week to install iOS updates

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from DeviceConfiguration

#assignments, #assignments=, #created_date_time, #created_date_time=, #description, #description=, #device_setting_state_summaries, #device_setting_state_summaries=, #device_status_overview, #device_status_overview=, #device_statuses, #device_statuses=, #display_name, #display_name=, #last_modified_date_time, #last_modified_date_time=, #user_status_overview, #user_status_overview=, #user_statuses, #user_statuses=, #version, #version=

Methods inherited from Entity

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

Constructor Details

#initializeObject

Instantiates a new iosUpdateConfiguration and sets the default values.



58
59
60
61
# File 'lib/models/ios_update_configuration.rb', line 58

def initialize()
    super
    @odata_type = "#microsoft.graph.iosUpdateConfiguration"
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 ios_update_configuration

Raises:

  • (StandardError)


67
68
69
70
# File 'lib/models/ios_update_configuration.rb', line 67

def self.create_from_discriminator_value(parse_node)
    raise StandardError, 'parse_node cannot be null' if parse_node.nil?
    return IosUpdateConfiguration.new
end

Instance Method Details

#active_hours_endObject

Gets the activeHoursEnd property value. Active Hours End (active hours mean the time window when updates install should not happen)

Returns:

  • a time



28
29
30
# File 'lib/models/ios_update_configuration.rb', line 28

def active_hours_end
    return @active_hours_end
end

#active_hours_end=(value) ⇒ Object

Sets the activeHoursEnd property value. Active Hours End (active hours mean the time window when updates install should not happen)

Parameters:

  • value

    Value to set for the activeHoursEnd property.

Returns:

  • a void



36
37
38
# File 'lib/models/ios_update_configuration.rb', line 36

def active_hours_end=(value)
    @active_hours_end = value
end

#active_hours_startObject

Gets the activeHoursStart property value. Active Hours Start (active hours mean the time window when updates install should not happen)

Returns:

  • a time



43
44
45
# File 'lib/models/ios_update_configuration.rb', line 43

def active_hours_start
    return @active_hours_start
end

#active_hours_start=(value) ⇒ Object

Sets the activeHoursStart property value. Active Hours Start (active hours mean the time window when updates install should not happen)

Parameters:

  • value

    Value to set for the activeHoursStart property.

Returns:

  • a void



51
52
53
# File 'lib/models/ios_update_configuration.rb', line 51

def active_hours_start=(value)
    @active_hours_start = value
end

#get_field_deserializersObject

The deserialization information for the current model

Returns:

  • a i_dictionary



75
76
77
78
79
80
81
82
# File 'lib/models/ios_update_configuration.rb', line 75

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() },
        "scheduledInstallDays" => lambda {|n| @scheduled_install_days = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::DayOfWeek.create_from_discriminator_value(pn) }) },
        "utcTimeOffsetInMinutes" => lambda {|n| @utc_time_offset_in_minutes = n.get_number_value() },
    })
end

#scheduled_install_daysObject

Gets the scheduledInstallDays property value. Days in week for which active hours are configured. This collection can contain a maximum of 7 elements.

Returns:

  • a day_of_week



87
88
89
# File 'lib/models/ios_update_configuration.rb', line 87

def scheduled_install_days
    return @scheduled_install_days
end

#scheduled_install_days=(value) ⇒ Object

Sets the scheduledInstallDays property value. Days in week for which active hours are configured. This collection can contain a maximum of 7 elements.

Parameters:

  • value

    Value to set for the scheduledInstallDays property.

Returns:

  • a void



95
96
97
# File 'lib/models/ios_update_configuration.rb', line 95

def scheduled_install_days=(value)
    @scheduled_install_days = 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)


103
104
105
106
107
108
109
110
# File 'lib/models/ios_update_configuration.rb', line 103

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)
    writer.write_collection_of_object_values("scheduledInstallDays", @scheduled_install_days)
    writer.write_number_value("utcTimeOffsetInMinutes", @utc_time_offset_in_minutes)
end

#utc_time_offset_in_minutesObject

Gets the utcTimeOffsetInMinutes property value. UTC Time Offset indicated in minutes

Returns:

  • a integer



115
116
117
# File 'lib/models/ios_update_configuration.rb', line 115

def utc_time_offset_in_minutes
    return @utc_time_offset_in_minutes
end

#utc_time_offset_in_minutes=(value) ⇒ Object

Sets the utcTimeOffsetInMinutes property value. UTC Time Offset indicated in minutes

Parameters:

  • value

    Value to set for the utcTimeOffsetInMinutes property.

Returns:

  • a void



123
124
125
# File 'lib/models/ios_update_configuration.rb', line 123

def utc_time_offset_in_minutes=(value)
    @utc_time_offset_in_minutes = value
end