Service/Rackspace/Servers/SharedIpGroup.php

Show: PublicProtectedPrivateinherited
Table of Contents
Zend Framework
LICENSE This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://framework.zend.com/license/new-bsd If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to license@zend.com so we can send you a copy immediately.
Category
Zend  
Copyright
Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  
Package
Zend_Service_Rackspace  
Subpackage
Servers  

\Zend_Service_Rackspace_Servers_SharedIpGroup

Package: Zend_Service_Rackspace

Constants

>VConstant  ERROR_PARAM_CONSTRUCT = 'You must pass a Zend_Service_Rackspace_Servers object and an array'
>VConstant  ERROR_PARAM_NO_NAME = 'You must pass the image\'s name in the array (name)'
>VConstant  ERROR_PARAM_NO_ID = 'You must pass the image\'s id in the array (id)'
>VConstant  ERROR_PARAM_NO_SERVERS = 'The servers parameter must be an array of Ids'

Properties

>VPropertyprotectedstring $id
Id of the shared IP group
Details
Type
string
>VPropertyprotectedstring $name
Name of the shared IP group
Details
Type
string
>VPropertyprotectedarray $serversId = array()
Array of servers of the shared IP group
Default valuearray()Details
Type
array
>VPropertyprotected\Zend_Service_Rackspace_Servers $service
The service that has created the image object

Methods

methodpublic__construct(\Zend_Service_Rackspace_Servers $service, array $data) : void

Construct

Parameters
NameTypeDescription
$service\Zend_Service_Rackspace_Servers
$dataarray
methodpubliccreateServer(array $data, array $metadata = array(), array $files = array()) : \Zend_Service_Rackspace_Servers_Server | boolean

Create a server in the shared Ip Group

Parameters
NameTypeDescription
$dataarray
$metadataarray
$filesarray
Returns
TypeDescription
\Zend_Service_Rackspace_Servers_Server | boolean
methodpublicgetId() : string

Get the id of the shared IP group

Returns
TypeDescription
string
methodpublicgetName() : string

Get the name of the shared IP group

Returns
TypeDescription
string
methodpublicgetServer(integer $id) : \Zend_Service_Rackspace_Servers_Server | boolean

Get the server

Parameters
NameTypeDescription
$idinteger
Returns
TypeDescription
\Zend_Service_Rackspace_Servers_Server | boolean
methodpublicgetServersId() : string

Get the server's array of the shared IP group

Returns
TypeDescription
string
methodpublictoArray() : array

To Array

Returns
TypeDescription
array
Documentation was generated by phpDocumentor 2.2.0 .