examples/Client/CloudSubscription.php
public function storageServiceExists($name)
    {
        $result = $this->_proxy->listStorageServices();
        $storageServices = $result->getStorageServices();

        foreach ($storageServices as $storageService) {
            if ($storageService->getName() == $name) {
                return true;
            }
        }

        return false;
    }
public function storageServiceExists($name)
    {
        $result = $this->_proxy->listStorageServices();
        $storageServices = $result->getStorageServices();

        foreach ($storageServices as $storageService) {
            if ($storageService->getName() == $name) {
                return true;
            }
        }

        return false;
    }
public function storageServiceExists ( $ name ) { $ result = $ this -> _proxy -> listStorageServices ( ) ; $ storageServices = $ result -> getStorageServices ( ) ; foreach ( $ storageServices as $ storageService ) { if ( $ storageService -> getName ( ) == $ name ) { return true ; } } return false ; }
Checks if a storage service exists or not.

@param string $name Storage service name.

@return bool
Checks if a storage service exists or not .