Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.3.31
0.3.32
2 changes: 1 addition & 1 deletion src/UFile/Apis/AddCORSRuleRequest.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
/**
* Copyright 2025 UCloud Technology Co., Ltd.
* Copyright 2026 UCloud Technology Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion src/UFile/Apis/AddCORSRuleResponse.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
/**
* Copyright 2025 UCloud Technology Co., Ltd.
* Copyright 2026 UCloud Technology Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
6 changes: 3 additions & 3 deletions src/UFile/Apis/AddUFileSSLCertRequest.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
/**
* Copyright 2025 UCloud Technology Co., Ltd.
* Copyright 2026 UCloud Technology Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -111,7 +111,7 @@ public function setCertificate($certificate)
}

/**
* CertificateKey: 填写SSL证书私钥内容(PEM编码)。
* CertificateKey: 填写SSL证书私钥内容(PEM编码)。私钥内容填写格式 RSA
*
* @return string|null
*/
Expand All @@ -121,7 +121,7 @@ public function getCertificateKey()
}

/**
* CertificateKey: 填写SSL证书私钥内容(PEM编码)。
* CertificateKey: 填写SSL证书私钥内容(PEM编码)。私钥内容填写格式 RSA
*
* @param string $certificateKey
*/
Expand Down
2 changes: 1 addition & 1 deletion src/UFile/Apis/AddUFileSSLCertResponse.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
/**
* Copyright 2025 UCloud Technology Co., Ltd.
* Copyright 2026 UCloud Technology Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion src/UFile/Apis/BindBucketDomainRequest.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
/**
* Copyright 2025 UCloud Technology Co., Ltd.
* Copyright 2026 UCloud Technology Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion src/UFile/Apis/BindBucketDomainResponse.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
/**
* Copyright 2025 UCloud Technology Co., Ltd.
* Copyright 2026 UCloud Technology Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
216 changes: 216 additions & 0 deletions src/UFile/Apis/BuyUFilePkgRequest.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,216 @@
<?php
/**
* Copyright 2026 UCloud Technology Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
namespace UCloud\UFile\Apis;

use UCloud\Core\Request\Request;

class BuyUFilePkgRequest extends Request
{
public function __construct()
{
parent::__construct(["Action" => "BuyUFilePkg"]);
$this->markRequired("Region");
$this->markRequired("PkgName");
$this->markRequired("PkgType");
$this->markRequired("Amount");
$this->markRequired("AmountUnit");
$this->markRequired("Duration");
$this->markRequired("DurationUnit");
}



/**
* Region: 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist)
*
* @return string|null
*/
public function getRegion()
{
return $this->get("Region");
}

/**
* Region: 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist)
*
* @param string $region
*/
public function setRegion($region)
{
$this->set("Region", $region);
}

/**
* Zone: 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist)
*
* @return string|null
*/
public function getZone()
{
return $this->get("Zone");
}

/**
* Zone: 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist)
*
* @param string $zone
*/
public function setZone($zone)
{
$this->set("Zone", $zone);
}

/**
* ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list)
*
* @return string|null
*/
public function getProjectId()
{
return $this->get("ProjectId");
}

/**
* ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list)
*
* @param string $projectId
*/
public function setProjectId($projectId)
{
$this->set("ProjectId", $projectId);
}

/**
* PkgName: 资源包名称
*
* @return string|null
*/
public function getPkgName()
{
return $this->get("PkgName");
}

/**
* PkgName: 资源包名称
*
* @param string $pkgName
*/
public function setPkgName($pkgName)
{
$this->set("PkgName", $pkgName);
}

/**
* PkgType: 0: 标准存储包,1: 忙时流量包,2: 闲时流量包
*
* @return integer|null
*/
public function getPkgType()
{
return $this->get("PkgType");
}

/**
* PkgType: 0: 标准存储包,1: 忙时流量包,2: 闲时流量包
*
* @param int $pkgType
*/
public function setPkgType($pkgType)
{
$this->set("PkgType", $pkgType);
}

/**
* Amount: 购买数量
*
* @return integer|null
*/
public function getAmount()
{
return $this->get("Amount");
}

/**
* Amount: 购买数量
*
* @param int $amount
*/
public function setAmount($amount)
{
$this->set("Amount", $amount);
}

/**
* AmountUnit: 数量单位,如 GB、TB 等
*
* @return string|null
*/
public function getAmountUnit()
{
return $this->get("AmountUnit");
}

/**
* AmountUnit: 数量单位,如 GB、TB 等
*
* @param string $amountUnit
*/
public function setAmountUnit($amountUnit)
{
$this->set("AmountUnit", $amountUnit);
}

/**
* Duration: 购买时长
*
* @return integer|null
*/
public function getDuration()
{
return $this->get("Duration");
}

/**
* Duration: 购买时长
*
* @param int $duration
*/
public function setDuration($duration)
{
$this->set("Duration", $duration);
}

/**
* DurationUnit: 时长单位,如 Month、Year 等
*
* @return string|null
*/
public function getDurationUnit()
{
return $this->get("DurationUnit");
}

/**
* DurationUnit: 时长单位,如 Month、Year 等
*
* @param string $durationUnit
*/
public function setDurationUnit($durationUnit)
{
$this->set("DurationUnit", $durationUnit);
}
}
44 changes: 44 additions & 0 deletions src/UFile/Apis/BuyUFilePkgResponse.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
<?php
/**
* Copyright 2026 UCloud Technology Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
namespace UCloud\UFile\Apis;

use UCloud\Core\Response\Response;

class BuyUFilePkgResponse extends Response
{


/**
* ResourceId: 购买成功返回资源包Id
*
* @return string|null
*/
public function getResourceId()
{
return $this->get("ResourceId");
}

/**
* ResourceId: 购买成功返回资源包Id
*
* @param string $resourceId
*/
public function setResourceId($resourceId)
{
$this->set("ResourceId", $resourceId);
}
}
2 changes: 1 addition & 1 deletion src/UFile/Apis/CreateBucketRequest.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
/**
* Copyright 2025 UCloud Technology Co., Ltd.
* Copyright 2026 UCloud Technology Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion src/UFile/Apis/CreateBucketResponse.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
/**
* Copyright 2025 UCloud Technology Co., Ltd.
* Copyright 2026 UCloud Technology Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Loading
Loading