Class: Google::Apis::SmartdevicemanagementV1::GoogleHomeEnterpriseSdmV1Room

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/smartdevicemanagement_v1/classes.rb,
lib/google/apis/smartdevicemanagement_v1/representations.rb,
lib/google/apis/smartdevicemanagement_v1/representations.rb

Overview

Room resource represents an instance of sub-space within a structure such as rooms in a hotel suite or rental apartment.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleHomeEnterpriseSdmV1Room

Returns a new instance of GoogleHomeEnterpriseSdmV1Room.



214
215
216
# File 'lib/google/apis/smartdevicemanagement_v1/classes.rb', line 214

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#nameString

Output only. The resource name of the room. For example: "enterprises/XYZ/ structures/ABC/rooms/123". Corresponds to the JSON property name

Returns:

  • (String)


207
208
209
# File 'lib/google/apis/smartdevicemanagement_v1/classes.rb', line 207

def name
  @name
end

#traitsHash<String,Object>

Room traits. Corresponds to the JSON property traits

Returns:

  • (Hash<String,Object>)


212
213
214
# File 'lib/google/apis/smartdevicemanagement_v1/classes.rb', line 212

def traits
  @traits
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



219
220
221
222
# File 'lib/google/apis/smartdevicemanagement_v1/classes.rb', line 219

def update!(**args)
  @name = args[:name] if args.key?(:name)
  @traits = args[:traits] if args.key?(:traits)
end