Class: Google::Apis::SmartdevicemanagementV1::GoogleHomeEnterpriseSdmV1ParentRelation
- Inherits:
-
Object
- Object
- Google::Apis::SmartdevicemanagementV1::GoogleHomeEnterpriseSdmV1ParentRelation
- 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
-
#display_name ⇒ String
Output only.
-
#ghp_parent ⇒ String
Output only.
-
#parent ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleHomeEnterpriseSdmV1ParentRelation
constructor
A new instance of GoogleHomeEnterpriseSdmV1ParentRelation.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleHomeEnterpriseSdmV1ParentRelation
Returns a new instance of GoogleHomeEnterpriseSdmV1ParentRelation.
200 201 202 |
# File 'lib/google/apis/smartdevicemanagement_v1/classes.rb', line 200 def initialize(**args) update!(**args) end |
Instance Attribute Details
#display_name ⇒ String
Output only. The custom name of the relation -- e.g., structure/room where the
device is assigned to.
Corresponds to the JSON property displayName
184 185 186 |
# File 'lib/google/apis/smartdevicemanagement_v1/classes.rb', line 184 def display_name @display_name end |
#ghp_parent ⇒ String
Output only. The Home APIs name of the relation -- e.g., structure/room where
the device is assigned to. For example: "homegraph.googleapis.com/Structure/
ABC" or "homegraph.googleapis.com/Room/ABC"
Corresponds to the JSON property ghpParent
191 192 193 |
# File 'lib/google/apis/smartdevicemanagement_v1/classes.rb', line 191 def ghp_parent @ghp_parent end |
#parent ⇒ String
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
198 199 200 |
# File 'lib/google/apis/smartdevicemanagement_v1/classes.rb', line 198 def parent @parent end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
205 206 207 208 209 |
# File 'lib/google/apis/smartdevicemanagement_v1/classes.rb', line 205 def update!(**args) @display_name = args[:display_name] if args.key?(:display_name) @ghp_parent = args[:ghp_parent] if args.key?(:ghp_parent) @parent = args[:parent] if args.key?(:parent) end |