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.
133 lines
3.4 KiB
133 lines
3.4 KiB
3 years ago
|
<?php
|
||
|
|
||
|
// This file is auto-generated, don't edit it. Thanks.
|
||
|
|
||
|
namespace AlibabaCloud\SDK\Dysmsapi\V20170525\Models;
|
||
|
|
||
|
use AlibabaCloud\SDK\Dysmsapi\V20170525\Models\AddSmsSignRequest\signFileList;
|
||
|
use AlibabaCloud\Tea\Model;
|
||
|
|
||
|
class AddSmsSignRequest extends Model
|
||
|
{
|
||
|
/**
|
||
|
* @var int
|
||
|
*/
|
||
|
public $ownerId;
|
||
|
|
||
|
/**
|
||
|
* @var string
|
||
|
*/
|
||
|
public $resourceOwnerAccount;
|
||
|
|
||
|
/**
|
||
|
* @var int
|
||
|
*/
|
||
|
public $resourceOwnerId;
|
||
|
|
||
|
/**
|
||
|
* @var string
|
||
|
*/
|
||
|
public $signName;
|
||
|
|
||
|
/**
|
||
|
* @var int
|
||
|
*/
|
||
|
public $signSource;
|
||
|
|
||
|
/**
|
||
|
* @var string
|
||
|
*/
|
||
|
public $remark;
|
||
|
|
||
|
/**
|
||
|
* @var signFileList[]
|
||
|
*/
|
||
|
public $signFileList;
|
||
|
protected $_name = [
|
||
|
'ownerId' => 'OwnerId',
|
||
|
'resourceOwnerAccount' => 'ResourceOwnerAccount',
|
||
|
'resourceOwnerId' => 'ResourceOwnerId',
|
||
|
'signName' => 'SignName',
|
||
|
'signSource' => 'SignSource',
|
||
|
'remark' => 'Remark',
|
||
|
'signFileList' => 'SignFileList',
|
||
|
];
|
||
|
|
||
|
public function validate()
|
||
|
{
|
||
|
}
|
||
|
|
||
|
public function toMap()
|
||
|
{
|
||
|
$res = [];
|
||
|
if (null !== $this->ownerId) {
|
||
|
$res['OwnerId'] = $this->ownerId;
|
||
|
}
|
||
|
if (null !== $this->resourceOwnerAccount) {
|
||
|
$res['ResourceOwnerAccount'] = $this->resourceOwnerAccount;
|
||
|
}
|
||
|
if (null !== $this->resourceOwnerId) {
|
||
|
$res['ResourceOwnerId'] = $this->resourceOwnerId;
|
||
|
}
|
||
|
if (null !== $this->signName) {
|
||
|
$res['SignName'] = $this->signName;
|
||
|
}
|
||
|
if (null !== $this->signSource) {
|
||
|
$res['SignSource'] = $this->signSource;
|
||
|
}
|
||
|
if (null !== $this->remark) {
|
||
|
$res['Remark'] = $this->remark;
|
||
|
}
|
||
|
if (null !== $this->signFileList) {
|
||
|
$res['SignFileList'] = [];
|
||
|
if (null !== $this->signFileList && \is_array($this->signFileList)) {
|
||
|
$n = 0;
|
||
|
foreach ($this->signFileList as $item) {
|
||
|
$res['SignFileList'][$n++] = null !== $item ? $item->toMap() : $item;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
return $res;
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* @param array $map
|
||
|
*
|
||
|
* @return AddSmsSignRequest
|
||
|
*/
|
||
|
public static function fromMap($map = [])
|
||
|
{
|
||
|
$model = new self();
|
||
|
if (isset($map['OwnerId'])) {
|
||
|
$model->ownerId = $map['OwnerId'];
|
||
|
}
|
||
|
if (isset($map['ResourceOwnerAccount'])) {
|
||
|
$model->resourceOwnerAccount = $map['ResourceOwnerAccount'];
|
||
|
}
|
||
|
if (isset($map['ResourceOwnerId'])) {
|
||
|
$model->resourceOwnerId = $map['ResourceOwnerId'];
|
||
|
}
|
||
|
if (isset($map['SignName'])) {
|
||
|
$model->signName = $map['SignName'];
|
||
|
}
|
||
|
if (isset($map['SignSource'])) {
|
||
|
$model->signSource = $map['SignSource'];
|
||
|
}
|
||
|
if (isset($map['Remark'])) {
|
||
|
$model->remark = $map['Remark'];
|
||
|
}
|
||
|
if (isset($map['SignFileList'])) {
|
||
|
if (!empty($map['SignFileList'])) {
|
||
|
$model->signFileList = [];
|
||
|
$n = 0;
|
||
|
foreach ($map['SignFileList'] as $item) {
|
||
|
$model->signFileList[$n++] = null !== $item ? signFileList::fromMap($item) : $item;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
return $model;
|
||
|
}
|
||
|
}
|