HPCloud-PHP  1.2.0
PHP bindings for HPCloud and OpenStack services.
 All Classes Namespaces Files Functions Variables Pages
SnapshotDetails Class Reference

Details about a DBaaS snapshot. More...

Public Member Functions

 __construct ($id, $instanceId)
 id ()
 The ID of the snapshot.
 instanceId ()
 The ID of the database instance.
 createdOn ()
 The data upon which this snapshot was created.
 links ()
 The links for this snapshot.

Static Public Member Functions

static newFromJSON ($json)

Protected Attributes

 $id
 $instanceId
 $created
 $status
 $links

Detailed Description

Details about a DBaaS snapshot.

Instances of this class are returned from DBaaS during creation and listing operations.

Definition at line 35 of file SnapshotDetails.php.

Constructor & Destructor Documentation

__construct (   $id,
  $instanceId 
)

Member Function Documentation

createdOn ( )

The data upon which this snapshot was created.

Return values
string
Returns
string An ISO data string representing the date and time that this snapshot was created.

Definition at line 84 of file SnapshotDetails.php.

id ( )

The ID of the snapshot.

Return values
string
Returns
string The ID.

Definition at line 60 of file SnapshotDetails.php.

instanceId ( )

The ID of the database instance.

This returns the ID of the database instance of which this is a snapshot.

Return values
string
Returns
string The database instance ID.

Definition at line 73 of file SnapshotDetails.php.

Referenced by SnapshotDetails\__construct().

links ( )

The links for this snapshot.

See HPCloud::Services::DBaaS::InstanceDetails::links().

Attention
The data returned from this may be in flux during the beta release of this product.
Return values
array
Returns
array An array of links. Typically, at least an URL to the snapshot should be provided.

Definition at line 100 of file SnapshotDetails.php.

static newFromJSON (   $json)
static

Definition at line 42 of file SnapshotDetails.php.

Member Data Documentation

$created
protected

Definition at line 38 of file SnapshotDetails.php.

$id
protected

Definition at line 36 of file SnapshotDetails.php.

Referenced by SnapshotDetails\__construct().

$instanceId
protected

Definition at line 37 of file SnapshotDetails.php.

Referenced by SnapshotDetails\__construct().

$links
protected

Definition at line 40 of file SnapshotDetails.php.

$status
protected

Definition at line 39 of file SnapshotDetails.php.


The documentation for this class was generated from the following file: