Class: MicrosoftGraph::Models::FollowupFlag
- Inherits:
-
Object
- Object
- MicrosoftGraph::Models::FollowupFlag
- Includes:
- MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/followup_flag.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.
-
#completed_date_time ⇒ Object
Gets the completedDateTime property value.
-
#completed_date_time=(value) ⇒ Object
Sets the completedDateTime property value.
-
#due_date_time ⇒ Object
Gets the dueDateTime property value.
-
#due_date_time=(value) ⇒ Object
Sets the dueDateTime property value.
-
#flag_status ⇒ Object
Gets the flagStatus property value.
-
#flag_status=(value) ⇒ Object
Sets the flagStatus property value.
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#initialize ⇒ Object
constructor
Instantiates a new followupFlag and sets the default values.
-
#odata_type ⇒ Object
Gets the @odata.type property value.
-
#odata_type=(value) ⇒ Object
Sets the @odata.type property value.
-
#serialize(writer) ⇒ Object
Serializes information the current object.
-
#start_date_time ⇒ Object
Gets the startDateTime property value.
-
#start_date_time=(value) ⇒ Object
Sets the startDateTime property value.
Constructor Details
#initialize ⇒ Object
Instantiates a new followupFlag and sets the default values.
61 62 63 |
# File 'lib/models/followup_flag.rb', line 61 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
69 70 71 72 |
# File 'lib/models/followup_flag.rb', line 69 def self.create_from_discriminator_value(parse_node) raise StandardError, 'parse_node cannot be null' if parse_node.nil? return FollowupFlag.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.
31 32 33 |
# File 'lib/models/followup_flag.rb', line 31 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.
39 40 41 |
# File 'lib/models/followup_flag.rb', line 39 def additional_data=(value) @additional_data = value end |
#completed_date_time ⇒ Object
Gets the completedDateTime property value. The date and time that the follow-up was finished.
46 47 48 |
# File 'lib/models/followup_flag.rb', line 46 def completed_date_time return @completed_date_time end |
#completed_date_time=(value) ⇒ Object
Sets the completedDateTime property value. The date and time that the follow-up was finished.
54 55 56 |
# File 'lib/models/followup_flag.rb', line 54 def completed_date_time=(value) @completed_date_time = value end |
#due_date_time ⇒ Object
Gets the dueDateTime property value. The date and time that the follow up is to be finished. Note: To set the due date, you must also specify the startDateTime; otherwise, you will get a 400 Bad Request response.
77 78 79 |
# File 'lib/models/followup_flag.rb', line 77 def due_date_time return @due_date_time end |
#due_date_time=(value) ⇒ Object
Sets the dueDateTime property value. The date and time that the follow up is to be finished. Note: To set the due date, you must also specify the startDateTime; otherwise, you will get a 400 Bad Request response.
85 86 87 |
# File 'lib/models/followup_flag.rb', line 85 def due_date_time=(value) @due_date_time = value end |
#flag_status ⇒ Object
Gets the flagStatus property value. The status for follow-up for an item. Possible values are notFlagged, complete, and flagged.
92 93 94 |
# File 'lib/models/followup_flag.rb', line 92 def flag_status return @flag_status end |
#flag_status=(value) ⇒ Object
Sets the flagStatus property value. The status for follow-up for an item. Possible values are notFlagged, complete, and flagged.
100 101 102 |
# File 'lib/models/followup_flag.rb', line 100 def flag_status=(value) @flag_status = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
107 108 109 110 111 112 113 114 115 |
# File 'lib/models/followup_flag.rb', line 107 def get_field_deserializers() return { "completedDateTime" => lambda {|n| @completed_date_time = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::DateTimeTimeZone.create_from_discriminator_value(pn) }) }, "dueDateTime" => lambda {|n| @due_date_time = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::DateTimeTimeZone.create_from_discriminator_value(pn) }) }, "flagStatus" => lambda {|n| @flag_status = n.get_enum_value(MicrosoftGraph::Models::FollowupFlagStatus) }, "@odata.type" => lambda {|n| @odata_type = n.get_string_value() }, "startDateTime" => lambda {|n| @start_date_time = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::DateTimeTimeZone.create_from_discriminator_value(pn) }) }, } end |
#odata_type ⇒ Object
Gets the @odata.type property value. The OdataType property
120 121 122 |
# File 'lib/models/followup_flag.rb', line 120 def odata_type return @odata_type end |
#odata_type=(value) ⇒ Object
Sets the @odata.type property value. The OdataType property
128 129 130 |
# File 'lib/models/followup_flag.rb', line 128 def odata_type=(value) @odata_type = value end |
#serialize(writer) ⇒ Object
Serializes information the current object
136 137 138 139 140 141 142 143 144 |
# File 'lib/models/followup_flag.rb', line 136 def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? writer.write_object_value("completedDateTime", @completed_date_time) writer.write_object_value("dueDateTime", @due_date_time) writer.write_enum_value("flagStatus", @flag_status) writer.write_string_value("@odata.type", @odata_type) writer.write_object_value("startDateTime", @start_date_time) writer.write_additional_data(@additional_data) end |
#start_date_time ⇒ Object
Gets the startDateTime property value. The date and time that the follow-up is to begin.
149 150 151 |
# File 'lib/models/followup_flag.rb', line 149 def start_date_time return @start_date_time end |
#start_date_time=(value) ⇒ Object
Sets the startDateTime property value. The date and time that the follow-up is to begin.
157 158 159 |
# File 'lib/models/followup_flag.rb', line 157 def start_date_time=(value) @start_date_time = value end |