代码托管 CodeArts Repo-获取分支目录下的文件:响应参数

时间:2025-02-12 15:03:27

响应参数

状态码: 200

表4 响应Body参数

参数

参数类型

描述

error

Error object

参数解释:

响应错误码。

result

LogsTreeList object

参数解释:

响应结果。

status

String

参数解释:

调用此接口的响应状态。

取值范围:

  • success,表示接口调用成功。
  • failed,表示接口调用失败。
表5 Error

参数

参数类型

描述

code

String

参数解释:

错误码。

取值范围:

符合错误码格式字符串,长度[0,100]。

message

String

参数解释:

错误信息。

取值范围:

不涉及。

表6 LogsTreeList

参数

参数类型

描述

trees

Array of LogsTree objects

参数解释:

文件日志树。

total

Integer

参数解释:

记录总数。

表7 LogsTree

参数

参数类型

描述

blob_id

String

参数解释:

存储块ID。

commit

Commit object

参数解释:

提交信息。

file_name

String

参数解释:

文件名称。

file_path

String

参数解释:

文件路径。

md5

String

参数解释:

MD5。

type

String

参数解释:

存储类型。

表8 Commit

参数

参数类型

描述

author_email

String

参数解释:

作者邮箱。

author_name

String

参数解释:

作者。

authored_date

String

参数解释:

作者提交时间。

committed_date

String

参数解释:

提交时间。

committer_email

String

参数解释:

提交作者邮箱。

committer_name

String

参数解释:

提交作者。

format

Object

参数解释:

文件变更的详情信息,其格式由请求查询参数 stat_format 决定。

id

String

参数解释:

提交对应的SHA ID。

message

String

参数解释:

提交的信息。

parent_ids

Array of strings

参数解释:

父提交ID。

support.huaweicloud.com/api-codeartsrepo/ListSubfiles.html