PHP 클래스 Scalr\Service\OpenStack\Client\RestClient

부터: 06.12.2012
저자: Vitaliy Demidov ([email protected])
상속: implements Scalr\Service\OpenStack\Client\ClientInterface
파일 보기 프로젝트 열기: scalr/scalr

보호된 프로퍼티들

프로퍼티 타입 설명
$config Scalr\Service\OpenStack\OpenStackConfig OpenStack config

공개 메소드들

메소드 설명
__construct ( OpenStackConfig $config ) 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 ( ) : OpenStackConfig Gets OpenStack config
resetDebug ( ) : RestClient Resets debug mode
setDebug ( boolean $bDebug = true ) : RestClient 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.

메소드 상세

__construct() 공개 메소드

Constructor
public __construct ( OpenStackConfig $config )
$config Scalr\Service\OpenStack\OpenStackConfig A OpenStack config.

auth() 공개 메소드

Performs an authentication request
public auth ( ) : object
리턴 object Returns result

call() 공개 메소드

public call ( $service, $path = '/', array $options = null, $verb = 'GET', Scalr\Service\OpenStack\Type\AppFormat $accept = null, $auth = true )
$options array
$accept Scalr\Service\OpenStack\Type\AppFormat

createHttpRequest() 보호된 메소드

Creates new http Request object
protected createHttpRequest ( ) : Scalr\System\Http\Client\Request
리턴 Scalr\System\Http\Client\Request Returns new http Request object

getConfig() 공개 메소드

Gets OpenStack config
public getConfig ( ) : OpenStackConfig
리턴 Scalr\Service\OpenStack\OpenStackConfig A OpenStack config.

resetDebug() 공개 메소드

Resets debug mode
public resetDebug ( ) : RestClient
리턴 RestClient

setDebug() 공개 메소드

Sets debug mode
public setDebug ( boolean $bDebug = true ) : RestClient
$bDebug boolean ptional If true it will output debug per request into stdout
리턴 RestClient

tryCall() 보호된 메소드

Tries to send request on several attempts.
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.

프로퍼티 상세

$config 보호되어 있는 프로퍼티

OpenStack config
protected OpenStackConfig,Scalr\Service\OpenStack $config
리턴 Scalr\Service\OpenStack\OpenStackConfig