短信验证 composer扩展

This commit is contained in:
“wanyongkang”
2022-05-13 17:02:00 +08:00
parent ce3cc26c02
commit 7bf5866d7c
357 changed files with 42208 additions and 0 deletions

View File

@@ -0,0 +1,61 @@
<?php
// This file is auto-generated, don't edit it. Thanks.
namespace AlibabaCloud\SDK\Dysmsapi\V20170525\Models;
use AlibabaCloud\Tea\Model;
class AddShortUrlResponse extends Model
{
/**
* @var string[]
*/
public $headers;
/**
* @var AddShortUrlResponseBody
*/
public $body;
protected $_name = [
'headers' => 'headers',
'body' => 'body',
];
public function validate()
{
Model::validateRequired('headers', $this->headers, true);
Model::validateRequired('body', $this->body, true);
}
public function toMap()
{
$res = [];
if (null !== $this->headers) {
$res['headers'] = $this->headers;
}
if (null !== $this->body) {
$res['body'] = null !== $this->body ? $this->body->toMap() : null;
}
return $res;
}
/**
* @param array $map
*
* @return AddShortUrlResponse
*/
public static function fromMap($map = [])
{
$model = new self();
if (isset($map['headers'])) {
$model->headers = $map['headers'];
}
if (isset($map['body'])) {
$model->body = AddShortUrlResponseBody::fromMap($map['body']);
}
return $model;
}
}