Class: Google::Apis::SmartdevicemanagementV1::GoogleHomeEnterpriseSdmV1Structure
- Inherits:
-
Object
- Object
- Google::Apis::SmartdevicemanagementV1::GoogleHomeEnterpriseSdmV1Structure
- 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
Structure resource represents an instance of enterprise managed home or hotel room.
Instance Attribute Summary collapse
-
#name ⇒ String
Output only.
-
#traits ⇒ Hash<String,Object>
Structure traits.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleHomeEnterpriseSdmV1Structure
constructor
A new instance of GoogleHomeEnterpriseSdmV1Structure.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleHomeEnterpriseSdmV1Structure
Returns a new instance of GoogleHomeEnterpriseSdmV1Structure.
261 262 263 |
# File 'generated/google/apis/smartdevicemanagement_v1/classes.rb', line 261 def initialize(**args) update!(**args) end |
Instance Attribute Details
#name ⇒ String
Output only. The resource name of the structure. For example: "enterprises/XYZ/
structures/ABC".
Corresponds to the JSON property name
254 255 256 |
# File 'generated/google/apis/smartdevicemanagement_v1/classes.rb', line 254 def name @name end |
#traits ⇒ Hash<String,Object>
Structure traits.
Corresponds to the JSON property traits
259 260 261 |
# File 'generated/google/apis/smartdevicemanagement_v1/classes.rb', line 259 def traits @traits end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
266 267 268 269 |
# File 'generated/google/apis/smartdevicemanagement_v1/classes.rb', line 266 def update!(**args) @name = args[:name] if args.key?(:name) @traits = args[:traits] if args.key?(:traits) end |