Class: MicrosoftGraph::Models::CallRecordsParticipantEndpoint

Inherits:
CallRecordsEndpoint show all
Includes:
MicrosoftKiotaAbstractions::Parsable
Defined in:
lib/models/call_records_participant_endpoint.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from CallRecordsEndpoint

#additional_data, #additional_data=, #odata_type, #odata_type=, #user_agent, #user_agent=

Constructor Details

#initializeObject

Instantiates a new callRecordsParticipantEndpoint and sets the default values.



31
32
33
34
# File 'lib/models/call_records_participant_endpoint.rb', line 31

def initialize()
    super
    @odata_type = "#microsoft.graph.callRecords.participantEndpoint"
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_participant_endpoint

Raises:

  • (StandardError)


85
86
87
88
# File 'lib/models/call_records_participant_endpoint.rb', line 85

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

Instance Method Details

#cpu_cores_countObject

Gets the cpuCoresCount property value. CPU number of cores used by the media endpoint.

Returns:

  • a integer



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

def cpu_cores_count
    return @cpu_cores_count
end

#cpu_cores_count=(value) ⇒ Object

Sets the cpuCoresCount property value. CPU number of cores used by the media endpoint.

Parameters:

  • value

    Value to set for the cpuCoresCount property.

Returns:

  • a void



47
48
49
# File 'lib/models/call_records_participant_endpoint.rb', line 47

def cpu_cores_count=(value)
    @cpu_cores_count = value
end

#cpu_nameObject

Gets the cpuName property value. CPU name used by the media endpoint.

Returns:

  • a string



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

def cpu_name
    return @cpu_name
end

#cpu_name=(value) ⇒ Object

Sets the cpuName property value. CPU name used by the media endpoint.

Parameters:

  • value

    Value to set for the cpuName property.

Returns:

  • a void



62
63
64
# File 'lib/models/call_records_participant_endpoint.rb', line 62

def cpu_name=(value)
    @cpu_name = value
end

#cpu_processor_speed_in_mhzObject

Gets the cpuProcessorSpeedInMhz property value. CPU processor speed used by the media endpoint.

Returns:

  • a integer



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

def cpu_processor_speed_in_mhz
    return @cpu_processor_speed_in_mhz
end

#cpu_processor_speed_in_mhz=(value) ⇒ Object

Sets the cpuProcessorSpeedInMhz property value. CPU processor speed used by the media endpoint.

Parameters:

  • value

    Value to set for the cpuProcessorSpeedInMhz property.

Returns:

  • a void



77
78
79
# File 'lib/models/call_records_participant_endpoint.rb', line 77

def cpu_processor_speed_in_mhz=(value)
    @cpu_processor_speed_in_mhz = value
end

#feedbackObject

Gets the feedback property value. The feedback provided by the user of this endpoint about the quality of the session.

Returns:

  • a call_records_user_feedback



93
94
95
# File 'lib/models/call_records_participant_endpoint.rb', line 93

def feedback
    return @feedback
end

#feedback=(value) ⇒ Object

Sets the feedback property value. The feedback provided by the user of this endpoint about the quality of the session.

Parameters:

  • value

    Value to set for the feedback property.

Returns:

  • a void



101
102
103
# File 'lib/models/call_records_participant_endpoint.rb', line 101

def feedback=(value)
    @feedback = value
end

#get_field_deserializersObject

The deserialization information for the current model

Returns:

  • a i_dictionary



108
109
110
111
112
113
114
115
116
117
# File 'lib/models/call_records_participant_endpoint.rb', line 108

def get_field_deserializers()
    return super.merge({
        "cpuCoresCount" => lambda {|n| @cpu_cores_count = n.get_number_value() },
        "cpuName" => lambda {|n| @cpu_name = n.get_string_value() },
        "cpuProcessorSpeedInMhz" => lambda {|n| @cpu_processor_speed_in_mhz = n.get_number_value() },
        "feedback" => lambda {|n| @feedback = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::CallRecordsUserFeedback.create_from_discriminator_value(pn) }) },
        "identity" => lambda {|n| @identity = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::IdentitySet.create_from_discriminator_value(pn) }) },
        "name" => lambda {|n| @name = n.get_string_value() },
    })
end

#identityObject

Gets the identity property value. Identity associated with the endpoint.

Returns:

  • a identity_set



122
123
124
# File 'lib/models/call_records_participant_endpoint.rb', line 122

def identity
    return @identity
end

#identity=(value) ⇒ Object

Sets the identity property value. Identity associated with the endpoint.

Parameters:

  • value

    Value to set for the identity property.

Returns:

  • a void



130
131
132
# File 'lib/models/call_records_participant_endpoint.rb', line 130

def identity=(value)
    @identity = value
end

#nameObject

Gets the name property value. Name of the device used by the media endpoint.

Returns:

  • a string



137
138
139
# File 'lib/models/call_records_participant_endpoint.rb', line 137

def name
    return @name
end

#name=(value) ⇒ Object

Sets the name property value. Name of the device used by the media endpoint.

Parameters:

  • value

    Value to set for the name property.

Returns:

  • a void



145
146
147
# File 'lib/models/call_records_participant_endpoint.rb', line 145

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


153
154
155
156
157
158
159
160
161
162
# File 'lib/models/call_records_participant_endpoint.rb', line 153

def serialize(writer)
    raise StandardError, 'writer cannot be null' if writer.nil?
    super
    writer.write_number_value("cpuCoresCount", @cpu_cores_count)
    writer.write_string_value("cpuName", @cpu_name)
    writer.write_number_value("cpuProcessorSpeedInMhz", @cpu_processor_speed_in_mhz)
    writer.write_object_value("feedback", @feedback)
    writer.write_object_value("identity", @identity)
    writer.write_string_value("name", @name)
end