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.



318
319
320
# File 'lib/google/apis/homegraph_v1/classes.rb', line 318

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



316
317
318
# File 'lib/google/apis/homegraph_v1/classes.rb', line 316

def devices
  @devices
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



323
324
325
# File 'lib/google/apis/homegraph_v1/classes.rb', line 323

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