Class: MicrosoftGraph::Models::ManagedDevice

Inherits:
Entity
  • Object
show all
Includes:
MicrosoftKiotaAbstractions::Parsable
Defined in:
lib/models/managed_device.rb

Overview

Devices that are managed or pre-enrolled through Intune

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Entity

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

Constructor Details

#initializeObject

Instantiates a new managedDevice and sets the default values.



298
299
300
# File 'lib/models/managed_device.rb', line 298

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

Parameters:

  • parse_node

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

Returns:

  • a managed_device

Raises:

  • (StandardError)


306
307
308
309
# File 'lib/models/managed_device.rb', line 306

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

Instance Method Details

#activation_lock_bypass_codeObject

Gets the activationLockBypassCode property value. The code that allows the Activation Lock on managed device to be bypassed. Default, is Null (Non-Default property) for this property when returned as part of managedDevice entity in LIST call. To retrieve actual values GET call needs to be made, with device id and included in select parameter. Supports: $select. $Search is not supported. Read-only. This property is read-only.

Returns:

  • a string



193
194
195
# File 'lib/models/managed_device.rb', line 193

def activation_lock_bypass_code
    return @activation_lock_bypass_code
end

#activation_lock_bypass_code=(value) ⇒ Object

Sets the activationLockBypassCode property value. The code that allows the Activation Lock on managed device to be bypassed. Default, is Null (Non-Default property) for this property when returned as part of managedDevice entity in LIST call. To retrieve actual values GET call needs to be made, with device id and included in select parameter. Supports: $select. $Search is not supported. Read-only. This property is read-only.

Parameters:

  • value

    Value to set for the activationLockBypassCode property.

Returns:

  • a void



201
202
203
# File 'lib/models/managed_device.rb', line 201

def activation_lock_bypass_code=(value)
    @activation_lock_bypass_code = value
end

#android_security_patch_levelObject

Gets the androidSecurityPatchLevel property value. Android security patch level. This property is read-only.

Returns:

  • a string



208
209
210
# File 'lib/models/managed_device.rb', line 208

def android_security_patch_level
    return @android_security_patch_level
end

#android_security_patch_level=(value) ⇒ Object

Sets the androidSecurityPatchLevel property value. Android security patch level. This property is read-only.

Parameters:

  • value

    Value to set for the androidSecurityPatchLevel property.

Returns:

  • a void



216
217
218
# File 'lib/models/managed_device.rb', line 216

def android_security_patch_level=(value)
    @android_security_patch_level = value
end

#azure_a_d_device_idObject

Gets the azureADDeviceId property value. The unique identifier for the Azure Active Directory device. Read only. This property is read-only.

Returns:

  • a string



223
224
225
# File 'lib/models/managed_device.rb', line 223

def azure_a_d_device_id
    return @azure_a_d_device_id
end

#azure_a_d_device_id=(value) ⇒ Object

Sets the azureADDeviceId property value. The unique identifier for the Azure Active Directory device. Read only. This property is read-only.

Parameters:

  • value

    Value to set for the azureADDeviceId property.

Returns:

  • a void



231
232
233
# File 'lib/models/managed_device.rb', line 231

def azure_a_d_device_id=(value)
    @azure_a_d_device_id = value
end

#azure_a_d_registeredObject

Gets the azureADRegistered property value. Whether the device is Azure Active Directory registered. This property is read-only.

Returns:

  • a boolean



238
239
240
# File 'lib/models/managed_device.rb', line 238

def azure_a_d_registered
    return @azure_a_d_registered
end

#azure_a_d_registered=(value) ⇒ Object

Sets the azureADRegistered property value. Whether the device is Azure Active Directory registered. This property is read-only.

Parameters:

  • value

    Value to set for the azureADRegistered property.

Returns:

  • a void



246
247
248
# File 'lib/models/managed_device.rb', line 246

def azure_a_d_registered=(value)
    @azure_a_d_registered = value
end

#compliance_grace_period_expiration_date_timeObject

Gets the complianceGracePeriodExpirationDateTime property value. The DateTime when device compliance grace period expires. This property is read-only.

Returns:

  • a date_time



253
254
255
# File 'lib/models/managed_device.rb', line 253

def compliance_grace_period_expiration_date_time
    return @compliance_grace_period_expiration_date_time
end

#compliance_grace_period_expiration_date_time=(value) ⇒ Object

Sets the complianceGracePeriodExpirationDateTime property value. The DateTime when device compliance grace period expires. This property is read-only.

Parameters:

  • value

    Value to set for the complianceGracePeriodExpirationDateTime property.

Returns:

  • a void



261
262
263
# File 'lib/models/managed_device.rb', line 261

def compliance_grace_period_expiration_date_time=(value)
    @compliance_grace_period_expiration_date_time = value
end

#compliance_stateObject

Gets the complianceState property value. Compliance state.

Returns:

  • a compliance_state



268
269
270
# File 'lib/models/managed_device.rb', line 268

def compliance_state
    return @compliance_state
end

#compliance_state=(value) ⇒ Object

Sets the complianceState property value. Compliance state.

Parameters:

  • value

    Value to set for the complianceState property.

Returns:

  • a void



276
277
278
# File 'lib/models/managed_device.rb', line 276

def compliance_state=(value)
    @compliance_state = value
end

#configuration_manager_client_enabled_featuresObject

Gets the configurationManagerClientEnabledFeatures property value. ConfigrMgr client enabled features. This property is read-only.

Returns:

  • a configuration_manager_client_enabled_features



283
284
285
# File 'lib/models/managed_device.rb', line 283

def configuration_manager_client_enabled_features
    return @configuration_manager_client_enabled_features
end

#configuration_manager_client_enabled_features=(value) ⇒ Object

Sets the configurationManagerClientEnabledFeatures property value. ConfigrMgr client enabled features. This property is read-only.

Parameters:

  • value

    Value to set for the configurationManagerClientEnabledFeatures property.

Returns:

  • a void



291
292
293
# File 'lib/models/managed_device.rb', line 291

def configuration_manager_client_enabled_features=(value)
    @configuration_manager_client_enabled_features = value
end

#device_action_resultsObject

Gets the deviceActionResults property value. List of ComplexType deviceActionResult objects. This property is read-only.

Returns:

  • a device_action_result



314
315
316
# File 'lib/models/managed_device.rb', line 314

def device_action_results
    return @device_action_results
end

#device_action_results=(value) ⇒ Object

Sets the deviceActionResults property value. List of ComplexType deviceActionResult objects. This property is read-only.

Parameters:

  • value

    Value to set for the deviceActionResults property.

Returns:

  • a void



322
323
324
# File 'lib/models/managed_device.rb', line 322

def device_action_results=(value)
    @device_action_results = value
end

#device_categoryObject

Gets the deviceCategory property value. Device category

Returns:

  • a device_category



329
330
331
# File 'lib/models/managed_device.rb', line 329

def device_category
    return @device_category
end

#device_category=(value) ⇒ Object

Sets the deviceCategory property value. Device category

Parameters:

  • value

    Value to set for the deviceCategory property.

Returns:

  • a void



337
338
339
# File 'lib/models/managed_device.rb', line 337

def device_category=(value)
    @device_category = value
end

#device_category_display_nameObject

Gets the deviceCategoryDisplayName property value. Device category display name. Default is an empty string. Supports $filter operator ‘eq’ and ‘or’. This property is read-only.

Returns:

  • a string



344
345
346
# File 'lib/models/managed_device.rb', line 344

def device_category_display_name
    return @device_category_display_name
end

#device_category_display_name=(value) ⇒ Object

Sets the deviceCategoryDisplayName property value. Device category display name. Default is an empty string. Supports $filter operator ‘eq’ and ‘or’. This property is read-only.

Parameters:

  • value

    Value to set for the deviceCategoryDisplayName property.

Returns:

  • a void



352
353
354
# File 'lib/models/managed_device.rb', line 352

def device_category_display_name=(value)
    @device_category_display_name = value
end

#device_compliance_policy_statesObject

Gets the deviceCompliancePolicyStates property value. Device compliance policy states for this device.

Returns:

  • a device_compliance_policy_state



359
360
361
# File 'lib/models/managed_device.rb', line 359

def device_compliance_policy_states
    return @device_compliance_policy_states
end

#device_compliance_policy_states=(value) ⇒ Object

Sets the deviceCompliancePolicyStates property value. Device compliance policy states for this device.

Parameters:

  • value

    Value to set for the deviceCompliancePolicyStates property.

Returns:

  • a void



367
368
369
# File 'lib/models/managed_device.rb', line 367

def device_compliance_policy_states=(value)
    @device_compliance_policy_states = value
end

#device_configuration_statesObject

Gets the deviceConfigurationStates property value. Device configuration states for this device.

Returns:

  • a device_configuration_state



374
375
376
# File 'lib/models/managed_device.rb', line 374

def device_configuration_states
    return @device_configuration_states
end

#device_configuration_states=(value) ⇒ Object

Sets the deviceConfigurationStates property value. Device configuration states for this device.

Parameters:

  • value

    Value to set for the deviceConfigurationStates property.

Returns:

  • a void



382
383
384
# File 'lib/models/managed_device.rb', line 382

def device_configuration_states=(value)
    @device_configuration_states = value
end

#device_enrollment_typeObject

Gets the deviceEnrollmentType property value. Possible ways of adding a mobile device to management.

Returns:

  • a device_enrollment_type



389
390
391
# File 'lib/models/managed_device.rb', line 389

def device_enrollment_type
    return @device_enrollment_type
end

#device_enrollment_type=(value) ⇒ Object

Sets the deviceEnrollmentType property value. Possible ways of adding a mobile device to management.

Parameters:

  • value

    Value to set for the deviceEnrollmentType property.

Returns:

  • a void



397
398
399
# File 'lib/models/managed_device.rb', line 397

def device_enrollment_type=(value)
    @device_enrollment_type = value
end

#device_health_attestation_stateObject

Gets the deviceHealthAttestationState property value. The device health attestation state. This property is read-only.

Returns:

  • a device_health_attestation_state



404
405
406
# File 'lib/models/managed_device.rb', line 404

def device_health_attestation_state
    return @device_health_attestation_state
end

#device_health_attestation_state=(value) ⇒ Object

Sets the deviceHealthAttestationState property value. The device health attestation state. This property is read-only.

Parameters:

  • value

    Value to set for the deviceHealthAttestationState property.

Returns:

  • a void



412
413
414
# File 'lib/models/managed_device.rb', line 412

def device_health_attestation_state=(value)
    @device_health_attestation_state = value
end

#device_nameObject

Gets the deviceName property value. Name of the device. This property is read-only.

Returns:

  • a string



419
420
421
# File 'lib/models/managed_device.rb', line 419

def device_name
    return @device_name
end

#device_name=(value) ⇒ Object

Sets the deviceName property value. Name of the device. This property is read-only.

Parameters:

  • value

    Value to set for the deviceName property.

Returns:

  • a void



427
428
429
# File 'lib/models/managed_device.rb', line 427

def device_name=(value)
    @device_name = value
end

#device_registration_stateObject

Gets the deviceRegistrationState property value. Device registration status.

Returns:

  • a device_registration_state



434
435
436
# File 'lib/models/managed_device.rb', line 434

def device_registration_state
    return @device_registration_state
end

#device_registration_state=(value) ⇒ Object

Sets the deviceRegistrationState property value. Device registration status.

Parameters:

  • value

    Value to set for the deviceRegistrationState property.

Returns:

  • a void



442
443
444
# File 'lib/models/managed_device.rb', line 442

def device_registration_state=(value)
    @device_registration_state = value
end

#eas_activatedObject

Gets the easActivated property value. Whether the device is Exchange ActiveSync activated. This property is read-only.

Returns:

  • a boolean



449
450
451
# File 'lib/models/managed_device.rb', line 449

def eas_activated
    return @eas_activated
end

#eas_activated=(value) ⇒ Object

Sets the easActivated property value. Whether the device is Exchange ActiveSync activated. This property is read-only.

Parameters:

  • value

    Value to set for the easActivated property.

Returns:

  • a void



457
458
459
# File 'lib/models/managed_device.rb', line 457

def eas_activated=(value)
    @eas_activated = value
end

#eas_activation_date_timeObject

Gets the easActivationDateTime property value. Exchange ActivationSync activation time of the device. This property is read-only.

Returns:

  • a date_time



464
465
466
# File 'lib/models/managed_device.rb', line 464

def eas_activation_date_time
    return @eas_activation_date_time
end

#eas_activation_date_time=(value) ⇒ Object

Sets the easActivationDateTime property value. Exchange ActivationSync activation time of the device. This property is read-only.

Parameters:

  • value

    Value to set for the easActivationDateTime property.

Returns:

  • a void



472
473
474
# File 'lib/models/managed_device.rb', line 472

def eas_activation_date_time=(value)
    @eas_activation_date_time = value
end

#eas_device_idObject

Gets the easDeviceId property value. Exchange ActiveSync Id of the device. This property is read-only.

Returns:

  • a string



479
480
481
# File 'lib/models/managed_device.rb', line 479

def eas_device_id
    return @eas_device_id
end

#eas_device_id=(value) ⇒ Object

Sets the easDeviceId property value. Exchange ActiveSync Id of the device. This property is read-only.

Parameters:

  • value

    Value to set for the easDeviceId property.

Returns:

  • a void



487
488
489
# File 'lib/models/managed_device.rb', line 487

def eas_device_id=(value)
    @eas_device_id = value
end

#email_addressObject

Gets the emailAddress property value. Email(s) for the user associated with the device. This property is read-only.

Returns:

  • a string



494
495
496
# File 'lib/models/managed_device.rb', line 494

def email_address
    return @email_address
end

#email_address=(value) ⇒ Object

Sets the emailAddress property value. Email(s) for the user associated with the device. This property is read-only.

Parameters:

  • value

    Value to set for the emailAddress property.

Returns:

  • a void



502
503
504
# File 'lib/models/managed_device.rb', line 502

def email_address=(value)
    @email_address = value
end

#enrolled_date_timeObject

Gets the enrolledDateTime property value. Enrollment time of the device. Supports $filter operator ‘lt’ and ‘gt’. This property is read-only.

Returns:

  • a date_time



509
510
511
# File 'lib/models/managed_device.rb', line 509

def enrolled_date_time
    return @enrolled_date_time
end

#enrolled_date_time=(value) ⇒ Object

Sets the enrolledDateTime property value. Enrollment time of the device. Supports $filter operator ‘lt’ and ‘gt’. This property is read-only.

Parameters:

  • value

    Value to set for the enrolledDateTime property.

Returns:

  • a void



517
518
519
# File 'lib/models/managed_device.rb', line 517

def enrolled_date_time=(value)
    @enrolled_date_time = value
end

#ethernet_mac_addressObject

Gets the ethernetMacAddress property value. Indicates Ethernet MAC Address of the device. Default, is Null (Non-Default property) for this property when returned as part of managedDevice entity. Individual get call with select query options is needed to retrieve actual values. Example: deviceManagement/managedDevices(managedDeviceId)?$select=ethernetMacAddress Supports: $select. $Search is not supported. Read-only. This property is read-only.

Returns:

  • a string



524
525
526
# File 'lib/models/managed_device.rb', line 524

def ethernet_mac_address
    return @ethernet_mac_address
end

#ethernet_mac_address=(value) ⇒ Object

Sets the ethernetMacAddress property value. Indicates Ethernet MAC Address of the device. Default, is Null (Non-Default property) for this property when returned as part of managedDevice entity. Individual get call with select query options is needed to retrieve actual values. Example: deviceManagement/managedDevices(managedDeviceId)?$select=ethernetMacAddress Supports: $select. $Search is not supported. Read-only. This property is read-only.

Parameters:

  • value

    Value to set for the ethernetMacAddress property.

Returns:

  • a void



532
533
534
# File 'lib/models/managed_device.rb', line 532

def ethernet_mac_address=(value)
    @ethernet_mac_address = value
end

#exchange_access_stateObject

Gets the exchangeAccessState property value. Device Exchange Access State.

Returns:

  • a device_management_exchange_access_state



539
540
541
# File 'lib/models/managed_device.rb', line 539

def exchange_access_state
    return @exchange_access_state
end

#exchange_access_state=(value) ⇒ Object

Sets the exchangeAccessState property value. Device Exchange Access State.

Parameters:

  • value

    Value to set for the exchangeAccessState property.

Returns:

  • a void



547
548
549
# File 'lib/models/managed_device.rb', line 547

def exchange_access_state=(value)
    @exchange_access_state = value
end

#exchange_access_state_reasonObject

Gets the exchangeAccessStateReason property value. Device Exchange Access State Reason.

Returns:

  • a device_management_exchange_access_state_reason



554
555
556
# File 'lib/models/managed_device.rb', line 554

def exchange_access_state_reason
    return @exchange_access_state_reason
end

#exchange_access_state_reason=(value) ⇒ Object

Sets the exchangeAccessStateReason property value. Device Exchange Access State Reason.

Parameters:

  • value

    Value to set for the exchangeAccessStateReason property.

Returns:

  • a void



562
563
564
# File 'lib/models/managed_device.rb', line 562

def exchange_access_state_reason=(value)
    @exchange_access_state_reason = value
end

#exchange_last_successful_sync_date_timeObject

Gets the exchangeLastSuccessfulSyncDateTime property value. Last time the device contacted Exchange. This property is read-only.

Returns:

  • a date_time



569
570
571
# File 'lib/models/managed_device.rb', line 569

def exchange_last_successful_sync_date_time
    return @exchange_last_successful_sync_date_time
end

#exchange_last_successful_sync_date_time=(value) ⇒ Object

Sets the exchangeLastSuccessfulSyncDateTime property value. Last time the device contacted Exchange. This property is read-only.

Parameters:

  • value

    Value to set for the exchangeLastSuccessfulSyncDateTime property.

Returns:

  • a void



577
578
579
# File 'lib/models/managed_device.rb', line 577

def exchange_last_successful_sync_date_time=(value)
    @exchange_last_successful_sync_date_time = value
end

#free_storage_space_in_bytesObject

Gets the freeStorageSpaceInBytes property value. Free Storage in Bytes. Default value is 0. Read-only. This property is read-only.

Returns:

  • a int64



584
585
586
# File 'lib/models/managed_device.rb', line 584

def free_storage_space_in_bytes
    return @free_storage_space_in_bytes
end

#free_storage_space_in_bytes=(value) ⇒ Object

Sets the freeStorageSpaceInBytes property value. Free Storage in Bytes. Default value is 0. Read-only. This property is read-only.

Parameters:

  • value

    Value to set for the freeStorageSpaceInBytes property.

Returns:

  • a void



592
593
594
# File 'lib/models/managed_device.rb', line 592

def free_storage_space_in_bytes=(value)
    @free_storage_space_in_bytes = value
end

#get_field_deserializersObject

The deserialization information for the current model

Returns:

  • a i_dictionary



599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
# File 'lib/models/managed_device.rb', line 599

def get_field_deserializers()
    return super.merge({
        "activationLockBypassCode" => lambda {|n| @activation_lock_bypass_code = n.get_string_value() },
        "androidSecurityPatchLevel" => lambda {|n| @android_security_patch_level = n.get_string_value() },
        "azureADDeviceId" => lambda {|n| @azure_a_d_device_id = n.get_string_value() },
        "azureADRegistered" => lambda {|n| @azure_a_d_registered = n.get_boolean_value() },
        "complianceGracePeriodExpirationDateTime" => lambda {|n| @compliance_grace_period_expiration_date_time = n.get_date_time_value() },
        "complianceState" => lambda {|n| @compliance_state = n.get_enum_value(MicrosoftGraph::Models::ComplianceState) },
        "configurationManagerClientEnabledFeatures" => lambda {|n| @configuration_manager_client_enabled_features = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::ConfigurationManagerClientEnabledFeatures.create_from_discriminator_value(pn) }) },
        "deviceActionResults" => lambda {|n| @device_action_results = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::DeviceActionResult.create_from_discriminator_value(pn) }) },
        "deviceCategory" => lambda {|n| @device_category = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::DeviceCategory.create_from_discriminator_value(pn) }) },
        "deviceCategoryDisplayName" => lambda {|n| @device_category_display_name = n.get_string_value() },
        "deviceCompliancePolicyStates" => lambda {|n| @device_compliance_policy_states = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::DeviceCompliancePolicyState.create_from_discriminator_value(pn) }) },
        "deviceConfigurationStates" => lambda {|n| @device_configuration_states = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::DeviceConfigurationState.create_from_discriminator_value(pn) }) },
        "deviceEnrollmentType" => lambda {|n| @device_enrollment_type = n.get_enum_value(MicrosoftGraph::Models::DeviceEnrollmentType) },
        "deviceHealthAttestationState" => lambda {|n| @device_health_attestation_state = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::DeviceHealthAttestationState.create_from_discriminator_value(pn) }) },
        "deviceName" => lambda {|n| @device_name = n.get_string_value() },
        "deviceRegistrationState" => lambda {|n| @device_registration_state = n.get_enum_value(MicrosoftGraph::Models::DeviceRegistrationState) },
        "easActivated" => lambda {|n| @eas_activated = n.get_boolean_value() },
        "easActivationDateTime" => lambda {|n| @eas_activation_date_time = n.get_date_time_value() },
        "easDeviceId" => lambda {|n| @eas_device_id = n.get_string_value() },
        "emailAddress" => lambda {|n| @email_address = n.get_string_value() },
        "enrolledDateTime" => lambda {|n| @enrolled_date_time = n.get_date_time_value() },
        "ethernetMacAddress" => lambda {|n| @ethernet_mac_address = n.get_string_value() },
        "exchangeAccessState" => lambda {|n| @exchange_access_state = n.get_enum_value(MicrosoftGraph::Models::DeviceManagementExchangeAccessState) },
        "exchangeAccessStateReason" => lambda {|n| @exchange_access_state_reason = n.get_enum_value(MicrosoftGraph::Models::DeviceManagementExchangeAccessStateReason) },
        "exchangeLastSuccessfulSyncDateTime" => lambda {|n| @exchange_last_successful_sync_date_time = n.get_date_time_value() },
        "freeStorageSpaceInBytes" => lambda {|n| @free_storage_space_in_bytes = n.get_object_value(lambda {|pn| Int64.create_from_discriminator_value(pn) }) },
        "iccid" => lambda {|n| @iccid = n.get_string_value() },
        "imei" => lambda {|n| @imei = n.get_string_value() },
        "isEncrypted" => lambda {|n| @is_encrypted = n.get_boolean_value() },
        "isSupervised" => lambda {|n| @is_supervised = n.get_boolean_value() },
        "jailBroken" => lambda {|n| @jail_broken = n.get_string_value() },
        "lastSyncDateTime" => lambda {|n| @last_sync_date_time = n.get_date_time_value() },
        "logCollectionRequests" => lambda {|n| @log_collection_requests = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::DeviceLogCollectionResponse.create_from_discriminator_value(pn) }) },
        "managedDeviceName" => lambda {|n| @managed_device_name = n.get_string_value() },
        "managedDeviceOwnerType" => lambda {|n| @managed_device_owner_type = n.get_enum_value(MicrosoftGraph::Models::ManagedDeviceOwnerType) },
        "managementAgent" => lambda {|n| @management_agent = n.get_enum_value(MicrosoftGraph::Models::ManagementAgentType) },
        "managementCertificateExpirationDate" => lambda {|n| @management_certificate_expiration_date = n.get_date_time_value() },
        "manufacturer" => lambda {|n| @manufacturer = n.get_string_value() },
        "meid" => lambda {|n| @meid = n.get_string_value() },
        "model" => lambda {|n| @model = n.get_string_value() },
        "notes" => lambda {|n| @notes = n.get_string_value() },
        "operatingSystem" => lambda {|n| @operating_system = n.get_string_value() },
        "osVersion" => lambda {|n| @os_version = n.get_string_value() },
        "partnerReportedThreatState" => lambda {|n| @partner_reported_threat_state = n.get_enum_value(MicrosoftGraph::Models::ManagedDevicePartnerReportedHealthState) },
        "phoneNumber" => lambda {|n| @phone_number = n.get_string_value() },
        "physicalMemoryInBytes" => lambda {|n| @physical_memory_in_bytes = n.get_object_value(lambda {|pn| Int64.create_from_discriminator_value(pn) }) },
        "remoteAssistanceSessionErrorDetails" => lambda {|n| @remote_assistance_session_error_details = n.get_string_value() },
        "remoteAssistanceSessionUrl" => lambda {|n| @remote_assistance_session_url = n.get_string_value() },
        "requireUserEnrollmentApproval" => lambda {|n| @require_user_enrollment_approval = n.get_boolean_value() },
        "serialNumber" => lambda {|n| @serial_number = n.get_string_value() },
        "subscriberCarrier" => lambda {|n| @subscriber_carrier = n.get_string_value() },
        "totalStorageSpaceInBytes" => lambda {|n| @total_storage_space_in_bytes = n.get_object_value(lambda {|pn| Int64.create_from_discriminator_value(pn) }) },
        "udid" => lambda {|n| @udid = n.get_string_value() },
        "userDisplayName" => lambda {|n| @user_display_name = n.get_string_value() },
        "userId" => lambda {|n| @user_id = n.get_string_value() },
        "userPrincipalName" => lambda {|n| @user_principal_name = n.get_string_value() },
        "users" => lambda {|n| @users = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::User.create_from_discriminator_value(pn) }) },
        "wiFiMacAddress" => lambda {|n| @wi_fi_mac_address = n.get_string_value() },
        "windowsProtectionState" => lambda {|n| @windows_protection_state = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::WindowsProtectionState.create_from_discriminator_value(pn) }) },
    })
end

#iccidObject

Gets the iccid property value. Integrated Circuit Card Identifier, it is A SIM card’s unique identification number. Default is an empty string. To retrieve actual values GET call needs to be made, with device id and included in select parameter. Supports: $select. $Search is not supported. Read-only. This property is read-only.

Returns:

  • a string



666
667
668
# File 'lib/models/managed_device.rb', line 666

def iccid
    return @iccid
end

#iccid=(value) ⇒ Object

Sets the iccid property value. Integrated Circuit Card Identifier, it is A SIM card’s unique identification number. Default is an empty string. To retrieve actual values GET call needs to be made, with device id and included in select parameter. Supports: $select. $Search is not supported. Read-only. This property is read-only.

Parameters:

  • value

    Value to set for the iccid property.

Returns:

  • a void



674
675
676
# File 'lib/models/managed_device.rb', line 674

def iccid=(value)
    @iccid = value
end

#imeiObject

Gets the imei property value. IMEI. This property is read-only.

Returns:

  • a string



681
682
683
# File 'lib/models/managed_device.rb', line 681

def imei
    return @imei
end

#imei=(value) ⇒ Object

Sets the imei property value. IMEI. This property is read-only.

Parameters:

  • value

    Value to set for the imei property.

Returns:

  • a void



689
690
691
# File 'lib/models/managed_device.rb', line 689

def imei=(value)
    @imei = value
end

#is_encryptedObject

Gets the isEncrypted property value. Device encryption status. This property is read-only.

Returns:

  • a boolean



696
697
698
# File 'lib/models/managed_device.rb', line 696

def is_encrypted
    return @is_encrypted
end

#is_encrypted=(value) ⇒ Object

Sets the isEncrypted property value. Device encryption status. This property is read-only.

Parameters:

  • value

    Value to set for the isEncrypted property.

Returns:

  • a void



704
705
706
# File 'lib/models/managed_device.rb', line 704

def is_encrypted=(value)
    @is_encrypted = value
end

#is_supervisedObject

Gets the isSupervised property value. Device supervised status. This property is read-only.

Returns:

  • a boolean



711
712
713
# File 'lib/models/managed_device.rb', line 711

def is_supervised
    return @is_supervised
end

#is_supervised=(value) ⇒ Object

Sets the isSupervised property value. Device supervised status. This property is read-only.

Parameters:

  • value

    Value to set for the isSupervised property.

Returns:

  • a void



719
720
721
# File 'lib/models/managed_device.rb', line 719

def is_supervised=(value)
    @is_supervised = value
end

#jail_brokenObject

Gets the jailBroken property value. Whether the device is jail broken or rooted. Default is an empty string. Supports $filter operator ‘eq’ and ‘or’. This property is read-only.

Returns:

  • a string



726
727
728
# File 'lib/models/managed_device.rb', line 726

def jail_broken
    return @jail_broken
end

#jail_broken=(value) ⇒ Object

Sets the jailBroken property value. Whether the device is jail broken or rooted. Default is an empty string. Supports $filter operator ‘eq’ and ‘or’. This property is read-only.

Parameters:

  • value

    Value to set for the jailBroken property.

Returns:

  • a void



734
735
736
# File 'lib/models/managed_device.rb', line 734

def jail_broken=(value)
    @jail_broken = value
end

#last_sync_date_timeObject

Gets the lastSyncDateTime property value. The date and time that the device last completed a successful sync with Intune. Supports $filter operator ‘lt’ and ‘gt’. This property is read-only.

Returns:

  • a date_time



741
742
743
# File 'lib/models/managed_device.rb', line 741

def last_sync_date_time
    return @last_sync_date_time
end

#last_sync_date_time=(value) ⇒ Object

Sets the lastSyncDateTime property value. The date and time that the device last completed a successful sync with Intune. Supports $filter operator ‘lt’ and ‘gt’. This property is read-only.

Parameters:

  • value

    Value to set for the lastSyncDateTime property.

Returns:

  • a void



749
750
751
# File 'lib/models/managed_device.rb', line 749

def last_sync_date_time=(value)
    @last_sync_date_time = value
end

#log_collection_requestsObject

Gets the logCollectionRequests property value. List of log collection requests

Returns:

  • a device_log_collection_response



756
757
758
# File 'lib/models/managed_device.rb', line 756

def log_collection_requests
    return @log_collection_requests
end

#log_collection_requests=(value) ⇒ Object

Sets the logCollectionRequests property value. List of log collection requests

Parameters:

  • value

    Value to set for the logCollectionRequests property.

Returns:

  • a void



764
765
766
# File 'lib/models/managed_device.rb', line 764

def log_collection_requests=(value)
    @log_collection_requests = value
end

#managed_device_nameObject

Gets the managedDeviceName property value. Automatically generated name to identify a device. Can be overwritten to a user friendly name.

Returns:

  • a string



771
772
773
# File 'lib/models/managed_device.rb', line 771

def managed_device_name
    return @managed_device_name
end

#managed_device_name=(value) ⇒ Object

Sets the managedDeviceName property value. Automatically generated name to identify a device. Can be overwritten to a user friendly name.

Parameters:

  • value

    Value to set for the managedDeviceName property.

Returns:

  • a void



779
780
781
# File 'lib/models/managed_device.rb', line 779

def managed_device_name=(value)
    @managed_device_name = value
end

#managed_device_owner_typeObject

Gets the managedDeviceOwnerType property value. Owner type of device.

Returns:

  • a managed_device_owner_type



786
787
788
# File 'lib/models/managed_device.rb', line 786

def managed_device_owner_type
    return @managed_device_owner_type
end

#managed_device_owner_type=(value) ⇒ Object

Sets the managedDeviceOwnerType property value. Owner type of device.

Parameters:

  • value

    Value to set for the managedDeviceOwnerType property.

Returns:

  • a void



794
795
796
# File 'lib/models/managed_device.rb', line 794

def managed_device_owner_type=(value)
    @managed_device_owner_type = value
end

#management_agentObject

Gets the managementAgent property value. The managementAgent property

Returns:

  • a management_agent_type



801
802
803
# File 'lib/models/managed_device.rb', line 801

def management_agent
    return @management_agent
end

#management_agent=(value) ⇒ Object

Sets the managementAgent property value. The managementAgent property

Parameters:

  • value

    Value to set for the managementAgent property.

Returns:

  • a void



809
810
811
# File 'lib/models/managed_device.rb', line 809

def management_agent=(value)
    @management_agent = value
end

#management_certificate_expiration_dateObject

Gets the managementCertificateExpirationDate property value. Reports device management certificate expiration date. This property is read-only.

Returns:

  • a date_time



816
817
818
# File 'lib/models/managed_device.rb', line 816

def management_certificate_expiration_date
    return @management_certificate_expiration_date
end

#management_certificate_expiration_date=(value) ⇒ Object

Sets the managementCertificateExpirationDate property value. Reports device management certificate expiration date. This property is read-only.

Parameters:

  • value

    Value to set for the managementCertificateExpirationDate property.

Returns:

  • a void



824
825
826
# File 'lib/models/managed_device.rb', line 824

def management_certificate_expiration_date=(value)
    @management_certificate_expiration_date = value
end

#manufacturerObject

Gets the manufacturer property value. Manufacturer of the device. This property is read-only.

Returns:

  • a string



831
832
833
# File 'lib/models/managed_device.rb', line 831

def manufacturer
    return @manufacturer
end

#manufacturer=(value) ⇒ Object

Sets the manufacturer property value. Manufacturer of the device. This property is read-only.

Parameters:

  • value

    Value to set for the manufacturer property.

Returns:

  • a void



839
840
841
# File 'lib/models/managed_device.rb', line 839

def manufacturer=(value)
    @manufacturer = value
end

#meidObject

Gets the meid property value. MEID. This property is read-only.

Returns:

  • a string



846
847
848
# File 'lib/models/managed_device.rb', line 846

def meid
    return @meid
end

#meid=(value) ⇒ Object

Sets the meid property value. MEID. This property is read-only.

Parameters:

  • value

    Value to set for the meid property.

Returns:

  • a void



854
855
856
# File 'lib/models/managed_device.rb', line 854

def meid=(value)
    @meid = value
end

#modelObject

Gets the model property value. Model of the device. This property is read-only.

Returns:

  • a string



861
862
863
# File 'lib/models/managed_device.rb', line 861

def model
    return @model
end

#model=(value) ⇒ Object

Sets the model property value. Model of the device. This property is read-only.

Parameters:

  • value

    Value to set for the model property.

Returns:

  • a void



869
870
871
# File 'lib/models/managed_device.rb', line 869

def model=(value)
    @model = value
end

#notesObject

Gets the notes property value. Notes on the device created by IT Admin. Default is null. To retrieve actual values GET call needs to be made, with device id and included in select parameter. Supports: $select. $Search is not supported.

Returns:

  • a string



876
877
878
# File 'lib/models/managed_device.rb', line 876

def notes
    return @notes
end

#notes=(value) ⇒ Object

Sets the notes property value. Notes on the device created by IT Admin. Default is null. To retrieve actual values GET call needs to be made, with device id and included in select parameter. Supports: $select. $Search is not supported.

Parameters:

  • value

    Value to set for the notes property.

Returns:

  • a void



884
885
886
# File 'lib/models/managed_device.rb', line 884

def notes=(value)
    @notes = value
end

#operating_systemObject

Gets the operatingSystem property value. Operating system of the device. Windows, iOS, etc. This property is read-only.

Returns:

  • a string



891
892
893
# File 'lib/models/managed_device.rb', line 891

def operating_system
    return @operating_system
end

#operating_system=(value) ⇒ Object

Sets the operatingSystem property value. Operating system of the device. Windows, iOS, etc. This property is read-only.

Parameters:

  • value

    Value to set for the operatingSystem property.

Returns:

  • a void



899
900
901
# File 'lib/models/managed_device.rb', line 899

def operating_system=(value)
    @operating_system = value
end

#os_versionObject

Gets the osVersion property value. Operating system version of the device. This property is read-only.

Returns:

  • a string



906
907
908
# File 'lib/models/managed_device.rb', line 906

def os_version
    return @os_version
end

#os_version=(value) ⇒ Object

Sets the osVersion property value. Operating system version of the device. This property is read-only.

Parameters:

  • value

    Value to set for the osVersion property.

Returns:

  • a void



914
915
916
# File 'lib/models/managed_device.rb', line 914

def os_version=(value)
    @os_version = value
end

#partner_reported_threat_stateObject

Gets the partnerReportedThreatState property value. Available health states for the Device Health API

Returns:

  • a managed_device_partner_reported_health_state



921
922
923
# File 'lib/models/managed_device.rb', line 921

def partner_reported_threat_state
    return @partner_reported_threat_state
end

#partner_reported_threat_state=(value) ⇒ Object

Sets the partnerReportedThreatState property value. Available health states for the Device Health API

Parameters:

  • value

    Value to set for the partnerReportedThreatState property.

Returns:

  • a void



929
930
931
# File 'lib/models/managed_device.rb', line 929

def partner_reported_threat_state=(value)
    @partner_reported_threat_state = value
end

#phone_numberObject

Gets the phoneNumber property value. Phone number of the device. This property is read-only.

Returns:

  • a string



936
937
938
# File 'lib/models/managed_device.rb', line 936

def phone_number
    return @phone_number
end

#phone_number=(value) ⇒ Object

Sets the phoneNumber property value. Phone number of the device. This property is read-only.

Parameters:

  • value

    Value to set for the phoneNumber property.

Returns:

  • a void



944
945
946
# File 'lib/models/managed_device.rb', line 944

def phone_number=(value)
    @phone_number = value
end

#physical_memory_in_bytesObject

Gets the physicalMemoryInBytes property value. Total Memory in Bytes. Default is 0. To retrieve actual values GET call needs to be made, with device id and included in select parameter. Supports: $select. Read-only. This property is read-only.

Returns:

  • a int64



951
952
953
# File 'lib/models/managed_device.rb', line 951

def physical_memory_in_bytes
    return @physical_memory_in_bytes
end

#physical_memory_in_bytes=(value) ⇒ Object

Sets the physicalMemoryInBytes property value. Total Memory in Bytes. Default is 0. To retrieve actual values GET call needs to be made, with device id and included in select parameter. Supports: $select. Read-only. This property is read-only.

Parameters:

  • value

    Value to set for the physicalMemoryInBytes property.

Returns:

  • a void



959
960
961
# File 'lib/models/managed_device.rb', line 959

def physical_memory_in_bytes=(value)
    @physical_memory_in_bytes = value
end

#remote_assistance_session_error_detailsObject

Gets the remoteAssistanceSessionErrorDetails property value. An error string that identifies issues when creating Remote Assistance session objects. This property is read-only.

Returns:

  • a string



966
967
968
# File 'lib/models/managed_device.rb', line 966

def remote_assistance_session_error_details
    return @remote_assistance_session_error_details
end

#remote_assistance_session_error_details=(value) ⇒ Object

Sets the remoteAssistanceSessionErrorDetails property value. An error string that identifies issues when creating Remote Assistance session objects. This property is read-only.

Parameters:

  • value

    Value to set for the remoteAssistanceSessionErrorDetails property.

Returns:

  • a void



974
975
976
# File 'lib/models/managed_device.rb', line 974

def remote_assistance_session_error_details=(value)
    @remote_assistance_session_error_details = value
end

#remote_assistance_session_urlObject

Gets the remoteAssistanceSessionUrl property value. Url that allows a Remote Assistance session to be established with the device. Default is an empty string. To retrieve actual values GET call needs to be made, with device id and included in select parameter. This property is read-only.

Returns:

  • a string



981
982
983
# File 'lib/models/managed_device.rb', line 981

def remote_assistance_session_url
    return @remote_assistance_session_url
end

#remote_assistance_session_url=(value) ⇒ Object

Sets the remoteAssistanceSessionUrl property value. Url that allows a Remote Assistance session to be established with the device. Default is an empty string. To retrieve actual values GET call needs to be made, with device id and included in select parameter. This property is read-only.

Parameters:

  • value

    Value to set for the remoteAssistanceSessionUrl property.

Returns:

  • a void



989
990
991
# File 'lib/models/managed_device.rb', line 989

def remote_assistance_session_url=(value)
    @remote_assistance_session_url = value
end

#require_user_enrollment_approvalObject

Gets the requireUserEnrollmentApproval property value. Reports if the managed iOS device is user approval enrollment. This property is read-only.

Returns:

  • a boolean



996
997
998
# File 'lib/models/managed_device.rb', line 996

def require_user_enrollment_approval
    return @require_user_enrollment_approval
end

#require_user_enrollment_approval=(value) ⇒ Object

Sets the requireUserEnrollmentApproval property value. Reports if the managed iOS device is user approval enrollment. This property is read-only.

Parameters:

  • value

    Value to set for the requireUserEnrollmentApproval property.

Returns:

  • a void



1004
1005
1006
# File 'lib/models/managed_device.rb', line 1004

def require_user_enrollment_approval=(value)
    @require_user_enrollment_approval = value
end

#serial_numberObject

Gets the serialNumber property value. SerialNumber. This property is read-only.

Returns:

  • a string



1011
1012
1013
# File 'lib/models/managed_device.rb', line 1011

def serial_number
    return @serial_number
end

#serial_number=(value) ⇒ Object

Sets the serialNumber property value. SerialNumber. This property is read-only.

Parameters:

  • value

    Value to set for the serialNumber property.

Returns:

  • a void



1019
1020
1021
# File 'lib/models/managed_device.rb', line 1019

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


1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
# File 'lib/models/managed_device.rb', line 1027

def serialize(writer)
    raise StandardError, 'writer cannot be null' if writer.nil?
    super
    writer.write_enum_value("complianceState", @compliance_state)
    writer.write_object_value("deviceCategory", @device_category)
    writer.write_collection_of_object_values("deviceCompliancePolicyStates", @device_compliance_policy_states)
    writer.write_collection_of_object_values("deviceConfigurationStates", @device_configuration_states)
    writer.write_enum_value("deviceEnrollmentType", @device_enrollment_type)
    writer.write_enum_value("deviceRegistrationState", @device_registration_state)
    writer.write_enum_value("exchangeAccessState", @exchange_access_state)
    writer.write_enum_value("exchangeAccessStateReason", @exchange_access_state_reason)
    writer.write_collection_of_object_values("logCollectionRequests", @log_collection_requests)
    writer.write_string_value("managedDeviceName", @managed_device_name)
    writer.write_enum_value("managedDeviceOwnerType", @managed_device_owner_type)
    writer.write_enum_value("managementAgent", @management_agent)
    writer.write_string_value("notes", @notes)
    writer.write_enum_value("partnerReportedThreatState", @partner_reported_threat_state)
    writer.write_collection_of_object_values("users", @users)
    writer.write_object_value("windowsProtectionState", @windows_protection_state)
end

#subscriber_carrierObject

Gets the subscriberCarrier property value. Subscriber Carrier. This property is read-only.

Returns:

  • a string



1051
1052
1053
# File 'lib/models/managed_device.rb', line 1051

def subscriber_carrier
    return @subscriber_carrier
end

#subscriber_carrier=(value) ⇒ Object

Sets the subscriberCarrier property value. Subscriber Carrier. This property is read-only.

Parameters:

  • value

    Value to set for the subscriberCarrier property.

Returns:

  • a void



1059
1060
1061
# File 'lib/models/managed_device.rb', line 1059

def subscriber_carrier=(value)
    @subscriber_carrier = value
end

#total_storage_space_in_bytesObject

Gets the totalStorageSpaceInBytes property value. Total Storage in Bytes. This property is read-only.

Returns:

  • a int64



1066
1067
1068
# File 'lib/models/managed_device.rb', line 1066

def total_storage_space_in_bytes
    return @total_storage_space_in_bytes
end

#total_storage_space_in_bytes=(value) ⇒ Object

Sets the totalStorageSpaceInBytes property value. Total Storage in Bytes. This property is read-only.

Parameters:

  • value

    Value to set for the totalStorageSpaceInBytes property.

Returns:

  • a void



1074
1075
1076
# File 'lib/models/managed_device.rb', line 1074

def total_storage_space_in_bytes=(value)
    @total_storage_space_in_bytes = value
end

#udidObject

Gets the udid property value. Unique Device Identifier for iOS and macOS devices. Default is an empty string. To retrieve actual values GET call needs to be made, with device id and included in select parameter. Supports: $select. $Search is not supported. Read-only. This property is read-only.

Returns:

  • a string



1081
1082
1083
# File 'lib/models/managed_device.rb', line 1081

def udid
    return @udid
end

#udid=(value) ⇒ Object

Sets the udid property value. Unique Device Identifier for iOS and macOS devices. Default is an empty string. To retrieve actual values GET call needs to be made, with device id and included in select parameter. Supports: $select. $Search is not supported. Read-only. This property is read-only.

Parameters:

  • value

    Value to set for the udid property.

Returns:

  • a void



1089
1090
1091
# File 'lib/models/managed_device.rb', line 1089

def udid=(value)
    @udid = value
end

#user_display_nameObject

Gets the userDisplayName property value. User display name. This property is read-only.

Returns:

  • a string



1096
1097
1098
# File 'lib/models/managed_device.rb', line 1096

def user_display_name
    return @user_display_name
end

#user_display_name=(value) ⇒ Object

Sets the userDisplayName property value. User display name. This property is read-only.

Parameters:

  • value

    Value to set for the userDisplayName property.

Returns:

  • a void



1104
1105
1106
# File 'lib/models/managed_device.rb', line 1104

def user_display_name=(value)
    @user_display_name = value
end

#user_idObject

Gets the userId property value. Unique Identifier for the user associated with the device. This property is read-only.

Returns:

  • a string



1111
1112
1113
# File 'lib/models/managed_device.rb', line 1111

def user_id
    return @user_id
end

#user_id=(value) ⇒ Object

Sets the userId property value. Unique Identifier for the user associated with the device. This property is read-only.

Parameters:

  • value

    Value to set for the userId property.

Returns:

  • a void



1119
1120
1121
# File 'lib/models/managed_device.rb', line 1119

def user_id=(value)
    @user_id = value
end

#user_principal_nameObject

Gets the userPrincipalName property value. Device user principal name. This property is read-only.

Returns:

  • a string



1126
1127
1128
# File 'lib/models/managed_device.rb', line 1126

def user_principal_name
    return @user_principal_name
end

#user_principal_name=(value) ⇒ Object

Sets the userPrincipalName property value. Device user principal name. This property is read-only.

Parameters:

  • value

    Value to set for the userPrincipalName property.

Returns:

  • a void



1134
1135
1136
# File 'lib/models/managed_device.rb', line 1134

def user_principal_name=(value)
    @user_principal_name = value
end

#usersObject

Gets the users property value. The primary users associated with the managed device.

Returns:

  • a user



1141
1142
1143
# File 'lib/models/managed_device.rb', line 1141

def users
    return @users
end

#users=(value) ⇒ Object

Sets the users property value. The primary users associated with the managed device.

Parameters:

  • value

    Value to set for the users property.

Returns:

  • a void



1149
1150
1151
# File 'lib/models/managed_device.rb', line 1149

def users=(value)
    @users = value
end

#wi_fi_mac_addressObject

Gets the wiFiMacAddress property value. Wi-Fi MAC. This property is read-only.

Returns:

  • a string



1156
1157
1158
# File 'lib/models/managed_device.rb', line 1156

def wi_fi_mac_address
    return @wi_fi_mac_address
end

#wi_fi_mac_address=(value) ⇒ Object

Sets the wiFiMacAddress property value. Wi-Fi MAC. This property is read-only.

Parameters:

  • value

    Value to set for the wiFiMacAddress property.

Returns:

  • a void



1164
1165
1166
# File 'lib/models/managed_device.rb', line 1164

def wi_fi_mac_address=(value)
    @wi_fi_mac_address = value
end

#windows_protection_stateObject

Gets the windowsProtectionState property value. The device protection status. This property is read-only.

Returns:

  • a windows_protection_state



1171
1172
1173
# File 'lib/models/managed_device.rb', line 1171

def windows_protection_state
    return @windows_protection_state
end

#windows_protection_state=(value) ⇒ Object

Sets the windowsProtectionState property value. The device protection status. This property is read-only.

Parameters:

  • value

    Value to set for the windowsProtectionState property.

Returns:

  • a void



1179
1180
1181
# File 'lib/models/managed_device.rb', line 1179

def windows_protection_state=(value)
    @windows_protection_state = value
end