Files
juipphp/vendor/alibabacloud/dysmsapi-20170525/src/Models/DeleteShortUrlRequest.php
2022-05-13 17:02:00 +08:00

84 lines
1.8 KiB
PHP

<?php
// This file is auto-generated, don't edit it. Thanks.
namespace AlibabaCloud\SDK\Dysmsapi\V20170525\Models;
use AlibabaCloud\Tea\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()
{
}
public function toMap()
{
$res = [];
if (null !== $this->ownerId) {
$res['OwnerId'] = $this->ownerId;
}
if (null !== $this->resourceOwnerAccount) {
$res['ResourceOwnerAccount'] = $this->resourceOwnerAccount;
}
if (null !== $this->resourceOwnerId) {
$res['ResourceOwnerId'] = $this->resourceOwnerId;
}
if (null !== $this->sourceUrl) {
$res['SourceUrl'] = $this->sourceUrl;
}
return $res;
}
/**
* @param array $map
*
* @return DeleteShortUrlRequest
*/
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;
}
}