Class: MicrosoftGraph::Models::DeviceExchangeAccessStateSummary

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initializeObject

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

Parameters:

  • parse_node

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

Returns:

  • a device_exchange_access_state_summary

Raises:

  • (StandardError)


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_dataObject

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

Returns:

  • a i_dictionary



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.

Parameters:

  • value

    Value to set for the additionalData property.

Returns:

  • a void



44
45
46
# File 'lib/models/device_exchange_access_state_summary.rb', line 44

def additional_data=(value)
    @additional_data = value
end

#allowed_device_countObject

Gets the allowedDeviceCount property value. Total count of devices with Exchange Access State: Allowed.

Returns:

  • a integer



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.

Parameters:

  • value

    Value to set for the allowedDeviceCount property.

Returns:

  • a void



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_countObject

Gets the blockedDeviceCount property value. Total count of devices with Exchange Access State: Blocked.

Returns:

  • a integer



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.

Parameters:

  • value

    Value to set for the blockedDeviceCount property.

Returns:

  • a void



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_deserializersObject

The deserialization information for the current model

Returns:

  • a i_dictionary



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_typeObject

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

Returns:

  • a string



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

Parameters:

  • value

    Value to set for the @odata.type property.

Returns:

  • a void



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

def odata_type=(value)
    @odata_type = value
end

#quarantined_device_countObject

Gets the quarantinedDeviceCount property value. Total count of devices with Exchange Access State: Quarantined.

Returns:

  • a integer



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.

Parameters:

  • value

    Value to set for the quarantinedDeviceCount property.

Returns:

  • a void



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

Parameters:

  • writer

    Serialization writer to use to serialize this model

Returns:

  • a void

Raises:

  • (StandardError)


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_countObject

Gets the unavailableDeviceCount property value. Total count of devices for which no Exchange Access State could be found.

Returns:

  • a integer



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.

Parameters:

  • value

    Value to set for the unavailableDeviceCount property.

Returns:

  • a void



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_countObject

Gets the unknownDeviceCount property value. Total count of devices with Exchange Access State: Unknown.

Returns:

  • a integer



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.

Parameters:

  • value

    Value to set for the unknownDeviceCount property.

Returns:

  • a void



179
180
181
# File 'lib/models/device_exchange_access_state_summary.rb', line 179

def unknown_device_count=(value)
    @unknown_device_count = value
end