Class: MicrosoftGraph::Models::MeetingTimeSuggestion
- Inherits:
-
Object
- Object
- MicrosoftGraph::Models::MeetingTimeSuggestion
- Includes:
- MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/meeting_time_suggestion.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.
-
#attendee_availability ⇒ Object
Gets the attendeeAvailability property value.
-
#attendee_availability=(value) ⇒ Object
Sets the attendeeAvailability property value.
-
#confidence ⇒ Object
Gets the confidence property value.
-
#confidence=(value) ⇒ Object
Sets the confidence property value.
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#initialize ⇒ Object
constructor
Instantiates a new meetingTimeSuggestion and sets the default values.
-
#locations ⇒ Object
Gets the locations property value.
-
#locations=(value) ⇒ Object
Sets the locations property value.
-
#meeting_time_slot ⇒ Object
Gets the meetingTimeSlot property value.
-
#meeting_time_slot=(value) ⇒ Object
Sets the meetingTimeSlot property value.
-
#odata_type ⇒ Object
Gets the @odata.type property value.
-
#odata_type=(value) ⇒ Object
Sets the @odata.type property value.
-
#order ⇒ Object
Gets the order property value.
-
#order=(value) ⇒ Object
Sets the order property value.
-
#organizer_availability ⇒ Object
Gets the organizerAvailability property value.
-
#organizer_availability=(value) ⇒ Object
Sets the organizerAvailability property value.
-
#serialize(writer) ⇒ Object
Serializes information the current object.
-
#suggestion_reason ⇒ Object
Gets the suggestionReason property value.
-
#suggestion_reason=(value) ⇒ Object
Sets the suggestionReason property value.
Constructor Details
#initialize ⇒ Object
Instantiates a new meetingTimeSuggestion and sets the default values.
85 86 87 |
# File 'lib/models/meeting_time_suggestion.rb', line 85 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
93 94 95 96 |
# File 'lib/models/meeting_time_suggestion.rb', line 93 def self.create_from_discriminator_value(parse_node) raise StandardError, 'parse_node cannot be null' if parse_node.nil? return MeetingTimeSuggestion.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.
40 41 42 |
# File 'lib/models/meeting_time_suggestion.rb', line 40 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.
48 49 50 |
# File 'lib/models/meeting_time_suggestion.rb', line 48 def additional_data=(value) @additional_data = value end |
#attendee_availability ⇒ Object
Gets the attendeeAvailability property value. An array that shows the availability status of each attendee for this meeting suggestion.
55 56 57 |
# File 'lib/models/meeting_time_suggestion.rb', line 55 def attendee_availability return @attendee_availability end |
#attendee_availability=(value) ⇒ Object
Sets the attendeeAvailability property value. An array that shows the availability status of each attendee for this meeting suggestion.
63 64 65 |
# File 'lib/models/meeting_time_suggestion.rb', line 63 def attendee_availability=(value) @attendee_availability = value end |
#confidence ⇒ Object
Gets the confidence property value. A percentage that represents the likelhood of all the attendees attending.
70 71 72 |
# File 'lib/models/meeting_time_suggestion.rb', line 70 def confidence return @confidence end |
#confidence=(value) ⇒ Object
Sets the confidence property value. A percentage that represents the likelhood of all the attendees attending.
78 79 80 |
# File 'lib/models/meeting_time_suggestion.rb', line 78 def confidence=(value) @confidence = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
101 102 103 104 105 106 107 108 109 110 111 112 |
# File 'lib/models/meeting_time_suggestion.rb', line 101 def get_field_deserializers() return { "attendeeAvailability" => lambda {|n| @attendee_availability = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::AttendeeAvailability.create_from_discriminator_value(pn) }) }, "confidence" => lambda {|n| @confidence = n.get_object_value(lambda {|pn| Double.create_from_discriminator_value(pn) }) }, "locations" => lambda {|n| @locations = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::Location.create_from_discriminator_value(pn) }) }, "meetingTimeSlot" => lambda {|n| @meeting_time_slot = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::TimeSlot.create_from_discriminator_value(pn) }) }, "@odata.type" => lambda {|n| @odata_type = n.get_string_value() }, "order" => lambda {|n| @order = n.get_number_value() }, "organizerAvailability" => lambda {|n| @organizer_availability = n.get_enum_value(MicrosoftGraph::Models::FreeBusyStatus) }, "suggestionReason" => lambda {|n| @suggestion_reason = n.get_string_value() }, } end |
#locations ⇒ Object
Gets the locations property value. An array that specifies the name and geographic location of each meeting location for this meeting suggestion.
117 118 119 |
# File 'lib/models/meeting_time_suggestion.rb', line 117 def locations return @locations end |
#locations=(value) ⇒ Object
Sets the locations property value. An array that specifies the name and geographic location of each meeting location for this meeting suggestion.
125 126 127 |
# File 'lib/models/meeting_time_suggestion.rb', line 125 def locations=(value) @locations = value end |
#meeting_time_slot ⇒ Object
Gets the meetingTimeSlot property value. A time period suggested for the meeting.
132 133 134 |
# File 'lib/models/meeting_time_suggestion.rb', line 132 def meeting_time_slot return @meeting_time_slot end |
#meeting_time_slot=(value) ⇒ Object
Sets the meetingTimeSlot property value. A time period suggested for the meeting.
140 141 142 |
# File 'lib/models/meeting_time_suggestion.rb', line 140 def meeting_time_slot=(value) @meeting_time_slot = value end |
#odata_type ⇒ Object
Gets the @odata.type property value. The OdataType property
147 148 149 |
# File 'lib/models/meeting_time_suggestion.rb', line 147 def odata_type return @odata_type end |
#odata_type=(value) ⇒ Object
Sets the @odata.type property value. The OdataType property
155 156 157 |
# File 'lib/models/meeting_time_suggestion.rb', line 155 def odata_type=(value) @odata_type = value end |
#order ⇒ Object
Gets the order property value. Order of meeting time suggestions sorted by their computed confidence value from high to low, then by chronology if there are suggestions with the same confidence.
162 163 164 |
# File 'lib/models/meeting_time_suggestion.rb', line 162 def order return @order end |
#order=(value) ⇒ Object
Sets the order property value. Order of meeting time suggestions sorted by their computed confidence value from high to low, then by chronology if there are suggestions with the same confidence.
170 171 172 |
# File 'lib/models/meeting_time_suggestion.rb', line 170 def order=(value) @order = value end |
#organizer_availability ⇒ Object
Gets the organizerAvailability property value. Availability of the meeting organizer for this meeting suggestion. The possible values are: free, tentative, busy, oof, workingElsewhere, unknown.
177 178 179 |
# File 'lib/models/meeting_time_suggestion.rb', line 177 def organizer_availability return @organizer_availability end |
#organizer_availability=(value) ⇒ Object
Sets the organizerAvailability property value. Availability of the meeting organizer for this meeting suggestion. The possible values are: free, tentative, busy, oof, workingElsewhere, unknown.
185 186 187 |
# File 'lib/models/meeting_time_suggestion.rb', line 185 def organizer_availability=(value) @organizer_availability = value end |
#serialize(writer) ⇒ Object
Serializes information the current object
193 194 195 196 197 198 199 200 201 202 203 204 |
# File 'lib/models/meeting_time_suggestion.rb', line 193 def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? writer.write_collection_of_object_values("attendeeAvailability", @attendee_availability) writer.write_object_value("confidence", @confidence) writer.write_collection_of_object_values("locations", @locations) writer.write_object_value("meetingTimeSlot", @meeting_time_slot) writer.write_string_value("@odata.type", @odata_type) writer.write_number_value("order", @order) writer.write_enum_value("organizerAvailability", @organizer_availability) writer.write_string_value("suggestionReason", @suggestion_reason) writer.write_additional_data(@additional_data) end |
#suggestion_reason ⇒ Object
Gets the suggestionReason property value. Reason for suggesting the meeting time.
209 210 211 |
# File 'lib/models/meeting_time_suggestion.rb', line 209 def suggestion_reason return @suggestion_reason end |
#suggestion_reason=(value) ⇒ Object
Sets the suggestionReason property value. Reason for suggesting the meeting time.
217 218 219 |
# File 'lib/models/meeting_time_suggestion.rb', line 217 def suggestion_reason=(value) @suggestion_reason = value end |