文档中心 > API类目 > 天眼工作室API

alibaba.security.deepvision.proxy.replay.compile.callback (编译单回调)

编译单回调

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
param CompileCallbackParam 必须 入参
  • └ tenant_code
  • String
  • 可选
  • tenantCode
  • tenantCode
  • └ field_id
  • String
  • 可选
  • fieldId
  • fieldId
  • └ build_type
  • String
  • 可选
  • buildType
  • buildType
  • └ jenkins_pipeline_name
  • String
  • 可选
  • jenkinsPipelineName
  • jenkinsPipelineName
  • └ jenkins_job_id
  • String
  • 可选
  • jenkinsJobId
  • jenkinsJobId
  • └ algo_version
  • String
  • 可选
  • algoVersion
  • algoVersion
  • └ space
  • String
  • 可选
  • space
  • space
  • └ tag_name
  • String
  • 可选
  • tagName
  • tagName
  • └ oss_version
  • String
  • 可选
  • ossVersion
  • ossVersion
  • └ oss_name
  • String
  • 可选
  • ossName
  • ossName
  • └ download_url
  • String
  • 可选
  • downloadUrl
  • downloadUrl
  • └ platform
  • String
  • 可选
  • platform
  • platform
  • └ product_code
  • String
  • 可选
  • productCode
  • productCode
  • └ code
  • Number
  • 可选
  • 1
  • code
  • └ code_str
  • String
  • 可选
  • codeStr
  • codeStr
  • └ jenkins_queue_item
  • String
  • 可选
  • jenkinsQueueItem
  • jenkinsQueueItem
  • └ in_progress
  • Boolean
  • 可选
  • true
  • inProgress
  • └ result
  • String
  • 可选
  • result
  • result
  • └ build_id
  • String
  • 可选
  • buildId
  • buildId

响应参数

名称 类型 示例值 描述
resp_code Number 1 code
resp_success Boolean true 状态
resp_request_id Boolean id 请求id
message String message message

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaSecurityDeepvisionProxyReplayCompileCallbackRequest req = new AlibabaSecurityDeepvisionProxyReplayCompileCallbackRequest();
AlibabaSecurityDeepvisionProxyReplayCompileCallbackRequest.CompileCallbackParam obj1 = new AlibabaSecurityDeepvisionProxyReplayCompileCallbackRequest.CompileCallbackParam();
obj1.setTenantCode("tenantCode");
obj1.setFieldId("fieldId");
obj1.setBuildType("buildType");
obj1.setJenkinsPipelineName("jenkinsPipelineName");
obj1.setJenkinsJobId("jenkinsJobId");
obj1.setAlgoVersion("algoVersion");
obj1.setSpace("space");
obj1.setTagName("tagName");
obj1.setOssVersion("ossVersion");
obj1.setOssName("ossName");
obj1.setDownloadUrl("downloadUrl");
obj1.setPlatform("platform");
obj1.setProductCode("productCode");
obj1.setCode(1L);
obj1.setCodeStr("codeStr");
obj1.setJenkinsQueueItem("jenkinsQueueItem");
obj1.setInProgress(true);
obj1.setResult("result");
obj1.setBuildId("buildId");
req.setParam(obj1);
AlibabaSecurityDeepvisionProxyReplayCompileCallbackResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_security_deepvision_proxy_replay_compile_callback_response>
    <resp_code>1</resp_code>
    <resp_success>true</resp_success>
    <resp_request_id>id</resp_request_id>
    <message>message</message>
</alibaba_security_deepvision_proxy_replay_compile_callback_response>

异常示例

  • XML示例
  • JSON示例
<error_response>
    <code>50</code>
    <msg>Remote service error</msg>
    <sub_code>isv.invalid-parameter</sub_code>
    <sub_msg>非法参数</sub_msg>
</error_response>

错误码解释

错误码 错误描述 解决方案

API工具

如何获得此API

FAQ

返回
顶部