Scalr\Service\CloudStack\CloudStack::listAvailableProductTypes PHP Метод

listAvailableProductTypes() публичный Метод

It is a command used in checking the list of products provided as those of server and by selecting one of resulted lists, users can check combination of templateid, serviceofferingid, diskofferingid and zoneid which can be created with VM
public listAvailableProductTypes ( ) : Scalr\Service\CloudStack\DataType\AvailableProductsList | null
Результат Scalr\Service\CloudStack\DataType\AvailableProductsList | null
    public function listAvailableProductTypes()
    {
        $result = null;
        $response = $this->getClient()->call('listAvailableProductTypes', array());
        if ($response->hasError() === false) {
            $resultObject = $response->getResult();
            if (!empty($resultObject) && property_exists($resultObject, 'count') && $resultObject->count > 0) {
                $result = $this->_loadProductTypesList($resultObject->producttypes);
            }
        }
        return $result;
    }