Server IP : 184.154.167.98 / Your IP : 3.128.31.117 Web Server : Apache System : Linux pink.dnsnetservice.com 4.18.0-553.22.1.lve.1.el8.x86_64 #1 SMP Tue Oct 8 15:52:54 UTC 2024 x86_64 User : puertode ( 1767) PHP Version : 7.2.34 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /home/puertode/public_html/sesiones/3rdparty/php-opencloud/openstack/src/Images/v2/ |
Upload File : |
<?php declare(strict_types=1); namespace OpenStack\Images\v2; use OpenStack\Common\Service\AbstractService; use OpenStack\Images\v2\Models\Image; /** * @property Api $api */ class Service extends AbstractService { public function createImage(array $data): Image { return $this->model(Image::class)->create($data); } public function listImages(array $data = []): \Generator { return $this->model(Image::class)->enumerate($this->api->getImages(), $data); } /** * @param null $id * * @return Image */ public function getImage($id = null): Image { $image = $this->model(Image::class); $image->populateFromArray(['id' => $id]); return $image; } }