ossUploadToken.php 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  1. <?php
  2. // This file is auto-generated, don't edit it. Thanks.
  3. namespace AlibabaCloud\SDK\Cloudauth\V20190307\Models\DescribeVerifyTokenResponseBody;
  4. use AlibabaCloud\Tea\Model;
  5. class ossUploadToken extends Model
  6. {
  7. /**
  8. * @example cloudauth-zhangjiakou-external
  9. *
  10. * @var string
  11. */
  12. public $bucket;
  13. /**
  14. * @example https://oss-cn-zhangjiakou.aliyuncs.com
  15. *
  16. * @var string
  17. */
  18. public $endPoint;
  19. /**
  20. * @example 1582636610000
  21. *
  22. * @var int
  23. */
  24. public $expired;
  25. /**
  26. * @example STS.NU8rUBj****
  27. *
  28. * @var string
  29. */
  30. public $key;
  31. /**
  32. * @example prod/RdNLC@Ox2n-1s7NMt
  33. *
  34. * @var string
  35. */
  36. public $path;
  37. /**
  38. * @example FwmnyoqT8dHj7nJLuM67T****
  39. *
  40. * @var string
  41. */
  42. public $secret;
  43. /**
  44. * @example uWia500nTS5knZaDzq4/KqpvhcLnO****
  45. *
  46. * @var string
  47. */
  48. public $token;
  49. protected $_name = [
  50. 'bucket' => 'Bucket',
  51. 'endPoint' => 'EndPoint',
  52. 'expired' => 'Expired',
  53. 'key' => 'Key',
  54. 'path' => 'Path',
  55. 'secret' => 'Secret',
  56. 'token' => 'Token',
  57. ];
  58. public function validate()
  59. {
  60. }
  61. public function toMap()
  62. {
  63. $res = [];
  64. if (null !== $this->bucket) {
  65. $res['Bucket'] = $this->bucket;
  66. }
  67. if (null !== $this->endPoint) {
  68. $res['EndPoint'] = $this->endPoint;
  69. }
  70. if (null !== $this->expired) {
  71. $res['Expired'] = $this->expired;
  72. }
  73. if (null !== $this->key) {
  74. $res['Key'] = $this->key;
  75. }
  76. if (null !== $this->path) {
  77. $res['Path'] = $this->path;
  78. }
  79. if (null !== $this->secret) {
  80. $res['Secret'] = $this->secret;
  81. }
  82. if (null !== $this->token) {
  83. $res['Token'] = $this->token;
  84. }
  85. return $res;
  86. }
  87. /**
  88. * @param array $map
  89. *
  90. * @return ossUploadToken
  91. */
  92. public static function fromMap($map = [])
  93. {
  94. $model = new self();
  95. if (isset($map['Bucket'])) {
  96. $model->bucket = $map['Bucket'];
  97. }
  98. if (isset($map['EndPoint'])) {
  99. $model->endPoint = $map['EndPoint'];
  100. }
  101. if (isset($map['Expired'])) {
  102. $model->expired = $map['Expired'];
  103. }
  104. if (isset($map['Key'])) {
  105. $model->key = $map['Key'];
  106. }
  107. if (isset($map['Path'])) {
  108. $model->path = $map['Path'];
  109. }
  110. if (isset($map['Secret'])) {
  111. $model->secret = $map['Secret'];
  112. }
  113. if (isset($map['Token'])) {
  114. $model->token = $map['Token'];
  115. }
  116. return $model;
  117. }
  118. }