forked from huaweicloud/huaweicloud-sdk-go-v3
-
Notifications
You must be signed in to change notification settings - Fork 0
/
model_files_create_req.go
38 lines (27 loc) · 1.3 KB
/
model_files_create_req.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
package model
import (
"github.com/dysodeng/huaweicloud-sdk-go-v3/core/utils"
"strings"
)
// FilesCreateReq 创建文件请求。
type FilesCreateReq struct {
// 文件名,不区分大小写,最大长度256,最小长度1。
FileName string `json:"file_name"`
// 文件内容MD5值,MD5值需要进行Base64编码。
FileMd5 string `json:"file_md5"`
// 文件总的大小,最小1,最大5368709120。
FileSize int64 `json:"file_size"`
// 文件类型(默认提取文件后缀)。
FileType string `json:"file_type"`
// 资产ID。
AssetId string `json:"asset_id"`
// 文件在资产中的分类。每种资产类型包含的文件分类不同。 * MAIN:主文件 * COVER:封面文件 * PAGE:内容页图片 * SAMPLE:样例音频 * OTHER:其他文件 > * 资产类型为SCENE、ANIMATION、VIDEO、IMAGE、MATERIAL时,包含MAIN、COVER和OTHER > * 资产类型为PPT时,包含MAIN、COVER、PAGE和OTHER > * 资产类型为HUMAN_MODEL时,包含MAIN、COVER和OTHER > * 资产类型为VOICE_MODEL时,包含MAIN、SAMPLE和OTHER
AssetFileCategory string `json:"asset_file_category"`
}
func (o FilesCreateReq) String() string {
data, err := utils.Marshal(o)
if err != nil {
return "FilesCreateReq struct{}"
}
return strings.Join([]string{"FilesCreateReq", string(data)}, " ")
}