45 lines
1.3 KiB
PHP
45 lines
1.3 KiB
PHP
<?php
|
|
|
|
namespace UnitTests\Fixtures;
|
|
|
|
use AlibabaCloud\Oss\V2\Types\ModelTrait;
|
|
use AlibabaCloud\Oss\V2\Types\RequestModel;
|
|
use AlibabaCloud\Oss\V2\Annotation\TagProperty;
|
|
use AlibabaCloud\Oss\V2\Annotation\RequiredProperty;
|
|
|
|
class PutApiBRequest extends RequestModel
|
|
{
|
|
use ModelTrait;
|
|
|
|
#[RequiredProperty()]
|
|
#[TagProperty(tag: 'input', position: 'host', rename: '', type: 'string')]
|
|
private ?string $bucket;
|
|
|
|
#[RequiredProperty()]
|
|
#[TagProperty(tag: 'input', position: 'path', rename: '', type: 'string')]
|
|
private ?string $key;
|
|
|
|
#[TagProperty(tag: 'input', position: 'header', rename: 'x-oss-str', type: 'string')]
|
|
private ?string $strHeader;
|
|
|
|
#[TagProperty(tag: 'input', position: 'query', rename: 'param-str', type: 'string')]
|
|
private ?string $strParam;
|
|
|
|
#[TagProperty(tag: 'input', position: 'header', rename: 'x-oss-prefix-', type: 'string', format: 'usermeta')]
|
|
private ?array $arrayHeader;
|
|
|
|
public function __construct(
|
|
?string $bucket = null,
|
|
?string $key = null,
|
|
?string $strHeader = null,
|
|
?string $strParam = null,
|
|
?array $arrayHeader = null
|
|
) {
|
|
$this->bucket = $bucket;
|
|
$this->key = $key;
|
|
$this->strHeader = $strHeader;
|
|
$this->strParam = $strParam;
|
|
$this->arrayHeader = $arrayHeader;
|
|
}
|
|
}
|