「
隨選乘車與運送服務」解決方案目前僅供特定合作夥伴使用。如需瞭解詳情,請
聯絡銷售人員。
Method: providers.vehicles.update
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
將更新過的車輛資料寫入 Fleet Engine。
更新 Vehicle
時,由於下列欄位是由伺服器管理,因此無法更新:
currentTrips
availableCapacity
currentRouteSegmentVersion
waypointsVersion
這輛車「name
」也無法更新。
如果更新 attributes
欄位,所有車輛的屬性都會替換成要求中提供的屬性。如果只想更新部分屬性,請參閱 vehicles.updateAttributes
方法。同樣地,waypoints
欄位可以更新,但必須包含目前車上的所有路線控點,不含其他路線控點。
HTTP 要求
PUT https://fleetengine.googleapis.com/v1/{name=providers/*/vehicles/*}
這個網址使用 gRPC 轉碼語法。
路徑參數
參數 |
name |
string
必要欄位。格式須為 providers/{provider}/vehicles/{vehicle} 。{provider} 必須是呼叫此呼叫服務帳戶所屬的 Google Cloud 專案 ID (例如 sample-cloud-project )。
|
查詢參數
參數 |
header |
object (RequestHeader )
標準的 Fleet Engine 要求標頭。
|
updateMask |
string (FieldMask format)
必要欄位。欄位遮罩用於指出 Vehicle 中要更新的欄位。至少須提供一個欄位名稱。 此為以半形逗號分隔的完整欄位名稱清單。範例:"user.displayName,photo" 。
|
回應主體
如果成功,回應主體會包含 Vehicle
的執行例項。
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2024-04-26 (世界標準時間)。
[{
"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":"其他"
}]