/**
  * {@inheritDoc}
  */
 public function create($params = array())
 {
     $this->id = null;
     $this->status = null;
     if (isset($params['imageId'])) {
         $this->imageRef = $params['imageId'];
     }
     if (isset($params['flavorId'])) {
         $this->flavorRef = $params['flavorId'];
     }
     return parent::create($params);
 }
Example #2
0
 /**
  * Creates a new instance object
  *
  * This could use the default constructor, but we want to make sure that
  * the volume attribute is an object.
  *
  * @param \OpenCloud\DbService $service the DbService object associated
  *                                      with this
  * @param mixed                $info    the ID or array of info for the object
  */
 public function __construct(Service $service, $info = null)
 {
     $this->volume = new \stdClass();
     return parent::__construct($service, $info);
 }
 /**
  * {@inheritDoc}
  */
 public function create($params = array())
 {
     $this->id = null;
     $this->status = null;
     return parent::create($params);
 }
 public function CreateUrl()
 {
     return parent::CreateUrl();
 }
Example #5
0
 public function populate($info, $setObjects = true)
 {
     parent::populate($info, $setObjects);
     if (is_object($info)) {
         $info = (array) $info;
     }
     if (isset($info['restorePoint']['backupRef'])) {
         $this->backupRef = $info['restorePoint']['backupRef'];
     }
 }