Skip to content
6 changes: 4 additions & 2 deletions src/Models/AppendObjectRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,7 @@ final class AppendObjectRequest extends RequestModel
* @param \Psr\Http\Message\StreamInterface|null $body The request body.
* @param callable|null $progressFn Progress callback function
* @param array|null $options
* @param string|null $objectAcl The access control list (ACL) of the object. The object acl parameter has the same functionality as the acl parameter. it is the standardized name for acl. If both exist simultaneously, the value of objectAcl will take precedence.
*/
public function __construct(
?string $bucket = null,
Expand All @@ -202,13 +203,14 @@ public function __construct(
?string $requestPayer = null,
?\Psr\Http\Message\StreamInterface $body = null,
?callable $progressFn = null,
?array $options = null
?array $options = null,
?string $objectAcl = null
)
{
$this->bucket = $bucket;
$this->key = $key;
$this->position = $position;
$this->acl = $acl;
$this->acl = $objectAcl ?? $acl;
$this->storageClass = $storageClass;
$this->metadata = $metadata;
$this->cacheControl = $cacheControl;
Expand Down
6 changes: 4 additions & 2 deletions src/Models/CompleteMultipartUploadRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ final class CompleteMultipartUploadRequest extends RequestModel
* @param string|null $encodingType The encoding type of the object name in the response.
* @param string|null $requestPayer To indicate that the requester is aware that the request and data download will incur costs
* @param array|null $options
* @param string|null $objectAcl The access control list (ACL) of the object. The object acl parameter has the same functionality as the acl parameter. it is the standardized name for acl. If both exist simultaneously, the value of objectAcl will take precedence.
*/
public function __construct(
?string $bucket = null,
Expand All @@ -107,13 +108,14 @@ public function __construct(
?bool $forbidOverwrite = null,
?string $encodingType = null,
?string $requestPayer = null,
?array $options = null
?array $options = null,
?string $objectAcl = null
)
{
$this->bucket = $bucket;
$this->key = $key;
$this->uploadId = $uploadId;
$this->acl = $acl;
$this->acl = $objectAcl ?? $acl;
$this->completeMultipartUpload = $completeMultipartUpload;
$this->completeAll = $completeAll;
$this->callback = $callback;
Expand Down
6 changes: 4 additions & 2 deletions src/Models/CopyObjectRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,7 @@ final class CopyObjectRequest extends RequestModel
* @param string|null $requestPayer To indicate that the requester is aware that the request and data download will incur costs.
* @param callable|null $progressFn Progress callback function, it works in Copier.Copy only.
* @param array|null $options
* @param string|null $objectAcl The access control list (ACL) of the object. The object acl parameter has the same functionality as the acl parameter. it is the standardized name for acl. If both exist simultaneously, the value of objectAcl will take precedence.
*/
public function __construct(
?string $bucket = null,
Expand Down Expand Up @@ -252,7 +253,8 @@ public function __construct(
?int $trafficLimit = null,
?string $requestPayer = null,
?callable $progressFn = null,
?array $options = null
?array $options = null,
?string $objectAcl = null
)
{
$this->bucket = $bucket;
Expand All @@ -264,7 +266,7 @@ public function __construct(
$this->ifNoneMatch = $ifNoneMatch;
$this->ifModifiedSince = $ifModifiedSince;
$this->ifUnmodifiedSince = $ifUnmodifiedSince;
$this->acl = $acl;
$this->acl = $objectAcl ?? $acl;
$this->storageClass = $storageClass;
$this->metadata = $metadata;
$this->cacheControl = $cacheControl;
Expand Down
6 changes: 4 additions & 2 deletions src/Models/PutObjectAclRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,19 +52,21 @@ final class PutObjectAclRequest extends RequestModel
* @param string|null $versionId The version id of the object.
* @param string|null $requestPayer To indicate that the requester is aware that the request and data download will incur costs.
* @param array|null $options
* @param string|null $objectAcl The access control list (ACL) of the object. The object acl parameter has the same functionality as the acl parameter. it is the standardized name for acl. If both exist simultaneously, the value of objectAcl will take precedence.
*/
public function __construct(
?string $bucket = null,
?string $key = null,
?string $acl = null,
?string $versionId = null,
?string $requestPayer = null,
?array $options = null
?array $options = null,
?string $objectAcl = null
)
{
$this->bucket = $bucket;
$this->key = $key;
$this->acl = $acl;
$this->acl = $objectAcl ?? $acl;
$this->versionId = $versionId;
$this->requestPayer = $requestPayer;
parent::__construct($options);
Expand Down
6 changes: 4 additions & 2 deletions src/Models/PutObjectRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,7 @@ final class PutObjectRequest extends RequestModel
* @param \Psr\Http\Message\StreamInterface|null $body Object data.
* @param callable|null $progressFn Progress callback function.
* @param array|null $options
* @param string|null $objectAcl The access control list (ACL) of the object. The object acl parameter has the same functionality as the acl parameter. it is the standardized name for acl. If both exist simultaneously, the value of objectAcl will take precedence.
*/
public function __construct(
?string $bucket = null,
Expand All @@ -220,12 +221,13 @@ public function __construct(
?string $requestPayer = null,
?\Psr\Http\Message\StreamInterface $body = null,
?callable $progressFn = null,
?array $options = null
?array $options = null,
?string $objectAcl = null
)
{
$this->bucket = $bucket;
$this->key = $key;
$this->acl = $acl;
$this->acl = $objectAcl ?? $acl;
$this->storageClass = $storageClass;
$this->metadata = $metadata;
$this->cacheControl = $cacheControl;
Expand Down
10 changes: 7 additions & 3 deletions src/Models/PutSymlinkRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,8 @@ final class PutSymlinkRequest extends RequestModel
* @param bool|null $forbidOverwrite Specifies whether the PutSymlink operation overwrites the object that has the same name as that of the symbolic link you want to create.
* @param string|null $requestPayer To indicate that the requester is aware that the request and data download will incur costs.
* @param array|null $options
* @param string|null $objectAcl The access control list (ACL) of the object. The object acl parameter has the same functionality as the acl parameter. it is the standardized name for acl. If both exist simultaneously, the value of objectAcl will take precedence.
* @param string|null $symlinkTarget The target object to which the symbolic link points. The symlinkTarget parameter has the same functionality as the target parameter. It is the normalized name of target. If both exist simultaneously, the value of symlinkTarget will take precedence.
*/
public function __construct(
?string $bucket = null,
Expand All @@ -87,13 +89,15 @@ public function __construct(
?array $metadata = null,
?bool $forbidOverwrite = null,
?string $requestPayer = null,
?array $options = null
?array $options = null,
?string $objectAcl = null,
?string $symlinkTarget = null
)
{
$this->bucket = $bucket;
$this->key = $key;
$this->target = $target;
$this->acl = $acl;
$this->target = $symlinkTarget ?? $target;
$this->acl = $objectAcl ?? $acl;
$this->storageClass = $storageClass;
$this->metadata = $metadata;
$this->forbidOverwrite = $forbidOverwrite;
Expand Down
7 changes: 4 additions & 3 deletions src/Models/UploadPart.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,18 +29,19 @@ final class UploadPart extends Model
#[XmlElement(rename: 'ETag', type: 'string')]
public ?string $etag;


/**
* UploadPart constructor.
* @param int|null $partNumber The part number.
* @param string|null $etag The ETag value that is returned by OSS after the part is uploaded.
* @param string|null $eTag The ETag value that is returned by OSS after the part is uploaded. The eTag parameter has the same functionality as the etag parameter. It is the normalized name of etag. If both exist simultaneously, the value of eTag will take precedence. It is the normalized name of ETag.
*/
public function __construct(
?int $partNumber = null,
?string $etag = null
?string $etag = null,
?string $eTag = null
)
{
$this->partNumber = $partNumber;
$this->etag = $etag;
$this->etag = $eTag ?? $etag;
}
}
Loading