Class: MicrosoftGraph::Models::RecurrenceRange

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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeObject

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

Parameters:

  • parse_node

    The parse node to use to read the discriminator value and create the object

Returns:

  • a recurrence_range

Raises:

  • (StandardError)


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_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



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.

Parameters:

  • value

    Value to set for the additionalData property.

Returns:

  • a void



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

def additional_data=(value)
    @additional_data = value
end

#end_dateObject

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.

Returns:

  • a date



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.

Parameters:

  • value

    Value to set for the endDate property.

Returns:

  • a void



74
75
76
# File 'lib/models/recurrence_range.rb', line 74

def end_date=(value)
    @end_date = value
end

#get_field_deserializersObject

The deserialization information for the current model

Returns:

  • a i_dictionary



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_occurrencesObject

Gets the numberOfOccurrences property value. The number of times to repeat the event. Required and must be positive if type is numbered.

Returns:

  • a integer



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.

Parameters:

  • value

    Value to set for the numberOfOccurrences property.

Returns:

  • a void



103
104
105
# File 'lib/models/recurrence_range.rb', line 103

def number_of_occurrences=(value)
    @number_of_occurrences = value
end

#odata_typeObject

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

Returns:

  • a string



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

Parameters:

  • value

    Value to set for the @odata.type property.

Returns:

  • a void



118
119
120
# File 'lib/models/recurrence_range.rb', line 118

def odata_type=(value)
    @odata_type = value
end

#recurrence_time_zoneObject

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.

Returns:

  • a string



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.

Parameters:

  • value

    Value to set for the recurrenceTimeZone property.

Returns:

  • a void



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

Parameters:

  • writer

    Serialization writer to use to serialize this model

Returns:

  • a void

Raises:

  • (StandardError)


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_dateObject

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.

Returns:

  • a date



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.

Parameters:

  • value

    Value to set for the startDate property.

Returns:

  • a void



163
164
165
# File 'lib/models/recurrence_range.rb', line 163

def start_date=(value)
    @start_date = value
end

#typeObject

Gets the type property value. The recurrence range. The possible values are: endDate, noEnd, numbered. Required.

Returns:

  • a recurrence_range_type



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.

Parameters:

  • value

    Value to set for the type property.

Returns:

  • a void



178
179
180
# File 'lib/models/recurrence_range.rb', line 178

def type=(value)
    @type = value
end