Class: Google::Apis::SmartdevicemanagementV1::GoogleHomeEnterpriseSdmV1ParentRelation
- Inherits:
-
Object
- Object
- Google::Apis::SmartdevicemanagementV1::GoogleHomeEnterpriseSdmV1ParentRelation
- 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
-
#display_name ⇒ 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.
207 208 209 |
# File 'generated/google/apis/smartdevicemanagement_v1/classes.rb', line 207 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
198 199 200 |
# File 'generated/google/apis/smartdevicemanagement_v1/classes.rb', line 198 def display_name @display_name 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
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 |