123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101 |
- <?php
- namespace AlibabaCloud\SDK\Cloudauth\V20190307\Models;
- use AlibabaCloud\SDK\Cloudauth\V20190307\Models\DescribeDeviceInfoResponse\deviceInfoList;
- use AlibabaCloud\Tea\Model;
- class DescribeDeviceInfoResponse extends Model
- {
-
- public $requestId;
-
- public $pageSize;
-
- public $currentPage;
-
- public $totalCount;
-
- public $deviceInfoList;
- protected $_name = [
- 'requestId' => 'RequestId',
- 'pageSize' => 'PageSize',
- 'currentPage' => 'CurrentPage',
- 'totalCount' => 'TotalCount',
- 'deviceInfoList' => 'DeviceInfoList',
- ];
- public function validate()
- {
- Model::validateRequired('requestId', $this->requestId, true);
- Model::validateRequired('pageSize', $this->pageSize, true);
- Model::validateRequired('currentPage', $this->currentPage, true);
- Model::validateRequired('totalCount', $this->totalCount, true);
- Model::validateRequired('deviceInfoList', $this->deviceInfoList, true);
- }
- public function toMap()
- {
- $res = [];
- if (null !== $this->requestId) {
- $res['RequestId'] = $this->requestId;
- }
- if (null !== $this->pageSize) {
- $res['PageSize'] = $this->pageSize;
- }
- if (null !== $this->currentPage) {
- $res['CurrentPage'] = $this->currentPage;
- }
- if (null !== $this->totalCount) {
- $res['TotalCount'] = $this->totalCount;
- }
- if (null !== $this->deviceInfoList) {
- $res['DeviceInfoList'] = null !== $this->deviceInfoList ? $this->deviceInfoList->toMap() : null;
- }
- return $res;
- }
-
- public static function fromMap($map = [])
- {
- $model = new self();
- if (isset($map['RequestId'])) {
- $model->requestId = $map['RequestId'];
- }
- if (isset($map['PageSize'])) {
- $model->pageSize = $map['PageSize'];
- }
- if (isset($map['CurrentPage'])) {
- $model->currentPage = $map['CurrentPage'];
- }
- if (isset($map['TotalCount'])) {
- $model->totalCount = $map['TotalCount'];
- }
- if (isset($map['DeviceInfoList'])) {
- $model->deviceInfoList = deviceInfoList::fromMap($map['DeviceInfoList']);
- }
- return $model;
- }
- }
|