Class AbstractResource
The root class for all other objects used or defined by this SDK.
It contains common code for error handling as well as service functions that
are useful. Because it is an abstract class, it cannot be called directly, and
it has no publicly-visible properties.
-
OpenCloud\Common\Base
-
OpenCloud\Common\Resource\BaseResource
-
OpenCloud\Common\Resource\PersistentResource
-
OpenCloud\DNS\Resource\AbstractResource
Methods summary
public
Guzzle\Http\Message\Response
|
#
create( array $params = array() )
Create a new resource
Parameters
Returns
Guzzle\Http\Message\Response
Overrides
|
public
Guzzle\Http\Message\Response
|
#
update( array $params = array() )
Update a resource
Parameters
Returns
Guzzle\Http\Message\Response
Overrides
|
public
Guzzle\Http\Message\Response
|
#
delete( )
Delete this resource
Returns
Guzzle\Http\Message\Response
Overrides
|
protected
object
|
#
createJson( )
Provides JSON for create request body
Provides JSON for create request body
Returns
object
Throws
Overrides
|
protected
|
#
updateJson( mixed $params = array() )
Provides JSON for update request body
Provides JSON for update request body
Overrides
|
public
array|false
|
#
getCreateKeys( )
Retrieve the keys which are required when the object is created.
Retrieve the keys which are required when the object is created.
Returns
array|false
|
public
array|false
|
#
getUpdateKeys( )
Retrieve the keys which are required when the object is updated.
Retrieve the keys which are required when the object is updated.
Returns
array|false
|
Methods inherited from OpenCloud\Common\Resource\BaseResource
__construct(),
findLink(),
getClient(),
getMetadata(),
getParent(),
getService(),
getUrl(),
jsonCollectionElement(),
jsonCollectionName(),
jsonName(),
parseResponse(),
primaryKeyField(),
resourceName(),
setMetadata(),
setParent(),
setService()
|
Methods inherited from OpenCloud\Common\Base
__call(),
checkJsonError(),
generateUuid(),
getInstance(),
getJsonHeader(),
getLogger(),
getProperty(),
makeResourceIteratorOptions(),
populate(),
propertyExists(),
setLogger(),
setProperty(),
stripNamespace(),
toCamel(),
toUnderscores()
|