Class: MicrosoftGraph::Models::Room

Inherits:
Place show all
Includes:
MicrosoftKiotaAbstractions::Parsable
Defined in:
lib/models/room.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Place

#address, #address=, #display_name, #display_name=, #geo_coordinates, #geo_coordinates=, #phone, #phone=

Methods inherited from Entity

#additional_data, #additional_data=, #id, #id=, #odata_type, #odata_type=

Constructor Details

#initializeObject

Instantiates a new room and sets the default values.



112
113
114
115
# File 'lib/models/room.rb', line 112

def initialize()
    super
    @odata_type = "#microsoft.graph.room"
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 room

Raises:

  • (StandardError)


121
122
123
124
# File 'lib/models/room.rb', line 121

def self.create_from_discriminator_value(parse_node)
    raise StandardError, 'parse_node cannot be null' if parse_node.nil?
    return Room.new
end

Instance Method Details

#audio_device_nameObject

Gets the audioDeviceName property value. Specifies the name of the audio device in the room.

Returns:

  • a string



52
53
54
# File 'lib/models/room.rb', line 52

def audio_device_name
    return @audio_device_name
end

#audio_device_name=(value) ⇒ Object

Sets the audioDeviceName property value. Specifies the name of the audio device in the room.

Parameters:

  • value

    Value to set for the audioDeviceName property.

Returns:

  • a void



60
61
62
# File 'lib/models/room.rb', line 60

def audio_device_name=(value)
    @audio_device_name = value
end

#booking_typeObject

Gets the bookingType property value. Type of room. Possible values are standard, and reserved.

Returns:

  • a booking_type



67
68
69
# File 'lib/models/room.rb', line 67

def booking_type
    return @booking_type
end

#booking_type=(value) ⇒ Object

Sets the bookingType property value. Type of room. Possible values are standard, and reserved.

Parameters:

  • value

    Value to set for the bookingType property.

Returns:

  • a void



75
76
77
# File 'lib/models/room.rb', line 75

def booking_type=(value)
    @booking_type = value
end

#buildingObject

Gets the building property value. Specifies the building name or building number that the room is in.

Returns:

  • a string



82
83
84
# File 'lib/models/room.rb', line 82

def building
    return @building
end

#building=(value) ⇒ Object

Sets the building property value. Specifies the building name or building number that the room is in.

Parameters:

  • value

    Value to set for the building property.

Returns:

  • a void



90
91
92
# File 'lib/models/room.rb', line 90

def building=(value)
    @building = value
end

#capacityObject

Gets the capacity property value. Specifies the capacity of the room.

Returns:

  • a integer



97
98
99
# File 'lib/models/room.rb', line 97

def capacity
    return @capacity
end

#capacity=(value) ⇒ Object

Sets the capacity property value. Specifies the capacity of the room.

Parameters:

  • value

    Value to set for the capacity property.

Returns:

  • a void



105
106
107
# File 'lib/models/room.rb', line 105

def capacity=(value)
    @capacity = value
end

#display_device_nameObject

Gets the displayDeviceName property value. Specifies the name of the display device in the room.

Returns:

  • a string



129
130
131
# File 'lib/models/room.rb', line 129

def display_device_name
    return @display_device_name
end

#display_device_name=(value) ⇒ Object

Sets the displayDeviceName property value. Specifies the name of the display device in the room.

Parameters:

  • value

    Value to set for the displayDeviceName property.

Returns:

  • a void



137
138
139
# File 'lib/models/room.rb', line 137

def display_device_name=(value)
    @display_device_name = value
end

#email_addressObject

Gets the emailAddress property value. Email address of the room.

Returns:

  • a string



144
145
146
# File 'lib/models/room.rb', line 144

def email_address
    return @email_address
end

#email_address=(value) ⇒ Object

Sets the emailAddress property value. Email address of the room.

Parameters:

  • value

    Value to set for the emailAddress property.

Returns:

  • a void



152
153
154
# File 'lib/models/room.rb', line 152

def email_address=(value)
    @email_address = value
end

#floor_labelObject

Gets the floorLabel property value. Specifies a descriptive label for the floor, for example, P.

Returns:

  • a string



159
160
161
# File 'lib/models/room.rb', line 159

def floor_label
    return @floor_label
end

#floor_label=(value) ⇒ Object

Sets the floorLabel property value. Specifies a descriptive label for the floor, for example, P.

Parameters:

  • value

    Value to set for the floorLabel property.

Returns:

  • a void



167
168
169
# File 'lib/models/room.rb', line 167

def floor_label=(value)
    @floor_label = value
end

#floor_numberObject

Gets the floorNumber property value. Specifies the floor number that the room is on.

Returns:

  • a integer



174
175
176
# File 'lib/models/room.rb', line 174

def floor_number
    return @floor_number
end

#floor_number=(value) ⇒ Object

Sets the floorNumber property value. Specifies the floor number that the room is on.

Parameters:

  • value

    Value to set for the floorNumber property.

Returns:

  • a void



182
183
184
# File 'lib/models/room.rb', line 182

def floor_number=(value)
    @floor_number = value
end

#get_field_deserializersObject

The deserialization information for the current model

Returns:

  • a i_dictionary



189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
# File 'lib/models/room.rb', line 189

def get_field_deserializers()
    return super.merge({
        "audioDeviceName" => lambda {|n| @audio_device_name = n.get_string_value() },
        "bookingType" => lambda {|n| @booking_type = n.get_enum_value(MicrosoftGraph::Models::BookingType) },
        "building" => lambda {|n| @building = n.get_string_value() },
        "capacity" => lambda {|n| @capacity = n.get_number_value() },
        "displayDeviceName" => lambda {|n| @display_device_name = n.get_string_value() },
        "emailAddress" => lambda {|n| @email_address = n.get_string_value() },
        "floorLabel" => lambda {|n| @floor_label = n.get_string_value() },
        "floorNumber" => lambda {|n| @floor_number = n.get_number_value() },
        "isWheelChairAccessible" => lambda {|n| @is_wheel_chair_accessible = n.get_boolean_value() },
        "label" => lambda {|n| @label = n.get_string_value() },
        "nickname" => lambda {|n| @nickname = n.get_string_value() },
        "tags" => lambda {|n| @tags = n.get_collection_of_primitive_values(String) },
        "videoDeviceName" => lambda {|n| @video_device_name = n.get_string_value() },
    })
end

#is_wheel_chair_accessibleObject

Gets the isWheelChairAccessible property value. Specifies whether the room is wheelchair accessible.

Returns:

  • a boolean



210
211
212
# File 'lib/models/room.rb', line 210

def is_wheel_chair_accessible
    return @is_wheel_chair_accessible
end

#is_wheel_chair_accessible=(value) ⇒ Object

Sets the isWheelChairAccessible property value. Specifies whether the room is wheelchair accessible.

Parameters:

  • value

    Value to set for the isWheelChairAccessible property.

Returns:

  • a void



218
219
220
# File 'lib/models/room.rb', line 218

def is_wheel_chair_accessible=(value)
    @is_wheel_chair_accessible = value
end

#labelObject

Gets the label property value. Specifies a descriptive label for the room, for example, a number or name.

Returns:

  • a string



225
226
227
# File 'lib/models/room.rb', line 225

def label
    return @label
end

#label=(value) ⇒ Object

Sets the label property value. Specifies a descriptive label for the room, for example, a number or name.

Parameters:

  • value

    Value to set for the label property.

Returns:

  • a void



233
234
235
# File 'lib/models/room.rb', line 233

def label=(value)
    @label = value
end

#nicknameObject

Gets the nickname property value. Specifies a nickname for the room, for example, ‘conf room’.

Returns:

  • a string



240
241
242
# File 'lib/models/room.rb', line 240

def nickname
    return @nickname
end

#nickname=(value) ⇒ Object

Sets the nickname property value. Specifies a nickname for the room, for example, ‘conf room’.

Parameters:

  • value

    Value to set for the nickname property.

Returns:

  • a void



248
249
250
# File 'lib/models/room.rb', line 248

def nickname=(value)
    @nickname = 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)


256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
# File 'lib/models/room.rb', line 256

def serialize(writer)
    raise StandardError, 'writer cannot be null' if writer.nil?
    super
    writer.write_string_value("audioDeviceName", @audio_device_name)
    writer.write_enum_value("bookingType", @booking_type)
    writer.write_string_value("building", @building)
    writer.write_number_value("capacity", @capacity)
    writer.write_string_value("displayDeviceName", @display_device_name)
    writer.write_string_value("emailAddress", @email_address)
    writer.write_string_value("floorLabel", @floor_label)
    writer.write_number_value("floorNumber", @floor_number)
    writer.write_boolean_value("isWheelChairAccessible", @is_wheel_chair_accessible)
    writer.write_string_value("label", @label)
    writer.write_string_value("nickname", @nickname)
    writer.write_collection_of_primitive_values("tags", @tags)
    writer.write_string_value("videoDeviceName", @video_device_name)
end

#tagsObject

Gets the tags property value. Specifies additional features of the room, for example, details like the type of view or furniture type.

Returns:

  • a string



277
278
279
# File 'lib/models/room.rb', line 277

def tags
    return @tags
end

#tags=(value) ⇒ Object

Sets the tags property value. Specifies additional features of the room, for example, details like the type of view or furniture type.

Parameters:

  • value

    Value to set for the tags property.

Returns:

  • a void



285
286
287
# File 'lib/models/room.rb', line 285

def tags=(value)
    @tags = value
end

#video_device_nameObject

Gets the videoDeviceName property value. Specifies the name of the video device in the room.

Returns:

  • a string



292
293
294
# File 'lib/models/room.rb', line 292

def video_device_name
    return @video_device_name
end

#video_device_name=(value) ⇒ Object

Sets the videoDeviceName property value. Specifies the name of the video device in the room.

Parameters:

  • value

    Value to set for the videoDeviceName property.

Returns:

  • a void



300
301
302
# File 'lib/models/room.rb', line 300

def video_device_name=(value)
    @video_device_name = value
end