You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
62 lines
1.3 KiB
62 lines
1.3 KiB
3 years ago
|
<?php
|
||
|
|
||
|
// This file is auto-generated, don't edit it. Thanks.
|
||
|
|
||
|
namespace AlibabaCloud\SDK\Dysmsapi\V20170525\Models;
|
||
|
|
||
|
use AlibabaCloud\Tea\Model;
|
||
|
|
||
|
class DeleteSmsTemplateResponse extends Model
|
||
|
{
|
||
|
/**
|
||
|
* @var string[]
|
||
|
*/
|
||
|
public $headers;
|
||
|
|
||
|
/**
|
||
|
* @var DeleteSmsTemplateResponseBody
|
||
|
*/
|
||
|
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 DeleteSmsTemplateResponse
|
||
|
*/
|
||
|
public static function fromMap($map = [])
|
||
|
{
|
||
|
$model = new self();
|
||
|
if (isset($map['headers'])) {
|
||
|
$model->headers = $map['headers'];
|
||
|
}
|
||
|
if (isset($map['body'])) {
|
||
|
$model->body = DeleteSmsTemplateResponseBody::fromMap($map['body']);
|
||
|
}
|
||
|
|
||
|
return $model;
|
||
|
}
|
||
|
}
|