Class: MicrosoftGraph::Models::TeleconferenceDeviceMediaQuality

Inherits:
Object
  • Object
show all
Includes:
MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable
Defined in:
lib/models/teleconference_device_media_quality.rb

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeObject

Instantiates a new teleconferenceDeviceMediaQuality and sets the default values.



202
203
204
# File 'lib/models/teleconference_device_media_quality.rb', line 202

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 teleconference_device_media_quality

Raises:

  • (StandardError)


210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
# File 'lib/models/teleconference_device_media_quality.rb', line 210

def self.create_from_discriminator_value(parse_node)
    raise StandardError, 'parse_node cannot be null' if parse_node.nil?
    mapping_value_node = parse_node.get_child_node("@odata.type")
    unless mapping_value_node.nil? then
        mapping_value = mapping_value_node.get_string_value
        case mapping_value
            when "#microsoft.graph.teleconferenceDeviceAudioQuality"
                return TeleconferenceDeviceAudioQuality.new
            when "#microsoft.graph.teleconferenceDeviceScreenSharingQuality"
                return TeleconferenceDeviceScreenSharingQuality.new
            when "#microsoft.graph.teleconferenceDeviceVideoQuality"
                return TeleconferenceDeviceVideoQuality.new
        end
    end
    return TeleconferenceDeviceMediaQuality.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



82
83
84
# File 'lib/models/teleconference_device_media_quality.rb', line 82

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



90
91
92
# File 'lib/models/teleconference_device_media_quality.rb', line 90

def additional_data=(value)
    @additional_data = value
end

#average_inbound_jitterObject

Gets the averageInboundJitter property value. The average inbound stream network jitter.

Returns:

  • a microsoft_kiota_abstractions::_i_s_o_duration



97
98
99
# File 'lib/models/teleconference_device_media_quality.rb', line 97

def average_inbound_jitter
    return @average_inbound_jitter
end

#average_inbound_jitter=(value) ⇒ Object

Sets the averageInboundJitter property value. The average inbound stream network jitter.

Parameters:

  • value

    Value to set for the averageInboundJitter property.

Returns:

  • a void



105
106
107
# File 'lib/models/teleconference_device_media_quality.rb', line 105

def average_inbound_jitter=(value)
    @average_inbound_jitter = value
end

#average_inbound_packet_loss_rate_in_percentageObject

Gets the averageInboundPacketLossRateInPercentage property value. The average inbound stream packet loss rate in percentage (0-100). For example, 0.01 means 0.01%.

Returns:

  • a double



112
113
114
# File 'lib/models/teleconference_device_media_quality.rb', line 112

def average_inbound_packet_loss_rate_in_percentage
    return @average_inbound_packet_loss_rate_in_percentage
end

#average_inbound_packet_loss_rate_in_percentage=(value) ⇒ Object

Sets the averageInboundPacketLossRateInPercentage property value. The average inbound stream packet loss rate in percentage (0-100). For example, 0.01 means 0.01%.

Parameters:

  • value

    Value to set for the averageInboundPacketLossRateInPercentage property.

Returns:

  • a void



120
121
122
# File 'lib/models/teleconference_device_media_quality.rb', line 120

def average_inbound_packet_loss_rate_in_percentage=(value)
    @average_inbound_packet_loss_rate_in_percentage = value
end

#average_inbound_round_trip_delayObject

Gets the averageInboundRoundTripDelay property value. The average inbound stream network round trip delay.

Returns:

  • a microsoft_kiota_abstractions::_i_s_o_duration



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

def average_inbound_round_trip_delay
    return @average_inbound_round_trip_delay
end

#average_inbound_round_trip_delay=(value) ⇒ Object

Sets the averageInboundRoundTripDelay property value. The average inbound stream network round trip delay.

Parameters:

  • value

    Value to set for the averageInboundRoundTripDelay property.

Returns:

  • a void



135
136
137
# File 'lib/models/teleconference_device_media_quality.rb', line 135

def average_inbound_round_trip_delay=(value)
    @average_inbound_round_trip_delay = value
end

#average_outbound_jitterObject

Gets the averageOutboundJitter property value. The average outbound stream network jitter.

Returns:

  • a microsoft_kiota_abstractions::_i_s_o_duration



142
143
144
# File 'lib/models/teleconference_device_media_quality.rb', line 142

def average_outbound_jitter
    return @average_outbound_jitter
end

#average_outbound_jitter=(value) ⇒ Object

Sets the averageOutboundJitter property value. The average outbound stream network jitter.

Parameters:

  • value

    Value to set for the averageOutboundJitter property.

Returns:

  • a void



150
151
152
# File 'lib/models/teleconference_device_media_quality.rb', line 150

def average_outbound_jitter=(value)
    @average_outbound_jitter = value
end

#average_outbound_packet_loss_rate_in_percentageObject

Gets the averageOutboundPacketLossRateInPercentage property value. The average outbound stream packet loss rate in percentage (0-100). For example, 0.01 means 0.01%.

Returns:

  • a double



157
158
159
# File 'lib/models/teleconference_device_media_quality.rb', line 157

def average_outbound_packet_loss_rate_in_percentage
    return @average_outbound_packet_loss_rate_in_percentage
end

#average_outbound_packet_loss_rate_in_percentage=(value) ⇒ Object

Sets the averageOutboundPacketLossRateInPercentage property value. The average outbound stream packet loss rate in percentage (0-100). For example, 0.01 means 0.01%.

Parameters:

  • value

    Value to set for the averageOutboundPacketLossRateInPercentage property.

Returns:

  • a void



165
166
167
# File 'lib/models/teleconference_device_media_quality.rb', line 165

def average_outbound_packet_loss_rate_in_percentage=(value)
    @average_outbound_packet_loss_rate_in_percentage = value
end

#average_outbound_round_trip_delayObject

Gets the averageOutboundRoundTripDelay property value. The average outbound stream network round trip delay.

Returns:

  • a microsoft_kiota_abstractions::_i_s_o_duration



172
173
174
# File 'lib/models/teleconference_device_media_quality.rb', line 172

def average_outbound_round_trip_delay
    return @average_outbound_round_trip_delay
end

#average_outbound_round_trip_delay=(value) ⇒ Object

Sets the averageOutboundRoundTripDelay property value. The average outbound stream network round trip delay.

Parameters:

  • value

    Value to set for the averageOutboundRoundTripDelay property.

Returns:

  • a void



180
181
182
# File 'lib/models/teleconference_device_media_quality.rb', line 180

def average_outbound_round_trip_delay=(value)
    @average_outbound_round_trip_delay = value
end

#channel_indexObject

Gets the channelIndex property value. The channel index of media. Indexing begins with 1. If a media session contains 3 video modalities, channel indexes will be 1, 2, and 3.

Returns:

  • a integer



187
188
189
# File 'lib/models/teleconference_device_media_quality.rb', line 187

def channel_index
    return @channel_index
end

#channel_index=(value) ⇒ Object

Sets the channelIndex property value. The channel index of media. Indexing begins with 1. If a media session contains 3 video modalities, channel indexes will be 1, 2, and 3.

Parameters:

  • value

    Value to set for the channelIndex property.

Returns:

  • a void



195
196
197
# File 'lib/models/teleconference_device_media_quality.rb', line 195

def channel_index=(value)
    @channel_index = value
end

#get_field_deserializersObject

The deserialization information for the current model

Returns:

  • a i_dictionary



230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
# File 'lib/models/teleconference_device_media_quality.rb', line 230

def get_field_deserializers()
    return {
        "averageInboundJitter" => lambda {|n| @average_inbound_jitter = n.get_duration_value() },
        "averageInboundPacketLossRateInPercentage" => lambda {|n| @average_inbound_packet_loss_rate_in_percentage = n.get_object_value(lambda {|pn| Double.create_from_discriminator_value(pn) }) },
        "averageInboundRoundTripDelay" => lambda {|n| @average_inbound_round_trip_delay = n.get_duration_value() },
        "averageOutboundJitter" => lambda {|n| @average_outbound_jitter = n.get_duration_value() },
        "averageOutboundPacketLossRateInPercentage" => lambda {|n| @average_outbound_packet_loss_rate_in_percentage = n.get_object_value(lambda {|pn| Double.create_from_discriminator_value(pn) }) },
        "averageOutboundRoundTripDelay" => lambda {|n| @average_outbound_round_trip_delay = n.get_duration_value() },
        "channelIndex" => lambda {|n| @channel_index = n.get_number_value() },
        "inboundPackets" => lambda {|n| @inbound_packets = n.get_object_value(lambda {|pn| Int64.create_from_discriminator_value(pn) }) },
        "localIPAddress" => lambda {|n| @local_i_p_address = n.get_string_value() },
        "localPort" => lambda {|n| @local_port = n.get_number_value() },
        "maximumInboundJitter" => lambda {|n| @maximum_inbound_jitter = n.get_duration_value() },
        "maximumInboundPacketLossRateInPercentage" => lambda {|n| @maximum_inbound_packet_loss_rate_in_percentage = n.get_object_value(lambda {|pn| Double.create_from_discriminator_value(pn) }) },
        "maximumInboundRoundTripDelay" => lambda {|n| @maximum_inbound_round_trip_delay = n.get_duration_value() },
        "maximumOutboundJitter" => lambda {|n| @maximum_outbound_jitter = n.get_duration_value() },
        "maximumOutboundPacketLossRateInPercentage" => lambda {|n| @maximum_outbound_packet_loss_rate_in_percentage = n.get_object_value(lambda {|pn| Double.create_from_discriminator_value(pn) }) },
        "maximumOutboundRoundTripDelay" => lambda {|n| @maximum_outbound_round_trip_delay = n.get_duration_value() },
        "mediaDuration" => lambda {|n| @media_duration = n.get_duration_value() },
        "networkLinkSpeedInBytes" => lambda {|n| @network_link_speed_in_bytes = n.get_object_value(lambda {|pn| Int64.create_from_discriminator_value(pn) }) },
        "@odata.type" => lambda {|n| @odata_type = n.get_string_value() },
        "outboundPackets" => lambda {|n| @outbound_packets = n.get_object_value(lambda {|pn| Int64.create_from_discriminator_value(pn) }) },
        "remoteIPAddress" => lambda {|n| @remote_i_p_address = n.get_string_value() },
        "remotePort" => lambda {|n| @remote_port = n.get_number_value() },
    }
end

#inbound_packetsObject

Gets the inboundPackets property value. The total number of the inbound packets.

Returns:

  • a int64



260
261
262
# File 'lib/models/teleconference_device_media_quality.rb', line 260

def inbound_packets
    return @inbound_packets
end

#inbound_packets=(value) ⇒ Object

Sets the inboundPackets property value. The total number of the inbound packets.

Parameters:

  • value

    Value to set for the inboundPackets property.

Returns:

  • a void



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

def inbound_packets=(value)
    @inbound_packets = value
end

#local_i_p_addressObject

Gets the localIPAddress property value. the local IP address for the media session.

Returns:

  • a string



275
276
277
# File 'lib/models/teleconference_device_media_quality.rb', line 275

def local_i_p_address
    return @local_i_p_address
end

#local_i_p_address=(value) ⇒ Object

Sets the localIPAddress property value. the local IP address for the media session.

Parameters:

  • value

    Value to set for the localIPAddress property.

Returns:

  • a void



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

def local_i_p_address=(value)
    @local_i_p_address = value
end

#local_portObject

Gets the localPort property value. The local media port.

Returns:

  • a integer



290
291
292
# File 'lib/models/teleconference_device_media_quality.rb', line 290

def local_port
    return @local_port
end

#local_port=(value) ⇒ Object

Sets the localPort property value. The local media port.

Parameters:

  • value

    Value to set for the localPort property.

Returns:

  • a void



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

def local_port=(value)
    @local_port = value
end

#maximum_inbound_jitterObject

Gets the maximumInboundJitter property value. The maximum inbound stream network jitter.

Returns:

  • a microsoft_kiota_abstractions::_i_s_o_duration



305
306
307
# File 'lib/models/teleconference_device_media_quality.rb', line 305

def maximum_inbound_jitter
    return @maximum_inbound_jitter
end

#maximum_inbound_jitter=(value) ⇒ Object

Sets the maximumInboundJitter property value. The maximum inbound stream network jitter.

Parameters:

  • value

    Value to set for the maximumInboundJitter property.

Returns:

  • a void



313
314
315
# File 'lib/models/teleconference_device_media_quality.rb', line 313

def maximum_inbound_jitter=(value)
    @maximum_inbound_jitter = value
end

#maximum_inbound_packet_loss_rate_in_percentageObject

Gets the maximumInboundPacketLossRateInPercentage property value. The maximum inbound stream packet loss rate in percentage (0-100). For example, 0.01 means 0.01%.

Returns:

  • a double



320
321
322
# File 'lib/models/teleconference_device_media_quality.rb', line 320

def maximum_inbound_packet_loss_rate_in_percentage
    return @maximum_inbound_packet_loss_rate_in_percentage
end

#maximum_inbound_packet_loss_rate_in_percentage=(value) ⇒ Object

Sets the maximumInboundPacketLossRateInPercentage property value. The maximum inbound stream packet loss rate in percentage (0-100). For example, 0.01 means 0.01%.

Parameters:

  • value

    Value to set for the maximumInboundPacketLossRateInPercentage property.

Returns:

  • a void



328
329
330
# File 'lib/models/teleconference_device_media_quality.rb', line 328

def maximum_inbound_packet_loss_rate_in_percentage=(value)
    @maximum_inbound_packet_loss_rate_in_percentage = value
end

#maximum_inbound_round_trip_delayObject

Gets the maximumInboundRoundTripDelay property value. The maximum inbound stream network round trip delay.

Returns:

  • a microsoft_kiota_abstractions::_i_s_o_duration



335
336
337
# File 'lib/models/teleconference_device_media_quality.rb', line 335

def maximum_inbound_round_trip_delay
    return @maximum_inbound_round_trip_delay
end

#maximum_inbound_round_trip_delay=(value) ⇒ Object

Sets the maximumInboundRoundTripDelay property value. The maximum inbound stream network round trip delay.

Parameters:

  • value

    Value to set for the maximumInboundRoundTripDelay property.

Returns:

  • a void



343
344
345
# File 'lib/models/teleconference_device_media_quality.rb', line 343

def maximum_inbound_round_trip_delay=(value)
    @maximum_inbound_round_trip_delay = value
end

#maximum_outbound_jitterObject

Gets the maximumOutboundJitter property value. The maximum outbound stream network jitter.

Returns:

  • a microsoft_kiota_abstractions::_i_s_o_duration



350
351
352
# File 'lib/models/teleconference_device_media_quality.rb', line 350

def maximum_outbound_jitter
    return @maximum_outbound_jitter
end

#maximum_outbound_jitter=(value) ⇒ Object

Sets the maximumOutboundJitter property value. The maximum outbound stream network jitter.

Parameters:

  • value

    Value to set for the maximumOutboundJitter property.

Returns:

  • a void



358
359
360
# File 'lib/models/teleconference_device_media_quality.rb', line 358

def maximum_outbound_jitter=(value)
    @maximum_outbound_jitter = value
end

#maximum_outbound_packet_loss_rate_in_percentageObject

Gets the maximumOutboundPacketLossRateInPercentage property value. The maximum outbound stream packet loss rate in percentage (0-100). For example, 0.01 means 0.01%.

Returns:

  • a double



365
366
367
# File 'lib/models/teleconference_device_media_quality.rb', line 365

def maximum_outbound_packet_loss_rate_in_percentage
    return @maximum_outbound_packet_loss_rate_in_percentage
end

#maximum_outbound_packet_loss_rate_in_percentage=(value) ⇒ Object

Sets the maximumOutboundPacketLossRateInPercentage property value. The maximum outbound stream packet loss rate in percentage (0-100). For example, 0.01 means 0.01%.

Parameters:

  • value

    Value to set for the maximumOutboundPacketLossRateInPercentage property.

Returns:

  • a void



373
374
375
# File 'lib/models/teleconference_device_media_quality.rb', line 373

def maximum_outbound_packet_loss_rate_in_percentage=(value)
    @maximum_outbound_packet_loss_rate_in_percentage = value
end

#maximum_outbound_round_trip_delayObject

Gets the maximumOutboundRoundTripDelay property value. The maximum outbound stream network round trip delay.

Returns:

  • a microsoft_kiota_abstractions::_i_s_o_duration



380
381
382
# File 'lib/models/teleconference_device_media_quality.rb', line 380

def maximum_outbound_round_trip_delay
    return @maximum_outbound_round_trip_delay
end

#maximum_outbound_round_trip_delay=(value) ⇒ Object

Sets the maximumOutboundRoundTripDelay property value. The maximum outbound stream network round trip delay.

Parameters:

  • value

    Value to set for the maximumOutboundRoundTripDelay property.

Returns:

  • a void



388
389
390
# File 'lib/models/teleconference_device_media_quality.rb', line 388

def maximum_outbound_round_trip_delay=(value)
    @maximum_outbound_round_trip_delay = value
end

#media_durationObject

Gets the mediaDuration property value. The total modality duration. If the media enabled and disabled multiple times, MediaDuration will the summation of all of the durations.

Returns:

  • a microsoft_kiota_abstractions::_i_s_o_duration



395
396
397
# File 'lib/models/teleconference_device_media_quality.rb', line 395

def media_duration
    return @media_duration
end

#media_duration=(value) ⇒ Object

Sets the mediaDuration property value. The total modality duration. If the media enabled and disabled multiple times, MediaDuration will the summation of all of the durations.

Parameters:

  • value

    Value to set for the mediaDuration property.

Returns:

  • a void



403
404
405
# File 'lib/models/teleconference_device_media_quality.rb', line 403

def media_duration=(value)
    @media_duration = value
end

Gets the networkLinkSpeedInBytes property value. The network link speed in bytes

Returns:

  • a int64



410
411
412
# File 'lib/models/teleconference_device_media_quality.rb', line 410

def network_link_speed_in_bytes
    return @network_link_speed_in_bytes
end

Sets the networkLinkSpeedInBytes property value. The network link speed in bytes

Parameters:

  • value

    Value to set for the networkLinkSpeedInBytes property.

Returns:

  • a void



418
419
420
# File 'lib/models/teleconference_device_media_quality.rb', line 418

def network_link_speed_in_bytes=(value)
    @network_link_speed_in_bytes = value
end

#odata_typeObject

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

Returns:

  • a string



425
426
427
# File 'lib/models/teleconference_device_media_quality.rb', line 425

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



433
434
435
# File 'lib/models/teleconference_device_media_quality.rb', line 433

def odata_type=(value)
    @odata_type = value
end

#outbound_packetsObject

Gets the outboundPackets property value. The total number of the outbound packets.

Returns:

  • a int64



440
441
442
# File 'lib/models/teleconference_device_media_quality.rb', line 440

def outbound_packets
    return @outbound_packets
end

#outbound_packets=(value) ⇒ Object

Sets the outboundPackets property value. The total number of the outbound packets.

Parameters:

  • value

    Value to set for the outboundPackets property.

Returns:

  • a void



448
449
450
# File 'lib/models/teleconference_device_media_quality.rb', line 448

def outbound_packets=(value)
    @outbound_packets = value
end

#remote_i_p_addressObject

Gets the remoteIPAddress property value. The remote IP address for the media session.

Returns:

  • a string



455
456
457
# File 'lib/models/teleconference_device_media_quality.rb', line 455

def remote_i_p_address
    return @remote_i_p_address
end

#remote_i_p_address=(value) ⇒ Object

Sets the remoteIPAddress property value. The remote IP address for the media session.

Parameters:

  • value

    Value to set for the remoteIPAddress property.

Returns:

  • a void



463
464
465
# File 'lib/models/teleconference_device_media_quality.rb', line 463

def remote_i_p_address=(value)
    @remote_i_p_address = value
end

#remote_portObject

Gets the remotePort property value. The remote media port.

Returns:

  • a integer



470
471
472
# File 'lib/models/teleconference_device_media_quality.rb', line 470

def remote_port
    return @remote_port
end

#remote_port=(value) ⇒ Object

Sets the remotePort property value. The remote media port.

Parameters:

  • value

    Value to set for the remotePort property.

Returns:

  • a void



478
479
480
# File 'lib/models/teleconference_device_media_quality.rb', line 478

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


486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
# File 'lib/models/teleconference_device_media_quality.rb', line 486

def serialize(writer)
    raise StandardError, 'writer cannot be null' if writer.nil?
    writer.write_duration_value("averageInboundJitter", @average_inbound_jitter)
    writer.write_object_value("averageInboundPacketLossRateInPercentage", @average_inbound_packet_loss_rate_in_percentage)
    writer.write_duration_value("averageInboundRoundTripDelay", @average_inbound_round_trip_delay)
    writer.write_duration_value("averageOutboundJitter", @average_outbound_jitter)
    writer.write_object_value("averageOutboundPacketLossRateInPercentage", @average_outbound_packet_loss_rate_in_percentage)
    writer.write_duration_value("averageOutboundRoundTripDelay", @average_outbound_round_trip_delay)
    writer.write_number_value("channelIndex", @channel_index)
    writer.write_object_value("inboundPackets", @inbound_packets)
    writer.write_string_value("localIPAddress", @local_i_p_address)
    writer.write_number_value("localPort", @local_port)
    writer.write_duration_value("maximumInboundJitter", @maximum_inbound_jitter)
    writer.write_object_value("maximumInboundPacketLossRateInPercentage", @maximum_inbound_packet_loss_rate_in_percentage)
    writer.write_duration_value("maximumInboundRoundTripDelay", @maximum_inbound_round_trip_delay)
    writer.write_duration_value("maximumOutboundJitter", @maximum_outbound_jitter)
    writer.write_object_value("maximumOutboundPacketLossRateInPercentage", @maximum_outbound_packet_loss_rate_in_percentage)
    writer.write_duration_value("maximumOutboundRoundTripDelay", @maximum_outbound_round_trip_delay)
    writer.write_duration_value("mediaDuration", @media_duration)
    writer.write_object_value("networkLinkSpeedInBytes", @network_link_speed_in_bytes)
    writer.write_string_value("@odata.type", @odata_type)
    writer.write_object_value("outboundPackets", @outbound_packets)
    writer.write_string_value("remoteIPAddress", @remote_i_p_address)
    writer.write_number_value("remotePort", @remote_port)
    writer.write_additional_data(@additional_data)
end