Class: MicrosoftGraph::Models::MeetingTimeSuggestion

Inherits:
Object
  • Object
show all
Includes:
MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable
Defined in:
lib/models/meeting_time_suggestion.rb

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeObject

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

Parameters:

  • parse_node

    The parse node to use to read the discriminator value and create the object

Returns:

  • a meeting_time_suggestion

Raises:

  • (StandardError)


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_dataObject

Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.

Returns:

  • a i_dictionary



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.

Parameters:

  • value

    Value to set for the additionalData property.

Returns:

  • a void



48
49
50
# File 'lib/models/meeting_time_suggestion.rb', line 48

def additional_data=(value)
    @additional_data = value
end

#attendee_availabilityObject

Gets the attendeeAvailability property value. An array that shows the availability status of each attendee for this meeting suggestion.

Returns:

  • a attendee_availability



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.

Parameters:

  • value

    Value to set for the attendeeAvailability property.

Returns:

  • a void



63
64
65
# File 'lib/models/meeting_time_suggestion.rb', line 63

def attendee_availability=(value)
    @attendee_availability = value
end

#confidenceObject

Gets the confidence property value. A percentage that represents the likelhood of all the attendees attending.

Returns:

  • a double



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.

Parameters:

  • value

    Value to set for the confidence property.

Returns:

  • a void



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

def confidence=(value)
    @confidence = value
end

#get_field_deserializersObject

The deserialization information for the current model

Returns:

  • a i_dictionary



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

#locationsObject

Gets the locations property value. An array that specifies the name and geographic location of each meeting location for this meeting suggestion.

Returns:

  • a location



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.

Parameters:

  • value

    Value to set for the locations property.

Returns:

  • a void



125
126
127
# File 'lib/models/meeting_time_suggestion.rb', line 125

def locations=(value)
    @locations = value
end

#meeting_time_slotObject

Gets the meetingTimeSlot property value. A time period suggested for the meeting.

Returns:

  • a time_slot



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.

Parameters:

  • value

    Value to set for the meetingTimeSlot property.

Returns:

  • a void



140
141
142
# File 'lib/models/meeting_time_suggestion.rb', line 140

def meeting_time_slot=(value)
    @meeting_time_slot = value
end

#odata_typeObject

Gets the @odata.type property value. The OdataType property

Returns:

  • a string



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

Parameters:

  • value

    Value to set for the @odata.type property.

Returns:

  • a void



155
156
157
# File 'lib/models/meeting_time_suggestion.rb', line 155

def odata_type=(value)
    @odata_type = value
end

#orderObject

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.

Returns:

  • a integer



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.

Parameters:

  • value

    Value to set for the order property.

Returns:

  • a void



170
171
172
# File 'lib/models/meeting_time_suggestion.rb', line 170

def order=(value)
    @order = value
end

#organizer_availabilityObject

Gets the organizerAvailability property value. Availability of the meeting organizer for this meeting suggestion. The possible values are: free, tentative, busy, oof, workingElsewhere, unknown.

Returns:

  • a free_busy_status



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.

Parameters:

  • value

    Value to set for the organizerAvailability property.

Returns:

  • a void



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

Parameters:

  • writer

    Serialization writer to use to serialize this model

Returns:

  • a void

Raises:

  • (StandardError)


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_reasonObject

Gets the suggestionReason property value. Reason for suggesting the meeting time.

Returns:

  • a string



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.

Parameters:

  • value

    Value to set for the suggestionReason property.

Returns:

  • a void



217
218
219
# File 'lib/models/meeting_time_suggestion.rb', line 217

def suggestion_reason=(value)
    @suggestion_reason = value
end