Package cn.ucloud.ufile.client
Class UFileClient
- java.lang.Object
-
- cn.ucloud.common.client.DefaultClient
-
- cn.ucloud.ufile.client.UFileClient
-
- All Implemented Interfaces:
Client,UFileClientInterface
public class UFileClient extends DefaultClient implements UFileClientInterface
This client is used to call actions of **UFile** service
-
-
Constructor Summary
Constructors Constructor Description UFileClient(Config config, Credential credential)
-
Method Summary
-
Methods inherited from class cn.ucloud.common.client.DefaultClient
getConfig, getCredential, getTransport, invoke, setConfig, setCredential, setTransport, useMiddleware
-
-
-
-
Constructor Detail
-
UFileClient
public UFileClient(Config config, Credential credential)
-
-
Method Detail
-
createBucket
public CreateBucketResponse createBucket(CreateBucketRequest request) throws UCloudException
CreateBucket - 创建Bucket- Specified by:
createBucketin interfaceUFileClientInterface- Parameters:
request- Request object- Throws:
UCloudException- Exception
-
createUFileLifeCycle
public CreateUFileLifeCycleResponse createUFileLifeCycle(CreateUFileLifeCycleRequest request) throws UCloudException
CreateUFileLifeCycle - 创建生命周期管理- Specified by:
createUFileLifeCyclein interfaceUFileClientInterface- Parameters:
request- Request object- Throws:
UCloudException- Exception
-
createUFileToken
public CreateUFileTokenResponse createUFileToken(CreateUFileTokenRequest request) throws UCloudException
CreateUFileToken - 创建US3令牌- Specified by:
createUFileTokenin interfaceUFileClientInterface- Parameters:
request- Request object- Throws:
UCloudException- Exception
-
deleteBucket
public DeleteBucketResponse deleteBucket(DeleteBucketRequest request) throws UCloudException
DeleteBucket - 删除Bucket- Specified by:
deleteBucketin interfaceUFileClientInterface- Parameters:
request- Request object- Throws:
UCloudException- Exception
-
deleteUFileLifeCycle
public DeleteUFileLifeCycleResponse deleteUFileLifeCycle(DeleteUFileLifeCycleRequest request) throws UCloudException
DeleteUFileLifeCycle - 删除生命周期管理- Specified by:
deleteUFileLifeCyclein interfaceUFileClientInterface- Parameters:
request- Request object- Throws:
UCloudException- Exception
-
deleteUFileToken
public DeleteUFileTokenResponse deleteUFileToken(DeleteUFileTokenRequest request) throws UCloudException
DeleteUFileToken - 删除令牌- Specified by:
deleteUFileTokenin interfaceUFileClientInterface- Parameters:
request- Request object- Throws:
UCloudException- Exception
-
describeBucket
public DescribeBucketResponse describeBucket(DescribeBucketRequest request) throws UCloudException
DescribeBucket - 获取Bucket信息- Specified by:
describeBucketin interfaceUFileClientInterface- Parameters:
request- Request object- Throws:
UCloudException- Exception
-
describeUFileLifeCycle
public DescribeUFileLifeCycleResponse describeUFileLifeCycle(DescribeUFileLifeCycleRequest request) throws UCloudException
DescribeUFileLifeCycle - 获取生命周期信息- Specified by:
describeUFileLifeCyclein interfaceUFileClientInterface- Parameters:
request- Request object- Throws:
UCloudException- Exception
-
describeUFileToken
public DescribeUFileTokenResponse describeUFileToken(DescribeUFileTokenRequest request) throws UCloudException
DescribeUFileToken - 获取令牌信息- Specified by:
describeUFileTokenin interfaceUFileClientInterface- Parameters:
request- Request object- Throws:
UCloudException- Exception
-
getUFileDailyReport
public GetUFileDailyReportResponse getUFileDailyReport(GetUFileDailyReportRequest request) throws UCloudException
GetUFileDailyReport - 查看日消费报表- Specified by:
getUFileDailyReportin interfaceUFileClientInterface- Parameters:
request- Request object- Throws:
UCloudException- Exception
-
getUFileQuota
public GetUFileQuotaResponse getUFileQuota(GetUFileQuotaRequest request) throws UCloudException
GetUFileQuota - 查看配额状态- Specified by:
getUFileQuotain interfaceUFileClientInterface- Parameters:
request- Request object- Throws:
UCloudException- Exception
-
getUFileQuotaInfo
public GetUFileQuotaInfoResponse getUFileQuotaInfo(GetUFileQuotaInfoRequest request) throws UCloudException
GetUFileQuotaInfo - 获取配额信息- Specified by:
getUFileQuotaInfoin interfaceUFileClientInterface- Parameters:
request- Request object- Throws:
UCloudException- Exception
-
getUFileQuotaPrice
public GetUFileQuotaPriceResponse getUFileQuotaPrice(GetUFileQuotaPriceRequest request) throws UCloudException
GetUFileQuotaPrice - 查询配额支付价格- Specified by:
getUFileQuotaPricein interfaceUFileClientInterface- Parameters:
request- Request object- Throws:
UCloudException- Exception
-
getUFileReport
public GetUFileReportResponse getUFileReport(GetUFileReportRequest request) throws UCloudException
GetUFileReport - 查看配额使用报表- Specified by:
getUFileReportin interfaceUFileClientInterface- Parameters:
request- Request object- Throws:
UCloudException- Exception
-
setUFileReferer
public SetUFileRefererResponse setUFileReferer(SetUFileRefererRequest request) throws UCloudException
SetUFileReferer - 设置对象存储防盗链- Specified by:
setUFileRefererin interfaceUFileClientInterface- Parameters:
request- Request object- Throws:
UCloudException- Exception
-
updateBucket
public UpdateBucketResponse updateBucket(UpdateBucketRequest request) throws UCloudException
UpdateBucket - 更改Bucket属性- Specified by:
updateBucketin interfaceUFileClientInterface- Parameters:
request- Request object- Throws:
UCloudException- Exception
-
updateUFileLifeCycle
public UpdateUFileLifeCycleResponse updateUFileLifeCycle(UpdateUFileLifeCycleRequest request) throws UCloudException
UpdateUFileLifeCycle - 更新生命周期管理- Specified by:
updateUFileLifeCyclein interfaceUFileClientInterface- Parameters:
request- Request object- Throws:
UCloudException- Exception
-
updateUFileToken
public UpdateUFileTokenResponse updateUFileToken(UpdateUFileTokenRequest request) throws UCloudException
UpdateUFileToken - 更新令牌- Specified by:
updateUFileTokenin interfaceUFileClientInterface- Parameters:
request- Request object- Throws:
UCloudException- Exception
-
-