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.
-
#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.
187 188 189 |
# File 'lib/google/apis/smartdevicemanagement_v1/classes.rb', line 187 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
178 179 180 |
# File 'lib/google/apis/smartdevicemanagement_v1/classes.rb', line 178 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
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 |