Class: Google::Apis::SmartdevicemanagementV1::GoogleHomeEnterpriseSdmV1Structure

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

Structure resource represents an instance of enterprise managed home or hotel room.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleHomeEnterpriseSdmV1Structure

Returns a new instance of GoogleHomeEnterpriseSdmV1Structure.



241
242
243
# File 'lib/google/apis/smartdevicemanagement_v1/classes.rb', line 241

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

Instance Attribute Details

#nameString

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

Returns:

  • (String)


234
235
236
# File 'lib/google/apis/smartdevicemanagement_v1/classes.rb', line 234

def name
  @name
end

#traitsHash<String,Object>

Structure traits. Corresponds to the JSON property traits

Returns:

  • (Hash<String,Object>)


239
240
241
# File 'lib/google/apis/smartdevicemanagement_v1/classes.rb', line 239

def traits
  @traits
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



246
247
248
249
# File 'lib/google/apis/smartdevicemanagement_v1/classes.rb', line 246

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