Class: MicrosoftGraph::Models::RecurrenceRange
- Inherits:
-
Object
- Object
- MicrosoftGraph::Models::RecurrenceRange
- Includes:
- MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/recurrence_range.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_date ⇒ Object
Gets the endDate property value.
-
#end_date=(value) ⇒ Object
Sets the endDate property value.
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#initialize ⇒ Object
constructor
Instantiates a new recurrenceRange and sets the default values.
-
#number_of_occurrences ⇒ Object
Gets the numberOfOccurrences property value.
-
#number_of_occurrences=(value) ⇒ Object
Sets the numberOfOccurrences property value.
-
#odata_type ⇒ Object
Gets the @odata.type property value.
-
#odata_type=(value) ⇒ Object
Sets the @odata.type property value.
-
#recurrence_time_zone ⇒ Object
Gets the recurrenceTimeZone property value.
-
#recurrence_time_zone=(value) ⇒ Object
Sets the recurrenceTimeZone property value.
-
#serialize(writer) ⇒ Object
Serializes information the current object.
-
#start_date ⇒ Object
Gets the startDate property value.
-
#start_date=(value) ⇒ Object
Sets the startDate property value.
-
#type ⇒ Object
Gets the type property value.
-
#type=(value) ⇒ Object
Sets the type property value.
Constructor Details
#initialize ⇒ Object
Instantiates a new recurrenceRange and sets the default values.
50 51 52 |
# File 'lib/models/recurrence_range.rb', line 50 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
58 59 60 61 |
# File 'lib/models/recurrence_range.rb', line 58 def self.create_from_discriminator_value(parse_node) raise StandardError, 'parse_node cannot be null' if parse_node.nil? return RecurrenceRange.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.
35 36 37 |
# File 'lib/models/recurrence_range.rb', line 35 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.
43 44 45 |
# File 'lib/models/recurrence_range.rb', line 43 def additional_data=(value) @additional_data = value end |
#end_date ⇒ Object
Gets the endDate property value. The date to stop applying the recurrence pattern. Depending on the recurrence pattern of the event, the last occurrence of the meeting may not be this date. Required if type is endDate.
66 67 68 |
# File 'lib/models/recurrence_range.rb', line 66 def end_date return @end_date end |
#end_date=(value) ⇒ Object
Sets the endDate property value. The date to stop applying the recurrence pattern. Depending on the recurrence pattern of the event, the last occurrence of the meeting may not be this date. Required if type is endDate.
74 75 76 |
# File 'lib/models/recurrence_range.rb', line 74 def end_date=(value) @end_date = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
81 82 83 84 85 86 87 88 89 90 |
# File 'lib/models/recurrence_range.rb', line 81 def get_field_deserializers() return { "endDate" => lambda {|n| @end_date = n.get_date_value() }, "numberOfOccurrences" => lambda {|n| @number_of_occurrences = n.get_number_value() }, "@odata.type" => lambda {|n| @odata_type = n.get_string_value() }, "recurrenceTimeZone" => lambda {|n| @recurrence_time_zone = n.get_string_value() }, "startDate" => lambda {|n| @start_date = n.get_date_value() }, "type" => lambda {|n| @type = n.get_enum_value(MicrosoftGraph::Models::RecurrenceRangeType) }, } end |
#number_of_occurrences ⇒ Object
Gets the numberOfOccurrences property value. The number of times to repeat the event. Required and must be positive if type is numbered.
95 96 97 |
# File 'lib/models/recurrence_range.rb', line 95 def number_of_occurrences return @number_of_occurrences end |
#number_of_occurrences=(value) ⇒ Object
Sets the numberOfOccurrences property value. The number of times to repeat the event. Required and must be positive if type is numbered.
103 104 105 |
# File 'lib/models/recurrence_range.rb', line 103 def number_of_occurrences=(value) @number_of_occurrences = value end |
#odata_type ⇒ Object
Gets the @odata.type property value. The OdataType property
110 111 112 |
# File 'lib/models/recurrence_range.rb', line 110 def odata_type return @odata_type end |
#odata_type=(value) ⇒ Object
Sets the @odata.type property value. The OdataType property
118 119 120 |
# File 'lib/models/recurrence_range.rb', line 118 def odata_type=(value) @odata_type = value end |
#recurrence_time_zone ⇒ Object
Gets the recurrenceTimeZone property value. Time zone for the startDate and endDate properties. Optional. If not specified, the time zone of the event is used.
125 126 127 |
# File 'lib/models/recurrence_range.rb', line 125 def recurrence_time_zone return @recurrence_time_zone end |
#recurrence_time_zone=(value) ⇒ Object
Sets the recurrenceTimeZone property value. Time zone for the startDate and endDate properties. Optional. If not specified, the time zone of the event is used.
133 134 135 |
# File 'lib/models/recurrence_range.rb', line 133 def recurrence_time_zone=(value) @recurrence_time_zone = value end |
#serialize(writer) ⇒ Object
Serializes information the current object
141 142 143 144 145 146 147 148 149 150 |
# File 'lib/models/recurrence_range.rb', line 141 def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? writer.write_date_value("endDate", @end_date) writer.write_number_value("numberOfOccurrences", @number_of_occurrences) writer.write_string_value("@odata.type", @odata_type) writer.write_string_value("recurrenceTimeZone", @recurrence_time_zone) writer.write_date_value("startDate", @start_date) writer.write_enum_value("type", @type) writer.write_additional_data(@additional_data) end |
#start_date ⇒ Object
Gets the startDate property value. The date to start applying the recurrence pattern. The first occurrence of the meeting may be this date or later, depending on the recurrence pattern of the event. Must be the same value as the start property of the recurring event. Required.
155 156 157 |
# File 'lib/models/recurrence_range.rb', line 155 def start_date return @start_date end |
#start_date=(value) ⇒ Object
Sets the startDate property value. The date to start applying the recurrence pattern. The first occurrence of the meeting may be this date or later, depending on the recurrence pattern of the event. Must be the same value as the start property of the recurring event. Required.
163 164 165 |
# File 'lib/models/recurrence_range.rb', line 163 def start_date=(value) @start_date = value end |
#type ⇒ Object
Gets the type property value. The recurrence range. The possible values are: endDate, noEnd, numbered. Required.
170 171 172 |
# File 'lib/models/recurrence_range.rb', line 170 def type return @type end |
#type=(value) ⇒ Object
Sets the type property value. The recurrence range. The possible values are: endDate, noEnd, numbered. Required.
178 179 180 |
# File 'lib/models/recurrence_range.rb', line 178 def type=(value) @type = value end |