检测到您已登录华为云国际站账号,为了您更好的体验,建议您访问国际站服务网站 https://www.huaweicloud.com/intl/zh-cn
不再显示此消息
Logger(FILE_LOG) def make_request(url, data={}, headers={}, method='GET'): headers["Content-Type"] = 'application/json' headers['Accept-Charset
createAt" : "2019-10-21 17:49:33", "projectId" : "4838955a48e2492bbe44b31bc4c272f6", "projectIsDelete" : "false" }, "status" : "success
取值范围: success,表示接口调用成功。 failed,表示接口调用失败。 表4 Error 参数 参数类型 描述 code String 参数解释: 错误码。 取值范围: 符合错误码格式字符串,长度[0,100]。 message String 参数解释: 错误信息。
1034546", "key_title" : "z00464114@SZXG4Z004641141", "key" : "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAxxxxxxxxxxxxx" }, "status" : "success
取值范围: success,表示接口调用成功。 failed,表示接口调用失败。
committed_date" : "2019-10-15 09:40:29", "committer_name" : "repo", "committer_email" : "repo@huawei.com" } ] }, "status" : "success
false, "note_events" : false, "pipeline_events" : false, "wiki_page_events" : false, "build_events" : null }, "status" : "success
endpoint}/v2/repositories/907199/commit_lines 响应示例 状态码: 200 OK { "result" : { "additions" : 9, "deletions" : 6 }, "status" : "success
languages": ['Java'], "plateform": ['Console'], "entertype": ['AI'] } 响应示例 状态码: 200 OK { "result" : null, "error" : null, "status" : "success
Logger(FILE_LOG) def make_request(url, data={}, headers={}, method='GET'): headers["Content-Type"] = 'application/json' headers['Accept-Charset
"https_url" : "https://repo.alpha.devcloud.inhuawei.com/chentest00001/javaMavenDemo.git" } ], "total" : 100 }, "status" : "success
commit_id" : "a772945ec2765e322cc83e0f467f394effa22cf3", "last_commit_id" : "a772945ec2765e322cc83e0f467f394effa22cf3" }, "status" : "success
DDDDDDDD.git", "detail_url" : "https://alpha.devcloud.inhuawei.com/repo/487773/home" } ], "total_count" : 100 }, "status" : "success
响应参数 状态码: 200 表4 响应Body参数 参数 参数类型 描述 error Error object 参数解释: 响应错误: result RepoListInfoV2 object 参数解释: 响应结果 status String 参数解释: 响应状态 取值范围: success
取值范围: success,表示接口调用成功。 failed,表示接口调用失败。 表5 Error 参数 参数类型 描述 code String 参数解释: 调用此接口失败时返回的错误码。 取值范围: CH.10000,系统繁忙,请稍后再试。
commit_id" : "a772945ec2765e322cc83e0f467f394effa22cf3", "last_commit_id" : "a772945ec2765e322cc83e0f467f394effa22cf3" } ], "status" : "success
committed_date" : "2019-10-15 09:40:29", "committer_name" : "repo", "committer_email" : "repo@huawei.com" } ] }, "status" : "success
"status" : "running", "web_url" : "https://test.com/Pipeline_Beta_sdcs00001/202107171926/pipelines/292811" } }, "status" : "success
"2019-10-15 09:40:26", "projectId" : "4838955a48e2492bbe44b31bc4c272f6", "projectIsDelete" : "false" } ], "status" : "success
"https_url" : "https://codehub.alpha.devcloud.intest.com/chentest00001/javaMavenDemo.git" } ], "total" : 100 }, "status" : "success