Class: MicrosoftGraph::Communications::OnlineMeetings::CreateOrGet::CreateOrGetPostRequestBody

Inherits:
Object
  • Object
show all
Includes:
MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable
Defined in:
lib/communications/online_meetings/create_or_get/create_or_get_post_request_body.rb

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeObject

Instantiates a new createOrGetPostRequestBody and sets the default values.



71
72
73
# File 'lib/communications/online_meetings/create_or_get/create_or_get_post_request_body.rb', line 71

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 create_or_get_post_request_body

Raises:

  • (StandardError)


79
80
81
82
# File 'lib/communications/online_meetings/create_or_get/create_or_get_post_request_body.rb', line 79

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



41
42
43
# File 'lib/communications/online_meetings/create_or_get/create_or_get_post_request_body.rb', line 41

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



49
50
51
# File 'lib/communications/online_meetings/create_or_get/create_or_get_post_request_body.rb', line 49

def additional_data=(value)
    @additional_data = value
end

#chat_infoObject

Gets the chatInfo property value. The chatInfo property

Returns:

  • a chat_info



56
57
58
# File 'lib/communications/online_meetings/create_or_get/create_or_get_post_request_body.rb', line 56

def chat_info
    return @chat_info
end

#chat_info=(value) ⇒ Object

Sets the chatInfo property value. The chatInfo property

Parameters:

  • value

    Value to set for the chatInfo property.

Returns:

  • a void



64
65
66
# File 'lib/communications/online_meetings/create_or_get/create_or_get_post_request_body.rb', line 64

def chat_info=(value)
    @chat_info = value
end

#end_date_timeObject

Gets the endDateTime property value. The endDateTime property

Returns:

  • a date_time



87
88
89
# File 'lib/communications/online_meetings/create_or_get/create_or_get_post_request_body.rb', line 87

def end_date_time
    return @end_date_time
end

#end_date_time=(value) ⇒ Object

Sets the endDateTime property value. The endDateTime property

Parameters:

  • value

    Value to set for the endDateTime property.

Returns:

  • a void



95
96
97
# File 'lib/communications/online_meetings/create_or_get/create_or_get_post_request_body.rb', line 95

def end_date_time=(value)
    @end_date_time = value
end

#external_idObject

Gets the externalId property value. The externalId property

Returns:

  • a string



102
103
104
# File 'lib/communications/online_meetings/create_or_get/create_or_get_post_request_body.rb', line 102

def external_id
    return @external_id
end

#external_id=(value) ⇒ Object

Sets the externalId property value. The externalId property

Parameters:

  • value

    Value to set for the externalId property.

Returns:

  • a void



110
111
112
# File 'lib/communications/online_meetings/create_or_get/create_or_get_post_request_body.rb', line 110

def external_id=(value)
    @external_id = value
end

#get_field_deserializersObject

The deserialization information for the current model

Returns:

  • a i_dictionary



117
118
119
120
121
122
123
124
125
126
# File 'lib/communications/online_meetings/create_or_get/create_or_get_post_request_body.rb', line 117

def get_field_deserializers()
    return {
        "chatInfo" => lambda {|n| @chat_info = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::ChatInfo.create_from_discriminator_value(pn) }) },
        "endDateTime" => lambda {|n| @end_date_time = n.get_date_time_value() },
        "externalId" => lambda {|n| @external_id = n.get_string_value() },
        "participants" => lambda {|n| @participants = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::MeetingParticipants.create_from_discriminator_value(pn) }) },
        "startDateTime" => lambda {|n| @start_date_time = n.get_date_time_value() },
        "subject" => lambda {|n| @subject = n.get_string_value() },
    }
end

#participantsObject

Gets the participants property value. The participants property

Returns:

  • a meeting_participants



131
132
133
# File 'lib/communications/online_meetings/create_or_get/create_or_get_post_request_body.rb', line 131

def participants
    return @participants
end

#participants=(value) ⇒ Object

Sets the participants property value. The participants property

Parameters:

  • value

    Value to set for the participants property.

Returns:

  • a void



139
140
141
# File 'lib/communications/online_meetings/create_or_get/create_or_get_post_request_body.rb', line 139

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


147
148
149
150
151
152
153
154
155
156
# File 'lib/communications/online_meetings/create_or_get/create_or_get_post_request_body.rb', line 147

def serialize(writer)
    raise StandardError, 'writer cannot be null' if writer.nil?
    writer.write_object_value("chatInfo", @chat_info)
    writer.write_date_time_value("endDateTime", @end_date_time)
    writer.write_string_value("externalId", @external_id)
    writer.write_object_value("participants", @participants)
    writer.write_date_time_value("startDateTime", @start_date_time)
    writer.write_string_value("subject", @subject)
    writer.write_additional_data(@additional_data)
end

#start_date_timeObject

Gets the startDateTime property value. The startDateTime property

Returns:

  • a date_time



161
162
163
# File 'lib/communications/online_meetings/create_or_get/create_or_get_post_request_body.rb', line 161

def start_date_time
    return @start_date_time
end

#start_date_time=(value) ⇒ Object

Sets the startDateTime property value. The startDateTime property

Parameters:

  • value

    Value to set for the startDateTime property.

Returns:

  • a void



169
170
171
# File 'lib/communications/online_meetings/create_or_get/create_or_get_post_request_body.rb', line 169

def start_date_time=(value)
    @start_date_time = value
end

#subjectObject

Gets the subject property value. The subject property

Returns:

  • a string



176
177
178
# File 'lib/communications/online_meetings/create_or_get/create_or_get_post_request_body.rb', line 176

def subject
    return @subject
end

#subject=(value) ⇒ Object

Sets the subject property value. The subject property

Parameters:

  • value

    Value to set for the subject property.

Returns:

  • a void



184
185
186
# File 'lib/communications/online_meetings/create_or_get/create_or_get_post_request_body.rb', line 184

def subject=(value)
    @subject = value
end