parent
306f3e80c4
commit
022a41a2da
@ -1,119 +0,0 @@
|
||||
<?php
|
||||
|
||||
// This file is auto-generated, don't edit it. Thanks.
|
||||
|
||||
namespace AlibabaCloud\SDK\Dysmsapi\V20170525\Models;
|
||||
|
||||
use AlibabaCloud\Tea\Model;
|
||||
|
||||
class AddShortUrlRequest extends Model
|
||||
{
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
public $ownerId;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $resourceOwnerAccount;
|
||||
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
public $resourceOwnerId;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $sourceUrl;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $shortUrlName;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $effectiveDays;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $prodCode;
|
||||
protected $_name = [
|
||||
'ownerId' => 'OwnerId',
|
||||
'resourceOwnerAccount' => 'ResourceOwnerAccount',
|
||||
'resourceOwnerId' => 'ResourceOwnerId',
|
||||
'sourceUrl' => 'SourceUrl',
|
||||
'shortUrlName' => 'ShortUrlName',
|
||||
'effectiveDays' => 'EffectiveDays',
|
||||
'prodCode' => 'ProdCode',
|
||||
];
|
||||
|
||||
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;
|
||||
}
|
||||
if (null !== $this->shortUrlName) {
|
||||
$res['ShortUrlName'] = $this->shortUrlName;
|
||||
}
|
||||
if (null !== $this->effectiveDays) {
|
||||
$res['EffectiveDays'] = $this->effectiveDays;
|
||||
}
|
||||
if (null !== $this->prodCode) {
|
||||
$res['ProdCode'] = $this->prodCode;
|
||||
}
|
||||
|
||||
return $res;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array $map
|
||||
*
|
||||
* @return AddShortUrlRequest
|
||||
*/
|
||||
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'];
|
||||
}
|
||||
if (isset($map['ShortUrlName'])) {
|
||||
$model->shortUrlName = $map['ShortUrlName'];
|
||||
}
|
||||
if (isset($map['EffectiveDays'])) {
|
||||
$model->effectiveDays = $map['EffectiveDays'];
|
||||
}
|
||||
if (isset($map['ProdCode'])) {
|
||||
$model->prodCode = $map['ProdCode'];
|
||||
}
|
||||
|
||||
return $model;
|
||||
}
|
||||
}
|
@ -1,61 +0,0 @@
|
||||
<?php
|
||||
|
||||
// This file is auto-generated, don't edit it. Thanks.
|
||||
|
||||
namespace AlibabaCloud\SDK\Dysmsapi\V20170525\Models;
|
||||
|
||||
use AlibabaCloud\Tea\Model;
|
||||
|
||||
class AddShortUrlResponse extends Model
|
||||
{
|
||||
/**
|
||||
* @var string[]
|
||||
*/
|
||||
public $headers;
|
||||
|
||||
/**
|
||||
* @var AddShortUrlResponseBody
|
||||
*/
|
||||
public $body;
|
||||
protected $_name = [
|
||||
'headers' => 'headers',
|
||||
'body' => 'body',
|
||||
];
|
||||
|
||||
public function validate()
|
||||
{
|
||||
Model::validateRequired('headers', $this->headers, true);
|
||||
Model::validateRequired('body', $this->body, true);
|
||||
}
|
||||
|
||||
public function toMap()
|
||||
{
|
||||
$res = [];
|
||||
if (null !== $this->headers) {
|
||||
$res['headers'] = $this->headers;
|
||||
}
|
||||
if (null !== $this->body) {
|
||||
$res['body'] = null !== $this->body ? $this->body->toMap() : null;
|
||||
}
|
||||
|
||||
return $res;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array $map
|
||||
*
|
||||
* @return AddShortUrlResponse
|
||||
*/
|
||||
public static function fromMap($map = [])
|
||||
{
|
||||
$model = new self();
|
||||
if (isset($map['headers'])) {
|
||||
$model->headers = $map['headers'];
|
||||
}
|
||||
if (isset($map['body'])) {
|
||||
$model->body = AddShortUrlResponseBody::fromMap($map['body']);
|
||||
}
|
||||
|
||||
return $model;
|
||||
}
|
||||
}
|
@ -1,84 +0,0 @@
|
||||
<?php
|
||||
|
||||
// This file is auto-generated, don't edit it. Thanks.
|
||||
|
||||
namespace AlibabaCloud\SDK\Dysmsapi\V20170525\Models;
|
||||
|
||||
use AlibabaCloud\SDK\Dysmsapi\V20170525\Models\AddShortUrlResponseBody\data;
|
||||
use AlibabaCloud\Tea\Model;
|
||||
|
||||
class AddShortUrlResponseBody extends Model
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $message;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $requestId;
|
||||
|
||||
/**
|
||||
* @var data
|
||||
*/
|
||||
public $data;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $code;
|
||||
protected $_name = [
|
||||
'message' => 'Message',
|
||||
'requestId' => 'RequestId',
|
||||
'data' => 'Data',
|
||||
'code' => 'Code',
|
||||
];
|
||||
|
||||
public function validate()
|
||||
{
|
||||
}
|
||||
|
||||
public function toMap()
|
||||
{
|
||||
$res = [];
|
||||
if (null !== $this->message) {
|
||||
$res['Message'] = $this->message;
|
||||
}
|
||||
if (null !== $this->requestId) {
|
||||
$res['RequestId'] = $this->requestId;
|
||||
}
|
||||
if (null !== $this->data) {
|
||||
$res['Data'] = null !== $this->data ? $this->data->toMap() : null;
|
||||
}
|
||||
if (null !== $this->code) {
|
||||
$res['Code'] = $this->code;
|
||||
}
|
||||
|
||||
return $res;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array $map
|
||||
*
|
||||
* @return AddShortUrlResponseBody
|
||||
*/
|
||||
public static function fromMap($map = [])
|
||||
{
|
||||
$model = new self();
|
||||
if (isset($map['Message'])) {
|
||||
$model->message = $map['Message'];
|
||||
}
|
||||
if (isset($map['RequestId'])) {
|
||||
$model->requestId = $map['RequestId'];
|
||||
}
|
||||
if (isset($map['Data'])) {
|
||||
$model->data = data::fromMap($map['Data']);
|
||||
}
|
||||
if (isset($map['Code'])) {
|
||||
$model->code = $map['Code'];
|
||||
}
|
||||
|
||||
return $model;
|
||||
}
|
||||
}
|
@ -1,71 +0,0 @@
|
||||
<?php
|
||||
|
||||
// This file is auto-generated, don't edit it. Thanks.
|
||||
|
||||
namespace AlibabaCloud\SDK\Dysmsapi\V20170525\Models\AddShortUrlResponseBody;
|
||||
|
||||
use AlibabaCloud\Tea\Model;
|
||||
|
||||
class data extends Model
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $sourceUrl;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $expireDate;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $shortUrl;
|
||||
protected $_name = [
|
||||
'sourceUrl' => 'SourceUrl',
|
||||
'expireDate' => 'ExpireDate',
|
||||
'shortUrl' => 'ShortUrl',
|
||||
];
|
||||
|
||||
public function validate()
|
||||
{
|
||||
}
|
||||
|
||||
public function toMap()
|
||||
{
|
||||
$res = [];
|
||||
if (null !== $this->sourceUrl) {
|
||||
$res['SourceUrl'] = $this->sourceUrl;
|
||||
}
|
||||
if (null !== $this->expireDate) {
|
||||
$res['ExpireDate'] = $this->expireDate;
|
||||
}
|
||||
if (null !== $this->shortUrl) {
|
||||
$res['ShortUrl'] = $this->shortUrl;
|
||||
}
|
||||
|
||||
return $res;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array $map
|
||||
*
|
||||
* @return data
|
||||
*/
|
||||
public static function fromMap($map = [])
|
||||
{
|
||||
$model = new self();
|
||||
if (isset($map['SourceUrl'])) {
|
||||
$model->sourceUrl = $map['SourceUrl'];
|
||||
}
|
||||
if (isset($map['ExpireDate'])) {
|
||||
$model->expireDate = $map['ExpireDate'];
|
||||
}
|
||||
if (isset($map['ShortUrl'])) {
|
||||
$model->shortUrl = $map['ShortUrl'];
|
||||
}
|
||||
|
||||
return $model;
|
||||
}
|
||||
}
|
@ -1,84 +0,0 @@
|
||||
<?php
|
||||
|
||||
// This file is auto-generated, don't edit it. Thanks.
|
||||
|
||||
namespace AlibabaCloud\SDK\Dysmsapi\V20170525\Models;
|
||||
|
||||
use AlibabaCloud\SDK\Dysmsapi\V20170525\Models\CreateShortParamResponseBody\data;
|
||||
use AlibabaCloud\Tea\Model;
|
||||
|
||||
class CreateShortParamResponseBody extends Model
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $message;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $requestId;
|
||||
|
||||
/**
|
||||
* @var data
|
||||
*/
|
||||
public $data;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $code;
|
||||
protected $_name = [
|
||||
'message' => 'Message',
|
||||
'requestId' => 'RequestId',
|
||||
'data' => 'Data',
|
||||
'code' => 'Code',
|
||||
];
|
||||
|
||||
public function validate()
|
||||
{
|
||||
}
|
||||
|
||||
public function toMap()
|
||||
{
|
||||
$res = [];
|
||||
if (null !== $this->message) {
|
||||
$res['Message'] = $this->message;
|
||||
}
|
||||
if (null !== $this->requestId) {
|
||||
$res['RequestId'] = $this->requestId;
|
||||
}
|
||||
if (null !== $this->data) {
|
||||
$res['Data'] = null !== $this->data ? $this->data->toMap() : null;
|
||||
}
|
||||
if (null !== $this->code) {
|
||||
$res['Code'] = $this->code;
|
||||
}
|
||||
|
||||
return $res;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array $map
|
||||
*
|
||||
* @return CreateShortParamResponseBody
|
||||
*/
|
||||
public static function fromMap($map = [])
|
||||
{
|
||||
$model = new self();
|
||||
if (isset($map['Message'])) {
|
||||
$model->message = $map['Message'];
|
||||
}
|
||||
if (isset($map['RequestId'])) {
|
||||
$model->requestId = $map['RequestId'];
|
||||
}
|
||||
if (isset($map['Data'])) {
|
||||
$model->data = data::fromMap($map['Data']);
|
||||
}
|
||||
if (isset($map['Code'])) {
|
||||
$model->code = $map['Code'];
|
||||
}
|
||||
|
||||
return $model;
|
||||
}
|
||||
}
|
@ -1,71 +0,0 @@
|
||||
<?php
|
||||
|
||||
// This file is auto-generated, don't edit it. Thanks.
|
||||
|
||||
namespace AlibabaCloud\SDK\Dysmsapi\V20170525\Models\CreateShortParamResponseBody;
|
||||
|
||||
use AlibabaCloud\Tea\Model;
|
||||
|
||||
class data extends Model
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $phoneNumbers;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $shortParam;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $paramDetail;
|
||||
protected $_name = [
|
||||
'phoneNumbers' => 'PhoneNumbers',
|
||||
'shortParam' => 'ShortParam',
|
||||
'paramDetail' => 'ParamDetail',
|
||||
];
|
||||
|
||||
public function validate()
|
||||
{
|
||||
}
|
||||
|
||||
public function toMap()
|
||||
{
|
||||
$res = [];
|
||||
if (null !== $this->phoneNumbers) {
|
||||
$res['PhoneNumbers'] = $this->phoneNumbers;
|
||||
}
|
||||
if (null !== $this->shortParam) {
|
||||
$res['ShortParam'] = $this->shortParam;
|
||||
}
|
||||
if (null !== $this->paramDetail) {
|
||||
$res['ParamDetail'] = $this->paramDetail;
|
||||
}
|
||||
|
||||
return $res;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array $map
|
||||
*
|
||||
* @return data
|
||||
*/
|
||||
public static function fromMap($map = [])
|
||||
{
|
||||
$model = new self();
|
||||
if (isset($map['PhoneNumbers'])) {
|
||||
$model->phoneNumbers = $map['PhoneNumbers'];
|
||||
}
|
||||
if (isset($map['ShortParam'])) {
|
||||
$model->shortParam = $map['ShortParam'];
|
||||
}
|
||||
if (isset($map['ParamDetail'])) {
|
||||
$model->paramDetail = $map['ParamDetail'];
|
||||
}
|
||||
|
||||
return $model;
|
||||
}
|
||||
}
|
@ -1,95 +0,0 @@
|
||||
<?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;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $prodCode;
|
||||
protected $_name = [
|
||||
'ownerId' => 'OwnerId',
|
||||
'resourceOwnerAccount' => 'ResourceOwnerAccount',
|
||||
'resourceOwnerId' => 'ResourceOwnerId',
|
||||
'sourceUrl' => 'SourceUrl',
|
||||
'prodCode' => 'ProdCode',
|
||||
];
|
||||
|
||||
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;
|
||||
}
|
||||
if (null !== $this->prodCode) {
|
||||
$res['ProdCode'] = $this->prodCode;
|
||||
}
|
||||
|
||||
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'];
|
||||
}
|
||||
if (isset($map['ProdCode'])) {
|
||||
$model->prodCode = $map['ProdCode'];
|
||||
}
|
||||
|
||||
return $model;
|
||||
}
|
||||
}
|
@ -1,61 +0,0 @@
|
||||
<?php
|
||||
|
||||
// This file is auto-generated, don't edit it. Thanks.
|
||||
|
||||
namespace AlibabaCloud\SDK\Dysmsapi\V20170525\Models;
|
||||
|
||||
use AlibabaCloud\Tea\Model;
|
||||
|
||||
class DeleteShortUrlResponse extends Model
|
||||
{
|
||||
/**
|
||||
* @var string[]
|
||||
*/
|
||||
public $headers;
|
||||
|
||||
/**
|
||||
* @var DeleteShortUrlResponseBody
|
||||
*/
|
||||
public $body;
|
||||
protected $_name = [
|
||||
'headers' => 'headers',
|
||||
'body' => 'body',
|
||||
];
|
||||
|
||||
public function validate()
|
||||
{
|
||||
Model::validateRequired('headers', $this->headers, true);
|
||||
Model::validateRequired('body', $this->body, true);
|
||||
}
|
||||
|
||||
public function toMap()
|
||||
{
|
||||
$res = [];
|
||||
if (null !== $this->headers) {
|
||||
$res['headers'] = $this->headers;
|
||||
}
|
||||
if (null !== $this->body) {
|
||||
$res['body'] = null !== $this->body ? $this->body->toMap() : null;
|
||||
}
|
||||
|
||||
return $res;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array $map
|
||||
*
|
||||
* @return DeleteShortUrlResponse
|
||||
*/
|
||||
public static function fromMap($map = [])
|
||||
{
|
||||
$model = new self();
|
||||
if (isset($map['headers'])) {
|
||||
$model->headers = $map['headers'];
|
||||
}
|
||||
if (isset($map['body'])) {
|
||||
$model->body = DeleteShortUrlResponseBody::fromMap($map['body']);
|
||||
}
|
||||
|
||||
return $model;
|
||||
}
|
||||
}
|
@ -1,71 +0,0 @@
|
||||
<?php
|
||||
|
||||
// This file is auto-generated, don't edit it. Thanks.
|
||||
|
||||
namespace AlibabaCloud\SDK\Dysmsapi\V20170525\Models;
|
||||
|
||||
use AlibabaCloud\Tea\Model;
|
||||
|
||||
class DeleteShortUrlResponseBody extends Model
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $message;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $requestId;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $code;
|
||||
protected $_name = [
|
||||
'message' => 'Message',
|
||||
'requestId' => 'RequestId',
|
||||
'code' => 'Code',
|
||||
];
|
||||
|
||||
public function validate()
|
||||
{
|
||||
}
|
||||
|
||||
public function toMap()
|
||||
{
|
||||
$res = [];
|
||||
if (null !== $this->message) {
|
||||
$res['Message'] = $this->message;
|
||||
}
|
||||
if (null !== $this->requestId) {
|
||||
$res['RequestId'] = $this->requestId;
|
||||
}
|
||||
if (null !== $this->code) {
|
||||
$res['Code'] = $this->code;
|
||||
}
|
||||
|
||||
return $res;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array $map
|
||||
*
|
||||
* @return DeleteShortUrlResponseBody
|
||||
*/
|
||||
public static function fromMap($map = [])
|
||||
{
|
||||
$model = new self();
|
||||
if (isset($map['Message'])) {
|
||||
$model->message = $map['Message'];
|
||||
}
|
||||
if (isset($map['RequestId'])) {
|
||||
$model->requestId = $map['RequestId'];
|
||||
}
|
||||
if (isset($map['Code'])) {
|
||||
$model->code = $map['Code'];
|
||||
}
|
||||
|
||||
return $model;
|
||||
}
|
||||
}
|
@ -1,95 +0,0 @@
|
||||
<?php
|
||||
|
||||
// This file is auto-generated, don't edit it. Thanks.
|
||||
|
||||
namespace AlibabaCloud\SDK\Dysmsapi\V20170525\Models;
|
||||
|
||||
use AlibabaCloud\Tea\Model;
|
||||
|
||||
class QueryShortUrlRequest extends Model
|
||||
{
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
public $ownerId;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $resourceOwnerAccount;
|
||||
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
public $resourceOwnerId;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $prodCode;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $shortUrl;
|
||||
protected $_name = [
|
||||
'ownerId' => 'OwnerId',
|
||||
'resourceOwnerAccount' => 'ResourceOwnerAccount',
|
||||
'resourceOwnerId' => 'ResourceOwnerId',
|
||||
'prodCode' => 'ProdCode',
|
||||
'shortUrl' => 'ShortUrl',
|
||||
];
|
||||
|
||||
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->prodCode) {
|
||||
$res['ProdCode'] = $this->prodCode;
|
||||
}
|
||||
if (null !== $this->shortUrl) {
|
||||
$res['ShortUrl'] = $this->shortUrl;
|
||||
}
|
||||
|
||||
return $res;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array $map
|
||||
*
|
||||
* @return QueryShortUrlRequest
|
||||
*/
|
||||
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['ProdCode'])) {
|
||||
$model->prodCode = $map['ProdCode'];
|
||||
}
|
||||
if (isset($map['ShortUrl'])) {
|
||||
$model->shortUrl = $map['ShortUrl'];
|
||||
}
|
||||
|
||||
return $model;
|
||||
}
|
||||
}
|
@ -1,61 +0,0 @@
|
||||
<?php
|
||||
|
||||
// This file is auto-generated, don't edit it. Thanks.
|
||||
|
||||
namespace AlibabaCloud\SDK\Dysmsapi\V20170525\Models;
|
||||
|
||||
use AlibabaCloud\Tea\Model;
|
||||
|
||||
class QueryShortUrlResponse extends Model
|
||||
{
|
||||
/**
|
||||
* @var string[]
|
||||
*/
|
||||
public $headers;
|
||||
|
||||
/**
|
||||
* @var QueryShortUrlResponseBody
|
||||
*/
|
||||
public $body;
|
||||
protected $_name = [
|
||||
'headers' => 'headers',
|
||||
'body' => 'body',
|
||||
];
|
||||
|
||||
public function validate()
|
||||
{
|
||||
Model::validateRequired('headers', $this->headers, true);
|
||||
Model::validateRequired('body', $this->body, true);
|
||||
}
|
||||
|
||||
public function toMap()
|
||||
{
|
||||
$res = [];
|
||||
if (null !== $this->headers) {
|
||||
$res['headers'] = $this->headers;
|
||||
}
|
||||
if (null !== $this->body) {
|
||||
$res['body'] = null !== $this->body ? $this->body->toMap() : null;
|
||||
}
|
||||
|
||||
return $res;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array $map
|
||||
*
|
||||
* @return QueryShortUrlResponse
|
||||
*/
|
||||
public static function fromMap($map = [])
|
||||
{
|
||||
$model = new self();
|
||||
if (isset($map['headers'])) {
|
||||
$model->headers = $map['headers'];
|
||||
}
|
||||
if (isset($map['body'])) {
|
||||
$model->body = QueryShortUrlResponseBody::fromMap($map['body']);
|
||||
}
|
||||
|
||||
return $model;
|
||||
}
|
||||
}
|
@ -1,84 +0,0 @@
|
||||
<?php
|
||||
|
||||
// This file is auto-generated, don't edit it. Thanks.
|
||||
|
||||
namespace AlibabaCloud\SDK\Dysmsapi\V20170525\Models;
|
||||
|
||||
use AlibabaCloud\SDK\Dysmsapi\V20170525\Models\QueryShortUrlResponseBody\data;
|
||||
use AlibabaCloud\Tea\Model;
|
||||
|
||||
class QueryShortUrlResponseBody extends Model
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $message;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $requestId;
|
||||
|
||||
/**
|
||||
* @var data
|
||||
*/
|
||||
public $data;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $code;
|
||||
protected $_name = [
|
||||
'message' => 'Message',
|
||||
'requestId' => 'RequestId',
|
||||
'data' => 'Data',
|
||||
'code' => 'Code',
|
||||
];
|
||||
|
||||
public function validate()
|
||||
{
|
||||
}
|
||||
|
||||
public function toMap()
|
||||
{
|
||||
$res = [];
|
||||
if (null !== $this->message) {
|
||||
$res['Message'] = $this->message;
|
||||
}
|
||||
if (null !== $this->requestId) {
|
||||
$res['RequestId'] = $this->requestId;
|
||||
}
|
||||
if (null !== $this->data) {
|
||||
$res['Data'] = null !== $this->data ? $this->data->toMap() : null;
|
||||
}
|
||||
if (null !== $this->code) {
|
||||
$res['Code'] = $this->code;
|
||||
}
|
||||
|
||||
return $res;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array $map
|
||||
*
|
||||
* @return QueryShortUrlResponseBody
|
||||
*/
|
||||
public static function fromMap($map = [])
|
||||
{
|
||||
$model = new self();
|
||||
if (isset($map['Message'])) {
|
||||
$model->message = $map['Message'];
|
||||
}
|
||||
if (isset($map['RequestId'])) {
|
||||
$model->requestId = $map['RequestId'];
|
||||
}
|
||||
if (isset($map['Data'])) {
|
||||
$model->data = data::fromMap($map['Data']);
|
||||
}
|
||||
if (isset($map['Code'])) {
|
||||
$model->code = $map['Code'];
|
||||
}
|
||||
|
||||
return $model;
|
||||
}
|
||||
}
|
@ -1,131 +0,0 @@
|
||||
<?php
|
||||
|
||||
// This file is auto-generated, don't edit it. Thanks.
|
||||
|
||||
namespace AlibabaCloud\SDK\Dysmsapi\V20170525\Models\QueryShortUrlResponseBody;
|
||||
|
||||
use AlibabaCloud\Tea\Model;
|
||||
|
||||
class data extends Model
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $uniqueVisitorCount;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $sourceUrl;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $shortUrlStatus;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $pageViewCount;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $expireDate;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $shortUrlName;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $createDate;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $shortUrl;
|
||||
protected $_name = [
|
||||
'uniqueVisitorCount' => 'UniqueVisitorCount',
|
||||
'sourceUrl' => 'SourceUrl',
|
||||
'shortUrlStatus' => 'ShortUrlStatus',
|
||||
'pageViewCount' => 'PageViewCount',
|
||||
'expireDate' => 'ExpireDate',
|
||||
'shortUrlName' => 'ShortUrlName',
|
||||
'createDate' => 'CreateDate',
|
||||
'shortUrl' => 'ShortUrl',
|
||||
];
|
||||
|
||||
public function validate()
|
||||
{
|
||||
}
|
||||
|
||||
public function toMap()
|
||||
{
|
||||
$res = [];
|
||||
if (null !== $this->uniqueVisitorCount) {
|
||||
$res['UniqueVisitorCount'] = $this->uniqueVisitorCount;
|
||||
}
|
||||
if (null !== $this->sourceUrl) {
|
||||
$res['SourceUrl'] = $this->sourceUrl;
|
||||
}
|
||||
if (null !== $this->shortUrlStatus) {
|
||||
$res['ShortUrlStatus'] = $this->shortUrlStatus;
|
||||
}
|
||||
if (null !== $this->pageViewCount) {
|
||||
$res['PageViewCount'] = $this->pageViewCount;
|
||||
}
|
||||
if (null !== $this->expireDate) {
|
||||
$res['ExpireDate'] = $this->expireDate;
|
||||
}
|
||||
if (null !== $this->shortUrlName) {
|
||||
$res['ShortUrlName'] = $this->shortUrlName;
|
||||
}
|
||||
if (null !== $this->createDate) {
|
||||
$res['CreateDate'] = $this->createDate;
|
||||
}
|
||||
if (null !== $this->shortUrl) {
|
||||
$res['ShortUrl'] = $this->shortUrl;
|
||||
}
|
||||
|
||||
return $res;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array $map
|
||||
*
|
||||
* @return data
|
||||
*/
|
||||
public static function fromMap($map = [])
|
||||
{
|
||||
$model = new self();
|
||||
if (isset($map['UniqueVisitorCount'])) {
|
||||
$model->uniqueVisitorCount = $map['UniqueVisitorCount'];
|
||||
}
|
||||
if (isset($map['SourceUrl'])) {
|
||||
$model->sourceUrl = $map['SourceUrl'];
|
||||
}
|
||||
if (isset($map['ShortUrlStatus'])) {
|
||||
$model->shortUrlStatus = $map['ShortUrlStatus'];
|
||||
}
|
||||
if (isset($map['PageViewCount'])) {
|
||||
$model->pageViewCount = $map['PageViewCount'];
|
||||
}
|
||||
if (isset($map['ExpireDate'])) {
|
||||
$model->expireDate = $map['ExpireDate'];
|
||||
}
|
||||
if (isset($map['ShortUrlName'])) {
|
||||
$model->shortUrlName = $map['ShortUrlName'];
|
||||
}
|
||||
if (isset($map['CreateDate'])) {
|
||||
$model->createDate = $map['CreateDate'];
|
||||
}
|
||||
if (isset($map['ShortUrl'])) {
|
||||
$model->shortUrl = $map['ShortUrl'];
|
||||
}
|
||||
|
||||
return $model;
|
||||
}
|
||||
}
|
@ -0,0 +1,120 @@
|
||||
<?php
|
||||
|
||||
// This file is auto-generated, don't edit it. Thanks.
|
||||
|
||||
namespace AlibabaCloud\SDK\Dysmsapi\V20170525\Models;
|
||||
|
||||
use AlibabaCloud\SDK\Dysmsapi\V20170525\Models\SendMessageToGlobeResponseBody\numberDetail;
|
||||
use AlibabaCloud\Tea\Model;
|
||||
|
||||
class SendMessageToGlobeResponseBody extends Model
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $from;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $messageId;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $requestId;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $segments;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $code;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $to;
|
||||
|
||||
/**
|
||||
* @var numberDetail
|
||||
*/
|
||||
public $numberDetail;
|
||||
protected $_name = [
|
||||
'from' => 'From',
|
||||
'messageId' => 'MessageId',
|
||||
'requestId' => 'RequestId',
|
||||
'segments' => 'Segments',
|
||||
'code' => 'Code',
|
||||
'to' => 'To',
|
||||
'numberDetail' => 'NumberDetail',
|
||||
];
|
||||
|
||||
public function validate()
|
||||
{
|
||||
}
|
||||
|
||||
public function toMap()
|
||||
{
|
||||
$res = [];
|
||||
if (null !== $this->from) {
|
||||
$res['From'] = $this->from;
|
||||
}
|
||||
if (null !== $this->messageId) {
|
||||
$res['MessageId'] = $this->messageId;
|
||||
}
|
||||
if (null !== $this->requestId) {
|
||||
$res['RequestId'] = $this->requestId;
|
||||
}
|
||||
if (null !== $this->segments) {
|
||||
$res['Segments'] = $this->segments;
|
||||
}
|
||||
if (null !== $this->code) {
|
||||
$res['Code'] = $this->code;
|
||||
}
|
||||
if (null !== $this->to) {
|
||||
$res['To'] = $this->to;
|
||||
}
|
||||
if (null !== $this->numberDetail) {
|
||||
$res['NumberDetail'] = null !== $this->numberDetail ? $this->numberDetail->toMap() : null;
|
||||
}
|
||||
|
||||
return $res;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array $map
|
||||
*
|
||||
* @return SendMessageToGlobeResponseBody
|
||||
*/
|
||||
public static function fromMap($map = [])
|
||||
{
|
||||
$model = new self();
|
||||
if (isset($map['From'])) {
|
||||
$model->from = $map['From'];
|
||||
}
|
||||
if (isset($map['MessageId'])) {
|
||||
$model->messageId = $map['MessageId'];
|
||||
}
|
||||
if (isset($map['RequestId'])) {
|
||||
$model->requestId = $map['RequestId'];
|
||||
}
|
||||
if (isset($map['Segments'])) {
|
||||
$model->segments = $map['Segments'];
|
||||
}
|
||||
if (isset($map['Code'])) {
|
||||
$model->code = $map['Code'];
|
||||
}
|
||||
if (isset($map['To'])) {
|
||||
$model->to = $map['To'];
|
||||
}
|
||||
if (isset($map['NumberDetail'])) {
|
||||
$model->numberDetail = numberDetail::fromMap($map['NumberDetail']);
|
||||
}
|
||||
|
||||
return $model;
|
||||
}
|
||||
}
|
@ -0,0 +1,71 @@
|
||||
<?php
|
||||
|
||||
// This file is auto-generated, don't edit it. Thanks.
|
||||
|
||||
namespace AlibabaCloud\SDK\Dysmsapi\V20170525\Models\SendMessageToGlobeResponseBody;
|
||||
|
||||
use AlibabaCloud\Tea\Model;
|
||||
|
||||
class numberDetail extends Model
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $country;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $carrier;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $region;
|
||||
protected $_name = [
|
||||
'country' => 'Country',
|
||||
'carrier' => 'Carrier',
|
||||
'region' => 'Region',
|
||||
];
|
||||
|
||||
public function validate()
|
||||
{
|
||||
}
|
||||
|
||||
public function toMap()
|
||||
{
|
||||
$res = [];
|
||||
if (null !== $this->country) {
|
||||
$res['Country'] = $this->country;
|
||||
}
|
||||
if (null !== $this->carrier) {
|
||||
$res['Carrier'] = $this->carrier;
|
||||
}
|
||||
if (null !== $this->region) {
|
||||
$res['Region'] = $this->region;
|
||||
}
|
||||
|
||||
return $res;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array $map
|
||||
*
|
||||
* @return numberDetail
|
||||
*/
|
||||
public static function fromMap($map = [])
|
||||
{
|
||||
$model = new self();
|
||||
if (isset($map['Country'])) {
|
||||
$model->country = $map['Country'];
|
||||
}
|
||||
if (isset($map['Carrier'])) {
|
||||
$model->carrier = $map['Carrier'];
|
||||
}
|
||||
if (isset($map['Region'])) {
|
||||
$model->region = $map['Region'];
|
||||
}
|
||||
|
||||
return $model;
|
||||
}
|
||||
}
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,17 @@
|
||||
<?php
|
||||
|
||||
namespace League\Flysystem;
|
||||
|
||||
use LogicException;
|
||||
|
||||
class CorruptedPathDetected extends LogicException implements FilesystemException
|
||||
{
|
||||
/**
|
||||
* @param string $path
|
||||
* @return CorruptedPathDetected
|
||||
*/
|
||||
public static function forPath($path)
|
||||
{
|
||||
return new CorruptedPathDetected("Corrupted path detected: " . $path);
|
||||
}
|
||||
}
|
@ -0,0 +1,30 @@
|
||||
<?php
|
||||
|
||||
namespace League\MimeTypeDetection;
|
||||
|
||||
class OverridingExtensionToMimeTypeMap implements ExtensionToMimeTypeMap
|
||||
{
|
||||
/**
|
||||
* @var ExtensionToMimeTypeMap
|
||||
*/
|
||||
private $innerMap;
|
||||
|
||||
/**
|
||||
* @var string[]
|
||||
*/
|
||||
private $overrides;
|
||||
|
||||
/**
|
||||
* @param array<string, string> $overrides
|
||||
*/
|
||||
public function __construct(ExtensionToMimeTypeMap $innerMap, array $overrides)
|
||||
{
|
||||
$this->innerMap = $innerMap;
|
||||
$this->overrides = $overrides;
|
||||
}
|
||||
|
||||
public function lookupMimeType(string $extension): ?string
|
||||
{
|
||||
return $this->overrides[$extension] ?? $this->innerMap->lookupMimeType($extension);
|
||||
}
|
||||
}
|
Binary file not shown.
@ -0,0 +1,29 @@
|
||||
name: Support Multiple Versions
|
||||
|
||||
on:
|
||||
push:
|
||||
pull_request:
|
||||
|
||||
jobs:
|
||||
install:
|
||||
name: PHP${{ matrix.php-version }} Test Install
|
||||
runs-on: "${{ matrix.os }}"
|
||||
strategy:
|
||||
matrix:
|
||||
os: [ubuntu-latest]
|
||||
php-version: ['5.6', '7.0', '7.1', '7.2', '7.3', '7.4', '8.0']
|
||||
max-parallel: 10
|
||||
fail-fast: false
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Setup PHP
|
||||
uses: shivammathur/setup-php@v2
|
||||
with:
|
||||
php-version: ${{ matrix.php-version }}
|
||||
coverage: none
|
||||
|
||||
- name: Setup Dependencies
|
||||
run:
|
||||
composer install -o
|
@ -1,17 +0,0 @@
|
||||
language: php
|
||||
php:
|
||||
- 5.6
|
||||
notifications:
|
||||
email:
|
||||
recipients:
|
||||
- wjielai@tencent.com
|
||||
- fysntian@tencent.com
|
||||
|
||||
before_script:
|
||||
- composer install --prefer-dist --dev --no-interaction
|
||||
|
||||
script:
|
||||
- phpunit -v --coverage-clover=coverage.xml
|
||||
|
||||
after_success:
|
||||
- bash <(curl -s https://codecov.io/bash)
|
@ -1,15 +0,0 @@
|
||||
<phpunit bootstrap="vendor/autoload.php">
|
||||
<testsuites>
|
||||
<testsuite name="cos">
|
||||
<directory>src/Qcloud/Cos/Tests</directory>
|
||||
</testsuite>
|
||||
</testsuites>
|
||||
<filter>
|
||||
<whitelist addUncoveredFilesFromWhitelist="true">
|
||||
<directory suffix=".php">src/</directory>
|
||||
</whitelist>
|
||||
</filter>
|
||||
<logging>
|
||||
<log type="coverage-clover" target="clover.xml"/>
|
||||
</logging>
|
||||
</phpunit>
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue