Class: Google::Apis::SmartdevicemanagementV1::GoogleHomeEnterpriseSdmV1ParentRelation

Inherits:
Object
  • Object
show all
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

Represents device relationships, for instance, structure/room to which the device is assigned to. For now this is only filled in the enterprise flow.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleHomeEnterpriseSdmV1ParentRelation

Returns a new instance of GoogleHomeEnterpriseSdmV1ParentRelation.



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

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

Instance Attribute Details

#display_nameString

Output only. The custom name of the relation -- e.g., structure/room where the device is assigned to. Corresponds to the JSON property displayName

Returns:

  • (String)


198
199
200
# File 'generated/google/apis/smartdevicemanagement_v1/classes.rb', line 198

def display_name
  @display_name
end

#parentString

Output only. The name of the relation -- e.g., structure/room where the device is assigned to. For example: "enterprises/XYZ/structures/ABC" or "enterprises/ XYZ/structures/ABC/rooms/123" Corresponds to the JSON property parent

Returns:

  • (String)


205
206
207
# File 'generated/google/apis/smartdevicemanagement_v1/classes.rb', line 205

def parent
  @parent
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



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

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