Documentation
¶
Overview ¶
Package ufile include resources of ucloud ufile product
See also
- API: https://docs.ucloud.cn/api/ufile-api/index
- Product: https://www.ucloud.cn/site/product/ufile.html
for detail.
Index ¶
- type AddCORSRuleRequest
- type AddCORSRuleResponse
- type AddUFileSSLCertRequest
- type AddUFileSSLCertResponse
- type AvailablePkg
- type AvailablePkgDurations
- type AvailablePkgSpecs
- type BindBucketDomainRequest
- type BindBucketDomainResponse
- type BucketBills
- type BucketLabels
- type BucketMonthlyBills
- type BucketStaticPageRule
- type BuyUFilePkgRequest
- type BuyUFilePkgResponse
- type CORSRuleSet
- type CreateBucketRequest
- type CreateBucketResponse
- type CreateUFileLifeCycleRequest
- type CreateUFileLifeCycleResponse
- type CreateUFileTokenRequest
- type CreateUFileTokenResponse
- type CreateUdsRuleRequest
- type CreateUdsRuleResponse
- type DeleteBucketRequest
- type DeleteBucketResponse
- type DeleteCORSRuleRequest
- type DeleteCORSRuleResponse
- type DeleteUFileLifeCycleRequest
- type DeleteUFileLifeCycleResponse
- type DeleteUFilePkgRequest
- type DeleteUFilePkgResponse
- type DeleteUFileSSLCertRequest
- type DeleteUFileSSLCertResponse
- type DeleteUFileTokenRequest
- type DeleteUFileTokenResponse
- type DescribeBucketRequest
- type DescribeBucketResponse
- type DescribeCORSRuleRequest
- type DescribeCORSRuleResponse
- type DescribeUFileAvailablePkgRequest
- type DescribeUFileAvailablePkgResponse
- type DescribeUFileLifeCycleRequest
- type DescribeUFileLifeCycleResponse
- type DescribeUFilePkgRequest
- type DescribeUFilePkgResponse
- type DescribeUFilePkgUsageRequest
- type DescribeUFilePkgUsageResponse
- type DescribeUFileRefererRequest
- type DescribeUFileRefererResponse
- type DescribeUFileSSLCertRequest
- type DescribeUFileSSLCertResponse
- type DescribeUFileTokenRequest
- type DescribeUFileTokenResponse
- type DescribeUdsRuleRequest
- type DescribeUdsRuleResponse
- type GetBucketQuotaRequest
- type GetBucketQuotaResponse
- type GetBucketStaticPageRuleRequest
- type GetBucketStaticPageRuleResponse
- type GetProjectRegionQuotaRequest
- type GetProjectRegionQuotaResponse
- type GetUFileDailyBillRequest
- type GetUFileDailyBillResponse
- type GetUFileDailyReportRequest
- type GetUFileDailyReportResponse
- type GetUFileMonthlyBillRequest
- type GetUFileMonthlyBillResponse
- type GetUFilePkgPriceRequest
- type GetUFilePkgPriceResponse
- type GetUFileQuotaInfoRequest
- type GetUFileQuotaInfoResponse
- type GetUFileQuotaPriceRequest
- type GetUFileQuotaPriceResponse
- type GetUFileQuotaRequest
- type GetUFileQuotaResponse
- type GetUFileReportRequest
- type GetUFileReportResponse
- type LifeCycleItem
- type PkgUsage
- type RenewUFilePkgRequest
- type RenewUFilePkgResponse
- type SetBucketQuotaRequest
- type SetBucketQuotaResponse
- type SetProjectRegionQuotaRequest
- type SetProjectRegionQuotaResponse
- type SetUFileRefererRequest
- type SetUFileRefererResponse
- type UFileBucketSet
- type UFileClient
- func (c *UFileClient) AddCORSRule(req *AddCORSRuleRequest) (*AddCORSRuleResponse, error)
- func (c *UFileClient) AddUFileSSLCert(req *AddUFileSSLCertRequest) (*AddUFileSSLCertResponse, error)
- func (c *UFileClient) BindBucketDomain(req *BindBucketDomainRequest) (*BindBucketDomainResponse, error)
- func (c *UFileClient) BuyUFilePkg(req *BuyUFilePkgRequest) (*BuyUFilePkgResponse, error)
- func (c *UFileClient) CreateBucket(req *CreateBucketRequest) (*CreateBucketResponse, error)
- func (c *UFileClient) CreateUFileLifeCycle(req *CreateUFileLifeCycleRequest) (*CreateUFileLifeCycleResponse, error)
- func (c *UFileClient) CreateUFileToken(req *CreateUFileTokenRequest) (*CreateUFileTokenResponse, error)
- func (c *UFileClient) CreateUdsRule(req *CreateUdsRuleRequest) (*CreateUdsRuleResponse, error)
- func (c *UFileClient) DeleteBucket(req *DeleteBucketRequest) (*DeleteBucketResponse, error)
- func (c *UFileClient) DeleteCORSRule(req *DeleteCORSRuleRequest) (*DeleteCORSRuleResponse, error)
- func (c *UFileClient) DeleteUFileLifeCycle(req *DeleteUFileLifeCycleRequest) (*DeleteUFileLifeCycleResponse, error)
- func (c *UFileClient) DeleteUFilePkg(req *DeleteUFilePkgRequest) (*DeleteUFilePkgResponse, error)
- func (c *UFileClient) DeleteUFileSSLCert(req *DeleteUFileSSLCertRequest) (*DeleteUFileSSLCertResponse, error)
- func (c *UFileClient) DeleteUFileToken(req *DeleteUFileTokenRequest) (*DeleteUFileTokenResponse, error)
- func (c *UFileClient) DescribeBucket(req *DescribeBucketRequest) (*DescribeBucketResponse, error)
- func (c *UFileClient) DescribeCORSRule(req *DescribeCORSRuleRequest) (*DescribeCORSRuleResponse, error)
- func (c *UFileClient) DescribeUFileAvailablePkg(req *DescribeUFileAvailablePkgRequest) (*DescribeUFileAvailablePkgResponse, error)
- func (c *UFileClient) DescribeUFileLifeCycle(req *DescribeUFileLifeCycleRequest) (*DescribeUFileLifeCycleResponse, error)
- func (c *UFileClient) DescribeUFilePkg(req *DescribeUFilePkgRequest) (*DescribeUFilePkgResponse, error)
- func (c *UFileClient) DescribeUFilePkgUsage(req *DescribeUFilePkgUsageRequest) (*DescribeUFilePkgUsageResponse, error)
- func (c *UFileClient) DescribeUFileReferer(req *DescribeUFileRefererRequest) (*DescribeUFileRefererResponse, error)
- func (c *UFileClient) DescribeUFileSSLCert(req *DescribeUFileSSLCertRequest) (*DescribeUFileSSLCertResponse, error)
- func (c *UFileClient) DescribeUFileToken(req *DescribeUFileTokenRequest) (*DescribeUFileTokenResponse, error)
- func (c *UFileClient) DescribeUdsRule(req *DescribeUdsRuleRequest) (*DescribeUdsRuleResponse, error)
- func (c *UFileClient) GetBucketQuota(req *GetBucketQuotaRequest) (*GetBucketQuotaResponse, error)
- func (c *UFileClient) GetBucketStaticPageRule(req *GetBucketStaticPageRuleRequest) (*GetBucketStaticPageRuleResponse, error)
- func (c *UFileClient) GetProjectRegionQuota(req *GetProjectRegionQuotaRequest) (*GetProjectRegionQuotaResponse, error)
- func (c *UFileClient) GetUFileDailyBill(req *GetUFileDailyBillRequest) (*GetUFileDailyBillResponse, error)
- func (c *UFileClient) GetUFileDailyReport(req *GetUFileDailyReportRequest) (*GetUFileDailyReportResponse, error)
- func (c *UFileClient) GetUFileMonthlyBill(req *GetUFileMonthlyBillRequest) (*GetUFileMonthlyBillResponse, error)
- func (c *UFileClient) GetUFilePkgPrice(req *GetUFilePkgPriceRequest) (*GetUFilePkgPriceResponse, error)
- func (c *UFileClient) GetUFileQuota(req *GetUFileQuotaRequest) (*GetUFileQuotaResponse, error)
- func (c *UFileClient) GetUFileQuotaInfo(req *GetUFileQuotaInfoRequest) (*GetUFileQuotaInfoResponse, error)
- func (c *UFileClient) GetUFileQuotaPrice(req *GetUFileQuotaPriceRequest) (*GetUFileQuotaPriceResponse, error)
- func (c *UFileClient) GetUFileReport(req *GetUFileReportRequest) (*GetUFileReportResponse, error)
- func (c *UFileClient) NewAddCORSRuleRequest() *AddCORSRuleRequest
- func (c *UFileClient) NewAddUFileSSLCertRequest() *AddUFileSSLCertRequest
- func (c *UFileClient) NewBindBucketDomainRequest() *BindBucketDomainRequest
- func (c *UFileClient) NewBuyUFilePkgRequest() *BuyUFilePkgRequest
- func (c *UFileClient) NewCreateBucketRequest() *CreateBucketRequest
- func (c *UFileClient) NewCreateUFileLifeCycleRequest() *CreateUFileLifeCycleRequest
- func (c *UFileClient) NewCreateUFileTokenRequest() *CreateUFileTokenRequest
- func (c *UFileClient) NewCreateUdsRuleRequest() *CreateUdsRuleRequest
- func (c *UFileClient) NewDeleteBucketRequest() *DeleteBucketRequest
- func (c *UFileClient) NewDeleteCORSRuleRequest() *DeleteCORSRuleRequest
- func (c *UFileClient) NewDeleteUFileLifeCycleRequest() *DeleteUFileLifeCycleRequest
- func (c *UFileClient) NewDeleteUFilePkgRequest() *DeleteUFilePkgRequest
- func (c *UFileClient) NewDeleteUFileSSLCertRequest() *DeleteUFileSSLCertRequest
- func (c *UFileClient) NewDeleteUFileTokenRequest() *DeleteUFileTokenRequest
- func (c *UFileClient) NewDescribeBucketRequest() *DescribeBucketRequest
- func (c *UFileClient) NewDescribeCORSRuleRequest() *DescribeCORSRuleRequest
- func (c *UFileClient) NewDescribeUFileAvailablePkgRequest() *DescribeUFileAvailablePkgRequest
- func (c *UFileClient) NewDescribeUFileLifeCycleRequest() *DescribeUFileLifeCycleRequest
- func (c *UFileClient) NewDescribeUFilePkgRequest() *DescribeUFilePkgRequest
- func (c *UFileClient) NewDescribeUFilePkgUsageRequest() *DescribeUFilePkgUsageRequest
- func (c *UFileClient) NewDescribeUFileRefererRequest() *DescribeUFileRefererRequest
- func (c *UFileClient) NewDescribeUFileSSLCertRequest() *DescribeUFileSSLCertRequest
- func (c *UFileClient) NewDescribeUFileTokenRequest() *DescribeUFileTokenRequest
- func (c *UFileClient) NewDescribeUdsRuleRequest() *DescribeUdsRuleRequest
- func (c *UFileClient) NewGetBucketQuotaRequest() *GetBucketQuotaRequest
- func (c *UFileClient) NewGetBucketStaticPageRuleRequest() *GetBucketStaticPageRuleRequest
- func (c *UFileClient) NewGetProjectRegionQuotaRequest() *GetProjectRegionQuotaRequest
- func (c *UFileClient) NewGetUFileDailyBillRequest() *GetUFileDailyBillRequest
- func (c *UFileClient) NewGetUFileDailyReportRequest() *GetUFileDailyReportRequest
- func (c *UFileClient) NewGetUFileMonthlyBillRequest() *GetUFileMonthlyBillRequest
- func (c *UFileClient) NewGetUFilePkgPriceRequest() *GetUFilePkgPriceRequest
- func (c *UFileClient) NewGetUFileQuotaInfoRequest() *GetUFileQuotaInfoRequest
- func (c *UFileClient) NewGetUFileQuotaPriceRequest() *GetUFileQuotaPriceRequest
- func (c *UFileClient) NewGetUFileQuotaRequest() *GetUFileQuotaRequest
- func (c *UFileClient) NewGetUFileReportRequest() *GetUFileReportRequest
- func (c *UFileClient) NewRenewUFilePkgRequest() *RenewUFilePkgRequest
- func (c *UFileClient) NewSetBucketQuotaRequest() *SetBucketQuotaRequest
- func (c *UFileClient) NewSetProjectRegionQuotaRequest() *SetProjectRegionQuotaRequest
- func (c *UFileClient) NewSetUFileRefererRequest() *SetUFileRefererRequest
- func (c *UFileClient) NewUpdateBucketRequest() *UpdateBucketRequest
- func (c *UFileClient) NewUpdateBucketStaticPageRuleRequest() *UpdateBucketStaticPageRuleRequest
- func (c *UFileClient) NewUpdateCORSRuleRequest() *UpdateCORSRuleRequest
- func (c *UFileClient) NewUpdateUFileLifeCycleRequest() *UpdateUFileLifeCycleRequest
- func (c *UFileClient) NewUpdateUFileSSLCertRequest() *UpdateUFileSSLCertRequest
- func (c *UFileClient) NewUpdateUFileTokenRequest() *UpdateUFileTokenRequest
- func (c *UFileClient) NewUpdateUdsRuleRequest() *UpdateUdsRuleRequest
- func (c *UFileClient) RenewUFilePkg(req *RenewUFilePkgRequest) (*RenewUFilePkgResponse, error)
- func (c *UFileClient) SetBucketQuota(req *SetBucketQuotaRequest) (*SetBucketQuotaResponse, error)
- func (c *UFileClient) SetProjectRegionQuota(req *SetProjectRegionQuotaRequest) (*SetProjectRegionQuotaResponse, error)
- func (c *UFileClient) SetUFileReferer(req *SetUFileRefererRequest) (*SetUFileRefererResponse, error)
- func (c *UFileClient) UpdateBucket(req *UpdateBucketRequest) (*UpdateBucketResponse, error)
- func (c *UFileClient) UpdateBucketStaticPageRule(req *UpdateBucketStaticPageRuleRequest) (*UpdateBucketStaticPageRuleResponse, error)
- func (c *UFileClient) UpdateCORSRule(req *UpdateCORSRuleRequest) (*UpdateCORSRuleResponse, error)
- func (c *UFileClient) UpdateUFileLifeCycle(req *UpdateUFileLifeCycleRequest) (*UpdateUFileLifeCycleResponse, error)
- func (c *UFileClient) UpdateUFileSSLCert(req *UpdateUFileSSLCertRequest) (*UpdateUFileSSLCertResponse, error)
- func (c *UFileClient) UpdateUFileToken(req *UpdateUFileTokenRequest) (*UpdateUFileTokenResponse, error)
- func (c *UFileClient) UpdateUdsRule(req *UpdateUdsRuleRequest) (*UpdateUdsRuleResponse, error)
- type UFileDailyBillItem
- type UFileDailyReportItem
- type UFileDomainSet
- type UFileMonthlyBillItem
- type UFilePkg
- type UFileQuotaDataSetItem
- type UFileQuotaLeft
- type UFileReportItem
- type UFileReportSet
- type UFileSSLCert
- type UFileTokenSet
- type UFileTotalReportItem
- type UpdateBucketRequest
- type UpdateBucketResponse
- type UpdateBucketStaticPageRuleRequest
- type UpdateBucketStaticPageRuleResponse
- type UpdateCORSRuleRequest
- type UpdateCORSRuleResponse
- type UpdateUFileLifeCycleRequest
- type UpdateUFileLifeCycleResponse
- type UpdateUFileSSLCertRequest
- type UpdateUFileSSLCertResponse
- type UpdateUFileTokenRequest
- type UpdateUFileTokenResponse
- type UpdateUdsRuleRequest
- type UpdateUdsRuleResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddCORSRuleRequest ¶ added in v0.22.105
type AddCORSRuleRequest struct {
request.CommonBase
// 指定允许的跨域请求头(多个Header用‘,’分隔)
AllowedHeader *string `required:"false"`
// 指定允许的跨域请求方法。支持的方法名有:GET、PUT、POST、DELETE、HEAD、OPTIONS(多个Method用‘,’分隔)
AllowedMethod *string `required:"true"`
// 指定允许的跨域请求的来源,使用通配符(*)表示允许所有来源的跨域请求(多个Origin用‘,’分隔)
AllowedOrigin *string `required:"true"`
// Bucket名称
BucketName *string `required:"true"`
// 指定允许用户从应用程序中访问的响应头(多个ExposeHeader用‘,’分隔)
ExposeHeader *string `required:"false"`
}
AddCORSRuleRequest is request schema for AddCORSRule action
type AddCORSRuleResponse ¶ added in v0.22.105
type AddCORSRuleResponse struct {
response.CommonBase
// 增加一条跨域规则的cors_id
CORSId string
}
AddCORSRuleResponse is response schema for AddCORSRule action
type AddUFileSSLCertRequest ¶ added in v0.22.105
type AddUFileSSLCertRequest struct {
request.CommonBase
// 存储桶名称,全局唯一
BucketName *string `required:"true"`
// 填写SSL证书文件内容(PEM编码)。证书文件内容填写格式:如果您的业务场景仅需确保服务端证书可信,则证书文件需要包含服务器证书(①)和中间证书(②)。如果您的中间证书和服务器证书是两个文件,您可以在证书链配置项填写中间证书内容即可。
Certificate *string `required:"false"`
// 填写SSL证书私钥内容(PEM编码)。私钥内容填写格式 RSA
CertificateKey *string `required:"false"`
// SSL证书名称
CertificateName *string `required:"true"`
// 域名
Domain *string `required:"true"`
// ussl证书的资源ID
USSLId *string `required:"false"`
}
AddUFileSSLCertRequest is request schema for AddUFileSSLCert action
type AddUFileSSLCertResponse ¶ added in v0.22.105
type AddUFileSSLCertResponse struct {
response.CommonBase
// 错误消息返回
Message string
}
AddUFileSSLCertResponse is response schema for AddUFileSSLCert action
type AvailablePkg ¶ added in v0.22.105
type AvailablePkg struct {
// 公共支持购买的时长,当一个Spec配了独立的Durations时,就按独立配置Durations生效;否者按CommonDurations生效
CommonDurations []AvailablePkgDurations
// 资源类型名称
Name string
// 支持购买的数量规格
Specs []AvailablePkgSpecs
// 资源类型ID
Type int
}
AvailablePkg - 可购买的资源包
type AvailablePkgDurations ¶ added in v0.22.105
type AvailablePkgDurations struct {
// 折扣
Discount float64
// 购买时长
Duration int
// 时长单位,如: Month、Year
Unit string
}
AvailablePkgDurations - 可购买的资源包时长
type AvailablePkgSpecs ¶ added in v0.22.105
type AvailablePkgSpecs struct {
// 购买数量
Amount int
// 仅针对当前规格生效的durations
Durations []AvailablePkgDurations
// 数量的单位,如:GB,TB
Unit string
}
AvailablePkgSpecs - 可购买的资源包规格
type BindBucketDomainRequest ¶ added in v0.22.105
type BindBucketDomainRequest struct {
request.CommonBase
// 自定义域名对应的bucket名称
BucketName *string `required:"true"`
// 自定义域名
Domain *string `required:"true"`
}
BindBucketDomainRequest is request schema for BindBucketDomain action
type BindBucketDomainResponse ¶ added in v0.22.105
type BindBucketDomainResponse struct {
response.CommonBase
// 自定义域名对应的Bucket的Id
BucketId string
// 自定义域名对应的bucket名称
BucketName string
}
BindBucketDomainResponse is response schema for BindBucketDomain action
type BucketBills ¶ added in v0.22.105
type BucketBills struct {
// bucket账单
BucketBills []UFileDailyBillItem
}
BucketBills - bucket账单
type BucketLabels ¶ added in v0.22.105
BucketLabels -
type BucketMonthlyBills ¶ added in v0.22.105
type BucketMonthlyBills struct {
// bucket账单
BucketBills []UFileMonthlyBillItem
}
BucketMonthlyBills - bucket月度账单
type BucketStaticPageRule ¶ added in v0.22.105
type BucketStaticPageRule struct {
// 默认网页
DefaultIndex string
// 默认404页面在存储桶的路径
DefaultPage404 string
// 404时的处理规则
RuleFor404 string
// 启用状态
Status string
// 子目录重定向功能的启用状态
SubDirRedirect string
}
BucketStaticPageRule -
type BuyUFilePkgRequest ¶ added in v0.22.105
type BuyUFilePkgRequest struct {
request.CommonBase
// 购买数量
Amount *int `required:"true"`
// 数量单位,如 GB、TB 等
AmountUnit *string `required:"true"`
// 购买时长
Duration *int `required:"true"`
// 时长单位,如 Month、Year 等
DurationUnit *string `required:"true"`
// 资源包名称
PkgName *string `required:"true"`
// 0: 标准存储包,1: 忙时流量包,2: 闲时流量包
PkgType *int `required:"true"`
}
BuyUFilePkgRequest is request schema for BuyUFilePkg action
type BuyUFilePkgResponse ¶ added in v0.22.105
type BuyUFilePkgResponse struct {
response.CommonBase
// 购买成功返回资源包Id
ResourceId string
}
BuyUFilePkgResponse is response schema for BuyUFilePkg action
type CORSRuleSet ¶ added in v0.22.105
type CORSRuleSet struct {
// 指定允许的跨域请求头(多个Header用‘,’分隔)
AllowedHeader string
// 指定允许的跨域请求方法。支持的方法名有:GET、PUT、POST、DELETE、HEAD、OPTIONS(多个Method用‘,’分隔)
AllowedMethod string
// 指定允许的跨域请求的来源,使用通配符(*)表示允许所有来源的跨域请求(多个Origin用‘,’分隔)
AllowedOrigin string
// 跨域规则id
CORSId string
// 跨域规则创建时间
CreateTime int
// 指定允许用户从应用程序中访问的响应头(多个ExposeHeader用‘,’分隔)
ExposeHeader string
// 跨域规则最新修改时间
ModifyTime int
}
CORSRuleSet - 跨域规则集合
type CreateBucketRequest ¶
type CreateBucketRequest struct {
request.CommonBase
// 待创建Bucket的名称,具有全局唯一性
BucketName *string `required:"true"`
// Bucket所属业务组,默认为default
Tag *string `required:"false"`
// Bucket访问类型,public或private; 默认为private
Type *string `required:"false"`
}
CreateBucketRequest is request schema for CreateBucket action
type CreateBucketResponse ¶
type CreateBucketResponse struct {
response.CommonBase
// 已创建Bucket的ID
BucketId string
// 已创建Bucket的名称
BucketName string
}
CreateBucketResponse is response schema for CreateBucket action
type CreateUFileLifeCycleRequest ¶ added in v0.21.38
type CreateUFileLifeCycleRequest struct {
request.CommonBase
// 指定一个过期天数N,文件会在其最近更新时间点的N天后,自动变为归档存储类型;参数范围:[7,36500],0代表不启用
ArchivalDays *int `required:"false"`
// 存储空间名称
BucketName *string `required:"true"`
// 指定一个过期天数N,文件会在其最近更新时间点的N天后过期,自动删除;参数范围:[7,36500],0代表不启用
Days *int `required:"false"`
// 指定一个历史文件过期天数N,文件会在其最近更新时间点的N天后过期,自动删除;范围: [7,36500]
HistVerArchivalDays *int `required:"false"`
// 指定一个历史文件过期天数N,文件会在其最近更新时间点的N天后过期,自动删除;范围: [7,36500]
HistVerDeleteDays *int `required:"false"`
// 指定一个历史文件过期天数N,文件会在其最近更新时间点的N天后过期,自动删除;范围: [7,36500]
HistVerIADays *int `required:"false"`
// 指定一个过期天数N,文件会在其最近更新时间点的N天后,自动变为低频存储类型;参数范围:[7,36500],0代表不启用
IADays *int `required:"false"`
// 生命周期名称
LifeCycleName *string `required:"true"`
// 文件的最大size
MaxSize *int `required:"false"`
// 文件的最小size
MinSize *int `required:"false"`
// 生命周期所适用的前缀;*为整个存储空间文件;一条规则只支持一个文件前缀;
Prefix *string `required:"true"`
// Enabled -- 启用,Disabled -- 不启用
Status *string `required:"true"`
// Tag,参数格式"k1=v1&k2=v2",key的最大长度为128, value最大长度为256byte,tag的最大数量为10
Tags *string `required:"false"`
}
CreateUFileLifeCycleRequest is request schema for CreateUFileLifeCycle action
type CreateUFileLifeCycleResponse ¶ added in v0.21.38
type CreateUFileLifeCycleResponse struct {
response.CommonBase
// 生命周期Id
LifeCycleId string
}
CreateUFileLifeCycleResponse is response schema for CreateUFileLifeCycle action
type CreateUFileTokenRequest ¶
type CreateUFileTokenRequest struct {
request.CommonBase
// 令牌允许操作的bucket,默认*表示全部
AllowedBuckets []string `required:"false"`
// 令牌允许执行的操作[ TOKEN_ALLOW_NONE 没有权限, TOKEN_ALLOW_READ 下载权限 , TOKEN_ALLOW_WRITE 上传权限 , TOKEN_ALLOW_DELETE 删除权限 , TOKEN_ALLOW_LIST 列表权限, TOKEN_ALLOW_IOP 图片处理权限, TOKEN_DENY_UPDATE 禁止覆盖权限]。默认TOKEN_ALLOW_NONE
AllowedOps []string `required:"false"`
// 令牌允许操作的key前缀,默认*表示全部
AllowedPrefixes []string `required:"false"`
// 令牌黑名单,支持ipv4,ipv6格式。
BlackIPList []string `required:"false"`
// Unix 时间戳,精确到秒,为令牌过期时间点。默认过期时间为一天(即当前Unix时间戳+86400);注意:过期时间不能超过 4102416000
ExpireTime *int `required:"false"`
// 令牌名称
TokenName *string `required:"true"`
// 令牌白名单,支持ipv4,ipv6格式。
WhiteIPList []string `required:"false"`
}
CreateUFileTokenRequest is request schema for CreateUFileToken action
type CreateUFileTokenResponse ¶
type CreateUFileTokenResponse struct {
response.CommonBase
// 令牌唯一ID
TokenId string
// 创建令牌的详细信息
UFileTokenSet UFileTokenSet
}
CreateUFileTokenResponse is response schema for CreateUFileToken action
type CreateUdsRuleRequest ¶ added in v0.22.105
type CreateUdsRuleRequest struct {
request.CommonBase
// 联系的用户组ID
ContactGroupId *string `required:"false"`
// 目标Bucket名字,全局唯一
DstBucket *string `required:"true"`
// 解压后的目标目录
DstDirectory *string `required:"true"`
// 目标bucket的token之一的tokenId
DstTokenId *string `required:"true"`
// 通知的事件数组
Events []string `required:"false"`
// 是否以压缩文件的前缀为最后一层目录
KeepUS3Name *bool `required:"true"`
// 通知的类型数组
NotificationTypes []string `required:"false"`
// 操作的ops数组,"Ops.0":"unzip"
Ops []string `required:"true"`
// 解压缩触发的前缀
Prefixes *string `required:"true"`
// 规则名称
RuleName *string `required:"true"`
// 源Bucket名字,全局唯一
SrcBucket *string `required:"true"`
// 源bucket的token之一的tokenId
SrcTokenId *string `required:"true"`
}
CreateUdsRuleRequest is request schema for CreateUdsRule action
type CreateUdsRuleResponse ¶ added in v0.22.105
type CreateUdsRuleResponse struct {
response.CommonBase
// 该请求成功或者失败的消息描述
Message string
// 创建规则的规则ID
RuleId string
}
CreateUdsRuleResponse is response schema for CreateUdsRule action
type DeleteBucketRequest ¶
type DeleteBucketRequest struct {
request.CommonBase
// 待删除Bucket的名称
BucketName *string `required:"true"`
}
DeleteBucketRequest is request schema for DeleteBucket action
type DeleteBucketResponse ¶
type DeleteBucketResponse struct {
response.CommonBase
// Bucket的ID
BucketId string
// Bucket的名称
BucketName string
}
DeleteBucketResponse is response schema for DeleteBucket action
type DeleteCORSRuleRequest ¶ added in v0.22.105
type DeleteCORSRuleRequest struct {
request.CommonBase
// Bucket名称
BucketName *string `required:"true"`
// 跨域规则ID
CORSId *string `required:"true"`
}
DeleteCORSRuleRequest is request schema for DeleteCORSRule action
type DeleteCORSRuleResponse ¶ added in v0.22.105
type DeleteCORSRuleResponse struct {
response.CommonBase
}
DeleteCORSRuleResponse is response schema for DeleteCORSRule action
type DeleteUFileLifeCycleRequest ¶ added in v0.21.38
type DeleteUFileLifeCycleRequest struct {
request.CommonBase
// 存储空间名称
BucketName *string `required:"true"`
// 生命周期Id
LifeCycleId *string `required:"true"`
}
DeleteUFileLifeCycleRequest is request schema for DeleteUFileLifeCycle action
type DeleteUFileLifeCycleResponse ¶ added in v0.21.38
type DeleteUFileLifeCycleResponse struct {
response.CommonBase
}
DeleteUFileLifeCycleResponse is response schema for DeleteUFileLifeCycle action
type DeleteUFilePkgRequest ¶ added in v0.22.105
type DeleteUFilePkgRequest struct {
request.CommonBase
// 资源ID
ResourceId *string `required:"true"`
}
DeleteUFilePkgRequest is request schema for DeleteUFilePkg action
type DeleteUFilePkgResponse ¶ added in v0.22.105
type DeleteUFilePkgResponse struct {
response.CommonBase
}
DeleteUFilePkgResponse is response schema for DeleteUFilePkg action
type DeleteUFileSSLCertRequest ¶ added in v0.22.105
type DeleteUFileSSLCertRequest struct {
request.CommonBase
// 存储桶名称,全局唯一
BucketName *string `required:"true"`
// 域名
Domain *string `required:"true"`
}
DeleteUFileSSLCertRequest is request schema for DeleteUFileSSLCert action
type DeleteUFileSSLCertResponse ¶ added in v0.22.105
type DeleteUFileSSLCertResponse struct {
response.CommonBase
// 错误消息返回
Message string
}
DeleteUFileSSLCertResponse is response schema for DeleteUFileSSLCert action
type DeleteUFileTokenRequest ¶
type DeleteUFileTokenRequest struct {
request.CommonBase
// 令牌ID
TokenId *string `required:"true"`
}
DeleteUFileTokenRequest is request schema for DeleteUFileToken action
type DeleteUFileTokenResponse ¶
type DeleteUFileTokenResponse struct {
response.CommonBase
}
DeleteUFileTokenResponse is response schema for DeleteUFileToken action
type DescribeBucketRequest ¶
type DescribeBucketRequest struct {
request.CommonBase
// 待获取Bucket的名称,若不提供,则获取所有Bucket
BucketName *string `required:"false"`
// 获取所有Bucket列表的限制数目,默认为20
Limit *int `required:"false"`
// 获取所有Bucket列表的偏移数目,默认为0
Offset *int `required:"false"`
}
DescribeBucketRequest is request schema for DescribeBucket action
type DescribeBucketResponse ¶
type DescribeBucketResponse struct {
response.CommonBase
// Bucket的描述信息 参数见 UFileBucketSet
DataSet []UFileBucketSet
}
DescribeBucketResponse is response schema for DescribeBucket action
type DescribeCORSRuleRequest ¶ added in v0.22.105
type DescribeCORSRuleRequest struct {
request.CommonBase
// Bucket名称
BucketName *string `required:"true"`
// 跨域规则ID,不指定则返回所有跨域规则信息
CORSId *string `required:"false"`
}
DescribeCORSRuleRequest is request schema for DescribeCORSRule action
type DescribeCORSRuleResponse ¶ added in v0.22.105
type DescribeCORSRuleResponse struct {
response.CommonBase
// 跨域规则信息集合
DataSet []CORSRuleSet
}
DescribeCORSRuleResponse is response schema for DescribeCORSRule action
type DescribeUFileAvailablePkgRequest ¶ added in v0.22.105
type DescribeUFileAvailablePkgRequest struct {
request.CommonBase
}
DescribeUFileAvailablePkgRequest is request schema for DescribeUFileAvailablePkg action
type DescribeUFileAvailablePkgResponse ¶ added in v0.22.105
type DescribeUFileAvailablePkgResponse struct {
response.CommonBase
// 可购买的资源包规格
PkgList []AvailablePkg
}
DescribeUFileAvailablePkgResponse is response schema for DescribeUFileAvailablePkg action
type DescribeUFileLifeCycleRequest ¶ added in v0.21.38
type DescribeUFileLifeCycleRequest struct {
request.CommonBase
// 存储空间名称
BucketName *string `required:"true"`
// 生命周期Id;不传递此参数拉取存储空间下面的所有生命周期信息
LifeCycleId *string `required:"false"`
}
DescribeUFileLifeCycleRequest is request schema for DescribeUFileLifeCycle action
type DescribeUFileLifeCycleResponse ¶ added in v0.21.38
type DescribeUFileLifeCycleResponse struct {
response.CommonBase
// 生命周期信息
DataSet []LifeCycleItem
// 【该字段已废弃,请谨慎使用】
DateSet []LifeCycleItem `deprecated:"true"`
}
DescribeUFileLifeCycleResponse is response schema for DescribeUFileLifeCycle action
type DescribeUFilePkgRequest ¶ added in v0.22.105
type DescribeUFilePkgRequest struct {
request.CommonBase
// 默认0表示查询全部已购买的资源包,1表示查询过期的,-1表示查询非过期的
Expired *int `required:"false"`
// 查询指定的资源包,当指定ResourceId查询时,Region是必填的
ResourceId *string `required:"false"`
}
DescribeUFilePkgRequest is request schema for DescribeUFilePkg action
type DescribeUFilePkgResponse ¶ added in v0.22.105
type DescribeUFilePkgResponse struct {
response.CommonBase
// 已购买的资源包
Pkgs []UFilePkg
}
DescribeUFilePkgResponse is response schema for DescribeUFilePkg action
type DescribeUFilePkgUsageRequest ¶ added in v0.22.105
type DescribeUFilePkgUsageRequest struct {
request.CommonBase
// 结束时间,如 2023-09-01
EndDate *string `required:"true"`
// 资源包ID
ResourceId *string `required:"true"`
// 开始时间,如 2023-09-01
StartDate *string `required:"true"`
}
DescribeUFilePkgUsageRequest is request schema for DescribeUFilePkgUsage action
type DescribeUFilePkgUsageResponse ¶ added in v0.22.105
type DescribeUFilePkgUsageResponse struct {
response.CommonBase
// 按天返回的使用明细
Usage []PkgUsage
}
DescribeUFilePkgUsageResponse is response schema for DescribeUFilePkgUsage action
type DescribeUFileRefererRequest ¶ added in v0.22.105
type DescribeUFileRefererRequest struct {
request.CommonBase
// 存储空间名称
BucketName *string `required:"true"`
}
DescribeUFileRefererRequest is request schema for DescribeUFileReferer action
type DescribeUFileRefererResponse ¶ added in v0.22.105
type DescribeUFileRefererResponse struct {
response.CommonBase
// 黑名单列表
BlackList []string
// ReferType为白名单时,NullRefer为false代表不允许NULL refer访问,为true代表允许Null refer访问; 未开启referer时不返回此参数
NullRefer bool
// 防盗链Referer规则列表;未开启referer时不返回此参数
RefererList []string
// 防盗链功能是否开启,"on"表示开启,"off"表示关闭
RefererStatus string
// 防盗链Referer类型,支持两种类型,1黑名单,2白名单;未开启referer时不返回此参数
RefererType int
// 白名单列表
WhiteList []string
}
DescribeUFileRefererResponse is response schema for DescribeUFileReferer action
type DescribeUFileSSLCertRequest ¶ added in v0.22.105
type DescribeUFileSSLCertRequest struct {
request.CommonBase
// 存储桶名称,全局唯一
BucketName *string `required:"true"`
}
DescribeUFileSSLCertRequest is request schema for DescribeUFileSSLCert action
type DescribeUFileSSLCertResponse ¶ added in v0.22.105
type DescribeUFileSSLCertResponse struct {
response.CommonBase
// 证书列表
DataSet []UFileSSLCert
// 错误消息返回
Message string
}
DescribeUFileSSLCertResponse is response schema for DescribeUFileSSLCert action
type DescribeUFileTokenRequest ¶
type DescribeUFileTokenRequest struct {
request.CommonBase
// 0表示显示部分token信息;不传递和其他情况表示显示全部token信息
Display *int `required:"false"`
// 令牌ID,只返回指定ID信息,否则拉取所有令牌
TokenId *string `required:"false"`
// 令牌名称,只返回指定令牌名称信息,否则拉取所有令牌
TokenName *string `required:"false"`
}
DescribeUFileTokenRequest is request schema for DescribeUFileToken action
type DescribeUFileTokenResponse ¶
type DescribeUFileTokenResponse struct {
response.CommonBase
// 令牌描述信息
DataSet []UFileTokenSet
}
DescribeUFileTokenResponse is response schema for DescribeUFileToken action
type DescribeUdsRuleRequest ¶ added in v0.22.105
type DescribeUdsRuleRequest struct {
request.CommonBase
// 源BucketName
BucketName *string `required:"true"`
// 规则ID,不设置时,查询改bucket的所有规则
RuleId *string `required:"false"`
}
DescribeUdsRuleRequest is request schema for DescribeUdsRule action
type DescribeUdsRuleResponse ¶ added in v0.22.105
type DescribeUdsRuleResponse struct {
response.CommonBase
// 规则数组
DataSet []string
// 此次请求成功或者失败的信息
Message string
// 此次删除的规则的ID
TotalCount int
}
DescribeUdsRuleResponse is response schema for DescribeUdsRule action
type GetBucketQuotaRequest ¶ added in v0.22.105
type GetBucketQuotaRequest struct {
request.CommonBase
// bucket名称
BucketName *string `required:"true"`
}
GetBucketQuotaRequest is request schema for GetBucketQuota action
type GetBucketQuotaResponse ¶ added in v0.22.105
type GetBucketQuotaResponse struct {
response.CommonBase
// bucket名称
BucketName string
// bucket配额
QuotaLimit int
}
GetBucketQuotaResponse is response schema for GetBucketQuota action
type GetBucketStaticPageRuleRequest ¶ added in v0.22.105
type GetBucketStaticPageRuleRequest struct {
request.CommonBase
// 存储桶名称
Bucket *string `required:"true"`
}
GetBucketStaticPageRuleRequest is request schema for GetBucketStaticPageRule action
type GetBucketStaticPageRuleResponse ¶ added in v0.22.105
type GetBucketStaticPageRuleResponse struct {
response.CommonBase
// 规则内容
Rule BucketStaticPageRule
}
GetBucketStaticPageRuleResponse is response schema for GetBucketStaticPageRule action
type GetProjectRegionQuotaRequest ¶ added in v0.22.105
type GetProjectRegionQuotaRequest struct {
request.CommonBase
}
GetProjectRegionQuotaRequest is request schema for GetProjectRegionQuota action
type GetProjectRegionQuotaResponse ¶ added in v0.22.105
type GetProjectRegionQuotaResponse struct {
response.CommonBase
// 配额数目
QuotaLimit int
// 配额类型
QuotaType string
// 地域
Region string
}
GetProjectRegionQuotaResponse is response schema for GetProjectRegionQuota action
type GetUFileDailyBillRequest ¶ added in v0.22.105
type GetUFileDailyBillRequest struct {
request.CommonBase
// 空间名称。此字段不为空,返回此Bucket日账单,否则,返回这个项目的日账单
BucketName *string `required:"false"`
// 查询结束时间;unix时间戳,单位s
EndTime *int `required:"true"`
// 查询开始时间;unix时间戳,单位s
StartTime *int `required:"true"`
}
GetUFileDailyBillRequest is request schema for GetUFileDailyBill action
type GetUFileDailyBillResponse ¶ added in v0.22.105
type GetUFileDailyBillResponse struct {
response.CommonBase
// 消费情况
DataSet []BucketBills
}
GetUFileDailyBillResponse is response schema for GetUFileDailyBill action
type GetUFileDailyReportRequest ¶ added in v0.21.31
type GetUFileDailyReportRequest struct {
request.CommonBase
// 空间名称。此字段不为空,返回此Bucket日使用量;否则,返回这个项目的日使用量
BucketName *string `required:"false"`
// 查询结束时间;unix时间戳,单位s
EndTime *int `required:"true"`
// 查询开始时间;unix时间戳,单位s
StartTime *int `required:"true"`
}
GetUFileDailyReportRequest is request schema for GetUFileDailyReport action
type GetUFileDailyReportResponse ¶ added in v0.21.31
type GetUFileDailyReportResponse struct {
response.CommonBase
// 消费情况
DataSet []UFileReportItem
}
GetUFileDailyReportResponse is response schema for GetUFileDailyReport action
type GetUFileMonthlyBillRequest ¶ added in v0.22.105
type GetUFileMonthlyBillRequest struct {
request.CommonBase
// 空间名称。此字段不为空,返回此Bucket日账单,否则,返回这个项目的日账单
BucketName *string `required:"false"`
// 查询结束时间;例如"1994-07"
EndMonth *string `required:"true"`
// 查询开始月份;例如"1994-07"
StartMonth *string `required:"true"`
}
GetUFileMonthlyBillRequest is request schema for GetUFileMonthlyBill action
type GetUFileMonthlyBillResponse ¶ added in v0.22.105
type GetUFileMonthlyBillResponse struct {
response.CommonBase
// 消费情况
DataSet []BucketMonthlyBills
}
GetUFileMonthlyBillResponse is response schema for GetUFileMonthlyBill action
type GetUFilePkgPriceRequest ¶ added in v0.22.105
type GetUFilePkgPriceRequest struct {
request.CommonBase
// 新购和升级时必填
Amount *int `required:"false"`
// 新购和升级时必填
AmountUnit *string `required:"false"`
// 新购和续费时必填
Duration *int `required:"false"`
// 新购和续费时必填
DurationUnit *string `required:"false"`
// 操作类型,new:新购,upgrade:升级,renew:续费,delete:退费
InquiryType *string `required:"true"`
// 资源id,升级续费退费时为必填
ResourceId *string `required:"false"`
}
GetUFilePkgPriceRequest is request schema for GetUFilePkgPrice action
type GetUFilePkgPriceResponse ¶ added in v0.22.105
type GetUFilePkgPriceResponse struct {
response.CommonBase
// 实际价格
CustomPrice int
// 原始价格
OriginPrice int
}
GetUFilePkgPriceResponse is response schema for GetUFilePkgPrice action
type GetUFileQuotaInfoRequest ¶ added in v0.21.3
type GetUFileQuotaInfoRequest struct {
request.CommonBase
// 配额类型,取值为storage-volume, download-traffic或request-count
QuotaType []string `required:"true"`
}
GetUFileQuotaInfoRequest is request schema for GetUFileQuotaInfo action
type GetUFileQuotaInfoResponse ¶ added in v0.21.3
type GetUFileQuotaInfoResponse struct {
response.CommonBase
// 配额信息数据集
DataSet []UFileQuotaDataSetItem
}
GetUFileQuotaInfoResponse is response schema for GetUFileQuotaInfo action
type GetUFileQuotaPriceRequest ¶ added in v0.21.3
type GetUFileQuotaPriceRequest struct {
request.CommonBase
// 下载流量,单位: GB,范围: [0, 60 000],步长:1GB
DownloadTraffic *int `required:"false"`
// 请求次数,单位:万次,范围:[0, 1 000 000],步长:1万次
RequestCount *int `required:"false"`
// 存储容量,单位: GB*天,范围: [0, 30 000 000],步长:100GB*天
StorageVolume *int `required:"false"`
}
GetUFileQuotaPriceRequest is request schema for GetUFileQuotaPrice action
type GetUFileQuotaPriceResponse ¶ added in v0.21.3
type GetUFileQuotaPriceResponse struct {
response.CommonBase
// 待支付价格,单位:分
Price float64
}
GetUFileQuotaPriceResponse is response schema for GetUFileQuotaPrice action
type GetUFileQuotaRequest ¶ added in v0.21.3
type GetUFileQuotaRequest struct {
request.CommonBase
// 配额类型,取值为storage-volume, download-traffic或request-count
QuotaType *string `required:"true"`
}
GetUFileQuotaRequest is request schema for GetUFileQuota action
type GetUFileQuotaResponse ¶ added in v0.21.3
type GetUFileQuotaResponse struct {
response.CommonBase
// 剩余的配额数值
LeftQuota float64
}
GetUFileQuotaResponse is response schema for GetUFileQuota action
type GetUFileReportRequest ¶ added in v0.21.3
type GetUFileReportRequest struct {
request.CommonBase
// 查询结束时间
EndTime *int `required:"true"`
// 查询开始时间
StartTime *int `required:"true"`
}
GetUFileReportRequest is request schema for GetUFileReport action
type GetUFileReportResponse ¶ added in v0.21.3
type GetUFileReportResponse struct {
response.CommonBase
// 报表内容 参数见 UFileReportSet
DataSet []UFileReportSet
}
GetUFileReportResponse is response schema for GetUFileReport action
type LifeCycleItem ¶ added in v0.21.38
type LifeCycleItem struct {
// 指定一个过期天数N,文件会在其最近更新时间点的N天后过期,自动转换为归档存储类型,0代表不启用;
ArchivalDays int
// 存储空间名称
BucketName string
// 指定一个过期天数N,文件会在其最近更新时间点的N天后过期,自动删除,0代表不启用;
Days int
// 指定一个过期天数N,文件会在其最近更新时间点的N天后过期,自动转换为低频存储类型,0代表不启用;
IADays int
// 生命周期Id
LifeCycleId string
// 生命周期名称
LifeCycleName string
// 文件的最大size
MaxSize string
// 文件的最小size
MinSize string
// 生命周期所适用的前缀;*为整个存储空间文件;
Prefix string
// Enabled -- 启用,Disabled -- 不启用
Status string
}
LifeCycleItem - 生命周期信息
type RenewUFilePkgRequest ¶ added in v0.22.105
type RenewUFilePkgRequest struct {
request.CommonBase
// 续费时长
Duration *int `required:"true"`
// 时长单位
DurationUnit *string `required:"true"`
// 资源类型ID
PkgType *int `required:"true"`
// 资源ID
ResourceId *string `required:"true"`
}
RenewUFilePkgRequest is request schema for RenewUFilePkg action
type RenewUFilePkgResponse ¶ added in v0.22.105
type RenewUFilePkgResponse struct {
response.CommonBase
}
RenewUFilePkgResponse is response schema for RenewUFilePkg action
type SetBucketQuotaRequest ¶ added in v0.22.105
type SetBucketQuotaRequest struct {
request.CommonBase
// bucket名称
BucketName *string `required:"true"`
// bucket配额
QuotaLimit *int `required:"true"`
}
SetBucketQuotaRequest is request schema for SetBucketQuota action
type SetBucketQuotaResponse ¶ added in v0.22.105
type SetBucketQuotaResponse struct {
response.CommonBase
}
SetBucketQuotaResponse is response schema for SetBucketQuota action
type SetProjectRegionQuotaRequest ¶ added in v0.22.105
type SetProjectRegionQuotaRequest struct {
request.CommonBase
// 配额数目(单位是Byte)
QuotaLimit *int `required:"true"`
}
SetProjectRegionQuotaRequest is request schema for SetProjectRegionQuota action
type SetProjectRegionQuotaResponse ¶ added in v0.22.105
type SetProjectRegionQuotaResponse struct {
response.CommonBase
// 配额数目(单位是Byte)
QuotaLimit string
// 配额类型
QuotaType string
// 地域
Region string
}
SetProjectRegionQuotaResponse is response schema for SetProjectRegionQuota action
type SetUFileRefererRequest ¶ added in v0.21.3
type SetUFileRefererRequest struct {
request.CommonBase
// 黑名单列表中的一项
BlackList []string `required:"false"`
// 存储空间名称
BucketName *string `required:"true"`
// RefererType为白名单时,RefererAllowNull为false代表不允许空referer访问,为true代表允许空referer访问;此参数默认为 true;
RefererAllowNull *bool `required:"false"`
// 开启关闭referer防盗链;关闭防盗链会清空防盗链参数设置,开启防盗链必须指定 RefererType、Referers;开启:on, 关闭:off;
RefererStatus *string `required:"true"`
// 防盗链Referer类型,支持三种类型,1代表设置黑名单、2代表设置白名单,3代表同时设置黑白名单; (其中1和2是为了向前兼容,后续调用只应该传递类型3)RefererStatus为"on"时此参数必填;
RefererType *int `required:"false"`
// 防盗链Referer规则,支持正则表达式(不支持符号';'),该字段已弃用,请使用WhiteList.n或BlackList.n
Referers []string `required:"false"`
// 白名单列表中的一项
WhiteList []string `required:"false"`
}
SetUFileRefererRequest is request schema for SetUFileReferer action
type SetUFileRefererResponse ¶ added in v0.21.3
type SetUFileRefererResponse struct {
response.CommonBase
}
SetUFileRefererResponse is response schema for SetUFileReferer action
type UFileBucketSet ¶
type UFileBucketSet struct {
// Bucket所属业务, general或vod或udb general: 普通业务; vod: 视频云业务; udb: 云数据库业务
Biz string
// Bucket的ID
BucketId string
// Bucket名称
BucketName string
// 与Bucket关联的CND加速域名的ID列表
CdnDomainId []string
// Bucket的创建时间
CreateTime int
// Bucket的域名集合 参数见 UFileDomainSet
Domain UFileDomainSet
// 是否存在自定义域名。0不存在,1存在,2错误
HasUserDomain int
// Bucket的修改时间
ModifyTime int
// Bucket所属地域
Region string
// 默认存储类型
StorageClass string
// 所属业务组
Tag string
// Bucket访问类型
Type string
}
UFileBucketSet - DescribeBucket
type UFileClient ¶
UFileClient is the client of UFile
func NewClient ¶
func NewClient(config *ucloud.Config, credential *auth.Credential) *UFileClient
NewClient will return a instance of UFileClient
func (*UFileClient) AddCORSRule ¶ added in v0.22.105
func (c *UFileClient) AddCORSRule(req *AddCORSRuleRequest) (*AddCORSRuleResponse, error)
API: AddCORSRule
添加跨域规则
func (*UFileClient) AddUFileSSLCert ¶ added in v0.22.105
func (c *UFileClient) AddUFileSSLCert(req *AddUFileSSLCertRequest) (*AddUFileSSLCertResponse, error)
API: AddUFileSSLCert
给指定域名添加证书
func (*UFileClient) BindBucketDomain ¶ added in v0.22.105
func (c *UFileClient) BindBucketDomain(req *BindBucketDomainRequest) (*BindBucketDomainResponse, error)
API: BindBucketDomain
绑定自定义域名
func (*UFileClient) BuyUFilePkg ¶ added in v0.22.105
func (c *UFileClient) BuyUFilePkg(req *BuyUFilePkgRequest) (*BuyUFilePkgResponse, error)
API: BuyUFilePkg
购买流量包或存储包
func (*UFileClient) CreateBucket ¶
func (c *UFileClient) CreateBucket(req *CreateBucketRequest) (*CreateBucketResponse, error)
API: CreateBucket
创建Bucket
func (*UFileClient) CreateUFileLifeCycle ¶ added in v0.21.38
func (c *UFileClient) CreateUFileLifeCycle(req *CreateUFileLifeCycleRequest) (*CreateUFileLifeCycleResponse, error)
API: CreateUFileLifeCycle
创建生命周期管理
func (*UFileClient) CreateUFileToken ¶
func (c *UFileClient) CreateUFileToken(req *CreateUFileTokenRequest) (*CreateUFileTokenResponse, error)
API: CreateUFileToken
创建US3令牌
func (*UFileClient) CreateUdsRule ¶ added in v0.22.105
func (c *UFileClient) CreateUdsRule(req *CreateUdsRuleRequest) (*CreateUdsRuleResponse, error)
API: CreateUdsRule
针对对象存储的文件,进行自动触发解压。
func (*UFileClient) DeleteBucket ¶
func (c *UFileClient) DeleteBucket(req *DeleteBucketRequest) (*DeleteBucketResponse, error)
API: DeleteBucket
删除Bucket
func (*UFileClient) DeleteCORSRule ¶ added in v0.22.105
func (c *UFileClient) DeleteCORSRule(req *DeleteCORSRuleRequest) (*DeleteCORSRuleResponse, error)
API: DeleteCORSRule
删除跨域规则
func (*UFileClient) DeleteUFileLifeCycle ¶ added in v0.21.38
func (c *UFileClient) DeleteUFileLifeCycle(req *DeleteUFileLifeCycleRequest) (*DeleteUFileLifeCycleResponse, error)
API: DeleteUFileLifeCycle
删除生命周期管理
func (*UFileClient) DeleteUFilePkg ¶ added in v0.22.105
func (c *UFileClient) DeleteUFilePkg(req *DeleteUFilePkgRequest) (*DeleteUFilePkgResponse, error)
API: DeleteUFilePkg
删除资源包(退费)
func (*UFileClient) DeleteUFileSSLCert ¶ added in v0.22.105
func (c *UFileClient) DeleteUFileSSLCert(req *DeleteUFileSSLCertRequest) (*DeleteUFileSSLCertResponse, error)
API: DeleteUFileSSLCert
删除指定域名添加证书
func (*UFileClient) DeleteUFileToken ¶
func (c *UFileClient) DeleteUFileToken(req *DeleteUFileTokenRequest) (*DeleteUFileTokenResponse, error)
API: DeleteUFileToken
删除令牌
func (*UFileClient) DescribeBucket ¶
func (c *UFileClient) DescribeBucket(req *DescribeBucketRequest) (*DescribeBucketResponse, error)
API: DescribeBucket
获取Bucket的描述信息
func (*UFileClient) DescribeCORSRule ¶ added in v0.22.105
func (c *UFileClient) DescribeCORSRule(req *DescribeCORSRuleRequest) (*DescribeCORSRuleResponse, error)
API: DescribeCORSRule
获取跨域规则信息
func (*UFileClient) DescribeUFileAvailablePkg ¶ added in v0.22.105
func (c *UFileClient) DescribeUFileAvailablePkg(req *DescribeUFileAvailablePkgRequest) (*DescribeUFileAvailablePkgResponse, error)
API: DescribeUFileAvailablePkg
查询可购买的资源包列表
func (*UFileClient) DescribeUFileLifeCycle ¶ added in v0.21.38
func (c *UFileClient) DescribeUFileLifeCycle(req *DescribeUFileLifeCycleRequest) (*DescribeUFileLifeCycleResponse, error)
API: DescribeUFileLifeCycle
获取生命周期信息
func (*UFileClient) DescribeUFilePkg ¶ added in v0.22.105
func (c *UFileClient) DescribeUFilePkg(req *DescribeUFilePkgRequest) (*DescribeUFilePkgResponse, error)
API: DescribeUFilePkg
查询已购买的资源包列表
func (*UFileClient) DescribeUFilePkgUsage ¶ added in v0.22.105
func (c *UFileClient) DescribeUFilePkgUsage(req *DescribeUFilePkgUsageRequest) (*DescribeUFilePkgUsageResponse, error)
API: DescribeUFilePkgUsage
查询资源包使用明细
func (*UFileClient) DescribeUFileReferer ¶ added in v0.22.105
func (c *UFileClient) DescribeUFileReferer(req *DescribeUFileRefererRequest) (*DescribeUFileRefererResponse, error)
API: DescribeUFileReferer
对象存储防盗链列表
func (*UFileClient) DescribeUFileSSLCert ¶ added in v0.22.105
func (c *UFileClient) DescribeUFileSSLCert(req *DescribeUFileSSLCertRequest) (*DescribeUFileSSLCertResponse, error)
API: DescribeUFileSSLCert
查询指定存储桶所有证书
func (*UFileClient) DescribeUFileToken ¶
func (c *UFileClient) DescribeUFileToken(req *DescribeUFileTokenRequest) (*DescribeUFileTokenResponse, error)
API: DescribeUFileToken
获取令牌信息
func (*UFileClient) DescribeUdsRule ¶ added in v0.22.105
func (c *UFileClient) DescribeUdsRule(req *DescribeUdsRuleRequest) (*DescribeUdsRuleResponse, error)
API: DescribeUdsRule
针对解压缩规则进行查询
func (*UFileClient) GetBucketQuota ¶ added in v0.22.105
func (c *UFileClient) GetBucketQuota(req *GetBucketQuotaRequest) (*GetBucketQuotaResponse, error)
API: GetBucketQuota
获取bucket配额
func (*UFileClient) GetBucketStaticPageRule ¶ added in v0.22.105
func (c *UFileClient) GetBucketStaticPageRule(req *GetBucketStaticPageRuleRequest) (*GetBucketStaticPageRuleResponse, error)
API: GetBucketStaticPageRule
获取bucket静态网页配置
func (*UFileClient) GetProjectRegionQuota ¶ added in v0.22.105
func (c *UFileClient) GetProjectRegionQuota(req *GetProjectRegionQuotaRequest) (*GetProjectRegionQuotaResponse, error)
API: GetProjectRegionQuota
获取项目地域配额
func (*UFileClient) GetUFileDailyBill ¶ added in v0.22.105
func (c *UFileClient) GetUFileDailyBill(req *GetUFileDailyBillRequest) (*GetUFileDailyBillResponse, error)
API: GetUFileDailyBill
获取bucket每日账单
func (*UFileClient) GetUFileDailyReport ¶ added in v0.21.31
func (c *UFileClient) GetUFileDailyReport(req *GetUFileDailyReportRequest) (*GetUFileDailyReportResponse, error)
API: GetUFileDailyReport
查看日消费报表
func (*UFileClient) GetUFileMonthlyBill ¶ added in v0.22.105
func (c *UFileClient) GetUFileMonthlyBill(req *GetUFileMonthlyBillRequest) (*GetUFileMonthlyBillResponse, error)
API: GetUFileMonthlyBill
获取bucket月度账单
func (*UFileClient) GetUFilePkgPrice ¶ added in v0.22.105
func (c *UFileClient) GetUFilePkgPrice(req *GetUFilePkgPriceRequest) (*GetUFilePkgPriceResponse, error)
API: GetUFilePkgPrice
获取对资源进行新购、续费、升级等操作的价格
func (*UFileClient) GetUFileQuota ¶ added in v0.21.3
func (c *UFileClient) GetUFileQuota(req *GetUFileQuotaRequest) (*GetUFileQuotaResponse, error)
API: GetUFileQuota
查看配额状态
func (*UFileClient) GetUFileQuotaInfo ¶ added in v0.21.3
func (c *UFileClient) GetUFileQuotaInfo(req *GetUFileQuotaInfoRequest) (*GetUFileQuotaInfoResponse, error)
API: GetUFileQuotaInfo
获取配额信息
func (*UFileClient) GetUFileQuotaPrice ¶ added in v0.21.3
func (c *UFileClient) GetUFileQuotaPrice(req *GetUFileQuotaPriceRequest) (*GetUFileQuotaPriceResponse, error)
API: GetUFileQuotaPrice
根据US3的购买配额,查询需要支付的价格。
func (*UFileClient) GetUFileReport ¶ added in v0.21.3
func (c *UFileClient) GetUFileReport(req *GetUFileReportRequest) (*GetUFileReportResponse, error)
API: GetUFileReport
查看配额使用报表
func (*UFileClient) NewAddCORSRuleRequest ¶ added in v0.22.105
func (c *UFileClient) NewAddCORSRuleRequest() *AddCORSRuleRequest
NewAddCORSRuleRequest will create request of AddCORSRule action.
func (*UFileClient) NewAddUFileSSLCertRequest ¶ added in v0.22.105
func (c *UFileClient) NewAddUFileSSLCertRequest() *AddUFileSSLCertRequest
NewAddUFileSSLCertRequest will create request of AddUFileSSLCert action.
func (*UFileClient) NewBindBucketDomainRequest ¶ added in v0.22.105
func (c *UFileClient) NewBindBucketDomainRequest() *BindBucketDomainRequest
NewBindBucketDomainRequest will create request of BindBucketDomain action.
func (*UFileClient) NewBuyUFilePkgRequest ¶ added in v0.22.105
func (c *UFileClient) NewBuyUFilePkgRequest() *BuyUFilePkgRequest
NewBuyUFilePkgRequest will create request of BuyUFilePkg action.
func (*UFileClient) NewCreateBucketRequest ¶
func (c *UFileClient) NewCreateBucketRequest() *CreateBucketRequest
NewCreateBucketRequest will create request of CreateBucket action.
func (*UFileClient) NewCreateUFileLifeCycleRequest ¶ added in v0.21.38
func (c *UFileClient) NewCreateUFileLifeCycleRequest() *CreateUFileLifeCycleRequest
NewCreateUFileLifeCycleRequest will create request of CreateUFileLifeCycle action.
func (*UFileClient) NewCreateUFileTokenRequest ¶
func (c *UFileClient) NewCreateUFileTokenRequest() *CreateUFileTokenRequest
NewCreateUFileTokenRequest will create request of CreateUFileToken action.
func (*UFileClient) NewCreateUdsRuleRequest ¶ added in v0.22.105
func (c *UFileClient) NewCreateUdsRuleRequest() *CreateUdsRuleRequest
NewCreateUdsRuleRequest will create request of CreateUdsRule action.
func (*UFileClient) NewDeleteBucketRequest ¶
func (c *UFileClient) NewDeleteBucketRequest() *DeleteBucketRequest
NewDeleteBucketRequest will create request of DeleteBucket action.
func (*UFileClient) NewDeleteCORSRuleRequest ¶ added in v0.22.105
func (c *UFileClient) NewDeleteCORSRuleRequest() *DeleteCORSRuleRequest
NewDeleteCORSRuleRequest will create request of DeleteCORSRule action.
func (*UFileClient) NewDeleteUFileLifeCycleRequest ¶ added in v0.21.38
func (c *UFileClient) NewDeleteUFileLifeCycleRequest() *DeleteUFileLifeCycleRequest
NewDeleteUFileLifeCycleRequest will create request of DeleteUFileLifeCycle action.
func (*UFileClient) NewDeleteUFilePkgRequest ¶ added in v0.22.105
func (c *UFileClient) NewDeleteUFilePkgRequest() *DeleteUFilePkgRequest
NewDeleteUFilePkgRequest will create request of DeleteUFilePkg action.
func (*UFileClient) NewDeleteUFileSSLCertRequest ¶ added in v0.22.105
func (c *UFileClient) NewDeleteUFileSSLCertRequest() *DeleteUFileSSLCertRequest
NewDeleteUFileSSLCertRequest will create request of DeleteUFileSSLCert action.
func (*UFileClient) NewDeleteUFileTokenRequest ¶
func (c *UFileClient) NewDeleteUFileTokenRequest() *DeleteUFileTokenRequest
NewDeleteUFileTokenRequest will create request of DeleteUFileToken action.
func (*UFileClient) NewDescribeBucketRequest ¶
func (c *UFileClient) NewDescribeBucketRequest() *DescribeBucketRequest
NewDescribeBucketRequest will create request of DescribeBucket action.
func (*UFileClient) NewDescribeCORSRuleRequest ¶ added in v0.22.105
func (c *UFileClient) NewDescribeCORSRuleRequest() *DescribeCORSRuleRequest
NewDescribeCORSRuleRequest will create request of DescribeCORSRule action.
func (*UFileClient) NewDescribeUFileAvailablePkgRequest ¶ added in v0.22.105
func (c *UFileClient) NewDescribeUFileAvailablePkgRequest() *DescribeUFileAvailablePkgRequest
NewDescribeUFileAvailablePkgRequest will create request of DescribeUFileAvailablePkg action.
func (*UFileClient) NewDescribeUFileLifeCycleRequest ¶ added in v0.21.38
func (c *UFileClient) NewDescribeUFileLifeCycleRequest() *DescribeUFileLifeCycleRequest
NewDescribeUFileLifeCycleRequest will create request of DescribeUFileLifeCycle action.
func (*UFileClient) NewDescribeUFilePkgRequest ¶ added in v0.22.105
func (c *UFileClient) NewDescribeUFilePkgRequest() *DescribeUFilePkgRequest
NewDescribeUFilePkgRequest will create request of DescribeUFilePkg action.
func (*UFileClient) NewDescribeUFilePkgUsageRequest ¶ added in v0.22.105
func (c *UFileClient) NewDescribeUFilePkgUsageRequest() *DescribeUFilePkgUsageRequest
NewDescribeUFilePkgUsageRequest will create request of DescribeUFilePkgUsage action.
func (*UFileClient) NewDescribeUFileRefererRequest ¶ added in v0.22.105
func (c *UFileClient) NewDescribeUFileRefererRequest() *DescribeUFileRefererRequest
NewDescribeUFileRefererRequest will create request of DescribeUFileReferer action.
func (*UFileClient) NewDescribeUFileSSLCertRequest ¶ added in v0.22.105
func (c *UFileClient) NewDescribeUFileSSLCertRequest() *DescribeUFileSSLCertRequest
NewDescribeUFileSSLCertRequest will create request of DescribeUFileSSLCert action.
func (*UFileClient) NewDescribeUFileTokenRequest ¶
func (c *UFileClient) NewDescribeUFileTokenRequest() *DescribeUFileTokenRequest
NewDescribeUFileTokenRequest will create request of DescribeUFileToken action.
func (*UFileClient) NewDescribeUdsRuleRequest ¶ added in v0.22.105
func (c *UFileClient) NewDescribeUdsRuleRequest() *DescribeUdsRuleRequest
NewDescribeUdsRuleRequest will create request of DescribeUdsRule action.
func (*UFileClient) NewGetBucketQuotaRequest ¶ added in v0.22.105
func (c *UFileClient) NewGetBucketQuotaRequest() *GetBucketQuotaRequest
NewGetBucketQuotaRequest will create request of GetBucketQuota action.
func (*UFileClient) NewGetBucketStaticPageRuleRequest ¶ added in v0.22.105
func (c *UFileClient) NewGetBucketStaticPageRuleRequest() *GetBucketStaticPageRuleRequest
NewGetBucketStaticPageRuleRequest will create request of GetBucketStaticPageRule action.
func (*UFileClient) NewGetProjectRegionQuotaRequest ¶ added in v0.22.105
func (c *UFileClient) NewGetProjectRegionQuotaRequest() *GetProjectRegionQuotaRequest
NewGetProjectRegionQuotaRequest will create request of GetProjectRegionQuota action.
func (*UFileClient) NewGetUFileDailyBillRequest ¶ added in v0.22.105
func (c *UFileClient) NewGetUFileDailyBillRequest() *GetUFileDailyBillRequest
NewGetUFileDailyBillRequest will create request of GetUFileDailyBill action.
func (*UFileClient) NewGetUFileDailyReportRequest ¶ added in v0.21.31
func (c *UFileClient) NewGetUFileDailyReportRequest() *GetUFileDailyReportRequest
NewGetUFileDailyReportRequest will create request of GetUFileDailyReport action.
func (*UFileClient) NewGetUFileMonthlyBillRequest ¶ added in v0.22.105
func (c *UFileClient) NewGetUFileMonthlyBillRequest() *GetUFileMonthlyBillRequest
NewGetUFileMonthlyBillRequest will create request of GetUFileMonthlyBill action.
func (*UFileClient) NewGetUFilePkgPriceRequest ¶ added in v0.22.105
func (c *UFileClient) NewGetUFilePkgPriceRequest() *GetUFilePkgPriceRequest
NewGetUFilePkgPriceRequest will create request of GetUFilePkgPrice action.
func (*UFileClient) NewGetUFileQuotaInfoRequest ¶ added in v0.21.3
func (c *UFileClient) NewGetUFileQuotaInfoRequest() *GetUFileQuotaInfoRequest
NewGetUFileQuotaInfoRequest will create request of GetUFileQuotaInfo action.
func (*UFileClient) NewGetUFileQuotaPriceRequest ¶ added in v0.21.3
func (c *UFileClient) NewGetUFileQuotaPriceRequest() *GetUFileQuotaPriceRequest
NewGetUFileQuotaPriceRequest will create request of GetUFileQuotaPrice action.
func (*UFileClient) NewGetUFileQuotaRequest ¶ added in v0.21.3
func (c *UFileClient) NewGetUFileQuotaRequest() *GetUFileQuotaRequest
NewGetUFileQuotaRequest will create request of GetUFileQuota action.
func (*UFileClient) NewGetUFileReportRequest ¶ added in v0.21.3
func (c *UFileClient) NewGetUFileReportRequest() *GetUFileReportRequest
NewGetUFileReportRequest will create request of GetUFileReport action.
func (*UFileClient) NewRenewUFilePkgRequest ¶ added in v0.22.105
func (c *UFileClient) NewRenewUFilePkgRequest() *RenewUFilePkgRequest
NewRenewUFilePkgRequest will create request of RenewUFilePkg action.
func (*UFileClient) NewSetBucketQuotaRequest ¶ added in v0.22.105
func (c *UFileClient) NewSetBucketQuotaRequest() *SetBucketQuotaRequest
NewSetBucketQuotaRequest will create request of SetBucketQuota action.
func (*UFileClient) NewSetProjectRegionQuotaRequest ¶ added in v0.22.105
func (c *UFileClient) NewSetProjectRegionQuotaRequest() *SetProjectRegionQuotaRequest
NewSetProjectRegionQuotaRequest will create request of SetProjectRegionQuota action.
func (*UFileClient) NewSetUFileRefererRequest ¶ added in v0.21.3
func (c *UFileClient) NewSetUFileRefererRequest() *SetUFileRefererRequest
NewSetUFileRefererRequest will create request of SetUFileReferer action.
func (*UFileClient) NewUpdateBucketRequest ¶
func (c *UFileClient) NewUpdateBucketRequest() *UpdateBucketRequest
NewUpdateBucketRequest will create request of UpdateBucket action.
func (*UFileClient) NewUpdateBucketStaticPageRuleRequest ¶ added in v0.22.105
func (c *UFileClient) NewUpdateBucketStaticPageRuleRequest() *UpdateBucketStaticPageRuleRequest
NewUpdateBucketStaticPageRuleRequest will create request of UpdateBucketStaticPageRule action.
func (*UFileClient) NewUpdateCORSRuleRequest ¶ added in v0.22.105
func (c *UFileClient) NewUpdateCORSRuleRequest() *UpdateCORSRuleRequest
NewUpdateCORSRuleRequest will create request of UpdateCORSRule action.
func (*UFileClient) NewUpdateUFileLifeCycleRequest ¶ added in v0.21.38
func (c *UFileClient) NewUpdateUFileLifeCycleRequest() *UpdateUFileLifeCycleRequest
NewUpdateUFileLifeCycleRequest will create request of UpdateUFileLifeCycle action.
func (*UFileClient) NewUpdateUFileSSLCertRequest ¶ added in v0.22.105
func (c *UFileClient) NewUpdateUFileSSLCertRequest() *UpdateUFileSSLCertRequest
NewUpdateUFileSSLCertRequest will create request of UpdateUFileSSLCert action.
func (*UFileClient) NewUpdateUFileTokenRequest ¶
func (c *UFileClient) NewUpdateUFileTokenRequest() *UpdateUFileTokenRequest
NewUpdateUFileTokenRequest will create request of UpdateUFileToken action.
func (*UFileClient) NewUpdateUdsRuleRequest ¶ added in v0.21.38
func (c *UFileClient) NewUpdateUdsRuleRequest() *UpdateUdsRuleRequest
NewUpdateUdsRuleRequest will create request of UpdateUdsRule action.
func (*UFileClient) RenewUFilePkg ¶ added in v0.22.105
func (c *UFileClient) RenewUFilePkg(req *RenewUFilePkgRequest) (*RenewUFilePkgResponse, error)
API: RenewUFilePkg
资源包续费
func (*UFileClient) SetBucketQuota ¶ added in v0.22.105
func (c *UFileClient) SetBucketQuota(req *SetBucketQuotaRequest) (*SetBucketQuotaResponse, error)
API: SetBucketQuota
设置bucket配额
func (*UFileClient) SetProjectRegionQuota ¶ added in v0.22.105
func (c *UFileClient) SetProjectRegionQuota(req *SetProjectRegionQuotaRequest) (*SetProjectRegionQuotaResponse, error)
API: SetProjectRegionQuota
设置项目地域配额
func (*UFileClient) SetUFileReferer ¶ added in v0.21.3
func (c *UFileClient) SetUFileReferer(req *SetUFileRefererRequest) (*SetUFileRefererResponse, error)
API: SetUFileReferer
设置对象存储防盗链
func (*UFileClient) UpdateBucket ¶
func (c *UFileClient) UpdateBucket(req *UpdateBucketRequest) (*UpdateBucketResponse, error)
API: UpdateBucket
更改Bucket的属性
func (*UFileClient) UpdateBucketStaticPageRule ¶ added in v0.22.105
func (c *UFileClient) UpdateBucketStaticPageRule(req *UpdateBucketStaticPageRuleRequest) (*UpdateBucketStaticPageRuleResponse, error)
API: UpdateBucketStaticPageRule
修改bucket静态网页配置
func (*UFileClient) UpdateCORSRule ¶ added in v0.22.105
func (c *UFileClient) UpdateCORSRule(req *UpdateCORSRuleRequest) (*UpdateCORSRuleResponse, error)
API: UpdateCORSRule
更新跨域规则
func (*UFileClient) UpdateUFileLifeCycle ¶ added in v0.21.38
func (c *UFileClient) UpdateUFileLifeCycle(req *UpdateUFileLifeCycleRequest) (*UpdateUFileLifeCycleResponse, error)
API: UpdateUFileLifeCycle
更新生命周期管理
func (*UFileClient) UpdateUFileSSLCert ¶ added in v0.22.105
func (c *UFileClient) UpdateUFileSSLCert(req *UpdateUFileSSLCertRequest) (*UpdateUFileSSLCertResponse, error)
API: UpdateUFileSSLCert
更新指定域名证书
func (*UFileClient) UpdateUFileToken ¶
func (c *UFileClient) UpdateUFileToken(req *UpdateUFileTokenRequest) (*UpdateUFileTokenResponse, error)
API: UpdateUFileToken
更新令牌的操作权限,可操作key的前缀,可操作bucket和令牌超时时间点
func (*UFileClient) UpdateUdsRule ¶ added in v0.21.38
func (c *UFileClient) UpdateUdsRule(req *UpdateUdsRuleRequest) (*UpdateUdsRuleResponse, error)
API: UpdateUdsRule
针对对象存储的文件,进行自动触发解压。
type UFileDailyBillItem ¶ added in v0.22.105
type UFileDailyBillItem struct {
// 归档-高优先级解冻量,即归档文件的解冻类型为高优先级(Expedited)的解冻量费用; 分
AcExpeditedRetrievalBill float64
// 归档-标准解冻量,即归档文件的解冻类型为标准(Strandard)的解冻量费用; 分
AcRestoreBill float64
// 归档-短期存储量,即补足未满最短存储期限的剩余天数的存储量费用;分
AcShortStorageBill float64
// 归档-存储总容量费用;分
AcStorageBill float64
// 忙时流量费用;分;海外无此字段
BusyFlowBill float64
// cdn回源流量费用;分
CdnFlowBill float64
// 配额消费时间,unix时间戳;单位s,精确到日期
Date int
// 下载流量费用:分;国内无此字段
FlowBill float64
// 下载归档存储次数费用;分
GetCountAcBill float64
// 下载标准存储次数费用;分
GetCountBill float64
// 下载低频存储次数费用;分
GetCountIaBill float64
// 低频-数据取回量,即低频文件的数据取回量费用;分
IaGetSizeBill float64
// 低频-短期存储量,即补足未满最短存储期限的剩余天数的存储量费用;分
IaShortStorageBill float64
// 低频-存储总容量费用;分
IaStorageBill float64
// 闲时流量费用;分;海外无此字段
IdleFlowBill float64
// 图片高级压缩次数费用;分
ImageCompressCountBill float64
// 基础图片处理量费用;分
ImageHandleFlowBill float64
// bucket对应的资源系统标签
Labels []BucketLabels
// 对象标签费用: 分
ObjectTagCountBill float64
// 上传归档存储次数费用;分
PutCountAcBill float64
// 上传标准存储次数费用;分
PutCountBill float64
// 上传低频存储次数费用;分
PutCountIaBill float64
// 标准-存储总容量费用;分
StorageBill float64
// 总费用;分
TotalBill float64
}
UFileDailyBillItem - 日消费账单
type UFileDailyReportItem ¶ added in v0.21.31
type UFileDailyReportItem struct {
// 归档-高优先级解冻量,即归档文件的解冻类型为高优先级(Expedited)的解冻量;单位GB
AcExpeditedRetrieval float64
// 归档-标准解冻量,即归档文件的解冻类型为标准(Strandard)的解冻量;单位GB
AcRestore float64
// 归档-短期存储量,即补足未满最短存储期限的剩余天数的存储量;单位GB
AcShortStorage float64
// 归档-存储总容量;单位GB
AcStorage float64
// 请求次数;单位万次
ApiTimes float64
// 忙时流量;单位GB;海外无此字段
BusyFlow float64
// cdn回源流量;单位GB
CdnFlow float64
// 配额消费时间,unix时间戳;单位s,精确到日期
Date int
// 下载流量:单位GB;国内无此字段
Flow float64
// 低频-数据取回量,即低频文件的数据取回量;单位GB
IaGetSize float64
// 低频-短期存储量,即补足未满最短存储期限的剩余天数的存储量;单位GB
IaShortStorage float64
// 低频-存储总容量;单位GB
IaStorage float64
// 闲时流量;单位GB;海外无此字段
IdleFlow float64
// 图片高级压缩次数;单位千次
ImageCompressCount float64
// 基础图片处理量;单位GB
ImageHandleFlow float64
// 对象标签个数; 单位万个
ObjectTagCount float64
// 标准-存储总容量;单位GB
Storage float64
}
UFileDailyReportItem -
type UFileDomainSet ¶
type UFileDomainSet struct {
// UCDN加速域名
Cdn []string
// 用户自定义CDN加速域名
CustomCdn []string
// 用户自定义源站域名
CustomSrc []string
// 源站域名
Src []string
}
UFileDomainSet - DescribeBucket
type UFileMonthlyBillItem ¶ added in v0.22.105
type UFileMonthlyBillItem struct {
// 归档-高优先级解冻量,即归档文件的解冻类型为高优先级(Expedited)的解冻量费用; 分
AcExpeditedRetrievalBill float64
// 归档-标准解冻量,即归档文件的解冻类型为标准(Strandard)的解冻量费用; 分
AcRestoreBill float64
// 归档-短期存储量,即补足未满最短存储期限的剩余天数的存储量费用;分
AcShortStorageBill float64
// 归档-存储总容量费用;分
AcStorageBill float64
// 忙时流量费用;分;海外无此字段
BusyFlowBill float64
// cdn回源流量费用;分
CdnFlowBill float64
// 下载流量费用:分;国内无此字段
FlowBill float64
// 下载归档存储次数费用;分
GetCountAcBill float64
// 下载标准存储次数费用;分
GetCountBill float64
// 下载低频存储次数费用;分
GetCountIaBill float64
// 低频-数据取回量,即低频文件的数据取回量费用;分
IaGetSizeBill float64
// 低频-短期存储量,即补足未满最短存储期限的剩余天数的存储量费用;分
IaShortStorageBill float64
// 低频-存储总容量费用;分
IaStorageBill float64
// 闲时流量费用;分;海外无此字段
IdleFlowBill float64
// 图片高级压缩次数费用;分
ImageCompressCountBill float64
// 基础图片处理量费用;分
ImageHandleFlowBill float64
// bucket对应的资源系统标签
Labels []BucketLabels
// 配额消费月份
Month string
// 对象标签费用: 分
ObjectTagCountBill float64
// 上传归档存储次数费用;分
PutCountAcBill float64
// 上传标准存储次数费用;分
PutCountBill float64
// 上传低频存储次数费用;分
PutCountIaBill float64
// 标准-存储总容量费用;分
StorageBill float64
// 总费用;分
TotalBill float64
}
UFileMonthlyBillItem - 月消费账单
type UFilePkg ¶ added in v0.22.105
type UFilePkg struct {
// 资源包容量
Amount int
// 资源包创建时间
CreateTime int
// 资源包失效时间
ExpiredTime int
// 资源包名称
PkgName string
// 资源包类型ID
PkgType int
// 资源包地域
Region string
// 资源包剩余容量(仅支持流量包)
RemainAmount string
// 资源包ID
ResourceId string
}
UFilePkg - 已购买的资源包
type UFileQuotaDataSetItem ¶ added in v0.21.3
type UFileQuotaDataSetItem struct {
// 剩余下载流量
DownloadFlow UFileQuotaLeft
// 是否欠费:1表示欠费;0表示未欠费
Owe int
// 可用地域
Region string
// 剩余请求次数
RequestCnt UFileQuotaLeft
// 剩余存储容量
Storage UFileQuotaLeft
}
UFileQuotaDataSetItem - 配额信息
type UFileQuotaLeft ¶ added in v0.21.3
type UFileQuotaLeft struct {
// 配额剩余量
Left float64
}
UFileQuotaLeft - 配额剩余量
type UFileReportItem ¶ added in v0.21.31
type UFileReportItem struct {
// 日消费情况
Daily []UFileDailyReportItem
// 总消费情况
Total []UFileTotalReportItem
}
UFileReportItem -
type UFileReportSet ¶ added in v0.21.3
type UFileReportSet struct {
// 配额消费当日使用的下载流量,单位:GB
DownloadTraffic float64
// 配额消费当日使用的请求次数,单位:万次
RequestCount float64
// 配额消费当日使用的存储容量,单位:GB*天
StorageVolume float64
// 配额消费时间,unix时间戳,精确到日期
Time int
}
UFileReportSet - GetUFileReport
type UFileSSLCert ¶ added in v0.22.105
type UFileSSLCert struct {
// SSL证书内容,和域名对应
Certificate string
// SSL证书对应的私钥
CertificateKey string
// SSL证书名称
CertificateName string
// 域名
Domain string
}
UFileSSLCert - SSL证书
type UFileTokenSet ¶
type UFileTokenSet struct {
// 令牌允许操作的bucket
AllowedBuckets []string
// 令牌允许执行的操作,[ TOKEN_ALLOW_NONE , TOKEN_ALLOW_READ , TOKEN_ALLOW_WRITE , TOKEN_ALLOW_DELETE , TOKEN_ALLOW_LIST, TOKEN_ALLOW_IOP , TOKEN_ALLOW_DP ]
AllowedOps []string
// 令牌允许操作的key前缀
AllowedPrefixes []string
// 创建时间
CreateTime int
// 令牌的超时时间点
ExpireTime int
// 修改时间
ModifyTime int
// 令牌私钥
PrivateKey string
// 令牌公钥
PublicKey string
// 所属地区
Region string
// 令牌ID
TokenId string
// 令牌名称
TokenName string
}
UFileTokenSet - ufile令牌集合
type UFileTotalReportItem ¶ added in v0.21.31
type UFileTotalReportItem struct {
// API请求次数(万次)
ApiTimes float64
// 忙时流量;单位GB;海外无此字段
BusyFlow float64
// cdn回源流量;单位GB
CdnFlow float64
// 下载流量:单位GB;国内无此字段
Flow float64
// 闲时流量;单位GB;海外无此字段
IdleFlow float64
}
UFileTotalReportItem - 总消费信息
type UpdateBucketRequest ¶
type UpdateBucketRequest struct {
request.CommonBase
// 待修改Bucket的名称
BucketName *string `required:"true"`
// 默认存储类型
StorageClass *string `required:"false"`
// Bucket访问类型;public或private
Type *string `required:"false"`
}
UpdateBucketRequest is request schema for UpdateBucket action
type UpdateBucketResponse ¶
type UpdateBucketResponse struct {
response.CommonBase
// Bucket的ID
BucketId string
// Bucket的名称
BucketName string
}
UpdateBucketResponse is response schema for UpdateBucket action
type UpdateBucketStaticPageRuleRequest ¶ added in v0.22.105
type UpdateBucketStaticPageRuleRequest struct {
request.CommonBase
// 存储桶名称
Bucket *string `required:"true"`
// 默认首页
DefaultIndex *string `required:"false"`
// 404时的默认页面
DefaultPage404 *string `required:"false"`
// 404规则
RuleFor404 *string `required:"false"`
// 启用状态(enable/disable,只有绑定了自定义域名才能开启)
Status *string `required:"false"`
// 子目录是否启用重定向
SubDirRedirect *string `required:"false"`
}
UpdateBucketStaticPageRuleRequest is request schema for UpdateBucketStaticPageRule action
type UpdateBucketStaticPageRuleResponse ¶ added in v0.22.105
type UpdateBucketStaticPageRuleResponse struct {
response.CommonBase
}
UpdateBucketStaticPageRuleResponse is response schema for UpdateBucketStaticPageRule action
type UpdateCORSRuleRequest ¶ added in v0.22.105
type UpdateCORSRuleRequest struct {
request.CommonBase
// 指定允许的跨域请求头(多个Header用‘,’分隔)
AllowedHeader *string `required:"false"`
// 指定允许的跨域请求方法。支持的方法名有:GET、PUT、POST、DELETE、HEAD、OPTIONS(多个Method用‘,’分隔)
AllowedMethod *string `required:"true"`
// 指定允许的跨域请求的来源,使用通配符(*)表示允许所有来源的跨域请求(多个Origin用‘,’分隔)
AllowedOrigin *string `required:"true"`
// Bucket名称
BucketName *string `required:"true"`
// 跨域规则ID
CORSId *string `required:"true"`
// 指定允许用户从应用程序中访问的响应头(多个ExposeHeader用‘,’分隔)
ExposeHeader *string `required:"false"`
}
UpdateCORSRuleRequest is request schema for UpdateCORSRule action
type UpdateCORSRuleResponse ¶ added in v0.22.105
type UpdateCORSRuleResponse struct {
response.CommonBase
}
UpdateCORSRuleResponse is response schema for UpdateCORSRule action
type UpdateUFileLifeCycleRequest ¶ added in v0.21.38
type UpdateUFileLifeCycleRequest struct {
request.CommonBase
// 指定一个过期天数N,文件会在其最近更新时间点的N天后过期,自动转换为归档存储类型;范围: [7,36500],0代表不启用
ArchivalDays *int `required:"false"`
// 存储空间名称
BucketName *string `required:"true"`
// 指定一个过期天数N,文件会在其最近更新时间点的N天后过期,自动删除;范围: [7,36500]
Days *int `required:"false"`
// 指定一个历史文件过期天数N,文件会在其最近更新时间点的N天后过期,自动删除;范围: [7,36500]
HistVerArchivalDays *int `required:"false"`
// 指定一个历史文件过期天数N,文件会在其最近更新时间点的N天后过期,自动删除;范围: [7,36500]
HistVerDeleteDays *int `required:"false"`
// 指定一个历史文件过期天数N,文件会在其最近更新时间点的N天后过期,自动删除;范围: [7,36500]
HistVerIADays *int `required:"false"`
// 指定一个过期天数N,文件会在其最近更新时间点的N天后过期,自动转换为低频存储类型;范围: [7,36500],0代表不启用
IADays *int `required:"false"`
// 生命周期Id
LifeCycleId *string `required:"true"`
// 生命周期名称
LifeCycleName *string `required:"true"`
// 文件的最大size
MaxSize *string `required:"false"`
// 文件的最小size
MinSize *int `required:"false"`
// 生命周期所适用的前缀;*为整个存储空间文件;一条规则只支持一个文件前缀;
Prefix *string `required:"true"`
// Enabled -- 启用,Disabled -- 不启用
Status *string `required:"true"`
// Tag,参数格式"k1=v1&k2=v2",key的最大长度为128, value最大长度为256byte,tag的最大数量为10
Tags *string `required:"false"`
}
UpdateUFileLifeCycleRequest is request schema for UpdateUFileLifeCycle action
type UpdateUFileLifeCycleResponse ¶ added in v0.21.38
type UpdateUFileLifeCycleResponse struct {
response.CommonBase
}
UpdateUFileLifeCycleResponse is response schema for UpdateUFileLifeCycle action
type UpdateUFileSSLCertRequest ¶ added in v0.22.105
type UpdateUFileSSLCertRequest struct {
request.CommonBase
// 存储桶名称,全局唯一
BucketName *string `required:"true"`
// 填写SSL证书文件内容(PEM编码)。 证书文件内容填写格式: 如果您的业务场景仅需确保服务端证书可信,则证书文件需要包含服务器证书(①)和中间证书(②)。如果您的中间证书和服务器证书是两个文件,您可以在证书链配置项填写中间证书内容即可。
Certificate *string `required:"true"`
// 填写SSL证书私钥内容(PEM编码)。
CertificateKey *string `required:"true"`
// SSL证书名称
CertificateName *string `required:"true"`
// 域名
Domain *string `required:"true"`
}
UpdateUFileSSLCertRequest is request schema for UpdateUFileSSLCert action
type UpdateUFileSSLCertResponse ¶ added in v0.22.105
type UpdateUFileSSLCertResponse struct {
response.CommonBase
// 错误消息返回
Message string
}
UpdateUFileSSLCertResponse is response schema for UpdateUFileSSLCert action
type UpdateUFileTokenRequest ¶
type UpdateUFileTokenRequest struct {
request.CommonBase
// 令牌允许操作的bucket
AllowedBuckets []string `required:"false"`
// 令牌允许执行的操作,[ TOKEN_ALLOW_NONE , TOKEN_ALLOW_READ , TOKEN_ALLOW_WRITE , TOKEN_ALLOW_DELETE , TOKEN_ALLOW_LIST, TOKEN_ALLOW_IOP , TOKEN_ALLOW_DP ]
AllowedOps []string `required:"false"`
// 令牌允许操作的key前缀
AllowedPrefixes []string `required:"false"`
// 令牌的超时时间点(时间戳);注意:过期时间不能超过 4102416000
ExpireTime *int `required:"false"`
// 令牌ID
TokenId *string `required:"true"`
// 令牌名称
TokenName *string `required:"false"`
}
UpdateUFileTokenRequest is request schema for UpdateUFileToken action
type UpdateUFileTokenResponse ¶
type UpdateUFileTokenResponse struct {
response.CommonBase
}
UpdateUFileTokenResponse is response schema for UpdateUFileToken action
type UpdateUdsRuleRequest ¶ added in v0.21.38
type UpdateUdsRuleRequest struct {
request.CommonBase
// 联系的用户组ID
ContactGroupId *string `required:"false"`
// 目标Bucket名字,全局唯一
DstBucket *string `required:"true"`
// 解压后的目标目录
DstDirectory *string `required:"true"`
// 目标bucket的token之一的tokenId
DstTokenId *string `required:"true"`
// 通知的事件数组
Events []string `required:"false"`
// 是否以压缩文件的前缀为最后一层目录
KeepUS3Name *bool `required:"true"`
// 通知的类型数组
NotificationTypes []string `required:"false"`
// 操作的ops数组,"Ops.0":"unzip"
Ops []string `required:"false"`
// 触发解压缩的前缀
Prefixes *string `required:"true"`
// 规则的唯一Id
RuleId *string `required:"true"`
// 规则名称
RuleName *string `required:"true"`
// 源Bucket名字,全局唯一
SrcBucket *string `required:"true"`
// 源bucket的token之一的tokenId
SrcTokenId *string `required:"true"`
}
UpdateUdsRuleRequest is request schema for UpdateUdsRule action
type UpdateUdsRuleResponse ¶ added in v0.21.38
type UpdateUdsRuleResponse struct {
response.CommonBase
// 该请求的消息成功或者失败的描述
Mesage string
// 返回规则的规则ID
RuleId string
}
UpdateUdsRuleResponse is response schema for UpdateUdsRule action