From 862ac0480e0a8348af52729ea3baed0e4c0e041c Mon Sep 17 00:00:00 2001 From: ucloud-bot Date: Fri, 21 Nov 2025 03:12:48 +0000 Subject: [PATCH] sdk: rolling update for 0.3.10 --- VERSION | 2 +- src/UFile/Apis/AddCORSRuleRequest.php | 152 +++++ src/UFile/Apis/AddCORSRuleResponse.php | 44 ++ src/UFile/Apis/AddUFileSSLCertRequest.php | 152 +++++ src/UFile/Apis/AddUFileSSLCertResponse.php | 26 + src/UFile/Apis/BindBucketDomainRequest.php | 91 +++ src/UFile/Apis/BindBucketDomainResponse.php | 64 ++ src/UFile/Apis/CreateBucketRequest.php | 30 +- src/UFile/Apis/CreateBucketResponse.php | 2 +- .../Apis/CreateUFileLifeCycleRequest.php | 22 +- .../Apis/CreateUFileLifeCycleResponse.php | 2 +- src/UFile/Apis/CreateUFileTokenRequest.php | 54 +- src/UFile/Apis/CreateUFileTokenResponse.php | 27 +- src/UFile/Apis/DeleteBucketRequest.php | 2 +- src/UFile/Apis/DeleteBucketResponse.php | 2 +- src/UFile/Apis/DeleteCORSRuleRequest.php | 91 +++ src/UFile/Apis/DeleteCORSRuleResponse.php | 26 + .../Apis/DeleteUFileLifeCycleRequest.php | 2 +- .../Apis/DeleteUFileLifeCycleResponse.php | 2 +- src/UFile/Apis/DeleteUFileSSLCertRequest.php | 71 +++ src/UFile/Apis/DeleteUFileSSLCertResponse.php | 26 + src/UFile/Apis/DeleteUFileTokenRequest.php | 2 +- src/UFile/Apis/DeleteUFileTokenResponse.php | 2 +- src/UFile/Apis/DescribeBucketRequest.php | 2 +- src/UFile/Apis/DescribeBucketResponse.php | 2 +- src/UFile/Apis/DescribeCORSRuleRequest.php | 90 +++ src/UFile/Apis/DescribeCORSRuleResponse.php | 57 ++ .../Apis/DescribeUFileLifeCycleRequest.php | 2 +- .../Apis/DescribeUFileLifeCycleResponse.php | 16 +- .../Apis/DescribeUFileRefererRequest.php | 90 +++ .../Apis/DescribeUFileRefererResponse.php | 144 +++++ .../Apis/DescribeUFileSSLCertRequest.php | 50 ++ .../Apis/DescribeUFileSSLCertResponse.php | 57 ++ src/UFile/Apis/DescribeUFileTokenRequest.php | 2 +- src/UFile/Apis/DescribeUFileTokenResponse.php | 2 +- .../Apis/GetBucketStaticPageRuleRequest.php | 91 +++ .../Apis/GetBucketStaticPageRuleResponse.php | 45 ++ src/UFile/Apis/GetUFileDailyBillRequest.php | 132 ++++ src/UFile/Apis/GetUFileDailyBillResponse.php | 58 ++ src/UFile/Apis/GetUFileDailyReportRequest.php | 2 +- .../Apis/GetUFileDailyReportResponse.php | 2 +- src/UFile/Apis/GetUFileQuotaInfoRequest.php | 2 +- src/UFile/Apis/GetUFileQuotaInfoResponse.php | 2 +- src/UFile/Apis/GetUFileQuotaPriceRequest.php | 2 +- src/UFile/Apis/GetUFileQuotaPriceResponse.php | 2 +- src/UFile/Apis/GetUFileQuotaRequest.php | 2 +- src/UFile/Apis/GetUFileQuotaResponse.php | 2 +- src/UFile/Apis/GetUFileReportRequest.php | 2 +- src/UFile/Apis/GetUFileReportResponse.php | 2 +- src/UFile/Apis/SetUFileRefererRequest.php | 50 +- src/UFile/Apis/SetUFileRefererResponse.php | 2 +- src/UFile/Apis/UpdateBucketRequest.php | 2 +- src/UFile/Apis/UpdateBucketResponse.php | 2 +- .../UpdateBucketStaticPageRuleRequest.php | 191 ++++++ .../UpdateBucketStaticPageRuleResponse.php | 26 + src/UFile/Apis/UpdateCORSRuleRequest.php | 173 ++++++ src/UFile/Apis/UpdateCORSRuleResponse.php | 26 + .../Apis/UpdateUFileLifeCycleRequest.php | 22 +- .../Apis/UpdateUFileLifeCycleResponse.php | 2 +- src/UFile/Apis/UpdateUFileSSLCertRequest.php | 134 ++++ src/UFile/Apis/UpdateUFileSSLCertResponse.php | 26 + src/UFile/Apis/UpdateUFileTokenRequest.php | 2 +- src/UFile/Apis/UpdateUFileTokenResponse.php | 2 +- src/UFile/Apis/UpdateUdsRuleRequest.php | 298 +++++++++ src/UFile/Apis/UpdateUdsRuleResponse.php | 64 ++ src/UFile/Models/BucketBills.php | 56 ++ src/UFile/Models/BucketStaticPageRule.php | 124 ++++ src/UFile/Models/CORSRuleSet.php | 164 +++++ src/UFile/Models/LifeCycleItem.php | 42 +- src/UFile/Models/UFileBucketSet.php | 2 +- src/UFile/Models/UFileDailyBillItem.php | 464 ++++++++++++++ src/UFile/Models/UFileDailyReportItem.php | 166 ++++- src/UFile/Models/UFileDomainSet.php | 2 +- src/UFile/Models/UFileQuotaDataSetItem.php | 2 +- src/UFile/Models/UFileQuotaLeft.php | 2 +- src/UFile/Models/UFileReportItem.php | 2 +- src/UFile/Models/UFileReportSet.php | 2 +- src/UFile/Models/UFileSSLCert.php | 104 ++++ src/UFile/Models/UFileTokenSet.php | 62 +- src/UFile/Models/UFileTotalReportItem.php | 18 +- src/UFile/UFileClient.php | 585 +++++++++++++++++- 81 files changed, 4436 insertions(+), 137 deletions(-) create mode 100644 src/UFile/Apis/AddCORSRuleRequest.php create mode 100644 src/UFile/Apis/AddCORSRuleResponse.php create mode 100644 src/UFile/Apis/AddUFileSSLCertRequest.php create mode 100644 src/UFile/Apis/AddUFileSSLCertResponse.php create mode 100644 src/UFile/Apis/BindBucketDomainRequest.php create mode 100644 src/UFile/Apis/BindBucketDomainResponse.php create mode 100644 src/UFile/Apis/DeleteCORSRuleRequest.php create mode 100644 src/UFile/Apis/DeleteCORSRuleResponse.php create mode 100644 src/UFile/Apis/DeleteUFileSSLCertRequest.php create mode 100644 src/UFile/Apis/DeleteUFileSSLCertResponse.php create mode 100644 src/UFile/Apis/DescribeCORSRuleRequest.php create mode 100644 src/UFile/Apis/DescribeCORSRuleResponse.php create mode 100644 src/UFile/Apis/DescribeUFileRefererRequest.php create mode 100644 src/UFile/Apis/DescribeUFileRefererResponse.php create mode 100644 src/UFile/Apis/DescribeUFileSSLCertRequest.php create mode 100644 src/UFile/Apis/DescribeUFileSSLCertResponse.php create mode 100644 src/UFile/Apis/GetBucketStaticPageRuleRequest.php create mode 100644 src/UFile/Apis/GetBucketStaticPageRuleResponse.php create mode 100644 src/UFile/Apis/GetUFileDailyBillRequest.php create mode 100644 src/UFile/Apis/GetUFileDailyBillResponse.php create mode 100644 src/UFile/Apis/UpdateBucketStaticPageRuleRequest.php create mode 100644 src/UFile/Apis/UpdateBucketStaticPageRuleResponse.php create mode 100644 src/UFile/Apis/UpdateCORSRuleRequest.php create mode 100644 src/UFile/Apis/UpdateCORSRuleResponse.php create mode 100644 src/UFile/Apis/UpdateUFileSSLCertRequest.php create mode 100644 src/UFile/Apis/UpdateUFileSSLCertResponse.php create mode 100644 src/UFile/Apis/UpdateUdsRuleRequest.php create mode 100644 src/UFile/Apis/UpdateUdsRuleResponse.php create mode 100644 src/UFile/Models/BucketBills.php create mode 100644 src/UFile/Models/BucketStaticPageRule.php create mode 100644 src/UFile/Models/CORSRuleSet.php create mode 100644 src/UFile/Models/UFileDailyBillItem.php create mode 100644 src/UFile/Models/UFileSSLCert.php diff --git a/VERSION b/VERSION index 940ac09a..5503126d 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -0.3.9 +0.3.10 diff --git a/src/UFile/Apis/AddCORSRuleRequest.php b/src/UFile/Apis/AddCORSRuleRequest.php new file mode 100644 index 00000000..8ade2cde --- /dev/null +++ b/src/UFile/Apis/AddCORSRuleRequest.php @@ -0,0 +1,152 @@ + "AddCORSRule"]); + $this->markRequired("BucketName"); + $this->markRequired("AllowedOrigin"); + $this->markRequired("AllowedMethod"); + } + + + + /** + * 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); + } + + /** + * BucketName: Bucket名称 + * + * @return string|null + */ + public function getBucketName() + { + return $this->get("BucketName"); + } + + /** + * BucketName: Bucket名称 + * + * @param string $bucketName + */ + public function setBucketName($bucketName) + { + $this->set("BucketName", $bucketName); + } + + /** + * AllowedOrigin: 指定允许的跨域请求的来源,使用通配符(*)表示允许所有来源的跨域请求(多个Origin用‘,’分隔) + * + * @return string|null + */ + public function getAllowedOrigin() + { + return $this->get("AllowedOrigin"); + } + + /** + * AllowedOrigin: 指定允许的跨域请求的来源,使用通配符(*)表示允许所有来源的跨域请求(多个Origin用‘,’分隔) + * + * @param string $allowedOrigin + */ + public function setAllowedOrigin($allowedOrigin) + { + $this->set("AllowedOrigin", $allowedOrigin); + } + + /** + * AllowedMethod: 指定允许的跨域请求方法。支持的方法名有:GET、PUT、POST、DELETE、HEAD、OPTIONS(多个Method用‘,’分隔) + * + * @return string|null + */ + public function getAllowedMethod() + { + return $this->get("AllowedMethod"); + } + + /** + * AllowedMethod: 指定允许的跨域请求方法。支持的方法名有:GET、PUT、POST、DELETE、HEAD、OPTIONS(多个Method用‘,’分隔) + * + * @param string $allowedMethod + */ + public function setAllowedMethod($allowedMethod) + { + $this->set("AllowedMethod", $allowedMethod); + } + + /** + * AllowedHeader: 指定允许的跨域请求头(多个Header用‘,’分隔) + * + * @return string|null + */ + public function getAllowedHeader() + { + return $this->get("AllowedHeader"); + } + + /** + * AllowedHeader: 指定允许的跨域请求头(多个Header用‘,’分隔) + * + * @param string $allowedHeader + */ + public function setAllowedHeader($allowedHeader) + { + $this->set("AllowedHeader", $allowedHeader); + } + + /** + * ExposeHeader: 指定允许用户从应用程序中访问的响应头(多个ExposeHeader用‘,’分隔) + * + * @return string|null + */ + public function getExposeHeader() + { + return $this->get("ExposeHeader"); + } + + /** + * ExposeHeader: 指定允许用户从应用程序中访问的响应头(多个ExposeHeader用‘,’分隔) + * + * @param string $exposeHeader + */ + public function setExposeHeader($exposeHeader) + { + $this->set("ExposeHeader", $exposeHeader); + } +} diff --git a/src/UFile/Apis/AddCORSRuleResponse.php b/src/UFile/Apis/AddCORSRuleResponse.php new file mode 100644 index 00000000..c442a6de --- /dev/null +++ b/src/UFile/Apis/AddCORSRuleResponse.php @@ -0,0 +1,44 @@ +get("CORSId"); + } + + /** + * CORSId: 增加一条跨域规则的cors_id + * + * @param string $corsId + */ + public function setCORSId($corsId) + { + $this->set("CORSId", $corsId); + } +} diff --git a/src/UFile/Apis/AddUFileSSLCertRequest.php b/src/UFile/Apis/AddUFileSSLCertRequest.php new file mode 100644 index 00000000..4ed2929d --- /dev/null +++ b/src/UFile/Apis/AddUFileSSLCertRequest.php @@ -0,0 +1,152 @@ + "AddUFileSSLCert"]); + $this->markRequired("BucketName"); + $this->markRequired("Domain"); + $this->markRequired("CertificateName"); + } + + + + /** + * BucketName: 存储桶名称,全局唯一 + * + * @return string|null + */ + public function getBucketName() + { + return $this->get("BucketName"); + } + + /** + * BucketName: 存储桶名称,全局唯一 + * + * @param string $bucketName + */ + public function setBucketName($bucketName) + { + $this->set("BucketName", $bucketName); + } + + /** + * Domain: 域名 + * + * @return string|null + */ + public function getDomain() + { + return $this->get("Domain"); + } + + /** + * Domain: 域名 + * + * @param string $domain + */ + public function setDomain($domain) + { + $this->set("Domain", $domain); + } + + /** + * CertificateName: SSL证书名称 + * + * @return string|null + */ + public function getCertificateName() + { + return $this->get("CertificateName"); + } + + /** + * CertificateName: SSL证书名称 + * + * @param string $certificateName + */ + public function setCertificateName($certificateName) + { + $this->set("CertificateName", $certificateName); + } + + /** + * Certificate: 填写SSL证书文件内容(PEM编码)。证书文件内容填写格式:如果您的业务场景仅需确保服务端证书可信,则证书文件需要包含服务器证书(①)和中间证书(②)。如果您的中间证书和服务器证书是两个文件,您可以在证书链配置项填写中间证书内容即可。 + * + * @return string|null + */ + public function getCertificate() + { + return $this->get("Certificate"); + } + + /** + * Certificate: 填写SSL证书文件内容(PEM编码)。证书文件内容填写格式:如果您的业务场景仅需确保服务端证书可信,则证书文件需要包含服务器证书(①)和中间证书(②)。如果您的中间证书和服务器证书是两个文件,您可以在证书链配置项填写中间证书内容即可。 + * + * @param string $certificate + */ + public function setCertificate($certificate) + { + $this->set("Certificate", $certificate); + } + + /** + * CertificateKey: 填写SSL证书私钥内容(PEM编码)。 + * + * @return string|null + */ + public function getCertificateKey() + { + return $this->get("CertificateKey"); + } + + /** + * CertificateKey: 填写SSL证书私钥内容(PEM编码)。 + * + * @param string $certificateKey + */ + public function setCertificateKey($certificateKey) + { + $this->set("CertificateKey", $certificateKey); + } + + /** + * USSLId: ussl证书的资源ID + * + * @return string|null + */ + public function getUSSLId() + { + return $this->get("USSLId"); + } + + /** + * USSLId: ussl证书的资源ID + * + * @param string $usslId + */ + public function setUSSLId($usslId) + { + $this->set("USSLId", $usslId); + } +} diff --git a/src/UFile/Apis/AddUFileSSLCertResponse.php b/src/UFile/Apis/AddUFileSSLCertResponse.php new file mode 100644 index 00000000..77acc28b --- /dev/null +++ b/src/UFile/Apis/AddUFileSSLCertResponse.php @@ -0,0 +1,26 @@ + "BindBucketDomain"]); + $this->markRequired("BucketName"); + $this->markRequired("Domain"); + } + + + + /** + * 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); + } + + /** + * BucketName: 自定义域名对应的bucket名称 + * + * @return string|null + */ + public function getBucketName() + { + return $this->get("BucketName"); + } + + /** + * BucketName: 自定义域名对应的bucket名称 + * + * @param string $bucketName + */ + public function setBucketName($bucketName) + { + $this->set("BucketName", $bucketName); + } + + /** + * Domain: 自定义域名 + * + * @return string|null + */ + public function getDomain() + { + return $this->get("Domain"); + } + + /** + * Domain: 自定义域名 + * + * @param string $domain + */ + public function setDomain($domain) + { + $this->set("Domain", $domain); + } +} diff --git a/src/UFile/Apis/BindBucketDomainResponse.php b/src/UFile/Apis/BindBucketDomainResponse.php new file mode 100644 index 00000000..d1fc1ec0 --- /dev/null +++ b/src/UFile/Apis/BindBucketDomainResponse.php @@ -0,0 +1,64 @@ +get("BucketName"); + } + + /** + * BucketName: 自定义域名对应的bucket名称 + * + * @param string $bucketName + */ + public function setBucketName($bucketName) + { + $this->set("BucketName", $bucketName); + } + + /** + * BucketId: 自定义域名对应的Bucket的Id + * + * @return string|null + */ + public function getBucketId() + { + return $this->get("BucketId"); + } + + /** + * BucketId: 自定义域名对应的Bucket的Id + * + * @param string $bucketId + */ + public function setBucketId($bucketId) + { + $this->set("BucketId", $bucketId); + } +} diff --git a/src/UFile/Apis/CreateBucketRequest.php b/src/UFile/Apis/CreateBucketRequest.php index a8521b04..99fd9a9b 100644 --- a/src/UFile/Apis/CreateBucketRequest.php +++ b/src/UFile/Apis/CreateBucketRequest.php @@ -1,6 +1,6 @@ set("Type", $type); } + + /** + * Tag: Bucket所属业务组,默认为default + * + * @return string|null + */ + public function getTag() + { + return $this->get("Tag"); + } + + /** + * Tag: Bucket所属业务组,默认为default + * + * @param string $tag + */ + public function setTag($tag) + { + $this->set("Tag", $tag); + } } diff --git a/src/UFile/Apis/CreateBucketResponse.php b/src/UFile/Apis/CreateBucketResponse.php index 45294468..f49a379c 100644 --- a/src/UFile/Apis/CreateBucketResponse.php +++ b/src/UFile/Apis/CreateBucketResponse.php @@ -1,6 +1,6 @@ set("IADays", $iaDays); } + + /** + * Tags: Tag,参数格式"k1=v1&k2=v2",key的最大长度为128, value最大长度为256byte,单个object的tag的最大数量为10 + * + * @return string|null + */ + public function getTags() + { + return $this->get("Tags"); + } + + /** + * Tags: Tag,参数格式"k1=v1&k2=v2",key的最大长度为128, value最大长度为256byte,单个object的tag的最大数量为10 + * + * @param string $tags + */ + public function setTags($tags) + { + $this->set("Tags", $tags); + } } diff --git a/src/UFile/Apis/CreateUFileLifeCycleResponse.php b/src/UFile/Apis/CreateUFileLifeCycleResponse.php index b0ba2738..df75dfc9 100644 --- a/src/UFile/Apis/CreateUFileLifeCycleResponse.php +++ b/src/UFile/Apis/CreateUFileLifeCycleResponse.php @@ -1,6 +1,6 @@ set("ExpireTime", $expireTime); } + + /** + * BlackIPList: 令牌黑名单,支持ipv4,ipv6格式。 + * + * @return string[]|null + */ + public function getBlackIPList() + { + return $this->get("BlackIPList"); + } + + /** + * BlackIPList: 令牌黑名单,支持ipv4,ipv6格式。 + * + * @param string[] $blackIPList + */ + public function setBlackIPList(array $blackIPList) + { + $this->set("BlackIPList", $blackIPList); + } + + /** + * WhiteIPList: 令牌白名单,支持ipv4,ipv6格式。 + * + * @return string[]|null + */ + public function getWhiteIPList() + { + return $this->get("WhiteIPList"); + } + + /** + * WhiteIPList: 令牌白名单,支持ipv4,ipv6格式。 + * + * @param string[] $whiteIPList + */ + public function setWhiteIPList(array $whiteIPList) + { + $this->set("WhiteIPList", $whiteIPList); + } } diff --git a/src/UFile/Apis/CreateUFileTokenResponse.php b/src/UFile/Apis/CreateUFileTokenResponse.php index 32ed742d..47171145 100644 --- a/src/UFile/Apis/CreateUFileTokenResponse.php +++ b/src/UFile/Apis/CreateUFileTokenResponse.php @@ -1,6 +1,6 @@ set("TokenId", $tokenId); } + + /** + * UFileTokenSet: 创建令牌的详细信息 + * + * @return UFileTokenSet|null + */ + public function getUFileTokenSet() + { + return new UFileTokenSet($this->get("UFileTokenSet")); + } + + /** + * UFileTokenSet: 创建令牌的详细信息 + * + * @param UFileTokenSet $uFileTokenSet + */ + public function setUFileTokenSet(array $uFileTokenSet) + { + $this->set("UFileTokenSet", $uFileTokenSet->getAll()); + } } diff --git a/src/UFile/Apis/DeleteBucketRequest.php b/src/UFile/Apis/DeleteBucketRequest.php index 23343ac5..dfc2262a 100644 --- a/src/UFile/Apis/DeleteBucketRequest.php +++ b/src/UFile/Apis/DeleteBucketRequest.php @@ -1,6 +1,6 @@ "DeleteCORSRule"]); + $this->markRequired("BucketName"); + $this->markRequired("CORSId"); + } + + + + /** + * 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); + } + + /** + * BucketName: Bucket名称 + * + * @return string|null + */ + public function getBucketName() + { + return $this->get("BucketName"); + } + + /** + * BucketName: Bucket名称 + * + * @param string $bucketName + */ + public function setBucketName($bucketName) + { + $this->set("BucketName", $bucketName); + } + + /** + * CORSId: 跨域规则ID + * + * @return string|null + */ + public function getCORSId() + { + return $this->get("CORSId"); + } + + /** + * CORSId: 跨域规则ID + * + * @param string $corsId + */ + public function setCORSId($corsId) + { + $this->set("CORSId", $corsId); + } +} diff --git a/src/UFile/Apis/DeleteCORSRuleResponse.php b/src/UFile/Apis/DeleteCORSRuleResponse.php new file mode 100644 index 00000000..af34ba64 --- /dev/null +++ b/src/UFile/Apis/DeleteCORSRuleResponse.php @@ -0,0 +1,26 @@ + "DeleteUFileSSLCert"]); + $this->markRequired("BucketName"); + $this->markRequired("Domain"); + } + + + + /** + * BucketName: 存储桶名称,全局唯一 + * + * @return string|null + */ + public function getBucketName() + { + return $this->get("BucketName"); + } + + /** + * BucketName: 存储桶名称,全局唯一 + * + * @param string $bucketName + */ + public function setBucketName($bucketName) + { + $this->set("BucketName", $bucketName); + } + + /** + * Domain: 域名 + * + * @return string|null + */ + public function getDomain() + { + return $this->get("Domain"); + } + + /** + * Domain: 域名 + * + * @param string $domain + */ + public function setDomain($domain) + { + $this->set("Domain", $domain); + } +} diff --git a/src/UFile/Apis/DeleteUFileSSLCertResponse.php b/src/UFile/Apis/DeleteUFileSSLCertResponse.php new file mode 100644 index 00000000..0f8d58be --- /dev/null +++ b/src/UFile/Apis/DeleteUFileSSLCertResponse.php @@ -0,0 +1,26 @@ + "DescribeCORSRule"]); + $this->markRequired("BucketName"); + } + + + + /** + * 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); + } + + /** + * BucketName: Bucket名称 + * + * @return string|null + */ + public function getBucketName() + { + return $this->get("BucketName"); + } + + /** + * BucketName: Bucket名称 + * + * @param string $bucketName + */ + public function setBucketName($bucketName) + { + $this->set("BucketName", $bucketName); + } + + /** + * CORSId: 跨域规则ID,不指定则返回所有跨域规则信息 + * + * @return string|null + */ + public function getCORSId() + { + return $this->get("CORSId"); + } + + /** + * CORSId: 跨域规则ID,不指定则返回所有跨域规则信息 + * + * @param string $corsId + */ + public function setCORSId($corsId) + { + $this->set("CORSId", $corsId); + } +} diff --git a/src/UFile/Apis/DescribeCORSRuleResponse.php b/src/UFile/Apis/DescribeCORSRuleResponse.php new file mode 100644 index 00000000..40353a81 --- /dev/null +++ b/src/UFile/Apis/DescribeCORSRuleResponse.php @@ -0,0 +1,57 @@ +get("DataSet"); + if ($items == null) { + return []; + } + $result = []; + foreach ($items as $i => $item) { + array_push($result, new CORSRuleSet($item)); + } + return $result; + } + + /** + * DataSet: 跨域规则信息集合 + * + * @param CORSRuleSet[] $dataSet + */ + public function setDataSet(array $dataSet) + { + $result = []; + foreach ($dataSet as $i => $item) { + array_push($result, $item->getAll()); + } + return $result; + } +} diff --git a/src/UFile/Apis/DescribeUFileLifeCycleRequest.php b/src/UFile/Apis/DescribeUFileLifeCycleRequest.php index ca476a5f..7a551447 100644 --- a/src/UFile/Apis/DescribeUFileLifeCycleRequest.php +++ b/src/UFile/Apis/DescribeUFileLifeCycleRequest.php @@ -1,6 +1,6 @@ get("DateSet"); + $items = $this->get("DataSet"); if ($items == null) { return []; } @@ -42,14 +42,14 @@ public function getDateSet() } /** - * DateSet: 生命周期信息 + * DataSet: 生命周期信息 * - * @param LifeCycleItem[] $dateSet + * @param LifeCycleItem[] $dataSet */ - public function setDateSet(array $dateSet) + public function setDataSet(array $dataSet) { $result = []; - foreach ($dateSet as $i => $item) { + foreach ($dataSet as $i => $item) { array_push($result, $item->getAll()); } return $result; diff --git a/src/UFile/Apis/DescribeUFileRefererRequest.php b/src/UFile/Apis/DescribeUFileRefererRequest.php new file mode 100644 index 00000000..22849b8f --- /dev/null +++ b/src/UFile/Apis/DescribeUFileRefererRequest.php @@ -0,0 +1,90 @@ + "DescribeUFileReferer"]); + $this->markRequired("BucketName"); + } + + + + /** + * 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); + } + + /** + * 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); + } + + /** + * BucketName: 存储空间名称 + * + * @return string|null + */ + public function getBucketName() + { + return $this->get("BucketName"); + } + + /** + * BucketName: 存储空间名称 + * + * @param string $bucketName + */ + public function setBucketName($bucketName) + { + $this->set("BucketName", $bucketName); + } +} diff --git a/src/UFile/Apis/DescribeUFileRefererResponse.php b/src/UFile/Apis/DescribeUFileRefererResponse.php new file mode 100644 index 00000000..2cede50d --- /dev/null +++ b/src/UFile/Apis/DescribeUFileRefererResponse.php @@ -0,0 +1,144 @@ +get("RefererType"); + } + + /** + * RefererType: 防盗链Referer类型,支持两种类型,1黑名单,2白名单;未开启referer时不返回此参数 + * + * @param int $refererType + */ + public function setRefererType($refererType) + { + $this->set("RefererType", $refererType); + } + + /** + * RefererList: 防盗链Referer规则列表;未开启referer时不返回此参数 + * + * @return string[]|null + */ + public function getRefererList() + { + return $this->get("RefererList"); + } + + /** + * RefererList: 防盗链Referer规则列表;未开启referer时不返回此参数 + * + * @param string[] $refererList + */ + public function setRefererList(array $refererList) + { + $this->set("RefererList", $refererList); + } + + /** + * NullRefer: ReferType为白名单时,NullRefer为false代表不允许NULL refer访问,为true代表允许Null refer访问; 未开启referer时不返回此参数 + * + * @return boolean|null + */ + public function getNullRefer() + { + return $this->get("NullRefer"); + } + + /** + * NullRefer: ReferType为白名单时,NullRefer为false代表不允许NULL refer访问,为true代表允许Null refer访问; 未开启referer时不返回此参数 + * + * @param boolean $nullRefer + */ + public function setNullRefer($nullRefer) + { + $this->set("NullRefer", $nullRefer); + } + + /** + * RefererStatus: 防盗链功能是否开启,"on"表示开启,"off"表示关闭 + * + * @return string|null + */ + public function getRefererStatus() + { + return $this->get("RefererStatus"); + } + + /** + * RefererStatus: 防盗链功能是否开启,"on"表示开启,"off"表示关闭 + * + * @param string $refererStatus + */ + public function setRefererStatus($refererStatus) + { + $this->set("RefererStatus", $refererStatus); + } + + /** + * BlackList: 黑名单列表 + * + * @return string[]|null + */ + public function getBlackList() + { + return $this->get("BlackList"); + } + + /** + * BlackList: 黑名单列表 + * + * @param string[] $blackList + */ + public function setBlackList(array $blackList) + { + $this->set("BlackList", $blackList); + } + + /** + * WhiteList: 白名单列表 + * + * @return string[]|null + */ + public function getWhiteList() + { + return $this->get("WhiteList"); + } + + /** + * WhiteList: 白名单列表 + * + * @param string[] $whiteList + */ + public function setWhiteList(array $whiteList) + { + $this->set("WhiteList", $whiteList); + } +} diff --git a/src/UFile/Apis/DescribeUFileSSLCertRequest.php b/src/UFile/Apis/DescribeUFileSSLCertRequest.php new file mode 100644 index 00000000..5dc63b05 --- /dev/null +++ b/src/UFile/Apis/DescribeUFileSSLCertRequest.php @@ -0,0 +1,50 @@ + "DescribeUFileSSLCert"]); + $this->markRequired("BucketName"); + } + + + + /** + * BucketName: 存储桶名称,全局唯一 + * + * @return string|null + */ + public function getBucketName() + { + return $this->get("BucketName"); + } + + /** + * BucketName: 存储桶名称,全局唯一 + * + * @param string $bucketName + */ + public function setBucketName($bucketName) + { + $this->set("BucketName", $bucketName); + } +} diff --git a/src/UFile/Apis/DescribeUFileSSLCertResponse.php b/src/UFile/Apis/DescribeUFileSSLCertResponse.php new file mode 100644 index 00000000..cadd1db1 --- /dev/null +++ b/src/UFile/Apis/DescribeUFileSSLCertResponse.php @@ -0,0 +1,57 @@ +get("DataSet"); + if ($items == null) { + return []; + } + $result = []; + foreach ($items as $i => $item) { + array_push($result, new UFileSSLCert($item)); + } + return $result; + } + + /** + * DataSet: 证书列表 + * + * @param UFileSSLCert[] $dataSet + */ + public function setDataSet(array $dataSet) + { + $result = []; + foreach ($dataSet as $i => $item) { + array_push($result, $item->getAll()); + } + return $result; + } +} diff --git a/src/UFile/Apis/DescribeUFileTokenRequest.php b/src/UFile/Apis/DescribeUFileTokenRequest.php index 891171b9..6a04611a 100644 --- a/src/UFile/Apis/DescribeUFileTokenRequest.php +++ b/src/UFile/Apis/DescribeUFileTokenRequest.php @@ -1,6 +1,6 @@ "GetBucketStaticPageRule"]); + $this->markRequired("Region"); + $this->markRequired("Bucket"); + } + + + + /** + * 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); + } + + /** + * 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); + } + + /** + * Bucket: 存储桶名称 + * + * @return string|null + */ + public function getBucket() + { + return $this->get("Bucket"); + } + + /** + * Bucket: 存储桶名称 + * + * @param string $bucket + */ + public function setBucket($bucket) + { + $this->set("Bucket", $bucket); + } +} diff --git a/src/UFile/Apis/GetBucketStaticPageRuleResponse.php b/src/UFile/Apis/GetBucketStaticPageRuleResponse.php new file mode 100644 index 00000000..aa9e9818 --- /dev/null +++ b/src/UFile/Apis/GetBucketStaticPageRuleResponse.php @@ -0,0 +1,45 @@ +get("Rule")); + } + + /** + * Rule: 规则内容 + * + * @param BucketStaticPageRule $rule + */ + public function setRule(array $rule) + { + $this->set("Rule", $rule->getAll()); + } +} diff --git a/src/UFile/Apis/GetUFileDailyBillRequest.php b/src/UFile/Apis/GetUFileDailyBillRequest.php new file mode 100644 index 00000000..33ce0fe6 --- /dev/null +++ b/src/UFile/Apis/GetUFileDailyBillRequest.php @@ -0,0 +1,132 @@ + "GetUFileDailyBill"]); + $this->markRequired("Region"); + $this->markRequired("StartTime"); + $this->markRequired("EndTime"); + } + + + + /** + * 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); + } + + /** + * 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); + } + + /** + * StartTime: 查询开始时间;unix时间戳,单位s + * + * @return integer|null + */ + public function getStartTime() + { + return $this->get("StartTime"); + } + + /** + * StartTime: 查询开始时间;unix时间戳,单位s + * + * @param int $startTime + */ + public function setStartTime($startTime) + { + $this->set("StartTime", $startTime); + } + + /** + * EndTime: 查询结束时间;unix时间戳,单位s + * + * @return integer|null + */ + public function getEndTime() + { + return $this->get("EndTime"); + } + + /** + * EndTime: 查询结束时间;unix时间戳,单位s + * + * @param int $endTime + */ + public function setEndTime($endTime) + { + $this->set("EndTime", $endTime); + } + + /** + * BucketName: 空间名称。此字段不为空,返回此Bucket日账单,否则,返回这个项目的日账单 + * + * @return string|null + */ + public function getBucketName() + { + return $this->get("BucketName"); + } + + /** + * BucketName: 空间名称。此字段不为空,返回此Bucket日账单,否则,返回这个项目的日账单 + * + * @param string $bucketName + */ + public function setBucketName($bucketName) + { + $this->set("BucketName", $bucketName); + } +} diff --git a/src/UFile/Apis/GetUFileDailyBillResponse.php b/src/UFile/Apis/GetUFileDailyBillResponse.php new file mode 100644 index 00000000..0d3bc7fc --- /dev/null +++ b/src/UFile/Apis/GetUFileDailyBillResponse.php @@ -0,0 +1,58 @@ +get("DataSet"); + if ($items == null) { + return []; + } + $result = []; + foreach ($items as $i => $item) { + array_push($result, new BucketBills($item)); + } + return $result; + } + + /** + * DataSet: 消费情况 + * + * @param BucketBills[] $dataSet + */ + public function setDataSet(array $dataSet) + { + $result = []; + foreach ($dataSet as $i => $item) { + array_push($result, $item->getAll()); + } + return $result; + } +} diff --git a/src/UFile/Apis/GetUFileDailyReportRequest.php b/src/UFile/Apis/GetUFileDailyReportRequest.php index 139159f9..0da477a5 100644 --- a/src/UFile/Apis/GetUFileDailyReportRequest.php +++ b/src/UFile/Apis/GetUFileDailyReportRequest.php @@ -1,6 +1,6 @@ set("Referers", $referers); } + + /** + * WhiteList: 白名单列表中的一项 + * + * @return string[]|null + */ + public function getWhiteList() + { + return $this->get("WhiteList"); + } + + /** + * WhiteList: 白名单列表中的一项 + * + * @param string[] $whiteList + */ + public function setWhiteList(array $whiteList) + { + $this->set("WhiteList", $whiteList); + } + + /** + * BlackList: 黑名单列表中的一项 + * + * @return string[]|null + */ + public function getBlackList() + { + return $this->get("BlackList"); + } + + /** + * BlackList: 黑名单列表中的一项 + * + * @param string[] $blackList + */ + public function setBlackList(array $blackList) + { + $this->set("BlackList", $blackList); + } } diff --git a/src/UFile/Apis/SetUFileRefererResponse.php b/src/UFile/Apis/SetUFileRefererResponse.php index 0b931e34..31de5f8e 100644 --- a/src/UFile/Apis/SetUFileRefererResponse.php +++ b/src/UFile/Apis/SetUFileRefererResponse.php @@ -1,6 +1,6 @@ "UpdateBucketStaticPageRule"]); + $this->markRequired("Region"); + $this->markRequired("Bucket"); + } + + + + /** + * 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); + } + + /** + * 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); + } + + /** + * Bucket: 存储桶名称 + * + * @return string|null + */ + public function getBucket() + { + return $this->get("Bucket"); + } + + /** + * Bucket: 存储桶名称 + * + * @param string $bucket + */ + public function setBucket($bucket) + { + $this->set("Bucket", $bucket); + } + + /** + * Status: 启用状态(enable/disable,只有绑定了自定义域名才能开启) + * + * @return string|null + */ + public function getStatus() + { + return $this->get("Status"); + } + + /** + * Status: 启用状态(enable/disable,只有绑定了自定义域名才能开启) + * + * @param string $status + */ + public function setStatus($status) + { + $this->set("Status", $status); + } + + /** + * DefaultIndex: 默认首页 + * + * @return string|null + */ + public function getDefaultIndex() + { + return $this->get("DefaultIndex"); + } + + /** + * DefaultIndex: 默认首页 + * + * @param string $defaultIndex + */ + public function setDefaultIndex($defaultIndex) + { + $this->set("DefaultIndex", $defaultIndex); + } + + /** + * SubDirRedirect: 子目录是否启用重定向 + * + * @return string|null + */ + public function getSubDirRedirect() + { + return $this->get("SubDirRedirect"); + } + + /** + * SubDirRedirect: 子目录是否启用重定向 + * + * @param string $subDirRedirect + */ + public function setSubDirRedirect($subDirRedirect) + { + $this->set("SubDirRedirect", $subDirRedirect); + } + + /** + * RuleFor404: 404规则 + * + * @return string|null + */ + public function getRuleFor404() + { + return $this->get("RuleFor404"); + } + + /** + * RuleFor404: 404规则 + * + * @param string $ruleFor404 + */ + public function setRuleFor404($ruleFor404) + { + $this->set("RuleFor404", $ruleFor404); + } + + /** + * DefaultPage404: 404时的默认页面 + * + * @return string|null + */ + public function getDefaultPage404() + { + return $this->get("DefaultPage404"); + } + + /** + * DefaultPage404: 404时的默认页面 + * + * @param string $defaultPage404 + */ + public function setDefaultPage404($defaultPage404) + { + $this->set("DefaultPage404", $defaultPage404); + } +} diff --git a/src/UFile/Apis/UpdateBucketStaticPageRuleResponse.php b/src/UFile/Apis/UpdateBucketStaticPageRuleResponse.php new file mode 100644 index 00000000..d2933d60 --- /dev/null +++ b/src/UFile/Apis/UpdateBucketStaticPageRuleResponse.php @@ -0,0 +1,26 @@ + "UpdateCORSRule"]); + $this->markRequired("CORSId"); + $this->markRequired("BucketName"); + $this->markRequired("AllowedOrigin"); + $this->markRequired("AllowedMethod"); + } + + + + /** + * 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); + } + + /** + * CORSId: 跨域规则ID + * + * @return string|null + */ + public function getCORSId() + { + return $this->get("CORSId"); + } + + /** + * CORSId: 跨域规则ID + * + * @param string $corsId + */ + public function setCORSId($corsId) + { + $this->set("CORSId", $corsId); + } + + /** + * BucketName: Bucket名称 + * + * @return string|null + */ + public function getBucketName() + { + return $this->get("BucketName"); + } + + /** + * BucketName: Bucket名称 + * + * @param string $bucketName + */ + public function setBucketName($bucketName) + { + $this->set("BucketName", $bucketName); + } + + /** + * AllowedOrigin: 指定允许的跨域请求的来源,使用通配符(*)表示允许所有来源的跨域请求(多个Origin用‘,’分隔) + * + * @return string|null + */ + public function getAllowedOrigin() + { + return $this->get("AllowedOrigin"); + } + + /** + * AllowedOrigin: 指定允许的跨域请求的来源,使用通配符(*)表示允许所有来源的跨域请求(多个Origin用‘,’分隔) + * + * @param string $allowedOrigin + */ + public function setAllowedOrigin($allowedOrigin) + { + $this->set("AllowedOrigin", $allowedOrigin); + } + + /** + * AllowedMethod: 指定允许的跨域请求方法。支持的方法名有:GET、PUT、POST、DELETE、HEAD、OPTIONS(多个Method用‘,’分隔) + * + * @return string|null + */ + public function getAllowedMethod() + { + return $this->get("AllowedMethod"); + } + + /** + * AllowedMethod: 指定允许的跨域请求方法。支持的方法名有:GET、PUT、POST、DELETE、HEAD、OPTIONS(多个Method用‘,’分隔) + * + * @param string $allowedMethod + */ + public function setAllowedMethod($allowedMethod) + { + $this->set("AllowedMethod", $allowedMethod); + } + + /** + * AllowedHeader: 指定允许的跨域请求头(多个Header用‘,’分隔) + * + * @return string|null + */ + public function getAllowedHeader() + { + return $this->get("AllowedHeader"); + } + + /** + * AllowedHeader: 指定允许的跨域请求头(多个Header用‘,’分隔) + * + * @param string $allowedHeader + */ + public function setAllowedHeader($allowedHeader) + { + $this->set("AllowedHeader", $allowedHeader); + } + + /** + * ExposeHeader: 指定允许用户从应用程序中访问的响应头(多个ExposeHeader用‘,’分隔) + * + * @return string|null + */ + public function getExposeHeader() + { + return $this->get("ExposeHeader"); + } + + /** + * ExposeHeader: 指定允许用户从应用程序中访问的响应头(多个ExposeHeader用‘,’分隔) + * + * @param string $exposeHeader + */ + public function setExposeHeader($exposeHeader) + { + $this->set("ExposeHeader", $exposeHeader); + } +} diff --git a/src/UFile/Apis/UpdateCORSRuleResponse.php b/src/UFile/Apis/UpdateCORSRuleResponse.php new file mode 100644 index 00000000..cfdd3f7e --- /dev/null +++ b/src/UFile/Apis/UpdateCORSRuleResponse.php @@ -0,0 +1,26 @@ +set("IADays", $iaDays); } + + /** + * Tags: Tag,参数格式"k1=v1&k2=v2",key的最大长度为128, value最大长度为256byte,单个object的tag的最大数量为10 + * + * @return string|null + */ + public function getTags() + { + return $this->get("Tags"); + } + + /** + * Tags: Tag,参数格式"k1=v1&k2=v2",key的最大长度为128, value最大长度为256byte,单个object的tag的最大数量为10 + * + * @param string $tags + */ + public function setTags($tags) + { + $this->set("Tags", $tags); + } } diff --git a/src/UFile/Apis/UpdateUFileLifeCycleResponse.php b/src/UFile/Apis/UpdateUFileLifeCycleResponse.php index 7112d0ee..f099e861 100644 --- a/src/UFile/Apis/UpdateUFileLifeCycleResponse.php +++ b/src/UFile/Apis/UpdateUFileLifeCycleResponse.php @@ -1,6 +1,6 @@ "UpdateUFileSSLCert"]); + $this->markRequired("BucketName"); + $this->markRequired("Domain"); + $this->markRequired("CertificateName"); + $this->markRequired("Certificate"); + $this->markRequired("CertificateKey"); + } + + + + /** + * BucketName: 存储桶名称,全局唯一 + * + * @return string|null + */ + public function getBucketName() + { + return $this->get("BucketName"); + } + + /** + * BucketName: 存储桶名称,全局唯一 + * + * @param string $bucketName + */ + public function setBucketName($bucketName) + { + $this->set("BucketName", $bucketName); + } + + /** + * Domain: 域名 + * + * @return string|null + */ + public function getDomain() + { + return $this->get("Domain"); + } + + /** + * Domain: 域名 + * + * @param string $domain + */ + public function setDomain($domain) + { + $this->set("Domain", $domain); + } + + /** + * CertificateName: SSL证书名称 + * + * @return string|null + */ + public function getCertificateName() + { + return $this->get("CertificateName"); + } + + /** + * CertificateName: SSL证书名称 + * + * @param string $certificateName + */ + public function setCertificateName($certificateName) + { + $this->set("CertificateName", $certificateName); + } + + /** + * Certificate: 填写SSL证书文件内容(PEM编码)。 证书文件内容填写格式: 如果您的业务场景仅需确保服务端证书可信,则证书文件需要包含服务器证书(①)和中间证书(②)。如果您的中间证书和服务器证书是两个文件,您可以在证书链配置项填写中间证书内容即可。 + * + * @return string|null + */ + public function getCertificate() + { + return $this->get("Certificate"); + } + + /** + * Certificate: 填写SSL证书文件内容(PEM编码)。 证书文件内容填写格式: 如果您的业务场景仅需确保服务端证书可信,则证书文件需要包含服务器证书(①)和中间证书(②)。如果您的中间证书和服务器证书是两个文件,您可以在证书链配置项填写中间证书内容即可。 + * + * @param string $certificate + */ + public function setCertificate($certificate) + { + $this->set("Certificate", $certificate); + } + + /** + * CertificateKey: 填写SSL证书私钥内容(PEM编码)。 + * + * @return string|null + */ + public function getCertificateKey() + { + return $this->get("CertificateKey"); + } + + /** + * CertificateKey: 填写SSL证书私钥内容(PEM编码)。 + * + * @param string $certificateKey + */ + public function setCertificateKey($certificateKey) + { + $this->set("CertificateKey", $certificateKey); + } +} diff --git a/src/UFile/Apis/UpdateUFileSSLCertResponse.php b/src/UFile/Apis/UpdateUFileSSLCertResponse.php new file mode 100644 index 00000000..18bfc4f6 --- /dev/null +++ b/src/UFile/Apis/UpdateUFileSSLCertResponse.php @@ -0,0 +1,26 @@ + "UpdateUdsRule"]); + $this->markRequired("RuleId"); + $this->markRequired("RuleName"); + $this->markRequired("SrcBucket"); + $this->markRequired("SrcTokenId"); + $this->markRequired("DstBucket"); + $this->markRequired("DstTokenId"); + $this->markRequired("DstDirectory"); + $this->markRequired("KeepUS3Name"); + $this->markRequired("Prefixes"); + } + + + + /** + * RuleId: 规则的唯一Id + * + * @return string|null + */ + public function getRuleId() + { + return $this->get("RuleId"); + } + + /** + * RuleId: 规则的唯一Id + * + * @param string $ruleId + */ + public function setRuleId($ruleId) + { + $this->set("RuleId", $ruleId); + } + + /** + * RuleName: 规则名称 + * + * @return string|null + */ + public function getRuleName() + { + return $this->get("RuleName"); + } + + /** + * RuleName: 规则名称 + * + * @param string $ruleName + */ + public function setRuleName($ruleName) + { + $this->set("RuleName", $ruleName); + } + + /** + * SrcBucket: 源Bucket名字,全局唯一 + * + * @return string|null + */ + public function getSrcBucket() + { + return $this->get("SrcBucket"); + } + + /** + * SrcBucket: 源Bucket名字,全局唯一 + * + * @param string $srcBucket + */ + public function setSrcBucket($srcBucket) + { + $this->set("SrcBucket", $srcBucket); + } + + /** + * SrcTokenId: 源bucket的token之一的tokenId + * + * @return string|null + */ + public function getSrcTokenId() + { + return $this->get("SrcTokenId"); + } + + /** + * SrcTokenId: 源bucket的token之一的tokenId + * + * @param string $srcTokenId + */ + public function setSrcTokenId($srcTokenId) + { + $this->set("SrcTokenId", $srcTokenId); + } + + /** + * DstBucket: 目标Bucket名字,全局唯一 + * + * @return string|null + */ + public function getDstBucket() + { + return $this->get("DstBucket"); + } + + /** + * DstBucket: 目标Bucket名字,全局唯一 + * + * @param string $dstBucket + */ + public function setDstBucket($dstBucket) + { + $this->set("DstBucket", $dstBucket); + } + + /** + * DstTokenId: 目标bucket的token之一的tokenId + * + * @return string|null + */ + public function getDstTokenId() + { + return $this->get("DstTokenId"); + } + + /** + * DstTokenId: 目标bucket的token之一的tokenId + * + * @param string $dstTokenId + */ + public function setDstTokenId($dstTokenId) + { + $this->set("DstTokenId", $dstTokenId); + } + + /** + * DstDirectory: 解压后的目标目录 + * + * @return string|null + */ + public function getDstDirectory() + { + return $this->get("DstDirectory"); + } + + /** + * DstDirectory: 解压后的目标目录 + * + * @param string $dstDirectory + */ + public function setDstDirectory($dstDirectory) + { + $this->set("DstDirectory", $dstDirectory); + } + + /** + * KeepUS3Name: 是否以压缩文件的前缀为最后一层目录 + * + * @return boolean|null + */ + public function getKeepUS3Name() + { + return $this->get("KeepUS3Name"); + } + + /** + * KeepUS3Name: 是否以压缩文件的前缀为最后一层目录 + * + * @param boolean $keepUS3Name + */ + public function setKeepUS3Name($keepUS3Name) + { + $this->set("KeepUS3Name", $keepUS3Name); + } + + /** + * Prefixes: 触发解压缩的前缀 + * + * @return string|null + */ + public function getPrefixes() + { + return $this->get("Prefixes"); + } + + /** + * Prefixes: 触发解压缩的前缀 + * + * @param string $prefixes + */ + public function setPrefixes($prefixes) + { + $this->set("Prefixes", $prefixes); + } + + /** + * Ops: 操作的ops数组,"Ops.0":"unzip" + * + * @return string[]|null + */ + public function getOps() + { + return $this->get("Ops"); + } + + /** + * Ops: 操作的ops数组,"Ops.0":"unzip" + * + * @param string[] $ops + */ + public function setOps(array $ops) + { + $this->set("Ops", $ops); + } + + /** + * Events: 通知的事件数组 + * + * @return string[]|null + */ + public function getEvents() + { + return $this->get("Events"); + } + + /** + * Events: 通知的事件数组 + * + * @param string[] $events + */ + public function setEvents(array $events) + { + $this->set("Events", $events); + } + + /** + * ContactGroupId: 联系的用户组ID + * + * @return string|null + */ + public function getContactGroupId() + { + return $this->get("ContactGroupId"); + } + + /** + * ContactGroupId: 联系的用户组ID + * + * @param string $contactGroupId + */ + public function setContactGroupId($contactGroupId) + { + $this->set("ContactGroupId", $contactGroupId); + } + + /** + * NotificationTypes: 通知的类型数组 + * + * @return string[]|null + */ + public function getNotificationTypes() + { + return $this->get("NotificationTypes"); + } + + /** + * NotificationTypes: 通知的类型数组 + * + * @param string[] $notificationTypes + */ + public function setNotificationTypes(array $notificationTypes) + { + $this->set("NotificationTypes", $notificationTypes); + } +} diff --git a/src/UFile/Apis/UpdateUdsRuleResponse.php b/src/UFile/Apis/UpdateUdsRuleResponse.php new file mode 100644 index 00000000..6c7c8cbc --- /dev/null +++ b/src/UFile/Apis/UpdateUdsRuleResponse.php @@ -0,0 +1,64 @@ +get("RuleId"); + } + + /** + * RuleId: 返回规则的规则ID + * + * @param string $ruleId + */ + public function setRuleId($ruleId) + { + $this->set("RuleId", $ruleId); + } + + /** + * Mesage: 该请求的消息成功或者失败的描述 + * + * @return string|null + */ + public function getMesage() + { + return $this->get("Mesage"); + } + + /** + * Mesage: 该请求的消息成功或者失败的描述 + * + * @param string $mesage + */ + public function setMesage($mesage) + { + $this->set("Mesage", $mesage); + } +} diff --git a/src/UFile/Models/BucketBills.php b/src/UFile/Models/BucketBills.php new file mode 100644 index 00000000..84419692 --- /dev/null +++ b/src/UFile/Models/BucketBills.php @@ -0,0 +1,56 @@ +get("BucketBills"); + if ($items == null) { + return []; + } + $result = []; + foreach ($items as $i => $item) { + array_push($result, new UFileDailyBillItem($item)); + } + return $result; + } + + /** + * BucketBills: + * + * @param UFileDailyBillItem[] $bucketBills + */ + public function setBucketBills(array $bucketBills) + { + $result = []; + foreach ($bucketBills as $i => $item) { + array_push($result, $item->getAll()); + } + return $result; + } +} diff --git a/src/UFile/Models/BucketStaticPageRule.php b/src/UFile/Models/BucketStaticPageRule.php new file mode 100644 index 00000000..e5fc50a6 --- /dev/null +++ b/src/UFile/Models/BucketStaticPageRule.php @@ -0,0 +1,124 @@ +get("Status"); + } + + /** + * Status: 启用状态 + * + * @param string $status + */ + public function setStatus($status) + { + $this->set("Status", $status); + } + + /** + * DefaultIndex: 默认网页 + * + * @return string|null + */ + public function getDefaultIndex() + { + return $this->get("DefaultIndex"); + } + + /** + * DefaultIndex: 默认网页 + * + * @param string $defaultIndex + */ + public function setDefaultIndex($defaultIndex) + { + $this->set("DefaultIndex", $defaultIndex); + } + + /** + * SubDirRedirect: 子目录重定向功能的启用状态 + * + * @return string|null + */ + public function getSubDirRedirect() + { + return $this->get("SubDirRedirect"); + } + + /** + * SubDirRedirect: 子目录重定向功能的启用状态 + * + * @param string $subDirRedirect + */ + public function setSubDirRedirect($subDirRedirect) + { + $this->set("SubDirRedirect", $subDirRedirect); + } + + /** + * RuleFor404: 404时的处理规则 + * + * @return string|null + */ + public function getRuleFor404() + { + return $this->get("RuleFor404"); + } + + /** + * RuleFor404: 404时的处理规则 + * + * @param string $ruleFor404 + */ + public function setRuleFor404($ruleFor404) + { + $this->set("RuleFor404", $ruleFor404); + } + + /** + * DefaultPage404: 默认404页面在存储桶的路径 + * + * @return string|null + */ + public function getDefaultPage404() + { + return $this->get("DefaultPage404"); + } + + /** + * DefaultPage404: 默认404页面在存储桶的路径 + * + * @param string $defaultPage404 + */ + public function setDefaultPage404($defaultPage404) + { + $this->set("DefaultPage404", $defaultPage404); + } +} diff --git a/src/UFile/Models/CORSRuleSet.php b/src/UFile/Models/CORSRuleSet.php new file mode 100644 index 00000000..49d84e3c --- /dev/null +++ b/src/UFile/Models/CORSRuleSet.php @@ -0,0 +1,164 @@ +get("AllowedOrigin"); + } + + /** + * AllowedOrigin: 指定允许的跨域请求的来源,使用通配符(*)表示允许所有来源的跨域请求(多个Origin用‘,’分隔) + * + * @param string $allowedOrigin + */ + public function setAllowedOrigin($allowedOrigin) + { + $this->set("AllowedOrigin", $allowedOrigin); + } + + /** + * AllowedMethod: 指定允许的跨域请求方法。支持的方法名有:GET、PUT、POST、DELETE、HEAD、OPTIONS(多个Method用‘,’分隔) + * + * @return string|null + */ + public function getAllowedMethod() + { + return $this->get("AllowedMethod"); + } + + /** + * AllowedMethod: 指定允许的跨域请求方法。支持的方法名有:GET、PUT、POST、DELETE、HEAD、OPTIONS(多个Method用‘,’分隔) + * + * @param string $allowedMethod + */ + public function setAllowedMethod($allowedMethod) + { + $this->set("AllowedMethod", $allowedMethod); + } + + /** + * CORSId: 跨域规则id + * + * @return string|null + */ + public function getCORSId() + { + return $this->get("CORSId"); + } + + /** + * CORSId: 跨域规则id + * + * @param string $corsId + */ + public function setCORSId($corsId) + { + $this->set("CORSId", $corsId); + } + + /** + * CreateTime: 跨域规则创建时间 + * + * @return integer|null + */ + public function getCreateTime() + { + return $this->get("CreateTime"); + } + + /** + * CreateTime: 跨域规则创建时间 + * + * @param int $createTime + */ + public function setCreateTime($createTime) + { + $this->set("CreateTime", $createTime); + } + + /** + * ModifyTime: 跨域规则最新修改时间 + * + * @return integer|null + */ + public function getModifyTime() + { + return $this->get("ModifyTime"); + } + + /** + * ModifyTime: 跨域规则最新修改时间 + * + * @param int $modifyTime + */ + public function setModifyTime($modifyTime) + { + $this->set("ModifyTime", $modifyTime); + } + + /** + * AllowedHeader: 指定允许的跨域请求头(多个Header用‘,’分隔) + * + * @return string|null + */ + public function getAllowedHeader() + { + return $this->get("AllowedHeader"); + } + + /** + * AllowedHeader: 指定允许的跨域请求头(多个Header用‘,’分隔) + * + * @param string $allowedHeader + */ + public function setAllowedHeader($allowedHeader) + { + $this->set("AllowedHeader", $allowedHeader); + } + + /** + * ExposeHeader: 指定允许用户从应用程序中访问的响应头(多个ExposeHeader用‘,’分隔) + * + * @return string|null + */ + public function getExposeHeader() + { + return $this->get("ExposeHeader"); + } + + /** + * ExposeHeader: 指定允许用户从应用程序中访问的响应头(多个ExposeHeader用‘,’分隔) + * + * @param string $exposeHeader + */ + public function setExposeHeader($exposeHeader) + { + $this->set("ExposeHeader", $exposeHeader); + } +} diff --git a/src/UFile/Models/LifeCycleItem.php b/src/UFile/Models/LifeCycleItem.php index 89e4e910..ea1da9e1 100644 --- a/src/UFile/Models/LifeCycleItem.php +++ b/src/UFile/Models/LifeCycleItem.php @@ -1,6 +1,6 @@ get("MinSize"); + } + + /** + * MinSize: 文件的最小size + * + * @param string $minSize + */ + public function setMinSize($minSize) + { + $this->set("MinSize", $minSize); + } + + /** + * MaxSize: 文件的最大size + * + * @return string|null + */ + public function getMaxSize() + { + return $this->get("MaxSize"); + } + + /** + * MaxSize: 文件的最大size + * + * @param string $maxSize + */ + public function setMaxSize($maxSize) + { + $this->set("MaxSize", $maxSize); + } + /** * LifeCycleId: 生命周期Id * diff --git a/src/UFile/Models/UFileBucketSet.php b/src/UFile/Models/UFileBucketSet.php index 2a87aeca..fedd35be 100644 --- a/src/UFile/Models/UFileBucketSet.php +++ b/src/UFile/Models/UFileBucketSet.php @@ -1,6 +1,6 @@ get("GetCountIaBill"); + } + + /** + * GetCountIaBill: 下载低频存储次数费用;分 + * + * @param float $getCountIaBill + */ + public function setGetCountIaBill($getCountIaBill) + { + $this->set("GetCountIaBill", $getCountIaBill); + } + + /** + * GetCountBill: 下载标准存储次数费用;分 + * + * @return float|null + */ + public function getGetCountBill() + { + return $this->get("GetCountBill"); + } + + /** + * GetCountBill: 下载标准存储次数费用;分 + * + * @param float $getCountBill + */ + public function setGetCountBill($getCountBill) + { + $this->set("GetCountBill", $getCountBill); + } + + /** + * PutCountAcBill: 上传归档存储次数费用;分 + * + * @return float|null + */ + public function getPutCountAcBill() + { + return $this->get("PutCountAcBill"); + } + + /** + * PutCountAcBill: 上传归档存储次数费用;分 + * + * @param float $putCountAcBill + */ + public function setPutCountAcBill($putCountAcBill) + { + $this->set("PutCountAcBill", $putCountAcBill); + } + + /** + * PutCountIaBill: 上传低频存储次数费用;分 + * + * @return float|null + */ + public function getPutCountIaBill() + { + return $this->get("PutCountIaBill"); + } + + /** + * PutCountIaBill: 上传低频存储次数费用;分 + * + * @param float $putCountIaBill + */ + public function setPutCountIaBill($putCountIaBill) + { + $this->set("PutCountIaBill", $putCountIaBill); + } + + /** + * PutCountBill: 上传标准存储次数费用;分 + * + * @return float|null + */ + public function getPutCountBill() + { + return $this->get("PutCountBill"); + } + + /** + * PutCountBill: 上传标准存储次数费用;分 + * + * @param float $putCountBill + */ + public function setPutCountBill($putCountBill) + { + $this->set("PutCountBill", $putCountBill); + } + + /** + * ObjectTagCountBill: 对象标签费用: 分 + * + * @return float|null + */ + public function getObjectTagCountBill() + { + return $this->get("ObjectTagCountBill"); + } + + /** + * ObjectTagCountBill: 对象标签费用: 分 + * + * @param float $objectTagCountBill + */ + public function setObjectTagCountBill($objectTagCountBill) + { + $this->set("ObjectTagCountBill", $objectTagCountBill); + } + + /** + * StorageBill: 标准-存储总容量费用;分 + * + * @return float|null + */ + public function getStorageBill() + { + return $this->get("StorageBill"); + } + + /** + * StorageBill: 标准-存储总容量费用;分 + * + * @param float $storageBill + */ + public function setStorageBill($storageBill) + { + $this->set("StorageBill", $storageBill); + } + + /** + * IaStorageBill: 低频-存储总容量费用;分 + * + * @return float|null + */ + public function getIaStorageBill() + { + return $this->get("IaStorageBill"); + } + + /** + * IaStorageBill: 低频-存储总容量费用;分 + * + * @param float $iaStorageBill + */ + public function setIaStorageBill($iaStorageBill) + { + $this->set("IaStorageBill", $iaStorageBill); + } + + /** + * AcStorageBill: 归档-存储总容量费用;分 + * + * @return float|null + */ + public function getAcStorageBill() + { + return $this->get("AcStorageBill"); + } + + /** + * AcStorageBill: 归档-存储总容量费用;分 + * + * @param float $acStorageBill + */ + public function setAcStorageBill($acStorageBill) + { + $this->set("AcStorageBill", $acStorageBill); + } + + /** + * IaGetSizeBill: 低频-数据取回量,即低频文件的数据取回量费用;分 + * + * @return float|null + */ + public function getIaGetSizeBill() + { + return $this->get("IaGetSizeBill"); + } + + /** + * IaGetSizeBill: 低频-数据取回量,即低频文件的数据取回量费用;分 + * + * @param float $iaGetSizeBill + */ + public function setIaGetSizeBill($iaGetSizeBill) + { + $this->set("IaGetSizeBill", $iaGetSizeBill); + } + + /** + * AcRestoreBill: 归档-标准解冻量,即归档文件的解冻类型为标准(Strandard)的解冻量费用; 分 + * + * @return float|null + */ + public function getAcRestoreBill() + { + return $this->get("AcRestoreBill"); + } + + /** + * AcRestoreBill: 归档-标准解冻量,即归档文件的解冻类型为标准(Strandard)的解冻量费用; 分 + * + * @param float $acRestoreBill + */ + public function setAcRestoreBill($acRestoreBill) + { + $this->set("AcRestoreBill", $acRestoreBill); + } + + /** + * AcExpeditedRetrievalBill: 归档-高优先级解冻量,即归档文件的解冻类型为高优先级(Expedited)的解冻量费用; 分 + * + * @return float|null + */ + public function getAcExpeditedRetrievalBill() + { + return $this->get("AcExpeditedRetrievalBill"); + } + + /** + * AcExpeditedRetrievalBill: 归档-高优先级解冻量,即归档文件的解冻类型为高优先级(Expedited)的解冻量费用; 分 + * + * @param float $acExpeditedRetrievalBill + */ + public function setAcExpeditedRetrievalBill($acExpeditedRetrievalBill) + { + $this->set("AcExpeditedRetrievalBill", $acExpeditedRetrievalBill); + } + + /** + * IaShortStorageBill: 低频-短期存储量,即补足未满最短存储期限的剩余天数的存储量费用;分 + * + * @return float|null + */ + public function getIaShortStorageBill() + { + return $this->get("IaShortStorageBill"); + } + + /** + * IaShortStorageBill: 低频-短期存储量,即补足未满最短存储期限的剩余天数的存储量费用;分 + * + * @param float $iaShortStorageBill + */ + public function setIaShortStorageBill($iaShortStorageBill) + { + $this->set("IaShortStorageBill", $iaShortStorageBill); + } + + /** + * AcShortStorageBill: 归档-短期存储量,即补足未满最短存储期限的剩余天数的存储量费用;分 + * + * @return float|null + */ + public function getAcShortStorageBill() + { + return $this->get("AcShortStorageBill"); + } + + /** + * AcShortStorageBill: 归档-短期存储量,即补足未满最短存储期限的剩余天数的存储量费用;分 + * + * @param float $acShortStorageBill + */ + public function setAcShortStorageBill($acShortStorageBill) + { + $this->set("AcShortStorageBill", $acShortStorageBill); + } + + /** + * ImageHandleFlowBill: 基础图片处理量费用;分 + * + * @return float|null + */ + public function getImageHandleFlowBill() + { + return $this->get("ImageHandleFlowBill"); + } + + /** + * ImageHandleFlowBill: 基础图片处理量费用;分 + * + * @param float $imageHandleFlowBill + */ + public function setImageHandleFlowBill($imageHandleFlowBill) + { + $this->set("ImageHandleFlowBill", $imageHandleFlowBill); + } + + /** + * ImageCompressCountBill: 图片高级压缩次数费用;分 + * + * @return float|null + */ + public function getImageCompressCountBill() + { + return $this->get("ImageCompressCountBill"); + } + + /** + * ImageCompressCountBill: 图片高级压缩次数费用;分 + * + * @param float $imageCompressCountBill + */ + public function setImageCompressCountBill($imageCompressCountBill) + { + $this->set("ImageCompressCountBill", $imageCompressCountBill); + } + + /** + * BusyFlowBill: 忙时流量费用;分;海外无此字段 + * + * @return float|null + */ + public function getBusyFlowBill() + { + return $this->get("BusyFlowBill"); + } + + /** + * BusyFlowBill: 忙时流量费用;分;海外无此字段 + * + * @param float $busyFlowBill + */ + public function setBusyFlowBill($busyFlowBill) + { + $this->set("BusyFlowBill", $busyFlowBill); + } + + /** + * IdleFlowBill: 闲时流量费用;分;海外无此字段 + * + * @return float|null + */ + public function getIdleFlowBill() + { + return $this->get("IdleFlowBill"); + } + + /** + * IdleFlowBill: 闲时流量费用;分;海外无此字段 + * + * @param float $idleFlowBill + */ + public function setIdleFlowBill($idleFlowBill) + { + $this->set("IdleFlowBill", $idleFlowBill); + } + + /** + * CdnFlowBill: cdn回源流量费用;分 + * + * @return float|null + */ + public function getCdnFlowBill() + { + return $this->get("CdnFlowBill"); + } + + /** + * CdnFlowBill: cdn回源流量费用;分 + * + * @param float $cdnFlowBill + */ + public function setCdnFlowBill($cdnFlowBill) + { + $this->set("CdnFlowBill", $cdnFlowBill); + } + + /** + * FlowBill: 下载流量费用:分;国内无此字段 + * + * @return float|null + */ + public function getFlowBill() + { + return $this->get("FlowBill"); + } + + /** + * FlowBill: 下载流量费用:分;国内无此字段 + * + * @param float $flowBill + */ + public function setFlowBill($flowBill) + { + $this->set("FlowBill", $flowBill); + } + + /** + * Date: 配额消费时间,unix时间戳;单位s,精确到日期 + * + * @return integer|null + */ + public function getDate() + { + return $this->get("Date"); + } + + /** + * Date: 配额消费时间,unix时间戳;单位s,精确到日期 + * + * @param int $date + */ + public function setDate($date) + { + $this->set("Date", $date); + } + + /** + * GetCountAcBill: 下载归档存储次数费用;分 + * + * @return float|null + */ + public function getGetCountAcBill() + { + return $this->get("GetCountAcBill"); + } + + /** + * GetCountAcBill: 下载归档存储次数费用;分 + * + * @param float $getCountAcBill + */ + public function setGetCountAcBill($getCountAcBill) + { + $this->set("GetCountAcBill", $getCountAcBill); + } +} diff --git a/src/UFile/Models/UFileDailyReportItem.php b/src/UFile/Models/UFileDailyReportItem.php index 7ea0f846..0d58c639 100644 --- a/src/UFile/Models/UFileDailyReportItem.php +++ b/src/UFile/Models/UFileDailyReportItem.php @@ -1,6 +1,6 @@ get("AcExpeditedRetrieval"); + } + + /** + * AcExpeditedRetrieval: 归档-高优先级解冻量,即归档文件的解冻类型为高优先级(Expedited)的解冻量;单位GB + * + * @param float $acExpeditedRetrieval + */ + public function setAcExpeditedRetrieval($acExpeditedRetrieval) + { + $this->set("AcExpeditedRetrieval", $acExpeditedRetrieval); + } + + /** + * IaShortStorage: 低频-短期存储量,即补足未满最短存储期限的剩余天数的存储量;单位GB + * + * @return float|null + */ + public function getIaShortStorage() + { + return $this->get("IaShortStorage"); + } + + /** + * IaShortStorage: 低频-短期存储量,即补足未满最短存储期限的剩余天数的存储量;单位GB + * + * @param float $iaShortStorage + */ + public function setIaShortStorage($iaShortStorage) + { + $this->set("IaShortStorage", $iaShortStorage); + } + + /** + * AcShortStorage: 归档-短期存储量,即补足未满最短存储期限的剩余天数的存储量;单位GB + * + * @return float|null + */ + public function getAcShortStorage() + { + return $this->get("AcShortStorage"); + } + + /** + * AcShortStorage: 归档-短期存储量,即补足未满最短存储期限的剩余天数的存储量;单位GB + * + * @param float $acShortStorage + */ + public function setAcShortStorage($acShortStorage) + { + $this->set("AcShortStorage", $acShortStorage); + } + + /** + * ImageHandleFlow: 基础图片处理量;单位GB + * + * @return float|null + */ + public function getImageHandleFlow() + { + return $this->get("ImageHandleFlow"); + } + + /** + * ImageHandleFlow: 基础图片处理量;单位GB + * + * @param float $imageHandleFlow + */ + public function setImageHandleFlow($imageHandleFlow) + { + $this->set("ImageHandleFlow", $imageHandleFlow); + } + + /** + * ImageCompressCount: 图片高级压缩次数;单位千次 + * + * @return float|null + */ + public function getImageCompressCount() + { + return $this->get("ImageCompressCount"); + } + + /** + * ImageCompressCount: 图片高级压缩次数;单位千次 + * + * @param float $imageCompressCount + */ + public function setImageCompressCount($imageCompressCount) + { + $this->set("ImageCompressCount", $imageCompressCount); + } + + /** + * BusyFlow: 忙时流量;单位GB;海外无此字段 * * @return float|null */ @@ -133,7 +233,7 @@ public function getBusyFlow() } /** - * BusyFlow: 忙时流量;单位byte;海外无此字段 + * BusyFlow: 忙时流量;单位GB;海外无此字段 * * @param float $busyFlow */ @@ -143,7 +243,7 @@ public function setBusyFlow($busyFlow) } /** - * IdleFlow: 闲时流量;单位byte;海外无此字段 + * IdleFlow: 闲时流量;单位GB;海外无此字段 * * @return float|null */ @@ -153,7 +253,7 @@ public function getIdleFlow() } /** - * IdleFlow: 闲时流量;单位byte;海外无此字段 + * IdleFlow: 闲时流量;单位GB;海外无此字段 * * @param float $idleFlow */ @@ -163,7 +263,7 @@ public function setIdleFlow($idleFlow) } /** - * CdnFlow: cdn回源流量;单位byte + * CdnFlow: cdn回源流量;单位GB * * @return float|null */ @@ -173,7 +273,7 @@ public function getCdnFlow() } /** - * CdnFlow: cdn回源流量;单位byte + * CdnFlow: cdn回源流量;单位GB * * @param float $cdnFlow */ @@ -183,7 +283,7 @@ public function setCdnFlow($cdnFlow) } /** - * Flow: 下载流量:单位byte;国内无此字段 + * Flow: 下载流量:单位GB;国内无此字段 * * @return float|null */ @@ -193,7 +293,7 @@ public function getFlow() } /** - * Flow: 下载流量:单位byte;国内无此字段 + * Flow: 下载流量:单位GB;国内无此字段 * * @param float $flow */ @@ -203,7 +303,7 @@ public function setFlow($flow) } /** - * Date: 配额消费时间,unix时间戳(单位s),精确到日期 + * Date: 配额消费时间,unix时间戳;单位s,精确到日期 * * @return integer|null */ @@ -213,7 +313,7 @@ public function getDate() } /** - * Date: 配额消费时间,unix时间戳(单位s),精确到日期 + * Date: 配额消费时间,unix时间戳;单位s,精确到日期 * * @param int $date */ @@ -223,7 +323,7 @@ public function setDate($date) } /** - * ApiTimes: API请求次数(万次) + * ApiTimes: 请求次数;单位万次 * * @return float|null */ @@ -233,7 +333,7 @@ public function getApiTimes() } /** - * ApiTimes: API请求次数(万次) + * ApiTimes: 请求次数;单位万次 * * @param float $apiTimes */ @@ -241,4 +341,24 @@ public function setApiTimes($apiTimes) { $this->set("ApiTimes", $apiTimes); } + + /** + * ObjectTagCount: 对象标签个数; 单位万个 + * + * @return float|null + */ + public function getObjectTagCount() + { + return $this->get("ObjectTagCount"); + } + + /** + * ObjectTagCount: 对象标签个数; 单位万个 + * + * @param float $objectTagCount + */ + public function setObjectTagCount($objectTagCount) + { + $this->set("ObjectTagCount", $objectTagCount); + } } diff --git a/src/UFile/Models/UFileDomainSet.php b/src/UFile/Models/UFileDomainSet.php index 98a25375..66e8a214 100644 --- a/src/UFile/Models/UFileDomainSet.php +++ b/src/UFile/Models/UFileDomainSet.php @@ -1,6 +1,6 @@ get("Domain"); + } + + /** + * Domain: 域名 + * + * @param string $domain + */ + public function setDomain($domain) + { + $this->set("Domain", $domain); + } + + /** + * Certificate: SSL证书内容,和域名对应 + * + * @return string|null + */ + public function getCertificate() + { + return $this->get("Certificate"); + } + + /** + * Certificate: SSL证书内容,和域名对应 + * + * @param string $certificate + */ + public function setCertificate($certificate) + { + $this->set("Certificate", $certificate); + } + + /** + * CertificateKey: SSL证书对应的私钥 + * + * @return string|null + */ + public function getCertificateKey() + { + return $this->get("CertificateKey"); + } + + /** + * CertificateKey: SSL证书对应的私钥 + * + * @param string $certificateKey + */ + public function setCertificateKey($certificateKey) + { + $this->set("CertificateKey", $certificateKey); + } + + /** + * CertificateName: SSL证书名称 + * + * @return string|null + */ + public function getCertificateName() + { + return $this->get("CertificateName"); + } + + /** + * CertificateName: SSL证书名称 + * + * @param string $certificateName + */ + public function setCertificateName($certificateName) + { + $this->set("CertificateName", $certificateName); + } +} diff --git a/src/UFile/Models/UFileTokenSet.php b/src/UFile/Models/UFileTokenSet.php index bf5925d3..24af9a51 100644 --- a/src/UFile/Models/UFileTokenSet.php +++ b/src/UFile/Models/UFileTokenSet.php @@ -1,6 +1,6 @@ get("Region"); + } + + /** + * Region: 所属地区 + * + * @param string $region + */ + public function setRegion($region) + { + $this->set("Region", $region); + } + /** * TokenId: 令牌ID * @@ -103,7 +123,7 @@ public function setPrivateKey($privateKey) } /** - * AllowedOps: 令牌允许执行的操作,[ TOKEN_ALLOW_NONE , TOKEN_ALLOW_READ , TOKEN_ALLOW_WRITE , TOKEN_ALLOW_DELETE , TOKEN_ALLOW_LIST, TOKEN_ALLOW_IOP , TOKEN_ALLOW_DP ] + * AllowedOps: 令牌允许执行的操作,[ TOKEN_ALLOW_NONE 没有权限, TOKEN_ALLOW_READ 下载权限, TOKEN_ALLOW_WRITE 上传权限, TOKEN_ALLOW_DELETE 删除权限, TOKEN_ALLOW_LIST 列表权限, TOKEN_ALLOW_IOP 图片处理权限] * * @return string[]|null */ @@ -113,7 +133,7 @@ public function getAllowedOps() } /** - * AllowedOps: 令牌允许执行的操作,[ TOKEN_ALLOW_NONE , TOKEN_ALLOW_READ , TOKEN_ALLOW_WRITE , TOKEN_ALLOW_DELETE , TOKEN_ALLOW_LIST, TOKEN_ALLOW_IOP , TOKEN_ALLOW_DP ] + * AllowedOps: 令牌允许执行的操作,[ TOKEN_ALLOW_NONE 没有权限, TOKEN_ALLOW_READ 下载权限, TOKEN_ALLOW_WRITE 上传权限, TOKEN_ALLOW_DELETE 删除权限, TOKEN_ALLOW_LIST 列表权限, TOKEN_ALLOW_IOP 图片处理权限] * * @param string[] $allowedOps */ @@ -223,22 +243,42 @@ public function setModifyTime($modifyTime) } /** - * Region: 所属地区 + * BlackIPList: 令牌黑名单 * - * @return string|null + * @return string[]|null */ - public function getRegion() + public function getBlackIPList() { - return $this->get("Region"); + return $this->get("BlackIPList"); } /** - * Region: 所属地区 + * BlackIPList: 令牌黑名单 * - * @param string $region + * @param string[] $blackIPList */ - public function setRegion($region) + public function setBlackIPList(array $blackIPList) { - $this->set("Region", $region); + $this->set("BlackIPList", $blackIPList); + } + + /** + * WhiteIPList: 令牌白名单 + * + * @return string[]|null + */ + public function getWhiteIPList() + { + return $this->get("WhiteIPList"); + } + + /** + * WhiteIPList: 令牌白名单 + * + * @param string[] $whiteIPList + */ + public function setWhiteIPList(array $whiteIPList) + { + $this->set("WhiteIPList", $whiteIPList); } } diff --git a/src/UFile/Models/UFileTotalReportItem.php b/src/UFile/Models/UFileTotalReportItem.php index d3c6811e..28d9f56f 100644 --- a/src/UFile/Models/UFileTotalReportItem.php +++ b/src/UFile/Models/UFileTotalReportItem.php @@ -1,6 +1,6 @@ (string) 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * "BucketName" => (string) Bucket名称 + * "AllowedOrigin" => (string) 指定允许的跨域请求的来源,使用通配符(*)表示允许所有来源的跨域请求(多个Origin用‘,’分隔) + * "AllowedMethod" => (string) 指定允许的跨域请求方法。支持的方法名有:GET、PUT、POST、DELETE、HEAD、OPTIONS(多个Method用‘,’分隔) + * "AllowedHeader" => (string) 指定允许的跨域请求头(多个Header用‘,’分隔) + * "ExposeHeader" => (string) 指定允许用户从应用程序中访问的响应头(多个ExposeHeader用‘,’分隔) + * ] + * + * Outputs: + * + * $outputs = [ + * "CORSId" => (string) 增加一条跨域规则的cors_id + * ] + * + * @return AddCORSRuleResponse + * @throws UCloudException + */ + public function addCORSRule(AddCORSRuleRequest $request = null) + { + $resp = $this->invoke($request); + return new AddCORSRuleResponse($resp->toArray(), $resp->getRequestId()); + } + + /** + * AddUFileSSLCert - 给指定域名添加证书 + * + * See also: https://docs.ucloud.cn/api/ufile-api/add_ufile_ssl_cert + * + * Arguments: + * + * $args = [ + * "BucketName" => (string) 存储桶名称,全局唯一 + * "Domain" => (string) 域名 + * "CertificateName" => (string) SSL证书名称 + * "Certificate" => (string) 填写SSL证书文件内容(PEM编码)。证书文件内容填写格式:如果您的业务场景仅需确保服务端证书可信,则证书文件需要包含服务器证书(①)和中间证书(②)。如果您的中间证书和服务器证书是两个文件,您可以在证书链配置项填写中间证书内容即可。 + * "CertificateKey" => (string) 填写SSL证书私钥内容(PEM编码)。 + * "USSLId" => (string) ussl证书的资源ID + * ] + * + * Outputs: + * + * $outputs = [ + * ] + * + * @return AddUFileSSLCertResponse + * @throws UCloudException + */ + public function addUFileSSLCert(AddUFileSSLCertRequest $request = null) + { + $resp = $this->invoke($request); + return new AddUFileSSLCertResponse($resp->toArray(), $resp->getRequestId()); + } + + /** + * BindBucketDomain - 绑定自定义域名 + * + * See also: https://docs.ucloud.cn/api/ufile-api/bind_bucket_domain + * + * Arguments: + * + * $args = [ + * "ProjectId" => (string) 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * "BucketName" => (string) 自定义域名对应的bucket名称 + * "Domain" => (string) 自定义域名 + * ] + * + * Outputs: + * + * $outputs = [ + * "BucketName" => (string) 自定义域名对应的bucket名称 + * "BucketId" => (string) 自定义域名对应的Bucket的Id + * ] + * + * @return BindBucketDomainResponse + * @throws UCloudException + */ + public function bindBucketDomain(BindBucketDomainRequest $request = null) + { + $resp = $this->invoke($request); + return new BindBucketDomainResponse($resp->toArray(), $resp->getRequestId()); + } + /** * CreateBucket - 创建Bucket * @@ -69,10 +187,11 @@ class UFileClient extends Client * Arguments: * * $args = [ - * "Region" => (string) 地域。 参见 [地域和可用区列表](../summary/regionlist.html) - * "ProjectId" => (string) 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) + * "Region" => (string) 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * "ProjectId" => (string) 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) * "BucketName" => (string) 待创建Bucket的名称,具有全局唯一性 * "Type" => (string) Bucket访问类型,public或private; 默认为private + * "Tag" => (string) Bucket所属业务组,默认为default * ] * * Outputs: @@ -108,6 +227,7 @@ public function createBucket(CreateBucketRequest $request = null) * "Days" => (integer) 指定一个过期天数N,文件会在其最近更新时间点的N天后过期,自动删除;参数范围:[7,36500],0代表不启用 * "ArchivalDays" => (integer) 指定一个过期天数N,文件会在其最近更新时间点的N天后,自动变为归档存储类型;参数范围:[7,36500],0代表不启用 * "IADays" => (integer) 指定一个过期天数N,文件会在其最近更新时间点的N天后,自动变为低频存储类型;参数范围:[7,36500],0代表不启用 + * "Tags" => (string) Tag,参数格式"k1=v1&k2=v2",key的最大长度为128, value最大长度为256byte,单个object的tag的最大数量为10 * ] * * Outputs: @@ -133,19 +253,36 @@ public function createUFileLifeCycle(CreateUFileLifeCycleRequest $request = null * Arguments: * * $args = [ - * "Region" => (string) 地域。 参见 [地域和可用区列表](../summary/regionlist.html) - * "ProjectId" => (string) 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](../summary/get_project_list.html) + * "Region" => (string) 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * "ProjectId" => (string) 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) * "TokenName" => (string) 令牌名称 - * "AllowedOps" => (array) 令牌允许执行的操作,[ TOKEN_ALLOW_NONE , TOKEN_ALLOW_READ , TOKEN_ALLOW_WRITE , TOKEN_ALLOW_DELETE , TOKEN_ALLOW_LIST, TOKEN_ALLOW_IOP , TOKEN_ALLOW_DP ]。默认TOKEN_ALLOW_NONE + * "AllowedOps" => (array) 令牌允许执行的操作[ TOKEN_ALLOW_NONE 没有权限, TOKEN_ALLOW_READ 下载权限 , TOKEN_ALLOW_WRITE 上传权限 , TOKEN_ALLOW_DELETE 删除权限 , TOKEN_ALLOW_LIST 列表权限, TOKEN_ALLOW_IOP 图片处理权限, TOKEN_DENY_UPDATE 禁止覆盖权限]。默认TOKEN_ALLOW_NONE * "AllowedPrefixes" => (array) 令牌允许操作的key前缀,默认*表示全部 * "AllowedBuckets" => (array) 令牌允许操作的bucket,默认*表示全部 * "ExpireTime" => (integer) Unix 时间戳,精确到秒,为令牌过期时间点。默认过期时间为一天(即当前Unix时间戳+86400);注意:过期时间不能超过 4102416000 + * "BlackIPList" => (array) 令牌黑名单,支持ipv4,ipv6格式。 + * "WhiteIPList" => (array) 令牌白名单,支持ipv4,ipv6格式。 * ] * * Outputs: * * $outputs = [ - * "TokenId" => (string) 创建令牌的token_id + * "TokenId" => (string) 令牌唯一ID + * "UFileTokenSet" => (object) 创建令牌的详细信息[ + * "Region" => (string) 所属地区 + * "TokenId" => (string) 令牌ID + * "TokenName" => (string) 令牌名称 + * "PublicKey" => (string) 令牌公钥 + * "PrivateKey" => (string) 令牌私钥 + * "AllowedOps" => (array) 令牌允许执行的操作,[ TOKEN_ALLOW_NONE 没有权限, TOKEN_ALLOW_READ 下载权限, TOKEN_ALLOW_WRITE 上传权限, TOKEN_ALLOW_DELETE 删除权限, TOKEN_ALLOW_LIST 列表权限, TOKEN_ALLOW_IOP 图片处理权限] + * "AllowedPrefixes" => (array) 令牌允许操作的key前缀 + * "AllowedBuckets" => (array) 令牌允许操作的bucket + * "ExpireTime" => (integer) 令牌的超时时间点 + * "CreateTime" => (integer) 创建时间 + * "ModifyTime" => (integer) 修改时间 + * "BlackIPList" => (array) 令牌黑名单 + * "WhiteIPList" => (array) 令牌白名单 + * ] * ] * * @return CreateUFileTokenResponse @@ -185,6 +322,33 @@ public function deleteBucket(DeleteBucketRequest $request = null) return new DeleteBucketResponse($resp->toArray(), $resp->getRequestId()); } + /** + * DeleteCORSRule - 删除跨域规则 + * + * See also: https://docs.ucloud.cn/api/ufile-api/delete_cors_rule + * + * Arguments: + * + * $args = [ + * "ProjectId" => (string) 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * "BucketName" => (string) Bucket名称 + * "CORSId" => (string) 跨域规则ID + * ] + * + * Outputs: + * + * $outputs = [ + * ] + * + * @return DeleteCORSRuleResponse + * @throws UCloudException + */ + public function deleteCORSRule(DeleteCORSRuleRequest $request = null) + { + $resp = $this->invoke($request); + return new DeleteCORSRuleResponse($resp->toArray(), $resp->getRequestId()); + } + /** * DeleteUFileLifeCycle - 删除生命周期管理 * @@ -213,6 +377,32 @@ public function deleteUFileLifeCycle(DeleteUFileLifeCycleRequest $request = null return new DeleteUFileLifeCycleResponse($resp->toArray(), $resp->getRequestId()); } + /** + * DeleteUFileSSLCert - 删除指定域名添加证书 + * + * See also: https://docs.ucloud.cn/api/ufile-api/delete_ufile_ssl_cert + * + * Arguments: + * + * $args = [ + * "BucketName" => (string) 存储桶名称,全局唯一 + * "Domain" => (string) 域名 + * ] + * + * Outputs: + * + * $outputs = [ + * ] + * + * @return DeleteUFileSSLCertResponse + * @throws UCloudException + */ + public function deleteUFileSSLCert(DeleteUFileSSLCertRequest $request = null) + { + $resp = $this->invoke($request); + return new DeleteUFileSSLCertResponse($resp->toArray(), $resp->getRequestId()); + } + /** * DeleteUFileToken - 删除令牌 * @@ -289,6 +479,44 @@ public function describeBucket(DescribeBucketRequest $request = null) return new DescribeBucketResponse($resp->toArray(), $resp->getRequestId()); } + /** + * DescribeCORSRule - 获取跨域规则信息 + * + * See also: https://docs.ucloud.cn/api/ufile-api/describe_cors_rule + * + * Arguments: + * + * $args = [ + * "ProjectId" => (string) 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * "BucketName" => (string) Bucket名称 + * "CORSId" => (string) 跨域规则ID,不指定则返回所有跨域规则信息 + * ] + * + * Outputs: + * + * $outputs = [ + * "DataSet" => (array) 跨域规则信息集合[ + * [ + * "AllowedOrigin" => (string) 指定允许的跨域请求的来源,使用通配符(*)表示允许所有来源的跨域请求(多个Origin用‘,’分隔) + * "AllowedMethod" => (string) 指定允许的跨域请求方法。支持的方法名有:GET、PUT、POST、DELETE、HEAD、OPTIONS(多个Method用‘,’分隔) + * "CORSId" => (string) 跨域规则id + * "CreateTime" => (integer) 跨域规则创建时间 + * "ModifyTime" => (integer) 跨域规则最新修改时间 + * "AllowedHeader" => (string) 指定允许的跨域请求头(多个Header用‘,’分隔) + * "ExposeHeader" => (string) 指定允许用户从应用程序中访问的响应头(多个ExposeHeader用‘,’分隔) + * ] + * ] + * ] + * + * @return DescribeCORSRuleResponse + * @throws UCloudException + */ + public function describeCORSRule(DescribeCORSRuleRequest $request = null) + { + $resp = $this->invoke($request); + return new DescribeCORSRuleResponse($resp->toArray(), $resp->getRequestId()); + } + /** * DescribeUFileLifeCycle - 获取生命周期信息 * @@ -306,8 +534,10 @@ public function describeBucket(DescribeBucketRequest $request = null) * Outputs: * * $outputs = [ - * "DateSet" => (array) 生命周期信息[ + * "DataSet" => (array) 生命周期信息[ * [ + * "MinSize" => (string) 文件的最小size + * "MaxSize" => (string) 文件的最大size * "LifeCycleId" => (string) 生命周期Id * "LifeCycleName" => (string) 生命周期名称 * "Prefix" => (string) 生命周期所适用的前缀;*为整个存储空间文件; @@ -329,6 +559,72 @@ public function describeUFileLifeCycle(DescribeUFileLifeCycleRequest $request = return new DescribeUFileLifeCycleResponse($resp->toArray(), $resp->getRequestId()); } + /** + * DescribeUFileReferer - 对象存储防盗链列表 + * + * See also: https://docs.ucloud.cn/api/ufile-api/describe_ufile_referer + * + * Arguments: + * + * $args = [ + * "Region" => (string) 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * "ProjectId" => (string) 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * "BucketName" => (string) 存储空间名称 + * ] + * + * Outputs: + * + * $outputs = [ + * "RefererType" => (integer) 防盗链Referer类型,支持两种类型,1黑名单,2白名单;未开启referer时不返回此参数 + * "RefererList" => (array) 防盗链Referer规则列表;未开启referer时不返回此参数 + * "NullRefer" => (boolean) ReferType为白名单时,NullRefer为false代表不允许NULL refer访问,为true代表允许Null refer访问; 未开启referer时不返回此参数 + * "RefererStatus" => (string) 防盗链功能是否开启,"on"表示开启,"off"表示关闭 + * "BlackList" => (array) 黑名单列表 + * "WhiteList" => (array) 白名单列表 + * ] + * + * @return DescribeUFileRefererResponse + * @throws UCloudException + */ + public function describeUFileReferer(DescribeUFileRefererRequest $request = null) + { + $resp = $this->invoke($request); + return new DescribeUFileRefererResponse($resp->toArray(), $resp->getRequestId()); + } + + /** + * DescribeUFileSSLCert - 查询指定存储桶所有证书 + * + * See also: https://docs.ucloud.cn/api/ufile-api/describe_ufile_ssl_cert + * + * Arguments: + * + * $args = [ + * "BucketName" => (string) 存储桶名称,全局唯一 + * ] + * + * Outputs: + * + * $outputs = [ + * "DataSet" => (array) 证书列表[ + * [ + * "Domain" => (string) 域名 + * "Certificate" => (string) SSL证书内容,和域名对应 + * "CertificateKey" => (string) SSL证书对应的私钥 + * "CertificateName" => (string) SSL证书名称 + * ] + * ] + * ] + * + * @return DescribeUFileSSLCertResponse + * @throws UCloudException + */ + public function describeUFileSSLCert(DescribeUFileSSLCertRequest $request = null) + { + $resp = $this->invoke($request); + return new DescribeUFileSSLCertResponse($resp->toArray(), $resp->getRequestId()); + } + /** * DescribeUFileToken - 获取令牌信息 * @@ -349,17 +645,19 @@ public function describeUFileLifeCycle(DescribeUFileLifeCycleRequest $request = * $outputs = [ * "DataSet" => (array) 令牌描述信息[ * [ + * "Region" => (string) 所属地区 * "TokenId" => (string) 令牌ID * "TokenName" => (string) 令牌名称 * "PublicKey" => (string) 令牌公钥 * "PrivateKey" => (string) 令牌私钥 - * "AllowedOps" => (array) 令牌允许执行的操作,[ TOKEN_ALLOW_NONE , TOKEN_ALLOW_READ , TOKEN_ALLOW_WRITE , TOKEN_ALLOW_DELETE , TOKEN_ALLOW_LIST, TOKEN_ALLOW_IOP , TOKEN_ALLOW_DP ] + * "AllowedOps" => (array) 令牌允许执行的操作,[ TOKEN_ALLOW_NONE 没有权限, TOKEN_ALLOW_READ 下载权限, TOKEN_ALLOW_WRITE 上传权限, TOKEN_ALLOW_DELETE 删除权限, TOKEN_ALLOW_LIST 列表权限, TOKEN_ALLOW_IOP 图片处理权限] * "AllowedPrefixes" => (array) 令牌允许操作的key前缀 * "AllowedBuckets" => (array) 令牌允许操作的bucket * "ExpireTime" => (integer) 令牌的超时时间点 * "CreateTime" => (integer) 创建时间 * "ModifyTime" => (integer) 修改时间 - * "Region" => (string) 所属地区 + * "BlackIPList" => (array) 令牌黑名单 + * "WhiteIPList" => (array) 令牌白名单 * ] * ] * ] @@ -373,6 +671,99 @@ public function describeUFileToken(DescribeUFileTokenRequest $request = null) return new DescribeUFileTokenResponse($resp->toArray(), $resp->getRequestId()); } + /** + * GetBucketStaticPageRule - 获取bucket静态网页配置 + * + * See also: https://docs.ucloud.cn/api/ufile-api/get_bucket_static_page_rule + * + * Arguments: + * + * $args = [ + * "Region" => (string) 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * "ProjectId" => (string) 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * "Bucket" => (string) 存储桶名称 + * ] + * + * Outputs: + * + * $outputs = [ + * "Rule" => (object) 规则内容[ + * "Status" => (string) 启用状态 + * "DefaultIndex" => (string) 默认网页 + * "SubDirRedirect" => (string) 子目录重定向功能的启用状态 + * "RuleFor404" => (string) 404时的处理规则 + * "DefaultPage404" => (string) 默认404页面在存储桶的路径 + * ] + * ] + * + * @return GetBucketStaticPageRuleResponse + * @throws UCloudException + */ + public function getBucketStaticPageRule(GetBucketStaticPageRuleRequest $request = null) + { + $resp = $this->invoke($request); + return new GetBucketStaticPageRuleResponse($resp->toArray(), $resp->getRequestId()); + } + + /** + * GetUFileDailyBill - 获取bucket每日账单 + * + * See also: https://docs.ucloud.cn/api/ufile-api/get_ufile_daily_bill + * + * Arguments: + * + * $args = [ + * "Region" => (string) 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * "ProjectId" => (string) 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * "StartTime" => (integer) 查询开始时间;unix时间戳,单位s + * "EndTime" => (integer) 查询结束时间;unix时间戳,单位s + * "BucketName" => (string) 空间名称。此字段不为空,返回此Bucket日账单,否则,返回这个项目的日账单 + * ] + * + * Outputs: + * + * $outputs = [ + * "DataSet" => (array) 消费情况[ + * [ + * "BucketBills" => (array) [ + * [ + * "GetCountIaBill" => (number) 下载低频存储次数费用;分 + * "GetCountBill" => (number) 下载标准存储次数费用;分 + * "PutCountAcBill" => (number) 上传归档存储次数费用;分 + * "PutCountIaBill" => (number) 上传低频存储次数费用;分 + * "PutCountBill" => (number) 上传标准存储次数费用;分 + * "ObjectTagCountBill" => (number) 对象标签费用: 分 + * "StorageBill" => (number) 标准-存储总容量费用;分 + * "IaStorageBill" => (number) 低频-存储总容量费用;分 + * "AcStorageBill" => (number) 归档-存储总容量费用;分 + * "IaGetSizeBill" => (number) 低频-数据取回量,即低频文件的数据取回量费用;分 + * "AcRestoreBill" => (number) 归档-标准解冻量,即归档文件的解冻类型为标准(Strandard)的解冻量费用; 分 + * "AcExpeditedRetrievalBill" => (number) 归档-高优先级解冻量,即归档文件的解冻类型为高优先级(Expedited)的解冻量费用; 分 + * "IaShortStorageBill" => (number) 低频-短期存储量,即补足未满最短存储期限的剩余天数的存储量费用;分 + * "AcShortStorageBill" => (number) 归档-短期存储量,即补足未满最短存储期限的剩余天数的存储量费用;分 + * "ImageHandleFlowBill" => (number) 基础图片处理量费用;分 + * "ImageCompressCountBill" => (number) 图片高级压缩次数费用;分 + * "BusyFlowBill" => (number) 忙时流量费用;分;海外无此字段 + * "IdleFlowBill" => (number) 闲时流量费用;分;海外无此字段 + * "CdnFlowBill" => (number) cdn回源流量费用;分 + * "FlowBill" => (number) 下载流量费用:分;国内无此字段 + * "Date" => (integer) 配额消费时间,unix时间戳;单位s,精确到日期 + * "GetCountAcBill" => (number) 下载归档存储次数费用;分 + * ] + * ] + * ] + * ] + * ] + * + * @return GetUFileDailyBillResponse + * @throws UCloudException + */ + public function getUFileDailyBill(GetUFileDailyBillRequest $request = null) + { + $resp = $this->invoke($request); + return new GetUFileDailyBillResponse($resp->toArray(), $resp->getRequestId()); + } + /** * GetUFileDailyReport - 查看日消费报表 * @@ -395,26 +786,32 @@ public function describeUFileToken(DescribeUFileTokenRequest $request = null) * [ * "Total" => (array) 总消费情况[ * [ - * "Flow" => (number) 下载流量:单位byte;国内无此字段 - * "IdleFlow" => (number) 闲时流量;单位byte;海外无此字段 - * "BusyFlow" => (number) 忙时流量;单位byte;海外无此字段 - * "CdnFlow" => (number) cdn回源流量;单位byte + * "Flow" => (number) 下载流量:单位GB;国内无此字段 + * "IdleFlow" => (number) 闲时流量;单位GB;海外无此字段 + * "BusyFlow" => (number) 忙时流量;单位GB;海外无此字段 + * "CdnFlow" => (number) cdn回源流量;单位GB * "ApiTimes" => (number) API请求次数(万次) * ] * ] * "Daily" => (array) 日消费情况[ * [ - * "Storage" => (number) 标准存储量;单位byte - * "IaStorage" => (number) 低频存储量;单位byte - * "AcStorage" => (number) 冷存(归档)存储量;单位byte - * "IaGetSize" => (number) 低频数据取回量;单位byte - * "AcRestore" => (number) 冷存激活量,即归档数据取回量;单位byte - * "BusyFlow" => (number) 忙时流量;单位byte;海外无此字段 - * "IdleFlow" => (number) 闲时流量;单位byte;海外无此字段 - * "CdnFlow" => (number) cdn回源流量;单位byte - * "Flow" => (number) 下载流量:单位byte;国内无此字段 - * "Date" => (integer) 配额消费时间,unix时间戳(单位s),精确到日期 - * "ApiTimes" => (number) API请求次数(万次) + * "Storage" => (number) 标准-存储总容量;单位GB + * "IaStorage" => (number) 低频-存储总容量;单位GB + * "AcStorage" => (number) 归档-存储总容量;单位GB + * "IaGetSize" => (number) 低频-数据取回量,即低频文件的数据取回量;单位GB + * "AcRestore" => (number) 归档-标准解冻量,即归档文件的解冻类型为标准(Strandard)的解冻量;单位GB + * "AcExpeditedRetrieval" => (number) 归档-高优先级解冻量,即归档文件的解冻类型为高优先级(Expedited)的解冻量;单位GB + * "IaShortStorage" => (number) 低频-短期存储量,即补足未满最短存储期限的剩余天数的存储量;单位GB + * "AcShortStorage" => (number) 归档-短期存储量,即补足未满最短存储期限的剩余天数的存储量;单位GB + * "ImageHandleFlow" => (number) 基础图片处理量;单位GB + * "ImageCompressCount" => (number) 图片高级压缩次数;单位千次 + * "BusyFlow" => (number) 忙时流量;单位GB;海外无此字段 + * "IdleFlow" => (number) 闲时流量;单位GB;海外无此字段 + * "CdnFlow" => (number) cdn回源流量;单位GB + * "Flow" => (number) 下载流量:单位GB;国内无此字段 + * "Date" => (integer) 配额消费时间,unix时间戳;单位s,精确到日期 + * "ApiTimes" => (number) 请求次数;单位万次 + * "ObjectTagCount" => (number) 对象标签个数; 单位万个 * ] * ] * ] @@ -577,8 +974,10 @@ public function getUFileReport(GetUFileReportRequest $request = null) * "BucketName" => (string) 存储空间名称 * "RefererStatus" => (string) 开启关闭referer防盗链;关闭防盗链会清空防盗链参数设置,开启防盗链必须指定 RefererType、Referers;开启:on, 关闭:off; * "RefererAllowNull" => (boolean) RefererType为白名单时,RefererAllowNull为false代表不允许空referer访问,为true代表允许空referer访问;此参数默认为 true; - * "RefererType" => (integer) 防盗链Referer类型,支持两种类型,黑名单和白名单; 1黑名单,2白名单;RefererStatus为"on"时此参数必填; - * "Referers" => (array) 防盗链Referer规则,支持正则表达式(不支持符号';') + * "RefererType" => (integer) 防盗链Referer类型,支持三种类型,1代表设置黑名单、2代表设置白名单,3代表同时设置黑白名单; (其中1和2是为了向前兼容,后续调用只应该传递类型3)RefererStatus为"on"时此参数必填; + * "Referers" => (array) 防盗链Referer规则,支持正则表达式(不支持符号';'),该字段已弃用,请使用WhiteList.n或BlackList.n + * "WhiteList" => (array) 白名单列表中的一项 + * "BlackList" => (array) 黑名单列表中的一项 * ] * * Outputs: @@ -624,6 +1023,69 @@ public function updateBucket(UpdateBucketRequest $request = null) return new UpdateBucketResponse($resp->toArray(), $resp->getRequestId()); } + /** + * UpdateBucketStaticPageRule - 修改bucket静态网页配置 + * + * See also: https://docs.ucloud.cn/api/ufile-api/update_bucket_static_page_rule + * + * Arguments: + * + * $args = [ + * "Region" => (string) 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * "ProjectId" => (string) 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * "Bucket" => (string) 存储桶名称 + * "Status" => (string) 启用状态(enable/disable,只有绑定了自定义域名才能开启) + * "DefaultIndex" => (string) 默认首页 + * "SubDirRedirect" => (string) 子目录是否启用重定向 + * "RuleFor404" => (string) 404规则 + * "DefaultPage404" => (string) 404时的默认页面 + * ] + * + * Outputs: + * + * $outputs = [ + * ] + * + * @return UpdateBucketStaticPageRuleResponse + * @throws UCloudException + */ + public function updateBucketStaticPageRule(UpdateBucketStaticPageRuleRequest $request = null) + { + $resp = $this->invoke($request); + return new UpdateBucketStaticPageRuleResponse($resp->toArray(), $resp->getRequestId()); + } + + /** + * UpdateCORSRule - 更新跨域规则 + * + * See also: https://docs.ucloud.cn/api/ufile-api/update_cors_rule + * + * Arguments: + * + * $args = [ + * "ProjectId" => (string) 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * "CORSId" => (string) 跨域规则ID + * "BucketName" => (string) Bucket名称 + * "AllowedOrigin" => (string) 指定允许的跨域请求的来源,使用通配符(*)表示允许所有来源的跨域请求(多个Origin用‘,’分隔) + * "AllowedMethod" => (string) 指定允许的跨域请求方法。支持的方法名有:GET、PUT、POST、DELETE、HEAD、OPTIONS(多个Method用‘,’分隔) + * "AllowedHeader" => (string) 指定允许的跨域请求头(多个Header用‘,’分隔) + * "ExposeHeader" => (string) 指定允许用户从应用程序中访问的响应头(多个ExposeHeader用‘,’分隔) + * ] + * + * Outputs: + * + * $outputs = [ + * ] + * + * @return UpdateCORSRuleResponse + * @throws UCloudException + */ + public function updateCORSRule(UpdateCORSRuleRequest $request = null) + { + $resp = $this->invoke($request); + return new UpdateCORSRuleResponse($resp->toArray(), $resp->getRequestId()); + } + /** * UpdateUFileLifeCycle - 更新生命周期管理 * @@ -642,6 +1104,7 @@ public function updateBucket(UpdateBucketRequest $request = null) * "Days" => (integer) 指定一个过期天数N,文件会在其最近更新时间点的N天后过期,自动删除;范围: [7,36500] * "ArchivalDays" => (integer) 指定一个过期天数N,文件会在其最近更新时间点的N天后过期,自动转换为归档存储类型;范围: [7,36500],0代表不启用 * "IADays" => (integer) 指定一个过期天数N,文件会在其最近更新时间点的N天后过期,自动转换为低频存储类型;范围: [7,36500],0代表不启用 + * "Tags" => (string) Tag,参数格式"k1=v1&k2=v2",key的最大长度为128, value最大长度为256byte,单个object的tag的最大数量为10 * ] * * Outputs: @@ -658,6 +1121,35 @@ public function updateUFileLifeCycle(UpdateUFileLifeCycleRequest $request = null return new UpdateUFileLifeCycleResponse($resp->toArray(), $resp->getRequestId()); } + /** + * UpdateUFileSSLCert - 更新指定域名证书 + * + * See also: https://docs.ucloud.cn/api/ufile-api/update_ufile_ssl_cert + * + * Arguments: + * + * $args = [ + * "BucketName" => (string) 存储桶名称,全局唯一 + * "Domain" => (string) 域名 + * "CertificateName" => (string) SSL证书名称 + * "Certificate" => (string) 填写SSL证书文件内容(PEM编码)。 证书文件内容填写格式: 如果您的业务场景仅需确保服务端证书可信,则证书文件需要包含服务器证书(①)和中间证书(②)。如果您的中间证书和服务器证书是两个文件,您可以在证书链配置项填写中间证书内容即可。 + * "CertificateKey" => (string) 填写SSL证书私钥内容(PEM编码)。 + * ] + * + * Outputs: + * + * $outputs = [ + * ] + * + * @return UpdateUFileSSLCertResponse + * @throws UCloudException + */ + public function updateUFileSSLCert(UpdateUFileSSLCertRequest $request = null) + { + $resp = $this->invoke($request); + return new UpdateUFileSSLCertResponse($resp->toArray(), $resp->getRequestId()); + } + /** * UpdateUFileToken - 更新令牌的操作权限,可操作key的前缀,可操作bucket和令牌超时时间点 * @@ -689,4 +1181,43 @@ public function updateUFileToken(UpdateUFileTokenRequest $request = null) $resp = $this->invoke($request); return new UpdateUFileTokenResponse($resp->toArray(), $resp->getRequestId()); } + + /** + * UpdateUdsRule - 针对对象存储的文件,进行自动触发解压。 + * + * See also: https://docs.ucloud.cn/api/ufile-api/update_uds_rule + * + * Arguments: + * + * $args = [ + * "RuleId" => (string) 规则的唯一Id + * "RuleName" => (string) 规则名称 + * "SrcBucket" => (string) 源Bucket名字,全局唯一 + * "SrcTokenId" => (string) 源bucket的token之一的tokenId + * "DstBucket" => (string) 目标Bucket名字,全局唯一 + * "DstTokenId" => (string) 目标bucket的token之一的tokenId + * "DstDirectory" => (string) 解压后的目标目录 + * "KeepUS3Name" => (boolean) 是否以压缩文件的前缀为最后一层目录 + * "Prefixes" => (string) 触发解压缩的前缀 + * "Ops" => (array) 操作的ops数组,"Ops.0":"unzip" + * "Events" => (array) 通知的事件数组 + * "ContactGroupId" => (string) 联系的用户组ID + * "NotificationTypes" => (array) 通知的类型数组 + * ] + * + * Outputs: + * + * $outputs = [ + * "RuleId" => (string) 返回规则的规则ID + * "Mesage" => (string) 该请求的消息成功或者失败的描述 + * ] + * + * @return UpdateUdsRuleResponse + * @throws UCloudException + */ + public function updateUdsRule(UpdateUdsRuleRequest $request = null) + { + $resp = $this->invoke($request); + return new UpdateUdsRuleResponse($resp->toArray(), $resp->getRequestId()); + } }