Instance of an infrastructure service

package Zend_Cloud
subpackage Infrastructure
copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
license New BSD License

 Methods

Constructor

__construct(array $data, object $adapter = null

Parameters

$data

array

$adapter

object

Get the architecture

getArchitecture() : string

Returns

string

Get Attribute with a specific key

getAttribute($key) : \misc | boolean

Parameters

$key

Returns

\miscboolean

Get all the attributes

getAttributes() : array

Returns

array

Get the description

getDescription() : string

Returns

string

Get the image ID

getId() : string

Returns

string

Get the name

getName() : string

Returns

string

Get the Owner ID

getOwnerId() : string

Returns

string

Get the platform

getPlatform() : string

Returns

string

 Properties

 

The Image adapter (if exists)

$adapter : object

Default

 

Required attributes

$attributeRequired : array

Default

array(self::IMAGE_ID, self::IMAGE_DESCRIPTION, self::IMAGE_PLATFORM, self::IMAGE_ARCHITECTURE)
 

Image's attributes

$attributes : array

Default

array()

 Constants

 

ARCH_32BIT

ARCH_32BIT = 'i386' 
 

ARCH_64BIT

ARCH_64BIT = 'x86_64' 
 

IMAGE_ARCHITECTURE

IMAGE_ARCHITECTURE = 'architecture' 
 

IMAGE_DESCRIPTION

IMAGE_DESCRIPTION = 'description' 
 

IMAGE_ID

IMAGE_ID = 'imageId' 
 

IMAGE_LINUX

IMAGE_LINUX = 'linux' 
 

IMAGE_NAME

IMAGE_NAME = 'name' 
 

IMAGE_OWNERID

IMAGE_OWNERID = 'ownerId' 
 

IMAGE_PLATFORM

IMAGE_PLATFORM = 'platform' 
 

IMAGE_WINDOWS

IMAGE_WINDOWS = 'windows'