Class: Google::Apis::HomegraphV1::QueryRequestPayload

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/homegraph_v1/classes.rb,
lib/google/apis/homegraph_v1/representations.rb,
lib/google/apis/homegraph_v1/representations.rb

Overview

Payload containing device IDs.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ QueryRequestPayload

Returns a new instance of QueryRequestPayload.



479
480
481
# File 'lib/google/apis/homegraph_v1/classes.rb', line 479

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

Instance Attribute Details

#devicesArray<Google::Apis::HomegraphV1::AgentDeviceId>

Third-party device IDs for which to get the device states. Corresponds to the JSON property devices



477
478
479
# File 'lib/google/apis/homegraph_v1/classes.rb', line 477

def devices
  @devices
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



484
485
486
# File 'lib/google/apis/homegraph_v1/classes.rb', line 484

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