Class: MicrosoftGraph::Models::ScheduleInformation

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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeObject

Instantiates a new scheduleInformation and sets the default values.



64
65
66
# File 'lib/models/schedule_information.rb', line 64

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

Raises:

  • (StandardError)


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

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



34
35
36
# File 'lib/models/schedule_information.rb', line 34

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.



42
43
44
# File 'lib/models/schedule_information.rb', line 42

def additional_data=(value)
    @additional_data = value
end

#availability_viewObject

Gets the availabilityView property value. Represents a merged view of availability of all the items in scheduleItems. The view consists of time slots. Availability during each time slot is indicated with: 0= free, 1= tentative, 2= busy, 3= out of office, 4= working elsewhere.



49
50
51
# File 'lib/models/schedule_information.rb', line 49

def availability_view
    return @availability_view
end

#availability_view=(value) ⇒ Object

Sets the availabilityView property value. Represents a merged view of availability of all the items in scheduleItems. The view consists of time slots. Availability during each time slot is indicated with: 0= free, 1= tentative, 2= busy, 3= out of office, 4= working elsewhere.



57
58
59
# File 'lib/models/schedule_information.rb', line 57

def availability_view=(value)
    @availability_view = value
end

#errorObject

Gets the error property value. Error information from attempting to get the availability of the user, distribution list, or resource.



80
81
82
# File 'lib/models/schedule_information.rb', line 80

def error
    return @error
end

#error=(value) ⇒ Object

Sets the error property value. Error information from attempting to get the availability of the user, distribution list, or resource.



88
89
90
# File 'lib/models/schedule_information.rb', line 88

def error=(value)
    @error = value
end

#get_field_deserializersObject

The deserialization information for the current model



95
96
97
98
99
100
101
102
103
104
# File 'lib/models/schedule_information.rb', line 95

def get_field_deserializers()
    return {
        "availabilityView" => lambda {|n| @availability_view = n.get_string_value() },
        "error" => lambda {|n| @error = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::FreeBusyError.create_from_discriminator_value(pn) }) },
        "@odata.type" => lambda {|n| @odata_type = n.get_string_value() },
        "scheduleId" => lambda {|n| @schedule_id = n.get_string_value() },
        "scheduleItems" => lambda {|n| @schedule_items = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::ScheduleItem.create_from_discriminator_value(pn) }) },
        "workingHours" => lambda {|n| @working_hours = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::WorkingHours.create_from_discriminator_value(pn) }) },
    }
end

#odata_typeObject

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



109
110
111
# File 'lib/models/schedule_information.rb', line 109

def odata_type
    return @odata_type
end

#odata_type=(value) ⇒ Object

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



117
118
119
# File 'lib/models/schedule_information.rb', line 117

def odata_type=(value)
    @odata_type = value
end

#schedule_idObject

Gets the scheduleId property value. An SMTP address of the user, distribution list, or resource, identifying an instance of scheduleInformation.



124
125
126
# File 'lib/models/schedule_information.rb', line 124

def schedule_id
    return @schedule_id
end

#schedule_id=(value) ⇒ Object

Sets the scheduleId property value. An SMTP address of the user, distribution list, or resource, identifying an instance of scheduleInformation.



132
133
134
# File 'lib/models/schedule_information.rb', line 132

def schedule_id=(value)
    @schedule_id = value
end

#schedule_itemsObject

Gets the scheduleItems property value. Contains the items that describe the availability of the user or resource.



139
140
141
# File 'lib/models/schedule_information.rb', line 139

def schedule_items
    return @schedule_items
end

#schedule_items=(value) ⇒ Object

Sets the scheduleItems property value. Contains the items that describe the availability of the user or resource.



147
148
149
# File 'lib/models/schedule_information.rb', line 147

def schedule_items=(value)
    @schedule_items = value
end

#serialize(writer) ⇒ Object

Serializes information the current object

Raises:

  • (StandardError)


155
156
157
158
159
160
161
162
163
164
# File 'lib/models/schedule_information.rb', line 155

def serialize(writer)
    raise StandardError, 'writer cannot be null' if writer.nil?
    writer.write_string_value("availabilityView", @availability_view)
    writer.write_object_value("error", @error)
    writer.write_string_value("@odata.type", @odata_type)
    writer.write_string_value("scheduleId", @schedule_id)
    writer.write_collection_of_object_values("scheduleItems", @schedule_items)
    writer.write_object_value("workingHours", @working_hours)
    writer.write_additional_data(@additional_data)
end

#working_hoursObject

Gets the workingHours property value. The days of the week and hours in a specific time zone that the user works. These are set as part of the user’s mailboxSettings.



169
170
171
# File 'lib/models/schedule_information.rb', line 169

def working_hours
    return @working_hours
end

#working_hours=(value) ⇒ Object

Sets the workingHours property value. The days of the week and hours in a specific time zone that the user works. These are set as part of the user’s mailboxSettings.



177
178
179
# File 'lib/models/schedule_information.rb', line 177

def working_hours=(value)
    @working_hours = value
end