OpenCloud/Compute/ServerMetadata.php

Properties

Description

Specialized metadata for OpenStack Server objects (metadata items can be managed individually or in aggregate)

Classes

ServerMetadata

Properties

 
 
No 
No 

Description

This class handles server metadata
Server metadata is a weird beast in that it has resource representations and HTTP calls to set the entire server metadata as well as individual items.

Methods

Create, Delete, GetMetadataJson, Parent, Update, Url, __construct, __set,

Create( ) : void

Description

Sets a new metadata value or block
Note that, if you're setting a block, the block specified will *entirely replace* the existing block.

Return value

Type Description
void

Tags

Name Description
api
throws

Delete( ) : void

Description

Deletes a metadata key or block

Return value

Type Description
void

Tags

Name Description
api
throws

GetMetadataJson( ) : string

Description

Builds a metadata JSON string

Return value

Type Description
string

Tags

Name Description
throws

Parent( ) : \OpenCloud\Compute\Server

Description

Returns the parent Server object

Return value

Type Description
\OpenCloud\Compute\Server

Update( ) : void

Description

Updates a metadata key or block

Return value

Type Description
void

Tags

Name Description
api
throws

Url( string   $subresource = '', ) : string

Description

Returns the URL of the metadata (key or block)

Arguments

Name Type Description Default
$subresource string

not used; required for strict compatibility

''

Return value

Type Description
string

Tags

Name Description
throws

__construct( object   $parent, string   $key = NULL, ) : n/a

Description

Contructs a Metadata object associated with a Server or Image object

Arguments

Name Type Description Default
$parent object

either a Server or an Image object

$key string

the (optional) key for the metadata item

NULL

Return value

Type Description
n/a n/a

Tags

Name Description
throws

__set( string   $key, string   $value, ) : void

Description

Overrides the base setter method, since the metadata key can be anything (no name-checking is required)

Arguments

Name Type Description Default
$key string
$value string

Return value

Type Description
void

Tags

Name Description
throws

Properties

$_key, $_parent, $_url,

  private  $_key =




  private  $_parent =




  private  $_url =




Documentation was generated by phpDocumentor 2.0.0b6 .

Namespaces

Packages