Class: MicrosoftGraph::Models::DeviceExchangeAccessStateSummary
- Inherits:
-
Object
- Object
- MicrosoftGraph::Models::DeviceExchangeAccessStateSummary
- Includes:
- MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/device_exchange_access_state_summary.rb
Overview
Device Exchange Access State summary
Class Method Summary collapse
-
.create_from_discriminator_value(parse_node) ⇒ Object
Creates a new instance of the appropriate class based on discriminator value.
Instance Method Summary collapse
-
#additional_data ⇒ Object
Gets the additionalData property value.
-
#additional_data=(value) ⇒ Object
Sets the additionalData property value.
-
#allowed_device_count ⇒ Object
Gets the allowedDeviceCount property value.
-
#allowed_device_count=(value) ⇒ Object
Sets the allowedDeviceCount property value.
-
#blocked_device_count ⇒ Object
Gets the blockedDeviceCount property value.
-
#blocked_device_count=(value) ⇒ Object
Sets the blockedDeviceCount property value.
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#initialize ⇒ Object
constructor
Instantiates a new deviceExchangeAccessStateSummary and sets the default values.
-
#odata_type ⇒ Object
Gets the @odata.type property value.
-
#odata_type=(value) ⇒ Object
Sets the @odata.type property value.
-
#quarantined_device_count ⇒ Object
Gets the quarantinedDeviceCount property value.
-
#quarantined_device_count=(value) ⇒ Object
Sets the quarantinedDeviceCount property value.
-
#serialize(writer) ⇒ Object
Serializes information the current object.
-
#unavailable_device_count ⇒ Object
Gets the unavailableDeviceCount property value.
-
#unavailable_device_count=(value) ⇒ Object
Sets the unavailableDeviceCount property value.
-
#unknown_device_count ⇒ Object
Gets the unknownDeviceCount property value.
-
#unknown_device_count=(value) ⇒ Object
Sets the unknownDeviceCount property value.
Constructor Details
#initialize ⇒ Object
Instantiates a new deviceExchangeAccessStateSummary and sets the default values.
81 82 83 |
# File 'lib/models/device_exchange_access_state_summary.rb', line 81 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
89 90 91 92 |
# File 'lib/models/device_exchange_access_state_summary.rb', line 89 def self.create_from_discriminator_value(parse_node) raise StandardError, 'parse_node cannot be null' if parse_node.nil? return DeviceExchangeAccessStateSummary.new end |
Instance Method Details
#additional_data ⇒ Object
Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
36 37 38 |
# File 'lib/models/device_exchange_access_state_summary.rb', line 36 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.
44 45 46 |
# File 'lib/models/device_exchange_access_state_summary.rb', line 44 def additional_data=(value) @additional_data = value end |
#allowed_device_count ⇒ Object
Gets the allowedDeviceCount property value. Total count of devices with Exchange Access State: Allowed.
51 52 53 |
# File 'lib/models/device_exchange_access_state_summary.rb', line 51 def allowed_device_count return @allowed_device_count end |
#allowed_device_count=(value) ⇒ Object
Sets the allowedDeviceCount property value. Total count of devices with Exchange Access State: Allowed.
59 60 61 |
# File 'lib/models/device_exchange_access_state_summary.rb', line 59 def allowed_device_count=(value) @allowed_device_count = value end |
#blocked_device_count ⇒ Object
Gets the blockedDeviceCount property value. Total count of devices with Exchange Access State: Blocked.
66 67 68 |
# File 'lib/models/device_exchange_access_state_summary.rb', line 66 def blocked_device_count return @blocked_device_count end |
#blocked_device_count=(value) ⇒ Object
Sets the blockedDeviceCount property value. Total count of devices with Exchange Access State: Blocked.
74 75 76 |
# File 'lib/models/device_exchange_access_state_summary.rb', line 74 def blocked_device_count=(value) @blocked_device_count = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
97 98 99 100 101 102 103 104 105 106 |
# File 'lib/models/device_exchange_access_state_summary.rb', line 97 def get_field_deserializers() return { "allowedDeviceCount" => lambda {|n| @allowed_device_count = n.get_number_value() }, "blockedDeviceCount" => lambda {|n| @blocked_device_count = n.get_number_value() }, "@odata.type" => lambda {|n| @odata_type = n.get_string_value() }, "quarantinedDeviceCount" => lambda {|n| @quarantined_device_count = n.get_number_value() }, "unavailableDeviceCount" => lambda {|n| @unavailable_device_count = n.get_number_value() }, "unknownDeviceCount" => lambda {|n| @unknown_device_count = n.get_number_value() }, } end |
#odata_type ⇒ Object
Gets the @odata.type property value. The OdataType property
111 112 113 |
# File 'lib/models/device_exchange_access_state_summary.rb', line 111 def odata_type return @odata_type end |
#odata_type=(value) ⇒ Object
Sets the @odata.type property value. The OdataType property
119 120 121 |
# File 'lib/models/device_exchange_access_state_summary.rb', line 119 def odata_type=(value) @odata_type = value end |
#quarantined_device_count ⇒ Object
Gets the quarantinedDeviceCount property value. Total count of devices with Exchange Access State: Quarantined.
126 127 128 |
# File 'lib/models/device_exchange_access_state_summary.rb', line 126 def quarantined_device_count return @quarantined_device_count end |
#quarantined_device_count=(value) ⇒ Object
Sets the quarantinedDeviceCount property value. Total count of devices with Exchange Access State: Quarantined.
134 135 136 |
# File 'lib/models/device_exchange_access_state_summary.rb', line 134 def quarantined_device_count=(value) @quarantined_device_count = value end |
#serialize(writer) ⇒ Object
Serializes information the current object
142 143 144 145 146 147 148 149 150 151 |
# File 'lib/models/device_exchange_access_state_summary.rb', line 142 def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? writer.write_number_value("allowedDeviceCount", @allowed_device_count) writer.write_number_value("blockedDeviceCount", @blocked_device_count) writer.write_string_value("@odata.type", @odata_type) writer.write_number_value("quarantinedDeviceCount", @quarantined_device_count) writer.write_number_value("unavailableDeviceCount", @unavailable_device_count) writer.write_number_value("unknownDeviceCount", @unknown_device_count) writer.write_additional_data(@additional_data) end |
#unavailable_device_count ⇒ Object
Gets the unavailableDeviceCount property value. Total count of devices for which no Exchange Access State could be found.
156 157 158 |
# File 'lib/models/device_exchange_access_state_summary.rb', line 156 def unavailable_device_count return @unavailable_device_count end |
#unavailable_device_count=(value) ⇒ Object
Sets the unavailableDeviceCount property value. Total count of devices for which no Exchange Access State could be found.
164 165 166 |
# File 'lib/models/device_exchange_access_state_summary.rb', line 164 def unavailable_device_count=(value) @unavailable_device_count = value end |
#unknown_device_count ⇒ Object
Gets the unknownDeviceCount property value. Total count of devices with Exchange Access State: Unknown.
171 172 173 |
# File 'lib/models/device_exchange_access_state_summary.rb', line 171 def unknown_device_count return @unknown_device_count end |
#unknown_device_count=(value) ⇒ Object
Sets the unknownDeviceCount property value. Total count of devices with Exchange Access State: Unknown.
179 180 181 |
# File 'lib/models/device_exchange_access_state_summary.rb', line 179 def unknown_device_count=(value) @unknown_device_count = value end |