Class: MicrosoftGraph::Models::ManagedDeviceOverview

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

Overview

Summary data for managed devices

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 managedDeviceOverview and sets the default values.



30
31
32
# File 'lib/models/managed_device_overview.rb', line 30

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

Raises:

  • (StandardError)


38
39
40
41
# File 'lib/models/managed_device_overview.rb', line 38

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

Instance Method Details

#device_exchange_access_state_summaryObject

Gets the deviceExchangeAccessStateSummary property value. Distribution of Exchange Access State in Intune



46
47
48
# File 'lib/models/managed_device_overview.rb', line 46

def device_exchange_access_state_summary
    return @device_exchange_access_state_summary
end

#device_exchange_access_state_summary=(value) ⇒ Object

Sets the deviceExchangeAccessStateSummary property value. Distribution of Exchange Access State in Intune



54
55
56
# File 'lib/models/managed_device_overview.rb', line 54

def device_exchange_access_state_summary=(value)
    @device_exchange_access_state_summary = value
end

#device_operating_system_summaryObject

Gets the deviceOperatingSystemSummary property value. Device operating system summary.



61
62
63
# File 'lib/models/managed_device_overview.rb', line 61

def device_operating_system_summary
    return @device_operating_system_summary
end

#device_operating_system_summary=(value) ⇒ Object

Sets the deviceOperatingSystemSummary property value. Device operating system summary.



69
70
71
# File 'lib/models/managed_device_overview.rb', line 69

def device_operating_system_summary=(value)
    @device_operating_system_summary = value
end

#dual_enrolled_device_countObject

Gets the dualEnrolledDeviceCount property value. The number of devices enrolled in both MDM and EAS



76
77
78
# File 'lib/models/managed_device_overview.rb', line 76

def dual_enrolled_device_count
    return @dual_enrolled_device_count
end

#dual_enrolled_device_count=(value) ⇒ Object

Sets the dualEnrolledDeviceCount property value. The number of devices enrolled in both MDM and EAS



84
85
86
# File 'lib/models/managed_device_overview.rb', line 84

def dual_enrolled_device_count=(value)
    @dual_enrolled_device_count = value
end

#enrolled_device_countObject

Gets the enrolledDeviceCount property value. Total enrolled device count. Does not include PC devices managed via Intune PC Agent



91
92
93
# File 'lib/models/managed_device_overview.rb', line 91

def enrolled_device_count
    return @enrolled_device_count
end

#enrolled_device_count=(value) ⇒ Object

Sets the enrolledDeviceCount property value. Total enrolled device count. Does not include PC devices managed via Intune PC Agent



99
100
101
# File 'lib/models/managed_device_overview.rb', line 99

def enrolled_device_count=(value)
    @enrolled_device_count = value
end

#get_field_deserializersObject

The deserialization information for the current model



106
107
108
109
110
111
112
113
114
# File 'lib/models/managed_device_overview.rb', line 106

def get_field_deserializers()
    return super.merge({
        "deviceExchangeAccessStateSummary" => lambda {|n| @device_exchange_access_state_summary = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::DeviceExchangeAccessStateSummary.create_from_discriminator_value(pn) }) },
        "deviceOperatingSystemSummary" => lambda {|n| @device_operating_system_summary = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::DeviceOperatingSystemSummary.create_from_discriminator_value(pn) }) },
        "dualEnrolledDeviceCount" => lambda {|n| @dual_enrolled_device_count = n.get_number_value() },
        "enrolledDeviceCount" => lambda {|n| @enrolled_device_count = n.get_number_value() },
        "mdmEnrolledCount" => lambda {|n| @mdm_enrolled_count = n.get_number_value() },
    })
end

#mdm_enrolled_countObject

Gets the mdmEnrolledCount property value. The number of devices enrolled in MDM



119
120
121
# File 'lib/models/managed_device_overview.rb', line 119

def mdm_enrolled_count
    return @mdm_enrolled_count
end

#mdm_enrolled_count=(value) ⇒ Object

Sets the mdmEnrolledCount property value. The number of devices enrolled in MDM



127
128
129
# File 'lib/models/managed_device_overview.rb', line 127

def mdm_enrolled_count=(value)
    @mdm_enrolled_count = value
end

#serialize(writer) ⇒ Object

Serializes information the current object

Raises:

  • (StandardError)


135
136
137
138
139
140
141
142
143
# File 'lib/models/managed_device_overview.rb', line 135

def serialize(writer)
    raise StandardError, 'writer cannot be null' if writer.nil?
    super
    writer.write_object_value("deviceExchangeAccessStateSummary", @device_exchange_access_state_summary)
    writer.write_object_value("deviceOperatingSystemSummary", @device_operating_system_summary)
    writer.write_number_value("dualEnrolledDeviceCount", @dual_enrolled_device_count)
    writer.write_number_value("enrolledDeviceCount", @enrolled_device_count)
    writer.write_number_value("mdmEnrolledCount", @mdm_enrolled_count)
end