init commit

This commit is contained in:
2026-03-17 09:56:00 +08:00
commit e2c8ae752d
6827 changed files with 1211784 additions and 0 deletions

View File

@@ -0,0 +1,104 @@
<?php
// This file is auto-generated, don't edit it. Thanks.
namespace AlibabaCloud\SDK\Dysmsapi\V20170525\Models;
use AlibabaCloud\Dara\Model;
class AddExtCodeSignRequest extends Model
{
/**
* @var string
*/
public $extCode;
/**
* @var int
*/
public $ownerId;
/**
* @var string
*/
public $resourceOwnerAccount;
/**
* @var int
*/
public $resourceOwnerId;
/**
* @var string
*/
public $signName;
protected $_name = [
'extCode' => 'ExtCode',
'ownerId' => 'OwnerId',
'resourceOwnerAccount' => 'ResourceOwnerAccount',
'resourceOwnerId' => 'ResourceOwnerId',
'signName' => 'SignName',
];
public function validate()
{
parent::validate();
}
public function toArray($noStream = false)
{
$res = [];
if (null !== $this->extCode) {
$res['ExtCode'] = $this->extCode;
}
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;
}
return $res;
}
public function toMap($noStream = false)
{
return $this->toArray($noStream);
}
public static function fromMap($map = [])
{
$model = new self();
if (isset($map['ExtCode'])) {
$model->extCode = $map['ExtCode'];
}
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'];
}
return $model;
}
}

View File

@@ -0,0 +1,92 @@
<?php
// This file is auto-generated, don't edit it. Thanks.
namespace AlibabaCloud\SDK\Dysmsapi\V20170525\Models;
use AlibabaCloud\Dara\Model;
class AddExtCodeSignResponse extends Model
{
/**
* @var string[]
*/
public $headers;
/**
* @var int
*/
public $statusCode;
/**
* @var AddExtCodeSignResponseBody
*/
public $body;
protected $_name = [
'headers' => 'headers',
'statusCode' => 'statusCode',
'body' => 'body',
];
public function validate()
{
if (\is_array($this->headers)) {
Model::validateArray($this->headers);
}
if (null !== $this->body) {
$this->body->validate();
}
parent::validate();
}
public function toArray($noStream = false)
{
$res = [];
if (null !== $this->headers) {
if (\is_array($this->headers)) {
$res['headers'] = [];
foreach ($this->headers as $key1 => $value1) {
$res['headers'][$key1] = $value1;
}
}
}
if (null !== $this->statusCode) {
$res['statusCode'] = $this->statusCode;
}
if (null !== $this->body) {
$res['body'] = null !== $this->body ? $this->body->toArray($noStream) : $this->body;
}
return $res;
}
public function toMap($noStream = false)
{
return $this->toArray($noStream);
}
public static function fromMap($map = [])
{
$model = new self();
if (isset($map['headers'])) {
if (!empty($map['headers'])) {
$model->headers = [];
foreach ($map['headers'] as $key1 => $value1) {
$model->headers[$key1] = $value1;
}
}
}
if (isset($map['statusCode'])) {
$model->statusCode = $map['statusCode'];
}
if (isset($map['body'])) {
$model->body = AddExtCodeSignResponseBody::fromMap($map['body']);
}
return $model;
}
}

View File

@@ -0,0 +1,118 @@
<?php
// This file is auto-generated, don't edit it. Thanks.
namespace AlibabaCloud\SDK\Dysmsapi\V20170525\Models;
use AlibabaCloud\Dara\Model;
class AddExtCodeSignResponseBody extends Model
{
/**
* @var string
*/
public $accessDeniedDetail;
/**
* @var string
*/
public $code;
/**
* @var bool
*/
public $data;
/**
* @var string
*/
public $message;
/**
* @var string
*/
public $requestId;
/**
* @var bool
*/
public $success;
protected $_name = [
'accessDeniedDetail' => 'AccessDeniedDetail',
'code' => 'Code',
'data' => 'Data',
'message' => 'Message',
'requestId' => 'RequestId',
'success' => 'Success',
];
public function validate()
{
parent::validate();
}
public function toArray($noStream = false)
{
$res = [];
if (null !== $this->accessDeniedDetail) {
$res['AccessDeniedDetail'] = $this->accessDeniedDetail;
}
if (null !== $this->code) {
$res['Code'] = $this->code;
}
if (null !== $this->data) {
$res['Data'] = $this->data;
}
if (null !== $this->message) {
$res['Message'] = $this->message;
}
if (null !== $this->requestId) {
$res['RequestId'] = $this->requestId;
}
if (null !== $this->success) {
$res['Success'] = $this->success;
}
return $res;
}
public function toMap($noStream = false)
{
return $this->toArray($noStream);
}
public static function fromMap($map = [])
{
$model = new self();
if (isset($map['AccessDeniedDetail'])) {
$model->accessDeniedDetail = $map['AccessDeniedDetail'];
}
if (isset($map['Code'])) {
$model->code = $map['Code'];
}
if (isset($map['Data'])) {
$model->data = $map['Data'];
}
if (isset($map['Message'])) {
$model->message = $map['Message'];
}
if (isset($map['RequestId'])) {
$model->requestId = $map['RequestId'];
}
if (isset($map['Success'])) {
$model->success = $map['Success'];
}
return $model;
}
}

View File

@@ -0,0 +1,118 @@
<?php
// This file is auto-generated, don't edit it. Thanks.
namespace AlibabaCloud\SDK\Dysmsapi\V20170525\Models;
use AlibabaCloud\Dara\Model;
class AddShortUrlRequest extends Model
{
/**
* @var string
*/
public $effectiveDays;
/**
* @var int
*/
public $ownerId;
/**
* @var string
*/
public $resourceOwnerAccount;
/**
* @var int
*/
public $resourceOwnerId;
/**
* @var string
*/
public $shortUrlName;
/**
* @var string
*/
public $sourceUrl;
protected $_name = [
'effectiveDays' => 'EffectiveDays',
'ownerId' => 'OwnerId',
'resourceOwnerAccount' => 'ResourceOwnerAccount',
'resourceOwnerId' => 'ResourceOwnerId',
'shortUrlName' => 'ShortUrlName',
'sourceUrl' => 'SourceUrl',
];
public function validate()
{
parent::validate();
}
public function toArray($noStream = false)
{
$res = [];
if (null !== $this->effectiveDays) {
$res['EffectiveDays'] = $this->effectiveDays;
}
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->shortUrlName) {
$res['ShortUrlName'] = $this->shortUrlName;
}
if (null !== $this->sourceUrl) {
$res['SourceUrl'] = $this->sourceUrl;
}
return $res;
}
public function toMap($noStream = false)
{
return $this->toArray($noStream);
}
public static function fromMap($map = [])
{
$model = new self();
if (isset($map['EffectiveDays'])) {
$model->effectiveDays = $map['EffectiveDays'];
}
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['ShortUrlName'])) {
$model->shortUrlName = $map['ShortUrlName'];
}
if (isset($map['SourceUrl'])) {
$model->sourceUrl = $map['SourceUrl'];
}
return $model;
}
}

View File

@@ -0,0 +1,92 @@
<?php
// This file is auto-generated, don't edit it. Thanks.
namespace AlibabaCloud\SDK\Dysmsapi\V20170525\Models;
use AlibabaCloud\Dara\Model;
class AddShortUrlResponse extends Model
{
/**
* @var string[]
*/
public $headers;
/**
* @var int
*/
public $statusCode;
/**
* @var AddShortUrlResponseBody
*/
public $body;
protected $_name = [
'headers' => 'headers',
'statusCode' => 'statusCode',
'body' => 'body',
];
public function validate()
{
if (\is_array($this->headers)) {
Model::validateArray($this->headers);
}
if (null !== $this->body) {
$this->body->validate();
}
parent::validate();
}
public function toArray($noStream = false)
{
$res = [];
if (null !== $this->headers) {
if (\is_array($this->headers)) {
$res['headers'] = [];
foreach ($this->headers as $key1 => $value1) {
$res['headers'][$key1] = $value1;
}
}
}
if (null !== $this->statusCode) {
$res['statusCode'] = $this->statusCode;
}
if (null !== $this->body) {
$res['body'] = null !== $this->body ? $this->body->toArray($noStream) : $this->body;
}
return $res;
}
public function toMap($noStream = false)
{
return $this->toArray($noStream);
}
public static function fromMap($map = [])
{
$model = new self();
if (isset($map['headers'])) {
if (!empty($map['headers'])) {
$model->headers = [];
foreach ($map['headers'] as $key1 => $value1) {
$model->headers[$key1] = $value1;
}
}
}
if (isset($map['statusCode'])) {
$model->statusCode = $map['statusCode'];
}
if (isset($map['body'])) {
$model->body = AddShortUrlResponseBody::fromMap($map['body']);
}
return $model;
}
}

View File

@@ -0,0 +1,94 @@
<?php
// This file is auto-generated, don't edit it. Thanks.
namespace AlibabaCloud\SDK\Dysmsapi\V20170525\Models;
use AlibabaCloud\Dara\Model;
use AlibabaCloud\SDK\Dysmsapi\V20170525\Models\AddShortUrlResponseBody\data;
class AddShortUrlResponseBody extends Model
{
/**
* @var string
*/
public $code;
/**
* @var data
*/
public $data;
/**
* @var string
*/
public $message;
/**
* @var string
*/
public $requestId;
protected $_name = [
'code' => 'Code',
'data' => 'Data',
'message' => 'Message',
'requestId' => 'RequestId',
];
public function validate()
{
if (null !== $this->data) {
$this->data->validate();
}
parent::validate();
}
public function toArray($noStream = false)
{
$res = [];
if (null !== $this->code) {
$res['Code'] = $this->code;
}
if (null !== $this->data) {
$res['Data'] = null !== $this->data ? $this->data->toArray($noStream) : $this->data;
}
if (null !== $this->message) {
$res['Message'] = $this->message;
}
if (null !== $this->requestId) {
$res['RequestId'] = $this->requestId;
}
return $res;
}
public function toMap($noStream = false)
{
return $this->toArray($noStream);
}
public static function fromMap($map = [])
{
$model = new self();
if (isset($map['Code'])) {
$model->code = $map['Code'];
}
if (isset($map['Data'])) {
$model->data = data::fromMap($map['Data']);
}
if (isset($map['Message'])) {
$model->message = $map['Message'];
}
if (isset($map['RequestId'])) {
$model->requestId = $map['RequestId'];
}
return $model;
}
}

View File

@@ -0,0 +1,76 @@
<?php
// This file is auto-generated, don't edit it. Thanks.
namespace AlibabaCloud\SDK\Dysmsapi\V20170525\Models\AddShortUrlResponseBody;
use AlibabaCloud\Dara\Model;
class data extends Model
{
/**
* @var string
*/
public $expireDate;
/**
* @var string
*/
public $shortUrl;
/**
* @var string
*/
public $sourceUrl;
protected $_name = [
'expireDate' => 'ExpireDate',
'shortUrl' => 'ShortUrl',
'sourceUrl' => 'SourceUrl',
];
public function validate()
{
parent::validate();
}
public function toArray($noStream = false)
{
$res = [];
if (null !== $this->expireDate) {
$res['ExpireDate'] = $this->expireDate;
}
if (null !== $this->shortUrl) {
$res['ShortUrl'] = $this->shortUrl;
}
if (null !== $this->sourceUrl) {
$res['SourceUrl'] = $this->sourceUrl;
}
return $res;
}
public function toMap($noStream = false)
{
return $this->toArray($noStream);
}
public static function fromMap($map = [])
{
$model = new self();
if (isset($map['ExpireDate'])) {
$model->expireDate = $map['ExpireDate'];
}
if (isset($map['ShortUrl'])) {
$model->shortUrl = $map['ShortUrl'];
}
if (isset($map['SourceUrl'])) {
$model->sourceUrl = $map['SourceUrl'];
}
return $model;
}
}

View File

@@ -0,0 +1,162 @@
<?php
// This file is auto-generated, don't edit it. Thanks.
namespace AlibabaCloud\SDK\Dysmsapi\V20170525\Models;
use AlibabaCloud\Dara\Model;
use AlibabaCloud\SDK\Dysmsapi\V20170525\Models\AddSmsSignRequest\signFileList;
class AddSmsSignRequest extends Model
{
/**
* @var int
*/
public $ownerId;
/**
* @var string
*/
public $remark;
/**
* @var string
*/
public $resourceOwnerAccount;
/**
* @var int
*/
public $resourceOwnerId;
/**
* @var signFileList[]
*/
public $signFileList;
/**
* @var string
*/
public $signName;
/**
* @var int
*/
public $signSource;
/**
* @var int
*/
public $signType;
protected $_name = [
'ownerId' => 'OwnerId',
'remark' => 'Remark',
'resourceOwnerAccount' => 'ResourceOwnerAccount',
'resourceOwnerId' => 'ResourceOwnerId',
'signFileList' => 'SignFileList',
'signName' => 'SignName',
'signSource' => 'SignSource',
'signType' => 'SignType',
];
public function validate()
{
if (\is_array($this->signFileList)) {
Model::validateArray($this->signFileList);
}
parent::validate();
}
public function toArray($noStream = false)
{
$res = [];
if (null !== $this->ownerId) {
$res['OwnerId'] = $this->ownerId;
}
if (null !== $this->remark) {
$res['Remark'] = $this->remark;
}
if (null !== $this->resourceOwnerAccount) {
$res['ResourceOwnerAccount'] = $this->resourceOwnerAccount;
}
if (null !== $this->resourceOwnerId) {
$res['ResourceOwnerId'] = $this->resourceOwnerId;
}
if (null !== $this->signFileList) {
if (\is_array($this->signFileList)) {
$res['SignFileList'] = [];
$n1 = 0;
foreach ($this->signFileList as $item1) {
$res['SignFileList'][$n1++] = null !== $item1 ? $item1->toArray($noStream) : $item1;
}
}
}
if (null !== $this->signName) {
$res['SignName'] = $this->signName;
}
if (null !== $this->signSource) {
$res['SignSource'] = $this->signSource;
}
if (null !== $this->signType) {
$res['SignType'] = $this->signType;
}
return $res;
}
public function toMap($noStream = false)
{
return $this->toArray($noStream);
}
public static function fromMap($map = [])
{
$model = new self();
if (isset($map['OwnerId'])) {
$model->ownerId = $map['OwnerId'];
}
if (isset($map['Remark'])) {
$model->remark = $map['Remark'];
}
if (isset($map['ResourceOwnerAccount'])) {
$model->resourceOwnerAccount = $map['ResourceOwnerAccount'];
}
if (isset($map['ResourceOwnerId'])) {
$model->resourceOwnerId = $map['ResourceOwnerId'];
}
if (isset($map['SignFileList'])) {
if (!empty($map['SignFileList'])) {
$model->signFileList = [];
$n1 = 0;
foreach ($map['SignFileList'] as $item1) {
$model->signFileList[$n1++] = signFileList::fromMap($item1);
}
}
}
if (isset($map['SignName'])) {
$model->signName = $map['SignName'];
}
if (isset($map['SignSource'])) {
$model->signSource = $map['SignSource'];
}
if (isset($map['SignType'])) {
$model->signType = $map['SignType'];
}
return $model;
}
}

View File

@@ -0,0 +1,62 @@
<?php
// This file is auto-generated, don't edit it. Thanks.
namespace AlibabaCloud\SDK\Dysmsapi\V20170525\Models\AddSmsSignRequest;
use AlibabaCloud\Dara\Model;
class signFileList extends Model
{
/**
* @var string
*/
public $fileContents;
/**
* @var string
*/
public $fileSuffix;
protected $_name = [
'fileContents' => 'FileContents',
'fileSuffix' => 'FileSuffix',
];
public function validate()
{
parent::validate();
}
public function toArray($noStream = false)
{
$res = [];
if (null !== $this->fileContents) {
$res['FileContents'] = $this->fileContents;
}
if (null !== $this->fileSuffix) {
$res['FileSuffix'] = $this->fileSuffix;
}
return $res;
}
public function toMap($noStream = false)
{
return $this->toArray($noStream);
}
public static function fromMap($map = [])
{
$model = new self();
if (isset($map['FileContents'])) {
$model->fileContents = $map['FileContents'];
}
if (isset($map['FileSuffix'])) {
$model->fileSuffix = $map['FileSuffix'];
}
return $model;
}
}

View File

@@ -0,0 +1,92 @@
<?php
// This file is auto-generated, don't edit it. Thanks.
namespace AlibabaCloud\SDK\Dysmsapi\V20170525\Models;
use AlibabaCloud\Dara\Model;
class AddSmsSignResponse extends Model
{
/**
* @var string[]
*/
public $headers;
/**
* @var int
*/
public $statusCode;
/**
* @var AddSmsSignResponseBody
*/
public $body;
protected $_name = [
'headers' => 'headers',
'statusCode' => 'statusCode',
'body' => 'body',
];
public function validate()
{
if (\is_array($this->headers)) {
Model::validateArray($this->headers);
}
if (null !== $this->body) {
$this->body->validate();
}
parent::validate();
}
public function toArray($noStream = false)
{
$res = [];
if (null !== $this->headers) {
if (\is_array($this->headers)) {
$res['headers'] = [];
foreach ($this->headers as $key1 => $value1) {
$res['headers'][$key1] = $value1;
}
}
}
if (null !== $this->statusCode) {
$res['statusCode'] = $this->statusCode;
}
if (null !== $this->body) {
$res['body'] = null !== $this->body ? $this->body->toArray($noStream) : $this->body;
}
return $res;
}
public function toMap($noStream = false)
{
return $this->toArray($noStream);
}
public static function fromMap($map = [])
{
$model = new self();
if (isset($map['headers'])) {
if (!empty($map['headers'])) {
$model->headers = [];
foreach ($map['headers'] as $key1 => $value1) {
$model->headers[$key1] = $value1;
}
}
}
if (isset($map['statusCode'])) {
$model->statusCode = $map['statusCode'];
}
if (isset($map['body'])) {
$model->body = AddSmsSignResponseBody::fromMap($map['body']);
}
return $model;
}
}

View File

@@ -0,0 +1,90 @@
<?php
// This file is auto-generated, don't edit it. Thanks.
namespace AlibabaCloud\SDK\Dysmsapi\V20170525\Models;
use AlibabaCloud\Dara\Model;
class AddSmsSignResponseBody extends Model
{
/**
* @var string
*/
public $code;
/**
* @var string
*/
public $message;
/**
* @var string
*/
public $requestId;
/**
* @var string
*/
public $signName;
protected $_name = [
'code' => 'Code',
'message' => 'Message',
'requestId' => 'RequestId',
'signName' => 'SignName',
];
public function validate()
{
parent::validate();
}
public function toArray($noStream = false)
{
$res = [];
if (null !== $this->code) {
$res['Code'] = $this->code;
}
if (null !== $this->message) {
$res['Message'] = $this->message;
}
if (null !== $this->requestId) {
$res['RequestId'] = $this->requestId;
}
if (null !== $this->signName) {
$res['SignName'] = $this->signName;
}
return $res;
}
public function toMap($noStream = false)
{
return $this->toArray($noStream);
}
public static function fromMap($map = [])
{
$model = new self();
if (isset($map['Code'])) {
$model->code = $map['Code'];
}
if (isset($map['Message'])) {
$model->message = $map['Message'];
}
if (isset($map['RequestId'])) {
$model->requestId = $map['RequestId'];
}
if (isset($map['SignName'])) {
$model->signName = $map['SignName'];
}
return $model;
}
}

View File

@@ -0,0 +1,132 @@
<?php
// This file is auto-generated, don't edit it. Thanks.
namespace AlibabaCloud\SDK\Dysmsapi\V20170525\Models;
use AlibabaCloud\Dara\Model;
class AddSmsTemplateRequest extends Model
{
/**
* @var int
*/
public $ownerId;
/**
* @var string
*/
public $remark;
/**
* @var string
*/
public $resourceOwnerAccount;
/**
* @var int
*/
public $resourceOwnerId;
/**
* @var string
*/
public $templateContent;
/**
* @var string
*/
public $templateName;
/**
* @var int
*/
public $templateType;
protected $_name = [
'ownerId' => 'OwnerId',
'remark' => 'Remark',
'resourceOwnerAccount' => 'ResourceOwnerAccount',
'resourceOwnerId' => 'ResourceOwnerId',
'templateContent' => 'TemplateContent',
'templateName' => 'TemplateName',
'templateType' => 'TemplateType',
];
public function validate()
{
parent::validate();
}
public function toArray($noStream = false)
{
$res = [];
if (null !== $this->ownerId) {
$res['OwnerId'] = $this->ownerId;
}
if (null !== $this->remark) {
$res['Remark'] = $this->remark;
}
if (null !== $this->resourceOwnerAccount) {
$res['ResourceOwnerAccount'] = $this->resourceOwnerAccount;
}
if (null !== $this->resourceOwnerId) {
$res['ResourceOwnerId'] = $this->resourceOwnerId;
}
if (null !== $this->templateContent) {
$res['TemplateContent'] = $this->templateContent;
}
if (null !== $this->templateName) {
$res['TemplateName'] = $this->templateName;
}
if (null !== $this->templateType) {
$res['TemplateType'] = $this->templateType;
}
return $res;
}
public function toMap($noStream = false)
{
return $this->toArray($noStream);
}
public static function fromMap($map = [])
{
$model = new self();
if (isset($map['OwnerId'])) {
$model->ownerId = $map['OwnerId'];
}
if (isset($map['Remark'])) {
$model->remark = $map['Remark'];
}
if (isset($map['ResourceOwnerAccount'])) {
$model->resourceOwnerAccount = $map['ResourceOwnerAccount'];
}
if (isset($map['ResourceOwnerId'])) {
$model->resourceOwnerId = $map['ResourceOwnerId'];
}
if (isset($map['TemplateContent'])) {
$model->templateContent = $map['TemplateContent'];
}
if (isset($map['TemplateName'])) {
$model->templateName = $map['TemplateName'];
}
if (isset($map['TemplateType'])) {
$model->templateType = $map['TemplateType'];
}
return $model;
}
}

View File

@@ -0,0 +1,92 @@
<?php
// This file is auto-generated, don't edit it. Thanks.
namespace AlibabaCloud\SDK\Dysmsapi\V20170525\Models;
use AlibabaCloud\Dara\Model;
class AddSmsTemplateResponse extends Model
{
/**
* @var string[]
*/
public $headers;
/**
* @var int
*/
public $statusCode;
/**
* @var AddSmsTemplateResponseBody
*/
public $body;
protected $_name = [
'headers' => 'headers',
'statusCode' => 'statusCode',
'body' => 'body',
];
public function validate()
{
if (\is_array($this->headers)) {
Model::validateArray($this->headers);
}
if (null !== $this->body) {
$this->body->validate();
}
parent::validate();
}
public function toArray($noStream = false)
{
$res = [];
if (null !== $this->headers) {
if (\is_array($this->headers)) {
$res['headers'] = [];
foreach ($this->headers as $key1 => $value1) {
$res['headers'][$key1] = $value1;
}
}
}
if (null !== $this->statusCode) {
$res['statusCode'] = $this->statusCode;
}
if (null !== $this->body) {
$res['body'] = null !== $this->body ? $this->body->toArray($noStream) : $this->body;
}
return $res;
}
public function toMap($noStream = false)
{
return $this->toArray($noStream);
}
public static function fromMap($map = [])
{
$model = new self();
if (isset($map['headers'])) {
if (!empty($map['headers'])) {
$model->headers = [];
foreach ($map['headers'] as $key1 => $value1) {
$model->headers[$key1] = $value1;
}
}
}
if (isset($map['statusCode'])) {
$model->statusCode = $map['statusCode'];
}
if (isset($map['body'])) {
$model->body = AddSmsTemplateResponseBody::fromMap($map['body']);
}
return $model;
}
}

View File

@@ -0,0 +1,90 @@
<?php
// This file is auto-generated, don't edit it. Thanks.
namespace AlibabaCloud\SDK\Dysmsapi\V20170525\Models;
use AlibabaCloud\Dara\Model;
class AddSmsTemplateResponseBody extends Model
{
/**
* @var string
*/
public $code;
/**
* @var string
*/
public $message;
/**
* @var string
*/
public $requestId;
/**
* @var string
*/
public $templateCode;
protected $_name = [
'code' => 'Code',
'message' => 'Message',
'requestId' => 'RequestId',
'templateCode' => 'TemplateCode',
];
public function validate()
{
parent::validate();
}
public function toArray($noStream = false)
{
$res = [];
if (null !== $this->code) {
$res['Code'] = $this->code;
}
if (null !== $this->message) {
$res['Message'] = $this->message;
}
if (null !== $this->requestId) {
$res['RequestId'] = $this->requestId;
}
if (null !== $this->templateCode) {
$res['TemplateCode'] = $this->templateCode;
}
return $res;
}
public function toMap($noStream = false)
{
return $this->toArray($noStream);
}
public static function fromMap($map = [])
{
$model = new self();
if (isset($map['Code'])) {
$model->code = $map['Code'];
}
if (isset($map['Message'])) {
$model->message = $map['Message'];
}
if (isset($map['RequestId'])) {
$model->requestId = $map['RequestId'];
}
if (isset($map['TemplateCode'])) {
$model->templateCode = $map['TemplateCode'];
}
return $model;
}
}

View File

@@ -0,0 +1,118 @@
<?php
// This file is auto-generated, don't edit it. Thanks.
namespace AlibabaCloud\SDK\Dysmsapi\V20170525\Models;
use AlibabaCloud\Dara\Model;
class ChangeSignatureQualificationRequest extends Model
{
/**
* @var int
*/
public $authorizationLetterId;
/**
* @var int
*/
public $ownerId;
/**
* @var int
*/
public $qualificationId;
/**
* @var string
*/
public $resourceOwnerAccount;
/**
* @var int
*/
public $resourceOwnerId;
/**
* @var string
*/
public $signatureName;
protected $_name = [
'authorizationLetterId' => 'AuthorizationLetterId',
'ownerId' => 'OwnerId',
'qualificationId' => 'QualificationId',
'resourceOwnerAccount' => 'ResourceOwnerAccount',
'resourceOwnerId' => 'ResourceOwnerId',
'signatureName' => 'SignatureName',
];
public function validate()
{
parent::validate();
}
public function toArray($noStream = false)
{
$res = [];
if (null !== $this->authorizationLetterId) {
$res['AuthorizationLetterId'] = $this->authorizationLetterId;
}
if (null !== $this->ownerId) {
$res['OwnerId'] = $this->ownerId;
}
if (null !== $this->qualificationId) {
$res['QualificationId'] = $this->qualificationId;
}
if (null !== $this->resourceOwnerAccount) {
$res['ResourceOwnerAccount'] = $this->resourceOwnerAccount;
}
if (null !== $this->resourceOwnerId) {
$res['ResourceOwnerId'] = $this->resourceOwnerId;
}
if (null !== $this->signatureName) {
$res['SignatureName'] = $this->signatureName;
}
return $res;
}
public function toMap($noStream = false)
{
return $this->toArray($noStream);
}
public static function fromMap($map = [])
{
$model = new self();
if (isset($map['AuthorizationLetterId'])) {
$model->authorizationLetterId = $map['AuthorizationLetterId'];
}
if (isset($map['OwnerId'])) {
$model->ownerId = $map['OwnerId'];
}
if (isset($map['QualificationId'])) {
$model->qualificationId = $map['QualificationId'];
}
if (isset($map['ResourceOwnerAccount'])) {
$model->resourceOwnerAccount = $map['ResourceOwnerAccount'];
}
if (isset($map['ResourceOwnerId'])) {
$model->resourceOwnerId = $map['ResourceOwnerId'];
}
if (isset($map['SignatureName'])) {
$model->signatureName = $map['SignatureName'];
}
return $model;
}
}

View File

@@ -0,0 +1,92 @@
<?php
// This file is auto-generated, don't edit it. Thanks.
namespace AlibabaCloud\SDK\Dysmsapi\V20170525\Models;
use AlibabaCloud\Dara\Model;
class ChangeSignatureQualificationResponse extends Model
{
/**
* @var string[]
*/
public $headers;
/**
* @var int
*/
public $statusCode;
/**
* @var ChangeSignatureQualificationResponseBody
*/
public $body;
protected $_name = [
'headers' => 'headers',
'statusCode' => 'statusCode',
'body' => 'body',
];
public function validate()
{
if (\is_array($this->headers)) {
Model::validateArray($this->headers);
}
if (null !== $this->body) {
$this->body->validate();
}
parent::validate();
}
public function toArray($noStream = false)
{
$res = [];
if (null !== $this->headers) {
if (\is_array($this->headers)) {
$res['headers'] = [];
foreach ($this->headers as $key1 => $value1) {
$res['headers'][$key1] = $value1;
}
}
}
if (null !== $this->statusCode) {
$res['statusCode'] = $this->statusCode;
}
if (null !== $this->body) {
$res['body'] = null !== $this->body ? $this->body->toArray($noStream) : $this->body;
}
return $res;
}
public function toMap($noStream = false)
{
return $this->toArray($noStream);
}
public static function fromMap($map = [])
{
$model = new self();
if (isset($map['headers'])) {
if (!empty($map['headers'])) {
$model->headers = [];
foreach ($map['headers'] as $key1 => $value1) {
$model->headers[$key1] = $value1;
}
}
}
if (isset($map['statusCode'])) {
$model->statusCode = $map['statusCode'];
}
if (isset($map['body'])) {
$model->body = ChangeSignatureQualificationResponseBody::fromMap($map['body']);
}
return $model;
}
}

View File

@@ -0,0 +1,122 @@
<?php
// This file is auto-generated, don't edit it. Thanks.
namespace AlibabaCloud\SDK\Dysmsapi\V20170525\Models;
use AlibabaCloud\Dara\Model;
use AlibabaCloud\SDK\Dysmsapi\V20170525\Models\ChangeSignatureQualificationResponseBody\data;
class ChangeSignatureQualificationResponseBody extends Model
{
/**
* @var string
*/
public $accessDeniedDetail;
/**
* @var string
*/
public $code;
/**
* @var data
*/
public $data;
/**
* @var string
*/
public $message;
/**
* @var string
*/
public $requestId;
/**
* @var bool
*/
public $success;
protected $_name = [
'accessDeniedDetail' => 'AccessDeniedDetail',
'code' => 'Code',
'data' => 'Data',
'message' => 'Message',
'requestId' => 'RequestId',
'success' => 'Success',
];
public function validate()
{
if (null !== $this->data) {
$this->data->validate();
}
parent::validate();
}
public function toArray($noStream = false)
{
$res = [];
if (null !== $this->accessDeniedDetail) {
$res['AccessDeniedDetail'] = $this->accessDeniedDetail;
}
if (null !== $this->code) {
$res['Code'] = $this->code;
}
if (null !== $this->data) {
$res['Data'] = null !== $this->data ? $this->data->toArray($noStream) : $this->data;
}
if (null !== $this->message) {
$res['Message'] = $this->message;
}
if (null !== $this->requestId) {
$res['RequestId'] = $this->requestId;
}
if (null !== $this->success) {
$res['Success'] = $this->success;
}
return $res;
}
public function toMap($noStream = false)
{
return $this->toArray($noStream);
}
public static function fromMap($map = [])
{
$model = new self();
if (isset($map['AccessDeniedDetail'])) {
$model->accessDeniedDetail = $map['AccessDeniedDetail'];
}
if (isset($map['Code'])) {
$model->code = $map['Code'];
}
if (isset($map['Data'])) {
$model->data = data::fromMap($map['Data']);
}
if (isset($map['Message'])) {
$model->message = $map['Message'];
}
if (isset($map['RequestId'])) {
$model->requestId = $map['RequestId'];
}
if (isset($map['Success'])) {
$model->success = $map['Success'];
}
return $model;
}
}

View File

@@ -0,0 +1,103 @@
<?php
// This file is auto-generated, don't edit it. Thanks.
namespace AlibabaCloud\SDK\Dysmsapi\V20170525\Models\ChangeSignatureQualificationResponseBody;
use AlibabaCloud\Dara\Model;
class data extends Model
{
/**
* @var mixed[]
*/
public $data;
/**
* @var string
*/
public $errCode;
/**
* @var string
*/
public $errMessage;
/**
* @var bool
*/
public $success;
protected $_name = [
'data' => 'Data',
'errCode' => 'ErrCode',
'errMessage' => 'ErrMessage',
'success' => 'Success',
];
public function validate()
{
if (\is_array($this->data)) {
Model::validateArray($this->data);
}
parent::validate();
}
public function toArray($noStream = false)
{
$res = [];
if (null !== $this->data) {
if (\is_array($this->data)) {
$res['Data'] = [];
foreach ($this->data as $key1 => $value1) {
$res['Data'][$key1] = $value1;
}
}
}
if (null !== $this->errCode) {
$res['ErrCode'] = $this->errCode;
}
if (null !== $this->errMessage) {
$res['ErrMessage'] = $this->errMessage;
}
if (null !== $this->success) {
$res['Success'] = $this->success;
}
return $res;
}
public function toMap($noStream = false)
{
return $this->toArray($noStream);
}
public static function fromMap($map = [])
{
$model = new self();
if (isset($map['Data'])) {
if (!empty($map['Data'])) {
$model->data = [];
foreach ($map['Data'] as $key1 => $value1) {
$model->data[$key1] = $value1;
}
}
}
if (isset($map['ErrCode'])) {
$model->errCode = $map['ErrCode'];
}
if (isset($map['ErrMessage'])) {
$model->errMessage = $map['ErrMessage'];
}
if (isset($map['Success'])) {
$model->success = $map['Success'];
}
return $model;
}
}

View File

@@ -0,0 +1,87 @@
<?php
// This file is auto-generated, don't edit it. Thanks.
namespace AlibabaCloud\SDK\Dysmsapi\V20170525\Models;
use AlibabaCloud\Dara\Model;
class CheckMobilesCardSupportRequest extends Model
{
/**
* @var mixed[][]
*/
public $mobiles;
/**
* @var string
*/
public $templateCode;
protected $_name = [
'mobiles' => 'Mobiles',
'templateCode' => 'TemplateCode',
];
public function validate()
{
if (\is_array($this->mobiles)) {
Model::validateArray($this->mobiles);
}
parent::validate();
}
public function toArray($noStream = false)
{
$res = [];
if (null !== $this->mobiles) {
if (\is_array($this->mobiles)) {
$res['Mobiles'] = [];
$n1 = 0;
foreach ($this->mobiles as $item1) {
if (\is_array($item1)) {
$res['Mobiles'][$n1++] = [];
foreach ($item1 as $key2 => $value2) {
$res['Mobiles'][$n1++][$key2] = $value2;
}
}
}
}
}
if (null !== $this->templateCode) {
$res['TemplateCode'] = $this->templateCode;
}
return $res;
}
public function toMap($noStream = false)
{
return $this->toArray($noStream);
}
public static function fromMap($map = [])
{
$model = new self();
if (isset($map['Mobiles'])) {
if (!empty($map['Mobiles'])) {
$model->mobiles = [];
$n1 = 0;
foreach ($map['Mobiles'] as $item1) {
if (!empty($item1)) {
$model->mobiles[$n1++] = [];
foreach ($item1 as $key2 => $value2) {
$model->mobiles[$n1++][$key2] = $value2;
}
}
}
}
}
if (isset($map['TemplateCode'])) {
$model->templateCode = $map['TemplateCode'];
}
return $model;
}
}

View File

@@ -0,0 +1,92 @@
<?php
// This file is auto-generated, don't edit it. Thanks.
namespace AlibabaCloud\SDK\Dysmsapi\V20170525\Models;
use AlibabaCloud\Dara\Model;
class CheckMobilesCardSupportResponse extends Model
{
/**
* @var string[]
*/
public $headers;
/**
* @var int
*/
public $statusCode;
/**
* @var CheckMobilesCardSupportResponseBody
*/
public $body;
protected $_name = [
'headers' => 'headers',
'statusCode' => 'statusCode',
'body' => 'body',
];
public function validate()
{
if (\is_array($this->headers)) {
Model::validateArray($this->headers);
}
if (null !== $this->body) {
$this->body->validate();
}
parent::validate();
}
public function toArray($noStream = false)
{
$res = [];
if (null !== $this->headers) {
if (\is_array($this->headers)) {
$res['headers'] = [];
foreach ($this->headers as $key1 => $value1) {
$res['headers'][$key1] = $value1;
}
}
}
if (null !== $this->statusCode) {
$res['statusCode'] = $this->statusCode;
}
if (null !== $this->body) {
$res['body'] = null !== $this->body ? $this->body->toArray($noStream) : $this->body;
}
return $res;
}
public function toMap($noStream = false)
{
return $this->toArray($noStream);
}
public static function fromMap($map = [])
{
$model = new self();
if (isset($map['headers'])) {
if (!empty($map['headers'])) {
$model->headers = [];
foreach ($map['headers'] as $key1 => $value1) {
$model->headers[$key1] = $value1;
}
}
}
if (isset($map['statusCode'])) {
$model->statusCode = $map['statusCode'];
}
if (isset($map['body'])) {
$model->body = CheckMobilesCardSupportResponseBody::fromMap($map['body']);
}
return $model;
}
}

View File

@@ -0,0 +1,94 @@
<?php
// This file is auto-generated, don't edit it. Thanks.
namespace AlibabaCloud\SDK\Dysmsapi\V20170525\Models;
use AlibabaCloud\Dara\Model;
use AlibabaCloud\SDK\Dysmsapi\V20170525\Models\CheckMobilesCardSupportResponseBody\data;
class CheckMobilesCardSupportResponseBody extends Model
{
/**
* @var string
*/
public $code;
/**
* @var data
*/
public $data;
/**
* @var string
*/
public $requestId;
/**
* @var bool
*/
public $success;
protected $_name = [
'code' => 'Code',
'data' => 'Data',
'requestId' => 'RequestId',
'success' => 'Success',
];
public function validate()
{
if (null !== $this->data) {
$this->data->validate();
}
parent::validate();
}
public function toArray($noStream = false)
{
$res = [];
if (null !== $this->code) {
$res['Code'] = $this->code;
}
if (null !== $this->data) {
$res['Data'] = null !== $this->data ? $this->data->toArray($noStream) : $this->data;
}
if (null !== $this->requestId) {
$res['RequestId'] = $this->requestId;
}
if (null !== $this->success) {
$res['Success'] = $this->success;
}
return $res;
}
public function toMap($noStream = false)
{
return $this->toArray($noStream);
}
public static function fromMap($map = [])
{
$model = new self();
if (isset($map['Code'])) {
$model->code = $map['Code'];
}
if (isset($map['Data'])) {
$model->data = data::fromMap($map['Data']);
}
if (isset($map['RequestId'])) {
$model->requestId = $map['RequestId'];
}
if (isset($map['Success'])) {
$model->success = $map['Success'];
}
return $model;
}
}

View File

@@ -0,0 +1,64 @@
<?php
// This file is auto-generated, don't edit it. Thanks.
namespace AlibabaCloud\SDK\Dysmsapi\V20170525\Models\CheckMobilesCardSupportResponseBody;
use AlibabaCloud\Dara\Model;
use AlibabaCloud\SDK\Dysmsapi\V20170525\Models\CheckMobilesCardSupportResponseBody\data\queryResult;
class data extends Model
{
/**
* @var queryResult[]
*/
public $queryResult;
protected $_name = [
'queryResult' => 'queryResult',
];
public function validate()
{
if (\is_array($this->queryResult)) {
Model::validateArray($this->queryResult);
}
parent::validate();
}
public function toArray($noStream = false)
{
$res = [];
if (null !== $this->queryResult) {
if (\is_array($this->queryResult)) {
$res['queryResult'] = [];
$n1 = 0;
foreach ($this->queryResult as $item1) {
$res['queryResult'][$n1++] = null !== $item1 ? $item1->toArray($noStream) : $item1;
}
}
}
return $res;
}
public function toMap($noStream = false)
{
return $this->toArray($noStream);
}
public static function fromMap($map = [])
{
$model = new self();
if (isset($map['queryResult'])) {
if (!empty($map['queryResult'])) {
$model->queryResult = [];
$n1 = 0;
foreach ($map['queryResult'] as $item1) {
$model->queryResult[$n1++] = queryResult::fromMap($item1);
}
}
}
return $model;
}
}

View File

@@ -0,0 +1,62 @@
<?php
// This file is auto-generated, don't edit it. Thanks.
namespace AlibabaCloud\SDK\Dysmsapi\V20170525\Models\CheckMobilesCardSupportResponseBody\data;
use AlibabaCloud\Dara\Model;
class queryResult extends Model
{
/**
* @var string
*/
public $mobile;
/**
* @var bool
*/
public $support;
protected $_name = [
'mobile' => 'mobile',
'support' => 'support',
];
public function validate()
{
parent::validate();
}
public function toArray($noStream = false)
{
$res = [];
if (null !== $this->mobile) {
$res['mobile'] = $this->mobile;
}
if (null !== $this->support) {
$res['support'] = $this->support;
}
return $res;
}
public function toMap($noStream = false)
{
return $this->toArray($noStream);
}
public static function fromMap($map = [])
{
$model = new self();
if (isset($map['mobile'])) {
$model->mobile = $map['mobile'];
}
if (isset($map['support'])) {
$model->support = $map['support'];
}
return $model;
}
}

View File

@@ -0,0 +1,104 @@
<?php
// This file is auto-generated, don't edit it. Thanks.
namespace AlibabaCloud\SDK\Dysmsapi\V20170525\Models;
use AlibabaCloud\Dara\Model;
class ConversionDataIntlRequest extends Model
{
/**
* @var string
*/
public $conversionRate;
/**
* @var int
*/
public $ownerId;
/**
* @var int
*/
public $reportTime;
/**
* @var string
*/
public $resourceOwnerAccount;
/**
* @var int
*/
public $resourceOwnerId;
protected $_name = [
'conversionRate' => 'ConversionRate',
'ownerId' => 'OwnerId',
'reportTime' => 'ReportTime',
'resourceOwnerAccount' => 'ResourceOwnerAccount',
'resourceOwnerId' => 'ResourceOwnerId',
];
public function validate()
{
parent::validate();
}
public function toArray($noStream = false)
{
$res = [];
if (null !== $this->conversionRate) {
$res['ConversionRate'] = $this->conversionRate;
}
if (null !== $this->ownerId) {
$res['OwnerId'] = $this->ownerId;
}
if (null !== $this->reportTime) {
$res['ReportTime'] = $this->reportTime;
}
if (null !== $this->resourceOwnerAccount) {
$res['ResourceOwnerAccount'] = $this->resourceOwnerAccount;
}
if (null !== $this->resourceOwnerId) {
$res['ResourceOwnerId'] = $this->resourceOwnerId;
}
return $res;
}
public function toMap($noStream = false)
{
return $this->toArray($noStream);
}
public static function fromMap($map = [])
{
$model = new self();
if (isset($map['ConversionRate'])) {
$model->conversionRate = $map['ConversionRate'];
}
if (isset($map['OwnerId'])) {
$model->ownerId = $map['OwnerId'];
}
if (isset($map['ReportTime'])) {
$model->reportTime = $map['ReportTime'];
}
if (isset($map['ResourceOwnerAccount'])) {
$model->resourceOwnerAccount = $map['ResourceOwnerAccount'];
}
if (isset($map['ResourceOwnerId'])) {
$model->resourceOwnerId = $map['ResourceOwnerId'];
}
return $model;
}
}

View File

@@ -0,0 +1,92 @@
<?php
// This file is auto-generated, don't edit it. Thanks.
namespace AlibabaCloud\SDK\Dysmsapi\V20170525\Models;
use AlibabaCloud\Dara\Model;
class ConversionDataIntlResponse extends Model
{
/**
* @var string[]
*/
public $headers;
/**
* @var int
*/
public $statusCode;
/**
* @var ConversionDataIntlResponseBody
*/
public $body;
protected $_name = [
'headers' => 'headers',
'statusCode' => 'statusCode',
'body' => 'body',
];
public function validate()
{
if (\is_array($this->headers)) {
Model::validateArray($this->headers);
}
if (null !== $this->body) {
$this->body->validate();
}
parent::validate();
}
public function toArray($noStream = false)
{
$res = [];
if (null !== $this->headers) {
if (\is_array($this->headers)) {
$res['headers'] = [];
foreach ($this->headers as $key1 => $value1) {
$res['headers'][$key1] = $value1;
}
}
}
if (null !== $this->statusCode) {
$res['statusCode'] = $this->statusCode;
}
if (null !== $this->body) {
$res['body'] = null !== $this->body ? $this->body->toArray($noStream) : $this->body;
}
return $res;
}
public function toMap($noStream = false)
{
return $this->toArray($noStream);
}
public static function fromMap($map = [])
{
$model = new self();
if (isset($map['headers'])) {
if (!empty($map['headers'])) {
$model->headers = [];
foreach ($map['headers'] as $key1 => $value1) {
$model->headers[$key1] = $value1;
}
}
}
if (isset($map['statusCode'])) {
$model->statusCode = $map['statusCode'];
}
if (isset($map['body'])) {
$model->body = ConversionDataIntlResponseBody::fromMap($map['body']);
}
return $model;
}
}

View File

@@ -0,0 +1,76 @@
<?php
// This file is auto-generated, don't edit it. Thanks.
namespace AlibabaCloud\SDK\Dysmsapi\V20170525\Models;
use AlibabaCloud\Dara\Model;
class ConversionDataIntlResponseBody extends Model
{
/**
* @var string
*/
public $code;
/**
* @var string
*/
public $message;
/**
* @var string
*/
public $requestId;
protected $_name = [
'code' => 'Code',
'message' => 'Message',
'requestId' => 'RequestId',
];
public function validate()
{
parent::validate();
}
public function toArray($noStream = false)
{
$res = [];
if (null !== $this->code) {
$res['Code'] = $this->code;
}
if (null !== $this->message) {
$res['Message'] = $this->message;
}
if (null !== $this->requestId) {
$res['RequestId'] = $this->requestId;
}
return $res;
}
public function toMap($noStream = false)
{
return $this->toArray($noStream);
}
public static function fromMap($map = [])
{
$model = new self();
if (isset($map['Code'])) {
$model->code = $map['Code'];
}
if (isset($map['Message'])) {
$model->message = $map['Message'];
}
if (isset($map['RequestId'])) {
$model->requestId = $map['RequestId'];
}
return $model;
}
}

View File

@@ -0,0 +1,103 @@
<?php
// This file is auto-generated, don't edit it. Thanks.
namespace AlibabaCloud\SDK\Dysmsapi\V20170525\Models;
use AlibabaCloud\Dara\Model;
class CreateCardSmsTemplateRequest extends Model
{
/**
* @var string
*/
public $factorys;
/**
* @var string
*/
public $memo;
/**
* @var mixed[]
*/
public $template;
/**
* @var string
*/
public $templateName;
protected $_name = [
'factorys' => 'Factorys',
'memo' => 'Memo',
'template' => 'Template',
'templateName' => 'TemplateName',
];
public function validate()
{
if (\is_array($this->template)) {
Model::validateArray($this->template);
}
parent::validate();
}
public function toArray($noStream = false)
{
$res = [];
if (null !== $this->factorys) {
$res['Factorys'] = $this->factorys;
}
if (null !== $this->memo) {
$res['Memo'] = $this->memo;
}
if (null !== $this->template) {
if (\is_array($this->template)) {
$res['Template'] = [];
foreach ($this->template as $key1 => $value1) {
$res['Template'][$key1] = $value1;
}
}
}
if (null !== $this->templateName) {
$res['TemplateName'] = $this->templateName;
}
return $res;
}
public function toMap($noStream = false)
{
return $this->toArray($noStream);
}
public static function fromMap($map = [])
{
$model = new self();
if (isset($map['Factorys'])) {
$model->factorys = $map['Factorys'];
}
if (isset($map['Memo'])) {
$model->memo = $map['Memo'];
}
if (isset($map['Template'])) {
if (!empty($map['Template'])) {
$model->template = [];
foreach ($map['Template'] as $key1 => $value1) {
$model->template[$key1] = $value1;
}
}
}
if (isset($map['TemplateName'])) {
$model->templateName = $map['TemplateName'];
}
return $model;
}
}

View File

@@ -0,0 +1,92 @@
<?php
// This file is auto-generated, don't edit it. Thanks.
namespace AlibabaCloud\SDK\Dysmsapi\V20170525\Models;
use AlibabaCloud\Dara\Model;
class CreateCardSmsTemplateResponse extends Model
{
/**
* @var string[]
*/
public $headers;
/**
* @var int
*/
public $statusCode;
/**
* @var CreateCardSmsTemplateResponseBody
*/
public $body;
protected $_name = [
'headers' => 'headers',
'statusCode' => 'statusCode',
'body' => 'body',
];
public function validate()
{
if (\is_array($this->headers)) {
Model::validateArray($this->headers);
}
if (null !== $this->body) {
$this->body->validate();
}
parent::validate();
}
public function toArray($noStream = false)
{
$res = [];
if (null !== $this->headers) {
if (\is_array($this->headers)) {
$res['headers'] = [];
foreach ($this->headers as $key1 => $value1) {
$res['headers'][$key1] = $value1;
}
}
}
if (null !== $this->statusCode) {
$res['statusCode'] = $this->statusCode;
}
if (null !== $this->body) {
$res['body'] = null !== $this->body ? $this->body->toArray($noStream) : $this->body;
}
return $res;
}
public function toMap($noStream = false)
{
return $this->toArray($noStream);
}
public static function fromMap($map = [])
{
$model = new self();
if (isset($map['headers'])) {
if (!empty($map['headers'])) {
$model->headers = [];
foreach ($map['headers'] as $key1 => $value1) {
$model->headers[$key1] = $value1;
}
}
}
if (isset($map['statusCode'])) {
$model->statusCode = $map['statusCode'];
}
if (isset($map['body'])) {
$model->body = CreateCardSmsTemplateResponseBody::fromMap($map['body']);
}
return $model;
}
}

View File

@@ -0,0 +1,94 @@
<?php
// This file is auto-generated, don't edit it. Thanks.
namespace AlibabaCloud\SDK\Dysmsapi\V20170525\Models;
use AlibabaCloud\Dara\Model;
use AlibabaCloud\SDK\Dysmsapi\V20170525\Models\CreateCardSmsTemplateResponseBody\data;
class CreateCardSmsTemplateResponseBody extends Model
{
/**
* @var string
*/
public $code;
/**
* @var data
*/
public $data;
/**
* @var string
*/
public $requestId;
/**
* @var bool
*/
public $success;
protected $_name = [
'code' => 'Code',
'data' => 'Data',
'requestId' => 'RequestId',
'success' => 'Success',
];
public function validate()
{
if (null !== $this->data) {
$this->data->validate();
}
parent::validate();
}
public function toArray($noStream = false)
{
$res = [];
if (null !== $this->code) {
$res['Code'] = $this->code;
}
if (null !== $this->data) {
$res['Data'] = null !== $this->data ? $this->data->toArray($noStream) : $this->data;
}
if (null !== $this->requestId) {
$res['RequestId'] = $this->requestId;
}
if (null !== $this->success) {
$res['Success'] = $this->success;
}
return $res;
}
public function toMap($noStream = false)
{
return $this->toArray($noStream);
}
public static function fromMap($map = [])
{
$model = new self();
if (isset($map['Code'])) {
$model->code = $map['Code'];
}
if (isset($map['Data'])) {
$model->data = data::fromMap($map['Data']);
}
if (isset($map['RequestId'])) {
$model->requestId = $map['RequestId'];
}
if (isset($map['Success'])) {
$model->success = $map['Success'];
}
return $model;
}
}

View File

@@ -0,0 +1,48 @@
<?php
// This file is auto-generated, don't edit it. Thanks.
namespace AlibabaCloud\SDK\Dysmsapi\V20170525\Models\CreateCardSmsTemplateResponseBody;
use AlibabaCloud\Dara\Model;
class data extends Model
{
/**
* @var string
*/
public $templateCode;
protected $_name = [
'templateCode' => 'TemplateCode',
];
public function validate()
{
parent::validate();
}
public function toArray($noStream = false)
{
$res = [];
if (null !== $this->templateCode) {
$res['TemplateCode'] = $this->templateCode;
}
return $res;
}
public function toMap($noStream = false)
{
return $this->toArray($noStream);
}
public static function fromMap($map = [])
{
$model = new self();
if (isset($map['TemplateCode'])) {
$model->templateCode = $map['TemplateCode'];
}
return $model;
}
}

View File

@@ -0,0 +1,90 @@
<?php
// This file is auto-generated, don't edit it. Thanks.
namespace AlibabaCloud\SDK\Dysmsapi\V20170525\Models;
use AlibabaCloud\Dara\Model;
class CreateCardSmsTemplateShrinkRequest extends Model
{
/**
* @var string
*/
public $factorys;
/**
* @var string
*/
public $memo;
/**
* @var string
*/
public $templateShrink;
/**
* @var string
*/
public $templateName;
protected $_name = [
'factorys' => 'Factorys',
'memo' => 'Memo',
'templateShrink' => 'Template',
'templateName' => 'TemplateName',
];
public function validate()
{
parent::validate();
}
public function toArray($noStream = false)
{
$res = [];
if (null !== $this->factorys) {
$res['Factorys'] = $this->factorys;
}
if (null !== $this->memo) {
$res['Memo'] = $this->memo;
}
if (null !== $this->templateShrink) {
$res['Template'] = $this->templateShrink;
}
if (null !== $this->templateName) {
$res['TemplateName'] = $this->templateName;
}
return $res;
}
public function toMap($noStream = false)
{
return $this->toArray($noStream);
}
public static function fromMap($map = [])
{
$model = new self();
if (isset($map['Factorys'])) {
$model->factorys = $map['Factorys'];
}
if (isset($map['Memo'])) {
$model->memo = $map['Memo'];
}
if (isset($map['Template'])) {
$model->templateShrink = $map['Template'];
}
if (isset($map['TemplateName'])) {
$model->templateName = $map['TemplateName'];
}
return $model;
}
}

View File

@@ -0,0 +1,118 @@
<?php
// This file is auto-generated, don't edit it. Thanks.
namespace AlibabaCloud\SDK\Dysmsapi\V20170525\Models;
use AlibabaCloud\Dara\Model;
class CreateSmartShortUrlRequest extends Model
{
/**
* @var string
*/
public $outId;
/**
* @var int
*/
public $ownerId;
/**
* @var string
*/
public $phoneNumbers;
/**
* @var string
*/
public $resourceOwnerAccount;
/**
* @var int
*/
public $resourceOwnerId;
/**
* @var string
*/
public $sourceUrl;
protected $_name = [
'outId' => 'OutId',
'ownerId' => 'OwnerId',
'phoneNumbers' => 'PhoneNumbers',
'resourceOwnerAccount' => 'ResourceOwnerAccount',
'resourceOwnerId' => 'ResourceOwnerId',
'sourceUrl' => 'SourceUrl',
];
public function validate()
{
parent::validate();
}
public function toArray($noStream = false)
{
$res = [];
if (null !== $this->outId) {
$res['OutId'] = $this->outId;
}
if (null !== $this->ownerId) {
$res['OwnerId'] = $this->ownerId;
}
if (null !== $this->phoneNumbers) {
$res['PhoneNumbers'] = $this->phoneNumbers;
}
if (null !== $this->resourceOwnerAccount) {
$res['ResourceOwnerAccount'] = $this->resourceOwnerAccount;
}
if (null !== $this->resourceOwnerId) {
$res['ResourceOwnerId'] = $this->resourceOwnerId;
}
if (null !== $this->sourceUrl) {
$res['SourceUrl'] = $this->sourceUrl;
}
return $res;
}
public function toMap($noStream = false)
{
return $this->toArray($noStream);
}
public static function fromMap($map = [])
{
$model = new self();
if (isset($map['OutId'])) {
$model->outId = $map['OutId'];
}
if (isset($map['OwnerId'])) {
$model->ownerId = $map['OwnerId'];
}
if (isset($map['PhoneNumbers'])) {
$model->phoneNumbers = $map['PhoneNumbers'];
}
if (isset($map['ResourceOwnerAccount'])) {
$model->resourceOwnerAccount = $map['ResourceOwnerAccount'];
}
if (isset($map['ResourceOwnerId'])) {
$model->resourceOwnerId = $map['ResourceOwnerId'];
}
if (isset($map['SourceUrl'])) {
$model->sourceUrl = $map['SourceUrl'];
}
return $model;
}
}

View File

@@ -0,0 +1,92 @@
<?php
// This file is auto-generated, don't edit it. Thanks.
namespace AlibabaCloud\SDK\Dysmsapi\V20170525\Models;
use AlibabaCloud\Dara\Model;
class CreateSmartShortUrlResponse extends Model
{
/**
* @var string[]
*/
public $headers;
/**
* @var int
*/
public $statusCode;
/**
* @var CreateSmartShortUrlResponseBody
*/
public $body;
protected $_name = [
'headers' => 'headers',
'statusCode' => 'statusCode',
'body' => 'body',
];
public function validate()
{
if (\is_array($this->headers)) {
Model::validateArray($this->headers);
}
if (null !== $this->body) {
$this->body->validate();
}
parent::validate();
}
public function toArray($noStream = false)
{
$res = [];
if (null !== $this->headers) {
if (\is_array($this->headers)) {
$res['headers'] = [];
foreach ($this->headers as $key1 => $value1) {
$res['headers'][$key1] = $value1;
}
}
}
if (null !== $this->statusCode) {
$res['statusCode'] = $this->statusCode;
}
if (null !== $this->body) {
$res['body'] = null !== $this->body ? $this->body->toArray($noStream) : $this->body;
}
return $res;
}
public function toMap($noStream = false)
{
return $this->toArray($noStream);
}
public static function fromMap($map = [])
{
$model = new self();
if (isset($map['headers'])) {
if (!empty($map['headers'])) {
$model->headers = [];
foreach ($map['headers'] as $key1 => $value1) {
$model->headers[$key1] = $value1;
}
}
}
if (isset($map['statusCode'])) {
$model->statusCode = $map['statusCode'];
}
if (isset($map['body'])) {
$model->body = CreateSmartShortUrlResponseBody::fromMap($map['body']);
}
return $model;
}
}

View File

@@ -0,0 +1,106 @@
<?php
// This file is auto-generated, don't edit it. Thanks.
namespace AlibabaCloud\SDK\Dysmsapi\V20170525\Models;
use AlibabaCloud\Dara\Model;
use AlibabaCloud\SDK\Dysmsapi\V20170525\Models\CreateSmartShortUrlResponseBody\model_;
class CreateSmartShortUrlResponseBody extends Model
{
/**
* @var string
*/
public $code;
/**
* @var string
*/
public $message;
/**
* @var model_[]
*/
public $model;
/**
* @var string
*/
public $requestId;
protected $_name = [
'code' => 'Code',
'message' => 'Message',
'model' => 'Model',
'requestId' => 'RequestId',
];
public function validate()
{
if (\is_array($this->model)) {
Model::validateArray($this->model);
}
parent::validate();
}
public function toArray($noStream = false)
{
$res = [];
if (null !== $this->code) {
$res['Code'] = $this->code;
}
if (null !== $this->message) {
$res['Message'] = $this->message;
}
if (null !== $this->model) {
if (\is_array($this->model)) {
$res['Model'] = [];
$n1 = 0;
foreach ($this->model as $item1) {
$res['Model'][$n1++] = null !== $item1 ? $item1->toArray($noStream) : $item1;
}
}
}
if (null !== $this->requestId) {
$res['RequestId'] = $this->requestId;
}
return $res;
}
public function toMap($noStream = false)
{
return $this->toArray($noStream);
}
public static function fromMap($map = [])
{
$model = new self();
if (isset($map['Code'])) {
$model->code = $map['Code'];
}
if (isset($map['Message'])) {
$model->message = $map['Message'];
}
if (isset($map['Model'])) {
if (!empty($map['Model'])) {
$model->model = [];
$n1 = 0;
foreach ($map['Model'] as $item1) {
$model->model[$n1++] = model_::fromMap($item1);
}
}
}
if (isset($map['RequestId'])) {
$model->requestId = $map['RequestId'];
}
return $model;
}
}

View File

@@ -0,0 +1,104 @@
<?php
// This file is auto-generated, don't edit it. Thanks.
namespace AlibabaCloud\SDK\Dysmsapi\V20170525\Models\CreateSmartShortUrlResponseBody;
use AlibabaCloud\Dara\Model;
class model_ extends Model
{
/**
* @var string
*/
public $domain;
/**
* @var int
*/
public $expiration;
/**
* @var string
*/
public $phoneNumber;
/**
* @var string
*/
public $shortName;
/**
* @var string
*/
public $shortUrl;
protected $_name = [
'domain' => 'Domain',
'expiration' => 'Expiration',
'phoneNumber' => 'PhoneNumber',
'shortName' => 'ShortName',
'shortUrl' => 'ShortUrl',
];
public function validate()
{
parent::validate();
}
public function toArray($noStream = false)
{
$res = [];
if (null !== $this->domain) {
$res['Domain'] = $this->domain;
}
if (null !== $this->expiration) {
$res['Expiration'] = $this->expiration;
}
if (null !== $this->phoneNumber) {
$res['PhoneNumber'] = $this->phoneNumber;
}
if (null !== $this->shortName) {
$res['ShortName'] = $this->shortName;
}
if (null !== $this->shortUrl) {
$res['ShortUrl'] = $this->shortUrl;
}
return $res;
}
public function toMap($noStream = false)
{
return $this->toArray($noStream);
}
public static function fromMap($map = [])
{
$model = new self();
if (isset($map['Domain'])) {
$model->domain = $map['Domain'];
}
if (isset($map['Expiration'])) {
$model->expiration = $map['Expiration'];
}
if (isset($map['PhoneNumber'])) {
$model->phoneNumber = $map['PhoneNumber'];
}
if (isset($map['ShortName'])) {
$model->shortName = $map['ShortName'];
}
if (isset($map['ShortUrl'])) {
$model->shortUrl = $map['ShortUrl'];
}
return $model;
}
}

View File

@@ -0,0 +1,189 @@
<?php
// This file is auto-generated, don't edit it. Thanks.
namespace AlibabaCloud\SDK\Dysmsapi\V20170525\Models;
use AlibabaCloud\Dara\Model;
class CreateSmsAuthorizationLetterRequest extends Model
{
/**
* @var string
*/
public $authorization;
/**
* @var string
*/
public $authorizationLetterExpDate;
/**
* @var string
*/
public $authorizationLetterName;
/**
* @var string
*/
public $authorizationLetterPic;
/**
* @var string
*/
public $organizationCode;
/**
* @var int
*/
public $ownerId;
/**
* @var string
*/
public $proxyAuthorization;
/**
* @var string
*/
public $resourceOwnerAccount;
/**
* @var int
*/
public $resourceOwnerId;
/**
* @var string[]
*/
public $signList;
protected $_name = [
'authorization' => 'Authorization',
'authorizationLetterExpDate' => 'AuthorizationLetterExpDate',
'authorizationLetterName' => 'AuthorizationLetterName',
'authorizationLetterPic' => 'AuthorizationLetterPic',
'organizationCode' => 'OrganizationCode',
'ownerId' => 'OwnerId',
'proxyAuthorization' => 'ProxyAuthorization',
'resourceOwnerAccount' => 'ResourceOwnerAccount',
'resourceOwnerId' => 'ResourceOwnerId',
'signList' => 'SignList',
];
public function validate()
{
if (\is_array($this->signList)) {
Model::validateArray($this->signList);
}
parent::validate();
}
public function toArray($noStream = false)
{
$res = [];
if (null !== $this->authorization) {
$res['Authorization'] = $this->authorization;
}
if (null !== $this->authorizationLetterExpDate) {
$res['AuthorizationLetterExpDate'] = $this->authorizationLetterExpDate;
}
if (null !== $this->authorizationLetterName) {
$res['AuthorizationLetterName'] = $this->authorizationLetterName;
}
if (null !== $this->authorizationLetterPic) {
$res['AuthorizationLetterPic'] = $this->authorizationLetterPic;
}
if (null !== $this->organizationCode) {
$res['OrganizationCode'] = $this->organizationCode;
}
if (null !== $this->ownerId) {
$res['OwnerId'] = $this->ownerId;
}
if (null !== $this->proxyAuthorization) {
$res['ProxyAuthorization'] = $this->proxyAuthorization;
}
if (null !== $this->resourceOwnerAccount) {
$res['ResourceOwnerAccount'] = $this->resourceOwnerAccount;
}
if (null !== $this->resourceOwnerId) {
$res['ResourceOwnerId'] = $this->resourceOwnerId;
}
if (null !== $this->signList) {
if (\is_array($this->signList)) {
$res['SignList'] = [];
$n1 = 0;
foreach ($this->signList as $item1) {
$res['SignList'][$n1++] = $item1;
}
}
}
return $res;
}
public function toMap($noStream = false)
{
return $this->toArray($noStream);
}
public static function fromMap($map = [])
{
$model = new self();
if (isset($map['Authorization'])) {
$model->authorization = $map['Authorization'];
}
if (isset($map['AuthorizationLetterExpDate'])) {
$model->authorizationLetterExpDate = $map['AuthorizationLetterExpDate'];
}
if (isset($map['AuthorizationLetterName'])) {
$model->authorizationLetterName = $map['AuthorizationLetterName'];
}
if (isset($map['AuthorizationLetterPic'])) {
$model->authorizationLetterPic = $map['AuthorizationLetterPic'];
}
if (isset($map['OrganizationCode'])) {
$model->organizationCode = $map['OrganizationCode'];
}
if (isset($map['OwnerId'])) {
$model->ownerId = $map['OwnerId'];
}
if (isset($map['ProxyAuthorization'])) {
$model->proxyAuthorization = $map['ProxyAuthorization'];
}
if (isset($map['ResourceOwnerAccount'])) {
$model->resourceOwnerAccount = $map['ResourceOwnerAccount'];
}
if (isset($map['ResourceOwnerId'])) {
$model->resourceOwnerId = $map['ResourceOwnerId'];
}
if (isset($map['SignList'])) {
if (!empty($map['SignList'])) {
$model->signList = [];
$n1 = 0;
foreach ($map['SignList'] as $item1) {
$model->signList[$n1++] = $item1;
}
}
}
return $model;
}
}

View File

@@ -0,0 +1,92 @@
<?php
// This file is auto-generated, don't edit it. Thanks.
namespace AlibabaCloud\SDK\Dysmsapi\V20170525\Models;
use AlibabaCloud\Dara\Model;
class CreateSmsAuthorizationLetterResponse extends Model
{
/**
* @var string[]
*/
public $headers;
/**
* @var int
*/
public $statusCode;
/**
* @var CreateSmsAuthorizationLetterResponseBody
*/
public $body;
protected $_name = [
'headers' => 'headers',
'statusCode' => 'statusCode',
'body' => 'body',
];
public function validate()
{
if (\is_array($this->headers)) {
Model::validateArray($this->headers);
}
if (null !== $this->body) {
$this->body->validate();
}
parent::validate();
}
public function toArray($noStream = false)
{
$res = [];
if (null !== $this->headers) {
if (\is_array($this->headers)) {
$res['headers'] = [];
foreach ($this->headers as $key1 => $value1) {
$res['headers'][$key1] = $value1;
}
}
}
if (null !== $this->statusCode) {
$res['statusCode'] = $this->statusCode;
}
if (null !== $this->body) {
$res['body'] = null !== $this->body ? $this->body->toArray($noStream) : $this->body;
}
return $res;
}
public function toMap($noStream = false)
{
return $this->toArray($noStream);
}
public static function fromMap($map = [])
{
$model = new self();
if (isset($map['headers'])) {
if (!empty($map['headers'])) {
$model->headers = [];
foreach ($map['headers'] as $key1 => $value1) {
$model->headers[$key1] = $value1;
}
}
}
if (isset($map['statusCode'])) {
$model->statusCode = $map['statusCode'];
}
if (isset($map['body'])) {
$model->body = CreateSmsAuthorizationLetterResponseBody::fromMap($map['body']);
}
return $model;
}
}

View File

@@ -0,0 +1,118 @@
<?php
// This file is auto-generated, don't edit it. Thanks.
namespace AlibabaCloud\SDK\Dysmsapi\V20170525\Models;
use AlibabaCloud\Dara\Model;
class CreateSmsAuthorizationLetterResponseBody extends Model
{
/**
* @var string
*/
public $accessDeniedDetail;
/**
* @var string
*/
public $code;
/**
* @var string
*/
public $data;
/**
* @var string
*/
public $message;
/**
* @var string
*/
public $requestId;
/**
* @var bool
*/
public $success;
protected $_name = [
'accessDeniedDetail' => 'AccessDeniedDetail',
'code' => 'Code',
'data' => 'Data',
'message' => 'Message',
'requestId' => 'RequestId',
'success' => 'Success',
];
public function validate()
{
parent::validate();
}
public function toArray($noStream = false)
{
$res = [];
if (null !== $this->accessDeniedDetail) {
$res['AccessDeniedDetail'] = $this->accessDeniedDetail;
}
if (null !== $this->code) {
$res['Code'] = $this->code;
}
if (null !== $this->data) {
$res['Data'] = $this->data;
}
if (null !== $this->message) {
$res['Message'] = $this->message;
}
if (null !== $this->requestId) {
$res['RequestId'] = $this->requestId;
}
if (null !== $this->success) {
$res['Success'] = $this->success;
}
return $res;
}
public function toMap($noStream = false)
{
return $this->toArray($noStream);
}
public static function fromMap($map = [])
{
$model = new self();
if (isset($map['AccessDeniedDetail'])) {
$model->accessDeniedDetail = $map['AccessDeniedDetail'];
}
if (isset($map['Code'])) {
$model->code = $map['Code'];
}
if (isset($map['Data'])) {
$model->data = $map['Data'];
}
if (isset($map['Message'])) {
$model->message = $map['Message'];
}
if (isset($map['RequestId'])) {
$model->requestId = $map['RequestId'];
}
if (isset($map['Success'])) {
$model->success = $map['Success'];
}
return $model;
}
}

View File

@@ -0,0 +1,174 @@
<?php
// This file is auto-generated, don't edit it. Thanks.
namespace AlibabaCloud\SDK\Dysmsapi\V20170525\Models;
use AlibabaCloud\Dara\Model;
class CreateSmsAuthorizationLetterShrinkRequest extends Model
{
/**
* @var string
*/
public $authorization;
/**
* @var string
*/
public $authorizationLetterExpDate;
/**
* @var string
*/
public $authorizationLetterName;
/**
* @var string
*/
public $authorizationLetterPic;
/**
* @var string
*/
public $organizationCode;
/**
* @var int
*/
public $ownerId;
/**
* @var string
*/
public $proxyAuthorization;
/**
* @var string
*/
public $resourceOwnerAccount;
/**
* @var int
*/
public $resourceOwnerId;
/**
* @var string
*/
public $signListShrink;
protected $_name = [
'authorization' => 'Authorization',
'authorizationLetterExpDate' => 'AuthorizationLetterExpDate',
'authorizationLetterName' => 'AuthorizationLetterName',
'authorizationLetterPic' => 'AuthorizationLetterPic',
'organizationCode' => 'OrganizationCode',
'ownerId' => 'OwnerId',
'proxyAuthorization' => 'ProxyAuthorization',
'resourceOwnerAccount' => 'ResourceOwnerAccount',
'resourceOwnerId' => 'ResourceOwnerId',
'signListShrink' => 'SignList',
];
public function validate()
{
parent::validate();
}
public function toArray($noStream = false)
{
$res = [];
if (null !== $this->authorization) {
$res['Authorization'] = $this->authorization;
}
if (null !== $this->authorizationLetterExpDate) {
$res['AuthorizationLetterExpDate'] = $this->authorizationLetterExpDate;
}
if (null !== $this->authorizationLetterName) {
$res['AuthorizationLetterName'] = $this->authorizationLetterName;
}
if (null !== $this->authorizationLetterPic) {
$res['AuthorizationLetterPic'] = $this->authorizationLetterPic;
}
if (null !== $this->organizationCode) {
$res['OrganizationCode'] = $this->organizationCode;
}
if (null !== $this->ownerId) {
$res['OwnerId'] = $this->ownerId;
}
if (null !== $this->proxyAuthorization) {
$res['ProxyAuthorization'] = $this->proxyAuthorization;
}
if (null !== $this->resourceOwnerAccount) {
$res['ResourceOwnerAccount'] = $this->resourceOwnerAccount;
}
if (null !== $this->resourceOwnerId) {
$res['ResourceOwnerId'] = $this->resourceOwnerId;
}
if (null !== $this->signListShrink) {
$res['SignList'] = $this->signListShrink;
}
return $res;
}
public function toMap($noStream = false)
{
return $this->toArray($noStream);
}
public static function fromMap($map = [])
{
$model = new self();
if (isset($map['Authorization'])) {
$model->authorization = $map['Authorization'];
}
if (isset($map['AuthorizationLetterExpDate'])) {
$model->authorizationLetterExpDate = $map['AuthorizationLetterExpDate'];
}
if (isset($map['AuthorizationLetterName'])) {
$model->authorizationLetterName = $map['AuthorizationLetterName'];
}
if (isset($map['AuthorizationLetterPic'])) {
$model->authorizationLetterPic = $map['AuthorizationLetterPic'];
}
if (isset($map['OrganizationCode'])) {
$model->organizationCode = $map['OrganizationCode'];
}
if (isset($map['OwnerId'])) {
$model->ownerId = $map['OwnerId'];
}
if (isset($map['ProxyAuthorization'])) {
$model->proxyAuthorization = $map['ProxyAuthorization'];
}
if (isset($map['ResourceOwnerAccount'])) {
$model->resourceOwnerAccount = $map['ResourceOwnerAccount'];
}
if (isset($map['ResourceOwnerId'])) {
$model->resourceOwnerId = $map['ResourceOwnerId'];
}
if (isset($map['SignList'])) {
$model->signListShrink = $map['SignList'];
}
return $model;
}
}

View File

@@ -0,0 +1,217 @@
<?php
// This file is auto-generated, don't edit it. Thanks.
namespace AlibabaCloud\SDK\Dysmsapi\V20170525\Models;
use AlibabaCloud\Dara\Model;
class CreateSmsSignRequest extends Model
{
/**
* @var string
*/
public $applySceneContent;
/**
* @var int
*/
public $authorizationLetterId;
/**
* @var string[]
*/
public $moreData;
/**
* @var int
*/
public $ownerId;
/**
* @var int
*/
public $qualificationId;
/**
* @var string
*/
public $remark;
/**
* @var string
*/
public $resourceOwnerAccount;
/**
* @var int
*/
public $resourceOwnerId;
/**
* @var string
*/
public $signName;
/**
* @var int
*/
public $signSource;
/**
* @var int
*/
public $signType;
/**
* @var bool
*/
public $thirdParty;
protected $_name = [
'applySceneContent' => 'ApplySceneContent',
'authorizationLetterId' => 'AuthorizationLetterId',
'moreData' => 'MoreData',
'ownerId' => 'OwnerId',
'qualificationId' => 'QualificationId',
'remark' => 'Remark',
'resourceOwnerAccount' => 'ResourceOwnerAccount',
'resourceOwnerId' => 'ResourceOwnerId',
'signName' => 'SignName',
'signSource' => 'SignSource',
'signType' => 'SignType',
'thirdParty' => 'ThirdParty',
];
public function validate()
{
if (\is_array($this->moreData)) {
Model::validateArray($this->moreData);
}
parent::validate();
}
public function toArray($noStream = false)
{
$res = [];
if (null !== $this->applySceneContent) {
$res['ApplySceneContent'] = $this->applySceneContent;
}
if (null !== $this->authorizationLetterId) {
$res['AuthorizationLetterId'] = $this->authorizationLetterId;
}
if (null !== $this->moreData) {
if (\is_array($this->moreData)) {
$res['MoreData'] = [];
$n1 = 0;
foreach ($this->moreData as $item1) {
$res['MoreData'][$n1++] = $item1;
}
}
}
if (null !== $this->ownerId) {
$res['OwnerId'] = $this->ownerId;
}
if (null !== $this->qualificationId) {
$res['QualificationId'] = $this->qualificationId;
}
if (null !== $this->remark) {
$res['Remark'] = $this->remark;
}
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->signType) {
$res['SignType'] = $this->signType;
}
if (null !== $this->thirdParty) {
$res['ThirdParty'] = $this->thirdParty;
}
return $res;
}
public function toMap($noStream = false)
{
return $this->toArray($noStream);
}
public static function fromMap($map = [])
{
$model = new self();
if (isset($map['ApplySceneContent'])) {
$model->applySceneContent = $map['ApplySceneContent'];
}
if (isset($map['AuthorizationLetterId'])) {
$model->authorizationLetterId = $map['AuthorizationLetterId'];
}
if (isset($map['MoreData'])) {
if (!empty($map['MoreData'])) {
$model->moreData = [];
$n1 = 0;
foreach ($map['MoreData'] as $item1) {
$model->moreData[$n1++] = $item1;
}
}
}
if (isset($map['OwnerId'])) {
$model->ownerId = $map['OwnerId'];
}
if (isset($map['QualificationId'])) {
$model->qualificationId = $map['QualificationId'];
}
if (isset($map['Remark'])) {
$model->remark = $map['Remark'];
}
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['SignType'])) {
$model->signType = $map['SignType'];
}
if (isset($map['ThirdParty'])) {
$model->thirdParty = $map['ThirdParty'];
}
return $model;
}
}

View File

@@ -0,0 +1,92 @@
<?php
// This file is auto-generated, don't edit it. Thanks.
namespace AlibabaCloud\SDK\Dysmsapi\V20170525\Models;
use AlibabaCloud\Dara\Model;
class CreateSmsSignResponse extends Model
{
/**
* @var string[]
*/
public $headers;
/**
* @var int
*/
public $statusCode;
/**
* @var CreateSmsSignResponseBody
*/
public $body;
protected $_name = [
'headers' => 'headers',
'statusCode' => 'statusCode',
'body' => 'body',
];
public function validate()
{
if (\is_array($this->headers)) {
Model::validateArray($this->headers);
}
if (null !== $this->body) {
$this->body->validate();
}
parent::validate();
}
public function toArray($noStream = false)
{
$res = [];
if (null !== $this->headers) {
if (\is_array($this->headers)) {
$res['headers'] = [];
foreach ($this->headers as $key1 => $value1) {
$res['headers'][$key1] = $value1;
}
}
}
if (null !== $this->statusCode) {
$res['statusCode'] = $this->statusCode;
}
if (null !== $this->body) {
$res['body'] = null !== $this->body ? $this->body->toArray($noStream) : $this->body;
}
return $res;
}
public function toMap($noStream = false)
{
return $this->toArray($noStream);
}
public static function fromMap($map = [])
{
$model = new self();
if (isset($map['headers'])) {
if (!empty($map['headers'])) {
$model->headers = [];
foreach ($map['headers'] as $key1 => $value1) {
$model->headers[$key1] = $value1;
}
}
}
if (isset($map['statusCode'])) {
$model->statusCode = $map['statusCode'];
}
if (isset($map['body'])) {
$model->body = CreateSmsSignResponseBody::fromMap($map['body']);
}
return $model;
}
}

View File

@@ -0,0 +1,104 @@
<?php
// This file is auto-generated, don't edit it. Thanks.
namespace AlibabaCloud\SDK\Dysmsapi\V20170525\Models;
use AlibabaCloud\Dara\Model;
class CreateSmsSignResponseBody extends Model
{
/**
* @var string
*/
public $code;
/**
* @var string
*/
public $message;
/**
* @var string
*/
public $orderId;
/**
* @var string
*/
public $requestId;
/**
* @var string
*/
public $signName;
protected $_name = [
'code' => 'Code',
'message' => 'Message',
'orderId' => 'OrderId',
'requestId' => 'RequestId',
'signName' => 'SignName',
];
public function validate()
{
parent::validate();
}
public function toArray($noStream = false)
{
$res = [];
if (null !== $this->code) {
$res['Code'] = $this->code;
}
if (null !== $this->message) {
$res['Message'] = $this->message;
}
if (null !== $this->orderId) {
$res['OrderId'] = $this->orderId;
}
if (null !== $this->requestId) {
$res['RequestId'] = $this->requestId;
}
if (null !== $this->signName) {
$res['SignName'] = $this->signName;
}
return $res;
}
public function toMap($noStream = false)
{
return $this->toArray($noStream);
}
public static function fromMap($map = [])
{
$model = new self();
if (isset($map['Code'])) {
$model->code = $map['Code'];
}
if (isset($map['Message'])) {
$model->message = $map['Message'];
}
if (isset($map['OrderId'])) {
$model->orderId = $map['OrderId'];
}
if (isset($map['RequestId'])) {
$model->requestId = $map['RequestId'];
}
if (isset($map['SignName'])) {
$model->signName = $map['SignName'];
}
return $model;
}
}

View File

@@ -0,0 +1,202 @@
<?php
// This file is auto-generated, don't edit it. Thanks.
namespace AlibabaCloud\SDK\Dysmsapi\V20170525\Models;
use AlibabaCloud\Dara\Model;
class CreateSmsSignShrinkRequest extends Model
{
/**
* @var string
*/
public $applySceneContent;
/**
* @var int
*/
public $authorizationLetterId;
/**
* @var string
*/
public $moreDataShrink;
/**
* @var int
*/
public $ownerId;
/**
* @var int
*/
public $qualificationId;
/**
* @var string
*/
public $remark;
/**
* @var string
*/
public $resourceOwnerAccount;
/**
* @var int
*/
public $resourceOwnerId;
/**
* @var string
*/
public $signName;
/**
* @var int
*/
public $signSource;
/**
* @var int
*/
public $signType;
/**
* @var bool
*/
public $thirdParty;
protected $_name = [
'applySceneContent' => 'ApplySceneContent',
'authorizationLetterId' => 'AuthorizationLetterId',
'moreDataShrink' => 'MoreData',
'ownerId' => 'OwnerId',
'qualificationId' => 'QualificationId',
'remark' => 'Remark',
'resourceOwnerAccount' => 'ResourceOwnerAccount',
'resourceOwnerId' => 'ResourceOwnerId',
'signName' => 'SignName',
'signSource' => 'SignSource',
'signType' => 'SignType',
'thirdParty' => 'ThirdParty',
];
public function validate()
{
parent::validate();
}
public function toArray($noStream = false)
{
$res = [];
if (null !== $this->applySceneContent) {
$res['ApplySceneContent'] = $this->applySceneContent;
}
if (null !== $this->authorizationLetterId) {
$res['AuthorizationLetterId'] = $this->authorizationLetterId;
}
if (null !== $this->moreDataShrink) {
$res['MoreData'] = $this->moreDataShrink;
}
if (null !== $this->ownerId) {
$res['OwnerId'] = $this->ownerId;
}
if (null !== $this->qualificationId) {
$res['QualificationId'] = $this->qualificationId;
}
if (null !== $this->remark) {
$res['Remark'] = $this->remark;
}
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->signType) {
$res['SignType'] = $this->signType;
}
if (null !== $this->thirdParty) {
$res['ThirdParty'] = $this->thirdParty;
}
return $res;
}
public function toMap($noStream = false)
{
return $this->toArray($noStream);
}
public static function fromMap($map = [])
{
$model = new self();
if (isset($map['ApplySceneContent'])) {
$model->applySceneContent = $map['ApplySceneContent'];
}
if (isset($map['AuthorizationLetterId'])) {
$model->authorizationLetterId = $map['AuthorizationLetterId'];
}
if (isset($map['MoreData'])) {
$model->moreDataShrink = $map['MoreData'];
}
if (isset($map['OwnerId'])) {
$model->ownerId = $map['OwnerId'];
}
if (isset($map['QualificationId'])) {
$model->qualificationId = $map['QualificationId'];
}
if (isset($map['Remark'])) {
$model->remark = $map['Remark'];
}
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['SignType'])) {
$model->signType = $map['SignType'];
}
if (isset($map['ThirdParty'])) {
$model->thirdParty = $map['ThirdParty'];
}
return $model;
}
}

View File

@@ -0,0 +1,217 @@
<?php
// This file is auto-generated, don't edit it. Thanks.
namespace AlibabaCloud\SDK\Dysmsapi\V20170525\Models;
use AlibabaCloud\Dara\Model;
class CreateSmsTemplateRequest extends Model
{
/**
* @var string
*/
public $applySceneContent;
/**
* @var int
*/
public $intlType;
/**
* @var string[]
*/
public $moreData;
/**
* @var int
*/
public $ownerId;
/**
* @var string
*/
public $relatedSignName;
/**
* @var string
*/
public $remark;
/**
* @var string
*/
public $resourceOwnerAccount;
/**
* @var int
*/
public $resourceOwnerId;
/**
* @var string
*/
public $templateContent;
/**
* @var string
*/
public $templateName;
/**
* @var string
*/
public $templateRule;
/**
* @var int
*/
public $templateType;
protected $_name = [
'applySceneContent' => 'ApplySceneContent',
'intlType' => 'IntlType',
'moreData' => 'MoreData',
'ownerId' => 'OwnerId',
'relatedSignName' => 'RelatedSignName',
'remark' => 'Remark',
'resourceOwnerAccount' => 'ResourceOwnerAccount',
'resourceOwnerId' => 'ResourceOwnerId',
'templateContent' => 'TemplateContent',
'templateName' => 'TemplateName',
'templateRule' => 'TemplateRule',
'templateType' => 'TemplateType',
];
public function validate()
{
if (\is_array($this->moreData)) {
Model::validateArray($this->moreData);
}
parent::validate();
}
public function toArray($noStream = false)
{
$res = [];
if (null !== $this->applySceneContent) {
$res['ApplySceneContent'] = $this->applySceneContent;
}
if (null !== $this->intlType) {
$res['IntlType'] = $this->intlType;
}
if (null !== $this->moreData) {
if (\is_array($this->moreData)) {
$res['MoreData'] = [];
$n1 = 0;
foreach ($this->moreData as $item1) {
$res['MoreData'][$n1++] = $item1;
}
}
}
if (null !== $this->ownerId) {
$res['OwnerId'] = $this->ownerId;
}
if (null !== $this->relatedSignName) {
$res['RelatedSignName'] = $this->relatedSignName;
}
if (null !== $this->remark) {
$res['Remark'] = $this->remark;
}
if (null !== $this->resourceOwnerAccount) {
$res['ResourceOwnerAccount'] = $this->resourceOwnerAccount;
}
if (null !== $this->resourceOwnerId) {
$res['ResourceOwnerId'] = $this->resourceOwnerId;
}
if (null !== $this->templateContent) {
$res['TemplateContent'] = $this->templateContent;
}
if (null !== $this->templateName) {
$res['TemplateName'] = $this->templateName;
}
if (null !== $this->templateRule) {
$res['TemplateRule'] = $this->templateRule;
}
if (null !== $this->templateType) {
$res['TemplateType'] = $this->templateType;
}
return $res;
}
public function toMap($noStream = false)
{
return $this->toArray($noStream);
}
public static function fromMap($map = [])
{
$model = new self();
if (isset($map['ApplySceneContent'])) {
$model->applySceneContent = $map['ApplySceneContent'];
}
if (isset($map['IntlType'])) {
$model->intlType = $map['IntlType'];
}
if (isset($map['MoreData'])) {
if (!empty($map['MoreData'])) {
$model->moreData = [];
$n1 = 0;
foreach ($map['MoreData'] as $item1) {
$model->moreData[$n1++] = $item1;
}
}
}
if (isset($map['OwnerId'])) {
$model->ownerId = $map['OwnerId'];
}
if (isset($map['RelatedSignName'])) {
$model->relatedSignName = $map['RelatedSignName'];
}
if (isset($map['Remark'])) {
$model->remark = $map['Remark'];
}
if (isset($map['ResourceOwnerAccount'])) {
$model->resourceOwnerAccount = $map['ResourceOwnerAccount'];
}
if (isset($map['ResourceOwnerId'])) {
$model->resourceOwnerId = $map['ResourceOwnerId'];
}
if (isset($map['TemplateContent'])) {
$model->templateContent = $map['TemplateContent'];
}
if (isset($map['TemplateName'])) {
$model->templateName = $map['TemplateName'];
}
if (isset($map['TemplateRule'])) {
$model->templateRule = $map['TemplateRule'];
}
if (isset($map['TemplateType'])) {
$model->templateType = $map['TemplateType'];
}
return $model;
}
}

View File

@@ -0,0 +1,92 @@
<?php
// This file is auto-generated, don't edit it. Thanks.
namespace AlibabaCloud\SDK\Dysmsapi\V20170525\Models;
use AlibabaCloud\Dara\Model;
class CreateSmsTemplateResponse extends Model
{
/**
* @var string[]
*/
public $headers;
/**
* @var int
*/
public $statusCode;
/**
* @var CreateSmsTemplateResponseBody
*/
public $body;
protected $_name = [
'headers' => 'headers',
'statusCode' => 'statusCode',
'body' => 'body',
];
public function validate()
{
if (\is_array($this->headers)) {
Model::validateArray($this->headers);
}
if (null !== $this->body) {
$this->body->validate();
}
parent::validate();
}
public function toArray($noStream = false)
{
$res = [];
if (null !== $this->headers) {
if (\is_array($this->headers)) {
$res['headers'] = [];
foreach ($this->headers as $key1 => $value1) {
$res['headers'][$key1] = $value1;
}
}
}
if (null !== $this->statusCode) {
$res['statusCode'] = $this->statusCode;
}
if (null !== $this->body) {
$res['body'] = null !== $this->body ? $this->body->toArray($noStream) : $this->body;
}
return $res;
}
public function toMap($noStream = false)
{
return $this->toArray($noStream);
}
public static function fromMap($map = [])
{
$model = new self();
if (isset($map['headers'])) {
if (!empty($map['headers'])) {
$model->headers = [];
foreach ($map['headers'] as $key1 => $value1) {
$model->headers[$key1] = $value1;
}
}
}
if (isset($map['statusCode'])) {
$model->statusCode = $map['statusCode'];
}
if (isset($map['body'])) {
$model->body = CreateSmsTemplateResponseBody::fromMap($map['body']);
}
return $model;
}
}

View File

@@ -0,0 +1,118 @@
<?php
// This file is auto-generated, don't edit it. Thanks.
namespace AlibabaCloud\SDK\Dysmsapi\V20170525\Models;
use AlibabaCloud\Dara\Model;
class CreateSmsTemplateResponseBody extends Model
{
/**
* @var string
*/
public $code;
/**
* @var string
*/
public $message;
/**
* @var string
*/
public $orderId;
/**
* @var string
*/
public $requestId;
/**
* @var string
*/
public $templateCode;
/**
* @var string
*/
public $templateName;
protected $_name = [
'code' => 'Code',
'message' => 'Message',
'orderId' => 'OrderId',
'requestId' => 'RequestId',
'templateCode' => 'TemplateCode',
'templateName' => 'TemplateName',
];
public function validate()
{
parent::validate();
}
public function toArray($noStream = false)
{
$res = [];
if (null !== $this->code) {
$res['Code'] = $this->code;
}
if (null !== $this->message) {
$res['Message'] = $this->message;
}
if (null !== $this->orderId) {
$res['OrderId'] = $this->orderId;
}
if (null !== $this->requestId) {
$res['RequestId'] = $this->requestId;
}
if (null !== $this->templateCode) {
$res['TemplateCode'] = $this->templateCode;
}
if (null !== $this->templateName) {
$res['TemplateName'] = $this->templateName;
}
return $res;
}
public function toMap($noStream = false)
{
return $this->toArray($noStream);
}
public static function fromMap($map = [])
{
$model = new self();
if (isset($map['Code'])) {
$model->code = $map['Code'];
}
if (isset($map['Message'])) {
$model->message = $map['Message'];
}
if (isset($map['OrderId'])) {
$model->orderId = $map['OrderId'];
}
if (isset($map['RequestId'])) {
$model->requestId = $map['RequestId'];
}
if (isset($map['TemplateCode'])) {
$model->templateCode = $map['TemplateCode'];
}
if (isset($map['TemplateName'])) {
$model->templateName = $map['TemplateName'];
}
return $model;
}
}

View File

@@ -0,0 +1,202 @@
<?php
// This file is auto-generated, don't edit it. Thanks.
namespace AlibabaCloud\SDK\Dysmsapi\V20170525\Models;
use AlibabaCloud\Dara\Model;
class CreateSmsTemplateShrinkRequest extends Model
{
/**
* @var string
*/
public $applySceneContent;
/**
* @var int
*/
public $intlType;
/**
* @var string
*/
public $moreDataShrink;
/**
* @var int
*/
public $ownerId;
/**
* @var string
*/
public $relatedSignName;
/**
* @var string
*/
public $remark;
/**
* @var string
*/
public $resourceOwnerAccount;
/**
* @var int
*/
public $resourceOwnerId;
/**
* @var string
*/
public $templateContent;
/**
* @var string
*/
public $templateName;
/**
* @var string
*/
public $templateRule;
/**
* @var int
*/
public $templateType;
protected $_name = [
'applySceneContent' => 'ApplySceneContent',
'intlType' => 'IntlType',
'moreDataShrink' => 'MoreData',
'ownerId' => 'OwnerId',
'relatedSignName' => 'RelatedSignName',
'remark' => 'Remark',
'resourceOwnerAccount' => 'ResourceOwnerAccount',
'resourceOwnerId' => 'ResourceOwnerId',
'templateContent' => 'TemplateContent',
'templateName' => 'TemplateName',
'templateRule' => 'TemplateRule',
'templateType' => 'TemplateType',
];
public function validate()
{
parent::validate();
}
public function toArray($noStream = false)
{
$res = [];
if (null !== $this->applySceneContent) {
$res['ApplySceneContent'] = $this->applySceneContent;
}
if (null !== $this->intlType) {
$res['IntlType'] = $this->intlType;
}
if (null !== $this->moreDataShrink) {
$res['MoreData'] = $this->moreDataShrink;
}
if (null !== $this->ownerId) {
$res['OwnerId'] = $this->ownerId;
}
if (null !== $this->relatedSignName) {
$res['RelatedSignName'] = $this->relatedSignName;
}
if (null !== $this->remark) {
$res['Remark'] = $this->remark;
}
if (null !== $this->resourceOwnerAccount) {
$res['ResourceOwnerAccount'] = $this->resourceOwnerAccount;
}
if (null !== $this->resourceOwnerId) {
$res['ResourceOwnerId'] = $this->resourceOwnerId;
}
if (null !== $this->templateContent) {
$res['TemplateContent'] = $this->templateContent;
}
if (null !== $this->templateName) {
$res['TemplateName'] = $this->templateName;
}
if (null !== $this->templateRule) {
$res['TemplateRule'] = $this->templateRule;
}
if (null !== $this->templateType) {
$res['TemplateType'] = $this->templateType;
}
return $res;
}
public function toMap($noStream = false)
{
return $this->toArray($noStream);
}
public static function fromMap($map = [])
{
$model = new self();
if (isset($map['ApplySceneContent'])) {
$model->applySceneContent = $map['ApplySceneContent'];
}
if (isset($map['IntlType'])) {
$model->intlType = $map['IntlType'];
}
if (isset($map['MoreData'])) {
$model->moreDataShrink = $map['MoreData'];
}
if (isset($map['OwnerId'])) {
$model->ownerId = $map['OwnerId'];
}
if (isset($map['RelatedSignName'])) {
$model->relatedSignName = $map['RelatedSignName'];
}
if (isset($map['Remark'])) {
$model->remark = $map['Remark'];
}
if (isset($map['ResourceOwnerAccount'])) {
$model->resourceOwnerAccount = $map['ResourceOwnerAccount'];
}
if (isset($map['ResourceOwnerId'])) {
$model->resourceOwnerId = $map['ResourceOwnerId'];
}
if (isset($map['TemplateContent'])) {
$model->templateContent = $map['TemplateContent'];
}
if (isset($map['TemplateName'])) {
$model->templateName = $map['TemplateName'];
}
if (isset($map['TemplateRule'])) {
$model->templateRule = $map['TemplateRule'];
}
if (isset($map['TemplateType'])) {
$model->templateType = $map['TemplateType'];
}
return $model;
}
}

View File

@@ -0,0 +1,104 @@
<?php
// This file is auto-generated, don't edit it. Thanks.
namespace AlibabaCloud\SDK\Dysmsapi\V20170525\Models;
use AlibabaCloud\Dara\Model;
class DeleteExtCodeSignRequest extends Model
{
/**
* @var string
*/
public $extCode;
/**
* @var int
*/
public $ownerId;
/**
* @var string
*/
public $resourceOwnerAccount;
/**
* @var int
*/
public $resourceOwnerId;
/**
* @var string
*/
public $signName;
protected $_name = [
'extCode' => 'ExtCode',
'ownerId' => 'OwnerId',
'resourceOwnerAccount' => 'ResourceOwnerAccount',
'resourceOwnerId' => 'ResourceOwnerId',
'signName' => 'SignName',
];
public function validate()
{
parent::validate();
}
public function toArray($noStream = false)
{
$res = [];
if (null !== $this->extCode) {
$res['ExtCode'] = $this->extCode;
}
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;
}
return $res;
}
public function toMap($noStream = false)
{
return $this->toArray($noStream);
}
public static function fromMap($map = [])
{
$model = new self();
if (isset($map['ExtCode'])) {
$model->extCode = $map['ExtCode'];
}
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'];
}
return $model;
}
}

View File

@@ -0,0 +1,92 @@
<?php
// This file is auto-generated, don't edit it. Thanks.
namespace AlibabaCloud\SDK\Dysmsapi\V20170525\Models;
use AlibabaCloud\Dara\Model;
class DeleteExtCodeSignResponse extends Model
{
/**
* @var string[]
*/
public $headers;
/**
* @var int
*/
public $statusCode;
/**
* @var DeleteExtCodeSignResponseBody
*/
public $body;
protected $_name = [
'headers' => 'headers',
'statusCode' => 'statusCode',
'body' => 'body',
];
public function validate()
{
if (\is_array($this->headers)) {
Model::validateArray($this->headers);
}
if (null !== $this->body) {
$this->body->validate();
}
parent::validate();
}
public function toArray($noStream = false)
{
$res = [];
if (null !== $this->headers) {
if (\is_array($this->headers)) {
$res['headers'] = [];
foreach ($this->headers as $key1 => $value1) {
$res['headers'][$key1] = $value1;
}
}
}
if (null !== $this->statusCode) {
$res['statusCode'] = $this->statusCode;
}
if (null !== $this->body) {
$res['body'] = null !== $this->body ? $this->body->toArray($noStream) : $this->body;
}
return $res;
}
public function toMap($noStream = false)
{
return $this->toArray($noStream);
}
public static function fromMap($map = [])
{
$model = new self();
if (isset($map['headers'])) {
if (!empty($map['headers'])) {
$model->headers = [];
foreach ($map['headers'] as $key1 => $value1) {
$model->headers[$key1] = $value1;
}
}
}
if (isset($map['statusCode'])) {
$model->statusCode = $map['statusCode'];
}
if (isset($map['body'])) {
$model->body = DeleteExtCodeSignResponseBody::fromMap($map['body']);
}
return $model;
}
}

View File

@@ -0,0 +1,118 @@
<?php
// This file is auto-generated, don't edit it. Thanks.
namespace AlibabaCloud\SDK\Dysmsapi\V20170525\Models;
use AlibabaCloud\Dara\Model;
class DeleteExtCodeSignResponseBody extends Model
{
/**
* @var string
*/
public $accessDeniedDetail;
/**
* @var string
*/
public $code;
/**
* @var bool
*/
public $data;
/**
* @var string
*/
public $message;
/**
* @var string
*/
public $requestId;
/**
* @var bool
*/
public $success;
protected $_name = [
'accessDeniedDetail' => 'AccessDeniedDetail',
'code' => 'Code',
'data' => 'Data',
'message' => 'Message',
'requestId' => 'RequestId',
'success' => 'Success',
];
public function validate()
{
parent::validate();
}
public function toArray($noStream = false)
{
$res = [];
if (null !== $this->accessDeniedDetail) {
$res['AccessDeniedDetail'] = $this->accessDeniedDetail;
}
if (null !== $this->code) {
$res['Code'] = $this->code;
}
if (null !== $this->data) {
$res['Data'] = $this->data;
}
if (null !== $this->message) {
$res['Message'] = $this->message;
}
if (null !== $this->requestId) {
$res['RequestId'] = $this->requestId;
}
if (null !== $this->success) {
$res['Success'] = $this->success;
}
return $res;
}
public function toMap($noStream = false)
{
return $this->toArray($noStream);
}
public static function fromMap($map = [])
{
$model = new self();
if (isset($map['AccessDeniedDetail'])) {
$model->accessDeniedDetail = $map['AccessDeniedDetail'];
}
if (isset($map['Code'])) {
$model->code = $map['Code'];
}
if (isset($map['Data'])) {
$model->data = $map['Data'];
}
if (isset($map['Message'])) {
$model->message = $map['Message'];
}
if (isset($map['RequestId'])) {
$model->requestId = $map['RequestId'];
}
if (isset($map['Success'])) {
$model->success = $map['Success'];
}
return $model;
}
}

View File

@@ -0,0 +1,90 @@
<?php
// This file is auto-generated, don't edit it. Thanks.
namespace AlibabaCloud\SDK\Dysmsapi\V20170525\Models;
use AlibabaCloud\Dara\Model;
class DeleteShortUrlRequest extends Model
{
/**
* @var int
*/
public $ownerId;
/**
* @var string
*/
public $resourceOwnerAccount;
/**
* @var int
*/
public $resourceOwnerId;
/**
* @var string
*/
public $sourceUrl;
protected $_name = [
'ownerId' => 'OwnerId',
'resourceOwnerAccount' => 'ResourceOwnerAccount',
'resourceOwnerId' => 'ResourceOwnerId',
'sourceUrl' => 'SourceUrl',
];
public function validate()
{
parent::validate();
}
public function toArray($noStream = false)
{
$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->sourceUrl) {
$res['SourceUrl'] = $this->sourceUrl;
}
return $res;
}
public function toMap($noStream = false)
{
return $this->toArray($noStream);
}
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['SourceUrl'])) {
$model->sourceUrl = $map['SourceUrl'];
}
return $model;
}
}

View File

@@ -0,0 +1,92 @@
<?php
// This file is auto-generated, don't edit it. Thanks.
namespace AlibabaCloud\SDK\Dysmsapi\V20170525\Models;
use AlibabaCloud\Dara\Model;
class DeleteShortUrlResponse extends Model
{
/**
* @var string[]
*/
public $headers;
/**
* @var int
*/
public $statusCode;
/**
* @var DeleteShortUrlResponseBody
*/
public $body;
protected $_name = [
'headers' => 'headers',
'statusCode' => 'statusCode',
'body' => 'body',
];
public function validate()
{
if (\is_array($this->headers)) {
Model::validateArray($this->headers);
}
if (null !== $this->body) {
$this->body->validate();
}
parent::validate();
}
public function toArray($noStream = false)
{
$res = [];
if (null !== $this->headers) {
if (\is_array($this->headers)) {
$res['headers'] = [];
foreach ($this->headers as $key1 => $value1) {
$res['headers'][$key1] = $value1;
}
}
}
if (null !== $this->statusCode) {
$res['statusCode'] = $this->statusCode;
}
if (null !== $this->body) {
$res['body'] = null !== $this->body ? $this->body->toArray($noStream) : $this->body;
}
return $res;
}
public function toMap($noStream = false)
{
return $this->toArray($noStream);
}
public static function fromMap($map = [])
{
$model = new self();
if (isset($map['headers'])) {
if (!empty($map['headers'])) {
$model->headers = [];
foreach ($map['headers'] as $key1 => $value1) {
$model->headers[$key1] = $value1;
}
}
}
if (isset($map['statusCode'])) {
$model->statusCode = $map['statusCode'];
}
if (isset($map['body'])) {
$model->body = DeleteShortUrlResponseBody::fromMap($map['body']);
}
return $model;
}
}

View File

@@ -0,0 +1,76 @@
<?php
// This file is auto-generated, don't edit it. Thanks.
namespace AlibabaCloud\SDK\Dysmsapi\V20170525\Models;
use AlibabaCloud\Dara\Model;
class DeleteShortUrlResponseBody extends Model
{
/**
* @var string
*/
public $code;
/**
* @var string
*/
public $message;
/**
* @var string
*/
public $requestId;
protected $_name = [
'code' => 'Code',
'message' => 'Message',
'requestId' => 'RequestId',
];
public function validate()
{
parent::validate();
}
public function toArray($noStream = false)
{
$res = [];
if (null !== $this->code) {
$res['Code'] = $this->code;
}
if (null !== $this->message) {
$res['Message'] = $this->message;
}
if (null !== $this->requestId) {
$res['RequestId'] = $this->requestId;
}
return $res;
}
public function toMap($noStream = false)
{
return $this->toArray($noStream);
}
public static function fromMap($map = [])
{
$model = new self();
if (isset($map['Code'])) {
$model->code = $map['Code'];
}
if (isset($map['Message'])) {
$model->message = $map['Message'];
}
if (isset($map['RequestId'])) {
$model->requestId = $map['RequestId'];
}
return $model;
}
}

View File

@@ -0,0 +1,104 @@
<?php
// This file is auto-generated, don't edit it. Thanks.
namespace AlibabaCloud\SDK\Dysmsapi\V20170525\Models;
use AlibabaCloud\Dara\Model;
class DeleteSmsQualificationRequest extends Model
{
/**
* @var int
*/
public $orderId;
/**
* @var int
*/
public $ownerId;
/**
* @var int
*/
public $qualificationGroupId;
/**
* @var string
*/
public $resourceOwnerAccount;
/**
* @var int
*/
public $resourceOwnerId;
protected $_name = [
'orderId' => 'OrderId',
'ownerId' => 'OwnerId',
'qualificationGroupId' => 'QualificationGroupId',
'resourceOwnerAccount' => 'ResourceOwnerAccount',
'resourceOwnerId' => 'ResourceOwnerId',
];
public function validate()
{
parent::validate();
}
public function toArray($noStream = false)
{
$res = [];
if (null !== $this->orderId) {
$res['OrderId'] = $this->orderId;
}
if (null !== $this->ownerId) {
$res['OwnerId'] = $this->ownerId;
}
if (null !== $this->qualificationGroupId) {
$res['QualificationGroupId'] = $this->qualificationGroupId;
}
if (null !== $this->resourceOwnerAccount) {
$res['ResourceOwnerAccount'] = $this->resourceOwnerAccount;
}
if (null !== $this->resourceOwnerId) {
$res['ResourceOwnerId'] = $this->resourceOwnerId;
}
return $res;
}
public function toMap($noStream = false)
{
return $this->toArray($noStream);
}
public static function fromMap($map = [])
{
$model = new self();
if (isset($map['OrderId'])) {
$model->orderId = $map['OrderId'];
}
if (isset($map['OwnerId'])) {
$model->ownerId = $map['OwnerId'];
}
if (isset($map['QualificationGroupId'])) {
$model->qualificationGroupId = $map['QualificationGroupId'];
}
if (isset($map['ResourceOwnerAccount'])) {
$model->resourceOwnerAccount = $map['ResourceOwnerAccount'];
}
if (isset($map['ResourceOwnerId'])) {
$model->resourceOwnerId = $map['ResourceOwnerId'];
}
return $model;
}
}

View File

@@ -0,0 +1,92 @@
<?php
// This file is auto-generated, don't edit it. Thanks.
namespace AlibabaCloud\SDK\Dysmsapi\V20170525\Models;
use AlibabaCloud\Dara\Model;
class DeleteSmsQualificationResponse extends Model
{
/**
* @var string[]
*/
public $headers;
/**
* @var int
*/
public $statusCode;
/**
* @var DeleteSmsQualificationResponseBody
*/
public $body;
protected $_name = [
'headers' => 'headers',
'statusCode' => 'statusCode',
'body' => 'body',
];
public function validate()
{
if (\is_array($this->headers)) {
Model::validateArray($this->headers);
}
if (null !== $this->body) {
$this->body->validate();
}
parent::validate();
}
public function toArray($noStream = false)
{
$res = [];
if (null !== $this->headers) {
if (\is_array($this->headers)) {
$res['headers'] = [];
foreach ($this->headers as $key1 => $value1) {
$res['headers'][$key1] = $value1;
}
}
}
if (null !== $this->statusCode) {
$res['statusCode'] = $this->statusCode;
}
if (null !== $this->body) {
$res['body'] = null !== $this->body ? $this->body->toArray($noStream) : $this->body;
}
return $res;
}
public function toMap($noStream = false)
{
return $this->toArray($noStream);
}
public static function fromMap($map = [])
{
$model = new self();
if (isset($map['headers'])) {
if (!empty($map['headers'])) {
$model->headers = [];
foreach ($map['headers'] as $key1 => $value1) {
$model->headers[$key1] = $value1;
}
}
}
if (isset($map['statusCode'])) {
$model->statusCode = $map['statusCode'];
}
if (isset($map['body'])) {
$model->body = DeleteSmsQualificationResponseBody::fromMap($map['body']);
}
return $model;
}
}

View File

@@ -0,0 +1,118 @@
<?php
// This file is auto-generated, don't edit it. Thanks.
namespace AlibabaCloud\SDK\Dysmsapi\V20170525\Models;
use AlibabaCloud\Dara\Model;
class DeleteSmsQualificationResponseBody extends Model
{
/**
* @var string
*/
public $accessDeniedDetail;
/**
* @var string
*/
public $code;
/**
* @var bool
*/
public $data;
/**
* @var string
*/
public $message;
/**
* @var string
*/
public $requestId;
/**
* @var bool
*/
public $success;
protected $_name = [
'accessDeniedDetail' => 'AccessDeniedDetail',
'code' => 'Code',
'data' => 'Data',
'message' => 'Message',
'requestId' => 'RequestId',
'success' => 'Success',
];
public function validate()
{
parent::validate();
}
public function toArray($noStream = false)
{
$res = [];
if (null !== $this->accessDeniedDetail) {
$res['AccessDeniedDetail'] = $this->accessDeniedDetail;
}
if (null !== $this->code) {
$res['Code'] = $this->code;
}
if (null !== $this->data) {
$res['Data'] = $this->data;
}
if (null !== $this->message) {
$res['Message'] = $this->message;
}
if (null !== $this->requestId) {
$res['RequestId'] = $this->requestId;
}
if (null !== $this->success) {
$res['Success'] = $this->success;
}
return $res;
}
public function toMap($noStream = false)
{
return $this->toArray($noStream);
}
public static function fromMap($map = [])
{
$model = new self();
if (isset($map['AccessDeniedDetail'])) {
$model->accessDeniedDetail = $map['AccessDeniedDetail'];
}
if (isset($map['Code'])) {
$model->code = $map['Code'];
}
if (isset($map['Data'])) {
$model->data = $map['Data'];
}
if (isset($map['Message'])) {
$model->message = $map['Message'];
}
if (isset($map['RequestId'])) {
$model->requestId = $map['RequestId'];
}
if (isset($map['Success'])) {
$model->success = $map['Success'];
}
return $model;
}
}

View File

@@ -0,0 +1,90 @@
<?php
// This file is auto-generated, don't edit it. Thanks.
namespace AlibabaCloud\SDK\Dysmsapi\V20170525\Models;
use AlibabaCloud\Dara\Model;
class DeleteSmsSignRequest extends Model
{
/**
* @var int
*/
public $ownerId;
/**
* @var string
*/
public $resourceOwnerAccount;
/**
* @var int
*/
public $resourceOwnerId;
/**
* @var string
*/
public $signName;
protected $_name = [
'ownerId' => 'OwnerId',
'resourceOwnerAccount' => 'ResourceOwnerAccount',
'resourceOwnerId' => 'ResourceOwnerId',
'signName' => 'SignName',
];
public function validate()
{
parent::validate();
}
public function toArray($noStream = false)
{
$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;
}
return $res;
}
public function toMap($noStream = false)
{
return $this->toArray($noStream);
}
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'];
}
return $model;
}
}

View File

@@ -0,0 +1,92 @@
<?php
// This file is auto-generated, don't edit it. Thanks.
namespace AlibabaCloud\SDK\Dysmsapi\V20170525\Models;
use AlibabaCloud\Dara\Model;
class DeleteSmsSignResponse extends Model
{
/**
* @var string[]
*/
public $headers;
/**
* @var int
*/
public $statusCode;
/**
* @var DeleteSmsSignResponseBody
*/
public $body;
protected $_name = [
'headers' => 'headers',
'statusCode' => 'statusCode',
'body' => 'body',
];
public function validate()
{
if (\is_array($this->headers)) {
Model::validateArray($this->headers);
}
if (null !== $this->body) {
$this->body->validate();
}
parent::validate();
}
public function toArray($noStream = false)
{
$res = [];
if (null !== $this->headers) {
if (\is_array($this->headers)) {
$res['headers'] = [];
foreach ($this->headers as $key1 => $value1) {
$res['headers'][$key1] = $value1;
}
}
}
if (null !== $this->statusCode) {
$res['statusCode'] = $this->statusCode;
}
if (null !== $this->body) {
$res['body'] = null !== $this->body ? $this->body->toArray($noStream) : $this->body;
}
return $res;
}
public function toMap($noStream = false)
{
return $this->toArray($noStream);
}
public static function fromMap($map = [])
{
$model = new self();
if (isset($map['headers'])) {
if (!empty($map['headers'])) {
$model->headers = [];
foreach ($map['headers'] as $key1 => $value1) {
$model->headers[$key1] = $value1;
}
}
}
if (isset($map['statusCode'])) {
$model->statusCode = $map['statusCode'];
}
if (isset($map['body'])) {
$model->body = DeleteSmsSignResponseBody::fromMap($map['body']);
}
return $model;
}
}

View File

@@ -0,0 +1,90 @@
<?php
// This file is auto-generated, don't edit it. Thanks.
namespace AlibabaCloud\SDK\Dysmsapi\V20170525\Models;
use AlibabaCloud\Dara\Model;
class DeleteSmsSignResponseBody extends Model
{
/**
* @var string
*/
public $code;
/**
* @var string
*/
public $message;
/**
* @var string
*/
public $requestId;
/**
* @var string
*/
public $signName;
protected $_name = [
'code' => 'Code',
'message' => 'Message',
'requestId' => 'RequestId',
'signName' => 'SignName',
];
public function validate()
{
parent::validate();
}
public function toArray($noStream = false)
{
$res = [];
if (null !== $this->code) {
$res['Code'] = $this->code;
}
if (null !== $this->message) {
$res['Message'] = $this->message;
}
if (null !== $this->requestId) {
$res['RequestId'] = $this->requestId;
}
if (null !== $this->signName) {
$res['SignName'] = $this->signName;
}
return $res;
}
public function toMap($noStream = false)
{
return $this->toArray($noStream);
}
public static function fromMap($map = [])
{
$model = new self();
if (isset($map['Code'])) {
$model->code = $map['Code'];
}
if (isset($map['Message'])) {
$model->message = $map['Message'];
}
if (isset($map['RequestId'])) {
$model->requestId = $map['RequestId'];
}
if (isset($map['SignName'])) {
$model->signName = $map['SignName'];
}
return $model;
}
}

View File

@@ -0,0 +1,90 @@
<?php
// This file is auto-generated, don't edit it. Thanks.
namespace AlibabaCloud\SDK\Dysmsapi\V20170525\Models;
use AlibabaCloud\Dara\Model;
class DeleteSmsTemplateRequest extends Model
{
/**
* @var int
*/
public $ownerId;
/**
* @var string
*/
public $resourceOwnerAccount;
/**
* @var int
*/
public $resourceOwnerId;
/**
* @var string
*/
public $templateCode;
protected $_name = [
'ownerId' => 'OwnerId',
'resourceOwnerAccount' => 'ResourceOwnerAccount',
'resourceOwnerId' => 'ResourceOwnerId',
'templateCode' => 'TemplateCode',
];
public function validate()
{
parent::validate();
}
public function toArray($noStream = false)
{
$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->templateCode) {
$res['TemplateCode'] = $this->templateCode;
}
return $res;
}
public function toMap($noStream = false)
{
return $this->toArray($noStream);
}
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['TemplateCode'])) {
$model->templateCode = $map['TemplateCode'];
}
return $model;
}
}

View File

@@ -0,0 +1,92 @@
<?php
// This file is auto-generated, don't edit it. Thanks.
namespace AlibabaCloud\SDK\Dysmsapi\V20170525\Models;
use AlibabaCloud\Dara\Model;
class DeleteSmsTemplateResponse extends Model
{
/**
* @var string[]
*/
public $headers;
/**
* @var int
*/
public $statusCode;
/**
* @var DeleteSmsTemplateResponseBody
*/
public $body;
protected $_name = [
'headers' => 'headers',
'statusCode' => 'statusCode',
'body' => 'body',
];
public function validate()
{
if (\is_array($this->headers)) {
Model::validateArray($this->headers);
}
if (null !== $this->body) {
$this->body->validate();
}
parent::validate();
}
public function toArray($noStream = false)
{
$res = [];
if (null !== $this->headers) {
if (\is_array($this->headers)) {
$res['headers'] = [];
foreach ($this->headers as $key1 => $value1) {
$res['headers'][$key1] = $value1;
}
}
}
if (null !== $this->statusCode) {
$res['statusCode'] = $this->statusCode;
}
if (null !== $this->body) {
$res['body'] = null !== $this->body ? $this->body->toArray($noStream) : $this->body;
}
return $res;
}
public function toMap($noStream = false)
{
return $this->toArray($noStream);
}
public static function fromMap($map = [])
{
$model = new self();
if (isset($map['headers'])) {
if (!empty($map['headers'])) {
$model->headers = [];
foreach ($map['headers'] as $key1 => $value1) {
$model->headers[$key1] = $value1;
}
}
}
if (isset($map['statusCode'])) {
$model->statusCode = $map['statusCode'];
}
if (isset($map['body'])) {
$model->body = DeleteSmsTemplateResponseBody::fromMap($map['body']);
}
return $model;
}
}

View File

@@ -0,0 +1,90 @@
<?php
// This file is auto-generated, don't edit it. Thanks.
namespace AlibabaCloud\SDK\Dysmsapi\V20170525\Models;
use AlibabaCloud\Dara\Model;
class DeleteSmsTemplateResponseBody extends Model
{
/**
* @var string
*/
public $code;
/**
* @var string
*/
public $message;
/**
* @var string
*/
public $requestId;
/**
* @var string
*/
public $templateCode;
protected $_name = [
'code' => 'Code',
'message' => 'Message',
'requestId' => 'RequestId',
'templateCode' => 'TemplateCode',
];
public function validate()
{
parent::validate();
}
public function toArray($noStream = false)
{
$res = [];
if (null !== $this->code) {
$res['Code'] = $this->code;
}
if (null !== $this->message) {
$res['Message'] = $this->message;
}
if (null !== $this->requestId) {
$res['RequestId'] = $this->requestId;
}
if (null !== $this->templateCode) {
$res['TemplateCode'] = $this->templateCode;
}
return $res;
}
public function toMap($noStream = false)
{
return $this->toArray($noStream);
}
public static function fromMap($map = [])
{
$model = new self();
if (isset($map['Code'])) {
$model->code = $map['Code'];
}
if (isset($map['Message'])) {
$model->message = $map['Message'];
}
if (isset($map['RequestId'])) {
$model->requestId = $map['RequestId'];
}
if (isset($map['TemplateCode'])) {
$model->templateCode = $map['TemplateCode'];
}
return $model;
}
}

View File

@@ -0,0 +1,174 @@
<?php
// This file is auto-generated, don't edit it. Thanks.
namespace AlibabaCloud\SDK\Dysmsapi\V20170525\Models;
use AlibabaCloud\Dara\Model;
class GetCardSmsDetailsRequest extends Model
{
/**
* @var string
*/
public $bizCardId;
/**
* @var string
*/
public $bizDigitId;
/**
* @var string
*/
public $bizSmsId;
/**
* @var int
*/
public $currentPage;
/**
* @var int
*/
public $ownerId;
/**
* @var int
*/
public $pageSize;
/**
* @var string
*/
public $phoneNumber;
/**
* @var string
*/
public $resourceOwnerAccount;
/**
* @var int
*/
public $resourceOwnerId;
/**
* @var string
*/
public $sendDate;
protected $_name = [
'bizCardId' => 'BizCardId',
'bizDigitId' => 'BizDigitId',
'bizSmsId' => 'BizSmsId',
'currentPage' => 'CurrentPage',
'ownerId' => 'OwnerId',
'pageSize' => 'PageSize',
'phoneNumber' => 'PhoneNumber',
'resourceOwnerAccount' => 'ResourceOwnerAccount',
'resourceOwnerId' => 'ResourceOwnerId',
'sendDate' => 'SendDate',
];
public function validate()
{
parent::validate();
}
public function toArray($noStream = false)
{
$res = [];
if (null !== $this->bizCardId) {
$res['BizCardId'] = $this->bizCardId;
}
if (null !== $this->bizDigitId) {
$res['BizDigitId'] = $this->bizDigitId;
}
if (null !== $this->bizSmsId) {
$res['BizSmsId'] = $this->bizSmsId;
}
if (null !== $this->currentPage) {
$res['CurrentPage'] = $this->currentPage;
}
if (null !== $this->ownerId) {
$res['OwnerId'] = $this->ownerId;
}
if (null !== $this->pageSize) {
$res['PageSize'] = $this->pageSize;
}
if (null !== $this->phoneNumber) {
$res['PhoneNumber'] = $this->phoneNumber;
}
if (null !== $this->resourceOwnerAccount) {
$res['ResourceOwnerAccount'] = $this->resourceOwnerAccount;
}
if (null !== $this->resourceOwnerId) {
$res['ResourceOwnerId'] = $this->resourceOwnerId;
}
if (null !== $this->sendDate) {
$res['SendDate'] = $this->sendDate;
}
return $res;
}
public function toMap($noStream = false)
{
return $this->toArray($noStream);
}
public static function fromMap($map = [])
{
$model = new self();
if (isset($map['BizCardId'])) {
$model->bizCardId = $map['BizCardId'];
}
if (isset($map['BizDigitId'])) {
$model->bizDigitId = $map['BizDigitId'];
}
if (isset($map['BizSmsId'])) {
$model->bizSmsId = $map['BizSmsId'];
}
if (isset($map['CurrentPage'])) {
$model->currentPage = $map['CurrentPage'];
}
if (isset($map['OwnerId'])) {
$model->ownerId = $map['OwnerId'];
}
if (isset($map['PageSize'])) {
$model->pageSize = $map['PageSize'];
}
if (isset($map['PhoneNumber'])) {
$model->phoneNumber = $map['PhoneNumber'];
}
if (isset($map['ResourceOwnerAccount'])) {
$model->resourceOwnerAccount = $map['ResourceOwnerAccount'];
}
if (isset($map['ResourceOwnerId'])) {
$model->resourceOwnerId = $map['ResourceOwnerId'];
}
if (isset($map['SendDate'])) {
$model->sendDate = $map['SendDate'];
}
return $model;
}
}

View File

@@ -0,0 +1,92 @@
<?php
// This file is auto-generated, don't edit it. Thanks.
namespace AlibabaCloud\SDK\Dysmsapi\V20170525\Models;
use AlibabaCloud\Dara\Model;
class GetCardSmsDetailsResponse extends Model
{
/**
* @var string[]
*/
public $headers;
/**
* @var int
*/
public $statusCode;
/**
* @var GetCardSmsDetailsResponseBody
*/
public $body;
protected $_name = [
'headers' => 'headers',
'statusCode' => 'statusCode',
'body' => 'body',
];
public function validate()
{
if (\is_array($this->headers)) {
Model::validateArray($this->headers);
}
if (null !== $this->body) {
$this->body->validate();
}
parent::validate();
}
public function toArray($noStream = false)
{
$res = [];
if (null !== $this->headers) {
if (\is_array($this->headers)) {
$res['headers'] = [];
foreach ($this->headers as $key1 => $value1) {
$res['headers'][$key1] = $value1;
}
}
}
if (null !== $this->statusCode) {
$res['statusCode'] = $this->statusCode;
}
if (null !== $this->body) {
$res['body'] = null !== $this->body ? $this->body->toArray($noStream) : $this->body;
}
return $res;
}
public function toMap($noStream = false)
{
return $this->toArray($noStream);
}
public static function fromMap($map = [])
{
$model = new self();
if (isset($map['headers'])) {
if (!empty($map['headers'])) {
$model->headers = [];
foreach ($map['headers'] as $key1 => $value1) {
$model->headers[$key1] = $value1;
}
}
}
if (isset($map['statusCode'])) {
$model->statusCode = $map['statusCode'];
}
if (isset($map['body'])) {
$model->body = GetCardSmsDetailsResponseBody::fromMap($map['body']);
}
return $model;
}
}

View File

@@ -0,0 +1,108 @@
<?php
// This file is auto-generated, don't edit it. Thanks.
namespace AlibabaCloud\SDK\Dysmsapi\V20170525\Models;
use AlibabaCloud\Dara\Model;
use AlibabaCloud\SDK\Dysmsapi\V20170525\Models\GetCardSmsDetailsResponseBody\cardSendDetailDTO;
class GetCardSmsDetailsResponseBody extends Model
{
/**
* @var string
*/
public $accessDeniedDetail;
/**
* @var cardSendDetailDTO
*/
public $cardSendDetailDTO;
/**
* @var string
*/
public $code;
/**
* @var string
*/
public $message;
/**
* @var bool
*/
public $success;
protected $_name = [
'accessDeniedDetail' => 'AccessDeniedDetail',
'cardSendDetailDTO' => 'CardSendDetailDTO',
'code' => 'Code',
'message' => 'Message',
'success' => 'Success',
];
public function validate()
{
if (null !== $this->cardSendDetailDTO) {
$this->cardSendDetailDTO->validate();
}
parent::validate();
}
public function toArray($noStream = false)
{
$res = [];
if (null !== $this->accessDeniedDetail) {
$res['AccessDeniedDetail'] = $this->accessDeniedDetail;
}
if (null !== $this->cardSendDetailDTO) {
$res['CardSendDetailDTO'] = null !== $this->cardSendDetailDTO ? $this->cardSendDetailDTO->toArray($noStream) : $this->cardSendDetailDTO;
}
if (null !== $this->code) {
$res['Code'] = $this->code;
}
if (null !== $this->message) {
$res['Message'] = $this->message;
}
if (null !== $this->success) {
$res['Success'] = $this->success;
}
return $res;
}
public function toMap($noStream = false)
{
return $this->toArray($noStream);
}
public static function fromMap($map = [])
{
$model = new self();
if (isset($map['AccessDeniedDetail'])) {
$model->accessDeniedDetail = $map['AccessDeniedDetail'];
}
if (isset($map['CardSendDetailDTO'])) {
$model->cardSendDetailDTO = cardSendDetailDTO::fromMap($map['CardSendDetailDTO']);
}
if (isset($map['Code'])) {
$model->code = $map['Code'];
}
if (isset($map['Message'])) {
$model->message = $map['Message'];
}
if (isset($map['Success'])) {
$model->success = $map['Success'];
}
return $model;
}
}

View File

@@ -0,0 +1,106 @@
<?php
// This file is auto-generated, don't edit it. Thanks.
namespace AlibabaCloud\SDK\Dysmsapi\V20170525\Models\GetCardSmsDetailsResponseBody;
use AlibabaCloud\Dara\Model;
use AlibabaCloud\SDK\Dysmsapi\V20170525\Models\GetCardSmsDetailsResponseBody\cardSendDetailDTO\records;
class cardSendDetailDTO extends Model
{
/**
* @var int
*/
public $currentPage;
/**
* @var int
*/
public $pageSize;
/**
* @var records[]
*/
public $records;
/**
* @var int
*/
public $totalCount;
protected $_name = [
'currentPage' => 'CurrentPage',
'pageSize' => 'PageSize',
'records' => 'Records',
'totalCount' => 'TotalCount',
];
public function validate()
{
if (\is_array($this->records)) {
Model::validateArray($this->records);
}
parent::validate();
}
public function toArray($noStream = false)
{
$res = [];
if (null !== $this->currentPage) {
$res['CurrentPage'] = $this->currentPage;
}
if (null !== $this->pageSize) {
$res['PageSize'] = $this->pageSize;
}
if (null !== $this->records) {
if (\is_array($this->records)) {
$res['Records'] = [];
$n1 = 0;
foreach ($this->records as $item1) {
$res['Records'][$n1++] = null !== $item1 ? $item1->toArray($noStream) : $item1;
}
}
}
if (null !== $this->totalCount) {
$res['TotalCount'] = $this->totalCount;
}
return $res;
}
public function toMap($noStream = false)
{
return $this->toArray($noStream);
}
public static function fromMap($map = [])
{
$model = new self();
if (isset($map['CurrentPage'])) {
$model->currentPage = $map['CurrentPage'];
}
if (isset($map['PageSize'])) {
$model->pageSize = $map['PageSize'];
}
if (isset($map['Records'])) {
if (!empty($map['Records'])) {
$model->records = [];
$n1 = 0;
foreach ($map['Records'] as $item1) {
$model->records[$n1++] = records::fromMap($item1);
}
}
}
if (isset($map['TotalCount'])) {
$model->totalCount = $map['TotalCount'];
}
return $model;
}
}

View File

@@ -0,0 +1,188 @@
<?php
// This file is auto-generated, don't edit it. Thanks.
namespace AlibabaCloud\SDK\Dysmsapi\V20170525\Models\GetCardSmsDetailsResponseBody\cardSendDetailDTO;
use AlibabaCloud\Dara\Model;
class records extends Model
{
/**
* @var string
*/
public $errCode;
/**
* @var string
*/
public $outId;
/**
* @var string
*/
public $phoneNumber;
/**
* @var string
*/
public $receiveDate;
/**
* @var string
*/
public $receiveType;
/**
* @var string
*/
public $renderDate;
/**
* @var int
*/
public $renderStatus;
/**
* @var string
*/
public $sendDate;
/**
* @var int
*/
public $sendStatus;
/**
* @var string
*/
public $smsContent;
/**
* @var string
*/
public $templateCode;
protected $_name = [
'errCode' => 'ErrCode',
'outId' => 'OutId',
'phoneNumber' => 'PhoneNumber',
'receiveDate' => 'ReceiveDate',
'receiveType' => 'ReceiveType',
'renderDate' => 'RenderDate',
'renderStatus' => 'RenderStatus',
'sendDate' => 'SendDate',
'sendStatus' => 'SendStatus',
'smsContent' => 'SmsContent',
'templateCode' => 'TemplateCode',
];
public function validate()
{
parent::validate();
}
public function toArray($noStream = false)
{
$res = [];
if (null !== $this->errCode) {
$res['ErrCode'] = $this->errCode;
}
if (null !== $this->outId) {
$res['OutId'] = $this->outId;
}
if (null !== $this->phoneNumber) {
$res['PhoneNumber'] = $this->phoneNumber;
}
if (null !== $this->receiveDate) {
$res['ReceiveDate'] = $this->receiveDate;
}
if (null !== $this->receiveType) {
$res['ReceiveType'] = $this->receiveType;
}
if (null !== $this->renderDate) {
$res['RenderDate'] = $this->renderDate;
}
if (null !== $this->renderStatus) {
$res['RenderStatus'] = $this->renderStatus;
}
if (null !== $this->sendDate) {
$res['SendDate'] = $this->sendDate;
}
if (null !== $this->sendStatus) {
$res['SendStatus'] = $this->sendStatus;
}
if (null !== $this->smsContent) {
$res['SmsContent'] = $this->smsContent;
}
if (null !== $this->templateCode) {
$res['TemplateCode'] = $this->templateCode;
}
return $res;
}
public function toMap($noStream = false)
{
return $this->toArray($noStream);
}
public static function fromMap($map = [])
{
$model = new self();
if (isset($map['ErrCode'])) {
$model->errCode = $map['ErrCode'];
}
if (isset($map['OutId'])) {
$model->outId = $map['OutId'];
}
if (isset($map['PhoneNumber'])) {
$model->phoneNumber = $map['PhoneNumber'];
}
if (isset($map['ReceiveDate'])) {
$model->receiveDate = $map['ReceiveDate'];
}
if (isset($map['ReceiveType'])) {
$model->receiveType = $map['ReceiveType'];
}
if (isset($map['RenderDate'])) {
$model->renderDate = $map['RenderDate'];
}
if (isset($map['RenderStatus'])) {
$model->renderStatus = $map['RenderStatus'];
}
if (isset($map['SendDate'])) {
$model->sendDate = $map['SendDate'];
}
if (isset($map['SendStatus'])) {
$model->sendStatus = $map['SendStatus'];
}
if (isset($map['SmsContent'])) {
$model->smsContent = $map['SmsContent'];
}
if (isset($map['TemplateCode'])) {
$model->templateCode = $map['TemplateCode'];
}
return $model;
}
}

View File

@@ -0,0 +1,160 @@
<?php
// This file is auto-generated, don't edit it. Thanks.
namespace AlibabaCloud\SDK\Dysmsapi\V20170525\Models;
use AlibabaCloud\Dara\Model;
class GetCardSmsLinkRequest extends Model
{
/**
* @var int
*/
public $cardCodeType;
/**
* @var int
*/
public $cardLinkType;
/**
* @var string
*/
public $cardTemplateCode;
/**
* @var string
*/
public $cardTemplateParamJson;
/**
* @var string
*/
public $customShortCodeJson;
/**
* @var string
*/
public $domain;
/**
* @var string
*/
public $outId;
/**
* @var string
*/
public $phoneNumberJson;
/**
* @var string
*/
public $signNameJson;
protected $_name = [
'cardCodeType' => 'CardCodeType',
'cardLinkType' => 'CardLinkType',
'cardTemplateCode' => 'CardTemplateCode',
'cardTemplateParamJson' => 'CardTemplateParamJson',
'customShortCodeJson' => 'CustomShortCodeJson',
'domain' => 'Domain',
'outId' => 'OutId',
'phoneNumberJson' => 'PhoneNumberJson',
'signNameJson' => 'SignNameJson',
];
public function validate()
{
parent::validate();
}
public function toArray($noStream = false)
{
$res = [];
if (null !== $this->cardCodeType) {
$res['CardCodeType'] = $this->cardCodeType;
}
if (null !== $this->cardLinkType) {
$res['CardLinkType'] = $this->cardLinkType;
}
if (null !== $this->cardTemplateCode) {
$res['CardTemplateCode'] = $this->cardTemplateCode;
}
if (null !== $this->cardTemplateParamJson) {
$res['CardTemplateParamJson'] = $this->cardTemplateParamJson;
}
if (null !== $this->customShortCodeJson) {
$res['CustomShortCodeJson'] = $this->customShortCodeJson;
}
if (null !== $this->domain) {
$res['Domain'] = $this->domain;
}
if (null !== $this->outId) {
$res['OutId'] = $this->outId;
}
if (null !== $this->phoneNumberJson) {
$res['PhoneNumberJson'] = $this->phoneNumberJson;
}
if (null !== $this->signNameJson) {
$res['SignNameJson'] = $this->signNameJson;
}
return $res;
}
public function toMap($noStream = false)
{
return $this->toArray($noStream);
}
public static function fromMap($map = [])
{
$model = new self();
if (isset($map['CardCodeType'])) {
$model->cardCodeType = $map['CardCodeType'];
}
if (isset($map['CardLinkType'])) {
$model->cardLinkType = $map['CardLinkType'];
}
if (isset($map['CardTemplateCode'])) {
$model->cardTemplateCode = $map['CardTemplateCode'];
}
if (isset($map['CardTemplateParamJson'])) {
$model->cardTemplateParamJson = $map['CardTemplateParamJson'];
}
if (isset($map['CustomShortCodeJson'])) {
$model->customShortCodeJson = $map['CustomShortCodeJson'];
}
if (isset($map['Domain'])) {
$model->domain = $map['Domain'];
}
if (isset($map['OutId'])) {
$model->outId = $map['OutId'];
}
if (isset($map['PhoneNumberJson'])) {
$model->phoneNumberJson = $map['PhoneNumberJson'];
}
if (isset($map['SignNameJson'])) {
$model->signNameJson = $map['SignNameJson'];
}
return $model;
}
}

View File

@@ -0,0 +1,92 @@
<?php
// This file is auto-generated, don't edit it. Thanks.
namespace AlibabaCloud\SDK\Dysmsapi\V20170525\Models;
use AlibabaCloud\Dara\Model;
class GetCardSmsLinkResponse extends Model
{
/**
* @var string[]
*/
public $headers;
/**
* @var int
*/
public $statusCode;
/**
* @var GetCardSmsLinkResponseBody
*/
public $body;
protected $_name = [
'headers' => 'headers',
'statusCode' => 'statusCode',
'body' => 'body',
];
public function validate()
{
if (\is_array($this->headers)) {
Model::validateArray($this->headers);
}
if (null !== $this->body) {
$this->body->validate();
}
parent::validate();
}
public function toArray($noStream = false)
{
$res = [];
if (null !== $this->headers) {
if (\is_array($this->headers)) {
$res['headers'] = [];
foreach ($this->headers as $key1 => $value1) {
$res['headers'][$key1] = $value1;
}
}
}
if (null !== $this->statusCode) {
$res['statusCode'] = $this->statusCode;
}
if (null !== $this->body) {
$res['body'] = null !== $this->body ? $this->body->toArray($noStream) : $this->body;
}
return $res;
}
public function toMap($noStream = false)
{
return $this->toArray($noStream);
}
public static function fromMap($map = [])
{
$model = new self();
if (isset($map['headers'])) {
if (!empty($map['headers'])) {
$model->headers = [];
foreach ($map['headers'] as $key1 => $value1) {
$model->headers[$key1] = $value1;
}
}
}
if (isset($map['statusCode'])) {
$model->statusCode = $map['statusCode'];
}
if (isset($map['body'])) {
$model->body = GetCardSmsLinkResponseBody::fromMap($map['body']);
}
return $model;
}
}

View File

@@ -0,0 +1,94 @@
<?php
// This file is auto-generated, don't edit it. Thanks.
namespace AlibabaCloud\SDK\Dysmsapi\V20170525\Models;
use AlibabaCloud\Dara\Model;
use AlibabaCloud\SDK\Dysmsapi\V20170525\Models\GetCardSmsLinkResponseBody\data;
class GetCardSmsLinkResponseBody extends Model
{
/**
* @var string
*/
public $code;
/**
* @var data
*/
public $data;
/**
* @var string
*/
public $requestId;
/**
* @var bool
*/
public $success;
protected $_name = [
'code' => 'Code',
'data' => 'Data',
'requestId' => 'RequestId',
'success' => 'Success',
];
public function validate()
{
if (null !== $this->data) {
$this->data->validate();
}
parent::validate();
}
public function toArray($noStream = false)
{
$res = [];
if (null !== $this->code) {
$res['Code'] = $this->code;
}
if (null !== $this->data) {
$res['Data'] = null !== $this->data ? $this->data->toArray($noStream) : $this->data;
}
if (null !== $this->requestId) {
$res['RequestId'] = $this->requestId;
}
if (null !== $this->success) {
$res['Success'] = $this->success;
}
return $res;
}
public function toMap($noStream = false)
{
return $this->toArray($noStream);
}
public static function fromMap($map = [])
{
$model = new self();
if (isset($map['Code'])) {
$model->code = $map['Code'];
}
if (isset($map['Data'])) {
$model->data = data::fromMap($map['Data']);
}
if (isset($map['RequestId'])) {
$model->requestId = $map['RequestId'];
}
if (isset($map['Success'])) {
$model->success = $map['Success'];
}
return $model;
}
}

View File

@@ -0,0 +1,104 @@
<?php
// This file is auto-generated, don't edit it. Thanks.
namespace AlibabaCloud\SDK\Dysmsapi\V20170525\Models\GetCardSmsLinkResponseBody;
use AlibabaCloud\Dara\Model;
class data extends Model
{
/**
* @var string
*/
public $cardPhoneNumbers;
/**
* @var string
*/
public $cardSignNames;
/**
* @var string
*/
public $cardSmsLinks;
/**
* @var int
*/
public $cardTmpState;
/**
* @var string
*/
public $notMediaMobiles;
protected $_name = [
'cardPhoneNumbers' => 'CardPhoneNumbers',
'cardSignNames' => 'CardSignNames',
'cardSmsLinks' => 'CardSmsLinks',
'cardTmpState' => 'CardTmpState',
'notMediaMobiles' => 'NotMediaMobiles',
];
public function validate()
{
parent::validate();
}
public function toArray($noStream = false)
{
$res = [];
if (null !== $this->cardPhoneNumbers) {
$res['CardPhoneNumbers'] = $this->cardPhoneNumbers;
}
if (null !== $this->cardSignNames) {
$res['CardSignNames'] = $this->cardSignNames;
}
if (null !== $this->cardSmsLinks) {
$res['CardSmsLinks'] = $this->cardSmsLinks;
}
if (null !== $this->cardTmpState) {
$res['CardTmpState'] = $this->cardTmpState;
}
if (null !== $this->notMediaMobiles) {
$res['NotMediaMobiles'] = $this->notMediaMobiles;
}
return $res;
}
public function toMap($noStream = false)
{
return $this->toArray($noStream);
}
public static function fromMap($map = [])
{
$model = new self();
if (isset($map['CardPhoneNumbers'])) {
$model->cardPhoneNumbers = $map['CardPhoneNumbers'];
}
if (isset($map['CardSignNames'])) {
$model->cardSignNames = $map['CardSignNames'];
}
if (isset($map['CardSmsLinks'])) {
$model->cardSmsLinks = $map['CardSmsLinks'];
}
if (isset($map['CardTmpState'])) {
$model->cardTmpState = $map['CardTmpState'];
}
if (isset($map['NotMediaMobiles'])) {
$model->notMediaMobiles = $map['NotMediaMobiles'];
}
return $model;
}
}

View File

@@ -0,0 +1,104 @@
<?php
// This file is auto-generated, don't edit it. Thanks.
namespace AlibabaCloud\SDK\Dysmsapi\V20170525\Models;
use AlibabaCloud\Dara\Model;
class GetMediaResourceIdRequest extends Model
{
/**
* @var string
*/
public $extendInfo;
/**
* @var int
*/
public $fileSize;
/**
* @var string
*/
public $memo;
/**
* @var string
*/
public $ossKey;
/**
* @var int
*/
public $resourceType;
protected $_name = [
'extendInfo' => 'ExtendInfo',
'fileSize' => 'FileSize',
'memo' => 'Memo',
'ossKey' => 'OssKey',
'resourceType' => 'ResourceType',
];
public function validate()
{
parent::validate();
}
public function toArray($noStream = false)
{
$res = [];
if (null !== $this->extendInfo) {
$res['ExtendInfo'] = $this->extendInfo;
}
if (null !== $this->fileSize) {
$res['FileSize'] = $this->fileSize;
}
if (null !== $this->memo) {
$res['Memo'] = $this->memo;
}
if (null !== $this->ossKey) {
$res['OssKey'] = $this->ossKey;
}
if (null !== $this->resourceType) {
$res['ResourceType'] = $this->resourceType;
}
return $res;
}
public function toMap($noStream = false)
{
return $this->toArray($noStream);
}
public static function fromMap($map = [])
{
$model = new self();
if (isset($map['ExtendInfo'])) {
$model->extendInfo = $map['ExtendInfo'];
}
if (isset($map['FileSize'])) {
$model->fileSize = $map['FileSize'];
}
if (isset($map['Memo'])) {
$model->memo = $map['Memo'];
}
if (isset($map['OssKey'])) {
$model->ossKey = $map['OssKey'];
}
if (isset($map['ResourceType'])) {
$model->resourceType = $map['ResourceType'];
}
return $model;
}
}

View File

@@ -0,0 +1,92 @@
<?php
// This file is auto-generated, don't edit it. Thanks.
namespace AlibabaCloud\SDK\Dysmsapi\V20170525\Models;
use AlibabaCloud\Dara\Model;
class GetMediaResourceIdResponse extends Model
{
/**
* @var string[]
*/
public $headers;
/**
* @var int
*/
public $statusCode;
/**
* @var GetMediaResourceIdResponseBody
*/
public $body;
protected $_name = [
'headers' => 'headers',
'statusCode' => 'statusCode',
'body' => 'body',
];
public function validate()
{
if (\is_array($this->headers)) {
Model::validateArray($this->headers);
}
if (null !== $this->body) {
$this->body->validate();
}
parent::validate();
}
public function toArray($noStream = false)
{
$res = [];
if (null !== $this->headers) {
if (\is_array($this->headers)) {
$res['headers'] = [];
foreach ($this->headers as $key1 => $value1) {
$res['headers'][$key1] = $value1;
}
}
}
if (null !== $this->statusCode) {
$res['statusCode'] = $this->statusCode;
}
if (null !== $this->body) {
$res['body'] = null !== $this->body ? $this->body->toArray($noStream) : $this->body;
}
return $res;
}
public function toMap($noStream = false)
{
return $this->toArray($noStream);
}
public static function fromMap($map = [])
{
$model = new self();
if (isset($map['headers'])) {
if (!empty($map['headers'])) {
$model->headers = [];
foreach ($map['headers'] as $key1 => $value1) {
$model->headers[$key1] = $value1;
}
}
}
if (isset($map['statusCode'])) {
$model->statusCode = $map['statusCode'];
}
if (isset($map['body'])) {
$model->body = GetMediaResourceIdResponseBody::fromMap($map['body']);
}
return $model;
}
}

View File

@@ -0,0 +1,94 @@
<?php
// This file is auto-generated, don't edit it. Thanks.
namespace AlibabaCloud\SDK\Dysmsapi\V20170525\Models;
use AlibabaCloud\Dara\Model;
use AlibabaCloud\SDK\Dysmsapi\V20170525\Models\GetMediaResourceIdResponseBody\data;
class GetMediaResourceIdResponseBody extends Model
{
/**
* @var string
*/
public $code;
/**
* @var data
*/
public $data;
/**
* @var string
*/
public $requestId;
/**
* @var bool
*/
public $success;
protected $_name = [
'code' => 'Code',
'data' => 'Data',
'requestId' => 'RequestId',
'success' => 'Success',
];
public function validate()
{
if (null !== $this->data) {
$this->data->validate();
}
parent::validate();
}
public function toArray($noStream = false)
{
$res = [];
if (null !== $this->code) {
$res['Code'] = $this->code;
}
if (null !== $this->data) {
$res['Data'] = null !== $this->data ? $this->data->toArray($noStream) : $this->data;
}
if (null !== $this->requestId) {
$res['RequestId'] = $this->requestId;
}
if (null !== $this->success) {
$res['Success'] = $this->success;
}
return $res;
}
public function toMap($noStream = false)
{
return $this->toArray($noStream);
}
public static function fromMap($map = [])
{
$model = new self();
if (isset($map['Code'])) {
$model->code = $map['Code'];
}
if (isset($map['Data'])) {
$model->data = data::fromMap($map['Data']);
}
if (isset($map['RequestId'])) {
$model->requestId = $map['RequestId'];
}
if (isset($map['Success'])) {
$model->success = $map['Success'];
}
return $model;
}
}

View File

@@ -0,0 +1,62 @@
<?php
// This file is auto-generated, don't edit it. Thanks.
namespace AlibabaCloud\SDK\Dysmsapi\V20170525\Models\GetMediaResourceIdResponseBody;
use AlibabaCloud\Dara\Model;
class data extends Model
{
/**
* @var string
*/
public $resUrlDownload;
/**
* @var int
*/
public $resourceId;
protected $_name = [
'resUrlDownload' => 'ResUrlDownload',
'resourceId' => 'ResourceId',
];
public function validate()
{
parent::validate();
}
public function toArray($noStream = false)
{
$res = [];
if (null !== $this->resUrlDownload) {
$res['ResUrlDownload'] = $this->resUrlDownload;
}
if (null !== $this->resourceId) {
$res['ResourceId'] = $this->resourceId;
}
return $res;
}
public function toMap($noStream = false)
{
return $this->toArray($noStream);
}
public static function fromMap($map = [])
{
$model = new self();
if (isset($map['ResUrlDownload'])) {
$model->resUrlDownload = $map['ResUrlDownload'];
}
if (isset($map['ResourceId'])) {
$model->resourceId = $map['ResourceId'];
}
return $model;
}
}

View File

@@ -0,0 +1,92 @@
<?php
// This file is auto-generated, don't edit it. Thanks.
namespace AlibabaCloud\SDK\Dysmsapi\V20170525\Models;
use AlibabaCloud\Dara\Model;
class GetOSSInfoForCardTemplateResponse extends Model
{
/**
* @var string[]
*/
public $headers;
/**
* @var int
*/
public $statusCode;
/**
* @var GetOSSInfoForCardTemplateResponseBody
*/
public $body;
protected $_name = [
'headers' => 'headers',
'statusCode' => 'statusCode',
'body' => 'body',
];
public function validate()
{
if (\is_array($this->headers)) {
Model::validateArray($this->headers);
}
if (null !== $this->body) {
$this->body->validate();
}
parent::validate();
}
public function toArray($noStream = false)
{
$res = [];
if (null !== $this->headers) {
if (\is_array($this->headers)) {
$res['headers'] = [];
foreach ($this->headers as $key1 => $value1) {
$res['headers'][$key1] = $value1;
}
}
}
if (null !== $this->statusCode) {
$res['statusCode'] = $this->statusCode;
}
if (null !== $this->body) {
$res['body'] = null !== $this->body ? $this->body->toArray($noStream) : $this->body;
}
return $res;
}
public function toMap($noStream = false)
{
return $this->toArray($noStream);
}
public static function fromMap($map = [])
{
$model = new self();
if (isset($map['headers'])) {
if (!empty($map['headers'])) {
$model->headers = [];
foreach ($map['headers'] as $key1 => $value1) {
$model->headers[$key1] = $value1;
}
}
}
if (isset($map['statusCode'])) {
$model->statusCode = $map['statusCode'];
}
if (isset($map['body'])) {
$model->body = GetOSSInfoForCardTemplateResponseBody::fromMap($map['body']);
}
return $model;
}
}

View File

@@ -0,0 +1,94 @@
<?php
// This file is auto-generated, don't edit it. Thanks.
namespace AlibabaCloud\SDK\Dysmsapi\V20170525\Models;
use AlibabaCloud\Dara\Model;
use AlibabaCloud\SDK\Dysmsapi\V20170525\Models\GetOSSInfoForCardTemplateResponseBody\data;
class GetOSSInfoForCardTemplateResponseBody extends Model
{
/**
* @var string
*/
public $code;
/**
* @var data
*/
public $data;
/**
* @var string
*/
public $requestId;
/**
* @var bool
*/
public $success;
protected $_name = [
'code' => 'Code',
'data' => 'Data',
'requestId' => 'RequestId',
'success' => 'Success',
];
public function validate()
{
if (null !== $this->data) {
$this->data->validate();
}
parent::validate();
}
public function toArray($noStream = false)
{
$res = [];
if (null !== $this->code) {
$res['Code'] = $this->code;
}
if (null !== $this->data) {
$res['Data'] = null !== $this->data ? $this->data->toArray($noStream) : $this->data;
}
if (null !== $this->requestId) {
$res['RequestId'] = $this->requestId;
}
if (null !== $this->success) {
$res['Success'] = $this->success;
}
return $res;
}
public function toMap($noStream = false)
{
return $this->toArray($noStream);
}
public static function fromMap($map = [])
{
$model = new self();
if (isset($map['Code'])) {
$model->code = $map['Code'];
}
if (isset($map['Data'])) {
$model->data = data::fromMap($map['Data']);
}
if (isset($map['RequestId'])) {
$model->requestId = $map['RequestId'];
}
if (isset($map['Success'])) {
$model->success = $map['Success'];
}
return $model;
}
}

View File

@@ -0,0 +1,146 @@
<?php
// This file is auto-generated, don't edit it. Thanks.
namespace AlibabaCloud\SDK\Dysmsapi\V20170525\Models\GetOSSInfoForCardTemplateResponseBody;
use AlibabaCloud\Dara\Model;
class data extends Model
{
/**
* @var string
*/
public $accessKeyId;
/**
* @var string
*/
public $aliUid;
/**
* @var string
*/
public $bucket;
/**
* @var string
*/
public $expireTime;
/**
* @var string
*/
public $host;
/**
* @var string
*/
public $policy;
/**
* @var string
*/
public $signature;
/**
* @var string
*/
public $startPath;
protected $_name = [
'accessKeyId' => 'AccessKeyId',
'aliUid' => 'AliUid',
'bucket' => 'Bucket',
'expireTime' => 'ExpireTime',
'host' => 'Host',
'policy' => 'Policy',
'signature' => 'Signature',
'startPath' => 'StartPath',
];
public function validate()
{
parent::validate();
}
public function toArray($noStream = false)
{
$res = [];
if (null !== $this->accessKeyId) {
$res['AccessKeyId'] = $this->accessKeyId;
}
if (null !== $this->aliUid) {
$res['AliUid'] = $this->aliUid;
}
if (null !== $this->bucket) {
$res['Bucket'] = $this->bucket;
}
if (null !== $this->expireTime) {
$res['ExpireTime'] = $this->expireTime;
}
if (null !== $this->host) {
$res['Host'] = $this->host;
}
if (null !== $this->policy) {
$res['Policy'] = $this->policy;
}
if (null !== $this->signature) {
$res['Signature'] = $this->signature;
}
if (null !== $this->startPath) {
$res['StartPath'] = $this->startPath;
}
return $res;
}
public function toMap($noStream = false)
{
return $this->toArray($noStream);
}
public static function fromMap($map = [])
{
$model = new self();
if (isset($map['AccessKeyId'])) {
$model->accessKeyId = $map['AccessKeyId'];
}
if (isset($map['AliUid'])) {
$model->aliUid = $map['AliUid'];
}
if (isset($map['Bucket'])) {
$model->bucket = $map['Bucket'];
}
if (isset($map['ExpireTime'])) {
$model->expireTime = $map['ExpireTime'];
}
if (isset($map['Host'])) {
$model->host = $map['Host'];
}
if (isset($map['Policy'])) {
$model->policy = $map['Policy'];
}
if (isset($map['Signature'])) {
$model->signature = $map['Signature'];
}
if (isset($map['StartPath'])) {
$model->startPath = $map['StartPath'];
}
return $model;
}
}

View File

@@ -0,0 +1,90 @@
<?php
// This file is auto-generated, don't edit it. Thanks.
namespace AlibabaCloud\SDK\Dysmsapi\V20170525\Models;
use AlibabaCloud\Dara\Model;
class GetOSSInfoForUploadFileRequest extends Model
{
/**
* @var string
*/
public $bizType;
/**
* @var int
*/
public $ownerId;
/**
* @var string
*/
public $resourceOwnerAccount;
/**
* @var int
*/
public $resourceOwnerId;
protected $_name = [
'bizType' => 'BizType',
'ownerId' => 'OwnerId',
'resourceOwnerAccount' => 'ResourceOwnerAccount',
'resourceOwnerId' => 'ResourceOwnerId',
];
public function validate()
{
parent::validate();
}
public function toArray($noStream = false)
{
$res = [];
if (null !== $this->bizType) {
$res['BizType'] = $this->bizType;
}
if (null !== $this->ownerId) {
$res['OwnerId'] = $this->ownerId;
}
if (null !== $this->resourceOwnerAccount) {
$res['ResourceOwnerAccount'] = $this->resourceOwnerAccount;
}
if (null !== $this->resourceOwnerId) {
$res['ResourceOwnerId'] = $this->resourceOwnerId;
}
return $res;
}
public function toMap($noStream = false)
{
return $this->toArray($noStream);
}
public static function fromMap($map = [])
{
$model = new self();
if (isset($map['BizType'])) {
$model->bizType = $map['BizType'];
}
if (isset($map['OwnerId'])) {
$model->ownerId = $map['OwnerId'];
}
if (isset($map['ResourceOwnerAccount'])) {
$model->resourceOwnerAccount = $map['ResourceOwnerAccount'];
}
if (isset($map['ResourceOwnerId'])) {
$model->resourceOwnerId = $map['ResourceOwnerId'];
}
return $model;
}
}

View File

@@ -0,0 +1,92 @@
<?php
// This file is auto-generated, don't edit it. Thanks.
namespace AlibabaCloud\SDK\Dysmsapi\V20170525\Models;
use AlibabaCloud\Dara\Model;
class GetOSSInfoForUploadFileResponse extends Model
{
/**
* @var string[]
*/
public $headers;
/**
* @var int
*/
public $statusCode;
/**
* @var GetOSSInfoForUploadFileResponseBody
*/
public $body;
protected $_name = [
'headers' => 'headers',
'statusCode' => 'statusCode',
'body' => 'body',
];
public function validate()
{
if (\is_array($this->headers)) {
Model::validateArray($this->headers);
}
if (null !== $this->body) {
$this->body->validate();
}
parent::validate();
}
public function toArray($noStream = false)
{
$res = [];
if (null !== $this->headers) {
if (\is_array($this->headers)) {
$res['headers'] = [];
foreach ($this->headers as $key1 => $value1) {
$res['headers'][$key1] = $value1;
}
}
}
if (null !== $this->statusCode) {
$res['statusCode'] = $this->statusCode;
}
if (null !== $this->body) {
$res['body'] = null !== $this->body ? $this->body->toArray($noStream) : $this->body;
}
return $res;
}
public function toMap($noStream = false)
{
return $this->toArray($noStream);
}
public static function fromMap($map = [])
{
$model = new self();
if (isset($map['headers'])) {
if (!empty($map['headers'])) {
$model->headers = [];
foreach ($map['headers'] as $key1 => $value1) {
$model->headers[$key1] = $value1;
}
}
}
if (isset($map['statusCode'])) {
$model->statusCode = $map['statusCode'];
}
if (isset($map['body'])) {
$model->body = GetOSSInfoForUploadFileResponseBody::fromMap($map['body']);
}
return $model;
}
}

View File

@@ -0,0 +1,108 @@
<?php
// This file is auto-generated, don't edit it. Thanks.
namespace AlibabaCloud\SDK\Dysmsapi\V20170525\Models;
use AlibabaCloud\Dara\Model;
use AlibabaCloud\SDK\Dysmsapi\V20170525\Models\GetOSSInfoForUploadFileResponseBody\model_;
class GetOSSInfoForUploadFileResponseBody extends Model
{
/**
* @var string
*/
public $code;
/**
* @var string
*/
public $message;
/**
* @var model_
*/
public $model;
/**
* @var string
*/
public $requestId;
/**
* @var bool
*/
public $success;
protected $_name = [
'code' => 'Code',
'message' => 'Message',
'model' => 'Model',
'requestId' => 'RequestId',
'success' => 'Success',
];
public function validate()
{
if (null !== $this->model) {
$this->model->validate();
}
parent::validate();
}
public function toArray($noStream = false)
{
$res = [];
if (null !== $this->code) {
$res['Code'] = $this->code;
}
if (null !== $this->message) {
$res['Message'] = $this->message;
}
if (null !== $this->model) {
$res['Model'] = null !== $this->model ? $this->model->toArray($noStream) : $this->model;
}
if (null !== $this->requestId) {
$res['RequestId'] = $this->requestId;
}
if (null !== $this->success) {
$res['Success'] = $this->success;
}
return $res;
}
public function toMap($noStream = false)
{
return $this->toArray($noStream);
}
public static function fromMap($map = [])
{
$model = new self();
if (isset($map['Code'])) {
$model->code = $map['Code'];
}
if (isset($map['Message'])) {
$model->message = $map['Message'];
}
if (isset($map['Model'])) {
$model->model = model_::fromMap($map['Model']);
}
if (isset($map['RequestId'])) {
$model->requestId = $map['RequestId'];
}
if (isset($map['Success'])) {
$model->success = $map['Success'];
}
return $model;
}
}

View File

@@ -0,0 +1,118 @@
<?php
// This file is auto-generated, don't edit it. Thanks.
namespace AlibabaCloud\SDK\Dysmsapi\V20170525\Models\GetOSSInfoForUploadFileResponseBody;
use AlibabaCloud\Dara\Model;
class model_ extends Model
{
/**
* @var string
*/
public $accessKeyId;
/**
* @var string
*/
public $expireTime;
/**
* @var string
*/
public $host;
/**
* @var string
*/
public $policy;
/**
* @var string
*/
public $signature;
/**
* @var string
*/
public $startPath;
protected $_name = [
'accessKeyId' => 'AccessKeyId',
'expireTime' => 'ExpireTime',
'host' => 'Host',
'policy' => 'Policy',
'signature' => 'Signature',
'startPath' => 'StartPath',
];
public function validate()
{
parent::validate();
}
public function toArray($noStream = false)
{
$res = [];
if (null !== $this->accessKeyId) {
$res['AccessKeyId'] = $this->accessKeyId;
}
if (null !== $this->expireTime) {
$res['ExpireTime'] = $this->expireTime;
}
if (null !== $this->host) {
$res['Host'] = $this->host;
}
if (null !== $this->policy) {
$res['Policy'] = $this->policy;
}
if (null !== $this->signature) {
$res['Signature'] = $this->signature;
}
if (null !== $this->startPath) {
$res['StartPath'] = $this->startPath;
}
return $res;
}
public function toMap($noStream = false)
{
return $this->toArray($noStream);
}
public static function fromMap($map = [])
{
$model = new self();
if (isset($map['AccessKeyId'])) {
$model->accessKeyId = $map['AccessKeyId'];
}
if (isset($map['ExpireTime'])) {
$model->expireTime = $map['ExpireTime'];
}
if (isset($map['Host'])) {
$model->host = $map['Host'];
}
if (isset($map['Policy'])) {
$model->policy = $map['Policy'];
}
if (isset($map['Signature'])) {
$model->signature = $map['Signature'];
}
if (isset($map['StartPath'])) {
$model->startPath = $map['StartPath'];
}
return $model;
}
}

View File

@@ -0,0 +1,90 @@
<?php
// This file is auto-generated, don't edit it. Thanks.
namespace AlibabaCloud\SDK\Dysmsapi\V20170525\Models;
use AlibabaCloud\Dara\Model;
class GetQualificationOssInfoRequest extends Model
{
/**
* @var string
*/
public $bizType;
/**
* @var int
*/
public $ownerId;
/**
* @var string
*/
public $resourceOwnerAccount;
/**
* @var int
*/
public $resourceOwnerId;
protected $_name = [
'bizType' => 'BizType',
'ownerId' => 'OwnerId',
'resourceOwnerAccount' => 'ResourceOwnerAccount',
'resourceOwnerId' => 'ResourceOwnerId',
];
public function validate()
{
parent::validate();
}
public function toArray($noStream = false)
{
$res = [];
if (null !== $this->bizType) {
$res['BizType'] = $this->bizType;
}
if (null !== $this->ownerId) {
$res['OwnerId'] = $this->ownerId;
}
if (null !== $this->resourceOwnerAccount) {
$res['ResourceOwnerAccount'] = $this->resourceOwnerAccount;
}
if (null !== $this->resourceOwnerId) {
$res['ResourceOwnerId'] = $this->resourceOwnerId;
}
return $res;
}
public function toMap($noStream = false)
{
return $this->toArray($noStream);
}
public static function fromMap($map = [])
{
$model = new self();
if (isset($map['BizType'])) {
$model->bizType = $map['BizType'];
}
if (isset($map['OwnerId'])) {
$model->ownerId = $map['OwnerId'];
}
if (isset($map['ResourceOwnerAccount'])) {
$model->resourceOwnerAccount = $map['ResourceOwnerAccount'];
}
if (isset($map['ResourceOwnerId'])) {
$model->resourceOwnerId = $map['ResourceOwnerId'];
}
return $model;
}
}

View File

@@ -0,0 +1,92 @@
<?php
// This file is auto-generated, don't edit it. Thanks.
namespace AlibabaCloud\SDK\Dysmsapi\V20170525\Models;
use AlibabaCloud\Dara\Model;
class GetQualificationOssInfoResponse extends Model
{
/**
* @var string[]
*/
public $headers;
/**
* @var int
*/
public $statusCode;
/**
* @var GetQualificationOssInfoResponseBody
*/
public $body;
protected $_name = [
'headers' => 'headers',
'statusCode' => 'statusCode',
'body' => 'body',
];
public function validate()
{
if (\is_array($this->headers)) {
Model::validateArray($this->headers);
}
if (null !== $this->body) {
$this->body->validate();
}
parent::validate();
}
public function toArray($noStream = false)
{
$res = [];
if (null !== $this->headers) {
if (\is_array($this->headers)) {
$res['headers'] = [];
foreach ($this->headers as $key1 => $value1) {
$res['headers'][$key1] = $value1;
}
}
}
if (null !== $this->statusCode) {
$res['statusCode'] = $this->statusCode;
}
if (null !== $this->body) {
$res['body'] = null !== $this->body ? $this->body->toArray($noStream) : $this->body;
}
return $res;
}
public function toMap($noStream = false)
{
return $this->toArray($noStream);
}
public static function fromMap($map = [])
{
$model = new self();
if (isset($map['headers'])) {
if (!empty($map['headers'])) {
$model->headers = [];
foreach ($map['headers'] as $key1 => $value1) {
$model->headers[$key1] = $value1;
}
}
}
if (isset($map['statusCode'])) {
$model->statusCode = $map['statusCode'];
}
if (isset($map['body'])) {
$model->body = GetQualificationOssInfoResponseBody::fromMap($map['body']);
}
return $model;
}
}

View File

@@ -0,0 +1,122 @@
<?php
// This file is auto-generated, don't edit it. Thanks.
namespace AlibabaCloud\SDK\Dysmsapi\V20170525\Models;
use AlibabaCloud\Dara\Model;
use AlibabaCloud\SDK\Dysmsapi\V20170525\Models\GetQualificationOssInfoResponseBody\data;
class GetQualificationOssInfoResponseBody extends Model
{
/**
* @var string
*/
public $accessDeniedDetail;
/**
* @var string
*/
public $code;
/**
* @var data
*/
public $data;
/**
* @var string
*/
public $message;
/**
* @var string
*/
public $requestId;
/**
* @var bool
*/
public $success;
protected $_name = [
'accessDeniedDetail' => 'AccessDeniedDetail',
'code' => 'Code',
'data' => 'Data',
'message' => 'Message',
'requestId' => 'RequestId',
'success' => 'Success',
];
public function validate()
{
if (null !== $this->data) {
$this->data->validate();
}
parent::validate();
}
public function toArray($noStream = false)
{
$res = [];
if (null !== $this->accessDeniedDetail) {
$res['AccessDeniedDetail'] = $this->accessDeniedDetail;
}
if (null !== $this->code) {
$res['Code'] = $this->code;
}
if (null !== $this->data) {
$res['Data'] = null !== $this->data ? $this->data->toArray($noStream) : $this->data;
}
if (null !== $this->message) {
$res['Message'] = $this->message;
}
if (null !== $this->requestId) {
$res['RequestId'] = $this->requestId;
}
if (null !== $this->success) {
$res['Success'] = $this->success;
}
return $res;
}
public function toMap($noStream = false)
{
return $this->toArray($noStream);
}
public static function fromMap($map = [])
{
$model = new self();
if (isset($map['AccessDeniedDetail'])) {
$model->accessDeniedDetail = $map['AccessDeniedDetail'];
}
if (isset($map['Code'])) {
$model->code = $map['Code'];
}
if (isset($map['Data'])) {
$model->data = data::fromMap($map['Data']);
}
if (isset($map['Message'])) {
$model->message = $map['Message'];
}
if (isset($map['RequestId'])) {
$model->requestId = $map['RequestId'];
}
if (isset($map['Success'])) {
$model->success = $map['Success'];
}
return $model;
}
}

View File

@@ -0,0 +1,118 @@
<?php
// This file is auto-generated, don't edit it. Thanks.
namespace AlibabaCloud\SDK\Dysmsapi\V20170525\Models\GetQualificationOssInfoResponseBody;
use AlibabaCloud\Dara\Model;
class data extends Model
{
/**
* @var string
*/
public $accessKeyId;
/**
* @var int
*/
public $expire;
/**
* @var string
*/
public $host;
/**
* @var string
*/
public $policy;
/**
* @var string
*/
public $signature;
/**
* @var string
*/
public $startPath;
protected $_name = [
'accessKeyId' => 'AccessKeyId',
'expire' => 'Expire',
'host' => 'Host',
'policy' => 'Policy',
'signature' => 'Signature',
'startPath' => 'StartPath',
];
public function validate()
{
parent::validate();
}
public function toArray($noStream = false)
{
$res = [];
if (null !== $this->accessKeyId) {
$res['AccessKeyId'] = $this->accessKeyId;
}
if (null !== $this->expire) {
$res['Expire'] = $this->expire;
}
if (null !== $this->host) {
$res['Host'] = $this->host;
}
if (null !== $this->policy) {
$res['Policy'] = $this->policy;
}
if (null !== $this->signature) {
$res['Signature'] = $this->signature;
}
if (null !== $this->startPath) {
$res['StartPath'] = $this->startPath;
}
return $res;
}
public function toMap($noStream = false)
{
return $this->toArray($noStream);
}
public static function fromMap($map = [])
{
$model = new self();
if (isset($map['AccessKeyId'])) {
$model->accessKeyId = $map['AccessKeyId'];
}
if (isset($map['Expire'])) {
$model->expire = $map['Expire'];
}
if (isset($map['Host'])) {
$model->host = $map['Host'];
}
if (isset($map['Policy'])) {
$model->policy = $map['Policy'];
}
if (isset($map['Signature'])) {
$model->signature = $map['Signature'];
}
if (isset($map['StartPath'])) {
$model->startPath = $map['StartPath'];
}
return $model;
}
}

View File

@@ -0,0 +1,90 @@
<?php
// This file is auto-generated, don't edit it. Thanks.
namespace AlibabaCloud\SDK\Dysmsapi\V20170525\Models;
use AlibabaCloud\Dara\Model;
class GetSmsSignRequest extends Model
{
/**
* @var int
*/
public $ownerId;
/**
* @var string
*/
public $resourceOwnerAccount;
/**
* @var int
*/
public $resourceOwnerId;
/**
* @var string
*/
public $signName;
protected $_name = [
'ownerId' => 'OwnerId',
'resourceOwnerAccount' => 'ResourceOwnerAccount',
'resourceOwnerId' => 'ResourceOwnerId',
'signName' => 'SignName',
];
public function validate()
{
parent::validate();
}
public function toArray($noStream = false)
{
$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;
}
return $res;
}
public function toMap($noStream = false)
{
return $this->toArray($noStream);
}
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'];
}
return $model;
}
}

View File

@@ -0,0 +1,92 @@
<?php
// This file is auto-generated, don't edit it. Thanks.
namespace AlibabaCloud\SDK\Dysmsapi\V20170525\Models;
use AlibabaCloud\Dara\Model;
class GetSmsSignResponse extends Model
{
/**
* @var string[]
*/
public $headers;
/**
* @var int
*/
public $statusCode;
/**
* @var GetSmsSignResponseBody
*/
public $body;
protected $_name = [
'headers' => 'headers',
'statusCode' => 'statusCode',
'body' => 'body',
];
public function validate()
{
if (\is_array($this->headers)) {
Model::validateArray($this->headers);
}
if (null !== $this->body) {
$this->body->validate();
}
parent::validate();
}
public function toArray($noStream = false)
{
$res = [];
if (null !== $this->headers) {
if (\is_array($this->headers)) {
$res['headers'] = [];
foreach ($this->headers as $key1 => $value1) {
$res['headers'][$key1] = $value1;
}
}
}
if (null !== $this->statusCode) {
$res['statusCode'] = $this->statusCode;
}
if (null !== $this->body) {
$res['body'] = null !== $this->body ? $this->body->toArray($noStream) : $this->body;
}
return $res;
}
public function toMap($noStream = false)
{
return $this->toArray($noStream);
}
public static function fromMap($map = [])
{
$model = new self();
if (isset($map['headers'])) {
if (!empty($map['headers'])) {
$model->headers = [];
foreach ($map['headers'] as $key1 => $value1) {
$model->headers[$key1] = $value1;
}
}
}
if (isset($map['statusCode'])) {
$model->statusCode = $map['statusCode'];
}
if (isset($map['body'])) {
$model->body = GetSmsSignResponseBody::fromMap($map['body']);
}
return $model;
}
}

View File

@@ -0,0 +1,319 @@
<?php
// This file is auto-generated, don't edit it. Thanks.
namespace AlibabaCloud\SDK\Dysmsapi\V20170525\Models;
use AlibabaCloud\Dara\Model;
use AlibabaCloud\SDK\Dysmsapi\V20170525\Models\GetSmsSignResponseBody\auditInfo;
class GetSmsSignResponseBody extends Model
{
/**
* @var string
*/
public $applyScene;
/**
* @var auditInfo
*/
public $auditInfo;
/**
* @var bool
*/
public $authorizationLetterAuditPass;
/**
* @var int
*/
public $authorizationLetterId;
/**
* @var string
*/
public $code;
/**
* @var string
*/
public $createDate;
/**
* @var string[]
*/
public $fileUrlList;
/**
* @var string
*/
public $message;
/**
* @var string
*/
public $orderId;
/**
* @var int
*/
public $qualificationId;
/**
* @var int
*/
public $registerResult;
/**
* @var string
*/
public $remark;
/**
* @var string
*/
public $requestId;
/**
* @var string
*/
public $signCode;
/**
* @var string
*/
public $signName;
/**
* @var int
*/
public $signStatus;
/**
* @var string
*/
public $signTag;
/**
* @var string
*/
public $signUsage;
/**
* @var bool
*/
public $thirdParty;
protected $_name = [
'applyScene' => 'ApplyScene',
'auditInfo' => 'AuditInfo',
'authorizationLetterAuditPass' => 'AuthorizationLetterAuditPass',
'authorizationLetterId' => 'AuthorizationLetterId',
'code' => 'Code',
'createDate' => 'CreateDate',
'fileUrlList' => 'FileUrlList',
'message' => 'Message',
'orderId' => 'OrderId',
'qualificationId' => 'QualificationId',
'registerResult' => 'RegisterResult',
'remark' => 'Remark',
'requestId' => 'RequestId',
'signCode' => 'SignCode',
'signName' => 'SignName',
'signStatus' => 'SignStatus',
'signTag' => 'SignTag',
'signUsage' => 'SignUsage',
'thirdParty' => 'ThirdParty',
];
public function validate()
{
if (null !== $this->auditInfo) {
$this->auditInfo->validate();
}
if (\is_array($this->fileUrlList)) {
Model::validateArray($this->fileUrlList);
}
parent::validate();
}
public function toArray($noStream = false)
{
$res = [];
if (null !== $this->applyScene) {
$res['ApplyScene'] = $this->applyScene;
}
if (null !== $this->auditInfo) {
$res['AuditInfo'] = null !== $this->auditInfo ? $this->auditInfo->toArray($noStream) : $this->auditInfo;
}
if (null !== $this->authorizationLetterAuditPass) {
$res['AuthorizationLetterAuditPass'] = $this->authorizationLetterAuditPass;
}
if (null !== $this->authorizationLetterId) {
$res['AuthorizationLetterId'] = $this->authorizationLetterId;
}
if (null !== $this->code) {
$res['Code'] = $this->code;
}
if (null !== $this->createDate) {
$res['CreateDate'] = $this->createDate;
}
if (null !== $this->fileUrlList) {
if (\is_array($this->fileUrlList)) {
$res['FileUrlList'] = [];
$n1 = 0;
foreach ($this->fileUrlList as $item1) {
$res['FileUrlList'][$n1++] = $item1;
}
}
}
if (null !== $this->message) {
$res['Message'] = $this->message;
}
if (null !== $this->orderId) {
$res['OrderId'] = $this->orderId;
}
if (null !== $this->qualificationId) {
$res['QualificationId'] = $this->qualificationId;
}
if (null !== $this->registerResult) {
$res['RegisterResult'] = $this->registerResult;
}
if (null !== $this->remark) {
$res['Remark'] = $this->remark;
}
if (null !== $this->requestId) {
$res['RequestId'] = $this->requestId;
}
if (null !== $this->signCode) {
$res['SignCode'] = $this->signCode;
}
if (null !== $this->signName) {
$res['SignName'] = $this->signName;
}
if (null !== $this->signStatus) {
$res['SignStatus'] = $this->signStatus;
}
if (null !== $this->signTag) {
$res['SignTag'] = $this->signTag;
}
if (null !== $this->signUsage) {
$res['SignUsage'] = $this->signUsage;
}
if (null !== $this->thirdParty) {
$res['ThirdParty'] = $this->thirdParty;
}
return $res;
}
public function toMap($noStream = false)
{
return $this->toArray($noStream);
}
public static function fromMap($map = [])
{
$model = new self();
if (isset($map['ApplyScene'])) {
$model->applyScene = $map['ApplyScene'];
}
if (isset($map['AuditInfo'])) {
$model->auditInfo = auditInfo::fromMap($map['AuditInfo']);
}
if (isset($map['AuthorizationLetterAuditPass'])) {
$model->authorizationLetterAuditPass = $map['AuthorizationLetterAuditPass'];
}
if (isset($map['AuthorizationLetterId'])) {
$model->authorizationLetterId = $map['AuthorizationLetterId'];
}
if (isset($map['Code'])) {
$model->code = $map['Code'];
}
if (isset($map['CreateDate'])) {
$model->createDate = $map['CreateDate'];
}
if (isset($map['FileUrlList'])) {
if (!empty($map['FileUrlList'])) {
$model->fileUrlList = [];
$n1 = 0;
foreach ($map['FileUrlList'] as $item1) {
$model->fileUrlList[$n1++] = $item1;
}
}
}
if (isset($map['Message'])) {
$model->message = $map['Message'];
}
if (isset($map['OrderId'])) {
$model->orderId = $map['OrderId'];
}
if (isset($map['QualificationId'])) {
$model->qualificationId = $map['QualificationId'];
}
if (isset($map['RegisterResult'])) {
$model->registerResult = $map['RegisterResult'];
}
if (isset($map['Remark'])) {
$model->remark = $map['Remark'];
}
if (isset($map['RequestId'])) {
$model->requestId = $map['RequestId'];
}
if (isset($map['SignCode'])) {
$model->signCode = $map['SignCode'];
}
if (isset($map['SignName'])) {
$model->signName = $map['SignName'];
}
if (isset($map['SignStatus'])) {
$model->signStatus = $map['SignStatus'];
}
if (isset($map['SignTag'])) {
$model->signTag = $map['SignTag'];
}
if (isset($map['SignUsage'])) {
$model->signUsage = $map['SignUsage'];
}
if (isset($map['ThirdParty'])) {
$model->thirdParty = $map['ThirdParty'];
}
return $model;
}
}

View File

@@ -0,0 +1,62 @@
<?php
// This file is auto-generated, don't edit it. Thanks.
namespace AlibabaCloud\SDK\Dysmsapi\V20170525\Models\GetSmsSignResponseBody;
use AlibabaCloud\Dara\Model;
class auditInfo extends Model
{
/**
* @var string
*/
public $auditDate;
/**
* @var string
*/
public $rejectInfo;
protected $_name = [
'auditDate' => 'AuditDate',
'rejectInfo' => 'RejectInfo',
];
public function validate()
{
parent::validate();
}
public function toArray($noStream = false)
{
$res = [];
if (null !== $this->auditDate) {
$res['AuditDate'] = $this->auditDate;
}
if (null !== $this->rejectInfo) {
$res['RejectInfo'] = $this->rejectInfo;
}
return $res;
}
public function toMap($noStream = false)
{
return $this->toArray($noStream);
}
public static function fromMap($map = [])
{
$model = new self();
if (isset($map['AuditDate'])) {
$model->auditDate = $map['AuditDate'];
}
if (isset($map['RejectInfo'])) {
$model->rejectInfo = $map['RejectInfo'];
}
return $model;
}
}

View File

@@ -0,0 +1,90 @@
<?php
// This file is auto-generated, don't edit it. Thanks.
namespace AlibabaCloud\SDK\Dysmsapi\V20170525\Models;
use AlibabaCloud\Dara\Model;
class GetSmsTemplateRequest extends Model
{
/**
* @var int
*/
public $ownerId;
/**
* @var string
*/
public $resourceOwnerAccount;
/**
* @var int
*/
public $resourceOwnerId;
/**
* @var string
*/
public $templateCode;
protected $_name = [
'ownerId' => 'OwnerId',
'resourceOwnerAccount' => 'ResourceOwnerAccount',
'resourceOwnerId' => 'ResourceOwnerId',
'templateCode' => 'TemplateCode',
];
public function validate()
{
parent::validate();
}
public function toArray($noStream = false)
{
$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->templateCode) {
$res['TemplateCode'] = $this->templateCode;
}
return $res;
}
public function toMap($noStream = false)
{
return $this->toArray($noStream);
}
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['TemplateCode'])) {
$model->templateCode = $map['TemplateCode'];
}
return $model;
}
}

View File

@@ -0,0 +1,92 @@
<?php
// This file is auto-generated, don't edit it. Thanks.
namespace AlibabaCloud\SDK\Dysmsapi\V20170525\Models;
use AlibabaCloud\Dara\Model;
class GetSmsTemplateResponse extends Model
{
/**
* @var string[]
*/
public $headers;
/**
* @var int
*/
public $statusCode;
/**
* @var GetSmsTemplateResponseBody
*/
public $body;
protected $_name = [
'headers' => 'headers',
'statusCode' => 'statusCode',
'body' => 'body',
];
public function validate()
{
if (\is_array($this->headers)) {
Model::validateArray($this->headers);
}
if (null !== $this->body) {
$this->body->validate();
}
parent::validate();
}
public function toArray($noStream = false)
{
$res = [];
if (null !== $this->headers) {
if (\is_array($this->headers)) {
$res['headers'] = [];
foreach ($this->headers as $key1 => $value1) {
$res['headers'][$key1] = $value1;
}
}
}
if (null !== $this->statusCode) {
$res['statusCode'] = $this->statusCode;
}
if (null !== $this->body) {
$res['body'] = null !== $this->body ? $this->body->toArray($noStream) : $this->body;
}
return $res;
}
public function toMap($noStream = false)
{
return $this->toArray($noStream);
}
public static function fromMap($map = [])
{
$model = new self();
if (isset($map['headers'])) {
if (!empty($map['headers'])) {
$model->headers = [];
foreach ($map['headers'] as $key1 => $value1) {
$model->headers[$key1] = $value1;
}
}
}
if (isset($map['statusCode'])) {
$model->statusCode = $map['statusCode'];
}
if (isset($map['body'])) {
$model->body = GetSmsTemplateResponseBody::fromMap($map['body']);
}
return $model;
}
}

View File

@@ -0,0 +1,339 @@
<?php
// This file is auto-generated, don't edit it. Thanks.
namespace AlibabaCloud\SDK\Dysmsapi\V20170525\Models;
use AlibabaCloud\Dara\Model;
use AlibabaCloud\SDK\Dysmsapi\V20170525\Models\GetSmsTemplateResponseBody\auditInfo;
use AlibabaCloud\SDK\Dysmsapi\V20170525\Models\GetSmsTemplateResponseBody\fileUrlList;
use AlibabaCloud\SDK\Dysmsapi\V20170525\Models\GetSmsTemplateResponseBody\moreDataFileUrlList;
class GetSmsTemplateResponseBody extends Model
{
/**
* @var string
*/
public $applyScene;
/**
* @var auditInfo
*/
public $auditInfo;
/**
* @var string
*/
public $code;
/**
* @var string
*/
public $createDate;
/**
* @var fileUrlList
*/
public $fileUrlList;
/**
* @var int
*/
public $intlType;
/**
* @var string
*/
public $message;
/**
* @var moreDataFileUrlList
*/
public $moreDataFileUrlList;
/**
* @var string
*/
public $orderId;
/**
* @var string
*/
public $relatedSignName;
/**
* @var string
*/
public $remark;
/**
* @var string
*/
public $requestId;
/**
* @var string
*/
public $templateCode;
/**
* @var string
*/
public $templateContent;
/**
* @var string
*/
public $templateName;
/**
* @var string
*/
public $templateStatus;
/**
* @var int
*/
public $templateTag;
/**
* @var string
*/
public $templateType;
/**
* @var string
*/
public $variableAttribute;
/**
* @var mixed[]
*/
public $vendorAuditStatus;
protected $_name = [
'applyScene' => 'ApplyScene',
'auditInfo' => 'AuditInfo',
'code' => 'Code',
'createDate' => 'CreateDate',
'fileUrlList' => 'FileUrlList',
'intlType' => 'IntlType',
'message' => 'Message',
'moreDataFileUrlList' => 'MoreDataFileUrlList',
'orderId' => 'OrderId',
'relatedSignName' => 'RelatedSignName',
'remark' => 'Remark',
'requestId' => 'RequestId',
'templateCode' => 'TemplateCode',
'templateContent' => 'TemplateContent',
'templateName' => 'TemplateName',
'templateStatus' => 'TemplateStatus',
'templateTag' => 'TemplateTag',
'templateType' => 'TemplateType',
'variableAttribute' => 'VariableAttribute',
'vendorAuditStatus' => 'VendorAuditStatus',
];
public function validate()
{
if (null !== $this->auditInfo) {
$this->auditInfo->validate();
}
if (null !== $this->fileUrlList) {
$this->fileUrlList->validate();
}
if (null !== $this->moreDataFileUrlList) {
$this->moreDataFileUrlList->validate();
}
if (\is_array($this->vendorAuditStatus)) {
Model::validateArray($this->vendorAuditStatus);
}
parent::validate();
}
public function toArray($noStream = false)
{
$res = [];
if (null !== $this->applyScene) {
$res['ApplyScene'] = $this->applyScene;
}
if (null !== $this->auditInfo) {
$res['AuditInfo'] = null !== $this->auditInfo ? $this->auditInfo->toArray($noStream) : $this->auditInfo;
}
if (null !== $this->code) {
$res['Code'] = $this->code;
}
if (null !== $this->createDate) {
$res['CreateDate'] = $this->createDate;
}
if (null !== $this->fileUrlList) {
$res['FileUrlList'] = null !== $this->fileUrlList ? $this->fileUrlList->toArray($noStream) : $this->fileUrlList;
}
if (null !== $this->intlType) {
$res['IntlType'] = $this->intlType;
}
if (null !== $this->message) {
$res['Message'] = $this->message;
}
if (null !== $this->moreDataFileUrlList) {
$res['MoreDataFileUrlList'] = null !== $this->moreDataFileUrlList ? $this->moreDataFileUrlList->toArray($noStream) : $this->moreDataFileUrlList;
}
if (null !== $this->orderId) {
$res['OrderId'] = $this->orderId;
}
if (null !== $this->relatedSignName) {
$res['RelatedSignName'] = $this->relatedSignName;
}
if (null !== $this->remark) {
$res['Remark'] = $this->remark;
}
if (null !== $this->requestId) {
$res['RequestId'] = $this->requestId;
}
if (null !== $this->templateCode) {
$res['TemplateCode'] = $this->templateCode;
}
if (null !== $this->templateContent) {
$res['TemplateContent'] = $this->templateContent;
}
if (null !== $this->templateName) {
$res['TemplateName'] = $this->templateName;
}
if (null !== $this->templateStatus) {
$res['TemplateStatus'] = $this->templateStatus;
}
if (null !== $this->templateTag) {
$res['TemplateTag'] = $this->templateTag;
}
if (null !== $this->templateType) {
$res['TemplateType'] = $this->templateType;
}
if (null !== $this->variableAttribute) {
$res['VariableAttribute'] = $this->variableAttribute;
}
if (null !== $this->vendorAuditStatus) {
if (\is_array($this->vendorAuditStatus)) {
$res['VendorAuditStatus'] = [];
foreach ($this->vendorAuditStatus as $key1 => $value1) {
$res['VendorAuditStatus'][$key1] = $value1;
}
}
}
return $res;
}
public function toMap($noStream = false)
{
return $this->toArray($noStream);
}
public static function fromMap($map = [])
{
$model = new self();
if (isset($map['ApplyScene'])) {
$model->applyScene = $map['ApplyScene'];
}
if (isset($map['AuditInfo'])) {
$model->auditInfo = auditInfo::fromMap($map['AuditInfo']);
}
if (isset($map['Code'])) {
$model->code = $map['Code'];
}
if (isset($map['CreateDate'])) {
$model->createDate = $map['CreateDate'];
}
if (isset($map['FileUrlList'])) {
$model->fileUrlList = fileUrlList::fromMap($map['FileUrlList']);
}
if (isset($map['IntlType'])) {
$model->intlType = $map['IntlType'];
}
if (isset($map['Message'])) {
$model->message = $map['Message'];
}
if (isset($map['MoreDataFileUrlList'])) {
$model->moreDataFileUrlList = moreDataFileUrlList::fromMap($map['MoreDataFileUrlList']);
}
if (isset($map['OrderId'])) {
$model->orderId = $map['OrderId'];
}
if (isset($map['RelatedSignName'])) {
$model->relatedSignName = $map['RelatedSignName'];
}
if (isset($map['Remark'])) {
$model->remark = $map['Remark'];
}
if (isset($map['RequestId'])) {
$model->requestId = $map['RequestId'];
}
if (isset($map['TemplateCode'])) {
$model->templateCode = $map['TemplateCode'];
}
if (isset($map['TemplateContent'])) {
$model->templateContent = $map['TemplateContent'];
}
if (isset($map['TemplateName'])) {
$model->templateName = $map['TemplateName'];
}
if (isset($map['TemplateStatus'])) {
$model->templateStatus = $map['TemplateStatus'];
}
if (isset($map['TemplateTag'])) {
$model->templateTag = $map['TemplateTag'];
}
if (isset($map['TemplateType'])) {
$model->templateType = $map['TemplateType'];
}
if (isset($map['VariableAttribute'])) {
$model->variableAttribute = $map['VariableAttribute'];
}
if (isset($map['VendorAuditStatus'])) {
if (!empty($map['VendorAuditStatus'])) {
$model->vendorAuditStatus = [];
foreach ($map['VendorAuditStatus'] as $key1 => $value1) {
$model->vendorAuditStatus[$key1] = $value1;
}
}
}
return $model;
}
}

View File

@@ -0,0 +1,62 @@
<?php
// This file is auto-generated, don't edit it. Thanks.
namespace AlibabaCloud\SDK\Dysmsapi\V20170525\Models\GetSmsTemplateResponseBody;
use AlibabaCloud\Dara\Model;
class auditInfo extends Model
{
/**
* @var string
*/
public $auditDate;
/**
* @var string
*/
public $rejectInfo;
protected $_name = [
'auditDate' => 'AuditDate',
'rejectInfo' => 'RejectInfo',
];
public function validate()
{
parent::validate();
}
public function toArray($noStream = false)
{
$res = [];
if (null !== $this->auditDate) {
$res['AuditDate'] = $this->auditDate;
}
if (null !== $this->rejectInfo) {
$res['RejectInfo'] = $this->rejectInfo;
}
return $res;
}
public function toMap($noStream = false)
{
return $this->toArray($noStream);
}
public static function fromMap($map = [])
{
$model = new self();
if (isset($map['AuditDate'])) {
$model->auditDate = $map['AuditDate'];
}
if (isset($map['RejectInfo'])) {
$model->rejectInfo = $map['RejectInfo'];
}
return $model;
}
}

View File

@@ -0,0 +1,63 @@
<?php
// This file is auto-generated, don't edit it. Thanks.
namespace AlibabaCloud\SDK\Dysmsapi\V20170525\Models\GetSmsTemplateResponseBody;
use AlibabaCloud\Dara\Model;
class fileUrlList extends Model
{
/**
* @var string[]
*/
public $fileUrl;
protected $_name = [
'fileUrl' => 'FileUrl',
];
public function validate()
{
if (\is_array($this->fileUrl)) {
Model::validateArray($this->fileUrl);
}
parent::validate();
}
public function toArray($noStream = false)
{
$res = [];
if (null !== $this->fileUrl) {
if (\is_array($this->fileUrl)) {
$res['FileUrl'] = [];
$n1 = 0;
foreach ($this->fileUrl as $item1) {
$res['FileUrl'][$n1++] = $item1;
}
}
}
return $res;
}
public function toMap($noStream = false)
{
return $this->toArray($noStream);
}
public static function fromMap($map = [])
{
$model = new self();
if (isset($map['FileUrl'])) {
if (!empty($map['FileUrl'])) {
$model->fileUrl = [];
$n1 = 0;
foreach ($map['FileUrl'] as $item1) {
$model->fileUrl[$n1++] = $item1;
}
}
}
return $model;
}
}

View File

@@ -0,0 +1,63 @@
<?php
// This file is auto-generated, don't edit it. Thanks.
namespace AlibabaCloud\SDK\Dysmsapi\V20170525\Models\GetSmsTemplateResponseBody;
use AlibabaCloud\Dara\Model;
class moreDataFileUrlList extends Model
{
/**
* @var string[]
*/
public $moreDataFileUrl;
protected $_name = [
'moreDataFileUrl' => 'MoreDataFileUrl',
];
public function validate()
{
if (\is_array($this->moreDataFileUrl)) {
Model::validateArray($this->moreDataFileUrl);
}
parent::validate();
}
public function toArray($noStream = false)
{
$res = [];
if (null !== $this->moreDataFileUrl) {
if (\is_array($this->moreDataFileUrl)) {
$res['MoreDataFileUrl'] = [];
$n1 = 0;
foreach ($this->moreDataFileUrl as $item1) {
$res['MoreDataFileUrl'][$n1++] = $item1;
}
}
}
return $res;
}
public function toMap($noStream = false)
{
return $this->toArray($noStream);
}
public static function fromMap($map = [])
{
$model = new self();
if (isset($map['MoreDataFileUrl'])) {
if (!empty($map['MoreDataFileUrl'])) {
$model->moreDataFileUrl = [];
$n1 = 0;
foreach ($map['MoreDataFileUrl'] as $item1) {
$model->moreDataFileUrl[$n1++] = $item1;
}
}
}
return $model;
}
}

View File

@@ -0,0 +1,205 @@
<?php
// This file is auto-generated, don't edit it. Thanks.
namespace AlibabaCloud\SDK\Dysmsapi\V20170525\Models;
use AlibabaCloud\Dara\Model;
use AlibabaCloud\SDK\Dysmsapi\V20170525\Models\ListTagResourcesRequest\tag;
class ListTagResourcesRequest extends Model
{
/**
* @var string
*/
public $nextToken;
/**
* @var int
*/
public $ownerId;
/**
* @var int
*/
public $pageSize;
/**
* @var string
*/
public $prodCode;
/**
* @var string
*/
public $regionId;
/**
* @var string[]
*/
public $resourceId;
/**
* @var string
*/
public $resourceOwnerAccount;
/**
* @var int
*/
public $resourceOwnerId;
/**
* @var string
*/
public $resourceType;
/**
* @var tag[]
*/
public $tag;
protected $_name = [
'nextToken' => 'NextToken',
'ownerId' => 'OwnerId',
'pageSize' => 'PageSize',
'prodCode' => 'ProdCode',
'regionId' => 'RegionId',
'resourceId' => 'ResourceId',
'resourceOwnerAccount' => 'ResourceOwnerAccount',
'resourceOwnerId' => 'ResourceOwnerId',
'resourceType' => 'ResourceType',
'tag' => 'Tag',
];
public function validate()
{
if (\is_array($this->resourceId)) {
Model::validateArray($this->resourceId);
}
if (\is_array($this->tag)) {
Model::validateArray($this->tag);
}
parent::validate();
}
public function toArray($noStream = false)
{
$res = [];
if (null !== $this->nextToken) {
$res['NextToken'] = $this->nextToken;
}
if (null !== $this->ownerId) {
$res['OwnerId'] = $this->ownerId;
}
if (null !== $this->pageSize) {
$res['PageSize'] = $this->pageSize;
}
if (null !== $this->prodCode) {
$res['ProdCode'] = $this->prodCode;
}
if (null !== $this->regionId) {
$res['RegionId'] = $this->regionId;
}
if (null !== $this->resourceId) {
if (\is_array($this->resourceId)) {
$res['ResourceId'] = [];
$n1 = 0;
foreach ($this->resourceId as $item1) {
$res['ResourceId'][$n1++] = $item1;
}
}
}
if (null !== $this->resourceOwnerAccount) {
$res['ResourceOwnerAccount'] = $this->resourceOwnerAccount;
}
if (null !== $this->resourceOwnerId) {
$res['ResourceOwnerId'] = $this->resourceOwnerId;
}
if (null !== $this->resourceType) {
$res['ResourceType'] = $this->resourceType;
}
if (null !== $this->tag) {
if (\is_array($this->tag)) {
$res['Tag'] = [];
$n1 = 0;
foreach ($this->tag as $item1) {
$res['Tag'][$n1++] = null !== $item1 ? $item1->toArray($noStream) : $item1;
}
}
}
return $res;
}
public function toMap($noStream = false)
{
return $this->toArray($noStream);
}
public static function fromMap($map = [])
{
$model = new self();
if (isset($map['NextToken'])) {
$model->nextToken = $map['NextToken'];
}
if (isset($map['OwnerId'])) {
$model->ownerId = $map['OwnerId'];
}
if (isset($map['PageSize'])) {
$model->pageSize = $map['PageSize'];
}
if (isset($map['ProdCode'])) {
$model->prodCode = $map['ProdCode'];
}
if (isset($map['RegionId'])) {
$model->regionId = $map['RegionId'];
}
if (isset($map['ResourceId'])) {
if (!empty($map['ResourceId'])) {
$model->resourceId = [];
$n1 = 0;
foreach ($map['ResourceId'] as $item1) {
$model->resourceId[$n1++] = $item1;
}
}
}
if (isset($map['ResourceOwnerAccount'])) {
$model->resourceOwnerAccount = $map['ResourceOwnerAccount'];
}
if (isset($map['ResourceOwnerId'])) {
$model->resourceOwnerId = $map['ResourceOwnerId'];
}
if (isset($map['ResourceType'])) {
$model->resourceType = $map['ResourceType'];
}
if (isset($map['Tag'])) {
if (!empty($map['Tag'])) {
$model->tag = [];
$n1 = 0;
foreach ($map['Tag'] as $item1) {
$model->tag[$n1++] = tag::fromMap($item1);
}
}
}
return $model;
}
}

View File

@@ -0,0 +1,62 @@
<?php
// This file is auto-generated, don't edit it. Thanks.
namespace AlibabaCloud\SDK\Dysmsapi\V20170525\Models\ListTagResourcesRequest;
use AlibabaCloud\Dara\Model;
class tag extends Model
{
/**
* @var string
*/
public $key;
/**
* @var string
*/
public $value;
protected $_name = [
'key' => 'Key',
'value' => 'Value',
];
public function validate()
{
parent::validate();
}
public function toArray($noStream = false)
{
$res = [];
if (null !== $this->key) {
$res['Key'] = $this->key;
}
if (null !== $this->value) {
$res['Value'] = $this->value;
}
return $res;
}
public function toMap($noStream = false)
{
return $this->toArray($noStream);
}
public static function fromMap($map = [])
{
$model = new self();
if (isset($map['Key'])) {
$model->key = $map['Key'];
}
if (isset($map['Value'])) {
$model->value = $map['Value'];
}
return $model;
}
}

View File

@@ -0,0 +1,92 @@
<?php
// This file is auto-generated, don't edit it. Thanks.
namespace AlibabaCloud\SDK\Dysmsapi\V20170525\Models;
use AlibabaCloud\Dara\Model;
class ListTagResourcesResponse extends Model
{
/**
* @var string[]
*/
public $headers;
/**
* @var int
*/
public $statusCode;
/**
* @var ListTagResourcesResponseBody
*/
public $body;
protected $_name = [
'headers' => 'headers',
'statusCode' => 'statusCode',
'body' => 'body',
];
public function validate()
{
if (\is_array($this->headers)) {
Model::validateArray($this->headers);
}
if (null !== $this->body) {
$this->body->validate();
}
parent::validate();
}
public function toArray($noStream = false)
{
$res = [];
if (null !== $this->headers) {
if (\is_array($this->headers)) {
$res['headers'] = [];
foreach ($this->headers as $key1 => $value1) {
$res['headers'][$key1] = $value1;
}
}
}
if (null !== $this->statusCode) {
$res['statusCode'] = $this->statusCode;
}
if (null !== $this->body) {
$res['body'] = null !== $this->body ? $this->body->toArray($noStream) : $this->body;
}
return $res;
}
public function toMap($noStream = false)
{
return $this->toArray($noStream);
}
public static function fromMap($map = [])
{
$model = new self();
if (isset($map['headers'])) {
if (!empty($map['headers'])) {
$model->headers = [];
foreach ($map['headers'] as $key1 => $value1) {
$model->headers[$key1] = $value1;
}
}
}
if (isset($map['statusCode'])) {
$model->statusCode = $map['statusCode'];
}
if (isset($map['body'])) {
$model->body = ListTagResourcesResponseBody::fromMap($map['body']);
}
return $model;
}
}

View File

@@ -0,0 +1,94 @@
<?php
// This file is auto-generated, don't edit it. Thanks.
namespace AlibabaCloud\SDK\Dysmsapi\V20170525\Models;
use AlibabaCloud\Dara\Model;
use AlibabaCloud\SDK\Dysmsapi\V20170525\Models\ListTagResourcesResponseBody\tagResources;
class ListTagResourcesResponseBody extends Model
{
/**
* @var string
*/
public $code;
/**
* @var string
*/
public $nextToken;
/**
* @var string
*/
public $requestId;
/**
* @var tagResources
*/
public $tagResources;
protected $_name = [
'code' => 'Code',
'nextToken' => 'NextToken',
'requestId' => 'RequestId',
'tagResources' => 'TagResources',
];
public function validate()
{
if (null !== $this->tagResources) {
$this->tagResources->validate();
}
parent::validate();
}
public function toArray($noStream = false)
{
$res = [];
if (null !== $this->code) {
$res['Code'] = $this->code;
}
if (null !== $this->nextToken) {
$res['NextToken'] = $this->nextToken;
}
if (null !== $this->requestId) {
$res['RequestId'] = $this->requestId;
}
if (null !== $this->tagResources) {
$res['TagResources'] = null !== $this->tagResources ? $this->tagResources->toArray($noStream) : $this->tagResources;
}
return $res;
}
public function toMap($noStream = false)
{
return $this->toArray($noStream);
}
public static function fromMap($map = [])
{
$model = new self();
if (isset($map['Code'])) {
$model->code = $map['Code'];
}
if (isset($map['NextToken'])) {
$model->nextToken = $map['NextToken'];
}
if (isset($map['RequestId'])) {
$model->requestId = $map['RequestId'];
}
if (isset($map['TagResources'])) {
$model->tagResources = tagResources::fromMap($map['TagResources']);
}
return $model;
}
}

Some files were not shown because too many files have changed in this diff Show More