Class: MicrosoftGraph::Models::CallRecordsMedia

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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeObject

Instantiates a new callRecordsMedia and sets the default values.



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

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 call_records_media

Raises:

  • (StandardError)


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

def self.create_from_discriminator_value(parse_node)
    raise StandardError, 'parse_node cannot be null' if parse_node.nil?
    return CallRecordsMedia.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



37
38
39
# File 'lib/models/call_records_media.rb', line 37

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



45
46
47
# File 'lib/models/call_records_media.rb', line 45

def additional_data=(value)
    @additional_data = value
end

#callee_deviceObject

Gets the calleeDevice property value. Device information associated with the callee endpoint of this media.

Returns:

  • a call_records_device_info



52
53
54
# File 'lib/models/call_records_media.rb', line 52

def callee_device
    return @callee_device
end

#callee_device=(value) ⇒ Object

Sets the calleeDevice property value. Device information associated with the callee endpoint of this media.

Parameters:

  • value

    Value to set for the calleeDevice property.

Returns:

  • a void



60
61
62
# File 'lib/models/call_records_media.rb', line 60

def callee_device=(value)
    @callee_device = value
end

#callee_networkObject

Gets the calleeNetwork property value. Network information associated with the callee endpoint of this media.

Returns:

  • a call_records_network_info



67
68
69
# File 'lib/models/call_records_media.rb', line 67

def callee_network
    return @callee_network
end

#callee_network=(value) ⇒ Object

Sets the calleeNetwork property value. Network information associated with the callee endpoint of this media.

Parameters:

  • value

    Value to set for the calleeNetwork property.

Returns:

  • a void



75
76
77
# File 'lib/models/call_records_media.rb', line 75

def callee_network=(value)
    @callee_network = value
end

#caller_deviceObject

Gets the callerDevice property value. Device information associated with the caller endpoint of this media.

Returns:

  • a call_records_device_info



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

def caller_device
    return @caller_device
end

#caller_device=(value) ⇒ Object

Sets the callerDevice property value. Device information associated with the caller endpoint of this media.

Parameters:

  • value

    Value to set for the callerDevice property.

Returns:

  • a void



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

def caller_device=(value)
    @caller_device = value
end

#caller_networkObject

Gets the callerNetwork property value. Network information associated with the caller endpoint of this media.

Returns:

  • a call_records_network_info



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

def caller_network
    return @caller_network
end

#caller_network=(value) ⇒ Object

Sets the callerNetwork property value. Network information associated with the caller endpoint of this media.

Parameters:

  • value

    Value to set for the callerNetwork property.

Returns:

  • a void



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

def caller_network=(value)
    @caller_network = value
end

#get_field_deserializersObject

The deserialization information for the current model

Returns:

  • a i_dictionary



128
129
130
131
132
133
134
135
136
137
138
# File 'lib/models/call_records_media.rb', line 128

def get_field_deserializers()
    return {
        "calleeDevice" => lambda {|n| @callee_device = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::CallRecordsDeviceInfo.create_from_discriminator_value(pn) }) },
        "calleeNetwork" => lambda {|n| @callee_network = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::CallRecordsNetworkInfo.create_from_discriminator_value(pn) }) },
        "callerDevice" => lambda {|n| @caller_device = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::CallRecordsDeviceInfo.create_from_discriminator_value(pn) }) },
        "callerNetwork" => lambda {|n| @caller_network = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::CallRecordsNetworkInfo.create_from_discriminator_value(pn) }) },
        "label" => lambda {|n| @label = n.get_string_value() },
        "@odata.type" => lambda {|n| @odata_type = n.get_string_value() },
        "streams" => lambda {|n| @streams = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::CallRecordsMediaStream.create_from_discriminator_value(pn) }) },
    }
end

#labelObject

Gets the label property value. How the media was identified during media negotiation stage.

Returns:

  • a string



143
144
145
# File 'lib/models/call_records_media.rb', line 143

def label
    return @label
end

#label=(value) ⇒ Object

Sets the label property value. How the media was identified during media negotiation stage.

Parameters:

  • value

    Value to set for the label property.

Returns:

  • a void



151
152
153
# File 'lib/models/call_records_media.rb', line 151

def label=(value)
    @label = value
end

#odata_typeObject

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

Returns:

  • a string



158
159
160
# File 'lib/models/call_records_media.rb', line 158

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



166
167
168
# File 'lib/models/call_records_media.rb', line 166

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


174
175
176
177
178
179
180
181
182
183
184
# File 'lib/models/call_records_media.rb', line 174

def serialize(writer)
    raise StandardError, 'writer cannot be null' if writer.nil?
    writer.write_object_value("calleeDevice", @callee_device)
    writer.write_object_value("calleeNetwork", @callee_network)
    writer.write_object_value("callerDevice", @caller_device)
    writer.write_object_value("callerNetwork", @caller_network)
    writer.write_string_value("label", @label)
    writer.write_string_value("@odata.type", @odata_type)
    writer.write_collection_of_object_values("streams", @streams)
    writer.write_additional_data(@additional_data)
end

#streamsObject

Gets the streams property value. Network streams associated with this media.

Returns:

  • a call_records_media_stream



189
190
191
# File 'lib/models/call_records_media.rb', line 189

def streams
    return @streams
end

#streams=(value) ⇒ Object

Sets the streams property value. Network streams associated with this media.

Parameters:

  • value

    Value to set for the streams property.

Returns:

  • a void



197
198
199
# File 'lib/models/call_records_media.rb', line 197

def streams=(value)
    @streams = value
end