Class: MicrosoftGraph::Models::DeviceConfiguration
- Includes:
- MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/device_configuration.rb
Overview
Device Configuration.
Direct Known Subclasses
AndroidCustomConfiguration, AndroidGeneralDeviceConfiguration, AndroidWorkProfileCustomConfiguration, AndroidWorkProfileGeneralDeviceConfiguration, AppleDeviceFeaturesConfigurationBase, EditionUpgradeConfiguration, IosCertificateProfile, IosCustomConfiguration, IosGeneralDeviceConfiguration, IosUpdateConfiguration, MacOSCustomConfiguration, MacOSGeneralDeviceConfiguration, SharedPCConfiguration, Windows10CustomConfiguration, Windows10EndpointProtectionConfiguration, Windows10EnterpriseModernAppManagementConfiguration, Windows10GeneralConfiguration, Windows10SecureAssessmentConfiguration, Windows10TeamGeneralConfiguration, Windows81GeneralConfiguration, WindowsDefenderAdvancedThreatProtectionConfiguration, WindowsPhone81CustomConfiguration, WindowsPhone81GeneralConfiguration, WindowsUpdateForBusinessConfiguration
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
-
#assignments ⇒ Object
Gets the assignments property value.
-
#assignments=(value) ⇒ Object
Sets the assignments property value.
-
#created_date_time ⇒ Object
Gets the createdDateTime property value.
-
#created_date_time=(value) ⇒ Object
Sets the createdDateTime property value.
-
#description ⇒ Object
Gets the description property value.
-
#description=(value) ⇒ Object
Sets the description property value.
-
#device_setting_state_summaries ⇒ Object
Gets the deviceSettingStateSummaries property value.
-
#device_setting_state_summaries=(value) ⇒ Object
Sets the deviceSettingStateSummaries property value.
-
#device_status_overview ⇒ Object
Gets the deviceStatusOverview property value.
-
#device_status_overview=(value) ⇒ Object
Sets the deviceStatusOverview property value.
-
#device_statuses ⇒ Object
Gets the deviceStatuses property value.
-
#device_statuses=(value) ⇒ Object
Sets the deviceStatuses property value.
-
#display_name ⇒ Object
Gets the displayName property value.
-
#display_name=(value) ⇒ Object
Sets the displayName property value.
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#initialize ⇒ Object
constructor
Instantiates a new deviceConfiguration and sets the default values.
-
#last_modified_date_time ⇒ Object
Gets the lastModifiedDateTime property value.
-
#last_modified_date_time=(value) ⇒ Object
Sets the lastModifiedDateTime property value.
-
#serialize(writer) ⇒ Object
Serializes information the current object.
-
#user_status_overview ⇒ Object
Gets the userStatusOverview property value.
-
#user_status_overview=(value) ⇒ Object
Sets the userStatusOverview property value.
-
#user_statuses ⇒ Object
Gets the userStatuses property value.
-
#user_statuses=(value) ⇒ Object
Sets the userStatuses property value.
-
#version ⇒ Object
Gets the version property value.
-
#version=(value) ⇒ Object
Sets the version property value.
Methods inherited from Entity
#additional_data, #additional_data=, #id, #id=, #odata_type, #odata_type=
Constructor Details
#initialize ⇒ Object
Instantiates a new deviceConfiguration and sets the default values.
64 65 66 |
# File 'lib/models/device_configuration.rb', line 64 def initialize() super end |
Class Method Details
.create_from_discriminator_value(parse_node) ⇒ Object
Creates a new instance of the appropriate class based on discriminator value
87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 |
# File 'lib/models/device_configuration.rb', line 87 def self.create_from_discriminator_value(parse_node) raise StandardError, 'parse_node cannot be null' if parse_node.nil? mapping_value_node = parse_node.get_child_node("@odata.type") unless mapping_value_node.nil? then mapping_value = mapping_value_node.get_string_value case mapping_value when "#microsoft.graph.androidCustomConfiguration" return AndroidCustomConfiguration.new when "#microsoft.graph.androidGeneralDeviceConfiguration" return AndroidGeneralDeviceConfiguration.new when "#microsoft.graph.androidWorkProfileCustomConfiguration" return AndroidWorkProfileCustomConfiguration.new when "#microsoft.graph.androidWorkProfileGeneralDeviceConfiguration" return AndroidWorkProfileGeneralDeviceConfiguration.new when "#microsoft.graph.appleDeviceFeaturesConfigurationBase" return AppleDeviceFeaturesConfigurationBase.new when "#microsoft.graph.editionUpgradeConfiguration" return EditionUpgradeConfiguration.new when "#microsoft.graph.iosCertificateProfile" return IosCertificateProfile.new when "#microsoft.graph.iosCustomConfiguration" return IosCustomConfiguration.new when "#microsoft.graph.iosDeviceFeaturesConfiguration" return IosDeviceFeaturesConfiguration.new when "#microsoft.graph.iosGeneralDeviceConfiguration" return IosGeneralDeviceConfiguration.new when "#microsoft.graph.iosUpdateConfiguration" return IosUpdateConfiguration.new when "#microsoft.graph.macOSCustomConfiguration" return MacOSCustomConfiguration.new when "#microsoft.graph.macOSDeviceFeaturesConfiguration" return MacOSDeviceFeaturesConfiguration.new when "#microsoft.graph.macOSGeneralDeviceConfiguration" return MacOSGeneralDeviceConfiguration.new when "#microsoft.graph.sharedPCConfiguration" return SharedPCConfiguration.new when "#microsoft.graph.windows10CustomConfiguration" return Windows10CustomConfiguration.new when "#microsoft.graph.windows10EndpointProtectionConfiguration" return Windows10EndpointProtectionConfiguration.new when "#microsoft.graph.windows10EnterpriseModernAppManagementConfiguration" return Windows10EnterpriseModernAppManagementConfiguration.new when "#microsoft.graph.windows10GeneralConfiguration" return Windows10GeneralConfiguration.new when "#microsoft.graph.windows10SecureAssessmentConfiguration" return Windows10SecureAssessmentConfiguration.new when "#microsoft.graph.windows10TeamGeneralConfiguration" return Windows10TeamGeneralConfiguration.new when "#microsoft.graph.windows81GeneralConfiguration" return Windows81GeneralConfiguration.new when "#microsoft.graph.windowsDefenderAdvancedThreatProtectionConfiguration" return WindowsDefenderAdvancedThreatProtectionConfiguration.new when "#microsoft.graph.windowsPhone81CustomConfiguration" return WindowsPhone81CustomConfiguration.new when "#microsoft.graph.windowsPhone81GeneralConfiguration" return WindowsPhone81GeneralConfiguration.new when "#microsoft.graph.windowsUpdateForBusinessConfiguration" return WindowsUpdateForBusinessConfiguration.new end end return DeviceConfiguration.new end |
Instance Method Details
#assignments ⇒ Object
Gets the assignments property value. The list of assignments for the device configuration profile.
49 50 51 |
# File 'lib/models/device_configuration.rb', line 49 def assignments return @assignments end |
#assignments=(value) ⇒ Object
Sets the assignments property value. The list of assignments for the device configuration profile.
57 58 59 |
# File 'lib/models/device_configuration.rb', line 57 def assignments=(value) @assignments = value end |
#created_date_time ⇒ Object
Gets the createdDateTime property value. DateTime the object was created.
71 72 73 |
# File 'lib/models/device_configuration.rb', line 71 def created_date_time return @created_date_time end |
#created_date_time=(value) ⇒ Object
Sets the createdDateTime property value. DateTime the object was created.
79 80 81 |
# File 'lib/models/device_configuration.rb', line 79 def created_date_time=(value) @created_date_time = value end |
#description ⇒ Object
Gets the description property value. Admin provided description of the Device Configuration.
153 154 155 |
# File 'lib/models/device_configuration.rb', line 153 def description return @description end |
#description=(value) ⇒ Object
Sets the description property value. Admin provided description of the Device Configuration.
161 162 163 |
# File 'lib/models/device_configuration.rb', line 161 def description=(value) @description = value end |
#device_setting_state_summaries ⇒ Object
Gets the deviceSettingStateSummaries property value. Device Configuration Setting State Device Summary
168 169 170 |
# File 'lib/models/device_configuration.rb', line 168 def device_setting_state_summaries return @device_setting_state_summaries end |
#device_setting_state_summaries=(value) ⇒ Object
Sets the deviceSettingStateSummaries property value. Device Configuration Setting State Device Summary
176 177 178 |
# File 'lib/models/device_configuration.rb', line 176 def device_setting_state_summaries=(value) @device_setting_state_summaries = value end |
#device_status_overview ⇒ Object
Gets the deviceStatusOverview property value. Device Configuration devices status overview
183 184 185 |
# File 'lib/models/device_configuration.rb', line 183 def device_status_overview return @device_status_overview end |
#device_status_overview=(value) ⇒ Object
Sets the deviceStatusOverview property value. Device Configuration devices status overview
191 192 193 |
# File 'lib/models/device_configuration.rb', line 191 def device_status_overview=(value) @device_status_overview = value end |
#device_statuses ⇒ Object
Gets the deviceStatuses property value. Device configuration installation status by device.
198 199 200 |
# File 'lib/models/device_configuration.rb', line 198 def device_statuses return @device_statuses end |
#device_statuses=(value) ⇒ Object
Sets the deviceStatuses property value. Device configuration installation status by device.
206 207 208 |
# File 'lib/models/device_configuration.rb', line 206 def device_statuses=(value) @device_statuses = value end |
#display_name ⇒ Object
Gets the displayName property value. Admin provided name of the device configuration.
213 214 215 |
# File 'lib/models/device_configuration.rb', line 213 def display_name return @display_name end |
#display_name=(value) ⇒ Object
Sets the displayName property value. Admin provided name of the device configuration.
221 222 223 |
# File 'lib/models/device_configuration.rb', line 221 def display_name=(value) @display_name = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 |
# File 'lib/models/device_configuration.rb', line 228 def get_field_deserializers() return super.merge({ "assignments" => lambda {|n| @assignments = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::DeviceConfigurationAssignment.create_from_discriminator_value(pn) }) }, "createdDateTime" => lambda {|n| @created_date_time = n.get_date_time_value() }, "description" => lambda {|n| @description = n.get_string_value() }, "deviceSettingStateSummaries" => lambda {|n| @device_setting_state_summaries = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::SettingStateDeviceSummary.create_from_discriminator_value(pn) }) }, "deviceStatusOverview" => lambda {|n| @device_status_overview = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::DeviceConfigurationDeviceOverview.create_from_discriminator_value(pn) }) }, "deviceStatuses" => lambda {|n| @device_statuses = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::DeviceConfigurationDeviceStatus.create_from_discriminator_value(pn) }) }, "displayName" => lambda {|n| @display_name = n.get_string_value() }, "lastModifiedDateTime" => lambda {|n| @last_modified_date_time = n.get_date_time_value() }, "userStatusOverview" => lambda {|n| @user_status_overview = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::DeviceConfigurationUserOverview.create_from_discriminator_value(pn) }) }, "userStatuses" => lambda {|n| @user_statuses = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::DeviceConfigurationUserStatus.create_from_discriminator_value(pn) }) }, "version" => lambda {|n| @version = n.get_number_value() }, }) end |
#last_modified_date_time ⇒ Object
Gets the lastModifiedDateTime property value. DateTime the object was last modified.
247 248 249 |
# File 'lib/models/device_configuration.rb', line 247 def last_modified_date_time return @last_modified_date_time end |
#last_modified_date_time=(value) ⇒ Object
Sets the lastModifiedDateTime property value. DateTime the object was last modified.
255 256 257 |
# File 'lib/models/device_configuration.rb', line 255 def last_modified_date_time=(value) @last_modified_date_time = value end |
#serialize(writer) ⇒ Object
Serializes information the current object
263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 |
# File 'lib/models/device_configuration.rb', line 263 def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? super writer.write_collection_of_object_values("assignments", @assignments) writer.write_date_time_value("createdDateTime", @created_date_time) writer.write_string_value("description", @description) writer.write_collection_of_object_values("deviceSettingStateSummaries", @device_setting_state_summaries) writer.write_object_value("deviceStatusOverview", @device_status_overview) writer.write_collection_of_object_values("deviceStatuses", @device_statuses) writer.write_string_value("displayName", @display_name) writer.write_date_time_value("lastModifiedDateTime", @last_modified_date_time) writer.write_object_value("userStatusOverview", @user_status_overview) writer.write_collection_of_object_values("userStatuses", @user_statuses) writer.write_number_value("version", @version) end |
#user_status_overview ⇒ Object
Gets the userStatusOverview property value. Device Configuration users status overview
282 283 284 |
# File 'lib/models/device_configuration.rb', line 282 def user_status_overview return @user_status_overview end |
#user_status_overview=(value) ⇒ Object
Sets the userStatusOverview property value. Device Configuration users status overview
290 291 292 |
# File 'lib/models/device_configuration.rb', line 290 def user_status_overview=(value) @user_status_overview = value end |
#user_statuses ⇒ Object
Gets the userStatuses property value. Device configuration installation status by user.
297 298 299 |
# File 'lib/models/device_configuration.rb', line 297 def user_statuses return @user_statuses end |
#user_statuses=(value) ⇒ Object
Sets the userStatuses property value. Device configuration installation status by user.
305 306 307 |
# File 'lib/models/device_configuration.rb', line 305 def user_statuses=(value) @user_statuses = value end |
#version ⇒ Object
Gets the version property value. Version of the device configuration.
312 313 314 |
# File 'lib/models/device_configuration.rb', line 312 def version return @version end |
#version=(value) ⇒ Object
Sets the version property value. Version of the device configuration.
320 321 322 |
# File 'lib/models/device_configuration.rb', line 320 def version=(value) @version = value end |