提供意見
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" }
。
提供意見
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權 ,程式碼範例則為阿帕契 2.0 授權 。詳情請參閱《Google Developers 網站政策 》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間: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":"其他"
}]
想進一步說明嗎?