Class: MicrosoftGraph::Models::CallRecordsSession

Inherits:
Entity
  • Object
show all
Includes:
MicrosoftKiotaAbstractions::Parsable
Defined in:
lib/models/call_records_session.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Entity

#additional_data, #additional_data=, #id, #id=, #odata_type, #odata_type=

Constructor Details

#initializeObject

Instantiates a new callRecordsSession and sets the default values.



68
69
70
# File 'lib/models/call_records_session.rb', line 68

def initialize()
    super
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_session

Raises:

  • (StandardError)


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

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

Instance Method Details

#calleeObject

Gets the callee property value. Endpoint that answered the session.

Returns:

  • a call_records_endpoint



38
39
40
# File 'lib/models/call_records_session.rb', line 38

def callee
    return @callee
end

#callee=(value) ⇒ Object

Sets the callee property value. Endpoint that answered the session.

Parameters:

  • value

    Value to set for the callee property.

Returns:

  • a void



46
47
48
# File 'lib/models/call_records_session.rb', line 46

def callee=(value)
    @callee = value
end

#callerObject

Gets the caller property value. Endpoint that initiated the session.

Returns:

  • a call_records_endpoint



53
54
55
# File 'lib/models/call_records_session.rb', line 53

def caller
    return @caller
end

#caller=(value) ⇒ Object

Sets the caller property value. Endpoint that initiated the session.

Parameters:

  • value

    Value to set for the caller property.

Returns:

  • a void



61
62
63
# File 'lib/models/call_records_session.rb', line 61

def caller=(value)
    @caller = value
end

#end_date_timeObject

Gets the endDateTime property value. UTC time when the last user left the session. The DateTimeOffset type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z

Returns:

  • a date_time



84
85
86
# File 'lib/models/call_records_session.rb', line 84

def end_date_time
    return @end_date_time
end

#end_date_time=(value) ⇒ Object

Sets the endDateTime property value. UTC time when the last user left the session. The DateTimeOffset type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z

Parameters:

  • value

    Value to set for the endDateTime property.

Returns:

  • a void



92
93
94
# File 'lib/models/call_records_session.rb', line 92

def end_date_time=(value)
    @end_date_time = value
end

#failure_infoObject

Gets the failureInfo property value. Failure information associated with the session if the session failed.

Returns:

  • a call_records_failure_info



99
100
101
# File 'lib/models/call_records_session.rb', line 99

def failure_info
    return @failure_info
end

#failure_info=(value) ⇒ Object

Sets the failureInfo property value. Failure information associated with the session if the session failed.

Parameters:

  • value

    Value to set for the failureInfo property.

Returns:

  • a void



107
108
109
# File 'lib/models/call_records_session.rb', line 107

def failure_info=(value)
    @failure_info = value
end

#get_field_deserializersObject

The deserialization information for the current model

Returns:

  • a i_dictionary



114
115
116
117
118
119
120
121
122
123
124
125
# File 'lib/models/call_records_session.rb', line 114

def get_field_deserializers()
    return super.merge({
        "callee" => lambda {|n| @callee = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::CallRecordsEndpoint.create_from_discriminator_value(pn) }) },
        "caller" => lambda {|n| @caller = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::CallRecordsEndpoint.create_from_discriminator_value(pn) }) },
        "endDateTime" => lambda {|n| @end_date_time = n.get_date_time_value() },
        "failureInfo" => lambda {|n| @failure_info = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::CallRecordsFailureInfo.create_from_discriminator_value(pn) }) },
        "isTest" => lambda {|n| @is_test = n.get_boolean_value() },
        "modalities" => lambda {|n| @modalities = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::CallRecordsModality.create_from_discriminator_value(pn) }) },
        "segments" => lambda {|n| @segments = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::CallRecordsSegment.create_from_discriminator_value(pn) }) },
        "startDateTime" => lambda {|n| @start_date_time = n.get_date_time_value() },
    })
end

#is_testObject

Gets the isTest property value. Specifies whether the session is a test.

Returns:

  • a boolean



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

def is_test
    return @is_test
end

#is_test=(value) ⇒ Object

Sets the isTest property value. Specifies whether the session is a test.

Parameters:

  • value

    Value to set for the isTest property.

Returns:

  • a void



138
139
140
# File 'lib/models/call_records_session.rb', line 138

def is_test=(value)
    @is_test = value
end

#modalitiesObject

Gets the modalities property value. List of modalities present in the session. Possible values are: unknown, audio, video, videoBasedScreenSharing, data, screenSharing, unknownFutureValue.

Returns:

  • a call_records_modality



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

def modalities
    return @modalities
end

#modalities=(value) ⇒ Object

Sets the modalities property value. List of modalities present in the session. Possible values are: unknown, audio, video, videoBasedScreenSharing, data, screenSharing, unknownFutureValue.

Parameters:

  • value

    Value to set for the modalities property.

Returns:

  • a void



153
154
155
# File 'lib/models/call_records_session.rb', line 153

def modalities=(value)
    @modalities = value
end

#segmentsObject

Gets the segments property value. The list of segments involved in the session. Read-only. Nullable.

Returns:

  • a call_records_segment



160
161
162
# File 'lib/models/call_records_session.rb', line 160

def segments
    return @segments
end

#segments=(value) ⇒ Object

Sets the segments property value. The list of segments involved in the session. Read-only. Nullable.

Parameters:

  • value

    Value to set for the segments property.

Returns:

  • a void



168
169
170
# File 'lib/models/call_records_session.rb', line 168

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


176
177
178
179
180
181
182
183
184
185
186
187
# File 'lib/models/call_records_session.rb', line 176

def serialize(writer)
    raise StandardError, 'writer cannot be null' if writer.nil?
    super
    writer.write_object_value("callee", @callee)
    writer.write_object_value("caller", @caller)
    writer.write_date_time_value("endDateTime", @end_date_time)
    writer.write_object_value("failureInfo", @failure_info)
    writer.write_boolean_value("isTest", @is_test)
    writer.write_collection_of_object_values("modalities", @modalities)
    writer.write_collection_of_object_values("segments", @segments)
    writer.write_date_time_value("startDateTime", @start_date_time)
end

#start_date_timeObject

Gets the startDateTime property value. UTC time when the first user joined the session. The DateTimeOffset type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z

Returns:

  • a date_time



192
193
194
# File 'lib/models/call_records_session.rb', line 192

def start_date_time
    return @start_date_time
end

#start_date_time=(value) ⇒ Object

Sets the startDateTime property value. UTC time when the first user joined the session. The DateTimeOffset type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z

Parameters:

  • value

    Value to set for the startDateTime property.

Returns:

  • a void



200
201
202
# File 'lib/models/call_records_session.rb', line 200

def start_date_time=(value)
    @start_date_time = value
end