Class: MicrosoftGraph::Models::IncomingContext
- Inherits:
-
Object
- Object
- MicrosoftGraph::Models::IncomingContext
- Includes:
- MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/incoming_context.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
-
#additional_data ⇒ Object
Gets the additionalData property value.
-
#additional_data=(value) ⇒ Object
Sets the additionalData property value.
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#initialize ⇒ Object
constructor
Instantiates a new incomingContext and sets the default values.
-
#observed_participant_id ⇒ Object
Gets the observedParticipantId property value.
-
#observed_participant_id=(value) ⇒ Object
Sets the observedParticipantId property value.
-
#odata_type ⇒ Object
Gets the @odata.type property value.
-
#odata_type=(value) ⇒ Object
Sets the @odata.type property value.
-
#on_behalf_of ⇒ Object
Gets the onBehalfOf property value.
-
#on_behalf_of=(value) ⇒ Object
Sets the onBehalfOf property value.
-
#serialize(writer) ⇒ Object
Serializes information the current object.
-
#source_participant_id ⇒ Object
Gets the sourceParticipantId property value.
-
#source_participant_id=(value) ⇒ Object
Sets the sourceParticipantId property value.
-
#transferor ⇒ Object
Gets the transferor property value.
-
#transferor=(value) ⇒ Object
Sets the transferor property value.
Constructor Details
#initialize ⇒ Object
Instantiates a new incomingContext and sets the default values.
46 47 48 |
# File 'lib/models/incoming_context.rb', line 46 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
54 55 56 57 |
# File 'lib/models/incoming_context.rb', line 54 def self.create_from_discriminator_value(parse_node) raise StandardError, 'parse_node cannot be null' if parse_node.nil? return IncomingContext.new end |
Instance Method Details
#additional_data ⇒ Object
Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
31 32 33 |
# File 'lib/models/incoming_context.rb', line 31 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.
39 40 41 |
# File 'lib/models/incoming_context.rb', line 39 def additional_data=(value) @additional_data = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
62 63 64 65 66 67 68 69 70 |
# File 'lib/models/incoming_context.rb', line 62 def get_field_deserializers() return { "observedParticipantId" => lambda {|n| @observed_participant_id = n.get_string_value() }, "@odata.type" => lambda {|n| @odata_type = n.get_string_value() }, "onBehalfOf" => lambda {|n| @on_behalf_of = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::IdentitySet.create_from_discriminator_value(pn) }) }, "sourceParticipantId" => lambda {|n| @source_participant_id = n.get_string_value() }, "transferor" => lambda {|n| @transferor = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::IdentitySet.create_from_discriminator_value(pn) }) }, } end |
#observed_participant_id ⇒ Object
Gets the observedParticipantId property value. The ID of the participant that is under observation. Read-only.
75 76 77 |
# File 'lib/models/incoming_context.rb', line 75 def observed_participant_id return @observed_participant_id end |
#observed_participant_id=(value) ⇒ Object
Sets the observedParticipantId property value. The ID of the participant that is under observation. Read-only.
83 84 85 |
# File 'lib/models/incoming_context.rb', line 83 def observed_participant_id=(value) @observed_participant_id = value end |
#odata_type ⇒ Object
Gets the @odata.type property value. The OdataType property
90 91 92 |
# File 'lib/models/incoming_context.rb', line 90 def odata_type return @odata_type end |
#odata_type=(value) ⇒ Object
Sets the @odata.type property value. The OdataType property
98 99 100 |
# File 'lib/models/incoming_context.rb', line 98 def odata_type=(value) @odata_type = value end |
#on_behalf_of ⇒ Object
Gets the onBehalfOf property value. The identity that the call is happening on behalf of.
105 106 107 |
# File 'lib/models/incoming_context.rb', line 105 def on_behalf_of return @on_behalf_of end |
#on_behalf_of=(value) ⇒ Object
Sets the onBehalfOf property value. The identity that the call is happening on behalf of.
113 114 115 |
# File 'lib/models/incoming_context.rb', line 113 def on_behalf_of=(value) @on_behalf_of = value end |
#serialize(writer) ⇒ Object
Serializes information the current object
121 122 123 124 125 126 127 128 129 |
# File 'lib/models/incoming_context.rb', line 121 def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? writer.write_string_value("observedParticipantId", @observed_participant_id) writer.write_string_value("@odata.type", @odata_type) writer.write_object_value("onBehalfOf", @on_behalf_of) writer.write_string_value("sourceParticipantId", @source_participant_id) writer.write_object_value("transferor", @transferor) writer.write_additional_data(@additional_data) end |
#source_participant_id ⇒ Object
Gets the sourceParticipantId property value. The ID of the participant that triggered the incoming call. Read-only.
134 135 136 |
# File 'lib/models/incoming_context.rb', line 134 def source_participant_id return @source_participant_id end |
#source_participant_id=(value) ⇒ Object
Sets the sourceParticipantId property value. The ID of the participant that triggered the incoming call. Read-only.
142 143 144 |
# File 'lib/models/incoming_context.rb', line 142 def source_participant_id=(value) @source_participant_id = value end |
#transferor ⇒ Object
Gets the transferor property value. The identity that transferred the call.
149 150 151 |
# File 'lib/models/incoming_context.rb', line 149 def transferor return @transferor end |
#transferor=(value) ⇒ Object
Sets the transferor property value. The identity that transferred the call.
157 158 159 |
# File 'lib/models/incoming_context.rb', line 157 def transferor=(value) @transferor = value end |