发送反馈
REST Resource: projects.apps.releases.operations
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
资源:操作 此资源表示长时间运行的操作,该操作是网络 API 调用的结果。
该操作的response
字段将是UploadReleaseResponse 。
JSON 表示 {
"name" : string ,
"metadata" : {
"@type" : string ,
field1 : ... ,
...
} ,
"done" : boolean ,
// Union field result
can be only one of the following:
"error" : {
object (Status
)
} ,
"response" : {
"@type" : string ,
field1 : ... ,
...
}
// End of list of possible types for union field result
.
}
领域 name
string
服务器分配的名称,仅在最初返回它的同一服务中是唯一的。如果您使用默认的 HTTP 映射,则该name
应该是以operations/{unique_id}
结尾的资源名称。
metadata
object
与操作关联的特定于服务的元数据。它通常包含进度信息和通用元数据,例如创建时间。某些服务可能不提供此类元数据。任何返回长时间运行操作的方法都应记录元数据类型(如果有)。
包含任意类型字段的对象。附加字段"@type"
包含标识类型的 URI。示例: { "id": 1234, "@type": "types.example.com/standard/id" }
。
done
boolean
如果值为false
,则表示操作仍在进行中。如果true
,则操作完成,并且error
或response
可用。
联盟场result
。操作结果,可以是error
,也可以是有效response
。如果done
== false
,则不会设置error
或response
。如果done
== true
,则可以设置error
或response
之一。某些服务可能无法提供结果。 result
只能是以下之一: error
object ( Status
)
失败或取消时操作的错误结果。
response
object
操作成功时的正常响应。在本例中,它将是UploadReleaseResponse 。
地位 Status
类型定义了适合不同编程环境的逻辑错误模型,包括REST API和RPC API。它由gRPC 使用。每条Status
消息包含三部分数据:错误代码、错误消息和错误详细信息。
您可以在API 设计指南 中找到有关此错误模型以及如何使用它的更多信息。
JSON 表示 {
"code" : integer ,
"message" : string ,
"details" : [
{
"@type" : string ,
field1 : ... ,
...
}
]
}
领域 code
integer
状态代码,应该是google.rpc.Code
的枚举值。
message
string
面向开发人员的错误消息,应为英文。任何面向用户的错误消息都应本地化并在google.rpc.Status.details
字段中发送,或由客户端本地化。
details[]
object
包含错误详细信息的消息列表。有一组通用的消息类型可供 API 使用。
包含任意类型字段的对象。附加字段"@type"
包含标识类型的 URI。示例: { "id": 1234, "@type": "types.example.com/standard/id" }
。
发送反馈
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可 获得了许可,并且代码示例已根据 Apache 2.0 许可 获得了许可。有关详情,请参阅 Google 开发者网站政策 。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2023-12-01。
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"没有我需要的信息"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"太复杂/步骤太多"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"内容需要更新"
},{
"type": "thumb-down",
"id": "translationIssue",
"label":"翻译问题"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"示例/代码问题"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"其他"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"易于理解"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"解决了我的问题"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"其他"
}]
需要向我们提供更多信息?