# Cloud IoT V1 API - Class Google::Cloud::Iot::V1::ListDevicesResponse (v0.9.2)

<button class="button button-with-icon cloud-select-dropdown__button " aria-haspopup="true">Version latest</button>

- [0.9.2 (latest)](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-iot-v1/latest/Google-Cloud-Iot-V1-ListDevicesResponse)
- [0.9.1](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-iot-v1/0.9.1/Google-Cloud-Iot-V1-ListDevicesResponse)
- [0.8.0](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-iot-v1/0.8.0/Google-Cloud-Iot-V1-ListDevicesResponse)
- [0.7.1](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-iot-v1/0.7.1/Google-Cloud-Iot-V1-ListDevicesResponse)
- [0.6.0](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-iot-v1/0.6.0/Google-Cloud-Iot-V1-ListDevicesResponse)
- [0.5.0](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-iot-v1/0.5.0/Google-Cloud-Iot-V1-ListDevicesResponse)
- [0.4.0](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-iot-v1/0.4.0/Google-Cloud-Iot-V1-ListDevicesResponse)
- [0.3.5](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-iot-v1/0.3.5/Google-Cloud-Iot-V1-ListDevicesResponse)
Reference documentation and code samples for the Cloud IoT V1 API class Google::Cloud::Iot::V1::ListDevicesResponse.

Response for `ListDevices`.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #devices

    def devices() -> ::Array<::Google::Cloud::Iot::V1::Device>

**Returns**

- (::Array\<[::Google::Cloud::Iot::V1::Device](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-iot-v1/latest/Google-Cloud-Iot-V1-Device)\>) --- The devices that match the request.

### #devices=

    def devices=(value) -> ::Array<::Google::Cloud::Iot::V1::Device>

**Parameter**

- **value** (::Array\<[::Google::Cloud::Iot::V1::Device](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-iot-v1/latest/Google-Cloud-Iot-V1-Device)\>) --- The devices that match the request.
**Returns**

- (::Array\<[::Google::Cloud::Iot::V1::Device](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-iot-v1/latest/Google-Cloud-Iot-V1-Device)\>) --- The devices that match the request.

### #next_page_token

    def next_page_token() -> ::String

**Returns**

- (::String) --- If not empty, indicates that there may be more devices that match the request; this value should be passed in a new `ListDevicesRequest`.

### #next_page_token=

    def next_page_token=(value) -> ::String

**Parameter**

- **value** (::String) --- If not empty, indicates that there may be more devices that match the request; this value should be passed in a new `ListDevicesRequest`.
**Returns**

- (::String) --- If not empty, indicates that there may be more devices that match the request; this value should be passed in a new `ListDevicesRequest`.