Свойство | Тип | Описание | |
---|---|---|---|
$config | OpenStack config |
Метод | Описание | |
---|---|---|
__construct ( |
Constructor | |
auth ( ) : object | Performs an authentication request | |
call ( $service, $path = '/', array $options = null, $verb = 'GET', Scalr\Service\OpenStack\Type\AppFormat $accept = null, $auth = true ) | ||
getConfig ( ) : |
Gets OpenStack config | |
resetDebug ( ) : |
Resets debug mode | |
setDebug ( boolean $bDebug = true ) : |
Sets debug mode |
Метод | Описание | |
---|---|---|
createHttpRequest ( ) : Scalr\System\Http\Client\Request | Creates new http Request object | |
tryCall ( Scalr\System\Http\Client\Request $httpRequest, integer $attempts = 1, integer $interval = 200 ) : http\Client\Response | Tries to send request on several attempts. |
public __construct ( |
||
$config | A OpenStack config. |
protected createHttpRequest ( ) : Scalr\System\Http\Client\Request | ||
Результат | Scalr\System\Http\Client\Request | Returns new http Request object |
public getConfig ( ) : |
||
Результат | A OpenStack config. |
public resetDebug ( ) : |
||
Результат |
protected tryCall ( Scalr\System\Http\Client\Request $httpRequest, integer $attempts = 1, integer $interval = 200 ) : http\Client\Response | ||
$httpRequest | Scalr\System\Http\Client\Request | |
$attempts | integer | Attempts count. |
$interval | integer | An sleep interval between an attempts in microseconds. |
Результат | http\Client\Response | Returns http Response if success. |