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

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.3.9
0.3.10
152 changes: 152 additions & 0 deletions src/UFile/Apis/AddCORSRuleRequest.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,152 @@
<?php
/**
* Copyright 2025 UCloud Technology Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
namespace UCloud\UFile\Apis;

use UCloud\Core\Request\Request;

class AddCORSRuleRequest extends Request
{
public function __construct()
{
parent::__construct(["Action" => "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);
}
}
44 changes: 44 additions & 0 deletions src/UFile/Apis/AddCORSRuleResponse.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
<?php
/**
* Copyright 2025 UCloud Technology Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
namespace UCloud\UFile\Apis;

use UCloud\Core\Response\Response;

class AddCORSRuleResponse extends Response
{


/**
* CORSId: 增加一条跨域规则的cors_id
*
* @return string|null
*/
public function getCORSId()
{
return $this->get("CORSId");
}

/**
* CORSId: 增加一条跨域规则的cors_id
*
* @param string $corsId
*/
public function setCORSId($corsId)
{
$this->set("CORSId", $corsId);
}
}
152 changes: 152 additions & 0 deletions src/UFile/Apis/AddUFileSSLCertRequest.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,152 @@
<?php
/**
* Copyright 2025 UCloud Technology Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
namespace UCloud\UFile\Apis;

use UCloud\Core\Request\Request;

class AddUFileSSLCertRequest extends Request
{
public function __construct()
{
parent::__construct(["Action" => "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);
}
}
26 changes: 26 additions & 0 deletions src/UFile/Apis/AddUFileSSLCertResponse.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<?php
/**
* Copyright 2025 UCloud Technology Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
namespace UCloud\UFile\Apis;

use UCloud\Core\Response\Response;

class AddUFileSSLCertResponse extends Response
{



}
Loading