DescribeDeviceInfoResponse.php 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. <?php
  2. // This file is auto-generated, don't edit it. Thanks.
  3. namespace AlibabaCloud\SDK\Cloudauth\V20190307\Models;
  4. use AlibabaCloud\SDK\Cloudauth\V20190307\Models\DescribeDeviceInfoResponse\deviceInfoList;
  5. use AlibabaCloud\Tea\Model;
  6. class DescribeDeviceInfoResponse extends Model
  7. {
  8. /**
  9. * @var string
  10. */
  11. public $requestId;
  12. /**
  13. * @var int
  14. */
  15. public $pageSize;
  16. /**
  17. * @var int
  18. */
  19. public $currentPage;
  20. /**
  21. * @var int
  22. */
  23. public $totalCount;
  24. /**
  25. * @var deviceInfoList
  26. */
  27. public $deviceInfoList;
  28. protected $_name = [
  29. 'requestId' => 'RequestId',
  30. 'pageSize' => 'PageSize',
  31. 'currentPage' => 'CurrentPage',
  32. 'totalCount' => 'TotalCount',
  33. 'deviceInfoList' => 'DeviceInfoList',
  34. ];
  35. public function validate()
  36. {
  37. Model::validateRequired('requestId', $this->requestId, true);
  38. Model::validateRequired('pageSize', $this->pageSize, true);
  39. Model::validateRequired('currentPage', $this->currentPage, true);
  40. Model::validateRequired('totalCount', $this->totalCount, true);
  41. Model::validateRequired('deviceInfoList', $this->deviceInfoList, true);
  42. }
  43. public function toMap()
  44. {
  45. $res = [];
  46. if (null !== $this->requestId) {
  47. $res['RequestId'] = $this->requestId;
  48. }
  49. if (null !== $this->pageSize) {
  50. $res['PageSize'] = $this->pageSize;
  51. }
  52. if (null !== $this->currentPage) {
  53. $res['CurrentPage'] = $this->currentPage;
  54. }
  55. if (null !== $this->totalCount) {
  56. $res['TotalCount'] = $this->totalCount;
  57. }
  58. if (null !== $this->deviceInfoList) {
  59. $res['DeviceInfoList'] = null !== $this->deviceInfoList ? $this->deviceInfoList->toMap() : null;
  60. }
  61. return $res;
  62. }
  63. /**
  64. * @param array $map
  65. *
  66. * @return DescribeDeviceInfoResponse
  67. */
  68. public static function fromMap($map = [])
  69. {
  70. $model = new self();
  71. if (isset($map['RequestId'])) {
  72. $model->requestId = $map['RequestId'];
  73. }
  74. if (isset($map['PageSize'])) {
  75. $model->pageSize = $map['PageSize'];
  76. }
  77. if (isset($map['CurrentPage'])) {
  78. $model->currentPage = $map['CurrentPage'];
  79. }
  80. if (isset($map['TotalCount'])) {
  81. $model->totalCount = $map['TotalCount'];
  82. }
  83. if (isset($map['DeviceInfoList'])) {
  84. $model->deviceInfoList = deviceInfoList::fromMap($map['DeviceInfoList']);
  85. }
  86. return $model;
  87. }
  88. }