Class: MicrosoftGraph::Models::Reminder

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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeObject

Instantiates a new reminder and sets the default values.



73
74
75
# File 'lib/models/reminder.rb', line 73

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 reminder

Raises:

  • (StandardError)


81
82
83
84
# File 'lib/models/reminder.rb', line 81

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



43
44
45
# File 'lib/models/reminder.rb', line 43

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



51
52
53
# File 'lib/models/reminder.rb', line 51

def additional_data=(value)
    @additional_data = value
end

#change_keyObject

Gets the changeKey property value. Identifies the version of the reminder. Every time the reminder is changed, changeKey changes as well. This allows Exchange to apply changes to the correct version of the object.

Returns:

  • a string



58
59
60
# File 'lib/models/reminder.rb', line 58

def change_key
    return @change_key
end

#change_key=(value) ⇒ Object

Sets the changeKey property value. Identifies the version of the reminder. Every time the reminder is changed, changeKey changes as well. This allows Exchange to apply changes to the correct version of the object.

Parameters:

  • value

    Value to set for the changeKey property.

Returns:

  • a void



66
67
68
# File 'lib/models/reminder.rb', line 66

def change_key=(value)
    @change_key = value
end

#event_end_timeObject

Gets the eventEndTime property value. The date, time and time zone that the event ends.

Returns:

  • a date_time_time_zone



89
90
91
# File 'lib/models/reminder.rb', line 89

def event_end_time
    return @event_end_time
end

#event_end_time=(value) ⇒ Object

Sets the eventEndTime property value. The date, time and time zone that the event ends.

Parameters:

  • value

    Value to set for the eventEndTime property.

Returns:

  • a void



97
98
99
# File 'lib/models/reminder.rb', line 97

def event_end_time=(value)
    @event_end_time = value
end

#event_idObject

Gets the eventId property value. The unique ID of the event. Read only.

Returns:

  • a string



104
105
106
# File 'lib/models/reminder.rb', line 104

def event_id
    return @event_id
end

#event_id=(value) ⇒ Object

Sets the eventId property value. The unique ID of the event. Read only.

Parameters:

  • value

    Value to set for the eventId property.

Returns:

  • a void



112
113
114
# File 'lib/models/reminder.rb', line 112

def event_id=(value)
    @event_id = value
end

#event_locationObject

Gets the eventLocation property value. The location of the event.

Returns:

  • a location



119
120
121
# File 'lib/models/reminder.rb', line 119

def event_location
    return @event_location
end

#event_location=(value) ⇒ Object

Sets the eventLocation property value. The location of the event.

Parameters:

  • value

    Value to set for the eventLocation property.

Returns:

  • a void



127
128
129
# File 'lib/models/reminder.rb', line 127

def event_location=(value)
    @event_location = value
end

#event_start_timeObject

Gets the eventStartTime property value. The date, time, and time zone that the event starts.

Returns:

  • a date_time_time_zone



134
135
136
# File 'lib/models/reminder.rb', line 134

def event_start_time
    return @event_start_time
end

#event_start_time=(value) ⇒ Object

Sets the eventStartTime property value. The date, time, and time zone that the event starts.

Parameters:

  • value

    Value to set for the eventStartTime property.

Returns:

  • a void



142
143
144
# File 'lib/models/reminder.rb', line 142

def event_start_time=(value)
    @event_start_time = value
end

#event_subjectObject

Gets the eventSubject property value. The text of the event’s subject line.

Returns:

  • a string



149
150
151
# File 'lib/models/reminder.rb', line 149

def event_subject
    return @event_subject
end

#event_subject=(value) ⇒ Object

Sets the eventSubject property value. The text of the event’s subject line.

Parameters:

  • value

    Value to set for the eventSubject property.

Returns:

  • a void



157
158
159
# File 'lib/models/reminder.rb', line 157

def event_subject=(value)
    @event_subject = value
end

Gets the eventWebLink property value. The URL to open the event in Outlook on the web.The event will open in the browser if you are logged in to your mailbox via Outlook on the web. You will be prompted to login if you are not already logged in with the browser.This URL cannot be accessed from within an iFrame.

Returns:

  • a string



164
165
166
# File 'lib/models/reminder.rb', line 164

def event_web_link
    return @event_web_link
end

#event_web_link=(value) ⇒ Object

Sets the eventWebLink property value. The URL to open the event in Outlook on the web.The event will open in the browser if you are logged in to your mailbox via Outlook on the web. You will be prompted to login if you are not already logged in with the browser.This URL cannot be accessed from within an iFrame.

Parameters:

  • value

    Value to set for the eventWebLink property.

Returns:

  • a void



172
173
174
# File 'lib/models/reminder.rb', line 172

def event_web_link=(value)
    @event_web_link = value
end

#get_field_deserializersObject

The deserialization information for the current model

Returns:

  • a i_dictionary



179
180
181
182
183
184
185
186
187
188
189
190
191
# File 'lib/models/reminder.rb', line 179

def get_field_deserializers()
    return {
        "changeKey" => lambda {|n| @change_key = n.get_string_value() },
        "eventEndTime" => lambda {|n| @event_end_time = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::DateTimeTimeZone.create_from_discriminator_value(pn) }) },
        "eventId" => lambda {|n| @event_id = n.get_string_value() },
        "eventLocation" => lambda {|n| @event_location = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Location.create_from_discriminator_value(pn) }) },
        "eventStartTime" => lambda {|n| @event_start_time = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::DateTimeTimeZone.create_from_discriminator_value(pn) }) },
        "eventSubject" => lambda {|n| @event_subject = n.get_string_value() },
        "eventWebLink" => lambda {|n| @event_web_link = n.get_string_value() },
        "@odata.type" => lambda {|n| @odata_type = n.get_string_value() },
        "reminderFireTime" => lambda {|n| @reminder_fire_time = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::DateTimeTimeZone.create_from_discriminator_value(pn) }) },
    }
end

#odata_typeObject

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

Returns:

  • a string



196
197
198
# File 'lib/models/reminder.rb', line 196

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



204
205
206
# File 'lib/models/reminder.rb', line 204

def odata_type=(value)
    @odata_type = value
end

#reminder_fire_timeObject

Gets the reminderFireTime property value. The date, time, and time zone that the reminder is set to occur.

Returns:

  • a date_time_time_zone



211
212
213
# File 'lib/models/reminder.rb', line 211

def reminder_fire_time
    return @reminder_fire_time
end

#reminder_fire_time=(value) ⇒ Object

Sets the reminderFireTime property value. The date, time, and time zone that the reminder is set to occur.

Parameters:

  • value

    Value to set for the reminderFireTime property.

Returns:

  • a void



219
220
221
# File 'lib/models/reminder.rb', line 219

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


227
228
229
230
231
232
233
234
235
236
237
238
239
# File 'lib/models/reminder.rb', line 227

def serialize(writer)
    raise StandardError, 'writer cannot be null' if writer.nil?
    writer.write_string_value("changeKey", @change_key)
    writer.write_object_value("eventEndTime", @event_end_time)
    writer.write_string_value("eventId", @event_id)
    writer.write_object_value("eventLocation", @event_location)
    writer.write_object_value("eventStartTime", @event_start_time)
    writer.write_string_value("eventSubject", @event_subject)
    writer.write_string_value("eventWebLink", @event_web_link)
    writer.write_string_value("@odata.type", @odata_type)
    writer.write_object_value("reminderFireTime", @reminder_fire_time)
    writer.write_additional_data(@additional_data)
end