Class: Google::Apis::SmartdevicemanagementV1::GoogleHomeEnterpriseSdmV1Room
- Inherits:
-
Object
- Object
- Google::Apis::SmartdevicemanagementV1::GoogleHomeEnterpriseSdmV1Room
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/smartdevicemanagement_v1/classes.rb,
generated/google/apis/smartdevicemanagement_v1/representations.rb,
generated/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
-
#name ⇒ String
Output only.
-
#traits ⇒ Hash<String,Object>
Room traits.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleHomeEnterpriseSdmV1Room
constructor
A new instance of GoogleHomeEnterpriseSdmV1Room.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleHomeEnterpriseSdmV1Room
Returns a new instance of GoogleHomeEnterpriseSdmV1Room.
234 235 236 |
# File 'generated/google/apis/smartdevicemanagement_v1/classes.rb', line 234 def initialize(**args) update!(**args) end |
Instance Attribute Details
#name ⇒ String
Output only. The resource name of the room. For example: "enterprises/XYZ/
structures/ABC/rooms/123".
Corresponds to the JSON property name
227 228 229 |
# File 'generated/google/apis/smartdevicemanagement_v1/classes.rb', line 227 def name @name end |
#traits ⇒ Hash<String,Object>
Room traits.
Corresponds to the JSON property traits
232 233 234 |
# File 'generated/google/apis/smartdevicemanagement_v1/classes.rb', line 232 def traits @traits end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
239 240 241 242 |
# File 'generated/google/apis/smartdevicemanagement_v1/classes.rb', line 239 def update!(**args) @name = args[:name] if args.key?(:name) @traits = args[:traits] if args.key?(:traits) end |