Class: MicrosoftGraph::Models::ScheduleItem
- Inherits:
-
Object
- Object
- MicrosoftGraph::Models::ScheduleItem
- Includes:
- MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/schedule_item.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.
-
#end_escaped ⇒ Object
Gets the end property value.
-
#end_escaped=(value) ⇒ Object
Sets the end property value.
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#initialize ⇒ Object
constructor
Instantiates a new scheduleItem and sets the default values.
-
#is_private ⇒ Object
Gets the isPrivate property value.
-
#is_private=(value) ⇒ Object
Sets the isPrivate property value.
-
#location ⇒ Object
Gets the location property value.
-
#location=(value) ⇒ Object
Sets the location property value.
-
#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 ⇒ Object
Gets the start property value.
-
#start=(value) ⇒ Object
Sets the start property value.
-
#status ⇒ Object
Gets the status property value.
-
#status=(value) ⇒ Object
Sets the status property value.
-
#subject ⇒ Object
Gets the subject property value.
-
#subject=(value) ⇒ Object
Sets the subject property value.
Constructor Details
#initialize ⇒ Object
Instantiates a new scheduleItem and sets the default values.
52 53 54 |
# File 'lib/models/schedule_item.rb', line 52 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
60 61 62 63 |
# File 'lib/models/schedule_item.rb', line 60 def self.create_from_discriminator_value(parse_node) raise StandardError, 'parse_node cannot be null' if parse_node.nil? return ScheduleItem.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.
37 38 39 |
# File 'lib/models/schedule_item.rb', line 37 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.
45 46 47 |
# File 'lib/models/schedule_item.rb', line 45 def additional_data=(value) @additional_data = value end |
#end_escaped ⇒ Object
Gets the end property value. The date, time, and time zone that the corresponding event ends.
68 69 70 |
# File 'lib/models/schedule_item.rb', line 68 def end_escaped return @end_escaped end |
#end_escaped=(value) ⇒ Object
Sets the end property value. The date, time, and time zone that the corresponding event ends.
76 77 78 |
# File 'lib/models/schedule_item.rb', line 76 def end_escaped=(value) @end_escaped = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
83 84 85 86 87 88 89 90 91 92 93 |
# File 'lib/models/schedule_item.rb', line 83 def get_field_deserializers() return { "end" => lambda {|n| @end_escaped = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::DateTimeTimeZone.create_from_discriminator_value(pn) }) }, "isPrivate" => lambda {|n| @is_private = n.get_boolean_value() }, "location" => lambda {|n| @location = n.get_string_value() }, "@odata.type" => lambda {|n| @odata_type = n.get_string_value() }, "start" => lambda {|n| @start = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::DateTimeTimeZone.create_from_discriminator_value(pn) }) }, "status" => lambda {|n| @status = n.get_enum_value(MicrosoftGraph::Models::FreeBusyStatus) }, "subject" => lambda {|n| @subject = n.get_string_value() }, } end |
#is_private ⇒ Object
Gets the isPrivate property value. The sensitivity of the corresponding event. True if the event is marked private, false otherwise. Optional.
98 99 100 |
# File 'lib/models/schedule_item.rb', line 98 def is_private return @is_private end |
#is_private=(value) ⇒ Object
Sets the isPrivate property value. The sensitivity of the corresponding event. True if the event is marked private, false otherwise. Optional.
106 107 108 |
# File 'lib/models/schedule_item.rb', line 106 def is_private=(value) @is_private = value end |
#location ⇒ Object
Gets the location property value. The location where the corresponding event is held or attended from. Optional.
113 114 115 |
# File 'lib/models/schedule_item.rb', line 113 def location return @location end |
#location=(value) ⇒ Object
Sets the location property value. The location where the corresponding event is held or attended from. Optional.
121 122 123 |
# File 'lib/models/schedule_item.rb', line 121 def location=(value) @location = value end |
#odata_type ⇒ Object
Gets the @odata.type property value. The OdataType property
128 129 130 |
# File 'lib/models/schedule_item.rb', line 128 def odata_type return @odata_type end |
#odata_type=(value) ⇒ Object
Sets the @odata.type property value. The OdataType property
136 137 138 |
# File 'lib/models/schedule_item.rb', line 136 def odata_type=(value) @odata_type = value end |
#serialize(writer) ⇒ Object
Serializes information the current object
144 145 146 147 148 149 150 151 152 153 154 |
# File 'lib/models/schedule_item.rb', line 144 def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? writer.write_object_value("end", @end_escaped) writer.write_boolean_value("isPrivate", @is_private) writer.write_string_value("location", @location) writer.write_string_value("@odata.type", @odata_type) writer.write_object_value("start", @start) writer.write_enum_value("status", @status) writer.write_string_value("subject", @subject) writer.write_additional_data(@additional_data) end |
#start ⇒ Object
Gets the start property value. The date, time, and time zone that the corresponding event starts.
159 160 161 |
# File 'lib/models/schedule_item.rb', line 159 def start return @start end |
#start=(value) ⇒ Object
Sets the start property value. The date, time, and time zone that the corresponding event starts.
167 168 169 |
# File 'lib/models/schedule_item.rb', line 167 def start=(value) @start = value end |
#status ⇒ Object
Gets the status property value. The availability status of the user or resource during the corresponding event. The possible values are: free, tentative, busy, oof, workingElsewhere, unknown.
174 175 176 |
# File 'lib/models/schedule_item.rb', line 174 def status return @status end |
#status=(value) ⇒ Object
Sets the status property value. The availability status of the user or resource during the corresponding event. The possible values are: free, tentative, busy, oof, workingElsewhere, unknown.
182 183 184 |
# File 'lib/models/schedule_item.rb', line 182 def status=(value) @status = value end |
#subject ⇒ Object
Gets the subject property value. The corresponding event’s subject line. Optional.
189 190 191 |
# File 'lib/models/schedule_item.rb', line 189 def subject return @subject end |
#subject=(value) ⇒ Object
Sets the subject property value. The corresponding event’s subject line. Optional.
197 198 199 |
# File 'lib/models/schedule_item.rb', line 197 def subject=(value) @subject = value end |