取得可在運算式中使用的所有演算法清單。
HTTP 要求
GET https://earthengine.googleapis.com/v1alpha/{parent=projects/*}/algorithms
這個網址使用 gRPC 轉碼語法。
路徑參數
參數 | |
---|---|
parent |
必要欄位。應視為此要求服務用戶的 Google Cloud Platform 專案專案 ID 或專案編號。格式為 授權需要指定資源
|
要求主體
要求主體必須為空白。
回應主體
可在運算式中使用的所有演算法。
如果成功,回應主體會含有以下結構的資料:
JSON 表示法 |
---|
{
"algorithms": [
{
object ( |
欄位 | |
---|---|
algorithms[] |
可用演算法的清單。 |
授權範圍
需要下列其中一種 OAuth 範圍:
https://www.googleapis.com/auth/earthengine
https://www.googleapis.com/auth/earthengine.readonly
https://www.googleapis.com/auth/cloud-platform
https://www.googleapis.com/auth/cloud-platform.read-only
詳情請參閱 OAuth 2.0 Overview。
演算法
運算式可用的演算法說明。
JSON 表示法 |
---|
{
"name": string,
"description": string,
"returnType": string,
"arguments": [
{
object ( |
欄位 | |
---|---|
name |
演算法的名稱,格式為「algorithms/...」。 |
description |
使用者容易理解的演算法說明。 |
returnType |
演算法傳回的類型名稱。 |
arguments[] |
演算法所需的引數說明。 |
deprecated |
演算法是否已淘汰。 |
deprecationReason |
如果這個演算法已淘汰,請說明淘汰的原因。 |
preview |
這項演算法是否為預先發布版功能,尚未廣泛提供給一般大眾。 |
sourceCodeUri |
包含演算法原始碼的資源 URI。如果使用者沒有權限,或無法判斷特定 URI,則為空白。 |
AlgorithmArgument
演算法引數的說明。
JSON 表示法 |
---|
{ "argumentName": string, "type": string, "description": string, "optional": boolean, "defaultValue": value } |
欄位 | |
---|---|
argumentName |
引數的名稱。 |
type |
引數類型的名稱。 |
description |
使用者可理解的引數說明。 |
optional |
引數是否為選用項目。 |
defaultValue |
如果未提供值,引數會採用的預設值。 |