PHP 클래스 Scalr\Service\CloudStack\Client\QueryClient

부터: 4.5.2
저자: Vlad Dobrovolskiy ([email protected])
상속: implements Scalr\Service\CloudStack\Client\ClientInterface
파일 보기 프로젝트 열기: scalr/scalr

보호된 프로퍼티들

프로퍼티 타입 설명
$apiKey string
$endpoint string
$platformName string
$secretKey string Secret Access Key
$zonesCache array

공개 메소드들

메소드 설명
__construct ( $endpoint, $apiKey, $secretKey, $cloudstack, $platform = 'cloudstack' ) Constructor
call ( $command, array $args = null, $verb = 'GET' )
getSignature ( $queryString )
resetDebug ( ) : QueryClient Resets debug mode
setDebug ( boolean $bDebug = true ) : QueryClient Sets debug mode

보호된 메소드들

메소드 설명
createHttpRequest ( ) : Scalr\System\Http\Client\Request Creates new http Request object
tryCall ( Scalr\System\Http\Client\Request $httpRequest, integer $attempts = 3, integer $interval = 200 ) : http\Client\Response Tries to send request on several attempts.

메소드 상세

__construct() 공개 메소드

Constructor
public __construct ( $endpoint, $apiKey, $secretKey, $cloudstack, $platform = 'cloudstack' )

call() 공개 메소드

public call ( $command, array $args = null, $verb = 'GET' )
$args array

createHttpRequest() 보호된 메소드

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

getSignature() 공개 메소드

public getSignature ( $queryString )

resetDebug() 공개 메소드

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

setDebug() 공개 메소드

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

tryCall() 보호된 메소드

Tries to send request on several attempts.
protected tryCall ( Scalr\System\Http\Client\Request $httpRequest, integer $attempts = 3, 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.

프로퍼티 상세

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

protected string $apiKey
리턴 string

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

protected string $endpoint
리턴 string

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

protected string $platformName
리턴 string

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

Secret Access Key
protected string $secretKey
리턴 string

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

protected array $zonesCache
리턴 array