Google Cloud IoT Core V1 Client - Class ListDeviceConfigVersionsRequest (1.5.12)

Reference documentation and code samples for the Google Cloud IoT Core V1 Client class ListDeviceConfigVersionsRequest.

Request for ListDeviceConfigVersions.

Generated from protobuf message google.cloud.iot.v1.ListDeviceConfigVersionsRequest

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ name string

Required. The name of the device. For example, projects/p0/locations/us-central1/registries/registry0/devices/device0 or projects/p0/locations/us-central1/registries/registry0/devices/{num_id}.

↳ num_versions int

The number of versions to list. Versions are listed in decreasing order of the version number. The maximum number of versions retained is 10. If this value is zero, it will return all the versions available.

getName

Required. The name of the device. For example, projects/p0/locations/us-central1/registries/registry0/devices/device0 or projects/p0/locations/us-central1/registries/registry0/devices/{num_id}.

Returns
TypeDescription
string

setName

Required. The name of the device. For example, projects/p0/locations/us-central1/registries/registry0/devices/device0 or projects/p0/locations/us-central1/registries/registry0/devices/{num_id}.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getNumVersions

The number of versions to list. Versions are listed in decreasing order of the version number. The maximum number of versions retained is 10. If this value is zero, it will return all the versions available.

Returns
TypeDescription
int

setNumVersions

The number of versions to list. Versions are listed in decreasing order of the version number. The maximum number of versions retained is 10. If this value is zero, it will return all the versions available.

Parameter
NameDescription
var int
Returns
TypeDescription
$this