Class: MicrosoftGraph::Users::Item::FindMeetingTimes::FindMeetingTimesPostRequestBody

Inherits:
Object
  • Object
show all
Includes:
MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable
Defined in:
lib/users/item/find_meeting_times/find_meeting_times_post_request_body.rb

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeObject

Instantiates a new findMeetingTimesPostRequestBody and sets the default values.



77
78
79
# File 'lib/users/item/find_meeting_times/find_meeting_times_post_request_body.rb', line 77

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 find_meeting_times_post_request_body

Raises:

  • (StandardError)


85
86
87
88
# File 'lib/users/item/find_meeting_times/find_meeting_times_post_request_body.rb', line 85

def self.create_from_discriminator_value(parse_node)
    raise StandardError, 'parse_node cannot be null' if parse_node.nil?
    return FindMeetingTimesPostRequestBody.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



47
48
49
# File 'lib/users/item/find_meeting_times/find_meeting_times_post_request_body.rb', line 47

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



55
56
57
# File 'lib/users/item/find_meeting_times/find_meeting_times_post_request_body.rb', line 55

def additional_data=(value)
    @additional_data = value
end

#attendeesObject

Gets the attendees property value. The attendees property

Returns:

  • a attendee_base



62
63
64
# File 'lib/users/item/find_meeting_times/find_meeting_times_post_request_body.rb', line 62

def attendees
    return @attendees
end

#attendees=(value) ⇒ Object

Sets the attendees property value. The attendees property

Parameters:

  • value

    Value to set for the attendees property.

Returns:

  • a void



70
71
72
# File 'lib/users/item/find_meeting_times/find_meeting_times_post_request_body.rb', line 70

def attendees=(value)
    @attendees = value
end

#get_field_deserializersObject

The deserialization information for the current model

Returns:

  • a i_dictionary



93
94
95
96
97
98
99
100
101
102
103
104
# File 'lib/users/item/find_meeting_times/find_meeting_times_post_request_body.rb', line 93

def get_field_deserializers()
    return {
        "attendees" => lambda {|n| @attendees = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::AttendeeBase.create_from_discriminator_value(pn) }) },
        "isOrganizerOptional" => lambda {|n| @is_organizer_optional = n.get_boolean_value() },
        "locationConstraint" => lambda {|n| @location_constraint = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::LocationConstraint.create_from_discriminator_value(pn) }) },
        "maxCandidates" => lambda {|n| @max_candidates = n.get_number_value() },
        "meetingDuration" => lambda {|n| @meeting_duration = n.get_duration_value() },
        "minimumAttendeePercentage" => lambda {|n| @minimum_attendee_percentage = n.get_object_value(lambda {|pn| Double.create_from_discriminator_value(pn) }) },
        "returnSuggestionReasons" => lambda {|n| @return_suggestion_reasons = n.get_boolean_value() },
        "timeConstraint" => lambda {|n| @time_constraint = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::TimeConstraint.create_from_discriminator_value(pn) }) },
    }
end

#is_organizer_optionalObject

Gets the isOrganizerOptional property value. The isOrganizerOptional property

Returns:

  • a boolean



109
110
111
# File 'lib/users/item/find_meeting_times/find_meeting_times_post_request_body.rb', line 109

def is_organizer_optional
    return @is_organizer_optional
end

#is_organizer_optional=(value) ⇒ Object

Sets the isOrganizerOptional property value. The isOrganizerOptional property

Parameters:

  • value

    Value to set for the isOrganizerOptional property.

Returns:

  • a void



117
118
119
# File 'lib/users/item/find_meeting_times/find_meeting_times_post_request_body.rb', line 117

def is_organizer_optional=(value)
    @is_organizer_optional = value
end

#location_constraintObject

Gets the locationConstraint property value. The locationConstraint property

Returns:

  • a location_constraint



124
125
126
# File 'lib/users/item/find_meeting_times/find_meeting_times_post_request_body.rb', line 124

def location_constraint
    return @location_constraint
end

#location_constraint=(value) ⇒ Object

Sets the locationConstraint property value. The locationConstraint property

Parameters:

  • value

    Value to set for the locationConstraint property.

Returns:

  • a void



132
133
134
# File 'lib/users/item/find_meeting_times/find_meeting_times_post_request_body.rb', line 132

def location_constraint=(value)
    @location_constraint = value
end

#max_candidatesObject

Gets the maxCandidates property value. The maxCandidates property

Returns:

  • a integer



139
140
141
# File 'lib/users/item/find_meeting_times/find_meeting_times_post_request_body.rb', line 139

def max_candidates
    return @max_candidates
end

#max_candidates=(value) ⇒ Object

Sets the maxCandidates property value. The maxCandidates property

Parameters:

  • value

    Value to set for the maxCandidates property.

Returns:

  • a void



147
148
149
# File 'lib/users/item/find_meeting_times/find_meeting_times_post_request_body.rb', line 147

def max_candidates=(value)
    @max_candidates = value
end

#meeting_durationObject

Gets the meetingDuration property value. The meetingDuration property

Returns:

  • a microsoft_kiota_abstractions::_i_s_o_duration



154
155
156
# File 'lib/users/item/find_meeting_times/find_meeting_times_post_request_body.rb', line 154

def meeting_duration
    return @meeting_duration
end

#meeting_duration=(value) ⇒ Object

Sets the meetingDuration property value. The meetingDuration property

Parameters:

  • value

    Value to set for the meetingDuration property.

Returns:

  • a void



162
163
164
# File 'lib/users/item/find_meeting_times/find_meeting_times_post_request_body.rb', line 162

def meeting_duration=(value)
    @meeting_duration = value
end

#minimum_attendee_percentageObject

Gets the minimumAttendeePercentage property value. The minimumAttendeePercentage property

Returns:

  • a double



169
170
171
# File 'lib/users/item/find_meeting_times/find_meeting_times_post_request_body.rb', line 169

def minimum_attendee_percentage
    return @minimum_attendee_percentage
end

#minimum_attendee_percentage=(value) ⇒ Object

Sets the minimumAttendeePercentage property value. The minimumAttendeePercentage property

Parameters:

  • value

    Value to set for the minimumAttendeePercentage property.

Returns:

  • a void



177
178
179
# File 'lib/users/item/find_meeting_times/find_meeting_times_post_request_body.rb', line 177

def minimum_attendee_percentage=(value)
    @minimum_attendee_percentage = value
end

#return_suggestion_reasonsObject

Gets the returnSuggestionReasons property value. The returnSuggestionReasons property

Returns:

  • a boolean



184
185
186
# File 'lib/users/item/find_meeting_times/find_meeting_times_post_request_body.rb', line 184

def return_suggestion_reasons
    return @return_suggestion_reasons
end

#return_suggestion_reasons=(value) ⇒ Object

Sets the returnSuggestionReasons property value. The returnSuggestionReasons property

Parameters:

  • value

    Value to set for the returnSuggestionReasons property.

Returns:

  • a void



192
193
194
# File 'lib/users/item/find_meeting_times/find_meeting_times_post_request_body.rb', line 192

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


200
201
202
203
204
205
206
207
208
209
210
211
# File 'lib/users/item/find_meeting_times/find_meeting_times_post_request_body.rb', line 200

def serialize(writer)
    raise StandardError, 'writer cannot be null' if writer.nil?
    writer.write_collection_of_object_values("attendees", @attendees)
    writer.write_boolean_value("isOrganizerOptional", @is_organizer_optional)
    writer.write_object_value("locationConstraint", @location_constraint)
    writer.write_number_value("maxCandidates", @max_candidates)
    writer.write_duration_value("meetingDuration", @meeting_duration)
    writer.write_object_value("minimumAttendeePercentage", @minimum_attendee_percentage)
    writer.write_boolean_value("returnSuggestionReasons", @return_suggestion_reasons)
    writer.write_object_value("timeConstraint", @time_constraint)
    writer.write_additional_data(@additional_data)
end

#time_constraintObject

Gets the timeConstraint property value. The timeConstraint property

Returns:

  • a time_constraint



216
217
218
# File 'lib/users/item/find_meeting_times/find_meeting_times_post_request_body.rb', line 216

def time_constraint
    return @time_constraint
end

#time_constraint=(value) ⇒ Object

Sets the timeConstraint property value. The timeConstraint property

Parameters:

  • value

    Value to set for the timeConstraint property.

Returns:

  • a void



224
225
226
# File 'lib/users/item/find_meeting_times/find_meeting_times_post_request_body.rb', line 224

def time_constraint=(value)
    @time_constraint = value
end