Class: MicrosoftGraph::Models::CallRecordsSegment

Inherits:
Entity
  • Object
show all
Includes:
MicrosoftKiotaAbstractions::Parsable
Defined in:
lib/models/call_records_segment.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 callRecordsSegment and sets the default values.



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

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_segment

Raises:

  • (StandardError)


70
71
72
73
# File 'lib/models/call_records_segment.rb', line 70

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

Instance Method Details

#calleeObject

Gets the callee property value. Endpoint that answered this segment.

Returns:

  • a call_records_endpoint



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

def callee
    return @callee
end

#callee=(value) ⇒ Object

Sets the callee property value. Endpoint that answered this segment.

Parameters:

  • value

    Value to set for the callee property.

Returns:

  • a void



40
41
42
# File 'lib/models/call_records_segment.rb', line 40

def callee=(value)
    @callee = value
end

#callerObject

Gets the caller property value. Endpoint that initiated this segment.

Returns:

  • a call_records_endpoint



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

def caller
    return @caller
end

#caller=(value) ⇒ Object

Sets the caller property value. Endpoint that initiated this segment.

Parameters:

  • value

    Value to set for the caller property.

Returns:

  • a void



55
56
57
# File 'lib/models/call_records_segment.rb', line 55

def caller=(value)
    @caller = value
end

#end_date_timeObject

Gets the endDateTime property value. UTC time when the segment ended. 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



78
79
80
# File 'lib/models/call_records_segment.rb', line 78

def end_date_time
    return @end_date_time
end

#end_date_time=(value) ⇒ Object

Sets the endDateTime property value. UTC time when the segment ended. 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



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

def end_date_time=(value)
    @end_date_time = value
end

#failure_infoObject

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

Returns:

  • a call_records_failure_info



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

def failure_info
    return @failure_info
end

#failure_info=(value) ⇒ Object

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

Parameters:

  • value

    Value to set for the failureInfo property.

Returns:

  • a void



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

def failure_info=(value)
    @failure_info = 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_segment.rb', line 108

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) }) },
        "media" => lambda {|n| @media = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::CallRecordsMedia.create_from_discriminator_value(pn) }) },
        "startDateTime" => lambda {|n| @start_date_time = n.get_date_time_value() },
    })
end

#mediaObject

Gets the media property value. Media associated with this segment.

Returns:

  • a call_records_media



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

def media
    return @media
end

#media=(value) ⇒ Object

Sets the media property value. Media associated with this segment.

Parameters:

  • value

    Value to set for the media property.

Returns:

  • a void



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

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


138
139
140
141
142
143
144
145
146
147
# File 'lib/models/call_records_segment.rb', line 138

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_collection_of_object_values("media", @media)
    writer.write_date_time_value("startDateTime", @start_date_time)
end

#start_date_timeObject

Gets the startDateTime property value. UTC time when the segment started. 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



152
153
154
# File 'lib/models/call_records_segment.rb', line 152

def start_date_time
    return @start_date_time
end

#start_date_time=(value) ⇒ Object

Sets the startDateTime property value. UTC time when the segment started. 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



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

def start_date_time=(value)
    @start_date_time = value
end