Class AbstractResource
Abstract base class which implements shared functionality of ObjectStore resources. Provides support, for example, for metadata-handling and other features that are common to the ObjectStore components.
- OpenCloud\Common\Base
-
OpenCloud\ObjectStore\Resource\AbstractResource
Direct known subclasses
OpenCloud\ObjectStore\Resource\AbstractContainer
,
OpenCloud\ObjectStore\Resource\Account
,
OpenCloud\ObjectStore\Resource\DataObject
Indirect known subclasses
OpenCloud\ObjectStore\Resource\CDNContainer
,
OpenCloud\ObjectStore\Resource\Container
Namespace: OpenCloud\ObjectStore\Resource
Located at OpenCloud/ObjectStore/Resource/AbstractResource.php
Methods summary
public
|
|
public
Service
|
|
public
Service
|
|
public
Client
|
|
public static
|
#
fromResponse( Guzzle\Http\Message\Response $response,
Factory method that allows for easy instantiation from a Response object. |
public static
array
|
|
public static
array
|
|
public
|
#
setMetadata( array $data, boolean $constructFromResponse = false )
Set the metadata (local-only) for this object. You must call saveMetadata to actually persist the metadata using the ObjectStore service. |
public
|
|
public
Guzzle\Http\Message\Response
|
#
saveMetadata( array $metadata, boolean $stockPrefix = true )
Push local metadata to the API, thereby executing a permanent save. |
public
|
#
retrieveMetadata( )
Retrieve metadata from the API. This method will then set and return this value. |
public
Guzzle\Http\Message\Response
|
|
public
array
|
#
appendToMetadata( array $values )
Append a particular array of values to the existing metadata. Analogous to a merge. You must call to actually persist the metadata using the ObjectStore service. |
Methods inherited from OpenCloud\Common\Base
__call()
,
checkJsonError()
,
generateUuid()
,
getInstance()
,
getLogger()
,
hasLogger()
,
makeResourceIteratorOptions()
,
populate()
,
setLogger()
,
stripNamespace()
,
toCamel()
,
toUnderscores()
,
url()
Constants summary
string |
GLOBAL_METADATA_PREFIX
|
#
'X'
|