提供意見
REST Resource: projects.operations
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
資源:操作 此資源表示長時間運行的操作,該操作是網路 API 呼叫的結果。
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
操作正常、成功的回應。如果原始方法未傳回成功資料(例如Delete
,則回應為google.protobuf.Empty
。如果原始方法是標準Get
/ Create
/ Update
,則回應應該是資源。對於其他方法,回應應具有類型XxxResponse
,其中Xxx
是原始方法名稱。例如,如果原始方法名稱為TakeSnapshot()
,則推斷的回應類型為TakeSnapshotResponse
。
包含任意類型欄位的物件。附加欄位"@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":"其他"
}]
想進一步說明嗎?