PHP Класс Scalr\Service\CloudStack\Client\QueryClient

С версии: 4.5.2
Автор: Vlad Dobrovolskiy ([email protected])
Наследование: implements Scalr\Service\CloudStack\Client\ClientInterface
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$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