Zend Framework  1.12
Public Member Functions | Public Attributes | Protected Attributes | List of all members
Zend_Service_Rackspace_Servers_Server Class Reference

Public Member Functions

 __construct ($service, $data)
 Constructor.
 
 getName ()
 Get the name of the server.
 
 getId ()
 Get the server's id.
 
 getImageId ()
 Get the server's image Id.
 
 getFlavorId ()
 Get the server's flavor Id.
 
 getHostId ()
 Get the server's host Id.
 
 getAdminPass ()
 Ge the server's admin password.
 
 getStatus ()
 Get the server's status.
 
 getProgress ()
 Get the progress's status.
 
 getPrivateIp ()
 Get the private IPs.
 
 getPublicIp ()
 Get the public IPs.
 
 getMetadata ($key=null)
 Get the metadata of the container.
 
 changeName ($name)
 Change the name of the server.
 
 changePassword ($password)
 Change the admin password of the server.
 
 reboot ($hard=false)
 Reboot the server.
 
 toArray ()
 To Array.
 

Public Attributes

const ERROR_PARAM_CONSTRUCT = 'You must pass a Zend_Service_Rackspace_Servers object and an array'
 
const ERROR_PARAM_NO_NAME = 'You must pass the server\'s name in the array (name)'
 
const ERROR_PARAM_NO_ID = 'You must pass the server\'s id in the array (id)'
 

Protected Attributes

 $name
 
 $id
 
 $imageId
 
 $flavorId
 
 $hostId
 
 $status
 
 $progress
 
 $adminPass
 
 $addresses = array()
 
 $metadata = array()
 
 $service
 

Constructor & Destructor Documentation

__construct (   $service,
  $data 
)

Constructor.

Parameters
Zend_Service_Rackspace_Servers$service
array$data
Returns
void

Member Function Documentation

changeName (   $name)

Change the name of the server.

Parameters
string$name
Returns
boolean
changePassword (   $password)

Change the admin password of the server.

Parameters
string$password
Returns
boolean
getAdminPass ( )

Ge the server's admin password.

Returns
string
getFlavorId ( )

Get the server's flavor Id.

Returns
string
getHostId ( )

Get the server's host Id.

Returns
string
getId ( )

Get the server's id.

Returns
string
getImageId ( )

Get the server's image Id.

Returns
string
getMetadata (   $key = null)

Get the metadata of the container.

If $key is empty return the array of metadata

Parameters
string$key
Returns
array|string
getName ( )

Get the name of the server.

Returns
string
getPrivateIp ( )

Get the private IPs.

Returns
array|boolean
getProgress ( )

Get the progress's status.

Returns
integer|boolean
getPublicIp ( )

Get the public IPs.

Returns
array|boolean
getStatus ( )

Get the server's status.

Returns
string|boolean
reboot (   $hard = false)

Reboot the server.

Returns
boolean
toArray ( )

To Array.

Returns
array

Member Data Documentation

$addresses = array()
protected
$adminPass
protected
$flavorId
protected
$hostId
protected
$id
protected
$imageId
protected
$metadata = array()
protected
$name
protected
$progress
protected
$service
protected
$status
protected
const ERROR_PARAM_CONSTRUCT = 'You must pass a Zend_Service_Rackspace_Servers object and an array'
const ERROR_PARAM_NO_ID = 'You must pass the server\'s id in the array (id)'
const ERROR_PARAM_NO_NAME = 'You must pass the server\'s name in the array (name)'