Class: MicrosoftGraph::Models::Device

Inherits:
DirectoryObject show all
Includes:
MicrosoftKiotaAbstractions::Parsable
Defined in:
lib/models/device.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from DirectoryObject

#deleted_date_time, #deleted_date_time=

Methods inherited from Entity

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

Constructor Details

#initializeObject

Instantiates a new device and sets the default values.



158
159
160
161
# File 'lib/models/device.rb', line 158

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

Raises:

  • (StandardError)


167
168
169
170
# File 'lib/models/device.rb', line 167

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

Instance Method Details

#account_enabledObject

Gets the accountEnabled property value. true if the account is enabled; otherwise, false. Required. Default is true. Supports $filter (eq, ne, not, in). Only callers in Global Administrator and Cloud Device Administrator roles can set this property.

Returns:

  • a boolean



98
99
100
# File 'lib/models/device.rb', line 98

def 
    return @account_enabled
end

#account_enabled=(value) ⇒ Object

Sets the accountEnabled property value. true if the account is enabled; otherwise, false. Required. Default is true. Supports $filter (eq, ne, not, in). Only callers in Global Administrator and Cloud Device Administrator roles can set this property.

Parameters:

  • value

    Value to set for the accountEnabled property.

Returns:

  • a void



106
107
108
# File 'lib/models/device.rb', line 106

def (value)
    @account_enabled = value
end

#alternative_security_idsObject

Gets the alternativeSecurityIds property value. For internal use only. Not nullable. Supports $filter (eq, not, ge, le).

Returns:

  • a alternative_security_id



113
114
115
# File 'lib/models/device.rb', line 113

def alternative_security_ids
    return @alternative_security_ids
end

#alternative_security_ids=(value) ⇒ Object

Sets the alternativeSecurityIds property value. For internal use only. Not nullable. Supports $filter (eq, not, ge, le).

Parameters:

  • value

    Value to set for the alternativeSecurityIds property.

Returns:

  • a void



121
122
123
# File 'lib/models/device.rb', line 121

def alternative_security_ids=(value)
    @alternative_security_ids = value
end

#approximate_last_sign_in_date_timeObject

Gets the approximateLastSignInDateTime property value. The timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Read-only. Supports $filter (eq, ne, not, ge, le, and eq on null values) and $orderBy.

Returns:

  • a date_time



128
129
130
# File 'lib/models/device.rb', line 128

def 
    return 
end

#approximate_last_sign_in_date_time=(value) ⇒ Object

Sets the approximateLastSignInDateTime property value. The timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Read-only. Supports $filter (eq, ne, not, ge, le, and eq on null values) and $orderBy.

Parameters:

  • value

    Value to set for the approximateLastSignInDateTime property.

Returns:

  • a void



136
137
138
# File 'lib/models/device.rb', line 136

def (value)
     = value
end

#compliance_expiration_date_timeObject

Gets the complianceExpirationDateTime property value. The timestamp when the device is no longer deemed compliant. The timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Read-only.

Returns:

  • a date_time



143
144
145
# File 'lib/models/device.rb', line 143

def compliance_expiration_date_time
    return @compliance_expiration_date_time
end

#compliance_expiration_date_time=(value) ⇒ Object

Sets the complianceExpirationDateTime property value. The timestamp when the device is no longer deemed compliant. The timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Read-only.

Parameters:

  • value

    Value to set for the complianceExpirationDateTime property.

Returns:

  • a void



151
152
153
# File 'lib/models/device.rb', line 151

def compliance_expiration_date_time=(value)
    @compliance_expiration_date_time = value
end

#device_categoryObject

Gets the deviceCategory property value. User-defined property set by Intune to automatically add devices to groups and simplify managing devices.

Returns:

  • a string



175
176
177
# File 'lib/models/device.rb', line 175

def device_category
    return @device_category
end

#device_category=(value) ⇒ Object

Sets the deviceCategory property value. User-defined property set by Intune to automatically add devices to groups and simplify managing devices.

Parameters:

  • value

    Value to set for the deviceCategory property.

Returns:

  • a void



183
184
185
# File 'lib/models/device.rb', line 183

def device_category=(value)
    @device_category = value
end

#device_idObject

Gets the deviceId property value. Unique identifier set by Azure Device Registration Service at the time of registration. This is an alternate key that can be used to reference the device object. Supports $filter (eq, ne, not, startsWith).

Returns:

  • a string



190
191
192
# File 'lib/models/device.rb', line 190

def device_id
    return @device_id
end

#device_id=(value) ⇒ Object

Sets the deviceId property value. Unique identifier set by Azure Device Registration Service at the time of registration. This is an alternate key that can be used to reference the device object. Supports $filter (eq, ne, not, startsWith).

Parameters:

  • value

    Value to set for the deviceId property.

Returns:

  • a void



198
199
200
# File 'lib/models/device.rb', line 198

def device_id=(value)
    @device_id = value
end

#device_metadataObject

Gets the deviceMetadata property value. For internal use only. Set to null.

Returns:

  • a string



205
206
207
# File 'lib/models/device.rb', line 205

def 
    return 
end

#device_metadata=(value) ⇒ Object

Sets the deviceMetadata property value. For internal use only. Set to null.

Parameters:

  • value

    Value to set for the deviceMetadata property.

Returns:

  • a void



213
214
215
# File 'lib/models/device.rb', line 213

def device_metadata=(value)
     = value
end

#device_ownershipObject

Gets the deviceOwnership property value. Ownership of the device. This property is set by Intune. Possible values are: unknown, company, personal.

Returns:

  • a string



220
221
222
# File 'lib/models/device.rb', line 220

def device_ownership
    return @device_ownership
end

#device_ownership=(value) ⇒ Object

Sets the deviceOwnership property value. Ownership of the device. This property is set by Intune. Possible values are: unknown, company, personal.

Parameters:

  • value

    Value to set for the deviceOwnership property.

Returns:

  • a void



228
229
230
# File 'lib/models/device.rb', line 228

def device_ownership=(value)
    @device_ownership = value
end

#device_versionObject

Gets the deviceVersion property value. For internal use only.

Returns:

  • a integer



235
236
237
# File 'lib/models/device.rb', line 235

def device_version
    return @device_version
end

#device_version=(value) ⇒ Object

Sets the deviceVersion property value. For internal use only.

Parameters:

  • value

    Value to set for the deviceVersion property.

Returns:

  • a void



243
244
245
# File 'lib/models/device.rb', line 243

def device_version=(value)
    @device_version = value
end

#display_nameObject

Gets the displayName property value. The display name for the device. Required. Supports $filter (eq, ne, not, ge, le, in, startsWith, and eq on null values), $search, and $orderBy.

Returns:

  • a string



250
251
252
# File 'lib/models/device.rb', line 250

def display_name
    return @display_name
end

#display_name=(value) ⇒ Object

Sets the displayName property value. The display name for the device. Required. Supports $filter (eq, ne, not, ge, le, in, startsWith, and eq on null values), $search, and $orderBy.

Parameters:

  • value

    Value to set for the displayName property.

Returns:

  • a void



258
259
260
# File 'lib/models/device.rb', line 258

def display_name=(value)
    @display_name = value
end

#enrollment_profile_nameObject

Gets the enrollmentProfileName property value. Enrollment profile applied to the device. For example, Apple Device Enrollment Profile, Device enrollment - Corporate device identifiers, or Windows Autopilot profile name. This property is set by Intune.

Returns:

  • a string



265
266
267
# File 'lib/models/device.rb', line 265

def enrollment_profile_name
    return @enrollment_profile_name
end

#enrollment_profile_name=(value) ⇒ Object

Sets the enrollmentProfileName property value. Enrollment profile applied to the device. For example, Apple Device Enrollment Profile, Device enrollment - Corporate device identifiers, or Windows Autopilot profile name. This property is set by Intune.

Parameters:

  • value

    Value to set for the enrollmentProfileName property.

Returns:

  • a void



273
274
275
# File 'lib/models/device.rb', line 273

def enrollment_profile_name=(value)
    @enrollment_profile_name = value
end

#extensionsObject

Gets the extensions property value. The collection of open extensions defined for the device. Read-only. Nullable.

Returns:

  • a extension



280
281
282
# File 'lib/models/device.rb', line 280

def extensions
    return @extensions
end

#extensions=(value) ⇒ Object

Sets the extensions property value. The collection of open extensions defined for the device. Read-only. Nullable.

Parameters:

  • value

    Value to set for the extensions property.

Returns:

  • a void



288
289
290
# File 'lib/models/device.rb', line 288

def extensions=(value)
    @extensions = value
end

#get_field_deserializersObject

The deserialization information for the current model

Returns:

  • a i_dictionary



295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
# File 'lib/models/device.rb', line 295

def get_field_deserializers()
    return super.merge({
        "accountEnabled" => lambda {|n| @account_enabled = n.get_boolean_value() },
        "alternativeSecurityIds" => lambda {|n| @alternative_security_ids = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::AlternativeSecurityId.create_from_discriminator_value(pn) }) },
        "approximateLastSignInDateTime" => lambda {|n|  = n.get_date_time_value() },
        "complianceExpirationDateTime" => lambda {|n| @compliance_expiration_date_time = n.get_date_time_value() },
        "deviceCategory" => lambda {|n| @device_category = n.get_string_value() },
        "deviceId" => lambda {|n| @device_id = n.get_string_value() },
        "deviceMetadata" => lambda {|n|  = n.get_string_value() },
        "deviceOwnership" => lambda {|n| @device_ownership = n.get_string_value() },
        "deviceVersion" => lambda {|n| @device_version = n.get_number_value() },
        "displayName" => lambda {|n| @display_name = n.get_string_value() },
        "enrollmentProfileName" => lambda {|n| @enrollment_profile_name = n.get_string_value() },
        "extensions" => lambda {|n| @extensions = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::Extension.create_from_discriminator_value(pn) }) },
        "isCompliant" => lambda {|n| @is_compliant = n.get_boolean_value() },
        "isManaged" => lambda {|n| @is_managed = n.get_boolean_value() },
        "mdmAppId" => lambda {|n| @mdm_app_id = n.get_string_value() },
        "memberOf" => lambda {|n| @member_of = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::DirectoryObject.create_from_discriminator_value(pn) }) },
        "onPremisesLastSyncDateTime" => lambda {|n| @on_premises_last_sync_date_time = n.get_date_time_value() },
        "onPremisesSyncEnabled" => lambda {|n| @on_premises_sync_enabled = n.get_boolean_value() },
        "operatingSystem" => lambda {|n| @operating_system = n.get_string_value() },
        "operatingSystemVersion" => lambda {|n| @operating_system_version = n.get_string_value() },
        "physicalIds" => lambda {|n| @physical_ids = n.get_collection_of_primitive_values(String) },
        "profileType" => lambda {|n| @profile_type = n.get_string_value() },
        "registeredOwners" => lambda {|n| @registered_owners = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::DirectoryObject.create_from_discriminator_value(pn) }) },
        "registeredUsers" => lambda {|n| @registered_users = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::DirectoryObject.create_from_discriminator_value(pn) }) },
        "registrationDateTime" => lambda {|n| @registration_date_time = n.get_date_time_value() },
        "systemLabels" => lambda {|n| @system_labels = n.get_collection_of_primitive_values(String) },
        "transitiveMemberOf" => lambda {|n| @transitive_member_of = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::DirectoryObject.create_from_discriminator_value(pn) }) },
        "trustType" => lambda {|n| @trust_type = n.get_string_value() },
    })
end

#is_compliantObject

Gets the isCompliant property value. true if the device complies with Mobile Device Management (MDM) policies; otherwise, false. Read-only. This can only be updated by Intune for any device OS type or by an approved MDM app for Windows OS devices. Supports $filter (eq, ne, not).

Returns:

  • a boolean



331
332
333
# File 'lib/models/device.rb', line 331

def is_compliant
    return @is_compliant
end

#is_compliant=(value) ⇒ Object

Sets the isCompliant property value. true if the device complies with Mobile Device Management (MDM) policies; otherwise, false. Read-only. This can only be updated by Intune for any device OS type or by an approved MDM app for Windows OS devices. Supports $filter (eq, ne, not).

Parameters:

  • value

    Value to set for the isCompliant property.

Returns:

  • a void



339
340
341
# File 'lib/models/device.rb', line 339

def is_compliant=(value)
    @is_compliant = value
end

#is_managedObject

Gets the isManaged property value. true if the device is managed by a Mobile Device Management (MDM) app; otherwise, false. This can only be updated by Intune for any device OS type or by an approved MDM app for Windows OS devices. Supports $filter (eq, ne, not).

Returns:

  • a boolean



346
347
348
# File 'lib/models/device.rb', line 346

def is_managed
    return @is_managed
end

#is_managed=(value) ⇒ Object

Sets the isManaged property value. true if the device is managed by a Mobile Device Management (MDM) app; otherwise, false. This can only be updated by Intune for any device OS type or by an approved MDM app for Windows OS devices. Supports $filter (eq, ne, not).

Parameters:

  • value

    Value to set for the isManaged property.

Returns:

  • a void



354
355
356
# File 'lib/models/device.rb', line 354

def is_managed=(value)
    @is_managed = value
end

#mdm_app_idObject

Gets the mdmAppId property value. Application identifier used to register device into MDM. Read-only. Supports $filter (eq, ne, not, startsWith).

Returns:

  • a string



361
362
363
# File 'lib/models/device.rb', line 361

def mdm_app_id
    return @mdm_app_id
end

#mdm_app_id=(value) ⇒ Object

Sets the mdmAppId property value. Application identifier used to register device into MDM. Read-only. Supports $filter (eq, ne, not, startsWith).

Parameters:

  • value

    Value to set for the mdmAppId property.

Returns:

  • a void



369
370
371
# File 'lib/models/device.rb', line 369

def mdm_app_id=(value)
    @mdm_app_id = value
end

#member_ofObject

Gets the memberOf property value. Groups and administrative units that this device is a member of. Read-only. Nullable. Supports $expand.

Returns:

  • a directory_object



376
377
378
# File 'lib/models/device.rb', line 376

def member_of
    return @member_of
end

#member_of=(value) ⇒ Object

Sets the memberOf property value. Groups and administrative units that this device is a member of. Read-only. Nullable. Supports $expand.

Parameters:

  • value

    Value to set for the memberOf property.

Returns:

  • a void



384
385
386
# File 'lib/models/device.rb', line 384

def member_of=(value)
    @member_of = value
end

#on_premises_last_sync_date_timeObject

Gets the onPremisesLastSyncDateTime property value. The last time at which the object was synced with the on-premises directory. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z Read-only. Supports $filter (eq, ne, not, ge, le, in).

Returns:

  • a date_time



391
392
393
# File 'lib/models/device.rb', line 391

def on_premises_last_sync_date_time
    return @on_premises_last_sync_date_time
end

#on_premises_last_sync_date_time=(value) ⇒ Object

Sets the onPremisesLastSyncDateTime property value. The last time at which the object was synced with the on-premises directory. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z Read-only. Supports $filter (eq, ne, not, ge, le, in).

Parameters:

  • value

    Value to set for the onPremisesLastSyncDateTime property.

Returns:

  • a void



399
400
401
# File 'lib/models/device.rb', line 399

def on_premises_last_sync_date_time=(value)
    @on_premises_last_sync_date_time = value
end

#on_premises_sync_enabledObject

Gets the onPremisesSyncEnabled property value. true if this object is synced from an on-premises directory; false if this object was originally synced from an on-premises directory but is no longer synced; null if this object has never been synced from an on-premises directory (default). Read-only. Supports $filter (eq, ne, not, in, and eq on null values).

Returns:

  • a boolean



406
407
408
# File 'lib/models/device.rb', line 406

def on_premises_sync_enabled
    return @on_premises_sync_enabled
end

#on_premises_sync_enabled=(value) ⇒ Object

Sets the onPremisesSyncEnabled property value. true if this object is synced from an on-premises directory; false if this object was originally synced from an on-premises directory but is no longer synced; null if this object has never been synced from an on-premises directory (default). Read-only. Supports $filter (eq, ne, not, in, and eq on null values).

Parameters:

  • value

    Value to set for the onPremisesSyncEnabled property.

Returns:

  • a void



414
415
416
# File 'lib/models/device.rb', line 414

def on_premises_sync_enabled=(value)
    @on_premises_sync_enabled = value
end

#operating_systemObject

Gets the operatingSystem property value. The type of operating system on the device. Required. Supports $filter (eq, ne, not, ge, le, startsWith, and eq on null values).

Returns:

  • a string



421
422
423
# File 'lib/models/device.rb', line 421

def operating_system
    return @operating_system
end

#operating_system=(value) ⇒ Object

Sets the operatingSystem property value. The type of operating system on the device. Required. Supports $filter (eq, ne, not, ge, le, startsWith, and eq on null values).

Parameters:

  • value

    Value to set for the operatingSystem property.

Returns:

  • a void



429
430
431
# File 'lib/models/device.rb', line 429

def operating_system=(value)
    @operating_system = value
end

#operating_system_versionObject

Gets the operatingSystemVersion property value. The version of the operating system on the device. Required. Supports $filter (eq, ne, not, ge, le, startsWith, and eq on null values).

Returns:

  • a string



436
437
438
# File 'lib/models/device.rb', line 436

def operating_system_version
    return @operating_system_version
end

#operating_system_version=(value) ⇒ Object

Sets the operatingSystemVersion property value. The version of the operating system on the device. Required. Supports $filter (eq, ne, not, ge, le, startsWith, and eq on null values).

Parameters:

  • value

    Value to set for the operatingSystemVersion property.

Returns:

  • a void



444
445
446
# File 'lib/models/device.rb', line 444

def operating_system_version=(value)
    @operating_system_version = value
end

#physical_idsObject

Gets the physicalIds property value. For internal use only. Not nullable. Supports $filter (eq, not, ge, le, startsWith,/$count eq 0, /$count ne 0).

Returns:

  • a string



451
452
453
# File 'lib/models/device.rb', line 451

def physical_ids
    return @physical_ids
end

#physical_ids=(value) ⇒ Object

Sets the physicalIds property value. For internal use only. Not nullable. Supports $filter (eq, not, ge, le, startsWith,/$count eq 0, /$count ne 0).

Parameters:

  • value

    Value to set for the physicalIds property.

Returns:

  • a void



459
460
461
# File 'lib/models/device.rb', line 459

def physical_ids=(value)
    @physical_ids = value
end

#profile_typeObject

Gets the profileType property value. The profile type of the device. Possible values: RegisteredDevice (default), SecureVM, Printer, Shared, IoT.

Returns:

  • a string



466
467
468
# File 'lib/models/device.rb', line 466

def profile_type
    return @profile_type
end

#profile_type=(value) ⇒ Object

Sets the profileType property value. The profile type of the device. Possible values: RegisteredDevice (default), SecureVM, Printer, Shared, IoT.

Parameters:

  • value

    Value to set for the profileType property.

Returns:

  • a void



474
475
476
# File 'lib/models/device.rb', line 474

def profile_type=(value)
    @profile_type = value
end

#registered_ownersObject

Gets the registeredOwners property value. The user that cloud joined the device or registered their personal device. The registered owner is set at the time of registration. Read-only. Nullable. Supports $expand.

Returns:

  • a directory_object



481
482
483
# File 'lib/models/device.rb', line 481

def registered_owners
    return @registered_owners
end

#registered_owners=(value) ⇒ Object

Sets the registeredOwners property value. The user that cloud joined the device or registered their personal device. The registered owner is set at the time of registration. Read-only. Nullable. Supports $expand.

Parameters:

  • value

    Value to set for the registeredOwners property.

Returns:

  • a void



489
490
491
# File 'lib/models/device.rb', line 489

def registered_owners=(value)
    @registered_owners = value
end

#registered_usersObject

Gets the registeredUsers property value. Collection of registered users of the device. For cloud joined devices and registered personal devices, registered users are set to the same value as registered owners at the time of registration. Read-only. Nullable. Supports $expand.

Returns:

  • a directory_object



496
497
498
# File 'lib/models/device.rb', line 496

def registered_users
    return @registered_users
end

#registered_users=(value) ⇒ Object

Sets the registeredUsers property value. Collection of registered users of the device. For cloud joined devices and registered personal devices, registered users are set to the same value as registered owners at the time of registration. Read-only. Nullable. Supports $expand.

Parameters:

  • value

    Value to set for the registeredUsers property.

Returns:

  • a void



504
505
506
# File 'lib/models/device.rb', line 504

def registered_users=(value)
    @registered_users = value
end

#registration_date_timeObject

Gets the registrationDateTime property value. Date and time of when the device was registered. The timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Read-only.

Returns:

  • a date_time



511
512
513
# File 'lib/models/device.rb', line 511

def registration_date_time
    return @registration_date_time
end

#registration_date_time=(value) ⇒ Object

Sets the registrationDateTime property value. Date and time of when the device was registered. The timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Read-only.

Parameters:

  • value

    Value to set for the registrationDateTime property.

Returns:

  • a void



519
520
521
# File 'lib/models/device.rb', line 519

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


527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
# File 'lib/models/device.rb', line 527

def serialize(writer)
    raise StandardError, 'writer cannot be null' if writer.nil?
    super
    writer.write_boolean_value("accountEnabled", @account_enabled)
    writer.write_collection_of_object_values("alternativeSecurityIds", @alternative_security_ids)
    writer.write_date_time_value("approximateLastSignInDateTime", )
    writer.write_date_time_value("complianceExpirationDateTime", @compliance_expiration_date_time)
    writer.write_string_value("deviceCategory", @device_category)
    writer.write_string_value("deviceId", @device_id)
    writer.write_string_value("deviceMetadata", )
    writer.write_string_value("deviceOwnership", @device_ownership)
    writer.write_number_value("deviceVersion", @device_version)
    writer.write_string_value("displayName", @display_name)
    writer.write_string_value("enrollmentProfileName", @enrollment_profile_name)
    writer.write_collection_of_object_values("extensions", @extensions)
    writer.write_boolean_value("isCompliant", @is_compliant)
    writer.write_boolean_value("isManaged", @is_managed)
    writer.write_string_value("mdmAppId", @mdm_app_id)
    writer.write_collection_of_object_values("memberOf", @member_of)
    writer.write_date_time_value("onPremisesLastSyncDateTime", @on_premises_last_sync_date_time)
    writer.write_boolean_value("onPremisesSyncEnabled", @on_premises_sync_enabled)
    writer.write_string_value("operatingSystem", @operating_system)
    writer.write_string_value("operatingSystemVersion", @operating_system_version)
    writer.write_collection_of_primitive_values("physicalIds", @physical_ids)
    writer.write_string_value("profileType", @profile_type)
    writer.write_collection_of_object_values("registeredOwners", @registered_owners)
    writer.write_collection_of_object_values("registeredUsers", @registered_users)
    writer.write_date_time_value("registrationDateTime", @registration_date_time)
    writer.write_collection_of_primitive_values("systemLabels", @system_labels)
    writer.write_collection_of_object_values("transitiveMemberOf", @transitive_member_of)
    writer.write_string_value("trustType", @trust_type)
end

#system_labelsObject

Gets the systemLabels property value. List of labels applied to the device by the system. Supports $filter (/$count eq 0, /$count ne 0).

Returns:

  • a string



563
564
565
# File 'lib/models/device.rb', line 563

def system_labels
    return @system_labels
end

#system_labels=(value) ⇒ Object

Sets the systemLabels property value. List of labels applied to the device by the system. Supports $filter (/$count eq 0, /$count ne 0).

Parameters:

  • value

    Value to set for the systemLabels property.

Returns:

  • a void



571
572
573
# File 'lib/models/device.rb', line 571

def system_labels=(value)
    @system_labels = value
end

#transitive_member_ofObject

Gets the transitiveMemberOf property value. Groups and administrative units that the device is a member of. This operation is transitive. Supports $expand.

Returns:

  • a directory_object



578
579
580
# File 'lib/models/device.rb', line 578

def transitive_member_of
    return @transitive_member_of
end

#transitive_member_of=(value) ⇒ Object

Sets the transitiveMemberOf property value. Groups and administrative units that the device is a member of. This operation is transitive. Supports $expand.

Parameters:

  • value

    Value to set for the transitiveMemberOf property.

Returns:

  • a void



586
587
588
# File 'lib/models/device.rb', line 586

def transitive_member_of=(value)
    @transitive_member_of = value
end

#trust_typeObject

Gets the trustType property value. Type of trust for the joined device. Read-only. Possible values: Workplace (indicates bring your own personal devices), AzureAd (Cloud only joined devices), ServerAd (on-premises domain joined devices joined to Azure AD). For more details, see Introduction to device management in Azure Active Directory

Returns:

  • a string



593
594
595
# File 'lib/models/device.rb', line 593

def trust_type
    return @trust_type
end

#trust_type=(value) ⇒ Object

Sets the trustType property value. Type of trust for the joined device. Read-only. Possible values: Workplace (indicates bring your own personal devices), AzureAd (Cloud only joined devices), ServerAd (on-premises domain joined devices joined to Azure AD). For more details, see Introduction to device management in Azure Active Directory

Parameters:

  • value

    Value to set for the trustType property.

Returns:

  • a void



601
602
603
# File 'lib/models/device.rb', line 601

def trust_type=(value)
    @trust_type = value
end