Class: MicrosoftGraph::Models::IosUpdateConfiguration
- Inherits:
-
DeviceConfiguration
- Object
- Entity
- DeviceConfiguration
- MicrosoftGraph::Models::IosUpdateConfiguration
- 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
-
.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 iosUpdateConfiguration and sets the default values.
-
#scheduled_install_days ⇒ Object
Gets the scheduledInstallDays property value.
-
#scheduled_install_days=(value) ⇒ Object
Sets the scheduledInstallDays property value.
-
#serialize(writer) ⇒ Object
Serializes information the current object.
-
#utc_time_offset_in_minutes ⇒ Object
Gets the utcTimeOffsetInMinutes property value.
-
#utc_time_offset_in_minutes=(value) ⇒ Object
Sets the utcTimeOffsetInMinutes property value.
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
#initialize ⇒ Object
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
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_end ⇒ Object
Gets the activeHoursEnd property value. Active Hours End (active hours mean the time window when updates install should not happen)
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)
36 37 38 |
# File 'lib/models/ios_update_configuration.rb', line 36 def active_hours_end=(value) @active_hours_end = value end |
#active_hours_start ⇒ Object
Gets the activeHoursStart property value. Active Hours Start (active hours mean the time window when updates install should not happen)
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)
51 52 53 |
# File 'lib/models/ios_update_configuration.rb', line 51 def active_hours_start=(value) @active_hours_start = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
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_days ⇒ Object
Gets the scheduledInstallDays property value. Days in week for which active hours are configured. This collection can contain a maximum of 7 elements.
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.
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
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_minutes ⇒ Object
Gets the utcTimeOffsetInMinutes property value. UTC Time Offset indicated in minutes
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
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 |