PHP Class Scalr\Service\Aws\Client\SoapClient

Since: 27.02.2013
Author: Vitaliy Demidov ([email protected])
Inheritance: extends SoapClient, implements Scalr\Service\Aws\Client\ClientInterface
Afficher le fichier Open project: scalr/scalr Class Usage Examples

Protected Properties

Свойство Type Description
$apiVersion string AWS API Version
$awsAccessKeyId string AWS Access Key Id
$canonicalMethod
$certificate string x.509 certificate
$privateKey string private key
$secretAccessKey string Secret Access Key
$sigNode
$url string Base url for API requests
$wsdl string WSDL local path or uri

Méthodes publiques

Méthode Description
__call ( $function_name, $arguments )
__construct ( string $awsAccessKeyId, string $secretAccessKey, string $apiVersion, string $url, string $wsdl ) Constructor
__doRequest ( $request, $location, $action, $version, $one_way = null )
call ( $action, $options, $path = '/' )
getApiVersion ( ) : string Gets API Version date
getAws ( ) : Aws Gets AWS instance
getCertificate ( ) : string Gets x.509 certificate
getPrivateKey ( ) : string Gets private key that associated with x.509 certificate
getQueriesQuantity ( )
getServiceName ( )
getType ( )
getUrl ( ) : string Gets base url for API requests
setApiVersion ( string $apiVersion ) Sets Api Version
setAws ( Aws $aws = null ) : SoapClient Sets aws instance
setCertificate ( string $certificate ) : SoapClient Sets x.509 certificate
setPrivateKey ( string $pk ) : SoapClient Sets private key that associated with x.509 certificate
setServiceName ( $service )
setUrl ( string $url ) Sets query url

Méthodes protégées

Méthode Description
_addRefInternal ( $sinfoNode, $node, $algorithm, $arTransforms = null, $options = null )
_calculateDigest ( $digestAlgorithm, $data )
_canonicalizeData ( $node, $canonicalmethod, $arXPath = null, $prefixList = null )
_createNewSignNode ( $name, $value = NULL )
_generateGuid ( $prefix = 'pfx' )
_get509XCert ( $cert, $isPEMFormat = true )
_incrementQueriesQuantity ( ) Increments the quantity of the processed queries during current client instance
_insertSignature ( $node, $beforeNode = NULL ) This function inserts the signature element.
_locateSignature ( $objDoc )
_processTransforms ( $refNode, $objData )
_staticGet509XCerts ( $certs, $isPEMFormat = true )
getExpirationTime ( ) : string Gets expiration time for Expires option.
getRequestObjectByArray ( $options )

Method Details

__call() public méthode

See also: SoapClient::__call()
public __call ( $function_name, $arguments )

__construct() public méthode

Constructor
public __construct ( string $awsAccessKeyId, string $secretAccessKey, string $apiVersion, string $url, string $wsdl )
$awsAccessKeyId string AWS Access Key Id
$secretAccessKey string AWS Secret Access Key
$apiVersion string YYYY-MM-DD representation of AWS API version
$url string host name for the all api requests
$wsdl string WSDL local path or url

__doRequest() public méthode

See also: SoapClient::__doRequest()
public __doRequest ( $request, $location, $action, $version, $one_way = null )

_addRefInternal() protected méthode

protected _addRefInternal ( $sinfoNode, $node, $algorithm, $arTransforms = null, $options = null )

_calculateDigest() protected méthode

protected _calculateDigest ( $digestAlgorithm, $data )

_canonicalizeData() protected méthode

protected _canonicalizeData ( $node, $canonicalmethod, $arXPath = null, $prefixList = null )

_createNewSignNode() protected méthode

protected _createNewSignNode ( $name, $value = NULL )

_generateGuid() protected static méthode

protected static _generateGuid ( $prefix = 'pfx' )

_get509XCert() protected static méthode

protected static _get509XCert ( $cert, $isPEMFormat = true )

_incrementQueriesQuantity() protected méthode

Increments the quantity of the processed queries during current client instance

_insertSignature() protected méthode

The signature element will be appended to the element, unless $beforeNode is specified. If $beforeNode is specified, the signature element will be inserted as the last element before $beforeNode.
protected _insertSignature ( $node, $beforeNode = NULL )
$node The node the signature element should be inserted into.
$beforeNode The node the signature element should be located before.

_locateSignature() protected méthode

protected _locateSignature ( $objDoc )

_processTransforms() protected méthode

protected _processTransforms ( $refNode, $objData )

_staticGet509XCerts() protected static méthode

protected static _staticGet509XCerts ( $certs, $isPEMFormat = true )

call() public méthode

public call ( $action, $options, $path = '/' )

getApiVersion() public méthode

Gets API Version date
public getApiVersion ( ) : string
Résultat string Returns API Version Date in YYYY-MM-DD format

getAws() public méthode

Gets AWS instance
public getAws ( ) : Aws
Résultat Scalr\Service\Aws Returns an AWS intance

getCertificate() public méthode

Gets x.509 certificate
public getCertificate ( ) : string
Résultat string Returns x.509 certificate

getExpirationTime() protected méthode

Gets expiration time for Expires option.
protected getExpirationTime ( ) : string
Résultat string Returns expiration time form Expires option that's used in AWS api requests.

getPrivateKey() public méthode

Gets private key that associated with x.509 certificate
public getPrivateKey ( ) : string
Résultat string Returns private key that associated with x.509 certificate

getQueriesQuantity() public méthode

public getQueriesQuantity ( )

getRequestObjectByArray() protected méthode

protected getRequestObjectByArray ( $options )

getServiceName() public méthode

See also: Scalr\Service\Aws\Client\ClientInterface::getServiceName()
public getServiceName ( )

getType() public méthode

public getType ( )

getUrl() public méthode

Gets base url for API requests
public getUrl ( ) : string
Résultat string Returns base url for API requests

setApiVersion() public méthode

Sets Api Version
public setApiVersion ( string $apiVersion )
$apiVersion string YYYY-MM-DD representation of AWS API version

setAws() public méthode

Sets aws instance
public setAws ( Aws $aws = null ) : SoapClient
$aws Scalr\Service\Aws AWS intance
Résultat SoapClient

setCertificate() public méthode

Sets x.509 certificate
public setCertificate ( string $certificate ) : SoapClient
$certificate string x.509 certificate
Résultat SoapClient

setPrivateKey() public méthode

Sets private key that associated with x.509 certificate
public setPrivateKey ( string $pk ) : SoapClient
$pk string private key that associated with x.509 certificate
Résultat SoapClient

setServiceName() public méthode

See also: Scalr\Service\Aws\Client\ClientInterface::setServiceName()
public setServiceName ( $service )

setUrl() public méthode

Sets query url
public setUrl ( string $url )
$url string Base url for API requests

Property Details

$apiVersion protected_oe property

AWS API Version
protected string $apiVersion
Résultat string

$awsAccessKeyId protected_oe property

AWS Access Key Id
protected string $awsAccessKeyId
Résultat string

$canonicalMethod protected_oe property

protected $canonicalMethod

$certificate protected_oe property

x.509 certificate
protected string $certificate
Résultat string

$privateKey protected_oe property

private key
protected string $privateKey
Résultat string

$secretAccessKey protected_oe property

Secret Access Key
protected string $secretAccessKey
Résultat string

$sigNode protected_oe property

protected $sigNode

$url protected_oe property

Base url for API requests
protected string $url
Résultat string

$wsdl protected_oe property

WSDL local path or uri
protected string $wsdl
Résultat string