Documentation

Google_Service_CloudIot_Device extends Google_Collection
in package

Extension to the regular Google_Model that automatically exposes the items array for iteration, so you can just iterate over the object rather than a reference inside.

Table of Contents

NULL_VALUE  = "{}gapi-php-null"
If you need to specify a NULL JSON value, use Google_Model::NULL_VALUE instead - it will be replaced when converting to JSON with a real null.
$blocked  : mixed
$id  : mixed
$lastConfigAckTime  : mixed
$lastConfigSendTime  : mixed
$lastErrorTime  : mixed
$lastEventTime  : mixed
$lastHeartbeatTime  : mixed
$lastStateTime  : mixed
$logLevel  : mixed
$metadata  : mixed
$name  : mixed
$numId  : mixed
$collection_key  : mixed
$configDataType  : mixed
$configType  : mixed
$credentialsDataType  : mixed
$credentialsType  : mixed
$gatewayConfigDataType  : mixed
$gatewayConfigType  : mixed
$internal_gapi_mappings  : mixed
$lastErrorStatusDataType  : mixed
$lastErrorStatusType  : mixed
$modelData  : mixed
$processed  : mixed
$stateDataType  : mixed
$stateType  : mixed
__construct()  : mixed
Polymorphic - accepts a variable number of arguments dependent on the type of the model subclass.
__get()  : mixed
Getter that handles passthrough access to the data array, and lazy object creation.
__isset()  : mixed
__unset()  : mixed
assertIsArray()  : mixed
Verify if $obj is an array.
count()  : mixed
current()  : mixed
getBlocked()  : mixed
getConfig()  : Google_Service_CloudIot_DeviceConfig
getCredentials()  : Google_Service_CloudIot_DeviceCredential
getGatewayConfig()  : Google_Service_CloudIot_GatewayConfig
getId()  : mixed
getLastConfigAckTime()  : mixed
getLastConfigSendTime()  : mixed
getLastErrorStatus()  : Google_Service_CloudIot_Status
getLastErrorTime()  : mixed
getLastEventTime()  : mixed
getLastHeartbeatTime()  : mixed
getLastStateTime()  : mixed
getLogLevel()  : mixed
getMetadata()  : mixed
getName()  : mixed
getNumId()  : mixed
getState()  : Google_Service_CloudIot_DeviceState
key()  : mixed
next()  : mixed
offsetExists()  : mixed
offsetGet()  : mixed
offsetSet()  : mixed
offsetUnset()  : mixed
rewind()  : mixed
setBlocked()  : mixed
setConfig()  : mixed
setCredentials()  : mixed
setGatewayConfig()  : mixed
setId()  : mixed
setLastConfigAckTime()  : mixed
setLastConfigSendTime()  : mixed
setLastErrorStatus()  : mixed
setLastErrorTime()  : mixed
setLastEventTime()  : mixed
setLastHeartbeatTime()  : mixed
setLastStateTime()  : mixed
setLogLevel()  : mixed
setMetadata()  : mixed
setName()  : mixed
setNumId()  : mixed
setState()  : mixed
toSimpleObject()  : mixed
Create a simplified object suitable for straightforward conversion to JSON. This is relatively expensive due to the usage of reflection, but shouldn't be called a whole lot, and is the most straightforward way to filter.
valid()  : mixed
dataType()  : mixed
gapiInit()  : mixed
Blank initialiser to be used in subclasses to do post-construction initialisation - this avoids the need for subclasses to have to implement the variadics handling in their constructors.
isAssociativeArray()  : bool
Returns true only if the array is associative.
keyType()  : mixed
mapTypes()  : void
Initialize this object's properties from an array.
camelCase()  : string
Convert a string to camelCase
coerceType()  : mixed
getMappedName()  : mixed
If there is an internal name mapping, use that.
getSimpleValue()  : mixed
Handle different types of values, primarily other objects and map and array data types.
nullPlaceholderCheck()  : mixed
Check whether the value is the null placeholder and return true null.

Constants

NULL_VALUE

If you need to specify a NULL JSON value, use Google_Model::NULL_VALUE instead - it will be replaced when converting to JSON with a real null.

public mixed NULL_VALUE = "{}gapi-php-null"

Properties

$lastConfigAckTime

public mixed $lastConfigAckTime

$lastConfigSendTime

public mixed $lastConfigSendTime

$lastErrorTime

public mixed $lastErrorTime

$lastEventTime

public mixed $lastEventTime

$lastHeartbeatTime

public mixed $lastHeartbeatTime

$lastStateTime

public mixed $lastStateTime

$logLevel

public mixed $logLevel

$metadata

public mixed $metadata

$collection_key

protected mixed $collection_key = 'credentials'

$configDataType

protected mixed $configDataType = ''

$configType

protected mixed $configType = 'Google_Service_CloudIot_DeviceConfig'

$credentialsDataType

protected mixed $credentialsDataType = 'array'

$credentialsType

protected mixed $credentialsType = 'Google_Service_CloudIot_DeviceCredential'

$gatewayConfigDataType

protected mixed $gatewayConfigDataType = ''

$gatewayConfigType

protected mixed $gatewayConfigType = 'Google_Service_CloudIot_GatewayConfig'

$internal_gapi_mappings

protected mixed $internal_gapi_mappings = array()

$lastErrorStatusDataType

protected mixed $lastErrorStatusDataType = ''

$lastErrorStatusType

protected mixed $lastErrorStatusType = 'Google_Service_CloudIot_Status'

$modelData

protected mixed $modelData = array()

$processed

protected mixed $processed = array()

$stateDataType

protected mixed $stateDataType = ''

$stateType

protected mixed $stateType = 'Google_Service_CloudIot_DeviceState'

Methods

__construct()

Polymorphic - accepts a variable number of arguments dependent on the type of the model subclass.

public final __construct() : mixed
Return values
mixed

__get()

Getter that handles passthrough access to the data array, and lazy object creation.

public __get(string $key) : mixed
Parameters
$key : string

Property name.

Return values
mixed

The value if any, or null.

__isset()

public __isset(mixed $key) : mixed
Parameters
$key : mixed
Return values
mixed

__unset()

public __unset(mixed $key) : mixed
Parameters
$key : mixed
Return values
mixed

assertIsArray()

Verify if $obj is an array.

public assertIsArray(array<string|int, mixed> $obj, string $method) : mixed
Parameters
$obj : array<string|int, mixed>

Items that should be validated.

$method : string

Method expecting an array as an argument.

Tags
throws
Google_Exception

Thrown if $obj isn't an array.

Return values
mixed

count()

public count() : mixed
Return values
mixed

current()

public current() : mixed
Return values
mixed

getBlocked()

public getBlocked() : mixed
Return values
mixed

getId()

public getId() : mixed
Return values
mixed

getLastConfigAckTime()

public getLastConfigAckTime() : mixed
Return values
mixed

getLastConfigSendTime()

public getLastConfigSendTime() : mixed
Return values
mixed

getLastErrorTime()

public getLastErrorTime() : mixed
Return values
mixed

getLastEventTime()

public getLastEventTime() : mixed
Return values
mixed

getLastHeartbeatTime()

public getLastHeartbeatTime() : mixed
Return values
mixed

getLastStateTime()

public getLastStateTime() : mixed
Return values
mixed

getLogLevel()

public getLogLevel() : mixed
Return values
mixed

getMetadata()

public getMetadata() : mixed
Return values
mixed

getName()

public getName() : mixed
Return values
mixed

getNumId()

public getNumId() : mixed
Return values
mixed

key()

public key() : mixed
Return values
mixed

next()

public next() : mixed
Return values
mixed

offsetExists()

public offsetExists(mixed $offset) : mixed
Parameters
$offset : mixed
Return values
mixed

offsetGet()

public offsetGet(mixed $offset) : mixed
Parameters
$offset : mixed
Return values
mixed

offsetSet()

public offsetSet(mixed $offset, mixed $value) : mixed
Parameters
$offset : mixed
$value : mixed
Return values
mixed

offsetUnset()

public offsetUnset(mixed $offset) : mixed
Parameters
$offset : mixed
Return values
mixed

rewind()

public rewind() : mixed
Return values
mixed

setBlocked()

public setBlocked(mixed $blocked) : mixed
Parameters
$blocked : mixed
Return values
mixed

setCredentials()

public setCredentials(mixed $credentials) : mixed
Parameters
$credentials : mixed
Return values
mixed

setId()

public setId(mixed $id) : mixed
Parameters
$id : mixed
Return values
mixed

setLastConfigAckTime()

public setLastConfigAckTime(mixed $lastConfigAckTime) : mixed
Parameters
$lastConfigAckTime : mixed
Return values
mixed

setLastConfigSendTime()

public setLastConfigSendTime(mixed $lastConfigSendTime) : mixed
Parameters
$lastConfigSendTime : mixed
Return values
mixed

setLastErrorTime()

public setLastErrorTime(mixed $lastErrorTime) : mixed
Parameters
$lastErrorTime : mixed
Return values
mixed

setLastEventTime()

public setLastEventTime(mixed $lastEventTime) : mixed
Parameters
$lastEventTime : mixed
Return values
mixed

setLastHeartbeatTime()

public setLastHeartbeatTime(mixed $lastHeartbeatTime) : mixed
Parameters
$lastHeartbeatTime : mixed
Return values
mixed

setLastStateTime()

public setLastStateTime(mixed $lastStateTime) : mixed
Parameters
$lastStateTime : mixed
Return values
mixed

setLogLevel()

public setLogLevel(mixed $logLevel) : mixed
Parameters
$logLevel : mixed
Return values
mixed

setMetadata()

public setMetadata(mixed $metadata) : mixed
Parameters
$metadata : mixed
Return values
mixed

setName()

public setName(mixed $name) : mixed
Parameters
$name : mixed
Return values
mixed

setNumId()

public setNumId(mixed $numId) : mixed
Parameters
$numId : mixed
Return values
mixed

toSimpleObject()

Create a simplified object suitable for straightforward conversion to JSON. This is relatively expensive due to the usage of reflection, but shouldn't be called a whole lot, and is the most straightforward way to filter.

public toSimpleObject() : mixed
Return values
mixed

valid()

public valid() : mixed
Return values
mixed

dataType()

protected dataType(mixed $key) : mixed
Parameters
$key : mixed
Return values
mixed

gapiInit()

Blank initialiser to be used in subclasses to do post-construction initialisation - this avoids the need for subclasses to have to implement the variadics handling in their constructors.

protected gapiInit() : mixed
Return values
mixed

isAssociativeArray()

Returns true only if the array is associative.

protected isAssociativeArray(array<string|int, mixed> $array) : bool
Parameters
$array : array<string|int, mixed>
Return values
bool

True if the array is associative.

keyType()

protected keyType(mixed $key) : mixed
Parameters
$key : mixed
Return values
mixed

mapTypes()

Initialize this object's properties from an array.

protected mapTypes(array<string|int, mixed> $array) : void
Parameters
$array : array<string|int, mixed>

Used to seed this object's properties.

Return values
void

camelCase()

Convert a string to camelCase

private camelCase(string $value) : string
Parameters
$value : string
Return values
string

coerceType()

private coerceType(mixed $offset) : mixed
Parameters
$offset : mixed
Return values
mixed

getMappedName()

If there is an internal name mapping, use that.

private getMappedName(mixed $key) : mixed
Parameters
$key : mixed
Return values
mixed

getSimpleValue()

Handle different types of values, primarily other objects and map and array data types.

private getSimpleValue(mixed $value) : mixed
Parameters
$value : mixed
Return values
mixed

nullPlaceholderCheck()

Check whether the value is the null placeholder and return true null.

private nullPlaceholderCheck(mixed $value) : mixed
Parameters
$value : mixed
Return values
mixed

Search results