\AlibabaCloud\Client\ClientsManageTrait

Trait ManageTrait.

Summary

Methods
Properties
Constants
getSessionCredential()
asGlobalClient()
asDefaultClient()
name()
isDebug()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

getSessionCredential()

getSessionCredential(integer  $timeout = \AlibabaCloud\Client\Request\Request::TIMEOUT, integer  $connectTimeout = \AlibabaCloud\Client\Request\Request::CONNECT_TIMEOUT) : \AlibabaCloud\Client\Credentials\CredentialsInterface|\AlibabaCloud\Client\Credentials\StsCredential

Parameters

integer $timeout
integer $connectTimeout

Throws

\AlibabaCloud\Client\Exception\ClientException
\AlibabaCloud\Client\Exception\ServerException

Returns

\AlibabaCloud\Client\Credentials\CredentialsInterface|\AlibabaCloud\Client\Credentials\StsCredential

asGlobalClient()

asGlobalClient() : static

Throws

\AlibabaCloud\Client\Exception\ClientException

Returns

static

asDefaultClient()

asDefaultClient() : static

Set the current client as the default client.

Throws

\AlibabaCloud\Client\Exception\ClientException

Returns

static

name()

name(string  $name) : static

Naming clients.

Parameters

string $name

Throws

\AlibabaCloud\Client\Exception\ClientException

Returns

static

isDebug()

isDebug() : boolean

Returns

boolean