Overview

Namespaces

  • None
  • OpenCloud
    • Autoscale
      • Resource
    • CloudMonitoring
      • Exception
      • Resource
    • Common
      • Exceptions
      • Log
      • Request
        • Response
    • Compute
    • Database
    • DNS
    • LoadBalancer
      • Resources
    • ObjectStore
      • Resource
    • Orchestration
    • Volume
  • PHP

Classes

  • Base
  • Collection
  • Lang
  • Metadata
  • Nova
  • PersistentObject
  • Service
  • ServiceCatalogItem
  • Overview
  • Namespace
  • Class
  • Tree
  • Download

Class Metadata

The Metadata class represents either Server or Image metadata

OpenCloud\Common\Base
Extended by OpenCloud\Common\Metadata

Direct known subclasses

OpenCloud\Compute\ServerMetadata
Namespace: OpenCloud\Common
Author: Glen Campbell <glen.campbell@rackspace.com>
Api
Located at OpenCloud/Common/Metadata.php
Methods summary
public
# __set( string $key, string $value )

This setter overrides the base one, since the metadata key can be anything

This setter overrides the base one, since the metadata key can be anything

Parameters

$key
string
$key
$value
string
$value

Overrides

OpenCloud\Common\Base::__set()
public array
# Keylist( )

Returns the list of keys defined

Returns the list of keys defined

Returns

array
public
# setArray( array $values, string $prefix = null )

Sets metadata values from an array, with optional prefix

Sets metadata values from an array, with optional prefix

If $prefix is provided, then only array keys that match the prefix are set as metadata values, and $prefix is stripped from the key name.

Parameters

$values
array
$values an array of key/value pairs to set
$prefix
string
$prefix if provided, a prefix that is used to identify metadata values. For example, you can set values from headers for a Container by using $prefix='X-Container-Meta-'.
Methods inherited from OpenCloud\Common\Base
checkJsonError(), getHttpRequestObject(), getLogger(), makeQueryString(), populate(), setLogger(), setProperty(), url()
PHP OpenCloud API API documentation generated by ApiGen 2.8.0