Class: Google::Apis::CloudiotV1::ListDevicesResponse

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
generated/google/apis/cloudiot_v1/classes.rb,
generated/google/apis/cloudiot_v1/representations.rb,
generated/google/apis/cloudiot_v1/representations.rb

Overview

Response for ListDevices.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ ListDevicesResponse

Returns a new instance of ListDevicesResponse



581
582
583
# File 'generated/google/apis/cloudiot_v1/classes.rb', line 581

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

Instance Attribute Details

#devicesArray<Google::Apis::CloudiotV1::Device>

The devices that match the request. Corresponds to the JSON property devices



573
574
575
# File 'generated/google/apis/cloudiot_v1/classes.rb', line 573

def devices
  @devices
end

#next_page_tokenString

If not empty, indicates that there may be more devices that match the request; this value should be passed in a new ListDevicesRequest. Corresponds to the JSON property nextPageToken

Returns:

  • (String)


579
580
581
# File 'generated/google/apis/cloudiot_v1/classes.rb', line 579

def next_page_token
  @next_page_token
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



586
587
588
589
# File 'generated/google/apis/cloudiot_v1/classes.rb', line 586

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