Class: MicrosoftGraph::Models::DeviceOperatingSystemSummary

Inherits:
Object
  • Object
show all
Includes:
MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable
Defined in:
lib/models/device_operating_system_summary.rb

Overview

Device operating system summary.

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeObject

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

Parameters:

  • parse_node

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

Returns:

  • a device_operating_system_summary

Raises:

  • (StandardError)


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_dataObject

Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.

Returns:

  • a i_dictionary



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.

Parameters:

  • value

    Value to set for the additionalData property.

Returns:

  • a void



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_countObject

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

Returns:

  • a integer



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

Parameters:

  • value

    Value to set for the androidCorporateWorkProfileCount property.

Returns:

  • a void



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_countObject

Gets the androidCount property value. Number of android device count.

Returns:

  • a integer



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.

Parameters:

  • value

    Value to set for the androidCount property.

Returns:

  • a void



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

def android_count=(value)
    @android_count = value
end

#android_dedicated_countObject

Gets the androidDedicatedCount property value. Number of dedicated Android devices.

Returns:

  • a integer



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.

Parameters:

  • value

    Value to set for the androidDedicatedCount property.

Returns:

  • a void



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_countObject

Gets the androidDeviceAdminCount property value. Number of device admin Android devices.

Returns:

  • a integer



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.

Parameters:

  • value

    Value to set for the androidDeviceAdminCount property.

Returns:

  • a void



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_countObject

Gets the androidFullyManagedCount property value. Number of fully managed Android devices.

Returns:

  • a integer



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.

Parameters:

  • value

    Value to set for the androidFullyManagedCount property.

Returns:

  • a void



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_countObject

Gets the androidWorkProfileCount property value. Number of work profile Android devices.

Returns:

  • a integer



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.

Parameters:

  • value

    Value to set for the androidWorkProfileCount property.

Returns:

  • a void



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_countObject

Gets the configMgrDeviceCount property value. Number of ConfigMgr managed devices.

Returns:

  • a integer



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.

Parameters:

  • value

    Value to set for the configMgrDeviceCount property.

Returns:

  • a void



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_deserializersObject

The deserialization information for the current model

Returns:

  • a i_dictionary



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_countObject

Gets the iosCount property value. Number of iOS device count.

Returns:

  • a integer



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.

Parameters:

  • value

    Value to set for the iosCount property.

Returns:

  • a void



222
223
224
# File 'lib/models/device_operating_system_summary.rb', line 222

def ios_count=(value)
    @ios_count = value
end

#mac_o_s_countObject

Gets the macOSCount property value. Number of Mac OS X device count.

Returns:

  • a integer



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.

Parameters:

  • value

    Value to set for the macOSCount property.

Returns:

  • a void



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_typeObject

Gets the @odata.type property value. The OdataType property

Returns:

  • a string



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

Parameters:

  • value

    Value to set for the @odata.type property.

Returns:

  • a void



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

Parameters:

  • writer

    Serialization writer to use to serialize this model

Returns:

  • a void

Raises:

  • (StandardError)


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_countObject

Gets the unknownCount property value. Number of unknown device count.

Returns:

  • a integer



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.

Parameters:

  • value

    Value to set for the unknownCount property.

Returns:

  • a void



289
290
291
# File 'lib/models/device_operating_system_summary.rb', line 289

def unknown_count=(value)
    @unknown_count = value
end

#windows_countObject

Gets the windowsCount property value. Number of Windows device count.

Returns:

  • a integer



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.

Parameters:

  • value

    Value to set for the windowsCount property.

Returns:

  • a void



304
305
306
# File 'lib/models/device_operating_system_summary.rb', line 304

def windows_count=(value)
    @windows_count = value
end

#windows_mobile_countObject

Gets the windowsMobileCount property value. Number of Windows mobile device count.

Returns:

  • a integer



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.

Parameters:

  • value

    Value to set for the windowsMobileCount property.

Returns:

  • a void



319
320
321
# File 'lib/models/device_operating_system_summary.rb', line 319

def windows_mobile_count=(value)
    @windows_mobile_count = value
end