Class: MicrosoftGraph::Models::CallRecordsSegment
- Includes:
- MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/call_records_segment.rb
Class Method Summary collapse
-
.create_from_discriminator_value(parse_node) ⇒ Object
Creates a new instance of the appropriate class based on discriminator value.
Instance Method Summary collapse
-
#callee ⇒ Object
Gets the callee property value.
-
#callee=(value) ⇒ Object
Sets the callee property value.
-
#caller ⇒ Object
Gets the caller property value.
-
#caller=(value) ⇒ Object
Sets the caller property value.
-
#end_date_time ⇒ Object
Gets the endDateTime property value.
-
#end_date_time=(value) ⇒ Object
Sets the endDateTime property value.
-
#failure_info ⇒ Object
Gets the failureInfo property value.
-
#failure_info=(value) ⇒ Object
Sets the failureInfo property value.
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#initialize ⇒ Object
constructor
Instantiates a new callRecordsSegment and sets the default values.
-
#media ⇒ Object
Gets the media property value.
-
#media=(value) ⇒ Object
Sets the media property value.
-
#serialize(writer) ⇒ Object
Serializes information the current object.
-
#start_date_time ⇒ Object
Gets the startDateTime property value.
-
#start_date_time=(value) ⇒ Object
Sets the startDateTime property value.
Methods inherited from Entity
#additional_data, #additional_data=, #id, #id=, #odata_type, #odata_type=
Constructor Details
#initialize ⇒ Object
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
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
#callee ⇒ Object
Gets the callee property value. Endpoint that answered this segment.
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.
40 41 42 |
# File 'lib/models/call_records_segment.rb', line 40 def callee=(value) @callee = value end |
#caller ⇒ Object
Gets the caller property value. Endpoint that initiated this segment.
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.
55 56 57 |
# File 'lib/models/call_records_segment.rb', line 55 def caller=(value) @caller = value end |
#end_date_time ⇒ Object
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
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
86 87 88 |
# File 'lib/models/call_records_segment.rb', line 86 def end_date_time=(value) @end_date_time = value end |
#failure_info ⇒ Object
Gets the failureInfo property value. Failure information associated with the segment if it failed.
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.
101 102 103 |
# File 'lib/models/call_records_segment.rb', line 101 def failure_info=(value) @failure_info = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
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 |
#media ⇒ Object
Gets the media property value. Media associated with this segment.
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.
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
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_time ⇒ Object
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
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
160 161 162 |
# File 'lib/models/call_records_segment.rb', line 160 def start_date_time=(value) @start_date_time = value end |