Class: MicrosoftGraph::Models::DeviceOperatingSystemSummary
- Inherits:
-
Object
- Object
- MicrosoftGraph::Models::DeviceOperatingSystemSummary
- Includes:
- MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/device_operating_system_summary.rb
Overview
Device operating system summary.
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
-
#additional_data ⇒ Object
Gets the additionalData property value.
-
#additional_data=(value) ⇒ Object
Sets the additionalData property value.
-
#android_corporate_work_profile_count ⇒ Object
Gets the androidCorporateWorkProfileCount property value.
-
#android_corporate_work_profile_count=(value) ⇒ Object
Sets the androidCorporateWorkProfileCount property value.
-
#android_count ⇒ Object
Gets the androidCount property value.
-
#android_count=(value) ⇒ Object
Sets the androidCount property value.
-
#android_dedicated_count ⇒ Object
Gets the androidDedicatedCount property value.
-
#android_dedicated_count=(value) ⇒ Object
Sets the androidDedicatedCount property value.
-
#android_device_admin_count ⇒ Object
Gets the androidDeviceAdminCount property value.
-
#android_device_admin_count=(value) ⇒ Object
Sets the androidDeviceAdminCount property value.
-
#android_fully_managed_count ⇒ Object
Gets the androidFullyManagedCount property value.
-
#android_fully_managed_count=(value) ⇒ Object
Sets the androidFullyManagedCount property value.
-
#android_work_profile_count ⇒ Object
Gets the androidWorkProfileCount property value.
-
#android_work_profile_count=(value) ⇒ Object
Sets the androidWorkProfileCount property value.
-
#config_mgr_device_count ⇒ Object
Gets the configMgrDeviceCount property value.
-
#config_mgr_device_count=(value) ⇒ Object
Sets the configMgrDeviceCount property value.
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#initialize ⇒ Object
constructor
Instantiates a new deviceOperatingSystemSummary and sets the default values.
-
#ios_count ⇒ Object
Gets the iosCount property value.
-
#ios_count=(value) ⇒ Object
Sets the iosCount property value.
-
#mac_o_s_count ⇒ Object
Gets the macOSCount property value.
-
#mac_o_s_count=(value) ⇒ Object
Sets the macOSCount property value.
-
#odata_type ⇒ Object
Gets the @odata.type property value.
-
#odata_type=(value) ⇒ Object
Sets the @odata.type property value.
-
#serialize(writer) ⇒ Object
Serializes information the current object.
-
#unknown_count ⇒ Object
Gets the unknownCount property value.
-
#unknown_count=(value) ⇒ Object
Sets the unknownCount property value.
-
#windows_count ⇒ Object
Gets the windowsCount property value.
-
#windows_count=(value) ⇒ Object
Sets the windowsCount property value.
-
#windows_mobile_count ⇒ Object
Gets the windowsMobileCount property value.
-
#windows_mobile_count=(value) ⇒ Object
Sets the windowsMobileCount property value.
Constructor Details
#initialize ⇒ Object
Instantiates a new deviceOperatingSystemSummary and sets the default values.
177 178 179 |
# File 'lib/models/device_operating_system_summary.rb', line 177 def initialize() @additional_data = Hash.new end |
Class Method Details
.create_from_discriminator_value(parse_node) ⇒ Object
Creates a new instance of the appropriate class based on discriminator value
185 186 187 188 |
# File 'lib/models/device_operating_system_summary.rb', line 185 def self.create_from_discriminator_value(parse_node) raise StandardError, 'parse_node cannot be null' if parse_node.nil? return DeviceOperatingSystemSummary.new end |
Instance Method Details
#additional_data ⇒ Object
Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
57 58 59 |
# File 'lib/models/device_operating_system_summary.rb', line 57 def additional_data return @additional_data end |
#additional_data=(value) ⇒ Object
Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
65 66 67 |
# File 'lib/models/device_operating_system_summary.rb', line 65 def additional_data=(value) @additional_data = value end |
#android_corporate_work_profile_count ⇒ Object
Gets the androidCorporateWorkProfileCount property value. The count of Corporate work profile Android devices. Also known as Corporate Owned Personally Enabled (COPE). Valid values -1 to 2147483647
72 73 74 |
# File 'lib/models/device_operating_system_summary.rb', line 72 def android_corporate_work_profile_count return @android_corporate_work_profile_count end |
#android_corporate_work_profile_count=(value) ⇒ Object
Sets the androidCorporateWorkProfileCount property value. The count of Corporate work profile Android devices. Also known as Corporate Owned Personally Enabled (COPE). Valid values -1 to 2147483647
80 81 82 |
# File 'lib/models/device_operating_system_summary.rb', line 80 def android_corporate_work_profile_count=(value) @android_corporate_work_profile_count = value end |
#android_count ⇒ Object
Gets the androidCount property value. Number of android device count.
87 88 89 |
# File 'lib/models/device_operating_system_summary.rb', line 87 def android_count return @android_count end |
#android_count=(value) ⇒ Object
Sets the androidCount property value. Number of android device count.
95 96 97 |
# File 'lib/models/device_operating_system_summary.rb', line 95 def android_count=(value) @android_count = value end |
#android_dedicated_count ⇒ Object
Gets the androidDedicatedCount property value. Number of dedicated Android devices.
102 103 104 |
# File 'lib/models/device_operating_system_summary.rb', line 102 def android_dedicated_count return @android_dedicated_count end |
#android_dedicated_count=(value) ⇒ Object
Sets the androidDedicatedCount property value. Number of dedicated Android devices.
110 111 112 |
# File 'lib/models/device_operating_system_summary.rb', line 110 def android_dedicated_count=(value) @android_dedicated_count = value end |
#android_device_admin_count ⇒ Object
Gets the androidDeviceAdminCount property value. Number of device admin Android devices.
117 118 119 |
# File 'lib/models/device_operating_system_summary.rb', line 117 def android_device_admin_count return @android_device_admin_count end |
#android_device_admin_count=(value) ⇒ Object
Sets the androidDeviceAdminCount property value. Number of device admin Android devices.
125 126 127 |
# File 'lib/models/device_operating_system_summary.rb', line 125 def android_device_admin_count=(value) @android_device_admin_count = value end |
#android_fully_managed_count ⇒ Object
Gets the androidFullyManagedCount property value. Number of fully managed Android devices.
132 133 134 |
# File 'lib/models/device_operating_system_summary.rb', line 132 def android_fully_managed_count return @android_fully_managed_count end |
#android_fully_managed_count=(value) ⇒ Object
Sets the androidFullyManagedCount property value. Number of fully managed Android devices.
140 141 142 |
# File 'lib/models/device_operating_system_summary.rb', line 140 def android_fully_managed_count=(value) @android_fully_managed_count = value end |
#android_work_profile_count ⇒ Object
Gets the androidWorkProfileCount property value. Number of work profile Android devices.
147 148 149 |
# File 'lib/models/device_operating_system_summary.rb', line 147 def android_work_profile_count return @android_work_profile_count end |
#android_work_profile_count=(value) ⇒ Object
Sets the androidWorkProfileCount property value. Number of work profile Android devices.
155 156 157 |
# File 'lib/models/device_operating_system_summary.rb', line 155 def android_work_profile_count=(value) @android_work_profile_count = value end |
#config_mgr_device_count ⇒ Object
Gets the configMgrDeviceCount property value. Number of ConfigMgr managed devices.
162 163 164 |
# File 'lib/models/device_operating_system_summary.rb', line 162 def config_mgr_device_count return @config_mgr_device_count end |
#config_mgr_device_count=(value) ⇒ Object
Sets the configMgrDeviceCount property value. Number of ConfigMgr managed devices.
170 171 172 |
# File 'lib/models/device_operating_system_summary.rb', line 170 def config_mgr_device_count=(value) @config_mgr_device_count = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 |
# File 'lib/models/device_operating_system_summary.rb', line 193 def get_field_deserializers() return { "androidCorporateWorkProfileCount" => lambda {|n| @android_corporate_work_profile_count = n.get_number_value() }, "androidCount" => lambda {|n| @android_count = n.get_number_value() }, "androidDedicatedCount" => lambda {|n| @android_dedicated_count = n.get_number_value() }, "androidDeviceAdminCount" => lambda {|n| @android_device_admin_count = n.get_number_value() }, "androidFullyManagedCount" => lambda {|n| @android_fully_managed_count = n.get_number_value() }, "androidWorkProfileCount" => lambda {|n| @android_work_profile_count = n.get_number_value() }, "configMgrDeviceCount" => lambda {|n| @config_mgr_device_count = n.get_number_value() }, "iosCount" => lambda {|n| @ios_count = n.get_number_value() }, "macOSCount" => lambda {|n| @mac_o_s_count = n.get_number_value() }, "@odata.type" => lambda {|n| @odata_type = n.get_string_value() }, "unknownCount" => lambda {|n| @unknown_count = n.get_number_value() }, "windowsCount" => lambda {|n| @windows_count = n.get_number_value() }, "windowsMobileCount" => lambda {|n| @windows_mobile_count = n.get_number_value() }, } end |
#ios_count ⇒ Object
Gets the iosCount property value. Number of iOS device count.
214 215 216 |
# File 'lib/models/device_operating_system_summary.rb', line 214 def ios_count return @ios_count end |
#ios_count=(value) ⇒ Object
Sets the iosCount property value. Number of iOS device count.
222 223 224 |
# File 'lib/models/device_operating_system_summary.rb', line 222 def ios_count=(value) @ios_count = value end |
#mac_o_s_count ⇒ Object
Gets the macOSCount property value. Number of Mac OS X device count.
229 230 231 |
# File 'lib/models/device_operating_system_summary.rb', line 229 def mac_o_s_count return @mac_o_s_count end |
#mac_o_s_count=(value) ⇒ Object
Sets the macOSCount property value. Number of Mac OS X device count.
237 238 239 |
# File 'lib/models/device_operating_system_summary.rb', line 237 def mac_o_s_count=(value) @mac_o_s_count = value end |
#odata_type ⇒ Object
Gets the @odata.type property value. The OdataType property
244 245 246 |
# File 'lib/models/device_operating_system_summary.rb', line 244 def odata_type return @odata_type end |
#odata_type=(value) ⇒ Object
Sets the @odata.type property value. The OdataType property
252 253 254 |
# File 'lib/models/device_operating_system_summary.rb', line 252 def odata_type=(value) @odata_type = value end |
#serialize(writer) ⇒ Object
Serializes information the current object
260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 |
# File 'lib/models/device_operating_system_summary.rb', line 260 def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? writer.write_number_value("androidCorporateWorkProfileCount", @android_corporate_work_profile_count) writer.write_number_value("androidCount", @android_count) writer.write_number_value("androidDedicatedCount", @android_dedicated_count) writer.write_number_value("androidDeviceAdminCount", @android_device_admin_count) writer.write_number_value("androidFullyManagedCount", @android_fully_managed_count) writer.write_number_value("androidWorkProfileCount", @android_work_profile_count) writer.write_number_value("configMgrDeviceCount", @config_mgr_device_count) writer.write_number_value("iosCount", @ios_count) writer.write_number_value("macOSCount", @mac_o_s_count) writer.write_string_value("@odata.type", @odata_type) writer.write_number_value("unknownCount", @unknown_count) writer.write_number_value("windowsCount", @windows_count) writer.write_number_value("windowsMobileCount", @windows_mobile_count) writer.write_additional_data(@additional_data) end |
#unknown_count ⇒ Object
Gets the unknownCount property value. Number of unknown device count.
281 282 283 |
# File 'lib/models/device_operating_system_summary.rb', line 281 def unknown_count return @unknown_count end |
#unknown_count=(value) ⇒ Object
Sets the unknownCount property value. Number of unknown device count.
289 290 291 |
# File 'lib/models/device_operating_system_summary.rb', line 289 def unknown_count=(value) @unknown_count = value end |
#windows_count ⇒ Object
Gets the windowsCount property value. Number of Windows device count.
296 297 298 |
# File 'lib/models/device_operating_system_summary.rb', line 296 def windows_count return @windows_count end |
#windows_count=(value) ⇒ Object
Sets the windowsCount property value. Number of Windows device count.
304 305 306 |
# File 'lib/models/device_operating_system_summary.rb', line 304 def windows_count=(value) @windows_count = value end |
#windows_mobile_count ⇒ Object
Gets the windowsMobileCount property value. Number of Windows mobile device count.
311 312 313 |
# File 'lib/models/device_operating_system_summary.rb', line 311 def windows_mobile_count return @windows_mobile_count end |
#windows_mobile_count=(value) ⇒ Object
Sets the windowsMobileCount property value. Number of Windows mobile device count.
319 320 321 |
# File 'lib/models/device_operating_system_summary.rb', line 319 def windows_mobile_count=(value) @windows_mobile_count = value end |