Method: selection.v1.projects.selectedRoutes.patch

更新指定名稱的 SelectedRoute。

HTTP 要求

PATCH https://roads.googleapis.com/selection/v1/{selectedRoute.name=projects/*/selectedRoutes/*}

這個網址使用 gRPC 轉碼語法。

路徑參數

參數
selectedRoute.name

string

ID。SelectedRoute 的資源名稱。

格式:projects/{project}/selectedRoutes/{selectedRoute}

查詢參數

參數
updateMask

string (FieldMask format)

(選用步驟) 要更新的欄位清單。

欄位路徑是 SelectedRoute 的相對路徑。您只能更新 displayNamerouteAttributesdynamicRoute (包括 origindestinationintermediates)。

範例:"displayName,routeAttributes,dynamicRoute"

如果指定 *,系統會完整替換所有可更新的欄位。

如果省略 updateMask,系統會更新 selectedRoute 中填入的所有可更新欄位。

要求主體

要求主體包含 SelectedRoute 的例項。

回應主體

如果成功,回應主體會包含 SelectedRoute 的執行個體。

授權範圍

需要下列 OAuth 範圍:

  • https://www.googleapis.com/auth/cloud-platform

IAM 權限

需要 name 資源的下列 IAM 權限:

  • roads.selectedRoutes.update

詳情請參閱 IAM 說明文件