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

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

Represents device relationships, for instance, structure/room to which the device is assigned to.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleHomeEnterpriseSdmV1ParentRelation

Returns a new instance of GoogleHomeEnterpriseSdmV1ParentRelation.



187
188
189
# File 'lib/google/apis/smartdevicemanagement_v1/classes.rb', line 187

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)


178
179
180
# File 'lib/google/apis/smartdevicemanagement_v1/classes.rb', line 178

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)


185
186
187
# File 'lib/google/apis/smartdevicemanagement_v1/classes.rb', line 185

def parent
  @parent
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



192
193
194
195
# File 'lib/google/apis/smartdevicemanagement_v1/classes.rb', line 192

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