102 lines
2.3 KiB
PHP
102 lines
2.3 KiB
PHP
<?php
|
|
|
|
// This file is auto-generated, don't edit it. Thanks.
|
|
|
|
namespace AlibabaCloud\SDK\Dypnsapi\V20170525\Models;
|
|
|
|
use AlibabaCloud\SDK\Dypnsapi\V20170525\Models\GetAuthTokenResponseBody\tokenInfo;
|
|
use AlibabaCloud\Tea\Model;
|
|
|
|
class GetAuthTokenResponseBody extends Model
|
|
{
|
|
/**
|
|
* @description The response code.
|
|
*
|
|
* If OK is returned, the request is successful.
|
|
* For more information about other error codes, see [API response codes](https://help.aliyun.com/document_detail/85198.html).
|
|
*
|
|
* @example OK
|
|
*
|
|
* @var string
|
|
*/
|
|
public $code;
|
|
|
|
/**
|
|
* @description The returned message.
|
|
*
|
|
* @example Success
|
|
*
|
|
* @var string
|
|
*/
|
|
public $message;
|
|
|
|
/**
|
|
* @description The request ID.
|
|
*
|
|
* @example 8906582E-6722
|
|
*
|
|
* @var string
|
|
*/
|
|
public $requestId;
|
|
|
|
/**
|
|
* @description The response parameters.
|
|
*
|
|
* @var tokenInfo
|
|
*/
|
|
public $tokenInfo;
|
|
protected $_name = [
|
|
'code' => 'Code',
|
|
'message' => 'Message',
|
|
'requestId' => 'RequestId',
|
|
'tokenInfo' => 'TokenInfo',
|
|
];
|
|
|
|
public function validate()
|
|
{
|
|
}
|
|
|
|
public function toMap()
|
|
{
|
|
$res = [];
|
|
if (null !== $this->code) {
|
|
$res['Code'] = $this->code;
|
|
}
|
|
if (null !== $this->message) {
|
|
$res['Message'] = $this->message;
|
|
}
|
|
if (null !== $this->requestId) {
|
|
$res['RequestId'] = $this->requestId;
|
|
}
|
|
if (null !== $this->tokenInfo) {
|
|
$res['TokenInfo'] = null !== $this->tokenInfo ? $this->tokenInfo->toMap() : null;
|
|
}
|
|
|
|
return $res;
|
|
}
|
|
|
|
/**
|
|
* @param array $map
|
|
*
|
|
* @return GetAuthTokenResponseBody
|
|
*/
|
|
public static function fromMap($map = [])
|
|
{
|
|
$model = new self();
|
|
if (isset($map['Code'])) {
|
|
$model->code = $map['Code'];
|
|
}
|
|
if (isset($map['Message'])) {
|
|
$model->message = $map['Message'];
|
|
}
|
|
if (isset($map['RequestId'])) {
|
|
$model->requestId = $map['RequestId'];
|
|
}
|
|
if (isset($map['TokenInfo'])) {
|
|
$model->tokenInfo = tokenInfo::fromMap($map['TokenInfo']);
|
|
}
|
|
|
|
return $model;
|
|
}
|
|
}
|